[1694] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: PPP problems

daemon@ATHENA.MIT.EDU (Robert Hart)
Tue Oct 29 18:47:41 1996

Date: Wed, 30 Oct 1996 10:26:59 +1100 (EST)
From: Robert Hart <hartr@interweft,com.au>
Reply-To: Robert Hart <iweft@ipax.com.au>
To: "Gupta, Shinu" <shinu@webvalue.com>
cc: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.94.961029112839.31830V-100000@landslide.openix.com>
Resent-From: redhat-list@redhat.com

On Tue, 29 Oct 1996, Gupta, Shinu wrote:

>  1. I cannot make PPP work from a script file. My script file looks like
>  this:
> 
>  #/bin/sh /usr/sbin/pppd connect "/usr/sbin/chat -v '' ATZ OK
>  ATDTxxxxxxx CONNECT '' ogin: xxxxxxxx word: xxxxxxxx" /dev/modem 38400
>  -detach crtscts modem defaultroute &
> 
>  and I get error in the message file:
> 
>  Oct 11 11:05:13 prachi pppd[627]: pppd 2.1.2 started by root, uid 0 Oct
>  11 11:05:13 prachi pppd[627]: ioctl(TIOCSCTTY): Operation not permitted
>  Oct 11 11:05:13 prachi pppd[627]: Exit.
> 
>  When I type the same stuff on command line - every thing works fine.
>  How can I make it work though the script file?

When you type it on the command line, you are logged in as root I suspect.
When you try and execute the script, you are an ordinary user.

Sigh

This is a FAQ. Quick solution - 'chmod u+s /usr/sbin/pppd'

Robert Hart                                  iweft@ipax.com.au
Voice: +61 (0)3 9735 3586
InterWeft, 35 Summit Road, Lilydale, Victoria 3140, Australia
        IT, data and voice networking Consultancy
        Strategic IT business planning
        Internet planning, implementation, security and configuration


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post