Linux is built for multiple users. Understanding who can do what is essential for security, servers, and real production systems.
A user represents an identity. Every process in Linux runs as some user.
root is the superuser. It can read, write, delete, and destroy anything.
Running everything as root is dangerous.
sudo allows temporary privilege escalation.
sudo apt update
whoami
cat /etc/passwd
sudo useradd john
Create user with home directory:
sudo useradd -m john
sudo passwd john
Groups are collections of users. Permissions are often assigned to groups.
groups
sudo usermod -aG sudo john
su - john
Give sudo access only when required. Least privilege is a professional mindset.
Next: Package Management →