chmod Calculator
Tick read, write and execute for owner, group and others to get the octal (755), symbolic (rwxr-xr-x) and a ready chmod command, with setuid, setgid, sticky, plain explanations and umask.
The tool
How to use
- Tick the permissions in the grid, or type the octal (such as 755) or symbolic form (rwxr-xr-x); the rest updates.
- Choose “File” or “Directory” for the right explanation (execute on a directory means entering it).
- Copy the chmod command. Below, apply a change such as u+x,go-w to the current mode, or work out a umask.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
What do 755 and 644 mean?
Each digit is a sum: read 4 + write 2 + execute 1. 755 = owner 7 (everything), group and others 5 (read and execute): good for directories and scripts. 644 = owner reads and writes, others read: good for regular files.
Why is 777 dangerous?
Any user on the machine can change the file or delete a directory’s contents. You rarely need it; shared directories such as /tmp use 1777 (with sticky) so each user can only delete their own files.
What are setuid, setgid and sticky?
setuid (4) runs a program with its owner’s rights (like passwd). setgid (2) uses its group’s rights, and on a directory makes new files inherit the directory’s group. sticky (1) on a directory stops users deleting others’ files.
What is the difference between s and S?
Lower-case s means setuid/setgid is on with execute. Upper-case S means it is on without execute, which is usually a mistake. The same goes for t and T with sticky.