Skip to main content
SyntixDev

Chmod Calculator

DevOps & Frontend

Linux chmod calculator, IPv4 CIDR subnet planner, HTTP status code search, and raw security headers auditor.

100% client-side — files and inputs never leave your browser.

Owner (User)
Group
Public (Others)
Linux Permission Output
Octal755
Symbolic-rwxr-xr-x
$ chmod 755 file.sh
About this tool and how it works

Linux file permissions explained

Every file on Linux and macOS has three permission sets — owner, group, and others — and each set can allow read (r), write (w), and execute (x). Tick the boxes to get the octal number for chmod and the symbolic string shown by ls -l, or type an octal value like 640 to see what it allows.

How the octal number is built

Each permission has a value: read = 4, write = 2, execute = 1. Add them for each set and write the three digits in order owner–group–others. rwx = 4+2+1 = 7, r-x = 4+1 = 5, so rwxr-xr-x is 755.

Common values

  • 644 (rw-r--r--) — regular files: owner edits, everyone reads.
  • 755 (rwxr-xr-x) — directories and scripts/binaries.
  • 600 (rw-------) — private files such as SSH keys and .env files. SSH refuses keys that are readable by others.
  • 700 — private directories, e.g. ~/.ssh.
  • 775 / 664 — shared group work directories.

Directories behave differently

On a directory, read lets you list names, write lets you create and delete files inside it, and execute lets you enter it (cd) and access files by name. A directory without x is effectively locked even if r is set.

Avoid 777

chmod 777 lets every user on the system modify the file. It "fixes" permission errors by removing security; instead, set the correct owner with chown and use 755/644. To apply changes recursively with different values for files and folders: find . -type d -exec chmod 755 {} + and find . -type f -exec chmod 644 {} +.

Frequently asked questions

What does the leading digit in chmod 4755 mean?

An optional fourth digit sets special bits: 4 = setuid, 2 = setgid, 1 = sticky. For example, /tmp uses 1777 so users can only delete their own files.

What is the difference between chmod +x and chmod 755?

chmod +x adds execute permission to the existing permissions for everyone allowed by the umask; 755 sets all permissions to an exact value.

Why does SSH say my key permissions are too open?

Private keys must not be readable by group or others. Run chmod 600 on the key file and chmod 700 on the ~/.ssh directory.

Other tools