Bug 795788

Summary: tracepath resides in /usr/sbin instead of /usr/bin
Product: [openSUSE] openSUSE Tumbleweed Reporter: Anton Samsonov <avsco>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: suse-beta
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 42.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Anton Samsonov 2012-12-22 08:04:01 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0

In the 'man tracepath' one can read:

> DESCRIPTION
>       ... It is similar to traceroute, only does not require superuser privileges...
>       ...
> SECURITY
>       ... tracepath is not a privileged program, unlike traceroute, ping
>       and other beasts of this kind. tracepath may be executed by everyone
>       who has some access to  network, enough to send UDP datagrams
>       to investigated destination using given port.


But when run by unprivileged user, an error message appears:

> $ tracepath
> Absolute path to 'tracepath' is '/usr/sbin/tracepath', so running it may require superuser privileges (eg. root).


If the full path is specified, then it seems to function normally:

> $ /usr/sbin/tracepath www.opensuse.org
> 1:  mygate.mydom.tld                                      0.084ms pmtu 1500
> ...


If the binary is copied or moved to /usr/bin, then the program runs without any complaints when called by name without the full path. So I suppose it's just a placement error.

Reproducible: Always
Comment 1 Marcus Schaefer 2016-03-09 10:05:33 UTC
bug squash: this defect seems orphaned

/sbin/tracepath is the current location
Comment 2 Christian Boltz 2016-03-09 11:48:18 UTC
(In reply to Marcus Schaefer from comment #1)
> bug squash: this defect seems orphaned
> 
> /sbin/tracepath is the current location

That's exactly what the bug is about - tracepath is usable by users (without root permissions), so it should move to /bin/ or /usr/bin/ so that users have it in $PATH.
Comment 3 Christian Boltz 2016-03-09 12:20:21 UTC
(moving from 12.2 to tumbleweed, since this issue still exists there)
Comment 4 Marcus Schaefer 2016-03-11 09:18:18 UTC
all right thanks for the update, I'm not maintaing iputils anymore and won't have time to address this. Thus sending to the screening
Comment 5 Anton Samsonov 2018-02-23 18:05:13 UTC
Still there in 42.3, but looks like having been fixed in the upcoming 15.0.