Created
February 11, 2018 08:02
-
-
Save gwsu2008/41b98f5fbe5d7fee66c142dbe9a571ac to your computer and use it in GitHub Desktop.
Linux chmod
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
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