Skip to content
Private: files never leave your device

Chmod Permissions Chart

Chmod sets who may read, change or run a file on Linux, macOS and other Unix-like systems. A mode such as 755 or 644 is three digits, one each for the owner, the group and everyone else, and each digit is a sum of 4 for read, 2 for write and 1 for execute. This chart lists every digit, the common modes, the letter form that ls -l shows and the special bits, checked against the POSIX standard.

Chmod numbers add 4 for read, 2 for write and 1 for execute, with one digit each for the owner, the group and others, so 755 means rwxr-xr-x: the owner can read, write and execute, and everyone else can read and execute

A chmod number has one digit for the owner, one for the group and one for everyone else, and each digit adds 4 for read, 2 for write and 1 for execute: 7 is rwx, 6 is rw-, 5 is r-x, 4 is r-- and 0 is no access. So chmod 755 file gives the owner full access and lets everyone else read and run it, and chmod 644 file lets the owner read and write while everyone else can only read. The values below come from the POSIX chmod and ls specifications (IEEE Std 1003.1-2024), checked on 25 November 2026.

What each digit means

DigitSumLettersAccess
00---No access
11--xExecute only
22-w-Write only
32 + 1-wxWrite and execute
44r--Read only
54 + 1r-xRead and execute
64 + 2rw-Read and write
74 + 2 + 1rwxRead, write and execute

The digits follow from the POSIX octal table: 0400, 0200 and 0100 are the owner's read, write and execute bits, 0040, 0020 and 0010 are the group's, and 0004, 0002 and 0001 are everyone else's. Add the bits you want and you get the mode. POSIX says a numeric mode sets the bits absolutely: every bit you do not include is cleared.

Common chmod modes

Models -l lettersOwnerGroupOthersTypical use
777rwxrwxrwxAllAllAllAlmost never: anyone can change the file
775rwxrwxr-xAllAllRead, runShared project folders
755rwxr-xr-xAllRead, runRead, runScripts, programs and web folders
750rwxr-x---AllRead, runNoneFolders for one team only
700rwx------AllNoneNonePrivate folders such as ~/.ssh
664rw-rw-r--Read, writeRead, writeReadFiles a group edits together
644rw-r--r--Read, writeReadReadWeb pages, images, config that others may read
640rw-r-----Read, writeReadNoneConfig files with passwords read by a service group
600rw-------Read, writeNoneNonePrivate keys and personal secrets
444r--r--r--ReadReadReadRead-only for everyone
400r--------ReadNoneNoneA secret the owner must not change by accident

Files and folders behave differently

For a file, execute means it can be run as a program. For a directory, POSIX calls the same bit search permission: without it, nobody can enter the folder or reach the files inside, even if they know the names. That is why folders normally get 755 or 700 while plain files get 644 or 600. A folder set to 644 looks readable but cannot be opened.

Letter form: what ls -l shows

The POSIX ls specification defines the ten characters at the start of each ls -l line. The first is the type: - regular file, d directory, l symbolic link, b block device, c character device, p FIFO and s socket. Then come three groups of three for the owner, the group and others, each read, write, execute. An extra character after them, often +, means the file has another access control method such as an ACL.

Symbolic mode: chmod with letters

PartLettersMeaning
Whou, g, o, aOwner (user), group, others, all three
Operator+, -, =Add, remove, set exactly
Permissionr, w, xRead, write, execute or search
PermissionXExecute only for directories and for files that already have an execute bit
Permissions, tSet user or group ID, and the sticky (restricted deletion) bit
CommandEffect
chmod u+x script.shLets the owner run the script
chmod go-w fileRemoves write access for the group and others
chmod a-w fileRemoves write access for everyone
chmod u=rw,go=r fileSame as 644
chmod -R a+X folderMakes every folder enterable without making plain files executable

The capital X is useful with -R, the one option POSIX defines for chmod, because it fixes folder access across a whole tree without turning every document into a program. If you leave out the who letters, as in chmod +x file, POSIX applies the change only where your umask allows it, so the result can differ from chmod a+x file.

Special bits: the fourth digit

ValueNamels -l showsWhat it does
4000Set user IDs or S in the owner execute placeA program runs with its owner's user ID
2000Set group IDs or S in the group execute placeA program runs with its group ID; on folders, behaviour depends on the system
1000Sticky, restricted deletiont or T in the others execute placeOn a shared folder, users can delete only their own files

A lowercase s or t means the execute or search bit is also set; uppercase S or T means it is not. So chmod 1777 /shared shows drwxrwxrwt, and chmod 4755 program shows rwsr-xr-x. With a three digit mode, the special bits are cleared.

SSH key permissions

OpenSSH refuses keys that other users can read. Its ssh manual says ssh will simply ignore a private key file that is accessible by others. The manual gives the rules in words; the modes below are the matching numbers.

PathWhat the ssh manual asks forMatching mode
~/.ssh/Read, write and execute for the user, not accessible by others700
~/.ssh/id_ed25519 and other private keysReadable by the user, not accessible by others600 (or 400)
~/.ssh/id_ed25519.pubNot sensitive, may be readable by anyone644
~/.ssh/authorized_keysRead and write for the user, not accessible by others600
~/.ssh/configRead and write for the user, not writable by others600

Sources and dates

PageCheckedUsed for
POSIX (IEEE Std 1003.1-2024): chmod25 November 2026Octal values, absolute numeric modes, symbolic letters and operators, X, s, t, umask rule, -R
POSIX (IEEE Std 1003.1-2024): ls25 November 2026File type letters, rwx positions, s, S, t and T, alternate access flag
OpenBSD manual: ssh(1)25 November 2026Permission rules for ~/.ssh, private keys, authorized_keys and config

The GNU coreutils manual was rate limited when checked, so nothing on this page relies on GNU-only options. Working with other developer references? See the HTTP status codes list and the hash length chart.

Frequently asked questions

What does chmod 755 mean?

755 gives the owner read, write and execute (7), and the group and everyone else read and execute (5). ls -l shows it as rwxr-xr-x. It is the usual mode for scripts and folders.

What is the difference between chmod 644 and 755?

644 (rw-r--r--) has no execute bits, so it suits plain files such as web pages and images. 755 (rwxr-xr-x) adds execute, which programs need and folders need so people can open them.

Is chmod 777 safe?

Usually not. 777 lets every user on the system change or replace the file. Give write access only to the owner or a group, for example 755 or 775 for folders.

What permissions should an SSH private key have?

600, readable and writable only by you, or 400. The OpenSSH manual says ssh ignores a private key file that is accessible by others, and ~/.ssh itself should be 700.

What does the t in drwxrwxrwt mean?

It is the sticky or restricted deletion bit, set with chmod 1777 or chmod +t. On a shared folder it stops users deleting files that belong to others.