[Debian] Removing a machine from an NT domain
Solved
Hello,
I am in great distress: At my job, we have a Debian machine that serves as a web server. It was integrated into the NT 4.0 domain of the time... But not by me! And I am absolutely terrible with Linux :-/
Today, the NT domain no longer exists and has been replaced by an AD domain. But we no longer want the Debian machine to be part of a domain; we want it to be standalone (in a workgroup, by analogy with MS Windows).
I haven't been able to find any information on how to remove a Linux machine from an NT domain. I've found plenty of tutorials for integrating Linux into an NT or AD domain but none for the opposite. How can I force this machine to leave the domain knowing that the domain controller is no longer available?
Thank you in advance for your responses!
Best regards,
Eric
I am in great distress: At my job, we have a Debian machine that serves as a web server. It was integrated into the NT 4.0 domain of the time... But not by me! And I am absolutely terrible with Linux :-/
Today, the NT domain no longer exists and has been replaced by an AD domain. But we no longer want the Debian machine to be part of a domain; we want it to be standalone (in a workgroup, by analogy with MS Windows).
I haven't been able to find any information on how to remove a Linux machine from an NT domain. I've found plenty of tutorials for integrating Linux into an NT or AD domain but none for the opposite. How can I force this machine to leave the domain knowing that the domain controller is no longer available?
Thank you in advance for your responses!
Best regards,
Eric
2 réponses
A priori, it's in the Samba configuration that it lies (see /etc/samba/smb.conf workgroup field). To correct this file, open a terminal and type:
Move with the arrows, correct the line, save and exit (ctrl x). Then restart Samba:
Note: if sudo is not present on your machine, just type these commands without sudo but as root.
Good luck.
sudo nano /etc/samba/smb.conf
Move with the arrows, correct the line, save and exit (ctrl x). Then restart Samba:
sudo /etc/init.d/samba restart
Note: if sudo is not present on your machine, just type these commands without sudo but as root.
Good luck.
It worked perfectly!