Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-22-2006, 05:17 AM   #1
LQ Newbie
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20

Rep: Reputation: 0
Talking 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?
Old 03-22-2006, 05:25 AM   #2
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
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'.
Old 03-22-2006, 05:33 AM   #3
LQ Newbie
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20

Original Poster
Rep: Reputation: 0
That did it, thanks :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 11:02 AM
Forced timed logout for guest account proglottis Linux - General 2 11-27-2005 08:43 PM
Remote backup of Windows(XP) machines on user logout rdk Linux - General 2 09-26-2005 06:44 PM
How do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 01:02 AM
Remote logout aes12 Linux - General 3 04-08-2003 04:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration