Quoting Nikolaus Rath (nikol...@rath.org): > Oh, of course you are right. Thanks for spotting this. Grepping > through source3, I found the following affected files: > > idmap2.tdb > secrets.tdb > passdb.tdb (as PASSDB_FILE_NAME) > ldap_priv/ > MACHINE.SID > > Since this does actually not include smbpasswd, I may have missed > something here. Can you tell me where the references to smbpasswd are > located? Are they just in debian/? > > In terms of moving the files, would a simple > > for name in idmap2.tdb \ > secrets.tdb \ > passdb.tdb \ > ldap_priv \ > MACHINE.SID; do > [ -e /etc/samba/${name} ] && mv /etc/samba/${name} /var/lib/samba/ > done > > in debian/samba-common.postins be sufficient? (or should it be > samba.postinst?)
The code should be a little bit more complicated as this should happen only for upgrades from versions prior to the change. Indeed, we already have such code in samba.postinst and it actually does such move for some of these files...:-)
signature.asc
Description: Digital signature