1 .\" This manpage has been automatically generated by docbook2man-spec
2 .\" from a DocBook document. docbook2man-spec can be found at:
3 .\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "SMBD" "8" "08 May 2002" "" ""
8 smbd \- server to provide SMB/CIFS services to clients
11 \fBsmbd\fR [ \fB-D\fR ] [ \fB-a\fR ] [ \fB-i\fR ] [ \fB-o\fR ] [ \fB-P\fR ] [ \fB-h\fR ] [ \fB-V\fR ] [ \fB-b\fR ] [ \fB-d <debug level>\fR ] [ \fB-l <log directory>\fR ] [ \fB-p <port number>\fR ] [ \fB-O <socket option>\fR ] [ \fB-s <configuration file>\fR ]
14 This program is part of the Samba suite.
16 \fBsmbd\fR is the server daemon that
17 provides filesharing and printing services to Windows clients.
18 The server provides filespace and printer services to
19 clients using the SMB (or CIFS) protocol. This is compatible
20 with the LanManager protocol, and can service LanManager
21 clients. These include MSCLIENT 3.0 for DOS, Windows for
22 Workgroups, Windows 95/98/ME, Windows NT, Windows 2000,
23 OS/2, DAVE for Macintosh, and smbfs for Linux.
25 An extensive description of the services that the
26 server can provide is given in the man page for the
27 configuration file controlling the attributes of those
28 services (see \fIsmb.conf(5)
29 \fR. This man page will not describe the
30 services, but will concentrate on the administrative aspects
31 of running the server.
33 Please note that there are significant security
34 implications to running this server, and the \fIsmb.conf(5)\fR
35 manpage should be regarded as mandatory reading before
36 proceeding with installation.
38 A session is created whenever a client requests one.
39 Each client gets a copy of the server for each session. This
40 copy then services all connections made by the client during
41 that session. When all connections from its client are closed,
42 the copy of the server for that client terminates.
44 The configuration file, and any files that it includes,
45 are automatically reloaded every minute, if they change. You
46 can force a reload by sending a SIGHUP to the server. Reloading
47 the configuration file will not affect connections to any service
48 that is already established. Either the user will have to
49 disconnect from the service, or \fBsmbd\fR killed and restarted.
53 If specified, this parameter causes
54 the server to operate as a daemon. That is, it detaches
55 itself and runs in the background, fielding requests
56 on the appropriate port. Operating the server as a
57 daemon is the recommended way of running \fBsmbd\fR for
58 servers that provide more than casual use file and
59 print services. This switch is assumed if \fBsmbd
60 \fRis executed on the command line of a shell.
63 If this parameter is specified, each new
64 connection will append log messages to the log file.
68 If this parameter is specified it causes the
69 server to run "interactively", not as a daemon, even if the
70 server is executed on the command line of a shell. Setting this
71 parameter negates the implicit deamon mode when run from the
75 If this parameter is specified, the
76 log files will be overwritten when opened. By default,
77 \fBsmbd\fR will append entries to the log
81 Passive option. Causes \fBsmbd\fR not to
82 send any network traffic out. Used for debugging by
86 Prints the help information (usage)
90 Prints the version number for
94 Prints information about how
97 \fB-d <debug level>\fR
98 \fIdebuglevel\fR is an integer
99 from 0 to 10. The default value if this parameter is
100 not specified is zero.
102 The higher this value, the more detail will be
103 logged to the log files about the activities of the
104 server. At level 0, only critical errors and serious
105 warnings will be logged. Level 1 is a reasonable level for
106 day to day running - it generates a small amount of
107 information about operations carried out.
109 Levels above 1 will generate considerable
110 amounts of log data, and should only be used when
111 investigating a problem. Levels above 3 are designed for
112 use only by developers and generate HUGE amounts of log
113 data, most of which is extremely cryptic.
115 Note that specifying this parameter here will
119 \fB-l <log directory>\fR
122 specifies a log directory into which the "log.smbd" log
123 file will be created for informational and debug
124 messages from the running server. The log
125 file generated is never removed by the server although
126 its size may be controlled by the max log size
127 option in the \fI smb.conf(5)\fRfile. \fBBeware:\fR
128 If the directory specified does not exist, \fBsmbd\fR
129 will log to the default debug log location defined at compile time.
131 The default log directory is specified at
134 \fB-O <socket options>\fR
135 See the socket options
136 parameter in the \fIsmb.conf(5)
139 \fB-p <port number>\fR
140 \fIport number\fR is a positive integer
141 value. The default value if this parameter is not
144 This number is the port number that will be
145 used when making connections to the server from client
146 software. The standard (well-known) port number for the
147 SMB over TCP is 139, hence the default. If you wish to
148 run the server as an ordinary user rather than
149 as root, most systems will require you to use a port
150 number greater than 1024 - ask your system administrator
151 for help if you are in this situation.
153 In order for the server to be useful by most
154 clients, should you configure it on a port other
155 than 139, you will require port redirection services
156 on port 139, details of which are outlined in rfc1002.txt
159 This parameter is not normally specified except
160 in the above situation.
162 \fB-s <configuration file>\fR
163 The file specified contains the
164 configuration details required by the server. The
165 information in this file includes server-specific
166 information such as what printcap file to use, as well
167 as descriptions of all the services that the server is
168 to provide. See \fI smb.conf(5)\fRfor more information.
169 The default configuration file name is determined at
173 \fB\fI/etc/inetd.conf\fB\fR
174 If the server is to be run by the
175 \fBinetd\fR meta-daemon, this file
176 must contain suitable startup information for the
177 meta-daemon. See the UNIX_INSTALL.html
178 document for details.
181 or whatever initialization script your
184 If running the server as a daemon at startup,
185 this file will need to contain an appropriate startup
186 sequence for the server. See the UNIX_INSTALL.html
187 document for details.
189 \fB\fI/etc/services\fB\fR
190 If running the server via the
191 meta-daemon \fBinetd\fR, this file
192 must contain a mapping of service name (e.g., netbios-ssn)
193 to service port (e.g., 139) and protocol type (e.g., tcp).
194 See the UNIX_INSTALL.html
195 document for details.
197 \fB\fI/usr/local/samba/lib/smb.conf\fB\fR
198 This is the default location of the
200 server configuration file. Other common places that systems
201 install this file are \fI/usr/samba/lib/smb.conf\fR
202 and \fI/etc/smb.conf\fR.
204 This file describes all the services the server
205 is to make available to clients. See \fIsmb.conf(5)\fRfor more information.
208 On some systems \fBsmbd\fR cannot change uid back
209 to root after a setuid() call. Such systems are called
210 trapdoor uid systems. If you have such a system,
211 you will be unable to connect from a client (such as a PC) as
212 two different users at once. Attempts to connect the
213 second user will result in access denied or
215 .SH "ENVIRONMENT VARIABLES"
218 If no printer name is specified to
219 printable services, most systems will use the value of
220 this variable (or lp if this variable is
221 not defined) as the name of the printer to use. This
222 is not specific to the server, however.
223 .SH "PAM INTERACTION"
225 Samba uses PAM for authentication (when presented with a plaintext
226 password), for account checking (is this account disabled?) and for
227 session management. The degree too which samba supports PAM is restricted
228 by the limitations of the SMB protocol and the
230 smb.conf paramater. When this is set, the following restrictions apply:
233 \fBAccount Validation\fR: All acccesses to a
234 samba server are checked
235 against PAM to see if the account is vaild, not disabled and is permitted to
236 login at this time. This also applies to encrypted logins.
239 \fBSession Management\fR: When not using share
240 level secuirty, users must pass PAM's session checks before access
241 is granted. Note however, that this is bypassed in share level secuirty.
242 Note also that some older pam configuration files may need a line
243 added for session support.
246 This man page is correct for version 2.2 of
250 Most diagnostics issued by the server are logged
251 in a specified log file. The log file name is specified
252 at compile time, but may be overridden on the command line.
254 The number and nature of diagnostics available depends
255 on the debug level used by the server. If you have problems, set
256 the debug level to 3 and peruse the log files.
258 Most messages are reasonably self-explanatory. Unfortunately,
259 at the time this man page was created, there are too many diagnostics
260 available in the source code to warrant describing each and every
261 diagnostic. At this stage your best bet is still to grep the
262 source code and inspect the conditions that gave rise to the
263 diagnostics you are seeing.
266 Sending the \fBsmbd\fR a SIGHUP will cause it to
267 reload its \fIsmb.conf\fR configuration
268 file within a short period of time.
270 To shut down a user's \fBsmbd\fR process it is recommended
271 that \fBSIGKILL (-9)\fR \fBNOT\fR
272 be used, except as a last resort, as this may leave the shared
273 memory area in an inconsistent state. The safe way to terminate
274 an \fBsmbd\fR is to send it a SIGTERM (-15) signal and wait for
275 it to die on its own.
277 The debug log level of \fBsmbd\fR may be raised
278 or lowered using \fBsmbcontrol(1)
279 \fRprogram (SIGUSR[1|2] signals are no longer used in
280 Samba 2.2). This is to allow transient problems to be diagnosed,
281 whilst still running at a normally low log level.
283 Note that as the signal handlers send a debug write,
284 they are not re-entrant in \fBsmbd\fR. This you should wait until
285 \fBsmbd\fR is in a state of waiting for an incoming SMB before
286 issuing them. It is possible to make the signal handlers safe
287 by un-blocking the signals before the select call and re-blocking
288 them after, however this would affect performance.
291 hosts_access(5), \fBinetd(8)\fR,
295 \fR, and the Internet RFC's
296 \fIrfc1001.txt\fR, \fIrfc1002.txt\fR.
297 In addition the CIFS (formerly SMB) specification is available
298 as a link from the Web page
299 http://samba.org/cifs/ <URL:http://samba.org/cifs/>.
302 The original Samba software and related utilities
303 were created by Andrew Tridgell. Samba is now developed
304 by the Samba Team as an Open Source project similar
305 to the way the Linux kernel is developed.
307 The original Samba man pages were written by Karl Auer.
308 The man page sources were converted to YODL format (another
309 excellent piece of Open Source software, available at
310 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
311 release by Jeremy Allison. The conversion to DocBook for
312 Samba 2.2 was done by Gerald Carter