LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   root account can access the internet, the other account can only access google (https://www.linuxquestions.org/questions/linux-newbie-8/root-account-can-access-the-internet-the-other-account-can-only-access-google-928833/)

omizt 02-11-2012 11:55 AM

root account can access the internet, the other account can only access google
 
I am w newbie. Now this computer have 3 accounts. If I use the root account, I can access the internet with no problem. if I use the other two accounts, I can only access Google and Google products. Is anyone have some ideas about what happens here? Thank you!

ButterflyMelissa 02-11-2012 12:57 PM

Quote:

I am w newbie
Welcome to the forum! :)

Okay, let's put this in the experimental basket, but...use the root account as few times as possible, and please do not surf with this account. If you want to, I (and others better than me, no doubt) can explain...but, on to the matter at hand.

What distro do you use? What comes in the browser when the user tries to acccess anything else? What browser do you use?

Looking on to try to help...

Thor

jefro 02-11-2012 01:02 PM

When they go to google, can they then access any other site from a search?


on clients use command line nslookup or dig www.somewebsiteotherthangoogle.com (you put in some or a few names)

There are a lot of unknowns here. Browser restrictions, topology that may limit it like proxy, proxy.pac files, maybe kiosk modes, iptables or other firewall or user limiting features.

I haven't heard of any stock distro that should act like this. I assume it has been modified to act like that.

omizt 02-11-2012 01:47 PM

I am using Redhat Enterprise Linux Version 5.3 and Mozilla Firefox.
When I try to browse the other webpage, it shows "Failed to Connect. Firefox can't establish a connection to the server at "

I can see the search results of google, but when I try to access the other site from the search result, it will show the "Failed to Connect. Firefox can't establish a connection to the server at " again.

repo 02-11-2012 01:50 PM

Try to disable ipv6.
http://thedaneshproject.com/posts/di...-in-firefox-3/
Make sure you have the correct dns servers in
/etc/resolv.conf

Kind regards

omizt 02-11-2012 02:04 PM

I checked the resolv.conf
there are 4 lines in this file.
first line is ";generated by /sbin/dhclient-script"
second line is "search" and then the right search domains.
the 3rd line and the 4th line are "nameserver", and the setting is the same with my other computer.

Is this setting correct?

ButterflyMelissa 02-11-2012 02:06 PM

I'd start to try to comment out everything that does not look like:

Quote:

nameserver [IP of the DNS servers of your provider]
...and only leave the nameservers...

repo 02-11-2012 02:08 PM

Try to comment out the search part.
What happens if you use another browser?

Kind regards

omizt 02-11-2012 02:15 PM

Quote:

Originally Posted by repo (Post 4599899)
Try to disable ipv6.
http://thedaneshproject.com/posts/di...-in-firefox-3/
Make sure you have the correct dns servers in
/etc/resolv.conf

Kind regards

I disabled the ipv6 but still the same.
at the end of that poster, it says restart your browser. I just close the browser and start it again. Is that enough? should I restart my computer?

omizt 02-11-2012 02:16 PM

Quote:

Originally Posted by repo (Post 4599911)
Try to comment out the search part.
What happens if you use another browser?

Kind regards


you mean I install another browser?

repo 02-11-2012 02:18 PM

There are more browsers installed, take a look in the menu's.

Kind regards

repo 02-11-2012 02:23 PM

Try to use the dns from google
8.8.8.8

Kind regards

omizt 02-11-2012 02:25 PM

Quote:

Originally Posted by jefro (Post 4599862)
When they go to google, can they then access any other site from a search?


on clients use command line nslookup or dig www.somewebsiteotherthangoogle.com (you put in some or a few names)

There are a lot of unknowns here. Browser restrictions, topology that may limit it like proxy, proxy.pac files, maybe kiosk modes, iptables or other firewall or user limiting features.

I haven't heard of any stock distro that should act like this. I assume it has been modified to act like that.


I thought maybe I modified something by accident. I tried command dig, there is a long result, but I don't know what should I look for.

omizt 02-11-2012 02:29 PM

I don't know why I can access the other websites when I am using the root account.

ButterflyMelissa 02-11-2012 02:30 PM

Okay, maybe one step at a time...let's go with repo's advice:

Quote:

Tr to use the dns from google
8.8.8.8
Do you know how to set this? If not, well, it's pretty simple:
- open a console
- issue "su -" (no excamation marks, the hyphen is part of the "spell")...
- enter the root password
- enter "gedit /etc/resolv.conf" and add the line "nameserver 8.8.8.8" (no exclamation marks)and save
- issue "exit" twice (one to get out of the root account, one to close the console)

Possible snag: resolv.conf may be somewhere else, in that case, try a sys-wide seek first...

Good luck

Thor


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