LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2011, 05:20 AM   #1
danndp
Member
 
Registered: Nov 2010
Posts: 51

Rep: Reputation: 2
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!
 
Old 02-08-2011, 05:39 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
uninstall and install it again.
.
.
.
.
.
.Again if its not showing, take your rpm DB a backup and re-build it.
 
Old 02-08-2011, 05:42 AM   #3
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
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!
 
Old 02-08-2011, 05:43 AM   #4
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Bravo
 
Old 02-08-2011, 05:51 AM   #5
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
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?
 
Old 02-08-2011, 06:35 AM   #6
geovg
Member
 
Registered: Mar 2010
Posts: 40

Rep: Reputation: 1
copy the binary to /usr/bin/ and try
 
Old 02-08-2011, 07:13 AM   #7
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
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?
 
Old 02-08-2011, 10:04 AM   #8
geovg
Member
 
Registered: Mar 2010
Posts: 40

Rep: Reputation: 1
try this,

su - user -c "iftop"
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
During Red Hat Linux 9 install: error "No devices found to install Red Hat Linux" rbradtx Linux - Newbie 11 06-25-2010 04:55 PM
Red Hat Linux 9 install: error "No devices found to install ... gunneszz Red Hat 1 03-10-2008 04:52 AM
LXer: Red Hat Summit 2007, Day 2: Red Hat Exchange and interesting presentations LXer Syndicated Linux News 0 05-11-2007 07:32 PM
Install RED HAT 9 = cant find red hat CD voodooutt Red Hat 7 11-18-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration