Bug 3376 - Debian packages don't point correctly to secrets.tdb
Summary: Debian packages don't point correctly to secrets.tdb
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 3.0.21a
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Simo Sorce
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 19:04 UTC by Geoffrey Scott
Modified: 2006-01-25 08:25 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Scott 2006-01-04 19:04:21 UTC
> Where is the secrets.tdb file supposed to be?  
> /var/lib/samba/secrets.tdb or /etc/samba/secrets.tdb

The samba source puts it in /etc/samba or PRIVATE, but the debian packages put secrets.tdb in /var/lib/samba

As the packages are for sarge and I want to keep compatibility with the distro packaging so that upgrades are painless I kept the FHS patches that put secrets.tdb and passdb.tdb in /var/lib/samba instead of /etc/samba.

> As per a recent post, every time that I do a net ads join it gets 
> created in /var/lib/samba/

correct for Debian packages

> But according to Jerry in another post this shows where samba expects 
> it to
> be:
> 
> root@fpsyd:~# smbd -b | grep -i privat
>    PRIVATE_DIR: /etc/samba

I should probably fix this in the patch, would you please post a bug against the packages in the bug-tracking system ?
Comment 1 Gerald (Jerry) Carter (dead mail address) 2006-01-05 09:30:26 UTC
reassigning to Simo.
Comment 2 Simo Sorce 2006-01-25 08:25:18 UTC
The packaging was indeed chosen to be compatible with the debian guys packaging.
A fix could be to change the private dir to be /var/lib/samba and patch the sources to keep only smb.conf in /etc/samba but this may break other things as a change like that would require a very careful review of which files are in the private directory right now and check whether debian puts the in /etc/samba or /var/lib/samba and make the correspondent patches.

On quick grep for exxample, I found out the we place schannel_store.tdb in the private directory but debian do not address it in their patches. This means that in it may be in /etc/samba in some systems.

I do not want to break upgrades from sarge at this point.
So i'll keep the current set of patches from Debian even if they are a bit inconsistent.

If anybody think we might address this problem in a sane and smart way please submit comments and I will see if there is a need to reopen this bug.

Simo.