From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075321606579.tru64-unix-managers.marc@archive.invalid> From: "Martin, Erik J." Date: Tue, 18 Jul 1995 19:07:38 +0000 To: tru64-unix-managers Subject: SUMMARY: Automatic Logout after X number of Idle minutes X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075321606579 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: 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@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