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