Reserve a user and group ID for the stunnel daemon.

Loosely based on the PR, although I just used the next available UID/GID.

PR:		108784
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>
This commit is contained in:
Peter Pentchev 2007-08-28 10:01:00 +00:00
parent 040d1b21b9
commit 4afa9507f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198434
4 changed files with 5 additions and 2 deletions

1
GIDs
View file

@ -91,6 +91,7 @@ prelude:*:281:
_sphinx:*:312:
dkfilter:*:325:
wildfire:*:340:
stunnel:*:341:
ldap:*:389:
tiarra:*:398:
drweb:*:426:

1
UIDs
View file

@ -101,6 +101,7 @@ prelude:*:281:281:Prelude user:/nonexistent:/sbin/nologin
_sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/sbin/nologin
dkfilter:*:325:325:DK Filter Owner:/nonexistent:/sbin/nologin
wildfire:*:340:340::0:0:Wildfire Daemon:/nonexistent:/sbin/nologin
stunnel:*:341:341::0:0:Stunnel Daemon:/nonexistent:/sbin/nologin
ldap:*:389:389:OpenLDAP Server:/nonexistent:/sbin/nologin
tiarra:*:398:398:Tiarra IRC Proxy:/nonexistent:/usr/sbin/nologin
drweb:*:426:426:Dr.Web Mail Scanner:/nonexistent:/sbin/nologin

View file

@ -7,6 +7,7 @@
PORTNAME= stunnel
PORTVERSION= 4.20
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.stunnel.org/download/stunnel/src/ \
ftp://stunnel.mirt.net/stunnel/ \

View file

@ -16,7 +16,7 @@ POST-INSTALL)
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
else
if pw groupadd ${GROUP} ; then
if pw groupadd -g 341 -n ${GROUP} ; then
echo "Added group \"${GROUP}\"."
else
echo "Adding group \"${GROUP}\" failed..."
@ -27,7 +27,7 @@ POST-INSTALL)
if pw user show "${USER}" 2>/dev/null; then
echo "You already have a user \"${USER}\", so I will use it."
else
if pw useradd ${USER} -g ${GROUP} -h - \
if pw useradd -u 341 -n ${USER} -g ${GROUP} -h - \
-d /nonexistent -c "stunnel Daemon" -s /sbin/nologin
then
echo "Added user \"${USER}\"."