How to Set File Permissions
Unix file permissions control who can read, write, and execute files. The chmod command uses a numeric or symbolic notation that can be confusing. This guide shows you how to calculate the correct permissions using a free visual tool.
Quick Steps
- 1Open chmod Calculator
Go to the chmod Calculator on Toolin.
- 2Toggle permissions
Set read, write, execute for owner, group, and others.
- 3Read the numeric value
Note the octal number like 755 or 644.
- 4Copy the command
Use the generated chmod command on your server.
Chmod Calculator
Calculate standard octal and symbolic file permissions
Step-by-Step: Calculate chmod Permissions
Navigate to the chmod Calculator on Toolin.
Toggle read (r), write (w), and execute (x) permissions for owner, group, and others using the checkboxes.
The tool displays the corresponding numeric (octal) value like 755, 644, or 600.
Copy the complete chmod command to apply the permissions to your file or directory.
Understanding Permission Numbers
# Permission values:
# r (read) = 4
# w (write) = 2
# x (execute) = 1
# Common permission sets:
chmod 755 file # Owner: rwx, Group: r-x, Others: r-x
chmod 644 file # Owner: rw-, Group: r--, Others: r--
chmod 600 file # Owner: rw-, Group: ---, Others: ---
chmod 700 dir # Owner: rwx, Group: ---, Others: ---
chmod 777 file # Everyone: rwx (avoid in production)Common Permission Scenarios
- Web files (HTML, CSS, JS): 644 — readable by everyone, writable only by owner.
- CGI scripts and executables: 755 — executable by everyone, writable only by owner.
- Private configuration files: 600 — accessible only by the owner.
- Shared directories: 775 — group members can write, others can only read.
- SSH keys: 600 — SSH requires private keys to be owner-only.
Frequently Asked Questions
- What does chmod 777 mean?
- chmod 777 gives read, write, and execute permissions to everyone (owner, group, and others). This is generally insecure and should be avoided in production environments.
- What permissions should I use for SSH keys?
- Private SSH keys should be set to 600 (owner read/write only). SSH refuses to use keys with broader permissions for security reasons.
- How do I set permissions recursively?
- Add the -R flag to chmod: chmod -R 755 directory/. Be careful with recursive permissions, especially when directories and files need different permission values.
100% Private & Secure
This tool runs entirely in your browser. Your files and data never leave your device.