Linux chmod Permissions Reference

The chmod values admins use most often. Download: CSV · JSON.

OctalSymbolicTypical use
400r--------Owner read only (private keys)
600rw-------Owner read/write (SSH keys, secrets)
644rw-r--r--Standard file: owner write, everyone read
664rw-rw-r--Owner and group write, others read
666rw-rw-rw-Everyone read/write (avoid)
700rwx------Owner full access only (~/.ssh)
740rwxr-----Owner full, group read
750rwxr-x---Owner full, group read/execute
755rwxr-xr-xStandard executable/directory
775rwxrwxr-xShared group-writable directory
777rwxrwxrwxEveryone full access (avoid)
1777rwxrwxrwtSticky bit directory (/tmp)
2775rwxrwsr-xSetgid shared directory
4755rwsr-xr-xSetuid executable (e.g. passwd)