David Efflandt wrote:
> On Sat, 15 Jan 2005, Jeffrey D. Yuille <(E-Mail Removed)> wrote:
>
>>Hello,
>>
>> I am having difficulty in bringing up the commands of "ifconfig"
>>and "iwconfig" up through a terminal. I am running Linux Fedora Core 3
>>and for some reason, when I log in as the root user, I receive the error
>>message "command not found". Any reason for this? Any help would be
>>appreciated. Thanks in advance.
>
>
> Sounds like the PATH in your shell may not contain the paths to those
> commands. When you are root, check the output of: echo $PATH
>
> If you su to root, make sure you use the hyphen 'su -', otherwise you
> would still have the env of the user you were, instead of env of root.
> Running with the wrong env can cause other problems.
>
> As a normal user, you typically need to use full paths to access certain
> commands like ifconfig, iwconfig, route, traceroute, etc. if not locked
> down. But normal users can only read settings, not change them.
But if he's logging as root directly then he should have no problems
as if he was using su. Maybe the profile files in /etc are not well
configured.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"