Remove CGI logging code. Make username/password lookups take
[Samba.git] / docs / yodldocs / nmbd.8.yo
blobc9031c0e6a0379d56d064f644db6a434a76c2b10
1 mailto(samba@samba.org) 
3 manpage(nmbd)(8)(23 Oct 1998)(Samba)(SAMBA)
5 label(NAME)
6 manpagename(nmbd)(NetBIOS name server to provide NetBIOS over IP
7 naming services to clients)
9 label(SYNOPSIS)
10 manpagesynopsis()
12 bf(nmbd) [link(-D)(minusD)] [link(-a)(minusa)] [link(-o)(minuso)] [link(-h)(minush)] [link(-V)(minusV)] [link(-H lmhosts file)(minusH)] [link(-d debuglevel)(minusd)] [link(-l log file basename)(minusl)] [link(-n primary NetBIOS name)(minusn)] [link(-p port number)(minusp)] [link(-s configuration file)(minuss)]
14 label(DESCRIPTION)
15 manpagedescription()
17 This program is part of the bf(Samba) suite.
19 bf(nmbd) is a server that understands and can reply to NetBIOS over IP
20 name service requests, like those produced by SMBD/CIFS clients such
21 as Windows 95/98, Windows NT and LanManager clients. It also
22 participates in the browsing protocols which make up the Windows
23 "Network Neighborhood" view.
25 SMB/CIFS clients, when they start up, may wish to locate an SMB/CIFS
26 server. That is, they wish to know what IP number a specified host is
27 using.
29 Amongst other services, bf(nmbd) will listen for such requests,
30 and if its own NetBIOS name is specified it will respond with the IP
31 number of the host it is running on.  Its "own NetBIOS name" is by
32 default the primary DNS name of the host it is running on, but this
33 can be overridden with the bf(-n) option (see link(OPTIONS)(OPTIONS) below). Thus
34 bf(nmbd) will reply to broadcast queries for its own name(s). Additional
35 names for bf(nmbd) to respond on can be set via parameters in the
36 url(bf(smb.conf(5)))(smb.conf.5.html) configuration file.
38 bf(nmbd) can also be used as a WINS (Windows Internet Name Server)
39 server. What this basically means is that it will act as a WINS
40 database server, creating a database from name registration requests
41 that it receives and replying to queries from clients for these names.
43 In addition, bf(nmbd) can act as a WINS proxy, relaying broadcast queries
44 from clients that do not understand how to talk the WINS protocol to a
45 WIN server.
47 label(OPTIONS)
48 manpageoptions()
50 startdit()
52 label(minusD)
53 dit(bf(-D)) If specified, this parameter causes bf(nmbd) to operate
54 as a daemon. That is, it detaches itself and runs in the background,
55 fielding requests on the appropriate port. By default, bf(nmbd) will
56 NOT operate as a daemon. nmbd can also be operated from the inetd
57 meta-daemon, although this is not recommended.
59 label(minusa)
60 dit(bf(-a)) If this parameter is specified, each new connection will
61 append log messages to the log file.  This is the default.
63 label(minuso)
64 dit(bf(-o)) If this parameter is specified, the log files will be
65 overwritten when opened.  By default, the log files will be appended
66 to.
68 label(minush)
69 dit(bf(-h)) Prints the help information (usage) for bf(nmbd).
71 label(minusV)
72 dit(bf(-V)) Prints the version number for bf(nmbd).
74 label(minusH)
75 dit(bf(-H filename)) NetBIOS lmhosts file.
77 The lmhosts file is a list of NetBIOS names to IP addresses that is
78 loaded by the nmbd server and used via the name resolution mechanism
79 url(bf(name resolve order))(smb.conf.5.html#nameresolveorder) described in 
80 url(bf(smb.conf (5)))(smb.conf.5.html) to resolve any
81 NetBIOS name queries needed by the server. Note that the contents of
82 this file are em(NOT) used by bf(nmbd) to answer any name queries. Adding
83 a line to this file affects name NetBIOS resolution from this host
84 em(ONLY).
86 The default path to this file is compiled into Samba as part of the
87 build process. Common defaults are em(/usr/local/samba/lib/lmhosts),
88 em(/usr/samba/lib/lmhosts) or em(/etc/lmhosts). See the 
89 url(bf(lmhosts (5)))(lmhosts.5.html) man page for details on the contents of this file.
91 label(minusd)
92 dit(bf(-d debuglevel)) debuglevel is an integer from 0 to 10.
94 The default value if this parameter is not specified is zero.
96 The higher this value, the more detail will be logged to the log files
97 about the activities of the server. At level 0, only critical errors
98 and serious warnings will be logged. Level 1 is a reasonable level for
99 day to day running - it generates a small amount of information about
100 operations carried out.
102 Levels above 1 will generate considerable amounts of log data, and
103 should only be used when investigating a problem. Levels above 3 are
104 designed for use only by developers and generate HUGE amounts of log
105 data, most of which is extremely cryptic.
107 Note that specifying this parameter here will override the url(bf(log
108 level))(smb.conf.5.html#loglevel) parameter in the url(bf(smb.conf
109 (5)))(smb.conf.5.html) file.
111 label(minusl)
112 dit(bf(-l logfile)) The bf(-l) parameter specifies a path and base
113 filename into which operational data from the running nmbd server will
114 be logged.  The actual log file name is generated by appending the
115 extension ".nmb" to the specified base name.  For example, if the name
116 specified was "log" then the file log.nmb would contain the debugging
117 data.
119 The default log file path is compiled into Samba as part of the
120 build process. Common defaults are em(/usr/local/samba/var/log.nmb),
121 em(/usr/samba/var/log.nmb) or em(/var/log/log.nmb).
123 label(minusn)
124 dit(bf(-n primary NetBIOS name)) This option allows you to override
125 the NetBIOS name that Samba uses for itself. This is identical to
126 setting the url(bf(NetBIOS name))(smb.conf.5.html#netbiosname) parameter
127 in the url(bf(smb.conf))(smb.conf.5.html) file
128 but will override the setting in the url(bf(smb.conf))(smb.conf.5.html) file.
130 label(minusp)
131 dit(bf(-p UDP port number)) UDP port number is a positive integer value.
133 This option changes the default UDP port number (normally 137) that
134 bf(nmbd) responds to name queries on. Don't use this option unless you are
135 an expert, in which case you won't need help!
137 label(minuss)
138 dit(bf(-s configuration file)) The default configuration file name is
139 set at build time, typically as em(/usr/local/samba/lib/smb.conf), but
140 this may be changed when Samba is autoconfigured.
142 The file specified contains the configuration details required by the
143 server. See url(bf(smb.conf (5)))(smb.conf.5.html) for more information.
145 endit()
147 label(FILES)
148 manpagefiles()
150 bf(/etc/inetd.conf)
152 If the server is to be run by the inetd meta-daemon, this file must
153 contain suitable startup information for the meta-daemon.
155 bf(/etc/rc)
157 (or whatever initialization script your system uses).
159 If running the server as a daemon at startup, this file will need to
160 contain an appropriate startup sequence for the server.
162 bf(/usr/local/samba/lib/smb.conf)
164 This is the default location of the 
165 url(bf(smb.conf))(smb.conf.5.html) server configuration
166 file. Other common places that systems install this file are
167 em(/usr/samba/lib/smb.conf) and em(/etc/smb.conf).
169 When run as a bf(WINS) server (see the url(bf(wins support))(smb.conf.5.html#winssupport)
170 parameter in the url(bf(smb.conf (5)))(smb.conf.5.html) man page), bf(nmbd) will
171 store the WINS database in the file tt(wins.dat) in the tt(var/locks) directory
172 configured under wherever Samba was configured to install itself.
174 If bf(nmbd) is acting as a bf(browse master) (see the url(bf(local master))(smb.conf.5.html#localmaster)
175 parameter in the url(bf(smb.conf (5)))(smb.conf.5.html) man page), bf(nmbd) will
176 store the browsing database in the file tt(browse.dat) in the tt(var/locks) directory
177 configured under wherever Samba was configured to install itself.
179 label(SIGNALS)
180 manpagesection(SIGNALS)
182 To shut down an bf(nmbd) process it is recommended that SIGKILL (-9)
183 em(NOT) be used, except as a last resort, as this may leave the name
184 database in an inconsistent state. The correct way to terminate
185 bf(nmbd) is to send it a SIGTERM (-15) signal and wait for it to die on
186 its own.
188 bf(nmbd) will accept SIGHUP, which will cause it to dump out it's
189 namelists into the file tt(namelist.debug) in the
190 em(/usr/local/samba/var/locks) directory (or the em(var/locks)
191 directory configured under wherever Samba was configured to install
192 itself). This will also cause bf(nmbd) to dump out it's server database in
193 the log.nmb file. In addition, the debug log level of nmbd may be raised
194 by sending it a SIGUSR1 (tt(kill -USR1 <nmbd-pid>)) and lowered by sending it a
195 SIGUSR2 (tt(kill -USR2 <nmbd-pid>)). This is to allow transient
196 problems to be diagnosed, whilst still running at a normally low log
197 level.
199 label(VERSION)
200 manpagesection(VERSION)
202 This man page is correct for version 2.0 of the Samba suite.
204 label(SEEALSO)
205 manpageseealso()
207 bf(inetd (8)), url(bf(smbd (8)))(smbd.8.html), url(bf(smb.conf
208 (5)))(smb.conf.5.html), url(bf(smbclient (1)))(smbclient.1.html),
209 url(bf(testparm (1)))(testparm.1.html), url(bf(testprns
210 (1)))(testprns.1.html), and the Internet RFC's bf(rfc1001.txt),
211 bf(rfc1002.txt). In addition the CIFS (formerly SMB) specification is
212 available as a link from the Web page :
213 url(http://samba.org/cifs/)(http://samba.org/cifs/).
215 label(AUTHOR)
216 manpageauthor()
218 The original Samba software and related utilities were created by
219 Andrew Tridgell email(samba@samba.org). Samba is now developed
220 by the Samba Team as an Open Source project similar to the way the
221 Linux kernel is developed.
223 The original Samba man pages were written by Karl Auer. The man page
224 sources were converted to YODL format (another excellent piece of Open
225 Source software, available at
226 url(bf(ftp://ftp.icce.rug.nl/pub/unix/))(ftp://ftp.icce.rug.nl/pub/unix/))
227 and updated for the Samba2.0 release by Jeremy Allison.
228 email(samba@samba.org).
230 See url(bf(samba (7)))(samba.7.html) to find out how to get a full
231 list of contributors and details on how to submit bug reports,
232 comments etc.