Skip to content

Instantly share code, notes, and snippets.

@philpicton
Created May 12, 2023 20:06
Show Gist options
  • Select an option

  • Save philpicton/2b27652aa8ea243ed041cbee9330385b to your computer and use it in GitHub Desktop.

Select an option

Save philpicton/2b27652aa8ea243ed041cbee9330385b to your computer and use it in GitHub Desktop.
Linux permissions.md
OWNER                  GROUP                OTHERS
400  200  100          40   20    10        4    2     1
read write execute     read write execute   read write execute

Common Permissions

# everyone can read/write/execute
rwxrwxrwx           chmod 777 filename

# everyone can read/execute
# only owner can read/write/execute
rwxr-xr-x           chmod 755 filename

# everyone can read
# only owner can write
rw-r--r--           chmod 664 filename
# only owner can read/write
rw-------           chmod 600 filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment