Chmod Calculator
File permissions between checkboxes, octal like 755 and rwxr-xr-x.
| Who | Read (4) | Write (2) | Execute (1) | Digit |
|---|---|---|---|---|
| Owner | 7 | |||
| Group | 5 | |||
| Others | 5 |
chmod 755 script.sh
Runs on this deviceSent to a server: 0 bytes
How it works
- Type, paste or pick what you're working with.
- Set the options you need.
- Copy or download the result. It's made on this device.
Converts Unix file permissions between the checkbox view, the octal number chmod takes — 755, 644 — and the symbolic form ls shows, like rwxr-xr-x, and writes the command for you.
How the digits work
There are three digits: the owner, the group, and everyone else. Each is the sum of read (4), write (2) and execute (1), so 7 is all three, 6 is read and write, 5 is read and execute, and 4 is read only. On a directory, execute means permission to enter it and reach the files inside.
Worked example
755 is 7, 5, 5: the owner can read, write and execute, and the group and everyone else can read and execute — rwxr-xr-x, the usual setting for scripts and directories. 644 is rw-r--r--, the usual setting for ordinary files.
777 is almost never the fix
Setting 777 makes a file writable by every user on the machine, which on a server means any compromised process can change it. When something fails with “permission denied”, check which user the program runs as and change ownership with chown, or grant just the bit that is missing.
Questions
Is Chmod Calculator free to use?
Yes. Chmod Calculator is completely free, with no account, no sign-up and no usage limits.
Are my files or data uploaded anywhere?
No. Chmod Calculator runs entirely in your browser. Your files, text and numbers are processed on your own device and are never uploaded to a server.
Does Chmod Calculator work offline?
Yes, once you have opened it. NWS Kit installs as a Progressive Web App and keeps working with no connection. Video and audio tools download their engine (about 32 MB, from nwskit.com) the first time one is used; save the Video and audio pack to have it ready offline.
Do I need to install any software?
No installation is required. Chmod Calculator works in any modern browser on desktop or mobile.