SUMMARY: Automatic Logout after X number of Idle minutes

From: Martin, Erik J. <emartin_at_srcchasn.com>
Date: Tue, 18 Jul 95 19:07:38

     
My original question:
     
>I've got a DEC 3000/600 running OSF/1 3.0.
>
>Is there a command or script that will work to logout a user after X
>number of idle minutes ? I'm looking for something at both a user and
>group level.
     
Thanks for all who responded:
     <mclaughl_at_nssdc.gsfc.nasa.gov>
     <sherry_at_cpsacs.msu.edu>
     <karnott_at_falcon.tamucc.edu>
     <randy_at_computron.com>
     <madmax.hrl.hac.com!neeland>
     <morten.hanshaugen_at_usit.uio.no>
     <Knut.Hellebo_at_nho.hydro.com>
     <aa_at_oukasrv2.ouka.fi>
     <demarthe_at_alpha.cad.cea.fr>
     
     
1. Many suggested using the tcsh autologout feature. The man page has a good
description of this feature.

2. Steve McLaughlin supplied me a sh script (that he got from the net) that will
log users off that exceed X amount of idle time. One would just have to set up a
cron to activate the script (i.e. every 5 minutes). People interested in the
script can e-mail me and I'll send it to you.

3. Kent Arnott provided an ftp site for a Perl script. FTP to ftp.tamucc.edu and
look in the /pub/unix/misc directory for idletime.tar.gz

4. Randy Styka sent me the following:
>Our company sells a product called Logmon that is designed for this purpose. It
>will log off idle users by looking at real cpu usage not just keyboard use.
>This is important, because it means that we won't log off a user running a long
>job with no user interaction, unlike other approaches to this problem.
>
>Logmon allows you to vary the inactivity time by user id, group, time of day,
>application in use, etc. It also allows you to vary the logout script that is
>run to log off the user based on the application that they are running.
>
>There's a lot more, but rather than clutter your mailbox, I'll just suggest
>that you contact info_at_computron.com if you want more details and/or a
>trial copy.

5. And Herve DEMARTHE suggests using the idled daemon. According to Herve, idled
has not been ported to the Alpha yet, but you can get it through anonymous ftp
at ftp.cs.hope.edu in /pub.

Here are some of its features:
>
>idle: If a user is idle more than their allotted time, as specified by the
> idled configuration file, he/she will be warned. If no action
> has taken place during the warn time, the user will then be logged
> out.
>
>session: If a user is logged on for longer than the allotted time, he/she will
> be warned and logged out in 'sleep' seconds if the user is still
> logged on then.
>
>multiple: If too many user sessions are active (ie. many users logged on, or
> some users logged on many times), idled will choose 1 session for
> each user to keep, will warn the others, and log those out in 'sleep'
> seconds (such as 120) if there are still too many logged in then.
>
>refuse: If a user matches this setting, idled will terminate the user's
> session after about a 5 second warning. The basically "refuse"s
> access for that user (or tty, or group) to the machine, though there
> may be some time allowed when idled is sleeping between checks.

Thanks again,
Erik
-
Scientific Research Corporation
4975 Lacross Rd.
N. Charleston, SC, 29406
Received on Tue Jul 18 1995 - 22:22:34 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT