Ignore:
Timestamp:
02/01/2003 01:04:55 AM (21 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
97c2592
Parents:
d75b734
Message:

Added openldap and fixed numereous typos

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

File:
1 edited

Legend:

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

    rd75b734 r9905a3c  
    99documentation by pointing a web browser to:</para>
    1010
    11 <para><screen><userinput>
    12 file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770
    13 .</userinput></screen></para>
     11<para><screen><userinput>file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770.</userinput></screen></para>
    1412
    1513<sect3><title>Config files</title>
    16 <para><userinput>
    17 /etc/samba/smb.conf, /etc/rc.d/init.d/samba </userinput></para>
     14<para><userinput>/etc/samba/smb.conf, /etc/rc.d/init.d/samba </userinput></para>
    1815
    1916<para>First we set up some directories needed by Samba:</para>
    20 <para><screen><userinput>
    21 mkdir /var/lib/samba &amp;&amp;
     17<para><screen><userinput>mkdir /var/lib/samba &amp;&amp;
    2218mkdir /var/lib/samba/netlogon &amp;&amp;
    2319mkdir /var/lib/samba/ntprofile &amp;&amp;
    2420mkdir /var/lib/samba/profiles &amp;&amp;
    25 chmod -R 1777 /var/lib/samba
    26 </userinput></screen></para>
     21chmod -R 1777 /var/lib/samba</userinput></screen></para>
    2722
    2823<para>And the Samba configuration file: </para>
    29 <para><screen><userinput>
    30 cat &gt; /etc/samba/smb.conf &lt;&lt; "EOF"
     24<para><screen><userinput>cat &gt; /etc/samba/smb.conf &lt;&lt; "EOF"
    3125[global]
    3226    netbios name = SAMBABOX
     
    6559        read only = no
    6660        public = no
    67 EOF
    68 </userinput></screen></para>
     61EOF </userinput></screen></para>
    6962
    7063<para>Now add the machine trust account for WIN2KBOX:</para>
     
    7770
    7871<para>Create the Samba boot script:</para>
    79 <para><screen><userinput>
    80 cat &gt; /etc/rc.d/init.d/samba &lt;&lt; "EOF"
     72<para><screen><userinput>cat &gt; /etc/rc.d/init.d/samba &lt;&lt; "EOF"
    8173#!/bin/bash
    8274# Begin $rc_base/init.d/samba
     
    141133first in order to join WIN2KBOX to the DOMAIN01 domain: </para>
    142134
    143 <para><screen><userinput>
    144 smbpasswd -a root
    145 </userinput></screen></para>
     135<para><screen><userinput>smbpasswd -a root</userinput></screen></para>
    146136
    147137<para>After starting Samba and adding root to the Samba user list, the
     
    1631539.  Click OK in the reboot reminder dialog box.
    16415410. Click OK to close the System Properties window.
    165 11. Click Yes to reboot WIN2KBOX.
    166 </userinput></screen></para></sect3>
     15511. Click Yes to reboot WIN2KBOX.  </userinput></screen></para></sect3>
    167156
    168157<sect3><title>Add a new user to the DOMAIN01 domain.</title>
    169158<para>Before logging on to WIN2KBOX, we will create a new user with
    170159    the following commands:</para>
    171 <para><screen><userinput>
    172 useradd -m win2kuser01 &amp;&amp;
     160<para><screen><userinput>useradd -m win2kuser01 &amp;&amp;
    173161passwd win2kuser01 &amp;&amp;
    174 smbpasswd -a win2kuser01
    175 </userinput></screen></para></sect3>
     162smbpasswd -a win2kuser01</userinput></screen></para></sect3>
    176163
    177164<sect3><title>Logging on to DOMAIN01.</title>
    178165<para>Now we will log on the the domain as our newly created user as
    179166    follows:</para>
    180 <para><screen><userinput>
    181 1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box.
     167<para><screen><userinput>1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box.
    1821682. Enter the win2kuser01 name and password.
    183 3. Select DOMAIN01 from the Log on to: combination box and click OK.
    184 </userinput></screen></para>
     1693. Select DOMAIN01 from the Log on to: combination box and click OK.</userinput></screen></para>
    185170
    186171<para>Add the swat entry to <filename>/etc/services</filename>with the
    187172following command: </para>
    188173
    189 <para><screen><userinput>
    190 echo "swat            901/tcp" &gt;&gt; /etc/services
    191 </userinput></screen></para>
     174<para><screen><userinput>echo "swat            901/tcp" &gt;&gt; /etc/services</userinput></screen></para>
    192175
    193176<para>If inetd is used, the following command will add the swat entry
    194177to <filename>/etc/inetd.conf</filename>: </para>
    195 <para><screen><userinput>
    196 echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
    197     &gt;&gt; /etc/inetd.conf
    198 </userinput></screen></para>
     178<para><screen><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
     179    &gt;&gt; /etc/inetd.conf</userinput></screen></para>
    199180
    200181<para>If xinetd is used, the following command will add the swat entry
    201182to <filename>/etc/xinetd.conf</filename>: </para>
    202 <para><screen><userinput>
    203 cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"
     183<para><screen><userinput>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"
    204184service swat
    205185{
     
    212192    log_on_failure  += USERID
    213193}
    214 EOF
    215 </userinput></screen></para>
     194EOF</userinput></screen></para>
    216195
    217196<para>The Samba Web Administration Tool, swat, can be launched with the
    218197following command on SAMBABOX: </para>
    219 <para><screen><userinput>
    220 lynx http://localhost:901
    221 </userinput></screen></para>
     198<para><screen><userinput>lynx http://localhost:901 </userinput></screen></para>
    222199<note><para>Be sure inetd is running, and issue a killall -HUP inetd
    223200before starting swat.</para></note>
Note: See TracChangeset for help on using the changeset viewer.