octal-only chmod

This commit is contained in:
Connor Lane Smith
2011-05-27 23:48:07 +01:00
parent 73c2898e91
commit 2dfe5c6b8b
4 changed files with 88 additions and 4 deletions

24
chmod.1 Normal file
View File

@@ -0,0 +1,24 @@
.TH CHMOD 1 sbase\-VERSION
.SH NAME
chmod \- change file mode
.SH SYNOPSIS
.B chmod
.RB [ -Rr ]
.RI mode
.RI [ file ...]
.SH DESCRIPTION
.B chmod
changes the file mode for the given files. The
.I mode
is a four digit octal number derived from its comprising bits.
.P
The first digit defines the setuid (4), setgid (2), and sticky (1) attributes.
The second digit defines the owner's permissions: read (4), write (2), and
execute (1); the third defines permissions for others in the file's group; and
the fourth for all other users. Leading zeroes may be omitted.
.SH OPTIONS
.TP
.B -R, -r
change directory mode recursively.
.SH SEE ALSO
.IR chmod (2)