User (Owner)
Group
Others (Public)
Octal Notation
Symbolic Notation
-rwxr-xr-x
Linux Terminal Command
chmod 755 filename.sh
Owner can Read, Write, Execute. Group can Read, Execute. Others / Public can Read, Execute.
Advertisement
Linux File Permissions Architecture & Octal Math
Every file and folder in Unix, Linux, and BSD operating systems contains an access control matrix assigning permissions across three user classes:
- User (u): The account owner of the file.
- Group (g): Members of the file's assigned user group.
- Others (o): All other global users on the system.
Numerical Octal Calculation Table
| Octal Value | Binary | Symbolic | Permission Meaning |
|---|---|---|---|
0 | 000 | --- | No permissions granted |
1 | 001 | --x | Execute only |
2 | 010 | -w- | Write only |
3 | 011 | -wx | Write and Execute (2 + 1) |
4 | 100 | r-- | Read only |
5 | 101 | r-x | Read and Execute (4 + 1) |
6 | 110 | rw- | Read and Write (4 + 2) |
7 | 111 | rwx | Read, Write, and Execute (4 + 2 + 1) |
Advertisement
Advertisement