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.
But you can manually edit nextID attribute in sssd cache.
Only at your own risk.
sh# ldbedit -H /var/lib/sss/db/sssd.ldb -s base -b cn=local,cn=sysdb
LS