[lug] Disconnectin user / Closing idle connections

Nate Duehr nate at natetech.com
Wed May 16 13:42:46 MDT 2001


I believe "slay" works nicely for getting rid of anything running from a
particular user also... but if you're trying to get rid of things that
you're running without knocking yourself off, it would be a bad
choice... heh.

On Wed, May 16, 2001 at 01:51:13PM -0400, Hugh Brown wrote:
> along with the who output you will see what terminal they are on
> 
> hugh     pts/0    -                12:22pm  0.00s  0.08s  0.02s  w 
> 
> then do a ps -t pts/0 and you will find all of the processes that are on
> that terminal
> 
> [hugh at home hugh]$ ps -t pts/0
>   PID TTY          TIME CMD
> 32158 pts/0    00:00:00 bash
> 32614 pts/0    00:00:00 ps
> 
> 
> then you just start killing processes.  I have found that it usually good
> enough to send a -HUP to the "last" process and then the parents of that
> process will exit on their own.
> 
> All of the killing has to be done as root.
> 
> Hugh
> 
> 
> "Shannon Johnston"
> > 
> > Hello All!
> > I had a quick question. Sometimes my connection will drop from a remote
> > system. (Or I'll close the terminal without properly exiting.) 
> > When I run a who command next time, the previous connection still remains.
> > I've seen them as old as 5 days idling.
> > That brings me to my question. How do I kill these connections? Also, how
> > can I kill the active connection of another user?
> > 
> > Thanks,
> > Shannon
> > 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.



More information about the LUG mailing list