Chmod Calculator

Convert Unix permissions between octal and symbolic

Runs on this device

Permission bits

Entity
Read (4)Write (2)Execute (1)
Val
Owner
user (u)
6
Group
group (g)
4
Others
world (o)
4

Special bits

Result

Octal
644
chmod 644
Symbolic
rw-r--r--
ls -la format
Numeric
420
decimal value
chmod 644 filename
chmod u=rw,g=r,o=r filename

owner can read, owner can write, group can read, others can read

Common presets

Special bits

  • Sticky stops users deleting files they do not own in shared directories such as /tmp.
  • SetUID runs a program such as passwd with the privileges of its owner.

Common choices

  • 644 suits web and config files that only the owner edits.
  • 600 suits SSH private keys, which SSH rejects if others can read them.