Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH v3] glep-0081: User and group management via dedicated packages
Date: Thu, 20 Jun 2019 14:15:21
Message-Id: b5c0115b-3d14-abfa-67c3-4cd07b19b02b@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH v3] glep-0081: User and group management via dedicated packages by Brian Evans
1 On 6/20/19 9:53 AM, Brian Evans wrote:
2 >> +
3 >> +Following the acceptance of this GLEP, all new users and groups must
4 >> +be created via user/group packages as defined in this GLEP. The old
5 >> +method may still be used for existing users/groups, in existing
6 >> +packages.
7 >> +
8 >> +All new users and groups must have unique UIDs/GIDs assigned
9 >> +by developers. The developer adding them is responsible for checking
10 >> +for collisions.
11 >
12 > What significance will such numbers have when a daemon uses a new
13 > UID/GID and really doesn't care what it is? Why do we have to go
14 > through the effort of assigning fixed IDs at random?
15 >
16
17 People want this. Here's the thread from 2017:
18
19 https://archives.gentoo.org/gentoo-dev/message/2355afd4f5b72651e2ff47ea8b10c1fe
20
21 Selectively quoting:
22
23 * I might be not following correctly, but due to how filesystems/etc
24 work it is probably desirable to have consistent UID/GIDs as much as
25 reasonably possible. -rich0
26
27 * I don't think we need to have stable UIDs/GIDs in the "normal" case
28 of standalone users with a single Gentoo system at home. The people
29 who need predictable UIDs/GIDs are the "enterprise" users or the
30 home users who use things such as NFS. I work for a company that
31 uses Gentoo, we have a bunch of workarounds to make sure that UIDs
32 and GIDs are stable. -chutzpah
33
34 * I for one am more than willing to do whatever shell commands
35 necessary to make all my Gentoo installs agree on UIDs and get
36 [fixed UID proposal] now, but I realise most people are not.
37 -A. Wilcox
38
39 * YES! I think after [fixed UIDs] is finalized, it should be part of
40 the handbook installation as a default, but selectable. -james
41
42 * If the user does not exist then create it. Preferably use a pre-
43 assigned UID/GID so there is some consistency with most other
44 Gentoo things out there. -Alan McKinnon
45
46 This will make a lot of peoples' lives easier, and is very easy to do.