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

Robert Steinmetz AIA rob at steinmetznet.com
Tue Jan 26 09:35:18 MST 2010


 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