LinuxQuestions.org
Help answer threads with 0 replies.
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-2009, 01:07 PM   #1
rtrahan
Member
 
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64

Rep: Reputation: 17
ifconfig help


Trying to run ifconfig.

Says it is in /sbin and for superusers. So I do cd/sbin, ls | less and I can see the command.

So I do ifconfig again..says in 'intel package' and for supersuser. So I do sudo ifconfig eth0
Then it says installed in 'intel package'. I can't get past this..

Any help would be greatly appreciated.
 
Old 02-11-2009, 01:20 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Open a terminal and do it like this:
Code:
$ sudo ifconfig
[sudo] password for rtrahan:
eth0 .... etc. etc. etc.
the line starting "eth0 ...." is the start of the response from your system (my system actually)
cheers,
jdk

Last edited by jdkaye; 02-11-2009 at 01:21 PM.
 
Old 02-11-2009, 01:20 PM   #3
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
It should work with sudo ifconfig after a standard Ubuntu installation. Your username must be in the sudoers file list, but I believe this is done automatically for the default user created during install.

Have you changed your default path in bash? Try providing the full path to the executable in the command - sudo /sbin/ifconfig, or whatever it is.

I don't know about the Intel package message.
 
Old 02-11-2009, 01:33 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
i don't understand your question.
If you want to run ifconfig as non root user, give the whole path
Code:
/sbin/ifconfig
 
Old 02-12-2009, 06:25 AM   #5
rtrahan
Member
 
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64

Original Poster
Rep: Reputation: 17
The sudo /sbin/ifconfig is the only one that worked. Thanks to all.
 
  


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
Why "-bash: ifconfig : command not found" when typing "$ifconfig" dangdtvn Linux - Server 9 09-20-2013 07:01 AM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 08:58 AM
ifconfig help riffe Linux - Networking 2 07-31-2004 10:33 AM
ifconfig gubak Linux - Networking 3 07-16-2004 07:23 AM
ifconfig neozero62 Linux - Newbie 1 12-10-2003 12:41 AM


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