source: server/other/xinetd.xml@ cb435106

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 cb435106 was cb435106, checked in by Pierre Labastie <pieere@…>, 10 years ago

typo

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

  • Property mode set to 100644
File size: 14.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
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 " ">
10 <!ENTITY xinetd-download-ftp "&gentoo-ftp-repo;/xinetd-&xinetd-version;.tar.gz">
11 <!ENTITY xinetd-md5sum "77358478fd58efa6366accae99b8b04c">
12 <!ENTITY xinetd-size "308 KB">
13 <!ENTITY xinetd-buildsize "5.0 MB">
14 <!ENTITY xinetd-time "less than 0.1 SBU">
15]>
16
17<sect1 id="xinetd" xreflabel="xinetd-&xinetd-version;">
18 <?dbhtml filename="xinetd.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>xinetd-&xinetd-version;</title>
26
27 <indexterm zone="xinetd">
28 <primary sortas="a-Xinetd">Xinetd</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to xinetd</title>
33
34 <para><application>xinetd</application> is the eXtended InterNET services
35 daemon, a secure replacement for <command>inetd</command>.</para>
36
37 &lfs74_checked;
38
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>
60
61 <bridgehead renderas="sect3">xinetd Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Required</bridgehead>
64 <para role="required"><xref linkend="libtirpc"/></para>
65
66 <bridgehead renderas="sect4">Optional</bridgehead>
67 <para role="optional"><ulink url="ftp://ftp.porcupine.org/pub/security/">tcpwrappers (deprecated)</ulink></para>
68
69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/xinetd"/></para>
71
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of xinetd</title>
76
77 <para>Install <application>xinetd</application> by running the following
78 commands:</para>
79
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;
82
83./configure --prefix=/usr --with-loadavg &amp;&amp;
84make</userinput></screen>
85
86 <para>This package does not come with a test suite.</para>
87
88 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
89
90<screen role="root"><userinput>make install</userinput></screen>
91
92 </sect2>
93
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
100 <para><command>sed ... xinetd/itox.c</command>: Fix some compiler
101 warnings.</para>
102
103 </sect2>
104
105 <sect2 role="configuration">
106 <title>Configuring xinetd</title>
107
108 <sect3 id="xinetd-config">
109 <title>Config Files</title>
110
111 <para><filename>/etc/xinetd.conf</filename> and
112 <filename class='directory'>/etc/xinetd.d/*</filename></para>
113
114 <indexterm zone="xinetd xinetd-config">
115 <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
116 </indexterm>
117
118 <indexterm zone="xinetd xinetd-config">
119 <primary sortas="e-etc-xinetd.d">/etc/xinetd.d/*</primary>
120 </indexterm>
121
122 </sect3>
123
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
129 path of <filename class="directory">/usr/bin</filename>, and install the
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
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
148
149includedir /etc/xinetd.d
150
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>
159 <para>The following files are listed to demonstrate several
160 <application>xinetd</application> applications. In many cases, these
161 applications are not needed. Some classic applications are
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
169<screen role="root"><?dbfo keep-together="auto"?><userinput>install -v -d -m755 /etc/xinetd.d &amp;&amp;
170
171cat &gt; /etc/xinetd.d/systat &lt;&lt; "EOF" &amp;&amp;
172<literal># Begin /etc/xinetd.d/systat
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
186# End /etc/xinetd.d/systat</literal>
187EOF
188
189cat &gt; /etc/xinetd.d/echo &lt;&lt; "EOF" &amp;&amp;
190<literal># Begin /etc/xinetd.d/echo
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
214# End /etc/xinetd.d/echo</literal>
215EOF
216
217cat &gt; /etc/xinetd.d/chargen &lt;&lt; "EOF" &amp;&amp;
218<literal># Begin /etc/xinetd.d/chargen
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
242# End /etc/xinetd.d/chargen</literal>
243EOF
244
245cat &gt; /etc/xinetd.d/daytime &lt;&lt; "EOF" &amp;&amp;
246<literal># Begin /etc/xinetd.d/daytime
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
270# End /etc/xinetd.d/daytime</literal>
271EOF
272<!-- The last one without && -->
273cat &gt; /etc/xinetd.d/time &lt;&lt; "EOF"
274<literal># Begin /etc/xinetd.d/time
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
298# End /etc/xinetd.d/time</literal>
299EOF</userinput></screen>
300
301 <indexterm zone="xinetd xinetd-config">
302 <primary sortas="e-etc-xinetd.d-login">/etc/xinetd.d/login</primary>
303 </indexterm>
304
305 <indexterm zone="xinetd xinetd-config">
306 <primary sortas="e-etc-xinetd.d-shell">/etc/xinetd.d/shell</primary>
307 </indexterm>
308
309 <indexterm zone="xinetd xinetd-config">
310 <primary sortas="e-etc-xinetd.d-exec">/etc/xinetd.d/exec</primary>
311 </indexterm>
312
313 <indexterm zone="xinetd xinetd-config">
314 <primary sortas="e-etc-xinetd.d-comsat">/etc/xinetd.d/comsat</primary>
315 </indexterm>
316
317 <indexterm zone="xinetd xinetd-config">
318 <primary sortas="e-etc-xinetd.d-talk">/etc/xinetd.d/talk</primary>
319 </indexterm>
320
321 <indexterm zone="xinetd xinetd-config">
322 <primary sortas="e-etc-xinetd.d-ntalk">/etc/xinetd.d/ntalk</primary>
323 </indexterm>
324
325 <indexterm zone="xinetd xinetd-config">
326 <primary sortas="e-etc-xinetd.d-telnet">/etc/xinetd.d/telnet</primary>
327 </indexterm>
328
329 <indexterm zone="xinetd xinetd-config">
330 <primary sortas="e-etc-xinetd.d-ftp">/etc/xinetd.d/ftp</primary>
331 </indexterm>
332
333 <indexterm zone="xinetd xinetd-config">
334 <primary sortas="e-etc-xinetd.d-tftp">/etc/xinetd.d/tftp</primary>
335 </indexterm>
336
337 <indexterm zone="xinetd xinetd-config">
338 <primary sortas="e-etc-xinetd.d-systat">/etc/xinetd.d/systat</primary>
339 </indexterm>
340
341 <indexterm zone="xinetd xinetd-config">
342 <primary sortas="e-etc-xinetd.d-finger">/etc/xinetd.d/finger</primary>
343 </indexterm>
344
345 <indexterm zone="xinetd xinetd-config">
346 <primary sortas="e-etc-xinetd.d-netstat">/etc/xinetd.d/netstat</primary>
347 </indexterm>
348
349 <indexterm zone="xinetd xinetd-config">
350 <primary sortas="e-etc-xinetd.d-echo">/etc/xinetd.d/echo</primary>
351 </indexterm>
352
353 <indexterm zone="xinetd xinetd-config">
354 <primary sortas="e-etc-xinetd.d-chargen">/etc/xinetd.d/chargen</primary>
355 </indexterm>
356
357 <indexterm zone="xinetd xinetd-config">
358 <primary sortas="e-etc-xinetd.d-daytime">/etc/xinetd.d/daytime</primary>
359 </indexterm>
360
361 <indexterm zone="xinetd xinetd-config">
362 <primary sortas="e-etc-xinetd.d-time">/etc/xinetd.d/time</primary>
363 </indexterm>
364
365 <indexterm zone="xinetd xinetd-config">
366 <primary sortas="e-etc-xinetd.d-rstatd">/etc/xinetd.d/rstatd</primary>
367 </indexterm>
368
369 <indexterm zone="xinetd xinetd-config">
370 <primary sortas="e-etc-xinetd.d-rquotad">/etc/xinetd.d/rquotad</primary>
371 </indexterm>
372
373 <indexterm zone="xinetd xinetd-config">
374 <primary sortas="e-etc-xinetd.d-ruserd">/etc/xinetd.d/ruserd</primary>
375 </indexterm>
376
377 <indexterm zone="xinetd xinetd-config">
378 <primary sortas="e-etc-xinetd.d-sprayd">/etc/xinetd.d/sprayd</primary>
379 </indexterm>
380
381 <indexterm zone="xinetd xinetd-config">
382 <primary sortas="e-etc-xinetd.d-walld">/etc/xinetd.d/walld</primary>
383 </indexterm>
384
385 <indexterm zone="xinetd xinetd-config">
386 <primary sortas="e-etc-xinetd.d-irc">/etc/xinetd.d/irc</primary>
387 </indexterm>
388
389 <para>The format of the <filename>/etc/xinetd.conf</filename> is
390 documented in the <filename>xinetd.conf.5</filename> man page.
391 <!-- 13-12-12 the http://www.xinetd.org is broken
392 Further
393 information can be found at <ulink url="http://www.xinetd.org"/>.
394 -->
395 </para>
396
397 </sect3>
398
399 <sect3 id="xinetd-init">
400 <title>Boot Script</title>
401
402 <para>As the <systemitem class="username">root</systemitem> user, install
403 the <filename>/etc/rc.d/init.d/xinetd</filename> init script included in
404 the <xref linkend="bootscripts"/> package.</para>
405
406 <indexterm zone="xinetd xinetd-init">
407 <primary sortas="f-xinetd">xinetd</primary>
408 </indexterm>
409
410<screen role="root"><userinput>make install-xinetd</userinput></screen>
411
412 <para>As the <systemitem class="username">root</systemitem> user,
413 use the new boot script to start <command>xinetd</command>:</para>
414
415<screen role="root"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
416
417 <para>Check the <filename>/var/log/daemon.log</filename> to ensure the
418 appropriate services are started. If no services are enabled, the program
419 will not start without the <option>-stayalive</option> option.</para>
420
421<!--
422<screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
423executable [line=29]
424Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
425DISABLING SERVICE [line=29]
426Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
427executable [line=42]</literal></screen>
428
429 <para>These errors are because most of the servers
430 <command>xinetd</command> is trying to control are not
431 installed yet.</para>
432-->
433 </sect3>
434
435 </sect2>
436
437 <sect2 role="content">
438 <title>Contents</title>
439
440 <segmentedlist>
441 <segtitle>Installed Programs</segtitle>
442 <segtitle>Installed Libraries</segtitle>
443 <segtitle>Installed Directories</segtitle>
444
445 <seglistitem>
446 <seg>itox, xconv.pl, and xinetd</seg>
447 <seg>None</seg>
448 <seg>/etc/xinetd.d/</seg>
449 </seglistitem>
450 </segmentedlist>
451
452 <variablelist>
453 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
454 <?dbfo list-presentation="list"?>
455 <?dbhtml list-presentation="table"?>
456
457 <varlistentry id="itox">
458 <term><command>itox</command></term>
459 <listitem>
460 <para>is a utility used for converting
461 <filename>inetd.conf</filename> files to
462 <filename>xinetd.conf</filename> format.</para>
463 <indexterm zone="xinetd itox">
464 <primary sortas="b-itox">itox</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="xconv.pl">
470 <term><command>xconv.pl</command></term>
471 <listitem>
472 <para>is a <application>Perl</application> script used for
473 converting <filename>inetd.conf</filename> files to
474 <filename>xinetd.conf</filename> format, similar to
475 <command>itox</command>.</para>
476 <indexterm zone="xinetd xconv.pl">
477 <primary sortas="b-xconv.pl">xconv.pl</primary>
478 </indexterm>
479 </listitem>
480 </varlistentry>
481
482 <varlistentry id="xinetd-prog">
483 <term><command>xinetd</command></term>
484 <listitem>
485 <para>is the Internet services daemon.</para>
486 <indexterm zone="xinetd xinetd-prog">
487 <primary sortas="b-xinetd">xinetd</primary>
488 </indexterm>
489 </listitem>
490 </varlistentry>
491
492 </variablelist>
493
494 </sect2>
495
496</sect1>
Note: See TracBrowser for help on using the repository browser.