source: branches/samba-3.0/docs/manpages/smbd.8@ 123

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

Update source to 3.0.25b

File size: 12.6 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 "SMBD" 8 "" "" ""
21.SH "NAME"
22smbd - server to provide SMB/CIFS services to clients
23.SH "SYNOPSIS"
24.HP 1
25smbd [-D] [-F] [-S] [-i] [-h] [-V] [-b] [-d <debug level>] [-l <log directory>] [-p <port number(s)>] [-P <profiling level>] [-O <socket option>] [-s <configuration file>]
26.SH "DESCRIPTION"
27.PP
28This program is part of the
29\fBsamba\fR(7)
30suite.
31.PP
32smbd
33is the server daemon that provides filesharing and printing services to Windows clients. The server provides filespace and printer services to clients using the SMB (or CIFS) protocol. This is compatible with the LanManager protocol, and can service LanManager clients. These include MSCLIENT 3.0 for DOS, Windows for Workgroups, Windows 95/98/ME, Windows NT, Windows 2000, OS/2, DAVE for Macintosh, and smbfs for Linux.
34.PP
35An extensive description of the services that the server can provide is given in the man page for the configuration file controlling the attributes of those services (see
36\fBsmb.conf\fR(5). This man page will not describe the services, but will concentrate on the administrative aspects of running the server.
37.PP
38Please note that there are significant security implications to running this server, and the
39\fBsmb.conf\fR(5)
40manual page should be regarded as mandatory reading before proceeding with installation.
41.PP
42A session is created whenever a client requests one. Each client gets a copy of the server for each session. This copy then services all connections made by the client during that session. When all connections from its client are closed, the copy of the server for that client terminates.
43.PP
44The configuration file, and any files that it includes, are automatically reloaded every minute, if they change. You can force a reload by sending a SIGHUP to the server. Reloading the configuration file will not affect connections to any service that is already established. Either the user will have to disconnect from the service, or
45smbd
46killed and restarted.
47.SH "OPTIONS"
48.PP
49-D
50.RS 3n
51If specified, this parameter causes the server to operate as a daemon. That is, it detaches itself and runs in the background, fielding requests on the appropriate port. Operating the server as a daemon is the recommended way of running
52smbd
53for servers that provide more than casual use file and print services. This switch is assumed if
54smbd
55is executed on the command line of a shell.
56.RE
57.PP
58-F
59.RS 3n
60If specified, this parameter causes the main
61smbd
62process 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
63smbd
64under process supervisors such as
65supervise
66and
67svscan
68from Daniel J. Bernstein's
69daemontools
70package, or the AIX process monitor.
71.RE
72.PP
73-S
74.RS 3n
75If specified, this parameter causes
76smbd
77to log to standard output rather than a file.
78.RE
79.PP
80-i
81.RS 3n
82If 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 deamon mode when run from the command line.
83smbd
84also logs to standard output, as if the
85-S
86parameter had been given.
87.RE
88.PP
89-V
90.RS 3n
91Prints the program version number.
92.RE
93.PP
94-s <configuration file>
95.RS 3n
96The 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
97\fIsmb.conf\fR
98for more information. The default configuration file name is determined at compile time.
99.RE
100.PP
101-d|--debuglevel=level
102.RS 3n
103\fIlevel\fR
104is an integer from 0 to 10. The default value if this parameter is not specified is zero.
105.sp
106The 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.
107.sp
108Levels 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.
109.sp
110Note that specifying this parameter here will override the
111
112parameter in the
113\fIsmb.conf\fR
114file.
115.RE
116.PP
117-l|--logfile=logdirectory
118.RS 3n
119Base directory name for log/debug files. The extension
120\fB".progname"\fR
121will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client.
122.RE
123.PP
124-h|--help
125.RS 3n
126Print a summary of command line options.
127.RE
128.PP
129-b
130.RS 3n
131Prints information about how Samba was built.
132.RE
133.PP
134-p|--port<port number(s)>
135.RS 3n
136\fIport number(s)\fR
137is a space or comma-separated list of TCP ports smbd should listen on. The default value is taken from the
138ports parameter in
139\fIsmb.conf\fR
140.sp
141The default ports are 139 (used for SMB over NetBIOS over TCP) and port 445 (used for plain SMB over TCP).
142.RE
143.PP
144-P|--profiling-level<profiling level>
145.RS 3n
146\fIprofiling level\fR
147is a number specifying the level of profiling data to be collected. 0 turns off profiling, 1 turns on counter profiling only, 2 turns on complete profiling, and 3 resets all profiling data.
148.RE
149.SH "FILES"
150.PP
151\fI/etc/inetd.conf\fR
152.RS 3n
153If the server is to be run by the
154inetd
155meta-daemon, this file must contain suitable startup information for the meta-daemon.
156.RE
157.PP
158\fI/etc/rc\fR
159.RS 3n
160or whatever initialization script your system uses).
161.sp
162If running the server as a daemon at startup, this file will need to contain an appropriate startup sequence for the server.
163.RE
164.PP
165\fI/etc/services\fR
166.RS 3n
167If running the server via the meta-daemon
168inetd, 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).
169.RE
170.PP
171\fI/usr/local/samba/lib/smb.conf\fR
172.RS 3n
173This is the default location of the
174\fBsmb.conf\fR(5)
175server configuration file. Other common places that systems install this file are
176\fI/usr/samba/lib/smb.conf\fR
177and
178\fI/etc/samba/smb.conf\fR.
179.sp
180This file describes all the services the server is to make available to clients. See
181\fBsmb.conf\fR(5)
182for more information.
183.RE
184.SH "LIMITATIONS"
185.PP
186On some systems
187smbd
188cannot change uid back to root after a setuid() call. Such systems are called trapdoor uid systems. If you have such a system, you will be unable to connect from a client (such as a PC) as two different users at once. Attempts to connect the second user will result in access denied or similar.
189.SH "ENVIRONMENT VARIABLES"
190.PP
191\fBPRINTER\fR
192.RS 3n
193If no printer name is specified to printable services, most systems will use the value of this variable (or
194\fBlp\fR
195if this variable is not defined) as the name of the printer to use. This is not specific to the server, however.
196.RE
197.SH "PAM INTERACTION"
198.PP
199Samba uses PAM for authentication (when presented with a plaintext password), for account checking (is this account disabled?) and for session management. The degree too which samba supports PAM is restricted by the limitations of the SMB protocol and the
200obey pam restrictions
201\fBsmb.conf\fR(5)
202paramater. When this is set, the following restrictions apply:
203.TP 3n
204\(bu
205\fBAccount Validation\fR: All accesses to a samba server are checked against PAM to see if the account is vaild, not disabled and is permitted to login at this time. This also applies to encrypted logins.
206.TP 3n
207\(bu
208\fBSession Management\fR: When not using share level secuirty, users must pass PAM's session checks before access is granted. Note however, that this is bypassed in share level secuirty. Note also that some older pam configuration files may need a line added for session support.
209.SH "VERSION"
210.PP
211This man page is correct for version 3.0 of the Samba suite.
212.SH "DIAGNOSTICS"
213.PP
214Most diagnostics issued by the server are logged in a specified log file. The log file name is specified at compile time, but may be overridden on the command line.
215.PP
216The number and nature of diagnostics available depends on the debug level used by the server. If you have problems, set the debug level to 3 and peruse the log files.
217.PP
218Most messages are reasonably self-explanatory. Unfortunately, at the time this man page was created, there are too many diagnostics available in the source code to warrant describing each and every diagnostic. At this stage your best bet is still to grep the source code and inspect the conditions that gave rise to the diagnostics you are seeing.
219.SH "TDB FILES"
220.PP
221Samba stores it's data in several TDB (Trivial Database) files, usually located in
222\fI/var/lib/samba\fR.
223.PP
224(*) information persistent across restarts (but not necessarily important to backup).
225.PP
226account_policy.tdb*
227.RS 3n
228NT account policy settings such as pw expiration, etc...
229.RE
230.PP
231brlock.tdb
232.RS 3n
233byte range locks
234.RE
235.PP
236browse.dat
237.RS 3n
238browse lists
239.RE
240.PP
241connections.tdb
242.RS 3n
243share connections (used to enforce max connections, etc...)
244.RE
245.PP
246gencache.tdb
247.RS 3n
248generic caching db
249.RE
250.PP
251group_mapping.tdb*
252.RS 3n
253group mapping information
254.RE
255.PP
256locking.tdb
257.RS 3n
258share modes & oplocks
259.RE
260.PP
261login_cache.tdb*
262.RS 3n
263bad pw attempts
264.RE
265.PP
266messages.tdb
267.RS 3n
268Samba messaging system
269.RE
270.PP
271netsamlogon_cache.tdb*
272.RS 3n
273cache of user net_info_3 struct from net_samlogon() request (as a domain member)
274.RE
275.PP
276ntdrivers.tdb*
277.RS 3n
278installed printer drivers
279.RE
280.PP
281ntforms.tdb*
282.RS 3n
283installed printer forms
284.RE
285.PP
286ntprinters.tdb*
287.RS 3n
288installed printer information
289.RE
290.PP
291printing/
292.RS 3n
293directory containing tdb per print queue of cached lpq output
294.RE
295.PP
296registry.tdb
297.RS 3n
298Windows registry skeleton (connect via regedit.exe)
299.RE
300.PP
301sessionid.tdb
302.RS 3n
303session information (e.g. support for 'utmp = yes')
304.RE
305.PP
306share_info.tdb*
307.RS 3n
308share acls
309.RE
310.PP
311winbindd_cache.tdb
312.RS 3n
313winbindd's cache of user lists, etc...
314.RE
315.PP
316winbindd_idmap.tdb*
317.RS 3n
318winbindd's local idmap db
319.RE
320.PP
321wins.dat*
322.RS 3n
323wins database when 'wins support = yes'
324.RE
325.SH "SIGNALS"
326.PP
327Sending the
328smbd
329a SIGHUP will cause it to reload its
330\fIsmb.conf\fR
331configuration file within a short period of time.
332.PP
333To shut down a user's
334smbd
335process it is recommended that
336SIGKILL (-9)
337\fBNOT\fR
338be used, except as a last resort, as this may leave the shared memory area in an inconsistent state. The safe way to terminate an
339smbd
340is to send it a SIGTERM (-15) signal and wait for it to die on its own.
341.PP
342The debug log level of
343smbd
344may be raised or lowered using
345\fBsmbcontrol\fR(1)
346program (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.
347.PP
348Note that as the signal handlers send a debug write, they are not re-entrant in
349smbd. This you should wait until
350smbd
351is in a state of waiting for an incoming SMB before issuing them. It is possible to make the signal handlers safe by un-blocking the signals before the select call and re-blocking them after, however this would affect performance.
352.SH "SEE ALSO"
353.PP
354\fBhosts_access\fR(5),
355\fBinetd\fR(8),
356\fBnmbd\fR(8),
357\fBsmb.conf\fR(5),
358\fBsmbclient\fR(1),
359\fBtestparm\fR(1),
360\fBtestprns\fR(1), and the Internet RFC's
361\fIrfc1001.txt\fR,
362\fIrfc1002.txt\fR. In addition the CIFS (formerly SMB) specification is available as a link from the Web page
363http://samba.org/cifs/.
364.SH "AUTHOR"
365.PP
366The 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.
367.PP
368The 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
369ftp://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.
370
Note: See TracBrowser for help on using the repository browser.