glfs/server/other/samba/samba-config-exp.xml
Larry Lawrence 0482b012c6 exp files tag cleaned
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1274 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-10-02 22:40:45 +00:00

39 lines
1.9 KiB
XML

<sect2>
<title>Configuration command explanations</title>
<para><command>cat &gt; /etc/samba/smb.conf &lt;&lt; "EOF"</command>
: Create a default <application>Samba</application> configuration file. This
configuration will allow <application>Samba</application> to act as a Primary
Domain Controller for a Microsoft Windows based network. If this is not
desired, a simpler default <filename>smb.conf</filename> file is bundled with
the Samba distribution. See the
<filename>samba&samba-version;/examples/smb.conf.default</filename>
file. Primary Domain Controller configuration is slightly more
complicated than ordinary member server configuration, so instructions
for <acronym>PDC</acronym> configuration will be given here.</para>
<para><command>cat &gt; /etc/rc.d/init.d/samba &lt;&lt;
"EOF"</command>: Create the <application>Samba</application> boot script,
used to start and stop <application>Samba</application> automatically on
machine startup and shutdown.</para>
<para><screen><command>/usr/sbin/useradd -g 100 -d /dev/null -c \
"Win2k Server" -s /bin/false win2kbox$</command></screen>
This command creates a machine trust account, necessary only for
Windows 2000/NT servers to authenticate to our new <acronym>PDC</acronym>.
Machine trust accounts are not necessary for Win95/98 clients.</para>
<para><command>echo "swat 901/tcp" &gt;&gt; /etc/services</command>: Register
the swat service to run on port 901.</para>
<para><command>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat"
&gt;&gt; /etc/inetd.conf</command>: Instruct <command>inetd</command> where to find and how to
run swat.</para>
<para><command>ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba
</command> etc.: Create the <application>Samba</application> boot scripts,
used to start and stop <application>Samba</application> automatically on
machine startup and shutdown.</para>
</sect2>