I can manually set up a PPP connection by following the PPP-HOWTO, but
when I try to run the automated scripts I get this permission denied
error. The scripts are all chmod'ed 777, and I'm running them as
root. In /var/log/messages, pppd says that the chatscript
(ppp-on-dialer) failed.
Here's my ppp-on script:
#!/bin/sh
TELEPHONE=XXX-XXXX # Left out number for posting
ACCOUNT=XXXXX # Left out account name for posting
PASSWORD=XXXXX #Left out password for posting
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0
export TELEPHONE ACCOUNT PASSWORD
DIALER_SCRIPT=/etc/ppp/chatscript
exec /usr/sbin/pppd -d -detach lock modem crtscts /dev/ttyS3 38400 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK connect $DIALER_SCRIPT
Here is my ppp-on-dialer script:
#!/bin/sh
exec /usr/sbin/chat -v \
TIMEOUT 6 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rATZ \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT '' \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD \
> ppp
I run ppp-on and then almost immeadiately it gives me the permission
denied error.
Any help would be appreciated.
Steve Hodgson