Ignore:
Timestamp:
09/23/2003 08:34:30 PM (21 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 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, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
95079c36
Parents:
178f7b4
Message:

added chapter intros 16, 18, 20

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/other/samba/samba-config.xml

    r178f7b4 r377584f  
    99documentation by pointing a web browser to:</para>
    1010
    11 <para><screen><userinput>file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770.</userinput></screen></para>
     11<screen><userinput><command>file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770.</command></userinput></screen>
    1212
    1313<sect3><title>Config files</title>
     
    1616
    1717<para>First we set up some directories needed by Samba:</para>
    18 <para><screen><userinput>mkdir /var/lib/samba &amp;&amp;
     18<screen><userinput><command>mkdir /var/lib/samba &amp;&amp;
    1919mkdir /var/lib/samba/netlogon &amp;&amp;
    2020mkdir /var/lib/samba/ntprofile &amp;&amp;
    2121mkdir /var/lib/samba/profiles &amp;&amp;
    22 chmod -R 1777 /var/lib/samba</userinput></screen></para>
     22chmod -R 1777 /var/lib/samba</command></userinput></screen>
    2323
    2424<para>And the Samba configuration file: </para>
    25 <para><screen><userinput>cat &gt; /etc/samba/smb.conf &lt;&lt; "EOF"</userinput>
     25<screen><userinput><command>cat &gt; /etc/samba/smb.conf &lt;&lt; "EOF"</command>
    2626[global]
    2727    netbios name = SAMBABOX
     
    6060        read only = no
    6161        public = no
    62 <userinput>EOF </userinput></screen></para>
     62<command>EOF</command></userinput></screen>
    6363
    6464<para>Now add the machine trust account for WIN2KBOX:</para>
    65 <para><screen><userinput>/usr/sbin/useradd -g 100 -d /dev/null -c \
     65<screen><userinput><command>/usr/sbin/useradd -g 100 -d /dev/null -c \
    6666    "machine nickname" -s /bin/false win2kbox$ &amp;&amp;
    6767passwd -l win2kbox$ &amp;&amp;
    68 smbpasswd -a -m win2kbox</userinput></screen></para>
     68smbpasswd -a -m win2kbox</command></userinput></screen>
    6969
    7070<para>Create the Samba boot script:</para>
    71 <para><screen><userinput>cat &gt; /etc/rc.d/init.d/samba &lt;&lt; "EOF"</userinput>
     71<screen><userinput><command>cat &gt; /etc/rc.d/init.d/samba &lt;&lt; "EOF"</command>
    7272#!/bin/bash
    7373# Begin $rc_base/init.d/samba
     
    110110esac
    111111# End $rc_base/init.d/samba
    112 <userinput>EOF</userinput></screen></para>
     112<command>EOF</command></userinput></screen>
    113113<para>Add the run level symlinks:</para>
    114 <para><screen><userinput>chmod 754 /etc/rc.d/init.d/samba &amp;&amp;
     114<screen><userinput>chmod 754 /etc/rc.d/init.d/samba &amp;&amp;
    115115ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K48samba &amp;&amp;
    116116ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc1.d/K48samba &amp;&amp;
     
    119119ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc4.d/S24samba &amp;&amp;
    120120ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc5.d/S24samba &amp;&amp;
    121 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K48samba</userinput></screen></para>
     121ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K48samba</userinput></screen>
    122122
    123123<para>Now, we'll use our new boot script to start Samba: </para>
    124 <para><screen><userinput>/etc/rc.d/init.d/samba start</userinput></screen></para>
     124<screen><userinput><command>/etc/rc.d/init.d/samba start</command></userinput></screen>
    125125<para>We have to add the SAMBABOX root account to the Samba user list
    126126first in order to join WIN2KBOX to the DOMAIN01 domain: </para>
    127127
    128 <para><screen><userinput>smbpasswd -a root</userinput></screen></para>
     128<screen><userinput><command>smbpasswd -a root</command></userinput></screen>
    129129
    130130<para>After starting Samba and adding root to the Samba user list, the
    131131first machine we'll join to DOMAIN01 will be WIN2KBOX, the Windows
    1321322000 Server box we created the machine trust account for.  On
    133 WIN2KBOX:</para><para><screen><userinput>1.  Right click on My Computer.
     133WIN2KBOX:</para>
     134<screen><userinput>1.  Right click on My Computer.
    1341352.  Click on Properties.
    1351363.  Click on the Network Identification notebook tab.
     
    1441459.  Click OK in the reboot reminder dialog box.
    14514610. Click OK to close the System Properties window.
    146 11. Click Yes to reboot WIN2KBOX.</userinput></screen></para></sect3>
     14711. Click Yes to reboot WIN2KBOX.</userinput></screen></sect3>
    147148
    148149<sect3><title>Add a new user to the DOMAIN01 domain.</title>
    149150<para>Before logging on to WIN2KBOX, we will create a new user with
    150151    the following commands:</para>
    151 <para><screen><userinput>useradd -m win2kuser01 &amp;&amp;
     152<screen><userinput><command>useradd -m win2kuser01 &amp;&amp;
    152153passwd win2kuser01 &amp;&amp;
    153 smbpasswd -a win2kuser01</userinput></screen></para></sect3>
     154smbpasswd -a win2kuser01</command></userinput></screen></sect3>
    154155
    155156<sect3><title>Logging on to DOMAIN01.</title>
    156157<para>Now we will log on the domain as our newly created user as
    157158    follows:</para>
    158 <para><screen><userinput>1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box.
     159<screen><userinput>1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box.
    1591602. Enter the win2kuser01 name and password.
    160 3. Select DOMAIN01 from the Log on to: combination box and click OK.</userinput></screen></para>
     1613. Select DOMAIN01 from the Log on to: combination box and click OK.</userinput></screen>
    161162
    162163<para>Add the swat entry to <filename>/etc/services</filename>with the
    163164following command: </para>
    164165
    165 <para><screen><userinput>echo "swat            901/tcp" &gt;&gt; /etc/services</userinput></screen></para>
     166<screen><userinput><command>echo "swat            901/tcp" &gt;&gt; /etc/services</command></userinput></screen>
    166167
    167 <para>If inetd is used, the following command will add the swat entry
    168 to <filename>/etc/inetd.conf</filename>: </para>
    169 <para><screen><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
    170     &gt;&gt; /etc/inetd.conf</userinput></screen></para>
     168<para>If <command>inetd</command> is used, the following command will add the
     169swat entry to <filename>/etc/inetd.conf</filename>: </para>
     170<screen><userinput><command>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
     171    &gt;&gt; /etc/inetd.conf</command></userinput></screen>
    171172
    172173<para>If xinetd is used, the following command will add the swat entry
    173174to <filename>/etc/xinetd.conf</filename>: </para>
    174 <para><screen><userinput>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</userinput>
     175<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
    175176service swat
    176177{
     
    183184    log_on_failure  += USERID
    184185}
    185 <userinput>EOF</userinput></screen></para>
     186<command>EOF</command></userinput></screen>
    186187
    187188<para>The Samba Web Administration Tool, swat, can be launched with the
    188189following command on SAMBABOX: </para>
    189 <para><screen><userinput>lynx http://localhost:901 </userinput></screen></para>
     190<screen><userinput><command>lynx http://localhost:901</command></userinput></screen>
    190191<note><para>Be sure inetd is running, and issue a killall -HUP inetd
    191192before starting swat.</para></note>
Note: See TracChangeset for help on using the changeset viewer.