Local users and groups.
A user account isn't one thing β it's a few lines spread across /etc/passwd, /etc/shadow, and /etc/group, plus a home directory and a mail spool. Read each field, then learn the commands that create, modify, lock, and delete accounts.
Linux local users and groups animated tutorial. Covers /etc/passwd, /etc/shadow, /etc/group fields, useradd, usermod, userdel, passwd, chage, primary vs supplementary groups, and account locking. RHCSA EX200 ready.A Linux account is a few lines of text plus a home directory. Once you can read /etc/passwd, /etc/shadow, and /etc/group, the management commands stop feeling magic.
- Β·Comfortable viewing files (cat, less) and basic permissions
- Β·Know that root is the admin account
- Β·Helpful: the file-permissions / chmod tool for the next lesson
Read every field of a passwd/shadow/group line, and run the commands to create, modify, lock, and delete accounts safely.
pace: 10 minutes
/etc/passwd β seven colon-separated fields
Every account has one line in /etc/passwd with seven fields separated by colons: username, password placeholder (almost always 'x'), UID, primary GID, GECOS (a free-text comment, historically the user's full name), home directory, and login shell. This file is world-readable β that's fine, because the actual password hash lives elsewhere.
The kernel only knows numbers β UIDs and GIDs. Usernames and group names are a convenience layer that /etc/passwd and /etc/group map to those numbers. That's why a file copied to another system can suddenly be "owned" by a different user: same UID, different name-to-number mapping.
$id alice$getent passwd alice$useradd -m -s /bin/bash alice$useradd -r svc$usermod -aG wheel alice$usermod -L / -U alice$userdel -r alice$passwd alice$passwd -l / -u alice$chage -l alice$chage -M 90 -W 7 alice$groupadd developers$gpasswd -a alice developers$newgrp developers$/etc/skel$/etc/login.defsWhere is a user's actual hashed password stored?
You run `usermod -G developers alice` to add alice to the developers group. What's the bug?
What's the difference between a primary and a supplementary group?
You want to disable password login for a departing employee but keep their files and audit trail. Best move?
These aren't graded β they're just for active recall, which is what actually makes the lesson stick.
chmod calculator
Now that you can create users and groups, decide what they can read and write. Flip permission bits and watch rwx β octal update in lockstep.
keep going β these pair well with what you just learned.
SELinux contexts
Why Apache can't read your file. Watch the policy engine decide β and learn the workflow for fixing denials. RHCSA-ready.
Linux boot process
From power button to login prompt. Every stage in the chain β UEFI, GRUB, kernel, initramfs, systemd β with the rescue moves that save you. RHCSA-ready.
LVM stacking
Layer-by-layer build of an LVM stack: disks β PVs β VG β LVs β filesystem. Then extend live and snapshot. RHCSA-ready.