chmod Calculator
Calculate Linux and Unix file permissions while checking boxes. Choose read (r), write (w) and execute (x) for owner, group and others, plus setuid, setgid and the sticky bit, and you get the number such as 755, the symbolic form such as rwxr-xr-x and the command chmod 755 filename together. You can also type a number or symbolic form and have it reflected in the checkboxes, so you can turn an ls -l listing into a number. It helps you see what common values such as 644, 755 and 600 mean. It only calculates and builds the command text; it does not change any file permissions. Symbolic modes such as u+x, and owners, ACLs and umask, are not covered. Everything runs in your browser.
chmod 755 filename| Owner | Group | Public | |
|---|---|---|---|
| Read (4) | |||
| Write (2) | |||
| Execute (1) |
Special Bits
umask calculator
A umask removes permission bits from the defaults: files start at 666 and directories at 777.
Enter a 3 or 4 digit octal umask such as 022 or 0077.
Things to watch in the permission above
GuideHow to use & features
- Select permissions for "Owner", "Group", and "Others" using the checkboxes.
- The corresponding chmod command is generated in real-time in the output area.
- You can also input an octal number to see the matching visual permissions.
SamplesSample input & output
Calculate 755 (rwxr-xr-x)
Owner: Read, Write, Execute Group: Read, Execute Others: Read, Execute
chmod 755
FAQFAQ
What do `755` and `644` mean?
The three digits are permissions for owner, group and others, in that order. Read (r) is 4, write (w) is 2 and execute (x) is 1, added together. `755` is `rwxr-xr-x` (owner can do everything, others can read and execute) and `644` is `rw-r--r--`.Which values should I use for files and directories?
A common rule of thumb is `644` for regular files and `755` for directories and scripts you run. An SSH private key must be `600` or SSH refuses it as too open.What is the fourth digit (as in `4755` or `1777`)?
The leading digit is for special bits: setuid is 4, setgid is 2 and the sticky bit is 1. For example `1777` suits a directory like `/tmp`, where anyone can write but cannot delete others' files.Can I get the number from something like `-rwxr-xr-x`?
Yes. Paste the `ls -l` form (the leading `-` or `d` is optional) and it converts to a number. The reverse, number to symbolic notation, works on the same screen.Can I use the generated command as is?
It appears as `chmod 755 filename`; replace `filename` with the real path. To change everything under a directory, add `-R`.Is my input sent anywhere?
No. Everything is calculated in your browser, and no command is run.
Use casesCommon use cases
Giving a deploy script execute permission
Check `755` (or `700`) for something like `deploy.sh` and copy the command.Fixing permissions on SSH keys and config files
Check values such as `600` for a private key and `700` for the `.ssh` directory to avoid the "UNPROTECTED PRIVATE KEY FILE" error.Deciding web server file permissions
Choose settings that grant no more than needed, for example `755` for public directories and `644` for public HTML and images.Turning `ls -l` output into numbers
Convert something like `-rwxr-x---` into `750` and write it into a config file or runbook.
NotesNotes & limitations
It only builds a command; it does not run it
This tool calculates the `chmod` number and command text. It does not change any file permissions. Run the command in your own environment.Avoid `777`
Granting everyone write and execute is a security risk. Give only the permissions needed, and when unsure start from `755` or `644`.Symbolic modes such as `u+x` are not supported
You can enter a 3 or 4 digit number or the `rwxr-xr-x` notation. Relative forms like `u+x` and `g-w` are not calculated.Owners, ACLs and umask are out of scope
`chown` for owner and group, ACLs, extended attributes and `umask` (default permissions for new files) are not covered. Note too that on many systems setuid is ignored on shell scripts.
AboutAbout this tool
chmod Permission Calculator
Linux file permissions can be written as numeric modes such as 755, symbolic values such as rwxr-xr-x, or chmod commands. This calculator helps translate between permission formats so you can review access before applying it to scripts, files, or directories.
Common use cases
- Understand numeric modes: Translate
644,755,600, and similar values into readable permissions. - Review deployment commands: Check chmod values before changing server files.
- Explain permissions: Share clear owner, group, and others permission details in documentation or tickets.
Security note
Avoid broad permissions such as 777 unless you fully understand the environment and risk. Write access for everyone can create serious security problems on shared systems.
