Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 2009 14:03:31 GMT
From:      Artis Caune <Artis.Caune@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137175: [patch] dns/unbound: fix group name when creating user
Message-ID:  <200907271403.n6RE3VIS028549@www.freebsd.org>
Resent-Message-ID: <200907271410.n6REA0H7063405@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137175
>Category:       ports
>Synopsis:       [patch] dns/unbound: fix group name when creating user
>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 Jul 27 14:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Artis Caune
>Release:        current
>Organization:
>Environment:
FreeBSD 8.0-BETA2 #0 r195825: Wed Jul 22 23:15:57 EEST 2009     root@builder:/usr/obj/usr/src/sys/FREEBSD
>Description:
+INSTALL script is creating unbound group, but not using it. Instead it use "daemon" group for unbound user.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- files/pkg-install.in.orig	2008-05-07 11:33:37.000000000 +0000
+++ files/pkg-install.in	2009-07-27 13:57:59.180582753 +0000
@@ -28,7 +28,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} -u ${UID} -g daemon -h - \
+		if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
 			-d "/nonexistent" -s /usr/sbin/nologin -c "unbound dns resolver"
 		then
 			echo "Added user \"${USER}\"."


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907271403.n6RE3VIS028549>