Download location (HTTP): Download location (FTP): ftp://ftp.ee.lbl.gov/traceroute.tar.gz Version used: 1.4a12 Package size: 35 KB Estimated Disk space required: 75 KB |
The traceroute package contains the traceroute program, which is used to display the network route that packets take to reach a specified host. This is a standard network troubleshooting tool. If you find yourself unable to connect to another system, traceroute can help pinpoint the problem.
Install traceroute by running the following commands:
cp Makefile.in Makefile.in.bak && sed 's/-o bin/-o root/' Makefile.in.bak > Makefile.in && ./configure --prefix=/usr && make && make install && make install-man |
sed 's/-o bin/-o root/'... |
make install : Installs traceroute setuid root in the /usr/sbin directory. This makes it possible for all users to execute traceroute. For absolute security, turn off the setuid bit in traceroute's file permissions with the command:
chmod 0755 /usr/sbin/traceroute |
The risk is that if a security problem such as a buffer overflow were ever found in the traceroute code, a regular user on your system could gain root access if the program is setuid root. Removing the setuid permission of course also makes it impossible for users other than root to utilize traceroute, so decide what's right for your individual situation.
Now, to be completely FHS compliant, as is our aim, if you do leave the traceroute binary setuid root, then you should move traceroute to /usr/bin with the following command:
mv /usr/sbin/traceroute /usr/bin |
This ensures that the binary is in the path for non-root users.
The traceroute package contains traceroute.
Traceroute does basically what it says: it traces the route your packets take from the host you are working on to another host on a network, showing all the intermediate steps (routers) along the way.