All command need privilage

Posted by Am1rr3zA on Ask Ubuntu See other posts from Ask Ubuntu or by Am1rr3zA
Published on 2011-02-23T13:41:54Z Indexed on 2011/02/23 15:33 UTC
Read the original article Hit count: 204

Filed under:
|

I try to install Hping3 in my ubuntu 8.04 but after installation when I want to Hping3 I got this error:

Command 'hping3' is available in '/usr/sbin/hping3' The command could not be located because '/usr/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative priviledges associated with your user account.

also when I try to run ifconfig I get this:

Command 'ifconfig' is available in '/sbin/ifconfig' The command could not be located because '/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative priviledges associated with your user account.

first it needs to run sudo su and then run the command. is it normal? or I miss something?

when I run echo $PATH I get:

/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/amirreza/simulator/ns-allinone-2.33/bin:/home/amirreza/simulator/ns-allinone-2.33/tcl8.4.18/unix:/home/amirreza/simulator/ns-allinone-2.33/tk8.4.18/unix:/home/amirreza/simulator/ns-allinone-2.33/ns-2.33/:/home/amirreza/simulator/ns-allinone-2.33/nam-1.14/

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about terminal