1SAMBA(8)                  System Administration tools                 SAMBA(8)
2
3
4

NAME

6       samba - Server to provide AD and SMB/CIFS services to clients
7

SYNOPSIS

9       samba [-D] [-i] [-M <model>] [--maximum-runtime=<seconds>] [-b]
10        [--help] [--usage] [-d <debug level>] [--debug-stderr]
11        [-s <configuration file>] [--option=<smb_conf_param>=<value>]
12        [-l <log directory>] [--leak-report] [--leak-report-full] [-V]
13

DESCRIPTION

15       This program is part of the samba(7) suite.
16
17       samba is the server daemon that provides Active Directory, filesharing
18       and printing services to clients. The server provides filespace and
19       directory services to clients using the SMB (or CIFS) protocol and
20       other related protocols such as DCE/RPC, LDAP and Kerberos.
21
22       Clients supported include MSCLIENT 3.0 for DOS, Windows for Workgroups,
23       Windows 95/98/ME, Windows NT, Windows 2000/XP/2003, OS/2, DAVE for
24       Macintosh, and cifsfs for Linux.
25
26       An extensive description of the services that the server can provide is
27       given in the man page for the configuration file controlling the
28       attributes of those services (see smb.conf(5). This man page will not
29       describe the services, but will concentrate on the administrative
30       aspects of running the server.
31
32       Please note that there are significant security implications to running
33       this server, and the smb.conf(5) manual page should be regarded as
34       mandatory reading before proceeding with installation.
35

OPTIONS

37       -D|--daemon
38           If specified, this parameter causes the server to operate as a
39           daemon. That is, it detaches itself and runs in the background,
40           fielding requests on the appropriate ports. Operating the server as
41           a daemon is the recommended way of running samba for servers that
42           provide more than casual use file and print services. This switch
43           is assumed if samba is executed on the command line of a shell.
44
45       -i|--interactive
46           If this parameter is specified it causes the server to run
47           "interactively", not as a daemon, even if the server is executed on
48           the command line of a shell. Setting this parameter negates the
49           implicit daemon mode when run from the command line.  samba also
50           logs to standard output, as if the -S parameter had been given.
51
52       -M|--model
53           This parameter can be used to specify the "process model" samba
54           should use. This determines how concurrent clients are handled.
55           Available process models include:
56
57                  ·   single
58
59                      All Samba services run in a single process. This is not
60                      recommended for production configurations.
61
62                  ·   standard
63
64                      A process is created for each Samba service, and for
65                      those services that support it (currently only LDAP and
66                      NETLOGON) a new processes is started for each new client
67                      connection.
68
69                      Historically, this was the 'standard' way Samba behaved
70                      up until v4.10. Note that this model can be resource
71                      intensive if you have a large number of client
72                      connections.
73
74                  ·   prefork
75
76                      The default. A process is started for each Samba
77                      service, and a fixed number of worker processes are
78                      started for those services that support it (currently
79                      LDAP, NETLOGON, and KDC). The client connections are
80                      then shared amongst the worker processes. Requests for
81                      services not supporting prefork are handled by a single
82                      process for that service.
83
84                      The number of prefork worker processes started is
85                      controlled by the smb.conf(5) parameter prefork
86                      children, which defaults to 4.
87
88
89       --maximum-runtime=seconds
90           Set maximum runtime of the server process till autotermination in
91           seconds.
92
93       -b|--show-build
94           Print information about how Samba was built.
95
96       --usage
97           Display brief usage message.
98
99       --debug-stderr
100           Send debug output to STDERR.
101
102       --leak-report
103           Enable talloc leak reporting on exit.
104
105       --leak-report-full
106           Enable full talloc leak reporting on exit.
107
108       -d|--debuglevel=level
109           level is an integer from 0 to 10. The default value if this
110           parameter is not specified is 0.
111
112           The higher this value, the more detail will be logged to the log
113           files about the activities of the server. At level 0, only critical
114           errors and serious warnings will be logged. Level 1 is a reasonable
115           level for day-to-day running - it generates a small amount of
116           information about operations carried out.
117
118           Levels above 1 will generate considerable amounts of log data, and
119           should only be used when investigating a problem. Levels above 3
120           are designed for use only by developers and generate HUGE amounts
121           of log data, most of which is extremely cryptic.
122
123           Note that specifying this parameter here will override the log
124           level parameter in the smb.conf file.
125
126       -V|--version
127           Prints the program version number.
128
129       -s|--configfile=<configuration file>
130           The file specified contains the configuration details required by
131           the server. The information in this file includes server-specific
132           information such as what printcap file to use, as well as
133           descriptions of all the services that the server is to provide. See
134           smb.conf for more information. The default configuration file name
135           is determined at compile time.
136
137       -l|--log-basename=logdirectory
138           Base directory name for log/debug files. The extension ".progname"
139           will be appended (e.g. log.smbclient, log.smbd, etc...). The log
140           file is never removed by the client.
141
142       --option=<name>=<value>
143           Set the smb.conf(5) option "<name>" to value "<value>" from the
144           command line. This overrides compiled-in defaults and options read
145           from the configuration file.
146
147       -?|--help
148           Print a summary of command line options.
149
150       --usage
151           Display brief usage message.
152

FILES

154       /etc/rc
155           or whatever initialization script your system uses.
156
157           If running the server as a daemon at startup, this file will need
158           to contain an appropriate startup sequence for the server.
159
160       /etc/services
161           If running the server via the meta-daemon inetd, this file must
162           contain a mapping of service name (e.g., netbios-ssn) to service
163           port (e.g., 139) and protocol type (e.g., tcp).
164
165       /usr/local/samba/lib/smb.conf
166           This is the default location of the smb.conf(5) server
167           configuration file. Other common places that systems install this
168           file are /usr/samba/lib/smb.conf and /etc/samba/smb.conf.
169
170           This file describes all the services the server is to make
171           available to clients. See smb.conf(5) for more information.
172

DIAGNOSTICS

174       Most diagnostics issued by the server are logged in a specified log
175       file. The log file name is specified at compile time, but may be
176       overridden on the command line.
177
178       The number and nature of diagnostics available depends on the debug
179       level used by the server. If you have problems, set the debug level to
180       3 and peruse the log files.
181
182       Most messages are reasonably self-explanatory. Unfortunately, at the
183       time this man page was created, there are too many diagnostics
184       available in the source code to warrant describing each and every
185       diagnostic. At this stage your best bet is still to grep the source
186       code and inspect the conditions that gave rise to the diagnostics you
187       are seeing.
188

VERSION

190       This man page is part of version 4.11.4 of the Samba suite.
191

SEE ALSO

193       hosts_access(5) smb.conf(5), smbclient(8), samba-tool(8), smbd(8),
194       nmbd(8), winbindd(1), and the Internet RFC's rfc1001.txt, rfc1002.txt.
195       In addition the CIFS (formerly SMB) specification is available as a
196       link from the Web page https://www.samba.org/cifs/.
197

AUTHOR

199       The original Samba software and related utilities were created by
200       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
201       Source project similar to the way the Linux kernel is developed.
202
203
204
205Samba 4.11.4                      12/16/2019                          SAMBA(8)
Impressum