Chmod Calculator
This tool works out Linux file permissions. Tick read, write and execute for the owner, group and others, or type a number such as 755, and get the chmod command.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Chmod Calculator online
- Pick how to start. Tick boxes, type octal or type letters.
- Set the permissions. For owner, group and others.
- Name the file. It is used in the command.
- Copy the command. Copy the chmod line.
Why use this free Chmod Calculator
- Tick boxes or type a number
- Symbolic form shown
- Special bits
- Plain explanation for each user
- Command with letters
- Share by link
What chmod does
On Linux and macOS, every file has permissions for three kinds of user: the owner, the group and everyone else. Each can be given the right to read, write or execute. The chmod command sets them. A number or a string of letters says which rights each kind of user has.
The numbers
Read is worth 4, write is worth 2 and execute is worth 1, and a digit adds up the rights of one kind of user. So 7 is all three, 6 is read and write, 5 is read and execute, and 4 is read only. Three digits give owner, group and others. The mode 755 is rwxr-xr-x and 644 is rw-r--r--.
A worked example
With the default boxes ticked, the mode is 755, written rwxr-xr-x. The command is "chmod 755 file.txt". The owner can read, write, execute, the group can read and execute, and others can read, execute. The long form is chmod u=rwx,g=rx,o=rx file.txt.
Special bits
A fourth digit in front adds setuid, setgid and the sticky bit. Setuid and setgid make a program run with the rights of its owner or group, and show as s. The sticky bit on a shared folder lets only the owner of a file delete it, and shows as t. Use them with care, because setuid programs are a security risk.
Safe choices
Web files are usually 644 for files and 755 for folders. Private keys should be 600. Avoid 777, which lets every user on the machine change the file. For a directory, execute means the right to enter it, so a folder without it cannot be opened even if it can be read.
Using the tool
As you type in the Chmod Calculator, the result appears at once. Use result as input to pass the answer to the next step.
Chmod Calculator: frequently asked questions
What does chmod 755 mean?
What is 644?
Why is 777 a bad idea?
What does execute mean for a folder?
What are setuid and the sticky bit?
Where does my text go when I use the Chmod Calculator?
Can I chain the Chmod Calculator with another tool?
Related searches for Chmod Calculator
- Chmod Calculator online
- free Chmod Calculator
- Chmod Calculator online free
- Chmod Calculator for mobile
- Chmod Calculator without sign up
- chmod formula
- chmod calculator with table
- Chmod Calculator – Text & Writing Tools
Chmod Calculator is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.