Date: 19 Apr 2002 13:59:08 -0000 From: Mike Meyer <mwm@mired.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/37251: ports seem to have to hardwire numeric userids. Message-ID: <20020419135908.32874.qmail@mired.org>
next in thread | raw e-mail | index | archive | help
>Number: 37251 >Category: ports >Synopsis: ports seem to have to hardwire numeric userids. >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 19 07:00:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Mike Meyer >Release: FreeBSD 4.5-STABLE i386 >Organization: Meyer Consulting >Environment: System: FreeBSD guru.mired.org 4.5-STABLE FreeBSD 4.5-STABLE #4: Sun Apr 7 04:32:23 CDT 2002 mwm@guru.mired.org:/sharetmp/obj/usr/src/sys/GURU i386 >Description: ports that need to create userids all seem to wire a numeric userid down. This sometimes causes collisions when two ports trying to use the same uid are installed, and may also cause problems if a third party package is installed other than via ports. >How-To-Repeat: Examine some ports that create userids, and note that most (all?) wire in the userids: qmail, postgresql and perforce immediately, but there are others. >Fix: How about providing a /usr/ports/Mk/pw.conf file that specifically for creating ids - both user and group - for ports? A copy of the default that specifies a min[ug]id of 1, and a max[ug]id of 99, or roughly those numbers. That way the install scripts that currently invoke pw with something like "-u ${UID} -g ${GID}" can leave those off, and just use "-C ${PORTSDIR}/Mk/pw.conf", and have the user and groups allocated automatically. Possibly a PW variable could be added to ports/Mk/bsd.ports.mk that is set to "pw -C ${PORTSDIR}/Mk/pw.conf" to make it slightly easier to get these things right - assuming that pw will work with [-C config] before the command. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020419135908.32874.qmail>