π Linux Free Masterclass (Episode 12): Linux Permissions (chmod Command)
How do Linux systems strictly control who can read, modify, or execute files and directories? Through the chmod (Change Mode) command.
Here are the key points from Episode 12:
πΉ 1. Understanding Permissions (Read, Write, Execute)
The Three Permissions:
R (Read = 4): Permission to view or open a file.
W (Write = 2): Permission to modify, edit, or delete a file.
X (Execute = 1): Permission to run scripts or compiled programs.
The Three Categories: These rights apply separately to Owner (the creator), Group (associated team members), and Others (everyone else).
πΉ 2. The chmod Command & Numeric (Octal) Mode
Octal Notation: Summing the values (Read=4, Write=2, Execute=1) creates permission sets. For example, 7 gives full read, write, and execute permissions (4+2+1).
Usage: Typing chmod 744 script.sh assigns full privileges to the owner (7), and read-only access to the group (4) and others (4).
πΉ 3.β¦