How Linux Permissions Work
In Unix-like operating systems, file permissions are divided into three user categories:
User (u) / Owner
The specific user account that owns the file.
Group (g)
All members of the file's assigned group.
Others (o) / Public
Anyone else with access to the system.
Octal Bit Calculation
- 4 (Read - r): Permission to view file contents or list directory.
- 2 (Write - w): Permission to modify, delete, or create files.
- 1 (Execute - x): Permission to run as a binary/script or enter a directory.