[Pkg-samba-maint] Bug#249873: Bug#249873: Updated patch

Christian PERRIER bubulle at debian.org
Tue May 8 07:28:47 UTC 2012


Quoting Nikolaus Rath (Nikolaus at 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...:-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20120508/3b960810/attachment.pgp>


More information about the Pkg-samba-maint mailing list