Toolvist

Chmod Permissions Calculator

Calculate Linux and Unix file permissions with checkboxes and get the octal and symbolic chmod value. Free chmod calculator that explains each bit.

Class Read (4) Write (2) Execute (1) Value
Owner 7
Group 5
Others 5
Octal
755
Symbolic
rwxr-xr-x
Legend
r=4   w=2   x=1
Command
chmod 755 file

Free Chmod Permissions Calculator

Work out Linux file permissions without guessing. Tick read, write, and execute for the owner, group, and others, and this calculator produces the matching octal number (like 755) and symbolic notation (like rwxr-xr-x) instantly.

The Unix syntax it produces pairs with the Crontab to English Translator for scheduling, and the Curl Command Builder for the same kind of command-line shorthand. To understand a permission string you already have, the Number Base Converter explains the octal arithmetic.

How to use the Chmod Calculator

  1. 1 Choose the file type: file or directory.
  2. 2 Toggle the read, write and execute boxes for owner, group and others.
  3. 3 Read the octal value the toggles produce.
  4. 4 Copy the octal form or the symbolic form, whichever your context uses.

Choosing permissions

The common values are worth memorising because they cover most cases. Six-four-four gives the owner read and write, everyone else read only — correct for a document. Seven-five-five does the same for a directory or an executable. Six-zero-zero restricts a file to its owner entirely, which is right for a private key.

The mistake to avoid is seven-seven-seven. Granting everyone write access means any user or process on the system can modify or replace the file, which for anything that is executed is a serious security problem rather than merely untidy.

  • Four is read, two is write, one is execute.
  • Digits are owner, then group, then others.
  • Six-four-four is the standard document permission.
  • Seven-seven-seven is almost always wrong.

Reading chmod permissions

Each permission class has three bits: read (4), write (2), and execute (1). Adding the granted bits gives a digit from 0 to 7, and the three digits together form the octal mode. For example, owner read+write+execute (4+2+1=7), group read+execute (4+1=5), and others read+execute (4+1=5) combine to 755. Common values are 644 for files and 755 for directories and scripts.

Frequently asked questions

What do the three digits mean?

Each digit describes one class of user, in the order owner, group, others. Within a digit, read is four, write is two and execute is one, and the digit is the sum of the permissions granted. So seven is read, write and execute, six is read and write, and five is read and execute.

What does a leading fourth digit do?

It sets the special bits. The first of the four is setuid or setgid depending on position, which makes a program run with the permissions of its owner or group rather than those of the user invoking it. The last is the sticky bit, which on a directory means only the file's owner can delete it — that is how shared temporary directories work.

What is the difference between execute on a file and on a directory?

On a file it means the file may be run as a program. On a directory it means you may traverse it — you can access files inside by name. Without execute on a directory, read permission lets you list the names but not open anything, which is a confusing state to debug.

Related Developer Tools

Browse all Developer Tools →

You might also need

Tools from other categories that people pair with the Chmod Calculator:

Browse the full tool directory →