Create and use a tests group for the tests user.

No user (except nobody) should be a member of the nobody group.

Reported by:	rgrimes
Reviewed by:	rgrimes
MFC after:	3 days
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24199
This commit is contained in:
Brooks Davis 2020-03-27 16:05:37 +00:00
parent 1264a2b909
commit cfe7aad9c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359368
2 changed files with 2 additions and 1 deletions

View File

@ -32,5 +32,6 @@ www:*:80:
ntpd:*:123: ntpd:*:123:
_ypldap:*:160: _ypldap:*:160:
hast:*:845: hast:*:845:
tests:*:977:
nogroup:*:65533: nogroup:*:65533:
nobody:*:65534: nobody:*:65534:

View File

@ -25,5 +25,5 @@ www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
ntpd:*:123:123::0:0:NTP Daemon:/var/db/ntp:/usr/sbin/nologin ntpd:*:123:123::0:0:NTP Daemon:/var/db/ntp:/usr/sbin/nologin
_ypldap:*:160:160::0:0:YP LDAP unprivileged user:/var/empty:/usr/sbin/nologin _ypldap:*:160:160::0:0:YP LDAP unprivileged user:/var/empty:/usr/sbin/nologin
hast:*:845:845::0:0:HAST unprivileged user:/var/empty:/usr/sbin/nologin hast:*:845:845::0:0:HAST unprivileged user:/var/empty:/usr/sbin/nologin
tests:*:977:65534::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin tests:*:977:977::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin