About this tool
Pick read, write and execute for the owner, group and others, plus setuid, setgid and the sticky bit, and the calculator shows the matching octal number and the rwx string that ls -l prints. It works the other way too: type 2775 or rwsr-xr-x and the boxes update. A chmod command is built for the file you name, and a umask helper shows what permissions new files and folders will get. Nothing runs on a server.
How to use chmod Calculator
- Tick the permissions you want for owner, group and others.
- Or type an octal mode or a symbolic string to fill the boxes.
- Enter the file name and copy the chmod command.
- Use the umask section to check default permissions for new files.
Frequently asked questions
What do 755 and 644 mean?
Each digit adds read (4), write (2) and execute (1) for owner, group and others. 755 lets everyone read and run but only the owner write; 644 lets everyone read but only the owner write.
What is the difference between s and S in ls output?
Lowercase s means setuid or setgid is set and the execute bit is also set. Uppercase S means the special bit is set without execute, which is usually a mistake. t and T work the same way for the sticky bit.
How does umask work?
New files start from 666 and new directories from 777, and every bit set in the umask is removed. With the common umask 022 you get 644 files and 755 folders.