root account can access the internet, the other account can only access google
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Subnet mask says that your IP has been subnetted as class C IP address then how come broadcast address be 129.112.255.255. If I go as per theory the first 3 octect should not be changed with the subnet of 255.255.255.0.
So basically what I am trying to say is that in that IP range if you are using subnet of 255.255.255.0 then the network address should be 129.112.14.0 and the broadcast address should be 129.112.14.255. So that is first thing that is looking weird to me. Did you make any changes in your ifconfig-eth0 file?
Second thing, I would like to know is the default gateway ip. In earlier posts you said that you think it could be 129.112.14.254. Are we sure on that? Because without default gateway we are not going anywhere.
Subnet mask says that your IP has been subnetted as class C IP address then how come broadcast address be 129.112.255.255. If I go as per theory the first 3 octect should not be changed with the subnet of 255.255.255.0.
So basically what I am trying to say is that in that IP range if you are using subnet of 255.255.255.0 then the network address should be 129.112.14.0 and the broadcast address should be 129.112.14.255. So that is first thing that is looking weird to me. Did you make any changes in your ifconfig-eth0 file?
Second thing, I would like to know is the default gateway ip. In earlier posts you said that you think it could be 129.112.14.254. Are we sure on that? Because without default gateway we are not going anywhere.
Is this how your resolv.conf file initially looks like or there are any modifications?
Please do not make any modifications inf any files for now because we will not be knowing then whats going on
initially, the resolv.conf have 4 lines
first line is
;generated by /sbin/dhcient-script
and then
search dhcp.swmed.org
nameserver 199.242.236.1
nameserver 199.242.237.1
Output of cat /etc/resolv.conf looks OK to me if search dhcp.swmed.org is the name of your domain. If not them comment out this line. From the output of route command I can see that there is no default gateway is defined. If you are sure that
Quote:
gateway: 129.112.14.254
is the gateway then run the following command:
Code:
route add default gw 129.112.14.254
But wait, that will not be it if your system's IP configuration itself is not proper. So don't run that command for now. I would like to see the IP configuration of your machine first. Run the following command:
Alright. Output looks good to me. You can run the route add command as I mentioned in my previous post after checking on more thing. Have look at your /etc/sysconfig/network file. If you find anything that says:
Quote:
IPV6_NETWORKING=YES
Then comment out that line. Run the following command:
Code:
service network restart
And then
Code:
route add default gw 129.112.14.254
Once done check if you are able to connect to internet atleast using root account.
Leave it as it is. Sorry I mentioned the wrong syntax
Quote:
IPV6_NETWORKING=yes
Back to issue. Are you able to browse all the sites now using root? As you said that you are able to browse google using regular user. If I am getting it correctly we are back to where we were. Right? If yes, could you try the things that I mentioned in my first post in this thread. Here is the abstract:
Quote:
Hello everyone,
Just trying to catch up.
Let us start from beginning. As OP said that the issue is he is able to browse sites when he log in with root account but he is only able to browse google when he login with any other account. At first instance it does not appear to be me as a network issue the reason being if it was then root user should also not be able to browse the internet. I may be wrong but this is what I think.
omizt,
Is the issue still the same? Are you able to browse the sites with root user and not with a regular user? If yes, could you please try creating a test account and see if you are able to browse sites using that account. If not then try the following thing:
1. Login to the machine using test user account which you have created.
2. Open up terminal
3. su - root
4. Enter the root password. Make sure your prompt chage from $ to #.
5. Run the following command:
Code:
firefox &
Try to browse the sites using this firefox and let us know if you are able to browse. If yes, then it appears to me it has either sometime to do with permission. If not then it has something to do with profile.
I would also like to see the output of the following command:
Code:
ls -a /home/user
Where, user will be the test user accounts home directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.