Back

CHMOD Configurator

Calculate Linux file permissions using checkboxes, octal numbers, or symbolic notation.

Owner

Group

Public

Special bits

A fourth digit in front, like the 1 in 1777. Most files and folders don't need one.

Symbolic Notation

-rwxr-xr-x

Command Line Example

chmod 755 filename
Or apply recursively to all files and directories inside a folder:
chmod -R 755 foldername/

How to use this tool

  1. Identify the three permission classes

    Linux permissions apply to three classes: Owner (the user account that currently owns the file, often the creator initially), Group (a collection of users sharing permissions), and Public (everyone else). Decide what each class should be able to do.

  2. Choose Read, Write, and Execute for each class

    For each class, toggle Read (4), Write (2), and Execute (1). The calculator updates the octal code and symbolic notation live as you check or uncheck boxes.

  3. Read the octal code

    Add the values for each class to get a single digit: Read + Write + Execute = 7, Read + Execute = 5, Read only = 4. Concatenate the three digits (Owner, Group, Public) to get the octal code like 755 or 644.

  4. Run the chmod command

    Apply the permissions in your terminal with `chmod <octal> <file>`, for example `chmod 755 script.sh`. Add the -R flag to apply recursively to a directory and everything inside it.

About this tool

The CHMOD Configurator turns Linux file permissions into checkboxes. Instead of memorizing octal numbers, click the permissions you want to grant the Owner, Group, and Public.

As you toggle a box, the calculator updates the octal code (like 755 or 644) and the matching symbolic notation. You can also type an octal number into the input box to see which permissions it grants.

Understanding the three classes

Linux permissions are applied to three distinct classes of users. The 'Owner' is the user account that currently owns the file, often the creator initially. The 'Group' is a collection of users who share the same permissions. 'Public' (or Others) applies to everyone else on the system.

The fourth digit: setuid, setgid and sticky

A mode can have a fourth digit in front. Setuid is 4, setgid is 2 and sticky is 1, and 0 sets none of them. In the symbolic notation, setuid takes the owner's execute spot, setgid the group's and sticky the public's. A small s or t means execute is on too, and a capital S or T means it's off.

Setuid runs a program as its owner. That's why /usr/bin/passwd is 4755 (-rwsr-xr-x): it runs as root, so it can save your new password in a file only root can write. Setgid on a folder gives new files the folder's group, which suits a shared project folder at 2775 (drwxrwsr-x). Sticky is for shared folders. /tmp is 1777 (drwxrwxrwt), so everyone can create files there but can only delete their own.

Folders have one catch. GNU chmod, which most Linux systems use, keeps setuid and setgid on a folder when a numeric mode leaves them off. So chmod 755 on a 2775 folder gives 2755 (drwxr-sr-x), and chmod 0755 does too. To turn setgid off, run chmod g-s, or u-s for setuid. You can also add one more zero, like chmod 00755, which sets both exactly as the mode says.

When to use -R (Recursive)

By default, running a chmod command only changes the permission of that exact file or folder. If you want to change a folder and every file inside it at once, add the -R flag (e.g. chmod -R 755 myfolder).

Popular permission scenarios

Pre-explained permission sets with octal, symbolic, and use-case guidance.

Frequently asked questions

What does chmod 777 mean?
It makes the file or directory readable, writable, and executable by everyone (Owner, Group, and Public). That's highly insecure. Use it only as a temporary troubleshooting step, never in production.
What does chmod 755 mean?
A permission of 755 is standard for web server directories and executable scripts. It means the Owner has full rights (Read, Write, Execute), while the Group and Public can only Read and Execute (but not modify) the file.
What does chmod 644 mean?
A permission of 644 is standard for web server files (like HTML or PHP files). It means the Owner can Read and Write the file, but everyone else can only Read it.
Is chmod 0755 the same as 755?
Yes. When a mode has four digits, the first one sets the special bits, and 0 means none. So chmod 0755 and chmod 755 both give -rwxr-xr-x, and 0644 is the same as 644. Ansible's own examples write modes this way, like '0644'.
How do the numbers 4, 2, and 1 work?
Linux file permissions use a bitwise system: 4 stands for Read, 2 stands for Write, and 1 stands for Execute. When you add them together, you get unique combinations. For example, Read + Execute = 4 + 1 = 5. Read + Write + Execute = 4 + 2 + 1 = 7.

Use this tool on your own site

Drop the CHMOD Configurator into your blog, docs, or CMS with one iframe snippet. Free, no signup. See all embeddable tools