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