Skip to content

chmod calculator: file permissions as numbers and rwx

The chmod calculator translates file permissions in both directions: checkboxes for owner, group and others, the octal number like 755 and the characters like rwxr-xr-x. Plus setuid, setgid and sticky bit, and the ready-to-use command to copy.

chmod 755
rwxr-xr-x
Scripts and directories
chmod 644
rw-r--r--
Files
chmod 600
rw-------
Private keys
Inputs
local
Your inputs do not leave the browser

Calculate file permissions

Tick the checkboxes or type an octal number or the characters. Any readable input sets the other two.

Permissions for
Owner
Group
Others
Special bits

Three or four digits, such as 644.

As shown by ls -l, such as -rw-r--r--.

Only for the command on the right; nothing is changed.

Octal and symbolic

755

-rwxr-xr-x

Command

chmod 755 backup.sh
chmod u=rwx,g=rx,o=rx backup.sh
Owner
ReadWriteExecute
Group
ReadExecute
Others
ReadExecute

How it's calculated

Three digits for owner, group and others, each the sum of read (4), write (2) and execute (1). A fourth digit in front sets the special bits.

Each digit is the sum of its permissions: read 4, write 2, execute 1.
DigitSymbolPermissions
0---no permissions
1--xExecute (1)
2-w-Write (2)
3-wxWrite (2)Execute (1)
4r--Read (4)
5r-xRead (4)Execute (1)
6rw-Read (4)Write (2)
7rwxRead (4)Write (2)Execute (1)

7 = 4 + 2 + 1 → rwx

5 = 4 + 1 → r-x

4 = 4 → r--

754 → -rwxr-xr--

The first character position shows the type: a hyphen for a file, d for a directory. This is followed by three characters each for owner, group and others.

Special bits: 4 (setuid) and 2 (setgid) appear as s in the execute position of owner and group, 1 (sticky bit) as t for others. A capital S or T means: special bit set, execute not.

Common values: octal number, characters, what they are set for.
ValueSymbolCommon for
644-rw-r--r--Files: the owner writes, everyone reads
755-rwxr-xr-xDirectories and executable scripts
600-rw-------Private keys and files with credentials
700-rwx------The ~/.ssh directory and other private directories
640-rw-r-----Configuration that a group may read
750-rwxr-x---Directories and scripts for owner and group
664-rw-rw-r--Files that a group can write to
775-rwxrwxr-xDirectories that a group can write to
444-r--r--r--Read only, for everyone
1777-rwxrwxrwtShared storage like /tmp: everyone writes, only the owner deletes
2775-rwxrwsr-xGroup directory: new files inherit the group
4755-rwsr-xr-xPrograms that run with their owner's permissions

Permissions on your server at ENTRONYX CLOUD

On VPS you work with root access via SSH, on Cloud Servers with your SSH key — you set the permissions of your files yourself.

Common permissions on a Linux server that you log into via SSH.
PathPermissionsWhy
~/.ssh700 drwx------Only you may read and enter the directory
~/.ssh/authorized_keys600 -rw-------The allowed public keys; SSH often rejects permissions that are too open
~/.ssh/id_ed25519600 -rw-------A private key — only the owner reads and writes
/var/www/…/*.php644 -rw-r--r--Website files: readable by the web server, writable only by you
/var/www/…/755 drwxr-xr-xWebsite directories: enter and list for everyone
/opt/app/backup.sh750 -rwxr-x---A script for a cron job: executable for owner and group

In web hosting, SSH is available from the PRO plan; the same values as in the table apply there for files and directories of a website.

Frequently asked questions about chmod and file permissions

Seven questions about digits, characters and special bits. The character strings are calculated by the same function as the calculator.

Can't find your question? The calculator above shows the full calculation for every input.

What does chmod 755 mean?

The owner can read, write and execute (7), group and others can read and execute (5). Symbolically, this is rwxr-xr-x.

Calculate your own permissions

What is the difference between 644 and 755?

With 644 (rw-r--r--), only the owner can write, and no one can execute — common for files. With 755 (rwxr-xr-x), everyone can also execute; for directories, this means entering them.

What permissions does an SSH key need?

Only the owner may read and write the private key, so 600. The ~/.ssh directory is usually set to 700; if the permissions are too open, SSH will reject the private key.

Common permissions on the server

What does x mean for a directory?

For directories, x allows entering and accessing entries whose names you know; r allows listing them. Without x, r alone is of little use.

What are setuid, setgid and the sticky bit?

The leading, fourth digit: with 4 (setuid), a program runs with the permissions of its owner, with 2 (setgid) with those of its group, and in directories, new files inherit the group. With 1 (sticky bit), only the owner of a file can delete it in a directory, as with /tmp at 1777.

How do I set permissions recursively?

The -R switch changes a directory and its contents, but with 755 it also makes every file executable. You can do it separately with find: -type d for directories (755) and -type f for files (644).

Why does ls show a capital S or T?

A capital S or T stands for a special bit in a position without execute permission, such as rwSr--r-- for 4644. For programs, this is almost always a mistake.

A server where you set the permissions

VPS with root access via SSH, cloud servers with your SSH key. The other calculators help with cron jobs, storage and availability.

Read
4
Write
2
Execute
1
Special bits
4, 2, 1