[Debian] Removing a machine from an NT domain

Solved
Eric26 -  
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   -
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

2 réponses

mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
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:
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.
1
Eric26
 
Thank you, mamiemando!

It worked perfectly!
0
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Better! :-) That was the aim ^^

Good luck!
0