Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useradd: turn off subuid/subgid allocation #289

Closed
aw32 opened this issue Oct 15, 2020 · 1 comment · Fixed by #306
Closed

useradd: turn off subuid/subgid allocation #289

aw32 opened this issue Oct 15, 2020 · 1 comment · Fixed by #306

Comments

@aw32
Copy link

aw32 commented Oct 15, 2020

It would to be nice to be able to turn off allocation of subuids/subgids in useradd while having /etc/subuid and /etc/subgid files.
Defining SUB_GID_COUNT=0 and SUB_UID_COUNT=0 in /etc/login.defs leads to the error message:

useradd: Can't get unique subordinate UID range
useradd: can't create subordinate user IDs
@hallyn
Copy link
Member

hallyn commented Oct 17, 2020

Thanks, that does look like a bug.

In addition to fixing that bug, it might be nice to have a --no-subuids --no-subgids option (maybe only a --no-subids, not sure anyone would ever want just one or the other).

hallyn added a commit to hallyn/shadow that referenced this issue Jan 1, 2021
Closes shadow-maint#289

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants