source: archive/xinetd.xml@ ba91515

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 lazarus lxqt 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 ba91515 was ba91515, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Archive xinetd

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

  • Property mode set to 100644
File size: 15.4 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 " ">
[a29486e4]10 <!ENTITY xinetd-download-ftp "&sources-anduin-ftp;/xinetd/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
[2a589b08]37 &lfs7a_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
[0cd81e41]79<screen><userinput>sed -i -e "s/exec_server/child_process/" xinetd/builtins.c &amp;&amp;
[b3e198d1]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.
[f3429309]390 <!-- 13-12-12 the http://www.xinetd.org is broken
[a754ee2b]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">
[1258125]399 <title><phrase revision="sysv">Boot Script</phrase>
400 <phrase revision="systemd">Systemd Unit</phrase></title>
[0931098]401
[66b825e0]402 <para>As the <systemitem class="username">root</systemitem> user, install
[1258125]403 the <phrase revision="sysv"><filename>/etc/rc.d/init.d/xinetd</filename>
404 init script</phrase>
405 <phrase revision="systemd"><filename>xinetd.service</filename>
406 unit</phrase> included in
[3c7bd00]407 the <xref linkend="bootscripts" revision="sysv"/>
408 <xref linkend="systemd-units" revision="systemd"/> package.</para>
[65483be1]409
[66b825e0]410 <indexterm zone="xinetd xinetd-init">
411 <primary sortas="f-xinetd">xinetd</primary>
412 </indexterm>
[620a57e]413
[66b825e0]414<screen role="root"><userinput>make install-xinetd</userinput></screen>
[0931098]415
[66b825e0]416 <para>As the <systemitem class="username">root</systemitem> user,
[1258125]417 use the <phrase revision="sysv">new boot script</phrase>
418 <phrase revision="systemd"><command>systemctl</command> command</phrase>
419 to start <command>xinetd</command>:</para>
[0931098]420
[1258125]421<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
[0931098]422
[1258125]423<screen role="root" revision="systemd"><userinput>systemctl start xinetd</userinput></screen>
424
425 <para>Check the
426 <phrase revision="sysv"><filename>/var/log/daemon.log</filename></phrase>
427 <phrase revision="systemd"><command>journalctl</command> output</phrase>
428 to ensure the appropriate services are started. If no services are
429 enabled, the program will not start without the
430 <option>-stayalive</option> option.</para>
[0931098]431
[9937138c]432<!--
[66b825e0]433<screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
[0931098]434executable [line=29]
435Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
436DISABLING SERVICE [line=29]
437Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
[66b825e0]438executable [line=42]</literal></screen>
439
440 <para>These errors are because most of the servers
441 <command>xinetd</command> is trying to control are not
442 installed yet.</para>
[9937138c]443-->
[66b825e0]444 </sect3>
445
446 </sect2>
447
448 <sect2 role="content">
449 <title>Contents</title>
450
451 <segmentedlist>
452 <segtitle>Installed Programs</segtitle>
453 <segtitle>Installed Libraries</segtitle>
454 <segtitle>Installed Directories</segtitle>
455
456 <seglistitem>
457 <seg>itox, xconv.pl, and xinetd</seg>
458 <seg>None</seg>
459 <seg>/etc/xinetd.d/</seg>
460 </seglistitem>
461 </segmentedlist>
462
463 <variablelist>
464 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
465 <?dbfo list-presentation="list"?>
466 <?dbhtml list-presentation="table"?>
467
468 <varlistentry id="itox">
469 <term><command>itox</command></term>
470 <listitem>
471 <para>is a utility used for converting
472 <filename>inetd.conf</filename> files to
473 <filename>xinetd.conf</filename> format.</para>
474 <indexterm zone="xinetd itox">
475 <primary sortas="b-itox">itox</primary>
476 </indexterm>
477 </listitem>
478 </varlistentry>
479
480 <varlistentry id="xconv.pl">
481 <term><command>xconv.pl</command></term>
482 <listitem>
483 <para>is a <application>Perl</application> script used for
484 converting <filename>inetd.conf</filename> files to
485 <filename>xinetd.conf</filename> format, similar to
486 <command>itox</command>.</para>
487 <indexterm zone="xinetd xconv.pl">
488 <primary sortas="b-xconv.pl">xconv.pl</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
493 <varlistentry id="xinetd-prog">
494 <term><command>xinetd</command></term>
495 <listitem>
496 <para>is the Internet services daemon.</para>
497 <indexterm zone="xinetd xinetd-prog">
498 <primary sortas="b-xinetd">xinetd</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 </variablelist>
504
505 </sect2>
[f45b1953]506
507</sect1>
Note: See TracBrowser for help on using the repository browser.