Ignore:
Timestamp:
Jan 15, 2010, 8:21:06 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (docs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/docs/htmldocs/Samba3-ByExample/small.html

    r218 r368  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 2. Small Office Networking</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="prev" href="simple.html" title="Chapter 1. No-Frills Samba Servers"><link rel="next" href="secure.html" title="Chapter 3. Secure Office Networking"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 2. Small Office Networking</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="simple.html">Prev</a> </td><th width="60%" align="center">Part I. Example Network Configurations</th><td width="20%" align="right"> <a accesskey="n" href="secure.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="small"></a>Chapter 2. Small Office Networking</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="small.html#id2555462">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2555484">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2555545">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2555593">Technical Issues</a></span></dt><dt><span class="sect2"><a href="small.html#id2555791">Political Issues</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2555812">Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2557356">Validation</a></span></dt><dt><span class="sect2"><a href="small.html#id2558004">Notebook Computers: A Special Case</a></span></dt><dt><span class="sect2"><a href="small.html#id2558030">Key Points Learned</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2558104">Questions and Answers</a></span></dt></dl></div><p>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 2. Small Office Networking</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="prev" href="simple.html" title="Chapter 1. No-Frills Samba Servers"><link rel="next" href="secure.html" title="Chapter 3. Secure Office Networking"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 2. Small Office Networking</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="simple.html">Prev</a> </td><th width="60%" align="center">Part I. Example Network Configurations</th><td width="20%" align="right"> <a accesskey="n" href="secure.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 2. Small Office Networking"><div class="titlepage"><div><div><h2 class="title"><a name="small"></a>Chapter 2. Small Office Networking</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="small.html#id2561519">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2561542">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2561602">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2561650">Technical Issues</a></span></dt><dt><span class="sect2"><a href="small.html#id2561848">Political Issues</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2561869">Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2563413">Validation</a></span></dt><dt><span class="sect2"><a href="small.html#id2564061">Notebook Computers: A Special Case</a></span></dt><dt><span class="sect2"><a href="small.html#id2564087">Key Points Learned</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2564161">Questions and Answers</a></span></dt></dl></div><p>
    22        <a class="link" href="simple.html" title="Chapter 1. No-Frills Samba Servers">&#8220;No-Frills Samba Servers&#8221;</a> focused on the basics of simple yet effective
    33        network solutions. Network administrators who take pride in their work
     
    99        good advice that the following two scenarios illustrate.
    1010        </p><p>
    11         <a class="indexterm" name="id2555418"></a>
     11        <a class="indexterm" name="id2561475"></a>
    1212        In one case the network administrator of a mid-sized company spent three
    1313        months building a new network to replace an old Netware server. What he
     
    3434        new innovations. He always asked the users if a
    3535        particular feature was what they wanted. He asked his boss for a raise
    36         and got it. He often told me, &#8220;<span class="quote">Always keep a few new tricks up your
    37         sleeves for when you need them.</span>&#8221; Was he smart? You decide. Let's
     36        and got it. He often told me, <span class="quote">&#8220;<span class="quote">Always keep a few new tricks up your
     37        sleeves for when you need them.</span>&#8221;</span> Was he smart? You decide. Let's
    3838        get on with our next exercise.
    39         </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2555462"></a>Introduction</h2></div></div></div><p>
     39        </p><div class="sect1" title="Introduction"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2561519"></a>Introduction</h2></div></div></div><p>
    4040        Abmas Accounting has grown. Mr. Meany likes you and says he knew you
    4141        were the right person for the job. That's why he asked you to install the
     
    4848        some of the workstations that came with the acquired business and found some machines in need of both
    4949        hardware and software maintenance.
    50         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2555484"></a>Assignment Tasks</h3></div></div></div><p>
    51                 <a class="indexterm" name="id2555492"></a>
     50        </p><div class="sect2" title="Assignment Tasks"><div class="titlepage"><div><div><h3 class="title"><a name="id2561542"></a>Assignment Tasks</h3></div></div></div><p>
     51                <a class="indexterm" name="id2561549"></a>
    5252                Mr. Meany is retiring in 12 months. Before he goes, he wants you to help ensure
    5353                that the business is running efficiently. Many of the new staff want notebook
     
    8181                user accounts from the Windows desktop. That person will be responsible for
    8282                basic operations.
    83                 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2555545"></a>Dissection and Discussion</h2></div></div></div><p>
     83                </p></div></div><div class="sect1" title="Dissection and Discussion"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2561602"></a>Dissection and Discussion</h2></div></div></div><p>
    8484        What are the key requirements in this business example? A quick review indicates
    8585        a need for
    86         </p><div class="itemizedlist"><ul type="disc"><li><p>
     86        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
    8787                Scalability, from 52 to over 100 users in 12 months
    88                 </p></li><li><p>
     88                </p></li><li class="listitem"><p>
    8989                Mobile computing capability
    90                 <a class="indexterm" name="id2555566"></a>
    91                 </p></li><li><p>
     90                <a class="indexterm" name="id2561623"></a>
     91                </p></li><li class="listitem"><p>
    9292                Improved reliability and usability
    93                 </p></li><li><p>
     93                </p></li><li class="listitem"><p>
    9494                Easier administration
    9595                </p></li></ul></div><p>
     
    9797        (as in <a class="link" href="simple.html#AccountingOffice" title="Accounting Office">&#8220;Accounting Office&#8221;</a>).
    9898
    99         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2555593"></a>Technical Issues</h3></div></div></div><p>
    100                 <a class="indexterm" name="id2555600"></a>
    101                 <a class="indexterm" name="id2555606"></a>
    102                 <a class="indexterm" name="id2555613"></a>
    103                 <a class="indexterm" name="id2555619"></a>
    104                 <a class="indexterm" name="id2555625"></a>
     99        </p><div class="sect2" title="Technical Issues"><div class="titlepage"><div><div><h3 class="title"><a name="id2561650"></a>Technical Issues</h3></div></div></div><p>
     100                <a class="indexterm" name="id2561657"></a>
     101                <a class="indexterm" name="id2561664"></a>
     102                <a class="indexterm" name="id2561670"></a>
     103                <a class="indexterm" name="id2561676"></a>
     104                <a class="indexterm" name="id2561682"></a>
    105105                It is time to implement a domain security environment. You will use the <code class="constant">
    106106                smbpasswd</code> (default) backend. You should implement a DHCP server. There is no need to
     
    111111                the printer a fixed IP address by way of its Ethernet interface (MAC) address.
    112112                See <a class="link" href="small.html#dhcp01" title="Example 2.2. Abmas Accounting DHCP Server Configuration File /etc/dhcpd.conf">&#8220;Abmas Accounting DHCP Server Configuration File  /etc/dhcpd.conf&#8221;</a>.
    113                 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     113                </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    114114                The <code class="filename">smb.conf</code> file you are creating in this exercise can be used with equal effectiveness
    115115                with Samba-2.2.x series releases. This is deliberate so that in the next chapter it is
     
    123123                other enhancements. It is important that you plan accordingly.
    124124                </p><p>
    125                 <a class="indexterm" name="id2555684"></a>
     125                <a class="indexterm" name="id2561741"></a>
    126126                You have split the network into two separate areas. Each has its own Ethernet switch.
    127127                There are 20 users on the accounting network and 32 users on the financial services
     
    138138                hostname name resolution.
    139139                </p><p>
    140                 <a class="indexterm" name="id2555715"></a>
    141                 <a class="indexterm" name="id2555723"></a>
     140                <a class="indexterm" name="id2561772"></a>
     141                <a class="indexterm" name="id2561780"></a>
    142142                It is necessary to map Windows Domain Groups to UNIX groups. It is
    143143                advisable to also map Windows Local Groups to UNIX groups. Additionally, the two
     
    156156                more information.
    157157                </p><p>
    158                 <a class="indexterm" name="id2555777"></a>
     158                <a class="indexterm" name="id2561834"></a>
    159159                Vendor-supplied printer drivers will be installed on each client. The CUPS print
    160160                spooler on the UNIX host will be operated in <code class="constant">raw</code> mode.
    161                 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2555791"></a>Political Issues</h3></div></div></div><p>
     161                </p></div><div class="sect2" title="Political Issues"><div class="titlepage"><div><div><h3 class="title"><a name="id2561848"></a>Political Issues</h3></div></div></div><p>
    162162                Mr. Meany is an old-school manager. He sets the rules and wants to see compliance.
    163163                He is willing to spend money on things he believes are of value. You need more
     
    167167                supplied with antivirus software? Above all, demonstrate good purchase value and remember
    168168                to make your users happy.
    169                 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2555812"></a>Implementation</h2></div></div></div><p>
    170         <a class="indexterm" name="id2555820"></a>
     169                </p></div></div><div class="sect1" title="Implementation"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2561869"></a>Implementation</h2></div></div></div><p>
     170        <a class="indexterm" name="id2561877"></a>
    171171        In this example, the assumption is made that this server is being configured from a clean start.
    172172        The alternate approach could be to demonstrate the migration of the system that is documented
     
    176176        Additionally, a fresh installation makes the example easier to follow.
    177177        </p><p>
    178         <a class="indexterm" name="id2555846"></a>
     178        <a class="indexterm" name="id2561903"></a>
    179179        Each user will be given a home directory on the UNIX system, which will be available as a private
    180180        share. Two additional shares will be created, one for the accounting department and the other for
     
    182182        of group membership.
    183183        </p><p>
    184         <a class="indexterm" name="id2555861"></a>
     184        <a class="indexterm" name="id2561918"></a>
    185185        UNIX group membership is the primary mechanism by which Windows Domain users will be granted
    186186        rights and privileges within the Windows environment.
    187187        </p><p>
    188         <a class="indexterm" name="id2555875"></a>
     188        <a class="indexterm" name="id2561932"></a>
    189189        The user <code class="literal">alanm</code> will be made the owner of all files. This will be preserved
    190190        by setting the sticky bit (set UID/GID) on the top-level directories.
    191         </p><div class="figure"><a name="acct2net"></a><p class="title"><b>Figure 2.1. Abmas Accounting  52-User Network Topology</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/acct2net.png" alt="Abmas Accounting 52-User Network Topology"></div></div></div><br class="figure-break"><div class="procedure"><a name="id2555930"></a><p class="title"><b>Procedure 2.1. Server Installation Steps</b></p><ol type="1"><li><p>
     191        </p><div class="figure"><a name="acct2net"></a><p class="title"><b>Figure 2.1. Abmas Accounting  52-User Network Topology</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/acct2net.png" alt="Abmas Accounting 52-User Network Topology"></div></div></div><br class="figure-break"><div class="procedure" title="Procedure 2.1. Server Installation Steps"><a name="id2561987"></a><p class="title"><b>Procedure 2.1. Server Installation Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    192192                Using UNIX/Linux system tools, name the server <code class="constant">sleeth</code>.
    193                 </p></li><li><p>
    194                 <a class="indexterm" name="id2555951"></a>
     193                </p></li><li class="step" title="Step 2"><p>
     194                <a class="indexterm" name="id2562008"></a>
    195195                Place an entry for the machine <code class="constant">sleeth</code> in the <code class="filename">/etc/hosts</code>.
    196196                The printers are network attached, so there should be entries for the
     
    203203192.168.2.10    qms
    204204</pre><p>
    205                 </p></li><li><p>
     205                </p></li><li class="step" title="Step 3"><p>
    206206                Install the Samba-3 binary RPM from the Samba-Team FTP site.
    207                 </p></li><li><p>
     207                </p></li><li class="step" title="Step 4"><p>
    208208                Install the ISC DHCP server using the UNIX/Linux system tools available to you.
    209                 </p></li><li><p>
    210                 <a class="indexterm" name="id2556002"></a>
    211                 <a class="indexterm" name="id2556008"></a>
    212                 <a class="indexterm" name="id2556014"></a>
    213                 <a class="indexterm" name="id2556020"></a>
     209                </p></li><li class="step" title="Step 5"><p>
     210                <a class="indexterm" name="id2562059"></a>
     211                <a class="indexterm" name="id2562065"></a>
     212                <a class="indexterm" name="id2562071"></a>
     213                <a class="indexterm" name="id2562078"></a>
    214214                Because Samba will be operating over two network interfaces and clients on each side
    215215                may want to be able to reach clients on the other side, it is imperative that IP forwarding
     
    221221</pre><p>
    222222                This causes the Linux kernel to forward IP packets so that it acts as a router.
    223                 </p></li><li><p>
     223                </p></li><li class="step" title="Step 6"><p>
    224224                Install the <code class="filename">smb.conf</code> file as shown in <a class="link" href="small.html#acct2conf" title="Example 2.3. Accounting Office Network smb.conf File [globals] Section">&#8220;Accounting Office Network smb.conf File  [globals] Section&#8221;</a> and
    225225                <a class="link" href="small.html#acct3conf" title="Example 2.4. Accounting Office Network smb.conf File Services and Shares Section">&#8220;Accounting Office Network smb.conf File  Services and Shares Section&#8221;</a>. Combine these two examples to form a single
    226226                <code class="filename">/etc/samba/smb.conf</code> file.
    227                 </p></li><li><p>
    228                 <a class="indexterm" name="id2556080"></a>
     227                </p></li><li class="step" title="Step 7"><p>
     228                <a class="indexterm" name="id2562137"></a>
    229229                Add the user <code class="literal">root</code> to the Samba password backend:
    230230</p><pre class="screen">
     
    234234<code class="prompt">root# </code>
    235235</pre><p>
    236                 <a class="indexterm" name="id2556109"></a>
     236                <a class="indexterm" name="id2562166"></a>
    237237                This is the Windows Domain Administrator password. Never delete this account from
    238238                the password backend after Windows Domain Groups have been initialized. If you delete
    239239                this account, your system is crippled. You cannot restore this account,
    240240                and your Samba server can no longer be administered.
    241                 </p></li><li><p>
    242                 <a class="indexterm" name="id2556126"></a>
     241                </p></li><li class="step" title="Step 8"><p>
     242                <a class="indexterm" name="id2562184"></a>
    243243                Create the username map file to permit the <code class="constant">root</code> account to be called
    244244                <code class="constant">Administrator</code> from the Windows network environment. To do this, create
     
    266266####
    267267</pre><p>
    268                 </p></li><li><p>
    269                 <a class="indexterm" name="id2556167"></a>
     268                </p></li><li class="step" title="Step 9"><p>
     269                <a class="indexterm" name="id2562224"></a>
    270270                Create and map Windows Domain Groups to UNIX groups. A sample script is provided in
    271271                <a class="link" href="small.html#initGrps" title="Example 2.1. Script to Map Windows NT Groups to UNIX Groups">&#8220;Script to Map Windows NT Groups to UNIX Groups&#8221;</a>. Create a file containing this script. We called ours
     
    273273                and then execute the script. Sample output should be as follows:
    274274
    275 </p><div class="example"><a name="initGrps"></a><p class="title"><b>Example 2.1. Script to Map Windows NT Groups to UNIX Groups</b></p><div class="example-contents"><a class="indexterm" name="id2556195"></a><pre class="screen">
     275</p><div class="example"><a name="initGrps"></a><p class="title"><b>Example 2.1. Script to Map Windows NT Groups to UNIX Groups</b></p><div class="example-contents"><a class="indexterm" name="id2562252"></a><pre class="screen">
    276276#!/bin/bash
    277277#
     
    322322Users (S-1-5-32-545) -&gt; -1
    323323</pre><p>
    324                 </p></li><li><p>
    325                 <a class="indexterm" name="id2556273"></a>
    326                 <a class="indexterm" name="id2556280"></a>
    327                 <a class="indexterm" name="id2556288"></a>
     324                </p></li><li class="step" title="Step 10"><p>
     325                <a class="indexterm" name="id2562330"></a>
     326                <a class="indexterm" name="id2562337"></a>
     327                <a class="indexterm" name="id2562345"></a>
    328328                For each user who needs to be given a Windows Domain account, make an entry in the
    329329                <code class="filename">/etc/passwd</code> file as well as in the Samba password backend.
     
    331331                <code class="literal">smbpasswd</code> program to create the Domain user accounts.
    332332                </p><p>
    333                 <a class="indexterm" name="id2556313"></a>
    334                 <a class="indexterm" name="id2556319"></a>
    335                 <a class="indexterm" name="id2556325"></a>
     333                <a class="indexterm" name="id2562370"></a>
     334                <a class="indexterm" name="id2562376"></a>
     335                <a class="indexterm" name="id2562382"></a>
    336336                There are a number of tools for user management under UNIX, such as
    337337                <code class="literal">useradd</code> and <code class="literal">adduser</code>, as well as a plethora of custom
    338338                tools. With the tool of your choice, create a home directory for each user.
    339                 </p></li><li><p>
     339                </p></li><li class="step" title="Step 11"><p>
    340340                Using the preferred tool for your UNIX system, add each user to the UNIX groups created
    341341                previously, as necessary. File system access control will be based on UNIX group membership.
    342                 </p></li><li><p>
     342                </p></li><li class="step" title="Step 12"><p>
    343343                Create the directory mount point for the disk subsystem that is mounted to provide
    344344                data storage for company files. In this case the mount point is indicated in the <code class="filename">smb.conf</code>
     
    346346                file system partition using <code class="literal">mount</code>,
    347347                and make the appropriate changes in <code class="filename">/etc/fstab</code>.
    348                 </p></li><li><p>
     348                </p></li><li class="step" title="Step 13"><p>
    349349                Create the top-level file storage directories are follows:
    350350</p><pre class="screen">
     
    358358                share. The directory root of the <code class="literal">accounts</code> share is <code class="filename">/data/accounts</code>.
    359359                The directory root of the <code class="literal">finsvcs</code> share is <code class="filename">/data/finsvcs</code>.
    360                 </p></li><li><p>
     360                </p></li><li class="step" title="Step 14"><p>
    361361                Configure the printers with the IP addresses as shown in <a class="link" href="small.html#acct2net" title="Figure 2.1. Abmas Accounting 52-User Network Topology">&#8220;Abmas Accounting  52-User Network Topology&#8221;</a>.
    362362                Follow the instructions in the manufacturers' manuals to permit printing to port 9100.
    363363                This allows the CUPS spooler to print using raw mode protocols.
    364                 <a class="indexterm" name="id2556469"></a>
    365                 <a class="indexterm" name="id2556475"></a>
    366                 </p></li><li><p>
    367                 <a class="indexterm" name="id2556488"></a>
    368                 <a class="indexterm" name="id2556496"></a>
     364                <a class="indexterm" name="id2562526"></a>
     365                <a class="indexterm" name="id2562532"></a>
     366                </p></li><li class="step" title="Step 15"><p>
     367                <a class="indexterm" name="id2562545"></a>
     368                <a class="indexterm" name="id2562553"></a>
    369369                Configure the CUPS Print Queues as follows:
    370370</p><pre class="screen">
     
    373373<code class="prompt">root# </code> lpadmin -p qms -v socket://192.168.2.10:9100 -E
    374374</pre><p>
    375                 <a class="indexterm" name="id2556527"></a>
     375                <a class="indexterm" name="id2562584"></a>
    376376                This creates the necessary print queues with no assigned print filter.
    377                 </p></li><li><p>
    378                 <a class="indexterm" name="id2556541"></a>
    379                 <a class="indexterm" name="id2556547"></a>
    380                 <a class="indexterm" name="id2556554"></a>
     377                </p></li><li class="step" title="Step 16"><p>
     378                <a class="indexterm" name="id2562598"></a>
     379                <a class="indexterm" name="id2562604"></a>
     380                <a class="indexterm" name="id2562611"></a>
    381381                Edit the file <code class="filename">/etc/cups/mime.convs</code> to uncomment the line:
    382382</p><pre class="screen">
    383383application/octet-stream     application/vnd.cups-raw      0     -
    384384</pre><p>
    385                 </p></li><li><p>
    386                 <a class="indexterm" name="id2556578"></a>
     385                </p></li><li class="step" title="Step 17"><p>
     386                <a class="indexterm" name="id2562635"></a>
    387387                Edit the file <code class="filename">/etc/cups/mime.types</code> to uncomment the line:
    388388</p><pre class="screen">
    389389application/octet-stream
    390390</pre><p>
    391                 </p></li><li><p>
    392                 <a class="indexterm" name="id2556601"></a>
     391                </p></li><li class="step" title="Step 18"><p>
     392                <a class="indexterm" name="id2562658"></a>
    393393                Using your favorite system editor, create an <code class="filename">/etc/dhcpd.conf</code> with the
    394394                contents as shown in <a class="link" href="small.html#dhcp01" title="Example 2.2. Abmas Accounting DHCP Server Configuration File /etc/dhcpd.conf">&#8220;Abmas Accounting DHCP Server Configuration File  /etc/dhcpd.conf&#8221;</a>.
    395 </p><div class="example"><a name="dhcp01"></a><p class="title"><b>Example 2.2. Abmas Accounting DHCP Server Configuration File  <code class="filename">/etc/dhcpd.conf</code></b></p><div class="example-contents"><a class="indexterm" name="id2556633"></a><pre class="screen">
     395</p><div class="example"><a name="dhcp01"></a><p class="title"><b>Example 2.2. Abmas Accounting DHCP Server Configuration File  <code class="filename">/etc/dhcpd.conf</code></b></p><div class="example-contents"><a class="indexterm" name="id2562690"></a><pre class="screen">
    396396default-lease-time 86400;
    397397max-lease-time 172800;
     
    437437        }
    438438</pre></div></div><p><br class="example-break">
    439                 </p></li><li><p>
     439                </p></li><li class="step" title="Step 19"><p>
    440440                Use the standard system tool to start Samba and CUPS and configure them to start
    441441                automatically at every system reboot. For example,
    442442                </p><p>
    443                 <a class="indexterm" name="id2556677"></a>
    444                 <a class="indexterm" name="id2556683"></a>
    445                 <a class="indexterm" name="id2556690"></a>
    446                 <a class="indexterm" name="id2556696"></a>
    447                 <a class="indexterm" name="id2556702"></a>
     443                <a class="indexterm" name="id2562734"></a>
     444                <a class="indexterm" name="id2562740"></a>
     445                <a class="indexterm" name="id2562747"></a>
     446                <a class="indexterm" name="id2562753"></a>
     447                <a class="indexterm" name="id2562759"></a>
    448448</p><pre class="screen">
    449449<code class="prompt">root# </code> chkconfig dhcp on
     
    454454<code class="prompt">root# </code> /etc/rc.d/init.d/cups restart
    455455</pre><p>
    456                 </p></li><li><p>
    457                 <a class="indexterm" name="id2556752"></a>
    458                 <a class="indexterm" name="id2556759"></a>
    459                 <a class="indexterm" name="id2556767"></a>
    460                 <a class="indexterm" name="id2556773"></a>
    461                 <a class="indexterm" name="id2556780"></a>
    462                 <a class="indexterm" name="id2556786"></a>
     456                </p></li><li class="step" title="Step 20"><p>
     457                <a class="indexterm" name="id2562810"></a>
     458                <a class="indexterm" name="id2562816"></a>
     459                <a class="indexterm" name="id2562824"></a>
     460                <a class="indexterm" name="id2562830"></a>
     461                <a class="indexterm" name="id2562837"></a>
     462                <a class="indexterm" name="id2562843"></a>
    463463                Configure the name service switch (NSS) to handle WINS-based name resolution.
    464464                Since this system does not use a DNS server, it is safe to remove this option from
     
    468468hosts:  files wins
    469469</pre><p>
    470                 </p></li></ol></div><div class="example"><a name="acct2conf"></a><p class="title"><b>Example 2.3. Accounting Office Network <code class="filename">smb.conf</code> File  [globals] Section</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2556844"></a><em class="parameter"><code>workgroup = BILLMORE</code></em></td></tr><tr><td><a class="indexterm" name="id2556854"></a><em class="parameter"><code>passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n *Password*changed*</code></em></td></tr><tr><td><a class="indexterm" name="id2556866"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2556876"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2556887"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2556898"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2556908"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2556919"></a><em class="parameter"><code>add user script = /usr/sbin/useradd -m -G users '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2556931"></a><em class="parameter"><code>delete user script = /usr/sbin/userdel -r '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2556942"></a><em class="parameter"><code>add group script = /usr/sbin/groupadd '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id2556953"></a><em class="parameter"><code>delete group script = /usr/sbin/groupdel '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id2556965"></a><em class="parameter"><code>add user to group script = /usr/sbin/usermod -A '%g' '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2556976"></a><em class="parameter"><code>add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2556988"></a><em class="parameter"><code>logon script = scripts\login.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2556999"></a><em class="parameter"><code>logon path =  </code></em></td></tr><tr><td><a class="indexterm" name="id2557009"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2557020"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557030"></a><em class="parameter"><code>preferred master = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557041"></a><em class="parameter"><code>wins support = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557051"></a><em class="parameter"><code>printing = CUPS</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="acct3conf"></a><p class="title"><b>Example 2.4. Accounting Office Network <code class="filename">smb.conf</code> File  Services and Shares Section</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[homes]</code></em></td></tr><tr><td><a class="indexterm" name="id2557091"></a><em class="parameter"><code>comment = Home Directories</code></em></td></tr><tr><td><a class="indexterm" name="id2557102"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2557112"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2557123"></a><em class="parameter"><code>browseable = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2557141"></a><em class="parameter"><code>comment = SMB Print Spool</code></em></td></tr><tr><td><a class="indexterm" name="id2557152"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2557162"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557173"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557183"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557193"></a><em class="parameter"><code>browseable = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[netlogon]</code></em></td></tr><tr><td><a class="indexterm" name="id2557212"></a><em class="parameter"><code>comment = Network Logon Service</code></em></td></tr><tr><td><a class="indexterm" name="id2557223"></a><em class="parameter"><code>path = /data/%U</code></em></td></tr><tr><td><a class="indexterm" name="id2557234"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2557244"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[accounts]</code></em></td></tr><tr><td><a class="indexterm" name="id2557263"></a><em class="parameter"><code>comment = Accounting Files</code></em></td></tr><tr><td><a class="indexterm" name="id2557273"></a><em class="parameter"><code>path = /data/accounts</code></em></td></tr><tr><td><a class="indexterm" name="id2557284"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id2557294"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[finsvcs]</code></em></td></tr><tr><td><a class="indexterm" name="id2557313"></a><em class="parameter"><code>comment = Financial Service Files</code></em></td></tr><tr><td><a class="indexterm" name="id2557324"></a><em class="parameter"><code>path = /data/finsvcs</code></em></td></tr><tr><td><a class="indexterm" name="id2557334"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id2557345"></a><em class="parameter"><code>read only = No</code></em></td></tr></table></div></div><br class="example-break"><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2557356"></a>Validation</h3></div></div></div><p>
     470                </p></li></ol></div><div class="example"><a name="acct2conf"></a><p class="title"><b>Example 2.3. Accounting Office Network <code class="filename">smb.conf</code> File  [globals] Section</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2562901"></a><em class="parameter"><code>workgroup = BILLMORE</code></em></td></tr><tr><td><a class="indexterm" name="id2562911"></a><em class="parameter"><code>passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n *Password*changed*</code></em></td></tr><tr><td><a class="indexterm" name="id2562923"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2562933"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2562944"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2562955"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2562965"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2562976"></a><em class="parameter"><code>add user script = /usr/sbin/useradd -m -G users '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2562988"></a><em class="parameter"><code>delete user script = /usr/sbin/userdel -r '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2562999"></a><em class="parameter"><code>add group script = /usr/sbin/groupadd '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id2563010"></a><em class="parameter"><code>delete group script = /usr/sbin/groupdel '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id2563022"></a><em class="parameter"><code>add user to group script = /usr/sbin/usermod -A '%g' '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2563033"></a><em class="parameter"><code>add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2563045"></a><em class="parameter"><code>logon script = scripts\login.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2563056"></a><em class="parameter"><code>logon path =  </code></em></td></tr><tr><td><a class="indexterm" name="id2563066"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2563077"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2563087"></a><em class="parameter"><code>preferred master = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2563098"></a><em class="parameter"><code>wins support = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2563108"></a><em class="parameter"><code>printing = CUPS</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="acct3conf"></a><p class="title"><b>Example 2.4. Accounting Office Network <code class="filename">smb.conf</code> File  Services and Shares Section</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[homes]</code></em></td></tr><tr><td><a class="indexterm" name="id2563148"></a><em class="parameter"><code>comment = Home Directories</code></em></td></tr><tr><td><a class="indexterm" name="id2563159"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2563169"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2563180"></a><em class="parameter"><code>browseable = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2563198"></a><em class="parameter"><code>comment = SMB Print Spool</code></em></td></tr><tr><td><a class="indexterm" name="id2563209"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2563219"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2563230"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2563240"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2563250"></a><em class="parameter"><code>browseable = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[netlogon]</code></em></td></tr><tr><td><a class="indexterm" name="id2563269"></a><em class="parameter"><code>comment = Network Logon Service</code></em></td></tr><tr><td><a class="indexterm" name="id2563280"></a><em class="parameter"><code>path = /data/%U</code></em></td></tr><tr><td><a class="indexterm" name="id2563291"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2563301"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[accounts]</code></em></td></tr><tr><td><a class="indexterm" name="id2563320"></a><em class="parameter"><code>comment = Accounting Files</code></em></td></tr><tr><td><a class="indexterm" name="id2563330"></a><em class="parameter"><code>path = /data/accounts</code></em></td></tr><tr><td><a class="indexterm" name="id2563341"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id2563351"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[finsvcs]</code></em></td></tr><tr><td><a class="indexterm" name="id2563370"></a><em class="parameter"><code>comment = Financial Service Files</code></em></td></tr><tr><td><a class="indexterm" name="id2563381"></a><em class="parameter"><code>path = /data/finsvcs</code></em></td></tr><tr><td><a class="indexterm" name="id2563391"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id2563402"></a><em class="parameter"><code>read only = No</code></em></td></tr></table></div></div><br class="example-break"><div class="sect2" title="Validation"><div class="titlepage"><div><div><h3 class="title"><a name="id2563413"></a>Validation</h3></div></div></div><p>
    471471                Does everything function as it ought? That is the key question at this point.
    472472                Here are some simple steps to validate your Samba server configuration.
    473                 </p><div class="procedure"><a name="id2557368"></a><p class="title"><b>Procedure 2.2. Validation Steps</b></p><ol type="1"><li><p>
    474                         <a class="indexterm" name="id2557378"></a>
     473                </p><div class="procedure" title="Procedure 2.2. Validation Steps"><a name="id2563425"></a><p class="title"><b>Procedure 2.2. Validation Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     474                        <a class="indexterm" name="id2563435"></a>
    475475                        If your <code class="filename">smb.conf</code> file has bogus options or parameters, this may cause Samba
    476476                        to refuse to start. The first step should always be to validate the contents
     
    518518</pre><p>
    519519                        Clear away all errors before proceeding, and start or restart samba as necessary.
    520                         </p></li><li><p>
    521                         <a class="indexterm" name="id2557458"></a>
    522                         <a class="indexterm" name="id2557464"></a>
    523                         <a class="indexterm" name="id2557470"></a>
    524                         <a class="indexterm" name="id2557476"></a>
     520                        </p></li><li class="step" title="Step 2"><p>
     521                        <a class="indexterm" name="id2563515"></a>
     522                        <a class="indexterm" name="id2563521"></a>
     523                        <a class="indexterm" name="id2563527"></a>
     524                        <a class="indexterm" name="id2563533"></a>
    525525                        Check that the Samba server is running:
    526526</p><pre class="screen">
     
    538538                        <span class="emphasis"><em>TOSHARG2</em></span>, Chapter 23, Section 23.3. The single instance of
    539539                        <code class="literal">smbd</code> is normal.
    540                         </p></li><li><p>
    541                         <a class="indexterm" name="id2557527"></a>
     540                        </p></li><li class="step" title="Step 3"><p>
     541                        <a class="indexterm" name="id2563584"></a>
    542542                        Check that an anonymous connection can be made to the Samba server:
    543543</p><pre class="screen">
     
    567567                        The <code class="constant">-U%</code> argument means to send a <code class="constant">NULL</code> username and
    568568                        a <code class="constant">NULL</code> password.
    569                         </p></li><li><p>
    570                         <a class="indexterm" name="id2557578"></a>
    571                         <a class="indexterm" name="id2557584"></a>
    572                         <a class="indexterm" name="id2557590"></a>
     569                        </p></li><li class="step" title="Step 4"><p>
     570                        <a class="indexterm" name="id2563635"></a>
     571                        <a class="indexterm" name="id2563641"></a>
     572                        <a class="indexterm" name="id2563647"></a>
    573573                        Verify that the printers have the IP addresses assigned in the DHCP server configuration file.
    574574                        The easiest way to do this is to ping the printer name. Immediately after the ping response
     
    588588                        IP address from which the printer has responded and the entry for it in the
    589589                        <code class="filename">/etc/dhcpd.conf</code> file.
    590                         </p></li><li><p>
    591                         <a class="indexterm" name="id2557651"></a>
     590                        </p></li><li class="step" title="Step 5"><p>
     591                        <a class="indexterm" name="id2563708"></a>
    592592                        Make an authenticated connection to the server using the <code class="literal">smbclient</code> tool:
    593593</p><pre class="screen">
     
    606606smb: \&gt; q
    607607</pre><p>
    608                         </p></li></ol></div></div><div class="procedure"><a name="id2557699"></a><p class="title"><b>Procedure 2.3. Windows XP Professional Client Configuration</b></p><ol type="1"><li><p>
     608                        </p></li></ol></div></div><div class="procedure" title="Procedure 2.3. Windows XP Professional Client Configuration"><a name="id2563756"></a><p class="title"><b>Procedure 2.3. Windows XP Professional Client Configuration</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    609609                Configure clients to the network settings shown in <a class="link" href="small.html#acct2net" title="Figure 2.1. Abmas Accounting 52-User Network Topology">&#8220;Abmas Accounting  52-User Network Topology&#8221;</a>.
    610610                All clients use DHCP for TCP/IP protocol stack configuration.
    611                 <a class="indexterm" name="id2557717"></a>
    612                 <a class="indexterm" name="id2557723"></a>
     611                <a class="indexterm" name="id2563774"></a>
     612                <a class="indexterm" name="id2563780"></a>
    613613                DHCP configures all Windows clients to use the WINS Server address <code class="constant">192.168.1.1</code>.
    614                 </p></li><li><p>
     614                </p></li><li class="step" title="Step 2"><p>
    615615                Join the Windows Domain called <code class="constant">BILLMORE</code>. Use the Domain Administrator
    616616                username <code class="constant">root</code> and the SMB password you assigned to this account.
     
    618618                a Windows Domain is given in <a class="link" href="appendix.html" title="Chapter 15. A Collection of Useful Tidbits">&#8220;A Collection of Useful Tidbits&#8221;</a>, <a class="link" href="appendix.html#domjoin" title="Joining a Domain: Windows 200x/XP Professional">&#8220;Joining a Domain: Windows 200x/XP Professional&#8221;</a>.
    619619                Reboot the machine as prompted and then log on using a Domain User account.
    620                 </p></li><li><p>
     620                </p></li><li class="step" title="Step 3"><p>
    621621                Verify on each client that the machine called <code class="constant">SLEETH</code>
    622622                is visible in <span class="guimenu">My Network Places</span>, that it is
     
    624624                 and <span class="guimenuitem">finsvcs</span>,
    625625                and that it is possible to open that share to reveal its contents.
    626                 </p></li><li><p>
     626                </p></li><li class="step" title="Step 4"><p>
    627627                Instruct all users to log onto the workstation using their assigned username and password.
    628                 </p></li><li><p>
     628                </p></li><li class="step" title="Step 5"><p>
    629629                Install a printer on each using the following steps:
    630                 </p><div class="procedure"><ol type="1"><li><p>
     630                </p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 5.1"><p>
    631631                                Click <span class="guimenu">Start</span> &#8594; <span class="guimenuitem">Settings</span> &#8594; <span class="guimenuitem">Printers</span>+<span class="guiicon">Add Printer</span>+<span class="guibutton">Next</span>. Do not click <span class="guimenuitem">Network printer</span>.
    632632                                        Ensure that <span class="guimenuitem">Local printer</span> is selected.
    633                                 </p></li><li><p>
     633                                </p></li><li class="step" title="Step 5.2"><p>
    634634                                Click <span class="guibutton">Next</span>. In the
    635635                                <span class="guimenuitem">Manufacturer:</span> panel, select <code class="constant">HP</code>.
    636636                                In the <span class="guimenuitem">Printers:</span> panel, select the printer called
    637637                                <code class="constant">HP LaserJet 4</code>. Click <span class="guibutton">Next</span>.
    638                                 </p></li><li><p>
     638                                </p></li><li class="step" title="Step 5.3"><p>
    639639                                In the <span class="guimenuitem">Available ports:</span> panel, select
    640640                                <code class="constant">FILE:</code>. Accept the default printer name by clicking
    641                                 <span class="guibutton">Next</span>. When asked, &#8220;<span class="quote">Would you like to print a
    642                                 test page?</span>&#8221;, click <span class="guimenuitem">No</span>. Click
     641                                <span class="guibutton">Next</span>. When asked, <span class="quote">&#8220;<span class="quote">Would you like to print a
     642                                test page?</span>&#8221;</span>, click <span class="guimenuitem">No</span>. Click
    643643                                <span class="guibutton">Finish</span>.
    644                                 </p></li><li><p>
     644                                </p></li><li class="step" title="Step 5.4"><p>
    645645                                You may be prompted for the name of a file to print to. If so, close the
    646646                                dialog panel. Right-click <span class="guiicon">HP LaserJet 4</span> &#8594; <span class="guimenuitem">Properties</span> &#8594; <span class="guisubmenu">Details (Tab)</span> &#8594; <span class="guimenuitem">Add Port</span>.
    647                                 </p></li><li><p>
     647                                </p></li><li class="step" title="Step 5.5"><p>
    648648                                In the <span class="guimenuitem">Network</span> panel, enter the name of
    649649                                the print queue on the Samba server as follows: <code class="constant">\\SERVER\hplj4</code>.
    650650                                Click <span class="guibutton">OK</span>+<span class="guibutton">OK</span> to complete the installation.
    651                                 </p></li><li><p>
     651                                </p></li><li class="step" title="Step 5.6"><p>
    652652                                Repeat the printer installation steps above for the HP LaserJet 6 printer
    653653                                as well as for the QMS Magicolor XXXX laser printer.
    654                                 </p></li></ol></div></li></ol></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2558004"></a>Notebook Computers: A Special Case</h3></div></div></div><p>
     654                                </p></li></ol></div></li></ol></div><div class="sect2" title="Notebook Computers: A Special Case"><div class="titlepage"><div><div><h3 class="title"><a name="id2564061"></a>Notebook Computers: A Special Case</h3></div></div></div><p>
    655655        As a network administrator, you already know how to create local machine accounts for Windows 200x/XP
    656656        Professional systems. This is the preferred solution to provide continuity of work for notebook users
     
    662662        that mean that as the network is more tightly secured, it becomes necessary to modify Windows client
    663663        configuration somewhat.
    664         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2558030"></a>Key Points Learned</h3></div></div></div><p>
     664        </p></div><div class="sect2" title="Key Points Learned"><div class="titlepage"><div><div><h3 class="title"><a name="id2564087"></a>Key Points Learned</h3></div></div></div><p>
    665665                In this network design and implementation exercise, you created a Windows NT4-style Domain
    666666                Controller using Samba-3.0.20. Following these guidelines, you experienced
    667667                and implemented several important aspects of Windows networking. In the next chapter,
    668668                you build on the experience. These are the highlights from this chapter:
    669                 </p><div class="itemizedlist"><ul type="disc"><li><p>
    670                         <a class="indexterm" name="id2558050"></a>
     669                </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     670                        <a class="indexterm" name="id2564107"></a>
    671671                        You implemented a DHCP server, and Microsoft Windows clients were able to obtain all necessary
    672672                        network configuration settings from this server.
    673                         </p></li><li><p>
    674                         <a class="indexterm" name="id2558063"></a>
     673                        </p></li><li class="listitem"><p>
     674                        <a class="indexterm" name="id2564120"></a>
    675675                        You created a Windows Domain Controller. You were able to use the network logon service
    676676                        and successfully joined Windows 200x/XP Professional clients to the Domain.
    677                         </p></li><li><p>
    678                         <a class="indexterm" name="id2558076"></a>
     677                        </p></li><li class="listitem"><p>
     678                        <a class="indexterm" name="id2564134"></a>
    679679                        You created raw print queues in the CUPS printing system. You maintained a simple
    680680                        printing system so that all users can share centrally managed printers. You installed
    681681                        native printer drivers on the Windows clients.
    682                         </p></li><li><p>
     682                        </p></li><li class="listitem"><p>
    683683                        You experienced the benefits of centrally managed user accounts on the server.
    684                         </p></li><li><p>
     684                        </p></li><li class="listitem"><p>
    685685                        You offered Mobile notebook users a solution that allows them to continue to work
    686686                        while away from the office and not connected to the corporate network.
    687                         </p></li></ul></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2558104"></a>Questions and Answers</h2></div></div></div><p>
     687                        </p></li></ul></div></div></div><div class="sect1" title="Questions and Answers"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2564161"></a>Questions and Answers</h2></div></div></div><p>
    688688        Your new Domain Controller is ready to serve you. What does it mean? Here are some questions and answers that
    689689        may help.
    690         </p><div class="qandaset"><dl><dt>1. <a href="small.html#id2558117">
     690        </p><div class="qandaset" title="Frequently Asked Questions"><a name="id2564172"></a><dl><dt>1. <a href="small.html#id2564174">
    691691                What is the key benefit of using DHCP to configure Windows client TCP/IP stacks?
    692                 </a></dt><dt>2. <a href="small.html#id2558144">
     692                </a></dt><dt>2. <a href="small.html#id2564201">
    693693                Are there any DHCP server configuration parameters in the /etc/dhcpd.conf
    694694                that should be noted in particular?
    695                 </a></dt><dt>3. <a href="small.html#id2558175">
     695                </a></dt><dt>3. <a href="small.html#id2564232">
    696696                Is it possible to create a Windows Domain account that is specifically called Administrator?
    697                 </a></dt><dt>4. <a href="small.html#id2558211">
     697                </a></dt><dt>4. <a href="small.html#id2564268">
    698698                Why is it necessary to give the Windows Domain Administrator a UNIX UID of 0?
    699                 </a></dt><dt>5. <a href="small.html#id2558250">
     699                </a></dt><dt>5. <a href="small.html#id2564307">
    700700                One of my junior staff needs the ability to add machines to the Domain, but I do not want to give him
    701701                root access. How can we do this?
    702                 </a></dt><dt>6. <a href="small.html#id2558289">
     702                </a></dt><dt>6. <a href="small.html#id2564346">
    703703                Why must I map Windows Domain Groups to UNIX groups?
    704                 </a></dt><dt>7. <a href="small.html#id2558325">
     704                </a></dt><dt>7. <a href="small.html#id2564382">
    705705                I deleted my root account and now I cannot add it back! What can I do?
    706                 </a></dt><dt>8. <a href="small.html#id2558393">
     706                </a></dt><dt>8. <a href="small.html#id2564450">
    707707                When I run net groupmap list, it reports a group called Administrators
    708708                as well as Domain Admins. What is the difference between them?
    709                 </a></dt><dt>9. <a href="small.html#id2558437">
     709                </a></dt><dt>9. <a href="small.html#id2564494">
    710710                What is the effect of changing the name of a Samba server or of changing the Domain name?
    711                 </a></dt><dt>10. <a href="small.html#id2558487">
     711                </a></dt><dt>10. <a href="small.html#id2564544">
    712712                How can I manage user accounts from my Windows XP Professional workstation?
    713                 </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id2558117"></a><a name="id2558119"></a><p><b>1.</b></p></td><td align="left" valign="top"><p>
     713                </a></dt></dl><table border="0" width="100%" summary="Q and A Set"><col align="left" width="1%"><col><tbody><tr class="question" title="1."><td align="left" valign="top"><a name="id2564174"></a><a name="id2564176"></a><p><b>1.</b></p></td><td align="left" valign="top"><p>
    714714                What is the key benefit of using DHCP to configure Windows client TCP/IP stacks?
    715715                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    720720                default routes and DNS server addresses that apply only to the Abmas office environment do
    721721                not interfere with remote operations. This is an extremely important feature of DHCP.
    722                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558144"></a><a name="id2558146"></a><p><b>2.</b></p></td><td align="left" valign="top"><p>
     722                </p></td></tr><tr class="question" title="2."><td align="left" valign="top"><a name="id2564201"></a><a name="id2564203"></a><p><b>2.</b></p></td><td align="left" valign="top"><p>
    723723                Are there any DHCP server configuration parameters in the <code class="filename">/etc/dhcpd.conf</code>
    724724                that should be noted in particular?
     
    729729                NetBIOS machine name needs to be resolved to an IP Address. This configuration
    730730                results in far lower UDP broadcast traffic than would be the case if WINS was not used.
    731                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558175"></a><a name="id2558177"></a><p><b>3.</b></p></td><td align="left" valign="top"><p>
     731                </p></td></tr><tr class="question" title="3."><td align="left" valign="top"><a name="id2564232"></a><a name="id2564234"></a><p><b>3.</b></p></td><td align="left" valign="top"><p>
    732732                Is it possible to create a Windows Domain account that is specifically called <code class="constant">Administrator</code>?
    733733                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    736736                necessary to use the <em class="parameter"><code>username map</code></em> facility to map this account to the UNIX
    737737                account called <code class="constant">root</code>.
    738                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558211"></a><a name="id2558213"></a><p><b>4.</b></p></td><td align="left" valign="top"><p>
     738                </p></td></tr><tr class="question" title="4."><td align="left" valign="top"><a name="id2564268"></a><a name="id2564270"></a><p><b>4.</b></p></td><td align="left" valign="top"><p>
    739739                Why is it necessary to give the Windows Domain <code class="constant">Administrator</code> a UNIX UID of 0?
    740740                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    746746                settings within the Domain and on the Samba server, equivalent rights must be assigned. This is
    747747                achieved with the <code class="constant">root</code> UID equal to 0.
    748                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558250"></a><a name="id2558252"></a><p><b>5.</b></p></td><td align="left" valign="top"><p>
     748                </p></td></tr><tr class="question" title="5."><td align="left" valign="top"><a name="id2564307"></a><a name="id2564309"></a><p><b>5.</b></p></td><td align="left" valign="top"><p>
    749749                One of my junior staff needs the ability to add machines to the Domain, but I do not want to give him
    750750                <code class="constant">root</code> access. How can we do this?
     
    755755                This must be the primary GID of the account of the user who is a member of the Windows <code class="constant">
    756756                Domain Admins</code> account.
    757                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558289"></a><a name="id2558291"></a><p><b>6.</b></p></td><td align="left" valign="top"><p>
     757                </p></td></tr><tr class="question" title="6."><td align="left" valign="top"><a name="id2564346"></a><a name="id2564348"></a><p><b>6.</b></p></td><td align="left" valign="top"><p>
    758758                Why must I map Windows Domain Groups to UNIX groups?
    759759                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    761761                has a UNIX group account equivalent. The Domain groups that should be given UNIX equivalents are
    762762                <span class="guimenu">Domain Guests</span>, <span class="guimenu">Domain Users</span>, and <span class="guimenu">Domain Admins</span>.
    763                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558325"></a><a name="id2558328"></a><p><b>7.</b></p></td><td align="left" valign="top"><p>
     763                </p></td></tr><tr class="question" title="7."><td align="left" valign="top"><a name="id2564382"></a><a name="id2564385"></a><p><b>7.</b></p></td><td align="left" valign="top"><p>
    764764                I deleted my <code class="constant">root</code> account and now I cannot add it back! What can I do?
    765765                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
    766766                This is a nasty problem. Fortunately, there is a solution.
    767                 </p><div class="procedure"><ol type="1"><li><p>
     767                </p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    768768                        Back up your existing configuration files in case you need to restore them.
    769                         </p></li><li><p>
     769                        </p></li><li class="step" title="Step 2"><p>
    770770                        Rename the <code class="filename">group_mapping.tdb</code> file.
    771                         </p></li><li><p>
     771                        </p></li><li class="step" title="Step 3"><p>
    772772                        Use the <code class="literal">smbpasswd</code> to add the root account.
    773                         </p></li><li><p>
     773                        </p></li><li class="step" title="Step 4"><p>
    774774                        Restore the <code class="filename">group_mapping.tdb</code> file.
    775                         </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558393"></a><a name="id2558395"></a><p><b>8.</b></p></td><td align="left" valign="top"><p>
     775                        </p></li></ol></div></td></tr><tr class="question" title="8."><td align="left" valign="top"><a name="id2564450"></a><a name="id2564452"></a><p><b>8.</b></p></td><td align="left" valign="top"><p>
    776776                When I run <code class="literal">net groupmap list</code>, it reports a group called <span class="guimenu">Administrators</span>
    777777                as well as <span class="guimenu">Domain Admins</span>. What is the difference between them?
     
    781781                Groups at this time. A Workstation or Server Local Group has no meaning in a Samba context. This
    782782                may change at some later date. These accounts are provided only so that security objects are correctly shown.
    783                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558437"></a><a name="id2558440"></a><p><b>9.</b></p></td><td align="left" valign="top"><p>
     783                </p></td></tr><tr class="question" title="9."><td align="left" valign="top"><a name="id2564494"></a><a name="id2564497"></a><p><b>9.</b></p></td><td align="left" valign="top"><p>
    784784                What is the effect of changing the name of a Samba server or of changing the Domain name?
    785785                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    793793                or the <code class="literal">smbpasswd</code> (Samba-2.2.x). To change the SID, you use the same tool. Be sure
    794794                to check the man page for this command for detailed instructions regarding the steps involved.
    795                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558487"></a><a name="id2558489"></a><p><b>10.</b></p></td><td align="left" valign="top"><p>
     795                </p></td></tr><tr class="question" title="10."><td align="left" valign="top"><a name="id2564544"></a><a name="id2564546"></a><p><b>10.</b></p></td><td align="left" valign="top"><p>
    796796                How can I manage user accounts from my Windows XP Professional workstation?
    797797                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
Note: See TracChangeset for help on using the changeset viewer.