[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default

Andreas Hasenack 2082608 at bugs.launchpad.net
Tue Oct 1 19:21:54 UTC 2024


I installed jammy (22.04) in a lxd container, then samba, and modified
the smb.conf to export a share that I created.

Then I did a release-upgrade to jammy, and at some point got the
expected prompt about modified smb.conf (see attached screenshot). I
replied with the default option (leave the config file as is, i.e., keep
my changes), and confirmed after the upgrade finished that the smb.conf
was still the one that had my modifications.

@fabrizziopm we are going to need more details about what happened to
your system. Upgrade logs would help a lot, please check /var/log/dist-
upgrade and attach all *.log files from there to this ticket.

For now, I'll mark this as incomplete pending the requested information.

** Attachment added: "Screenshot from 2024-10-01 16-14-35.png"
   https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5823878/+files/Screenshot%20from%202024-10-01%2016-14-35.png

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

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

Status in samba package in Ubuntu:
  Incomplete
Status in ubuntu-release-upgrader package in Ubuntu:
  Invalid

Bug description:
  Upgraded Ubuntu 22.04.5 LTS server to 24.04.1 LTS using do-release-upgrade.
  Before upgrade, server was fully up-to-date and freshly rebooted.

  I was not prompted during the upgrade process, about a configuration
  change of smb.conf.

  Yet after the upgrade, the contents of /etc/samba/smb.conf are the
  defaults, all custom settings were lost, and there is no
  "smb.conf.dpkg-old" nor similar file on /etc/samba/

  More specifically the upgrade was samba:amd64
  2:4.15.13+dfsg-0ubuntu1.6 -> 2:4.19.5+dfsg-4ubuntu9

  ### What you expected to happen

  Either /etc/samba/smb.conf untouched, or the usual "a new version of
  configuration file blahblahblah is available but yours is locally
  modified" with the prompt on what to do.

  ### What happened

  /etc/samba/smb.conf was just overwritten with defaults.

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




More information about the foundations-bugs mailing list