1 .\" Copyright (c) 1980, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" From: @(#)group.5 8.3 (Berkeley) 4/19/94
35 .Dd September 29, 1994
40 .Nd format of the group permissions file
44 file is the local source of group information.
45 It can be used in conjunction with the Hesiod domain
46 `group', and the NIS maps `group.byname' and `group.bygid',
52 consists of newline separated
54 records, one per group, containing four colon
57 These fields are as follows:
58 .Bl -tag -width password -offset indent -compact
66 The group's decimal ID.
71 Lines whose first non-whitespace character is a pound-sign (#)
72 are comments, and are ignored.
73 Blank lines that consist
74 only of spaces, tabs or newlines are also ignored.
78 field is the group name used for granting file access to users
79 who are members of the group.
82 field is the number associated with the group name.
83 They should both be unique across the system (and often
84 across a group of systems) since they control file access.
91 This field is rarely used
92 and an asterisk is normally placed in it rather than leaving it blank.
95 field contains the names of users granted the privileges of
97 The member names are separated by commas without spaces or newlines.
98 A user is automatically in a group if that group was specified
101 entry and does not need to be added to that group in the
105 .\" When the system reads the file
107 .\" the fields are read into the structure
111 .\" .Bd -literal -offset indent
113 .\" char *gr_name; /* group name */
114 .\" char *gr_passwd; /* group password */
115 .\" int gr_gid; /* group id */
116 .\" char **gr_mem; /* group members */
120 There are various limitations which are explained in
121 the function where they occur; see section
124 In older implementations,
125 a group cannot have more than 200 members.
126 The maximum line length of
129 Longer lines will be skipped.
130 This limitation disappeared in
132 Older binaries that are statically linked, depend on old
135 binaries in compatibility mode
136 may still have this limit.
138 .Bl -tag -width /etc/group -compact
147 .Xr nsswitch.conf 5 ,
155 file format appeared in
157 Support for comments first appeared in
162 command does not change the