[K12OSN] Kill all your users

David Trask dtrask at vcsvikings.org
Thu Dec 14 19:48:29 UTC 2006

There's also the purge users script that's already a part of K12LTSP and
it's located in /opt/ltsp/templates/k12linux  View the script and check
out the directions in the comments at the top.  You simply need to go to
/etc/sysconfig/k12ltsp  and set PURGE_PROCESSES = YES   That's it!  :-)

"Support list for open source software in schools." <k12osn at redhat.com>
>If you're going to use David's script, put the script in, say,
>/usr/local/bin/ and then 
>use root's crontab to run it every night at 10pm or whenever.  Otherwise,
>Chuck's approach, you could put
>pkill -u $LOGNAME
>in /etc/gdm/PostSession/Default (he may be putting it in a different
>file; Chuck?) and 
>it will run the command when the user logs out.  I suggest testing this
>on a 
>non-production server because I can invision it killing itself before
>cleaning up after the user's session and thus leaving some temp files
>lying around 
>Mel Wade wrote:
>> Sorry for my ignorance on this, but I'm not really understanding where 
>> to put a kill command for users in K12LSTP 6...
>> -- 
>> Mel Wade
>> "The real problem is not whether machines think but whether men do." - 
>> BF Skinner
>> http://www.melwade.com
>> ------------------------------------------------------------------------
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>K12OSN mailing list
>K12OSN at redhat.com
>For more info see <http://www.k12os.org>

David N. Trask
Technology Teacher/Director
Vassalboro Community School
dtrask at vcsvikings.org

More information about the K12OSN mailing list