The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Force Input in User Defined Variable earnstaf Shell Programming and Scripting 10 06-20-2007 05:35 AM
Track user activity --pls help anandtharani UNIX for Advanced & Expert Users 2 09-22-2006 01:38 AM
Tool to monitor user activity nana UNIX for Dummies Questions & Answers 3 07-15-2005 08:26 AM
audit user activity - possible? sureshy UNIX for Dummies Questions & Answers 1 02-21-2005 05:49 AM
Echoing remote user activity? dangerousbeans UNIX for Advanced & Expert Users 1 07-20-2004 09:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2004
Registered User
 

Join Date: Jun 2004
Posts: 1
Unhappy Force user to disconnect if no activity

Does anybody know how to force a user to automatically logoff a UNIX session if there is no keyboard activity for a period of time? We use COBOL and there is a BEFORE TIME option on the ACCEPT command, however, we do not want to change the many programs we have to detect this.

What we really want to have happen is from the UNIX login have some sort of a way to monitor and detect no activity and force the user to disconnect.

Thanks for your help,
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-02-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,452
There are a number of freeware "idle daemons" out there. Here is one. You can find others with a search engine.

These programs are controversial. And they can be defeated by such tactics as laying a book on the keyboard. User training is the real answer.
Reply With Quote
  #3 (permalink)  
Old 06-03-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
definitely not elaborate, but maybe just setting the TMOUT variable in ksh or bash might suit your needs; see the man pages for your shell.
Reply With Quote
  #4 (permalink)  
Old 06-07-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,854
This whole area is system admin is a pain in the butt. Perderabo is right about training, unless you have people who consdier logging in to be a chore, i.e., lazy.

Using TMOUT works (as Google said), so do the idle daemons. But then you get complaints because you set the time out values too large or too small, too hot, too cold...

Some of our programmers have written little ditties to keep their processes on just about forever -- like this user:

Code:
benner     pts/5        Mar  9 10:56
Get people to use the unix lock utility. And if they have a PC used as a terminal then set up mandatory screensavers with passwords. Longterm, you'll be in better shape than trying to kill idle processes. IMO.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0