From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1807 invoked by uid 1002); 30 May 2003 17:42:42 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 27906 invoked from network); 30 May 2003 17:42:42 -0000 From: Vadim To: gentoo-dev@gentoo.org Date: Fri, 30 May 2003 19:41:31 +0200 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200305301941.39521.vadim_t@teleline.es> Subject: Re: [gentoo-dev] Assigning unique system uid/gid for new ebuild X-Archives-Salt: 3c713612-8f01-4392-9a3b-7b5ef574b8ea X-Archives-Hash: c21371222c0996846c67392a534854b2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 30 May 2003 17:18, Grant Goodyear wrote: > > In principle packages should never depend on any fixed user id. > > They should look at the passwd database for their uid. The only > > exception is root which has a predefined userid. > > I believe that Mr. Lesser is asking how one decides on uid/gid's > for new packages that should run as something other than root. > (For example, apache runs as apache.apache, which maps to uid=81 > and gid=81, and those numbers are defined in the /etc/passwd file > that's part of baselayout.) How about fixing the system? For example something like this: useradd foo FOO_UID=`awk -F: '$1 == "foo" {printf $3}' /etc/passwd` FOO_GID=`awk -F: '$1 == "foo" {printf $4}' /etc/passwd` I've just started at trying to make ebuilds but I suppose this could be put somewhere in an eclass. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+15fLvCkUtBccqkoRAgTdAKCoxbX3qhh7ZuykpHocE1XqYPCazwCdFt7y iQP2BpHVxX7CDWxjKcPZDl4= =lRYI -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list