Samba domain controller: remove 1 Windows client
Solution 1
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.
Solution 2
After pdbedit -x -m Win26
you have to run userdel Win26\$
(escape the $ sign) to remove machine linux user account.
K B
Updated on September 18, 2022Comments
-
K B over 1 year
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
-
K B almost 12 yearsThank 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
afterpdbedit -x -m Win26
. Am I missing some other command? -
jelmer almost 12 yearsSorry, perhaps
pdbedit -x Win26\$
? -
K B almost 12 yearsI think your first proposal was correct, because with
pdbedit -x Win26\$
it gives me "user Win26$ does not exist in the passdb". -
mivk over 9 yearsYes, userdel is needed:
m=Win26; pdbedit -x -m $m; userdel $m\$