User and Group Management
Add, remove, and audit users and groups, configure sudo, and apply the principle of least privilege.
Linux User Model
Linux is a multi-user OS. Every process runs as a specific user. Understanding users and groups is fundamental to access control and privilege separation.
The /etc/passwd File
/etc/passwd stores user account information: username, UID, GID, home directory, shell. Passwords are stored (as hashes) in /etc/shadow, readable only by root.
cat /etc/passwd
# format: username:x:UID:GID:comment:home:shellAll lessons in this course
- File Permissions and Ownership
- User and Group Management
- SSH Hardening and Key-Based Auth
- iptables and UFW Firewall Rules