1 .\" Copyright (c) 1983, 1990, 1993, 1994
2 .\" The Regents of the University of California. All rights reserved.
4 .\" This code is derived from software contributed to Berkeley by
5 .\" the Institute of Electrical and Electronics Engineers, Inc.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. All advertising materials mentioning features or use of this software
16 .\" must display the following acknowledgement:
17 .\" This product includes software developed by the University of
18 .\" California, Berkeley and its contributors.
19 .\" 4. Neither the name of the University nor the names of its contributors
20 .\" may be used to endorse or promote products derived from this software
21 .\" without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .\" @(#)chgrp.1 8.3 (Berkeley) 3/31/94
36 .\" $FreeBSD: src/usr.sbin/chown/chgrp.1,v 1.13 2001/08/15 09:09:46 ru Exp $
49 .Op Fl H | Fl L | Fl P
56 utility sets the group ID of the file named by each
60 ID specified by the group operand.
62 The following options are available:
63 .Bl -tag -width indent
65 The force option ignores errors, except for usage errors and doesn't
66 query about strange modes (unless the user does not have proper permissions).
70 option is specified, symbolic links on the command line are followed.
71 (Symbolic links encountered in the tree traversal are not followed).
73 If the file is a symbolic link, the group ID of the link itself is changed
74 rather than the file that is pointed to.
78 option is specified, all symbolic links are followed.
82 option is specified, no symbolic links are followed.
83 This is the default. Use
85 to change the group ID of a symbolic link.
87 Change the group ID for the file hierarchies rooted
88 in the files instead of just the files themselves.
92 to be verbose, showing files as the group is modified.
100 options are ignored unless the
103 In addition, these options override each other and the
104 command's actions are determined by the last one specified.
108 operand can be either a group name from the group database,
109 or a numeric group ID.
110 If a group name is also a numeric group ID, the operand is used as a
115 must belong to the specified group and be the owner of the file,
116 or be the super-user.
120 In previous versions of this system, symbolic links did not have groups.
124 option is non-standard and its use in scripts is not recommended.
126 .Bl -tag -width /etc/group -compact
140 utility is expected to be