[4927] in RedHat Linux List

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

Re: ppp: /dev/cua1: permission denied

daemon@ATHENA.MIT.EDU (Dwight Johnson)
Mon Nov 18 07:08:46 1996

Date: Mon, 18 Nov 1996 04:08:59 -0800 (PST)
From: Dwight Johnson <djohnson@olympus.net>
To: "Subhas C. Roy" <subhas@pobox.com>
cc: Red Hat List <redhat-list@redhat.com>
In-Reply-To: <199611180748.CAA28077@zippy.concentric.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Mon, 18 Nov 1996, Subhas C. Roy wrote:

> > Since upgrading to 4.0 my ppp script only works from root.
> > When I try to execute it as a user, I get:
> > 
> > ppp: /dev/cua1: Permission denied
> 
> I had some struggle with that. The usual remedy to this problem is:
> chmod u+s /usr/sbin/pppd. However that didn't help me. Then I found
> out that the PPP-HOWTO (I based my chat script on it) had a bug: I
> needed to replace "chat" in the ppp-on-dialer script by
> /usr/sbin/chat. That fixed the problem. A non-root user does not have
> /usr/sbin on the default command path. That's why ppp was working from
> root only. So make sure that pppd and chat etc commands are invoked
> with their full pathnames in the scripts.
 
I have this in my scripts:

    if /usr/sbin/chat \
       ABORT "NO CARRIER" ABORT BUSY "" ATZ OK \
       ATDT$PHONE CONNECT "" ogin: $USER ssword: \\q$PASSWORD
 
and

        /usr/sbin/pppd /dev/$DEVICE &

as well as:

-r-sr-xr-x   1 root     root        74580 Aug 29 10:33 /usr/sbin/pppd

I still get:

ppp: /dev/cua1: Permission denied

Dwight Johnson
djohnson@olympus.net


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