Pages

Topics

Tools

↑↓navigate↵openescclose
Encoding & Security

chmod Calculator

Turn Read, Write and Execute checkboxes into octal and symbolic permissions, read 755 or rwxr-xr-x in both directions, and copy the chmod, umask and Dockerfile lines you need.

Runs entirely in your browser — nothing you paste is uploaded.

Presets
-rwxr-xr-x
Owner
Group
Public

Each digit adds 4 for read, 2 for write and 1 for execute, in the order owner, group and others. The fourth digit carries setuid, setgid and sticky.

live
Mode
Octal
755
Symbolic
rwxr-xr-x
ls -l
-rwxr-xr-x
Copy one line
File
chmod 755 public/
Recursive
chmod -R 755 ./public
find files
find . -type f -exec chmod 755 {} +
find directories
find . -type d -exec chmod 755 {} +
umask
umask 022
Dockerfile
COPY --chmod=755 . /app
install
install -m 755 key.pem /root/.ssh/id_rsa

Linux permissions cheat sheet

quick reference
755 / rwxr-xr-x
The owner may write, everyone may read and execute. The standard mode for a public directory and for a script you run.
644 / rw-r--r--
The owner writes, everyone reads: index.html, app.yaml and most files in a repository.
600
Only the owner can read or write. An SSH private key that group or others can read is refused by ssh, so id_ed25519 stays 600.
chmod u+x file
Symbolic mode changes one class: u, g, o or a, then + or - or =, then r, w or x. chmod a-w makes a tree read-only.
4 setuid / 2 setgid / 1 sticky
The fourth digit. 4755 runs a binary with its owner's rights, and 1777 on /tmp lets anyone write but only an owner delete.
umask 022
Bits removed from every new file: 022 creates files as 644 and directories as 755, which is the usual default on servers.

Frequently asked questions

answered below the tool
What does chmod 755 mean?

The owner can read, write and execute while group and others can read and execute. Each digit adds 4 for read, 2 for write and 1 for execute, in the order owner, group, others.

Why is 600 required for an SSH private key?

ssh refuses a key that group or others can read, because a copied key is a stolen identity. chmod 600 id_ed25519 fixes it, and the ~/.ssh directory stays 700.

What is the difference between 644 and 755?

644 is a normal file: the owner writes and everyone reads. 755 adds execute for everyone, which a directory needs to be entered and a script needs to run.

All Linux guides