Skip to content

Instantly share code, notes, and snippets.

@RickJP
Created November 24, 2019 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RickJP/1ff919a35b19c0b9e629789f706823c6 to your computer and use it in GitHub Desktop.
Save RickJP/1ff919a35b19c0b9e629789f706823c6 to your computer and use it in GitHub Desktop.
LINUX - PERMISSIONS
Common File Permissions
Setting Numerical Meaning
-rw------- (600) Only the owner has read and write permissions.
-rw-r--r-- (644) Only the owner has read and write permissions; the group and others have read only.
-rwx------ (700) Only the owner has read, write, and execute permissions.
-rwxr-xr-x (755) The owner has read, write, and execute permissions; the group and others have only read and execute.
-rwx--x--x (711) The owner has read, write, and execute permissions; the group and others have only execute.
-rw-rw-rw- (666) Everyone can read and write to the file. (Be careful with these permissions.)
-rwxrwxrwx (777) Everyone can read, write, and execute. (Again, this permissions setting can be hazardous.)
Common Directory Permissions
Setting Numerical Meaning
drwx------ (700) Only the user can read, write in this directory.
drwxr-xr-x (755) Everyone can read the directory; users and groups have read and execute permissions.
Numeric Meanings
Numeric Readable Explanation
0 — No access.
1 –x Execute access.
2 -w- Write access.
3 -wx Write and execute access.
4 r– Read access.
5 r-x Read and execute access.
6 rw- Read and write access.
7 rwx Read, write and execute access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment