How chmod numbers work
Each digit is the sum of read (4), write (2) and execute (1) for one class: owner, group, others. 7 = 4+2+1 = rwx, 5 = 4+1 = r-x, 6 = 4+2 = rw-, 4 = r--.
| Digit | Permissions | Symbolic |
|---|---|---|
| 0 | none | --- |
| 1 | execute | --x |
| 2 | write | -w- |
| 3 | write + execute | -wx |
| 4 | read | r-- |
| 5 | read + execute | r-x |
| 6 | read + write | rw- |
| 7 | read + write + execute | rwx |
Most used modes
- chmod 755
- chmod 644
- chmod 600
- chmod 700
- chmod 777
- chmod 775
- chmod 664
- chmod 400
- chmod 750
- chmod 640
- chmod 444
- chmod 711
Browse every mode in the chmod permissions table.