Re: Problems with ifconfig in Fedora 8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrea Mastellone wrote:
Stuart Sears wrote:
Pedro Jose wrote:
Hello:

In a Fedora 8, and also in a Centos 5.1, when I open a terminal and I
login as root, I type ifconfig, but the command is not detected.
However, when I go to a tty, Cntrl + Alt + F1, for example, and I
login as root, ifconfig is recongnized.

How can I fix it?

The ifconfig command is in /sbin, which is not on a normal users PATH.

so, you can do one of 2 things:
* type /sbin/ifconfig

or
*change your path to include /sbin (and if you are going to do that, you may as well add /usr/sbin as well)

in /home/YOURUSER/.bash_profile:

(at the bottom, ideally)

export PATH=$PATH:/sbin:/usr/sbin

and then logout and login again


(Sorry for my english, I'm spanish)

not a problem. My Spanish is lousy. :)

Regards,

Stuart

In a simpler way, you can type su - instead of su in a terminal.
This gives you also the root environment variables (including PATH).

Absolutely. /me is guilty of not RTFQ. :)

su -
is the correct way to do this.

Stuart
--
Stuart Sears RHCA etc.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux