• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3162
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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