Fedora Linux Support Community & Resources Center
  #1  
Old 2nd March 2008, 11:55 AM
chris.tkd Offline
Registered User
 
Join Date: Jan 2007
Posts: 4
ifconfig problem

Hello, after almost a year of using Ubuntu i decided to switch to fedora after having some problems.

Currently im having a problem with ifconfig... even when im root and type ifconfig i get

[root@localhost chris] ifconfig
bash: ifconfig: command not found

Anyone any ideas on how to fix this?
Reply With Quote
  #2  
Old 2nd March 2008, 12:03 PM
linuxpcmancn's Avatar
linuxpcmancn Offline
Registered User
 
Join Date: Dec 2007
Location: /China/BeiJing
Age: 26
Posts: 252
/sbin/ifconfig


/sbin is not in normal user path,only root can use it directly.Never forget to use 'whereis command' to locate the whole path of the command,when running into errors like this.For permanence,u can add /sbin into $PATH.
__________________
An alternative way of life is to love or be loved…

#what's to love > /dev/null

#what's be loved > /trash

:D :D
Reply With Quote
  #3  
Old 2nd March 2008, 12:03 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,345
Hello chris.tkd

Welcome to the forum.

There are two forms of root authority in Fedora.

If you use:

Code:
su
then you get root privileges but only in an area limited by the Path statement belonging to the user who issues the su command.

To obtain full root privileges you need to issue the command:

Code:
su -
That's a space and a minus sign after the su.

Edit: For reasons of security - that is restricting access by ordinary users - altering your path statement is not recommended.
Reply With Quote
  #4  
Old 2nd March 2008, 12:44 PM
chris.tkd Offline
Registered User
 
Join Date: Jan 2007
Posts: 4
Thanks guys, its working fine now.
Reply With Quote
  #5  
Old 2nd March 2008, 02:39 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
For further explanation

http://home.nyc.rr.com/computertaijutsu/rhpath.html
Reply With Quote
Reply

Tags
ifconfig, problem

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
ifconfig ? esthelle Servers & Networking 8 2nd April 2008 03:40 PM
can't run ifconfig as su monroig Using Fedora 2 24th January 2008 11:07 AM
ifconfig problem! darkdragon Servers & Networking 2 6th February 2007 07:29 AM
Interesting problem--conflict between ifconfig and ip SteveZ Servers & Networking 6 19th July 2005 02:07 PM
ifconfig problem ATIR350 Servers & Networking 5 22nd May 2005 08:58 PM


Current GMT-time: 03:20 (Thursday, 23-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