Skip to content

Instantly share code, notes, and snippets.

@gwsu2008
Created February 11, 2018 08:02
Show Gist options
  • Save gwsu2008/41b98f5fbe5d7fee66c142dbe9a571ac to your computer and use it in GitHub Desktop.
Save gwsu2008/41b98f5fbe5d7fee66c142dbe9a571ac to your computer and use it in GitHub Desktop.
Linux chmod
rwx = 111 in binary = 7 (read/write/execute)
rw- = 110 in binary = 6 (read/write)
r-x = 101 in binary = 5 (read/execute)
r-- = 100 in binary = 4 (read)
wx- = 011 in binary = 3 (write/execute)
w-- = 010 in binary = 2 (write)
x-- = 001 in binary = 1 (execute)
a = all, o = others, g = group, u = user
r = read, w = write, x = execute,
X = special execute, s = setuid/gid, t = sticky
chmod u+rw,g-rwx,o-rx <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment