Created
November 24, 2019 01:51
-
-
Save RickJP/1ff919a35b19c0b9e629789f706823c6 to your computer and use it in GitHub Desktop.
LINUX - PERMISSIONS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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