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