[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fw: PPP and wtmp not working together



Well, actually it isn't pppd's job to make a utmp/wtmp entry. That job belongs to mgetty. The 'login' option just tells pppd to authenticate users with passwords from /etc/passwd (or /etc/shadow, as the case may be). There's a chicken-and-egg problem here because though it's mgetty's job to make the entry, when dialin users authenticate with PAP/CHAP by that time mgetty is no longer running.

I believe that using ppp-pam will alleviate this problem. The pam module used to authenticate should also take care of logging the utmp/wtmp entries (though reading the documentation I don't see anything which more than suggests this). Get the ppp-pam package, give it a try, and let me know if it does indeed make the proper entries.

Peter Iannarelli wrote:

  -----Original Message-----
From: Peter Iannarelli <peter@genxl.com>
To: Debian ISP <debian-isp@lists.debian.org>
Date: Friday, August 21, 1998 6:39 PM
Subject: PPP and wtmp not working togetherHello: I read today that in 2.0, a ppp account is not getting loggedinto the wtmp file. I decided to check this out and low andbehold I was unable to get a wtmp entry for a ppp account. I started to play around in the /etc/mgetty/login.config filewhich as installed reads         /AutoPPP/ -    a_ppp   /usr/sbin/pppd auth -chap +pap login  I changed it to     /AutoPPP/ -    -     /usr/sbin/pppd auth -chap +pap login and     /AutoPPP/ -    *    /usr/sbin/pppd auth -chap +pap login and    /AutoPPP/ -    @    /usr/sbin/pppd auth -chap +pap login No login line showed up for a finger or who commandand there was no wtmp entry for the account. I then changed the line to     /AutoPPP/ -    userId   /usr/sbin/pppd auth -chap +pap login An and the entries I was expecting. Can someone tell me how to configure login.config or ppp tolog and display active ppp user ids.  Peter   
 

--
Jens B. Jorgensen
jjorgens@bdsinc.com
 


Reply to: