source: branches/samba-3.2.x/docs/manpages/smbd.8@ 225

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

Update 3.2 branch to 3.2.6 docs manpages

File size: 13.0 KB
Line 
1.\" Title: smbd
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
4.\" Date: 12/10/2008
5.\" Manual: System Administration tools
6.\" Source: Samba 3.2
7.\"
8.TH "SMBD" "8" "12/10/2008" "Samba 3\.2" "System Administration tools"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14smbd - server to provide SMB/CIFS services to clients
15.SH "SYNOPSIS"
16.HP 1
17smbd [\-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>]
18.SH "DESCRIPTION"
19.PP
20This program is part of the
21\fBsamba\fR(7)
22suite\.
23.PP
24smbd
25is 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\.
26.PP
27An 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
28\fBsmb.conf\fR(5)\. This man page will not describe the services, but will concentrate on the administrative aspects of running the server\.
29.PP
30Please note that there are significant security implications to running this server, and the
31\fBsmb.conf\fR(5)
32manual page should be regarded as mandatory reading before proceeding with installation\.
33.PP
34A 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\.
35.PP
36The 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
37smbd
38killed and restarted\.
39.SH "OPTIONS"
40.PP
41\-D
42.RS 4
43If 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
44smbd
45for servers that provide more than casual use file and print services\. This switch is assumed if
46smbd
47is executed on the command line of a shell\.
48.RE
49.PP
50\-F
51.RS 4
52If specified, this parameter causes the main
53smbd
54process 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
55smbd
56under process supervisors such as
57supervise
58and
59svscan
60from Daniel J\. Bernstein\'s
61daemontools
62package, or the AIX process monitor\.
63.RE
64.PP
65\-S
66.RS 4
67If specified, this parameter causes
68smbd
69to log to standard output rather than a file\.
70.RE
71.PP
72\-i
73.RS 4
74If 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\.
75smbd
76also logs to standard output, as if the
77\-S
78parameter had been given\.
79.RE
80.PP
81\-d|\-\-debuglevel=level
82.RS 4
83\fIlevel\fR
84is an integer from 0 to 10\. The default value if this parameter is not specified is 0\.
85.sp
86The 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\.
87.sp
88Levels 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\.
89.sp
90Note that specifying this parameter here will override the
91\fIlog level\fR
92parameter in the
93\fIsmb\.conf\fR
94file\.
95.RE
96.PP
97\-V
98.RS 4
99Prints the program version number\.
100.RE
101.PP
102\-s <configuration file>
103.RS 4
104The 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
105\fIsmb\.conf\fR
106for more information\. The default configuration file name is determined at compile time\.
107.RE
108.PP
109\-l|\-\-log\-basename=logdirectory
110.RS 4
111Base directory name for log/debug files\. The extension
112\fB"\.progname"\fR
113will be appended (e\.g\. log\.smbclient, log\.smbd, etc\.\.\.)\. The log file is never removed by the client\.
114.RE
115.PP
116\-h|\-\-help
117.RS 4
118Print a summary of command line options\.
119.RE
120.PP
121\-b
122.RS 4
123Prints information about how Samba was built\.
124.RE
125.PP
126\-p|\-\-port<port number(s)>
127.RS 4
128\fIport number(s)\fR
129is a space or comma\-separated list of TCP ports smbd should listen on\. The default value is taken from the
130\fIports\fR
131parameter in
132\fIsmb\.conf\fR
133.sp
134The default ports are 139 (used for SMB over NetBIOS over TCP) and port 445 (used for plain SMB over TCP)\.
135.RE
136.PP
137\-P|\-\-profiling\-level<profiling level>
138.RS 4
139\fIprofiling level\fR
140is 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\.
141.RE
142.SH "FILES"
143.PP
144\fI/etc/inetd\.conf\fR
145.RS 4
146If the server is to be run by the
147inetd
148meta\-daemon, this file must contain suitable startup information for the meta\-daemon\.
149.RE
150.PP
151\fI/etc/rc\fR
152.RS 4
153or whatever initialization script your system uses)\.
154.sp
155If running the server as a daemon at startup, this file will need to contain an appropriate startup sequence for the server\.
156.RE
157.PP
158\fI/etc/services\fR
159.RS 4
160If running the server via the meta\-daemon
161inetd, 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)\.
162.RE
163.PP
164\fI/usr/local/samba/lib/smb\.conf\fR
165.RS 4
166This is the default location of the
167\fBsmb.conf\fR(5)
168server configuration file\. Other common places that systems install this file are
169\fI/usr/samba/lib/smb\.conf\fR
170and
171\fI/etc/samba/smb\.conf\fR\.
172.sp
173This file describes all the services the server is to make available to clients\. See
174\fBsmb.conf\fR(5)
175for more information\.
176.RE
177.SH "LIMITATIONS"
178.PP
179On some systems
180smbd
181cannot 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\.
182.SH "ENVIRONMENT VARIABLES"
183.PP
184\fBPRINTER\fR
185.RS 4
186If no printer name is specified to printable services, most systems will use the value of this variable (or
187\fBlp\fR
188if this variable is not defined) as the name of the printer to use\. This is not specific to the server, however\.
189.RE
190.SH "PAM INTERACTION"
191.PP
192Samba 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
193\fIobey pam restrictions\fR
194\fBsmb.conf\fR(5)
195paramater\. When this is set, the following restrictions apply:
196.sp
197.RS 4
198.ie n \{\
199\h'-04'\(bu\h'+03'\c
200.\}
201.el \{\
202.sp -1
203.IP \(bu 2.3
204.\}
205\fIAccount 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.RE
207.sp
208.RS 4
209.ie n \{\
210\h'-04'\(bu\h'+03'\c
211.\}
212.el \{\
213.sp -1
214.IP \(bu 2.3
215.\}
216\fISession 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\.
217.SH "VERSION"
218.PP
219This man page is correct for version 3 of the Samba suite\.
220.SH "DIAGNOSTICS"
221.PP
222Most 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\.
223.PP
224The 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\.
225.PP
226Most 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\.
227.SH "TDB FILES"
228.PP
229Samba stores it\'s data in several TDB (Trivial Database) files, usually located in
230\fI/var/lib/samba\fR\.
231.PP
232(*) information persistent across restarts (but not necessarily important to backup)\.
233.PP
234account_policy\.tdb*
235.RS 4
236NT account policy settings such as pw expiration, etc\.\.\.
237.RE
238.PP
239brlock\.tdb
240.RS 4
241byte range locks
242.RE
243.PP
244browse\.dat
245.RS 4
246browse lists
247.RE
248.PP
249connections\.tdb
250.RS 4
251share connections (used to enforce max connections, etc\.\.\.)
252.RE
253.PP
254gencache\.tdb
255.RS 4
256generic caching db
257.RE
258.PP
259group_mapping\.tdb*
260.RS 4
261group mapping information
262.RE
263.PP
264locking\.tdb
265.RS 4
266share modes & oplocks
267.RE
268.PP
269login_cache\.tdb*
270.RS 4
271bad pw attempts
272.RE
273.PP
274messages\.tdb
275.RS 4
276Samba messaging system
277.RE
278.PP
279netsamlogon_cache\.tdb*
280.RS 4
281cache of user net_info_3 struct from net_samlogon() request (as a domain member)
282.RE
283.PP
284ntdrivers\.tdb*
285.RS 4
286installed printer drivers
287.RE
288.PP
289ntforms\.tdb*
290.RS 4
291installed printer forms
292.RE
293.PP
294ntprinters\.tdb*
295.RS 4
296installed printer information
297.RE
298.PP
299printing/
300.RS 4
301directory containing tdb per print queue of cached lpq output
302.RE
303.PP
304registry\.tdb
305.RS 4
306Windows registry skeleton (connect via regedit\.exe)
307.RE
308.PP
309sessionid\.tdb
310.RS 4
311session information (e\.g\. support for \'utmp = yes\')
312.RE
313.PP
314share_info\.tdb*
315.RS 4
316share acls
317.RE
318.PP
319winbindd_cache\.tdb
320.RS 4
321winbindd\'s cache of user lists, etc\.\.\.
322.RE
323.PP
324winbindd_idmap\.tdb*
325.RS 4
326winbindd\'s local idmap db
327.RE
328.PP
329wins\.dat*
330.RS 4
331wins database when \'wins support = yes\'
332.RE
333.SH "SIGNALS"
334.PP
335Sending the
336smbd
337a SIGHUP will cause it to reload its
338\fIsmb\.conf\fR
339configuration file within a short period of time\.
340.PP
341To shut down a user\'s
342smbd
343process it is recommended that
344SIGKILL (\-9)
345\fINOT\fR
346be used, except as a last resort, as this may leave the shared memory area in an inconsistent state\. The safe way to terminate an
347smbd
348is to send it a SIGTERM (\-15) signal and wait for it to die on its own\.
349.PP
350The debug log level of
351smbd
352may be raised or lowered using
353\fBsmbcontrol\fR(1)
354program (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\.
355.PP
356Note that as the signal handlers send a debug write, they are not re\-entrant in
357smbd\. This you should wait until
358smbd
359is 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\.
360.SH "SEE ALSO"
361.PP
362\fBhosts_access\fR(5),
363\fBinetd\fR(8),
364\fBnmbd\fR(8),
365\fBsmb.conf\fR(5),
366\fBsmbclient\fR(1),
367\fBtestparm\fR(1),
368\fBtestprns\fR(1), and the Internet RFC\'s
369\fIrfc1001\.txt\fR,
370\fIrfc1002\.txt\fR\. In addition the CIFS (formerly SMB) specification is available as a link from the Web page
371http://samba\.org/cifs/\.
372.SH "AUTHOR"
373.PP
374The 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\.
375.PP
376The 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
377ftp://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.