DevOps · Linux

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.

Permission matrix
Class Octal
7
5
5
Common modes
Octal mode
755
4-digit form: 0755
Symbolic mode
drwxr-xr-x
Directory
Per-class digits
u=7 g=5 o=5
No special bits

Generated commands

Numeric (octal)
$chmod 755 /var/www/app
Symbolic
$chmod u=rwx,g=rx,o=rx /var/www/app
Accepts 3–4 digit octal, 9-character symbolic strings, or comma-separated u/g/o clauses.
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.