I have on a Samba File Server (openSUSE Leap 15), a directory with subdirectorys in which some should have no more owner. User Name Resolution is going by winbind. I want to delete every dir with no owner.
The Problem is, that ls -la
shows me, that some subdirectorys still have a user as owner that doesnt exist anymore in the AD. wbinfo -u
doesnt shows me the deleted user and on the AD the user definetly doenst exist anymore too. Also getent passwd doesnt shows the users which ls -la shows as owner.
Things i have done already:
- Reboot
- net cache flush
- manually delete
winbindd_cache.tdb
andwinbindd_idmap.tdb
Very strange, is there a other cache that would be not cleared by net cache flush?
PS: the nscd daemon is running too on the Samba File Server
Here the smb.conf for winbind config
[global]
workgroup = domain
realm = domain.DOMAIN
netbios name = name
security = ADS
interfaces = 1.2.3.4 127.0.0.1/8
bind interfaces only = yes
log level = 1
template shell = /bin/false
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes
registry shares = yes
hide unreadable = yes
#hide dot files = yes
hide files = /$*/desktop.ini/RECYCLER/Thumbs.db/
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
winbind enum users = yes
winbind enum groups = yes
winbind expand groups = 4
username map = /etc/samba/samba_usermapping
idmap config * : range = 2000 - 999999
idmap config domain:backend = rid
idmap config domain:range = 1000000 - 1999999