Chapter 6: Users and groups
Create and manage local user accounts and groups, give administrators controlled root access with sudo, and set password policies.
What you will learn
- Explain users, groups, UIDs and GIDs, and read the account databases /etc/passwd, /etc/group and /etc/shadow.
- Become root with su or run commands as root with sudo, and grant sudo access with drop-in files checked by visudo.
- Create, modify and delete user accounts and groups, including supplementary group membership.
- Set, lock and age passwords, force a change at the next login, and make accounts expire.
Sections
- Users, groups and the account files
- Become root safely
- Exercise: Grant limited root access
- Manage accounts and groups
- Exercise: Set up a web team
- Passwords and password ageing
- Exercise: Onboard and offboard an intern
- Exercise: Users and groups review
- Linux users and groups quiz
- Linux users and groups cheat sheet