Linux Chmod Calculator

Toggle Owner/Group/Public read-write-execute checkboxes or type octal (755, 644, 600) to get exact chmod commands.

How It Works & Reference

Read = 4, Write = 2, Execute = 1. Sum each triad (Owner, Group, Public). Standard recommendations: 644 for files, 755 for directories/scripts, 600 for SSH private keys.

Common Linux Chmod Permissions

OctalSymbolicRecommended Usage
600-rw-------SSH private keys, credentials
644-rw-r--r--HTML, CSS, JS, config files
755-rwxr-xr-xDirectories, executable scripts
700-rwx------Private .ssh directory

Frequently Asked Questions

Why should SSH private keys be chmod 600?

OpenSSH refuses to use private keys readable by group or others; 600 grants read/write only to the owner.

Is chmod 777 ever safe in production?

No. 777 allows any local process or user to modify and execute files, creating a severe security risk.

What is the difference between 755 and 644?

755 adds execute (+x) permission, which is required for directories (to cd into them) and runnable scripts.

Related Tools