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