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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
The Linux file system and the Filesystem Hierarchy Standard4m 13s
-
(Locked)
Configuring the network for a CentOS server2m 51s
-
(Locked)
Configuring the network manually6m 45s
-
(Locked)
Configuring the network with NetworkManager4m 45s
-
(Locked)
Setting the hostname2m 32s
-
(Locked)
Connecting to the system remotely with Secure Shell (SSH)4m 6s
-
(Locked)
Adding an administrative user with SSH access3m 41s
-
(Locked)
Adding a key to a user for SSH access4m 24s
-
(Locked)
Transferring files to and from the server5m 1s
-
(Locked)
File permissions2m 12s
-
(Locked)
Working with users and groups3m 52s
-
(Locked)
Installing and updating software8m 5s
-
(Locked)
Installing packages by group1m 34s
-
(Locked)
Installing packages from other sources4m
-
-
-
-
-
-