public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] dynamic groups and users
@ 2019-08-01 19:04 Jaco Kroon
  2019-08-01 20:01 ` Mike Gilbert
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Jaco Kroon @ 2019-08-01 19:04 UTC (permalink / raw
  To: gentoo-dev

Hi,

Looking at the new eclasses for acct-user and acct-group.

These enforce that a group and user id should be set.

This is not a requirement for enewuser nor enewgroup.

As a further discrepancy, the user eclass requires >0 for the IDs, 
whereas the checks in acct-user and acct-group is for >= 0.

Would it be ok to suggest that we allow -1 (or 0, but that could be 
confused with the root user/group) in acct-user and acct-group to 
specify "no specific id, please allocate dynamically"?

Use case:  I'm building some experimental packages in an overlay, and I 
really don't care what the UID and GID values are, I just need something 
unique on the host I can use to avoid running the service as root.  
Guessing I could just manually useradd -r but then again ... if I do 
later submit these into the main tree (or other packages) then it 
becomes a problem, and maintaining acct-{user,group}/* outside of main 
tree could conflict with main tree at a later stage ... either way, 
having some way to say "I honestly don't care, just give me a random 
number" is probably a good thing.

Kind Regards,
Jaco







^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-08-17 20:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-01 19:04 [gentoo-dev] dynamic groups and users Jaco Kroon
2019-08-01 20:01 ` Mike Gilbert
2019-08-01 20:22   ` Jaco Kroon
2019-08-02 16:33   ` Mike Gilbert
2019-08-01 20:47 ` Michał Górny
2019-08-02  9:14   ` Jaco Kroon
2019-08-02  9:53     ` Michał Górny
2019-08-02 15:46       ` Michael Orlitzky
2019-08-02 15:58         ` Michał Górny
2019-08-02 16:24           ` Michael Orlitzky
2019-08-02 17:06             ` Michał Górny
2019-08-04 16:22               ` Jaco Kroon
2019-08-06 11:41                 ` Jaco Kroon
2019-08-07 15:48                   ` Michał Górny
2019-08-08  6:52                     ` Jaco Kroon
2019-08-08  8:42                     ` Ulrich Mueller
2019-08-08 10:04                       ` Jaco Kroon
2019-08-03  0:53             ` James Cloos
2019-08-17 20:38 ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox