not really. The best way is to put a script in /etc/ppp/ip-up.d/ which does
something like:

#! /bin/sh
echo ${PEERNAME} > /tmp/${IFNAME}

This creates a file called, say /tmp/ppp20 containing just the name of the
user. You can at any time use this in a script then with `cat /tmp/ppp20`.

HTH

On Tue, Jul 11, 2000 at 12:53:53PM -0400, Jerry G wrote:
> Is there any way to find out which dialin user is associated with which
> ppp<n> interface?  Let's say that I have a Redhat 6.0 dialin server using
> mgetty 1.1.21 which is compiled to support Auto_PPP.  Also installed is a
> current release of pppd.  Mgetty uses /etc/ppp/options.server for all
> dial-ins, and /etc/ppp/options.ttyD<n> for the nth dial-in line, where I
> assign an IP address for ppp<n>.
> 
> /etc/ppp/options.server: (only pertinent lines included here)
> proxyarp
> 
> /etc/ppp/options.ttyD0:
> 192.168.1.1:192.168.1.101
> 
> When I use the command "ifconfig" I can see that many ppp interfaces are
> active and which tty device it is attached to.  However, when I do a "who"
> command, none of the dial-in users show up.  The messages in /var/log simply
> show the login user as Auto_PPP.  Is there some other way to know which user
> is attached to the system when connected via Auto_PPP?
> 
> Thanks!  Jerry G.
> 
> 
> ______________________________________________
> FREE Personalized Email at Mail.com
> Sign up at http://www.mail.com/?sr=signup
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]
> 

-- 
------------------
Sarel Botha
[EMAIL PROTECTED]
------------------

99 little bugs in the code, 99 bugs in the code,
          fix one bug, compile it again...
          101 little bugs in the code....


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to