Luis Peromarta
2025-Nov-03 18:45 UTC
[Samba] Upgrading Samba AD DCs from Debian 12 (Bookworm) to Debian 13 (Trixie)
There is no issue demoting and joining with same old host name and IP. Actually in order to upgrade major versions of samba this is the recommended way. By self compiling you are exposed to a number of risks I don?t see worth assuming. On 3 Nov 2025 at 18:00 +0100, Olivier BILHAUT via samba <samba at lists.samba.org>, wrote:> Hi Luis, Rowland, and Carlos, > > We are in the same situation than > Carlos, we host self-compiled samba4 on Debian virtual servers. > > We use > to simply upgrade our DC the way Carlos reported, and generally, to run > the compilation again. > > Should we expect any particular issue with this > upgrade or you think this steps should work the same way ? > > To be > honest, promote/demote is not really an option since the hostname is > used in many third-party scripting, firewall configurations, and so > on... > > Thanks, > > -- > > Olivier B > > Le 2025-11-03 14:35, Luis Peromarta > via samba a ?crit : > > > It will be easier, safer and future proof. > > > > > These notes are valid for Trixie except the backports. > > > > > http://atpscan.global.hornetsecurity.com?d=uB-YFc9CxlLH0ewdeTtzkU8BNMOLheg7yr-UciRGsO0U7SYNuVCkt9OYx6vopftA&f=I2jtl_NB0sFP6p3sRi25cH9-UwJ46AICdju6sOQK5nVuUHtXdrhdNpfOASYR0mpn&i=&k=TUNm&m=y6aHr48WR_xBqjcfuuvRXbtbEPKiewijYs30kGTF4oBje9OrN7HJDf7RTypS4IbcNim6TQwus7lFW93TErx5DhWLxVN8WDEyAP9aL9A48g_MfMjcVhe6aimP9xPO8aoZ&n=rNaBH2giTAjyq7oDuRd5gXH8W0QqjHBnrpvym1OxLyM&r=2MSHxQmwbuiIAUiV9Nf6kxYXI12_CHU_cvMUyhDzO6VlKJbW5OL6Ef2v64qduBgFpK17U0yPIhAdUhtl4qUsyg&s=7cfbcec183cf8a856a6eb93b4697bf05d136fed74e96099bb39210999753c8bc&u=http%3A%2F%2Fsamba.bigbird.es%2Fdoku.php%3Fid%3Dsamba%3Aaditional-dc > > > On 3 Nov 2025 at 14:33 +0100, samba at lists.samba.org > <samba at lists.samba.org>, wrote: > > > > > > It might be easier to add a > > > > new > DC and then demote the old one. > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Carlos Gardel
2025-Nov-05 21:22 UTC
[Samba] Upgrading Samba AD DCs from Debian 12 (Bookworm) to Debian 13 (Trixie)
Hello Rowland, Luis, and Olivier, Thank you for your input! I think I will follow your advice and start by upgrading the DC where Samba is installed from the Debian backports repository. After that, I will attempt to upgrade the self-compiled DC. I will also consider replacing the self compiled DC with a new DC with Debian's packages! The reason I have a self-compiled installation on one of the DCs is that I initially followed the Samba Wiki?s recommendation for this setup years ago (when I was running my DCs on CentOS 6). At that time, the Wiki did not contain any warnings about building Samba from source. When I later moved to Debian for the DCs, Debian's packaged Samba version was quite old, so I decided to continue using a self-compiled build ? this was before I became aware of Debian backports. For the self-compiled DC, I built Samba using the Wiki instructions by first running the bootstrap script and then: $./configure $ make $ make install I did not set any custom --prefix, and the Debian system itself was installed with minimal packages (?SSH Server? and ?Standard System Utilities?), so there are no Debian Samba packages installed alongside the self-compiled version. I have noted that on the self-compiled DC, smb.conf is located under /usr/local/samba, whereas on the DC using Debian backports, Samba?s configuration resides in /etc/samba. Referring to Rowland?s comment: "What I wouldn't do is to upgrade the existing DC and try and upgrade/install Samba unless your self compiled Samba has the parts of Samba in the same places as where Debian packages place them." Is there a specific --prefix or installation path that could (or should) be used to to install a self compiled version of samba to the directories used by Debian?s Samba packages? Thank you all again for sharing your experience and insight. Kind regards, Carlos ________________________________ Fr?n: samba <samba-bounces at lists.samba.org> f?r Luis Peromarta via samba <samba at lists.samba.org> Skickat: M?ndag, 03 november 2025 19:45 Till: Samba List <samba at lists.samba.org> ?mne: Re: [Samba] Upgrading Samba AD DCs from Debian 12 (Bookworm) to Debian 13 (Trixie) There is no issue demoting and joining with same old host name and IP. Actually in order to upgrade major versions of samba this is the recommended way. By self compiling you are exposed to a number of risks I don?t see worth assuming. On 3 Nov 2025 at 18:00 +0100, Olivier BILHAUT via samba <samba at lists.samba.org>, wrote:> Hi Luis, Rowland, and Carlos, > > We are in the same situation than > Carlos, we host self-compiled samba4 on Debian virtual servers. > > We use > to simply upgrade our DC the way Carlos reported, and generally, to run > the compilation again. > > Should we expect any particular issue with this > upgrade or you think this steps should work the same way ? > > To be > honest, promote/demote is not really an option since the hostname is > used in many third-party scripting, firewall configurations, and so > on... > > Thanks, > > -- > > Olivier B > > Le 2025-11-03 14:35, Luis Peromarta > via samba a ?crit : > > > It will be easier, safer and future proof. > > > > > These notes are valid for Trixie except the backports. > > > > > http://atpscan.global.hornetsecurity.com?d=uB-YFc9CxlLH0ewdeTtzkU8BNMOLheg7yr-UciRGsO0U7SYNuVCkt9OYx6vopftA&f=I2jtl_NB0sFP6p3sRi25cH9-UwJ46AICdju6sOQK5nVuUHtXdrhdNpfOASYR0mpn&i=&k=TUNm&m=y6aHr48WR_xBqjcfuuvRXbtbEPKiewijYs30kGTF4oBje9OrN7HJDf7RTypS4IbcNim6TQwus7lFW93TErx5DhWLxVN8WDEyAP9aL9A48g_MfMjcVhe6aimP9xPO8aoZ&n=rNaBH2giTAjyq7oDuRd5gXH8W0QqjHBnrpvym1OxLyM&r=2MSHxQmwbuiIAUiV9Nf6kxYXI12_CHU_cvMUyhDzO6VlKJbW5OL6Ef2v64qduBgFpK17U0yPIhAdUhtl4qUsyg&s=7cfbcec183cf8a856a6eb93b4697bf05d136fed74e96099bb39210999753c8bc&u=http%3A%2F%2Fsamba.bigbird.es%2Fdoku.php%3Fid%3Dsamba%3Aaditional-dc > > > On 3 Nov 2025 at 14:33 +0100, samba at lists.samba.org > <samba at lists.samba.org>, wrote: > > > > > > It might be easier to add a > > > > new > DC and then demote the old one. > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba