Created
February 6, 2015 19:34
-
-
Save mayfer/d7390538b34f5d1096d2 to your computer and use it in GitHub Desktop.
file 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
| File Permissions | |
| 1 2 3 | |
| - --- --- --- | |
| d rwx rwx rwx | |
| r: Read | |
| w: Write | |
| x: Execute (execute file as a program, or execute directory meaning see contents of directory) | |
| The starting 'd' flag determines type of file (directory, file, some other stuff i don't know) | |
| 1st part is User's permissions | |
| 2nd part is Group's permissions | |
| 3rd part is Everyone else's permissions | |
| By default, most files are rw- r-- r-- and most directories are rwx r-x r-x | |
| Binary notation is often used to represent permissions. | |
| 1 1 1 in binary = 4 + 2 + 1 = 7 | |
| 777 is full permissions (111 111 111) | |
| 644 is default file permissions (110 100 100) | |
| 755 is default directory permissions (111 110 110) | |
| 600 is highly secure file permissions (100 000 000) e.g. SSH Private Key file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment