Changeset 1f672c1


Ignore:
Timestamp:
04/01/2005 05:31:37 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 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:
0fa91c66
Parents:
d227be52
Message:

Update to xinetd configuration files from patch by John Gnew

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

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/fam.xml

    rd227be52 r1f672c1  
    116116    &gt;&gt; /etc/inetd.conf</command></userinput></screen>
    117117
    118 <para>If you use <application>xinetd</application>, add an entry to
    119 <filename>/etc/xinetd.conf</filename> with the following command (be
    120 sure the "nogroup" group exists):</para>
     118<para>If you use <application>xinetd</application>, the following command will create
     119the <application><acronym>FAM</acronym></application> file as
     120<filename>/etc/xinetd.d/sgi_fam</filename>:
     121(be sure the "nogroup" group exists):</para>
    121122
    122 <screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
    123     # description: FAM - file alteration monitor
     123<screen><userinput><command>cat &gt;&gt; /etc/xinetd.d/sgi_fam &lt;&lt; "EOF"</command>
     124# Begin /etc/xinetd.d/sgi_fam
     125
     126# description: FAM - file alteration monitor
    124127    service sgi_fam
    125128    {
     
    134137        rpc_number      = 391002
    135138    }
     139
     140# End /etc/xinetd.d/sgi_fam
    136141<command>EOF</command></userinput></screen>
    137142
  • introduction/welcome/changelog.xml

    rd227be52 r1f672c1  
    2222
    2323<itemizedlist>
     24
     25<listitem><para>March 31st, 2005 [bdubbs]: Updated the install instructions
     26for xinetd to use /etc/xinetd.d/ directory structure. Patch by John Gnew.
     27</para></listitem>
    2428
    2529<listitem><para>March 31st, 2005 [randy]: Updated to libxml2-2.6.18 and
  • server/mail/qpopper.xml

    rd227be52 r1f672c1  
    101101<filename>inetd.conf</filename> file.</para>
    102102
    103 <para>If you use <command>xinetd</command>, the following command will add the
    104 <application>Qpopper</application> entry to
    105 <filename>/etc/xinetd.conf</filename>:</para>
     103<para>If you use <command>xinetd</command>, the following command will create the
     104<application>Qpopper</application> file as <filename>/etc/xinetd.d/pop3</filename>:</para>
    106105<indexterm zone="qpopper qpopper-config">
    107 <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary></indexterm>
     106<primary sortas="e-etc-xinetd.conf">/etc/xinetd.d/pop3</primary></indexterm>
    108107
    109 <screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
     108<screen><userinput><command>cat &gt;&gt; /etc/xinetd.d/pop3 &lt;&lt; "EOF"</command>
     109# Begin /etc/xinetd.d/pop3
     110
    110111service pop3
    111112{
     
    117118    server          = /usr/sbin/popper
    118119}
     120
     121# End /etc/xinetd.d/pop3
    119122<command>EOF</command></userinput></screen>
    120123
  • server/other/cvsserver.xml

    rd227be52 r1f672c1  
    8989
    9090<para>If you use <command>inetd</command>, the following command will add the
    91 pserver entry to <filename>/etc/inetd.conf</filename>:</para>
     91<application><acronym>CVS</acronym></application> entry to <filename>/etc/inetd.conf</filename>:</para>
    9292
    9393<screen><userinput><command>echo "2401  stream  tcp  nowait  root  /usr/bin/cvs cvs -f \
     
    9797<filename>inetd.conf</filename> file.</para>
    9898
    99 <para>If you use <command>xinetd</command>, the following command will add the
    100 pserver entry to <filename>/etc/xinetd.conf</filename>:</para>
     99<para>If you use <command>xinetd</command>, the following command will create the
     100<acronym>CVS</acronym> file as <filename>/etc/xinetd.d/cvspserver</filename>:</para>
    101101
    102 <screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
     102<screen><userinput><command>cat &gt;&gt; /etc/xinetd.d/cvspserver &lt;&lt; "EOF"</command>
     103# Begin /etc/xinetd.d/cvspserver
     104
    103105     service cvspserver
    104106     {
     
    112114          server_args = -f --allow-root=/srv/cvsroot pserver
    113115     }
     116
     117# End /etc/xinetd.d/cvspserver
    114118<command>EOF</command></userinput></screen>
    115119<para>Issue a <command>/etc/rc.d/init.d/xinetd reload</command> to reread the changed
  • server/other/leafnode.xml

    rd227be52 r1f672c1  
    160160changed <filename>inetd.conf</filename> file.</para>
    161161
    162 <para>Alternatively, <application>Leafnode</application> may be configured to
    163 use <command>xinetd</command> by adding an entry to the
    164 <filename>/etc/xinetd.conf</filename> file with the following command:</para>
    165 
    166 <screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
     162<para>If you use <command>xinetd</command>, the following command will create the
     163<application>Leafnode</application> file as <filename>/etc/xinetd.d/nntp</filename>:</para>
     164
     165<screen><userinput><command>cat &gt;&gt; /etc/xinetd.d/nntp &lt;&lt; "EOF"</command>
     166# Begin /etc/xinetd.d/nntp
     167
    167168        service nntp
    168169        {
     
    177178           per_source      = 3
    178179        }
     180
     181# End /etc/xinetd.d/nntp
    179182<command>EOF</command></userinput></screen>
    180183
  • server/other/samba3.xml

    rd227be52 r1f672c1  
    250250changed <filename>inetd.conf</filename> file.</para>
    251251
    252 <para>If <command>xinetd</command> is used, the following command issued as
    253 the root user will add the swat_tunnel entry to
    254 <filename>/etc/xinetd.conf</filename> (you may need to modify or remove the
     252<para>If you use <command>xinetd</command>, the following command will create the
     253<application>Samba</application> file as <filename>/etc/xinetd.d/swat_tunnel</filename>:
     254(you may need to modify or remove the
    255255<quote>only_from</quote> line to include the desired host[s]):</para>
    256256
    257 <screen><userinput role='root'><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
     257<screen><userinput role='root'><command>cat &gt;&gt; /etc/xinetd.d/swat_tunnel &lt;&lt; "EOF"</command>
     258# Begin /etc/xinetd.d/swat_tunnel
     259
    258260service swat_tunnel
    259261{
     
    266268    log_on_failure  += USERID
    267269}
     270
     271# End /etc/xinetd.d/swat_tunnel
    268272<command>EOF</command></userinput></screen>
    269273
  • server/other/svnserver.xml

    rd227be52 r1f672c1  
    204204<command>EOF</command></userinput></screen>
    205205
    206 <para>If you use <command>xinetd</command>, add the following
    207 lines to the <filename>/etc/xinetd.conf</filename> file:</para>
    208 
    209 <screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
     206<para>If you use <command>xinetd</command>, the following command will create the
     207<application>Subversion server</application> file as <filename>/etc/xinetd.d/svn</filename>:</para>
     208
     209<screen><userinput><command>cat &gt;&gt; /etc/xinetd.d/svn &lt;&lt; "EOF"</command>
     210# Begin /etc/xinetd.d/svn
     211
    210212service svn
    211213{
     
    218220        server_args             = -i -r /srv/svn/repositories
    219221}
     222
     223# End /etc/xinetd.d/svn
    220224<command>EOF</command></userinput></screen>
    221225
  • server/other/xinetd.xml

    rd227be52 r1f672c1  
    8080<filename class="directory">/usr/sbin</filename>, rather than the default path
    8181of <filename class="directory">/usr/etc</filename>, and install the
    82 <application>xinetd</application> configuration file by running the following
    83 command as the root user:</para>
    84 
    85 <screen><userinput role='root'><command>sed -e 's/etc/sbin/g' xinetd/sample.conf &gt; /etc/xinetd.conf</command>
     82<application>xinetd</application> configuration files by running the following
     83commands as the root user:</para>
     84
     85<screen><userinput role='root'><command>cat &gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
     86# Begin /etc/xinetd
     87# Configuration file for xinetd
     88#
     89
     90defaults
     91{
     92      instances       = 60
     93      log_type        = SYSLOG daemon
     94      log_on_success  = HOST PID USERID
     95      log_on_failure  = HOST USERID
     96      cps             = 25 30
     97}
     98
     99# All service files are stored in the /etc/xinetd.d directory
     100#
     101includedir /etc/xinetd.d
     102# End /etc/xinetd
     103<command>EOF</command></userinput></screen>
     104<para>All of the following files have the statement, "disable = yes". To activate
     105any of the services, this statement will need to be changed to "disable = no".</para>
     106
     107<note><para>The following files are listed to demonstrate classic
     108<application>xinetd</application> applications.  In many cases, these
     109applications are not needed.  In some cases, the applications are
     110considered security risks.  For example, telnet, rlogin, rexec, and rsh
     111transmit unencrypted usernames and passwords over the network and can be easily
     112replaced with a more secure alternative: ssh.</para></note>
     113
     114<screen><userinput role='root'><command>install -d -m755 /etc/xinetd.d &amp;&amp;</command>
     115<command>cat &gt; /etc/xinetd.d/login &lt;&lt; "EOF" &amp;&amp;</command>
     116# Begin /etc/xinetd.d/login
     117
     118service login
     119{
     120   disable        = yes
     121   socket_type    = stream
     122   protocol       = tcp
     123   wait           = no
     124   user           = root
     125   server         = /usr/sbin/in.rlogind
     126   log_type       = SYSLOG local4 info
     127}
     128
     129# End /etc/xinetd.d/login
     130<command>EOF
     131cat &gt; /etc/xinetd.d/shell &lt;&lt; "EOF" &amp;&amp;</command>
     132# Begin /etc/xinetd.d/shell
     133
     134service shell
     135{
     136   disable        = yes
     137   socket_type    = stream
     138   wait           = no
     139   user           = root
     140   instances      = UNLIMITED
     141   flags          = IDONLY
     142   log_on_success += USERID
     143   server         = /usr/sbin/in.rshd
     144}
     145
     146# End /etc/xinetd.d/shell
     147<command>EOF
     148cat &gt; /etc/xinetd.d/exec &lt;&lt; "EOF" &amp;&amp;</command>
     149# Begin /etc/xinetd.d/exec
     150
     151service exec
     152{
     153   disable        = yes
     154   socket_type    = stream
     155   wait           = no
     156   user           = root
     157   server         = /usr/sbin/in.rexecd
     158}
     159
     160# End /etc/xinetd.d/exec
     161<command>EOF
     162cat &gt; /etc/xinetd.d/comsat &lt;&lt; "EOF" &amp;&amp;</command>
     163# Begin /etc/xinetd.d/comsat
     164
     165service comsat
     166{
     167   disable        = yes
     168   socket_type    = dgram
     169   wait           = yes
     170   user           = nobody
     171   group          = tty
     172   server         = /usr/sbin/in.comsat
     173}
     174
     175# End /etc/xinetd.d/comsat
     176<command>EOF
     177cat &gt; /etc/xinetd.d/talk &lt;&lt; "EOF" &amp;&amp;</command>
     178# Begin /etc/xinetd.d/talk
     179
     180service talk
     181{
     182   disable        = yes
     183   socket_type    = dgram
     184   wait           = yes
     185   user           = root
     186   server         = /usr/sbin/in.talkd
     187}
     188
     189# End /etc/xinetd.d/talk
     190<command>EOF
     191cat &gt; /etc/xinetd.d/ntalk &lt;&lt; "EOF" &amp;&amp;</command>
     192# Begin /etc/xinetd.d/ntalk
     193
     194service ntalk
     195{
     196   disable        = yes
     197   socket_type    = dgram
     198   wait           = yes
     199   user           = root
     200   server         = /usr/sbin/in.ntalkd
     201}
     202
     203# End /etc/xinetd.d/ntalk
     204<command>EOF
     205cat &gt; /etc/xinetd.d/telnet &lt;&lt; "EOF" &amp;&amp;</command>
     206# Begin /etc/xinetd.d/telnet
     207
     208service telnet
     209{
     210   disable        = yes
     211   socket_type    = stream     
     212   wait           = no
     213   user           = root
     214   server         = /usr/sbin/in.telnetd
     215   bind           = 127.0.0.1
     216   log_on_failure += USERID
     217}
     218
     219service telnet
     220{
     221   disable        = yes
     222   socket_type    = stream     
     223   wait           = no
     224   user           = root
     225#  server         = /usr/sbin/in.telnetd
     226   bind           = 192.231.139.175
     227   redirect       = 128.138.202.20 23
     228   log_on_failure += USERID
     229}
     230
     231# End /etc/xinetd.d/telnet
     232<command>EOF
     233cat &gt; /etc/xinetd.d/ftp &lt;&lt; "EOF" &amp;&amp;</command>
     234# Begin /etc/xinetd.d/ftp
     235
     236service ftp
     237{
     238   disable        = yes
     239   socket_type    = stream
     240   wait           = no
     241   user           = root
     242   server         = /usr/sbin/in.ftpd
     243   server_args    = -l
     244   instances      = 4
     245   log_on_success += DURATION USERID
     246   log_on_failure += USERID
     247   access_times   = 2:00-8:59 12:00-23:59
     248   nice           = 10
     249}
     250
     251# End /etc/xinetd.d/ftp
     252<command>EOF
     253cat &gt; /etc/xinetd.d/tftp &lt;&lt; "EOF" &amp;&amp;</command>
     254# Begin /etc/xinetd.d/tftp
     255
     256service tftp
     257{
     258   disable        = yes
     259   socket_type    = dgram
     260   wait           = yes
     261   user           = root
     262   server         = /usr/sbin/in.tftpd
     263   server_args    = -s /tftpboot
     264}
     265
     266# End /etc/xinetd.d/tftp
     267<command>EOF
     268cat &gt; /etc/xinetd.d/finger &lt;&lt; "EOF" &amp;&amp;</command>
     269# Begin /etc/xinetd.d/finger
     270
     271service finger
     272{
     273   disable        = yes
     274   socket_type    = stream
     275   wait           = no
     276   user           = nobody
     277   server         = /usr/sbin/in.fingerd
     278}
     279
     280# End /etc/xinetd.d/finger
     281<command>EOF
     282cat &gt; /etc/xinetd.d/systat &lt;&lt; "EOF" &amp;&amp;</command>
     283# Begin /etc/xinetd.d/systat
     284
     285service systat
     286{
     287   disable           = yes
     288   socket_type       = stream
     289   wait              = no
     290   user              = nobody
     291   server            = /usr/bin/ps
     292   server_args       = -auwwx
     293   only_from         = 128.138.209.0
     294   log_on_success    = HOST
     295}
     296
     297# End /etc/xinetd.d/systat
     298<command>EOF
     299cat &gt; /etc/xinetd.d/netstat &lt;&lt; "EOF" &amp;&amp;</command>
     300# Begin /etc/xinetd.d/netstat
     301
     302service netstat
     303{
     304   disable           = yes
     305   socket_type       = stream
     306   wait              = no
     307   user              = nobody
     308   server            = /usr/ucb/netstat
     309   server_args       = -f inet
     310   only_from         = 128.138.209.0
     311   log_on_success    = HOST
     312}
     313
     314# End /etc/xinetd.d/netstat
     315<command>EOF
     316cat &gt; /etc/xinetd.d/echo &lt;&lt; "EOF" &amp;&amp;</command>
     317# Begin /etc/xinetd.d/echo
     318
     319service echo
     320{
     321   disable     = yes
     322   type        = INTERNAL
     323   id          = echo-stream
     324   socket_type = stream
     325   protocol    = tcp
     326   user        = root
     327   wait        = no
     328}
     329
     330service echo
     331{
     332   disable     = yes
     333   type        = INTERNAL
     334   id          = echo-dgram
     335   socket_type = dgram
     336   protocol    = udp
     337   user        = root
     338   wait        = yes
     339}
     340
     341# End /etc/xinetd.d/echo
     342<command>EOF
     343cat &gt; /etc/xinetd.d/chargen &lt;&lt; "EOF" &amp;&amp;</command>
     344# Begin /etc/xinetd.d/chargen
     345
     346service chargen
     347{
     348   disable        = yes
     349   type           = INTERNAL
     350   id             = chargen-stream
     351   socket_type    = stream
     352   protocol       = tcp
     353   user           = root
     354   wait           = no
     355}
     356
     357service chargen
     358{
     359   disable        = yes
     360   type           = INTERNAL
     361   id             = chargen-dgram
     362   socket_type    = dgram
     363   protocol       = udp
     364   user           = root
     365   wait           = yes
     366}
     367
     368# End /etc/xinetd.d/chargen
     369<command>EOF
     370cat &gt; /etc/xinetd.d/daytime &lt;&lt; "EOF" &amp;&amp;</command>
     371# Begin /etc/xinetd.d/daytime
     372
     373service daytime
     374{
     375   disable        = yes
     376   type           = INTERNAL
     377   id             = daytime-stream
     378   socket_type    = stream
     379   protocol       = tcp
     380   user           = root
     381   wait           = no
     382}
     383
     384service daytime
     385{
     386   disable        = yes
     387   type           = INTERNAL
     388   id             = daytime-dgram
     389   socket_type    = dgram
     390   protocol       = udp
     391   user           = root
     392   wait           = yes
     393}
     394
     395# End /etc/xinetd.d/daytime
     396<command>EOF
     397cat &gt; /etc/xinetd.d/time &lt;&lt; "EOF" &amp;&amp;</command>
     398# Begin /etc/xinetd.d/time
     399
     400service time
     401{
     402   disable        = yes
     403   type           = INTERNAL
     404   id             = time-stream
     405   socket_type    = stream
     406   protocol       = tcp
     407   user           = root
     408   wait           = no
     409}
     410
     411
     412service time
     413{
     414   disable        = yes
     415   type           = INTERNAL
     416   id             = time-dgram
     417   socket_type    = dgram
     418   protocol       = udp
     419   user           = root
     420   wait           = yes
     421}
     422
     423# End /etc/xinetd.d/time
     424<command>EOF
     425cat &gt; /etc/xinetd.d/rstatd &lt;&lt; "EOF" &amp;&amp;</command>
     426# Begin /etc/xinetd.d/rstatd
     427
     428ervice rstatd
     429{
     430   disable     = yes
     431   type        = RPC
     432   flags       = INTERCEPT
     433   rpc_version = 2-4
     434   socket_type = dgram
     435   protocol    = udp
     436   server      = /usr/sbin/rpc.rstatd
     437   wait        = yes
     438   user        = root
     439}
     440
     441# End /etc/xinetd.d/rstatd
     442<command>EOF
     443cat &gt; /etc/xinetd.d/rquotad &lt;&lt; "EOF" &amp;&amp;</command>
     444# Begin /etc/xinetd.d/rquotad
     445
     446service rquotad
     447{
     448   disable     = yes
     449   type        = RPC
     450   rpc_version = 1
     451   socket_type = dgram
     452   protocol    = udp
     453   wait        = yes
     454   user        = root
     455   server      = /usr/sbin/rpc.rstatd
     456}
     457
     458# End /etc/xinetd.d/rquotad
     459<command>EOF
     460cat &gt; /etc/xinetd.d/rusersd &lt;&lt; "EOF" &amp;&amp;</command>
     461# Begin /etc/xinetd.d/rusersd
     462
     463service rusersd
     464{
     465   disable     = yes
     466   type        = RPC
     467   rpc_version = 1-2
     468   socket_type = dgram
     469   protocol    = udp
     470   wait        = yes
     471   user        = root
     472   server      = /usr/sbin/rpc.rusersd
     473}
     474
     475# End /etc/xinetd.d/rusersd
     476<command>EOF
     477cat &gt; /etc/xinetd.d/sprayd &lt;&lt; "EOF" &amp;&amp;</command>
     478# Begin /etc/xinetd.d/sprayd
     479
     480service sprayd
     481{
     482   disable      = yes
     483   type         = RPC
     484   rpc_version  = 1
     485   socket_type  = dgram
     486   protocol     = udp
     487   wait         = yes
     488   user         = root
     489   server       = /usr/sbin/rpc.sprayd
     490}
     491
     492# End /etc/xinetd.d/sprayd
     493<command>EOF
     494cat &gt; /etc/xinetd.d/walld &lt;&lt; "EOF" &amp;&amp;</command>
     495# Begin /etc/xinetd.d/walld
     496
     497service walld
     498{
     499   disable      = yes
     500   type         = RPC
     501   rpc_version  = 1
     502   socket_type  = dgram
     503   protocol     = udp
     504   wait         = yes
     505   user         = nobody
     506   group        = tty
     507   server       = /usr/sbin/rpc.rwalld
     508}
     509
     510# End /etc/xinetd.d/walld
     511<command>EOF
     512cat &gt; /etc/xinetd.d/irc &lt;&lt; "EOF"</command>
     513# Begin /etc/xinetd.d/irc
     514
     515service irc
     516{
     517   disable      = yes
     518   socket_type  = stream
     519   wait         = no
     520   user         = root
     521   flags        = SENSOR
     522   type         = INTERNAL
     523   bind         = 192.168.1.30
     524   deny_time    = 60
     525}
     526
     527# End /etc/xinetd.d/irc
     528<command>EOF</command>
     529
    86530</userinput></screen>
    87531
Note: See TracChangeset for help on using the changeset viewer.