1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
27 >nmbd -- NetBIOS name server to provide NetBIOS
28 over IP naming services to clients</DIV
30 CLASS="REFSYNOPSISDIV"
38 > [-D] [-F] [-S] [-a] [-i] [-o] [-h] [-V] [-d <debug level>] [-H <lmhosts file>] [-l <log directory>] [-n <primary netbios name>] [-p <port number>] [-s <configuration file>]</P
48 >This program is part of the Samba suite.</P
53 > is a server that understands
54 and can reply to NetBIOS over IP name service requests, like
55 those produced by SMB/CIFS clients such as Windows 95/98/ME,
56 Windows NT, Windows 2000, Windows XP and LanManager clients. It also
57 participates in the browsing protocols which make up the
58 Windows "Network Neighborhood" view.</P
60 >SMB/CIFS clients, when they start up, may wish to
61 locate an SMB/CIFS server. That is, they wish to know what
62 IP number a specified host is using.</P
64 >Amongst other services, <B
68 listen for such requests, and if its own NetBIOS name is
69 specified it will respond with the IP number of the host it
70 is running on. Its "own NetBIOS name" is by
71 default the primary DNS name of the host it is running on,
72 but this can be overridden with the <I
76 option (see OPTIONS below). Thus <B
80 reply to broadcast queries for its own name(s). Additional
84 > to respond on can be set
85 via parameters in the <A
86 HREF="smb.conf.5.html"
92 > configuration file.</P
97 > can also be used as a WINS
98 (Windows Internet Name Server) server. What this basically means
99 is that it will act as a WINS database server, creating a
100 database from name registration requests that it receives and
101 replying to queries from clients for these names.</P
107 proxy, relaying broadcast queries from clients that do
108 not understand how to talk the WINS protocol to a WINS
127 >If specified, this parameter causes
131 > to operate as a daemon. That is,
132 it detaches itself and runs in the background, fielding
133 requests on the appropriate port. By default, <B
137 will operate as a daemon if launched from a command shell.
138 nmbd can also be operated from the <B
142 meta-daemon, although this is not recommended.
149 >If specified, this parameter causes
153 > process to not daemonize,
154 i.e. double-fork and disassociate with the terminal.
155 Child processes are still created as normal to service
156 each connection request, but the main process does not
157 exit. This operation mode is suitable for running
161 > under process supervisors such
169 from Daniel J. Bernstein's <B
173 package, or the AIX process monitor.
180 >If specified, this parameter causes
184 > to log to standard output rather
191 >If this parameter is specified, each new
192 connection will append log messages to the log file.
193 This is the default.</P
199 >If this parameter is specified it causes the
200 server to run "interactively", not as a daemon, even if the
201 server is executed on the command line of a shell. Setting this
202 parameter negates the implicit daemon mode when run from the
206 > also logs to standard
217 >If this parameter is specified, the
218 log files will be overwritten when opened. By default,
222 > will append entries to the log
229 >Prints the help information (usage)
236 >-H <filename></DT
239 >NetBIOS lmhosts file. The lmhosts
240 file is a list of NetBIOS names to IP addresses that
241 is loaded by the nmbd server and used via the name
242 resolution mechanism <A
243 HREF="smb.conf.5.html#nameresolveorder"
245 > name resolve order</A
247 HREF="smb.conf.5.html"
254 to resolve any NetBIOS name queries needed by the server. Note
255 that the contents of this file are <I
262 > to answer any name queries.
263 Adding a line to this file affects name NetBIOS resolution
269 >The default path to this file is compiled into
270 Samba as part of the build process. Common defaults
273 >/usr/local/samba/lib/lmhosts</TT
277 >/usr/samba/lib/lmhosts</TT
284 HREF="lmhosts.5.html"
291 man page for details on the contents of this file.</P
297 >Prints the version number for
304 >-d <debug level></DT
307 >debuglevel is an integer
308 from 0 to 10. The default value if this parameter is
309 not specified is zero.</P
311 >The higher this value, the more detail will
312 be logged to the log files about the activities of the
313 server. At level 0, only critical errors and serious
314 warnings will be logged. Level 1 is a reasonable level for
315 day to day running - it generates a small amount of
316 information about operations carried out.</P
318 >Levels above 1 will generate considerable amounts
319 of log data, and should only be used when investigating
320 a problem. Levels above 3 are designed for use only by developers
321 and generate HUGE amounts of log data, most of which is extremely
324 >Note that specifying this parameter here will override
326 HREF="smb.conf.5.html#loglevel"
331 HREF="smb.conf.5.html"
340 >-l <log directory></DT
343 >The -l parameter specifies a directory
344 into which the "log.nmbd" log file will be created
345 for operational data from the running <B
349 server. The default log directory is compiled into Samba
350 as part of the build process. Common defaults are <TT
352 > /usr/local/samba/var/log.nmb</TT
355 > /usr/samba/var/log.nmb</TT
359 >/var/log/log.nmb</TT
364 If the directory specified does not exist, <B
368 will log to the default debug log location defined at compile time.
372 >-n <primary NetBIOS name></DT
375 >This option allows you to override
376 the NetBIOS name that Samba uses for itself. This is identical
378 HREF="smb.conf.5.html#netbiosname"
381 > parameter in the <A
382 HREF="smb.conf.5.html"
389 > file. However, a command
390 line setting will take precedence over settings in
397 >-p <UDP port number></DT
400 >UDP port number is a positive integer value.
401 This option changes the default UDP port number (normally 137)
405 > responds to name queries on. Don't
406 use this option unless you are an expert, in which case you
410 >-s <configuration file></DT
413 >The default configuration file name
414 is set at build time, typically as <TT
416 > /usr/local/samba/lib/smb.conf</TT
418 this may be changed when Samba is autoconfigured.</P
420 >The file specified contains the configuration details
421 required by the server. See <A
422 HREF="smb.conf.5.html"
428 > for more information.
453 >If the server is to be run by the
457 > meta-daemon, this file
458 must contain suitable startup information for the
459 meta-daemon. See the <A
460 HREF="UNIX_INSTALL.html"
462 >UNIX_INSTALL.html</A
474 >or whatever initialization script your
477 >If running the server as a daemon at startup,
478 this file will need to contain an appropriate startup
479 sequence for the server. See the <A
480 HREF="UNIX_INSTALL.html"
482 >UNIX_INSTALL.html</A
493 >If running the server via the
498 must contain a mapping of service name (e.g., netbios-ssn)
499 to service port (e.g., 139) and protocol type (e.g., tcp).
501 HREF="UNIX_INSTALL.html"
503 >UNIX_INSTALL.html</A
505 document for details.</P
510 >/usr/local/samba/lib/smb.conf</TT
514 >This is the default location of the
516 HREF="smb.conf.5.html"
523 server configuration file. Other common places that systems
524 install this file are <TT
526 >/usr/samba/lib/smb.conf</TT
533 >When run as a WINS server (see the
535 HREF="smb.conf.5.html#WINSSUPPORT"
547 will store the WINS database in the file <TT
554 > directory configured under
555 wherever Samba was configured to install itself.</P
564 HREF="smb.conf.5.html#LOCALMASTER"
576 will store the browsing database in the file <TT
584 configured under wherever Samba was configured to install itself.
601 > process it is recommended
605 > be used, except as a last
606 resort, as this may leave the name database in an inconsistent state.
607 The correct way to terminate <B
611 a SIGTERM (-15) signal and wait for it to die on its own.</P
616 > will accept SIGHUP, which will cause
617 it to dump out its namelists into the file <TT
623 >/usr/local/samba/var/locks</TT
625 directory (or the <TT
628 > directory configured
629 under wherever Samba was configured to install itself). This will also
633 > to dump out its server database in
639 >The debug log level of nmbd may be raised or lowered using
641 HREF="smbcontrol.1.html"
648 > (SIGUSR[1|2] signals are no longer used in Samba 2.2). This is
649 to allow transient problems to be diagnosed, whilst still running
650 at a normally low log level.</P
660 >This man page is correct for version 3.0 of
683 HREF="smb.conf.5.html"
691 HREF="smbclient.1.html"
699 HREF="testparm.1.html"
706 HREF="testprns.1.html"
712 >, and the Internet RFC's
720 In addition the CIFS (formerly SMB) specification is available
721 as a link from the Web page <A
722 HREF="http://samba.org/cifs/"
725 http://samba.org/cifs/</A
736 >The original Samba software and related utilities
737 were created by Andrew Tridgell. Samba is now developed
738 by the Samba Team as an Open Source project similar
739 to the way the Linux kernel is developed.</P
741 >The original Samba man pages were written by Karl Auer.
742 The man page sources were converted to YODL format (another
743 excellent piece of Open Source software, available at
745 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
747 > ftp://ftp.icce.rug.nl/pub/unix/</A
748 >) and updated for the Samba 2.0
749 release by Jeremy Allison. The conversion to DocBook for
750 Samba 2.2 was done by Gerald Carter</P