View previous topic :: View next topic |
Author |
Message |
stillman Apprentice
Joined: 07 Dec 2002 Posts: 223 Location: Vienna, Austria
|
Posted: Mon Jan 09, 2006 9:46 pm Post subject: remotely logout a physical console |
|
|
one of my colleagues has accidentally forgotten to logout as root of our server at our telco(no monitor or keyboard attached at last). as nobody will go there soon, i was looking for a way to log out the user remotely. any tips?
Code: |
# who
root tty1 Jan 6 18:55
user pts/0 Jan 9 20:00 (83.264.17.236)
|
|
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Mon Jan 09, 2006 10:03 pm Post subject: |
|
|
'ps faux' to find the login (bash) process number.
'kill -9 that_number' will end that process, thus logging him out. |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Tue Jan 10, 2006 1:11 pm Post subject: |
|
|
yeah, sorry. just use "kill process_number".
I get in the habit of using kill -9 on a particular machine when a gazillion dead KDED processes are clinging desperately to my memory.. |
|
Back to top |
|
|
stillman Apprentice
Joined: 07 Dec 2002 Posts: 223 Location: Vienna, Austria
|
Posted: Tue Jan 10, 2006 2:07 pm Post subject: |
|
|
thanks!! |
|
Back to top |
|
|
|