Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mtr command not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed Jun 04, 2008 9:39 am    Post subject: mtr command not found Reply with quote

I upgraded yesterday to latest mtr version with the command
Code:
emerge --ask --oneshot --verbose ">=net-analyzer/mtr-0.73-r1"
and tried also to mtr-073-r2.

In both cases if I try to launch it, I get
Code:
mtr command not found


What's going on? Someone has this error also?

Checking now, I can use mtr as root. But not as simple user, as I always did.
Back to top
View user's profile Send private message
xtz
Apprentice
Apprentice


Joined: 29 Oct 2007
Posts: 181
Location: Singapore

PostPosted: Wed Jun 04, 2008 10:47 am    Post subject: Reply with quote

What does
Code:
which mtr
show, when ran as root :?: If it is in /sbin or /usr/sbin, try running it with full path.

Last edited by xtz on Wed Jun 04, 2008 10:47 am; edited 1 time in total
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Wed Jun 04, 2008 10:47 am    Post subject: Reply with quote

Try
Code:
hash -r
as a simple user ...

HTH
swimmer
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed Jun 04, 2008 11:26 am    Post subject: Reply with quote

xtz wrote:
What does
Code:
which mtr
show, when ran as root :?: If it is in /sbin or /usr/sbin, try running it with full path.

Code:

carin ~ # which mtr
/usr/sbin/mtr
carin ~ #   


If I run it as root, it's enough to run mtr. If I run as user
Code:
/usr/sbin/mtr
bash: /usr/sbin/mtr: Permission denied
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed Jun 04, 2008 11:33 am    Post subject: Reply with quote

swimmer wrote:
Try
Code:
hash -r
as a simple user ...

HTH
swimmer


I tried your suggestion. It doesn't help. 8O
Back to top
View user's profile Send private message
xtz
Apprentice
Apprentice


Joined: 29 Oct 2007
Posts: 181
Location: Singapore

PostPosted: Wed Jun 04, 2008 12:21 pm    Post subject: Reply with quote

U can change the permissions of mtr to be accesible from a normal user. I guess it's now with permissions -rws--x---. You can do
Code:
chmod +rx /usr/sbin/mtr
Now u will be able to run it with /usr/sbin/mtr. If you want to run it just with mtr, u can do
Code:
ln -s /usr/sbin/mtr /usr/bin/mtr
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed Jun 04, 2008 4:50 pm    Post subject: Reply with quote

xtz wrote:
U can change the permissions of mtr to be accesible from a normal user. I guess it's now with permissions -rws--x---. You can do
Code:
chmod +rx /usr/sbin/mtr
Now u will be able to run it with /usr/sbin/mtr. If you want to run it just with mtr, u can do
Code:
ln -s /usr/sbin/mtr /usr/bin/mtr


I am not fan of ln -s. It should work without it.

I will check later about the permissions. Can you tell me how it appears on your pc?

It worked until upgrade without problems. But I don't know if it was in sbin or in bin.

I think they have a bug.
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Wed Jun 04, 2008 6:09 pm    Post subject: Reply with quote

There seems to be a bit of discussion about this in bug 223017.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed Jun 04, 2008 9:58 pm    Post subject: Reply with quote

tarpman wrote:
There seems to be a bit of discussion about this in bug 223017.


Thanks. I checked it. They claim it should be used as root.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum