Skip to content
kitify
Esc
↑ ↓ to moveEnter to open

Chmod calculator

Tick the permissions you want and copy the chmod command. Or type a number like 755 to see what it means.

Permission checkboxes
PermissionOwnerGroupPublic
Read
Write
Execute
Special

Symbolic-rwxr-xr-x

chmod 755 example.sh

How chmod numbers work

Each digit is the sum of read (4), write (2) and execute (1), for the owner, the group and everyone else, in that order. So 7 = 4+2+1 (read, write, run), 5 = 4+1 (read, run) and 4 = read only.

NumberSymbolicTypical use
755rwxr-xr-xFolders, scripts, programs
644rw-r--r--Web pages, images, config files
600rw-------SSH private keys, .env files
700rwx------Private folders like ~/.ssh
777rwxrwxrwxAvoid: anyone can change the file

Special permissions

A fourth leading digit sets setuid (4), setgid (2) and the sticky bit (1). The sticky bit on a shared folder like /tmp (1777) stops users deleting each other's files. They show as s or t in the symbolic form.

Questions people ask

What does chmod 755 mean?

The owner can read, write and execute; the group and everyone else can read and execute. It's the usual setting for folders and scripts.

Should I ever use chmod 777?

Almost never. It lets any user or compromised process change the file. Fix the file's owner with chown instead.

What's the -R option?

It applies the permissions to a folder and everything inside it. Be careful: files usually want 644 and folders 755, so use find with -type f and -type d for mixed trees.