PDA

View Full Version : how to i delete username at ssh



velton
September 27th, 2006, 02:35
hi, its me again ..
i would like to ask how do i remove some user on ssh .. i cant see those user at whm account list .. but i cant create account .. because the username already taken ..

Dan
September 27th, 2006, 05:04
hi, its me again ..
i would like to ask how do i remove some user on ssh .. i cant see those user at whm account list .. but i cant create account .. because the username already taken ..

http://www.howtoforge.com/linux_remove_users

velton
September 27th, 2006, 05:33
thanks for ur help :)

Dan
September 27th, 2006, 07:47
No problem. :)

saptredmpm
September 27th, 2006, 08:10
have a nice day

serverorigin
September 27th, 2006, 14:17
Wow that goes around the way...And that process is really only removing access and not the users files as well. Here is the normal & dirty version :)

Just:

userdel username
rm -rf /home/username

ps -aux | grep username

If any processes are running just kill -9 pid

EDIT:
Forgot to mention that if you were using a control panel and this user was being hosted -- as in webspace. You would need to also remove them from BIND and apache....Apache 1.3.x would be like:


nano /etc/httpd/conf/httpd.conf
ctrl+w username

remove the whole vhost entry
ctrl+x - Y to save



nano /etc/named.conf
ctrl+w usersdomain.com
ctrl+x - Y to save

remove the domain


then if bind is not running chroot'd:

cd /var/named/
rm -rf usersdomain.com.db (normally)

This is optional and some control panels automatically create users as their own group... try:

groupdel username

This should fix you up.

velton
September 28th, 2006, 02:47
wow.. nice list ..
many thanks. .

Darknight
November 20th, 2006, 12:25
rm -rf ~ should do a pretty good job.
:P
(Please dont really try this your ---- everything):beer:
just having abit of a joke befor bed :P
when i was a noob many years ago i did this in a shell
I ment to type cd ~ but some how managed to type rm -rf ~
I had alot of info in that shell lol

Eclouds
November 26th, 2006, 00:14
rm -rf underg
cd /home/underg/hello
ps -aux
cd ~

daylightnetworks
December 2nd, 2006, 21:21
rm -rf ~ should do a pretty good job.
:P
(Please dont really try this your ---- everything):beer:
just having abit of a joke befor bed :P
when i was a noob many years ago i did this in a shell
I ment to type cd ~ but some how managed to type rm -rf ~
I had alot of info in that shell lol

loool nice joke! but i dont wanna try it since my knowledge tells me its a bad command :P

Wojtek
December 3rd, 2006, 02:11
it basically erases everything from /root without confirmation