PPP server on Solaris using mgetty and pppd
Keen Young (kyoung@usinternet.com)
Wed, 27 Jan 1999 23:39:31 GMT
I've been trying to set up a dialin PPP server using mgetty 1.2 and ppp
2.3.5. When dialing in from a Win95 machine I get the folloing in the
mgetty logfile:
01/27 17:05:16 a/4 login: use login config file
/export/local/mgetty1.2/etc/mgetty+sendfax/login.config
01/27 17:05:16 a/4 login:
'/export/local/mgetty1.2/etc/mgetty+sendfax/login.config' must be
root/0600: Invalid argument
01/27 17:05:16 a/4 login: fall back to /bin/login
01/27 17:05:16 a/4 calling login: cmd='/bin/login', argv[]='login
/AutoPPP/'
01/27 17:05:16 ##### data dev=cua/4, pid=16877, caller='none',
conn='LAPM COMPRESSED', name='', cmd='/bin/login', user='/AutoPPP/'
01/27 17:05:16 a/4 setenv: 'CALLER_ID=none'
01/27 17:05:16 a/4 setenv: 'CONNECT=LAPM COMPRESSED'
Why is it falling back to /bin/login instead of using login.config?
Obviously it's a permissions problem, but I can't figure out what to
change.
Here's the login.config with permissions 644 owned by root:
login.config
#
# <snip>
#
# /FIDO/ uucp fido /usr/local/lib/fnet/ifcico @
#
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
# Warning: Case is significant, AUTOPPP or autoppp won't work!
# Consult the "pppd" man page to find pppd options that work for you.
#
# NOTE: for *some* users, the "-detach" option has been necessary, for
# others, not at all. If your pppd doesn't die after hangup, try
it.
#
# NOTE2: "kdebug 7 debug" creates lots of debugging info. If all works,
# remove those!
#
#/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login kdebug 7
debug
/AutoPPP/ - - /export/local/ppp/bin/pppd auth require-pap refuse-chap
login proxyarp
#
#
# An example where no login name in the argument list is desired:
# automatically telnetting to machine "smarty" for a given login name
#
#telnet-smarty gast telnet /usr/bin/telnet -8 smarty
#
# This is the "standard" behaviour - *dont* set a userid or utmp
# entry here, otherwise /bin/login will fail!
# This entry isn't really necessary: if it's missing, the built-in
# default will do exactly this.
#
* - - /bin/login @
#
The tty on the Sun shows a login in progress, but the Windows box gives
up and closes the connection.
Any suggestions appreciated.
Keen Young