2
3
.\" Author: [see the "AUTHOR" section]
3
.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
6
.\" Manual: System Administration tools
6
7
.\" Source: Samba 3.4
7
8
.\" Language: English
9
.TH "NMBD" "8" "10/29/2009" "Samba 3\&.4" "System Administration tools"
10
.\" -----------------------------------------------------------------
11
.\" * (re)Define some macros
12
.\" -----------------------------------------------------------------
13
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
.\" toupper - uppercase a string (locale-aware)
15
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
19
.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
21
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
.\" SH-xref - format a cross-reference to an SH section
23
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
.\" SH - level-one heading that works better for non-TTY output
34
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36
.\" put an extra blank line of space above the head in non-TTY output
43
.nr an-prevailing-indent \\n[IN]
47
.HTML-TAG ".NH \\n[an-level]"
49
.nr an-no-space-flag 1
51
\." make the size of the head bigger
56
.\" if n (TTY output), use uppercase
61
.\" if not n (not TTY), use normal case (not uppercase)
65
.\" if not n (not TTY), put a border/line under subheading
70
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71
.\" SS - level-two heading that works better for non-TTY output
72
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77
.nr an-prevailing-indent \\n[IN]
82
.nr an-no-space-flag 1
85
\." make the size of the head bigger
91
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92
.\" BB/BE - put background/screen (filled box) around block of text
93
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106
.if "\\$2"adjust-for-leading-newline" \{\
114
.nr BW \\n(.lu-\\n(.i
117
.ie "\\$2"adjust-for-leading-newline" \{\
118
\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
121
\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
132
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133
.\" BM/EM - put colored marker in margin next to block of text
134
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
151
\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
10
.TH "NMBD" "8" "01/18/2010" "Samba 3\&.4" "System Administration tools"
159
11
.\" -----------------------------------------------------------------
160
12
.\" * set default formatting
161
13
.\" -----------------------------------------------------------------
166
18
.\" -----------------------------------------------------------------
167
19
.\" * MAIN CONTENT STARTS HERE *
168
20
.\" -----------------------------------------------------------------
170
22
nmbd \- NetBIOS name server to provide NetBIOS over IP naming services to clients
174
\FCnmbd\F[] [\-D] [\-F] [\-S] [\-a] [\-i] [\-o] [\-h] [\-V] [\-d\ <debug\ level>] [\-H\ <lmhosts\ file>] [\-l\ <log\ directory>] [\-p\ <port\ number>] [\-s\ <configuration\ file>]
25
nmbd [\-D] [\-F] [\-S] [\-a] [\-i] [\-o] [\-h] [\-V] [\-d\ <debug\ level>] [\-H\ <lmhosts\ file>] [\-l\ <log\ directory>] [\-p\ <port\ number>] [\-s\ <configuration\ file>]
178
28
This program is part of the
183
33
is a server that understands and can reply to NetBIOS over IP name service requests, like those produced by SMB/CIFS clients such as Windows 95/98/ME, Windows NT, Windows 2000, Windows XP and LanManager clients\&. It also participates in the browsing protocols which make up the Windows "Network Neighborhood" view\&.
185
35
SMB/CIFS clients, when they start up, may wish to locate an SMB/CIFS server\&. That is, they wish to know what IP number a specified host is using\&.
187
37
Amongst other services,
189
39
will listen for such requests, and if its own NetBIOS name is specified it will respond with the IP number of the host it is running on\&. Its "own NetBIOS name" is by default the primary DNS name of the host it is running on, but this can be overridden by the
190
40
\m[blue]\fBnetbios name\fR\m[]
192
\FCsmb\&.conf\F[]\&. Thus
194
44
will reply to broadcast queries for its own name(s)\&. Additional names for
196
46
to respond on can be set via parameters in the
198
48
configuration file\&.
201
51
can also be used as a WINS (Windows Internet Name Server) server\&. What this basically means is that it will act as a WINS database server, creating a database from name registration requests that it receives and replying to queries from clients for these names\&.
205
55
can act as a WINS proxy, relaying broadcast queries from clients that do not understand how to talk the WINS protocol to a WINS server\&.
210
60
If specified, this parameter causes
212
62
to operate as a daemon\&. That is, it detaches itself and runs in the background, fielding requests on the appropriate port\&. By default,
214
64
will operate as a daemon if launched from a command shell\&. nmbd can also be operated from the
216
66
meta\-daemon, although this is not recommended\&.
221
71
If specified, this parameter causes the main
223
73
process to not daemonize, i\&.e\&. double\-fork and disassociate with the terminal\&. Child processes are still created as normal to service each connection request, but the main process does not exit\&. This operation mode is suitable for running
225
75
under process supervisors such as
229
79
from Daniel J\&. Bernstein\'s
231
81
package, or the AIX process monitor\&.
236
86
If specified, this parameter causes
238
88
to log to standard output rather than a file\&.
243
93
If this parameter is specified it causes the server to run "interactively", not as a daemon, even if the server is executed on the command line of a shell\&. Setting this parameter negates the implicit daemon mode when run from the command line\&.
245
95
also logs to standard output, as if the
247
97
parameter had been given\&.
261
111
to resolve any NetBIOS name queries needed by the server\&. Note that the contents of this file are
265
115
to answer any name queries\&. Adding a line to this file affects name NetBIOS resolution from this host
268
118
The default path to this file is compiled into Samba as part of the build process\&. Common defaults are
269
\FC/usr/local/samba/lib/lmhosts\F[],
270
\FC/usr/samba/lib/lmhosts\F[]
119
/usr/local/samba/lib/lmhosts,
120
/usr/samba/lib/lmhosts
272
\FC/etc/samba/lmhosts\F[]\&. See the
122
/etc/samba/lmhosts\&. See the
274
124
man page for details on the contents of this file\&.
284
134
Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&.
286
136
Note that specifying this parameter here will override the
287
\m[blue]\fBlog level\fR\m[]
137
\m[blue]\fB\%smb.conf.5.html#\fR\m[]
295
145
Prints the program version number\&.
298
\-s <configuration file>
148
\-s|\-\-configfile <configuration file>
300
150
The file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See
302
152
for more information\&. The default configuration file name is determined at compile time\&.
312
162
\-p <UDP port number>
314
164
UDP port number is a positive integer value\&. This option changes the default UDP port number (normally 137) that
316
166
responds to name queries on\&. Don\'t use this option unless you are an expert, in which case you won\'t need help!
320
\FC/etc/inetd\&.conf\F[]
322
172
If the server is to be run by the
324
174
meta\-daemon, this file must contain suitable startup information for the meta\-daemon\&.
329
179
or whatever initialization script your system uses)\&.
331
181
If running the server as a daemon at startup, this file will need to contain an appropriate startup sequence for the server\&.
336
186
If running the server via the meta\-daemon
337
\FCinetd\F[], this file must contain a mapping of service name (e\&.g\&., netbios\-ssn) to service port (e\&.g\&., 139) and protocol type (e\&.g\&., tcp)\&.
187
inetd, this file must contain a mapping of service name (e\&.g\&., netbios\-ssn) to service port (e\&.g\&., 139) and protocol type (e\&.g\&., tcp)\&.
340
\FC/usr/local/samba/lib/smb\&.conf\F[]
190
/usr/local/samba/lib/smb\&.conf
342
192
This is the default location of the
343
193
\fBsmb.conf\fR(5)
344
194
server configuration file\&. Other common places that systems install this file are
345
\FC/usr/samba/lib/smb\&.conf\F[]
195
/usr/samba/lib/smb\&.conf
347
\FC/etc/samba/smb\&.conf\F[]\&.
197
/etc/samba/smb\&.conf\&.
349
199
When run as a WINS server (see the
350
200
\m[blue]\fBwins support\fR\m[]
352
202
\fBsmb.conf\fR(5)
355
205
will store the WINS database in the file
359
209
directory configured under wherever Samba was configured to install itself\&.
364
214
\fI browse master\fR
368
218
\fBsmb.conf\fR(5)
371
221
will store the browsing database in the file
375
225
directory configured under wherever Samba was configured to install itself\&.
381
231
process it is recommended that SIGKILL (\-9)
383
233
be used, except as a last resort, as this may leave the name database in an inconsistent state\&. The correct way to terminate
385
235
is to send it a SIGTERM (\-15) signal and wait for it to die on its own\&.
388
238
will accept SIGHUP, which will cause it to dump out its namelists into the file
389
\FCnamelist\&.debug \F[]
391
\FC/usr/local/samba/var/locks\F[]
241
/usr/local/samba/var/locks
392
242
directory (or the
394
244
directory configured under wherever Samba was configured to install itself)\&. This will also cause
396
246
to dump out its server database in the
400
250
The debug log level of nmbd may be raised or lowered using