LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-11-2012, 06:31 PM   #61
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by omizt View Post
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.
 
Old 02-11-2012, 06:41 PM   #62
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
I think the 255.255.255.0 is the network mask, because there is a note on the computer said so.

You're right, but, due to the structure of your IP address, it may need to me 255.255.14.0
when I type
ifconfig eth0 [IP] netmask 255.255.14.0 bcast 129.112.14.255 up
result is

SIOCSIFNETMASK: Invalid argrment
bcast: Host name lookup failure
 
Old 02-11-2012, 06:45 PM   #63
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
what did you use as IP address?
 
Old 02-11-2012, 06:46 PM   #64
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
and now I can't access google or any other websites.

when I type route -n
there is only one line
and the gateway is 0.0.0.0

---------- Post added 02-11-12 at 03:46 PM ----------

Quote:
Originally Posted by thor_2.0 View Post
what did you use as ip address?
129.112.14.31
 
Old 02-11-2012, 06:51 PM   #65
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
?????????????????????????
okay, in order of execution, enter this,please

Quote:
ifconfig eth0 129.112.14.31 netmask 255.255.14.0 bcast 129.112.14.255 up
next

Quote:
route add default gw 129.114.14.254
and try to ping google

let's see
 
Old 02-11-2012, 06:58 PM   #66
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
?????????????????????????
okay, in order of execution, enter this,please



next



and try to ping google

let's see
I typed

ifconfig eth0 129.112.14.31 netmask 255.255.14.0 bcast 129.112.14.255 up
result is
SIOCSIFNETMASK: Invalid argument

and I typred
route add default gw 129.114.14.254
result:
SIOCADDRT: Network is unreachable
 
Old 02-11-2012, 07:00 PM   #67
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
and why the bcast is 129.112.14.255 and the route added is 129.112.14.254
it's not a typo, right?
 
Old 02-11-2012, 07:02 PM   #68
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
of course, netmask 255.255.255.0, then...

Can you get extra info from teh campus' IT manager?
 
Old 02-11-2012, 07:03 PM   #69
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

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.

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
 
1 members found this post helpful.
Old 02-11-2012, 07:05 PM   #70
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
(thanks for joining in, T3RM1NVT0R)
 
Old 02-11-2012, 07:07 PM   #71
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi Thor_2.0,

You're welcome.

After a long time we are in the same thread :-)
 
Old 02-11-2012, 07:08 PM   #72
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
After a long time we are in the same thread :-)
Yup, and happy to be! Maybe I can pick something up...
 
Old 02-11-2012, 07:10 PM   #73
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by T3RM1NVT0R View Post
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.

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.
 
Old 02-11-2012, 07:13 PM   #74
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
so should I change into the test account? or just stay at root account?
 
Old 02-11-2012, 07:13 PM   #75
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

@ Thor

Same here. :-)

@ omizt

Don't worry, it will be fine. If you could share the output of the commands that I have mentioned then we will be able to help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
root access to user account RudraB Linux - Newbie 16 06-30-2010 03:11 AM
Root Account Access Security iconicmoronic Linux - Security 2 04-14-2007 03:17 PM
How do I access root account in Mandrake 10? dbz Linux - Security 4 04-03-2004 12:00 PM
Can Access Sites with root but not user account Obelus Linux - Networking 4 12-21-2003 04:28 PM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 02:33 PM


All times are GMT -5. The time now is 10:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration