Autologout

Autologout

Post by Peter Lingme » Sun, 18 May 2003 03:54:02



Hi all...

Is there a way to autologout users after a certain amount of time?

Pete.

 
 
 

Autologout

Post by scriptOmati » Sun, 18 May 2003 04:34:39



> Hi all...

> Is there a way to autologout users after a certain amount of time?

> Pete.

it depends on the shell.
If /bin/ksh then yes.
The variable is (I think) TIMEOUT
do man ksh.

Set it in the /etc/profile file.
With some shells you can set the TIMEOUT variable to be read only.

--
http://ftp.opensysmon.com is a shell script archive site with an
open source system monitoring and network monitoring software package.
Many platforms are supplied already compiled.

 
 
 

Autologout

Post by Lars Tunkran » Sun, 18 May 2003 04:48:19



>Hi all...

>Is there a way to autologout users after a certain amount of time?

  Well    There has been many  scripts that can achive this .
However   what is a logged in user  these days.  ?
You will  need to qualify  how to measure  user activity.

The  old method to measure  by keyboard  activity  does not
work  any more .   I am  running  Xwindows  right now
and  typing away   and keyboard activity is not  registred for my user

$ who-Hu
NAME       LINE         TIME          IDLE    PID  COMMENTS
me        console      May 16 21:22  0:10    648       (:0)
$ who -Hu
NAME       LINE         TIME          IDLE    PID  COMMENTS
me        console      May 16 21:22  0:10    648       (:0)
$ who -Hu
NAME       LINE         TIME          IDLE    PID  COMMENTS
me        console      May 16 21:22  0:11    648       (:0)
$ who -Hu
NAME       LINE         TIME          IDLE    PID  COMMENTS
me        console      May 16 21:22  0:14    648       (:0)

Neither would a logged in   network  connection   that is  running
http  or  pcnfs   or samba  

What we used to do 15  years  ago  was to  send a kill -1    to the
users registred PID  ( above )   if  his idle time  was greater than 15
minutes  or any desired value.

--
========================================================
Lars Tunkrans
smtp: lars dot tunkrans at bredband dot net
--------------------------------------------------------

 
 
 

Autologout

Post by Helpful Observe » Sun, 18 May 2003 06:17:17


Quote:Peter Lingmen wrote...

> Is there a way to autologout users after a certain amount of time?

"idled" might be worth a try:

http://www.darkwing.com/idled/

--
H.O.

 
 
 

Autologout

Post by Anthony Mandi » Sun, 18 May 2003 13:42:25



> If they're running the Korn shell or bash, there's a variable you can
> set (TMOUT) in /etc/profile (sh and csh don't support it).

        The tcsh has autologout. But I'm not surprised you didn't know
        that Rolfie.

-am     ? 2003

 
 
 

1. Question about "autologout" in tcsh

Folks,

I don't subscribe to this group so please send any responses to my

I just installed BSDI 3.0 and noticed that I now get logged out of
my shell after 60 minutes of inactivity. This did not happen in BSDI
2.x. I know that the cause is that "autologout" is set to 60 minutes.

How do I set the autologout shell variable so that it never logs me
out but does automatically lock after x minutes. Here is some text
from the tcsh man page:

         The  first  word is the number of minutes of inac-
         tivity before automatic logout. The optional  sec-
         ond  word  is  the number of minutes of inactivity
         before automatic locking.  When the shell automat-
         ically logs out, it prints "auto-logout", sets the
         variable logout to "automatic"  and  exits.   When
         the   shell   automatically  locks,  the  user  is
         required to enter his password to  continue  work-
         ing.  Five  incorrect attempts result in automatic
         logout.  Set to `60' (automatic  logout  after  60
         minutes,  and  no locking) by default in login and
         superuser shells.

What I am looking for is the line I would put in my .cshrc file.

Thanks in advance,

Scott Winders

2. driver for Compex RL100ATX 10/100 pci ethercard

3. Sun SHIELD ARM & autologout alternatives

4. test (don't read)

5. - autologout, autolockout?

6. Needed: termcap entry for wyse160

7. Autologout - idles program - detecting inactivity from a modem port

8. Printing from Unix to Windows NT 4.0

9. unset autologout?

10. autologout - untamo

11. How to disable autologout

12. autologout(?) from xwin

13. autologout for #!/bin/sh