Skip to main content
>_ supraj.dev
TOPIC LINUX
Users & Sudo the permission model
IN 10 SECONDS

Linux secures resources by isolating users. Sudo (superuser do) lets authenticated users execute commands with root (UID 0) privileges according to /etc/sudoers rules.

GOTCHA Misconfiguring /etc/sudoers can lock everyone out of root access or allow unprivileged users to execute shell commands with root privileges.
HOW PRIVILEGE ESCALATION FLOWS
01 Command user types: sudo apt update.
02 Verification sudo checks /etc/sudoers to see if the user is authorized.
03 Password Prompt user enters their own password to verify identity.
04 Execution sudo launches the command as root UID 0.
POKE IT YOURSELF
whoami — check current active user name
sudo -i — open an interactive shell session as root