chmod permission calculator
Choose who may read, write and run a file, then see the same permissions as octal digits (755), symbolic letters (rwxr-xr-x) and the chmod command to run on the server.
| Read | Write | Execute | |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others | |||
| Special |
Three or four digits from 0 to 7, such as 755
Nine letters, such as rwxr-xr-x
Runs in your browser. Nothing you type here is sent to Zefily or stored.
How to use it
-
1
Tick the read, write and execute boxes for the owner, the group and everyone else, or type an octal value such as 644.
-
2
Check the symbolic form and the octal form. They always show the same permissions.
-
3
Copy the chmod command, check the path, and run it on the server as the file owner or root.
Questions
What do the digits in 755 and 644 mean?
Each digit adds up read (4), write (2) and execute (1) for one group of users: owner, group, then others. 755 gives the owner full access and lets everyone read and run. 644 lets everyone read, while only the owner can write.
What do setuid, setgid and sticky do?
They are the optional first digit. Setuid and setgid make a program run with the rights of its owner or group. The sticky bit on a directory lets only the owner of a file delete it, as on /tmp. Most web files do not need them.
Which permissions should a website use?
Usually 644 for files and 755 for folders. Avoid 777, which lets any user on the server change the file. Keep files that hold secrets, such as .env, at 600 so only the owner can read them.
Does this tool change files on my server?
No. It calculates the permissions and writes the command text. Nothing is sent anywhere. You run the command yourself on the server, after you check the path.
Related guides
Zefily does this for you on your servers
Connect a server and Zefily sets up cron jobs, permissions, redirects, PHP pools and robots rules for your sites, then keeps them in place.