> Setting up samba-common (2:4.19.5+dfsg-4ubuntu9) ...
> Replacing config file /etc/samba/smb.conf with new version

samba-common's postinst has:

if [ "$1" = configure ]; then
...

    ucf --three-way --debconf-ok /usr/share/samba/smb.conf "$CONFIG"


That follows normal config file rules. ucf uses a md5sum database to check if 
the config file was changed or not, and that DB is in /var/lib/ucf.

You could run this prior to the upgrade:

$ ucfq /etc/samba/smb.conf 
Configuration file                            Package             Exists Changed
/etc/samba/smb.conf                           samba-common        Yes     No

In my case, it wasn't changed, so an upgrade would replace it.

Let's change it:
$ echo "# test" | sudo tee -a /etc/samba/smb.conf 
[sudo] password for andreas: 
# test

$ ucfq /etc/samba/smb.conf 
Configuration file                            Package             Exists Changed
/etc/samba/smb.conf                           samba-common        Yes    Yes

It will look at /var/lib/ucf/hashfile to check the md5sum of the
original config file.


Just thinking out loud here, do you have symlinks at play perhaps? Is 
/etc/samba/smb.conf an actual file?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2082608

Title:
  22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to