From cfe7aad9c3bdbe3d859d43b40ed9203821219c3c Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 27 Mar 2020 16:05:37 +0000 Subject: [PATCH] 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 --- etc/group | 1 + etc/master.passwd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/group b/etc/group index 1a409312d69d..9f24beda5aea 100644 --- a/etc/group +++ b/etc/group @@ -32,5 +32,6 @@ www:*:80: ntpd:*:123: _ypldap:*:160: hast:*:845: +tests:*:977: nogroup:*:65533: nobody:*:65534: diff --git a/etc/master.passwd b/etc/master.passwd index 55ab196980e7..a1be886f1e8d 100644 --- a/etc/master.passwd +++ b/etc/master.passwd @@ -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 _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 -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