Hi Peter, On 2021/02/09 19:51, Peter Stuge wrote:
> Joonas Niilola wrote: >> There's a script by jkroon in data/api.git >> (https://gitweb.gentoo.org/data/api.git/) that prints the next available >> UID/GID pair for new acct-* packages. > This is super nice! Thanks a lot jkroon! You're most welcome. >> It is not forbidden to mix and mash UID/GID between different packages, >> but I'd still suggest to find a new "pair" even if you push just an UID >> or GID. Since we don't seem to be in danger of running out any time soon. > Mh - so the obvious first feature request for the script is to also output > Free UID+GID pairs. Counting them manually in your screenshot I get 36. https://github.com/gentoo/api-gentoo-org/pull/367 > > That's not a whole lot; just 7% of 500. Recommended GID only: 460 Recommended UID only: 458 Recommended UID+GID both: 326 Free UIDs: 200 Free GIDs: 177 Free UID+GID pairs: 160 Full count of 32% looks a tad better than 7%. Re always picking a pair (raised in original email), my recommedation would be: Pick a pair if there is any chance that you might want the other eventually too, else pick free uid/gid. The problem with that is, if you don't take BOTH right now, someone else might take the other, so perhaps the strategy of always picking a pair is better ... Then again, there are packages that need one UID and multiple GIDs, and probably the other way around too, so not always picking pairs in such cases makes a lot of sense too. Kind Regards, Jaco
