*BSD News Article 70185


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.sdsmt.edu!nntp.uac.net!news.tufts.edu!blanket.mitre.org!news.mathworks.com!newsfeed.internetmci.com!news.emeraldis.com!ppp27.emeraldis.com!user
From: david@emeraldis.com (David G. Cannon)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Dial-in PPP/SLIP timeouts
Date: 5 Jun 1996 00:57:37 GMT
Organization: Emerald Internet Services
Lines: 25
Message-ID: <david-0406962036320001@ppp27.emeraldis.com>
References: <4og08p$akb@news.accessone.com>
NNTP-Posting-Host: ppp27.emeraldis.com

In article <4og08p$akb@news.accessone.com>, mikes@iconsoft.com (Mookie) wrote:

> I need to limit users time to X number of minutes/hours per day on my
> dial-in lines. Is there anyway to do this? I am running the latest
> unpatched BSDI. I have IOLAN terminal servers from Chase Research. I
> know that the Livingston products will work but I'd rather not chuck
> the investment in the Chase product.
> 
> mikes@ldm.com
> +===========================+
> Mike Singleton
> mikes@iconsoft.com


You can write a Perl script to handle this. It can use the "w" command to
find out the user's Idle time (not applicable for shell connections). If
it is more than your limit, grab the user's TTY device, and then do a "ps
| grep <ttydevice>" and grab the pid number. Simply kill that process and
there outta there!

Of course, it's a lot easier said than done! :-)

*David*

P.S. - If I have some spare time, I'll try to write one for you.