Networking Forums

Networking Forums > Computer Networking > Linux Networking > kppp permissions?? and route.

Reply
Thread Tools Display Modes

kppp permissions?? and route.

 
 
Iamyou
Guest
Posts: n/a

 
      09-27-2003, 03:01 PM
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??

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

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      09-28-2003, 03:36 PM
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??


You could use replacedefaultroute option in /etc/ppp/options. Or you
could do anything as root from /etc/ppp/ip-up (or ip-up.local) which runs
as root. But use full paths, because enviroment is minimal.

But why do you have some other default route? A default route should
typically only lead to the internet (other routes should be host or net
routes). Or is this an alternate if your broadband connection is not
responding?

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


Normally a network connection (including ppp0) does not distiguish users,
just IPs. What error do you get when you try to ping and what error do
you get in the browser when you enter a URL?

Did you ever use 'su' without the '-' switch? Without '-' switch, some
files in your home dir (possibly related to browser) may have wrong
ownership (especially if browser does not start).

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
Michael Scheinost
Guest
Posts: n/a

 
      09-29-2003, 12:20 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

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

man sudo

michael
- --
Michael Scheinost
(E-Mail Removed)
GPG Public Key http://pgp.mit.edu:11371/pks/lookup?...rch=0x4FF8E93B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/d3rmNJWy7U/46TsRAqixAKC2+kInPbEuaJZ38uhXPOmrOupxDwCghWD4
myjV2xOiwtWngRQulf/ZLn0=
=3q3N
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Michael C.
Guest
Posts: n/a

 
      09-29-2003, 05:54 AM
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/


 
Reply With Quote
 
Iamyou
Guest
Posts: n/a

 
      09-30-2003, 07:48 AM
David Efflandt wrote:

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

>
> You could use replacedefaultroute option in /etc/ppp/options. Or you
> could do anything as root from /etc/ppp/ip-up (or ip-up.local) which runs
> as root. But use full paths, because enviroment is minimal.


adding to /etc/ppp/ip-up worked like a charm
>
> But why do you have some other default route? A default route should
> typically only lead to the internet (other routes should be host or net
> routes). Or is this an alternate if your broadband connection is not
> responding?


I have no idea. ppp defaulted the default route to point to my network
card (that I as yet don't use) upon installation.

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

>
> Normally a network connection (including ppp0) does not distiguish users,
> just IPs. What error do you get when you try to ping and what error do
> you get in the browser when you enter a URL?
>


host not found.

> Did you ever use 'su' without the '-' switch? Without '-' switch, some
> files in your home dir (possibly related to browser) may have wrong
> ownership (especially if browser does not start).
>


I have not used su. I just changed the owner group of /usr/bin/kppp and
/usr/bin/kppplogview from root to dialup.

Michael C. wrote:
> And when you reply mention distro and version, It seems like everyone
> has their own method of dealing with this, and their own defaults.


Debian Woody r1 powerpc.

Thanks for your help (both).




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN client adds wrong route to local route table snowdog_2112 Windows Networking 7 11-01-2005 02:05 PM
pls help KPPP connect w/o username Chumpmeister Linux Networking 2 10-18-2003 09:08 PM
Another KPPP problem Ed Kessinger Linux Networking 4 10-14-2003 12:21 PM
Kppp problem Vick Linux Networking 3 10-02-2003 10:23 PM
Kppp problems (RH 7.3) Evpuneq Erivf Linux Networking 1 07-30-2003 10:44 AM



1 2 3 4 5 6 7 8 9 10 11