resync with kernel, add metric and IFF_LOOPBACK
[unix-history] / usr / src / usr.sbin / chown / chgrp.1
.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" @(#)chgrp.1 6.1 (Berkeley) %G%
.\"
.TH CHGRP 1 ""
.UC 5
.SH NAME
chgrp \- change group
.SH SYNOPSIS
.B chgrp
[ -f -R ]
group file ...
.SH DESCRIPTION
.I Chgrp
changes the group-ID of the
.I files
to
.IR group .
The group may be either a decimal GID or
a group name found in the group-ID file.
.PP
The user invoking
.I chgrp
must belong
to the specified group and be the owner of the file, or be the super-user.
.PP
No errors are reported when the
.B \-f
(force) option is given.
.PP
When the
.B \-R
option is given,
.I chgrp
recursively descends its directory arguments
setting the specified group-ID.
.SH FILES
/etc/group
.SH "SEE ALSO"
chown(2),
passwd(5),
group(5)