Antonio Trogu
2021-May-31 08:35 UTC
[Samba] How to update Samba changing installation paths
I have several Samba AD DCs, most of them installed with Sernet packages, while some others with Samba compiled with the default options (that is, in /usr/local/). I want to update the Sernet installations replacing them with the compiled version, but I'd like to move them to have Samba in the same path on all my servers. How can I achieve this? Is it sufficient to uninstall the Sernet package, move smb.conf in /usr/local/samba/etc/, all the content of /var/lib/samba/private/ in /usr/local/samba/private/ and then install the compiled version with the default options? Thanks, Antonio The information contained in this email message and/or attachments is strictly confidential. Its use is exclusive to the intended recipient of the message for the purpose reported in the message itself. The following constitutes a breach to the principles provided for by the General Data Protection Regulation 2016/679: keeping the message beyond the necessary time, disclosing its contents, either totally or partially, to third parties, copying or using it for any purpose other than those stated in the message itself. We further inform you that, at any time, you can ask for the suspension of the use of your data, except for any communication provided for by law. Should you receive this message in error, we kindly ask you to notify us immediately via e-mail and delete it from your system.
Rowland penny
2021-May-31 08:53 UTC
[Samba] How to update Samba changing installation paths
On 31/05/2021 09:35, Antonio Trogu via samba wrote:> I have several Samba AD DCs, most of them installed with Sernet > packages, while some others with Samba compiled with the default > options (that is, in /usr/local/). > > I want to update the Sernet installations replacing them with the > compiled version, but I'd like to move them to have Samba in the same > path on all my servers. How can I achieve this? Is it sufficient to > uninstall the Sernet package, move smb.conf in /usr/local/samba/etc/, > all the content of /var/lib/samba/private/ in > /usr/local/samba/private/ and then install the compiled version with > the default options? >Just demote the DC, remove the Samba packages and then install Samba into /usr/local and rejoin as a new DC. Can I ask why you appear to be going in the opposite direction to most users ? Normally it is changing from self compiled Samba to packages. Rowland