glfs/server/other/samba/samba-config-exp.xml

44 lines
1.7 KiB
XML
Raw Normal View History

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