Re: Booting a PPP session

jason philbrook (jp@c6h22o11.midcoast.com)
Fri, 13 Dec 1996 17:05:31 -0500 (EST)

>
> Hello,
>
> I use PM2Es and Livingston's Radius for dialup. I have a certain user whom
> I wish to grant dialup access to from 9-5 daily. I have set some cron jobs
> to alter the raddb/users file at the appropriate times and authentication
> works great.
>
> Now, I'd like to set something up to check for a login at 5:00 and reset the
> port if necessary. Is there a utility available? Any ideas/pointers?
>
> Thanks in advance,
>
> Scott

$ pmwho tea mochajava |grep " lusername "|cut -b0-2
S7

will give you the port(s) the user is using on portmasters by the name of
tea and mochajava.

I am not versed in portmaster commands from the unix prompt, (I usually
telnet in) but something to the effect of:

bootluser `pmwho tea mochajava |grep " lusername "|cut -b0-2`

would be equivalent to typing

bootluser S7

Take it from there.

-- 
/*
Jason Philbrook         |         Midcoast Internet Solutions
jp@midcoast.com         |     Internet Access, LAN, WAN, and Linux
www.midcoast.com/jp/    |   Service and Consulting for Midcoast Maine
*/