source: server/other/xinetd.xml@ a1f2d184

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind 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 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a1f2d184 was b3e198d1, checked in by Pierre Labastie <pieere@…>, 10 years ago

More tags, including some from Armin K.

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

  • Property mode set to 100644
File size: 14.8 KB
RevLine 
[0931098]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" [
[0931098]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[0a2b9de8]7 <!-- Development seems to be over and the xinetd.og site does not seem to exist any more. -->
8 <!-- <!ENTITY xinetd-download-http "http://www.xinetd.org/xinetd-&xinetd-version;.tar.gz"> -->
9 <!ENTITY xinetd-download-http " ">
[fb2e525]10 <!ENTITY xinetd-download-ftp "&gentoo-ftp-repo;/xinetd-&xinetd-version;.tar.gz">
[9937138c]11 <!ENTITY xinetd-md5sum "77358478fd58efa6366accae99b8b04c">
12 <!ENTITY xinetd-size "308 KB">
13 <!ENTITY xinetd-buildsize "5.0 MB">
[5a832414]14 <!ENTITY xinetd-time "less than 0.1 SBU">
[0931098]15]>
16
[5f5a393]17<sect1 id="xinetd" xreflabel="xinetd-&xinetd-version;">
[66b825e0]18 <?dbhtml filename="xinetd.html"?>
[65483be1]19
[66b825e0]20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
[65483be1]24
[66b825e0]25 <title>xinetd-&xinetd-version;</title>
[f45b1953]26
[66b825e0]27 <indexterm zone="xinetd">
28 <primary sortas="a-Xinetd">Xinetd</primary>
29 </indexterm>
[0931098]30
[66b825e0]31 <sect2 role="package">
32 <title>Introduction to xinetd</title>
[0931098]33
[66b825e0]34 <para><application>xinetd</application> is the eXtended InterNET services
[5a832414]35 daemon, a secure replacement for <command>inetd</command>.</para>
[0931098]36
[b3e198d1]37 &lfs75_checked;
[0a2b9de8]38
[66b825e0]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&xinetd-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&xinetd-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &xinetd-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &xinetd-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &xinetd-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &xinetd-time;</para>
58 </listitem>
59 </itemizedlist>
[65483be1]60
[66b825e0]61 <bridgehead renderas="sect3">xinetd Dependencies</bridgehead>
[620a57e]62
[66b825e0]63 <bridgehead renderas="sect4">Optional</bridgehead>
[b3e198d1]64 <para role="optional">
65 <ulink url="ftp://ftp.porcupine.org/pub/security/">TCP wrappers (deprecated)</ulink>
66 </para>
[0931098]67
[3cb0c57]68 <para condition="html" role="usernotes">User Notes:
69 <ulink url="&blfs-wiki;/xinetd"/></para>
70
[66b825e0]71 </sect2>
[0931098]72
[66b825e0]73 <sect2 role="installation">
74 <title>Installation of xinetd</title>
[0931098]75
[66b825e0]76 <para>Install <application>xinetd</application> by running the following
77 commands:</para>
[c53fc5f6]78
[b3e198d1]79<screen><userinput>sed -i -e "s/exec_server/child_process/" xinetd/builtins.c &amp;&amp;
80sed -i -e "/register unsigned count/s/register//" xinetd/itox.c &amp;&amp;
81./configure --prefix=/usr --mandir=/usr/share/man --with-loadavg &amp;&amp;
[66b825e0]82make</userinput></screen>
[c53fc5f6]83
[5a832414]84 <para>This package does not come with a test suite.</para>
85
[66b825e0]86 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[0931098]87
[66b825e0]88<screen role="root"><userinput>make install</userinput></screen>
[0931098]89
[66b825e0]90 </sect2>
[0931098]91
[9937138c]92 <sect2 role="commands">
93 <title>Command Explanations</title>
94
[b3e198d1]95 <!-- CVE-2013-4342 https://bugzilla.redhat.com/show_bug.cgi?id=1006100 -->
96 <para><command>sed ... xinetd/builtins.c</command>: This command fixes
97 a security issue.</para>
[9937138c]98
[b3e198d1]99 <para><command>sed ... xinetd/itox.c</command>: This command fixes some
100 compiler warnings.</para>
[9937138c]101
102 </sect2>
103
[66b825e0]104 <sect2 role="configuration">
105 <title>Configuring xinetd</title>
[65483be1]106
[66b825e0]107 <sect3 id="xinetd-config">
108 <title>Config Files</title>
[65483be1]109
[5a832414]110 <para><filename>/etc/xinetd.conf</filename> and
[b3e198d1]111 <filename class="directory">/etc/xinetd.d/*</filename></para>
[0931098]112
[66b825e0]113 <indexterm zone="xinetd xinetd-config">
114 <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
115 </indexterm>
[0931098]116
[5a832414]117 <indexterm zone="xinetd xinetd-config">
118 <primary sortas="e-etc-xinetd.d">/etc/xinetd.d/*</primary>
119 </indexterm>
120
[66b825e0]121 </sect3>
[1f672c1]122
[66b825e0]123 <sect3>
124 <title>Configuration Information</title>
125
126 <para>Ensure the path to all daemons is
127 <filename class="directory">/usr/sbin</filename>, rather than the default
[9937138c]128 path of <filename class="directory">/usr/bin</filename>, and install the
[66b825e0]129 <application>xinetd</application> configuration files by running the
130 following commands as the <systemitem class="username">root</systemitem>
131 user:</para>
132
133<screen role="root"><userinput>cat &gt; /etc/xinetd.conf &lt;&lt; "EOF"
134<literal># Begin /etc/xinetd
[1f672c1]135# Configuration file for xinetd
136
137defaults
138{
139 instances = 60
140 log_type = SYSLOG daemon
141 log_on_success = HOST PID USERID
142 log_on_failure = HOST USERID
143 cps = 25 30
144}
145
146# All service files are stored in the /etc/xinetd.d directory
[9937138c]147
[1f672c1]148includedir /etc/xinetd.d
[9937138c]149
[66b825e0]150# End /etc/xinetd</literal>
151EOF</userinput></screen>
152
153 <para>All of the following files have the statement, "disable = yes".
154 To activate any of the services, this statement will need to be changed
155 to "disable = no".</para>
156
157 <note>
[9937138c]158 <para>The following files are listed to demonstrate several
[66b825e0]159 <application>xinetd</application> applications. In many cases, these
[9937138c]160 applications are not needed. Some classic applications are
[66b825e0]161 considered security risks. For example, <command>telnet</command>,
162 <command>rlogin</command>, <command>rexec</command>, and
163 <command>rsh</command> transmit unencrypted usernames and passwords
164 over the network and can be easily replaced with a more secure
165 alternative: <command>ssh</command>.</para>
166 </note>
167
[8e37798]168<screen role="root"><?dbfo keep-together="auto"?><userinput>install -v -d -m755 /etc/xinetd.d &amp;&amp;
[1f672c1]169
[66b825e0]170cat &gt; /etc/xinetd.d/systat &lt;&lt; "EOF" &amp;&amp;
171<literal># Begin /etc/xinetd.d/systat
[1f672c1]172
173service systat
174{
175 disable = yes
176 socket_type = stream
177 wait = no
178 user = nobody
[b3e198d1]179 server = /bin/ps
[1f672c1]180 server_args = -auwwx
181 only_from = 128.138.209.0
182 log_on_success = HOST
183}
184
[66b825e0]185# End /etc/xinetd.d/systat</literal>
186EOF
[1f672c1]187
[66b825e0]188cat &gt; /etc/xinetd.d/echo &lt;&lt; "EOF" &amp;&amp;
189<literal># Begin /etc/xinetd.d/echo
[1f672c1]190
191service echo
192{
193 disable = yes
194 type = INTERNAL
195 id = echo-stream
196 socket_type = stream
197 protocol = tcp
198 user = root
199 wait = no
200}
201
202service echo
203{
204 disable = yes
205 type = INTERNAL
206 id = echo-dgram
207 socket_type = dgram
208 protocol = udp
209 user = root
210 wait = yes
211}
212
[66b825e0]213# End /etc/xinetd.d/echo</literal>
214EOF
[9937138c]215
[66b825e0]216cat &gt; /etc/xinetd.d/chargen &lt;&lt; "EOF" &amp;&amp;
217<literal># Begin /etc/xinetd.d/chargen
[1f672c1]218
219service chargen
220{
221 disable = yes
222 type = INTERNAL
223 id = chargen-stream
224 socket_type = stream
225 protocol = tcp
226 user = root
227 wait = no
228}
229
230service chargen
231{
232 disable = yes
233 type = INTERNAL
234 id = chargen-dgram
235 socket_type = dgram
236 protocol = udp
237 user = root
238 wait = yes
239}
240
[66b825e0]241# End /etc/xinetd.d/chargen</literal>
242EOF
[9937138c]243
[66b825e0]244cat &gt; /etc/xinetd.d/daytime &lt;&lt; "EOF" &amp;&amp;
245<literal># Begin /etc/xinetd.d/daytime
[1f672c1]246
247service daytime
248{
249 disable = yes
250 type = INTERNAL
251 id = daytime-stream
252 socket_type = stream
253 protocol = tcp
254 user = root
255 wait = no
256}
257
258service daytime
259{
260 disable = yes
261 type = INTERNAL
262 id = daytime-dgram
263 socket_type = dgram
264 protocol = udp
265 user = root
266 wait = yes
267}
268
[66b825e0]269# End /etc/xinetd.d/daytime</literal>
270EOF
[cb435106]271<!-- The last one without && -->
272cat &gt; /etc/xinetd.d/time &lt;&lt; "EOF"
[66b825e0]273<literal># Begin /etc/xinetd.d/time
[1f672c1]274
275service time
276{
277 disable = yes
278 type = INTERNAL
279 id = time-stream
280 socket_type = stream
281 protocol = tcp
282 user = root
283 wait = no
284}
285
286service time
287{
288 disable = yes
289 type = INTERNAL
290 id = time-dgram
291 socket_type = dgram
292 protocol = udp
293 user = root
294 wait = yes
295}
296
[66b825e0]297# End /etc/xinetd.d/time</literal>
298EOF</userinput></screen>
[65483be1]299
[66b825e0]300 <indexterm zone="xinetd xinetd-config">
301 <primary sortas="e-etc-xinetd.d-login">/etc/xinetd.d/login</primary>
302 </indexterm>
[65483be1]303
[66b825e0]304 <indexterm zone="xinetd xinetd-config">
305 <primary sortas="e-etc-xinetd.d-shell">/etc/xinetd.d/shell</primary>
306 </indexterm>
[65483be1]307
[66b825e0]308 <indexterm zone="xinetd xinetd-config">
309 <primary sortas="e-etc-xinetd.d-exec">/etc/xinetd.d/exec</primary>
310 </indexterm>
[65483be1]311
[66b825e0]312 <indexterm zone="xinetd xinetd-config">
313 <primary sortas="e-etc-xinetd.d-comsat">/etc/xinetd.d/comsat</primary>
314 </indexterm>
[65483be1]315
[66b825e0]316 <indexterm zone="xinetd xinetd-config">
317 <primary sortas="e-etc-xinetd.d-talk">/etc/xinetd.d/talk</primary>
318 </indexterm>
[65483be1]319
[66b825e0]320 <indexterm zone="xinetd xinetd-config">
321 <primary sortas="e-etc-xinetd.d-ntalk">/etc/xinetd.d/ntalk</primary>
322 </indexterm>
[65483be1]323
[66b825e0]324 <indexterm zone="xinetd xinetd-config">
325 <primary sortas="e-etc-xinetd.d-telnet">/etc/xinetd.d/telnet</primary>
326 </indexterm>
[65483be1]327
[66b825e0]328 <indexterm zone="xinetd xinetd-config">
329 <primary sortas="e-etc-xinetd.d-ftp">/etc/xinetd.d/ftp</primary>
330 </indexterm>
[65483be1]331
[66b825e0]332 <indexterm zone="xinetd xinetd-config">
333 <primary sortas="e-etc-xinetd.d-tftp">/etc/xinetd.d/tftp</primary>
334 </indexterm>
[65483be1]335
[66b825e0]336 <indexterm zone="xinetd xinetd-config">
337 <primary sortas="e-etc-xinetd.d-systat">/etc/xinetd.d/systat</primary>
338 </indexterm>
[65483be1]339
[66b825e0]340 <indexterm zone="xinetd xinetd-config">
341 <primary sortas="e-etc-xinetd.d-finger">/etc/xinetd.d/finger</primary>
342 </indexterm>
[65483be1]343
[66b825e0]344 <indexterm zone="xinetd xinetd-config">
345 <primary sortas="e-etc-xinetd.d-netstat">/etc/xinetd.d/netstat</primary>
346 </indexterm>
[65483be1]347
[66b825e0]348 <indexterm zone="xinetd xinetd-config">
349 <primary sortas="e-etc-xinetd.d-echo">/etc/xinetd.d/echo</primary>
350 </indexterm>
[65483be1]351
[66b825e0]352 <indexterm zone="xinetd xinetd-config">
353 <primary sortas="e-etc-xinetd.d-chargen">/etc/xinetd.d/chargen</primary>
354 </indexterm>
[65483be1]355
[66b825e0]356 <indexterm zone="xinetd xinetd-config">
357 <primary sortas="e-etc-xinetd.d-daytime">/etc/xinetd.d/daytime</primary>
358 </indexterm>
[65483be1]359
[66b825e0]360 <indexterm zone="xinetd xinetd-config">
361 <primary sortas="e-etc-xinetd.d-time">/etc/xinetd.d/time</primary>
362 </indexterm>
[65483be1]363
[66b825e0]364 <indexterm zone="xinetd xinetd-config">
365 <primary sortas="e-etc-xinetd.d-rstatd">/etc/xinetd.d/rstatd</primary>
366 </indexterm>
[65483be1]367
[66b825e0]368 <indexterm zone="xinetd xinetd-config">
369 <primary sortas="e-etc-xinetd.d-rquotad">/etc/xinetd.d/rquotad</primary>
370 </indexterm>
[65483be1]371
[66b825e0]372 <indexterm zone="xinetd xinetd-config">
373 <primary sortas="e-etc-xinetd.d-ruserd">/etc/xinetd.d/ruserd</primary>
374 </indexterm>
[65483be1]375
[66b825e0]376 <indexterm zone="xinetd xinetd-config">
377 <primary sortas="e-etc-xinetd.d-sprayd">/etc/xinetd.d/sprayd</primary>
378 </indexterm>
[65483be1]379
[66b825e0]380 <indexterm zone="xinetd xinetd-config">
381 <primary sortas="e-etc-xinetd.d-walld">/etc/xinetd.d/walld</primary>
382 </indexterm>
[65483be1]383
[66b825e0]384 <indexterm zone="xinetd xinetd-config">
385 <primary sortas="e-etc-xinetd.d-irc">/etc/xinetd.d/irc</primary>
386 </indexterm>
[65483be1]387
[66b825e0]388 <para>The format of the <filename>/etc/xinetd.conf</filename> is
[a754ee2b]389 documented in the <filename>xinetd.conf.5</filename> man page.
390 <!-- 13-12-12 the http://www.xinetd.org is broken
391 Further
392 information can be found at <ulink url="http://www.xinetd.org"/>.
393 -->
394 </para>
[0931098]395
[66b825e0]396 </sect3>
[0931098]397
[66b825e0]398 <sect3 id="xinetd-init">
399 <title>Boot Script</title>
[0931098]400
[66b825e0]401 <para>As the <systemitem class="username">root</systemitem> user, install
402 the <filename>/etc/rc.d/init.d/xinetd</filename> init script included in
[5254d12]403 the <xref linkend="bootscripts"/> package.</para>
[65483be1]404
[66b825e0]405 <indexterm zone="xinetd xinetd-init">
406 <primary sortas="f-xinetd">xinetd</primary>
407 </indexterm>
[620a57e]408
[66b825e0]409<screen role="root"><userinput>make install-xinetd</userinput></screen>
[0931098]410
[66b825e0]411 <para>As the <systemitem class="username">root</systemitem> user,
412 use the new boot script to start <command>xinetd</command>:</para>
[0931098]413
[66b825e0]414<screen role="root"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
[0931098]415
[9937138c]416 <para>Check the <filename>/var/log/daemon.log</filename> to ensure the
417 appropriate services are started. If no services are enabled, the program
418 will not start without the <option>-stayalive</option> option.</para>
[0931098]419
[9937138c]420<!--
[66b825e0]421<screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
[0931098]422executable [line=29]
423Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
424DISABLING SERVICE [line=29]
425Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
[66b825e0]426executable [line=42]</literal></screen>
427
428 <para>These errors are because most of the servers
429 <command>xinetd</command> is trying to control are not
430 installed yet.</para>
[9937138c]431-->
[66b825e0]432 </sect3>
433
434 </sect2>
435
436 <sect2 role="content">
437 <title>Contents</title>
438
439 <segmentedlist>
440 <segtitle>Installed Programs</segtitle>
441 <segtitle>Installed Libraries</segtitle>
442 <segtitle>Installed Directories</segtitle>
443
444 <seglistitem>
445 <seg>itox, xconv.pl, and xinetd</seg>
446 <seg>None</seg>
447 <seg>/etc/xinetd.d/</seg>
448 </seglistitem>
449 </segmentedlist>
450
451 <variablelist>
452 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
453 <?dbfo list-presentation="list"?>
454 <?dbhtml list-presentation="table"?>
455
456 <varlistentry id="itox">
457 <term><command>itox</command></term>
458 <listitem>
459 <para>is a utility used for converting
460 <filename>inetd.conf</filename> files to
461 <filename>xinetd.conf</filename> format.</para>
462 <indexterm zone="xinetd itox">
463 <primary sortas="b-itox">itox</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
468 <varlistentry id="xconv.pl">
469 <term><command>xconv.pl</command></term>
470 <listitem>
471 <para>is a <application>Perl</application> script used for
472 converting <filename>inetd.conf</filename> files to
473 <filename>xinetd.conf</filename> format, similar to
474 <command>itox</command>.</para>
475 <indexterm zone="xinetd xconv.pl">
476 <primary sortas="b-xconv.pl">xconv.pl</primary>
477 </indexterm>
478 </listitem>
479 </varlistentry>
480
481 <varlistentry id="xinetd-prog">
482 <term><command>xinetd</command></term>
483 <listitem>
484 <para>is the Internet services daemon.</para>
485 <indexterm zone="xinetd xinetd-prog">
486 <primary sortas="b-xinetd">xinetd</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 </variablelist>
492
493 </sect2>
[f45b1953]494
495</sect1>
Note: See TracBrowser for help on using the repository browser.