1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.7"></HEAD
28 >smbd
--
server to provide SMB/CIFS services to clients
</DIV
30 CLASS=
"REFSYNOPSISDIV"
40 > [-D] [-F] [-S] [-i] [-h] [-V] [-b] [-d
<debug level
>] [-l
<log directory
>] [-p
<port number
>] [-O
<socket option
>] [-s
<configuration file
>]
</P
50 >This program is part of the
<SPAN
61 > is the server daemon that
62 provides filesharing and printing services to Windows clients.
63 The server provides filespace and printer services to
64 clients using the SMB (or CIFS) protocol. This is compatible
65 with the LanManager protocol, and can service LanManager
66 clients. These include MSCLIENT
3.0 for DOS, Windows for
67 Workgroups, Windows
95/
98/ME, Windows NT, Windows
2000,
68 OS/
2, DAVE for Macintosh, and smbfs for Linux.
</P
70 >An extensive description of the services that the
71 server can provide is given in the man page for the
72 configuration file controlling the attributes of those
79 >. This man page will not describe the
80 services, but will concentrate on the administrative aspects
81 of running the server.
</P
83 >Please note that there are significant security
84 implications to running this server, and the
<SPAN
90 > manual page should be regarded as mandatory reading before
91 proceeding with installation.
</P
93 >A session is created whenever a client requests one.
94 Each client gets a copy of the server for each session. This
95 copy then services all connections made by the client during
96 that session. When all connections from its client are closed,
97 the copy of the server for that client terminates.
</P
99 >The configuration file, and any files that it includes,
100 are automatically reloaded every minute, if they change. You
101 can force a reload by sending a SIGHUP to the server. Reloading
102 the configuration file will not affect connections to any service
103 that is already established. Either the user will have to
104 disconnect from the service, or
<B
107 > killed and restarted.
</P
125 >If specified, this parameter causes
126 the server to operate as a daemon. That is, it detaches
127 itself and runs in the background, fielding requests
128 on the appropriate port. Operating the server as a
129 daemon is the recommended way of running
<B
133 servers that provide more than casual use file and
134 print services. This switch is assumed if
<B
138 > is executed on the command line of a shell.
145 >If specified, this parameter causes
149 > process to not daemonize,
150 i.e. double-fork and disassociate with the terminal.
151 Child processes are still created as normal to service
152 each connection request, but the main process does not
153 exit. This operation mode is suitable for running
157 > under process supervisors such
165 from Daniel J. Bernstein's
<B
169 package, or the AIX process monitor.
176 >If specified, this parameter causes
180 > to log to standard output rather
187 >If this parameter is specified it causes the
188 server to run
"interactively", not as a daemon, even if the
189 server is executed on the command line of a shell. Setting this
190 parameter negates the implicit deamon mode when run from the
194 > also logs to standard
206 >Prints the version number for
213 >-s
<configuration file
></DT
216 >The file specified contains the
217 configuration details required by the server. The
218 information in this file includes server-specific
219 information such as what printcap file to use, as well
220 as descriptions of all the services that the server is
222 HREF=
"smb.conf.5.html"
228 > for more information.
229 The default configuration file name is determined at
233 >-d|--debug=debuglevel
</DT
240 from
0 to
10. The default value if this parameter is
241 not specified is zero.
</P
243 >The higher this value, the more detail will be
244 logged to the log files about the activities of the
245 server. At level
0, only critical errors and serious
246 warnings will be logged. Level
1 is a reasonable level for
247 day to day running - it generates a small amount of
248 information about operations carried out.
</P
250 >Levels above
1 will generate considerable
251 amounts of log data, and should only be used when
252 investigating a problem. Levels above
3 are designed for
253 use only by developers and generate HUGE amounts of log
254 data, most of which is extremely cryptic.
</P
256 >Note that specifying this parameter here will
258 HREF=
"smb.conf.5.html#loglevel"
262 > parameter in the
<A
263 HREF=
"smb.conf.5.html"
272 >-l|--logfile=logbasename
</DT
275 >File name for log/debug files. The extension
279 > will be appended. The log file is
280 never removed by the client.
</P
286 >Print a summary of command line options.
</P
292 >Prints information about how
296 >-l
<log directory
></DT
304 specifies a log directory into which the
"log.smbd" log
305 file will be created for informational and debug
306 messages from the running server. The log
307 file generated is never removed by the server although
308 its size may be controlled by the
<A
309 HREF=
"smb.conf.5.html#maxlogsize"
319 CLASS=
"REFENTRYTITLE"
329 If the directory specified does not exist,
<B
333 will log to the default debug log location defined at compile time.
336 >The default log directory is specified at
340 >-p
<port number
></DT
346 > is a positive integer
347 value. The default value if this parameter is not
350 >This number is the port number that will be
351 used when making connections to the server from client
352 software. The standard (well-known) port number for the
353 SMB over TCP is
139, hence the default. If you wish to
354 run the server as an ordinary user rather than
355 as root, most systems will require you to use a port
356 number greater than
1024 - ask your system administrator
357 for help if you are in this situation.
</P
359 >In order for the server to be useful by most
360 clients, should you configure it on a port other
361 than
139, you will require port redirection services
362 on port
139, details of which are outlined in rfc1002.txt
365 >This parameter is not normally specified except
366 in the above situation.
</P
390 >If the server is to be run by the
394 > meta-daemon, this file
395 must contain suitable startup information for the
396 meta-daemon. See the
<A
399 >"How to Install and Test SAMBA"</A
401 document for details.
411 >or whatever initialization script your
414 >If running the server as a daemon at startup,
415 this file will need to contain an appropriate startup
416 sequence for the server. See the
<A
419 >"How to Install and Test SAMBA"</A
421 document for details.
</P
430 >If running the server via the
435 must contain a mapping of service name (e.g., netbios-ssn)
436 to service port (e.g.,
139) and protocol type (e.g., tcp).
440 >"How to Install and Test SAMBA"</A
442 document for details.
</P
447 >/usr/local/samba/lib/smb.conf
</TT
451 >This is the default location of the
<SPAN
454 CLASS=
"REFENTRYTITLE"
457 > server configuration file. Other common places that systems
458 install this file are
<TT
460 >/usr/samba/lib/smb.conf
</TT
464 >/etc/samba/smb.conf
</TT
467 >This file describes all the services the server
468 is to make available to clients. See
<SPAN
471 CLASS=
"REFENTRYTITLE"
474 > for more information.
</P
490 > cannot change uid back
491 to root after a setuid() call. Such systems are called
492 trapdoor uid systems. If you have such a system,
493 you will be unable to connect from a client (such as a PC) as
494 two different users at once. Attempts to connect the
495 second user will result in access denied or
504 >ENVIRONMENT VARIABLES
</H2
517 >If no printer name is specified to
518 printable services, most systems will use the value of
519 this variable (or
<CODE
522 > if this variable is
523 not defined) as the name of the printer to use. This
524 is not specific to the server, however.
</P
537 >Samba uses PAM for authentication (when presented with a plaintext
538 password), for account checking (is this account disabled?) and for
539 session management. The degree too which samba supports PAM is restricted
540 by the limitations of the SMB protocol and the
<A
541 HREF=
"smb.conf.5.html#OBEYPAMRESRICTIONS"
551 CLASS=
"REFENTRYTITLE"
554 > paramater. When this is set, the following restrictions apply:
565 >Account Validation
</I
568 samba server are checked
569 against PAM to see if the account is vaild, not disabled and is permitted to
570 login at this time. This also applies to encrypted logins.
579 >Session Management
</I
581 >: When not using share
582 level secuirty, users must pass PAM's session checks before access
583 is granted. Note however, that this is bypassed in share level secuirty.
584 Note also that some older pam configuration files may need a line
585 added for session support.
598 >This man page is correct for version
3.0 of
609 >Most diagnostics issued by the server are logged
610 in a specified log file. The log file name is specified
611 at compile time, but may be overridden on the command line.
</P
613 >The number and nature of diagnostics available depends
614 on the debug level used by the server. If you have problems, set
615 the debug level to
3 and peruse the log files.
</P
617 >Most messages are reasonably self-explanatory. Unfortunately,
618 at the time this man page was created, there are too many diagnostics
619 available in the source code to warrant describing each and every
620 diagnostic. At this stage your best bet is still to grep the
621 source code and inspect the conditions that gave rise to the
622 diagnostics you are seeing.
</P
635 > a SIGHUP will cause it to
640 file within a short period of time.
</P
642 >To shut down a user's
<B
645 > process it is recommended
656 be used, except as a last resort, as this may leave the shared
657 memory area in an inconsistent state. The safe way to terminate
661 > is to send it a SIGTERM (-
15) signal and wait for
662 it to die on its own.
</P
664 >The debug log level of
<B
668 or lowered using
<SPAN
671 CLASS=
"REFENTRYTITLE"
674 > program (SIGUSR[
1|
2] signals are no longer
675 used since Samba
2.2). This is to allow transient problems to be diagnosed,
676 whilst still running at a normally low log level.
</P
678 >Note that as the signal handlers send a debug write,
679 they are not re-entrant in
<B
682 >. This you should wait until
686 > is in a state of waiting for an incoming SMB before
687 issuing them. It is possible to make the signal handlers safe
688 by un-blocking the signals before the select call and re-blocking
689 them after, however this would affect performance.
</P
702 CLASS=
"REFENTRYTITLE"
708 CLASS=
"REFENTRYTITLE"
714 CLASS=
"REFENTRYTITLE"
720 CLASS=
"REFENTRYTITLE"
726 CLASS=
"REFENTRYTITLE"
732 CLASS=
"REFENTRYTITLE"
738 CLASS=
"REFENTRYTITLE"
749 In addition the CIFS (formerly SMB) specification is available
750 as a link from the Web page
<A
751 HREF=
"http://samba.org/cifs/"
754 http://samba.org/cifs/
</A
765 >The original Samba software and related utilities
766 were created by Andrew Tridgell. Samba is now developed
767 by the Samba Team as an Open Source project similar
768 to the way the Linux kernel is developed.
</P
770 >The original Samba man pages were written by Karl Auer.
771 The man page sources were converted to YODL format (another
772 excellent piece of Open Source software, available at
<A
773 HREF=
"ftp://ftp.icce.rug.nl/pub/unix/"
775 > ftp://ftp.icce.rug.nl/pub/unix/
</A
776 >) and updated for the Samba
2.0
777 release by Jeremy Allison. The conversion to DocBook for
778 Samba
2.2 was done by Gerald Carter. The conversion to DocBook XML
4.2 for
779 Samba
3.0 was done by Alexander Bokovoy.
</P