Ignore:
Timestamp:
Jul 6, 2011, 8:21:13 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/docs/htmldocs/Samba3-ByExample/small.html

    r414 r599  
    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#id2555439">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2555462">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2555522">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2555570">Technical Issues</a></span></dt><dt><span class="sect2"><a href="small.html#id2555768">Political Issues</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2555790">Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id2557337">Validation</a></span></dt><dt><span class="sect2"><a href="small.html#id2557985">Notebook Computers: A Special Case</a></span></dt><dt><span class="sect2"><a href="small.html#id2558010">Key Points Learned</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id2558084">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#id327308">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id327326">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id327371">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id327416">Technical Issues</a></span></dt><dt><span class="sect2"><a href="small.html#id327588">Political Issues</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id327606">Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="small.html#id329058">Validation</a></span></dt><dt><span class="sect2"><a href="small.html#id329633">Notebook Computers: A Special Case</a></span></dt><dt><span class="sect2"><a href="small.html#id329652">Key Points Learned</a></span></dt></dl></dd><dt><span class="sect1"><a href="small.html#id329716">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="id2555395"></a>
     11        <a class="indexterm" name="id327280"></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="id2555439"></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="id327308"></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="id2555462"></a>Assignment Tasks</h3></div></div></div><p>
    51                 <a class="indexterm" name="id2555469"></a>
     50        </p><div class="sect2" title="Assignment Tasks"><div class="titlepage"><div><div><h3 class="title"><a name="id327326"></a>Assignment Tasks</h3></div></div></div><p>
     51                <a class="indexterm" name="id327333"></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="id2555522"></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="id327371"></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="id2555543"></a>
    91                 </p></li><li><p>
     90                <a class="indexterm" name="id327391"></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="id2555570"></a>Technical Issues</h3></div></div></div><p>
    100                 <a class="indexterm" name="id2555577"></a>
    101                 <a class="indexterm" name="id2555584"></a>
    102                 <a class="indexterm" name="id2555590"></a>
    103                 <a class="indexterm" name="id2555596"></a>
    104                 <a class="indexterm" name="id2555602"></a>
     99        </p><div class="sect2" title="Technical Issues"><div class="titlepage"><div><div><h3 class="title"><a name="id327416"></a>Technical Issues</h3></div></div></div><p>
     100                <a class="indexterm" name="id327424"></a>
     101                <a class="indexterm" name="id327430"></a>
     102                <a class="indexterm" name="id327436"></a>
     103                <a class="indexterm" name="id327443"></a>
     104                <a class="indexterm" name="id327449"></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="id2555662"></a>
     125                <a class="indexterm" name="id327498"></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="id2555692"></a>
    141                 <a class="indexterm" name="id2555700"></a>
     140                <a class="indexterm" name="id327521"></a>
     141                <a class="indexterm" name="id327530"></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="id2555755"></a>
     158                <a class="indexterm" name="id327576"></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="id2555768"></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="id327588"></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="id2555790"></a>Implementation</h2></div></div></div><p>
    170         <a class="indexterm" name="id2555797"></a>
     169                </p></div></div><div class="sect1" title="Implementation"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id327606"></a>Implementation</h2></div></div></div><p>
     170        <a class="indexterm" name="id327614"></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="id2555823"></a>
     178        <a class="indexterm" name="id327636"></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="id2555838"></a>
     184        <a class="indexterm" name="id327648"></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="id2555852"></a>
     188        <a class="indexterm" name="id327661"></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.
    191191        </p><p>
    192192        </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><p><br class="figure-break">
    193 </p><div class="procedure"><a name="id2555910"></a><p class="title"><b>Procedure 2.1. Server Installation Steps</b></p><ol type="1"><li><p>
     193</p><div class="procedure" title="Procedure 2.1. Server Installation Steps"><a name="id327717"></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>
    194194                Using UNIX/Linux system tools, name the server <code class="constant">sleeth</code>.
    195                 </p></li><li><p>
    196                 <a class="indexterm" name="id2555931"></a>
     195                </p></li><li class="step" title="Step 2"><p>
     196                <a class="indexterm" name="id327737"></a>
    197197                Place an entry for the machine <code class="constant">sleeth</code> in the <code class="filename">/etc/hosts</code>.
    198198                The printers are network attached, so there should be entries for the
     
    205205192.168.2.10    qms
    206206</pre><p>
    207                 </p></li><li><p>
     207                </p></li><li class="step" title="Step 3"><p>
    208208                Install the Samba-3 binary RPM from the Samba-Team FTP site.
    209                 </p></li><li><p>
     209                </p></li><li class="step" title="Step 4"><p>
    210210                Install the ISC DHCP server using the UNIX/Linux system tools available to you.
    211                 </p></li><li><p>
    212                 <a class="indexterm" name="id2555982"></a>
    213                 <a class="indexterm" name="id2555988"></a>
    214                 <a class="indexterm" name="id2555995"></a>
    215                 <a class="indexterm" name="id2556001"></a>
     211                </p></li><li class="step" title="Step 5"><p>
     212                <a class="indexterm" name="id327784"></a>
     213                <a class="indexterm" name="id327791"></a>
     214                <a class="indexterm" name="id327797"></a>
     215                <a class="indexterm" name="id327803"></a>
    216216                Because Samba will be operating over two network interfaces and clients on each side
    217217                may want to be able to reach clients on the other side, it is imperative that IP forwarding
     
    223223</pre><p>
    224224                This causes the Linux kernel to forward IP packets so that it acts as a router.
    225                 </p></li><li><p>
     225                </p></li><li class="step" title="Step 6"><p>
    226226                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
    227227                <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
    228228                <code class="filename">/etc/samba/smb.conf</code> file.
    229                 </p></li><li><p>
    230                 <a class="indexterm" name="id2556060"></a>
     229                </p></li><li class="step" title="Step 7"><p>
     230                <a class="indexterm" name="id327856"></a>
    231231                Add the user <code class="literal">root</code> to the Samba password backend:
    232232</p><pre class="screen">
     
    236236<code class="prompt">root# </code>
    237237</pre><p>
    238                 <a class="indexterm" name="id2556089"></a>
     238                <a class="indexterm" name="id327884"></a>
    239239                This is the Windows Domain Administrator password. Never delete this account from
    240240                the password backend after Windows Domain Groups have been initialized. If you delete
    241241                this account, your system is crippled. You cannot restore this account,
    242242                and your Samba server can no longer be administered.
    243                 </p></li><li><p>
    244                 <a class="indexterm" name="id2556107"></a>
     243                </p></li><li class="step" title="Step 8"><p>
     244                <a class="indexterm" name="id327899"></a>
    245245                Create the username map file to permit the <code class="constant">root</code> account to be called
    246246                <code class="constant">Administrator</code> from the Windows network environment. To do this, create
     
    268268####
    269269</pre><p>
    270                 </p></li><li><p>
    271                 <a class="indexterm" name="id2556147"></a>
     270                </p></li><li class="step" title="Step 9"><p>
     271                <a class="indexterm" name="id327933"></a>
    272272                Create and map Windows Domain Groups to UNIX groups. A sample script is provided in
    273273                <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
     
    275275                and then execute the script. Sample output should be as follows:
    276276
    277 </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="id2556176"></a><pre class="screen">
     277</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="id327958"></a><pre class="screen">
    278278#!/bin/bash
    279279#
     
    324324Users (S-1-5-32-545) -&gt; -1
    325325</pre><p>
    326                 </p></li><li><p>
    327                 <a class="indexterm" name="id2556254"></a>
    328                 <a class="indexterm" name="id2556260"></a>
    329                 <a class="indexterm" name="id2556268"></a>
     326                </p></li><li class="step" title="Step 10"><p>
     327                <a class="indexterm" name="id328022"></a>
     328                <a class="indexterm" name="id328029"></a>
     329                <a class="indexterm" name="id328037"></a>
    330330                For each user who needs to be given a Windows Domain account, make an entry in the
    331331                <code class="filename">/etc/passwd</code> file as well as in the Samba password backend.
     
    333333                <code class="literal">smbpasswd</code> program to create the Domain user accounts.
    334334                </p><p>
    335                 <a class="indexterm" name="id2556293"></a>
    336                 <a class="indexterm" name="id2556300"></a>
    337                 <a class="indexterm" name="id2556306"></a>
     335                <a class="indexterm" name="id328059"></a>
     336                <a class="indexterm" name="id328066"></a>
     337                <a class="indexterm" name="id328072"></a>
    338338                There are a number of tools for user management under UNIX, such as
    339339                <code class="literal">useradd</code> and <code class="literal">adduser</code>, as well as a plethora of custom
    340340                tools. With the tool of your choice, create a home directory for each user.
    341                 </p></li><li><p>
     341                </p></li><li class="step" title="Step 11"><p>
    342342                Using the preferred tool for your UNIX system, add each user to the UNIX groups created
    343343                previously, as necessary. File system access control will be based on UNIX group membership.
    344                 </p></li><li><p>
     344                </p></li><li class="step" title="Step 12"><p>
    345345                Create the directory mount point for the disk subsystem that is mounted to provide
    346346                data storage for company files. In this case the mount point is indicated in the <code class="filename">smb.conf</code>
     
    348348                file system partition using <code class="literal">mount</code>,
    349349                and make the appropriate changes in <code class="filename">/etc/fstab</code>.
    350                 </p></li><li><p>
     350                </p></li><li class="step" title="Step 13"><p>
    351351                Create the top-level file storage directories are follows:
    352352</p><pre class="screen">
     
    360360                share. The directory root of the <code class="literal">accounts</code> share is <code class="filename">/data/accounts</code>.
    361361                The directory root of the <code class="literal">finsvcs</code> share is <code class="filename">/data/finsvcs</code>.
    362                 </p></li><li><p>
     362                </p></li><li class="step" title="Step 14"><p>
    363363                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>.
    364364                Follow the instructions in the manufacturers' manuals to permit printing to port 9100.
    365365                This allows the CUPS spooler to print using raw mode protocols.
    366                 <a class="indexterm" name="id2556450"></a>
    367                 <a class="indexterm" name="id2556456"></a>
    368                 </p></li><li><p>
    369                 <a class="indexterm" name="id2556468"></a>
    370                 <a class="indexterm" name="id2556477"></a>
     366                <a class="indexterm" name="id328203"></a>
     367                <a class="indexterm" name="id328209"></a>
     368                </p></li><li class="step" title="Step 15"><p>
     369                <a class="indexterm" name="id328222"></a>
     370                <a class="indexterm" name="id328230"></a>
    371371                Configure the CUPS Print Queues as follows:
    372372</p><pre class="screen">
     
    375375<code class="prompt">root# </code> lpadmin -p qms -v socket://192.168.2.10:9100 -E
    376376</pre><p>
    377                 <a class="indexterm" name="id2556508"></a>
     377                <a class="indexterm" name="id328257"></a>
    378378                This creates the necessary print queues with no assigned print filter.
    379                 </p></li><li><p>
    380                 <a class="indexterm" name="id2556522"></a>
    381                 <a class="indexterm" name="id2556528"></a>
    382                 <a class="indexterm" name="id2556534"></a>
     379                </p></li><li class="step" title="Step 16"><p>
     380                <a class="indexterm" name="id328270"></a>
     381                <a class="indexterm" name="id328277"></a>
     382                <a class="indexterm" name="id328283"></a>
    383383                Edit the file <code class="filename">/etc/cups/mime.convs</code> to uncomment the line:
    384384</p><pre class="screen">
    385385application/octet-stream     application/vnd.cups-raw      0     -
    386386</pre><p>
    387                 </p></li><li><p>
    388                 <a class="indexterm" name="id2556558"></a>
     387                </p></li><li class="step" title="Step 17"><p>
     388                <a class="indexterm" name="id328306"></a>
    389389                Edit the file <code class="filename">/etc/cups/mime.types</code> to uncomment the line:
    390390</p><pre class="screen">
    391391application/octet-stream
    392392</pre><p>
    393                 </p></li><li><p>
    394                 <a class="indexterm" name="id2556581"></a>
     393                </p></li><li class="step" title="Step 18"><p>
     394                <a class="indexterm" name="id328329"></a>
    395395                Using your favorite system editor, create an <code class="filename">/etc/dhcpd.conf</code> with the
    396396                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>.
    397 </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="id2556614"></a><pre class="screen">
     397</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="id328359"></a><pre class="screen">
    398398default-lease-time 86400;
    399399max-lease-time 172800;
     
    439439        }
    440440</pre></div></div><p><br class="example-break">
    441                 </p></li><li><p>
     441                </p></li><li class="step" title="Step 19"><p>
    442442                Use the standard system tool to start Samba and CUPS and configure them to start
    443443                automatically at every system reboot. For example,
    444444                </p><p>
    445                 <a class="indexterm" name="id2556658"></a>
    446                 <a class="indexterm" name="id2556664"></a>
    447                 <a class="indexterm" name="id2556670"></a>
    448                 <a class="indexterm" name="id2556676"></a>
    449                 <a class="indexterm" name="id2556683"></a>
     445                <a class="indexterm" name="id328392"></a>
     446                <a class="indexterm" name="id328398"></a>
     447                <a class="indexterm" name="id328404"></a>
     448                <a class="indexterm" name="id328411"></a>
     449                <a class="indexterm" name="id328417"></a>
    450450</p><pre class="screen">
    451451<code class="prompt">root# </code> chkconfig dhcp on
     
    456456<code class="prompt">root# </code> /etc/rc.d/init.d/cups restart
    457457</pre><p>
    458                 </p></li><li><p>
    459                 <a class="indexterm" name="id2556733"></a>
    460                 <a class="indexterm" name="id2556739"></a>
    461                 <a class="indexterm" name="id2556748"></a>
    462                 <a class="indexterm" name="id2556754"></a>
    463                 <a class="indexterm" name="id2556760"></a>
    464                 <a class="indexterm" name="id2556766"></a>
     458                </p></li><li class="step" title="Step 20"><p>
     459                <a class="indexterm" name="id328466"></a>
     460                <a class="indexterm" name="id328472"></a>
     461                <a class="indexterm" name="id328480"></a>
     462                <a class="indexterm" name="id328487"></a>
     463                <a class="indexterm" name="id328493"></a>
     464                <a class="indexterm" name="id328499"></a>
    465465                Configure the name service switch (NSS) to handle WINS-based name resolution.
    466466                Since this system does not use a DNS server, it is safe to remove this option from
     
    470470hosts:  files wins
    471471</pre><p>
    472                 </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="id2556824"></a><em class="parameter"><code>workgroup = BILLMORE</code></em></td></tr><tr><td><a class="indexterm" name="id2556834"></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="id2556846"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2556857"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2556867"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2556878"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2556889"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2556900"></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="id2556911"></a><em class="parameter"><code>delete user script = /usr/sbin/userdel -r '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id2556922"></a><em class="parameter"><code>add group script = /usr/sbin/groupadd '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id2556934"></a><em class="parameter"><code>delete group script = /usr/sbin/groupdel '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id2556945"></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="id2556956"></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="id2556968"></a><em class="parameter"><code>logon script = scripts\login.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2556979"></a><em class="parameter"><code>logon path =  </code></em></td></tr><tr><td><a class="indexterm" name="id2556990"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2557000"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557011"></a><em class="parameter"><code>preferred master = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557021"></a><em class="parameter"><code>wins support = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557031"></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="id2557072"></a><em class="parameter"><code>comment = Home Directories</code></em></td></tr><tr><td><a class="indexterm" name="id2557082"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2557093"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2557103"></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="id2557122"></a><em class="parameter"><code>comment = SMB Print Spool</code></em></td></tr><tr><td><a class="indexterm" name="id2557132"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2557143"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557153"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557163"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2557174"></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="id2557193"></a><em class="parameter"><code>comment = Network Logon Service</code></em></td></tr><tr><td><a class="indexterm" name="id2557204"></a><em class="parameter"><code>path = /data/%U</code></em></td></tr><tr><td><a class="indexterm" name="id2557214"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2557224"></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="id2557243"></a><em class="parameter"><code>comment = Accounting Files</code></em></td></tr><tr><td><a class="indexterm" name="id2557254"></a><em class="parameter"><code>path = /data/accounts</code></em></td></tr><tr><td><a class="indexterm" name="id2557264"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id2557274"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[finsrvcs]</code></em></td></tr><tr><td><a class="indexterm" name="id2557293"></a><em class="parameter"><code>comment = Financial Service Files</code></em></td></tr><tr><td><a class="indexterm" name="id2557304"></a><em class="parameter"><code>path = /data/finsrvcs</code></em></td></tr><tr><td><a class="indexterm" name="id2557315"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id2557325"></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="id2557337"></a>Validation</h3></div></div></div><p>
     472                </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="id328555"></a><em class="parameter"><code>workgroup = BILLMORE</code></em></td></tr><tr><td><a class="indexterm" name="id328565"></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="id328576"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id328587"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id328597"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id328607"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id328618"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id328628"></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="id328639"></a><em class="parameter"><code>delete user script = /usr/sbin/userdel -r '%u'</code></em></td></tr><tr><td><a class="indexterm" name="id328649"></a><em class="parameter"><code>add group script = /usr/sbin/groupadd '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id328659"></a><em class="parameter"><code>delete group script = /usr/sbin/groupdel '%g'</code></em></td></tr><tr><td><a class="indexterm" name="id328670"></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="id328681"></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="id328692"></a><em class="parameter"><code>logon script = scripts\login.bat</code></em></td></tr><tr><td><a class="indexterm" name="id328702"></a><em class="parameter"><code>logon path =  </code></em></td></tr><tr><td><a class="indexterm" name="id328713"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id328723"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328734"></a><em class="parameter"><code>preferred master = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328744"></a><em class="parameter"><code>wins support = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328754"></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="id328794"></a><em class="parameter"><code>comment = Home Directories</code></em></td></tr><tr><td><a class="indexterm" name="id328805"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id328815"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id328825"></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="id328844"></a><em class="parameter"><code>comment = SMB Print Spool</code></em></td></tr><tr><td><a class="indexterm" name="id328855"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id328865"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328875"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328886"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328896"></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="id328915"></a><em class="parameter"><code>comment = Network Logon Service</code></em></td></tr><tr><td><a class="indexterm" name="id328925"></a><em class="parameter"><code>path = /data/%U</code></em></td></tr><tr><td><a class="indexterm" name="id328936"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id328946"></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="id328965"></a><em class="parameter"><code>comment = Accounting Files</code></em></td></tr><tr><td><a class="indexterm" name="id328975"></a><em class="parameter"><code>path = /data/accounts</code></em></td></tr><tr><td><a class="indexterm" name="id328986"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id328996"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[finsrvcs]</code></em></td></tr><tr><td><a class="indexterm" name="id329015"></a><em class="parameter"><code>comment = Financial Service Files</code></em></td></tr><tr><td><a class="indexterm" name="id329025"></a><em class="parameter"><code>path = /data/finsrvcs</code></em></td></tr><tr><td><a class="indexterm" name="id329036"></a><em class="parameter"><code>valid users = %G</code></em></td></tr><tr><td><a class="indexterm" name="id329046"></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="id329058"></a>Validation</h3></div></div></div><p>
    473473                Does everything function as it ought? That is the key question at this point.
    474474                Here are some simple steps to validate your Samba server configuration.
    475                 </p><div class="procedure"><a name="id2557348"></a><p class="title"><b>Procedure 2.2. Validation Steps</b></p><ol type="1"><li><p>
    476                         <a class="indexterm" name="id2557358"></a>
     475                </p><div class="procedure" title="Procedure 2.2. Validation Steps"><a name="id329068"></a><p class="title"><b>Procedure 2.2. Validation Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     476                        <a class="indexterm" name="id329078"></a>
    477477                        If your <code class="filename">smb.conf</code> file has bogus options or parameters, this may cause Samba
    478478                        to refuse to start. The first step should always be to validate the contents
     
    520520</pre><p>
    521521                        Clear away all errors before proceeding, and start or restart samba as necessary.
    522                         </p></li><li><p>
    523                         <a class="indexterm" name="id2557438"></a>
    524                         <a class="indexterm" name="id2557444"></a>
    525                         <a class="indexterm" name="id2557450"></a>
    526                         <a class="indexterm" name="id2557457"></a>
     522                        </p></li><li class="step" title="Step 2"><p>
     523                        <a class="indexterm" name="id329135"></a>
     524                        <a class="indexterm" name="id329141"></a>
     525                        <a class="indexterm" name="id329148"></a>
     526                        <a class="indexterm" name="id329154"></a>
    527527                        Check that the Samba server is running:
    528528</p><pre class="screen">
     
    540540                        <span class="emphasis"><em>TOSHARG2</em></span>, Chapter 23, Section 23.3. The single instance of
    541541                        <code class="literal">smbd</code> is normal.
    542                         </p></li><li><p>
    543                         <a class="indexterm" name="id2557508"></a>
     542                        </p></li><li class="step" title="Step 3"><p>
     543                        <a class="indexterm" name="id329199"></a>
    544544                        Check that an anonymous connection can be made to the Samba server:
    545545</p><pre class="screen">
     
    569569                        The <code class="constant">-U%</code> argument means to send a <code class="constant">NULL</code> username and
    570570                        a <code class="constant">NULL</code> password.
    571                         </p></li><li><p>
    572                         <a class="indexterm" name="id2557558"></a>
    573                         <a class="indexterm" name="id2557564"></a>
    574                         <a class="indexterm" name="id2557571"></a>
     571                        </p></li><li class="step" title="Step 4"><p>
     572                        <a class="indexterm" name="id329241"></a>
     573                        <a class="indexterm" name="id329247"></a>
     574                        <a class="indexterm" name="id329254"></a>
    575575                        Verify that the printers have the IP addresses assigned in the DHCP server configuration file.
    576576                        The easiest way to do this is to ping the printer name. Immediately after the ping response
     
    590590                        IP address from which the printer has responded and the entry for it in the
    591591                        <code class="filename">/etc/dhcpd.conf</code> file.
    592                         </p></li><li><p>
    593                         <a class="indexterm" name="id2557631"></a>
     592                        </p></li><li class="step" title="Step 5"><p>
     593                        <a class="indexterm" name="id329307"></a>
    594594                        Make an authenticated connection to the server using the <code class="literal">smbclient</code> tool:
    595595</p><pre class="screen">
     
    608608smb: \&gt; q
    609609</pre><p>
    610                         </p></li></ol></div></div><div class="procedure"><a name="id2557680"></a><p class="title"><b>Procedure 2.3. Windows XP Professional Client Configuration</b></p><ol type="1"><li><p>
     610                        </p></li></ol></div></div><div class="procedure" title="Procedure 2.3. Windows XP Professional Client Configuration"><a name="id329344"></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>
    611611                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>.
    612612                All clients use DHCP for TCP/IP protocol stack configuration.
    613                 <a class="indexterm" name="id2557698"></a>
    614                 <a class="indexterm" name="id2557704"></a>
     613                <a class="indexterm" name="id329359"></a>
     614                <a class="indexterm" name="id329366"></a>
    615615                DHCP configures all Windows clients to use the WINS Server address <code class="constant">192.168.1.1</code>.
    616                 </p></li><li><p>
     616                </p></li><li class="step" title="Step 2"><p>
    617617                Join the Windows Domain called <code class="constant">BILLMORE</code>. Use the Domain Administrator
    618618                username <code class="constant">root</code> and the SMB password you assigned to this account.
     
    620620                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>.
    621621                Reboot the machine as prompted and then log on using a Domain User account.
    622                 </p></li><li><p>
     622                </p></li><li class="step" title="Step 3"><p>
    623623                Verify on each client that the machine called <code class="constant">SLEETH</code>
    624624                is visible in <span class="guimenu">My Network Places</span>, that it is
     
    626626                 and <span class="guimenuitem">finsvcs</span>,
    627627                and that it is possible to open that share to reveal its contents.
    628                 </p></li><li><p>
     628                </p></li><li class="step" title="Step 4"><p>
    629629                Instruct all users to log onto the workstation using their assigned username and password.
    630                 </p></li><li><p>
     630                </p></li><li class="step" title="Step 5"><p>
    631631                Install a printer on each using the following steps:
    632                 </p><div class="procedure"><ol type="1"><li><p>
     632                </p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 5.1"><p>
    633633                                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>.
    634634                                        Ensure that <span class="guimenuitem">Local printer</span> is selected.
    635                                 </p></li><li><p>
     635                                </p></li><li class="step" title="Step 5.2"><p>
    636636                                Click <span class="guibutton">Next</span>. In the
    637637                                <span class="guimenuitem">Manufacturer:</span> panel, select <code class="constant">HP</code>.
    638638                                In the <span class="guimenuitem">Printers:</span> panel, select the printer called
    639639                                <code class="constant">HP LaserJet 4</code>. Click <span class="guibutton">Next</span>.
    640                                 </p></li><li><p>
     640                                </p></li><li class="step" title="Step 5.3"><p>
    641641                                In the <span class="guimenuitem">Available ports:</span> panel, select
    642642                                <code class="constant">FILE:</code>. Accept the default printer name by clicking
    643                                 <span class="guibutton">Next</span>. When asked, &#8220;<span class="quote">Would you like to print a
    644                                 test page?</span>&#8221;, click <span class="guimenuitem">No</span>. Click
     643                                <span class="guibutton">Next</span>. When asked, <span class="quote">&#8220;<span class="quote">Would you like to print a
     644                                test page?</span>&#8221;</span>, click <span class="guimenuitem">No</span>. Click
    645645                                <span class="guibutton">Finish</span>.
    646                                 </p></li><li><p>
     646                                </p></li><li class="step" title="Step 5.4"><p>
    647647                                You may be prompted for the name of a file to print to. If so, close the
    648648                                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>.
    649                                 </p></li><li><p>
     649                                </p></li><li class="step" title="Step 5.5"><p>
    650650                                In the <span class="guimenuitem">Network</span> panel, enter the name of
    651651                                the print queue on the Samba server as follows: <code class="constant">\\SERVER\hplj4</code>.
    652652                                Click <span class="guibutton">OK</span>+<span class="guibutton">OK</span> to complete the installation.
    653                                 </p></li><li><p>
     653                                </p></li><li class="step" title="Step 5.6"><p>
    654654                                Repeat the printer installation steps above for the HP LaserJet 6 printer
    655655                                as well as for the QMS Magicolor XXXX laser printer.
    656                                 </p></li></ol></div></li></ol></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2557985"></a>Notebook Computers: A Special Case</h3></div></div></div><p>
     656                                </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="id329633"></a>Notebook Computers: A Special Case</h3></div></div></div><p>
    657657        As a network administrator, you already know how to create local machine accounts for Windows 200x/XP
    658658        Professional systems. This is the preferred solution to provide continuity of work for notebook users
     
    664664        that mean that as the network is more tightly secured, it becomes necessary to modify Windows client
    665665        configuration somewhat.
    666         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2558010"></a>Key Points Learned</h3></div></div></div><p>
     666        </p></div><div class="sect2" title="Key Points Learned"><div class="titlepage"><div><div><h3 class="title"><a name="id329652"></a>Key Points Learned</h3></div></div></div><p>
    667667                In this network design and implementation exercise, you created a Windows NT4-style Domain
    668668                Controller using Samba-3.0.20. Following these guidelines, you experienced
    669669                and implemented several important aspects of Windows networking. In the next chapter,
    670670                you build on the experience. These are the highlights from this chapter:
    671                 </p><div class="itemizedlist"><ul type="disc"><li><p>
    672                         <a class="indexterm" name="id2558030"></a>
     671                </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     672                        <a class="indexterm" name="id329669"></a>
    673673                        You implemented a DHCP server, and Microsoft Windows clients were able to obtain all necessary
    674674                        network configuration settings from this server.
    675                         </p></li><li><p>
    676                         <a class="indexterm" name="id2558043"></a>
     675                        </p></li><li class="listitem"><p>
     676                        <a class="indexterm" name="id329681"></a>
    677677                        You created a Windows Domain Controller. You were able to use the network logon service
    678678                        and successfully joined Windows 200x/XP Professional clients to the Domain.
    679                         </p></li><li><p>
    680                         <a class="indexterm" name="id2558057"></a>
     679                        </p></li><li class="listitem"><p>
     680                        <a class="indexterm" name="id329693"></a>
    681681                        You created raw print queues in the CUPS printing system. You maintained a simple
    682682                        printing system so that all users can share centrally managed printers. You installed
    683683                        native printer drivers on the Windows clients.
    684                         </p></li><li><p>
     684                        </p></li><li class="listitem"><p>
    685685                        You experienced the benefits of centrally managed user accounts on the server.
    686                         </p></li><li><p>
     686                        </p></li><li class="listitem"><p>
    687687                        You offered Mobile notebook users a solution that allows them to continue to work
    688688                        while away from the office and not connected to the corporate network.
    689                         </p></li></ul></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2558084"></a>Questions and Answers</h2></div></div></div><p>
     689                        </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="id329716"></a>Questions and Answers</h2></div></div></div><p>
    690690        Your new Domain Controller is ready to serve you. What does it mean? Here are some questions and answers that
    691691        may help.
    692         </p><div class="qandaset"><dl><dt>1. <a href="small.html#id2558097">
     692        </p><div class="qandaset" title="Frequently Asked Questions"><a name="id329726"></a><dl><dt>1. <a href="small.html#id329728">
    693693                What is the key benefit of using DHCP to configure Windows client TCP/IP stacks?
    694                 </a></dt><dt>2. <a href="small.html#id2558124">
     694                </a></dt><dt>2. <a href="small.html#id329750">
    695695                Are there any DHCP server configuration parameters in the /etc/dhcpd.conf
    696696                that should be noted in particular?
    697                 </a></dt><dt>3. <a href="small.html#id2558155">
     697                </a></dt><dt>3. <a href="small.html#id329776">
    698698                Is it possible to create a Windows Domain account that is specifically called Administrator?
    699                 </a></dt><dt>4. <a href="small.html#id2558192">
     699                </a></dt><dt>4. <a href="small.html#id329810">
    700700                Why is it necessary to give the Windows Domain Administrator a UNIX UID of 0?
    701                 </a></dt><dt>5. <a href="small.html#id2558230">
     701                </a></dt><dt>5. <a href="small.html#id329843">
    702702                One of my junior staff needs the ability to add machines to the Domain, but I do not want to give him
    703703                root access. How can we do this?
    704                 </a></dt><dt>6. <a href="small.html#id2558270">
     704                </a></dt><dt>6. <a href="small.html#id329878">
    705705                Why must I map Windows Domain Groups to UNIX groups?
    706                 </a></dt><dt>7. <a href="small.html#id2558306">
     706                </a></dt><dt>7. <a href="small.html#id329912">
    707707                I deleted my root account and now I cannot add it back! What can I do?
    708                 </a></dt><dt>8. <a href="small.html#id2558373">
     708                </a></dt><dt>8. <a href="small.html#id329978">
    709709                When I run net groupmap list, it reports a group called Administrators
    710710                as well as Domain Admins. What is the difference between them?
    711                 </a></dt><dt>9. <a href="small.html#id2558418">
     711                </a></dt><dt>9. <a href="small.html#id330018">
    712712                What is the effect of changing the name of a Samba server or of changing the Domain name?
    713                 </a></dt><dt>10. <a href="small.html#id2558467">
     713                </a></dt><dt>10. <a href="small.html#id330060">
    714714                How can I manage user accounts from my Windows XP Professional workstation?
    715                 </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="id2558097"></a><a name="id2558099"></a><p><b>1.</b></p></td><td align="left" valign="top"><p>
     715                </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="id329728"></a><a name="id329730"></a><p><b>1.</b></p></td><td align="left" valign="top"><p>
    716716                What is the key benefit of using DHCP to configure Windows client TCP/IP stacks?
    717717                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    722722                default routes and DNS server addresses that apply only to the Abmas office environment do
    723723                not interfere with remote operations. This is an extremely important feature of DHCP.
    724                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558124"></a><a name="id2558126"></a><p><b>2.</b></p></td><td align="left" valign="top"><p>
     724                </p></td></tr><tr class="question" title="2."><td align="left" valign="top"><a name="id329750"></a><a name="id329752"></a><p><b>2.</b></p></td><td align="left" valign="top"><p>
    725725                Are there any DHCP server configuration parameters in the <code class="filename">/etc/dhcpd.conf</code>
    726726                that should be noted in particular?
     
    731731                NetBIOS machine name needs to be resolved to an IP Address. This configuration
    732732                results in far lower UDP broadcast traffic than would be the case if WINS was not used.
    733                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558155"></a><a name="id2558157"></a><p><b>3.</b></p></td><td align="left" valign="top"><p>
     733                </p></td></tr><tr class="question" title="3."><td align="left" valign="top"><a name="id329776"></a><a name="id329778"></a><p><b>3.</b></p></td><td align="left" valign="top"><p>
    734734                Is it possible to create a Windows Domain account that is specifically called <code class="constant">Administrator</code>?
    735735                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    738738                necessary to use the <em class="parameter"><code>username map</code></em> facility to map this account to the UNIX
    739739                account called <code class="constant">root</code>.
    740                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558192"></a><a name="id2558194"></a><p><b>4.</b></p></td><td align="left" valign="top"><p>
     740                </p></td></tr><tr class="question" title="4."><td align="left" valign="top"><a name="id329810"></a><a name="id329812"></a><p><b>4.</b></p></td><td align="left" valign="top"><p>
    741741                Why is it necessary to give the Windows Domain <code class="constant">Administrator</code> a UNIX UID of 0?
    742742                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    748748                settings within the Domain and on the Samba server, equivalent rights must be assigned. This is
    749749                achieved with the <code class="constant">root</code> UID equal to 0.
    750                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558230"></a><a name="id2558232"></a><p><b>5.</b></p></td><td align="left" valign="top"><p>
     750                </p></td></tr><tr class="question" title="5."><td align="left" valign="top"><a name="id329843"></a><a name="id329845"></a><p><b>5.</b></p></td><td align="left" valign="top"><p>
    751751                One of my junior staff needs the ability to add machines to the Domain, but I do not want to give him
    752752                <code class="constant">root</code> access. How can we do this?
     
    757757                This must be the primary GID of the account of the user who is a member of the Windows <code class="constant">
    758758                Domain Admins</code> account.
    759                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558270"></a><a name="id2558272"></a><p><b>6.</b></p></td><td align="left" valign="top"><p>
     759                </p></td></tr><tr class="question" title="6."><td align="left" valign="top"><a name="id329878"></a><a name="id329880"></a><p><b>6.</b></p></td><td align="left" valign="top"><p>
    760760                Why must I map Windows Domain Groups to UNIX groups?
    761761                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    763763                has a UNIX group account equivalent. The Domain groups that should be given UNIX equivalents are
    764764                <span class="guimenu">Domain Guests</span>, <span class="guimenu">Domain Users</span>, and <span class="guimenu">Domain Admins</span>.
    765                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558306"></a><a name="id2558308"></a><p><b>7.</b></p></td><td align="left" valign="top"><p>
     765                </p></td></tr><tr class="question" title="7."><td align="left" valign="top"><a name="id329912"></a><a name="id329914"></a><p><b>7.</b></p></td><td align="left" valign="top"><p>
    766766                I deleted my <code class="constant">root</code> account and now I cannot add it back! What can I do?
    767767                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
    768768                This is a nasty problem. Fortunately, there is a solution.
    769                 </p><div class="procedure"><ol type="1"><li><p>
     769                </p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    770770                        Back up your existing configuration files in case you need to restore them.
    771                         </p></li><li><p>
     771                        </p></li><li class="step" title="Step 2"><p>
    772772                        Rename the <code class="filename">group_mapping.tdb</code> file.
    773                         </p></li><li><p>
     773                        </p></li><li class="step" title="Step 3"><p>
    774774                        Use the <code class="literal">smbpasswd</code> to add the root account.
    775                         </p></li><li><p>
     775                        </p></li><li class="step" title="Step 4"><p>
    776776                        Restore the <code class="filename">group_mapping.tdb</code> file.
    777                         </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558373"></a><a name="id2558375"></a><p><b>8.</b></p></td><td align="left" valign="top"><p>
     777                        </p></li></ol></div></td></tr><tr class="question" title="8."><td align="left" valign="top"><a name="id329978"></a><a name="id329980"></a><p><b>8.</b></p></td><td align="left" valign="top"><p>
    778778                When I run <code class="literal">net groupmap list</code>, it reports a group called <span class="guimenu">Administrators</span>
    779779                as well as <span class="guimenu">Domain Admins</span>. What is the difference between them?
     
    783783                Groups at this time. A Workstation or Server Local Group has no meaning in a Samba context. This
    784784                may change at some later date. These accounts are provided only so that security objects are correctly shown.
    785                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558418"></a><a name="id2558420"></a><p><b>9.</b></p></td><td align="left" valign="top"><p>
     785                </p></td></tr><tr class="question" title="9."><td align="left" valign="top"><a name="id330018"></a><a name="id330020"></a><p><b>9.</b></p></td><td align="left" valign="top"><p>
    786786                What is the effect of changing the name of a Samba server or of changing the Domain name?
    787787                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    795795                or the <code class="literal">smbpasswd</code> (Samba-2.2.x). To change the SID, you use the same tool. Be sure
    796796                to check the man page for this command for detailed instructions regarding the steps involved.
    797                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2558467"></a><a name="id2558469"></a><p><b>10.</b></p></td><td align="left" valign="top"><p>
     797                </p></td></tr><tr class="question" title="10."><td align="left" valign="top"><a name="id330060"></a><a name="id330062"></a><p><b>10.</b></p></td><td align="left" valign="top"><p>
    798798                How can I manage user accounts from my Windows XP Professional workstation?
    799799                </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.