Results 1 to 5 of 5
I was wondering if there is a way (as root, obviously) to kill another user's session (i.e. someone logged in from another VT, ssh, etc.)?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-21-2003 #1
Killing a login.
I was wondering if there is a way (as root, obviously) to kill another user's session (i.e. someone logged in from another VT, ssh, etc.)?
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 08-21-2003 #2Linux Engineer
- Join Date
- Mar 2003
- Location
- U.S.A.
- Posts
- 1,025
I don't know if it would work but worth a try. Run ps -ax then when you have the pid # (s) of the session/services just kill them. I'm not at work now so I can't test it. But it should work. I know shutdown -h now works
Dan
\"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"
- 08-21-2003 #3
Thanks, flw. What I did was who to find out the vc/remote terminal ps -ax to find the PID running bash at that vc/terminal. Then I just did kill -s 9 PID and it killed the session.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 08-21-2003 #4Just Joined!
- Join Date
- Apr 2003
- Location
- Australia & England
- Posts
- 75
Code:ajt@velocity ~ $ w 22:06:34 up 1 day, 14:57, 4 users, load average: 0.13, 0.17, 0.17 USER TTY LOGIN@ IDLE JCPU PCPU WHAT ajt :0 Wed07 ?xdm? 26:34 1.44s /usr/bin/gnome-session ajt pts/0 19:48 1:52m 0.01s 0.01s -bash ajt pts/1 22:06 0.00s 0.03s 0.01s w ajt pts/2 21:20 38:16 0.00s 0.00s -bash ajt@velocity ~ $ ps aux | grep pts/0 ajt 3807 0.0 0.1 2220 1304 pts/0 S 19:48 0:00 -bash ajt 14774 0.0 0.0 1408 416 pts/1 R 22:06 0:00 grep pts/0 ajt@velocity ~ $ kill -9 3807
- 08-22-2003 #5
I think you might wan't to take a look at slay. It does somewhat the same thing..
http://freshmeat.net/projects/slay/


Reply With Quote
