Module 05
Permission & Security
Security isn't an add-on; it's baked into every single file. Learn why "Permission Denied" happens.
โฑ๏ธ 30 min read๐ Security๐
Updated: Jan 2026
1 Who owns the file?
The Club Analogy
- ๐ค User (u): Owner.
- ๐ฅ Group (g): Team.
- ๐ Others (o): Public.
2 Reading the Matrix (ls -l)
-
rwx
r-x
r--
| Code | Meaning | Power |
|---|---|---|
| r | Read | View file. |
| w | Write | Edit/Delete. |
| x | Execute | Run program. |
3 Changing Permissions
Method A: Symbolic
chmod u+x file
Method B: Numeric
4Read
2Write
1Execute
4 Changing Ownership (chown)
sudo chown user:group filename