Lukas Slebodnik wrote:
On (26/11/16 13:14), ljkimmel99(a)hotmail.com wrote:
> I noticed that when I create a user in the local provider with sss_useradd
> that the uid's begin at 1000 (or the next available based on current local
> users in /etc/passwd) and they increment each time as expected. However, if
> I add a user with sss_useradd and then immediately delete him the next
> created user still uses the next higher UID instead of the one freed up
> from the previous user. This still happens if I clear all sssd cache. Is
> there a way to reset this counter without explicitly specifying the UID
> with '-u'?
>
There isn't a way how to decrement/change counter.
Personally I'd consider this to be a feature because reusing UIDs/GIDs formerly
assigned to other users/groups can cause security issues.
Ciao, Michael.