Fedora Linux Support Community & Resources Center
  #1  
Old 28th September 2007, 03:02 AM
benjo's Avatar
benjo Offline
Registered User
 
Join Date: Nov 2006
Location: Melbourne
Posts: 76
ifconfig, iwconfig disabled?

Hi, just curious why i cant do an ifconfig or an iwconfig:

Code:
[benjo@localhost ~]$ ifconfig
bash: ifconfig: command not found
[benjo@localhost ~]$ iwconfig
bash: iwconfig: command not found
Is it disabled by default?
__________________
Ej-oo-kay-shun 4 all not just the rich.</microsoft>
Fedora8. P4, Gigabyte LGA775, nVidia FX 5200
Fedora8. HP DV2000, Centrino DUO, nVidia FX7200
Fedora8. Dell OptiPlex 755, ATI Radeon HD 2400 XT
Reply With Quote
  #2  
Old 28th September 2007, 03:06 AM
zackf Offline
Registered User
 
Join Date: Nov 2006
Location: South Carolina
Posts: 798
Benjo,

Become root and you can do it.

Code:
su -
Reply With Quote
  #3  
Old 28th September 2007, 03:50 AM
benjo's Avatar
benjo Offline
Registered User
 
Join Date: Nov 2006
Location: Melbourne
Posts: 76
Slapping myself on the face right now.
Sorry, it's been a long 3 days, up until 3am every morning trying to get this laptop installed. Wireless is doing my head in, it's the only excuse i have.
__________________
Ej-oo-kay-shun 4 all not just the rich.</microsoft>
Fedora8. P4, Gigabyte LGA775, nVidia FX 5200
Fedora8. HP DV2000, Centrino DUO, nVidia FX7200
Fedora8. Dell OptiPlex 755, ATI Radeon HD 2400 XT
Reply With Quote
  #4  
Old 28th September 2007, 03:56 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,305
You don't need to be root. The problem is that these programs are in a directory whic his NOT be default on the non-root user's path. If you type /sbin/ifconfig or whatever it should work.

A better solution is to do this command once as root ...
sed -i s/\$EUID/0/g /etc/profile
After that the system tools will be on everyone's path.
Reply With Quote
  #5  
Old 28th September 2007, 04:02 AM
benjo's Avatar
benjo Offline
Registered User
 
Join Date: Nov 2006
Location: Melbourne
Posts: 76
That's very cool, thank you.
Im in my first year of a networking degree and i appreciate all these great little tips. (one day i may actually understand whats happening in all that code).
__________________
Ej-oo-kay-shun 4 all not just the rich.</microsoft>
Fedora8. P4, Gigabyte LGA775, nVidia FX 5200
Fedora8. HP DV2000, Centrino DUO, nVidia FX7200
Fedora8. Dell OptiPlex 755, ATI Radeon HD 2400 XT

Last edited by benjo; 28th September 2007 at 04:06 AM.
Reply With Quote
  #6  
Old 28th September 2007, 02:03 PM
zackf Offline
Registered User
 
Join Date: Nov 2006
Location: South Carolina
Posts: 798
Linux and wireless can be very tricky too. I have had mild successes and great failure getting it to work, but outside of that it's a great OS.
Reply With Quote
  #7  
Old 28th September 2007, 02:08 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Quote:
Originally Posted by stevea
You don't need to be root. The problem is that these programs are in a directory whic his NOT be default on the non-root user's path. If you type /sbin/ifconfig or whatever it should work.

A better solution is to do this command once as root ...
sed -i s/\$EUID/0/g /etc/profile
After that the system tools will be on everyone's path.
That's pretty cool. I usually recommend adding /sbin, /usr/sbin to your path in ~/.bash_profile but your solution is particularly elegant.
Reply With Quote
Reply

Tags
disabled, ifconfig, iwconfig

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iwconfig, ifconfig availability? cm1967 Servers & Networking 4 30th October 2007 07:59 PM
sharing internet using iwconfig and ifconfig linuxuser9214 Servers & Networking 1 5th April 2007 04:04 AM
ifconfig / iwconfig don't work - why? tizwoz Using Fedora 3 30th August 2006 03:57 PM
iwconfig and ifconfig not working in FC2 t3kops Servers & Networking 1 18th July 2004 04:13 AM
Iwconfig and Ifconfig RallyMonkey Using Fedora 3 24th April 2004 09:34 PM


Current GMT-time: 02:54 (Monday, 27-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat