mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-04 15:37:16 +08:00
9905a3c983
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@638 af4574ff-66df-0310-9fd7-8a98e5e911e0
38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
<sect2>
|
|
<title>Configuration command explanations</title>
|
|
<para><userinput>cat > /etc/samba/smb.conf << "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 > /etc/rc.d/init.d/samba << "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" >> /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" >>
|
|
/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>
|
|
|