Skip to content

Instantly share code, notes, and snippets.

@gwsu2008
Last active December 10, 2017 01:28
Show Gist options
  • Save gwsu2008/85fc7426a1d7d19244ed06629119a547 to your computer and use it in GitHub Desktop.
Save gwsu2008/85fc7426a1d7d19244ed06629119a547 to your computer and use it in GitHub Desktop.
chmod-usage
format <user,group,other>
7 read, write and execute 111
6 read and write 110
5 read and execute 101
4 read only 100
3 write and execute 011
2 write only 010
1 execute only 001
0 none 000
u user the owner of the file
g group users who are members of the file's group
o others users who are neither the owner of the file nor members of the file's group
a all all three of the above, same as ugo
r read read a file or list a directory's contents
w write write to a file or directory
x execute execute a file or recurse a directory tree
X special execute
s setuid/gid details in Special modes section
t sticky details in Special modes section
chmod -R u+rwX,g-rwx,o-rx PersonalStuff
chmod -R a+x,a-rw TEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment