LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't install iftop on Red Hat 5.5 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-install-iftop-on-red-hat-5-5-a-861372/)

danndp 02-08-2011 05:20 AM

can't install iftop on Red Hat 5.5
 
Hello friends,

I can't execute iftop on Red Hat, take a look:

Quote:

root@OpenSIPS:/usr/src/redhat/RPMS/i386# rpm -ivh iftop-0.17-6.i386.rpm
Preparing... ########################################### [100%]
package iftop-0.17-6.i386 is already installed

root@OpenSIPS:/usr/src/redhat/RPMS/i386# yum list iftop
Loaded plugins: rhnplugin, security
Installed Packages
iftop.i386 0.17-6 installed
Seems to be installed, but i can't execute it..../sbin/iftop doesn't exist, the executable doesn't exist...what should i check?

Thanks!

prodev05 02-08-2011 05:39 AM

uninstall and install it again.
.
.
.
.
.
.Again if its not showing, take your rpm DB a backup and re-build it.

danndp 02-08-2011 05:42 AM

got it...i change to root with:

Quote:

su -
and now i can execute iftop....but i want to execute iftop without changing to root every time...i already have my user in /etc/sudoers, i would like to execute iftop as non root user, how can i do that?

I've used iftop in machines as non root user, and i always could execute it, but now i'm configuring the machine and i can't solve the problem...any help please?

Thanks!

prodev05 02-08-2011 05:43 AM

Bravo

danndp 02-08-2011 05:51 AM

but i want to execute iftop as non root, just with my user...i'm using ngrep and other applications without change to root...why do i have to execute iftop with root? can i use iftop without changing to root? i have my user in /etc/sudoers...what should i do?

geovg 02-08-2011 06:35 AM

copy the binary to /usr/bin/ and try

danndp 02-08-2011 07:13 AM

I've changed the PATH of my user in bash_profile to match the path of iftop, like this...but when i make sudo -s to change my user to become as super user (i have my user added into /etc/sudoers) and then i lost again the path...why is that?

geovg 02-08-2011 10:04 AM

try this,

su - user -c "iftop"


All times are GMT -5. The time now is 07:19 PM.