Created
March 10, 2014 17:47
-
-
Save hettiger/9470184 to your computer and use it in GitHub Desktop.
This file contains 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
7 = 4+2+1 (read/write/execute) | |
6 = 4+2 (read/write) | |
5 = 4+1 (read/execute) | |
4 = 4 (read) | |
3 = 2+1 (write/execute) | |
2 = 2 (write) | |
1 = 1 (execute) | |
0 = 0 (no permission) | |
chmod 124 /file | |
1 = owner | |
2 = group | |
4 = anyone | |
chmod -R 700 /dir | |
-R = recursive (change permissions of the dir and everything that's inside) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment