PDA

View Full Version : ifconfig problem


chris.tkd
2nd March 2008, 11:55 AM
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?

linuxpcmancn
2nd March 2008, 12:03 PM
/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.

bbfuller
2nd March 2008, 12:03 PM

Hello chris.tkd

Welcome to the forum.

There are two forms of root authority in Fedora.

If you use:

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:

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.

chris.tkd
2nd March 2008, 12:44 PM
Thanks guys, its working fine now.

scottro
2nd March 2008, 02:39 PM
For further explanation

http://home.nyc.rr.com/computertaijutsu/rhpath.html