Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/docs/htmldocs/Samba3-HOWTO/install.html

    r44 r134  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 1. How to Install and Test SAMBA</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="The Official Samba-3 HOWTO and Reference Guide"><link rel="up" href="introduction.html" title="Part I. General Installation"><link rel="prev" href="introduction.html" title="Part I. General Installation"><link rel="next" href="FastStart.html" title="Chapter 2. Fast Start: Cure for Impatience"></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 1. How to Install and Test SAMBA</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="introduction.html">Prev</a> </td><th width="60%" align="center">Part I. General Installation</th><td width="20%" align="right"> <a accesskey="n" href="FastStart.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="install"></a>Chapter 1. How to Install and Test SAMBA</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:tridge@samba.org">tridge@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Karl</span> <span class="surname">Auer</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Dan</span> <span class="surname">Shearer</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:dan@samba.org">dan@samba.org</a>&gt;</code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="install.html#id318133">Obtaining and Installing Samba</a></span></dt><dt><span class="sect1"><a href="install.html#id318175">Configuring Samba (smb.conf)</a></span></dt><dd><dl><dt><span class="sect2"><a href="install.html#id318217">Configuration File Syntax</a></span></dt><dt><span class="sect2"><a href="install.html#tdbdocs">TDB Database File Information</a></span></dt><dt><span class="sect2"><a href="install.html#id319134">Starting Samba</a></span></dt><dt><span class="sect2"><a href="install.html#id319314">Example Configuration</a></span></dt><dt><span class="sect2"><a href="install.html#id319736">SWAT</a></span></dt></dl></dd><dt><span class="sect1"><a href="install.html#id319789">List Shares Available on the Server</a></span></dt><dt><span class="sect1"><a href="install.html#id319839">Connect with a UNIX Client</a></span></dt><dt><span class="sect1"><a href="install.html#id319936">Connect from a Remote SMB Client</a></span></dt><dd><dl><dt><span class="sect2"><a href="install.html#id320014">What If Things Don't Work?</a></span></dt><dt><span class="sect2"><a href="install.html#id320052">Still Stuck?</a></span></dt></dl></dd><dt><span class="sect1"><a href="install.html#id320080">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="install.html#id320090">Large Number of smbd Processes</a></span></dt><dt><span class="sect2"><a href="install.html#id320178">Error Message: open_oplock_ipc</a></span></dt><dt><span class="sect2"><a href="install.html#id320208">&#8220;<span class="quote"><span class="errorname">The network name cannot be found</span></span>&#8221;</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id318133"></a>Obtaining and Installing Samba</h2></div></div></div><p>
    2         <a class="indexterm" name="id318141"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 1. How to Install and Test SAMBA</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="introduction.html" title="Part I. General Installation"><link rel="prev" href="introduction.html" title="Part I. General Installation"><link rel="next" href="FastStart.html" title="Chapter 2. Fast Start: Cure for Impatience"></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 1. How to Install and Test SAMBA</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="introduction.html">Prev</a> </td><th width="60%" align="center">Part I. General Installation</th><td width="20%" align="right"> <a accesskey="n" href="FastStart.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="install"></a>Chapter 1. How to Install and Test SAMBA</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Karl</span> <span class="surname">Auer</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Dan</span> <span class="surname">Shearer</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:dan@samba.org">dan@samba.org</a>&gt;</code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="install.html#id341745">Obtaining and Installing Samba</a></span></dt><dt><span class="sect1"><a href="install.html#id341784">Configuring Samba (smb.conf)</a></span></dt><dd><dl><dt><span class="sect2"><a href="install.html#id341822">Configuration File Syntax</a></span></dt><dt><span class="sect2"><a href="install.html#tdbdocs">TDB Database File Information</a></span></dt><dt><span class="sect2"><a href="install.html#id342668">Starting Samba</a></span></dt><dt><span class="sect2"><a href="install.html#id342835">Example Configuration</a></span></dt><dt><span class="sect2"><a href="install.html#id343214">SWAT</a></span></dt></dl></dd><dt><span class="sect1"><a href="install.html#id343263">List Shares Available on the Server</a></span></dt><dt><span class="sect1"><a href="install.html#id343310">Connect with a UNIX Client</a></span></dt><dt><span class="sect1"><a href="install.html#id343396">Connect from a Remote SMB Client</a></span></dt><dd><dl><dt><span class="sect2"><a href="install.html#id343468">What If Things Don't Work?</a></span></dt><dt><span class="sect2"><a href="install.html#id343501">Still Stuck?</a></span></dt></dl></dd><dt><span class="sect1"><a href="install.html#id343527">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="install.html#id343536">Large Number of smbd Processes</a></span></dt><dt><span class="sect2"><a href="install.html#id343615">Error Message: open_oplock_ipc</a></span></dt><dt><span class="sect2"><a href="install.html#id343643">&#8220;<span class="quote"><span class="errorname">The network name cannot be found</span></span>&#8221;</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id341745"></a>Obtaining and Installing Samba</h2></div></div></div><p>
     2        <a class="indexterm" name="id341753"></a>
    33        Binary packages of Samba are included in almost any Linux or UNIX distribution. There are also some
    4         packages available at <a href="http://samba.org/" target="_top">the Samba home page</a>. Refer to the manual of your
     4        packages available at <a class="ulink" href="http://samba.org/" target="_top">the Samba home page</a>. Refer to the manual of your
    55        operating system for details on installing packages for your specific operating system.
    66        </p><p>
    7         <a class="indexterm" name="id318159"></a>
    8         If you need to compile Samba from source, check <a href="compiling.html" title="Chapter 41. How to Compile Samba">How to Compile Samba</a>.
    9         </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id318175"></a>Configuring Samba (smb.conf)</h2></div></div></div><p>
    10         <a class="indexterm" name="id318182"></a>
    11         <a class="indexterm" name="id318189"></a>
     7        <a class="indexterm" name="id341770"></a>
     8        If you need to compile Samba from source, check <a class="link" href="compiling.html" title="Chapter 41. How to Compile Samba">How to Compile Samba</a>.
     9        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id341784"></a>Configuring Samba (smb.conf)</h2></div></div></div><p>
     10        <a class="indexterm" name="id341791"></a>
     11        <a class="indexterm" name="id341797"></a>
    1212        Samba's configuration is stored in the <code class="filename">smb.conf</code> file, which usually resides in
    1313        <code class="filename">/etc/samba/smb.conf</code> or <code class="filename">/usr/local/samba/lib/smb.conf</code>. You can either
    1414        edit this file yourself or do it using one of the many graphical tools that are available, such as the
    1515        Web-based interface SWAT, that is included with Samba.
    16         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id318217"></a>Configuration File Syntax</h3></div></div></div><p>
    17         <a class="indexterm" name="id318225"></a>
     16        </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id341822"></a>Configuration File Syntax</h3></div></div></div><p>
     17        <a class="indexterm" name="id341829"></a>
    1818        The <code class="filename">smb.conf</code> file uses the same syntax as the various old <code class="filename">.ini</code> files in Windows
    1919        3.1: Each file consists of various sections, which are started by putting the section name between brackets
     
    2222        editing tool.
    2323        </p><p>
    24         <a class="indexterm" name="id318261"></a>
    25         <a class="indexterm" name="id318268"></a>
    26         <a class="indexterm" name="id318277"></a>
    27         <a class="indexterm" name="id318284"></a>
    28         <a class="indexterm" name="id318291"></a>
    29         <a class="indexterm" name="id318300"></a>
     24        <a class="indexterm" name="id341863"></a>
     25        <a class="indexterm" name="id341869"></a>
     26        <a class="indexterm" name="id341877"></a>
     27        <a class="indexterm" name="id341884"></a>
     28        <a class="indexterm" name="id341890"></a>
     29        <a class="indexterm" name="id341898"></a>
    3030        Each section in the <code class="filename">smb.conf</code> file represents either a share or a meta-service on the Samba server. The
    3131        section <code class="literal">[global]</code> is special, since it contains settings that apply to the whole Samba
     
    3636        from Windows clients prior to being dispatched to the UNIX/Linux print spooler.
    3737        </p><p>
    38 <a class="indexterm" name="id318341"></a>
    39 <a class="indexterm" name="id318348"></a>
    40 <a class="indexterm" name="id318355"></a>
    41 <a class="indexterm" name="id318362"></a>
    42 <a class="indexterm" name="id318369"></a>
    43 <a class="indexterm" name="id318375"></a>
     38<a class="indexterm" name="id341936"></a>
     39<a class="indexterm" name="id341942"></a>
     40<a class="indexterm" name="id341949"></a>
     41<a class="indexterm" name="id341955"></a>
     42<a class="indexterm" name="id341961"></a>
     43<a class="indexterm" name="id341968"></a>
    4444        The <code class="literal">printers</code> meta-service will cause every printer that is either specified in a
    4545        <code class="literal">printcap</code> file, via the <code class="literal">lpstat</code>,  or via the CUPS API, to be
     
    5050        of it will be displayed as part of the printer name in Windows Explorer browse lists.
    5151        </p><p>
    52         <a class="indexterm" name="id318425"></a>
     52        <a class="indexterm" name="id342013"></a>
    5353        Each section of the <code class="filename">smb.conf</code> file that specifies a share, or a meta-service, is called a stanza.
    5454        The <code class="literal">global</code> stanza specifies settings that affect all the other stanzas in the
     
    5757        and some can be used globally or just within a share or meta-service stanza.
    5858        </p><p>
    59         <a class="indexterm" name="id318468"></a>
    60         <a href="install.html#smbconfminimal" title="Example 1.1. A minimal smb.conf">A minimal smb.conf</a> contains a very minimal <code class="filename">smb.conf</code>.
    61         <a class="indexterm" name="id318491"></a>
    62         </p><div class="example"><a name="smbconfminimal"></a><p class="title"><b>Example 1.1. A minimal smb.conf</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id318522"></a><em class="parameter"><code>workgroup = WKG</code></em></td></tr><tr><td><a class="indexterm" name="id318535"></a><em class="parameter"><code>netbios name = MYNAME</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share1]</code></em></td></tr><tr><td><a class="indexterm" name="id318557"></a><em class="parameter"><code>path = /tmp</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share2]</code></em></td></tr><tr><td><a class="indexterm" name="id318578"></a><em class="parameter"><code>path = /my_shared_folder</code></em></td></tr><tr><td><a class="indexterm" name="id318590"></a><em class="parameter"><code>comment = Some random files</code></em></td></tr></table></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tdbdocs"></a>TDB Database File Information</h3></div></div></div><p>
     59        <a class="indexterm" name="id342051"></a>
     60        <a class="link" href="install.html#smbconfminimal" title="Example 1.1. A minimal smb.conf">A minimal smb.conf</a> contains a very minimal <code class="filename">smb.conf</code>.
     61        <a class="indexterm" name="id342070"></a>
     62        </p><div class="example"><a name="smbconfminimal"></a><p class="title"><b>Example 1.1. A minimal smb.conf</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id342098"></a><em class="parameter"><code>workgroup = WKG</code></em></td></tr><tr><td><a class="indexterm" name="id342109"></a><em class="parameter"><code>netbios name = MYNAME</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share1]</code></em></td></tr><tr><td><a class="indexterm" name="id342127"></a><em class="parameter"><code>path = /tmp</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share2]</code></em></td></tr><tr><td><a class="indexterm" name="id342146"></a><em class="parameter"><code>path = /my_shared_folder</code></em></td></tr><tr><td><a class="indexterm" name="id342157"></a><em class="parameter"><code>comment = Some random files</code></em></td></tr></table></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tdbdocs"></a>TDB Database File Information</h3></div></div></div><p>
    6363        This section contains brief descriptions of the databases that are used by Samba-3.
    6464        </p><p>
    65 <a class="indexterm" name="id318621"></a>
     65<a class="indexterm" name="id342183"></a>
    6666        The directory in which Samba stores the tdb files is determined by compile-time directives. Samba-3 stores
    6767        tdb files in two locations. The best way to determine these locations is to execute the following
     
    8181        <code class="filename">/var/lib/samba</code> directory.
    8282        </p><p>
    83 <a class="indexterm" name="id318670"></a>
    84         The persistent tdb files are described in <a href="install.html#tdbpermfiledesc" title="Table 1.1. Persistent TDB File Descriptions">the Persistent TDB File
     83<a class="indexterm" name="id342229"></a>
     84        The persistent tdb files are described in <a class="link" href="install.html#tdbpermfiledesc" title="Table 1.1. Persistent TDB File Descriptions">the Persistent TDB File
    8585        Descriptions table</a>. All persistent tdb files should be regularly backed up. Use the
    8686        <code class="literal">tdbbackup</code> utility to backup the tdb files. All persistent tdb files must be
     
    8888        </p><p>
    8989        The temporary tdb files do not need to be backed up, nor do they need to be preseved across machine
    90         migrations, updates or upgrades. The temporary tdb files are described in <a href="install.html#tdbtempfiledesc" title="Table 1.2. Temporary TDB File Descriptions">
     90        migrations, updates or upgrades. The temporary tdb files are described in <a class="link" href="install.html#tdbtempfiledesc" title="Table 1.2. Temporary TDB File Descriptions">
    9191        the Temporary TDB File Descriptions</a>.
    9292        </p><div class="table"><a name="tdbpermfiledesc"></a><p class="title"><b>Table 1.1. Persistent TDB File Descriptions</b></p><div class="table-contents"><table summary="Persistent TDB File Descriptions" border="1"><colgroup><col align="left"><col align="justify"></colgroup><thead><tr><th align="left">Name</th><th align="justify">Description</th></tr></thead><tbody><tr><td align="left">account_policy</td><td align="justify"><p>Samba/NT account policy settings, includes password expiration settings.</p></td></tr><tr><td align="left">group_mapping</td><td align="justify"><p>Mapping table from Windows groups/SID to UNIX groups.</p></td></tr><tr><td align="left">ntdrivers</td><td align="justify"><p>Stores per-printer installed driver information.</p></td></tr><tr><td align="left">ntforms</td><td align="justify"><p>Stores per-printer installed forms information.</p></td></tr><tr><td align="left">ntprinters</td><td align="justify"><p>Stores the per-printer devmode configuration settings.</p></td></tr><tr><td align="left">passdb</td><td align="justify"><p>
     
    101101                                a further collection of critical environmental data that is necessary for Samba to operate
    102102                                correctly. This file contains very sensitive information that must be protected. It is stored
    103                                 in the PRIVARE_DIR directory.
     103                                in the PRIVATE_DIR directory.
    104104                        </p></td></tr><tr><td align="left">share_info</td><td align="justify"><p>Stores per-share ACL information.</p></td></tr><tr><td align="left">winbindd_idmap</td><td align="justify"><p>Winbindd's local IDMAP database.</p></td></tr></tbody></table></div></div><br class="table-break"><div class="table"><a name="tdbtempfiledesc"></a><p class="title"><b>Table 1.2. Temporary TDB File Descriptions</b></p><div class="table-contents"><table summary="Temporary TDB File Descriptions" border="1"><colgroup><col align="left"><col align="justify"><col align="left"></colgroup><thead><tr><th align="left">Name</th><th align="justify">Description</th><th align="center">Backup</th></tr></thead><tbody><tr><td align="left">brlock</td><td align="justify"><p>Byte-range locking information.</p></td><td align="left">No</td></tr><tr><td align="left">connections</td><td align="justify"><p>A temporary cache for current connection information used to enforce max connections.</p></td><td align="left">no</td></tr><tr><td align="left">eventlog/*tdb</td><td align="justify"><p>Records of eventlog entries. In most circumstances this is just a cache of system logs.</p></td><td align="left">no</td></tr><tr><td align="left">gencache</td><td align="justify"><p>Generic caching database for dead WINS servers and trusted domain data.</p></td><td align="left">no</td></tr><tr><td align="left">login_cache</td><td align="justify"><p>A temporary cache for login information, in particular bad password attempts.</p></td><td align="left">no</td></tr><tr><td align="left">messages</td><td align="justify"><p>Temporary storage of messages being processed by smbd.</p></td><td align="left">no</td></tr><tr><td align="left">netsamlogon_cache</td><td align="justify"><p>Caches user net_info_3 structure data from net_samlogon requests (as a domain member).</p></td><td align="left">no</td></tr><tr><td align="left">perfmon/*.tdb</td><td align="justify"><p>Performance counter information.</p></td><td align="left">no</td></tr><tr><td align="left">printing/*.tdb</td><td align="justify"><p>Cached output from lpq command created on a per-print-service basis.</p></td><td align="left">no</td></tr><tr><td align="left">schannel_store</td><td align="justify"><p>
    105105                                A confidential file, stored in the PRIVATE_DIR, containing crytographic connection
     
    107107                                needing to renegotiate the connection setup process.
    108108                        </p></td><td align="left">no</td></tr><tr><td align="left">sessionid</td><td align="justify"><p>Temporary cache for miscellaneous session information and for utmp handling.</p></td><td align="left">no</td></tr><tr><td align="left">unexpected</td><td align="justify"><p>Stores packets received for which no process is actively listening.</p></td><td align="left">no</td></tr><tr><td align="left">winbindd_cache</td><td align="justify"><p>Cache of Identity information received from an NT4 domain or from ADS. Includes user
    109                                 lists, etc.</p></td><td align="left">yes</td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id319134"></a>Starting Samba</h3></div></div></div><p>
    110         <a class="indexterm" name="id319141"></a>
     109                                lists, etc.</p></td><td align="left">yes</td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id342668"></a>Starting Samba</h3></div></div></div><p>
     110        <a class="indexterm" name="id342675"></a>
    111111        Samba essentially consists of two or three daemons. A daemon is a UNIX application that runs in the background and provides services.
    112112        An example of a service is the Apache Web server for which the daemon is called <code class="literal">httpd</code>. In the case of Samba there
     
    115115        The Samba server is made up of the following daemons:
    116116        </p><div class="variablelist"><dl><dt><span class="term">nmbd</span></dt><dd><p>
    117                         <a class="indexterm" name="id319172"></a>
    118                         <a class="indexterm" name="id319178"></a>
     117                        <a class="indexterm" name="id342704"></a>
     118                        <a class="indexterm" name="id342710"></a>
    119119                        This daemon handles all name registration and resolution requests. It is the primary vehicle involved
    120120                        in network browsing. It handles all UDP-based protocols. The <code class="literal">nmbd</code> daemon should
    121121                        be the first command started as part of the Samba startup process.
    122122                        </p></dd><dt><span class="term">smbd</span></dt><dd><p>
    123                         <a class="indexterm" name="id319206"></a>
    124                         <a class="indexterm" name="id319213"></a>
     123                        <a class="indexterm" name="id342736"></a>
     124                        <a class="indexterm" name="id342742"></a>
    125125                        This daemon handles all TCP/IP-based connection services for file- and print-based operations. It also
    126126                        manages local authentication. It should be started immediately following the startup of <code class="literal">nmbd</code>.
    127127                        </p></dd><dt><span class="term">winbindd</span></dt><dd><p>
    128                         <a class="indexterm" name="id319239"></a>
    129                         <a class="indexterm" name="id319246"></a>
     128                        <a class="indexterm" name="id342767"></a>
     129                        <a class="indexterm" name="id342774"></a>
    130130                        This daemon should be started when Samba is a member of a Windows NT4 or ADS domain. It is also needed when
    131131                        Samba has trust relationships with another domain. The <code class="literal">winbindd</code> daemon will check the
     
    135135                        will start but it will not be able to allocate UIDs or GIDs.
    136136                        </p></dd></dl></div><p>
    137         <a class="indexterm" name="id319300"></a>
     137        <a class="indexterm" name="id342822"></a>
    138138        When Samba has been packaged by an operating system vendor, the startup process is typically a custom feature of its
    139139        integration into the platform as a whole. Please refer to your operating system platform administration manuals for
    140140        specific information pertaining to correct management of Samba startup.
    141         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id319314"></a>Example Configuration</h3></div></div></div><p>
    142         <a class="indexterm" name="id319322"></a>
    143         <a class="indexterm" name="id319329"></a>
    144         <a class="indexterm" name="id319336"></a>
    145         <a class="indexterm" name="id319342"></a>
    146         <a class="indexterm" name="id319349"></a>
     141        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id342835"></a>Example Configuration</h3></div></div></div><p>
     142        <a class="indexterm" name="id342843"></a>
     143        <a class="indexterm" name="id342849"></a>
     144        <a class="indexterm" name="id342855"></a>
     145        <a class="indexterm" name="id342861"></a>
     146        <a class="indexterm" name="id342868"></a>
    147147        There are sample configuration files in the examples subdirectory in the source code distribution tarball
    148148        package. It is suggested you read them carefully so you can see how the options go together in practice. See
     
    150150        <code class="filename">smb.conf.default</code> configuration file and adapt it to your needs. It contains plenty of comments.
    151151        </p><p>
    152         <a class="indexterm" name="id319368"></a>
     152        <a class="indexterm" name="id342886"></a>
    153153        The simplest useful configuration file would contain something like that shown in
    154         <a href="install.html#simple-example" title="Example 1.2. Another simple smb.conf File">Another simple smb.conf File</a>.
    155         <a class="indexterm" name="id319386"></a>
    156         </p><div class="example"><a name="simple-example"></a><p class="title"><b>Example 1.2. Another simple smb.conf File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id319417"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[homes]</code></em></td></tr><tr><td><a class="indexterm" name="id319438"></a><em class="parameter"><code>guest ok = no</code></em></td></tr><tr><td><a class="indexterm" name="id319451"></a><em class="parameter"><code>read only = no</code></em></td></tr></table></div></div><br class="example-break"><p>
    157         <a class="indexterm" name="id319467"></a>
    158         <a class="indexterm" name="id319474"></a>
    159         <a class="indexterm" name="id319480"></a>
    160         <a class="indexterm" name="id319487"></a>
     154        <a class="link" href="install.html#simple-example" title="Example 1.2. Another simple smb.conf File">Another simple smb.conf File</a>.
     155        <a class="indexterm" name="id342900"></a>
     156        </p><div class="example"><a name="simple-example"></a><p class="title"><b>Example 1.2. Another simple smb.conf File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id342928"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[homes]</code></em></td></tr><tr><td><a class="indexterm" name="id342947"></a><em class="parameter"><code>guest ok = no</code></em></td></tr><tr><td><a class="indexterm" name="id342958"></a><em class="parameter"><code>read only = no</code></em></td></tr></table></div></div><br class="example-break"><p>
     157        <a class="indexterm" name="id342971"></a>
     158        <a class="indexterm" name="id342978"></a>
     159        <a class="indexterm" name="id342984"></a>
     160        <a class="indexterm" name="id342990"></a>
    161161        This will allow connections by anyone with an account on the server, using either
    162162        their login name or <em class="parameter"><code>homes</code></em> as the service name.
     
    164164        workgroup name is WORKGROUP.)
    165165        </p><p>
    166         <a class="indexterm" name="id319505"></a>
     166        <a class="indexterm" name="id343007"></a>
    167167        Make sure you put the <code class="filename">smb.conf</code> file in the correct place. Note, the correct location of this file
    168168        depends on how the binary files were built. You can discover the correct location by executing from
     
    172172</pre><p>
    173173        </p><p>
    174         <a class="indexterm" name="id319541"></a>
     174        <a class="indexterm" name="id343039"></a>
    175175        For more information about security settings for the <em class="parameter"><code>[homes]</code></em> share, please refer to
    176         <a href="securing-samba.html" title="Chapter 18. Securing Samba">Securing Samba</a>.
    177         </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id319564"></a>Test Your Config File with <code class="literal">testparm</code></h4></div></div></div><p>
    178         <a class="indexterm" name="id319577"></a>
    179         <a class="indexterm" name="id319584"></a>
    180         <a class="indexterm" name="id319590"></a>
     176        <a class="link" href="securing-samba.html" title="Chapter 18. Securing Samba">Securing Samba</a>.
     177        </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id343059"></a>Test Your Config File with <code class="literal">testparm</code></h4></div></div></div><p>
     178        <a class="indexterm" name="id343071"></a>
     179        <a class="indexterm" name="id343077"></a>
     180        <a class="indexterm" name="id343083"></a>
    181181        It's important to validate the contents of the <code class="filename">smb.conf</code> file using the <span class="application">testparm</span> program.
    182182        If testparm runs correctly, it will list the loaded services. If not, it will give an error message.
     
    190190        Always run testparm again whenever the <code class="filename">smb.conf</code> file is changed!
    191191        </p><p>
    192         <a class="indexterm" name="id319638"></a>
    193         <a class="indexterm" name="id319645"></a>
    194         <a class="indexterm" name="id319651"></a>
    195         <a class="indexterm" name="id319658"></a>
     192        <a class="indexterm" name="id343126"></a>
     193        <a class="indexterm" name="id343132"></a>
     194        <a class="indexterm" name="id343138"></a>
     195        <a class="indexterm" name="id343144"></a>
    196196        The <code class="filename">smb.conf</code> file is constantly checked by the Samba daemons <code class="literal">smbd</code> and every instance of
    197197        itself that it spawns, <code class="literal">nmbd</code> and <code class="literal">winbindd</code>. It is good practice to
     
    206206        This administrative method makes it possible to maintain detailed configuration change records while at
    207207        the same time keeping the working <code class="filename">smb.conf</code> file size to the minimum necessary.
    208         </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id319736"></a>SWAT</h3></div></div></div><p>
    209         <a class="indexterm" name="id319744"></a>
     208        </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id343214"></a>SWAT</h3></div></div></div><p>
     209        <a class="indexterm" name="id343221"></a>
    210210        SWAT is a Web-based interface that can be used to facilitate the configuration of Samba.  SWAT might not
    211211        be available in the Samba package that shipped with your platform, but in a separate package. If it is
     
    214214        </p><p>
    215215        To launch SWAT, just run your favorite Web browser and point it to
    216         <a href="http://localhost:901/" target="_top">http://localhost:901/</a>.
     216        <a class="ulink" href="http://localhost:901/" target="_top">http://localhost:901/</a>.
    217217        Replace <em class="replaceable"><code>localhost</code></em> with the name of the computer on which
    218218        Samba is running if that is a different computer than your browser.
     
    221221        machine leaves your connection open to password sniffing because passwords will be sent over the wire in the clear.
    222222        </p><p>
    223         More information about SWAT can be found in <a href="SWAT.html" title="Chapter 37. SWAT: The Samba Web Administration Tool">The Samba Web Administration Tool</a>.
    224         </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id319789"></a>List Shares Available on the Server</h2></div></div></div><p>
     223        More information about SWAT can be found in <a class="link" href="SWAT.html" title="Chapter 37. SWAT: The Samba Web Administration Tool">The Samba Web Administration Tool</a>.
     224        </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id343263"></a>List Shares Available on the Server</h2></div></div></div><p>
    225225        To list shares that are available from the configured Samba server, execute the
    226226        following command:
     
    236236        You can force it to list the shares without a password by adding the option
    237237        <code class="option">-N</code> to the command line.
    238         </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id319839"></a>Connect with a UNIX Client</h2></div></div></div><p>
     238        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id343310"></a>Connect with a UNIX Client</h2></div></div></div><p>
    239239        Enter the following command:
    240240</p><pre class="screen">
     
    245245        is <em class="replaceable"><code>fred</code></em>, you would type:</p><pre class="screen">
    246246<code class="prompt">$ </code><strong class="userinput"><code>smbclient //<em class="replaceable"><code>bambi</code></em>/<em class="replaceable"><code>fred</code></em></code></strong>
    247 </pre></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id319936"></a>Connect from a Remote SMB Client</h2></div></div></div><p>
     247</pre></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id343396"></a>Connect from a Remote SMB Client</h2></div></div></div><p>
    248248        Now that Samba is working correctly locally, you can try to access it from other clients. Within a few
    249249        minutes, the Samba host should be listed in the Network Neighborhood on all Windows clients of its subnet.
     
    266266        </p><p>
    267267</p><pre class="screen"><code class="prompt">C:\&gt; </code><strong class="userinput"><code>print filename</code></strong>
    268 </pre><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id320014"></a>What If Things Don't Work?</h3></div></div></div><p>
    269         You might want to read <a href="diagnosis.html" title="Chapter 38. The Samba Checklist">The Samba Checklist</a>.  If you are still
    270         stuck, refer to <a href="problems.html" title="Chapter 39. Analyzing and Solving Samba Problems">Analyzing and Solving Samba Problems</a>.  Samba has
     268</pre><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id343468"></a>What If Things Don't Work?</h3></div></div></div><p>
     269        You might want to read <a class="link" href="diagnosis.html" title="Chapter 38. The Samba Checklist">The Samba Checklist</a>.  If you are still
     270        stuck, refer to <a class="link" href="problems.html" title="Chapter 39. Analyzing and Solving Samba Problems">Analyzing and Solving Samba Problems</a>.  Samba has
    271271        been successfully installed at thousands of sites worldwide.  It is unlikely that your particular problem is
    272272        unique, so it might be productive to perform an Internet search to see if someone else has encountered your
     
    278278        then follow the simple step-by-step procedure to deploy it. Later, when you have a working network
    279279        you may well want to refer back to this book for further insight into opportunities for improvement.
    280         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id320052"></a>Still Stuck?</h3></div></div></div><p>
     280        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id343501"></a>Still Stuck?</h3></div></div></div><p>
    281281        The best advice under the stress of abject frustration is to cool down! That may be challenging
    282282        of itself, but while you are angry or annoyed your ability to seek out a solution is somewhat
     
    285285        even though you can't right now. That will change with time, patience and learning.
    286286        </p><p>
    287         Now that you have cooled down a bit, please refer to <a href="diagnosis.html" title="Chapter 38. The Samba Checklist">the Samba Checklist</a>
     287        Now that you have cooled down a bit, please refer to <a class="link" href="diagnosis.html" title="Chapter 38. The Samba Checklist">the Samba Checklist</a>
    288288        for a process that can be followed to identify the cause of your problem.
    289         </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id320080"></a>Common Errors</h2></div></div></div><p>
     289        </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id343527"></a>Common Errors</h2></div></div></div><p>
    290290The following questions and issues are raised repeatedly on the Samba mailing list.
    291 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id320090"></a>Large Number of smbd Processes</h3></div></div></div><p>
     291</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id343536"></a>Large Number of smbd Processes</h3></div></div></div><p>
    292292        Samba consists of three core programs: <span class="application">nmbd</span>, <span class="application">smbd</span>, and <span class="application">winbindd</span>. <span class="application">nmbd</span> is the name server message daemon,
    293293        <span class="application">smbd</span> is the server message daemon, and <span class="application">winbindd</span> is the daemon that handles communication with domain controllers.
     
    302302        <span class="application">winbindd</span> will run as one or two daemons, depending on whether or not it is being
    303303        run in <span class="emphasis"><em>split mode</em></span> (in which case there will be two instances).
    304         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id320178"></a>Error Message: open_oplock_ipc</h3></div></div></div><p>
     304        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id343615"></a>Error Message: open_oplock_ipc</h3></div></div></div><p>
    305305        An error message is observed in the log files when <span class="application">smbd</span> is started: &#8220;<span class="quote">open_oplock_ipc: Failed to
    306306        get local UDP socket for address 100007f. Error was Cannot assign requested.</span>&#8221;
     
    309309        device is an internal (virtual) network device with the IP address <span class="emphasis"><em>127.0.0.1</em></span>.
    310310        Read your OS documentation for details on how to configure the loopback on your system.
    311         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id320208"></a>&#8220;<span class="quote"><span class="errorname">The network name cannot be found</span></span>&#8221;</h3></div></div></div><p>
     311        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id343643"></a>&#8220;<span class="quote"><span class="errorname">The network name cannot be found</span></span>&#8221;</h3></div></div></div><p>
    312312                This error can be caused by one of these misconfigurations:
    313313                </p><div class="itemizedlist"><ul type="disc"><li><p>You specified a nonexisting path
Note: See TracChangeset for help on using the changeset viewer.