Created
October 16, 2018 19:54
-
-
Save kimbo/fae45f4f23db1881b612be1d1c0c363d to your computer and use it in GitHub Desktop.
Linux File Permissions Reference
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
- Found this on http://www.december.com/unix/ref/chmod.html - | |
File permissions | |
Use the chmod command to set file permissions. | |
The chmod command uses a three-digit code as an argument. | |
The three digits of the chmod code set permissions for these groups in this order: | |
Owner (you) | |
Group (a group of other users that you set up) | |
World (anyone else browsing around on the file system) | |
Each digit of this code sets permissions for one of these groups as follows. Read is 4. Write is 2. Execute is 1. | |
The sums of these numbers give combinations of these permissions: | |
0 = no permissions whatsoever; this person cannot read, write, or execute the file | |
1 = execute only | |
2 = write only | |
3 = write and execute (1+2) | |
4 = read only | |
5 = read and execute (4+1) | |
6 = read and write (4+2) | |
7 = read and write and execute (4+2+1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment