Chmod Calculator — Visual Unix File Permission Calculator

Free Chmod Calculator — Visual Unix File Permission Builder

This chmod calculator lets you build Unix/Linux file permissions visually by toggling read, write, and execute flags for owner, group, and others — then instantly generates the numeric (octal) notation, symbolic representation, and ready-to-use chmod command. Whether you’re setting permissions on a deployment script, configuring web server file access, or hardening sensitive configuration files, you’ll get the exact permission string without memorizing octal math.

Built for system administrators, DevOps engineers, and web developers who work with Linux servers. Includes common presets like 755, 644, 600, and 777, plus a reverse lookup that converts any permission string back to its toggle representation.

How to Use the Chmod Calculator

Setting file permissions is straightforward with the visual toggle interface.

Step 1: Set Owner Permissions

Toggle the read (r), write (w), and execute (x) flags for the file owner. For scripts that need to be executed, enable all three (rwx = 7). For regular files, read and write (rw- = 6) is standard.

Step 2: Set Group and Others Permissions

Apply the same toggle process for the group and others. Follow the principle of least privilege — grant only the minimum permissions needed.

Step 3: Copy the Output

Copy the numeric notation (e.g., 755), symbolic representation (e.g., rwxr-xr-x), or the complete chmod command.

Understanding Unix File Permissions

Every file and directory in Unix/Linux systems has three permission categories: owner, group, and others. Each can have read (r=4), write (w=2), and execute (x=1). The numeric notation sums these values — rwx = 4+2+1 = 7, r-x = 4+0+1 = 5.

Common Permission Presets

  • 755 (rwxr-xr-x) — Standard for executable scripts and directories.
  • 644 (rw-r–r–) — Standard for regular files.
  • 600 (rw——-) — Private files like SSH keys and config files.
  • 700 (rwx——) — Private executable scripts or directories.
  • 444 (r–r–r–) — Read-only for everyone.
  • 777 (rwxrwxrwx) — Full access for everyone. Avoid in production.

Frequently Asked Questions

What does chmod 755 mean?

chmod 755 sets rwxr-xr-x: the owner can read, write, and execute; group and others can read and execute. This is the standard for web server directories and executable scripts.

What’s the difference between numeric and symbolic chmod notation?

Numeric uses three digits where each is a sum of r=4, w=2, x=1. Symbolic uses letters and operators: chmod u=rw,go=r file.txt. Both are valid — numeric is more common in scripts and documentation.

Related Tools

How Unix File Permissions Work

Every file and directory on a Unix/Linux system has a set of permissions controlling who can read it, write to it, or execute it. Permissions are assigned to three categories of users:

  • Owner (u) — the user who created the file
  • Group (g) — users who belong to the file’s assigned group
  • Others (o) — everyone else

For each category, three permission types can be independently set:

  • Read (r) — value: 4 — can view the file contents (or list directory contents)
  • Write (w) — value: 2 — can modify the file (or create/delete files in a directory)
  • Execute (x) — value: 1 — can run the file as a program (or enter a directory)

Reading Octal Notation

Permissions are expressed as a three-digit octal number. Each digit represents one user category (owner, group, others) and is the sum of the permission values:

  • 7 = read (4) + write (2) + execute (1) — full permissions
  • 6 = read (4) + write (2) — read and write, no execute
  • 5 = read (4) + execute (1) — read and execute, no write
  • 4 = read only
  • 0 = no permissions

Common permission sets:

  • 755 — owner has full access, group and others can read and execute. Standard for web server directories.
  • 644 — owner can read/write, others can only read. Standard for web server files.
  • 600 — only the owner can read or write. Used for SSH keys and private config files.
  • 777 — everyone has full access. Almost always wrong. Avoid.

How to Use This Calculator

Toggle the checkboxes for read, write, and execute across the three user categories. The octal notation and the full chmod command update instantly. Copy the command and run it directly in your terminal.

Common Use Cases

Web server configuration — Apache and Nginx typically expect directories at 755 and files at 644. If your site shows a 403 Forbidden error, incorrect permissions are the first thing to check.

SSH key files — Your ~/.ssh/id_rsa private key must be 600 (owner read/write only). SSH will refuse to use a key file with more permissive settings and show a “WARNING: UNPROTECTED PRIVATE KEY FILE” error.

Executable scripts — Shell scripts need execute permission to run directly (./script.sh). Use 755 for shared scripts or 700 if only the owner should run it.

WordPress file permissions — WordPress recommends 755 for directories and 644 for files. wp-config.php should be 600 or 640.

Frequently Asked Questions

What does chmod mean?

chmod stands for “change mode” — it’s the Unix command for changing file permission modes. It’s been part of Unix since Version 1 and is available on every Linux and macOS system.

What’s the difference between 644 and 664?

At 644, the group can only read. At 664, the group can also write. For files shared between multiple users in the same group (a common setup in web hosting), 664 makes collaboration easier. For public web files, 644 is safer.

Can I use chmod on Windows?

Not natively. Windows uses a different permission model (ACLs). If you’re using WSL (Windows Subsystem for Linux) or Git Bash, chmod works within those environments. For real file system permissions on Windows, use the Security tab in file Properties.

What is the sticky bit (chmod 1755)?

The sticky bit (the leading 1 in a four-digit mode like 1755) prevents users from deleting files they don’t own in a shared directory. It’s typically set on /tmp. This calculator handles the standard three-digit octal; four-digit special modes (setuid, setgid, sticky bit) are outside its scope.

Related Tools

  • JWT Decoder — Inspect auth tokens on servers where you’re setting up file permissions
  • YAML Validator — Validate server config files often found alongside permission-sensitive directories
  • Cron Expression Generator — Set up scheduled scripts that need the right execute permissions
Scroll to Top