[Pkg-samba-maint] Bug#926887: Bug#926887: Upgrade replaced smb.conf

Mathieu Parent math.parent at gmail.com
Thu Apr 18 15:04:04 BST 2019


Control: fixed -1 2:4.8.1+dfsg-1

Le jeu. 11 avr. 2019 à 22:06, Alexander Toresson
<alexander.toresson at gmail.com> a écrit :
>
> Package: samba-common
> Version: 2:4.2.14+dfsg-0+deb8u12
>
> Hi,
>
> Suddenly my smb shares stopped working. I found out that an unattended upgrade of samba-common hade replaced (!) smb.conf, for whatever reason:
>
> Excerpt from /var/log/unattended-upgrades/unattended-upgrades-dpkg.log:
> ...
> Setting up samba-common (2:4.2.14+dfsg-0+deb8u12) ...
> Replacing config file /etc/samba/smb.conf with new version
> ...
>
> This is not something I'd expect to happen on package upgrade, at least not without being asked about it, which cannot be done for an unattended upgrade. Also, this was a security upgrade from deb8u11 to deb8u12, on which I'd expect it even less.
>
> This occured on debian 8.11 armel.

Samba uses ucf to manage config file during upgrade. This should
ensure proper three way merge between old, new and local config.
However this is a bit broken in stretch as it searches for [cdrom]
section.

Can you send your /etc/samba/smb.conf* (including .ucf*) and
/var/run/samba/upgrades/smb.conf files?

Regards
-- 
Mathieu Parent



More information about the Pkg-samba-maint mailing list