Home › Tools › Chmod Permission Calculator
Chmod Permission Calculator
Convert Linux file permissions between checkboxes, octal and symbolic notation.
| Read (4) | Write (2) | Execute (1) | |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others |
About this tool
Linux and Unix permissions control who can read, write or execute a file. They are written either as a three-digit octal number such as 755 or as a nine-character symbolic string such as rwxr-xr-x. This calculator keeps both representations in sync with a click-able grid for the owner (user), group and others.
Each digit is the sum of read (4), write (2) and execute (1). So 6 means read and write, 5 means read and execute, and 7 means everything. The tool also generates ready-to-paste chmod commands in both numeric and symbolic form.
Use the presets for the most common secure defaults: 644 for ordinary files, 755 for scripts and directories, and 600 for private keys.
How to use it
- Tick the permissions you want, or type an octal value such as 640.
- Watch the octal, symbolic and command outputs update.
- Copy the command and run it on your server.
Frequently asked questions
What permissions should a web server's files have?
Commonly 644 for files and 755 for directories. Avoid 777, which lets every user on the system modify the file.
Why does SSH reject my private key?
SSH refuses keys that other users can read. Set the key to 600.
Does this handle setuid, setgid and sticky bits?
This version covers the standard nine permission bits.
Results are provided for general information. Please read our disclaimer.