CHMOD Calculator
Work out the correct chmod numeric and symbolic notation for Linux file and directory permissions in seconds.
Permissions
| Role | r | w | x | Octal |
|---|---|---|---|---|
| Owner (u) | 7 | |||
| Group (g) | 5 | |||
| Others (o) | 5 |
Special bits:
Presets:
Result Output
Octal (3-digit)
755
Octal (4-digit, incl. special)
0755
Symbolic
-rwxr-xr-x
Command
chmod 755 file
Umask (to create this mode: file 0666 · dir 0777)
022 / 022
Explanation
Owner (u): read, write, execute · Group (g): read, execute · Others (o): read, execute
Numeric input
Type an octal mode (e.g. 755, 4755) and the grid updates.
Symbolic input
Apply a symbolic mode to the current bits: u+x, g-w, a=r, ug+w, u=rwx,go=rx
Paste ls -l
Paste an ls -l line — permission string and file type are extracted.
0–7 Reference
| Octal | Symbolic | Meaning |
|---|---|---|
| 0 | --- | no permissions |
| 1 | --x | execute only |
| 2 | -w- | write only |
| 3 | -wx | write + execute |
| 4 | r-- | read only |
| 5 | r-x | read + execute |
| 6 | rw- | read + write |
| 7 | rwx | read + write + execute |
Special bits: 4 = setuid (owner's x → s/S), 2= setgid (group's x → s/S), 1= sticky (others' x → t/T). Uppercase = bit set without execute.