Type a tool name, for example "keyword density" or "transcript".
Calculate Linux/Unix file permissions visually and get the chmod command.
| Entity | Read (r) +4 |
Write (w) +2 |
Execute (x) +1 |
Octal |
|---|---|---|---|---|
|
Owner (u)
|
6 | |||
|
Group (g)
|
6 | |||
|
Other (o)
|
6 |
chmod Command
Numeric
644
Symbolic
-rw-r--r--
Binary
110100100
Common Presets
A chmod calculator turns Linux and Unix file permissions into a number and back again. Tick read, write and execute boxes for the owner, group and everyone else, or type an octal value like 755 or a symbolic string like rw-r--r--, and get the matching command to copy. It is free and needs no sign-in.
The chmod command changes who can read, write or run a file or directory on Linux and Unix systems. Permissions are set for three classes: the owner (u), the group (g) and all other users (o).
Each class gets a number from 0 to 7, built by adding three values: read is 4, write is 2 and execute is 1. Read plus write is 6, read plus execute is 5, and all three add up to 7. Three digits side by side give the full mode, so 754 means the owner has 7, the group has 5 and others have 4.
The same mode can be written as nine characters: three for the owner, three for the group, three for others. A letter means the permission is on, and a dash means it is off. So 754 is rwxr-xr--. When you run ls -l, a tenth character appears at the front: a dash for a regular file or a d for a directory.
Every permission is one bit, so nine bits describe a whole mode. Mode 644 is 110 100 100 in binary. Seeing the bits makes it clear why each digit can only go from 0 to 7.
You can start from checkboxes, an octal number, a symbolic string or a preset, and the other views update to match. Follow these steps:
-rw-r--r--.rwxr-x---, into the Symbolic field. A leading dash for the file type is accepted.chmod 644 filename.Say a deployment guide tells you the owner should read and write a file, the group should only read it, and everyone else should have no access.
Enter that in the checkboxes. Owner: Read and Write. Group: Read. Other: nothing. The row digits are 6 (4+2), 4 and 0, so the Numeric result is 640. The Symbolic result is -rw-r----- and the Binary result is 110100000. The copied command is chmod 640 filename.
Now check it the other way. Type 640 into Octal Value and the same boxes light up. If you type rw-r----- into Symbolic, you land on 640 again. Getting the same answer from both directions confirms you have the mode you meant.
Most real-world modes come from a short list. This table covers the ones people search for most, and each of them except 775 is also a preset in the calculator.
| Mode | Symbolic | Typical use |
|---|---|---|
| 644 | rw-r--r-- | Web files, documents |
| 755 | rwxr-xr-x | Directories, scripts |
| 600 | rw------- | Private keys, secrets |
| 700 | rwx------ | Private scripts or folders |
| 400 | r-------- | Read-only sensitive files |
| 775 | rwxrwxr-x | Shared team directories |
| 777 | rwxrwxrwx | Full access (unsafe) |
The results tell you exactly who can do what, and the fix for a wrong mode is usually to change one digit.
On a file, execute means you can run it. On a directory, read lets you list its contents and execute lets you enter it and reach the files inside. A directory without execute is effectively locked, even if it can be read. That is why folders usually need 755 while the files in them need only 644.
Run ls -l filename in your terminal and read the first column, such as -rwxr-xr--. Skip the first character, paste the remaining nine into the Symbolic field and the calculator shows 754. On many Linux systems, stat -c %a filename prints the octal number directly.
Anyone who sets permissions by hand will save time and avoid guessing.
rw-rw-rw- into 666 to spot loose settings quickly.If you generate keys as part of the same job, the CSR generator creates a private key you should then lock down to 600, and the certificate key matcher confirms the key and certificate belong together.
Give each file the least access that still lets it work. That one rule prevents most permission problems.
chmod -R 755 folder also makes every file inside executable. Set directories and files separately, for example with find . -type d -exec chmod 755 {} + and find . -type f -exec chmod 644 {} +.chmod +x case, tick the Execute boxes you want in the calculator and copy the resulting full mode if you prefer to set everything explicitly.drwxr-xr-x, is not accepted. Remove the first character and enter the last nine.Permissions are one layer of protection. For stored passwords, a hash is also needed, and the password encryption utility and bcrypt hash generator cover that side. You can find more related utilities in the security and encryption tools hub.
This calculator covers the standard nine permission bits: read, write and execute for owner, group and other. It does not handle the special bits, which means setuid, setgid and the sticky bit, and it does not accept four-digit modes such as 4755 or 1777. Symbols like s, S, t and T in a string such as drwxr-sr-x are rejected.
It also does not read your real files, check ownership, or account for access control lists, so it cannot tell you what a specific user can actually do. Think of it as an accurate converter and command builder for the common three-digit case.
Use the calculator above to build your next permission string: set the boxes, check the symbolic and binary views, press Copy and paste the command into your terminal.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market