Networking Forums

Networking Forums > Computer Networking > Linux Networking > Cannot Use "ifconfig" nor "iwconfig" effectively

Reply
Thread Tools Display Modes

Cannot Use "ifconfig" nor "iwconfig" effectively

 
 
Jeffrey D. Yuille
Guest
Posts: n/a

 
      01-15-2005, 01:26 PM
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
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      01-15-2005, 02:41 PM
In comp.os.linux.networking Jeffrey D. Yuille <(E-Mail Removed)>:
> 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 (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 115: your keyboard's space bar is generating
spurious keycodes.
 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      01-15-2005, 05:05 PM
"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.
>
>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) (E-Mail Removed)
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      01-15-2005, 05:09 PM
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.
 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      01-15-2005, 05:56 PM
(E-Mail Removed) (David Efflandt) writes:

>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


Yes. Or run
/sbin/ifconfig
/sbin/iwconfig

 
Reply With Quote
 
David
Guest
Posts: n/a

 
      01-15-2005, 06:18 PM
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
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      01-16-2005, 05:22 PM
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"
 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fwd: SPEWS DOLTS "SneakyP", "Kevin!:?)", "WindsorFox" SPAM braodbandnewsgroup] !:?) Broadband 0 11-30-2005 01:04 AM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
"hotspot" or "hot spot", "wireless" or "wi-fi" or "wi fi" ? Nic O`Neill Wireless Internet 3 02-12-2004 07:42 AM



1 2 3 4 5 6 7 8 9 10 11