f



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
0
jeffy5 (11)
1/15/2005 2:26:46 PM
comp.os.linux.networking 15677 articles. 0 followers. Post Follow

6 Replies
636 Views

Similar Articles

[PageSpeed] 45

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.
0
USENET22 (5551)
1/15/2005 3:41:26 PM
"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
0
floyd (1028)
1/15/2005 6:05:17 PM
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.
0
efflandt (885)
1/15/2005 6:09:03 PM
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

0
unruh (1025)
1/15/2005 6:56:40 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
0
dwmoar (127)
1/15/2005 7:18:00 PM
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"
0
jkerouac (1287)
1/16/2005 6:22:05 PM
Reply:

Similar Artilces:

why "::", not "."
Why does the method of modules use a dot, and the constants a double colon? e.g. Math::PI and Math.cos -- Posted via http://www.ruby-forum.com/. On Oct 26, 2010, at 01:48 , Oleg Igor wrote: > Why does the method of modules use a dot, and the constants a double > colon? > e.g. > Math::PI and Math.cos For the same reason why inner-classes/modules use double colon, because = they're constants and that's how you look up via constant namespace. Math::PI and ActiveRecord::Base are the same type of lookup... it is = just that Base is a module and PI is a float....

"/a" is not "/a" ?
Hi everybody, while testing a module today I stumbled on something that I can work around but I don't quite understand. >>> a = "a" >>> b = "a" >>> a == b True >>> a is b True >>> c = "/a" >>> d = "/a" >>> c == d True # all good so far >>> c is d False # eeeeek! Why c and d point to two different objects with an identical string content rather than the same object? Manu Emanuele D'Arrigo wrote: >>>> c = "/a" >>>&...

about "++" and "--"
why this program snippet display "8,7,7,8,-7,-8" the program is: main() { int i=8; printf("%d\n%d\n%d\n%d\n%d\n%d\n",++i,--i,i++,i--,-i++,-i--); } > why this program snippet display "8,7,7,8,-7,-8" Ask your compiler-vendor because this result is IMHO implementation-defined. Check this out: http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.15 http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.16 Regards, Irina Marudina fxc123@gmail.com wrote: > why this program snippet display "8,7,7,8,-7,-8&q...

"out" and "in out"
Hi i found the following explaination: In Ada, "in" parameters are similar to C++ const parameters. They are effectively read-only within the scope of the called subprogram. Ada "in out" parameters have a reliable initial value (that passed in from the calling subprogram) and may be modified within the scope of the called procedure. Ada "out" parameters have no reliable initial value, but are expected to be assigned a value within the called procedure. What does "have no reliable initial value" mean when considering the "out" parameter? By c...

"In" "Out" and "Trash"
I just bought a new computer and I re-installed Eudora Light on my new computer. But when I open Eudora, the "In", "Out" and "Trash" links are not on the left side of the screen the way they were on my old computer. How can I get these links back on the left side of the screen? Thank you. On 25 Mar 2007 09:49:22 -0700, "abx" <abfunex@yahoo.com> wrote: >I just bought a new computer and I re-installed Eudora Light on my new >computer. But when I open Eudora, the "In", "Out" and "Trash" links >are ...

