Manage Linux users, groups and file permissions
8 steps · about 3 h 5 min · Beginner
- Meet users, groups and IDs (tutorial, Linux Journey, 15 min)
Start with why every process and file belongs to a user and group before touching any account commands.
- See where account data lives (guide, ArchWiki, 30 min)
Learn what /etc/passwd, /etc/shadow and /etc/group hold so account changes stop feeling like magic.
- Create an account with useradd (reference, man7.org, 20 min)
Practise the options for home directory, shell and supplementary groups on a test user.
- Change an existing account (reference, man7.org, 15 min)
Add a user to a group, lock an account and see why -aG matters before you remove access by accident.
- Read permission bits on files (tutorial, The Linux Documentation Project, 30 min)
Decode the rwx triplets for owner, group and others and practise chmod and chown on your own files.
- Use numeric modes and special bits (guide, ArchWiki, 25 min)
Pin down octal modes, setgid on directories and the sticky bit, which shared folders rely on.
- Grant limited admin rights with sudo (guide, ArchWiki, 25 min)
Edit sudoers safely with visudo and give a group only the commands it needs instead of full root.
- Share a directory with ACLs (guide, ArchWiki, 25 min)
Finish by giving a second group access to one project folder when plain owner/group bits are not enough.