Chmod Calculator — Linux File Permissions Made Easy

Toggle permissions visually or type an octal number to calculate Linux file permissions. Copy the chmod command instantly.

Common Presets

Type

Role
Read
r (4)
Write
w (2)
Execute
x (1)
Octal
Owner
User
7
Group
Group
5
Others
World
5

Special Permissions

Octal Notation

7
Owner
5
Group
5
Others

Symbolic Notation

rwxr-xr-x
rwx
Owner
r-x
Group
r-x
Others

Command Preview

bash
$ chmod 755 myfile.sh

Summary

Octal:
755
Symbolic:
rwxr-xr-x
Type:
file

Building a UI by hand? Skip to the final design with Banani AI.

Generate UI from text · Export to Figma & HTML · 100k+ designers

Try Banani free

Affiliate link — we may earn a commission at no extra cost to you.

More Free Developer Tools

What is a Chmod Calculator?

A chmod calculator is an online chmod calculator that converts between octal and symbolic notation for Unix and Linux file permissions without requiring you to memorize numeric values. The chmod command -- short for change mode -- controls file access on every Unix or Linux file system by assigning read, write, and execute permissions to the file owner, group members, and others.

Linux file permission values are expressed as a three-digit octal number like 755 or 644, or in symbolic format like rwxr-xr-x. Each digit in the octal represents one triad -- owner, group, and others -- where read equals 4, write equals 2, and execute equals 1. Summing those numeric values gives you the permission value for each triad. This chmod permission calculator handles that conversion instantly so you can set file and directory permissions correctly the first time.

Octal755
Symbolicrwxr-xr-x
Commandchmod 755 file
Special4755 (setuid)

Why Use a Chmod Permission Calculator?

Setting file permissions in Linux by hand means juggling numeric values, symbolic representations, and special modes. This permissions calculator removes the guesswork and prevents costly mistakes on production environments.

Prevent Security Misconfigurations

An overly permissive permission combination like chmod 777 grants full permissions to everyone -- including unauthorized users. This permissions calculator warns you before you apply a dangerous permission to files or directories on web servers or production environments.

Avoid Common Permission Mistakes

777 is the most misused linux permission. Preventing unauthorized access to private keys, password files, and credentials means using correct permissions like chmod 600, not full access for all. The calculator to convert and validate before you run saves real trouble.

Save Time With Visual Feedback

Rather than memorize octal arithmetic, toggle read, write, and execute checkboxes for owner, group, and others. The chmod generator updates the octal, symbolic notation, and chmod command live so you see the exact output before copying it to your command-line.

Features of the Chmod Calculator

Everything you need to calculate chmod values, understand linux file permission bits, and produce copy-ready chmod commands for files or directories.

Interactive Permission Grid

Toggle read, write, and execute permissions for owner, group, and others using a visual checkbox grid. Numeric values update instantly alongside the symbolic format output.

Octal and Symbolic Conversion

Instant conversion between octal numeric values and symbolic notation. Enter an octal like 755 and get rwxr-xr-x, or type a symbolic expression and get the matching octal. Supports the full rwx triad for all three groups.

Live Chmod Command Preview

See the complete chmod command ready to copy and run in your terminal. The command used updates in real time as you adjust permissions -- no need to construct it manually.

Special Modes Support

Full support for special modes: setuid bit (set user id), setgid bit (set group id), and sticky bit. The leftmost digit in a four-digit octal handles these -- the calculator shows exactly what each special bit does.

Security Warnings

Real-time warnings flag insecure permission values like 777 before you copy the command. Overly permissive file or directory permissions on web servers are one of the most common security mistakes in linux file system management.

Common Permission Presets

One-click presets for the most common permission values -- chmod 755 for directories and executable scripts, chmod 644 for regular files, chmod 600 for private keys. No octal arithmetic needed for these common permission combinations.

How to Use the Chmod Calculator

Calculate linux file permissions and generate a ready-to-run chmod command in four steps -- no manual octal arithmetic required.

1

Enter an Octal or Symbolic Value

Type an octal code like 644 or a symbolic expression like u=rw,g=r,o= to prefill the grid. Or start from scratch and toggle checkboxes for each permission combination you need.