Gary Sokolich """"""
"""""""""" http://www.manta.com/c/mmlq5dm/w-gary-sokolich W Gary Sokolich 801 Kings Road Newport Beach, CA 92663-5715 (949) 650-5379 http://www.tbpe.state.tx.us/da/da022808.htm TEXAS BOARD OF PROFESSIONAL ENGINEERS February 28, 2008 Board Meeting Disciplinary Actions W. Gary Sokolich , Newport Beach, California �V File B-29812 - It was alleged that Dr. Sokolich unlawfully offered or attempted to practice engineering in Texas (...) Dr. Sokolich chose to end the proceedings by signing a Consent Order that was accepted by ...

Question about "sprintf" "@" "do for"
Hello, this works: A1=3D1 A2=3D2 A3=3D3 i=3D1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari i=3Di+1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari i=3Di+1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari do for [i=3D1:3]{ vari=3Dsprintf("A%.f",i) print vari } But I want to have "print vari,"=3D",@vari" in the loop. But it dosen't=20 work. Why can't I use "print vari,"=3D",@vari" in the loop? Is there a=20 solution for? J=C3=B6rg Jörg ...

puts "\\".gsub("\\", "\\\\")
Hello, I have a mini-ruby quiz. Guess what this line of code writes to the console, then try it for yourself: puts "\\".gsub("\\", "\\\\") Why is that so? Martin From: martinus [mailto:martin.ankerl@gmail.com]=20 # Hello, I have a mini-ruby quiz. Guess what this line of code writes to # the console, then try it for yourself: # puts "\\".gsub("\\", "\\\\") puts "\\".gsub("\\", "\\\\") \ #=3D> nil # Why is that so? faq. escaping the escape in sub/gsub. search the archives. maybe you want somethin...

like using "=..", "functor", "arg".
Hello, I must resolve the following problem: To define "=.." in terms of "functor" and "arg" and defining "functor" and "arg" in terms of "=..". I have tried to define "=..": input T = f(a,b,c). output L = [f,a,b,c]. term(T,L):- term(T,0,L). term(T,1,T). term(T,N,[F,A|L]):- length([A|L],M), functor(T,F,M), N1 is N-1, N1<M, arg(N1,T,A), term(T,N1,L). Someone can help me to resolve the problem? thanks. H...

Use "range," not "for"?
Thanks to everyone who suggested ways to get a proc to recognize all variables in the global scope--here's why I wanted to know. (Maybe someone has done this better already--if so, don't hesitate to let me know!) I've found that a simple "foreach" loop fairly often won't do the jobs I want done, and I need to use "for"--ugh! Well, I recently read at least part of a book about Python. It didn't look like an improvement over Tcl for the most part, but it has at least a few good features, one of which is the "range" expression. I thought a "range" procedure in Tcl might be a good substitute for the clumsy "for." So, here's my first effort. Instead of writing this: for {set i 1} {$i<= 10} {incr i} {puts "$i. \"for\" is ugly!"} you can write this: range i 1 to 10 {puts "$i. \"range\" is beautiful!"} Or, if you have a list called "lum," instead of writing this: for {set i 0} {$i < [llength $lum]} {incr i} {puts [lindex $lum $i]} you can write this: range i 0 no [llength $lum] {puts [lindex $lum $i]} To go backward, skipping every other number, instead of this: for {set i 10} {$i >= 0} {incr i -2} {puts $i} you can write this: range i 10 to 0 -2 {puts $i} The usage is pretty obvious: "range var start cutoff end ?incr? body." In other words, (1) the word "range"; (2) a vari...

when should one use "and" and "or"
Hi All, just got hit w the ff > case > when x==1 or x==2 > print "yeoh!" > end SyntaxError: compile error (irb):17: syntax error, unexpected kOR, expecting kTHEN or ':' or '\n' or ';' when x==1 or x==2 ^ "or" and "and" both exhibit the behaviour in ruby1.8/1.9. workaround 1 put parens around the condition (not again) 2 replace or/and with ||/&& i believe there are other similar quirks when using "and/or".. has ruby relegated the use of "and/or"....? best regar...

Re: "out" and "in out"
"no reliable initial value" means, you cannot rely on the value, but it may have a value. This depends on the parameter passing mechanism, which is _not_ related to the parameter mode (contrary to what many people think). So the parameter mode is there (nearly) solely for the information of the reader. The parameter passing mechanism for all kinds of parameters is defined in the RM. There are parameters passed by copy (in and out), by reference; for some it is explicitly left undefined. In your case, the passing mechanism is by reference, so you get what you get. But don't rely...

why have both "." and "->" ?
I used to remember why c++ needed both ? Could somebody help me here ? For example class A{ f(); }; A* aa; You could do either "aa->f()" or "(*aa).f()". So why does C++ need both operators. Raj "raj" <rajkumar@hotmail.com> schreef in bericht news:d7fee6d0.0406230748.694b966b@posting.google.com... > I used to remember why c++ needed both ? > Could somebody help me here ? > > For example > > class A{ > f(); > }; > > A* aa; > > You could do either "aa->f()" or "(*aa).f()". So why does C++...

How to change "/" to "\"
Now, the output as below /a/b/c.txt b/c.txt x:/b/c.txt , Need to change x:\b\c.txt #!/bin/ksh # echo.ksh a=/a/b/c.txt echo $a echo ${a#/*/} y=`echo x:/${a#/*/} | tr -s '/' '\'` echo $y moon wrote: > Now, the output as below > > /a/b/c.txt > b/c.txt > x:/b/c.txt , Need to change x:\b\c.txt > > > #!/bin/ksh > # echo.ksh > a=/a/b/c.txt > echo $a > echo ${a#/*/} > y=`echo x:/${a#/*/} | tr -s '/' '\'` > echo $y > > One escape necessary: echo x:/${a#/*/} | tr -s '/' '\\' Two escapes necessar...

"A" is not equal "A"?
I was trying to convert String Array to String A through cycle and than compare the result with String B but eventhough results were the same it returned false. I'am working in BlueJ 3.1.0 Code is: public boolean Method () { String[] Example = {"a","b","c"}; String A = ""; String B = "abc" for (int i = 0; i<3 ; i++) { A = A + Example[i]; } if (A == B) { return true; } } never got true... I appreciate any suggestions how to solve this Den 08.04.2014 10:06, skrev 245dav@gmail.com:...

what does the "+" and the "-" mean?
I recently read what the "+" and the "-" signs mean for compact discs. Of course, a friend has just asked me and I now forget. I've searched all over the place with no results. Anyone know? TIA! .. -------------------------------------- Mike Richter, were you born with "Scam Artist" emblazoned on your face? -------------------------------------- roscoe james wrote: > > I recently read what the "+" and the "-" signs mean for compact discs. Of > course, a friend h...

"==" is NOT TRUE "==", WHY?
[CODE START] x=5; y=8; if (x + y + 1E-15 == 13) a = 3 else a = 8 end [CODE END] When x + y + 1E-15, the code above returns a = 8. When x + y + 1E-16, the code above returns a = 3. Why? Kindly advise. Thanks. "onemilimeter Chen" <onemm@example.com> wrote in message <g7adrj$5tr$1@fred.mathworks.com>... > [CODE START] > x=5; > y=8; > if (x + y + 1E-15 == 13) > a = 3 > else > a = 8 > end > [CODE END] > > When x + y + 1E-15, the code above returns a = 8. > When x + y + 1E-16, the code above returns a = 3. > > Why? ...

how to change "/" to "\"
iam new to shell scripting and i have plz can anyone help in changing the pattrern "/" to "\" using the sed command. olympie@gmail.com wrote: > iam new to shell scripting and i have plz can anyone help in changing > the pattrern "/" to "\" using the sed command. sed 's/\//\\/g' will replace all '/' with '\' srp -- http://saju.net.in Saju Pillai <saju.pillai@gmail.com> wrote: >> iam new to shell scripting and i have plz can anyone help in changing >> the pattrern "/" to "\" using ...

"Heroes" again, or "Linux in the Wild" or "Linux on TV", this time with screenshots
Allrighty, doubters and wintrolls. I've posted some screen shots from the KDE appearance on NBC's new series "Heroes" http://www.newtnotes.com/?itemid=189&catid=3 Linux in the wild. What more proof do you need? later... -- JDS | jeffrey@go.away.com | http://www.newtnotes.com DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/ JDS wrote: > Allrighty, doubters and wintrolls. I've posted some screen shots from the > KDE appearance on NBC's new series "Heroes" > > http://www.newtnotes.com/?itemid=189&catid=3 ...

Is there any """Anti Stringizing operator #"""
Hi everybody:D I've a string that contains the name of a class. Some members told that I can use """Stringizing Operator (#)""", but the problem is here, that I have the string, & I want something vice- versa. As we know with """Stringizing Operator (#)""", we can get the stirng name of a class or ... str <--- #ClassA But I want to instantiate a class that I have just it's name as a string. ClassA * clsA = new ??? <--- Str ??? How can I do it? I don't want to use """HardCoding"&qu...

