LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 07-21-2011, 07:39 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
not able to connect to the internet


hi,
well i have broadband connection in my company and i wanted to connect my centos pc to the internet via this connection.how can i do this and even the ifconfig command isnt working.
somebody please help me..please give me some advanced commands as well...
 
Old 07-21-2011, 08:05 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The ifconfig command is available only to root, unless you use the absolute path that is:
Code:
/sbin/ifconfig -a
Regarding broadband connection you have to set-up it from System -> Preferences -> Network Connections -> DSL. Click the ADD button and fill all the required fields. Which release of CentOS have you installed anyway?
 
Old 07-21-2011, 08:14 AM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
hi,
well i have installed centos 5.6 in my pc..
and can u please tell me how can i change the mode of ifconfig from root to user because when i type ifconfig it isnt showing any result and it is controlled by root...please help me,centos is really making me mad..
 
Old 07-21-2011, 08:19 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by SarahGurung View Post
hi,
well i have installed centos 5.6 in my pc..
and can u please tell me how can i change the mode of ifconfig from root to user because when i type ifconfig it isnt showing any result and it is controlled by root...please help me,centos is really making me mad..
You can either type /sbin/ifconfig -a as a normal user or use 'su' to become root and you should be able to just type 'ifconfig -a'
 
Old 07-21-2011, 08:36 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
In Centos 5.6 the procedure to set-up a DSL connection is different. From the System menu, go to Administration -> Network. Then click on the New button and select xDSL connection from the list on the left, click forward and insert username, password and provider's name.

Regarding the ifconfig command, the answer has been already told. Some commands in linux are reserved to the system administrator to avoid that normal users (in a multiuser system) can change or damage the system. So basically these command are placed in /sbin and /usr/sbin and these two directories are not in the PATH environment variable of a user. Anyway the command ifconfig can be used in some circumstances (only to retrieve network information) by normal users: the trick is to run the command using the absolute path (as shown above).

To see the difference in the PATH environment variable, first run
Code:
echo $PATH
as normal user, then switch to root using the command
Code:
su -
and run echo $PATH again.
 
  


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
[SOLVED] can't connect to tightvncserver over internet..but can connect in LAN BHABANIPRASADPATI Linux Mint 5 06-14-2011 11:00 AM
Connect my netbook to wireless but it wont connect to the internet but it did . Haydn456MJW Linux - Newbie 7 01-26-2011 06:56 PM
Kubuntu - Can't connect to the internet, but can connect to the LAN KellyT Linux - Networking 1 11-12-2009 05:17 AM
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 05:22 AM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 09:28 PM


All times are GMT -5. The time now is 08:22 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