Click to See Complete Forum and Search --> : 2 root users... 2 came in, only one came out!


airedale
04-12-2001, 04:36 PM
Ok, I logged in as root, using putty -- you know the ssh version of telneting...

Well anyway, before I could log out, wouldn't you know it, my windows crashed :eek: so to my surprise, linux thinks I never logged out. How can I get rid of that root user that is logged in?

Thanks!

Also just so you know, I don't want to reboot my computer to get rid of it!

ph34r
04-12-2001, 05:09 PM
Kill that user's instance of sshd and/or bash.

airedale
04-12-2001, 05:19 PM
I am sorry, I forgot to say that I wanted to know how to kill that instance!

Thanks!

Val Schuman
04-12-2001, 06:56 PM
first find out what proccess # that login has
do that by typing:
ps -ef |grep string
replace string with anything you know about that proccess that's unique, like the the protocol, or the time you logged in. because grep will return all lines that include string
when you get the proccess #, type:
kill -9 procnum
replace procnum with the number of the proccess

X_console
04-12-2001, 07:10 PM
If you're the only one who uses that box, "killall bash" should do it.