From owner-freebsd-ports Fri Apr 19 7: 0:11 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 651EB37B416 for ; Fri, 19 Apr 2002 07:00:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3JE02X44729; Fri, 19 Apr 2002 07:00:02 -0700 (PDT) (envelope-from gnats) Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id E2CE737B416 for ; Fri, 19 Apr 2002 06:59:08 -0700 (PDT) Received: (qmail 32875 invoked by uid 100); 19 Apr 2002 13:59:08 -0000 Message-Id: <20020419135908.32874.qmail@mired.org> Date: 19 Apr 2002 13:59:08 -0000 From: Mike Meyer Reply-To: Mike Meyer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37251: ports seem to have to hardwire numeric userids. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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