2

Toggle Read, Write, and Execute

Check or uncheck read, write, and execute permissions for owner, group, and others. Use chmod to set file and directory permissions with write and execute permissions only where genuinely needed.

3

Add Special Bits If Needed

Toggle setuid, setgid bit, or sticky bit for directories and executable scripts that require special modes. The leftmost digit updates automatically alongside the rwxr-xr-x symbolic notation.

4

Copy the Chmod Command

Copy the generated chmod command and run it on your server. The output includes the full unix and linux command with the correct octal or symbolic format ready for your terminal.

Common Permission Values

755

Owner: read, write, execute. Group and others: read and execute. Standard for directories and executable scripts. Use chmod 755 for directories on web servers.

644

Owner: rw (read and write). Group and others: read-only. The common permission for regular files on web servers like 755 or 644.

700

Full permissions for the file owner only. Group and others have no file access. Good for private scripts and application directories.

600

Owner read and write only. No execute permissions for anyone. The correct permissions for private keys, credentials, and password files.

777

Full access for everyone. chmod 777 is overly permissive and should never be used in production environments -- it grants write and execute permissions to all users.

400

Owner read-only. No permissions for group or others. Useful for read-only config files and shared executables that should never be modified.

Security Tips for File Permissions in Linux

Use chmod 755 for Directories and Executables

chmod 755 for directories and executable files gives the file owner full permissions and grants read and execute to group and others. This is the standard for public-facing directories on web servers and for shared executables.

Use chmod 600 for Sensitive Files

Private keys, password files, and credentials should always use chmod 600. This restricts file access to the file owner only -- permissions for owner only, no permissions for group or others, preventing unauthorized access completely.

Avoid chmod 777 in Production

chmod 777 grants full permissions to every user on the file system. It is the most dangerous common permission value -- 777 should never appear on production environments, web server files, or any file containing sensitive data.

Use Setuid Carefully

The setuid bit causes an executable to run with the file owner's privileges rather than the calling user's. This is powerful but risky -- only apply setuid to well-audited shared executables where elevated privilege is genuinely required.

Frequently Asked Questions

Common questions about chmod and Linux file permissions

What does chmod 755 mean?

+

chmod 755 sets rwxr-xr-x permissions: the file owner gets read, write, and execute, while group and others get read and execute permissions only. It is the standard linux permission for directories and executable scripts on web servers. Use chmod 755 for directories to allow traversal without write access.

What does each octal digit represent?

+

Each digit in an octal permission value represents one triad: the leftmost digit is the file owner, the middle is the group, and the rightmost is others. Within each triad, read equals 4, write equals 2, and execute equals 1. Sum the numeric values to get the digit -- read and execute together equal 5, giving permissions like 755.

What is the difference between chmod 777 and chmod 755?

+

chmod 777 grants full permissions -- read, write, and execute -- to the owner, group, and all other users. It is overly permissive and a major security risk on production environments. chmod 755 restricts write access to the file owner only, which is the correct permissions standard for directories and executable files on unix-like systems.

What are setuid, setgid, and sticky bit?

+

These are special modes stored in the leading digit of a four-digit octal. The setuid bit (set user id, value 4) causes an executable to run with the file owner's privileges. The setgid bit (set group id, value 2) makes new files in a directory inherit the directory's group. The sticky bit (value 1) prevents users from deleting other users' files in a shared directory -- commonly used on /tmp.

What are the default permissions for files and directories in Linux?

+

On most Linux systems, regular files are created with 644 (rw-r--r--) and directories with 755 (rwxr-xr-x) by default, controlled by the umask setting. The umask subtracts permissions from the maximum -- a umask of 022 applied to a directory's full permissions of 777 gives 755. Use this online chmod calculator to verify what a specific permission combination produces before applying it.

How do I check file permissions in Linux?

+

Run ls -la in your terminal to list files or directories with their symbolic permissions displayed. The output shows the file type and permission triad for owner, group, and others. You can also use the stat command for a more detailed breakdown including numeric permission values. Use the chmod calculator to decode any permission string you see in the output.