source: branches/samba-3.3.x/docs/manpages/nmbd.8@ 368

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

Update Samba 3.3 to 3.3.10 (docs)

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