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|--daemon] [-F|--foreground] [-i|--interactive]
10 [-M|--model=MODEL] [--maximum-runtime=seconds] [-b|--show-build]
11 [--no-process-group] [-d|--debuglevel=DEBUGLEVEL] [--debug-stdout]
12 [--configfile=CONFIGFILE] [--option=name=value]
13 [-l|--log-basename=LOGFILEBASE] [--leak-report] [--leak-report-full]
14 [-V|--version]
15
17 This program is part of the samba(7) suite.
18
19 samba is the server daemon that provides Active Directory, filesharing
20 and printing services to clients. The server provides filespace and
21 directory services to clients using the SMB (or CIFS) protocol and
22 other related protocols such as DCE/RPC, LDAP and Kerberos.
23
24 Clients supported include MSCLIENT 3.0 for DOS, Windows for Workgroups,
25 Windows 95/98/ME, Windows NT, Windows 2000/XP/2003, OS/2, DAVE for
26 Macintosh, and cifsfs for Linux.
27
28 An extensive description of the services that the server can provide is
29 given in the man page for the configuration file controlling the
30 attributes of those services (see smb.conf(5). This man page will not
31 describe the services, but will concentrate on the administrative
32 aspects of running the server.
33
34 Please note that there are significant security implications to running
35 this server, and the smb.conf(5) manual page should be regarded as
36 mandatory reading before proceeding with installation.
37
39 -D|--daemon
40 If specified, this parameter causes the server to operate as a
41 daemon. That is, it detaches itself and runs in the background,
42 fielding requests on the appropriate ports. Operating the server as
43 a daemon is the recommended way of running samba for servers that
44 provide more than casual use file and print services. This switch
45 is assumed if samba is executed on the command line of a shell.
46
47 -F|--foreground
48 If specified, this parameter causes the samba process to not
49 daemonize, i.e. double-fork and disassociate with the terminal.
50
51 -i|--interactive
52 If this parameter is specified it causes the server to run
53 "interactively", not as a daemon, even if the server is executed on
54 the command line of a shell. Setting this parameter negates the
55 implicit daemon mode when run from the command line. samba also
56 logs to standard output, as if the -S parameter had been given.
57
58 -M|--model
59 This parameter can be used to specify the "process model" samba
60 should use. This determines how concurrent clients are handled.
61 Available process models include:
62
63 • single
64
65 All Samba services run in a single process. This is not
66 recommended for production configurations.
67
68 • standard
69
70 A process is created for each Samba service, and for
71 those services that support it (currently only LDAP and
72 NETLOGON) a new processes is started for each new client
73 connection.
74
75 Historically, this was the 'standard' way Samba behaved
76 up until v4.10. Note that this model can be resource
77 intensive if you have a large number of client
78 connections.
79
80 • prefork
81
82 The default. A process is started for each Samba
83 service, and a fixed number of worker processes are
84 started for those services that support it (currently
85 LDAP, NETLOGON, and KDC). The client connections are
86 then shared amongst the worker processes. Requests for
87 services not supporting prefork are handled by a single
88 process for that service.
89
90 The number of prefork worker processes started is
91 controlled by the smb.conf(5) parameter prefork
92 children, which defaults to 4.
93
94
95 --maximum-runtime=seconds
96 Set maximum runtime of the server process till autotermination in
97 seconds.
98
99 -b|--show-build
100 Print information about how Samba was built.
101
102 -d|--debuglevel=DEBUGLEVEL, --debug-stdout
103 level is an integer from 0 to 10. The default value if this
104 parameter is not specified is 0.
105
106 The higher this value, the more detail will be logged to the log
107 files about the activities of the server. At level 0, only critical
108 errors and serious warnings will be logged. Level 1 is a reasonable
109 level for day-to-day running - it generates a small amount of
110 information about operations carried out.
111
112 Levels above 1 will generate considerable amounts of log data, and
113 should only be used when investigating a problem. Levels above 3
114 are designed for use only by developers and generate HUGE amounts
115 of log data, most of which is extremely cryptic.
116
117 Note that specifying this parameter here will override the log
118 level parameter in the smb.conf file. This will redirect debug
119 output to STDOUT. By default server daemons are logging to a log
120 file.
121
122 --configfile=CONFIGFILE
123 The file specified contains the configuration details required by
124 the server. The information in this file includes server-specific
125 information such as what printcap file to use, as well as
126 descriptions of all the services that the server is to provide. See
127 smb.conf for more information. The default configuration file name
128 is determined at compile time.
129
130 --option=<name>=<value>
131 Set the smb.conf(5) option "<name>" to value "<value>" from the
132 command line. This overrides compiled-in defaults and options read
133 from the configuration file. If a name or a value includes a space,
134 wrap whole --option=name=value into quotes.
135
136 -l|--log-basename=logdirectory
137 Base directory name for log/debug files. The extension ".progname"
138 will be appended (e.g. log.smbclient, log.smbd, etc...). The log
139 file is never removed by the client.
140
141 --leak-report
142 Enable talloc leak reporting on exit.
143
144 --leak-report-full
145 Enable full talloc leak reporting on exit.
146
147 -V|--version
148 Prints the program version number.
149
150 -?|--help
151 Print a summary of command line options.
152
153 --usage
154 Display brief usage message.
155
157 /etc/rc
158 or whatever initialization script your system uses.
159
160 If running the server as a daemon at startup, this file will need
161 to contain an appropriate startup sequence for the server.
162
163 /etc/services
164 If running the server via the meta-daemon inetd, this file must
165 contain a mapping of service name (e.g., netbios-ssn) to service
166 port (e.g., 139) and protocol type (e.g., tcp).
167
168 /usr/local/samba/lib/smb.conf
169 This is the default location of the smb.conf(5) server
170 configuration file. Other common places that systems install this
171 file are /usr/samba/lib/smb.conf and /etc/samba/smb.conf.
172
173 This file describes all the services the server is to make
174 available to clients. See smb.conf(5) for more information.
175
177 Most diagnostics issued by the server are logged in a specified log
178 file. The log file name is specified at compile time, but may be
179 overridden on the command line.
180
181 The number and nature of diagnostics available depends on the debug
182 level used by the server. If you have problems, set the debug level to
183 3 and peruse the log files.
184
185 Most messages are reasonably self-explanatory. Unfortunately, at the
186 time this man page was created, there are too many diagnostics
187 available in the source code to warrant describing each and every
188 diagnostic. At this stage your best bet is still to grep the source
189 code and inspect the conditions that gave rise to the diagnostics you
190 are seeing.
191
193 This man page is part of version 4.15.2 of the Samba suite.
194
196 hosts_access(5) smb.conf(5), smbclient(8), samba-tool(8), smbd(8),
197 nmbd(8), winbindd(1), and the Internet RFC's rfc1001.txt, rfc1002.txt.
198 In addition the CIFS (formerly SMB) specification is available as a
199 link from the Web page https://www.samba.org/cifs/.
200
202 The original Samba software and related utilities were created by
203 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
204 Source project similar to the way the Linux kernel is developed.
205
206
207
208Samba 4.15.2 11/13/2021 SAMBA(8)