2002-08-20 11:17:40 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Configuration command explanations</title>
|
|
|
|
<para><userinput>
|
2002-09-26 11:28:43 +08:00
|
|
|
cat > /etc/samba/smb.conf << "EOF" :</userinput>
|
2002-08-20 11:17:40 +08:00
|
|
|
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>
|
|
|
|
|
2002-09-26 11:28:43 +08:00
|
|
|
<para><screen><userinput>
|
2002-08-20 11:17:40 +08:00
|
|
|
/usr/sbin/useradd -g 100 -d /dev/null -c \
|
|
|
|
"Win2k Server" -s /bin/false win2kbox$ :
|
2002-09-26 11:28:43 +08:00
|
|
|
</userinput></screen>
|
2002-08-20 11:17:40 +08:00
|
|
|
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>
|
2002-09-26 11:28:43 +08:00
|
|
|
ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba, etc. :</userinput>
|
2002-08-20 11:17:40 +08:00
|
|
|
Create the Samba boot scripts, used to start and stop Samba
|
|
|
|
automatically on machine startup and shutdown.</para>
|
|
|
|
</sect2>
|
|
|
|
|