About chmod Calculator
Work out Unix file permissions without memorising the numbers. Tick read, write and execute for the owner, group and others and see the matching octal mode (such as 755) and the symbolic form (rwxr-xr-x) that ls shows. You can also type either form and watch the checkboxes update, and copy a ready-made chmod command.
How to use chmod Calculator
- Tick the permissions for owner, group and others, or type an octal or symbolic mode.
- Add setuid, setgid or sticky if you need them.
- Check the octal value, symbolic string and command.
- Copy the command and run it in your terminal on the right file.
Tips and good to know
- Each digit is a sum: read is 4, write is 2 and execute is 1, so 7 means all three and 5 means read and execute.
- 644 suits most files, 755 suits programs and folders, and 600 suits private keys.
- Avoid 777 on servers; it lets every user modify the file. Be careful with chmod -R, which changes everything inside a folder.
Unix permissions explained
Unix and Linux file permissions give three groups, owner, group and others, three rights each: read (4), write (2) and execute (1). Adding the numbers gives one digit per group, so 755 means the owner can read, write and execute (4+2+1), while the group and others can read and execute (4+1). 644 is typical for files and 755 for folders and scripts.
Avoid 777, which lets anyone on the system change the file. A fourth leading digit sets special bits: setuid (4), setgid (2) and sticky (1), as on /tmp, which is 1777.
On folders, execute means permission to enter the folder, and read means permission to list its contents.
Frequently asked questions
Does this change any files?
No. It only calculates and displays the mode. You run the command yourself.
What are setuid, setgid and sticky?
Special bits shown as a fourth leading octal digit. Setuid and setgid run a program with the owner’s or group’s rights, and sticky on a shared folder means only a file’s owner can delete it.
Is chmod Calculator free?
Yes. chmod Calculator is 100% free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.
Are my files uploaded?
No. This tool runs in your browser, so your input stays on your device.