"ClientConn", "ClientRate" and "Connect"
Hello. Is a ratecontrol and conncontrol features not work for networks described via connect in access ? For example: -----part of /etc/mail/access----- ClientConn:192.168.1 1 ClientRate:192.168.1 1 Connect:192.168.1 RELAY ----------------------------------- -- Regards, Sergey Sergey wrote: > Is a ratecontrol and conncontrol features not work for networks described via connect in access ? > For example: > ClientConn:192.168.1 1 > ClientRate:192.168.1 1 > Connect:192.168.1 RELAY See cf/README. Connect:cy...

"plot", "imshow" and "quiver"
Hi all. So recently I made the discovery that when use "imshow" command, the YDir parameter under Axis Properties is set to "reverse" by default. To me this seems counter intuitive. Why wouldn't YDir be "normal" by default? When set at "normal" it turns out that my image is actually flipped upside down. On the contrary, when use "quiver" command to plot a vector field, the YDir is set at "normal" by default. Even though this makes more sense to me, because "reversed" YDir is the correct way to display an image (as in "imshow"), the result of "quiver" is that the vector fields this time depict the objects as if they are upside down... So every time I use "quiver" I always add the following line to revert the objects back to its normal orientation... set(gca, 'YDir', 'reverse')... In addition, "plot" uses "normal" setting for YDir. The only issue I have is that I use these commands fairly frequently in my job and sometimes they can get a little bit confusing in terms of display. So I wonder why MATLAB hasn't standardized them so that the objects always get displayed the same way. It's just a comment I have. Thank you. "Clare " <flyingclare@gmail.com> wrote in message news:hefvdk$3md$1@fred.mathworks.com... > Hi all. So recently I made the discovery that when use "imshow" command, > the ...

["a", "b", "c", "d"] to "a, b, c, d"?
I want to process each element of an array, but the last element should be handled special. Here is an example: def p_ary(ary) str = "" ary.each do |elem| str << elem << ", " end str.chomp!(", ") str end so p_ary(["a", "f", "x", "test"]) produces "a, f, x, test". The code works, but isn't there an easier and more general way for this behaviour? martinus On Tue, 06 Apr 2004 04:23:22 -0700, Martin wrote: > I want to process each element of an array, but the last ele...

Using "fsolve": How to control iteration using "residuals" and "norm of step"??
Hello Everyone, I am using fsolve to solve a system of linear equations and it&#8217;s working fine. However, I have a coupe of issues: (i) Even when the solution (alpha) converges, I am getting the message to choose a new point. I am guessing that it has to do with &#8220;norm of step&#8221; as probably the code is trying a smaller step. I am using option like this: options = optimset('Jacobian','on', 'algorithm', 'Levenberg-Marquardt','Display','iter-detailed', 'MaxFunEvals', 10000, 'MaxIter', 10000,'TolX'...

Web resources about - Cannot Use "ifconfig" nor "iwconfig" effectively - comp.os.linux.networking

Resources last updated: 3/14/2016 11:53:44 AM