Auto logoff

Mike Distefano mdistefano at mjtek.com
Tue Jul 23 02:04:40 CDT 2002


With the posix shell (sh in HP-UX) there is an environment variable TMOUT
which if no-zero will terminate the shell after $TMOUT idle seconds.  I have
no idea if other shells support this.

-Mike Distefano

>-----Original Message-----
>From: owner-kclug at marauder.illiana.net
>[mailto:owner-kclug at marauder.illiana.net]On Behalf Of david nicol
>Sent: Monday, July 22, 2002 5:30 PM
>To: Bill Cavalieri
>Cc: kclug at kclug.org
>Subject: Re: Auto logoff
>
>
>Bill Cavalieri wrote:
>>
>> I have several remote x display's setup, and would like to auto log
>> users off when they've been idle for 5 minutes.
>>
>> Anybody come across any scripts, etc...
>>
>> Thanks,
>>
>> -Bill
>
>it would be a trivial addition to the telnet daemon, or a shell,
>involving the alarm() system call.  Call alarm(300) every time
>some data comes through and there you are.  It would also be trivial
>to defeat, for instance
>
>	while date do sleep 275 done &
>
>but your casual user who walks away from their session isn't going
>to do that.
>
>If your really nice you'd have the timeout be read from an environemnt
>variable and share the patch with whoever maintains telnetd or bash or
>xterm or whatever it is you decide to patch.
>
>
>--
>what would Egil Skallagrimson do?
>
>




More information about the Kclug mailing list