Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174278 - net-misc/iputils, net-analyzer/{traceroute,tcptraceroute} - move traceroute/tracepath stuff to /usr/bin
Summary: net-misc/iputils, net-analyzer/{traceroute,tcptraceroute} - move traceroute/t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-12 13:37 UTC by Jeff Walter (RETIRED)
Modified: 2007-09-05 11:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Walter (RETIRED) gentoo-dev 2007-04-12 13:37:25 UTC
It seems rather pointless to put traceroute in a place only root can access it without referencing it directly, and making it setuid.  If root is the only person intended to run it, it should not be setuid.  However, traceroute is a valuable network tool that should be available to all users by default (without changing PATH).

It would probably be best to just put the binary in /usr/bin.

Reproducible: Always

Steps to Reproduce:
1. su -
2. emerge traceroute
3. exit
4. traceroute

Actual Results:  
illogical@cogburn ~ $ su -
Password: 
cogburn ~ # emerge traceroute
<snip!>
>>> Merging net-analyzer/traceroute-1.4_p12-r5 to /
 * >>> SetUID: [chmod go-r] /var/tmp/portage/net-analyzer/traceroute-1.4_p12-r5/image//usr/sbin/traceroute  ...                                                                                                                       [ ok ]
--- /usr/
--- /usr/sbin/
>>> /usr/sbin/traceroute
<snip!>
cogburn ~ # exit
logout
illogical@cogburn ~ $ traceroute
-bash: traceroute: command not found

Expected Results:  
illogical@cogburn ~ $ traceroute
Version 1.4a12
Usage: traceroute [-dFInrvx] [-g gateway] [-i iface] [-f first_ttl]
        [-m max_ttl] [ -p port] [-q nqueries] [-s src_addr] [-t tos]
        [-w waittime] [-z pausemsecs] host [packetlen]
illogical@cogburn ~ $
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-12 20:53:14 UTC
Eh? Only root can access /usr/sbin? Since when? Try to run this w/o suid bit to understand why it's suid.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-04-12 22:50:43 UTC
If you want this moved, move them all...
Comment 3 SpanKY gentoo-dev 2007-09-04 17:15:40 UTC
traceroute-2.0.8 now lives in /usr/bin/
Comment 4 Jeff Walter (RETIRED) gentoo-dev 2007-09-05 11:29:32 UTC
Thank you sir.