From nobody@FreeBSD.org  Mon Feb  5 03:55:09 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 455FC16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Feb 2007 03:55:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 26ACA13C467
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Feb 2007 03:55:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l153t9m0047727
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 5 Feb 2007 03:55:09 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l153t8tM047726;
	Mon, 5 Feb 2007 03:55:08 GMT
	(envelope-from nobody)
Message-Id: <200702050355.l153t8tM047726@www.freebsd.org>
Date: Mon, 5 Feb 2007 03:55:08 GMT
From: Alex Kozlov<spam@rm-rf.kiev.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/stunnel: [patch] assign permanent uid and gid
X-Send-Pr-Version: www-3.0

>Number:         108784
>Category:       ports
>Synopsis:       security/stunnel: [patch] assign permanent uid and gid
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 05 04:00:36 GMT 2007
>Closed-Date:    Tue Aug 28 10:02:12 GMT 2007
>Last-Modified:  Tue Aug 28 10:10:02 GMT 2007
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->roam 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 5 04:00:55 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108784 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Tue Aug 28 10:01:25 UTC 2007 
State-Changed-Why:  
I just committed a similar change, although I simply used the next 
available user/group ID, 341, instead of 361 :) 
Thanks a lot for the update, though! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108784 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/108784: commit references a PR
Date: Tue, 28 Aug 2007 10:01:06 +0000 (UTC)

 roam        2007-08-28 10:01:00 UTC
 
   FreeBSD ports repository
 
   Modified files:
     .                    UIDs GIDs 
     security/stunnel     Makefile pkg-install 
   Log:
   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>
   
   Revision  Changes    Path
   1.46      +2 -1      ports/GIDs
   1.49      +2 -1      ports/UIDs
   1.79      +1 -0      ports/security/stunnel/Makefile
   1.2       +3 -3      ports/security/stunnel/pkg-install
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
