Linux Users & Permissions
Manage users, groups and sudo, and control access to files with permission bits, special modes, ACLs and capabilities.
4 objectives 6 steps about 115 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Create and manage users and groups and explain how /etc/passwd, /etc/shadow and /etc/group map names to UIDs and GIDs.
- Apply umask, setuid, setgid and sticky bits and default ACLs to shared directories, and predict effective access when they combine with ownership and group membership.
- Grant least-privilege administrative access with sudoers rules and find who ran what in the logs.
- Explain process credentials, POSIX ACLs, Linux capabilities and mandatory access control (SELinux or AppArmor) at an introductory level.
Lesson plan
6 steps, about 115 min · 0 of 5 lessons available so far
- Who is who: users, groups, UIDs and the account files Concept · 15 min · coming later
- Beyond basic rwx: directory semantics, umask and the special modes Concept · 20 min · coming later
- Lab: a shared team directory with setgid, sticky bit and default ACLs Lab · 25 min · coming later
- Least privilege with sudo: scoped rules, logging and common mistakes Worked example · 20 min · coming later
- Beyond rwx: credentials, capabilities and mandatory access control Concept · 20 min · coming later
- Check: predict access decisions for users, files and processes Knowledge check · 8 questions
Practise it
On a VM, create two groups and four users, a shared directory where group members can edit but not delete each other's files, and a sudoers rule that lets one user restart only the web service; verify every row of a written access matrix with sudo -u tests.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Container RuntimeAdvanced · 12–24 h
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.