• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3082
  • Last Modified:

how to delete a domain member machine account from linux PDC

How to delete the machine account which wascreated manually by the folliowing commands from linux pdc

#groupadd machines
#/usr/sbin/useradd -s /bin/false -d /dev/null -g machines machine_names$

account got created but want to delete , please help how to delete the same.


0
D_wathi
Asked:
D_wathi
  • 2
  • 2
2 Solutions
 
ravenplCommented:
userdel -rf machine_name$
smbpasswd -x machine_name$
0
 
D_wathiAuthor Commented:
Sir: when tried with userdel and smbpasswd following is the result please help


# userdel -rf machine_name$

 userdel:error removing directory /dev/null

#smbpasswd -x machine_name
Failed to modify entry for user computer29$



0
 
D_wathiAuthor Commented:
userdel < machine account>
got deleted
0
 
ravenplCommented:
Yes, -rf says to remove home directory as well, but since home was set to /dev/null - I was wrong with those options.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now