View previous topic :: View next topic |
Author |
Message |
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed Jun 04, 2008 9:39 am Post subject: mtr command not found |
|
|
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 |
|
|
xtz Apprentice
Joined: 29 Oct 2007 Posts: 181 Location: Singapore
|
Posted: Wed Jun 04, 2008 10:47 am Post subject: |
|
|
What doesshow, 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 |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Wed Jun 04, 2008 10:47 am Post subject: |
|
|
Try as a simple user ...
HTH
swimmer |
|
Back to top |
|
|
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed Jun 04, 2008 11:26 am Post subject: |
|
|
xtz wrote: | What doesshow, 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 |
|
|
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed Jun 04, 2008 11:33 am Post subject: |
|
|
swimmer wrote: | Try as a simple user ...
HTH
swimmer |
I tried your suggestion. It doesn't help. |
|
Back to top |
|
|
xtz Apprentice
Joined: 29 Oct 2007 Posts: 181 Location: Singapore
|
Posted: Wed Jun 04, 2008 12:21 pm Post subject: |
|
|
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 |
|
|
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed Jun 04, 2008 4:50 pm Post subject: |
|
|
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 |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Wed Jun 04, 2008 6:09 pm Post subject: |
|
|
There seems to be a bit of discussion about this in bug 223017. _________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed Jun 04, 2008 9:58 pm Post subject: |
|
|
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 |
|
|
|