PPP - sh: /etc/ppp/ppp-on-dialer: Permission denied HELP!

PPP - sh: /etc/ppp/ppp-on-dialer: Permission denied HELP!

Post by s » Sat, 04 Jul 1998 04:00:00



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

 
 
 

PPP - sh: /etc/ppp/ppp-on-dialer: Permission denied HELP!

Post by Santosh K.Putt » Sat, 04 Jul 1998 04:00:00



> 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.

> Any help would be appreciated.
> Steve Hodgson


Are you sure your are running your script and not some other ppp-on
script which may be residing in your path. Try "./ppp-on" in the
directory you have your script.

 
 
 

PPP - sh: /etc/ppp/ppp-on-dialer: Permission denied HELP!

Post by Thorsten Dow » Sun, 05 Jul 1998 04:00:00



> 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


 Which shell do you use? The scripts are for bash and dont work in a
tcsh, for example. They look different for csh's.

Thorsten

--
"Another glorious chapter of Klingon history?
 Tell me, did they still sing songs of the great tribble hunt?"
****************************************************************
*     Thorsten Dowe
*     University of the Federal Armed Forces at Munich
*     http://www.unibw-muenchen.de

****************************************************************

 
 
 

PPP - sh: /etc/ppp/ppp-on-dialer: Permission denied HELP!

Post by Howard Aro » Sun, 05 Jul 1998 04:00:00


On Fri, 03 Jul 1998 17:09:53 GMT, sh wrote in comp.os.linux.misc:

>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:
[script snipped]
>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  

>Any help would be appreciated.
>Steve Hodgson


Steve,
Another idea: do you have write permission for the directory that the
chat script will create the file "ppp" in?

Howard Arons
--
Powered by SuSE Linux 5.2 -- kernel 2.0.33
Newsreading by slrn

 
 
 

1. Ask ppp-on and ppp-on-dialer for ppp connection

hi,
   After 4 housrs trying to make ppp connection, I believe I fail on
   "chat" program.

   I got slackware96 kernel 2.0.0 and pppd-2.2, ppppd-2.1, pppd, ppp-on
   ppp-off in my /usr/sbin directory, also in my /etc/ppp directory,
   there are "options" and "ppp-on-dialer" there.

   I change the phone number, login process in those files to fit my
   situation, and use the "pppd-2.2" in the ppp-on script.

   Login as root, /dev/cua1 as my modem line, then make ppp-on script
   to run in the background.

   THe modem light is on, but it did not dial and ppp-on exit after
   a while. I check the /var/log/message, I found the following:

   OCT 12 ,120, ....  : ppp connect --> /dev/cua1
   ...............chat: expect ('')
   ...............chat: alarm
   ...

   The modem is setup correctly according HOWTO ppp, I just wonder is
   anyone can send me the those 3 scripts, and which version pppd
   I should use with slackware96 ?

   Any help is appreciated.

   Wesley Shih

2. Looking for wireless monitor for Toshiba Tecra 802.11b interface

3. ppp-on/ppp-on-dialer/ppp-off???

4. gcc <math.h>

5. Scripts for ppp-on, ppp-on-dialer, ppp-off

6. What Kind of Cards are these?

7. PPP and PPP and PPP and PPP and PPP and HEADACHE

8. test, do not read

9. Help: How to get PPP to read /etc/ppp/ppp.conf

10. help with ppp-on/ppp-on-dialer (RH 6.0)

11. ppp-on/ppp-on-dialer problems

12. ppp-on and ppp-on-dialer scripts

13. How to 'WAIT' in ppp ppp-on-dialer script?