4.4BSD/usr/share/man/cat1/chgrp.0

Compare this file to the similar file:
Show the results in this format:

CHGRP(1)                     BSD Reference Manual                     CHGRP(1)

NNAAMMEE
     cchhggrrpp - change group

SSYYNNOOPPSSIISS
     cchhggrrpp [--HHRRffhh] _g_r_o_u_p _f_i_l_e_s _._._.

DDEESSCCRRIIPPTTIIOONN
     The chgrp utility sets the group ID of the file named by each _f_i_l_e
     operand to the _g_r_o_u_p ID specified by the group operand.

     Options:

     --HH      When encountering a symbolic link on the command line, follow it.
             All other symbolic links encountered in the traversal are not
             followed.

     --RR      Recursively change file group IDs.  For each _f_i_l_e operand that
             names a directory, chgrp changes the group of the directory and
             all files in the file hierarchy below it.  When symbolic links
             are encountered, their group is changed, but they are not tra-
             versed.

     --ff      The force option ignores errors, except for usage errors and
             doesn't query about strange modes (unless the user does not have
             proper permissions).

     --hh      When encountering a symbolic link anywhere in the traversal, fol-
             low it.

     The group of a symbolic link is immutable, so unless the --hh or --HH flag is
     set, cchhggrrpp on a symbolic link is a no-op.

     Operands:

     _g_r_o_u_p  The _g_r_o_u_p can be either a group name from the group database, or a
            numeric group ID.

     _f_i_l_e   A pathname of a file whose group ID is to be modified.

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

     The cchhggrrpp utility exits 0 on success, and >0 if an error occurs.

FFIILLEESS
     /etc/group  Group ID file

SSEEEE AALLSSOO
     chown(2),  chown(8),  group(5),  passwd(5),  fts(3),  symlink(7)

SSTTAANNDDAARRDDSS
     The cchhggrrpp utility is expected to be POSIX 1003.2 compatible.  This manual
     page is derived from the POSIX 1003.2 manual page.

4.2 Berkeley Distribution        June 29, 1993                               1