xref: /netbsd-src/share/man/man7/groups.7 (revision 61a9079563d1468cb1d97ae836b518b20d4d95c3)
1*61a90795Sroy.\"	$NetBSD: groups.7,v 1.8 2020/04/02 20:57:20 roy Exp $
2e4d66293Sriastradh.\"
3e4d66293Sriastradh.\" Copyright (c) 2020 The NetBSD Foundation, Inc.
4e4d66293Sriastradh.\" All rights reserved.
5e4d66293Sriastradh.\"
6e4d66293Sriastradh.\" Redistribution and use in source and binary forms, with or without
7e4d66293Sriastradh.\" modification, are permitted provided that the following conditions
8e4d66293Sriastradh.\" are met:
9e4d66293Sriastradh.\" 1. Redistributions of source code must retain the above copyright
10e4d66293Sriastradh.\"    notice, this list of conditions and the following disclaimer.
11e4d66293Sriastradh.\" 2. Redistributions in binary form must reproduce the above copyright
12e4d66293Sriastradh.\"    notice, this list of conditions and the following disclaimer in the
13e4d66293Sriastradh.\"    documentation and/or other materials provided with the distribution.
14e4d66293Sriastradh.\"
15e4d66293Sriastradh.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16e4d66293Sriastradh.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17e4d66293Sriastradh.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18e4d66293Sriastradh.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19e4d66293Sriastradh.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20e4d66293Sriastradh.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21e4d66293Sriastradh.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22e4d66293Sriastradh.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23e4d66293Sriastradh.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24e4d66293Sriastradh.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25e4d66293Sriastradh.\" POSSIBILITY OF SUCH DAMAGE.
26e4d66293Sriastradh.\"
27*61a90795Sroy.Dd April 2, 2020
287fa57f6bSkim.Dt GROUPS 7
29e4d66293Sriastradh.Os
30e4d66293Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
31e4d66293Sriastradh.Sh NAME
32e4d66293Sriastradh.Nm groups
33e4d66293Sriastradh.Nd standard group names
34e4d66293Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
35e4d66293Sriastradh.Sh DESCRIPTION
36e4d66293SriastradhA standard
37e4d66293Sriastradh.Nx
38e4d66293Sriastradhinstallation has the following user group names:
39e4d66293Sriastradh.\" These are currently sorted by gid; perhaps they should be sorted
40e4d66293Sriastradh.\" lexicographically by name instead.
4179985dd0Suwe.Bl -tag -width ".Em _tcpdump"
42e4d66293Sriastradh.It Em wheel
43e4d66293SriastradhUsers authorized to elevate themselves to the super-user privileges of
4479985dd0Suwethe root user, meaning uid\~0.
45e4d66293SriastradhNormally the
46e4d66293Sriastradh.Em wheel
4779985dd0Suwegroup has gid\~0.
48e4d66293Sriastradh.Pp
49e4d66293SriastradhUsers who are not in the group
50e4d66293Sriastradh.Em wheel
51e4d66293Sriastradhare never allowed by
52795276afSwiz.Xr su 1
53e4d66293Sriastradhto gain root privileges.
54e4d66293Sriastradh.It Em daemon
55e4d66293SriastradhUsed by the set-group-id
56e4d66293Sriastradh.Pq Xr setuid 7
57e4d66293Sriastradhprograms
58ed727899Swiz.Xr lpq 1 ,
59795276afSwiz.Xr lpr 1 ,
60e4d66293Sriastradhand
61795276afSwiz.Xr lprm 1 .
62e4d66293Sriastradh.\" Unclear why.  Maybe used to be used by uucp stuff too, since
63e4d66293Sriastradh.\" /var/spool/lock ownership is uucp:daemon?
64e4d66293Sriastradh.It Em sys
65e4d66293SriastradhHistoric group.
66e4d66293SriastradhUnused in modern
67e4d66293Sriastradh.Nx .
68e4d66293Sriastradh.It Em tty
69e4d66293SriastradhUsed by the set-group-id
70e4d66293Sriastradh.Pq Xr setuid 7
71e4d66293Sriastradhprograms
72795276afSwiz.Xr wall 1
73e4d66293Sriastradhand
74e4d66293Sriastradh.Xr write 1
75e4d66293Sriastradhto allow users to send messages to another tty even if they don't own
76e4d66293Sriastradhit.
77e4d66293SriastradhStatic tty device nodes in
78e4d66293Sriastradh.Pa /dev
79e4d66293Sriastradhare all in the group
80e4d66293Sriastradh.Em tty ,
81e4d66293Sriastradhand the
82e4d66293Sriastradh.Xr mount_ptyfs 8
83e4d66293Sriastradhprogram passes the gid of the
84e4d66293Sriastradh.Em tty
85e4d66293Sriastradhgroup to the kernel so that all nodes in
86e4d66293Sriastradh.Pa /dev/pts
87e4d66293Sriastradhor equivalent are in the group too.
88e4d66293Sriastradh.It Em operator
89e4d66293SriastradhUsers authorized to take backups of disk devices and shut down the
90e4d66293Sriastradhmachine.
91e4d66293Sriastradh.Pp
92e4d66293SriastradhThe disk device nodes in
93e4d66293Sriastradh.Pa /dev
94e4d66293Sriastradhsuch as
95e4d66293Sriastradh.Pa /dev/rwd0a
96e4d66293Sriastradhare in the group
97e4d66293Sriastradh.Em operator
98e4d66293Sriastradhand group-readable so users in the group can read from disk devices,
99e4d66293Sriastradhfor example with
100e4d66293Sriastradh.Xr dump 8 .
101e4d66293SriastradhThe tape device nodes in
102e4d66293Sriastradh.Pa /dev
103e4d66293Sriastradhsuch as
104e4d66293Sriastradh.Pa /dev/rst0
105e4d66293Sriastradhare in the group
106e4d66293Sriastradh.Em operator
107e4d66293Sriastradhand are both group-readable and group-writable so users in the group
108e4d66293Sriastradhcan write to tape devices.
109e4d66293Sriastradh.Pp
110e4d66293SriastradhThe
111e4d66293Sriastradh.Xr shutdown 8
112e4d66293Sriastradhprogram is executable only by root and members of the
113e4d66293Sriastradh.Em operator
114e4d66293Sriastradhgroup.
115e4d66293Sriastradh.It Em mail
116e4d66293SriastradhHistoric group.
117e4d66293SriastradhUnused in modern
118e4d66293Sriastradh.Nx .
119e4d66293Sriastradh.\" Is this true?  Hard to grep for this in src...
120e4d66293Sriastradh.It Em bin
121e4d66293SriastradhHistoric group.
122e4d66293SriastradhUnused in modern
123e4d66293Sriastradh.Nx .
124e4d66293Sriastradh.It Em wsrc
125e4d66293SriastradhHistoric group.
126e4d66293SriastradhUnused in modern
127e4d66293Sriastradh.Nx .
128e4d66293Sriastradh.\" Actually it seems to be used in the set lists somehow, but it's
129ed727899Swiz.\" unclear to me how what the significance is.
130e4d66293Sriastradh.It Em maildrop
131e4d66293SriastradhUsed by the set-group-id
132e4d66293Sriastradh.Pq Xr setuid 7
133e4d66293Sriastradhprograms
134795276afSwiz.Xr postdrop 1
135e4d66293Sriastradhand
136795276afSwiz.Xr postqueue 1
137e4d66293Sriastradhto submit to and examine the
138795276afSwiz.Xr postfix 1
139e4d66293Sriastradhmail queue at
140e4d66293Sriastradh.Pa /var/spool/postfix/maildrop
141e4d66293Sriastradhand
142e4d66293Sriastradh.Pa /var/spool/postfix/public .
143e4d66293Sriastradh.It Em postfix
144e4d66293SriastradhPrimary group for the
145e4d66293Sriastradh.Em postfix
146e4d66293Sriastradhpseudo-user used by the
147795276afSwiz.Xr postfix 1
148e4d66293Sriastradhmail transfer agent.
149e4d66293Sriastradh.\" Why are various subdirectories of /var/spool/postfix owned by
150e4d66293Sriastradh.\" postfix:wheel and not postfix:postfix?
151e4d66293Sriastradh.It Em games
152e4d66293SriastradhUsed by various set-group-id
153e4d66293Sriastradh.Pq Xr setuid 7
154e4d66293Sriastradhgames to maintain high-scores files and other common files in
155e4d66293Sriastradh.Pa /var/games .
156e4d66293Sriastradh.It Em named
157e4d66293SriastradhPrimary group for the
158e4d66293Sriastradh.Em named
159e4d66293Sriastradhpseudo-user used by the
160e4d66293Sriastradh.Xr named 8
161e4d66293SriastradhDNS nameserver daemon.
162e4d66293Sriastradh.It Em ntpd
163e4d66293SriastradhPrimary group for the
164e979ab62Suwe.Em ntpd
165e4d66293Sriastradhpseudo-user used by the
166e4d66293Sriastradh.Xr ntpd 8
167e4d66293Sriastradhnetwork time protocol daemon.
168e4d66293Sriastradh.It Em sshd
169e4d66293SriastradhPrimary group for the
170e4d66293Sriastradh.Em sshd
171e4d66293Sriastradhpseudo-user used by the
172e4d66293Sriastradh.Xr sshd 8
173e4d66293Sriastradhsecure shell daemon.
174e4d66293Sriastradh.It Em _pflogd
175e4d66293SriastradhPrimary group for the
176e4d66293Sriastradh.Em _pflogd
177e4d66293Sriastradhpseudo-user used by the
178e4d66293Sriastradh.Xr pflogd 8
179e4d66293Sriastradhlog daemon with the
180e4d66293Sriastradh.Xr pf 4
181e4d66293Sriastradhpacket filter.
182e4d66293Sriastradh.It Em _rwhod
183e4d66293SriastradhPrimary group for the
184e4d66293Sriastradh.Em _rwhod
185e4d66293Sriastradhpseudo-user used by the
186e4d66293Sriastradh.Xr rwhod 8
187e4d66293Sriastradhsystem status daemon.
188e4d66293Sriastradh.It Em staff
189e4d66293SriastradhStaff users, in contrast to regular or guest users.
190e4d66293SriastradhNot used by
191e4d66293Sriastradh.Nx ;
192e4d66293Sriastradhavailable for the administrator's interpretation.
193e4d66293Sriastradh.It Em _proxy
194e4d66293SriastradhPrimary group for the
195e4d66293Sriastradh.Em _proxy
196e4d66293Sriastradhpseudo-user used by the
197e4d66293Sriastradh.Xr ftp-proxy 8
198e4d66293Sriastradhand
199e4d66293Sriastradh.Xr tftp-proxy 8
200e4d66293Sriastradhproxy daemons with packet filters such as
201e4d66293Sriastradh.Xr pf 4
202e4d66293Sriastradhor
203e4d66293Sriastradh.Xr ipnat 4 .
204e4d66293Sriastradh.It Em _timedc
205e4d66293SriastradhPrimary group for the
206e4d66293Sriastradh.Em _timedc
207e4d66293Sriastradhpseudo-user used by the
208e4d66293Sriastradh.Xr timedc 8
209e4d66293Sriastradhtool to communicate with the
210e4d66293Sriastradh.Xr timed 8
211e4d66293Sriastradhtime server daemon.
212e4d66293Sriastradh.It Em _sdpd
213e4d66293SriastradhPrimary group for the
214e4d66293Sriastradh.Em _sdpd
215e4d66293Sriastradhpseudo-user used by the
216e4d66293Sriastradh.Xr sdpd 8
217e4d66293SriastradhBluetooth service discovery protocol daemon.
218e4d66293Sriastradh.It Em _httpd
219e4d66293SriastradhPrimary group for the
220e4d66293Sriastradh.Em _httpd
221e4d66293Sriastradhpseudo-user used by the
222e4d66293Sriastradh.Xr httpd 8 Pq bozohttpd
223e4d66293Sriastradhweb server.
224e4d66293Sriastradh.It Em _mdnsd
225e4d66293SriastradhPrimary group for the
226e4d66293Sriastradh.Em _mdnsd
227e4d66293Sriastradhpseudo-user used by the
228e4d66293Sriastradh.Xr mdnsd 8
229e4d66293Sriastradhmulticast DNS and DNS service discovery daemon.
230e4d66293Sriastradh.It Em _tests
231e4d66293SriastradhPrimary group for the
232e4d66293Sriastradh.Em _tests
233e4d66293Sriastradhpseudo-user used by
234e4d66293Sriastradh.Xr atf 7
235e4d66293Sriastradhautomatic tests that request to run unprivileged.
236e4d66293Sriastradh.It Em _tcpdump
237e4d66293SriastradhPrimary group for the
238e4d66293Sriastradh.Em _tcpdump
239e4d66293Sriastradhpseudo-user used by the
240e4d66293Sriastradh.Xr tcpdump 8
241e4d66293Sriastradhnetwork traffic dumper and analyzer.
242e4d66293Sriastradh.It Em _tss
243e4d66293SriastradhPrimary group for the
244e4d66293Sriastradh.Em _tss
245e4d66293Sriastradhpseudo-user used by the
246e4d66293Sriastradh.Xr tcsd 8
247e4d66293Sriastradh.Sq Trusted Computing
248aa06efc8Skimdaemon to manage a TPM.
249e4d66293Sriastradh.It Em _gpio
250e4d66293SriastradhUsers authorized to read and write GPIO pins; see
251e4d66293Sriastradh.Xr gpio 4
252e4d66293Sriastradhand
253e4d66293Sriastradh.Xr gpioctl 8 .
254*61a90795Sroy.It Em _dhcpcd
255*61a90795SroyPrimary group for the
256*61a90795Sroy.Em _dhcpcd
257*61a90795Sroypseudo-user used by the
258*61a90795Sroy.Xr dhcpcd 8
259*61a90795SroyDHCP Client Daemon.
260e4d66293Sriastradh.It Em _rtadvd
261e4d66293SriastradhPrimary group for the
262e4d66293Sriastradh.Em _rtadvd
263e4d66293Sriastradhpseudo-user used by the
264e4d66293Sriastradh.Xr rtadvd 8
265e4d66293SriastradhIPv6 network router advertisement daemon.
266e4d66293Sriastradh.It Em guest
267e4d66293SriastradhGuest users, in contrast to staff or regular users.
268e4d66293SriastradhNot used by
269e4d66293Sriastradh.Nx ;
270e4d66293Sriastradhavailable for the administrator's interpretation.
271e4d66293Sriastradh.It Em _unbound
272e4d66293SriastradhPrimary group for the
273e4d66293Sriastradh.Em _unbound
274e4d66293Sriastradhpseudo-user used by the
275e4d66293Sriastradh.Xr unbound 8
276e4d66293Sriastradhrecursive DNS resolver.
277e4d66293Sriastradh.It Em _nsd
278e4d66293SriastradhPrimary group for the
279e4d66293Sriastradh.Em _nsd
280e4d66293Sriastradhpseudo-user used by the
281e4d66293Sriastradh.Xr nsd 8
282e4d66293Sriastradhauthoritative DNS nameserver.
283e4d66293Sriastradh.It Em nvmm
284e4d66293SriastradhUsers authorized to use the
285795276afSwiz.Xr nvmm 4
286e4d66293Sriastradh.Nx
287e4d66293SriastradhVirtual Machine Monitor.
288e4d66293Sriastradh.It Em nobody
289e4d66293SriastradhPrimary group for the traditional
290e4d66293Sriastradh.Em nobody
291e4d66293Sriastradhpseudo-user.
292e4d66293SriastradhModern practice is to assign to each different daemon its own separate
293e4d66293Sriastradhpseudo-user account and group so that if one daemon is compromised it
294e4d66293Sriastradhdoes not compromise all the other daemons.
295e4d66293Sriastradh.It Em utmp
296e4d66293SriastradhGroup of
297e4d66293Sriastradh.Xr utmp 5
298e4d66293Sriastradhlogin records.
299e4d66293Sriastradh.\" Why?
300e4d66293Sriastradh.It Em authpf
301e4d66293SriastradhUsed by the set-group-id
302e4d66293Sriastradh.Pq Xr setuid 7
303e4d66293Sriastradhprogram
304e4d66293Sriastradh.Xr authpf 8
305e4d66293Sriastradhto configure authenticated gateways.
306e4d66293Sriastradh.\" Does it actually use the sgid bit?  It's also suid root...
307e4d66293Sriastradh.It Em users
308e4d66293SriastradhRegular users, in contrast to staff or guest users.
309e4d66293Sriastradh.Pp
310e4d66293SriastradhDefault primary group for new users, as set in the default
311e4d66293Sriastradh.Xr usermgmt.conf 5
312e4d66293Sriastradhfile.
313e4d66293SriastradhSome administrators may instead prefer to assign to each user a unique
314e4d66293Sriastradhgroup with the same name as the user by passing the
315e4d66293Sriastradh.So
31679985dd0Suwe.Fl g Cm "=uid"
317e4d66293Sriastradh.Sc
318e4d66293Sriastradhoption to
319e4d66293Sriastradh.Xr useradd 8 .
320e4d66293Sriastradh.It Em dialer
321e4d66293SriastradhUsers authorized to make outgoing modem calls.
322e4d66293SriastradhUnused in modern
323e4d66293Sriastradh.Nx .
324e4d66293Sriastradh.It Em nogroup
325e4d66293SriastradhPseudo-group.
326e4d66293Sriastradh.\" For...?
327e4d66293Sriastradh.El
328e4d66293Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
329e4d66293Sriastradh.Sh SEE ALSO
330e4d66293Sriastradh.Xr users 7
331