You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In /etc/nsswitch.conf I have subid: sss. This prevents useradd from being able to create users:
# useradd -G localx
useradd: failed to reset the lastlog entry of UID 1001: No such file or directory
useradd: failed to prepare the new /etc/subuid entry
It's not immediately clear which of these messages prevents the user from being created, but after commenting out the subid entry in /etc/nsswitch.conf, useradd works.
There's no command line option to disable subid allocation. According to #289, setting SUB_UID_COUNT and SUB_GID_COUNT to 0 in /etc/login.defs. This allows useradd to work again, however, userdel still fails:
# userdel localx
userdel: cannot remove entry 1001 from /etc/subuid
The text was updated successfully, but these errors were encountered:
nsswitch.conf having sss entry is of course up to your distro.
useradd breaking with the sss entry is probably a distro or sss issue.
Not having an option to useradd to disable subuid/subgid allocation is a reasonable feature request.
userdel breaking when SUB_XID_COUNT is 0 is a definit bug, so let's make this issue for that. If you want to make another issue for the feature of a command line option to disable subuid allocation, that would be great.
Version: shadow-utils-4.15.1-2.fc40.x86_64
In
/etc/nsswitch.conf
I havesubid: sss
. This preventsuseradd
from being able to create users:It's not immediately clear which of these messages prevents the user from being created, but after commenting out the
subid
entry in/etc/nsswitch.conf
,useradd
works.There's no command line option to disable subid allocation. According to #289, setting
SUB_UID_COUNT
andSUB_GID_COUNT
to0
in/etc/login.defs
. This allowsuseradd
to work again, however,userdel
still fails:The text was updated successfully, but these errors were encountered: