permissions


syntax

dir
 |
 drwx     rwx    rwx
(owner) (group) (other)
   u       g      o

notation

$ chmod u=rwx <file>       # give owner read, write, execute
$ chmod 700 <file>         # give owner read, write, execute
$ chmod 777 <file>         # give owner, group, other read, write, execute

octal vs symbolic

$ chmod u=rwx <file>       # symbolic notation
$ chmod 700 <file>         # octal notation

octal   binary  symbolic
  7      111      rwx
  6      110      rw-
  5      101      r-x
  4      100      r--
  3      011      -wx
  2      010      -w-
  1      001      --x
  0      000      ---

EOF

Previous
Next