trying to get HEAD building again. If you want the code
[Samba/gbeck.git] / docs / htmldocs / nmbd.8.html
blobc282bde89d43e048eb4998e054de21479827b723
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>nmbd</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="nmbd.8"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>nmbd &#8212; NetBIOS name server to provide NetBIOS
2 over IP naming services to clients</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><tt class="command">nmbd</tt> [-D] [-F] [-S] [-a] [-i] [-o] [-h] [-V] [-d &lt;debug level&gt;] [-H &lt;lmhosts file&gt;] [-l &lt;log directory&gt;] [-n &lt;primary netbios name&gt;] [-p &lt;port number&gt;] [-s &lt;configuration file&gt;]</p></div></div><div class="refsect1" lang="en"><h2>DESCRIPTION</h2><p>This program is part of the <a href="Samba.7.html"><span class="citerefentry"><span class="refentrytitle">Samba</span>(7)</span></a> suite.</p><p><b class="command">nmbd</b> is a server that understands
3 and can reply to NetBIOS over IP name service requests, like
4 those produced by SMB/CIFS clients such as Windows 95/98/ME,
5 Windows NT, Windows 2000, Windows XP and LanManager clients. It also
6 participates in the browsing protocols which make up the
7 Windows &quot;Network Neighborhood&quot; view.</p><p>SMB/CIFS clients, when they start up, may wish to
8 locate an SMB/CIFS server. That is, they wish to know what
9 IP number a specified host is using.</p><p>Amongst other services, <b class="command">nmbd</b> will
10 listen for such requests, and if its own NetBIOS name is
11 specified it will respond with the IP number of the host it
12 is running on. Its &quot;own NetBIOS name&quot; is by
13 default the primary DNS name of the host it is running on,
14 but this can be overridden with the <span class="emphasis"><em>-n</em></span>
15 option (see OPTIONS below). Thus <b class="command">nmbd</b> will
16 reply to broadcast queries for its own name(s). Additional
17 names for <b class="command">nmbd</b> to respond on can be set
18 via parameters in the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> configuration file.</p><p><b class="command">nmbd</b> can also be used as a WINS
19 (Windows Internet Name Server) server. What this basically means
20 is that it will act as a WINS database server, creating a
21 database from name registration requests that it receives and
22 replying to queries from clients for these names.</p><p>In addition, <b class="command">nmbd</b> can act as a WINS
23 proxy, relaying broadcast queries from clients that do
24 not understand how to talk the WINS protocol to a WINS
25 server.</p></div><div class="refsect1" lang="en"><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-D</span></dt><dd><p>If specified, this parameter causes
26 <b class="command">nmbd</b> to operate as a daemon. That is,
27 it detaches itself and runs in the background, fielding
28 requests on the appropriate port. By default, <b class="command">nmbd</b>
29 will operate as a daemon if launched from a command shell.
30 nmbd can also be operated from the <b class="command">inetd</b>
31 meta-daemon, although this is not recommended.
32 </p></dd><dt><span class="term">-F</span></dt><dd><p>If specified, this parameter causes
33 the main <b class="command">nmbd</b> process to not daemonize,
34 i.e. double-fork and disassociate with the terminal.
35 Child processes are still created as normal to service
36 each connection request, but the main process does not
37 exit. This operation mode is suitable for running
38 <b class="command">nmbd</b> under process supervisors such
39 as <b class="command">supervise</b> and <b class="command">svscan</b>
40 from Daniel J. Bernstein's <b class="command">daemontools</b>
41 package, or the AIX process monitor.
42 </p></dd><dt><span class="term">-S</span></dt><dd><p>If specified, this parameter causes
43 <b class="command">nmbd</b> to log to standard output rather
44 than a file.</p></dd><dt><span class="term">-i</span></dt><dd><p>If this parameter is specified it causes the
45 server to run &quot;interactively&quot;, not as a daemon, even if the
46 server is executed on the command line of a shell. Setting this
47 parameter negates the implicit daemon mode when run from the
48 command line. <b class="command">nmbd</b> also logs to standard
49 output, as if the <tt class="constant">-S</tt> parameter had been
50 given. </p></dd><dt><span class="term">-h|--help</span></dt><dd><p>Print a summary of command line options.
51 </p></dd><dt><span class="term">-H &lt;filename&gt;</span></dt><dd><p>NetBIOS lmhosts file. The lmhosts
52 file is a list of NetBIOS names to IP addresses that
53 is loaded by the nmbd server and used via the name
54 resolution mechanism <a href="smb.conf.5.html#nameresolveorder" target="_top"><i class="parameter"><tt>name resolve
55 order</tt></i></a> described in <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> to resolve any
56 NetBIOS name queries needed by the server. Note
57 that the contents of this file are <span class="emphasis"><em>NOT</em></span>
58 used by <b class="command">nmbd</b> to answer any name queries.
59 Adding a line to this file affects name NetBIOS resolution
60 from this host <span class="emphasis"><em>ONLY</em></span>.</p><p>The default path to this file is compiled into
61 Samba as part of the build process. Common defaults
62 are <tt class="filename">/usr/local/samba/lib/lmhosts</tt>,
63 <tt class="filename">/usr/samba/lib/lmhosts</tt> or
64 <tt class="filename">/etc/samba/lmhosts</tt>. See the <a href="lmhosts.5.html"><span class="citerefentry"><span class="refentrytitle">lmhosts</span>(5)</span></a> man page for details on the contents of this file.</p></dd><dt><span class="term">-V</span></dt><dd><p>Prints the version number for
65 <b class="command">smbd</b>.</p></dd><dt><span class="term">-s &lt;configuration file&gt;</span></dt><dd><p>The file specified contains the
66 configuration details required by the server. The
67 information in this file includes server-specific
68 information such as what printcap file to use, as well
69 as descriptions of all the services that the server is
70 to provide. See <a href="smb.conf.5.html" target="_top"><tt class="filename">
71 smb.conf(5)</tt></a> for more information.
72 The default configuration file name is determined at
73 compile time.</p></dd><dt><span class="term">-d|--debug=debuglevel</span></dt><dd><p><i class="replaceable"><tt>debuglevel</tt></i> is an integer
74 from 0 to 10. The default value if this parameter is
75 not specified is zero.</p><p>The higher this value, the more detail will be
76 logged to the log files about the activities of the
77 server. At level 0, only critical errors and serious
78 warnings will be logged. Level 1 is a reasonable level for
79 day to day running - it generates a small amount of
80 information about operations carried out.</p><p>Levels above 1 will generate considerable
81 amounts of log data, and should only be used when
82 investigating a problem. Levels above 3 are designed for
83 use only by developers and generate HUGE amounts of log
84 data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will
85 override the <a href="smb.conf.5.html#loglevel" target="_top">log
86 level</a> parameter in the <a href="smb.conf.5.html" target="_top">
87 <tt class="filename">smb.conf(5)</tt></a> file.</p></dd><dt><span class="term">-l|--logfile=logbasename</span></dt><dd><p>File name for log/debug files. The extension
88 <tt class="constant">&quot;.client&quot;</tt> will be appended. The log file is
89 never removed by the client.
90 </p></dd><dt><span class="term">-p &lt;UDP port number&gt;</span></dt><dd><p>UDP port number is a positive integer value.
91 This option changes the default UDP port number (normally 137)
92 that <b class="command">nmbd</b> responds to name queries on. Don't
93 use this option unless you are an expert, in which case you
94 won't need help!</p></dd></dl></div></div><div class="refsect1" lang="en"><h2>FILES</h2><div class="variablelist"><dl><dt><span class="term"><tt class="filename">/etc/inetd.conf</tt></span></dt><dd><p>If the server is to be run by the
95 <b class="command">inetd</b> meta-daemon, this file
96 must contain suitable startup information for the
97 meta-daemon. See the <a href="install.html" target="_top">install</a> document
98 for details.
99 </p></dd><dt><span class="term"><tt class="filename">/etc/rc</tt></span></dt><dd><p>or whatever initialization script your
100 system uses).</p><p>If running the server as a daemon at startup,
101 this file will need to contain an appropriate startup
102 sequence for the server. See the <a href="install.html" target="_top">&quot;How to Install and Test SAMBA&quot;</a> document
103 for details.</p></dd><dt><span class="term"><tt class="filename">/etc/services</tt></span></dt><dd><p>If running the server via the
104 meta-daemon <b class="command">inetd</b>, this file
105 must contain a mapping of service name (e.g., netbios-ssn)
106 to service port (e.g., 139) and protocol type (e.g., tcp).
107 See the <a href="install.html" target="_top">&quot;How to Install and Test SAMBA&quot;</a>
108 document for details.</p></dd><dt><span class="term"><tt class="filename">/usr/local/samba/lib/smb.conf</tt></span></dt><dd><p>This is the default location of
109 the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> server
110 configuration file. Other common places that systems
111 install this file are <tt class="filename">/usr/samba/lib/smb.conf</tt>
112 and <tt class="filename">/etc/samba/smb.conf</tt>.</p><p>When run as a WINS server (see the
113 <a href="smb.conf.5.html#WINSSUPPORT" target="_top"><tt class="constant">wins support</tt></a>
114 parameter in the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> man page),
115 <b class="command">nmbd</b>
116 will store the WINS database in the file <tt class="filename">wins.dat</tt>
117 in the <tt class="filename">var/locks</tt> directory configured under
118 wherever Samba was configured to install itself.</p><p>If <b class="command">nmbd</b> is acting as a <span class="emphasis"><em>
119 browse master</em></span> (see the <a href="smb.conf.5.html#LOCALMASTER" target="_top"><tt class="constant">local master</tt></a>
120 parameter in the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> man page, <b class="command">nmbd</b>
121 will store the browsing database in the file <tt class="filename">browse.dat
122 </tt> in the <tt class="filename">var/locks</tt> directory
123 configured under wherever Samba was configured to install itself.
124 </p></dd></dl></div></div><div class="refsect1" lang="en"><h2>SIGNALS</h2><p>To shut down an <b class="command">nmbd</b> process it is recommended
125 that SIGKILL (-9) <span class="emphasis"><em>NOT</em></span> be used, except as a last
126 resort, as this may leave the name database in an inconsistent state.
127 The correct way to terminate <b class="command">nmbd</b> is to send it
128 a SIGTERM (-15) signal and wait for it to die on its own.</p><p><b class="command">nmbd</b> will accept SIGHUP, which will cause
129 it to dump out its namelists into the file <tt class="filename">namelist.debug
130 </tt> in the <tt class="filename">/usr/local/samba/var/locks</tt>
131 directory (or the <tt class="filename">var/locks</tt> directory configured
132 under wherever Samba was configured to install itself). This will also
133 cause <b class="command">nmbd</b> to dump out its server database in
134 the <tt class="filename">log.nmb</tt> file.</p><p>The debug log level of nmbd may be raised or lowered
135 using <a href="smbcontrol.1.html"><span class="citerefentry"><span class="refentrytitle">smbcontrol</span>(1)</span></a> (SIGUSR[1|2] signals
136 are no longer used since Samba 2.2). This is to allow
137 transient problems to be diagnosed, whilst still running
138 at a normally low log level.</p></div><div class="refsect1" lang="en"><h2>VERSION</h2><p>This man page is correct for version 3.0 of
139 the Samba suite.</p></div><div class="refsect1" lang="en"><h2>SEE ALSO</h2><p>
140 <a href="inetd.8.html"><span class="citerefentry"><span class="refentrytitle">inetd</span>(8)</span></a>, <a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a>, <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a>, <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a>, <a href="testparm.1.html"><span class="citerefentry"><span class="refentrytitle">testparm</span>(1)</span></a>, <a href="testprns.1.html"><span class="citerefentry"><span class="refentrytitle">testprns</span>(1)</span></a>, and the Internet
141 RFC's <tt class="filename">rfc1001.txt</tt>, <tt class="filename">rfc1002.txt</tt>.
142 In addition the CIFS (formerly SMB) specification is available
143 as a link from the Web page <a href="http://samba.org/cifs/" target="_top">
144 http://samba.org/cifs/</a>.</p></div><div class="refsect1" lang="en"><h2>AUTHOR</h2><p>The original Samba software and related utilities
145 were created by Andrew Tridgell. Samba is now developed
146 by the Samba Team as an Open Source project similar
147 to the way the Linux kernel is developed.</p><p>The original Samba man pages were written by Karl Auer.
148 The man page sources were converted to YODL format (another
149 excellent piece of Open Source software, available at <a href="ftp://ftp.icce.rug.nl/pub/unix/" target="_top">
150 ftp://ftp.icce.rug.nl/pub/unix/</a>) and updated for the Samba 2.0
151 release by Jeremy Allison. The conversion to DocBook for
152 Samba 2.2 was done by Gerald Carter. The conversion to DocBook
153 XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.</p></div></div></body></html>