Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!



share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer
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 '12 at 15:04
Sorry, perhaps pdbedit -x Win26\$ ? – jelmer Jul 10 '12 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 '12 at 12:55

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

share|improve this answer
Yes, userdel is needed: m=Win26; pdbedit -x -m $m; userdel $m\$ – mivk Aug 17 '14 at 13:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .