> Can you elaborate a bit about the usecase? How would a perfect adduser be
> called, and what would the intended result be? Can this be achieved without
> pulling in additional dependencies?

My usecase is a tool for testing programs in programming contests
(https://github.com/ioi/isolate). It runs the programs in namespace-based
sandboxes, for which it needs a range of otherwise unused UIDs and GIDs.

To allocate the [UG]IDs, I would like to use the sub[ug]id mechanism.
So I created a user in the postinst script, hoping that it gets a range
of sub[ug]ids allocated, but it does not happen if it's a system user.

The "useradd" tool already has an option for that: --add-subids-for-system.

So it would be nice for "adduser --system" to have a similar option,
which just gets propagated to useradd.

                                Martin

Reply via email to