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