chmod Calculator
Tick read, write and execute or type the number. The tool converts in both directions and gives you the finished chmod command.
| Class | Read (r) | Write (w) | Execute (x) |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others |
- Notation
- Command with number
- Command with letters
- Recursive on a folder
Runs entirely in your browser. Your input never leaves your device. For our statistics, we only count that the tool was opened and used, without cookies and without any link to you.
How it works
- Tick the permissions for owner, group and others, or enter the number directly.
- Read off the number, notation and the explanation.
- Copy the chmod command and run it in your server’s console.
Frequently asked questions
What do 644 or 755 mean?
Each digit stands for one class: owner, group, others. Read counts 4, write 2, execute 1, and the sum is the digit. 644 means the owner reads and writes, everyone else only reads. 755 additionally lets everyone execute.
Which permissions are usual for websites?
Files 644, folders 755. Folders need the execute permission so you can enter them. Config files with passwords can be tighter, such as 600.
Why is 777 a bad idea?
Then every user on the system can change the file. That is a security risk, especially on web servers. Assign the right owners with chown and use tighter permissions instead.
What are setuid, setgid and the sticky bit?
Special permissions. Setuid and setgid run a program with the rights of its owner or group. The sticky bit on a folder lets users delete only their own files in it, as in /tmp. Only set them if you know exactly why.
What does -R do in the command?
The flag applies recursively to all files and subfolders. That is handy but sets the same permissions everywhere. For files and folders you often need two separate commands.
Related offerYour own VPS with full root access for your services.
See VPS plans →