Ticket #219: samba-xinetd.patch

File samba-xinetd.patch, 2.0 KB (added by billy@…, 22 years ago)

add xinetd section

  • samba-config.xml

    diff --exclude=CVS -Naur ./samba-config.xml /home/billy/NEWBLFS/BOOK/server/other/samba/samba-config.xml
    old new  
    1831833. Select DOMAIN01 from the Log on to: combination box and click OK.
    184184</userinput></screen></para>
    185185
     186<para>Add the swat entry to <filename>/etc/services</filename>with the
     187following command: </para>
     188
     189<para><screen><userinput>
     190echo "swat            901/tcp" &gt;&gt; /etc/services
     191</userinput></screen></para>
     192
     193<para>If inetd is used, the following command will add the swat entry
     194to <filename>/etc/inetd.conf</filename>: </para>
     195<para><screen><userinput>
     196echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
     197    &gt;&gt; /etc/inetd.conf
     198</userinput></screen></para>
     199
     200<para>If xinetd is used, the following command will add the swat entry
     201to <filename>/etc/xinetd.conf</filename>: </para>
     202<para><screen><userinput>
     203cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"
     204service swat
     205{
     206    port            = 901
     207    socket_type     = stream
     208    wait            = no
     209    only_from       = 127.0.0.1
     210    user            = root
     211    server          = /usr/sbin/swat
     212    log_on_failure  += USERID
     213}
     214EOF
     215</userinput></screen></para>
     216
    186217<para>The Samba Web Administration Tool, swat, can be launched with the
    187218following command on SAMBABOX: </para>
    188219<para><screen><userinput>
  • samba-inst.xml

    diff --exclude=CVS -Naur ./samba-inst.xml /home/billy/NEWBLFS/BOOK/server/other/samba/samba-inst.xml
    old new  
    2323make install &amp;&amp;
    2424mkdir /etc/samba &amp;&amp;
    2525mkdir /etc/samba/private &amp;&amp;
    26 echo "swat            901/tcp" &gt;&gt; /etc/services &amp;&amp;
    27 echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
    28     &gt;&gt; /etc/inetd.conf
    2926</userinput></screen></para>
    3027</sect2>
    3128