xref: /original-bsd/usr.sbin/chown/chgrp.1 (revision 6fcea464)
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.3 (Berkeley) 04/21/88

CHGRP 1 ""
C 5
NAME
chgrp - change group
SYNOPSIS
chgrp [ -Rf ] group file ...
DESCRIPTION
Chgrp changes the group-ID of the files to group . The group may be either a decimal GID or a group name found in the group-ID file.

The user invoking chgrp must belong to the specified group and be the owner of the file, or be the super-user.

No errors, except for usage errors, are reported when the -f (force) option is given.

When the -R option is given, chgrp recursively descends its directory arguments setting the specified group-ID. When symbolic links are encountered, their group is changed, but they are not traversed.

"SEE ALSO"
chown(1), chown(2), passwd(5), group(5)