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.
same result:
SIOSIFADDR:Invalid argument
bcast: Host name lookup failure
I think the 255.255.255.0 is the network mask, because there is a note on the computer said so.
I am using the address listed on the note of the computer, it looks like an IP address, and its first 3 numbers are the same with the gateway. So I think this is the IP address.
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.
Apart from the above test it will be good if could share the output of the following:
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.
Apart from the above test it will be good if could share the output of the following:
1.
Code:
ifconfig
2.
Code:
route
3.
Code:
cat /etc/resolv.conf
4.
Code:
ls -a /etc/skel
5.
Code:
cat /etc/default/useradd
I was able to access the internet under root account, and was not able to access the websites except google in another account(let's say account B). At that time, I set up another test account (account C). Using account C, it's the same situation with account B. I can't access any other websites except google.
But now I can't access any website even under root account.
And I don't know what's wrong.
I think I just use the command of "ifconfig" or "route add" like I was told.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.