resync with kernel, add metric and IFF_LOOPBACK
[unix-history] / usr / src / usr.sbin / chown / chgrp.1
CommitLineData
33e3bdbe
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
b10ae48f 5.\" @(#)chgrp.1 6.1 (Berkeley) %G%
33e3bdbe 6.\"
b10ae48f 7.TH CHGRP 1 ""
33e3bdbe
KM
8.UC 5
9.SH NAME
10chgrp \- change group
11.SH SYNOPSIS
12.B chgrp
b10ae48f 13[ -f -R ]
33e3bdbe
KM
14group file ...
15.SH DESCRIPTION
16.I Chgrp
17changes the group-ID of the
18.I files
19to
20.IR group .
21The group may be either a decimal GID or
22a group name found in the group-ID file.
23.PP
24The user invoking
25.I chgrp
26must belong
27to the specified group and be the owner of the file, or be the super-user.
28.PP
29No errors are reported when the
30.B \-f
31(force) option is given.
b10ae48f
KM
32.PP
33When the
34.B \-R
35option is given,
36.I chgrp
37recursively descends its directory arguments
38setting the specified group-ID.
33e3bdbe
KM
39.SH FILES
40/etc/group
41.SH "SEE ALSO"
42chown(2),
43passwd(5),
44group(5)