[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wvdial & pppd

On Wed, Nov 08, 2000 at 06:42:36PM -0700, Clayton Stapleton wrote:
> Hi Folks;
> Have read all the manual on this that I could find and
> looked at the archives on Debian.org with no luck.
> So here goes! Haves set up wvdial with all the info as
> requested. Can get wvdial to contact my ISP and then
> pppd dies and it tells me to look in /var/log for any 
> error messages. There are no error messages regarding
> pppd here. So I looked at syslog which has the following:
> "pppd: must be root to run /usr/sbin/pppd, since it is not
>              setuid-root."
> What do I need to do to get this operating as a regular 
> user?

Try using pppconfig (as root) to configure ppp, adding your normal user
to the allowed users (i.e. `adduser <login> dip` ).  Then use pon/poff
to bring the connection up/down.

Ignore most of that stuff in the PPP-HOWTO.

#! /bin/sh
# ppp-address: What's my Internet Address for ppp0 ?
/sbin/ifconfig ppp0 2> /dev/null | grep 'inet addr:' | sed \
's=.*inet addr\:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*=\1='

Reply to: