1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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-md5sum "964d599ef696efccdeebe7721cd4828d">
|
---|
10 | <!ENTITY traceroute-size "74 KB">
|
---|
11 | <!ENTITY traceroute-buildsize "540 KB">
|
---|
12 | <!ENTITY traceroute-time "0.01 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="traceroute" xreflabel="Traceroute-&traceroute-version;">
|
---|
16 | <?dbhtml filename="traceroute.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | <keywordset>
|
---|
22 | <keyword role="package">traceroute-&traceroute-version;.tar</keyword>
|
---|
23 | <keyword role="ftptdir">traceroute</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>Traceroute-&traceroute-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="traceroute">
|
---|
30 | <primary sortas="a-Traceroute">Traceroute</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to Traceroute</title>
|
---|
35 |
|
---|
36 | <para>The <application>Traceroute</application> package contains a program
|
---|
37 | which is used to display the network route that packets take to reach a
|
---|
38 | specified host. This is a standard network troubleshooting tool. If you find
|
---|
39 | yourself unable to connect to another system, traceroute can help pinpoint
|
---|
40 | the problem.</para>
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&traceroute-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&traceroute-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum: &traceroute-md5sum;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download size: &traceroute-size;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated disk space required: &traceroute-buildsize;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated build time: &traceroute-time;</para>
|
---|
61 | </listitem>
|
---|
62 | </itemizedlist>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2 role="installation">
|
---|
67 | <title>Installation of Traceroute</title>
|
---|
68 |
|
---|
69 | <para>Install <application>Traceroute</application> by running the following
|
---|
70 | commands:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>sed -i -e 's/-o bin/-o root/' Makefile.in &&
|
---|
73 | ./configure --prefix=/usr &&
|
---|
74 | make</userinput></screen>
|
---|
75 |
|
---|
76 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
77 |
|
---|
78 | <screen role='root'><userinput>make install &&
|
---|
79 | make install-man</userinput></screen>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="commands">
|
---|
84 | <title>Command Explanations</title>
|
---|
85 |
|
---|
86 | <para><command>sed 's/-o bin/-o root/' Makefile.in</command>:
|
---|
87 | Adjusts the <filename>Makefile</filename> so that the program is installed
|
---|
88 | with user <systemitem class='username'>root</systemitem> owning the files
|
---|
89 | instead of user <systemitem class='username'>bin</systemitem>
|
---|
90 | (which doesn't exist on a default LFS system).</para>
|
---|
91 |
|
---|
92 | <para><command>make install</command>: Installs <command>traceroute</command>
|
---|
93 | with SUID set to <systemitem class="username">root</systemitem> in the
|
---|
94 | <filename class='directory'>/usr/sbin</filename> directory. This makes it
|
---|
95 | possible for all users to execute <command>traceroute</command>. For absolute
|
---|
96 | security, turn off the SUID bit in <command>traceroute</command>'s file permissions
|
---|
97 | with the command:</para>
|
---|
98 |
|
---|
99 | <screen role='root'><userinput>chmod -v 0755 /usr/sbin/traceroute</userinput></screen>
|
---|
100 |
|
---|
101 | <para>The risk is that if a security problem such as a buffer overflow was
|
---|
102 | ever found in the <application>Traceroute</application> code, a regular user
|
---|
103 | on your system could gain <systemitem class="username">root</systemitem>
|
---|
104 | access if the program is SUID <systemitem class="username">root</systemitem>.
|
---|
105 | Of course, removing the SUID permission also makes it impossible for users other
|
---|
106 | than <systemitem class="username">root</systemitem> to utilize
|
---|
107 | <command>traceroute</command>, so decide what's right for
|
---|
108 | your individual situation.</para>
|
---|
109 |
|
---|
110 | <para>The goal of BLFS is to be completely FHS compliant, so if you do leave the
|
---|
111 | <command>traceroute</command> binary SUID <systemitem
|
---|
112 | class="username">root</systemitem>, then you should move
|
---|
113 | <filename>traceroute</filename> to <filename class='directory'>/usr/bin</filename>
|
---|
114 | with the following command:</para>
|
---|
115 |
|
---|
116 | <screen role='root'><userinput>mv -v /usr/sbin/traceroute /usr/bin</userinput></screen>
|
---|
117 |
|
---|
118 | <para>This ensures that the binary is in the path for non-root users.</para>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="content">
|
---|
123 | <title>Contents</title>
|
---|
124 |
|
---|
125 | <segmentedlist>
|
---|
126 | <segtitle>Installed Program</segtitle>
|
---|
127 | <segtitle>Installed Libraries</segtitle>
|
---|
128 | <segtitle>Installed Directories</segtitle>
|
---|
129 |
|
---|
130 | <seglistitem>
|
---|
131 | <seg>traceroute</seg>
|
---|
132 | <seg>None</seg>
|
---|
133 | <seg>None</seg>
|
---|
134 | </seglistitem>
|
---|
135 | </segmentedlist>
|
---|
136 |
|
---|
137 | <variablelist>
|
---|
138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
139 | <?dbfo list-presentation="list"?>
|
---|
140 | <?dbhtml list-presentation="table"?>
|
---|
141 |
|
---|
142 | <varlistentry id="traceroute-prog">
|
---|
143 | <term><command>traceroute</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>does basically what it says: it traces the route your packets
|
---|
146 | take from the host you are working on to another host on a network, showing
|
---|
147 | all the intermediate hops (gateways) along the way.</para>
|
---|
148 | <indexterm zone="traceroute traceroute-prog">
|
---|
149 | <primary sortas="b-traceroute">traceroute</primary>
|
---|
150 | </indexterm>
|
---|
151 | </listitem>
|
---|
152 | </varlistentry>
|
---|
153 |
|
---|
154 | </variablelist>
|
---|
155 |
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | </sect1>
|
---|
159 |
|
---|