.\" Copyright (c) 1983, 1990 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\" %sccs.include.redist.man%
.\" @(#)chgrp.1 6.8 (Berkeley) %G%
The chgrp utility sets the group ID of the file named by each
ID specified by the group operand.
When encountering a symbolic link on the command line, follow it. All other
symbolic links encountered in the traversal are not followed.
Recursively change file group IDs.
operand that names a directory, chgrp changes the
group of the directory and all files in the file
When symbolic links are encountered, their group is changed,
but they are not traversed.
The force option ignores errors, except for usage errors and doesn't
query about strange modes (unless user does not have proper permissions).
When encountering a symbolic link anywhere in the traversal, follow it.
The group of a symbolic link is immutable, so that unless the
on a symbolic link is a no-op.
can be either a group name from the group database, or a numeric
A pathname of a file whose group ID is to be modified.
to the specified group and be the owner of the file, or be the super-user.
utility exits 0 on success, and >0 if an error occurs.
.Bl -tag -width /etc/group -compact
function is expected to be POSIX 1003.2 compatible.
This manual page is derived from the POSIX 1003.2 manual page.