Article View: aus.computers.linux
Article #56521Re: Auto Logut
From: Chris Bitmead
Date: Wed, 19 Feb 1997 00:00
Date: Wed, 19 Feb 1997 00:00
29 lines
1598 bytes
1598 bytes
In article <5eael6$5ie@guru.apana.org.au> george@guru.apana.org.au (George Seremetidis) writes: >Jeremy Laidman (Jeremy.Laidman@cit.act.edu.au) wrote: > ><lots of stuff deleted> > >: Under bash, set TMOUT=30 in your profile: >: export TMOUT=30 > >But how do you stop a user unseting the variable ? You can't, and even if you could the user could just run a second copy of bash to get around it. How do you want to define an idle user? Someone who hasn't typed any shell commands, or someone who hasn't interacted with any program at all? If you're looking for security and you don't want unattended screens and you're running under X, the best way is with one of the screensavers/lockers. You can configure how long to wait after *any keystroke or mouse movement* to activate screen lock. If you actually want to log them out, I'm not sure if there is a program to do that. It would be pretty easy to grab the code from a screen saver and instead of activating screen save on an idle terminal, do a "ps -aux | grep username | xargs kill ; sleep 20 ; ps -aux | grep username | xargs kill -9"
Technical Details
Message-ID:
<BITMEADC.97Feb19143014@Alcatel.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<32FFDF92.224A@adacel.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,bb9a2c340a85de65 X-Google-Attributes: gid102983,public From: Chris.Bitmead@Alcatel.com.au (Chris Bitmead) Subject: Re: Auto Logut Date: 1997/02/19 Message-ID: <BITMEADC.97Feb19143014@Alcatel.com.au> X-Deja-AN: 219869352 Distribution: aus References: <32FFDF92.224A@adacel.com.au> Organization: Alcatel Australia Limited Reply-To: Chris.Bitmead@Alcatel.com.au Newsgroups: aus.computers.linux