Reference

chmod permissions reference.

What every chmod number means — the digit table and the common values like 644 and 755, explained.

Tap any row to copy the value in the first column.

Permission digits (0–7)

OctalSymbolicPermissions
0---No permission
1--xExecute only
2-w-Write only
3-wxWrite + execute
4r--Read only
5r-xRead + execute
6rw-Read + write
7rwxRead + write + execute

Common chmod values

ValueSymbolicTypical use
644rw-r--r--Files: owner edits, everyone else reads
755rwxr-xr-xFolders & scripts: owner full control, others read/run
600rw-------Private files: only the owner can read or write
700rwx------Private folders: only the owner has access
664rw-rw-r--Group-editable files
775rwxrwxr-xGroup-editable folders
640rw-r-----Owner edits, group reads, others nothing
666rw-rw-rw-Everyone can read & write (rarely safe)
777rwxrwxrwxEveryone can do everything (avoid)

How chmod numbers work

A Unix permission like 755 is three digits, one each for the owner, the group, and everyone else. Each digit is the sum of three values: read = 4, write = 2, execute = 1. Add them up to get the digit — read + write + execute is 4 + 2 + 1 = 7, read + execute is 4 + 1 = 5, read only is 4. So 755 means the owner can read, write and execute (7), while the group and others can read and execute but not write (5). Once you internalise 4-2-1, you can read any permission at a glance.

The values you'll use

In practice you reach for a handful. 644 is the standard for files — you can edit them, everyone else can read them. 755 is the standard for directories and executable scripts, since directories need the execute bit to be entered. 600 locks a file to just its owner, which is what SSH expects for private keys. Be wary of 777: it lets anyone read, write and execute, and is almost never the right answer despite being a tempting quick fix. The execute bit means "run this" for a file but "enter this" for a directory — a common source of confusion. For the commands themselves, see the Linux commands.

FAQ

What does chmod 755 mean?
Owner can read, write and execute (7 = 4+2+1); group and others can read and execute but not write (5 = 4+1). It's the usual setting for directories and runnable scripts.
What's the difference between 644 and 755?
644 (rw-r--r--) has no execute bit — correct for ordinary files. 755 (rwxr-xr-x) adds execute, needed for directories (to enter them) and for scripts you want to run.
Is chmod 777 safe?
Rarely. 777 grants read, write and execute to everyone, which is a security risk. It's often used as a lazy fix for a permissions problem; a more specific value like 755 or 775 is almost always better.

More references