source: branches/samba-3.0/docs/manpages/nmbd.8@ 135

Last change on this file since 135 was 135, checked in by Paul Smedley, 17 years ago

Update source to 3.0.30

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