2

my domain is controlled by a Samba domain controller running on openSUSE 11.3. It manages other openSUSE boxes and some Windows 7 boxes.

Now one harddisk of a Windows 7 computer crashed and I had to reinstall. I wasn't able to get the computer name ("Win26") of the broken PC out of the domain and so I couldn't add the reinstalled "Win26" to the domain again.

So how can I remove the entry of the old "Win26" computer out of the domain controller, so that I can add the new "Win26" to the domain again? Is it one configuration file I have to edit and restart Samba? Which file would this be?

Thanks in advance for your help!

Regards,

KB

2 Answers 2

2

Remove the "Win26$" user account from the system. The easiest way to do this is probably by runningpdbedit -x -m Win26 on the server machine.

3
  • Thank you! I theory this was what I wanted. But I am still not able to add my Windows PC to the domain. I also tried /etc/init.d/smb restart after pdbedit -x -m Win26. Am I missing some other command?
    – K B
    Jul 9, 2012 at 15:04
  • Sorry, perhaps pdbedit -x Win26\$ ?
    – jelmer
    Jul 10, 2012 at 10:57
  • I think your first proposal was correct, because with pdbedit -x Win26\$ it gives me "user Win26$ does not exist in the passdb".
    – K B
    Jul 10, 2012 at 12:55
2

After pdbedit -x -m Win26 you have to run userdel Win26\$ (escape the $ sign) to remove machine linux user account.

1
  • Yes, userdel is needed: m=Win26; pdbedit -x -m $m; userdel $m\$
    – mivk
    Aug 17, 2014 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.