source: basicnet/netutils/traceroute.xml@ 7887ef0e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7887ef0e was 7887ef0e, checked in by Randy McMurchy <randy@…>, 19 years ago

Added MD5sum and indexing tags to Nmap; added indexing tags to Traceroute

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3377 af4574ff-66df-0310-9fd7-8a98e5e911e0

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