[gentoo-dev] Gentoo standard UIDs
Hi there, I've recently written an ebuild for a package that needs to create an user, and I have several questions regarding this issue. Is there anywhere I can find the list of standard UIDs/GIDs used in Gentoo? Is there any kind of linux/unix standard regarding this? I've been googling for this, but although there seems to be some type of convention regarding reservation of UIDs in some range (0-100, 0-500, 0-999 in useradd man page), there doesn't seem to be anything resembling a standard. I've also noticed that each distribution seems to use their own list of reserved UIDs/GIDs. I also took a look at http://devmanual.gentoo.org/ebuild-writing/users-and-groups/index.html, and there they say that you shouldn't hard code the UID/GID, so does enewuser use some kind of algorithm to keep the new UID/GIDs in a given range? Can I be sure that a UID generated by enewuser won't collide with some range I reserve for non system users? Thanks in advance, best regards Jose
Re: [gentoo-dev] Gentoo standard UIDs
On Thu, 2007-02-01 at 15:55 +0100, José González Gómez wrote: Hi there, I've recently written an ebuild for a package that needs to create an user, and I have several questions regarding this issue. Is there anywhere I can find the list of standard UIDs/GIDs used in Gentoo? There is GLEP 27 but I do not believe any official action has been taken to implement said GLEP. http://www.gentoo.org/proj/en/glep/glep-0027.html I inquired about it several months back on irc, but can't recall the details at this time. Pretty sure it's not implemented yet, but there might be some efforts in that direction. Anyone else have info on this? -- William L. Thomson Jr. Gentoo/Java signature.asc Description: This is a digitally signed message part
Re: [gentoo-dev] Gentoo standard UIDs
On Thu, 01 Feb 2007 10:26:49 -0500 William L. Thomson Jr. [EMAIL PROTECTED] wrote: I inquired about it several months back on irc, but can't recall the details at this time. Pretty sure it's not implemented yet, but there might be some efforts in that direction. http://svn.pioto.org/viewvc/creandus/ http://svn.pioto.org/viewvc/creandus-overlay/ -- gentoo-dev@gentoo.org mailing list
Re: [gentoo-dev] Gentoo standard UIDs
José González Gómez wrote: Is there anywhere I can find the list of standard UIDs/GIDs used in Gentoo? There is / was such a list in CVS[1] at some point, thought it is far from complete or current. I also took a look at http://devmanual.gentoo.org/ebuild-writing/users-and-groups/index.html, and there they say that you shouldn't hard code the UID/GID, so does enewuser use some kind of algorithm to keep the new UID/GIDs in a given range? Can I be sure that a UID generated by enewuser won't collide with some range I reserve for non system users? You can pass -1 as the uid parameter to enewuser. In this case, it will search for the first free uid between 101 and 999, inclusive. This will be much nicer / easier to do once I finish my[2] GLEP 27[3] implementation... [1] http://sources.gentoo.org/viewcvs.py/gentoo-src/eid_database/ [2] http://soc.pioto.org/ [3] http://www.gentoo.org/proj/en/glep/glep-0027.html -- Mike Kelly signature.asc Description: OpenPGP digital signature