[Samba] Missing record in share-info.tdb - More information and testing - Error log

Robert Steinmetz AIA rob at steinmetznet.com
Tue Jan 26 10:14:47 MST 2010


Error in log files;

log.wb-BUILTIN.old:[2010/01/12 09:51:37,  2] lib/util_tdb.c:tdb_log(682)
log.wb-BUILTIN.old:  tdb(unnamed): tdb_open_ex: could not open file 
/var/run/samba/unexpected.tdb: No such file or directory

This error occurs many times and is present is other wb- logs.

root at louise:/var/run/samba# ls -l
total 544
-rw-r--r-- 1 root root           40200 2010-01-26 11:22 brlock.tdb
-rw-r--r-- 1 root root           90112 2010-01-26 11:34 connections.tdb
-rw-r--r-- 1 root root           12288 2010-01-22 09:03 gencache.tdb
-rw-r--r-- 1 root root           61440 2010-01-26 11:33 locking.tdb
-rw------- 1 root root           94208 2010-01-25 17:12 messages.tdb
-rw------- 1 root root             696 2010-01-22 09:03 mutex.tdb
-rw-r--r-- 1 root root            6989 2010-01-24 07:44 namelist.debug
-rw-r--r-- 1 root root               6 2010-01-26 11:22 nmbd.pid
-rw-r--r-- 1 root root           16384 2010-01-26 11:33 notify.tdb
-rw-r--r-- 1 root root          163840 2010-01-26 11:34 sessionid.tdb
-rw-r--r-- 1 root root               6 2010-01-26 11:22 smbd.pid
-rw-r--r-- 1 root root           28672 2010-01-26 11:22 unexpected.tdb
-rw-r--r-- 1 root root               5 2010-01-25 15:00 winbindd.pid
drwxr-x--- 2 root winbindd_priv     60 2010-01-25 15:00 winbindd_privileged

root at louise:/var/run/samba# tdbtool
tdb> open unexpected.tdb
tdb> keys
tdb> dump
tdb> info
0 records totalling 0 bytes
tdb>



Robert Steinmetz AIA wrote:
> From testparm notice the [Windows] share is listed.
>
> Processing section "[printers]"
> Processing section "[print$]"
> Processing section "[Hamlet]"
> Processing section "[Projects]"
> Processing section "[Office]"
> Processing section "[Sigma]"
> Processing section "[Windows]"
> Processing section "[Recovered]"
> Processing section "[Vault]"
> Processing section "[Testing]"
>
> It appears that share-info.tdb is not being properly updated.
>
> To test I added a new share and it showed up in testparm with no error 
> but after restarting Samba nothing was added to share-info.tdb. None 
> of the .tdb files seem to have been updated in several months, which 
> isn't surprising since the Samba configuration of this server hasn't 
> changed in months.
>
> Robert Steinmetz AIA wrote:
>> I may have a clue.
>>
>> I have two servers running Samba 3.2.3, one as a Domain Controller 
>> one as a Member Server.
>> Both are running Ubuntu 8.10. smbd, nmbd and winbindd using the tdb 
>> back end are running on both.
>>
>> On the Member Server when I access the [Projects] share everything 
>> works as expected. When I access the [Windows] share I get prompted 
>> for a user name and  password but no combination works
>> If I comment out the "force group" then [Windows] mostly works but 
>> not there are issues with one application which will gives error 
>> indication it cant create files.
>>
>> I have begun looking in the various .tdb files and have found that 
>> there is no entry for the [Windows] share in share_info.tdb
>>
>> root at louise:/var/lib/samba# tdbtool
>> tdb> open share_info.tdb
>> tdb> keys
>> key 15 bytes: SECDESC/Hamlet
>> key 18 bytes: SECDESC/Recovered
>> key 14 bytes: SECDESC/Sigma
>> key 14 bytes: SECDESC/Vault
>> key 15 bytes: SECDESC/Office
>> key 16 bytes: SECDESC/Testing
>> key 13 bytes: INFO/version
>> key 17 bytes: SECDESC/Projects
>> tdb>
>>
>> The question now is how do I add a record and why isn't it there?
>> I did discover that tdb-tools package was missing from this server 
>> (or had been removed or disables). I had to add it back.
> Robert Steinmetz AIA wrote:
>> I may have a clue.
>>
>> I have two servers running Samba 3.2.3, one as a Domain Controller 
>> one as a Member Server.
>> Both are running Ubuntu 8.10. smbd, nmbd and winbindd using the tdb 
>> back end are running on both.
>>
>> On the Member Server when I access the [Projects] share everything 
>> works as expected. When I access the [Windows] share I get prompted 
>> for a user name and  password but no combination works
>> If I comment out the "force group" then [Windows] mostly works but 
>> not there are issues with one application which will gives error 
>> indication it cant create files.
>>
>> I have begun looking in the various .tdb files and have found that 
>> there is no entry for the [Windows] share in share_info.tdb
>>
>> root at louise:/var/lib/samba# tdbtool
>> tdb> open share_info.tdb
>> tdb> keys
>> key 15 bytes: SECDESC/Hamlet
>> key 18 bytes: SECDESC/Recovered
>> key 14 bytes: SECDESC/Sigma
>> key 14 bytes: SECDESC/Vault
>> key 15 bytes: SECDESC/Office
>> key 16 bytes: SECDESC/Testing
>> key 13 bytes: INFO/version
>> key 17 bytes: SECDESC/Projects
>> tdb>
>>
>> The question now is how do I add a record and why isn't it there?
>> I did discover that tdb-tools package was missing from this server 
>> (or had been removed or disables). I had to add it back.
>
>


-- 
Robert Steinmetz, AIA
Principal
Steinmetz & Associates


More information about the samba mailing list