[Samba] Unable to authenticate domain users

Doug Sampson dougs at dawnsign.com
Wed May 31 21:55:26 UTC 2023


> This appears in the log:
> Invalid record in smbXsrv_tcon_global.tdb:key '46186E48'
> ndr_pull_struct_blob - Buffer Size Error
> 
> I'm not sure if I've removed everything related to Samba when Samba was
> uninstalled. It appears all the TDBs, caches, and idmaps were removed. This
> is what the contents of /var/db/samba4 looks like after running Samba:
> 
> [root at aries /var/db/samba4]# ll
> total 263
> -rw-------  1 root  wheel  421888 May 31 06:26 account_policy.tdb
> drwxr-x---  2 root  wheel       2 May 31 06:19 bind-dns/
> -rw-r--r--  1 root  wheel  122120 May 31 06:38 brlock.tdb
> -rw-r--r--  1 root  wheel   16384 May 31 06:38 epmdb.tdb
> -rw-------  1 root  wheel   20480 May 31 06:38 g_lock.tdb
> -rw-r--r--  1 root  wheel  196608 May 31 06:39 gencache.tdb
> -rw-------  1 root  wheel  425984 May 31 06:38 group_mapping.tdb
> -rw-r--r--  1 root  wheel   28672 May 31 06:44 leases.tdb
> -rw-r--r--  1 root  wheel  135168 May 31 06:44 locking.tdb
> drwxr-xr-x  2 root  wheel      21 May 31 07:23 msg.lock/
> -rw-------  1 root  wheel     696 May 31 06:38 mutex.tdb
> -rw-rw----  1 root  wheel   12288 May 31 06:38 names.tdb
> -rw-------  1 root  wheel   12288 May 31 06:44 netsamlogon_cache.tdb
> drwx------  3 root  wheel       6 May 31 06:26 private/
> -rw-------  1 root  wheel  528384 May 31 07:06 registry.tdb
> -rw-------  1 root  wheel  421888 May 31 06:26 share_info.tdb
> -rw-------  1 root  wheel   32768 May 31 06:38 smbXsrv_client_global.tdb
> -rw-------  1 root  wheel   40960 May 31 06:44 smbXsrv_open_global.tdb
> -rw-------  1 root  wheel   45056 May 31 06:38 smbXsrv_session_global.tdb
> -rw-------  1 root  wheel   20480 May 31 06:44 smbXsrv_tcon_global.tdb
> -rw-------  1 root  wheel   20480 May 31 06:38 smbXsrv_version_global.tdb
> drwxr-xr-x  2 root  wheel       3 May 31 06:38 smb_krb5/
> -rw-r--r--  1 root  wheel   12288 May 31 06:38 smbd_cleanupd.tdb
> -rw-r--r--  1 root  wheel    4792 May 31 06:38 smbprofile.tdb
> -rw-------  1 root  wheel  401408 May 31 06:38 winbindd_cache.tdb
> -rw-------  1 root  wheel   28672 May 31 06:38 winbindd_cache.tdb.bak
> -rw-------  1 root  wheel   28672 May 31 06:26 winbindd_cache.tdb.bak.old
> -rw-r--r--  1 root  wheel  421888 May 31 06:44 winbindd_idmap.tdb
> drwxr-x---  2 root  wheel       3 May 31 06:38 winbindd_privileged/
> [root at aries /var/db/samba4]#
> 
> 
> I'm not sure exactly what to do next.
> 

Googling with the string of " chdir_current_service: vfs_ChDir() failed: Permission denied" led me to this: https://forums.freebsd.org/threads/samba413-samba416-chdir_current_service-vfs_chdir-failed-permission-denied-current-token-uid-1003-gid-1003-2-groups-1003-1005.88569/

It turns out I needed to adjust the permissions of the parent folder! It was at 754. Adjusted it to 755 and suddenly the shares were made available!

~Doug





More information about the samba mailing list