Clear winbind cache

Once winbind assigns a uid/gid to a user it seems impossible to clear it. I’ve even tried deleting and reinstalling the packages samba, samba-client, and samba-winbind, removing /etc/samba and /var/lib/samba. When winbind comes back up it still has the old uid/gid assignments.

How can I get winbind to forget the old uid/gid assignments so I can set them up the way I want?


A possible answer here

You can stop the services with

systemctl stop winbind smb

flush the samba cache

net flash cache

and remove the required .tdb files etc
and restart with

systemctl start winbind smb

See how that goes.