Tick read, write and execute for owner, group and others, or type a number such as 755, and get the explanation and the ready command, with a warning when the permission is dangerous.
Calculate nowSimple steps, all in your browser with no sign-up.
Or type the number.
With warnings for unsafe values.
For a file or a whole folder.
| Number | Symbolic | Used for |
|---|---|---|
| 644 | rw-r--r-- | Normal website files |
| 755 | rwxr-xr-x | Folders and executable scripts |
| 600 | rw------- | Secret files such as private SSH keys |
| 640 | rw-r----- | Config files such as wp-config.php |
| 777 | rwxrwxrwx | Never use it on hosting |
Each digit is a sum: read 4, write 2, execute 1. So 7 means all three, 5 read and execute, 6 read and write.
| Number | Name | Example |
|---|---|---|
| 4xxx | setuid: runs with the owner's rights | /usr/bin/passwd |
| 2xxx | setgid: new files inherit the folder group | Shared team folders |
| 1xxx | sticky: only the owner can delete files | /tmp at 1777 |
Websites rarely need them; three digits cover most cases.
Short definitions of what you meet along the way.
Did not find your answer? Ask us on WhatsApp
It lets any user or script on the server modify the file, making code injection easy.
For a file it means running it as a program; for a folder it means entering it and reading its contents.
Some servers refuse to run PHP files or folders writable by everyone. Set them back to 644 and 755.
cPanel hosting with protection against hacking.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy