[Pkg-samba-maint] ucf handling smb.conf

martin at fluxstatus.de martin at fluxstatus.de
Wed Dec 11 15:52:24 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello list,

i hope this is the right place to ask the following question, i did not
find something useful in the interwebs.
I built my own package which ships a custom smb.conf with it.
Because i saw that you do not provide a smb.conf, i looked around and
saw that you do the conf-file handling with ucf.
Therefore i thought it would be correct to move /etc/samba/smb.conf to
my package in the ucf registry with my preinstall script.

ucfr -f <my-package> /etc/samba/smb.conf

Now there where some updates recently on one of the Ubuntu 12.04 boxes
and there was also an update to samba-common, but the updates could not
be installed. The error message was this:

Setting up samba-common (2:3.6.3-2ubuntu2.9) ...
ucfr: Attempt from package samba-common  to take /etc/samba/smb.conf
away from package is24-sssd
ucfr: Aborting.
dpkg: error processing samba-common (--configure):
 subprocess installed post-installation script returned error exit status 4

My question now is, what would be the right way do provide a smb.conf
file? I would like to avoid samba-common to overwrite my changes and any
user interaction.


Cheers

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlKoijgACgkQTfLcIQC5cZII6QCfT6WkRAHRMKijO4f4KuexM3nS
urMAoLvYGlDkDWL6R+raGmc/JxlMAoTL
=c+sY
-----END PGP SIGNATURE-----



More information about the Pkg-samba-maint mailing list