Linux security starts with file permissions — a simple, powerful model you'll use constantly.
Linux File Permissions
rwx, user/group/other, chmod and chown — the Linux security model.
Tap or hover a part to learn more.
The three permissions.
Every file has read (r), write (w) and execute (x) permissions. On a directory, x means you can enter it. These three are the whole model.
Check your understanding
1. What does chmod 755 grant?
2. Best practice for administrative tasks is to…
Keep learning
The model
Three permissions — read (r), write (w), execute (x) — for three sets: user (owner), group and other, shown as rwxr-xr-- in ls -l. On a directory, x means you can enter it.
- chmod sets permissions:
chmod u+x script.shor numericallychmod 755 script.sh(7=rwx, 5=r-x). - chown changes ownership; sudo runs a single command as root.
Best practice: never work as root full-time — use sudo and least privilege, exactly as in Windows administration and Security+.
