mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
Tagged traceroute.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3878 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
c7ac14c90f
commit
2f6a5b0e84
@ -13,126 +13,142 @@
|
||||
]>
|
||||
|
||||
<sect1 id="traceroute" xreflabel="Traceroute-&traceroute-version;">
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
<?dbhtml filename="traceroute.html"?>
|
||||
<title>Traceroute-&traceroute-version;</title>
|
||||
<indexterm zone="traceroute">
|
||||
<primary sortas="a-Traceroute">Traceroute</primary></indexterm>
|
||||
<?dbhtml filename="traceroute.html"?>
|
||||
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
|
||||
<title>Traceroute-&traceroute-version;</title>
|
||||
|
||||
<indexterm zone="traceroute">
|
||||
<primary sortas="a-Traceroute">Traceroute</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect2>
|
||||
<title>Introduction to <application>Traceroute</application></title>
|
||||
<sect2 role="package">
|
||||
<title>Introduction to Traceroute</title>
|
||||
|
||||
<para>The <application>Traceroute</application> package contains a 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.</para>
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&traceroute-download-http;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&traceroute-download-ftp;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &traceroute-md5sum;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &traceroute-size;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &traceroute-buildsize;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &traceroute-time;</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Traceroute</title>
|
||||
|
||||
<para>The <application>Traceroute</application> package contains a 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.</para>
|
||||
<para>Install <application>Traceroute</application> by running the following
|
||||
commands:</para>
|
||||
|
||||
<sect3><title>Package information</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Download (HTTP): <ulink
|
||||
url="&traceroute-download-http;"/></para></listitem>
|
||||
<listitem><para>Download (FTP): <ulink
|
||||
url="&traceroute-download-ftp;"/></para></listitem>
|
||||
<listitem><para>Download MD5 sum: &traceroute-md5sum;</para></listitem>
|
||||
<listitem><para>Download size: &traceroute-size;</para></listitem>
|
||||
<listitem><para>Estimated disk space required:
|
||||
&traceroute-buildsize;</para></listitem>
|
||||
<listitem><para>Estimated build time:
|
||||
&traceroute-time;</para></listitem></itemizedlist>
|
||||
</sect3>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Installation of <application>Traceroute</application></title>
|
||||
|
||||
<para>Install <application>Traceroute</application> by running the following
|
||||
commands:</para>
|
||||
|
||||
<screen><userinput><command>sed -i -e 's/-o bin/-o root/' Makefile.in &&
|
||||
<screen><userinput>sed -i -e 's/-o bin/-o root/' Makefile.in &&
|
||||
./configure --prefix=/usr &&
|
||||
make</command></userinput></screen>
|
||||
make</userinput></screen>
|
||||
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
<para>Now, as the root user:</para>
|
||||
<screen role='root'><userinput>make install &&
|
||||
make install-man</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>sed 's/-o bin/-o root/' Makefile.in</command>:
|
||||
Adjusts the <filename>Makefile</filename> so that the program is installed
|
||||
with user root instead of user bin (which doesn't exist on a default
|
||||
LFS system).</para>
|
||||
|
||||
<para><command>make install</command>: Installs <command>traceroute</command>
|
||||
with SUID set to <systemitem class="username">root</systemitem> in the
|
||||
<filename class='directory'>/usr/sbin</filename> directory. This makes it
|
||||
possible for all users to execute <command>traceroute</command>. For absolute
|
||||
security, turn off the SUID bit in <command>traceroute</command>'s file permissions
|
||||
with the command:</para>
|
||||
|
||||
<screen role='root'><userinput>chmod 0755 /usr/sbin/traceroute</userinput></screen>
|
||||
|
||||
<para>The risk is that if a security problem such as a buffer overflow was
|
||||
ever found in the <application>Traceroute</application> code, a regular user
|
||||
on your system could gain <systemitem class="username">root</systemitem>
|
||||
access if the program is SUID <systemitem class="username">root</systemitem>.
|
||||
Of course, removing the SUID permission also makes it impossible for users other
|
||||
than <systemitem class="username">root</systemitem> to utilize
|
||||
<command>traceroute</command>, so decide what's right for
|
||||
your individual situation.</para>
|
||||
|
||||
<para>The goal of BLFS is to be completely FHS compliant, so if you do leave the
|
||||
<command>traceroute</command> binary SUID <systemitem
|
||||
class="username">root</systemitem>, then you should move
|
||||
<filename>traceroute</filename> to <filename class='directory'>/usr/bin</filename>
|
||||
with the following command:</para>
|
||||
|
||||
<screen role='root'><userinput>mv /usr/sbin/traceroute /usr/bin</userinput></screen>
|
||||
|
||||
<para>This ensures that the binary is in the path for non-root users.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<screen><userinput role='root'><command>make install &&
|
||||
make install-man</command></userinput></screen>
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Program</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>traceroute</seg>
|
||||
<seg>None</seg>
|
||||
<seg>None</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="traceroute-prog">
|
||||
<term><command>traceroute</command></term>
|
||||
<listitem>
|
||||
<para>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 hops (gateways) along the way.</para>
|
||||
<indexterm zone="traceroute traceroute-prog">
|
||||
<primary sortas="b-traceroute">traceroute</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
|
||||
<para><command>sed 's/-o bin/-o root/' Makefile.in</command>:
|
||||
Adjusts the <filename>Makefile</filename> so that the program is installed
|
||||
with user root instead of user bin (which doesn't exist on a default
|
||||
<acronym>LFS</acronym> system).</para>
|
||||
|
||||
<para><command>make install</command>: Installs <command>traceroute</command>
|
||||
with <acronym>SUID</acronym> set to root in the
|
||||
<filename class='directory'>/usr/sbin</filename> directory. This makes it
|
||||
possible for all users to execute <command>traceroute</command>. For absolute
|
||||
security, turn off the <acronym>SUID</acronym> bit in
|
||||
<command>traceroute</command>'s file permissions with the command:</para>
|
||||
|
||||
<screen><userinput role='root'><command>chmod 0755 /usr/sbin/traceroute</command></userinput></screen>
|
||||
|
||||
<para>The risk is that if a security problem such as a buffer overflow was
|
||||
ever found in the <application>Traceroute</application> code, a regular user
|
||||
on your system could gain root access if the program is
|
||||
<acronym>SUID</acronym> root. Of course, removing
|
||||
the <acronym>SUID</acronym> permission also makes it impossible for users other
|
||||
than root to utilize <command>traceroute</command>, so decide what's right for
|
||||
your individual situation.</para>
|
||||
|
||||
<para>The goal of <acronym>BLFS</acronym> is to be completely
|
||||
<acronym>FHS</acronym> compliant, so if you do leave the
|
||||
<command>traceroute</command> binary <acronym>SUID</acronym> root, then you
|
||||
should move <filename>traceroute</filename> to
|
||||
<filename class='directory'>/usr/bin</filename> with the following command:
|
||||
</para>
|
||||
|
||||
<screen><userinput role='root'><command>mv /usr/sbin/traceroute /usr/bin</command></userinput></screen>
|
||||
|
||||
<para>This ensures that the binary is in the path for non-root users.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Contents</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Program</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>traceroute</seg>
|
||||
<seg>None</seg>
|
||||
<seg>None</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
|
||||
<varlistentry id="traceroute-prog">
|
||||
<term><command>traceroute</command></term>
|
||||
<listitem><para>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 hops (gateways) along the way.</para>
|
||||
<indexterm zone="traceroute traceroute-prog">
|
||||
<primary sortas="b-traceroute">traceroute</primary>
|
||||
</indexterm></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user