Chmod Calculator
Calculate Unix file permissions online with visual checkboxes. Free chmod calculator converting between numeric and symbolic modes.
644-rw-r--r--Commands
chmod 644 filenamechmod -R 644 directory/Common Permissions
Permission Values:
4 = Read (r)2 = Write (w)1 = Execute (x)About Chmod Calculator
Calculate Unix file permissions using the chmod command. Set read, write, and execute permissions for owner, group, and others. Get both numeric (octal) and symbolic notation.
How to Use Chmod Calculator
Set the permissions
Toggle the checkboxes for read, write, and execute for owner, group, and others. Alternatively, enter the octal value directly (something like 755) and the calculator updates the checkboxes to match.
View octal and symbolic forms
The calculator shows the octal (755), the symbolic form (rwxr-xr-x), and the full command (chmod 755 filename). Both representations help verify what you're about to apply before running it.
Copy the command
Copy the 'chmod 755 filename' command to your clipboard, replace 'filename' with your actual file path, and run it in the terminal to apply the permissions.
Verify the applied permissions
After running chmod, verify the result with 'ls -l filename' in the terminal. The output should show the permissions you specified. If it doesn't match, re-run chmod and check for typos in the path or the octal value.
When to Use Chmod Calculator
Server file permissions
Linux and Unix file permissions are typically expressed as octal codes like 755 or 644. The calculator converts between octal and the human-readable rwxr-xr-x form so you can check at a glance what a given permission actually allows. It's useful when configuring web servers, writing deployment scripts, and troubleshooting permission errors that aren't immediately obvious from the command line.
SSH key setup
SSH is fussy about permissions. Private keys need 600, public keys need 644, and the .ssh directory itself needs 700. If the permissions are too permissive, SSH simply refuses to use the keys, which produces confusing errors. The calculator helps verify and calculate the correct values when you're setting up SSH access from scratch or debugging a key that mysteriously stopped working.
Web server troubleshooting
Apache or Nginx returning 403 errors is often a permission problem. Files typically need 644 and directories 755 for the web server user to read them. The calculator helps debug questions like 'what does 700 actually allow?' or 'what octal gives the owner read and write but nothing else?' without trying random values until something works.
Linux administration
DevOps engineers and sysadmins work with chmod regularly. The calculator is useful for permissions audits, security reviews of how files are configured, scripts that need to change permissions programmatically, and training new admins who haven't internalized the octal encoding yet.
Chmod Calculator Examples
Standard file at 644
Octal: 644Owner has rw- (read and write). Group has r-- (read only). Others have r-- (read only). Symbolic form: rw-r--r--.The standard file permission for content the world can read but only you can edit. The owner gets read and write, everyone else gets read only. There's no execute bit, so the file can't be run as a program — appropriate for documents and configuration files.
Executable at 755
Octal: 755Owner has rwx (full access). Group has r-x (read and execute). Others have r-x (read and execute). Symbolic form: rwxr-xr-x.The standard permission for executables and directories. The owner has full control, while everyone else can read and execute. This is the default for programs in /usr/bin and for most directories — the execute bit on a directory is what lets you cd into it.
SSH private key at 600
Octal: 600Owner has rw- (read and write). Group has --- (no access). Others have --- (no access). Symbolic form: rw-------.Restrictive permissions where only the owner has any access at all. SSH requires this for private keys and refuses to use a key that's more permissive. The same pattern is used for secrets, configuration files containing credentials, and other sensitive data.
Tips & Best Practices for Chmod Calculator
- 1.The three octal digits are owner, group, and others, in that order. Each digit sums read (4), write (2), and execute (1) — so 7 is rwx, 6 is rw-, 5 is r-x, 4 is r--, and 0 is no permissions at all. Once you've seen these a few times, reading them becomes automatic.
- 2.Most cases are covered by a small set of values. Files at 644 (everyone can read, only you can write), executables at 755, directories at 755 (you need execute to enter a directory), and sensitive files at 600 (owner only) handle about 95% of what you'll encounter.
- 3.Avoid 777 in production. World-writable permissions are a real security risk and almost never the right answer. Use them only for temporary debugging, and never leave them in place permanently — they're a common audit finding.
- 4.Symbolic chmod is often clearer than octal for incremental changes. 'chmod +x file' adds the execute bit, 'chmod u+w file' adds write for the user, and 'chmod o-r file' removes read for others. These leave existing bits alone rather than replacing the whole permission set.
- 5.Special bits add a fourth octal digit. 1000 is the sticky bit (used by /tmp), 2000 is setgid, and 4000 is setuid (used by sudo). They're uncommon, but they exist and can produce surprising behavior when set deliberately or accidentally.
- 6.Recursive chmod applies the same permissions to everything. 'chmod -R 755 dir' is fine for code directories where you want files executable, but applying file permissions to directories — or vice versa — can break things. Use 'chmod -R u=rwX,g=rX,o=rX dir' (capital X means execute only on directories) to avoid that pitfall.
Frequently Asked Questions
Related Tools
UUID Generator
Generate UUIDs v1 and v4 online with bulk generation support. Free UUID generator for unique identifiers in databases and APIs.
Password Generator
Generate secure random passwords with custom length, uppercase, lowercase, numbers, and special characters. Free online password tool.
Random String Generator
Generate random strings online with custom length and character sets. Free random string generator for tokens, IDs, and test data.
Fake Data Generator
Generate fake names, addresses, emails, and phone numbers online. Free mock data generator for testing, prototyping, and demos.
Cron Expression Generator
Generate and explain cron expressions online with a visual schedule builder. Free cron generator for scheduling tasks and automation.
htpasswd Generator
Generate htpasswd entries for Apache password protection online. Free htpasswd generator with bcrypt, MD5, and SHA1 hash options.