Chmod Calculator
A chmod calculator is a system administration utility that translates file permissions between human-readable interactive checkboxes, 3-digit octal codes (such as 755 or 644), and symbolic string notation (`rwxr-xr-x`), generating copy-paste Linux `chmod` terminal commands.
Toggle read (4), write (2), and execute (1) permission checkboxes for User (owner), Group, and Other (world) to instantly generate the matching octal code (e.g. `755`), symbolic mode string (`rwxr-xr-x`), and terminal command (`chmod 755 filename`).
Introduction to Linux File Permissions & Chmod
Linux and Unix operating systems enforce multi-user security through access control flags assigned to files and directories. Every filesystem object defines distinct read (`r`), write (`w`), and execute (`x`) permissions for three scopes: Owner (User), Group, and Others (World).
ScanSuite's free online chmod calculator simplifies permission management. Toggle permission checkboxes interactively to view live updates across octal numbers (e.g., `755`, `644`, `700`), symbolic strings, and ready-to-run terminal commands without memorizing bitwise octal math or risking insecure `777` defaults.
Special bits: setuid, setgid, sticky
A fourth octal digit sits in front of the usual three. 4 is setuid, 2 is setgid, and 1 is the sticky bit. 4755 is setuid plus rwxr-xr-x.
In ls -l, setuid shows as s in the owner execute slot (S if execute is off). Setgid shows as s in the group slot. The sticky bit shows as t at the end, as in drwxrwxrwt for /tmp.
Setuid on a binary runs it as the file owner. Setgid on a directory makes new files inherit the directory group. The sticky bit on a directory lets only the owner delete their own files.
chmod vs chown
chmod changes the mode bits: who can read, write, or execute. chown changes the owner and group. 644 does not decide which account owns the file.
Use chmod when a web server cannot read a file or a script will not run. Use chown when the file is owned by the wrong user, for example root when the deploy user should own it.
Who Uses Chmod Calculators?
Linux system administrators use chmod calculators to configure web root permissions for Nginx and Apache web servers.
DevOps engineers and cloud architects define secure file modes in Dockerfiles, Ansible playbooks, and deployment scripts.
Web developers fix permission issues with uploaded assets, storage folders, and shell execution scripts.
Octal vs symbolic notation
Permissions are evaluated per target (User, Group, Other) using binary bit values: Read = 4 (`2^2`), Write = 2 (`2^1`), Execute = 1 (`2^0`).
Adding flags yields an octal digit between 0 and 7. For example, Read (4) + Write (2) + Execute (1) = `7` (`rwx`); Read (4) + Execute (1) = `5` (`r-x`). Combining User (7), Group (5), and Other (5) creates the octal mode `755`.
Symbolic notation mirrors the same bits as nine-character strings starting with file type indicator `-` for regular files or `d` for directories.
chmod command examples
chmod 644 file.txt sets a regular file to rw-r--r--.
chmod 755 script.sh sets an executable to rwxr-xr-x.
chmod -R u=rwX,go=rX directory walks a tree and adds execute only on directories.
find . -type d -exec chmod 755 {} + and find . -type f -exec chmod 644 {} + split directory and file modes.
Common permission modes
| Symbolic | Typical use | Security note | |
|---|---|---|---|
| 777 | rwxrwxrwx | Temporary local experiments | Anyone can change or delete the file. Avoid on servers. |
| 755 | rwxr-xr-x | Directories and scripts others may run | Others cannot modify the file. |
| 750 | rwxr-x--- | Shared project directories | People outside the group have no access. |
| 700 | rwx------ | Private home directories and admin scripts | Only the owner can read or enter. |
| 644 | rw-r--r-- | Web assets and config others should read | Not executable. |
| 640 | rw-r----- | Logs and config the group may read | World has no access. |
| 600 | rw------- | SSH private keys and env files | Group and world cannot read the secret. |
| 400 | r-------- | A key you do not want overwritten | Even the owner cannot write until the mode changes. |
Why Can I Not Enter a Directory Even Though I Have Read Permission?
In Linux, listing directory contents requires Read (`r`), but navigating into or traversing a directory requires Execute (`x`) permission.
Related tools
- Timestamp Converter — Epoch time tools
- Password Generator — Create secure passwords
- Timestamp Converter — Convert Unix timestamps for log files.
- URL Parser — Parse web address components.
- Robots.txt Generator — Generate search crawler rules.
- Encoder Decoder — Encode strings and files.
- Hash Generator — Calculate file checksums.
Frequently Asked Questions
What does chmod 755 mean?
The owner can read, write and execute (7), while the group and others can read and execute (5), which is `rwxr-xr-x`. It is common for directories and scripts.
What's the difference between chmod 644 and 755?
644 (`rw-r--r--`) lets only the owner write and nobody execute, which suits regular files. 755 adds execute for everyone, which suits directories and programs.
Why is chmod 777 dangerous?
It lets every user on the system read, change and execute the file. Use the minimum permissions needed instead, such as 755 or 644.
What are setuid, setgid and the sticky bit?
They are special permission bits set with a fourth leading digit: setuid (4) runs a file as its owner, setgid (2) runs it as its group or makes new files inherit the directory's group, and the sticky bit (1) on a directory such as /tmp stops users deleting each other's files.
What's the difference between chmod and chown?
`chmod` changes what each class of user may do with a file. `chown` changes who owns it, the user and group. For example, `chown www-data:www-data file` sets the owner, then `chmod 640 file` sets the permissions.
What is chmod in Linux?
Chmod (change mode) is the Linux command used to change file and directory access permissions.
How do octal permissions work in Linux?
Octal numbers combine bit values: Read=4, Write=2, Execute=1. The sum forms a digit for Owner, Group, and Others.
What does chmod 644 mean?
Owner can read and write (rw- = 6), Group and Others can only read (r-- = 4).
Are permissions evaluated locally in browser memory?
Yes, ScanSuite's calculator computes octal and symbolic modes entirely client-side.
What permission is required for SSH private keys?
SSH requires `600` (`rw-------`) or `400` (`r--------`) on private key files.
How do I make a shell script executable?
Run `chmod +x script.sh` or `chmod 755 script.sh`.
What is the difference between chmod and chown?
Chmod changes WHAT actions users can perform; chown changes WHO owns the file or group.
Why can I not access a folder with 644 permissions?
Directories require Execute (`x`) permission (e.g. 755) to allow entering and listing contents.
How do I apply permissions recursively to all subfolders?
Use the `-R` flag: `chmod -R 755 /path/to/directory`.
What is symbolic notation in chmod?
Representing permissions with characters like `u+rwx,g+rx,o+rx` or `rwxr-xr-x`.
What does the leading 0 in chmod 0755 mean?
The leading zero indicates standard octal formatting or special flags (SetUID, SetGID, Sticky Bit).
What is the sticky bit in Linux permissions?
A special permission flag (e.g. in `/tmp`) that prevents users from deleting files owned by others.
Is this chmod calculator free to use?
Yes, ScanSuite provides unlimited free chmod calculations without registration.
What permissions should I set for WordPress wp-config.php?
Set `600` or `640` to protect database credentials from unauthorized reading.
Can I copy generated terminal commands directly?
Yes, click the copy button next to the generated command to paste into your terminal.
What does chmod -x do?
Removes execution permissions from the file or directory.
What is a Linux permissions calculator?
It maps owner, group, and others read, write, and execute bits to an octal mode such as 755 and to the symbolic form rwxr-xr-x. This chmod calculator does that in the browser and can emit the chmod command.
How do I use a chmod calculator for 755 and 644?
755 means the owner can read, write, and execute, and everyone else can read and execute. 644 means the owner can read and write, and everyone else can only read. Tick those boxes, or type the octal value, and copy the command.
Summary
ScanSuite's free Linux chmod calculator translates file permissions between octal codes, symbolic notation, and interactive checkboxes. Easily generate secure terminal commands for server administration.