Permission structure in octal and binary
User (u)
r + w + x
Group (g)
r + - + x
Others (o)
r + - + x
Read (4)
Bit 2² = 100. Allows viewing content.
Write (2)
Bit 2¹ = 010. Allows modifying.
Execute (1)
Bit 2⁰ = 001. Allows running programs.
Each digit is the sum of its active bits. Example: 5 is Read (4) + Execute (1).
Equivalent to rwxr-xr-x. Where the hyphen (-) indicates a bit set to 0 (off).
No permissions. Total lockdown.
Read-only for everyone.
Owner edits, rest only read.
Danger! Total control for anyone.