[Samba] How to update Samba changing installation paths

Rowland penny rpenny at samba.org
Mon May 31 08:53:56 UTC 2021


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





More information about the samba mailing list