LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remote logout of root account (https://www.linuxquestions.org/questions/linux-newbie-8/remote-logout-of-root-account-427212/)

PirateJack 03-22-2006 04:17 AM

remote logout of root account
 
Suppose you installed a redhat 9 server in a remote location, log in as root when you are there and commit the sin of forgetting to log out again.
You get back to the office, open a ssh session to said server, log in as root so root is now logged in to the console and ssh, how do you force the console session to log off via the ssh session?

jonaskoelker 03-22-2006 04:25 AM

use 'who' or 'w' to see where root is logged in (pts/something or tty/something); then 'ps -Fe | grep root'; find the right program (note the process ID), kill it with 'kill'.

PirateJack 03-22-2006 04:33 AM

That did it, thanks :-)


All times are GMT -5. The time now is 11:09 PM.