Hands-on Lab·Red Hat Certified System Administrator
User Account Management
One objective, and the commands are short. What is worth the guide is where the defaults come from - two separate files decide what a new account looks like - and the fact that `userdel` without `-r` leaves an orphaned home directory owned by a UID that no longer exists.
Users and Groups Guide 17 of 67 Beginner
- OSRHEL 10.0 (Coughlan)
- Kernel6.12.0-55.9.1.el10_0
- dnf4.20.0
- Flatpak1.16.0
- TimeAbout 14 min
- Reviewed23 August 2026
Written against the versions above. `useradd` reads defaults from **both** `/etc/default/useradd` and `/etc/login.defs`. They are not interchangeable: the first holds useradd's own defaults, the second holds system-wide policy shared with `passwd` and `chage`.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| RHCSA-A01 | 192.168.0.31 | RHEL 10.0 (Coughlan) | Practice node (graded) - spare /dev/sda | 2 Core | 4 GB | 50 GB + 15 GB |
Before you start
- A sudo-capable account.
- The session creates and removes several accounts and their home directories.
-
The machine this guide assumes
-
The two account databases
-
Creating an account
-
Where the defaults come from
-
Creating with explicit options
-
Modifying an account
-
Deleting, and what gets left behind