1SAMBA(8) System Administration tools SAMBA(8)
2
3
4
6 samba - Server to provide AD and SMB/CIFS services to clients
7
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
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
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 · prefork
70
71 A process is started for each Samba service, and a fixed
72 number of worker processes are started for those
73 services that support it (currently LDAP, NETLOGON, and
74 KDC). The client connections are then shared amongst the
75 worker processes. Requests for services not supporting
76 prefork are handled by a single process for that
77 service.
78
79 The number of prefork worker processes started is
80 controlled by the smb.conf(5) parameter prefork
81 children, which defaults to 4.
82
83
84 --maximum-runtime=seconds
85 Set maximum runtime of the server process till autotermination in
86 seconds.
87
88 -b|--show-build
89 Print information about how Samba was built.
90
91 --usage
92 Display brief usage message.
93
94 --debug-stderr
95 Send debug output to STDERR.
96
97 --leak-report
98 Enable talloc leak reporting on exit.
99
100 --leak-report-full
101 Enable full talloc leak reporting on exit.
102
103 -d|--debuglevel=level
104 level is an integer from 0 to 10. The default value if this
105 parameter is not specified is 0.
106
107 The higher this value, the more detail will be logged to the log
108 files about the activities of the server. At level 0, only critical
109 errors and serious warnings will be logged. Level 1 is a reasonable
110 level for day-to-day running - it generates a small amount of
111 information about operations carried out.
112
113 Levels above 1 will generate considerable amounts of log data, and
114 should only be used when investigating a problem. Levels above 3
115 are designed for use only by developers and generate HUGE amounts
116 of log data, most of which is extremely cryptic.
117
118 Note that specifying this parameter here will override the log
119 level parameter in the smb.conf file.
120
121 -V|--version
122 Prints the program version number.
123
124 -s|--configfile=<configuration file>
125 The file specified contains the configuration details required by
126 the server. The information in this file includes server-specific
127 information such as what printcap file to use, as well as
128 descriptions of all the services that the server is to provide. See
129 smb.conf for more information. The default configuration file name
130 is determined at compile time.
131
132 -l|--log-basename=logdirectory
133 Base directory name for log/debug files. The extension ".progname"
134 will be appended (e.g. log.smbclient, log.smbd, etc...). The log
135 file is never removed by the client.
136
137 --option=<name>=<value>
138 Set the smb.conf(5) option "<name>" to value "<value>" from the
139 command line. This overrides compiled-in defaults and options read
140 from the configuration file.
141
142 -?|--help
143 Print a summary of command line options.
144
145 --usage
146 Display brief usage message.
147
149 /etc/rc
150 or whatever initialization script your system uses.
151
152 If running the server as a daemon at startup, this file will need
153 to contain an appropriate startup sequence for the server.
154
155 /etc/services
156 If running the server via the meta-daemon inetd, this file must
157 contain a mapping of service name (e.g., netbios-ssn) to service
158 port (e.g., 139) and protocol type (e.g., tcp).
159
160 /usr/local/samba/lib/smb.conf
161 This is the default location of the smb.conf(5) server
162 configuration file. Other common places that systems install this
163 file are /usr/samba/lib/smb.conf and /etc/samba/smb.conf.
164
165 This file describes all the services the server is to make
166 available to clients. See smb.conf(5) for more information.
167
169 Most diagnostics issued by the server are logged in a specified log
170 file. The log file name is specified at compile time, but may be
171 overridden on the command line.
172
173 The number and nature of diagnostics available depends on the debug
174 level used by the server. If you have problems, set the debug level to
175 3 and peruse the log files.
176
177 Most messages are reasonably self-explanatory. Unfortunately, at the
178 time this man page was created, there are too many diagnostics
179 available in the source code to warrant describing each and every
180 diagnostic. At this stage your best bet is still to grep the source
181 code and inspect the conditions that gave rise to the diagnostics you
182 are seeing.
183
185 This man page is part of version 4.10.4 of the Samba suite.
186
188 hosts_access(5) smb.conf(5), smbclient(8), samba-tool(8), smbd(8),
189 nmbd(8), winbindd(1), and the Internet RFC's rfc1001.txt, rfc1002.txt.
190 In addition the CIFS (formerly SMB) specification is available as a
191 link from the Web page https://www.samba.org/cifs/.
192
194 The original Samba software and related utilities were created by
195 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
196 Source project similar to the way the Linux kernel is developed.
197
198
199
200Samba 4.10.4 05/28/2019 SAMBA(8)