source: branches/samba-3.2.x/docs/manpages/nmbd.8

Last change on this file was 340, checked in by Herwig Bauernfeind, 16 years ago

Update 3.2 to 3.2.15 (security update)

File size: 13.4 KB
RevLine 
[201]1.\" Title: nmbd
[231]2.\" Author: [see the "AUTHOR" section]
3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
[340]4.\" Date: 09/30/2009
[201]5.\" Manual: System Administration tools
6.\" Source: Samba 3.2
[231]7.\" Language: English
[201]8.\"
[340]9.TH "NMBD" "8" "09/30/2009" "Samba 3\&.2" "System Administration tools"
[231]10.\" -----------------------------------------------------------------
11.\" * (re)Define some macros
12.\" -----------------------------------------------------------------
13.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14.\" toupper - uppercase a string (locale-aware)
15.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16.de toupper
17.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18\\$*
19.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20..
21.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22.\" SH-xref - format a cross-reference to an SH section
23.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24.de SH-xref
25.ie n \{\
26.\}
27.toupper \\$*
28.el \{\
29\\$*
30.\}
31..
32.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.\" SH - level-one heading that works better for non-TTY output
34.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35.de1 SH
36.\" put an extra blank line of space above the head in non-TTY output
37.if t \{\
38.sp 1
39.\}
40.sp \\n[PD]u
41.nr an-level 1
42.set-an-margin
43.nr an-prevailing-indent \\n[IN]
44.fi
45.in \\n[an-margin]u
46.ti 0
47.HTML-TAG ".NH \\n[an-level]"
48.it 1 an-trap
49.nr an-no-space-flag 1
50.nr an-break-flag 1
51\." make the size of the head bigger
52.ps +3
53.ft B
54.ne (2v + 1u)
55.ie n \{\
56.\" if n (TTY output), use uppercase
57.toupper \\$*
58.\}
59.el \{\
60.nr an-break-flag 0
61.\" if not n (not TTY), use normal case (not uppercase)
62\\$1
63.in \\n[an-margin]u
64.ti 0
65.\" if not n (not TTY), put a border/line under subheading
66.sp -.6
67\l'\n(.lu'
68.\}
69..
70.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71.\" SS - level-two heading that works better for non-TTY output
72.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73.de1 SS
74.sp \\n[PD]u
75.nr an-level 1
76.set-an-margin
77.nr an-prevailing-indent \\n[IN]
78.fi
79.in \\n[IN]u
80.ti \\n[SN]u
81.it 1 an-trap
82.nr an-no-space-flag 1
83.nr an-break-flag 1
84.ps \\n[PS-SS]u
85\." make the size of the head bigger
86.ps +2
87.ft B
88.ne (2v + 1u)
89.if \\n[.$] \&\\$*
90..
91.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92.\" BB/BE - put background/screen (filled box) around block of text
93.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94.de BB
95.if t \{\
96.sp -.5
97.br
98.in +2n
99.ll -2n
100.gcolor red
101.di BX
102.\}
103..
104.de EB
105.if t \{\
106.if "\\$2"adjust-for-leading-newline" \{\
107.sp -1
108.\}
109.br
110.di
111.in
112.ll
113.gcolor
114.nr BW \\n(.lu-\\n(.i
115.nr BH \\n(dn+.5v
116.ne \\n(BHu+.5v
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[]
119.\}
120.el \{\
121\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122.\}
123.in 0
124.sp -.5v
125.nf
126.BX
127.in
128.sp .5v
129.fi
130.\}
131..
132.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133.\" BM/EM - put colored marker in margin next to block of text
134.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135.de BM
136.if t \{\
137.br
138.ll -2n
139.gcolor red
140.di BX
141.\}
142..
143.de EM
144.if t \{\
145.br
146.di
147.ll
148.gcolor
149.nr BH \\n(dn
150.ne \\n(BHu
151\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152.in 0
153.nf
154.BX
155.in
156.fi
157.\}
158..
159.\" -----------------------------------------------------------------
160.\" * set default formatting
161.\" -----------------------------------------------------------------
[201]162.\" disable hyphenation
163.nh
164.\" disable justification (adjust text to left margin only)
165.ad l
[231]166.\" -----------------------------------------------------------------
167.\" * MAIN CONTENT STARTS HERE *
168.\" -----------------------------------------------------------------
169.SH "Name"
170nmbd \- NetBIOS name server to provide NetBIOS over IP naming services to clients
171.SH "Synopsis"
172.fam C
173.HP \w'\ 'u
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>]
175.fam
[201]176.SH "DESCRIPTION"
177.PP
178This program is part of the
179\fBsamba\fR(7)
[231]180suite\&.
[201]181.PP
[231]182\FCnmbd\F[]
183is 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\&.
[201]184.PP
[231]185SMB/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\&.
[201]186.PP
187Amongst other services,
[231]188\FCnmbd\F[]
189will 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\m[blue]\fBnetbios name\fR\m[]
[201]191in
[231]192\FCsmb\&.conf\F[]\&. Thus
193\FCnmbd\F[]
194will reply to broadcast queries for its own name(s)\&. Additional names for
195\FCnmbd\F[]
[201]196to respond on can be set via parameters in the
197\fBsmb.conf\fR(5)
[231]198configuration file\&.
[201]199.PP
[231]200\FCnmbd\F[]
201can 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\&.
[201]202.PP
203In addition,
[231]204\FCnmbd\F[]
205can act as a WINS proxy, relaying broadcast queries from clients that do not understand how to talk the WINS protocol to a WINS server\&.
[201]206.SH "OPTIONS"
207.PP
208\-D
209.RS 4
210If specified, this parameter causes
[231]211\FCnmbd\F[]
212to operate as a daemon\&. That is, it detaches itself and runs in the background, fielding requests on the appropriate port\&. By default,
213\FCnmbd\F[]
214will operate as a daemon if launched from a command shell\&. nmbd can also be operated from the
215\FCinetd\F[]
216meta\-daemon, although this is not recommended\&.
[201]217.RE
218.PP
219\-F
220.RS 4
221If specified, this parameter causes the main
[231]222\FCnmbd\F[]
223process 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
224\FCnmbd\F[]
[201]225under process supervisors such as
[231]226\FCsupervise\F[]
[201]227and
[231]228\FCsvscan\F[]
229from Daniel J\&. Bernstein\'s
230\FCdaemontools\F[]
231package, or the AIX process monitor\&.
[201]232.RE
233.PP
234\-S
235.RS 4
236If specified, this parameter causes
[231]237\FCnmbd\F[]
238to log to standard output rather than a file\&.
[201]239.RE
240.PP
241\-i
242.RS 4
[231]243If 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\&.
244\FCnmbd\F[]
[201]245also logs to standard output, as if the
246\fB\-S\fR
[231]247parameter had been given\&.
[201]248.RE
249.PP
250\-h|\-\-help
251.RS 4
[231]252Print a summary of command line options\&.
[201]253.RE
254.PP
255\-H <filename>
256.RS 4
[231]257NetBIOS lmhosts file\&. The lmhosts file is a list of NetBIOS names to IP addresses that is loaded by the nmbd server and used via the name resolution mechanism
258\m[blue]\fBname resolve order\fR\m[]
[201]259described in
260\fBsmb.conf\fR(5)
[231]261to resolve any NetBIOS name queries needed by the server\&. Note that the contents of this file are
[201]262\fINOT\fR
263used by
[231]264\FCnmbd\F[]
265to answer any name queries\&. Adding a line to this file affects name NetBIOS resolution from this host
266\fIONLY\fR\&.
[201]267.sp
[231]268The 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[]
[201]271or
[231]272\FC/etc/samba/lmhosts\F[]\&. See the
[201]273\fBlmhosts\fR(5)
[231]274man page for details on the contents of this file\&.
[201]275.RE
276.PP
277\-d|\-\-debuglevel=level
278.RS 4
279\fIlevel\fR
[231]280is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
[201]281.sp
[231]282The higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&.
[201]283.sp
[231]284Levels 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\&.
[201]285.sp
286Note that specifying this parameter here will override the
[231]287\m[blue]\fBlog level\fR\m[]
[201]288parameter in the
[231]289\FCsmb\&.conf\F[]
290file\&.
[201]291.RE
292.PP
293\-V
294.RS 4
[231]295Prints the program version number\&.
[201]296.RE
297.PP
298\-s <configuration file>
299.RS 4
[231]300The 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
301\FCsmb\&.conf\F[]
302for more information\&. The default configuration file name is determined at compile time\&.
[201]303.RE
304.PP
305\-l|\-\-log\-basename=logdirectory
306.RS 4
[231]307Base directory name for log/debug files\&. The extension
308\fB"\&.progname"\fR
309will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
[201]310.RE
311.PP
312\-p <UDP port number>
313.RS 4
[231]314UDP port number is a positive integer value\&. This option changes the default UDP port number (normally 137) that
315\FCnmbd\F[]
316responds to name queries on\&. Don\'t use this option unless you are an expert, in which case you won\'t need help!
[201]317.RE
318.SH "FILES"
319.PP
[231]320\FC/etc/inetd\&.conf\F[]
[201]321.RS 4
322If the server is to be run by the
[231]323\FCinetd\F[]
324meta\-daemon, this file must contain suitable startup information for the meta\-daemon\&.
[201]325.RE
326.PP
[231]327\FC/etc/rc\F[]
[201]328.RS 4
[231]329or whatever initialization script your system uses)\&.
[201]330.sp
[231]331If running the server as a daemon at startup, this file will need to contain an appropriate startup sequence for the server\&.
[201]332.RE
333.PP
[231]334\FC/etc/services\F[]
[201]335.RS 4
336If running the server via the meta\-daemon
[231]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)\&.
[201]338.RE
339.PP
[231]340\FC/usr/local/samba/lib/smb\&.conf\F[]
[201]341.RS 4
342This is the default location of the
343\fBsmb.conf\fR(5)
[231]344server configuration file\&. Other common places that systems install this file are
345\FC/usr/samba/lib/smb\&.conf\F[]
[201]346and
[231]347\FC/etc/samba/smb\&.conf\F[]\&.
[201]348.sp
349When run as a WINS server (see the
[231]350\m[blue]\fBwins support\fR\m[]
[201]351parameter in the
352\fBsmb.conf\fR(5)
353man page),
[231]354\FCnmbd\F[]
[201]355will store the WINS database in the file
[231]356\FCwins\&.dat\F[]
[201]357in the
[231]358\FCvar/locks\F[]
359directory configured under wherever Samba was configured to install itself\&.
[201]360.sp
361If
[231]362\FCnmbd\F[]
[201]363is acting as a
364\fI browse master\fR
365(see the
[231]366\m[blue]\fBlocal master\fR\m[]
[201]367parameter in the
368\fBsmb.conf\fR(5)
369man page,
[231]370\FCnmbd\F[]
[201]371will store the browsing database in the file
[231]372\FCbrowse\&.dat \F[]
[201]373in the
[231]374\FCvar/locks\F[]
375directory configured under wherever Samba was configured to install itself\&.
[201]376.RE
377.SH "SIGNALS"
378.PP
379To shut down an
[231]380\FCnmbd\F[]
[201]381process it is recommended that SIGKILL (\-9)
382\fINOT\fR
[231]383be used, except as a last resort, as this may leave the name database in an inconsistent state\&. The correct way to terminate
384\FCnmbd\F[]
385is to send it a SIGTERM (\-15) signal and wait for it to die on its own\&.
[201]386.PP
[231]387\FCnmbd\F[]
[201]388will accept SIGHUP, which will cause it to dump out its namelists into the file
[231]389\FCnamelist\&.debug \F[]
[201]390in the
[231]391\FC/usr/local/samba/var/locks\F[]
[201]392directory (or the
[231]393\FCvar/locks\F[]
394directory configured under wherever Samba was configured to install itself)\&. This will also cause
395\FCnmbd\F[]
[201]396to dump out its server database in the
[231]397\FClog\&.nmb\F[]
398file\&.
[201]399.PP
400The debug log level of nmbd may be raised or lowered using
401\fBsmbcontrol\fR(1)
[231]402(SIGUSR[1|2] signals are no longer used since Samba 2\&.2)\&. This is to allow transient problems to be diagnosed, whilst still running at a normally low log level\&.
[201]403.SH "VERSION"
404.PP
[231]405This man page is correct for version 3 of the Samba suite\&.
[201]406.SH "SEE ALSO"
407.PP
408
409\fBinetd\fR(8),
410\fBsmbd\fR(8),
411\fBsmb.conf\fR(5),
412\fBsmbclient\fR(1),
413\fBtestparm\fR(1),
414\fBtestprns\fR(1), and the Internet RFC\'s
[231]415\FCrfc1001\&.txt\F[],
416\FCrfc1002\&.txt\F[]\&. In addition the CIFS (formerly SMB) specification is available as a link from the Web page
417http://samba\&.org/cifs/\&.
[201]418.SH "AUTHOR"
419.PP
[231]420The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
[201]421.PP
[231]422The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
423ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
Note: See TracBrowser for help on using the repository browser.