autoppp and /bin/login

"Chris Hailes" (chailes@ozemail.com.au)
Thu, 27 May 1999 22:16:56 +1000


Nathan Sportsman wrote in message
>My question is,
>is it possible for mgetty to both use autoppp for connecting, and
>/bin/login for adding new accounts and those that do not want to switch
>their dialup networking back to use autoppp?
yes -see below...
...
> I tried setting pppd to read from options.ttyXX using a
>case statement, but i forgot pppd reads arguments from the command line
>last. Is there any way I can get pppd to skip reading the options file and
>go straight to options.ttyXX? Or is this not even the problem?
>
>Nathan
>
I am doing both ppp (PAP) and user terminal logins as you describe
successfully with the standard pppd binary delivered in Redhat 5.2.  I did
the following steps (possibly not all are essential).
1)     renamed .ppprc      mv /etc/ppp/.ppprc   /etc/ppp.rc.mv
2)     comment all lines in /etc/ppp/options
3)      Place your options in /etc/ppp/options.ttyxx file
4)     in inittab:    ...respawn /sbin/mgetty  ttySxx 57600

I believe pppd reads the port from the command line first rather than last.
In this case it reads all the command line options from options.ttyxx as you
require.
I can send more of the Linix files to you directly if you require.
Chris