[Samba] (Samba 4) Recreate AD
Paul Hargreaves
paul.hargreaves at technowizardry.co.uk
Tue Feb 9 06:59:36 UTC 2016
Thanks - so obvious. Doh :-)
Paul
> On 8 Feb 2016, at 16:51, Rowland penny <rpenny at samba.org> wrote:
>
> On 08/02/16 16:01, Paul Hargreaves wrote:
>> I’ve currently got a Samba 4 AD but want to rename it. However, as I understand things, renaming isn’t easy.
>> Happy to rebuild it - home lab, only a few machines affected.
>>
>> However, no topic in the FAQ on how to remove an existing domain: https://wiki.samba.org/index.php/FAQ <https://wiki.samba.org/index.php/FAQ>
>> Demoting won’t work since it’s the last remaining server: https://wiki.samba.org/index.php/Demote_a_Samba_AD_DC <https://wiki.samba.org/index.php/Demote_a_Samba_AD_DC>
>>
>> I assume I can just shut down the samba services and rm -rf some directories, but which ones?
>> https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC <https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC> for restoring says
>> # rm -rf /usr/local/samba/etc
>> # rm -rf /usr/local/samba/private
>> # rm -rf /usr/local/samba/var/locks/sysvol
>> Is that sufficient?
>>
>> Thanks
>
> Seeing as it looks like you built Samba yourself and you are going to create a new domain, it will probably be easiest to remove the entire samba directory i.e. rm -rf /usr/local/samba
> Go back to where ever you built Samba and run 'make install' again. You will then have a fresh start to provision again.
>
> Rowland
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list