Great Circle Associates Firewalls
(March 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Watchdog
From: pmoen @ sbnsw . com . au
Date: Thu, 21 Mar 96 13:48:29 SYD
To: <jmeritt @ smtpinet . aspensys . com>, <firewalls-digest @ GreatCircle . com>

>From my (small, tiny) knowledge of UNIX,
here's a roundabout way of achieving a solution

the "w" command usually contains a field
indicating how long a user has been idle

so...ummm... 

write a script which
pipes the result of "w" to grep, which
sorts the idle field for users over 15 minutes
and kills those users login shells
(assuming you have the authority to do that) :) hmmm power

run the script in the background every 10 minutes
or so, so it doesn't hog system resources.

If this is a totally stuffed solution, someone
post the correct way. 

you didn't expect the code did you... :)

later

Paul

---------

"Jim Meritt" <jmeritt @
 smtpinet .
 aspensys .
 com> Wrote:
| 
|      
| I'm looking for a way to do this (besides setting and 
| exporting TMOUT in the 
| /.profile for ksh users) on solaris systems.
| 
| Jim Meritt
| 
| ______________________________ Reply Separator 
| _________________________________
| Subject: Watchdog
| Author:  "S.Ramalingam" <srm @
 adiblr1 .
 soft .
 net> at SMTPINET
| Date:    3/18/96 4:34 AM
| 
| 
| 
| Please let me know,
| 
| How to automatically logout the user(s) from systems ( 
| from the shell ), if 
| he or she does not use the system for specified period, 
| say 15 minutes.
| 
| 
| Regards
| S.Ramalingam
| 
| 

Indexed By Date Previous: Re: IHL field in IP packet header
From: Chris Kostick <ckostick @ ashton . csc . com>
Next: Your message re: Dos based Firewalls
From: hancock @ network-1 . com (Dr. Bill Hancock)
Indexed By Thread Previous: Re: Watchdog
From: peter @ nmti . com (Peter da Silva)
Next: Re: Watchdog
From: Shane T Kinsch <shane . kinsch @ brite . com>

Google
 
Search Internet Search www.greatcircle.com