[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
[Expired for samba (Ubuntu) because there has been no activity for 60 days.] ** Changed in: samba (Ubuntu) Status: Incomplete => Expired -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
** Tags removed: server-triage-discuss -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Also, please check in your environment (root env, likely, since root runs the do-release-upgrade tool) if you have any UCF env vars set, like UCF_FORCE_CONFNEW or any other with a prefix of UCF_ Along those lines, check /etc/ucf.conf too, because force_conffnew can also be set there, and would trigger this behavior. -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
> 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 filePackage Exists Changed /etc/samba/smb.conf samba-commonYes 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 filePackage Exists Changed /etc/samba/smb.conf samba-commonYesYes 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
adding server-triage-discuss to see if we can get someone to triage this as it looks like it may be more involved. ** Tags added: server-triage-discuss -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Hi Miriam, For me, /etc/samba/smb.conf lost all settings. Let me know if there's anything else I can provide to help with this. Regards, Fabrizzio. -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Hello Fabrizzio, thanks for sending us the smb.conf file. I used it when I followed Andreas's steps in comment #2 above [1]. Also get the prompt screen too, and it slightly changes the configuration (I mean, it doesn't keep it as it was totally), as you can see here: root@Jsamba:~# diff smb.conf.fromuser /etc/samba/smb.conf 222c222path = /var/tmp root@Jsamba:~# It is the same for you or the new /etc/samba/smb.conf loses all your settings? Awaiting for your news, I'm marking this as "Incomplete" until then. Thanks in advance. [1] https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/comments/2 -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Hi Athos, yes of course, it's not a problem, here's the smb.conf ** Attachment added: "smb.conf" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5825742/+files/smb.conf -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Hi Fabrizzio, would you also mind sharing the custom configuration file which is being replaced, given you mentioned having a snapshot of the system? -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Just to add more information. This happened to all three of my Ubuntu 22.04 systems that run samba. I still have a snapshot of those systems prior to upgrade - just in case something has to be checked there. -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
** Attachment added: "screenlog.0" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5825028/+files/screenlog.0 -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
** Attachment added: "main.log" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5825027/+files/main.log -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
** Attachment added: "history.log" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5825026/+files/history.log -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
** Attachment added: "apt-term.log" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5825025/+files/apt-term.log -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
** Attachment added: "apt.log" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2082608/+attachment/5825024/+files/apt.log -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
I don't think this is a problem in the release upgrader, so I'll mark that task invalid for now. ** Changed in: samba (Ubuntu) Status: New => Incomplete ** Changed in: ubuntu-release-upgrader (Ubuntu) Status: New => Invalid -- 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
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 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
[Bug 2082608] Re: 22.04.5 to 24.04.1 sets /etc/samba/smb.conf to default
Thank you for making this bug report Fabrizzio, and making Ubuntu better! I apologize for your configuration file getting overwritten. It looks like this should be fixed in u-r-u to prompt to use the current or new config, and potentially even have the maintainers scripts maintain an old config file setup as backup. I've tagged u-r-u and added this to our log. ** Also affects: ubuntu-release-upgrader (Ubuntu) Importance: Undecided Status: New -- 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