source: server/other/xinetd.xml@ adf6dd9a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 adf6dd9a was 283bd88, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Tags for networking and server sections

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

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