No there isn't really a good way anymore because after pppd 2.3.8, the utmp and
wtmp files are not being updated by pppd. I use a combination of the auth-up
script and the ip-up script to log connection information. then I run a scipt
called dialup_who.pl that does a "ifconfig | grep ppp" to get the ppp interfaces
currently in use, then checks the log files and builds a listing of current
users, the date and time they logged in, and the interface and the ip address.
It is actually a cgi script and it creates an html document, but it doesn't have
to.
--
Scott Knight, Network Analyst - SSM Health Care, Information Center
email: [EMAIL PROTECTED] + phone: 314.644.7344 + fax: 314.647.1037
"Dad, when you come home with only shattered pieces of your dreams, your
little one can mend them like new with two magic words - 'Hi Dad!'"
- Alan Beck in "Fathers and Sons" -
____________________Reply Separator____________________
Subject: which username is attached to ppp20?
Author: Jerry G <[EMAIL PROTECTED]>
Date: 7/11/00 12:53 PM
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]
.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]