Force user logout?

A LeDonne aledonne.listmail at gmail.com
Sun Feb 19 21:16:24 MST 2006


On 2/18/06, Kurt Granroth <plug-discuss at granroth.org> wrote:
> On Feb 18, 2006, at 10:40 PM, Alan Dayley wrote:
> > Let's say a user logged into a computer and set the screen saver
> > password (My son did this against house rules to keep his siblings off
> > the computer).  This user is no longer available (He is now in
> > bed).  I
> > don't know his password but I know the root password for the
> > machine (Of
> > course!).  I want to force the user to logout so the machine can
> > cleanly
> > shutdown.
<snip>
> I suppose that depends on your definition of "clean" :-)
>
> # su <user>
> $ kill -9 -1
<snip>

You could try kill at lower levels than -9 on the user's processes,
including KDE. I've found kill -TERM (aka kill -3) to work in most
cases.


More information about the PLUG-discuss mailing list