[Samba] Delete user from winbind db.

John H Terpstra jht at Samba.Org
Tue Jun 14 20:35:52 GMT 2005


On Tuesday 14 June 2005 14:07, Ben Timby wrote:
> OK, I added an account to my Windows domain, then later deleted that
> account.
>
> hebe bin # wbinfo -u
> ...
> PROD+site00002
> ...
>
> Still shows this user, how can I delete it from the winbind database?
>
> I tried:
>
> hebe bin # wbinfo -x site00002
> Could not delete user account
>
> and
>
> hebe bin # wbinfo -x PROD+site00002
> Could not delete user account
>
> Any ideas?

It is in your winbind_idmap.tdb file, in the /var/lib/samba 
or /var/cache/samba/... directory. If you delete this file, when it gets 
recreated the SID to [U|G]ID mappings may not be the same as they were.
So deleting the file means that you will have to fix file ownerships.

Samba does not delete entries from the winbind_idmap.tdb file. If it did, then 
any files that may be owned by a deleted user will have no owner.

- John T.


More information about the samba mailing list