-rw-r--r--
symbolic notation
| Read (r) | Write (w) | Execute (x) | # | |
|---|---|---|---|---|
| owner | 6 | |||
| group | 4 | |||
| other | 4 |
What this means
• Owner can read, write
• Group can read
• Others can read
Common Presets
chmod stands for 'change mode' — the Unix command used to set file or directory permissions. Permissions control who can read, write, or execute a file: the owner, the group, or others.
755 means: owner has read+write+execute (7), group has read+execute (5), others have read+execute (5). It is the standard permission for publicly accessible directories and executable files.
644 means: owner has read+write (6), group has read only (4), others have read only (4). It is the standard permission for regular files like HTML, CSS, or config files.
Each group of 3 characters represents owner, group, and others. 'r' = read, 'w' = write, 'x' = execute, '-' = no permission. So rwxr-xr-x means owner has full access, group and others have read+execute.