ports/108784: security/stunnel: [patch] assign permanent uid and gid

Alex Kozlov spam at rm-rf.kiev.ua
Mon Feb 5 04:00:40 UTC 2007


>Number:         108784
>Category:       ports
>Synopsis:       security/stunnel: [patch] assign permanent uid and gid
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 05 04:00:36 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        FreeBSD 6.2
>Organization:
private
>Environment:
>Description:
Assign permanent uid and gid to stunnel
>How-To-Repeat:

>Fix:
--- ports/GIDs  Wed Jan 31 01:13:56 2007
+++ GIDs.new    Mon Feb  3 23:43:48 2007
@@ -80,6 +80,7 @@
 _sphinx:*:312:
 dkfilter:*:325:
 wildfire:*:340:
+stunnel:*:361:
 ldap:*:389:
 tiarra:*:398:
 drweb:*:426:
--- ports/UIDs  Wed Jan 31 01:13:56 2007
+++ UIDs.new    Mon Feb  3 23:44:38 2007
@@ -91,6 +91,7 @@
 _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:*:361:361: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
--- ports/security/stunnel/pkg-install  Fri Sep 20 12:29:10 2002
+++ pkg-install.new             Mon Feb  3 23:45:04 2007
@@ -16,7 +16,7 @@
        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 361 -n ${GROUP} ; then
                        echo "Added group \"${GROUP}\"."
                else
                        echo "Adding group \"${GROUP}\" failed..."
@@ -27,7 +27,7 @@
        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 361 -n ${USER} -g ${GROUP} -h - \
                        -d /nonexistent -c "stunnel Daemon" -s /sbin/nologin
                then
                        echo "Added user \"${USER}\"."

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list