chmod Calculator
Calculate Linux chmod permissions: check read/write/execute per group or enter symbolic notation, then copy the command.
How it works
Linux permissions are expressed in octal notation: 7 = read+write+execute, 5 = read+execute. 755 means full rights for the owner, read/execute for group and others — standard for directories and executables.
Special bits: setuid (4) executes with the owner's rights (watch out for privilege escalation risks), setgid (2) inherits the group on directories, sticky (1) protects files from other users in a shared directory such as /tmp.
Examples
Administration script
chmod 700: private to the owner.
| user | 7 |
| group | 0 |
| other | 0 |
| special | |
| symbolic |
Symbolic expression
Equivalent to 750.
| user | 7 |
| group | 5 |
| other | 5 |
| special | |
| symbolic | u=rwx,g=rx,o= |
Frequently asked questions
What does 777 mean and why avoid it?
Everyone can do anything, including writing executable files: it is a potential flaw. Prefer 755 or 750.
How do you apply it recursively?
chmod -R. Be careful with files and folders that should not receive the same rights: use find to distinguish them.
What is umask for?
umask defines the rights removed by default when a file is created. umask 022 gives 755 to directories and 644 to files.