This is a discussion on Cannot Use "ifconfig" nor "iwconfig" effectively within the Linux Networking forums, part of the Linux Forums category; Hello, I am having difficulty in bringing up the commands of "ifconfig" and "iwconfig" up through ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. Jeff |
|
|||
|
In comp.os.linux.networking Jeffrey D. Yuille <jeffy5@optonline.net>:
> 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. Show us the output of the following commands: ls -l /sbin/ifconfig rpm -V net-tools -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 115: your keyboard's space bar is generating spurious keycodes. |
|
|||
|
"Jeffrey D. Yuille" <jeffy5@optonline.net> 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. > >Jeff Your PATH for root isn't set to include whatever directory those commands happen to be in. Look in /sbin, /usr/sbin, and also /usr/local/sbin. -- Floyd L. Davidson <http://web.newsguy.com/floyd_davidson> Ukpeagvik (Barrow, Alaska) floyd@barrow.com |
|
|||
|
On Sat, 15 Jan 2005, Jeffrey D. Yuille <jeffy5@optonline.net> 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. |
|
|||
|
efflandt@xnet.com (David Efflandt) writes:
>On Sat, 15 Jan 2005, Jeffrey D. Yuille <jeffy5@optonline.net> 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 Yes. Or run /sbin/ifconfig /sbin/iwconfig |
|
|||
|
Jeffrey D. Yuille 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. > > > Jeff the command may not be in you path. Try using it in the following way /sbin/ifconfig /sbin/iwconfig |
|
|||
|
David Efflandt wrote:
> On Sat, 15 Jan 2005, Jeffrey D. Yuille <jeffy5@optonline.net> 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 jkerouac@bgsec.com 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" |