Bluehost.com Web Hosting $6.95

Cannot Use "ifconfig" nor "iwconfig" effectively

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-15-2005
Jeffrey D. Yuille
 
Posts: n/a
Default Cannot Use "ifconfig" nor "iwconfig" effectively

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
Reply With Quote
  #2 (permalink)  
Old 01-15-2005
Michael Heiming
 
Posts: n/a
Default Re: Cannot Use "ifconfig" nor "iwconfig" effectively

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.
Reply With Quote
  #3 (permalink)  
Old 01-15-2005
Floyd L. Davidson
 
Posts: n/a
Default Re: Cannot Use "ifconfig" nor "iwconfig" effectively

"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
Reply With Quote
  #4 (permalink)  
Old 01-15-2005
David Efflandt
 
Posts: n/a
Default Re: Cannot Use "ifconfig" nor "iwconfig" effectively

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.
Reply With Quote
  #5 (permalink)  
Old 01-15-2005
Bill Unruh
 
Posts: n/a
Default Re: Cannot Use "ifconfig" nor "iwconfig" effectively

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

Reply With Quote
  #6 (permalink)  
Old 01-15-2005
David
 
Posts: n/a
Default Re: Cannot Use "ifconfig" nor "iwconfig" effectively

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
Reply With Quote
  #7 (permalink)  
Old 01-16-2005
Jose Maria Lopez Hernandez
 
Posts: n/a
Default Re: Cannot Use "ifconfig" nor "iwconfig" effectively

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"
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0