ports/103436: sysutils/munin* user detection broken

johan at stromnet.org johan at stromnet.org
Wed Sep 20 16:21:24 UTC 2006


>Number:         103436
>Category:       ports
>Synopsis:       sysutils/munin* user detection broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 20 16:20:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Johan Strom
>Release:        FreeBSD 6.1-RELEASE-p7 amd64
>Organization:
stromnet
>Environment:
System: FreeBSD elfi.stromnet.org 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Wed Sep 20 09:21:41 CEST 2006 admin at elfi.stromnet.org:/usr/obj/usr/src/sys/ELFI amd64

>Description:
	When install script is checking if user exists, it does it by grep'ing in passwd/group. This fails for example when the user is in LDAP.
>How-To-Repeat:
	Try to install munin-node or munin-main when the munin user is not in local passwd but instead in nis/ldap etc.
>Fix:
	Fix attached using pw instead, applies to files/patch-Makefile.config

--- patch begins here ---
81,82c81,82
< +CHECKUSER:= $(shell grep $(USER) /etc/passwd >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2"))
< +CHECKGROUP:= $(shell grep $(GROUP) /etc/group >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2"))
---
> +CHECKUSER:= $(shell /usr/sbin/pw user show $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2"))
> +CHECKGROUP:= $(shell /usr/sbin/pw group show $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2"))
--- patch ends here ---


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



More information about the freebsd-ports-bugs mailing list