Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2001 01:32:05 -0400
From:      Andrew J Caines <A.J.Caines@halplant.com>
To:        questions@freebsd.org
Subject:   Re: logging out a ghost user
Message-ID:  <20010826013205.A441@hal9000.servehttp.com>
In-Reply-To: <20010826143647.B29422@k7.mavetju.org>; from edwin@mavetju.org on Sun, Aug 26, 2001 at 02:36:47PM %2B1000
References:  <20010826002259.W451-100000@bsduser.ca> <20010826143647.B29422@k7.mavetju.org>

next in thread | previous in thread | raw e-mail | index | archive | help
To add a note to Edwin Groothuis's comment...

> With the ps-utility you can an overview of all your processes:
>       [~] edwin@mud>ps
> 	PID  TT  STAT      TIME COMMAND
>       57709  p0  Ss     0:00.04 -bash (bash)
>       57720  p0  R+     0:00.00 ps
>       57713  p1  Ss+    0:00.03 -bash (bash)
> 
> As you see, the ps command is invoken from TTY p0, so all the other
> processes of me running on something else than p0 are invalid. You
> can kill them with "kill PID", for example "kill 57713" or if they
> don't want to die "kill -9 57713".

When killing a login shell such as this, you should send a HUP. A TERM
will be caught and ignored and a KILL should always be a last resort.


-Andrew-
-- 
 ______________________________________________________________________
| -Andrew J. Caines-   Unix Systems Engineer   A.J.Caines@halplant.com |

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010826013205.A441>