Linux Chmod Permissions Calculator (Octal & Symbolic)
Toggle Read, Write, and Execute permissions for Owner, Group, and Public to generate exact octal (755, 644, 600) and symbolic (-rwxr-xr-x) Linux chmod commands.
chmod 755 deploy.sh | Scope | Read (4) | Write (2) | Execute (1) | Digit |
|---|---|---|---|---|
| Owner (u) | 7 | |||
| Group (g) | 5 | |||
| Public / Other (o) | 5 |
Understanding Linux Octal & Symbolic File Permissions (755, 644, 600)
Every file and directory on Linux, macOS, and UNIX servers assigns three separate permission scopesโOwner (u), Group (g), and Public/Other (o)โeach calculated by adding Read (4), Write (2), and Execute (1). Setting proper chmod permissions prevents unauthorized file edits and satisfies strict OpenSSH key checks.
Step-by-Step Instructions
- Check or uncheck Read (4), Write (2), and Execute (1) boxes for Owner, Group, and Public.
- Watch the 3-digit Octal code (e.g. 755) and Symbolic string (e.g. -rwxr-xr-x) update instantaneously.
- Click any safe production preset (600 SSH Key, 644 Web File, 755 Script/Folder, 400 Read-Only Secret) for instant best-practice settings.
- Copy the ready-to-run chmod command directly into your terminal or CI/CD deploy script.
Worked Example & Methodology
Owner Read+Write+Execute (4+2+1 = 7), Group Read+Execute (4+0+1 = 5), and Public Read+Execute (4+0+1 = 5) yields chmod 755 (-rwxr-xr-x)โideal for web directories and executable shell scripts.
Privacy & Verification: Executes 100% locally in your browser with zero server communication.
Frequently Asked Questions
Why does SSH refuse to connect with "Permissions 0644 are too open"?
OpenSSH requires private keys to be readable only by the owner. Running chmod 600 ~/.ssh/id_ed25519 fixes the error immediately.
Why should I NEVER run chmod 777 on a production web server?
777 grants write and execute access to every user and background daemon on the machine, allowing minor vulnerabilities to escalate into full site tampering.
Why do Linux directories need the Execute (x) bit?
On directories, the Execute bit grants permission to enter (cd into) the folder and access files inside itโwithout x, even Read permission cannot open files inside.
What is the difference between 644 and 755 for website files?
Static files (HTML, CSS, JS, images, .conf) should use 644 (non-executable), while folders and runnable scripts use 755.