[4953] 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 (Ray Curtis)
Mon Nov 18 09:52:32 1996

Date: Mon, 18 Nov 1996 09:44:47 -0500
From: ray@fred.net (Ray Curtis)
To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.95.961118040200.408C-100000@inspire.olympus.net>
Reply-To: ray@fred.net
Resent-From: redhat-list@redhat.com

Dwight Johnson writes:
 > 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

You say everything here except the permissions on /dev/cua1 ? Take a
look at them:

crw-rw----   1 root     uucp       5,  65 Dec 31  1979 /dev/cua1

---------------------------------------------------------------
Linux Host 'PICARD'
email: ray@fred.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