Skip to content

Instantly share code, notes, and snippets.

@hettiger
Created March 10, 2014 17:47
Show Gist options
  • Save hettiger/9470184 to your computer and use it in GitHub Desktop.
Save hettiger/9470184 to your computer and use it in GitHub Desktop.
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