This also included updating CVSserver, Subversion server, Fam, Qpopper, Samba, and Leafnode.
Could someone create this into an html file and tell me how it looks. I have not yet figured out how to view these files other than as XML in an editor.
This relates to bug 1089.
John
Index: BOOK/server/other/cvsserver.xml
===================================================================
--- BOOK/server/other/cvsserver.xml (revision 3588)
+++ BOOK/server/other/cvsserver.xml (working copy)
@@ -97,9 +97,11 @@
<filename>inetd.conf</filename> file.</para>
<para>If you use <command>xinetd</command>, the following command will add the
-pserver entry to <filename>/etc/xinetd.conf</filename>:</para>
+pserver entry to <filename>/etc/xinetd.d/cvspserver</filename>:</para>
-<screen><userinput><command>cat >> /etc/xinetd.conf <<
"EOF"</command>
+<screen><userinput><command>cat >> /etc/xinetd.d/cvspserver <<
"EOF"</command>
+# Begin /etc/xinetd.d/tcvspserver
+
service cvspserver
{
port = 2401
@@ -111,6 +113,8 @@
server = /usr/bin/cvs
server_args = -f --allow-root=/srv/cvsroot pserver
}
+
+# End /etc/xinetd.d/cvspserver
<command>EOF</command></userinput></screen>
<para>Issue a <command>/etc/rc.d/init.d/xinetd reload</command> to reread the
changed
<filename>xinetd.conf</filename> file.</para>
Index: BOOK/server/other/samba3.xml
===================================================================
--- BOOK/server/other/samba3.xml (revision 3588)
+++ BOOK/server/other/samba3.xml (working copy)
@@ -250,11 +250,13 @@
changed <filename>inetd.conf</filename> file.</para>
<para>If <command>xinetd</command> is used, the following command issued as
-the root user will add the swat_tunnel entry to
-<filename>/etc/xinetd.conf</filename> (you may need to modify or remove the
+the root user will create the swat_tunnel file
+<filename>/etc/xinetd.d/swat_tunnel</filename> (you may need to modify or
remove the
<quote>only_from</quote> line to include the desired host[s]):</para>
-<screen><userinput role='root'><command>cat >> /etc/xinetd.conf <<
"EOF"</command>
+<screen><userinput role='root'><command>cat >> /etc/xinetd.d/swat_tunnel
<< "EOF"</command>
+# Begin /etc/xinetd.d/swat_tunnel
+
service swat_tunnel
{
port = 902
@@ -265,6 +267,8 @@
server = /usr/sbin/swat
log_on_failure += USERID
}
+
+# End /etc/xinetd.d/swat_tunnel
<command>EOF</command></userinput></screen>
<para>Issue a <command>killall -HUP xinetd</command> to reread the
Index: BOOK/server/other/xinetd.xml
===================================================================
--- BOOK/server/other/xinetd.xml (revision 3588)
+++ BOOK/server/other/xinetd.xml (working copy)
@@ -79,10 +79,465 @@
<para>Ensure the path to all daemons is
<filename class="directory">/usr/sbin</filename>, rather than the default path
of <filename class="directory">/usr/etc</filename>, and install the
-<application>xinetd</application> configuration file by running the following
-command as the root user:</para>
+<application>xinetd</application> configuration files by running the following
+commands as the root user:</para>
-<screen><userinput role='root'><command>sed -e 's/etc/sbin/g'
xinetd/sample.conf > /etc/xinetd.conf</command>
+<screen><userinput role='root'><command>cat > /etc/xinetd.conf <<
"EOF"</command>
+# Begin /etc/xinetd
+# Configuration file for xinetd
+#
+
+defaults
+{
+ instances = 60
+ log_type = SYSLOG daemon
+ log_on_success = HOST PID USERID
+ log_on_failure = HOST USERID
+ cps = 25 30
+}
+
+# All service files are stored in the /etc/xinetd.d directory
+#
+includedir /etc/xinetd.d
+# End /etc/xinetd
+<command>EOF</command></userinput></screen>
+<screen><userinput role='root'><command>install -d -m755 -o root -g root
/etc/xinetd.d &&</command>
+<command>cat > /etc/xinetd.d/login << "EOF" &&</command>
+# Begin /etc/xinetd.d/login
+
+service login
+{
+ disable = yes
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ server = /usr/sbin/in.rlogind
+ log_type = SYSLOG local4 info
+}
+
+# End /etc/xinetd.d/login
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/shell << "EOF" &&</command>
+# Begin /etc/xinetd.d/shell
+
+service shell
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = root
+ instances = UNLIMITED
+ flags = IDONLY
+ log_on_success += USERID
+ server = /usr/sbin/in.rshd
+}
+
+# End /etc/xinetd.d/shell
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/exec << "EOF" &&</command>
+# Begin /etc/xinetd.d/exec
+
+service exec
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/in.rexecd
+}
+
+# End /etc/xinetd.d/exec
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/comsat << "EOF" &&</command>
+# Begin /etc/xinetd.d/comsat
+
+service comsat
+{
+ disable = yes
+ socket_type = dgram
+ wait = yes
+ user = nobody
+ group = tty
+ server = /usr/sbin/in.comsat
+}
+
+# End /etc/xinetd.d/comsat
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/talk << "EOF" &&</command>
+# Begin /etc/xinetd.d/talk
+
+service talk
+{
+ disable = yes
+ socket_type = dgram
+ wait = yes
+ user = root
+ server = /usr/sbin/in.talkd
+}
+
+# End /etc/xinetd.d/talk
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/ntalk << "EOF" &&</command>
+# Begin /etc/xinetd.d/ntalk
+
+service ntalk
+{
+ disable = yes
+ socket_type = dgram
+ wait = yes
+ user = root
+ server = /usr/sbin/in.ntalkd
+}
+
+# End /etc/xinetd.d/ntalk
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/telnet << "EOF" &&</command>
+# Begin /etc/xinetd.d/telnet
+
+service telnet
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/in.telnetd
+ bind = 127.0.0.1
+ log_on_failure += USERID
+}
+
+service telnet
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = root
+# server = /usr/sbin/in.telnetd
+ bind = 192.231.139.175
+ redirect = 128.138.202.20 23
+ log_on_failure += USERID
+}
+
+# End /etc/xinetd.d/telnet
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/ftp << "EOF" &&</command>
+# Begin /etc/xinetd.d/ftp
+
+service ftp
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/in.ftpd
+ server_args = -l
+ instances = 4
+ log_on_success += DURATION USERID
+ log_on_failure += USERID
+ access_times = 2:00-8:59 12:00-23:59
+ nice = 10
+}
+
+# End /etc/xinetd.d/ftp
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/tftp << "EOF" &&</command>
+# Begin /etc/xinetd.d/tftp
+
+service tftp
+{
+ disable = yes
+ socket_type = dgram
+ wait = yes
+ user = root
+ server = /usr/sbin/in.tftpd
+ server_args = -s /tftpboot
+}
+
+# End /etc/xinetd.d/tftp
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/finger << "EOF" &&</command>
+# Begin /etc/xinetd.d/finger
+
+service finger
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = nobody
+ server = /usr/sbin/in.fingerd
+}
+
+# End /etc/xinetd.d/finger
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/systat << "EOF" &&</command>
+# Begin /etc/xinetd.d/systat
+
+service systat
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = nobody
+ server = /usr/bin/ps
+ server_args = -auwwx
+ only_from = 128.138.209.0
+ log_on_success = HOST
+}
+
+# End /etc/xinetd.d/systat
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/netstat << "EOF" &&</command>
+# Begin /etc/xinetd.d/netstat
+
+service netstat
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = nobody
+ server = /usr/ucb/netstat
+ server_args = -f inet
+ only_from = 128.138.209.0
+ log_on_success = HOST
+}
+
+# End /etc/xinetd.d/netstat
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/echo << "EOF" &&</command>
+# Begin /etc/xinetd.d/echo
+
+service echo
+{
+ disable = yes
+ type = INTERNAL
+ id = echo-stream
+ socket_type = stream
+ protocol = tcp
+ user = root
+ wait = no
+}
+
+service echo
+{
+ disable = yes
+ type = INTERNAL
+ id = echo-dgram
+ socket_type = dgram
+ protocol = udp
+ user = root
+ wait = yes
+}
+
+# End /etc/xinetd.d/echo
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/chargen << "EOF" &&</command>
+# Begin /etc/xinetd.d/chargen
+
+service chargen
+{
+ disable = yes
+ type = INTERNAL
+ id = chargen-stream
+ socket_type = stream
+ protocol = tcp
+ user = root
+ wait = no
+}
+
+service chargen
+{
+ disable = yes
+ type = INTERNAL
+ id = chargen-dgram
+ socket_type = dgram
+ protocol = udp
+ user = root
+ wait = yes
+}
+
+# End /etc/xinetd.d/chargen
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/daytime << "EOF" &&</command>
+# Begin /etc/xinetd.d/daytime
+
+service daytime
+{
+ disable = yes
+ type = INTERNAL
+ id = daytime-stream
+ socket_type = stream
+ protocol = tcp
+ user = root
+ wait = no
+}
+
+service daytime
+{
+ disable = yes
+ type = INTERNAL
+ id = daytime-dgram
+ socket_type = dgram
+ protocol = udp
+ user = root
+ wait = yes
+}
+
+# End /etc/xinetd.d/daytime
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/time << "EOF" &&</command>
+# Begin /etc/xinetd.d/time
+
+service time
+{
+ disable = yes
+ type = INTERNAL
+ id = time-stream
+ socket_type = stream
+ protocol = tcp
+ user = root
+ wait = no
+}
+
+
+service time
+{
+ disable = yes
+ type = INTERNAL
+ id = time-dgram
+ socket_type = dgram
+ protocol = udp
+ user = root
+ wait = yes
+}
+
+# End /etc/xinetd.d/time
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/rstatd << "EOF" &&</command>
+# Begin /etc/xinetd.d/rstatd
+
+ervice rstatd
+{
+ disable = yes
+ type = RPC
+ flags = INTERCEPT
+ rpc_version = 2-4
+ socket_type = dgram
+ protocol = udp
+ server = /usr/sbin/rpc.rstatd
+ wait = yes
+ user = root
+}
+
+# End /etc/xinetd.d/rstatd
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/rquotad << "EOF" &&</command>
+# Begin /etc/xinetd.d/rquotad
+
+service rquotad
+{
+ disable = yes
+ type = RPC
+ rpc_version = 1
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = root
+ server = /usr/sbin/rpc.rstatd
+}
+
+# End /etc/xinetd.d/rquotad
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/rusersd << "EOF" &&</command>
+# Begin /etc/xinetd.d/rusersd
+
+service rusersd
+{
+ disable = yes
+ type = RPC
+ rpc_version = 1-2
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = root
+ server = /usr/sbin/rpc.rusersd
+}
+
+# End /etc/xinetd.d/rusersd
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/sprayd << "EOF" &&</command>
+# Begin /etc/xinetd.d/sprayd
+
+service sprayd
+{
+ disable = yes
+ type = RPC
+ rpc_version = 1
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = root
+ server = /usr/sbin/rpc.sprayd
+}
+
+# End /etc/xinetd.d/sprayd
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/walld << "EOF" &&</command>
+# Begin /etc/xinetd.d/walld
+
+service walld
+{
+ disable = yes
+ type = RPC
+ rpc_version = 1
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = nobody
+ group = tty
+ server = /usr/sbin/rpc.rwalld
+}
+
+# End /etc/xinetd.d/walld
+<command>EOF</command>
+
+<command>cat > /etc/xinetd.d/irc << "EOF"</command>
+# Begin /etc/xinetd.d/irc
+
+service irc
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = root
+ flags = SENSOR
+ type = INTERNAL
+ bind = 192.168.1.30
+ deny_time = 60
+}
+
+# End /etc/xinetd.d/irc
+<command>EOF</command>
+
</userinput></screen>
<para>The format of the <filename>/etc/xinetd.conf</filename> is
Index: BOOK/server/other/leafnode.xml
===================================================================
--- BOOK/server/other/leafnode.xml (revision 3588)
+++ BOOK/server/other/leafnode.xml (working copy)
@@ -161,9 +161,11 @@
<para>Alternatively, <application>Leafnode</application> may be configured to
use <command>xinetd</command> by adding an entry to the
-<filename>/etc/xinetd.conf</filename> file with the following command:</para>
+<filename>/etc/xinetd.d/nntp</filename> file with the following command:</para>
-<screen><userinput><command>cat >> /etc/xinetd.conf <<
"EOF"</command>
+<screen><userinput><command>cat >> /etc/xinetd.d/nntp <<
"EOF"</command>
+# Begin /etc/xinetd.d/nntp
+
service nntp
{
flags = NAMEINARGS NOLIBWRAP
@@ -176,6 +178,8 @@
instances = 7
per_source = 3
}
+
+# End /etc/xinetd.d/nntp
<command>EOF</command></userinput></screen>
<para>Issue a <command>killall -HUP xinetd</command> to reread the
Index: BOOK/server/other/svnserver.xml
===================================================================
--- BOOK/server/other/svnserver.xml (revision 3588)
+++ BOOK/server/other/svnserver.xml (working copy)
@@ -204,9 +204,11 @@
<command>EOF</command></userinput></screen>
<para>If you use <command>xinetd</command>, add the following
-lines to the <filename>/etc/xinetd.conf</filename> file:</para>
+lines to the <filename>/etc/xinetd.d/svn</filename> file:</para>
-<screen><userinput><command>cat >> /etc/xinetd.conf <<
"EOF"</command>
+<screen><userinput><command>cat >> /etc/xinetd.d/svn <<
"EOF"</command>
+# Begin /etc/xinetd.d/svn
+
service svn
{
port = 3690
@@ -217,6 +219,8 @@
server = /usr/bin/svnserve
server_args = -i -r /srv/svn/repositories
}
+
+# End /etc/xinetd.d/svn
<command>EOF</command></userinput></screen>
<para>Finally, if you wish to simply start the sever at
Index: BOOK/server/mail/qpopper.xml
===================================================================
--- BOOK/server/mail/qpopper.xml (revision 3588)
+++ BOOK/server/mail/qpopper.xml (working copy)
@@ -104,9 +104,11 @@
<application>Qpopper</application> entry to
<filename>/etc/xinetd.conf</filename>:</para>
<indexterm zone="qpopper qpopper-config">
-<primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary></indexterm>
+<primary sortas="e-etc-xinetd.conf">/etc/xinetd.d/pop3</primary></indexterm>
-<screen><userinput><command>cat >> /etc/xinetd.conf <<
"EOF"</command>
+<screen><userinput><command>cat >> /etc/xinetd.d/pop3 <<
"EOF"</command>
+# Begin /etc/xinetd.d/pop3
+
service pop3
{
port = 110
@@ -116,6 +118,8 @@
user = root
server = /usr/sbin/popper
}
+
+# End /etc/xinetd.d/pop3
<command>EOF</command></userinput></screen>
<para>Issue a <command>killall -HUP xinetd</command> to reread the changed
Index: BOOK/general/genlib/fam.xml
===================================================================
--- BOOK/general/genlib/fam.xml (revision 3588)
+++ BOOK/general/genlib/fam.xml (working copy)
@@ -116,11 +116,13 @@
>> /etc/inetd.conf</command></userinput></screen>
<para>If you use <application>xinetd</application>, add an entry to
-<filename>/etc/xinetd.conf</filename> with the following command (be
+<filename>/etc/xinetd.d/sgi_fam</filename> with the following command (be
sure the "nogroup" group exists):</para>
-<screen><userinput><command>cat >> /etc/xinetd.conf <<
"EOF"</command>
- # description: FAM - file alteration monitor
+<screen><userinput><command>cat >> /etc/xinetd.d/sgi_fam <<
"EOF"</command>
+# Begin /etc/xinetd.d/sgi_fam
+
+# description: FAM - file alteration monitor
service sgi_fam
{
type = RPC UNLISTED
@@ -133,6 +135,8 @@
rpc_version = 2
rpc_number = 391002
}
+
+# End /etc/xinetd.d/sgi_fam
<command>EOF</command></userinput></screen>
<para>If you do not have an <command>inetd</command> daemon installed and have
-- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
