summaryrefslogtreecommitdiff
path: root/sys/man/1/chgrp
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 16:49:47 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 16:49:47 +0300
commitb41b9034225ab3e49980d9de55c141011b6383b0 (patch)
tree891014b4c2e803e01ac7a1fd2b60819fbc5a6e73 /sys/man/1/chgrp
parentc558a99e0be506a9abdf677f0ca4490644e05fc1 (diff)
Import sources from 2011-03-30 iso image - sys/man
Diffstat (limited to 'sys/man/1/chgrp')
-rwxr-xr-xsys/man/1/chgrp36
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/man/1/chgrp b/sys/man/1/chgrp
new file mode 100755
index 000000000..f1924773f
--- /dev/null
+++ b/sys/man/1/chgrp
@@ -0,0 +1,36 @@
+.TH CHGRP 1
+.SH NAME
+chgrp \- change file group
+.SH SYNOPSIS
+.B chgrp
+[
+.B -ou
+]
+.I group file ...
+.SH DESCRIPTION
+The group of
+each named file
+is changed to
+.IR group ,
+which should be a name known to the server holding the file.
+.PP
+A file's group can be changed by the file's owner, if the
+owner is a member of the new group,
+or by the leader of both
+the file's current group and the new group.
+.PP
+The
+.B -o
+and
+.B -u
+option are synonyms; they specify that the
+.I owner
+is to be set, rather than the group.
+They are ineffectual unless the file server is in the bootstrap
+state that permits changing file ownership.
+.SH SOURCE
+.B /sys/src/cmd/chgrp.c
+.SH "SEE ALSO"
+.IR ls (1),
+.IR chmod (1),
+.IR stat (2)