Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 382449

Summary: net-analyzer/mtr's binary should be executable by non-root users.
Product: Gentoo Linux Reporter: Michael Mol <mikemol>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Mol 2011-09-10 00:56:57 UTC
mtr is a very, very nice traceroute tool. There should be no reason to require root access to run it.

In gentoo, mtr is located at /usr/sbin/mtr:

-rwx--x--- 1 root root 89000 Aug 18 17:45 /usr/sbin/mtr

This is in sbin, which isn't in normal user's path by default, and it's 0711, which means it can't be executed by normal users when it _is_ in path.



Reproducible: Always

Steps to Reproduce:
1. Log in as a normal user
2. mtr localhost
3. /usr/sbin/mtr localhost
Actual Results:  
step 2:
bash: mtr: command not found 

step 3:
bash: /usr/sbin/mtr: Permission denied


Expected Results:  
mtr should launch at step 3, if not step 2.

On my ubuntu and debian boxes both, mtr is located at:

(Ubuntu 11.04)
-rwsr-xr-x 1 root root 52048 2010-10-15 11:36 /usr/bin/mtr

(Debian 5)
-rwsr-xr-x 1 root root 53224 2008-04-17 03:53 /usr/bin/mtr

(Debian 6)
-rwsr-xr-x 1 root root 57512 Sep 22  2008 /usr/bin/mtr
Comment 1 Mike Gilbert gentoo-dev 2011-09-10 01:04:22 UTC
Actually, those permissions are 0710, not 0711.

I'm guessing that you have the suid use flag disabled. Try enabling that to allow normal users to run it.
Comment 2 Michael Mol 2011-09-10 01:08:53 UTC
Ah, yup. I misread the permissions. And it looks like the suid USE flag is not enabled.

In the middle of emerging chromium right now, and libreoffice and gimp follow in this update, but I'll try flipping the USE flag once those are done.
Comment 3 Michael Mol 2011-09-10 12:31:03 UTC
Enabling the suid flag set privs to 0711, and it works.