1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY traceroute-download-http "http://gd.tuwien.ac.at/platform/sun/packages/solaris/freeware/SOURCES/traceroute-&traceroute-version;.tar.gz">
|
---|
8 | <!ENTITY traceroute-download-ftp "ftp://ftp.ee.lbl.gov/traceroute-&traceroute-version;.tar.gz">
|
---|
9 | <!ENTITY traceroute-size "73 KB">
|
---|
10 | <!ENTITY traceroute-buildsize "464 KB">
|
---|
11 | <!ENTITY traceroute-time "0.02 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="traceroute" xreflabel="Traceroute-&traceroute-version;">
|
---|
15 | <?dbhtml filename="traceroute.html"?>
|
---|
16 | <title>Traceroute-&traceroute-version;</title>
|
---|
17 |
|
---|
18 | <sect2>
|
---|
19 | <title>Introduction to <application>Traceroute</application></title>
|
---|
20 |
|
---|
21 | <para>The <application>Traceroute</application> package contains a program
|
---|
22 | which is used to display the network route that packets take to reach a
|
---|
23 | specified host. This is a standard network troubleshooting tool. If you find
|
---|
24 | yourself unable to connect to another system, traceroute can help pinpoint
|
---|
25 | the problem.</para>
|
---|
26 |
|
---|
27 | <sect3><title>Package information</title>
|
---|
28 | <itemizedlist spacing='compact'>
|
---|
29 | <listitem><para>Download (HTTP): <ulink
|
---|
30 | url="&traceroute-download-http;"/></para></listitem>
|
---|
31 | <listitem><para>Download (FTP): <ulink
|
---|
32 | url="&traceroute-download-ftp;"/></para></listitem>
|
---|
33 | <listitem><para>Download size: &traceroute-size;</para></listitem>
|
---|
34 | <listitem><para>Estimated Disk space required:
|
---|
35 | &traceroute-buildsize;</para></listitem>
|
---|
36 | <listitem><para>Estimated build time:
|
---|
37 | &traceroute-time;</para></listitem></itemizedlist>
|
---|
38 | </sect3>
|
---|
39 |
|
---|
40 | </sect2>
|
---|
41 |
|
---|
42 | <sect2>
|
---|
43 | <title>Installation of <application>Traceroute</application></title>
|
---|
44 |
|
---|
45 | <para>Install <application>Traceroute</application> by running the following
|
---|
46 | commands:</para>
|
---|
47 |
|
---|
48 | <screen><userinput><command>mv Makefile.in Makefile.in.bak &&
|
---|
49 | sed 's/-o bin/-o root/' Makefile.in.bak > Makefile.in &&
|
---|
50 | ./configure --prefix=/usr &&
|
---|
51 | make &&
|
---|
52 | make install &&
|
---|
53 | make install-man</command></userinput></screen>
|
---|
54 |
|
---|
55 | </sect2>
|
---|
56 |
|
---|
57 | <sect2>
|
---|
58 | <title>Command explanations</title>
|
---|
59 |
|
---|
60 | <para><screen><command>sed 's/-o bin/-o root/'...</command></screen>
|
---|
61 | Adjusts the <filename>Makefile</filename> so that the program is installed
|
---|
62 | with user root instead of user bin (which doesn't exist on a default
|
---|
63 | <acronym>LFS</acronym> system).</para>
|
---|
64 |
|
---|
65 | <para><command>make install</command>: Installs <command>traceroute</command>
|
---|
66 | with <acronym>SUID</acronym> set to root in the <filename>/usr/sbin</filename> directory. This makes it
|
---|
67 | possible for all users to execute <command>traceroute</command>. For absolute
|
---|
68 | security, turn off the <acronym>SUID</acronym> bit in <command>traceroute</command>'s file
|
---|
69 | permissions with the command:</para>
|
---|
70 | <screen><command>chmod 0755 /usr/sbin/traceroute</command></screen>
|
---|
71 |
|
---|
72 | <para>The risk is that if a security problem such as a buffer overflow was
|
---|
73 | ever found in the <application>Traceroute</application> code, a regular user
|
---|
74 | on your system could gain root access if the program is
|
---|
75 | <acronym>SUID</acronym> root. Of course, removing
|
---|
76 | the <acronym>SUID</acronym> permission also makes it impossible for users other than
|
---|
77 | root to utilize <command>traceroute</command>, so decide what's right for your
|
---|
78 | individual situation.</para>
|
---|
79 |
|
---|
80 | <para>Our aim is to be completely <acronym>FHS</acronym> compliant, so if
|
---|
81 | you do leave the <command>traceroute</command> binary
|
---|
82 | <acronym>SUID</acronym> root, then you
|
---|
83 | should move <filename>traceroute</filename> to <filename>/usr/bin</filename>
|
---|
84 | with the following command:</para>
|
---|
85 | <screen><command>mv /usr/sbin/traceroute /usr/bin</command></screen>
|
---|
86 |
|
---|
87 | <para>This ensures that the binary is in the path for non-root users.</para>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2>
|
---|
92 | <title>Contents</title>
|
---|
93 |
|
---|
94 | <para>The <application>Traceroute</application> package contains <userinput>traceroute</userinput>.</para>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2><title>Description</title>
|
---|
99 |
|
---|
100 | <sect3><title>traceroute</title>
|
---|
101 | <para><command>traceroute</command> does basically what it says: it traces the
|
---|
102 | route your packets take from the host you are working on to another host on a
|
---|
103 | network, showing all the intermediate steps (gateways) along the way.</para>
|
---|
104 | </sect3>
|
---|
105 |
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | </sect1>
|
---|
109 |
|
---|