I've had good results using the debian "slay" command
called by /etc/X11/gdm/PostSession/Default.

You can download slay as a .tar.gz
http://ftp.port80.se/debian/pool/main/s/slay/

Note that I also remove all /tmp/ files owned by the
user in a fairly sloppy manner. (I depend on unix
permissions to protect files not owned by the user.) 

The important part of PostSession/Default is:
----------
if [ "$USER" != "root" ] ; then
  rm -rf /tmp/*
  slay $USER
fi
----------
My entire PostSession/Default is:

----------
#!/bin/sh

PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH:/bin:/usr/bin"

SESSREG=`which sessreg 2>/dev/null`
if [ "x$SESSREG" != "x" ] ; then
        "$SESSREG" -d -w /var/log/wtmp -u
/var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l
"$DISPLAY" "$USER"
fi

if [ "$USER" != "root" ] ; then
  rm -rf /tmp/*
  slay $USER
fi



exit 0
----------

--- Sean Carolan <[EMAIL PROTECTED]> wrote:

> Greetings gang:
> 
> I'm looking for a simple way to kill off any
> leftover, orphan, or
> defunct processes that remain alive after a user is
> disconnected from
> the server.  
> 
> We are running Fedora Core 3 and GDM as the display
> manager.
> 
> I have read a little about using the postsession
> script to kill these
> processes off, but haven't found a really clear
> instruction on how to
> accomplish this.
> 
> Any input is most welcome.
> 
> Thanks
> 
> Sean
> 
> -- 
> Sean Carolan
> Medical Resource USA
> 
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
>
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>
_____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or
> change prefs, goto:
>      
>
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on
> irc.freenode.net
> 


=====
------------------------ 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety." 
-- Benjamin Franklin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to