On Sun, 28 Sep 2003 01:01:40 +1000,
Iamyou <(E-Mail Removed)> wrote:
> Hi,
> have a Q about kppp and route.
>
> Number one: is there a way I can execute:
> route del default
> route add default gw XXX.XXX.XXX.XXX
> without having to manually log in as root??
>
Assuming that you're using Debian based on your email

, Look in the
directory /etc/ppp/ip-up.d you'll find a number of scripts, you can add
you own script there, they are run in alphabetical(asc?) order which is
why some have numbers in them (to force a particular order.). Make sure
you set the permissions correctly.
If you're using another distro, RH and MDK both have /etc/ppp/if-up
and/or /etc/ppp/if-up.local to which you can add the lines, or call your
own script.
> Number two: Using kppp I can connect to my isp as any user YET I can only
> then browse and ping as root. I s there a file I need to change the
> permission on? (If it helps I run kppp via group access)
>
> cheers
>
Connect as a user, try an
ls -l /etc/resolv.conf, and if that doesn't issue an error, check the
permissions, cat the file. Try host redhat.com, see if it resolves, if
not try it as root to confirm that the problem is definately local.
And when you reply mention distro and version, It seems like everyone
has their own method of dealing with this, and their own defaults.
HTH,
Michael C.
--
(E-Mail Removed) http://mcsuper5.freeshell.org/
Registered Linux User #303915
http://counter.li.org/