Linux

Permissions Calculator

Decode a Linux permission (octal or symbolic): rights per group, setuid/setgid/sticky bits and security recommendations.

Accepted formats: 644, 2755, -rw-r--r--, u=rwx,g=rx.

How it works

Decoding a permission means translating each digit into rights: 6 = read+write, 4 = read only, 0 = no rights. Mode 644 is the standard for data files, 755 for executables and directories.

Sensitive configuration files (SSH keys, secrets) should be 600, or even 400. Personal directories 700. These settings greatly reduce the attack surface if another account is compromised.

Examples

Standard file

Owner rw, group/others r.

mode644
Load this example

SSH private key

Private to the owner.

mode600
Load this example

setgid bit

Shared directory with group inheritance.

mode2775
Load this example

Frequently asked questions

Why is my SSH key refused?

OpenSSH requires strict permissions: 600 for the private key, 700 for ~/.ssh and 644 for the public key.

How do you find poorly protected sensitive files?

Use find: find / -perm -o+w -type f to list files writable by everyone.