morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base
Log | Files | Refs

chmod.1 (957B)


      1 .Dd January 17, 2015
      2 .Dt CHMOD 1 sbase\-VERSION
      3 .Sh NAME
      4 .Nm chmod
      5 .Nd change file mode
      6 .Sh SYNOPSIS
      7 .Nm chmod
      8 .Op Fl R
      9 .Ar mode
     10 .Op Ar file ...
     11 .Sh DESCRIPTION
     12 .Nm
     13 changes the file mode of the given files.
     14 .Pp
     15 If
     16 .Ar mode
     17 is
     18 .Em octal
     19 "[sog]e"
     20 .Bl -tag -width Ds
     21 .It s
     22 .Xr sticky 1 => s += 1
     23 .Pp
     24 .Xr setgid 2 => s += 2
     25 .Pp
     26 .Xr setuid 4 => s += 4
     27 .It o|g|e
     28 owner | group | everyone
     29 .Pp
     30 .Xr execute 1 => o|g|e += 1
     31 .Pp
     32 .Xr write 2 => o|g|e += 2
     33 .Pp
     34 .Xr read 4 => o|g|e += 4
     35 .El
     36 .Pp
     37 Leading zeroes may be omitted.
     38 .Pp
     39 If
     40 .Ar mode
     41 is
     42 .Em symbolic
     43 "[ugoa]*[+-=][rwxst]*"
     44 .Bl -tag -width Ds
     45 .It u|g|o|a
     46 owner | group | other (non-group) | everyone
     47 .It +|-|=
     48 add | remove | set
     49 .It r|w|x|s|t
     50 read | write | execute | setuid and setgid | sticky
     51 .El
     52 .Sh OPTIONS
     53 .Bl -tag -width Ds
     54 .It Fl R
     55 Change modes recursively
     56 .El
     57 .Sh STANDARDS
     58 The
     59 .Nm
     60 utility is compliant with the
     61 .St -p1003.1-2008
     62 specification.
     63 .Pp
     64 The
     65 .Op Fl R
     66 flag is an extension to that specification.