Click to See Complete Forum and Search --> : deleting a bad user account


cdslaughter
12-03-2003, 11:00 PM
I created an account with the adduser command. I misstyped the username andpassword. how do I delete it? deluser does not work.


Carl

[root@localhost usr]# adduser carl -u 105 -d /carl -p carl -m -G users -s /bin/bash
adduser: user carl exists
[root@localhost usr]# killuser
bash: killuser: command not found
[root@localhost usr]# rmuser
bash: rmuser: command not found
[root@localhost usr]# deluser
bash: deluser: command not found
[root@localhost usr]#

Choozo
12-04-2003, 12:16 AM
Why don't you try userdel ?

Kaligraphic
12-04-2003, 02:04 AM
or the hard way, delete their home directory and take them out of /etc/passwd and /etc/shadow

serz
12-04-2003, 12:15 PM
Use userdel -r username if you want to remove username's home directory.

If you don't want to, just use userdel username.

cdslaughter
12-04-2003, 10:35 PM
Thanks.. This forum is sooo helpfull..

I am really beegining to like linux!!!

Carl

GlennaclawZ
12-09-2003, 10:58 AM
u can also use a deluser function and there is whole script written to ask you what there name is and all that... try it out I think u just enter deluser...