LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-12-2003, 03:56 AM   #1
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Rep: Reputation: 15
Internet: Connect OK-No Browsing


A bit of an odd thing happening. Whenever I connect to the Internet through KPPP as root - No problems. Browse the Internet etc fine.

However, when I use KPPP as a regular user, I can connect fine. Connection is established and my time is ticking away. When I try to use any web browser no web site can be retrieved.

Any ideas? I have a feeling it's a permissions thing, but I thought I'd sorted that out when I was able to connect as a user. I just don't feel confortable browsing the web as root. I also want to get my partner set up on Linux and it would just be an added complication for her.
 
Old 02-12-2003, 04:10 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Run kppp as root, connect and then open a terminal and type
ifconfig
and
route
Close the connection. Now run kppp as normal user and do the same. Please post the result to the forum.
 
Old 02-12-2003, 07:17 AM   #3
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
As a normal user and connected, if you can ping another ip address directly then check the /etc/resolv.conf nameserver settings between root and the user. They should have the same settings when connected.
 
Old 02-16-2003, 06:21 AM   #4
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Here is the listings I obtained. Sorry it's taken me so long to post:

As root:
#ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:62.136.49.45 P-t-P:195.92.64.63 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:1 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:97 (97.0 b)

#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
praseodymium.le * 255.255.255.255 UH 0 0 0 ppp0
loopback * 255.0.0.0 U 0 0 0 lo
default praseodymium.le 0.0.0.0 UG 0 0 0 ppp0
----

As a regular user:

$/sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:62.136.29.5 P-t-P:195.92.64.34 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:1 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:40 (40.0 b) TX bytes:61 (61.0 b)

$/sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.92.64.34 * 255.255.255.255 UH 0 0 0 ppp0
loopback * 255.0.0.0 U 0 0 0 lo
default 195.92.64.34 0.0.0.0 UG 0 0 0 ppp0

A far as I can see, the only difference between the two sets of data is that the default Gateway from route as a user is different to the one set as root.

I set up Kppp twice, Once through KDE as root, then again as a normal user. I did exactly the same thing both times.
I use Freeserve to connect.
Is any of this information useful? I just can't understand it.
 
Old 02-17-2003, 12:29 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks OK. Everything's fine. It looks as a DNS issue. Log in as a normal user and connect. Open any browser and try to connect to 64.179.4.146. It should bring you to this site. If it works, open /etc/resolv.conf and see what you have inside. If it's empty when you're normal user, conenct as root and copy it in a safe place, disconnect, copy as resolv.conf and connect as normal user.
 
Old 02-20-2003, 06:40 AM   #6
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks for the help.

I copied the contents of resolv.conf as root into my normal user's resolv.conf and all worked perfectly, browser-wise.

For some reason root gets two extra temporary nameservers when KPPP connects, whilst my user gets only one temporary nameserver that was identical to the nameserver KPPP connected with.

Ah, well. At least it's working. Thanks again.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scheduled internet browsing bong.mau Programming 1 11-03-2005 02:43 PM
Slow internet browsing ronlon SUSE / openSUSE 1 02-21-2005 11:08 PM
Slow internet browsing Hammett Linux - General 8 01-06-2005 08:44 AM
internet browsing coal-fire-ice Linux - Software 2 12-09-2004 05:38 PM
browsing the internet sanjith11 Linux - Networking 5 11-21-2003 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration