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 help information (usage)
216 >Prints the version number for
226 >Prints information about how
230 >-d
<debug level
></DT
237 from
0 to
10. The default value if this parameter is
238 not specified is zero.
</P
240 >The higher this value, the more detail will be
241 logged to the log files about the activities of the
242 server. At level
0, only critical errors and serious
243 warnings will be logged. Level
1 is a reasonable level for
244 day to day running - it generates a small amount of
245 information about operations carried out.
</P
247 >Levels above
1 will generate considerable
248 amounts of log data, and should only be used when
249 investigating a problem. Levels above
3 are designed for
250 use only by developers and generate HUGE amounts of log
251 data, most of which is extremely cryptic.
</P
253 >Note that specifying this parameter here will
255 HREF=
"smb.conf.5.html#loglevel"
262 > parameter in the
<SPAN
265 CLASS=
"REFENTRYTITLE"
271 >-l
<log directory
></DT
279 specifies a log directory into which the
"log.smbd" log
280 file will be created for informational and debug
281 messages from the running server. The log
282 file generated is never removed by the server although
283 its size may be controlled by the
<A
284 HREF=
"smb.conf.5.html#maxlogsize"
294 CLASS=
"REFENTRYTITLE"
304 If the directory specified does not exist,
<B
308 will log to the default debug log location defined at compile time.
311 >The default log directory is specified at
315 >-O
<socket options
></DT
319 HREF=
"smb.conf.5.html#socketoptions"
326 parameter in the
<SPAN
329 CLASS=
"REFENTRYTITLE"
332 > file for details.
</P
335 >-p
<port number
></DT
341 > is a positive integer
342 value. The default value if this parameter is not
345 >This number is the port number that will be
346 used when making connections to the server from client
347 software. The standard (well-known) port number for the
348 SMB over TCP is
139, hence the default. If you wish to
349 run the server as an ordinary user rather than
350 as root, most systems will require you to use a port
351 number greater than
1024 - ask your system administrator
352 for help if you are in this situation.
</P
354 >In order for the server to be useful by most
355 clients, should you configure it on a port other
356 than
139, you will require port redirection services
357 on port
139, details of which are outlined in rfc1002.txt
360 >This parameter is not normally specified except
361 in the above situation.
</P
364 >-s
<configuration file
></DT
367 >The file specified contains the
368 configuration details required by the server. The
369 information in this file includes server-specific
370 information such as what printcap file to use, as well
371 as descriptions of all the services that the server is
372 to provide. See
<SPAN
375 CLASS=
"REFENTRYTITLE"
378 > for more information.
379 The default configuration file name is determined at
404 >If the server is to be run by the
408 > meta-daemon, this file
409 must contain suitable startup information for the
410 meta-daemon. See the
<A
413 >"How to Install and Test SAMBA"</A
415 document for details.
425 >or whatever initialization script your
428 >If running the server as a daemon at startup,
429 this file will need to contain an appropriate startup
430 sequence for the server. See the
<A
433 >"How to Install and Test SAMBA"</A
435 document for details.
</P
444 >If running the server via the
449 must contain a mapping of service name (e.g., netbios-ssn)
450 to service port (e.g.,
139) and protocol type (e.g., tcp).
454 >"How to Install and Test SAMBA"</A
456 document for details.
</P
461 >/usr/local/samba/lib/smb.conf
</TT
465 >This is the default location of the
<SPAN
468 CLASS=
"REFENTRYTITLE"
471 > server configuration file. Other common places that systems
472 install this file are
<TT
474 >/usr/samba/lib/smb.conf
</TT
478 >/etc/samba/smb.conf
</TT
481 >This file describes all the services the server
482 is to make available to clients. See
<SPAN
485 CLASS=
"REFENTRYTITLE"
488 > for more information.
</P
504 > cannot change uid back
505 to root after a setuid() call. Such systems are called
506 trapdoor uid systems. If you have such a system,
507 you will be unable to connect from a client (such as a PC) as
508 two different users at once. Attempts to connect the
509 second user will result in access denied or
518 >ENVIRONMENT VARIABLES
</H2
531 >If no printer name is specified to
532 printable services, most systems will use the value of
533 this variable (or
<CODE
536 > if this variable is
537 not defined) as the name of the printer to use. This
538 is not specific to the server, however.
</P
551 >Samba uses PAM for authentication (when presented with a plaintext
552 password), for account checking (is this account disabled?) and for
553 session management. The degree too which samba supports PAM is restricted
554 by the limitations of the SMB protocol and the
<A
555 HREF=
"smb.conf.5.html#OBEYPAMRESRICTIONS"
565 CLASS=
"REFENTRYTITLE"
568 > paramater. When this is set, the following restrictions apply:
579 >Account Validation
</I
582 samba server are checked
583 against PAM to see if the account is vaild, not disabled and is permitted to
584 login at this time. This also applies to encrypted logins.
593 >Session Management
</I
595 >: When not using share
596 level secuirty, users must pass PAM's session checks before access
597 is granted. Note however, that this is bypassed in share level secuirty.
598 Note also that some older pam configuration files may need a line
599 added for session support.
612 >This man page is correct for version
3.0 of
623 >Most diagnostics issued by the server are logged
624 in a specified log file. The log file name is specified
625 at compile time, but may be overridden on the command line.
</P
627 >The number and nature of diagnostics available depends
628 on the debug level used by the server. If you have problems, set
629 the debug level to
3 and peruse the log files.
</P
631 >Most messages are reasonably self-explanatory. Unfortunately,
632 at the time this man page was created, there are too many diagnostics
633 available in the source code to warrant describing each and every
634 diagnostic. At this stage your best bet is still to grep the
635 source code and inspect the conditions that gave rise to the
636 diagnostics you are seeing.
</P
649 > a SIGHUP will cause it to
654 file within a short period of time.
</P
656 >To shut down a user's
<B
659 > process it is recommended
670 be used, except as a last resort, as this may leave the shared
671 memory area in an inconsistent state. The safe way to terminate
675 > is to send it a SIGTERM (-
15) signal and wait for
676 it to die on its own.
</P
678 >The debug log level of
<B
682 or lowered using
<SPAN
685 CLASS=
"REFENTRYTITLE"
688 > program (SIGUSR[
1|
2] signals are no longer
689 used since Samba
2.2). This is to allow transient problems to be diagnosed,
690 whilst still running at a normally low log level.
</P
692 >Note that as the signal handlers send a debug write,
693 they are not re-entrant in
<B
696 >. This you should wait until
700 > is in a state of waiting for an incoming SMB before
701 issuing them. It is possible to make the signal handlers safe
702 by un-blocking the signals before the select call and re-blocking
703 them after, however this would affect performance.
</P
716 CLASS=
"REFENTRYTITLE"
722 CLASS=
"REFENTRYTITLE"
728 CLASS=
"REFENTRYTITLE"
734 CLASS=
"REFENTRYTITLE"
740 CLASS=
"REFENTRYTITLE"
746 CLASS=
"REFENTRYTITLE"
752 CLASS=
"REFENTRYTITLE"
763 In addition the CIFS (formerly SMB) specification is available
764 as a link from the Web page
<A
765 HREF=
"http://samba.org/cifs/"
768 http://samba.org/cifs/
</A
779 >The original Samba software and related utilities
780 were created by Andrew Tridgell. Samba is now developed
781 by the Samba Team as an Open Source project similar
782 to the way the Linux kernel is developed.
</P
784 >The original Samba man pages were written by Karl Auer.
785 The man page sources were converted to YODL format (another
786 excellent piece of Open Source software, available at
<A
787 HREF=
"ftp://ftp.icce.rug.nl/pub/unix/"
789 > ftp://ftp.icce.rug.nl/pub/unix/
</A
790 >) and updated for the Samba
2.0
791 release by Jeremy Allison. The conversion to DocBook for
792 Samba
2.2 was done by Gerald Carter. The conversion to DocBook XML
4.2 for
793 Samba
3.0 was done by Alexander Bokovoy.
</P