1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-09-13 23:11:13 +00:00
|
|
|
#
|
1993-07-19 18:56:42 +00:00
|
|
|
wheel:*:0:root
|
2002-10-13 16:26:26 +00:00
|
|
|
daemon:*:1:
|
2002-10-13 17:00:37 +00:00
|
|
|
kmem:*:2:
|
|
|
|
sys:*:3:
|
|
|
|
tty:*:4:
|
1993-06-20 13:41:45 +00:00
|
|
|
operator:*:5:root
|
1997-05-02 00:06:09 +00:00
|
|
|
mail:*:6:
|
1993-06-20 13:41:45 +00:00
|
|
|
bin:*:7:
|
|
|
|
news:*:8:
|
1994-03-19 23:31:39 +00:00
|
|
|
man:*:9:
|
1993-06-20 13:41:45 +00:00
|
|
|
games:*:13:
|
2007-06-11 18:36:39 +00:00
|
|
|
ftp:*:14:
|
2002-10-13 17:00:37 +00:00
|
|
|
staff:*:20:
|
2002-06-23 20:41:06 +00:00
|
|
|
sshd:*:22:
|
2001-11-17 21:24:45 +00:00
|
|
|
smmsp:*:25:
|
|
|
|
mailnull:*:26:
|
2002-10-14 20:55:49 +00:00
|
|
|
guest:*:31:
|
2015-08-09 12:58:56 +00:00
|
|
|
video:*:44:
|
1998-12-01 21:19:49 +00:00
|
|
|
bind:*:53:
|
2013-09-15 14:51:23 +00:00
|
|
|
unbound:*:59:
|
2004-03-10 15:04:29 +00:00
|
|
|
proxy:*:62:
|
|
|
|
authpf:*:63:
|
2004-06-23 01:32:28 +00:00
|
|
|
_pflogd:*:64:
|
2005-06-06 20:19:56 +00:00
|
|
|
_dhcp:*:65:
|
1994-05-31 04:36:30 +00:00
|
|
|
uucp:*:66:
|
1996-03-12 15:19:31 +00:00
|
|
|
dialer:*:68:
|
1997-09-04 00:36:38 +00:00
|
|
|
network:*:69:
|
2006-02-05 19:34:09 +00:00
|
|
|
audit:*:77:
|
2001-10-25 03:27:16 +00:00
|
|
|
www:*:80:
|
Make it possible to run ntpd as a non-root user, add ntpd uid and gid.
Code analysis and runtime analysis using truss(8) indicate that the only
privileged operations performed by ntpd are adjusting system time, and
(re-)binding to privileged UDP port 123. These changes add a new mac(4)
policy module, mac_ntpd(4), which grants just those privileges to any
process running with uid 123.
This also adds a new user and group, ntpd:ntpd, (uid:gid 123:123), and makes
them the owner of the /var/db/ntp directory, so that it can be used as a
location where the non-privileged daemon can write files such as the
driftfile, and any optional logfile or stats files.
Because there are so many ways to configure ntpd, the question of how to
configure it to run without root privs can be a bit complex, so that will be
addressed in a separate commit. These changes are just what's required to
grant the limited subset of privs to ntpd, and the small change to ntpd to
prevent it from exiting with an error if running as non-root.
Differential Revision: https://reviews.freebsd.org/D16281
2018-07-19 23:55:29 +00:00
|
|
|
ntpd:*:123:
|
2016-01-27 06:28:56 +00:00
|
|
|
_ypldap:*:160:
|
2011-01-28 22:28:12 +00:00
|
|
|
hast:*:845:
|
2020-03-27 16:05:37 +00:00
|
|
|
tests:*:977:
|
1995-05-17 10:02:07 +00:00
|
|
|
nogroup:*:65533:
|
1995-05-15 19:24:57 +00:00
|
|
|
nobody:*:65534:
|