Antonio Trogu
2021-May-31 09:30 UTC
[Samba] How to update Samba changing installation paths
Thanks, Rowland. But I'm afraid I can't do as you suggest because each one of these servers is the only DC (and also file server) of it's AD domain - I know this is not recommended, but (they all serve small sites) that's the way it is at the moment :( So I hoped I could directly update them, possibly changing paths too... And the reasons why we are passing from packages to self compiled are: 1) we never needed Sernet support in many years, 2) we are very happy of the compiled installations already in use, and 3) obviously saving. Thanks, Antonio On Mon, 31 May 2021, Rowland penny via samba wrote:> 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 > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >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 09:57 UTC
[Samba] How to update Samba changing installation paths
On 31/05/2021 10:30, Antonio Trogu via samba wrote:> Thanks, Rowland. But I'm afraid I can't do as you suggest because each > one of these servers is the only DC (and also file server) of it's AD > domain - I know this is not recommended, but (they all serve small > sites) that's the way it is at the moment :( So I hoped I could > directly update them, possibly changing paths too...That's different and not entirely what you posted ? You are heading for a lot of problems if you try to move everything from packages to a self compiled Samba, you will have to identify the required files and where to move them to. Depending on your existing version of Samba, you may have existing files that need to be removed and files that require creating.> > And the reasons why we are passing from packages to self compiled are: > 1) we never needed Sernet support in many years, 2) we are very happy > of the compiled installations already in use, and 3) obviously saving.It is my understanding (and I am sure that someone will correct me if I am wrong) you do not get any support with the Sernet packages. By using a self compiled version of Samba, you are taking on identifying if any files have been removed (this happens from time to time) from Samba and will need to remove them from your installs, the compile will not remove them from disk. You do not say which OS you are using, but if it Debian based, you can find Samba packages here: https://apt.van-belle.nl/ All Louis asks for is a small donation and that is optional. What ever method you decide to use to update Samba, I would join a new DC and then demote the old one Rowland