PPP doesn't connect if I'm not root (already RTFM'd!)

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Bradley B. Busza » Wed, 28 May 1997 04:00:00



I've got PPP working like a champ, but it won't work if I'm not
logged as root.  My permissions appear to be correct:

 -r-xr-xr-x   1 root     root         967 Jun 14  1995 ppp-off
 -r-xr-xr-x   1 root     root         165 Apr 17 10:21 ppp-on
 -rwsr-xr-x   1 root     root         342 May 17  1996 pppd

I've been lurking around this group, hoping somebody has had a similar
problem, but if they have, I haven't seen it.  I've searched the HOWTO
and FAQ as well.  Any ideas?

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Vidar Madse » Wed, 28 May 1997 04:00:00


Quote:> I've got PPP working like a champ, but it won't work if I'm not
> logged as root.  My permissions appear to be correct:

>  -r-xr-xr-x   1 root     root         967 Jun 14  1995 ppp-off
>  -r-xr-xr-x   1 root     root         165 Apr 17 10:21 ppp-on
>  -rwsr-xr-x   1 root     root         342 May 17  1996 pppd

> I've been lurking around this group, hoping somebody has had a similar
> problem, but if they have, I haven't seen it.  I've searched the HOWTO
> and FAQ as well.  Any ideas?

I believe pppd will execute ppp-on and the connect-script (if any)
as the invoking user, not as root, and therefore you might want to
check the permissions on the tty as well. If you're alone on your
computer you could just 'chmod a+rwx /dev/ttyXX', or if you're
afraid of abuse you could create a group (e.g. 'modem' or 'uucp')
and add yourself to it. Then 'chmod g+rwx /dev/ttyXX' should take
care of business.

- Vidar

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Dmitri Sergatsk » Wed, 28 May 1997 04:00:00


Users often do not have path to /sbin , so make sure you
have a full path to chat in ppp-on (or in whatever script you
are using for ppp connections).

Regards,
Dmitri.

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Vidar Madse » Wed, 28 May 1997 04:00:00


Quote:> I've got PPP working like a champ, but it won't work if I'm not
> logged as root.  My permissions appear to be correct:

>  -r-xr-xr-x   1 root     root         967 Jun 14  1995 ppp-off
>  -r-xr-xr-x   1 root     root         165 Apr 17 10:21 ppp-on
>  -rwsr-xr-x   1 root     root         342 May 17  1996 pppd

> I've been lurking around this group, hoping somebody has had a similar
> problem, but if they have, I haven't seen it.  I've searched the HOWTO
> and FAQ as well.  Any ideas?

I believe pppd will execute ppp-on and the connect-script (if any)
as the invoking user, not as root, and therefore you might want to
check the permissions on the tty as well. If you're alone on your
computer you could just 'chmod a+rwx /dev/ttyXX', or if you're
afraid of abuse you could create a group (e.g. 'modem' or 'uucp')
and add yourself to it. Then 'chmod g+rwx /dev/ttyXX' should take
care of business.

- Vidar

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Bradley B. Busza » Thu, 29 May 1997 04:00:00



>I've got PPP working like a champ, but it won't work if I'm not
>logged as root.  My permissions appear to be correct:

> -r-xr-xr-x   1 root     root         967 Jun 14  1995 ppp-off
> -r-xr-xr-x   1 root     root         165 Apr 17 10:21 ppp-on
> -rwsr-xr-x   1 root     root         342 May 17  1996 pppd

Solved!
For other Slackware users who might encounter this problem, the pppd
program has been turned into a wrapper which checks the version of
ppp you have, then either launches pppd-2.1 or ppp-2.2.  These are
the programs that need SUID root.  Logical enough, once you figure
out what is going on.

Thanks to those who tried to help.

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Daniel Schaere » Thu, 29 May 1997 04:00:00



> Solved!
> For other Slackware users who might encounter this problem, the pppd
> program has been turned into a wrapper which checks the version of
> ppp you have, then either launches pppd-2.1 or ppp-2.2.  These are
> the programs that need SUID root.  Logical enough, once you figure
> out what is going on.

> Thanks to those who tried to help.

I have the same problem with the modem: Using seyon works only for root!
- I've tried to set 'chmod a+rwx /dev/ttyp??' (and other variations)
which still does not help.
I'm also using the Slackware distribution (kernel 2.0.0).
Can seyon really only be run as root ?

Daniel Schaerer

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by William R. Matti » Thu, 29 May 1997 04:00:00




> > Solved!
> > For other Slackware users who might encounter this problem, the pppd
> > program has been turned into a wrapper which checks the version of
> > ppp you have, then either launches pppd-2.1 or ppp-2.2.  These are
> > the programs that need SUID root.  Logical enough, once you figure
> > out what is going on.

> > Thanks to those who tried to help.

> I have the same problem with the modem: Using seyon works only for root!
> - I've tried to set 'chmod a+rwx /dev/ttyp??' (and other variations)
> which still does not help.
> I'm also using the Slackware distribution (kernel 2.0.0).
> Can seyon really only be run as root ?

Nope, just tried it. Worked just fine as a non-root user

--
William R. Mattil

(972) 256-3219

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Daniel Schaere » Thu, 29 May 1997 04:00:00



> Solved!
> For other Slackware users who might encounter this problem, the pppd
> program has been turned into a wrapper which checks the version of
> ppp you have, then either launches pppd-2.1 or ppp-2.2.  These are
> the programs that need SUID root.  Logical enough, once you figure
> out what is going on.

> Thanks to those who tried to help.

I have the same problem with the modem: Using seyon works only for root!
- I've tried to set 'chmod a+rwx /dev/ttyp??' (and other variations)
which still does not help.
I'm also using the Slackware distribution (kernel 2.0.0).
Can seyon really only be run as root ?

Daniel Schaerer

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by William R. Matti » Thu, 29 May 1997 04:00:00




> > Solved!
> > For other Slackware users who might encounter this problem, the pppd
> > program has been turned into a wrapper which checks the version of
> > ppp you have, then either launches pppd-2.1 or ppp-2.2.  These are
> > the programs that need SUID root.  Logical enough, once you figure
> > out what is going on.

> > Thanks to those who tried to help.

> I have the same problem with the modem: Using seyon works only for root!
> - I've tried to set 'chmod a+rwx /dev/ttyp??' (and other variations)
> which still does not help.
> I'm also using the Slackware distribution (kernel 2.0.0).
> Can seyon really only be run as root ?

Nope, just tried it. Worked just fine as a non-root user

--
William R. Mattil

(972) 256-3219

 
 
 

PPP doesn't connect if I'm not root (already RTFM'd!)

Post by Lance Levse » Thu, 05 Jun 1997 04:00:00




> > Solved!
> > For other Slackware users who might encounter this problem, the pppd
> > program has been turned into a wrapper which checks the version of
> > ppp you have, then either launches pppd-2.1 or ppp-2.2.  These are
> > the programs that need SUID root.  Logical enough, once you figure
> > out what is going on.

> > Thanks to those who tried to help.

> I have the same problem with the modem: Using seyon works only for root!
> - I've tried to set 'chmod a+rwx /dev/ttyp??' (and other variations)
> which still does not help.
> I'm also using the Slackware distribution (kernel 2.0.0).
> Can seyon really only be run as root ?

> Daniel Schaerer

That and (at least on my Deb) you need your user to be of group
'dialout'. Otherwise the modem won't even bother with you.

-Lance

--
-----
If I had a neat and nifty saying, it would go here.

 
 
 

1. 'ppp-on' Works, 'ifup ppp0' Doesn't

Not sure what i'm doing wrong...

First some backgound.... RedHat 6.0, kernel 2.2.5-15, USR 33.6 (not a winmodem)

I've edited ppp-on[off][-dialer] scripts to work flawlessly, however, If I try
to bring PPP up by running 'ifup ppp0', I get these errors:

SIOCSIFNETMASK: Cannot assign requested address
SIOCSIFBRDADDR: Cannot assign requested address
SIOCADDRT: Network is unreachable

ifcfg-ppp0 look like this:

DEVICE="ppp0"
ONBOOT="no"
USERCTL="no"
MODEMPORT="/dev/modem"
LINESPEED="115200"
PERSIST="yes"
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="no"
PPPOPTIONS=""
PAPNAME=""
REMIP="0.0.0.0"
NETMASK="0.0.0.0"
IPADDR="0.0.0.0"
MRU="1500"
MTU="1500"
DISCONNECTTIMEOUT="60"
RETRYTIMEOUT="5"
BOOTPROTO="none"

I am under the impression that an address of 0.0.0.0 means that the address is
dynamic, and will be assigned by the server. My username, passwd, and ISP's
telephone number are located in the file chat-ppp0, in the same directory.

My question then is, why am I getting MSG's complaining about dynamic
addresses? Am I using the wrong syntax? What do I have to do from here to get
the command ifup ppp0 to call and connect to my ISP? I think I'm pretty
close...I hope its something simple that I'm over-looking.

Thanks in advance for your gracious help,

-Chris

2. Kensington 4-button Expert Mouse or Cirque Touchpad

3. Can't connect if I'm not root

4. Hack-attempt

5. Can't connect using PPP - remote server pppd doesn't negotiate

6. fun with powerbook, BMAC+ 100Mbit, hanging...

7. I changed root's shell and doesn't login as root

8. C for AIX version 5

9. PPP doesn't die, it just doesn't work anymore

10. Why is mail for 'news' not sent to 'root'?

11. xterm not able to 'exec /bin/bash' for not root-uid

12. ping -g 'gateway-IP' 'host-IP' DOESN'T work!

13. 'ping' sees route but 'telnet' doesn't??