Changeset 9937138c for server/other


Ignore:
Timestamp:
08/26/2012 03:21:43 AM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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
Children:
f88633e
Parents:
b53c153
Message:

Restore xinetd and upgrade to version 2.3.15

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

Location:
server/other
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • server/other/other.xml

    rb53c153 r9937138c  
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="virtuoso.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="soprano.xml"/>
     28  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xinetd.xml"/>
    2829
    2930</chapter>
  • server/other/xinetd.xml

    rb53c153 r9937138c  
    77  <!ENTITY xinetd-download-http "http://www.xinetd.org/xinetd-&xinetd-version;.tar.gz">
    88  <!ENTITY xinetd-download-ftp  "&gentoo-ftp-repo;/xinetd-&xinetd-version;.tar.gz">
    9   <!ENTITY xinetd-md5sum        "567382d7972613090215c6c54f9b82d9">
    10   <!ENTITY xinetd-size          "301 KB">
    11   <!ENTITY xinetd-buildsize     "4.4 MB">
     9  <!ENTITY xinetd-md5sum        "77358478fd58efa6366accae99b8b04c">
     10  <!ENTITY xinetd-size          "308 KB">
     11  <!ENTITY xinetd-buildsize     "5.0 MB">
    1212  <!ENTITY xinetd-time          "less than 0.1 SBU">
    1313]>
     
    5757    <bridgehead renderas="sect3">xinetd Dependencies</bridgehead>
    5858
     59    <bridgehead renderas="sect4">Required</bridgehead>
     60    <para role="required"><xref linkend="libtirpc"/></para>
     61
    5962    <bridgehead renderas="sect4">Optional</bridgehead>
    60     <para role="optional"><xref linkend="tcpwrappers"/> and
    61     <xref linkend="avahi"/></para>
     63    <para role="optional"><ulink url="ftp://ftp.porcupine.org/pub/security/">tcpwrappers (deprecated)</ulink></para>
    6264
    6365    <para condition="html" role="usernotes">User Notes:
     
    7274    commands:</para>
    7375
    74 <screen><userinput>./configure --prefix=/usr --with-loadavg &amp;&amp;
     76<screen><userinput>sed -i -e "/^LIBS/s/-lpset/&amp; -ltirpc/" xinetd/Makefile.in       &amp;&amp;
     77sed -i -e "/register unsigned count/s/register//" xinetd/itox.c &amp;&amp;
     78./configure --prefix=/usr --with-loadavg                        &amp;&amp;
    7579make</userinput></screen>
    7680
     
    8084
    8185<screen role="root"><userinput>make install</userinput></screen>
     86
     87  </sect2>
     88
     89  <sect2 role="commands">
     90     <title>Command Explanations</title>
     91
     92     <para><command>sed ... xinetd/Makefile.in</command>: Ensure the program
     93     links against the libtirpc library.</para>
     94
     95     <para><command>sed ... xinetd/itox.c</command>: Fix some compiler
     96     warnings.</para>
    8297
    8398  </sect2>
     
    107122      <para>Ensure the path to all daemons is
    108123      <filename class="directory">/usr/sbin</filename>, rather than the default
    109       path of <filename class="directory">/usr/etc</filename>, and install the
     124      path of <filename class="directory">/usr/bin</filename>, and install the
    110125      <application>xinetd</application> configuration files by running the
    111126      following commands as the <systemitem class="username">root</systemitem>
     
    115130<literal># Begin /etc/xinetd
    116131# Configuration file for xinetd
    117 #
    118132
    119133defaults
     
    127141
    128142# All service files are stored in the /etc/xinetd.d directory
    129 #
     143
    130144includedir /etc/xinetd.d
     145
    131146# End /etc/xinetd</literal>
    132147EOF</userinput></screen>
     
    137152
    138153      <note>
    139         <para>The following files are listed to demonstrate classic
     154        <para>The following files are listed to demonstrate several
    140155        <application>xinetd</application> applications. In many cases, these
    141         applications are not needed. In some cases, the applications are
     156        applications are not needed. Some classic applications are
    142157        considered security risks. For example, <command>telnet</command>,
    143158        <command>rlogin</command>, <command>rexec</command>, and
     
    148163
    149164<screen role="root"><?dbfo keep-together="auto"?><userinput>install -v -d -m755 /etc/xinetd.d &amp;&amp;
    150 cat &gt; /etc/xinetd.d/login &lt;&lt; "EOF" &amp;&amp;
    151 <literal># Begin /etc/xinetd.d/login
    152 
    153 service login
    154 {
    155    disable        = yes
    156    socket_type    = stream
    157    protocol       = tcp
    158    wait           = no
    159    user           = root
    160    server         = /usr/sbin/in.rlogind
    161    log_type       = SYSLOG local4 info
    162 }
    163 
    164 # End /etc/xinetd.d/login</literal>
    165 EOF
    166 cat &gt; /etc/xinetd.d/shell &lt;&lt; "EOF" &amp;&amp;
    167 <literal># Begin /etc/xinetd.d/shell
    168 
    169 service shell
    170 {
    171    disable        = yes
    172    socket_type    = stream
    173    wait           = no
    174    user           = root
    175    instances      = UNLIMITED
    176    flags          = IDONLY
    177    log_on_success += USERID
    178    server         = /usr/sbin/in.rshd
    179 }
    180 
    181 # End /etc/xinetd.d/shell</literal>
    182 EOF
    183 cat &gt; /etc/xinetd.d/exec &lt;&lt; "EOF" &amp;&amp;
    184 <literal># Begin /etc/xinetd.d/exec
    185 
    186 service exec
    187 {
    188    disable        = yes
    189    socket_type    = stream
    190    wait           = no
    191    user           = root
    192    server         = /usr/sbin/in.rexecd
    193 }
    194 
    195 # End /etc/xinetd.d/exec</literal>
    196 EOF
    197 cat &gt; /etc/xinetd.d/comsat &lt;&lt; "EOF" &amp;&amp;
    198 <literal># Begin /etc/xinetd.d/comsat
    199 
    200 service comsat
    201 {
    202    disable        = yes
    203    socket_type    = dgram
    204    wait           = yes
    205    user           = nobody
    206    group          = tty
    207    server         = /usr/sbin/in.comsat
    208 }
    209 
    210 # End /etc/xinetd.d/comsat</literal>
    211 EOF
    212 cat &gt; /etc/xinetd.d/talk &lt;&lt; "EOF" &amp;&amp;
    213 <literal># Begin /etc/xinetd.d/talk
    214 
    215 service talk
    216 {
    217    disable        = yes
    218    socket_type    = dgram
    219    wait           = yes
    220    user           = root
    221    server         = /usr/sbin/in.talkd
    222 }
    223 
    224 # End /etc/xinetd.d/talk</literal>
    225 EOF
    226 cat &gt; /etc/xinetd.d/ntalk &lt;&lt; "EOF" &amp;&amp;
    227 <literal># Begin /etc/xinetd.d/ntalk
    228 
    229 service ntalk
    230 {
    231    disable        = yes
    232    socket_type    = dgram
    233    wait           = yes
    234    user           = root
    235    server         = /usr/sbin/in.ntalkd
    236 }
    237 
    238 # End /etc/xinetd.d/ntalk</literal>
    239 EOF
    240 cat &gt; /etc/xinetd.d/telnet &lt;&lt; "EOF" &amp;&amp;
    241 <literal># Begin /etc/xinetd.d/telnet
    242 
    243 service telnet
    244 {
    245    disable        = yes
    246    socket_type    = stream
    247    wait           = no
    248    user           = root
    249    server         = /usr/sbin/in.telnetd
    250    bind           = 127.0.0.1
    251    log_on_failure += USERID
    252 }
    253 
    254 service telnet
    255 {
    256    disable        = yes
    257    socket_type    = stream
    258    wait           = no
    259    user           = root
    260 #  server         = /usr/sbin/in.telnetd
    261    bind           = 192.231.139.175
    262    redirect       = 128.138.202.20 23
    263    log_on_failure += USERID
    264 }
    265 
    266 # End /etc/xinetd.d/telnet</literal>
    267 EOF
    268 cat &gt; /etc/xinetd.d/ftp &lt;&lt; "EOF" &amp;&amp;
    269 <literal># Begin /etc/xinetd.d/ftp
    270 
    271 service ftp
    272 {
    273    disable        = yes
    274    socket_type    = stream
    275    wait           = no
    276    user           = root
    277    server         = /usr/sbin/in.ftpd
    278    server_args    = -l
    279    instances      = 4
    280    log_on_success += DURATION USERID
    281    log_on_failure += USERID
    282    access_times   = 2:00-8:59 12:00-23:59
    283    nice           = 10
    284 }
    285 
    286 # End /etc/xinetd.d/ftp</literal>
    287 EOF
    288 cat &gt; /etc/xinetd.d/tftp &lt;&lt; "EOF" &amp;&amp;
    289 <literal># Begin /etc/xinetd.d/tftp
    290 
    291 service tftp
    292 {
    293    disable        = yes
    294    socket_type    = dgram
    295    wait           = yes
    296    user           = root
    297    server         = /usr/sbin/in.tftpd
    298    server_args    = -s /tftpboot
    299 }
    300 
    301 # End /etc/xinetd.d/tftp</literal>
    302 EOF
    303 cat &gt; /etc/xinetd.d/finger &lt;&lt; "EOF" &amp;&amp;
    304 <literal># Begin /etc/xinetd.d/finger
    305 
    306 service finger
    307 {
    308    disable        = yes
    309    socket_type    = stream
    310    wait           = no
    311    user           = nobody
    312    server         = /usr/sbin/in.fingerd
    313 }
    314 
    315 # End /etc/xinetd.d/finger</literal>
    316 EOF
     165
    317166cat &gt; /etc/xinetd.d/systat &lt;&lt; "EOF" &amp;&amp;
    318167<literal># Begin /etc/xinetd.d/systat
     
    332181# End /etc/xinetd.d/systat</literal>
    333182EOF
    334 cat &gt; /etc/xinetd.d/netstat &lt;&lt; "EOF" &amp;&amp;
    335 <literal># Begin /etc/xinetd.d/netstat
    336 
    337 service netstat
    338 {
    339    disable           = yes
    340    socket_type       = stream
    341    wait              = no
    342    user              = nobody
    343    server            = /usr/ucb/netstat
    344    server_args       = -f inet
    345    only_from         = 128.138.209.0
    346    log_on_success    = HOST
    347 }
    348 
    349 # End /etc/xinetd.d/netstat</literal>
    350 EOF
     183
    351184cat &gt; /etc/xinetd.d/echo &lt;&lt; "EOF" &amp;&amp;
    352185<literal># Begin /etc/xinetd.d/echo
     
    376209# End /etc/xinetd.d/echo</literal>
    377210EOF
     211
    378212cat &gt; /etc/xinetd.d/chargen &lt;&lt; "EOF" &amp;&amp;
    379213<literal># Begin /etc/xinetd.d/chargen
     
    403237# End /etc/xinetd.d/chargen</literal>
    404238EOF
     239
    405240cat &gt; /etc/xinetd.d/daytime &lt;&lt; "EOF" &amp;&amp;
    406241<literal># Begin /etc/xinetd.d/daytime
     
    430265# End /etc/xinetd.d/daytime</literal>
    431266EOF
     267
    432268cat &gt; /etc/xinetd.d/time &lt;&lt; "EOF" &amp;&amp;
    433269<literal># Begin /etc/xinetd.d/time
     
    444280}
    445281
    446 
    447282service time
    448283{
     
    457292
    458293# End /etc/xinetd.d/time</literal>
    459 EOF
    460 cat &gt; /etc/xinetd.d/rstatd &lt;&lt; "EOF" &amp;&amp;
    461 <literal># Begin /etc/xinetd.d/rstatd
    462 
    463 service rstatd
    464 {
    465    disable     = yes
    466    type        = RPC
    467    flags       = INTERCEPT
    468    rpc_version = 2-4
    469    socket_type = dgram
    470    protocol    = udp
    471    server      = /usr/sbin/rpc.rstatd
    472    wait        = yes
    473    user        = root
    474 }
    475 
    476 # End /etc/xinetd.d/rstatd</literal>
    477 EOF
    478 cat &gt; /etc/xinetd.d/rquotad &lt;&lt; "EOF" &amp;&amp;
    479 <literal># Begin /etc/xinetd.d/rquotad
    480 
    481 service rquotad
    482 {
    483    disable     = yes
    484    type        = RPC
    485    rpc_version = 1
    486    socket_type = dgram
    487    protocol    = udp
    488    wait        = yes
    489    user        = root
    490    server      = /usr/sbin/rpc.rstatd
    491 }
    492 
    493 # End /etc/xinetd.d/rquotad</literal>
    494 EOF
    495 cat &gt; /etc/xinetd.d/rusersd &lt;&lt; "EOF" &amp;&amp;
    496 <literal># Begin /etc/xinetd.d/rusersd
    497 
    498 service rusersd
    499 {
    500    disable     = yes
    501    type        = RPC
    502    rpc_version = 1-2
    503    socket_type = dgram
    504    protocol    = udp
    505    wait        = yes
    506    user        = root
    507    server      = /usr/sbin/rpc.rusersd
    508 }
    509 
    510 # End /etc/xinetd.d/rusersd</literal>
    511 EOF
    512 cat &gt; /etc/xinetd.d/sprayd &lt;&lt; "EOF" &amp;&amp;
    513 <literal># Begin /etc/xinetd.d/sprayd
    514 
    515 service sprayd
    516 {
    517    disable      = yes
    518    type         = RPC
    519    rpc_version  = 1
    520    socket_type  = dgram
    521    protocol     = udp
    522    wait         = yes
    523    user         = root
    524    server       = /usr/sbin/rpc.sprayd
    525 }
    526 
    527 # End /etc/xinetd.d/sprayd</literal>
    528 EOF
    529 cat &gt; /etc/xinetd.d/walld &lt;&lt; "EOF" &amp;&amp;
    530 <literal># Begin /etc/xinetd.d/walld
    531 
    532 service walld
    533 {
    534    disable      = yes
    535    type         = RPC
    536    rpc_version  = 1
    537    socket_type  = dgram
    538    protocol     = udp
    539    wait         = yes
    540    user         = nobody
    541    group        = tty
    542    server       = /usr/sbin/rpc.rwalld
    543 }
    544 
    545 # End /etc/xinetd.d/walld</literal>
    546 EOF
    547 cat &gt; /etc/xinetd.d/irc &lt;&lt; "EOF"
    548 <literal># Begin /etc/xinetd.d/irc
    549 
    550 service irc
    551 {
    552    disable      = yes
    553    socket_type  = stream
    554    wait         = no
    555    user         = root
    556    flags        = SENSOR
    557    type         = INTERNAL
    558    bind         = 192.168.1.30
    559    deny_time    = 60
    560 }
    561 
    562 # End /etc/xinetd.d/irc</literal>
    563294EOF</userinput></screen>
    564295
     
    675406<screen role="root"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
    676407
    677       <para>Checking the <filename>/var/log/daemon.log</filename> file
    678       should prove quite entertaining. This file may contain entries
    679       similar to the following:</para>
    680 
     408      <para>Check the <filename>/var/log/daemon.log</filename> to ensure the
     409      appropriate services are started. If no services are enabled, the program
     410      will not start without the <option>-stayalive</option> option.</para>
     411
     412<!--
    681413<screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
    682414executable [line=29]
     
    689421      <command>xinetd</command> is trying to control are not
    690422      installed yet.</para>
    691 
     423-->
    692424    </sect3>
    693425
Note: See TracChangeset for help on using the changeset viewer.