From ca8b9ed373148ac73fac8e7aa0936d2b5d937d3c Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Sat, 17 Nov 2001 21:24:45 +0000 Subject: [PATCH] Add two new accounts/groups for sendmail: smmsp - sendmail 8.12 operates as a set-group-ID binary (instead of set-user-ID). This new user/group will be used for command line submissions. UID/GID 25 is suggested in the sendmail documentation and has been adopted by other operating systems such as OpenBSD and Solaris 9. mailnull - The default value for DefaultUser is now set to the uid and gid of the first existing user mailnull, sendmail, or daemon that has a non-zero uid. If none of these exist, sendmail reverts back to the old behavior of using uid 1 and gid 1. Currently FreeBSD uses daemon for DefaultUser but I would prefer not to use an account used by other programs, hence the addition of mailnull. UID/GID 26 has been chosen for this user. This was discussed on -arch on October 18-19, 2001. MFC after: 1 week --- etc/group | 2 ++ etc/master.passwd | 2 ++ 2 files changed, 4 insertions(+) diff --git a/etc/group b/etc/group index ea63f4ce7a2c..31e0e502ac0b 100644 --- a/etc/group +++ b/etc/group @@ -12,6 +12,8 @@ news:*:8: man:*:9: games:*:13: staff:*:20:root +smmsp:*:25: +mailnull:*:26: guest:*:31:root bind:*:53: uucp:*:66: diff --git a/etc/master.passwd b/etc/master.passwd index ab6f8300dc1e..ece6ede8fc58 100644 --- a/etc/master.passwd +++ b/etc/master.passwd @@ -10,6 +10,8 @@ kmem:*:5:65533::0:0:KMem Sandbox:/:/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/sbin/nologin +smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/sbin/nologin +mailnull:*:26:26::0:0:Sendmail Default User:/var/spool/mqueue:/sbin/nologin bind:*:53:53::0:0:Bind Sandbox:/:/sbin/nologin uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico xten:*:67:67::0:0:X-10 daemon:/usr/local/xten:/sbin/nologin