Developer
Toolin.io

How to Set File Permissions

4 min readDeveloper

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

  1. 1
    Open chmod Calculator

    Go to the chmod Calculator on Toolin.

  2. 2
    Toggle permissions

    Set read, write, execute for owner, group, and others.

  3. 3
    Read the numeric value

    Note the octal number like 755 or 644.

  4. 4
    Copy the command

    Use the generated chmod command on your server.

Chmod Calculator

Calculate standard octal and symbolic file permissions

Open Tool

Step-by-Step: Calculate chmod Permissions

1
Open the chmod Calculator

Navigate to the chmod Calculator on Toolin.

2
Set permissions for each role

Toggle read (r), write (w), and execute (x) permissions for owner, group, and others using the checkboxes.

3
Read the numeric value

The tool displays the corresponding numeric (octal) value like 755, 644, or 600.

4
Copy the chmod command

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.

Related How-To Guides

Related Tools