AutoPPP + pppd login

Jeff Patterson (jpat@sr.hp.com)
Wed, 21 May 1997 11:46:18 -0700


I'm confused about the login process using AutoPPP and login.
In particular about the necessity for the /etc/passwd entry 
specified under "Further pppd Configuration" in the AutoPPP 
under Linux doc @ http://www.gti.net/tiger/mgetty.html.
 
 "You'll want to use 'pppd' as the login shell 
 for the account established to handle dialins.
 Your '/etc/passwd' file should look something like: 
 
 pppuser:*:xxx:800:PPP Dialup:/users1/ppp/pppuser:/usr/sbin/pppd "


How is this ever invoked? AutoPPP invokes pppd directly which
(assuming +pap and login) checks the supplied user and password 
against that user's /etc/passwd entry, not pppuser. 

I.e.suppose my /etc/passwd file looks like:
 me:<my encryptyed passwd>:20:40:The Big Cheese:/home/me:/bin/bash
 pppuser:*:xxx:800:PPP Dialup:/users1/ppp/pppuser:/usr/sbin/pppd

and suppose I have configured my windoze ppp login script to supply 
'me' and <my encryptyed passwd> as user and password respectively. 

Where does 'pppuser' come into play and why does the authentication
fail without it?

Thanks Jeff
jpat@sr.hp.com

My set-up running Redhat 4.1 Linux 2.0.27:

/etc/inittab
S1:2345:respawn:/usr/local/sbin/mgetty -n 1 ttyS1 

/usr/local/etc/mgetty+sendfax/login.config
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.dialin 

/etc/options.dialin
auth
login
+pap
-chap
<my local ip>:<assign this user IP>
dns-addr <a dns server IP>
dns-addr <another DNS server>
proxyarp 

/etc/passwd
jpat:<encrypted passwd>:4477:20:RHS Linux User:/home/jpat:/bin/bash
jpat.ppp:*:4477:20:PPP Dialup:/tmp:/etc/ppp/ppplogin 

/etc/ppp/ppplogin
#!/bin/sh
exec /usr/sbin/pppd file /etc/ppp/options.dialin
.