Linux chmod Octal & Symbolic Permission Calculator
Toggle read, write, and execute bits for owner, group, and others to get the exact octal mode, symbolic string, and copy-ready chmod command. Everything runs locally in your browser.
| Class | Octal | |||
|---|---|---|---|---|
| 7 | ||||
| 5 | ||||
| 5 |
Generated commands
$chmod 755 /var/www/app
$chmod u=rwx,g=rx,o=rx /var/www/app
How do I read a chmod mode like 755?
Each digit represents one class: owner, group, then others. Add the values of the granted bits — read = 4, write = 2, execute = 1 — so 7 is rwx (4+2+1), 5 is r-x (4+1), and 6 is rw- (4+2). A leading fourth digit encodes setuid (4), setgid (2), and sticky (1).
What do setuid, setgid, and sticky actually do?
setuid makes an executable run with the file owner's privileges, while setgid does the same for the group and makes new files in a directory inherit its group. The sticky bit on a directory (like /tmp) lets only a file's owner, the directory owner, or root delete or rename its entries. These are powerful — audit them before enabling.