1 | <sect2>
|
---|
2 | <title>Configuration command explanations</title>
|
---|
3 | <para><userinput>cat > /etc/samba/smb.conf << "EOF" :</userinput>
|
---|
4 | Create a default Samba configuration file. This configuration will
|
---|
5 | allow Samba to act as a Primary Domain Controller for a Microsoft
|
---|
6 | Windows based network. If this is not desired, a simpler default
|
---|
7 | smb.conf file is bundled with the Samba distribution. See the
|
---|
8 | <filename>samba&samba-version;/examples/smb.conf.default</filename>
|
---|
9 | file. Primary Domain Controller configuration is slightly more
|
---|
10 | complicated than ordinary member server configuration, so instructions
|
---|
11 | for PDC configuration will be given here.</para>
|
---|
12 |
|
---|
13 |
|
---|
14 | <para><userinput>cat > /etc/rc.d/init.d/samba << "EOF" :</userinput>
|
---|
15 | Create the Samba boot script, used to start and stop Samba
|
---|
16 | automatically on machine startup and shutdown.</para>
|
---|
17 |
|
---|
18 | <para><screen><userinput>/usr/sbin/useradd -g 100 -d /dev/null -c \
|
---|
19 | "Win2k Server" -s /bin/false win2kbox$ :</userinput></screen>
|
---|
20 | This command creates a machine trust account, necessary only for
|
---|
21 | Windows 2000/NT servers to authenticate to our new PDC. Machine trust
|
---|
22 | accounts are not necessary for Win95/98 clients.</para>
|
---|
23 |
|
---|
24 | <para>
|
---|
25 | <userinput>echo "swat 901/tcp" >> /etc/services :</userinput>
|
---|
26 | Register the swat service to run on port 901.</para>
|
---|
27 |
|
---|
28 | <para><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" >>
|
---|
29 | /etc/inetd.conf :</userinput> Instruct inetd where to find and how to
|
---|
30 | run swat.</para>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <userinput>ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba, etc. :</userinput>
|
---|
34 | Create the Samba boot scripts, used to start and stop Samba
|
---|
35 | automatically on machine startup and shutdown.</para>
|
---|
36 | </sect2>
|
---|
37 |
|
---|