Problems with ifconfig in Fedora 8

Patrick O'Callaghan pocallaghan at gmail.com
Tue Apr 22 15:03:07 UTC 2008


On Tue, 2008-04-22 at 09:50 -0500, Aaron Konstam wrote:
> On Tue, 2008-04-22 at 11:46 +0200, Pedro Jose wrote:
> > Thanks.
> > 
> > I send this question because in others computers with Fedora 8
> > installed, when I login as root with su, ifconfig is available, but in
> > my computer no. I'll try with su-, but my question is why  it works in
> > other computers and not in mine with su.
> > 
> It should not work on any computer. As was explained in the previous
> post su makes you root with the users environment that does not
> have /sbin or /usr/sbin in its path.

Maybe not by default, but I usually modify /etc/bashrc to include /sbin
and /usr/sbin in the PATH for root. /etc/profile actually does this
already but of ocurse that's only for login shells. I don't really see
the point of not doing it for "normal" su usage.

poc




More information about the fedora-list mailing list