source: trunk-3.0/docs/manpages/nmbd.8@ 101

Last change on this file since 101 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 9.2 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "NMBD" 8 "" "" ""
21.SH "NAME"
22nmbd - NetBIOS name server to provide NetBIOS over IP naming services to clients
23.SH "SYNOPSIS"
24.HP 1
25nmbd [-D] [-F] [-S] [-a] [-i] [-o] [-h] [-V] [-d <debug level>] [-H <lmhosts file>] [-l <log directory>] [-p <port number>] [-s <configuration file>]
26.SH "DESCRIPTION"
27.PP
28This program is part of the
29\fBsamba\fR(7)
30suite.
31.PP
32nmbd
33is 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.
34.PP
35SMB/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.
36.PP
37Amongst other services,
38nmbd
39will 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
40netbios name in
41\fIsmb.conf\fR. Thus
42nmbd
43will reply to broadcast queries for its own name(s). Additional names for
44nmbd
45to respond on can be set via parameters in the
46\fBsmb.conf\fR(5)
47configuration file.
48.PP
49nmbd
50can 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.
51.PP
52In addition,
53nmbd
54can act as a WINS proxy, relaying broadcast queries from clients that do not understand how to talk the WINS protocol to a WINS server.
55.SH "OPTIONS"
56.PP
57-D
58.RS 3n
59If specified, this parameter causes
60nmbd
61to operate as a daemon. That is, it detaches itself and runs in the background, fielding requests on the appropriate port. By default,
62nmbd
63will operate as a daemon if launched from a command shell. nmbd can also be operated from the
64inetd
65meta-daemon, although this is not recommended.
66.RE
67.PP
68-F
69.RS 3n
70If specified, this parameter causes the main
71nmbd
72process 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
73nmbd
74under process supervisors such as
75supervise
76and
77svscan
78from Daniel J. Bernstein's
79daemontools
80package, or the AIX process monitor.
81.RE
82.PP
83-S
84.RS 3n
85If specified, this parameter causes
86nmbd
87to log to standard output rather than a file.
88.RE
89.PP
90-i
91.RS 3n
92If 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.
93nmbd
94also logs to standard output, as if the
95\fB-S\fR
96parameter had been given.
97.RE
98.PP
99-h|--help
100.RS 3n
101Print a summary of command line options.
102.RE
103.PP
104-H <filename>
105.RS 3n
106NetBIOS 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
107name resolve order described in
108\fBsmb.conf\fR(5)
109to resolve any NetBIOS name queries needed by the server. Note that the contents of this file are
110\fBNOT\fR
111used by
112nmbd
113to answer any name queries. Adding a line to this file affects name NetBIOS resolution from this host
114\fBONLY\fR.
115.sp
116The default path to this file is compiled into Samba as part of the build process. Common defaults are
117\fI/usr/local/samba/lib/lmhosts\fR,
118\fI/usr/samba/lib/lmhosts\fR
119or
120\fI/etc/samba/lmhosts\fR. See the
121\fBlmhosts\fR(5)
122man page for details on the contents of this file.
123.RE
124.PP
125-V
126.RS 3n
127Prints the program version number.
128.RE
129.PP
130-s <configuration file>
131.RS 3n
132The 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
133\fIsmb.conf\fR
134for more information. The default configuration file name is determined at compile time.
135.RE
136.PP
137-d|--debuglevel=level
138.RS 3n
139\fIlevel\fR
140is an integer from 0 to 10. The default value if this parameter is not specified is zero.
141.sp
142The 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.
143.sp
144Levels 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.
145.sp
146Note that specifying this parameter here will override the
147
148parameter in the
149\fIsmb.conf\fR
150file.
151.RE
152.PP
153-l|--logfile=logdirectory
154.RS 3n
155Base directory name for log/debug files. The extension
156\fB".progname"\fR
157will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client.
158.RE
159.PP
160-p <UDP port number>
161.RS 3n
162UDP port number is a positive integer value. This option changes the default UDP port number (normally 137) that
163nmbd
164responds to name queries on. Don't use this option unless you are an expert, in which case you won't need help!
165.RE
166.SH "FILES"
167.PP
168\fI/etc/inetd.conf\fR
169.RS 3n
170If the server is to be run by the
171inetd
172meta-daemon, this file must contain suitable startup information for the meta-daemon.
173.RE
174.PP
175\fI/etc/rc\fR
176.RS 3n
177or whatever initialization script your system uses).
178.sp
179If running the server as a daemon at startup, this file will need to contain an appropriate startup sequence for the server.
180.RE
181.PP
182\fI/etc/services\fR
183.RS 3n
184If running the server via the meta-daemon
185inetd, 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).
186.RE
187.PP
188\fI/usr/local/samba/lib/smb.conf\fR
189.RS 3n
190This is the default location of the
191\fBsmb.conf\fR(5)
192server configuration file. Other common places that systems install this file are
193\fI/usr/samba/lib/smb.conf\fR
194and
195\fI/etc/samba/smb.conf\fR.
196.sp
197When run as a WINS server (see the
198wins support parameter in the
199\fBsmb.conf\fR(5)
200man page),
201nmbd
202will store the WINS database in the file
203\fIwins.dat\fR
204in the
205\fIvar/locks\fR
206directory configured under wherever Samba was configured to install itself.
207.sp
208If
209nmbd
210is acting as a
211\fB browse master\fR
212(see the
213local master parameter in the
214\fBsmb.conf\fR(5)
215man page,
216nmbd
217will store the browsing database in the file
218\fIbrowse.dat \fR
219in the
220\fIvar/locks\fR
221directory configured under wherever Samba was configured to install itself.
222.RE
223.SH "SIGNALS"
224.PP
225To shut down an
226nmbd
227process it is recommended that SIGKILL (-9)
228\fBNOT\fR
229be used, except as a last resort, as this may leave the name database in an inconsistent state. The correct way to terminate
230nmbd
231is to send it a SIGTERM (-15) signal and wait for it to die on its own.
232.PP
233nmbd
234will accept SIGHUP, which will cause it to dump out its namelists into the file
235\fInamelist.debug \fR
236in the
237\fI/usr/local/samba/var/locks\fR
238directory (or the
239\fIvar/locks\fR
240directory configured under wherever Samba was configured to install itself). This will also cause
241nmbd
242to dump out its server database in the
243\fIlog.nmb\fR
244file.
245.PP
246The debug log level of nmbd may be raised or lowered using
247\fBsmbcontrol\fR(1)
248(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.
249.SH "VERSION"
250.PP
251This man page is correct for version 3.0 of the Samba suite.
252.SH "SEE ALSO"
253.PP
254
255\fBinetd\fR(8),
256\fBsmbd\fR(8),
257\fBsmb.conf\fR(5),
258\fBsmbclient\fR(1),
259\fBtestparm\fR(1),
260\fBtestprns\fR(1), and the Internet RFC's
261\fIrfc1001.txt\fR,
262\fIrfc1002.txt\fR. In addition the CIFS (formerly SMB) specification is available as a link from the Web page
263http://samba.org/cifs/.
264.SH "AUTHOR"
265.PP
266The 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.
267.PP
268The 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
269ftp://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.
270
Note: See TracBrowser for help on using the repository browser.