xref: /netbsd-src/share/man/man7/users.7 (revision 61a9079563d1468cb1d97ae836b518b20d4d95c3)
1*61a90795Sroy.\"	$NetBSD: users.7,v 1.5 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 USERS 7
29e4d66293Sriastradh.Os
30e4d66293Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
31e4d66293Sriastradh.Sh NAME
32e4d66293Sriastradh.Nm users
33e4d66293Sriastradh.Nd standard user account names
34e4d66293Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
35e4d66293Sriastradh.Sh DESCRIPTION
36e4d66293SriastradhA standard
37e4d66293Sriastradh.Nx
38e4d66293Sriastradhinstallation has the following user account names:
39e4d66293Sriastradh.\" These are currently sorted by uid; perhaps they should be sorted
40e4d66293Sriastradh.\" lexicographically by name instead.
41035e2f78Suwe.Bl -tag -width ".Em _tcpdump"
42e4d66293Sriastradh.It Em root
43e4d66293SriastradhThe super-user, uid 0, with the highest administrative privileges.
44e4d66293SriastradhNormally not used for login directly, only via
45795276afSwiz.Xr su 1
46e4d66293Sriastradhor equivalent by users in the
47e4d66293Sriastradh.Em wheel
48e4d66293Sriastradhgroup; see
49e4d66293Sriastradh.Xr groups 7 .
50e4d66293Sriastradh.Pp
51e4d66293SriastradhSecondary groups:
52e4d66293Sriastradh.Em guest ,
53e4d66293Sriastradh.Em kmem ,
54e4d66293Sriastradh.Em nvmm ,
55e4d66293Sriastradh.Em operator ,
56e4d66293Sriastradh.Em staff ,
57e4d66293Sriastradh.Em sys ,
58e4d66293Sriastradh.Em tty .
59e4d66293Sriastradh.It Em toor
60e4d66293SriastradhLike
61e4d66293Sriastradh.Em root ,
62e4d66293Sriastradhthis is the super-user with uid 0, but with no secondary group
63e4d66293Sriastradhmemberships.
64e4d66293Sriastradh.Pp
65e4d66293SriastradhHistorically,
66e4d66293Sriastradh.Em root
67e4d66293Sriastradhhad a login shell of
68e4d66293Sriastradh.Pa /bin/csh
69e4d66293Sriastradhwhile
70e4d66293Sriastradh.Em toor
71e4d66293Sriastradhhad a login shell of
72e4d66293Sriastradh.Pa /bin/sh .
73e4d66293SriastradhHowever, today both default to
74e4d66293Sriastradh.Pa /bin/sh .
75e4d66293SriastradhThis user account name is not used for anything in
76e4d66293Sriastradh.Nx ;
77e4d66293Sriastradhit is purely a convenience for actual users.
78e4d66293Sriastradh.\" Maybe we should just remove this.
79e4d66293Sriastradh.It Em daemon
80e4d66293SriastradhHistoric user for general daemonic activity.
81e4d66293Sriastradh.Pp
82e4d66293SriastradhOwner of
83e4d66293Sriastradh.Pa /var/msgs ;
84e4d66293Sriastradhsee
85e4d66293Sriastradh.Xr msgs 1 .
86e4d66293SriastradhUsed only by
87e4d66293Sriastradh.Xr rpcbind 8 ,
88e4d66293Sriastradhwith the
89e4d66293Sriastradh.Fl s
90e4d66293Sriastradhflag.
91e4d66293Sriastradh.It Em operator
92e4d66293SriastradhHistoric user.
93e4d66293SriastradhUnused in modern
94e4d66293Sriastradh.Nx .
95e4d66293Sriastradh.It Em bin
96e4d66293SriastradhHistoric user.
97e4d66293SriastradhUnused in modern
98e4d66293Sriastradh.Nx .
99e4d66293Sriastradh.It Em games
100e4d66293SriastradhOwner of high-score files and other shared files for games.
101e4d66293Sriastradh.It Em postfix
102e4d66293SriastradhPseudo-user for use by the
103795276afSwiz.Xr postfix 1
104e4d66293Sriastradhmail transfer agent.
105e4d66293Sriastradh.It Em named
106e4d66293SriastradhPseudo-user for use by the
107e4d66293Sriastradh.Xr named 8
108e4d66293SriastradhDNS nameserver daemon.
109e4d66293Sriastradh.It Em ntpd
110e4d66293SriastradhPseudo-user for use by the
111e4d66293Sriastradh.Xr ntpd 8
112e4d66293Sriastradhnetwork time protocol daemon.
113e4d66293Sriastradh.It Em sshd
114e4d66293SriastradhPseudo-user for use by the
115e4d66293Sriastradh.Xr sshd 8
116e4d66293Sriastradhsecure shell daemon.
117e4d66293Sriastradh.It Em _pflogd
118e4d66293SriastradhPseudo-user for use by the
119e4d66293Sriastradh.Xr pflogd 8
120e4d66293Sriastradhlog daemon with the
121e4d66293Sriastradh.Xr pf 4
122e4d66293Sriastradhpacket filter.
123e4d66293Sriastradh.It Em _rwhod
124e4d66293SriastradhPseudo-user for use by the
125e4d66293Sriastradh.Xr rwhod 8
126e4d66293Sriastradhsystem status daemon.
127e4d66293Sriastradh.It Em _proxy
128e4d66293SriastradhPseudo-user for use by the
129e4d66293Sriastradh.Xr ftp-proxy 8
130e4d66293Sriastradhand
131e4d66293Sriastradh.Xr tftp-proxy 8
132e4d66293Sriastradhproxy daemons with packet filters such as
133e4d66293Sriastradh.Xr pf 4
134e4d66293Sriastradhor
135e4d66293Sriastradh.Xr ipnat 4 .
136e4d66293Sriastradh.It Em _timedc
137e4d66293SriastradhPseudo-user for use by the
138e4d66293Sriastradh.Xr timedc 8
139e4d66293Sriastradhtool to communicate with the
140e4d66293Sriastradh.Xr timed 8
141e4d66293Sriastradhtime server daemon.
142e4d66293Sriastradh.It Em _sdpd
143e4d66293SriastradhPseudo-user for use by the
144e4d66293Sriastradh.Xr sdpd 8
145e4d66293SriastradhBluetooth service discovery protocol daemon.
146e4d66293Sriastradh.It Em _httpd
147e4d66293SriastradhPseudo-user for use by the
148e4d66293Sriastradh.Xr httpd 8 Pq bozohttpd
149e4d66293Sriastradhweb server.
150e4d66293Sriastradh.It Em _mdnsd
151e4d66293SriastradhPseudo-user for use by the
152e4d66293Sriastradh.Xr mdnsd 8
153e4d66293Sriastradhmulticast DNS and DNS service discovery daemon.
154e4d66293Sriastradh.It Em _tests
155e4d66293SriastradhPseudo-user for use by
156e4d66293Sriastradh.Xr atf 7
157e4d66293Sriastradhautomatic tests that request to run unprivileged.
158e4d66293SriastradhDefault value for the
159e4d66293Sriastradh.Sq unprivileged-user
160e4d66293Sriastradhconfiguration variable; see
161e4d66293Sriastradh.Xr tests 7 .
162e4d66293Sriastradh.It Em _tcpdump
163e4d66293SriastradhPseudo-user for use by the
164e4d66293Sriastradh.Xr tcpdump 8
165e4d66293Sriastradhnetwork traffic dumper and analyzer.
166e4d66293Sriastradh.It Em _tss
167e4d66293SriastradhPseudo-user for use by the
168e4d66293Sriastradh.Xr tcsd 8
169e4d66293Sriastradh.Sq Trusted Computing
170e4d66293Sriastradhdaemon TPM to manage a TPM.
171*61a90795Sroy.It Em _dhcpcd
172*61a90795SroyPseudo-user for use by the
173*61a90795Sroy.Xr dhcpcd 8
174*61a90795SroyDHCP Client Daemon.
175e4d66293Sriastradh.It Em _rtadvd
176e4d66293SriastradhPseudo-user for use by the
177e4d66293Sriastradh.Xr rtadvd 8
178e4d66293SriastradhIPv6 network router advertisement daemon.
179e4d66293Sriastradh.It Em _unbound
180e4d66293SriastradhPseudo-user for the
181e4d66293Sriastradh.Xr unbound 8
182e4d66293Sriastradhrecursive DNS resolver.
183e4d66293Sriastradh.It Em _nsd
184e4d66293SriastradhPseudo-user for the
185e4d66293Sriastradh.Xr nsd 8
186e4d66293Sriastradhauthoritative DNS nameserver.
187e4d66293Sriastradh.It Em uucp
188e4d66293SriastradhPseudo-user for use by historic UUCP software, available now in
189e4d66293Sriastradh.Xr pkgsrc 7 .
190e4d66293Sriastradh.It Em nobody
191e4d66293SriastradhTraditional pseudo-user used for dropping privileges.
192e4d66293SriastradhModern practice is to assign to each different daemon its own separate
193e4d66293Sriastradhpseudo-user account and group so that if one daemon is compromised it
194e4d66293Sriastradhdoes not compromise all the other daemons.
195e4d66293Sriastradh.El
196e4d66293Sriastradh.Pp
197e4d66293SriastradhAll new standard
198e4d66293Sriastradh.Nx
199e4d66293Sriastradhpseudo-user account names should begin with an underscore
200e4d66293Sriastradh.Sq "_"
201e4d66293Sriastradhto distinguish them from accounts that real users might add, and should
202e4d66293Sriastradhhave a primary group of the same name; real users should accordingly
203e4d66293Sriastradhavoid such account names.
204e4d66293Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
205e4d66293Sriastradh.Sh SEE ALSO
206e4d66293Sriastradh.Xr groups 7
207