chmod calculator
Tick permissions, or type an octal number like 755 or a symbolic string like rwxr-x---.
Runs in your browser
ReadWriteExecute
Special bits
How the numbers work
Each digit is the sum of read (4), write (2) and execute (1) for owner, group and others. 7 = rwx, 6 = rw-, 5 = r-x, 4 = r--. An optional leading digit sets the special bits.
- 644: normal files. 755: scripts and directories. 600: private keys and secrets (SSH refuses keys that others can read).
- setgid on a directory makes new files inherit its group, useful for shared team folders.
- The sticky bit on a directory (like
/tmp, mode 1777) lets users delete only their own files.