[K12OSN] Kill User processes on log-off

Sudev Barar sudev at mantraonline.com
Thu Feb 24 00:28:22 UTC 2005


On Wed, 2005-02-23 at 17:53 +0200, Andy Rabagliati wrote:
[SNIP]
> # no touch root, many services will die
> [ $USER = 'root' ] && exit 0  
> 
[SNIP]

Andy, if the above is changed to [ $UID < 600 ] && exit 0

Would it only clean up for users with ID above 600? 

The idea is to keep users in id range of 500~600 who are admin /
teachers so that they can do multiple logins or leave processes like
screen / wget running while they log out. 

On a similar note I have configured /etc/sysconfig/k12ltsp with PURGE=Y
but changed the UID_MIN parameter to 600 in /usr/sbin/purge_user this
allows non-purging of processes for users with UID less than 600.

-- 
Sudev Barar <sudev at mantraonline.com>




More information about the K12OSN mailing list