From the course: Learning CentOS Linux

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Working with users and groups

Working with users and groups

From the course: Learning CentOS Linux

Start my 1-month free trial

Working with users and groups

- [Instructor] On a CentOs machine, we can create users with a useradd tool. This creates a home folder for the user in home, adds an entry for the user in the system's etc/passwd file and adds an entry to hold their password hash in etc/shadow. Once a user is created, we need to set a password for the user which they can use to log in and we need to configure them to be a member of appropriate groups. Let's create a user. We went through this briefly earlier but I want to take a moment to add a little more detail. To create a user, I'll write useradd and provide a name. This will add a regular user to the system with a username anne. A regular user has their own space for files but can't install software, doesn't have super user privileges and they can't do anything else that might be considered administrative. Using the id command, we can see some information about the user. The user has the uid or user id number 1001. Human user accounts are numbered starting at 1000. Because of…

Contents