diff options
author | roam <roam@FreeBSD.org> | 2007-08-28 18:01:00 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2007-08-28 18:01:00 +0800 |
commit | 208f5870db3173cc667bf67f7b118de1cff6c29b (patch) | |
tree | d56428f950dfaa8c816f98acd68ca29bb514a709 /security/stunnel/pkg-install | |
parent | 4a8049e8809d76c5ded4c8cf673dd916ee96fabe (diff) | |
download | freebsd-ports-gnome-208f5870db3173cc667bf67f7b118de1cff6c29b.tar.gz freebsd-ports-gnome-208f5870db3173cc667bf67f7b118de1cff6c29b.tar.zst freebsd-ports-gnome-208f5870db3173cc667bf67f7b118de1cff6c29b.zip |
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>
Diffstat (limited to 'security/stunnel/pkg-install')
-rw-r--r-- | security/stunnel/pkg-install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/stunnel/pkg-install b/security/stunnel/pkg-install index 2753471a8467..1fd776379bbf 100644 --- a/security/stunnel/pkg-install +++ b/security/stunnel/pkg-install @@ -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}\"." |