Linux

chmod Calculator

Calculate Linux chmod permissions: check read/write/execute per group or enter symbolic notation, then copy the command.

If provided, it overrides the menus above (e.g. u=rwx,g=rx,o=).

How it works

Linux permissions are expressed in octal notation: 7 = read+write+execute, 5 = read+execute. 755 means full rights for the owner, read/execute for group and others — standard for directories and executables.

Special bits: setuid (4) executes with the owner's rights (watch out for privilege escalation risks), setgid (2) inherits the group on directories, sticky (1) protects files from other users in a shared directory such as /tmp.

Examples

Web directory

chmod 755.

user7
group5
other5
special
symbolic
Load this example

Administration script

chmod 700: private to the owner.

user7
group0
other0
special
symbolic
Load this example

Symbolic expression

Equivalent to 750.

user7
group5
other5
special
symbolicu=rwx,g=rx,o=
Load this example

Frequently asked questions

What does 777 mean and why avoid it?

Everyone can do anything, including writing executable files: it is a potential flaw. Prefer 755 or 750.

How do you apply it recursively?

chmod -R. Be careful with files and folders that should not receive the same rights: use find to distinguish them.

What is umask for?

umask defines the rights removed by default when a file is created. umask 022 gives 755 to directories and 644 to files.