> 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 ?
reassigning to Simo.
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.