2002-08-20 11:17:40 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Configuration command explanations</title>
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>cat > /etc/samba/smb.conf << "EOF"</userinput>
|
|
|
|
: Create a default Samba configuration file. This configuration will
|
2002-08-20 11:17:40 +08:00
|
|
|
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
|
2002-12-03 06:58:55 +08:00
|
|
|
<filename>samba&samba-version;/examples/smb.conf.default</filename>
|
2002-08-20 11:17:40 +08:00
|
|
|
file. Primary Domain Controller configuration is slightly more
|
|
|
|
complicated than ordinary member server configuration, so instructions
|
|
|
|
for PDC configuration will be given here.</para>
|
|
|
|
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>cat > /etc/rc.d/init.d/samba <<
|
|
|
|
"EOF"</userinput> : Create the Samba boot script, used to start and stop Samba
|
2002-08-20 11:17:40 +08:00
|
|
|
automatically on machine startup and shutdown.</para>
|
|
|
|
|
2003-02-01 09:04:55 +08:00
|
|
|
<para><screen><userinput>/usr/sbin/useradd -g 100 -d /dev/null -c \
|
2003-04-06 00:32:17 +08:00
|
|
|
"Win2k Server" -s /bin/false win2kbox$</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>
|
|
|
|
|
2002-10-19 03:51:46 +08:00
|
|
|
<para>
|
2003-04-06 00:32:17 +08:00
|
|
|
<userinput>echo "swat 901/tcp" >> /etc/services</userinput> : Register the swat service to run on port 901.</para>
|
2002-10-19 03:51:46 +08:00
|
|
|
|
2003-02-01 09:04:55 +08:00
|
|
|
<para><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" >>
|
2003-04-06 00:32:17 +08:00
|
|
|
/etc/inetd.conf</userinput> : Instruct inetd where to find and how to
|
2002-10-19 03:51:46 +08:00
|
|
|
run swat.</para>
|
|
|
|
|
2002-08-20 11:17:40 +08:00
|
|
|
<para>
|
2003-04-06 00:32:17 +08:00
|
|
|
<userinput>ln -s /etc/rc.d/init.d/samba
|
|
|
|
/etc/rc.d/rc3.d/S600samba</userinput> etc. : Create the Samba boot scripts, used to start and stop Samba
|
2002-08-20 11:17:40 +08:00
|
|
|
automatically on machine startup and shutdown.</para>
|
|
|
|
</sect2>
|
|
|
|
|