1SMB.CONF(5) File Formats and Conventions SMB.CONF(5)
2
3
4
6 smb.conf - The configuration file for the Samba suite
7
9 The smb.conf file is a configuration file for the Samba suite.
10 smb.conf contains runtime configuration information for the Samba
11 programs. The complete description of the file format and possible
12 parameters held within are here for reference purposes.
13
15 The file consists of sections and parameters. A section begins with the
16 name of the section in square brackets and continues until the next
17 section begins. Sections contain parameters of the form:
18
19 name = value
20
21 The file is line-based - that is, each newline-terminated line
22 represents either a comment, a section name or a parameter.
23
24 Section and parameter names are not case sensitive.
25
26 Only the first equals sign in a parameter is significant. Whitespace
27 before or after the first equals sign is discarded. Leading, trailing
28 and internal whitespace in section and parameter names is irrelevant.
29 Leading and trailing whitespace in a parameter value is discarded.
30 Internal whitespace within a parameter value is retained verbatim.
31
32 Any line beginning with a semicolon (“;”) or a hash (“#”) character is
33 ignored, as are lines containing only whitespace.
34
35 Any line ending in a “\” is continued on the next line in the customary
36 UNIX fashion.
37
38 The values following the equals sign in parameters are all either a
39 string (no quotes needed) or a boolean, which may be given as yes/no,
40 1/0 or true/false. Case is not significant in boolean values, but is
41 preserved in string values. Some items such as create masks are
42 numeric.
43
45 Each section in the configuration file (except for the [global]
46 section) describes a shared resource (known as a “share”). The section
47 name is the name of the shared resource and the parameters within the
48 section define the shares attributes.
49
50 There are three special sections, [global], [homes] and [printers],
51 which are described under special sections. The following notes apply
52 to ordinary section descriptions.
53
54 A share consists of a directory to which access is being given plus a
55 description of the access rights which are granted to the user of the
56 service. Some housekeeping options are also specifiable.
57
58 Sections are either file share services (used by the client as an
59 extension of their native file systems) or printable services (used by
60 the client to access print services on the host running the server).
61
62 Sections may be designated guest services, in which case no password is
63 required to access them. A specified UNIX guest account is used to
64 define access privileges in this case.
65
66 Sections other than guest services will require a password to access
67 them. The client provides the username. As older clients only provide
68 passwords and not usernames, you may specify a list of usernames to
69 check against the password using the user = option in the share
70 definition. For modern clients such as Windows 95/98/ME/NT/2000, this
71 should not be necessary.
72
73 The access rights granted by the server are masked by the access rights
74 granted to the specified or guest UNIX user by the host system. The
75 server does not grant more access than the host system grants.
76
77 The following sample section defines a file space share. The user has
78 write access to the path /home/bar. The share is accessed via the share
79 name foo:
80
81 [foo]
82 path = /home/bar
83 read only = no
84
85 The following sample section defines a printable share. The share is
86 read-only, but printable. That is, the only write access permitted is
87 via calls to open, write to and close a spool file. The guest ok
88 parameter means access will be permitted as the default guest user
89 (specified elsewhere):
90
91 [aprinter]
92 path = /usr/spool/public
93 read only = yes
94 printable = yes
95 guest ok = yes
96
97
99 The [global] section
100 Parameters in this section apply to the server as a whole, or are
101 defaults for sections that do not specifically define certain items.
102 See the notes under PARAMETERS for more information.
103
104 The [homes] section
105 If a section called [homes] is included in the configuration file,
106 services connecting clients to their home directories can be created on
107 the fly by the server.
108
109 When the connection request is made, the existing sections are scanned.
110 If a match is found, it is used. If no match is found, the requested
111 section name is treated as a username and looked up in the local
112 password file. If the name exists and the correct password has been
113 given, a share is created by cloning the [homes] section.
114
115 Some modifications are then made to the newly created share:
116
117 · The share name is changed from homes to the located
118 username.
119
120 · If no path was given, the path is set to the user's home
121 directory.
122
123
124 If you decide to use a path = line in your [homes] section, it may be
125 useful to use the %S macro. For example:
126
127 path = /data/pchome/%S
128
129 is useful if you have different home directories for your PCs than for
130 UNIX access.
131
132 This is a fast and simple way to give a large number of clients access
133 to their home directories with a minimum of fuss.
134
135 A similar process occurs if the requested section name is “homes”,
136 except that the share name is not changed to that of the requesting
137 user. This method of using the [homes] section works well if different
138 users share a client PC.
139
140 The [homes] section can specify all the parameters a normal service
141 section can specify, though some make more sense than others. The
142 following is a typical and suitable [homes] section:
143
144 [homes]
145 read only = no
146
147 An important point is that if guest access is specified in the [homes]
148 section, all home directories will be visible to all clients without a
149 password. In the very unlikely event that this is actually desirable,
150 it is wise to also specify read only access.
151
152 The browseable flag for auto home directories will be inherited from
153 the global browseable flag, not the [homes] browseable flag. This is
154 useful as it means setting browseable = no in the [homes] section will
155 hide the [homes] share but make any auto home directories visible.
156
157 The [printers] section
158 This section works like [homes], but for printers.
159
160 If a [printers] section occurs in the configuration file, users are
161 able to connect to any printer specified in the local host's printcap
162 file.
163
164 When a connection request is made, the existing sections are scanned.
165 If a match is found, it is used. If no match is found, but a [homes]
166 section exists, it is used as described above. Otherwise, the requested
167 section name is treated as a printer name and the appropriate printcap
168 file is scanned to see if the requested section name is a valid printer
169 share name. If a match is found, a new printer share is created by
170 cloning the [printers] section.
171
172 A few modifications are then made to the newly created share:
173
174 · The share name is set to the located printer name
175
176 · If no printer name was given, the printer name is set to the
177 located printer name
178
179 · If the share does not permit guest access and no username
180 was given, the username is set to the located printer name.
181
182
183 The [printers] service MUST be printable - if you specify otherwise,
184 the server will refuse to load the configuration file.
185
186 Typically the path specified is that of a world-writeable spool
187 directory with the sticky bit set on it. A typical [printers] entry
188 looks like this:
189
190 [printers]
191 path = /usr/spool/public
192 guest ok = yes
193 printable = yes
194
195 All aliases given for a printer in the printcap file are legitimate
196 printer names as far as the server is concerned. If your printing
197 subsystem doesn't work like that, you will have to set up a
198 pseudo-printcap. This is a file consisting of one or more lines like
199 this:
200
201 alias|alias|alias|alias...
202
203 Each alias should be an acceptable printer name for your printing
204 subsystem. In the [global] section, specify the new file as your
205 printcap. The server will only recognize names found in your
206 pseudo-printcap, which of course can contain whatever aliases you like.
207 The same technique could be used simply to limit access to a subset of
208 your local printers.
209
210 An alias, by the way, is defined as any component of the first entry of
211 a printcap record. Records are separated by newlines, components (if
212 there are more than one) are separated by vertical bar symbols (|).
213
214 Note
215 On SYSV systems which use lpstat to determine what printers are
216 defined on the system you may be able to use printcap name = lpstat
217 to automatically obtain a list of printers. See the printcap name
218 option for more details.
219
221 Starting with Samba version 3.0.23 the capability for non-root users to
222 add, modify, and delete their own share definitions has been added.
223 This capability is called usershares and is controlled by a set of
224 parameters in the [global] section of the smb.conf. The relevant
225 parameters are :
226
227 usershare allow guests
228 Controls if usershares can permit guest access.
229
230 usershare max shares
231 Maximum number of user defined shares allowed.
232
233 usershare owner only
234 If set only directories owned by the sharing user can be shared.
235
236 usershare path
237 Points to the directory containing the user defined share
238 definitions. The filesystem permissions on this directory control
239 who can create user defined shares.
240
241 usershare prefix allow list
242 Comma-separated list of absolute pathnames restricting what
243 directories can be shared. Only directories below the pathnames in
244 this list are permitted.
245
246 usershare prefix deny list
247 Comma-separated list of absolute pathnames restricting what
248 directories can be shared. Directories below the pathnames in this
249 list are prohibited.
250
251 usershare template share
252 Names a pre-existing share used as a template for creating new
253 usershares. All other share parameters not specified in the user
254 defined share definition are copied from this named share.
255
256 To allow members of the UNIX group foo to create user defined shares,
257 create the directory to contain the share definitions as follows:
258
259 Become root:
260
261 mkdir /usr/local/samba/lib/usershares
262 chgrp foo /usr/local/samba/lib/usershares
263 chmod 1770 /usr/local/samba/lib/usershares
264
265 Then add the parameters
266
267 usershare path = /usr/local/samba/lib/usershares
268 usershare max shares = 10 # (or the desired number of shares)
269
270 to the global section of your smb.conf. Members of the group foo may
271 then manipulate the user defined shares using the following commands.
272
273 net usershare add sharename path [comment] [acl] [guest_ok=[y|n]]
274 To create or modify (overwrite) a user defined share.
275
276 net usershare delete sharename
277 To delete a user defined share.
278
279 net usershare list wildcard-sharename
280 To list user defined shares.
281
282 net usershare info wildcard-sharename
283 To print information about user defined shares.
284
286 Parameters define the specific attributes of sections.
287
288 Some parameters are specific to the [global] section (e.g., security).
289 Some parameters are usable in all sections (e.g., create mask). All
290 others are permissible only in normal sections. For the purposes of the
291 following descriptions the [homes] and [printers] sections will be
292 considered normal. The letter G in parentheses indicates that a
293 parameter is specific to the [global] section. The letter S indicates
294 that a parameter can be specified in a service specific section. All S
295 parameters can also be specified in the [global] section - in which
296 case they will define the default behavior for all services.
297
298 Parameters are arranged here in alphabetical order - this may not
299 create best bedfellows, but at least you can find them! Where there are
300 synonyms, the preferred synonym is described, others refer to the
301 preferred synonym.
302
304 Many of the strings that are settable in the config file can take
305 substitutions. For example the option “path = /tmp/%u” is interpreted
306 as “path = /tmp/john” if the user connected with the username john.
307
308 These substitutions are mostly noted in the descriptions below, but
309 there are some general substitutions which apply whenever they might be
310 relevant. These are:
311
312 %U
313 session username (the username that the client wanted, not
314 necessarily the same as the one they got).
315
316 %G
317 primary group name of %U.
318
319 %h
320 the Internet hostname that Samba is running on.
321
322 %m
323 the NetBIOS name of the client machine (very useful).
324
325 This parameter is not available when Samba listens on port 445, as
326 clients no longer send this information. If you use this macro in
327 an include statement on a domain that has a Samba domain controller
328 be sure to set in the [global] section smb ports = 139. This will
329 cause Samba to not listen on port 445 and will permit include
330 functionality to function as it did with Samba 2.x.
331
332 %L
333 the NetBIOS name of the server. This allows you to change your
334 config based on what the client calls you. Your server can have a
335 “dual personality”.
336
337 %M
338 the Internet name of the client machine.
339
340 %R
341 the selected protocol level after protocol negotiation. It can be
342 one of CORE, COREPLUS, LANMAN1, LANMAN2, NT1, SMB2_02, SMB2_10,
343 SMB2_22, SMB2_24, SMB3_00, SMB3_02, SMB3_10, SMB3_11 or SMB2_FF.
344
345 %d
346 the process id of the current server process.
347
348 %a
349 The architecture of the remote machine. It currently recognizes
350 Samba (Samba), the Linux CIFS file system (CIFSFS), OS/2, (OS2),
351 Mac OS X (OSX), Windows for Workgroups (WfWg), Windows 9x/ME
352 (Win95), Windows NT (WinNT), Windows 2000 (Win2K), Windows XP
353 (WinXP), Windows XP 64-bit(WinXP64), Windows 2003 including 2003R2
354 (Win2K3), and Windows Vista (Vista). Anything else will be known as
355 UNKNOWN.
356
357 %I
358 the IP address of the client machine.
359
360 Before 4.0.0 it could contain IPv4 mapped IPv6 addresses, now it
361 only contains IPv4 or IPv6 addresses.
362
363 %J
364 the IP address of the client machine, colons/dots replaced by
365 underscores.
366
367 %i
368 the local IP address to which a client connected.
369
370 Before 4.0.0 it could contain IPv4 mapped IPv6 addresses, now it
371 only contains IPv4 or IPv6 addresses.
372
373 %j
374 the local IP address to which a client connected, colons/dots
375 replaced by underscores.
376
377 %T
378 the current date and time.
379
380 %t
381 the current date and time in a minimal format without colons
382 (YYYYYmmdd_HHMMSS).
383
384 %D
385 name of the domain or workgroup of the current user.
386
387 %w
388 the winbind separator.
389
390 %$(envvar)
391 the value of the environment variable envar.
392
393 The following substitutes apply only to some configuration options
394 (only those that are used when a connection has been established):
395
396 %S
397 the name of the current service, if any.
398
399 %P
400 the root directory of the current service, if any.
401
402 %u
403 username of the current service, if any.
404
405 %g
406 primary group name of %u.
407
408 %H
409 the home directory of the user given by %u.
410
411 %N
412 the name of your NIS home directory server. This is obtained from
413 your NIS auto.map entry. If you have not compiled Samba with the
414 --with-automount option, this value will be the same as %L.
415
416 %p
417 the path of the service's home directory, obtained from your NIS
418 auto.map entry. The NIS auto.map entry is split up as %N:%p.
419
420 There are some quite creative things that can be done with these
421 substitutions and other smb.conf options.
422
424 Samba supports name mangling so that DOS and Windows clients can use
425 files that don't conform to the 8.3 format. It can also be set to
426 adjust the case of 8.3 format filenames.
427
428 There are several options that control the way mangling is performed,
429 and they are grouped here rather than listed separately. For the
430 defaults look at the output of the testparm program.
431
432 These options can be set separately for each service.
433
434 The options are:
435
436 case sensitive = yes/no/auto
437 controls whether filenames are case sensitive. If they aren't,
438 Samba must do a filename search and match on passed names. The
439 default setting of auto allows clients that support case sensitive
440 filenames (Linux CIFSVFS and smbclient 3.0.5 and above currently)
441 to tell the Samba server on a per-packet basis that they wish to
442 access the file system in a case-sensitive manner (to support UNIX
443 case sensitive semantics). No Windows or DOS system supports
444 case-sensitive filename so setting this option to auto is that same
445 as setting it to no for them. Default auto.
446
447 default case = upper/lower
448 controls what the default case is for new filenames (ie. files that
449 don't currently exist in the filesystem). Default lower. IMPORTANT
450 NOTE: As part of the optimizations for directories containing large
451 numbers of files, the following special case applies. If the
452 options case sensitive = yes, preserve case = No, and short
453 preserve case = No are set, then the case of all incoming client
454 filenames, not just new filenames, will be modified. See additional
455 notes below.
456
457 preserve case = yes/no
458 controls whether new files (ie. files that don't currently exist in
459 the filesystem) are created with the case that the client passes,
460 or if they are forced to be the default case. Default yes.
461
462 short preserve case = yes/no
463 controls if new files (ie. files that don't currently exist in the
464 filesystem) which conform to 8.3 syntax, that is all in upper case
465 and of suitable length, are created upper case, or if they are
466 forced to be the default case. This option can be used with
467 preserve case = yes to permit long filenames to retain their case,
468 while short names are lowercased. Default yes.
469
470 By default, Samba 3.0 has the same semantics as a Windows NT server, in
471 that it is case insensitive but case preserving. As a special case for
472 directories with large numbers of files, if the case options are set as
473 follows, "case sensitive = yes", "case preserve = no", "short preserve
474 case = no" then the "default case" option will be applied and will
475 modify all filenames sent from the client when accessing this share.
476
478 Starting with Samba version 3.2.0, the capability to store Samba
479 configuration in the registry is available. The configuration is stored
480 in the registry key HKLM\Software\Samba\smbconf. There are two levels
481 of registry configuration:
482
483 1. Share definitions stored in registry are used. This is
484 triggered by setting the global parameter registry shares to
485 “yes” in smb.conf.
486
487 The registry shares are loaded not at startup but on demand
488 at runtime by smbd. Shares defined in smb.conf take priority
489 over shares of the same name defined in registry.
490
491 2. Global smb.conf options stored in registry are used. This
492 can be activated in two different ways:
493
494 Firstly, a registry only configuration is triggered by
495 setting config backend = registry in the [global] section of
496 smb.conf. This resets everything that has been read from
497 config files to this point and reads the content of the
498 global configuration section from the registry. This is the
499 recommended method of using registry based configuration.
500
501 Secondly, a mixed configuration can be activated by a
502 special new meaning of the parameter include = registry in
503 the [global] section of smb.conf. This reads the global
504 options from registry with the same priorities as for an
505 include of a text file. This may be especially useful in
506 cases where an initial configuration is needed to access the
507 registry.
508
509 Activation of global registry options automatically
510 activates registry shares. So in the registry only case,
511 shares are loaded on demand only.
512
513
514 Note: To make registry-based configurations foolproof at least to a
515 certain extent, the use of lock directory and config backend inside the
516 registry configuration has been disabled: Especially by changing the
517 lock directory inside the registry configuration, one would create a
518 broken setup where the daemons do not see the configuration they loaded
519 once it is active.
520
521 The registry configuration can be accessed with tools like regedit or
522 net (rpc) registry in the key HKLM\Software\Samba\smbconf. More
523 conveniently, the conf subcommand of the net(8) utility offers a
524 dedicated interface to read and write the registry based configuration
525 locally, i.e. directly accessing the database file, circumventing the
526 server.
527
529 In the SMB protocol, users, groups, and machines are represented by
530 their security identifiers (SIDs). On POSIX system Samba processes need
531 to run under corresponding POSIX user identities and with supplemental
532 POSIX groups to allow access to the files owned by those users and
533 groups. The process of mapping SIDs to POSIX users and groups is called
534 IDENTITY MAPPING or, in short, ID MAPPING.
535
536 Samba supports multiple ways to map SIDs to POSIX users and groups. The
537 configuration is driven by the idmap config DOMAIN : OPTION option
538 which allows one to specify identity mapping (idmap) options for each
539 domain separately.
540
541 Identity mapping modules implement different strategies for mapping of
542 SIDs to POSIX user and group identities. They are applicable to
543 different use cases and scenarios. It is advised to read the
544 documentation of the individual identity mapping modules before
545 choosing a specific scenario to use. Each identity management module is
546 documented in a separate manual page. The standard idmap backends are
547 tdb (idmap_tdb(8)), tdb2 (idmap_tdb2(8)), ldap (idmap_ldap(8)), rid
548 (idmap_rid(8)), hash (idmap_hash(8)), autorid (idmap_autorid(8)), ad
549 (idmap_ad(8)), nss (idmap_nss(8)), and rfc2307 (idmap_rfc2307(8)).
550
551 Overall, ID mapping configuration should be decided carefully. Changes
552 to the already deployed ID mapping configuration may create the risk of
553 losing access to the data or disclosing the data to the wrong parties.
554
555 This example shows how to configure two domains with idmap_rid(8), the
556 principal domain and a trusted domain, leaving the default id mapping
557 scheme at tdb.
558
559 [global]
560 security = domain
561 workgroup = MAIN
562
563 idmap config * : backend = tdb
564 idmap config * : range = 1000000-1999999
565
566 idmap config MAIN : backend = rid
567 idmap config MAIN : range = 5000000-5999999
568
569 idmap config TRUSTED : backend = rid
570 idmap config TRUSTED : range = 6000000-6999999
571
572
574 abort shutdown script (G)
575
576 This a full path name to a script called by smbd(8) that should
577 stop a shutdown procedure issued by the shutdown script.
578
579 If the connected user possesses the SeRemoteShutdownPrivilege,
580 right, this command will be run as root.
581
582 Default: abort shutdown script = ""
583
584 Example: abort shutdown script = /sbin/shutdown -c
585
586 access based share enum (S)
587
588 If this parameter is yes for a service, then the share hosted by
589 the service will only be visible to users who have read or write
590 access to the share during share enumeration (for example net view
591 \\sambaserver). The share ACLs which allow or deny the access to
592 the share can be modified using for example the sharesec command or
593 using the appropriate Windows tools. This has parallels to access
594 based enumeration, the main difference being that only share
595 permissions are evaluated, and security descriptors on files
596 contained on the share are not used in computing enumeration access
597 rights.
598
599 Default: access based share enum = no
600
601 acl allow execute always (S)
602
603 This boolean parameter controls the behaviour of smbd(8) when
604 receiving a protocol request of "open for execution" from a Windows
605 client. With Samba 3.6 and older, the execution right in the ACL
606 was not checked, so a client could execute a file even if it did
607 not have execute rights on the file. In Samba 4.0, this has been
608 fixed, so that by default, i.e. when this parameter is set to
609 "False", "open for execution" is now denied when execution
610 permissions are not present.
611
612 If this parameter is set to "True", Samba does not check execute
613 permissions on "open for execution", thus re-establishing the
614 behaviour of Samba 3.6. This can be useful to smoothen upgrades
615 from older Samba versions to 4.0 and newer. This setting is not
616 meant to be used as a permanent setting, but as a temporary relief:
617 It is recommended to fix the permissions in the ACLs and reset this
618 parameter to the default after a certain transition period.
619
620 Default: acl allow execute always = no
621
622 acl check permissions (S)
623
624 Please note this parameter is now deprecated in Samba 3.6.2 and
625 will be removed in a future version of Samba.
626
627 This boolean parameter controls what smbd(8) does on receiving a
628 protocol request of "open for delete" from a Windows client. If a
629 Windows client doesn't have permissions to delete a file then they
630 expect this to be denied at open time. POSIX systems normally only
631 detect restrictions on delete by actually attempting to delete the
632 file or directory. As Windows clients can (and do) "back out" a
633 delete request by unsetting the "delete on close" bit Samba cannot
634 delete the file immediately on "open for delete" request as we
635 cannot restore such a deleted file. With this parameter set to true
636 (the default) then smbd checks the file system permissions directly
637 on "open for delete" and denies the request without actually
638 deleting the file if the file system permissions would seem to deny
639 it. This is not perfect, as it's possible a user could have deleted
640 a file without Samba being able to check the permissions correctly,
641 but it is close enough to Windows semantics for mostly correct
642 behaviour. Samba will correctly check POSIX ACL semantics in this
643 case.
644
645 If this parameter is set to "false" Samba doesn't check permissions
646 on "open for delete" and allows the open. If the user doesn't have
647 permission to delete the file this will only be discovered at close
648 time, which is too late for the Windows user tools to display an
649 error message to the user. The symptom of this is files that appear
650 to have been deleted "magically" re-appearing on a Windows explorer
651 refresh. This is an extremely advanced protocol option which should
652 not need to be changed. This parameter was introduced in its final
653 form in 3.0.21, an earlier version with slightly different
654 semantics was introduced in 3.0.20. That older version is not
655 documented here.
656
657 Default: acl check permissions = yes
658
659 acl group control (S)
660
661 In a POSIX filesystem, only the owner of a file or directory and
662 the superuser can modify the permissions and ACLs on a file. If
663 this parameter is set, then Samba overrides this restriction, and
664 also allows the primary group owner of a file or directory to
665 modify the permissions and ACLs on that file.
666
667 On a Windows server, groups may be the owner of a file or directory
668 - thus allowing anyone in that group to modify the permissions on
669 it. This allows the delegation of security controls on a point in
670 the filesystem to the group owner of a directory and anything below
671 it also owned by that group. This means there are multiple people
672 with permissions to modify ACLs on a file or directory, easing
673 manageability.
674
675 This parameter allows Samba to also permit delegation of the
676 control over a point in the exported directory hierarchy in much
677 the same way as Windows. This allows all members of a UNIX group to
678 control the permissions on a file or directory they have group
679 ownership on.
680
681 This parameter is best used with the inherit owner option and also
682 on a share containing directories with the UNIX setgid bit set on
683 them, which causes new files and directories created within it to
684 inherit the group ownership from the containing directory.
685
686 This parameter was deprecated in Samba 3.0.23, but re-activated in
687 Samba 3.0.31 and above, as it now only controls permission changes
688 if the user is in the owning primary group. It is now no longer
689 equivalent to the dos filemode option.
690
691 Default: acl group control = no
692
693 acl map full control (S)
694
695 This boolean parameter controls whether smbd(8) maps a POSIX ACE
696 entry of "rwx" (read/write/execute), the maximum allowed POSIX
697 permission set, into a Windows ACL of "FULL CONTROL". If this
698 parameter is set to true any POSIX ACE entry of "rwx" will be
699 returned in a Windows ACL as "FULL CONTROL", is this parameter is
700 set to false any POSIX ACE entry of "rwx" will be returned as the
701 specific Windows ACL bits representing read, write and execute.
702
703 Default: acl map full control = yes
704
705 add group script (G)
706
707 This is the full pathname to a script that will be run AS ROOT by
708 smbd(8) when a new group is requested. It will expand any %g to the
709 group name passed. This script is only useful for installations
710 using the Windows NT domain administration tools. The script is
711 free to create a group with an arbitrary name to circumvent unix
712 group name restrictions. In that case the script must print the
713 numeric gid of the created group on stdout.
714
715 Default: add group script =
716
717 Example: add group script = /usr/sbin/groupadd %g
718
719 additional dns hostnames (G)
720
721 A list of additional DNS names by which this host can be identified
722
723 Default: additional dns hostnames = # empty string (no additional
724 dns names)
725
726 Example: additional dns hostnames = host2.example.com
727 host3.other.com
728
729 add machine script (G)
730
731 This is the full pathname to a script that will be run by smbd(8)
732 when a machine is added to Samba's domain and a Unix account
733 matching the machine's name appended with a "$" does not already
734 exist.
735
736 This option is very similar to the add user script, and likewise
737 uses the %u substitution for the account name. Do not use the %m
738 substitution.
739
740 Default: add machine script =
741
742 Example: add machine script = /usr/sbin/adduser -n -g machines -c
743 Machine -d /var/lib/nobody -s /bin/false %u
744
745 addport command (G)
746
747 Samba 3.0.23 introduced support for adding printer ports remotely
748 using the Windows "Add Standard TCP/IP Port Wizard". This option
749 defines an external program to be executed when smbd receives a
750 request to add a new Port to the system. The script is passed two
751 parameters:
752
753 · port name
754
755 · device URI
756
757 The deviceURI is in the format of
758 socket://<hostname>[:<portnumber>] or lpd://<hostname>/<queuename>.
759
760 Default: addport command =
761
762 Example: addport command = /etc/samba/scripts/addport.sh
763
764 addprinter command (G)
765
766 With the introduction of MS-RPC based printing support for Windows
767 NT/2000 clients in Samba 2.2, The MS Add Printer Wizard (APW) icon
768 is now also available in the "Printers..." folder displayed a share
769 listing. The APW allows for printers to be add remotely to a Samba
770 or Windows NT/2000 print server.
771
772 For a Samba host this means that the printer must be physically
773 added to the underlying printing system. The addprinter command
774 defines a script to be run which will perform the necessary
775 operations for adding the printer to the print system and to add
776 the appropriate service definition to the smb.conf file in order
777 that it can be shared by smbd(8).
778
779 The addprinter command is automatically invoked with the following
780 parameter (in order):
781
782 · printer name
783
784 · share name
785
786 · port name
787
788 · driver name
789
790 · location
791
792 · Windows 9x driver location
793
794 All parameters are filled in from the PRINTER_INFO_2 structure sent
795 by the Windows NT/2000 client with one exception. The "Windows 9x
796 driver location" parameter is included for backwards compatibility
797 only. The remaining fields in the structure are generated from
798 answers to the APW questions.
799
800 Once the addprinter command has been executed, smbd will reparse
801 the smb.conf to determine if the share defined by the APW exists.
802 If the sharename is still invalid, then smbd will return an
803 ACCESS_DENIED error to the client.
804
805 The addprinter command program can output a single line of text,
806 which Samba will set as the port the new printer is connected to.
807 If this line isn't output, Samba won't reload its printer shares.
808
809 Default: addprinter command =
810
811 Example: addprinter command = /usr/bin/addprinter
812
813 add share command (G)
814
815 Samba 2.2.0 introduced the ability to dynamically add and delete
816 shares via the Windows NT 4.0 Server Manager. The add share command
817 is used to define an external program or script which will add a
818 new service definition to smb.conf.
819
820 In order to successfully execute the add share command, smbd
821 requires that the administrator connects using a root account (i.e.
822 uid == 0) or has the SeDiskOperatorPrivilege. Scripts defined in
823 the add share command parameter are executed as root.
824
825 When executed, smbd will automatically invoke the add share command
826 with five parameters.
827
828 · configFile - the location of the global smb.conf file.
829
830 · shareName - the name of the new share.
831
832 · pathName - path to an **existing** directory on disk.
833
834 · comment - comment string to associate with the new
835 share.
836
837 · max connections Number of maximum simultaneous
838 connections to this share.
839
840 This parameter is only used to add file shares. To add printer
841 shares, see the addprinter command.
842
843 Default: add share command =
844
845 Example: add share command = /usr/local/bin/addshare
846
847 add user script (G)
848
849 This is the full pathname to a script that will be run AS ROOT by
850 smbd(8) under special circumstances described below.
851
852 Normally, a Samba server requires that UNIX users are created for
853 all users accessing files on this server. For sites that use
854 Windows NT account databases as their primary user database
855 creating these users and keeping the user list in sync with the
856 Windows NT PDC is an onerous task. This option allows smbd to
857 create the required UNIX users ON DEMAND when a user accesses the
858 Samba server.
859
860 When the Windows user attempts to access the Samba server, at login
861 (session setup in the SMB protocol) time, smbd(8) contacts the
862 password server and attempts to authenticate the given user with
863 the given password. If the authentication succeeds then smbd
864 attempts to find a UNIX user in the UNIX password database to map
865 the Windows user into. If this lookup fails, and add user script is
866 set then smbd will call the specified script AS ROOT, expanding any
867 %u argument to be the user name to create.
868
869 If this script successfully creates the user then smbd will
870 continue on as though the UNIX user already existed. In this way,
871 UNIX users are dynamically created to match existing Windows NT
872 accounts.
873
874 See also security, password server, delete user script.
875
876 Default: add user script =
877
878 Example: add user script = /usr/local/samba/bin/add_user %u
879
880 add user to group script (G)
881
882 Full path to the script that will be called when a user is added to
883 a group using the Windows NT domain administration tools. It will
884 be run by smbd(8) AS ROOT. Any %g will be replaced with the group
885 name and any %u will be replaced with the user name.
886
887 Note that the adduser command used in the example below does not
888 support the used syntax on all systems.
889
890 Default: add user to group script =
891
892 Example: add user to group script = /usr/sbin/adduser %u %g
893
894 administrative share (S)
895
896 If this parameter is set to yes for a share, then the share will be
897 an administrative share. The Administrative Shares are the default
898 network shares created by all Windows NT-based operating systems.
899 These are shares like C$, D$ or ADMIN$. The type of these shares is
900 STYPE_DISKTREE_HIDDEN.
901
902 See the section below on security for more information about this
903 option.
904
905 Default: administrative share = no
906
907 admin users (S)
908
909 This is a list of users who will be granted administrative
910 privileges on the share. This means that they will do all file
911 operations as the super-user (root).
912
913 You should use this option very carefully, as any user in this list
914 will be able to do anything they like on the share, irrespective of
915 file permissions.
916
917 Default: admin users =
918
919 Example: admin users = jason
920
921 afs share (S)
922
923 This parameter controls whether special AFS features are enabled
924 for this share. If enabled, it assumes that the directory exported
925 via the path parameter is a local AFS import. The special AFS
926 features include the attempt to hand-craft an AFS token if you
927 enabled --with-fake-kaserver in configure.
928
929 Default: afs share = no
930
931 afs token lifetime (G)
932
933 This parameter controls the lifetime of tokens that the AFS
934 fake-kaserver claims. In reality these never expire but this
935 lifetime controls when the afs client will forget the token.
936
937 Set this parameter to 0 to get NEVERDATE.
938
939 Default: afs token lifetime = 604800
940
941 afs username map (G)
942
943 If you are using the fake kaserver AFS feature, you might want to
944 hand-craft the usernames you are creating tokens for. For example
945 this is necessary if you have users from several domain in your AFS
946 Protection Database. One possible scheme to code users as
947 DOMAIN+User as it is done by winbind with the + as a separator.
948
949 The mapped user name must contain the cell name to log into, so
950 without setting this parameter there will be no token.
951
952 Default: afs username map =
953
954 Example: afs username map = %u@afs.samba.org
955
956 aio max threads (G)
957
958 The integer parameter specifies the maximum number of threads each
959 smbd process will create when doing parallel asynchronous IO calls.
960 If the number of outstanding calls is greater than this number the
961 requests will not be refused but go onto a queue and will be
962 scheduled in turn as outstanding requests complete.
963
964 Related command: aio read size
965
966 Related command: aio write size
967
968 Default: aio max threads = 100
969
970 aio read size (S)
971
972 If this integer parameter is set to a non-zero value, Samba will
973 read from files asynchronously when the request size is bigger than
974 this value. Note that it happens only for non-chained and
975 non-chaining reads and when not using write cache.
976
977 The only reasonable values for this parameter are 0 (no async I/O)
978 and 1 (always do async I/O).
979
980 Related command: write cache size
981
982 Related command: aio write size
983
984 Default: aio read size = 1
985
986 Example: aio read size = 0 # Always do reads synchronously
987
988 aio write behind (S)
989
990 If Samba has been built with asynchronous I/O support, Samba will
991 not wait until write requests are finished before returning the
992 result to the client for files listed in this parameter. Instead,
993 Samba will immediately return that the write request has been
994 finished successfully, no matter if the operation will succeed or
995 not. This might speed up clients without aio support, but is really
996 dangerous, because data could be lost and files could be damaged.
997
998 The syntax is identical to the veto files parameter.
999
1000 Default: aio write behind =
1001
1002 Example: aio write behind = /*.tmp/
1003
1004 aio write size (S)
1005
1006 If this integer parameter is set to a non-zero value, Samba will
1007 write to files asynchronously when the request size is bigger than
1008 this value. Note that it happens only for non-chained and
1009 non-chaining reads and when not using write cache.
1010
1011 The only reasonable values for this parameter are 0 (no async I/O)
1012 and 1 (always do async I/O).
1013
1014 Compared to aio read size this parameter has a smaller effect, most
1015 writes should end up in the file system cache. Writes that require
1016 space allocation might benefit most from going asynchronous.
1017
1018 Related command: write cache size
1019
1020 Related command: aio read size
1021
1022 Default: aio write size = 1
1023
1024 Example: aio write size = 0 # Always do writes synchronously
1025
1026 algorithmic rid base (G)
1027
1028 This determines how Samba will use its algorithmic mapping from
1029 uids/gid to the RIDs needed to construct NT Security Identifiers.
1030
1031 Setting this option to a larger value could be useful to sites
1032 transitioning from WinNT and Win2k, as existing user and group rids
1033 would otherwise clash with system users etc.
1034
1035 All UIDs and GIDs must be able to be resolved into SIDs for the
1036 correct operation of ACLs on the server. As such the algorithmic
1037 mapping can't be 'turned off', but pushing it 'out of the way'
1038 should resolve the issues. Users and groups can then be assigned
1039 'low' RIDs in arbitrary-rid supporting backends.
1040
1041 Default: algorithmic rid base = 1000
1042
1043 Example: algorithmic rid base = 100000
1044
1045 allocation roundup size (S)
1046
1047 This parameter allows an administrator to tune the allocation size
1048 reported to Windows clients. This is only useful for old SMB1
1049 clients because modern SMB dialects eliminated that bottleneck and
1050 have better performance by default. Using this parameter may cause
1051 difficulties for some applications, e.g. MS Visual Studio. If the
1052 MS Visual Studio compiler starts to crash with an internal error,
1053 set this parameter to zero for this share. Settings this parameter
1054 to a large value can also cause small files to allocate more space
1055 on the disk than needed.
1056
1057 This parameter is deprecated and will be removed in one of the next
1058 Samba releases.
1059
1060 The integer parameter specifies the roundup size in bytes.
1061
1062 Default: allocation roundup size = 0
1063
1064 Example: allocation roundup size = 1048576 # (to set it to the
1065 former default of 1 MiB)
1066
1067 allow dcerpc auth level connect (G)
1068
1069 This option controls whether DCERPC services are allowed to be used
1070 with DCERPC_AUTH_LEVEL_CONNECT, which provides authentication, but
1071 no per message integrity nor privacy protection.
1072
1073 Some interfaces like samr, lsarpc and netlogon have a hard-coded
1074 default of no and epmapper, mgmt and rpcecho have a hard-coded
1075 default of yes.
1076
1077 The behavior can be overwritten per interface name (e.g. lsarpc,
1078 netlogon, samr, srvsvc, winreg, wkssvc ...) by using 'allow dcerpc
1079 auth level connect:interface = yes' as option.
1080
1081 This option yields precedence to the implementation specific
1082 restrictions. E.g. the drsuapi and backupkey protocols require
1083 DCERPC_AUTH_LEVEL_PRIVACY. The dnsserver protocol requires
1084 DCERPC_AUTH_LEVEL_INTEGRITY.
1085
1086 Default: allow dcerpc auth level connect = no
1087
1088 Example: allow dcerpc auth level connect = yes
1089
1090 allow dns updates (G)
1091
1092 This option determines what kind of updates to the DNS are allowed.
1093
1094 DNS updates can either be disallowed completely by setting it to
1095 disabled, enabled over secure connections only by setting it to
1096 secure only or allowed in all cases by setting it to nonsecure.
1097
1098 Default: allow dns updates = secure only
1099
1100 Example: allow dns updates = disabled
1101
1102 allow insecure wide links (G)
1103
1104 In normal operation the option wide links which allows the server
1105 to follow symlinks outside of a share path is automatically
1106 disabled when unix extensions are enabled on a Samba server. This
1107 is done for security purposes to prevent UNIX clients creating
1108 symlinks to areas of the server file system that the administrator
1109 does not wish to export.
1110
1111 Setting allow insecure wide links to true disables the link between
1112 these two parameters, removing this protection and allowing a site
1113 to configure the server to follow symlinks (by setting wide links
1114 to "true") even when unix extensions is turned on.
1115
1116 It is not recommended to enable this option unless you fully
1117 understand the implications of allowing the server to follow
1118 symbolic links created by UNIX clients. For most normal Samba
1119 configurations this would be considered a security hole and setting
1120 this parameter is not recommended.
1121
1122 This option was added at the request of sites who had deliberately
1123 set Samba up in this way and needed to continue supporting this
1124 functionality without having to patch the Samba code.
1125
1126 Default: allow insecure wide links = no
1127
1128 allow nt4 crypto (G)
1129
1130 This option controls whether the netlogon server (currently only in
1131 'active directory domain controller' mode), will reject clients
1132 which does not support NETLOGON_NEG_STRONG_KEYS nor
1133 NETLOGON_NEG_SUPPORTS_AES.
1134
1135 This option was added with Samba 4.2.0. It may lock out clients
1136 which worked fine with Samba versions up to 4.1.x. as the effective
1137 default was "yes" there, while it is "no" now.
1138
1139 If you have clients without RequireStrongKey = 1 in the registry,
1140 you may need to set "allow nt4 crypto = yes", until you have fixed
1141 all clients.
1142
1143 "allow nt4 crypto = yes" allows weak crypto to be negotiated, maybe
1144 via downgrade attacks.
1145
1146 This option yields precedence to the 'reject md5 clients' option.
1147
1148 Default: allow nt4 crypto = no
1149
1150 allow trusted domains (G)
1151
1152 This option only takes effect when the security option is set to
1153 server, domain or ads. If it is set to no, then attempts to connect
1154 to a resource from a domain or workgroup other than the one which
1155 smbd is running in will fail, even if that domain is trusted by the
1156 remote server doing the authentication.
1157
1158 This is useful if you only want your Samba server to serve
1159 resources to users in the domain it is a member of. As an example,
1160 suppose that there are two domains DOMA and DOMB. DOMB is trusted
1161 by DOMA, which contains the Samba server. Under normal
1162 circumstances, a user with an account in DOMB can then access the
1163 resources of a UNIX account with the same account name on the Samba
1164 server even if they do not have an account in DOMA. This can make
1165 implementing a security boundary difficult.
1166
1167 Default: allow trusted domains = yes
1168
1169 allow unsafe cluster upgrade (G)
1170
1171 If set to no (the default), smbd checks at startup if other smbd
1172 versions are running in the cluster and refuses to start if so.
1173 This is done to protect data corruption in internal data structures
1174 due to incompatible Samba versions running concurrently in the same
1175 cluster. Setting this parameter to yes disables this safety check.
1176
1177 Default: allow unsafe cluster upgrade = no
1178
1179 apply group policies (G)
1180
1181 This option controls whether winbind will execute the gpupdate
1182 command defined in gpo update command on the Group Policy update
1183 interval. The Group Policy update interval is defined as every 90
1184 minutes, plus a random offset between 0 and 30 minutes. This
1185 applies Group Policy Machine polices to the client or KDC and
1186 machine policies to a server.
1187
1188 Default: apply group policies = no
1189
1190 Example: apply group policies = yes
1191
1192 async smb echo handler (G)
1193
1194 This parameter specifies whether Samba should fork the async smb
1195 echo handler. It can be beneficial if your file system can block
1196 syscalls for a very long time. In some circumstances, it prolongs
1197 the timeout that Windows uses to determine whether a connection is
1198 dead. This parameter is only for SMB1. For SMB2 and above TCP
1199 keepalives can be used instead.
1200
1201 Default: async smb echo handler = no
1202
1203 auth event notification (G)
1204
1205 When enabled, this option causes Samba (acting as an Active
1206 Directory Domain Controller) to stream authentication events across
1207 the internal message bus. Scripts built using Samba's python
1208 bindings can listen to these events by registering as the service
1209 auth_event.
1210
1211 This should be considered a developer option (it assists in the
1212 Samba testsuite) rather than a facility for external auditing, as
1213 message delivery is not guaranteed (a feature that the testsuite
1214 works around). Additionally Samba must be compiled with the jansson
1215 support for this option to be effective.
1216
1217 The authentication events are also logged via the normal logging
1218 methods when the log level is set appropriately.
1219
1220 Default: auth event notification = no
1221
1222 preload
1223
1224 This parameter is a synonym for auto services.
1225
1226 auto services (G)
1227
1228 This is a list of services that you want to be automatically added
1229 to the browse lists. This is most useful for homes and printers
1230 services that would otherwise not be visible.
1231
1232 Note that if you just want all printers in your printcap file
1233 loaded then the load printers option is easier.
1234
1235 Default: auto services =
1236
1237 Example: auto services = fred lp colorlp
1238
1239 available (S)
1240
1241 This parameter lets you "turn off" a service. If available = no,
1242 then ALL attempts to connect to the service will fail. Such
1243 failures are logged.
1244
1245 Default: available = yes
1246
1247 bind dns directory
1248
1249 This parameter is a synonym for binddns dir.
1250
1251 binddns dir (G)
1252
1253 This parameters defines the directory samba will use to store the
1254 configuration files for bind, such as named.conf. NOTE: The bind
1255 dns directory needs to be on the same mount point as the private
1256 directory!
1257
1258 Default: binddns dir = /var/lib/samba/bind-dns
1259
1260 bind interfaces only (G)
1261
1262 This global parameter allows the Samba admin to limit what
1263 interfaces on a machine will serve SMB requests. It affects file
1264 service smbd(8) and name service nmbd(8) in a slightly different
1265 ways.
1266
1267 For name service it causes nmbd to bind to ports 137 and 138 on the
1268 interfaces listed in the interfaces parameter. nmbd also binds to
1269 the "all addresses" interface (0.0.0.0) on ports 137 and 138 for
1270 the purposes of reading broadcast messages. If this option is not
1271 set then nmbd will service name requests on all of these sockets.
1272 If bind interfaces only is set then nmbd will check the source
1273 address of any packets coming in on the broadcast sockets and
1274 discard any that don't match the broadcast addresses of the
1275 interfaces in the interfaces parameter list. As unicast packets are
1276 received on the other sockets it allows nmbd to refuse to serve
1277 names to machines that send packets that arrive through any
1278 interfaces not listed in the interfaces list. IP Source address
1279 spoofing does defeat this simple check, however, so it must not be
1280 used seriously as a security feature for nmbd.
1281
1282 For file service it causes smbd(8) to bind only to the interface
1283 list given in the interfaces parameter. This restricts the networks
1284 that smbd will serve, to packets coming in on those interfaces.
1285 Note that you should not use this parameter for machines that are
1286 serving PPP or other intermittent or non-broadcast network
1287 interfaces as it will not cope with non-permanent interfaces.
1288
1289 If bind interfaces only is set and the network address 127.0.0.1 is
1290 not added to the interfaces parameter list smbpasswd(8) may not
1291 work as expected due to the reasons covered below.
1292
1293 To change a users SMB password, the smbpasswd by default connects
1294 to the localhost - 127.0.0.1 address as an SMB client to issue the
1295 password change request. If bind interfaces only is set then unless
1296 the network address 127.0.0.1 is added to the interfaces parameter
1297 list then smbpasswd will fail to connect in it's default mode.
1298 smbpasswd can be forced to use the primary IP interface of the
1299 local host by using its smbpasswd(8) -r remote machine parameter,
1300 with remote machine set to the IP name of the primary interface of
1301 the local host.
1302
1303 Default: bind interfaces only = no
1304
1305 blocking locks (S)
1306
1307 This parameter controls the behavior of smbd(8) when given a
1308 request by a client to obtain a byte range lock on a region of an
1309 open file, and the request has a time limit associated with it.
1310
1311 If this parameter is set and the lock range requested cannot be
1312 immediately satisfied, samba will internally queue the lock
1313 request, and periodically attempt to obtain the lock until the
1314 timeout period expires.
1315
1316 If this parameter is set to no, then samba will behave as previous
1317 versions of Samba would and will fail the lock request immediately
1318 if the lock range cannot be obtained.
1319
1320 Default: blocking locks = yes
1321
1322 block size (S)
1323
1324 This parameter controls the behavior of smbd(8) when reporting disk
1325 free sizes. By default, this reports a disk block size of 1024
1326 bytes.
1327
1328 Changing this parameter may have some effect on the efficiency of
1329 client writes, this is not yet confirmed. This parameter was added
1330 to allow advanced administrators to change it (usually to a higher
1331 value) and test the effect it has on client write performance
1332 without re-compiling the code. As this is an experimental option it
1333 may be removed in a future release.
1334
1335 Changing this option does not change the disk free reporting size,
1336 just the block size unit reported to the client.
1337
1338 Default: block size = 1024
1339
1340 Example: block size = 4096
1341
1342 browsable
1343
1344 This parameter is a synonym for browseable.
1345
1346 browseable (S)
1347
1348 This controls whether this share is seen in the list of available
1349 shares in a net view and in the browse list.
1350
1351 Default: browseable = yes
1352
1353 browse list (G)
1354
1355 This controls whether smbd(8) will serve a browse list to a client
1356 doing a NetServerEnum call. Normally set to yes. You should never
1357 need to change this.
1358
1359 Default: browse list = yes
1360
1361 cache directory (G)
1362
1363 Usually, most of the TDB files are stored in the lock directory.
1364 Since Samba 3.4.0, it is possible to differentiate between TDB
1365 files with persistent data and TDB files with non-persistent data
1366 using the state directory and the cache directory options.
1367
1368 This option specifies the directory for storing TDB files
1369 containing non-persistent data that will be kept across service
1370 restarts. The directory should be placed on persistent storage, but
1371 the data can be safely deleted by an administrator.
1372
1373 Default: cache directory = /var/lib/samba
1374
1375 Example: cache directory = /var/run/samba/locks/cache
1376
1377 casesignames
1378
1379 This parameter is a synonym for case sensitive.
1380
1381 case sensitive (S)
1382
1383 See the discussion in the section name mangling.
1384
1385 Default: case sensitive = auto
1386
1387 change notify (G)
1388
1389 This parameter specifies whether Samba should reply to a client's
1390 file change notify requests.
1391
1392 You should never need to change this parameter
1393
1394 Default: change notify = yes
1395
1396 change share command (G)
1397
1398 Samba 2.2.0 introduced the ability to dynamically add and delete
1399 shares via the Windows NT 4.0 Server Manager. The change share
1400 command is used to define an external program or script which will
1401 modify an existing service definition in smb.conf.
1402
1403 In order to successfully execute the change share command, smbd
1404 requires that the administrator connects using a root account (i.e.
1405 uid == 0) or has the SeDiskOperatorPrivilege. Scripts defined in
1406 the change share command parameter are executed as root.
1407
1408 When executed, smbd will automatically invoke the change share
1409 command with six parameters.
1410
1411 · configFile - the location of the global smb.conf file.
1412
1413 · shareName - the name of the new share.
1414
1415 · pathName - path to an **existing** directory on disk.
1416
1417 · comment - comment string to associate with the new
1418 share.
1419
1420 · max connections Number of maximum simultaneous
1421 connections to this share.
1422
1423 · CSC policy - client side caching policy in string form.
1424 Valid values are: manual, documents, programs, disable.
1425
1426 This parameter is only used to modify existing file share
1427 definitions. To modify printer shares, use the "Printers..." folder
1428 as seen when browsing the Samba host.
1429
1430 Default: change share command =
1431
1432 Example: change share command = /usr/local/bin/changeshare
1433
1434 check parent directory delete on close (S)
1435
1436 A Windows SMB server prevents the client from creating files in a
1437 directory that has the delete-on-close flag set. By default Samba
1438 doesn't perform this check as this check is a quite expensive
1439 operation in Samba.
1440
1441 Default: check parent directory delete on close = no
1442
1443 check password script (G)
1444
1445 The name of a program that can be used to check password
1446 complexity. The password is sent to the program's standard input.
1447
1448 The program must return 0 on a good password, or any other value if
1449 the password is bad. In case the password is considered weak (the
1450 program does not return 0) the user will be notified and the
1451 password change will fail.
1452
1453 In Samba AD, this script will be run AS ROOT by samba(8) without
1454 any substitutions.
1455
1456 Note that starting with Samba 4.11 the following environment
1457 variables are exported to the script:
1458
1459 · SAMBA_CPS_ACCOUNT_NAME is always present and contains
1460 the sAMAccountName of user, the is the same as the %u
1461 substitutions in the none AD DC case.
1462
1463 · SAMBA_CPS_USER_PRINCIPAL_NAME is optional in the AD DC
1464 case if the userPrincipalName is present.
1465
1466 · SAMBA_CPS_FULL_NAME is optional if the displayName is
1467 present.
1468
1469 Note: In the example directory is a sample program called
1470 crackcheck that uses cracklib to check the password quality.
1471
1472 Default: check password script = # Disabled
1473
1474 Example: check password script = /usr/local/sbin/crackcheck
1475
1476 cldap port (G)
1477
1478 This option controls the port used by the CLDAP protocol.
1479
1480 Default: cldap port = 389
1481
1482 Example: cldap port = 3389
1483
1484 client ipc max protocol (G)
1485
1486 The value of the parameter (a string) is the highest protocol level
1487 that will be supported for IPC$ connections as DCERPC transport.
1488
1489 Normally this option should not be set as the automatic negotiation
1490 phase in the SMB protocol takes care of choosing the appropriate
1491 protocol.
1492
1493 The value default refers to the latest supported protocol,
1494 currently SMB3_11.
1495
1496 See client max protocol for a full list of available protocols. The
1497 values CORE, COREPLUS, LANMAN1, LANMAN2 are silently upgraded to
1498 NT1.
1499
1500 Default: client ipc max protocol = default
1501
1502 Example: client ipc max protocol = SMB2_10
1503
1504 client ipc min protocol (G)
1505
1506 This setting controls the minimum protocol version that the will be
1507 attempted to use for IPC$ connections as DCERPC transport.
1508
1509 Normally this option should not be set as the automatic negotiation
1510 phase in the SMB protocol takes care of choosing the appropriate
1511 protocol.
1512
1513 The value default refers to the higher value of NT1 and the
1514 effective value of client min protocol.
1515
1516 See client max protocol for a full list of available protocols. The
1517 values CORE, COREPLUS, LANMAN1, LANMAN2 are silently upgraded to
1518 NT1.
1519
1520 Default: client ipc min protocol = default
1521
1522 Example: client ipc min protocol = SMB3_11
1523
1524 client ipc signing (G)
1525
1526 This controls whether the client is allowed or required to use SMB
1527 signing for IPC$ connections as DCERPC transport. Possible values
1528 are auto, mandatory and disabled.
1529
1530 When set to mandatory or default, SMB signing is required.
1531
1532 When set to auto, SMB signing is offered, but not enforced and if
1533 set to disabled, SMB signing is not offered either.
1534
1535 Connections from winbindd to Active Directory Domain Controllers
1536 always enforce signing.
1537
1538 Default: client ipc signing = default
1539
1540 client lanman auth (G)
1541
1542 This parameter determines whether or not smbclient(8) and other
1543 samba client tools will attempt to authenticate itself to servers
1544 using the weaker LANMAN password hash. If disabled, only server
1545 which support NT password hashes (e.g. Windows NT/2000, Samba,
1546 etc... but not Windows 95/98) will be able to be connected from the
1547 Samba client.
1548
1549 The LANMAN encrypted response is easily broken, due to its
1550 case-insensitive nature, and the choice of algorithm. Clients
1551 without Windows 95/98 servers are advised to disable this option.
1552
1553 Disabling this option will also disable the client plaintext auth
1554 option.
1555
1556 Likewise, if the client ntlmv2 auth parameter is enabled, then only
1557 NTLMv2 logins will be attempted.
1558
1559 Default: client lanman auth = no
1560
1561 client ldap sasl wrapping (G)
1562
1563 The client ldap sasl wrapping defines whether ldap traffic will be
1564 signed or signed and encrypted (sealed). Possible values are plain,
1565 sign and seal.
1566
1567 The values sign and seal are only available if Samba has been
1568 compiled against a modern OpenLDAP version (2.3.x or higher).
1569
1570 This option is needed in the case of Domain Controllers enforcing
1571 the usage of signed LDAP connections (e.g. Windows 2000 SP3 or
1572 higher). LDAP sign and seal can be controlled with the registry key
1573 "HKLM\System\CurrentControlSet\Services\
1574 NTDS\Parameters\LDAPServerIntegrity" on the Windows server side.
1575
1576 Depending on the used KRB5 library (MIT and older Heimdal versions)
1577 it is possible that the message "integrity only" is not supported.
1578 In this case, sign is just an alias for seal.
1579
1580 The default value is sign. That implies synchronizing the time with
1581 the KDC in the case of using Kerberos.
1582
1583 Default: client ldap sasl wrapping = sign
1584
1585 client max protocol (G)
1586
1587 The value of the parameter (a string) is the highest protocol level
1588 that will be supported by the client.
1589
1590 Possible values are :
1591
1592 · CORE: Earliest version. No concept of user names.
1593
1594 · COREPLUS: Slight improvements on CORE for efficiency.
1595
1596 · LANMAN1: First modern version of the protocol. Long
1597 filename support.
1598
1599 · LANMAN2: Updates to Lanman1 protocol.
1600
1601 · NT1: Current up to date version of the protocol. Used by
1602 Windows NT. Known as CIFS.
1603
1604 · SMB2: Re-implementation of the SMB protocol. Used by
1605 Windows Vista and later versions of Windows. SMB2 has
1606 sub protocols available.
1607
1608 · SMB2_02: The earliest SMB2 version.
1609
1610 · SMB2_10: Windows 7 SMB2 version.
1611
1612 · SMB2_22: Early Windows 8 SMB2 version.
1613
1614 · SMB2_24: Windows 8 beta SMB2 version.
1615
1616 By default SMB2 selects the SMB2_10 variant.
1617
1618 · SMB3: The same as SMB2. Used by Windows 8. SMB3 has sub
1619 protocols available.
1620
1621 · SMB3_00: Windows 8 SMB3 version. (mostly the
1622 same as SMB2_24)
1623
1624 · SMB3_02: Windows 8.1 SMB3 version.
1625
1626 · SMB3_10: early Windows 10 technical preview
1627 SMB3 version.
1628
1629 · SMB3_11: Windows 10 technical preview SMB3
1630 version (maybe final).
1631
1632 By default SMB3 selects the SMB3_11 variant.
1633
1634 Normally this option should not be set as the automatic negotiation
1635 phase in the SMB protocol takes care of choosing the appropriate
1636 protocol.
1637
1638 The value default refers to SMB3_11.
1639
1640 IPC$ connections for DCERPC e.g. in winbindd, are handled by the
1641 client ipc max protocol option.
1642
1643 Default: client max protocol = default
1644
1645 Example: client max protocol = LANMAN1
1646
1647 client min protocol (G)
1648
1649 This setting controls the minimum protocol version that the client
1650 will attempt to use.
1651
1652 Normally this option should not be set as the automatic negotiation
1653 phase in the SMB protocol takes care of choosing the appropriate
1654 protocol unless you connect to a legacy SMB1-only server.
1655
1656 See Related command: client max protocol for a full list of
1657 available protocols.
1658
1659 IPC$ connections for DCERPC e.g. in winbindd, are handled by the
1660 client ipc min protocol option.
1661
1662 Note that most command line tools support --option='client min
1663 protocol=NT1', so it may not be required to enable SMB1 protocols
1664 globally in smb.conf.
1665
1666 Default: client min protocol = SMB2_02
1667
1668 Example: client min protocol = NT1
1669
1670 client NTLMv2 auth (G)
1671
1672 This parameter determines whether or not smbclient(8) will attempt
1673 to authenticate itself to servers using the NTLMv2 encrypted
1674 password response.
1675
1676 If enabled, only an NTLMv2 and LMv2 response (both much more secure
1677 than earlier versions) will be sent. Older servers (including NT4 <
1678 SP4, Win9x and Samba 2.2) are not compatible with NTLMv2 when not
1679 in an NTLMv2 supporting domain
1680
1681 Similarly, if enabled, NTLMv1, client lanman auth and client
1682 plaintext auth authentication will be disabled. This also disables
1683 share-level authentication.
1684
1685 If disabled, an NTLM response (and possibly a LANMAN response) will
1686 be sent by the client, depending on the value of client lanman
1687 auth.
1688
1689 Note that Windows Vista and later versions already use NTLMv2 by
1690 default, and some sites (particularly those following 'best
1691 practice' security polices) only allow NTLMv2 responses, and not
1692 the weaker LM or NTLM.
1693
1694 When client use spnego is also set to yes extended security
1695 (SPNEGO) is required in order to use NTLMv2 only within NTLMSSP.
1696 This behavior was introduced with the patches for CVE-2016-2111.
1697
1698 Default: client NTLMv2 auth = yes
1699
1700 client plaintext auth (G)
1701
1702 Specifies whether a client should send a plaintext password if the
1703 server does not support encrypted passwords.
1704
1705 Default: client plaintext auth = no
1706
1707 client schannel (G)
1708
1709 This option is deprecated with Samba 4.8 and will be removed in
1710 future. At the same time the default changed to yes, which will be
1711 the hardcoded behavior in future.
1712
1713 This controls whether the client offers or even demands the use of
1714 the netlogon schannel. client schannel = no does not offer the
1715 schannel, client schannel = auto offers the schannel but does not
1716 enforce it, and client schannel = yes denies access if the server
1717 is not able to speak netlogon schannel.
1718
1719 Note that for active directory domains this is hardcoded to client
1720 schannel = yes.
1721
1722 This option yields precedence to the require strong key option.
1723
1724 Default: client schannel = yes
1725
1726 Example: client schannel = auto
1727
1728 client signing (G)
1729
1730 This controls whether the client is allowed or required to use SMB
1731 signing. Possible values are auto, mandatory and disabled.
1732
1733 When set to auto or default, SMB signing is offered, but not
1734 enforced.
1735
1736 When set to mandatory, SMB signing is required and if set to
1737 disabled, SMB signing is not offered either.
1738
1739 IPC$ connections for DCERPC e.g. in winbindd, are handled by the
1740 client ipc signing option.
1741
1742 Default: client signing = default
1743
1744 client use spnego principal (G)
1745
1746 This parameter determines whether or not smbclient(8) and other
1747 samba components acting as a client will attempt to use the
1748 server-supplied principal sometimes given in the SPNEGO exchange.
1749
1750 If enabled, Samba can attempt to use Kerberos to contact servers
1751 known only by IP address. Kerberos relies on names, so ordinarily
1752 cannot function in this situation.
1753
1754 This is a VERY BAD IDEA for security reasons, and so this parameter
1755 SHOULD NOT BE USED. It will be removed in a future version of
1756 Samba.
1757
1758 If disabled, Samba will use the name used to look up the server
1759 when asking the KDC for a ticket. This avoids situations where a
1760 server may impersonate another, soliciting authentication as one
1761 principal while being known on the network as another.
1762
1763 Note that Windows XP SP2 and later versions already follow this
1764 behaviour, and Windows Vista and later servers no longer supply
1765 this 'rfc4178 hint' principal on the server side.
1766
1767 This parameter is deprecated in Samba 4.2.1 and will be removed
1768 (along with the functionality) in a later release of Samba.
1769
1770 Default: client use spnego principal = no
1771
1772 client use spnego (G)
1773
1774 This variable controls whether Samba clients will try to use Simple
1775 and Protected NEGOciation (as specified by rfc2478) with supporting
1776 servers (including WindowsXP, Windows2000 and Samba 3.0) to agree
1777 upon an authentication mechanism. This enables Kerberos
1778 authentication in particular.
1779
1780 When client NTLMv2 auth is also set to yes extended security
1781 (SPNEGO) is required in order to use NTLMv2 only within NTLMSSP.
1782 This behavior was introduced with the patches for CVE-2016-2111.
1783
1784 Default: client use spnego = yes
1785
1786 cluster addresses (G)
1787
1788 With this parameter you can add additional addresses that nmbd will
1789 register with a WINS server. Similarly, these addresses will be
1790 registered by default when net ads dns register is called with
1791 clustering = yes configured.
1792
1793 Default: cluster addresses =
1794
1795 Example: cluster addresses = 10.0.0.1 10.0.0.2 10.0.0.3
1796
1797 clustering (G)
1798
1799 This parameter specifies whether Samba should contact ctdb for
1800 accessing its tdb files and use ctdb as a backend for its messaging
1801 backend.
1802
1803 Set this parameter to yes only if you have a cluster setup with
1804 ctdb running.
1805
1806 Default: clustering = no
1807
1808 comment (S)
1809
1810 This is a text field that is seen next to a share when a client
1811 does a queries the server, either via the network neighborhood or
1812 via net view to list what shares are available.
1813
1814 If you want to set the string that is displayed next to the machine
1815 name then see the server string parameter.
1816
1817 Default: comment = # No comment
1818
1819 Example: comment = Fred's Files
1820
1821 config backend (G)
1822
1823 This controls the backend for storing the configuration. Possible
1824 values are file (the default) and registry. When config backend =
1825 registry is encountered while loading smb.conf, the configuration
1826 read so far is dropped and the global options are read from
1827 registry instead. So this triggers a registry only configuration.
1828 Share definitions are not read immediately but instead registry
1829 shares is set to yes.
1830
1831 Note: This option can not be set inside the registry configuration
1832 itself.
1833
1834 Default: config backend = file
1835
1836 Example: config backend = registry
1837
1838 config file (G)
1839
1840 This allows you to override the config file to use, instead of the
1841 default (usually smb.conf). There is a chicken and egg problem here
1842 as this option is set in the config file!
1843
1844 For this reason, if the name of the config file has changed when
1845 the parameters are loaded then it will reload them from the new
1846 config file.
1847
1848 This option takes the usual substitutions, which can be very
1849 useful.
1850
1851 If the config file doesn't exist then it won't be loaded (allowing
1852 you to special case the config files of just a few clients).
1853
1854 No default
1855
1856 Example: config file = /usr/local/samba/lib/smb.conf.%m
1857
1858 copy (S)
1859
1860 This parameter allows you to "clone" service entries. The specified
1861 service is simply duplicated under the current service's name. Any
1862 parameters specified in the current section will override those in
1863 the section being copied.
1864
1865 This feature lets you set up a 'template' service and create
1866 similar services easily. Note that the service being copied must
1867 occur earlier in the configuration file than the service doing the
1868 copying.
1869
1870 Default: copy =
1871
1872 Example: copy = otherservice
1873
1874 create krb5 conf (G)
1875
1876 Setting this parameter to no prevents winbind from creating custom
1877 krb5.conf files. Winbind normally does this because the krb5
1878 libraries are not AD-site-aware and thus would pick any domain
1879 controller out of potentially very many. Winbind is site-aware and
1880 makes the krb5 libraries use a local DC by creating its own
1881 krb5.conf files.
1882
1883 Preventing winbind from doing this might become necessary if you
1884 have to add special options into your system-krb5.conf that winbind
1885 does not see.
1886
1887 Default: create krb5 conf = yes
1888
1889 create mode
1890
1891 This parameter is a synonym for create mask.
1892
1893 create mask (S)
1894
1895 When a file is created, the necessary permissions are calculated
1896 according to the mapping from DOS modes to UNIX permissions, and
1897 the resulting UNIX mode is then bit-wise 'AND'ed with this
1898 parameter. This parameter may be thought of as a bit-wise MASK for
1899 the UNIX modes of a file. Any bit not set here will be removed from
1900 the modes set on a file when it is created.
1901
1902 The default value of this parameter removes the group and other
1903 write and execute bits from the UNIX modes.
1904
1905 Following this Samba will bit-wise 'OR' the UNIX mode created from
1906 this parameter with the value of the force create mode parameter
1907 which is set to 000 by default.
1908
1909 This parameter does not affect directory masks. See the parameter
1910 directory mask for details.
1911
1912 Default: create mask = 0744
1913
1914 Example: create mask = 0775
1915
1916 csc policy (S)
1917
1918 This stands for client-side caching policy, and specifies how
1919 clients capable of offline caching will cache the files in the
1920 share. The valid values are: manual, documents, programs, disable.
1921
1922 These values correspond to those used on Windows servers.
1923
1924 For example, shares containing roaming profiles can have offline
1925 caching disabled using csc policy = disable.
1926
1927 Default: csc policy = manual
1928
1929 Example: csc policy = programs
1930
1931 ctdbd socket (G)
1932
1933 If you set clustering=yes, you need to tell Samba where ctdbd
1934 listens on its unix domain socket. The default path as of ctdb 1.0
1935 is /tmp/ctdb.socket which you have to explicitly set for Samba in
1936 smb.conf.
1937
1938 Default: ctdbd socket =
1939
1940 Example: ctdbd socket = /tmp/ctdb.socket
1941
1942 ctdb locktime warn threshold (G)
1943
1944 In a cluster environment using Samba and ctdb it is critical that
1945 locks on central ctdb-hosted databases like locking.tdb are not
1946 held for long. With the current Samba architecture it happens that
1947 Samba takes a lock and while holding that lock makes file system
1948 calls into the shared cluster file system. This option makes Samba
1949 warn if it detects that it has held locks for the specified number
1950 of milliseconds. If this happens, smbd will emit a debug level 0
1951 message into its logs and potentially into syslog. The most likely
1952 reason for such a log message is that an operation of the cluster
1953 file system Samba exports is taking longer than expected. The
1954 messages are meant as a debugging aid for potential cluster
1955 problems.
1956
1957 The default value of 0 disables this logging.
1958
1959 Default: ctdb locktime warn threshold = 0
1960
1961 ctdb timeout (G)
1962
1963 This parameter specifies a timeout in milliseconds for the
1964 connection between Samba and ctdb. It is only valid if you have
1965 compiled Samba with clustering and if you have set clustering=yes.
1966
1967 When something in the cluster blocks, it can happen that we wait
1968 indefinitely long for ctdb, just adding to the blocking condition.
1969 In a well-running cluster this should never happen, but there are
1970 too many components in a cluster that might have hickups. Choosing
1971 the right balance for this value is very tricky, because on a busy
1972 cluster long service times to transfer something across the cluster
1973 might be valid. Setting it too short will degrade the service your
1974 cluster presents, setting it too long might make the cluster itself
1975 not recover from something severely broken for too long.
1976
1977 Be aware that if you set this parameter, this needs to be in the
1978 file smb.conf, it is not really helpful to put this into a registry
1979 configuration (typical on a cluster), because to access the
1980 registry contact to ctdb is required.
1981
1982 Setting ctdb timeout to n makes any process waiting longer than n
1983 milliseconds for a reply by the cluster panic. Setting it to 0 (the
1984 default) makes Samba block forever, which is the highly recommended
1985 default.
1986
1987 Default: ctdb timeout = 0
1988
1989 cups connection timeout (G)
1990
1991 This parameter is only applicable if printing is set to cups.
1992
1993 If set, this option specifies the number of seconds that smbd will
1994 wait whilst trying to contact to the CUPS server. The connection
1995 will fail if it takes longer than this number of seconds.
1996
1997 Default: cups connection timeout = 30
1998
1999 Example: cups connection timeout = 60
2000
2001 cups encrypt (G)
2002
2003 This parameter is only applicable if printing is set to cups and if
2004 you use CUPS newer than 1.0.x.It is used to define whether or not
2005 Samba should use encryption when talking to the CUPS server.
2006 Possible values are auto, yes and no
2007
2008 When set to auto we will try to do a TLS handshake on each CUPS
2009 connection setup. If that fails, we will fall back to unencrypted
2010 operation.
2011
2012 Default: cups encrypt = no
2013
2014 cups options (S)
2015
2016 This parameter is only applicable if printing is set to cups. Its
2017 value is a free form string of options passed directly to the cups
2018 library.
2019
2020 You can pass any generic print option known to CUPS (as listed in
2021 the CUPS "Software Users' Manual"). You can also pass any printer
2022 specific option (as listed in "lpoptions -d printername -l") valid
2023 for the target queue. Multiple parameters should be space-delimited
2024 name/value pairs according to the PAPI text option ABNF
2025 specification. Collection values ("name={a=... b=... c=...}") are
2026 stored with the curley brackets intact.
2027
2028 You should set this parameter to raw if your CUPS server error_log
2029 file contains messages such as "Unsupported format
2030 'application/octet-stream'" when printing from a Windows client
2031 through Samba. It is no longer necessary to enable system wide raw
2032 printing in /etc/cups/mime.{convs,types}.
2033
2034 Default: cups options = ""
2035
2036 Example: cups options = "raw media=a4"
2037
2038 cups server (G)
2039
2040 This parameter is only applicable if printing is set to cups.
2041
2042 If set, this option overrides the ServerName option in the CUPS
2043 client.conf. This is necessary if you have virtual samba servers
2044 that connect to different CUPS daemons.
2045
2046 Optionally, a port can be specified by separating the server name
2047 and port number with a colon. If no port was specified, the default
2048 port for IPP (631) will be used.
2049
2050 Default: cups server = ""
2051
2052 Example: cups server = mycupsserver
2053
2054 Example: cups server = mycupsserver:1631
2055
2056 dcerpc endpoint servers (G)
2057
2058 Specifies which DCE/RPC endpoint servers should be run.
2059
2060 Default: dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr,
2061 netlogon, lsarpc, drsuapi, dssetup, unixinfo, browser, eventlog6,
2062 backupkey, dnsserver
2063
2064 Example: dcerpc endpoint servers = rpcecho
2065
2066 deadtime (G)
2067
2068 The value of the parameter (a decimal integer) represents the
2069 number of minutes of inactivity before a connection is considered
2070 dead, and it is disconnected. The deadtime only takes effect if the
2071 number of open files is zero.
2072
2073 This is useful to stop a server's resources being exhausted by a
2074 large number of inactive connections.
2075
2076 Most clients have an auto-reconnect feature when a connection is
2077 broken so in most cases this parameter should be transparent to
2078 users.
2079
2080 Using this parameter with a timeout of a few minutes is recommended
2081 for most systems.
2082
2083 A deadtime of zero indicates that no auto-disconnection should be
2084 performed.
2085
2086 Default: deadtime = 10080
2087
2088 Example: deadtime = 15
2089
2090 debug class (G)
2091
2092 With this boolean parameter enabled, the debug class (DBGC_CLASS)
2093 will be displayed in the debug header.
2094
2095 For more information about currently available debug classes, see
2096 section about log level.
2097
2098 Default: debug class = no
2099
2100 debug encryption (G)
2101
2102 This option will make the smbd server and client code using libsmb
2103 (smbclient, smbget, smbspool, ...) dump the Session Id, the
2104 decrypted Session Key, the Signing Key, the Application Key, the
2105 Encryption Key and the Decryption Key every time an SMB3+ session
2106 is established. This information will be printed in logs at level
2107 0.
2108
2109 Warning: access to these values enables the decryption of any
2110 encrypted traffic on the dumped sessions. This option should only
2111 be enabled for debugging purposes.
2112
2113 Default: debug encryption = no
2114
2115 debug hires timestamp (G)
2116
2117 Sometimes the timestamps in the log messages are needed with a
2118 resolution of higher that seconds, this boolean parameter adds
2119 microsecond resolution to the timestamp message header when turned
2120 on.
2121
2122 Note that the parameter debug timestamp must be on for this to have
2123 an effect.
2124
2125 Default: debug hires timestamp = yes
2126
2127 debug pid (G)
2128
2129 When using only one log file for more then one forked
2130 smbd(8)-process there may be hard to follow which process outputs
2131 which message. This boolean parameter is adds the process-id to the
2132 timestamp message headers in the logfile when turned on.
2133
2134 Note that the parameter debug timestamp must be on for this to have
2135 an effect.
2136
2137 Default: debug pid = no
2138
2139 debug prefix timestamp (G)
2140
2141 With this option enabled, the timestamp message header is prefixed
2142 to the debug message without the filename and function information
2143 that is included with the debug timestamp parameter. This gives
2144 timestamps to the messages without adding an additional line.
2145
2146 Note that this parameter overrides the debug timestamp parameter.
2147
2148 Default: debug prefix timestamp = no
2149
2150 debug uid (G)
2151
2152 Samba is sometimes run as root and sometime run as the connected
2153 user, this boolean parameter inserts the current euid, egid, uid
2154 and gid to the timestamp message headers in the log file if turned
2155 on.
2156
2157 Note that the parameter debug timestamp must be on for this to have
2158 an effect.
2159
2160 Default: debug uid = no
2161
2162 dedicated keytab file (G)
2163
2164 Specifies the absolute path to the kerberos keytab file when
2165 kerberos method is set to "dedicated keytab".
2166
2167 Default: dedicated keytab file =
2168
2169 Example: dedicated keytab file = /usr/local/etc/krb5.keytab
2170
2171 default case (S)
2172
2173 See the section on name mangling. Also note the short preserve case
2174 parameter.
2175
2176 Default: default case = lower
2177
2178 default devmode (S)
2179
2180 This parameter is only applicable to printable services. When smbd
2181 is serving Printer Drivers to Windows NT/2k/XP clients, each
2182 printer on the Samba server has a Device Mode which defines things
2183 such as paper size and orientation and duplex settings. The device
2184 mode can only correctly be generated by the printer driver itself
2185 (which can only be executed on a Win32 platform). Because smbd is
2186 unable to execute the driver code to generate the device mode, the
2187 default behavior is to set this field to NULL.
2188
2189 Most problems with serving printer drivers to Windows NT/2k/XP
2190 clients can be traced to a problem with the generated device mode.
2191 Certain drivers will do things such as crashing the client's
2192 Explorer.exe with a NULL devmode. However, other printer drivers
2193 can cause the client's spooler service (spoolsv.exe) to die if the
2194 devmode was not created by the driver itself (i.e. smbd generates a
2195 default devmode).
2196
2197 This parameter should be used with care and tested with the printer
2198 driver in question. It is better to leave the device mode to NULL
2199 and let the Windows client set the correct values. Because drivers
2200 do not do this all the time, setting default devmode = yes will
2201 instruct smbd to generate a default one.
2202
2203 For more information on Windows NT/2k printing and Device Modes,
2204 see the MSDN documentation.
2205
2206 Default: default devmode = yes
2207
2208 default
2209
2210 This parameter is a synonym for default service.
2211
2212 default service (G)
2213
2214 This parameter specifies the name of a service which will be
2215 connected to if the service actually requested cannot be found.
2216 Note that the square brackets are NOT given in the parameter value
2217 (see example below).
2218
2219 There is no default value for this parameter. If this parameter is
2220 not given, attempting to connect to a nonexistent service results
2221 in an error.
2222
2223 Typically the default service would be a guest ok, read-only
2224 service.
2225
2226 Also note that the apparent service name will be changed to equal
2227 that of the requested service, this is very useful as it allows you
2228 to use macros like %S to make a wildcard service.
2229
2230 Note also that any "_" characters in the name of the service used
2231 in the default service will get mapped to a "/". This allows for
2232 interesting things.
2233
2234 Default: default service =
2235
2236 Example: default service = pub
2237
2238 defer sharing violations (G)
2239
2240 Windows allows specifying how a file will be shared with other
2241 processes when it is opened. Sharing violations occur when a file
2242 is opened by a different process using options that violate the
2243 share settings specified by other processes. This parameter causes
2244 smbd to act as a Windows server does, and defer returning a
2245 "sharing violation" error message for up to one second, allowing
2246 the client to close the file causing the violation in the meantime.
2247
2248 UNIX by default does not have this behaviour.
2249
2250 There should be no reason to turn off this parameter, as it is
2251 designed to enable Samba to more correctly emulate Windows.
2252
2253 Default: defer sharing violations = yes
2254
2255 delete group script (G)
2256
2257 This is the full pathname to a script that will be run AS ROOT by
2258 smbd(8) when a group is requested to be deleted. It will expand any
2259 %g to the group name passed. This script is only useful for
2260 installations using the Windows NT domain administration tools.
2261
2262 Default: delete group script =
2263
2264 deleteprinter command (G)
2265
2266 With the introduction of MS-RPC based printer support for Windows
2267 NT/2000 clients in Samba 2.2, it is now possible to delete a
2268 printer at run time by issuing the DeletePrinter() RPC call.
2269
2270 For a Samba host this means that the printer must be physically
2271 deleted from the underlying printing system. The deleteprinter
2272 command defines a script to be run which will perform the necessary
2273 operations for removing the printer from the print system and from
2274 smb.conf.
2275
2276 The deleteprinter command is automatically called with only one
2277 parameter: printer name.
2278
2279 Once the deleteprinter command has been executed, smbd will reparse
2280 the smb.conf to check that the associated printer no longer exists.
2281 If the sharename is still valid, then smbd will return an
2282 ACCESS_DENIED error to the client.
2283
2284 Default: deleteprinter command =
2285
2286 Example: deleteprinter command = /usr/bin/removeprinter
2287
2288 delete readonly (S)
2289
2290 This parameter allows readonly files to be deleted. This is not
2291 normal DOS semantics, but is allowed by UNIX.
2292
2293 This option may be useful for running applications such as rcs,
2294 where UNIX file ownership prevents changing file permissions, and
2295 DOS semantics prevent deletion of a read only file.
2296
2297 Default: delete readonly = no
2298
2299 delete share command (G)
2300
2301 Samba 2.2.0 introduced the ability to dynamically add and delete
2302 shares via the Windows NT 4.0 Server Manager. The delete share
2303 command is used to define an external program or script which will
2304 remove an existing service definition from smb.conf.
2305
2306 In order to successfully execute the delete share command, smbd
2307 requires that the administrator connects using a root account (i.e.
2308 uid == 0) or has the SeDiskOperatorPrivilege. Scripts defined in
2309 the delete share command parameter are executed as root.
2310
2311 When executed, smbd will automatically invoke the delete share
2312 command with two parameters.
2313
2314 · configFile - the location of the global smb.conf file.
2315
2316 · shareName - the name of the existing service.
2317
2318 This parameter is only used to remove file shares. To delete
2319 printer shares, see the deleteprinter command.
2320
2321 Default: delete share command =
2322
2323 Example: delete share command = /usr/local/bin/delshare
2324
2325 delete user from group script (G)
2326
2327 Full path to the script that will be called when a user is removed
2328 from a group using the Windows NT domain administration tools. It
2329 will be run by smbd(8) AS ROOT. Any %g will be replaced with the
2330 group name and any %u will be replaced with the user name.
2331
2332 Default: delete user from group script =
2333
2334 Example: delete user from group script = /usr/sbin/deluser %u %g
2335
2336 delete user script (G)
2337
2338 This is the full pathname to a script that will be run by smbd(8)
2339 when managing users with remote RPC (NT) tools.
2340
2341 This script is called when a remote client removes a user from the
2342 server, normally using 'User Manager for Domains' or rpcclient.
2343
2344 This script should delete the given UNIX username.
2345
2346 Default: delete user script =
2347
2348 Example: delete user script = /usr/local/samba/bin/del_user %u
2349
2350 delete veto files (S)
2351
2352 This option is used when Samba is attempting to delete a directory
2353 that contains one or more vetoed directories (see the veto files
2354 option). If this option is set to no (the default) then if a vetoed
2355 directory contains any non-vetoed files or directories then the
2356 directory delete will fail. This is usually what you want.
2357
2358 If this option is set to yes, then Samba will attempt to
2359 recursively delete any files and directories within the vetoed
2360 directory. This can be useful for integration with file serving
2361 systems such as NetAtalk which create meta-files within directories
2362 you might normally veto DOS/Windows users from seeing (e.g.
2363 .AppleDouble)
2364
2365 Setting delete veto files = yes allows these directories to be
2366 transparently deleted when the parent directory is deleted (so long
2367 as the user has permissions to do so).
2368
2369 Default: delete veto files = no
2370
2371 dfree cache time (S)
2372
2373 The dfree cache time should only be used on systems where a problem
2374 occurs with the internal disk space calculations. This has been
2375 known to happen with Ultrix, but may occur with other operating
2376 systems. The symptom that was seen was an error of "Abort Retry
2377 Ignore" at the end of each directory listing.
2378
2379 This is a new parameter introduced in Samba version 3.0.21. It
2380 specifies in seconds the time that smbd will cache the output of a
2381 disk free query. If set to zero (the default) no caching is done.
2382 This allows a heavily loaded server to prevent rapid spawning of
2383 dfree command scripts increasing the load.
2384
2385 By default this parameter is zero, meaning no caching will be done.
2386
2387 No default
2388
2389 Example: dfree cache time = 60
2390
2391 dfree command (S)
2392
2393 The dfree command setting should only be used on systems where a
2394 problem occurs with the internal disk space calculations. This has
2395 been known to happen with Ultrix, but may occur with other
2396 operating systems. The symptom that was seen was an error of "Abort
2397 Retry Ignore" at the end of each directory listing.
2398
2399 This setting allows the replacement of the internal routines to
2400 calculate the total disk space and amount available with an
2401 external routine. The example below gives a possible script that
2402 might fulfill this function.
2403
2404 In Samba version 3.0.21 this parameter has been changed to be a
2405 per-share parameter, and in addition the parameter dfree cache time
2406 was added to allow the output of this script to be cached for
2407 systems under heavy load.
2408
2409 The external program will be passed a single parameter indicating a
2410 directory in the filesystem being queried. This will typically
2411 consist of the string ./. The script should return two integers in
2412 ASCII. The first should be the total disk space in blocks, and the
2413 second should be the number of available blocks. An optional third
2414 return value can give the block size in bytes. The default
2415 blocksize is 1024 bytes.
2416
2417 Note: Your script should NOT be setuid or setgid and should be
2418 owned by (and writeable only by) root!
2419
2420 Where the script dfree (which must be made executable) could be:
2421
2422
2423 #!/bin/sh
2424 df "$1" | tail -1 | awk '{print $(NF-4),$(NF-2)}'
2425
2426 or perhaps (on Sys V based systems):
2427
2428
2429 #!/bin/sh
2430 /usr/bin/df -k "$1" | tail -1 | awk '{print $3" "$5}'
2431
2432 Note that you may have to replace the command names with full path
2433 names on some systems. Also note the arguments passed into the
2434 script should be quoted inside the script in case they contain
2435 special characters such as spaces or newlines.
2436
2437 By default internal routines for determining the disk capacity and
2438 remaining space will be used.
2439
2440 No default
2441
2442 Example: dfree command = /usr/local/samba/bin/dfree
2443
2444 dgram port (G)
2445
2446 Specifies which ports the server should listen on for NetBIOS
2447 datagram traffic.
2448
2449 Default: dgram port = 138
2450
2451 directory mode
2452
2453 This parameter is a synonym for directory mask.
2454
2455 directory mask (S)
2456
2457 This parameter is the octal modes which are used when converting
2458 DOS modes to UNIX modes when creating UNIX directories.
2459
2460 When a directory is created, the necessary permissions are
2461 calculated according to the mapping from DOS modes to UNIX
2462 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed
2463 with this parameter. This parameter may be thought of as a bit-wise
2464 MASK for the UNIX modes of a directory. Any bit not set here will
2465 be removed from the modes set on a directory when it is created.
2466
2467 The default value of this parameter removes the 'group' and 'other'
2468 write bits from the UNIX mode, allowing only the user who owns the
2469 directory to modify it.
2470
2471 Following this Samba will bit-wise 'OR' the UNIX mode created from
2472 this parameter with the value of the force directory mode
2473 parameter. This parameter is set to 000 by default (i.e. no extra
2474 mode bits are added).
2475
2476 Default: directory mask = 0755
2477
2478 Example: directory mask = 0775
2479
2480 directory name cache size (S)
2481
2482 This parameter specifies the size of the directory name cache for
2483 SMB1 connections. It is not used for SMB2. It will be needed to
2484 turn this off for *BSD systems.
2485
2486 Default: directory name cache size = 100
2487
2488 directory security mask (S)
2489
2490 This parameter has been removed for Samba 4.0.0.
2491
2492 No default
2493
2494 disable netbios (G)
2495
2496 Enabling this parameter will disable netbios support in Samba.
2497 Netbios is the only available form of browsing in all windows
2498 versions except for 2000 and XP.
2499
2500 Note
2501 Clients that only support netbios won't be able to see your
2502 samba server when netbios support is disabled.
2503 Default: disable netbios = no
2504
2505 disable spoolss (G)
2506
2507 Enabling this parameter will disable Samba's support for the
2508 SPOOLSS set of MS-RPC's and will yield identical behavior as Samba
2509 2.0.x. Windows NT/2000 clients will downgrade to using Lanman style
2510 printing commands. Windows 9x/ME will be unaffected by the
2511 parameter. However, this will also disable the ability to upload
2512 printer drivers to a Samba server via the Windows NT Add Printer
2513 Wizard or by using the NT printer properties dialog window. It will
2514 also disable the capability of Windows NT/2000 clients to download
2515 print drivers from the Samba host upon demand. Be very careful
2516 about enabling this parameter.
2517
2518 Default: disable spoolss = no
2519
2520 dmapi support (S)
2521
2522 This parameter specifies whether Samba should use DMAPI to
2523 determine whether a file is offline or not. This would typically be
2524 used in conjunction with a hierarchical storage system that
2525 automatically migrates files to tape.
2526
2527 Note that Samba infers the status of a file by examining the events
2528 that a DMAPI application has registered interest in. This heuristic
2529 is satisfactory for a number of hierarchical storage systems, but
2530 there may be system for which it will fail. In this case, Samba may
2531 erroneously report files to be offline.
2532
2533 This parameter is only available if a supported DMAPI
2534 implementation was found at compilation time. It will only be used
2535 if DMAPI is found to enabled on the system at run time.
2536
2537 Default: dmapi support = no
2538
2539 dns forwarder (G)
2540
2541 This option specifies the list of DNS servers that DNS requests
2542 will be forwarded to if they can not be handled by Samba itself.
2543
2544 The DNS forwarder is only used if the internal DNS server in Samba
2545 is used.
2546
2547 Default: dns forwarder =
2548
2549 Example: dns forwarder = 192.168.0.1 192.168.0.2
2550
2551 dns proxy (G)
2552
2553 Specifies that nmbd(8) when acting as a WINS server and finding
2554 that a NetBIOS name has not been registered, should treat the
2555 NetBIOS name word-for-word as a DNS name and do a lookup with the
2556 DNS server for that name on behalf of the name-querying client.
2557
2558 Note that the maximum length for a NetBIOS name is 15 characters,
2559 so the DNS name (or DNS alias) can likewise only be 15 characters,
2560 maximum.
2561
2562 nmbd spawns a second copy of itself to do the DNS name lookup
2563 requests, as doing a name lookup is a blocking action.
2564
2565 Default: dns proxy = yes
2566
2567 dns update command (G)
2568
2569 This option sets the command that is called when there are DNS
2570 updates. It should update the local machines DNS names using
2571 TSIG-GSS.
2572
2573 Default: dns update command =
2574 /builddir/build/BUILD/samba-4.11.4/source4/scripting/bin/samba_dnsupdate
2575
2576 Example: dns update command = /usr/local/sbin/dnsupdate
2577
2578 dns zone scavenging (G)
2579
2580 When enabled (the default is disabled) unused dynamic dns records
2581 are periodically removed.
2582
2583 Warning
2584 This option should not be enabled for installations created
2585 with versions of samba before 4.9. Doing this will result in
2586 the loss of static DNS entries. This is due to a bug in
2587 previous versions of samba (BUG 12451) which marked dynamic DNS
2588 records as static and static records as dynamic.
2589
2590 Note
2591 If one record for a DNS name is static (non-aging) then no
2592 other record for that DNS name will be scavenged.
2593 Default: dns zone scavenging = no
2594
2595 domain logons (G)
2596
2597 If set to yes, the Samba server will provide the netlogon service
2598 for Windows 9X network logons for the workgroup it is in. This will
2599 also cause the Samba server to act as a domain controller for NT4
2600 style domain services. For more details on setting up this feature
2601 see the Domain Control chapter of the Samba HOWTO Collection.
2602
2603 Default: domain logons = no
2604
2605 domain master (G)
2606
2607 Tell smbd(8) to enable WAN-wide browse list collation. Setting this
2608 option causes nmbd to claim a special domain specific NetBIOS name
2609 that identifies it as a domain master browser for its given
2610 workgroup. Local master browsers in the same workgroup on
2611 broadcast-isolated subnets will give this nmbd their local browse
2612 lists, and then ask smbd(8) for a complete copy of the browse list
2613 for the whole wide area network. Browser clients will then contact
2614 their local master browser, and will receive the domain-wide browse
2615 list, instead of just the list for their broadcast-isolated subnet.
2616
2617 Note that Windows NT Primary Domain Controllers expect to be able
2618 to claim this workgroup specific special NetBIOS name that
2619 identifies them as domain master browsers for that workgroup by
2620 default (i.e. there is no way to prevent a Windows NT PDC from
2621 attempting to do this). This means that if this parameter is set
2622 and nmbd claims the special name for a workgroup before a Windows
2623 NT PDC is able to do so then cross subnet browsing will behave
2624 strangely and may fail.
2625
2626 If domain logons = yes, then the default behavior is to enable the
2627 domain master parameter. If domain logons is not enabled (the
2628 default setting), then neither will domain master be enabled by
2629 default.
2630
2631 When domain logons = Yes the default setting for this parameter is
2632 Yes, with the result that Samba will be a PDC. If domain master =
2633 No, Samba will function as a BDC. In general, this parameter should
2634 be set to 'No' only on a BDC.
2635
2636 Default: domain master = auto
2637
2638 dont descend (S)
2639
2640 There are certain directories on some systems (e.g., the /proc tree
2641 under Linux) that are either not of interest to clients or are
2642 infinitely deep (recursive). This parameter allows you to specify a
2643 comma-delimited list of directories that the server should always
2644 show as empty.
2645
2646 Note that Samba can be very fussy about the exact format of the
2647 "dont descend" entries. For example you may need ./proc instead of
2648 just /proc. Experimentation is the best policy :-)
2649
2650 Default: dont descend =
2651
2652 Example: dont descend = /proc,/dev
2653
2654 dos charset (G)
2655
2656 DOS SMB clients assume the server has the same charset as they do.
2657 This option specifies which charset Samba should talk to DOS
2658 clients.
2659
2660 The default depends on which charsets you have installed. Samba
2661 tries to use charset 850 but falls back to ASCII in case it is not
2662 available. Run testparm(1) to check the default on your system.
2663
2664 No default
2665
2666 dos filemode (S)
2667
2668 The default behavior in Samba is to provide UNIX-like behavior
2669 where only the owner of a file/directory is able to change the
2670 permissions on it. However, this behavior is often confusing to
2671 DOS/Windows users. Enabling this parameter allows a user who has
2672 write access to the file (by whatever means, including an ACL
2673 permission) to modify the permissions (including ACL) on it. Note
2674 that a user belonging to the group owning the file will not be
2675 allowed to change permissions if the group is only granted read
2676 access. Ownership of the file/directory may also be changed. Note
2677 that using the VFS modules acl_xattr or acl_tdb which store native
2678 Windows as meta-data will automatically turn this option on for any
2679 share for which they are loaded, as they require this option to
2680 emulate Windows ACLs correctly.
2681
2682 Default: dos filemode = no
2683
2684 dos filetime resolution (S)
2685
2686 Under the DOS and Windows FAT filesystem, the finest granularity on
2687 time resolution is two seconds. Setting this parameter for a share
2688 causes Samba to round the reported time down to the nearest two
2689 second boundary when a query call that requires one second
2690 resolution is made to smbd(8).
2691
2692 This option is mainly used as a compatibility option for Visual C++
2693 when used against Samba shares. If oplocks are enabled on a share,
2694 Visual C++ uses two different time reading calls to check if a file
2695 has changed since it was last read. One of these calls uses a
2696 one-second granularity, the other uses a two second granularity. As
2697 the two second call rounds any odd second down, then if the file
2698 has a timestamp of an odd number of seconds then the two timestamps
2699 will not match and Visual C++ will keep reporting the file has
2700 changed. Setting this option causes the two timestamps to match,
2701 and Visual C++ is happy.
2702
2703 Default: dos filetime resolution = no
2704
2705 dos filetimes (S)
2706
2707 Under DOS and Windows, if a user can write to a file they can
2708 change the timestamp on it. Under POSIX semantics, only the owner
2709 of the file or root may change the timestamp. By default, Samba
2710 emulates the DOS semantics and allows one to change the timestamp
2711 on a file if the user smbd is acting on behalf has write
2712 permissions. Due to changes in Microsoft Office 2000 and beyond,
2713 the default for this parameter has been changed from "no" to "yes"
2714 in Samba 3.0.14 and above. Microsoft Excel will display dialog box
2715 warnings about the file being changed by another user if this
2716 parameter is not set to "yes" and files are being shared between
2717 users.
2718
2719 Default: dos filetimes = yes
2720
2721 dsdb event notification (G)
2722
2723 When enabled, this option causes Samba (acting as an Active
2724 Directory Domain Controller) to stream Samba database events across
2725 the internal message bus. Scripts built using Samba's python
2726 bindings can listen to these events by registering as the service
2727 dsdb_event.
2728
2729 This should be considered a developer option (it assists in the
2730 Samba testsuite) rather than a facility for external auditing, as
2731 message delivery is not guaranteed (a feature that the testsuite
2732 works around).
2733
2734 The Samba database events are also logged via the normal logging
2735 methods when the log level is set appropriately.
2736
2737 Default: dsdb event notification = no
2738
2739 dsdb group change notification (G)
2740
2741 When enabled, this option causes Samba (acting as an Active
2742 Directory Domain Controller) to stream group membership change
2743 events across the internal message bus. Scripts built using Samba's
2744 python bindings can listen to these events by registering as the
2745 service dsdb_group_event.
2746
2747 This should be considered a developer option (it assists in the
2748 Samba testsuite) rather than a facility for external auditing, as
2749 message delivery is not guaranteed (a feature that the testsuite
2750 works around).
2751
2752 The group events are also logged via the normal logging methods
2753 when the log level is set appropriately.
2754
2755 Default: dsdb group change notification = no
2756
2757 dsdb password event notification (G)
2758
2759 When enabled, this option causes Samba (acting as an Active
2760 Directory Domain Controller) to stream password change and reset
2761 events across the internal message bus. Scripts built using Samba's
2762 python bindings can listen to these events by registering as the
2763 service password_event.
2764
2765 This should be considered a developer option (it assists in the
2766 Samba testsuite) rather than a facility for external auditing, as
2767 message delivery is not guaranteed (a feature that the testsuite
2768 works around).
2769
2770 The password events are also logged via the normal logging methods
2771 when the log level is set appropriately.
2772
2773 Default: dsdb password event notification = no
2774
2775 durable handles (S)
2776
2777 This boolean parameter controls whether Samba can grant SMB2
2778 durable file handles on a share.
2779
2780 Note that durable handles are only enabled if kernel oplocks = no,
2781 kernel share modes = no, and posix locking = no, i.e. if the share
2782 is configured for CIFS/SMB2 only access, not supporting
2783 interoperability features with local UNIX processes or NFS
2784 operations.
2785
2786 Also note that, for the time being, durability is not granted for a
2787 handle that has the delete on close flag set.
2788
2789 Default: durable handles = yes
2790
2791 ea support (S)
2792
2793 This boolean parameter controls whether smbd(8) will allow clients
2794 to attempt to access extended attributes on a share. In order to
2795 enable this parameter on a setup with default VFS modules:
2796
2797 · Samba must have been built with extended attributes
2798 support.
2799
2800 · The underlying filesystem exposed by the share must
2801 support extended attributes (e.g. the getfattr(1) /
2802 setfattr(1) utilities must work).
2803
2804 Note that the SMB protocol allows setting attributes whose value is
2805 64K bytes long, and that on NTFS, the maximum storage space for
2806 extended attributes per file is 64K. On most UNIX systems (Solaris
2807 and ZFS file system being the exception), the limits are much lower
2808 - typically 4K. Worse, the same 4K space is often used to store
2809 system metadata such as POSIX ACLs, or Samba's NT ACLs. Giving
2810 clients access to this tight space via extended attribute support
2811 could consume all of it by unsuspecting client applications, which
2812 would prevent changing system metadata due to lack of space. The
2813 default has changed to yes in Samba release 4.9.0 and above to
2814 allow better Windows fileserver compatibility in a default install.
2815
2816 Default: ea support = yes
2817
2818 enable asu support (G)
2819
2820 Hosts running the "Advanced Server for Unix (ASU)" product require
2821 some special accomodations such as creating a builtin [ADMIN$]
2822 share that only supports IPC connections. The has been the default
2823 behavior in smbd for many years. However, certain Microsoft
2824 applications such as the Print Migrator tool require that the
2825 remote server support an [ADMIN$] file share. Disabling this
2826 parameter allows for creating an [ADMIN$] file share in smb.conf.
2827
2828 Default: enable asu support = no
2829
2830 enable core files (G)
2831
2832 This parameter specifies whether core dumps should be written on
2833 internal exits. Normally set to yes. You should never need to
2834 change this.
2835
2836 Default: enable core files = yes
2837
2838 Example: enable core files = no
2839
2840 enable privileges (G)
2841
2842 This deprecated parameter controls whether or not smbd will honor
2843 privileges assigned to specific SIDs via either net rpc rights or
2844 one of the Windows user and group manager tools. This parameter is
2845 enabled by default. It can be disabled to prevent members of the
2846 Domain Admins group from being able to assign privileges to users
2847 or groups which can then result in certain smbd operations running
2848 as root that would normally run under the context of the connected
2849 user.
2850
2851 An example of how privileges can be used is to assign the right to
2852 join clients to a Samba controlled domain without providing root
2853 access to the server via smbd.
2854
2855 Please read the extended description provided in the Samba HOWTO
2856 documentation.
2857
2858 Default: enable privileges = yes
2859
2860 enable spoolss (G)
2861
2862 Inverted synonym for disable spoolss.
2863
2864 Default: enable spoolss = yes
2865
2866 encrypt passwords (G)
2867
2868 This parameter has been deprecated since Samba 4.11 and support for
2869 plaintext (as distinct from NTLM, NTLMv2 or Kerberos
2870 authentication) will be removed in a future Samba release.
2871
2872 That is, in the future, the current default of encrypt passwords =
2873 yes will be the enforced behaviour.
2874
2875 This boolean controls whether encrypted passwords will be
2876 negotiated with the client. Note that Windows NT 4.0 SP3 and above
2877 and also Windows 98 will by default expect encrypted passwords
2878 unless a registry entry is changed. To use encrypted passwords in
2879 Samba see the chapter "User Database" in the Samba HOWTO
2880 Collection.
2881
2882 MS Windows clients that expect Microsoft encrypted passwords and
2883 that do not have plain text password support enabled will be able
2884 to connect only to a Samba server that has encrypted password
2885 support enabled and for which the user accounts have a valid
2886 encrypted password. Refer to the smbpasswd command man page for
2887 information regarding the creation of encrypted passwords for user
2888 accounts.
2889
2890 The use of plain text passwords is NOT advised as support for this
2891 feature is no longer maintained in Microsoft Windows products. If
2892 you want to use plain text passwords you must set this parameter to
2893 no.
2894
2895 In order for encrypted passwords to work correctly smbd(8) must
2896 either have access to a local smbpasswd(5) file (see the
2897 smbpasswd(8) program for information on how to set up and maintain
2898 this file), or set the security = [domain|ads] parameter which
2899 causes smbd to authenticate against another server.
2900
2901 Default: encrypt passwords = yes
2902
2903 enhanced browsing (G)
2904
2905 This option enables a couple of enhancements to cross-subnet browse
2906 propagation that have been added in Samba but which are not
2907 standard in Microsoft implementations.
2908
2909 The first enhancement to browse propagation consists of a regular
2910 wildcard query to a Samba WINS server for all Domain Master
2911 Browsers, followed by a browse synchronization with each of the
2912 returned DMBs. The second enhancement consists of a regular
2913 randomised browse synchronization with all currently known DMBs.
2914
2915 You may wish to disable this option if you have a problem with
2916 empty workgroups not disappearing from browse lists. Due to the
2917 restrictions of the browse protocols, these enhancements can cause
2918 a empty workgroup to stay around forever which can be annoying.
2919
2920 In general you should leave this option enabled as it makes
2921 cross-subnet browse propagation much more reliable.
2922
2923 Default: enhanced browsing = yes
2924
2925 enumports command (G)
2926
2927 The concept of a "port" is fairly foreign to UNIX hosts. Under
2928 Windows NT/2000 print servers, a port is associated with a port
2929 monitor and generally takes the form of a local port (i.e. LPT1:,
2930 COM1:, FILE:) or a remote port (i.e. LPD Port Monitor, etc...). By
2931 default, Samba has only one port defined--"Samba Printer Port".
2932 Under Windows NT/2000, all printers must have a valid port name. If
2933 you wish to have a list of ports displayed (smbd does not use a
2934 port name for anything) other than the default "Samba Printer
2935 Port", you can define enumports command to point to a program which
2936 should generate a list of ports, one per line, to standard output.
2937 This listing will then be used in response to the level 1 and 2
2938 EnumPorts() RPC.
2939
2940 Default: enumports command =
2941
2942 Example: enumports command = /usr/bin/listports
2943
2944 eventlog list (G)
2945
2946 This option defines a list of log names that Samba will report to
2947 the Microsoft EventViewer utility. The listed eventlogs will be
2948 associated with tdb file on disk in the $(statedir)/eventlog.
2949
2950 The administrator must use an external process to parse the normal
2951 Unix logs such as /var/log/messages and write then entries to the
2952 eventlog tdb files. Refer to the eventlogadm(8) utility for how to
2953 write eventlog entries.
2954
2955 Default: eventlog list =
2956
2957 Example: eventlog list = Security Application Syslog Apache
2958
2959 fake directory create times (S)
2960
2961 NTFS and Windows VFAT file systems keep a create time for all files
2962 and directories. This is not the same as the ctime - status change
2963 time - that Unix keeps, so Samba by default reports the earliest of
2964 the various times Unix does keep. Setting this parameter for a
2965 share causes Samba to always report midnight 1-1-1980 as the create
2966 time for directories.
2967
2968 This option is mainly used as a compatibility option for Visual C++
2969 when used against Samba shares. Visual C++ generated makefiles have
2970 the object directory as a dependency for each object file, and a
2971 make rule to create the directory. Also, when NMAKE compares
2972 timestamps it uses the creation time when examining a directory.
2973 Thus the object directory will be created if it does not exist, but
2974 once it does exist it will always have an earlier timestamp than
2975 the object files it contains.
2976
2977 However, Unix time semantics mean that the create time reported by
2978 Samba will be updated whenever a file is created or deleted in the
2979 directory. NMAKE finds all object files in the object directory.
2980 The timestamp of the last one built is then compared to the
2981 timestamp of the object directory. If the directory's timestamp if
2982 newer, then all object files will be rebuilt. Enabling this option
2983 ensures directories always predate their contents and an NMAKE
2984 build will proceed as expected.
2985
2986 Default: fake directory create times = no
2987
2988 fake oplocks (S)
2989
2990 Oplocks are the way that SMB clients get permission from a server
2991 to locally cache file operations. If a server grants an oplock
2992 (opportunistic lock) then the client is free to assume that it is
2993 the only one accessing the file and it will aggressively cache file
2994 data. With some oplock types the client may even cache file
2995 open/close operations. This can give enormous performance benefits.
2996
2997 When you set fake oplocks = yes, smbd(8) will always grant oplock
2998 requests no matter how many clients are using the file.
2999
3000 It is generally much better to use the real oplocks support rather
3001 than this parameter.
3002
3003 If you enable this option on all read-only shares or shares that
3004 you know will only be accessed from one client at a time such as
3005 physically read-only media like CDROMs, you will see a big
3006 performance improvement on many operations. If you enable this
3007 option on shares where multiple clients may be accessing the files
3008 read-write at the same time you can get data corruption. Use this
3009 option carefully!
3010
3011 Default: fake oplocks = no
3012
3013 follow symlinks (S)
3014
3015 This parameter allows the Samba administrator to stop smbd(8) from
3016 following symbolic links in a particular share. Setting this
3017 parameter to no prevents any file or directory that is a symbolic
3018 link from being followed (the user will get an error). This option
3019 is very useful to stop users from adding a symbolic link to
3020 /etc/passwd in their home directory for instance. However it will
3021 slow filename lookups down slightly.
3022
3023 This option is enabled (i.e. smbd will follow symbolic links) by
3024 default.
3025
3026 Default: follow symlinks = yes
3027
3028 force create mode (S)
3029
3030 This parameter specifies a set of UNIX mode bit permissions that
3031 will always be set on a file created by Samba. This is done by
3032 bitwise 'OR'ing these bits onto the mode bits of a file that is
3033 being created. The default for this parameter is (in octal) 000.
3034 The modes in this parameter are bitwise 'OR'ed onto the file mode
3035 after the mask set in the create mask parameter is applied.
3036
3037 The example below would force all newly created files to have read
3038 and execute permissions set for 'group' and 'other' as well as the
3039 read/write/execute bits set for the 'user'.
3040
3041 Default: force create mode = 0000
3042
3043 Example: force create mode = 0755
3044
3045 force directory mode (S)
3046
3047 This parameter specifies a set of UNIX mode bit permissions that
3048 will always be set on a directory created by Samba. This is done by
3049 bitwise 'OR'ing these bits onto the mode bits of a directory that
3050 is being created. The default for this parameter is (in octal) 0000
3051 which will not add any extra permission bits to a created
3052 directory. This operation is done after the mode mask in the
3053 parameter directory mask is applied.
3054
3055 The example below would force all created directories to have read
3056 and execute permissions set for 'group' and 'other' as well as the
3057 read/write/execute bits set for the 'user'.
3058
3059 Default: force directory mode = 0000
3060
3061 Example: force directory mode = 0755
3062
3063 force directory security mode (S)
3064
3065 This parameter has been removed for Samba 4.0.0.
3066
3067 No default
3068
3069 group
3070
3071 This parameter is a synonym for force group.
3072
3073 force group (S)
3074
3075 This specifies a UNIX group name that will be assigned as the
3076 default primary group for all users connecting to this service.
3077 This is useful for sharing files by ensuring that all access to
3078 files on service will use the named group for their permissions
3079 checking. Thus, by assigning permissions for this group to the
3080 files and directories within this service the Samba administrator
3081 can restrict or allow sharing of these files.
3082
3083 In Samba 2.0.5 and above this parameter has extended functionality
3084 in the following way. If the group name listed here has a '+'
3085 character prepended to it then the current user accessing the share
3086 only has the primary group default assigned to this group if they
3087 are already assigned as a member of that group. This allows an
3088 administrator to decide that only users who are already in a
3089 particular group will create files with group ownership set to that
3090 group. This gives a finer granularity of ownership assignment. For
3091 example, the setting force group = +sys means that only users who
3092 are already in group sys will have their default primary group
3093 assigned to sys when accessing this Samba share. All other users
3094 will retain their ordinary primary group.
3095
3096 If the force user parameter is also set the group specified in
3097 force group will override the primary group set in force user.
3098
3099 Default: force group =
3100
3101 Example: force group = agroup
3102
3103 force printername (S)
3104
3105 When printing from Windows NT (or later), each printer in smb.conf
3106 has two associated names which can be used by the client. The first
3107 is the sharename (or shortname) defined in smb.conf. This is the
3108 only printername available for use by Windows 9x clients. The
3109 second name associated with a printer can be seen when browsing to
3110 the "Printers" (or "Printers and Faxes") folder on the Samba
3111 server. This is referred to simply as the printername (not to be
3112 confused with the printer name option).
3113
3114 When assigning a new driver to a printer on a remote Windows
3115 compatible print server such as Samba, the Windows client will
3116 rename the printer to match the driver name just uploaded. This can
3117 result in confusion for users when multiple printers are bound to
3118 the same driver. To prevent Samba from allowing the printer's
3119 printername to differ from the sharename defined in smb.conf, set
3120 force printername = yes.
3121
3122 Be aware that enabling this parameter may affect migrating printers
3123 from a Windows server to Samba since Windows has no way to force
3124 the sharename and printername to match.
3125
3126 It is recommended that this parameter's value not be changed once
3127 the printer is in use by clients as this could cause a user not be
3128 able to delete printer connections from their local Printers
3129 folder.
3130
3131 Default: force printername = no
3132
3133 force security mode (S)
3134
3135 This parameter has been removed for Samba 4.0.0.
3136
3137 No default
3138
3139 force unknown acl user (S)
3140
3141 If this parameter is set, a Windows NT ACL that contains an unknown
3142 SID (security descriptor, or representation of a user or group id)
3143 as the owner or group owner of the file will be silently mapped
3144 into the current UNIX uid or gid of the currently connected user.
3145
3146 This is designed to allow Windows NT clients to copy files and
3147 folders containing ACLs that were created locally on the client
3148 machine and contain users local to that machine only (no domain
3149 users) to be copied to a Samba server (usually with XCOPY /O) and
3150 have the unknown userid and groupid of the file owner map to the
3151 current connected user. This can only be fixed correctly when
3152 winbindd allows arbitrary mapping from any Windows NT SID to a UNIX
3153 uid or gid.
3154
3155 Try using this parameter when XCOPY /O gives an ACCESS_DENIED
3156 error.
3157
3158 Default: force unknown acl user = no
3159
3160 force user (S)
3161
3162 This specifies a UNIX user name that will be assigned as the
3163 default user for all users connecting to this service. This is
3164 useful for sharing files. You should also use it carefully as using
3165 it incorrectly can cause security problems.
3166
3167 This user name only gets used once a connection is established.
3168 Thus clients still need to connect as a valid user and supply a
3169 valid password. Once connected, all file operations will be
3170 performed as the "forced user", no matter what username the client
3171 connected as. This can be very useful.
3172
3173 In Samba 2.0.5 and above this parameter also causes the primary
3174 group of the forced user to be used as the primary group for all
3175 file activity. Prior to 2.0.5 the primary group was left as the
3176 primary group of the connecting user (this was a bug).
3177
3178 Default: force user =
3179
3180 Example: force user = auser
3181
3182 fss: prune stale (G)
3183
3184 When enabled, Samba's File Server Remote VSS Protocol (FSRVP)
3185 server checks all FSRVP initiated snapshots on startup, and removes
3186 any corresponding state (including share definitions) for
3187 nonexistent snapshot paths.
3188
3189 Default: fss: prune stale = no
3190
3191 Example: fss: prune stale = yes
3192
3193 fss: sequence timeout (G)
3194
3195 The File Server Remote VSS Protocol (FSRVP) server includes a
3196 message sequence timer to ensure cleanup on unexpected client
3197 disconnect. This parameter overrides the default timeout between
3198 FSRVP operations. FSRVP timeouts can be completely disabled via a
3199 value of 0.
3200
3201 Default: fss: sequence timeout = 180 or 1800, depending on
3202 operation
3203
3204 Example: fss: sequence timeout = 0
3205
3206 fstype (S)
3207
3208 This parameter allows the administrator to configure the string
3209 that specifies the type of filesystem a share is using that is
3210 reported by smbd(8) when a client queries the filesystem type for a
3211 share. The default type is NTFS for compatibility with Windows NT
3212 but this can be changed to other strings such as Samba or FAT if
3213 required.
3214
3215 Default: fstype = NTFS
3216
3217 Example: fstype = Samba
3218
3219 get quota command (G)
3220
3221 The get quota command should only be used whenever there is no
3222 operating system API available from the OS that samba can use.
3223
3224 This option is only available Samba was compiled with quotas
3225 support.
3226
3227 This parameter should specify the path to a script that queries the
3228 quota information for the specified user/group for the partition
3229 that the specified directory is on.
3230
3231 Such a script is being given 3 arguments:
3232
3233 · directory
3234
3235 · type of query
3236
3237 · uid of user or gid of group
3238
3239 The directory is actually mostly just "." - It needs to be treated
3240 relatively to the current working directory that the script can
3241 also query.
3242
3243 The type of query can be one of:
3244
3245 · 1 - user quotas
3246
3247 · 2 - user default quotas (uid = -1)
3248
3249 · 3 - group quotas
3250
3251 · 4 - group default quotas (gid = -1)
3252
3253 This script should print one line as output with spaces between the
3254 columns. The printed columns should be:
3255
3256 · 1 - quota flags (0 = no quotas, 1 = quotas enabled, 2 =
3257 quotas enabled and enforced)
3258
3259 · 2 - number of currently used blocks
3260
3261 · 3 - the softlimit number of blocks
3262
3263 · 4 - the hardlimit number of blocks
3264
3265 · 5 - currently used number of inodes
3266
3267 · 6 - the softlimit number of inodes
3268
3269 · 7 - the hardlimit number of inodes
3270
3271 · 8 (optional) - the number of bytes in a block(default is
3272 1024)
3273
3274 Default: get quota command =
3275
3276 Example: get quota command = /usr/local/sbin/query_quota
3277
3278 getwd cache (G)
3279
3280 This is a tuning option. When this is enabled a caching algorithm
3281 will be used to reduce the time taken for getwd() calls. This can
3282 have a significant impact on performance, especially when the wide
3283 links parameter is set to no.
3284
3285 Default: getwd cache = yes
3286
3287 gpo update command (G)
3288
3289 This option sets the command that is called to apply GPO policies.
3290 The samba-gpupdate script applies System Access and Kerberos
3291 Policies to the KDC. System Access policies set minPwdAge,
3292 maxPwdAge, minPwdLength, and pwdProperties in the samdb. Kerberos
3293 Policies set kdc:service ticket lifetime, kdc:user ticket lifetime,
3294 and kdc:renewal lifetime in smb.conf.
3295
3296 Default: gpo update command =
3297 /builddir/build/BUILD/samba-4.11.4/source4/scripting/bin/samba-gpupdate
3298
3299 Example: gpo update command = /usr/local/sbin/gpoupdate
3300
3301 guest account (G)
3302
3303 This is a username which will be used for access to services which
3304 are specified as guest ok (see below). Whatever privileges this
3305 user has will be available to any client connecting to the guest
3306 service. This user must exist in the password file, but does not
3307 require a valid login. The user account "ftp" is often a good
3308 choice for this parameter.
3309
3310 On some systems the default guest account "nobody" may not be able
3311 to print. Use another account in this case. You should test this by
3312 trying to log in as your guest user (perhaps by using the su -
3313 command) and trying to print using the system print command such as
3314 lpr(1) or lp(1).
3315
3316 This parameter does not accept % macros, because many parts of the
3317 system require this value to be constant for correct operation.
3318
3319 Default: guest account = nobody # default can be changed at
3320 compile-time
3321
3322 Example: guest account = ftp
3323
3324 public
3325
3326 This parameter is a synonym for guest ok.
3327
3328 guest ok (S)
3329
3330 If this parameter is yes for a service, then no password is
3331 required to connect to the service. Privileges will be those of the
3332 guest account.
3333
3334 This parameter nullifies the benefits of setting restrict anonymous
3335 = 2
3336
3337 See the section below on security for more information about this
3338 option.
3339
3340 Default: guest ok = no
3341
3342 only guest
3343
3344 This parameter is a synonym for guest only.
3345
3346 guest only (S)
3347
3348 If this parameter is yes for a service, then only guest connections
3349 to the service are permitted. This parameter will have no effect if
3350 guest ok is not set for the service.
3351
3352 See the section below on security for more information about this
3353 option.
3354
3355 Default: guest only = no
3356
3357 hide dot files (S)
3358
3359 This is a boolean parameter that controls whether files starting
3360 with a dot appear as hidden files.
3361
3362 Default: hide dot files = yes
3363
3364 hide files (S)
3365
3366 This is a list of files or directories that are not visible but are
3367 accessible. The DOS 'hidden' attribute is applied to any files or
3368 directories that match.
3369
3370 Each entry in the list must be separated by a '/', which allows
3371 spaces to be included in the entry. '*' and '?' can be used to
3372 specify multiple files or directories as in DOS wildcards.
3373
3374 Each entry must be a Unix path, not a DOS path and must not include
3375 the Unix directory separator '/'.
3376
3377 Note that the case sensitivity option is applicable in hiding
3378 files.
3379
3380 Setting this parameter will affect the performance of Samba, as it
3381 will be forced to check all files and directories for a match as
3382 they are scanned.
3383
3384 The example shown above is based on files that the Macintosh SMB
3385 client (DAVE) available from Thursby creates for internal use, and
3386 also still hides all files beginning with a dot.
3387
3388 An example of us of this parameter is:
3389
3390 hide files = /.*/DesktopFolderDB/TrashFor%m/resource.frk/
3391
3392 Default: hide files = # no file are hidden
3393
3394 hide new files timeout (S)
3395
3396 Setting this parameter to something but 0 hides files that have
3397 been modified less than N seconds ago.
3398
3399 It can be used for ingest/process queue style workloads. A
3400 processing application should only see files that are definitely
3401 finished. As many applications do not have proper external workflow
3402 control, this can be a way to make sure processing does not
3403 interfere with file ingest.
3404
3405 Default: hide new files timeout = 0
3406
3407 hide special files (S)
3408
3409 This parameter prevents clients from seeing special files such as
3410 sockets, devices and fifo's in directory listings.
3411
3412 Default: hide special files = no
3413
3414 hide unreadable (S)
3415
3416 This parameter prevents clients from seeing the existence of files
3417 that cannot be read. Defaults to off.
3418
3419 Please note that enabling this can slow down listing large
3420 directories significantly. Samba has to evaluate the ACLs of all
3421 directory members, which can be a lot of effort.
3422
3423 Default: hide unreadable = no
3424
3425 hide unwriteable files (S)
3426
3427 This parameter prevents clients from seeing the existence of files
3428 that cannot be written to. Defaults to off. Note that unwriteable
3429 directories are shown as usual.
3430
3431 Please note that enabling this can slow down listing large
3432 directories significantly. Samba has to evaluate the ACLs of all
3433 directory members, which can be a lot of effort.
3434
3435 Default: hide unwriteable files = no
3436
3437 homedir map (G)
3438
3439 If nis homedir is yes, and smbd(8) is also acting as a Win95/98
3440 logon server then this parameter specifies the NIS (or YP) map from
3441 which the server for the user's home directory should be extracted.
3442 At present, only the Sun auto.home map format is understood. The
3443 form of the map is:
3444
3445 username server:/some/file/system
3446
3447 and the program will extract the servername from before the first
3448 ':'. There should probably be a better parsing system that copes
3449 with different map formats and also Amd (another automounter) maps.
3450
3451 Note
3452 A working NIS client is required on the system for this option
3453 to work.
3454 Default: homedir map =
3455
3456 Example: homedir map = amd.homedir
3457
3458 host msdfs (G)
3459
3460 If set to yes, Samba will act as a Dfs server, and allow Dfs-aware
3461 clients to browse Dfs trees hosted on the server.
3462
3463 See also the msdfs root share level parameter. For more information
3464 on setting up a Dfs tree on Samba, refer to the MSFDS chapter in
3465 the book Samba3-HOWTO.
3466
3467 Default: host msdfs = yes
3468
3469 hostname lookups (G)
3470
3471 Specifies whether samba should use (expensive) hostname lookups or
3472 use the ip addresses instead. An example place where hostname
3473 lookups are currently used is when checking the hosts deny and
3474 hosts allow.
3475
3476 Default: hostname lookups = no
3477
3478 Example: hostname lookups = yes
3479
3480 allow hosts
3481
3482 This parameter is a synonym for hosts allow.
3483
3484 hosts allow (S)
3485
3486 A synonym for this parameter is allow hosts.
3487
3488 This parameter is a comma, space, or tab delimited set of hosts
3489 which are permitted to access a service.
3490
3491 If specified in the [global] section then it will apply to all
3492 services, regardless of whether the individual service has a
3493 different setting.
3494
3495 You can specify the hosts by name or IP number. For example, you
3496 could restrict access to only the hosts on a Class C subnet with
3497 something like allow hosts = 150.203.5.. The full syntax of the
3498 list is described in the man page hosts_access(5). Note that this
3499 man page may not be present on your system, so a brief description
3500 will be given here also.
3501
3502 Note that the localhost address 127.0.0.1 will always be allowed
3503 access unless specifically denied by a hosts deny option.
3504
3505 You can also specify hosts by network/netmask pairs and by netgroup
3506 names if your system supports netgroups. The EXCEPT keyword can
3507 also be used to limit a wildcard list. The following examples may
3508 provide some help:
3509
3510 Example 1: allow all IPs in 150.203.*.*; except one
3511
3512 hosts allow = 150.203. EXCEPT 150.203.6.66
3513
3514 Example 2: allow hosts that match the given network/netmask
3515
3516 hosts allow = 150.203.15.0/255.255.255.0
3517
3518 Example 3: allow a couple of hosts
3519
3520 hosts allow = lapland, arvidsjaur
3521
3522 Example 4: allow only hosts in NIS netgroup "foonet", but deny
3523 access from one particular host
3524
3525 hosts allow = @foonet
3526
3527 hosts deny = pirate
3528
3529 Note
3530 Note that access still requires suitable user-level passwords.
3531 See testparm(1) for a way of testing your host access to see if it
3532 does what you expect.
3533
3534 Default: hosts allow = # none (i.e., all hosts permitted access)
3535
3536 Example: hosts allow = 150.203.5. myhost.mynet.edu.au
3537
3538 deny hosts
3539
3540 This parameter is a synonym for hosts deny.
3541
3542 hosts deny (S)
3543
3544 The opposite of hosts allow - hosts listed here are NOT permitted
3545 access to services unless the specific services have their own
3546 lists to override this one. Where the lists conflict, the allow
3547 list takes precedence.
3548
3549 In the event that it is necessary to deny all by default, use the
3550 keyword ALL (or the netmask 0.0.0.0/0) and then explicitly specify
3551 to the hosts allow = hosts allow parameter those hosts that should
3552 be permitted access.
3553
3554 Default: hosts deny = # none (i.e., no hosts specifically
3555 excluded)
3556
3557 Example: hosts deny = 150.203.4. badhost.mynet.edu.au
3558
3559 idmap backend (G)
3560
3561 The idmap backend provides a plugin interface for Winbind to use
3562 varying backends to store SID/uid/gid mapping tables.
3563
3564 This option specifies the default backend that is used when no
3565 special configuration set, but it is now deprecated in favour of
3566 the new spelling idmap config * : backend.
3567
3568 Default: idmap backend = tdb
3569
3570 idmap cache time (G)
3571
3572 This parameter specifies the number of seconds that Winbind's idmap
3573 interface will cache positive SID/uid/gid query results. By
3574 default, Samba will cache these results for one week.
3575
3576 Default: idmap cache time = 604800
3577
3578 idmap config DOMAIN : OPTION (G)
3579
3580 ID mapping in Samba is the mapping between Windows SIDs and Unix
3581 user and group IDs. This is performed by Winbindd with a
3582 configurable plugin interface. Samba's ID mapping is configured by
3583 options starting with the idmap config prefix. An idmap option
3584 consists of the idmap config prefix, followed by a domain name or
3585 the asterisk character (*), a colon, and the name of an idmap
3586 setting for the chosen domain.
3587
3588 The idmap configuration is hence divided into groups, one group for
3589 each domain to be configured, and one group with the asterisk
3590 instead of a proper domain name, which specifies the default
3591 configuration that is used to catch all domains that do not have an
3592 explicit idmap configuration of their own.
3593
3594 There are three general options available:
3595
3596 backend = backend_name
3597 This specifies the name of the idmap plugin to use as the
3598 SID/uid/gid backend for this domain. The standard backends are
3599 tdb (idmap_tdb(8)), tdb2 (idmap_tdb2(8)), ldap (idmap_ldap(8)),
3600 rid (idmap_rid(8)), hash (idmap_hash(8)), autorid
3601 (idmap_autorid(8)), ad (idmap_ad(8)) and nss (idmap_nss(8)).
3602 The corresponding manual pages contain the details, but here is
3603 a summary.
3604
3605 The first three of these create mappings of their own using
3606 internal unixid counters and store the mappings in a database.
3607 These are suitable for use in the default idmap configuration.
3608 The rid and hash backends use a pure algorithmic calculation to
3609 determine the unixid for a SID. The autorid module is a mixture
3610 of the tdb and rid backend. It creates ranges for each domain
3611 encountered and then uses the rid algorithm for each of these
3612 automatically configured domains individually. The ad backend
3613 uses unix ids stored in Active Directory via the standard
3614 schema extensions. The nss backend reverses the standard
3615 winbindd setup and gets the unix ids via names from nsswitch
3616 which can be useful in an ldap setup.
3617
3618 range = low - high
3619 Defines the available matching uid and gid range for which the
3620 backend is authoritative. For allocating backends, this also
3621 defines the start and the end of the range for allocating new
3622 unique IDs.
3623
3624 winbind uses this parameter to find the backend that is
3625 authoritative for a unix ID to SID mapping, so it must be set
3626 for each individually configured domain and for the default
3627 configuration. The configured ranges must be mutually disjoint.
3628
3629 read only = yes|no
3630 This option can be used to turn the writing backends tdb, tdb2,
3631 and ldap into read only mode. This can be useful e.g. in cases
3632 where a pre-filled database exists that should not be extended
3633 automatically.
3634
3635 The following example illustrates how to configure the idmap_ad(8)
3636 backend for the CORP domain and the idmap_tdb(8) backend for all
3637 other domains. This configuration assumes that the admin of CORP
3638 assigns unix ids below 1000000 via the SFU extensions, and winbind
3639 is supposed to use the next million entries for its own mappings
3640 from trusted domains and for local groups for example.
3641
3642 idmap config * : backend = tdb
3643 idmap config * : range = 1000000-1999999
3644
3645 idmap config CORP : backend = ad
3646 idmap config CORP : range = 1000-999999
3647
3648
3649 No default
3650
3651 winbind gid
3652
3653 This parameter is a synonym for idmap gid.
3654
3655 idmap gid (G)
3656
3657 The idmap gid parameter specifies the range of group ids for the
3658 default idmap configuration. It is now deprecated in favour of
3659 idmap config * : range.
3660
3661 See the idmap config option.
3662
3663 Default: idmap gid =
3664
3665 Example: idmap gid = 10000-20000
3666
3667 idmap negative cache time (G)
3668
3669 This parameter specifies the number of seconds that Winbind's idmap
3670 interface will cache negative SID/uid/gid query results.
3671
3672 Default: idmap negative cache time = 120
3673
3674 winbind uid
3675
3676 This parameter is a synonym for idmap uid.
3677
3678 idmap uid (G)
3679
3680 The idmap uid parameter specifies the range of user ids for the
3681 default idmap configuration. It is now deprecated in favour of
3682 idmap config * : range.
3683
3684 See the idmap config option.
3685
3686 Default: idmap uid =
3687
3688 Example: idmap uid = 10000-20000
3689
3690 include (S)
3691
3692 This allows you to include one config file inside another. The file
3693 is included literally, as though typed in place.
3694
3695 It takes the standard substitutions, except %u, %P and %S.
3696
3697 The parameter include = registry has a special meaning: It does not
3698 include a file named registry from the current working directory,
3699 but instead reads the global configuration options from the
3700 registry. See the section on registry-based configuration for
3701 details. Note that this option automatically activates registry
3702 shares.
3703
3704 Default: include =
3705
3706 Example: include = /usr/local/samba/lib/admin_smb.conf
3707
3708 include system krb5 conf (G)
3709
3710 Setting this parameter to no will prevent winbind to include the
3711 system /etc/krb5.conf file into the krb5.conf file it creates. See
3712 also create krb5 conf. This option only applies to Samba built with
3713 MIT Kerberos.
3714
3715 Default: include system krb5 conf = yes
3716
3717 inherit acls (S)
3718
3719 This parameter can be used to ensure that if default acls exist on
3720 parent directories, they are always honored when creating a new
3721 file or subdirectory in these parent directories. The default
3722 behavior is to use the unix mode specified when creating the
3723 directory. Enabling this option sets the unix mode to 0777, thus
3724 guaranteeing that default directory acls are propagated. Note that
3725 using the VFS modules acl_xattr or acl_tdb which store native
3726 Windows as meta-data will automatically turn this option on for any
3727 share for which they are loaded, as they require this option to
3728 emulate Windows ACLs correctly.
3729
3730 Default: inherit acls = no
3731
3732 inherit owner (S)
3733
3734 The ownership of new files and directories is normally governed by
3735 effective uid of the connected user. This option allows the Samba
3736 administrator to specify that the ownership for new files and
3737 directories should be controlled by the ownership of the parent
3738 directory.
3739
3740 Valid options are:
3741
3742 · no - Both the Windows (SID) owner and the UNIX (uid)
3743 owner of the file are governed by the identity of the
3744 user that created the file.
3745
3746 · windows and unix - The Windows (SID) owner and the UNIX
3747 (uid) owner of new files and directories are set to the
3748 respective owner of the parent directory.
3749
3750 · yes - a synonym for windows and unix.
3751
3752 · unix only - Only the UNIX owner is set to the UNIX owner
3753 of the parent directory.
3754
3755 Common scenarios where this behavior is useful is in implementing
3756 drop-boxes, where users can create and edit files but not delete
3757 them and ensuring that newly created files in a user's roaming
3758 profile directory are actually owned by the user.
3759
3760 The unix only option effectively breaks the tie between the Windows
3761 owner of a file and the UNIX owner. As a logical consequence, in
3762 this mode, setting the the Windows owner of a file does not modify
3763 the UNIX owner. Using this mode should typically be combined with a
3764 backing store that can emulate the full NT ACL model without
3765 affecting the POSIX permissions, such as the acl_xattr VFS module,
3766 coupled with acl_xattr:ignore system acls = yes. This can be used
3767 to emulate folder quotas, when files are exposed only via SMB
3768 (without UNIX extensions). The UNIX owner of a directory is locally
3769 set and inherited by all subdirectories and files, and they all
3770 consume the same quota.
3771
3772 Default: inherit owner = no
3773
3774 inherit permissions (S)
3775
3776 The permissions on new files and directories are normally governed
3777 by create mask, directory mask, force create mode and force
3778 directory mode but the boolean inherit permissions parameter
3779 overrides this.
3780
3781 New directories inherit the mode of the parent directory, including
3782 bits such as setgid.
3783
3784 New files inherit their read/write bits from the parent directory.
3785 Their execute bits continue to be determined by map archive, map
3786 hidden and map system as usual.
3787
3788 Note that the setuid bit is never set via inheritance (the code
3789 explicitly prohibits this).
3790
3791 This can be particularly useful on large systems with many users,
3792 perhaps several thousand, to allow a single [homes] share to be
3793 used flexibly by each user.
3794
3795 Default: inherit permissions = no
3796
3797 init logon delay (G)
3798
3799 This parameter specifies a delay in milliseconds for the hosts
3800 configured for delayed initial samlogon with init logon delayed
3801 hosts.
3802
3803 Default: init logon delay = 100
3804
3805 init logon delayed hosts (G)
3806
3807 This parameter takes a list of host names, addresses or networks
3808 for which the initial samlogon reply should be delayed (so other
3809 DCs get preferred by XP workstations if there are any).
3810
3811 The length of the delay can be specified with the init logon delay
3812 parameter.
3813
3814 Default: init logon delayed hosts =
3815
3816 Example: init logon delayed hosts = 150.203.5. myhost.mynet.de
3817
3818 interfaces (G)
3819
3820 This option allows you to override the default network interfaces
3821 list that Samba will use for browsing, name registration and other
3822 NetBIOS over TCP/IP (NBT) traffic. By default Samba will query the
3823 kernel for the list of all active interfaces and use any interfaces
3824 except 127.0.0.1 that are broadcast capable.
3825
3826 The option takes a list of interface strings. Each string can be in
3827 any of the following forms:
3828
3829 · a network interface name (such as eth0). This may
3830 include shell-like wildcards so eth* will match any
3831 interface starting with the substring "eth"
3832
3833 · an IP address. In this case the netmask is determined
3834 from the list of interfaces obtained from the kernel
3835
3836 · an IP/mask pair.
3837
3838 · a broadcast/mask pair.
3839
3840 The "mask" parameters can either be a bit length (such as 24 for a
3841 C class network) or a full netmask in dotted decimal form.
3842
3843 The "IP" parameters above can either be a full dotted decimal IP
3844 address or a hostname which will be looked up via the OS's normal
3845 hostname resolution mechanisms.
3846
3847 By default Samba enables all active interfaces that are broadcast
3848 capable except the loopback adaptor (IP address 127.0.0.1).
3849
3850 In order to support SMB3 multi-channel configurations, smbd
3851 understands some extra data that can be appended after the actual
3852 interface with this extended syntax:
3853
3854 interface[;key1=value1[,key2=value2[...]]]
3855
3856 Known keys are speed, capability, and if_index. Speed is specified
3857 in bits per second. Known capabilities are RSS and RDMA. The
3858 if_index should be used with care: the values must not coincide
3859 with indexes used by the kernel. Note that these options are mainly
3860 intended for testing and development rather than for production
3861 use. At least on Linux systems, these values should be
3862 auto-detected, but the settings can serve as last a resort when
3863 autodetection is not working or is not available.
3864
3865 The example below configures three network interfaces corresponding
3866 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10.
3867 The netmasks of the latter two interfaces would be set to
3868 255.255.255.0.
3869
3870 Default: interfaces =
3871
3872 Example: interfaces = eth0 192.168.2.10/24
3873 192.168.3.10/255.255.255.0
3874
3875 invalid users (S)
3876
3877 This is a list of users that should not be allowed to login to this
3878 service. This is really a paranoid check to absolutely ensure an
3879 improper setting does not breach your security.
3880
3881 A name starting with a '@' is interpreted as an NIS netgroup first
3882 (if your system supports NIS), and then as a UNIX group if the name
3883 was not found in the NIS netgroup database.
3884
3885 A name starting with '+' is interpreted only by looking in the UNIX
3886 group database via the NSS getgrnam() interface. A name starting
3887 with '&' is interpreted only by looking in the NIS netgroup
3888 database (this requires NIS to be working on your system). The
3889 characters '+' and '&' may be used at the start of the name in
3890 either order so the value +&group means check the UNIX group
3891 database, followed by the NIS netgroup database, and the value
3892 &+group means check the NIS netgroup database, followed by the UNIX
3893 group database (the same as the '@' prefix).
3894
3895 The current servicename is substituted for %S. This is useful in
3896 the [homes] section.
3897
3898 Default: invalid users = # no invalid users
3899
3900 Example: invalid users = root fred admin @wheel
3901
3902 iprint server (G)
3903
3904 This parameter is only applicable if printing is set to iprint.
3905
3906 If set, this option overrides the ServerName option in the CUPS
3907 client.conf. This is necessary if you have virtual samba servers
3908 that connect to different CUPS daemons.
3909
3910 Default: iprint server = ""
3911
3912 Example: iprint server = MYCUPSSERVER
3913
3914 keepalive (G)
3915
3916 The value of the parameter (an integer) represents the number of
3917 seconds between keepalive packets. If this parameter is zero, no
3918 keepalive packets will be sent. Keepalive packets, if sent, allow
3919 the server to tell whether a client is still present and
3920 responding.
3921
3922 Keepalives should, in general, not be needed if the socket has the
3923 SO_KEEPALIVE attribute set on it by default. (see socket options).
3924 Basically you should only use this option if you strike
3925 difficulties.
3926
3927 Please note this option only applies to SMB1 client connections,
3928 and has no effect on SMB2 clients.
3929
3930 Default: keepalive = 300
3931
3932 Example: keepalive = 600
3933
3934 kerberos encryption types (G)
3935
3936 This parameter determines the encryption types to use when
3937 operating as a Kerberos client. Possible values are all, strong,
3938 and legacy.
3939
3940 Samba uses a Kerberos library (MIT or Heimdal) to obtain Kerberos
3941 tickets. This library is normally configured outside of Samba,
3942 using the krb5.conf file. This file may also include directives to
3943 configure the encryption types to be used. However, Samba
3944 implements Active Directory protocols and algorithms to locate a
3945 domain controller. In order to force the Kerberos library into
3946 using the correct domain controller, some Samba processes, such as
3947 winbindd(8) and net(8), build a private krb5.conf file for use by
3948 the Kerberos library while being invoked from Samba. This private
3949 file controls all aspects of the Kerberos library operation, and
3950 this parameter controls how the encryption types are configured
3951 within this generated file, and therefore also controls the
3952 encryption types negotiable by Samba.
3953
3954 When set to all, all active directory encryption types are allowed.
3955
3956 When set to strong, only AES-based encryption types are offered.
3957 This can be used in hardened environments to prevent downgrade
3958 attacks.
3959
3960 When set to legacy, only RC4-HMAC-MD5 is allowed. Avoiding AES this
3961 way has one a very specific use. Normally, the encryption type is
3962 negotiated between the peers. However, there is one scenario in
3963 which a Windows read-only domain controller (RODC) advertises AES
3964 encryption, but then proxies the request to a writeable DC which
3965 may not support AES encryption, leading to failure of the
3966 handshake. Setting this parameter to legacy would cause samba not
3967 to negotiate AES encryption. It is assumed of course that the
3968 weaker legacy encryption types are acceptable for the setup.
3969
3970 Default: kerberos encryption types = all
3971
3972 kerberos method (G)
3973
3974 Controls how kerberos tickets are verified.
3975
3976 Valid options are:
3977
3978 · secrets only - use only the secrets.tdb for ticket
3979 verification (default)
3980
3981 · system keytab - use only the system keytab for ticket
3982 verification
3983
3984 · dedicated keytab - use a dedicated keytab for ticket
3985 verification
3986
3987 · secrets and keytab - use the secrets.tdb first, then the
3988 system keytab
3989
3990 The major difference between "system keytab" and "dedicated keytab"
3991 is that the latter method relies on kerberos to find the correct
3992 keytab entry instead of filtering based on expected principals.
3993
3994 When the kerberos method is in "dedicated keytab" mode, dedicated
3995 keytab file must be set to specify the location of the keytab file.
3996
3997 Default: kerberos method = default
3998
3999 kernel change notify (G)
4000
4001 This parameter specifies whether Samba should ask the kernel for
4002 change notifications in directories so that SMB clients can refresh
4003 whenever the data on the server changes.
4004
4005 This parameter is only used when your kernel supports change
4006 notification to user programs using the inotify interface.
4007
4008 Default: kernel change notify = yes
4009
4010 kernel oplocks (S)
4011
4012 For UNIXes that support kernel based oplocks (currently only
4013 Linux), this parameter allows the use of them to be turned on or
4014 off. However, this disables Level II oplocks for clients as the
4015 Linux kernel does not support them properly.
4016
4017 Kernel oplocks support allows Samba oplocks to be broken whenever a
4018 local UNIX process or NFS operation accesses a file that smbd(8)
4019 has oplocked. This allows complete data consistency between
4020 SMB/CIFS, NFS and local file access (and is a very cool feature
4021 :-).
4022
4023 If you do not need this interaction, you should disable the
4024 parameter on Linux to get Level II oplocks and the associated
4025 performance benefit.
4026
4027 This parameter defaults to no and is translated to a no-op on
4028 systems that do not have the necessary kernel support.
4029
4030 Default: kernel oplocks = no
4031
4032 kernel share modes (S)
4033
4034 This parameter controls whether SMB share modes are translated into
4035 UNIX flocks.
4036
4037 Kernel share modes provide a minimal level of interoperability with
4038 local UNIX processes and NFS operations by preventing access with
4039 flocks corresponding to the SMB share modes. Generally, it is very
4040 desirable to leave this enabled.
4041
4042 Note that in order to use SMB2 durable file handles on a share, you
4043 have to turn kernel share modes off.
4044
4045 This parameter defaults to yes and is translated to a no-op on
4046 systems that do not have the necessary kernel flock support.
4047
4048 Default: kernel share modes = yes
4049
4050 kpasswd port (G)
4051
4052 Specifies which ports the Kerberos server should listen on for
4053 password changes.
4054
4055 Default: kpasswd port = 464
4056
4057 krb5 port (G)
4058
4059 Specifies which port the KDC should listen on for Kerberos traffic.
4060
4061 Default: krb5 port = 88
4062
4063 lanman auth (G)
4064
4065 This parameter has been deprecated since Samba 4.11 and support for
4066 LanMan (as distinct from NTLM, NTLMv2 or Kerberos authentication)
4067 will be removed in a future Samba release.
4068
4069 That is, in the future, the current default of lanman auth = no
4070 will be the enforced behaviour.
4071
4072 This parameter determines whether or not smbd(8) will attempt to
4073 authenticate users or permit password changes using the LANMAN
4074 password hash. If disabled, only clients which support NT password
4075 hashes (e.g. Windows NT/2000 clients, smbclient, but not Windows
4076 95/98 or the MS DOS network client) will be able to connect to the
4077 Samba host.
4078
4079 The LANMAN encrypted response is easily broken, due to its
4080 case-insensitive nature, and the choice of algorithm. Servers
4081 without Windows 95/98/ME or MS DOS clients are advised to disable
4082 this option.
4083
4084 When this parameter is set to no this will also result in
4085 sambaLMPassword in Samba's passdb being blanked after the next
4086 password change. As a result of that lanman clients won't be able
4087 to authenticate, even if lanman auth is re-enabled later on.
4088
4089 Unlike the encrypt passwords option, this parameter cannot alter
4090 client behaviour, and the LANMAN response will still be sent over
4091 the network. See the client lanman auth to disable this for Samba's
4092 clients (such as smbclient)
4093
4094 This parameter is overriden by ntlm auth, so unless that it is also
4095 set to ntlmv1-permitted or yes, then only NTLMv2 logins will be
4096 permited and no LM hash will be stored. All modern clients support
4097 NTLMv2, and but some older clients require special configuration to
4098 use it.
4099
4100 Default: lanman auth = no
4101
4102 large readwrite (G)
4103
4104 This parameter determines whether or not smbd(8) supports the new
4105 64k streaming read and write variant SMB requests introduced with
4106 Windows 2000. Note that due to Windows 2000 client redirector bugs
4107 this requires Samba to be running on a 64-bit capable operating
4108 system such as IRIX, Solaris or a Linux 2.4 kernel. Can improve
4109 performance by 10% with Windows 2000 clients. Defaults to on. Not
4110 as tested as some other Samba code paths.
4111
4112 Default: large readwrite = yes
4113
4114 ldap admin dn (G)
4115
4116 The ldap admin dn defines the Distinguished Name (DN) name used by
4117 Samba to contact the ldap server when retreiving user account
4118 information. The ldap admin dn is used in conjunction with the
4119 admin dn password stored in the private/secrets.tdb file. See the
4120 smbpasswd(8) man page for more information on how to accomplish
4121 this.
4122
4123 The ldap admin dn requires a fully specified DN. The ldap suffix is
4124 not appended to the ldap admin dn.
4125
4126 No default
4127
4128 ldap connection timeout (G)
4129
4130 This parameter tells the LDAP library calls which timeout in
4131 seconds they should honor during initial connection establishments
4132 to LDAP servers. It is very useful in failover scenarios in
4133 particular. If one or more LDAP servers are not reachable at all,
4134 we do not have to wait until TCP timeouts are over. This feature
4135 must be supported by your LDAP library.
4136
4137 This parameter is different from ldap timeout which affects
4138 operations on LDAP servers using an existing connection and not
4139 establishing an initial connection.
4140
4141 Default: ldap connection timeout = 2
4142
4143 ldap debug level (G)
4144
4145 This parameter controls the debug level of the LDAP library calls.
4146 In the case of OpenLDAP, it is the same bit-field as understood by
4147 the server and documented in the slapd.conf(5) manpage. A typical
4148 useful value will be 1 for tracing function calls.
4149
4150 The debug output from the LDAP libraries appears with the prefix
4151 [LDAP] in Samba's logging output. The level at which LDAP logging
4152 is printed is controlled by the parameter ldap debug threshold.
4153
4154 Default: ldap debug level = 0
4155
4156 Example: ldap debug level = 1
4157
4158 ldap debug threshold (G)
4159
4160 This parameter controls the Samba debug level at which the ldap
4161 library debug output is printed in the Samba logs. See the
4162 description of ldap debug level for details.
4163
4164 Default: ldap debug threshold = 10
4165
4166 Example: ldap debug threshold = 5
4167
4168 ldap delete dn (G)
4169
4170 This parameter specifies whether a delete operation in the ldapsam
4171 deletes the complete entry or only the attributes specific to
4172 Samba.
4173
4174 Default: ldap delete dn = no
4175
4176 ldap deref (G)
4177
4178 This option controls whether Samba should tell the LDAP library to
4179 use a certain alias dereferencing method. The default is auto,
4180 which means that the default setting of the ldap client library
4181 will be kept. Other possible values are never, finding, searching
4182 and always. Grab your LDAP manual for more information.
4183
4184 Default: ldap deref = auto
4185
4186 Example: ldap deref = searching
4187
4188 ldap follow referral (G)
4189
4190 This option controls whether to follow LDAP referrals or not when
4191 searching for entries in the LDAP database. Possible values are on
4192 to enable following referrals, off to disable this, and auto, to
4193 use the libldap default settings. libldap's choice of following
4194 referrals or not is set in /etc/openldap/ldap.conf with the
4195 REFERRALS parameter as documented in ldap.conf(5).
4196
4197 Default: ldap follow referral = auto
4198
4199 Example: ldap follow referral = off
4200
4201 ldap group suffix (G)
4202
4203 This parameter specifies the suffix that is used for groups when
4204 these are added to the LDAP directory. If this parameter is unset,
4205 the value of ldap suffix will be used instead. The suffix string is
4206 pre-pended to the ldap suffix string so use a partial DN.
4207
4208 Default: ldap group suffix =
4209
4210 Example: ldap group suffix = ou=Groups
4211
4212 ldap idmap suffix (G)
4213
4214 This parameters specifies the suffix that is used when storing
4215 idmap mappings. If this parameter is unset, the value of ldap
4216 suffix will be used instead. The suffix string is pre-pended to the
4217 ldap suffix string so use a partial DN.
4218
4219 Default: ldap idmap suffix =
4220
4221 Example: ldap idmap suffix = ou=Idmap
4222
4223 ldap machine suffix (G)
4224
4225 It specifies where machines should be added to the ldap tree. If
4226 this parameter is unset, the value of ldap suffix will be used
4227 instead. The suffix string is pre-pended to the ldap suffix string
4228 so use a partial DN.
4229
4230 Default: ldap machine suffix =
4231
4232 Example: ldap machine suffix = ou=Computers
4233
4234 ldap page size (G)
4235
4236 This parameter specifies the number of entries per page.
4237
4238 If the LDAP server supports paged results, clients can request
4239 subsets of search results (pages) instead of the entire list. This
4240 parameter specifies the size of these pages.
4241
4242 Default: ldap page size = 1000
4243
4244 Example: ldap page size = 512
4245
4246 ldap password sync
4247
4248 This parameter is a synonym for ldap passwd sync.
4249
4250 ldap passwd sync (G)
4251
4252 This option is used to define whether or not Samba should sync the
4253 LDAP password with the NT and LM hashes for normal accounts (NOT
4254 for workstation, server or domain trusts) on a password change via
4255 SAMBA.
4256
4257 The ldap passwd sync can be set to one of three values:
4258
4259 · Yes = Try to update the LDAP, NT and LM passwords and
4260 update the pwdLastSet time.
4261
4262 · No = Update NT and LM passwords and update the
4263 pwdLastSet time.
4264
4265 · Only = Only update the LDAP password and let the LDAP
4266 server do the rest.
4267
4268 Default: ldap passwd sync = no
4269
4270 ldap replication sleep (G)
4271
4272 When Samba is asked to write to a read-only LDAP replica, we are
4273 redirected to talk to the read-write master server. This server
4274 then replicates our changes back to the 'local' server, however the
4275 replication might take some seconds, especially over slow links.
4276 Certain client activities, particularly domain joins, can become
4277 confused by the 'success' that does not immediately change the LDAP
4278 back-end's data.
4279
4280 This option simply causes Samba to wait a short time, to allow the
4281 LDAP server to catch up. If you have a particularly high-latency
4282 network, you may wish to time the LDAP replication with a network
4283 sniffer, and increase this value accordingly. Be aware that no
4284 checking is performed that the data has actually replicated.
4285
4286 The value is specified in milliseconds, the maximum value is 5000
4287 (5 seconds).
4288
4289 Default: ldap replication sleep = 1000
4290
4291 ldapsam:editposix (G)
4292
4293 Editposix is an option that leverages ldapsam:trusted to make it
4294 simpler to manage a domain controller eliminating the need to set
4295 up custom scripts to add and manage the posix users and groups.
4296 This option will instead directly manipulate the ldap tree to
4297 create, remove and modify user and group entries. This option also
4298 requires a running winbindd as it is used to allocate new uids/gids
4299 on user/group creation. The allocation range must be therefore
4300 configured.
4301
4302 To use this option, a basic ldap tree must be provided and the ldap
4303 suffix parameters must be properly configured. On virgin servers
4304 the default users and groups (Administrator, Guest, Domain Users,
4305 Domain Admins, Domain Guests) can be precreated with the command
4306 net sam provision. To run this command the ldap server must be
4307 running, Winbindd must be running and the smb.conf ldap options
4308 must be properly configured. The typical ldap setup used with the
4309 ldapsam:trusted = yes option is usually sufficient to use
4310 ldapsam:editposix = yes as well.
4311
4312 An example configuration can be the following:
4313
4314 encrypt passwords = true
4315 passdb backend = ldapsam
4316
4317 ldapsam:trusted=yes
4318 ldapsam:editposix=yes
4319
4320 ldap admin dn = cn=admin,dc=samba,dc=org
4321 ldap delete dn = yes
4322 ldap group suffix = ou=groups
4323 ldap idmap suffix = ou=idmap
4324 ldap machine suffix = ou=computers
4325 ldap user suffix = ou=users
4326 ldap suffix = dc=samba,dc=org
4327
4328 idmap backend = ldap:"ldap://localhost"
4329
4330 idmap uid = 5000-50000
4331 idmap gid = 5000-50000
4332
4333
4334 This configuration assumes a directory layout like described in the
4335 following ldif:
4336
4337 dn: dc=samba,dc=org
4338 objectClass: top
4339 objectClass: dcObject
4340 objectClass: organization
4341 o: samba.org
4342 dc: samba
4343
4344 dn: cn=admin,dc=samba,dc=org
4345 objectClass: simpleSecurityObject
4346 objectClass: organizationalRole
4347 cn: admin
4348 description: LDAP administrator
4349 userPassword: secret
4350
4351 dn: ou=users,dc=samba,dc=org
4352 objectClass: top
4353 objectClass: organizationalUnit
4354 ou: users
4355
4356 dn: ou=groups,dc=samba,dc=org
4357 objectClass: top
4358 objectClass: organizationalUnit
4359 ou: groups
4360
4361 dn: ou=idmap,dc=samba,dc=org
4362 objectClass: top
4363 objectClass: organizationalUnit
4364 ou: idmap
4365
4366 dn: ou=computers,dc=samba,dc=org
4367 objectClass: top
4368 objectClass: organizationalUnit
4369 ou: computers
4370
4371
4372 Default: ldapsam:editposix = no
4373
4374 ldapsam:trusted (G)
4375
4376 By default, Samba as a Domain Controller with an LDAP backend needs
4377 to use the Unix-style NSS subsystem to access user and group
4378 information. Due to the way Unix stores user information in
4379 /etc/passwd and /etc/group this inevitably leads to inefficiencies.
4380 One important question a user needs to know is the list of groups
4381 he is member of. The plain UNIX model involves a complete
4382 enumeration of the file /etc/group and its NSS counterparts in
4383 LDAP. UNIX has optimized functions to enumerate group membership.
4384 Sadly, other functions that are used to deal with user and group
4385 attributes lack such optimization.
4386
4387 To make Samba scale well in large environments, the ldapsam:trusted
4388 = yes option assumes that the complete user and group database that
4389 is relevant to Samba is stored in LDAP with the standard
4390 posixAccount/posixGroup attributes. It further assumes that the
4391 Samba auxiliary object classes are stored together with the POSIX
4392 data in the same LDAP object. If these assumptions are met,
4393 ldapsam:trusted = yes can be activated and Samba can bypass the NSS
4394 system to query user group memberships. Optimized LDAP queries can
4395 greatly speed up domain logon and administration tasks. Depending
4396 on the size of the LDAP database a factor of 100 or more for common
4397 queries is easily achieved.
4398
4399 Default: ldapsam:trusted = no
4400
4401 ldap server require strong auth (G)
4402
4403 The ldap server require strong auth defines whether the ldap server
4404 requires ldap traffic to be signed or signed and encrypted
4405 (sealed). Possible values are no, allow_sasl_over_tls and yes.
4406
4407 A value of no allows simple and sasl binds over all transports.
4408
4409 A value of allow_sasl_over_tls allows simple and sasl binds
4410 (without sign or seal) over TLS encrypted connections. Unencrypted
4411 connections only allow sasl binds with sign or seal.
4412
4413 A value of yes allows only simple binds over TLS encrypted
4414 connections. Unencrypted connections only allow sasl binds with
4415 sign or seal.
4416
4417 Default: ldap server require strong auth = yes
4418
4419 ldap ssl (G)
4420
4421 This option is used to define whether or not Samba should use SSL
4422 when connecting to the ldap server This is NOT related to Samba's
4423 previous SSL support which was enabled by specifying the --with-ssl
4424 option to the configure script.
4425
4426 LDAP connections should be secured where possible. This may be done
4427 setting either this parameter to start tls or by specifying
4428 ldaps:// in the URL argument of passdb backend.
4429
4430 The ldap ssl can be set to one of two values:
4431
4432 · Off = Never use SSL when querying the directory.
4433
4434 · start tls = Use the LDAPv3 StartTLS extended operation
4435 (RFC2830) for communicating with the directory server.
4436
4437 Please note that this parameter does only affect rpc methods. To
4438 enable the LDAPv3 StartTLS extended operation (RFC2830) for ads,
4439 set ldap ssl = start tls and ldap ssl ads = yes. See smb.conf(5)
4440 for more information on ldap ssl ads.
4441
4442 Default: ldap ssl = start tls
4443
4444 ldap ssl ads (G)
4445
4446 This option is used to define whether or not Samba should use SSL
4447 when connecting to the ldap server using ads methods. Rpc methods
4448 are not affected by this parameter. Please note, that this
4449 parameter won't have any effect if ldap ssl is set to no.
4450
4451 See smb.conf(5) for more information on ldap ssl.
4452
4453 Default: ldap ssl ads = no
4454
4455 ldap suffix (G)
4456
4457 Specifies the base for all ldap suffixes and for storing the
4458 sambaDomain object.
4459
4460 The ldap suffix will be appended to the values specified for the
4461 ldap user suffix, ldap group suffix, ldap machine suffix, and the
4462 ldap idmap suffix. Each of these should be given only a DN relative
4463 to the ldap suffix.
4464
4465 Default: ldap suffix =
4466
4467 Example: ldap suffix = dc=samba,dc=org
4468
4469 ldap timeout (G)
4470
4471 This parameter defines the number of seconds that Samba should use
4472 as timeout for LDAP operations.
4473
4474 Default: ldap timeout = 15
4475
4476 ldap user suffix (G)
4477
4478 This parameter specifies where users are added to the tree. If this
4479 parameter is unset, the value of ldap suffix will be used instead.
4480 The suffix string is pre-pended to the ldap suffix string so use a
4481 partial DN.
4482
4483 Default: ldap user suffix =
4484
4485 Example: ldap user suffix = ou=people
4486
4487 level2 oplocks (S)
4488
4489 This parameter controls whether Samba supports level2 (read-only)
4490 oplocks on a share.
4491
4492 Level2, or read-only oplocks allow Windows NT clients that have an
4493 oplock on a file to downgrade from a read-write oplock to a
4494 read-only oplock once a second client opens the file (instead of
4495 releasing all oplocks on a second open, as in traditional,
4496 exclusive oplocks). This allows all openers of the file that
4497 support level2 oplocks to cache the file for read-ahead only (ie.
4498 they may not cache writes or lock requests) and increases
4499 performance for many accesses of files that are not commonly
4500 written (such as application .EXE files).
4501
4502 Once one of the clients which have a read-only oplock writes to the
4503 file all clients are notified (no reply is needed or waited for)
4504 and told to break their oplocks to "none" and delete any read-ahead
4505 caches.
4506
4507 It is recommended that this parameter be turned on to speed access
4508 to shared executables.
4509
4510 For more discussions on level2 oplocks see the CIFS spec.
4511
4512 Currently, if kernel oplocks are supported then level2 oplocks are
4513 not granted (even if this parameter is set to yes). Note also, the
4514 oplocks parameter must be set to yes on this share in order for
4515 this parameter to have any effect.
4516
4517 Default: level2 oplocks = yes
4518
4519 lm announce (G)
4520
4521 This parameter determines if nmbd(8) will produce Lanman announce
4522 broadcasts that are needed by OS/2 clients in order for them to see
4523 the Samba server in their browse list. This parameter can have
4524 three values, yes, no, or auto. The default is auto. If set to no
4525 Samba will never produce these broadcasts. If set to yes Samba will
4526 produce Lanman announce broadcasts at a frequency set by the
4527 parameter lm interval. If set to auto Samba will not send Lanman
4528 announce broadcasts by default but will listen for them. If it
4529 hears such a broadcast on the wire it will then start sending them
4530 at a frequency set by the parameter lm interval.
4531
4532 Default: lm announce = auto
4533
4534 Example: lm announce = yes
4535
4536 lm interval (G)
4537
4538 If Samba is set to produce Lanman announce broadcasts needed by
4539 OS/2 clients (see the lm announce parameter) then this parameter
4540 defines the frequency in seconds with which they will be made. If
4541 this is set to zero then no Lanman announcements will be made
4542 despite the setting of the lm announce parameter.
4543
4544 Default: lm interval = 60
4545
4546 Example: lm interval = 120
4547
4548 load printers (G)
4549
4550 A boolean variable that controls whether all printers in the
4551 printcap will be loaded for browsing by default. See the printers
4552 section for more details.
4553
4554 Default: load printers = yes
4555
4556 local master (G)
4557
4558 This option allows nmbd(8) to try and become a local master browser
4559 on a subnet. If set to no then nmbd will not attempt to become a
4560 local master browser on a subnet and will also lose in all browsing
4561 elections. By default this value is set to yes. Setting this value
4562 to yes doesn't mean that Samba will become the local master browser
4563 on a subnet, just that nmbd will participate in elections for local
4564 master browser.
4565
4566 Setting this value to no will cause nmbd never to become a local
4567 master browser.
4568
4569 Default: local master = yes
4570
4571 lock dir
4572
4573 This parameter is a synonym for lock directory.
4574
4575 lock directory (G)
4576
4577 This option specifies the directory where lock files will be
4578 placed. The lock files are used to implement the max connections
4579 option.
4580
4581 Note: This option can not be set inside registry configurations.
4582
4583 The files placed in this directory are not required across service
4584 restarts and can be safely placed on volatile storage (e.g. tmpfs
4585 in Linux)
4586
4587 Default: lock directory = /var/lib/samba/lock
4588
4589 Example: lock directory = /var/run/samba/locks
4590
4591 locking (S)
4592
4593 This controls whether or not locking will be performed by the
4594 server in response to lock requests from the client.
4595
4596 If locking = no, all lock and unlock requests will appear to
4597 succeed and all lock queries will report that the file in question
4598 is available for locking.
4599
4600 If locking = yes, real locking will be performed by the server.
4601
4602 This option may be useful for read-only filesystems which may not
4603 need locking (such as CDROM drives), although setting this
4604 parameter of no is not really recommended even in this case.
4605
4606 Be careful about disabling locking either globally or in a specific
4607 service, as lack of locking may result in data corruption. You
4608 should never need to set this parameter.
4609
4610 Default: locking = yes
4611
4612 lock spin time (G)
4613
4614 The time in milliseconds that smbd should keep waiting to see if a
4615 failed lock request can be granted. This parameter has changed in
4616 default value from Samba 3.0.23 from 10 to 200. The associated lock
4617 spin count parameter is no longer used in Samba 3.0.24. You should
4618 not need to change the value of this parameter.
4619
4620 Default: lock spin time = 200
4621
4622 log file (G)
4623
4624 This option allows you to override the name of the Samba log file
4625 (also known as the debug file).
4626
4627 This option takes the standard substitutions, allowing you to have
4628 separate log files for each user or machine.
4629
4630 No default
4631
4632 Example: log file = /usr/local/samba/var/log.%m
4633
4634 logging (G)
4635
4636 This parameter configures logging backends. Multiple backends can
4637 be specified at the same time, with different log levels for each
4638 backend. The parameter is a list of backends, where each backend is
4639 specified as backend[:option][@loglevel].
4640
4641 The 'option' parameter can be used to pass backend-specific
4642 options.
4643
4644 The log level for a backend is optional, if it is not set for a
4645 backend, all messages are sent to this backend. The parameter log
4646 level determines overall log levels, while the log levels specified
4647 here define what is sent to the individual backends.
4648
4649 When logging is set, it overrides the syslog and syslog only
4650 parameters.
4651
4652 Some backends are only available when Samba has been compiled with
4653 the additional libraries. The overall list of logging backends:
4654
4655 · syslog
4656
4657 · file
4658
4659 · systemd
4660
4661 · lttng
4662
4663 · gpfs
4664
4665 · ringbuf
4666
4667 The ringbuf backend supports an optional size argument to change
4668 the buffer size used, the default is 1 MB: ringbuf:size=NBYTES
4669
4670 Default: logging =
4671
4672 Example: logging = syslog@1 file
4673
4674 debuglevel
4675
4676 This parameter is a synonym for log level.
4677
4678 log level (G)
4679
4680 The value of the parameter (a string) allows the debug level
4681 (logging level) to be specified in the smb.conf file.
4682
4683 This parameter has been extended since the 2.2.x series, now it
4684 allows one to specify the debug level for multiple debug classes
4685 and distinct logfiles for debug classes. This is to give greater
4686 flexibility in the configuration of the system. The following debug
4687 classes are currently implemented:
4688
4689 · all
4690
4691 · tdb
4692
4693 · printdrivers
4694
4695 · lanman
4696
4697 · smb
4698
4699 · smb2
4700
4701 · smb2_credits
4702
4703 · rpc_parse
4704
4705 · rpc_srv
4706
4707 · rpc_cli
4708
4709 · passdb
4710
4711 · sam
4712
4713 · auth
4714
4715 · winbind
4716
4717 · vfs
4718
4719 · idmap
4720
4721 · quota
4722
4723 · acls
4724
4725 · locking
4726
4727 · msdfs
4728
4729 · dmapi
4730
4731 · registry
4732
4733 · scavenger
4734
4735 · dns
4736
4737 · ldb
4738
4739 · tevent
4740
4741 · auth_audit
4742
4743 · auth_json_audit
4744
4745 · kerberos
4746
4747 · dsdb_audit
4748
4749 · dsdb_json_audit
4750
4751 · dsdb_password_audit
4752
4753 · dsdb_password_json_audit
4754
4755 · dsdb_transaction_audit
4756
4757 · dsdb_transaction_json_audit
4758
4759 To configure the logging for specific classes to go into a
4760 different file then log file, you can append @PATH to the class, eg
4761 log level = 1 full_audit:1@/var/log/audit.log.
4762
4763 Authentication and authorization audit information is logged under
4764 the auth_audit, and if Samba was not compiled with --without-json,
4765 a JSON representation is logged under auth_json_audit.
4766
4767 Support is comprehensive for all authentication and authorisation
4768 of user accounts in the Samba Active Directory Domain Controller,
4769 as well as the implicit authentication in password changes. In the
4770 file server, NTLM authentication, SMB and RPC authorization is
4771 covered.
4772
4773 Log levels for auth_audit and auth_audit_json are:
4774
4775 · 2: Authentication Failure
4776
4777 · 3: Authentication Success
4778
4779 · 4: Authorization Success
4780
4781 · 5: Anonymous Authentication and Authorization Success
4782
4783 Changes to the sam.ldb database are logged under the dsdb_audit and
4784 a JSON representation is logged under dsdb_json_audit.
4785
4786 Password changes and Password resets are logged under
4787 dsdb_password_audit and a JSON representation is logged under the
4788 dsdb_password_json_audit.
4789
4790 Transaction rollbacks and prepare commit failures are logged under
4791 the dsdb_transaction_audit and a JSON representation is logged
4792 under the password_json_audit. Logging the transaction details
4793 allows the identification of password and sam.ldb operations that
4794 have been rolled back.
4795
4796 Default: log level = 0
4797
4798 Example: log level = 3 passdb:5 auth:10 winbind:2
4799
4800 Example: log level = 1 full_audit:1@/var/log/audit.log winbind:2
4801
4802 log nt token command (G)
4803
4804 This option can be set to a command that will be called when new nt
4805 tokens are created.
4806
4807 This is only useful for development purposes.
4808
4809 Default: log nt token command =
4810
4811 logon drive (G)
4812
4813 This parameter specifies the local path to which the home directory
4814 will be connected (see logon home) and is only used by NT
4815 Workstations.
4816
4817 Note that this option is only useful if Samba is set up as a logon
4818 server.
4819
4820 Default: logon drive =
4821
4822 Example: logon drive = h:
4823
4824 logon home (G)
4825
4826 This parameter specifies the home directory location when a
4827 Win95/98 or NT Workstation logs into a Samba PDC. It allows you to
4828 do
4829
4830 C:\>NET USE H: /HOME
4831
4832 from a command prompt, for example.
4833
4834 This option takes the standard substitutions, allowing you to have
4835 separate logon scripts for each user or machine.
4836
4837 This parameter can be used with Win9X workstations to ensure that
4838 roaming profiles are stored in a subdirectory of the user's home
4839 directory. This is done in the following way:
4840
4841 logon home = \\%N\%U\profile
4842
4843 This tells Samba to return the above string, with substitutions
4844 made when a client requests the info, generally in a NetUserGetInfo
4845 request. Win9X clients truncate the info to \\server\share when a
4846 user does net use /home but use the whole string when dealing with
4847 profiles.
4848
4849 Note that in prior versions of Samba, the logon path was returned
4850 rather than logon home. This broke net use /home but allowed
4851 profiles outside the home directory. The current implementation is
4852 correct, and can be used for profiles if you use the above trick.
4853
4854 Disable this feature by setting logon home = "" - using the empty
4855 string.
4856
4857 This option is only useful if Samba is set up as a logon server.
4858
4859 Default: logon home = \\%N\%U
4860
4861 Example: logon home = \\remote_smb_server\%U
4862
4863 logon path (G)
4864
4865 This parameter specifies the directory where roaming profiles
4866 (Desktop, NTuser.dat, etc) are stored. Contrary to previous
4867 versions of these manual pages, it has nothing to do with Win 9X
4868 roaming profiles. To find out how to handle roaming profiles for
4869 Win 9X system, see the logon home parameter.
4870
4871 This option takes the standard substitutions, allowing you to have
4872 separate logon scripts for each user or machine. It also specifies
4873 the directory from which the "Application Data", desktop, start
4874 menu, network neighborhood, programs and other folders, and their
4875 contents, are loaded and displayed on your Windows NT client.
4876
4877 The share and the path must be readable by the user for the
4878 preferences and directories to be loaded onto the Windows NT
4879 client. The share must be writeable when the user logs in for the
4880 first time, in order that the Windows NT client can create the
4881 NTuser.dat and other directories. Thereafter, the directories and
4882 any of the contents can, if required, be made read-only. It is not
4883 advisable that the NTuser.dat file be made read-only - rename it to
4884 NTuser.man to achieve the desired effect (a MANdatory profile).
4885
4886 Windows clients can sometimes maintain a connection to the [homes]
4887 share, even though there is no user logged in. Therefore, it is
4888 vital that the logon path does not include a reference to the homes
4889 share (i.e. setting this parameter to \\%N\homes\profile_path will
4890 cause problems).
4891
4892 This option takes the standard substitutions, allowing you to have
4893 separate logon scripts for each user or machine.
4894
4895 Warning
4896 Do not quote the value. Setting this as “\\%N\profile\%U” will
4897 break profile handling. Where the tdbsam or ldapsam passdb
4898 backend is used, at the time the user account is created the
4899 value configured for this parameter is written to the passdb
4900 backend and that value will over-ride the parameter value
4901 present in the smb.conf file. Any error present in the passdb
4902 backend account record must be editted using the appropriate
4903 tool (pdbedit on the command-line, or any other locally
4904 provided system tool).
4905 Note that this option is only useful if Samba is set up as a domain
4906 controller.
4907
4908 Disable the use of roaming profiles by setting the value of this
4909 parameter to the empty string. For example, logon path = "". Take
4910 note that even if the default setting in the smb.conf file is the
4911 empty string, any value specified in the user account settings in
4912 the passdb backend will over-ride the effect of setting this
4913 parameter to null. Disabling of all roaming profile use requires
4914 that the user account settings must also be blank.
4915
4916 An example of use is:
4917
4918 logon path = \\PROFILESERVER\PROFILE\%U
4919
4920 Default: logon path = \\%N\%U\profile
4921
4922 logon script (G)
4923
4924 This parameter specifies the batch file (.bat) or NT command file
4925 (.cmd) to be downloaded and run on a machine when a user
4926 successfully logs in. The file must contain the DOS style CR/LF
4927 line endings. Using a DOS-style editor to create the file is
4928 recommended.
4929
4930 The script must be a relative path to the [netlogon] service. If
4931 the [netlogon] service specifies a path of
4932 /usr/local/samba/netlogon, and logon script = STARTUP.BAT, then the
4933 file that will be downloaded is:
4934
4935 /usr/local/samba/netlogon/STARTUP.BAT
4936
4937 The contents of the batch file are entirely your choice. A
4938 suggested command would be to add NET TIME \\SERVER /SET /YES, to
4939 force every machine to synchronize clocks with the same time
4940 server. Another use would be to add NET USE U: \\SERVER\UTILS for
4941 commonly used utilities, or
4942
4943 NET USE Q: \\SERVER\ISO9001_QA
4944
4945 for example.
4946
4947 Note that it is particularly important not to allow write access to
4948 the [netlogon] share, or to grant users write permission on the
4949 batch files in a secure environment, as this would allow the batch
4950 files to be arbitrarily modified and security to be breached.
4951
4952 This option takes the standard substitutions, allowing you to have
4953 separate logon scripts for each user or machine.
4954
4955 This option is only useful if Samba is set up as a logon server in
4956 a classic domain controller role. If Samba is set up as an Active
4957 Directory domain controller, LDAP attribute scriptPath is used
4958 instead. For configurations where passdb backend = ldapsam is in
4959 use, this option only defines a default value in case LDAP
4960 attribute sambaLogonScript is missing.
4961
4962 Default: logon script =
4963
4964 Example: logon script = scripts\%U.bat
4965
4966 log writeable files on exit (G)
4967
4968 When the network connection between a CIFS client and Samba dies,
4969 Samba has no option but to simply shut down the server side of the
4970 network connection. If this happens, there is a risk of data
4971 corruption because the Windows client did not complete all write
4972 operations that the Windows application requested. Setting this
4973 option to "yes" makes smbd log with a level 0 message a list of all
4974 files that have been opened for writing when the network connection
4975 died. Those are the files that are potentially corrupted. It is
4976 meant as an aid for the administrator to give him a list of files
4977 to do consistency checks on.
4978
4979 Default: log writeable files on exit = no
4980
4981 lppause command (S)
4982
4983 This parameter specifies the command to be executed on the server
4984 host in order to stop printing or spooling a specific print job.
4985
4986 This command should be a program or script which takes a printer
4987 name and job number to pause the print job. One way of implementing
4988 this is by using job priorities, where jobs having a too low
4989 priority won't be sent to the printer.
4990
4991 If a %p is given then the printer name is put in its place. A %j is
4992 replaced with the job number (an integer). On HPUX (see
4993 printing=hpux ), if the -p%p option is added to the lpq command,
4994 the job will show up with the correct status, i.e. if the job
4995 priority is lower than the set fence priority it will have the
4996 PAUSED status, whereas if the priority is equal or higher it will
4997 have the SPOOLED or PRINTING status.
4998
4999 Note that it is good practice to include the absolute path in the
5000 lppause command as the PATH may not be available to the server.
5001
5002 Currently no default value is given to this string, unless the
5003 value of the printing parameter is SYSV, in which case the default
5004 is : lp -i %p-%j -H hold or if the value of the printing parameter
5005 is SOFTQ, then the default is: qstat -s -j%j -h.
5006
5007 Default: lppause command = # determined by printing parameter
5008
5009 Example: lppause command = /usr/bin/lpalt %p-%j -p0
5010
5011 lpq cache time (G)
5012
5013 This controls how long lpq info will be cached for to prevent the
5014 lpq command being called too often. A separate cache is kept for
5015 each variation of the lpq command used by the system, so if you use
5016 different lpq commands for different users then they won't share
5017 cache information.
5018
5019 The cache files are stored in /tmp/lpq.xxxx where xxxx is a hash of
5020 the lpq command in use.
5021
5022 The default is 30 seconds, meaning that the cached results of a
5023 previous identical lpq command will be used if the cached data is
5024 less than 30 seconds old. A large value may be advisable if your
5025 lpq command is very slow.
5026
5027 A value of 0 will disable caching completely.
5028
5029 Default: lpq cache time = 30
5030
5031 Example: lpq cache time = 10
5032
5033 lpq command (S)
5034
5035 This parameter specifies the command to be executed on the server
5036 host in order to obtain lpq-style printer status information.
5037
5038 This command should be a program or script which takes a printer
5039 name as its only parameter and outputs printer status information.
5040
5041 Currently nine styles of printer status information are supported;
5042 BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ. This covers
5043 most UNIX systems. You control which type is expected using the
5044 printing = option.
5045
5046 Some clients (notably Windows for Workgroups) may not correctly
5047 send the connection number for the printer they are requesting
5048 status information about. To get around this, the server reports on
5049 the first printer service connected to by the client. This only
5050 happens if the connection number sent is invalid.
5051
5052 If a %p is given then the printer name is put in its place.
5053 Otherwise it is placed at the end of the command.
5054
5055 Note that it is good practice to include the absolute path in the
5056 lpq command as the $PATH may not be available to the server. When
5057 compiled with the CUPS libraries, no lpq command is needed because
5058 smbd will make a library call to obtain the print queue listing.
5059
5060 Default: lpq command = # determined by printing parameter
5061
5062 Example: lpq command = /usr/bin/lpq -P%p
5063
5064 lpresume command (S)
5065
5066 This parameter specifies the command to be executed on the server
5067 host in order to restart or continue printing or spooling a
5068 specific print job.
5069
5070 This command should be a program or script which takes a printer
5071 name and job number to resume the print job. See also the lppause
5072 command parameter.
5073
5074 If a %p is given then the printer name is put in its place. A %j is
5075 replaced with the job number (an integer).
5076
5077 Note that it is good practice to include the absolute path in the
5078 lpresume command as the PATH may not be available to the server.
5079
5080 See also the printing parameter.
5081
5082 Default: Currently no default value is given to this string, unless
5083 the value of the printing parameter is SYSV, in which case the
5084 default is:
5085
5086 lp -i %p-%j -H resume
5087
5088 or if the value of the printing parameter is SOFTQ, then the
5089 default is:
5090
5091 qstat -s -j%j -r
5092
5093 Default: lpresume command = # determined by printing parameter
5094
5095 Example: lpresume command = /usr/bin/lpalt %p-%j -p2
5096
5097 lprm command (S)
5098
5099 This parameter specifies the command to be executed on the server
5100 host in order to delete a print job.
5101
5102 This command should be a program or script which takes a printer
5103 name and job number, and deletes the print job.
5104
5105 If a %p is given then the printer name is put in its place. A %j is
5106 replaced with the job number (an integer).
5107
5108 Note that it is good practice to include the absolute path in the
5109 lprm command as the PATH may not be available to the server.
5110
5111 Examples of use are:
5112
5113 lprm command = /usr/bin/lprm -P%p %j
5114
5115 or
5116
5117 lprm command = /usr/bin/cancel %p-%j
5118
5119 Default: lprm command = # determined by printing parameter
5120
5121 lsa over netlogon (G)
5122
5123 Setting this deprecated option will allow the RPC server in the AD
5124 DC to answer the LSARPC interface on the \pipe\netlogon IPC pipe.
5125
5126 When enabled, this matches the behaviour of Microsoft's Windows,
5127 due to their internal implementation choices.
5128
5129 If it is disabled (the default), the AD DC can offer improved
5130 performance, as the netlogon server is decoupled and can run as
5131 multiple processes.
5132
5133 Default: lsa over netlogon = no
5134
5135 machine password timeout (G)
5136
5137 If a Samba server is a member of a Windows NT or Active Directory
5138 Domain (see the security = domain and security = ads parameters),
5139 then periodically a running winbindd process will try and change
5140 the MACHINE ACCOUNT PASSWORD stored in the TDB called secrets.tdb.
5141 This parameter specifies how often this password will be changed,
5142 in seconds. The default is one week (expressed in seconds), the
5143 same as a Windows NT Domain member server.
5144
5145 See also smbpasswd(8), and the security = domain and security = ads
5146 parameters.
5147
5148 Default: machine password timeout = 604800
5149
5150 magic output (S)
5151
5152 This parameter specifies the name of a file which will contain
5153 output created by a magic script (see the magic script parameter
5154 below).
5155
5156 Warning
5157 If two clients use the same magic script in the same directory
5158 the output file content is undefined.
5159 Default: magic output = # <magic script name>.out
5160
5161 Example: magic output = myfile.txt
5162
5163 magic script (S)
5164
5165 This parameter specifies the name of a file which, if opened, will
5166 be executed by the server when the file is closed. This allows a
5167 UNIX script to be sent to the Samba host and executed on behalf of
5168 the connected user.
5169
5170 Scripts executed in this way will be deleted upon completion
5171 assuming that the user has the appropriate level of privilege and
5172 the file permissions allow the deletion.
5173
5174 If the script generates output, output will be sent to the file
5175 specified by the magic output parameter (see above).
5176
5177 Note that some shells are unable to interpret scripts containing
5178 CR/LF instead of CR as the end-of-line marker. Magic scripts must
5179 be executable as is on the host, which for some hosts and some
5180 shells will require filtering at the DOS end.
5181
5182 Magic scripts are EXPERIMENTAL and should NOT be relied upon.
5183
5184 Default: magic script =
5185
5186 Example: magic script = user.csh
5187
5188 mangled names (S)
5189
5190 This controls whether non-DOS names under UNIX should be mapped to
5191 DOS-compatible names ("mangled") and made visible, or whether
5192 non-DOS names should simply be ignored.
5193
5194 See the section on name mangling for details on how to control the
5195 mangling process.
5196
5197 Possible option settings are
5198
5199 · yes (default) - enables name mangling for all not DOS
5200 8.3 conforming names.
5201
5202 · no - disables any name mangling.
5203
5204 · illegal - does mangling for names with illegal NTFS
5205 characters. This is the most sensible setting for modern
5206 clients that don't use the shortname anymore.
5207
5208 If mangling is used then the mangling method is as follows:
5209
5210 · The first (up to) five alphanumeric characters before
5211 the rightmost dot of the filename are preserved, forced
5212 to upper case, and appear as the first (up to) five
5213 characters of the mangled name.
5214
5215 · A tilde "~" is appended to the first part of the mangled
5216 name, followed by a two-character unique sequence, based
5217 on the original root name (i.e., the original filename
5218 minus its final extension). The final extension is
5219 included in the hash calculation only if it contains any
5220 upper case characters or is longer than three
5221 characters.
5222
5223 Note that the character to use may be specified using
5224 the mangling char option, if you don't like '~'.
5225
5226 · Files whose UNIX name begins with a dot will be
5227 presented as DOS hidden files. The mangled name will be
5228 created as for other filenames, but with the leading dot
5229 removed and "___" as its extension regardless of actual
5230 original extension (that's three underscores).
5231
5232 The two-digit hash value consists of upper case alphanumeric
5233 characters.
5234
5235 This algorithm can cause name collisions only if files in a
5236 directory share the same first five alphanumeric characters. The
5237 probability of such a clash is 1/1300.
5238
5239 The name mangling (if enabled) allows a file to be copied between
5240 UNIX directories from Windows/DOS while retaining the long UNIX
5241 filename. UNIX files can be renamed to a new extension from
5242 Windows/DOS and will retain the same basename. Mangled names do not
5243 change between sessions.
5244
5245 Default: mangled names = illegal
5246
5247 Example: mangled names = no
5248
5249 mangle prefix (G)
5250
5251 controls the number of prefix characters from the original name
5252 used when generating the mangled names. A larger value will give a
5253 weaker hash and therefore more name collisions. The minimum value
5254 is 1 and the maximum value is 6.
5255
5256 mangle prefix is effective only when mangling method is hash2.
5257
5258 Default: mangle prefix = 1
5259
5260 Example: mangle prefix = 4
5261
5262 mangling char (S)
5263
5264 This controls what character is used as the magic character in name
5265 mangling. The default is a '~' but this may interfere with some
5266 software. Use this option to set it to whatever you prefer. This is
5267 effective only when mangling method is hash.
5268
5269 Default: mangling char = ~
5270
5271 Example: mangling char = ^
5272
5273 mangling method (G)
5274
5275 controls the algorithm used for the generating the mangled names.
5276 Can take two different values, "hash" and "hash2". "hash" is the
5277 algorithm that was used in Samba for many years and was the default
5278 in Samba 2.2.x "hash2" is now the default and is newer and
5279 considered a better algorithm (generates less collisions) in the
5280 names. Many Win32 applications store the mangled names and so
5281 changing to algorithms must not be done lightly as these
5282 applications may break unless reinstalled.
5283
5284 Default: mangling method = hash2
5285
5286 Example: mangling method = hash
5287
5288 map acl inherit (S)
5289
5290 This boolean parameter controls whether smbd(8) will attempt to map
5291 the 'inherit' and 'protected' access control entry flags stored in
5292 Windows ACLs into an extended attribute called user.SAMBA_PAI. This
5293 parameter only takes effect if Samba is being run on a platform
5294 that supports extended attributes (Linux and IRIX so far) and
5295 allows the Windows 2000 ACL editor to correctly use inheritance
5296 with the Samba POSIX ACL mapping code.
5297
5298 Default: map acl inherit = no
5299
5300 map archive (S)
5301
5302 This controls whether the DOS archive attribute should be mapped to
5303 the UNIX owner execute bit. The DOS archive bit is set when a file
5304 has been modified since its last backup. One motivation for this
5305 option is to keep Samba/your PC from making any file it touches
5306 from becoming executable under UNIX. This can be quite annoying for
5307 shared source code, documents, etc...
5308
5309 Note that this parameter will be ignored if the store dos
5310 attributes parameter is set, as the DOS archive attribute will then
5311 be stored inside a UNIX extended attribute.
5312
5313 Note that this requires the create mask parameter to be set such
5314 that owner execute bit is not masked out (i.e. it must include
5315 100). See the parameter create mask for details.
5316
5317 Default: map archive = yes
5318
5319 map hidden (S)
5320
5321 This controls whether DOS style hidden files should be mapped to
5322 the UNIX world execute bit.
5323
5324 Note that this parameter will be ignored if the store dos
5325 attributes parameter is set, as the DOS hidden attribute will then
5326 be stored inside a UNIX extended attribute.
5327
5328 Note that this requires the create mask to be set such that the
5329 world execute bit is not masked out (i.e. it must include 001). See
5330 the parameter create mask for details.
5331
5332 Default: map hidden = no
5333
5334 map readonly (S)
5335
5336 This controls how the DOS read only attribute should be mapped from
5337 a UNIX filesystem.
5338
5339 This parameter can take three different values, which tell smbd(8)
5340 how to display the read only attribute on files, where either store
5341 dos attributes is set to No, or no extended attribute is present.
5342 If store dos attributes is set to yes then this parameter is
5343 ignored. This is a new parameter introduced in Samba version
5344 3.0.21.
5345
5346 The three settings are :
5347
5348 · Yes - The read only DOS attribute is mapped to the
5349 inverse of the user or owner write bit in the unix
5350 permission mode set. If the owner write bit is not set,
5351 the read only attribute is reported as being set on the
5352 file. If the read only DOS attribute is set, Samba sets
5353 the owner, group and others write bits to zero. Write
5354 bits set in an ACL are ignored by Samba. If the read
5355 only DOS attribute is unset, Samba simply sets the write
5356 bit of the owner to one.
5357
5358 · Permissions - The read only DOS attribute is mapped to
5359 the effective permissions of the connecting user, as
5360 evaluated by smbd(8) by reading the unix permissions and
5361 POSIX ACL (if present). If the connecting user does not
5362 have permission to modify the file, the read only
5363 attribute is reported as being set on the file.
5364
5365 · No - The read only DOS attribute is unaffected by
5366 permissions, and can only be set by the store dos
5367 attributes method. This may be useful for exporting
5368 mounted CDs.
5369
5370 Note that this parameter will be ignored if the store dos
5371 attributes parameter is set, as the DOS 'read-only' attribute will
5372 then be stored inside a UNIX extended attribute.
5373
5374 The default has changed to no in Samba release 4.9.0 and above to
5375 allow better Windows fileserver compatibility in a default install.
5376 In addition the default setting of store dos attributes has been
5377 changed to Yes in Samba release 4.9.0 and above.
5378
5379 Default: map readonly = no
5380
5381 map system (S)
5382
5383 This controls whether DOS style system files should be mapped to
5384 the UNIX group execute bit.
5385
5386 Note that this parameter will be ignored if the store dos
5387 attributes parameter is set, as the DOS system attribute will then
5388 be stored inside a UNIX extended attribute.
5389
5390 Note that this requires the create mask to be set such that the
5391 group execute bit is not masked out (i.e. it must include 010). See
5392 the parameter create mask for details.
5393
5394 Default: map system = no
5395
5396 map to guest (G)
5397
5398 This parameter can take four different values, which tell smbd(8)
5399 what to do with user login requests that don't match a valid UNIX
5400 user in some way.
5401
5402 The four settings are :
5403
5404 · Never - Means user login requests with an invalid
5405 password are rejected. This is the default.
5406
5407 · Bad User - Means user logins with an invalid password
5408 are rejected, unless the username does not exist, in
5409 which case it is treated as a guest login and mapped
5410 into the guest account.
5411
5412 · Bad Password - Means user logins with an invalid
5413 password are treated as a guest login and mapped into
5414 the guest account. Note that this can cause problems as
5415 it means that any user incorrectly typing their password
5416 will be silently logged on as "guest" - and will not
5417 know the reason they cannot access files they think they
5418 should - there will have been no message given to them
5419 that they got their password wrong. Helpdesk services
5420 will hate you if you set the map to guest parameter this
5421 way :-).
5422
5423 · Bad Uid - Is only applicable when Samba is configured in
5424 some type of domain mode security (security =
5425 {domain|ads}) and means that user logins which are
5426 successfully authenticated but which have no valid Unix
5427 user account (and smbd is unable to create one) should
5428 be mapped to the defined guest account. This was the
5429 default behavior of Samba 2.x releases. Note that if a
5430 member server is running winbindd, this option should
5431 never be required because the nss_winbind library will
5432 export the Windows domain users and groups to the
5433 underlying OS via the Name Service Switch interface.
5434
5435 Note that this parameter is needed to set up "Guest" share
5436 services. This is because in these modes the name of the resource
5437 being requested is not sent to the server until after the server
5438 has successfully authenticated the client so the server cannot make
5439 authentication decisions at the correct time (connection to the
5440 share) for "Guest" shares.
5441
5442 Default: map to guest = Never
5443
5444 Example: map to guest = Bad User
5445
5446 max connections (S)
5447
5448 This option allows the number of simultaneous connections to a
5449 service to be limited. If max connections is greater than 0 then
5450 connections will be refused if this number of connections to the
5451 service are already open. A value of zero mean an unlimited number
5452 of connections may be made.
5453
5454 Record lock files are used to implement this feature. The lock
5455 files will be stored in the directory specified by the lock
5456 directory option.
5457
5458 Default: max connections = 0
5459
5460 Example: max connections = 10
5461
5462 max disk size (G)
5463
5464 This option allows you to put an upper limit on the apparent size
5465 of disks. If you set this option to 100 then all shares will appear
5466 to be not larger than 100 MB in size.
5467
5468 Note that this option does not limit the amount of data you can put
5469 on the disk. In the above case you could still store much more than
5470 100 MB on the disk, but if a client ever asks for the amount of
5471 free disk space or the total disk size then the result will be
5472 bounded by the amount specified in max disk size.
5473
5474 This option is primarily useful to work around bugs in some pieces
5475 of software that can't handle very large disks, particularly disks
5476 over 1GB in size.
5477
5478 A max disk size of 0 means no limit.
5479
5480 Default: max disk size = 0
5481
5482 Example: max disk size = 1000
5483
5484 max log size (G)
5485
5486 This option (an integer in kilobytes) specifies the max size the
5487 log file should grow to. Samba periodically checks the size and if
5488 it is exceeded it will rename the file, adding a .old extension.
5489
5490 A size of 0 means no limit.
5491
5492 Default: max log size = 5000
5493
5494 Example: max log size = 1000
5495
5496 max mux (G)
5497
5498 This option controls the maximum number of outstanding simultaneous
5499 SMB operations that Samba tells the client it will allow. You
5500 should never need to set this parameter.
5501
5502 Default: max mux = 50
5503
5504 max open files (G)
5505
5506 This parameter limits the maximum number of open files that one
5507 smbd(8) file serving process may have open for a client at any one
5508 time. This parameter can be set very high (16384) as Samba uses
5509 only one bit per unopened file. Setting this parameter lower than
5510 16384 will cause Samba to complain and set this value back to the
5511 minimum of 16384, as Windows 7 depends on this number of open file
5512 handles being available.
5513
5514 The limit of the number of open files is usually set by the UNIX
5515 per-process file descriptor limit rather than this parameter so you
5516 should never need to touch this parameter.
5517
5518 Default: max open files = 16384
5519
5520 max print jobs (S)
5521
5522 This parameter limits the maximum number of jobs allowable in a
5523 Samba printer queue at any given moment. If this number is
5524 exceeded, smbd(8) will remote "Out of Space" to the client.
5525
5526 Default: max print jobs = 1000
5527
5528 Example: max print jobs = 5000
5529
5530 max reported print jobs (S)
5531
5532 This parameter limits the maximum number of jobs displayed in a
5533 port monitor for Samba printer queue at any given moment. If this
5534 number is exceeded, the excess jobs will not be shown. A value of
5535 zero means there is no limit on the number of print jobs reported.
5536
5537 Default: max reported print jobs = 0
5538
5539 Example: max reported print jobs = 1000
5540
5541 max smbd processes (G)
5542
5543 This parameter limits the maximum number of smbd(8) processes
5544 concurrently running on a system and is intended as a stopgap to
5545 prevent degrading service to clients in the event that the server
5546 has insufficient resources to handle more than this number of
5547 connections. Remember that under normal operating conditions, each
5548 user will have an smbd(8) associated with him or her to handle
5549 connections to all shares from a given host.
5550
5551 For a Samba ADDC running the standard process model this option
5552 limits the number of processes forked to handle requests. Currently
5553 new processes are only forked for ldap and netlogon requests.
5554
5555 Default: max smbd processes = 0
5556
5557 Example: max smbd processes = 1000
5558
5559 max stat cache size (G)
5560
5561 This parameter limits the size in memory of any stat cache being
5562 used to speed up case insensitive name mappings. It represents the
5563 number of kilobyte (1024) units the stat cache can use. A value of
5564 zero, meaning unlimited, is not advisable due to increased memory
5565 usage. You should not need to change this parameter.
5566
5567 Default: max stat cache size = 512
5568
5569 Example: max stat cache size = 100
5570
5571 max ttl (G)
5572
5573 This option tells nmbd(8) what the default 'time to live' of
5574 NetBIOS names should be (in seconds) when nmbd is requesting a name
5575 using either a broadcast packet or from a WINS server. You should
5576 never need to change this parameter. The default is 3 days.
5577
5578 Default: max ttl = 259200
5579
5580 max wins ttl (G)
5581
5582 This option tells smbd(8) when acting as a WINS server (wins
5583 support = yes) what the maximum 'time to live' of NetBIOS names
5584 that nmbd will grant will be (in seconds). You should never need to
5585 change this parameter. The default is 6 days (518400 seconds).
5586
5587 Default: max wins ttl = 518400
5588
5589 max xmit (G)
5590
5591 This option controls the maximum packet size that will be
5592 negotiated by Samba's smbd(8) for the SMB1 protocol. The default is
5593 16644, which matches the behavior of Windows 2000. A value below
5594 2048 is likely to cause problems. You should never need to change
5595 this parameter from its default value.
5596
5597 Default: max xmit = 16644
5598
5599 Example: max xmit = 8192
5600
5601 mdns name (G)
5602
5603 This parameter controls the name that multicast DNS support
5604 advertises as its' hostname.
5605
5606 The default is to use the NETBIOS name which is typically the
5607 hostname in all capital letters.
5608
5609 A setting of mdns will defer the hostname configuration to the MDNS
5610 library that is used.
5611
5612 Default: mdns name = netbios
5613
5614 message command (G)
5615
5616 This specifies what command to run when the server receives a
5617 WinPopup style message.
5618
5619 This would normally be a command that would deliver the message
5620 somehow. How this is to be done is up to your imagination.
5621
5622 An example is:
5623
5624 message command = csh -c 'xedit %s;rm %s' &
5625
5626 This delivers the message using xedit, then removes it afterwards.
5627 NOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN
5628 IMMEDIATELY. That's why I have the '&' on the end. If it doesn't
5629 return immediately then your PCs may freeze when sending messages
5630 (they should recover after 30 seconds, hopefully).
5631
5632 All messages are delivered as the global guest user. The command
5633 takes the standard substitutions, although
5634 %u won't work (%U may be better in this case).
5635
5636 Apart from the standard substitutions, some additional ones apply.
5637 In particular:
5638
5639 · %s = the filename containing the message.
5640
5641 · %t = the destination that the message was sent to
5642 (probably the server name).
5643
5644 · %f = who the message is from.
5645
5646 You could make this command send mail, or whatever else takes your
5647 fancy. Please let us know of any really interesting ideas you have.
5648
5649 Here's a way of sending the messages as mail to root:
5650
5651 message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s
5652
5653 If you don't have a message command then the message won't be
5654 delivered and Samba will tell the sender there was an error.
5655 Unfortunately WfWg totally ignores the error code and carries on
5656 regardless, saying that the message was delivered.
5657
5658 If you want to silently delete it then try:
5659
5660 message command = rm %s
5661
5662 Default: message command =
5663
5664 Example: message command = csh -c 'xedit %s; rm %s' &
5665
5666 min print space (S)
5667
5668 This sets the minimum amount of free disk space that must be
5669 available before a user will be able to spool a print job. It is
5670 specified in kilobytes. The default is 0, which means a user can
5671 always spool a print job.
5672
5673 Default: min print space = 0
5674
5675 Example: min print space = 2000
5676
5677 min receivefile size (G)
5678
5679 This option changes the behavior of smbd(8) when processing
5680 SMBwriteX calls. Any incoming SMBwriteX call on a non-signed
5681 SMB/CIFS connection greater than this value will not be processed
5682 in the normal way but will be passed to any underlying kernel
5683 recvfile or splice system call (if there is no such call Samba will
5684 emulate in user space). This allows zero-copy writes directly from
5685 network socket buffers into the filesystem buffer cache, if
5686 available. It may improve performance but user testing is
5687 recommended. If set to zero Samba processes SMBwriteX calls in the
5688 normal way. To enable POSIX large write support (SMB/CIFS writes up
5689 to 16Mb) this option must be nonzero. The maximum value is 128k.
5690 Values greater than 128k will be silently set to 128k.
5691
5692 Note this option will have NO EFFECT if set on a SMB signed
5693 connection.
5694
5695 The default is zero, which disables this option.
5696
5697 Default: min receivefile size = 0
5698
5699 min wins ttl (G)
5700
5701 This option tells nmbd(8) when acting as a WINS server (wins
5702 support = yes) what the minimum 'time to live' of NetBIOS names
5703 that nmbd will grant will be (in seconds). You should never need to
5704 change this parameter. The default is 6 hours (21600 seconds).
5705
5706 Default: min wins ttl = 21600
5707
5708 mit kdc command (G)
5709
5710 This option specifies the path to the MIT kdc binary.
5711
5712 If the KDC is not installed in the default location and wasn't
5713 correctly detected during build then you should modify this
5714 variable and point it to the correct binary.
5715
5716 Default: mit kdc command = /usr/sbin/krb5kdc
5717
5718 Example: mit kdc command = /opt/mit/sbin/krb5kdc
5719
5720 msdfs proxy (S)
5721
5722 This parameter indicates that the share is a stand-in for another
5723 CIFS share whose location is specified by the value of the
5724 parameter. When clients attempt to connect to this share, they are
5725 redirected to one or multiple, comma separated proxied shares using
5726 the SMB-Dfs protocol.
5727
5728 Only Dfs roots can act as proxy shares. Take a look at the msdfs
5729 root and host msdfs options to find out how to set up a Dfs root
5730 share.
5731
5732 No default
5733
5734 Example: msdfs proxy =
5735 \otherserver\someshare,\otherserver2\someshare
5736
5737 msdfs root (S)
5738
5739 If set to yes, Samba treats the share as a Dfs root and allows
5740 clients to browse the distributed file system tree rooted at the
5741 share directory. Dfs links are specified in the share directory by
5742 symbolic links of the form msdfs:serverA\\shareA,serverB\\shareB
5743 and so on. For more information on setting up a Dfs tree on Samba,
5744 refer to the MSDFS chapter in the Samba3-HOWTO book.
5745
5746 Default: msdfs root = no
5747
5748 msdfs shuffle referrals (S)
5749
5750 If set to yes, Samba will shuffle Dfs referrals for a given Dfs
5751 link if multiple are available, allowing for load balancing across
5752 clients. For more information on setting up a Dfs tree on Samba,
5753 refer to the MSDFS chapter in the Samba3-HOWTO book.
5754
5755 Default: msdfs shuffle referrals = no
5756
5757 multicast dns register (G)
5758
5759 If compiled with proper support for it, Samba will announce itself
5760 with multicast DNS services like for example provided by the Avahi
5761 daemon.
5762
5763 This parameter allows disabling Samba to register itself.
5764
5765 Default: multicast dns register = yes
5766
5767 name cache timeout (G)
5768
5769 Specifies the number of seconds it takes before entries in samba's
5770 hostname resolve cache time out. If the timeout is set to 0. the
5771 caching is disabled.
5772
5773 Default: name cache timeout = 660
5774
5775 Example: name cache timeout = 0
5776
5777 name resolve order (G)
5778
5779 This option is used by the programs in the Samba suite to determine
5780 what naming services to use and in what order to resolve host names
5781 to IP addresses. Its main purpose to is to control how netbios name
5782 resolution is performed. The option takes a space separated string
5783 of name resolution options.
5784
5785 The options are: "lmhosts", "host", "wins" and "bcast". They cause
5786 names to be resolved as follows:
5787
5788 · lmhosts : Lookup an IP address in the Samba lmhosts
5789 file. If the line in lmhosts has no name type attached
5790 to the NetBIOS name (see the manpage for lmhosts for
5791 details) then any name type matches for lookup.
5792
5793 · host : Do a standard host name to IP address resolution,
5794 using the system /etc/hosts, NIS, or DNS lookups. This
5795 method of name resolution is operating system depended
5796 for instance on IRIX or Solaris this may be controlled
5797 by the /etc/nsswitch.conf file. Note that this method is
5798 used only if the NetBIOS name type being queried is the
5799 0x20 (server) name type or 0x1c (domain controllers).
5800 The latter case is only useful for active directory
5801 domains and results in a DNS query for the SRV RR entry
5802 matching _ldap._tcp.domain.
5803
5804 · wins : Query a name with the IP address listed in the
5805 WINSSERVER parameter. If no WINS server has been
5806 specified this method will be ignored.
5807
5808 · bcast : Do a broadcast on each of the known local
5809 interfaces listed in the interfaces parameter. This is
5810 the least reliable of the name resolution methods as it
5811 depends on the target host being on a locally connected
5812 subnet.
5813
5814 The example below will cause the local lmhosts file to be examined
5815 first, followed by a broadcast attempt, followed by a normal system
5816 hostname lookup.
5817
5818 When Samba is functioning in ADS security mode (security = ads) it
5819 is advised to use following settings for name resolve order:
5820
5821 name resolve order = wins bcast
5822
5823 DC lookups will still be done via DNS, but fallbacks to netbios
5824 names will not inundate your DNS servers with needless querys for
5825 DOMAIN<0x1c> lookups.
5826
5827 Default: name resolve order = lmhosts wins host bcast
5828
5829 Example: name resolve order = lmhosts bcast host
5830
5831 socket address
5832
5833 This parameter is a synonym for nbt client socket address.
5834
5835 nbt client socket address (G)
5836
5837 This option allows you to control what address Samba will send NBT
5838 client packets from, and process replies using, including in nmbd.
5839
5840 Setting this option should never be necessary on usual Samba
5841 servers running only one nmbd.
5842
5843 By default Samba will send UDP packets from the OS default address
5844 for the destination, and accept replies on 0.0.0.0.
5845
5846 This parameter is deprecated. See bind interfaces only = Yes and
5847 interfaces for the previous behaviour of controlling the normal
5848 listening sockets.
5849
5850 Default: nbt client socket address = 0.0.0.0
5851
5852 Example: nbt client socket address = 192.168.2.20
5853
5854 nbtd:wins_prepend1Bto1Cqueries (G)
5855
5856 Normally queries for 0x1C names (all logon servers for a domain)
5857 will return the first address of the 0x1B names (domain master
5858 browser and PDC) as first address in the result list. As many
5859 client only use the first address in the list by default, all
5860 clients will use the same server (the PDC). Windows servers have an
5861 option to disable this behavior (since Windows 2000 Service Pack
5862 2).
5863
5864 Default: nbtd:wins_prepend1Bto1Cqueries = yes
5865
5866 nbtd:wins_wins_randomize1Clist (G)
5867
5868 Normally queries for 0x1C names will return the addresses in the
5869 same order as they're stored in the database, that means first all
5870 addresses which have been directly registered at the local wins
5871 server and then all addresses registered at other servers. Windows
5872 servers have an option to change this behavior and randomize the
5873 returned addresses. Set this parameter to "yes" and Samba will sort
5874 the address list depending on the client address and the matching
5875 bits of the addresses, the first address is randomized based on
5876 depending on the "nbtd:wins_randomize1Clist_mask" parameter.
5877
5878 Default: nbtd:wins_wins_randomize1Clist = no
5879
5880 nbtd:wins_randomize1Clist_mask (G)
5881
5882 If the "nbtd:wins_randomize1Clist" parameter is set to "yes", then
5883 randomizing of the first returned address is based on the specified
5884 netmask. If there are addresses which are in the same subnet as the
5885 client address, the first returned address is randomly chosen out
5886 them. Otherwise the first returned address is randomly chosen out
5887 of all addresses.
5888
5889 Default: nbtd:wins_randomize1Clist_mask = 255.255.255.0
5890
5891 nbt port (G)
5892
5893 Specifies which port the server should use for NetBIOS over IP name
5894 services traffic.
5895
5896 Default: nbt port = 137
5897
5898 ncalrpc dir (G)
5899
5900 This directory will hold a series of named pipes to allow RPC over
5901 inter-process communication.
5902
5903 This will allow Samba and other unix processes to interact over
5904 DCE/RPC without using TCP/IP. Additionally a sub-directory 'np' has
5905 restricted permissions, and allows a trusted communication channel
5906 between Samba processes
5907
5908 Default: ncalrpc dir = /run/samba/ncalrpc
5909
5910 Example: ncalrpc dir = /var/run/samba/ncalrpc
5911
5912 netbios aliases (G)
5913
5914 This is a list of NetBIOS names that nmbd will advertise as
5915 additional names by which the Samba server is known. This allows
5916 one machine to appear in browse lists under multiple names. If a
5917 machine is acting as a browse server or logon server none of these
5918 names will be advertised as either browse server or logon servers,
5919 only the primary name of the machine will be advertised with these
5920 capabilities.
5921
5922 Default: netbios aliases = # empty string (no additional names)
5923
5924 Example: netbios aliases = TEST TEST1 TEST2
5925
5926 netbios name (G)
5927
5928 This sets the NetBIOS name by which a Samba server is known. By
5929 default it is the same as the first component of the host's DNS
5930 name. If a machine is a browse server or logon server this name (or
5931 the first component of the hosts DNS name) will be the name that
5932 these services are advertised under.
5933
5934 Note that the maximum length for a NetBIOS name is 15 characters.
5935
5936 There is a bug in Samba that breaks operation of browsing and
5937 access to shares if the netbios name is set to the literal name
5938 PIPE. To avoid this problem, do not name your Samba server PIPE.
5939
5940 Default: netbios name = # machine DNS name
5941
5942 Example: netbios name = MYNAME
5943
5944 netbios scope (G)
5945
5946 This sets the NetBIOS scope that Samba will operate under. This
5947 should not be set unless every machine on your LAN also sets this
5948 value.
5949
5950 Default: netbios scope =
5951
5952 neutralize nt4 emulation (G)
5953
5954 This option controls whether winbindd sends the
5955 NETLOGON_NEG_NEUTRALIZE_NT4_EMULATION flag in order to bypass the
5956 NT4 emulation of a domain controller.
5957
5958 Typically you should not need set this. It can be useful for
5959 upgrades from NT4 to AD domains.
5960
5961 The behavior can be controlled per netbios domain by using
5962 'neutralize nt4 emulation:NETBIOSDOMAIN = yes' as option.
5963
5964 Default: neutralize nt4 emulation = no
5965
5966 NIS homedir (G)
5967
5968 Get the home share server from a NIS map. For UNIX systems that use
5969 an automounter, the user's home directory will often be mounted on
5970 a workstation on demand from a remote server.
5971
5972 When the Samba logon server is not the actual home directory
5973 server, but is mounting the home directories via NFS then two
5974 network hops would be required to access the users home directory
5975 if the logon server told the client to use itself as the SMB server
5976 for home directories (one over SMB and one over NFS). This can be
5977 very slow.
5978
5979 This option allows Samba to return the home share as being on a
5980 different server to the logon server and as long as a Samba daemon
5981 is running on the home directory server, it will be mounted on the
5982 Samba client directly from the directory server. When Samba is
5983 returning the home share to the client, it will consult the NIS map
5984 specified in homedir map and return the server listed there.
5985
5986 Note that for this option to work there must be a working NIS
5987 system and the Samba server with this option must also be a logon
5988 server.
5989
5990 Default: NIS homedir = no
5991
5992 nmbd bind explicit broadcast (G)
5993
5994 This option causes nmbd(8) to explicitly bind to the broadcast
5995 address of the local subnets. This is needed to make nmbd work
5996 correctly in combination with the socket address option. You should
5997 not need to unset this option.
5998
5999 Default: nmbd bind explicit broadcast = yes
6000
6001 nsupdate command (G)
6002
6003 This option sets the path to the nsupdate command which is used for
6004 GSS-TSIG dynamic DNS updates.
6005
6006 Default: nsupdate command = /usr/bin/nsupdate -g
6007
6008 nt acl support (S)
6009
6010 This boolean parameter controls whether smbd(8) will attempt to map
6011 UNIX permissions into Windows NT access control lists. The UNIX
6012 permissions considered are the traditional UNIX owner and group
6013 permissions, as well as POSIX ACLs set on any files or directories.
6014 This parameter was formally a global parameter in releases prior to
6015 2.2.2.
6016
6017 Default: nt acl support = yes
6018
6019 ntlm auth (G)
6020
6021 This parameter determines whether or not smbd(8) will attempt to
6022 authenticate users using the NTLM encrypted password response for
6023 this local passdb (SAM or account database).
6024
6025 If disabled, both NTLM and LanMan authencication against the local
6026 passdb is disabled.
6027
6028 Note that these settings apply only to local users, authentication
6029 will still be forwarded to and NTLM authentication accepted against
6030 any domain we are joined to, and any trusted domain, even if
6031 disabled or if NTLMv2-only is enforced here. To control NTLM
6032 authentiation for domain users, this must option must be configured
6033 on each DC.
6034
6035 By default with ntlm auth set to ntlmv2-only only NTLMv2 logins
6036 will be permited. All modern clients support NTLMv2 by default, but
6037 some older clients will require special configuration to use it.
6038
6039 The primary user of NTLMv1 is MSCHAPv2 for VPNs and 802.1x.
6040
6041 The available settings are:
6042
6043 · ntlmv1-permitted (alias yes) - Allow NTLMv1 and above
6044 for all clients.
6045
6046 This is the required setting for to enable the lanman
6047 auth parameter.
6048
6049 · ntlmv2-only (alias no) - Do not allow NTLMv1 to be used,
6050 but permit NTLMv2.
6051
6052 · mschapv2-and-ntlmv2-only - Only allow NTLMv1 when the
6053 client promises that it is providing MSCHAPv2
6054 authentication (such as the ntlm_auth tool).
6055
6056 · disabled - Do not accept NTLM (or LanMan) authentication
6057 of any level, nor permit NTLM password changes.
6058
6059 The default changed from yes to no with Samba 4.5. The default
6060 changed again to ntlmv2-only with Samba 4.7, however the behaviour
6061 is unchanged.
6062
6063 Default: ntlm auth = ntlmv2-only
6064
6065 nt pipe support (G)
6066
6067 This boolean parameter controls whether smbd(8) will allow Windows
6068 NT clients to connect to the NT SMB specific IPC$ pipes. This is a
6069 developer debugging option and can be left alone.
6070
6071 Default: nt pipe support = yes
6072
6073 ntp signd socket directory (G)
6074
6075 This setting controls the location of the socket that the NTP
6076 daemon uses to communicate with Samba for signing packets.
6077
6078 If a non-default path is specified here, then it is also necessary
6079 to make NTP aware of the new path using the ntpsigndsocket
6080 directive in ntp.conf.
6081
6082 Default: ntp signd socket directory = /var/lib/samba/ntp_signd
6083
6084 nt status support (G)
6085
6086 This boolean parameter controls whether smbd(8) will negotiate NT
6087 specific status support with Windows NT/2k/XP clients. This is a
6088 developer debugging option and should be left alone. If this option
6089 is set to no then Samba offers exactly the same DOS error codes
6090 that versions prior to Samba 2.2.3 reported.
6091
6092 You should not need to ever disable this parameter.
6093
6094 Default: nt status support = yes
6095
6096 ntvfs handler (S)
6097
6098 This specifies the NTVFS handlers for this share.
6099
6100 · unixuid: Sets up user credentials based on POSIX
6101 gid/uid.
6102
6103 · cifs: Proxies a remote CIFS FS. Mainly useful for
6104 testing.
6105
6106 · nbench: Filter module that saves data useful to the
6107 nbench benchmark suite.
6108
6109 · ipc: Allows using SMB for inter process communication.
6110 Only used for the IPC$ share.
6111
6112 · posix: Maps POSIX FS semantics to NT semantics
6113
6114 · print: Allows printing over SMB. This is LANMAN-style
6115 printing, not the be confused with the spoolss DCE/RPC
6116 interface used by later versions of Windows.
6117
6118 Note that this option is only used when the NTVFS file server is in
6119 use. It is not used with the (default) s3fs file server.
6120
6121 Default: ntvfs handler = unixuid, default
6122
6123 null passwords (G)
6124
6125 Allow or disallow client access to accounts that have null
6126 passwords.
6127
6128 See also smbpasswd(5).
6129
6130 Default: null passwords = no
6131
6132 obey pam restrictions (G)
6133
6134 When Samba 3.0 is configured to enable PAM support (i.e.
6135 --with-pam), this parameter will control whether or not Samba
6136 should obey PAM's account and session management directives. The
6137 default behavior is to use PAM for clear text authentication only
6138 and to ignore any account or session management. Note that Samba
6139 always ignores PAM for authentication in the case of encrypt
6140 passwords = yes. The reason is that PAM modules cannot support the
6141 challenge/response authentication mechanism needed in the presence
6142 of SMB password encryption.
6143
6144 Default: obey pam restrictions = no
6145
6146 old password allowed period (G)
6147
6148 Number of minutes to permit an NTLM login after a password change
6149 or reset using the old password. This allows the user to re-cache
6150 the new password on multiple clients without disrupting a network
6151 reconnection in the meantime.
6152
6153 This parameter only applies when server role is set to Active
6154 Directory Domain Controller
6155
6156 Default: old password allowed period = 60
6157
6158 oplock break wait time (G)
6159
6160 This is a tuning parameter added due to bugs in both Windows 9x and
6161 WinNT. If Samba responds to a client too quickly when that client
6162 issues an SMB that can cause an oplock break request, then the
6163 network client can fail and not respond to the break request. This
6164 tuning parameter (which is set in milliseconds) is the amount of
6165 time Samba will wait before sending an oplock break request to such
6166 (broken) clients.
6167
6168 Warning
6169 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND
6170 UNDERSTOOD THE SAMBA OPLOCK CODE.
6171 Default: oplock break wait time = 0
6172
6173 oplocks (S)
6174
6175 This boolean option tells smbd whether to issue oplocks
6176 (opportunistic locks) to file open requests on this share. The
6177 oplock code can dramatically (approx. 30% or more) improve the
6178 speed of access to files on Samba servers. It allows the clients to
6179 aggressively cache files locally and you may want to disable this
6180 option for unreliable network environments (it is turned on by
6181 default in Windows NT Servers).
6182
6183 Oplocks may be selectively turned off on certain files with a
6184 share. See the veto oplock files parameter. On some systems oplocks
6185 are recognized by the underlying operating system. This allows data
6186 synchronization between all access to oplocked files, whether it be
6187 via Samba or NFS or a local UNIX process. See the kernel oplocks
6188 parameter for details.
6189
6190 Default: oplocks = yes
6191
6192 os2 driver map (G)
6193
6194 The parameter is used to define the absolute path to a file
6195 containing a mapping of Windows NT printer driver names to OS/2
6196 printer driver names. The format is:
6197
6198 <nt driver name> = <os2 driver name>.<device name>
6199
6200 For example, a valid entry using the HP LaserJet 5 printer driver
6201 would appear as HP LaserJet 5L = LASERJET.HP LaserJet 5L.
6202
6203 The need for the file is due to the printer driver namespace
6204 problem described in the chapter on Classical Printing in the
6205 Samba3-HOWTO book. For more details on OS/2 clients, please refer
6206 to chapter on other clients in the Samba3-HOWTO book.
6207
6208 Default: os2 driver map =
6209
6210 os level (G)
6211
6212 This integer value controls what level Samba advertises itself as
6213 for browse elections. The value of this parameter determines
6214 whether nmbd(8) has a chance of becoming a local master browser for
6215 the workgroup in the local broadcast area.
6216
6217 Note: By default, Samba will win a local master browsing election
6218 over all Microsoft operating systems except a Windows NT 4.0/2000
6219 Domain Controller. This means that a misconfigured Samba host can
6220 effectively isolate a subnet for browsing purposes. This parameter
6221 is largely auto-configured in the Samba-3 release series and it is
6222 seldom necessary to manually override the default setting. Please
6223 refer to the chapter on Network Browsing in the Samba-3 HOWTO
6224 document for further information regarding the use of this
6225 parameter. Note: The maximum value for this parameter is 255. If
6226 you use higher values, counting will start at 0!
6227
6228 Default: os level = 20
6229
6230 Example: os level = 65
6231
6232 pam password change (G)
6233
6234 With the addition of better PAM support in Samba 2.2, this
6235 parameter, it is possible to use PAM's password change control flag
6236 for Samba. If enabled, then PAM will be used for password changes
6237 when requested by an SMB client instead of the program listed in
6238 passwd program. It should be possible to enable this without
6239 changing your passwd chat parameter for most setups.
6240
6241 Default: pam password change = no
6242
6243 panic action (G)
6244
6245 This is a Samba developer option that allows a system command to be
6246 called when either smbd(8) or nmbd(8) crashes. This is usually used
6247 to draw attention to the fact that a problem occurred.
6248
6249 Default: panic action =
6250
6251 Example: panic action = "/bin/sleep 90000"
6252
6253 passdb backend (G)
6254
6255 This option allows the administrator to chose which backend will be
6256 used for storing user and possibly group information. This allows
6257 you to swap between different storage mechanisms without recompile.
6258
6259 The parameter value is divided into two parts, the backend's name,
6260 and a 'location' string that has meaning only to that particular
6261 backed. These are separated by a : character.
6262
6263 Available backends can include:
6264
6265 · smbpasswd - The old plaintext passdb backend. Some Samba
6266 features will not work if this passdb backend is used.
6267 Takes a path to the smbpasswd file as an optional
6268 argument.
6269
6270 · tdbsam - The TDB based password storage backend. Takes a
6271 path to the TDB as an optional argument (defaults to
6272 passdb.tdb in the private dir directory.
6273
6274 · ldapsam - The LDAP based passdb backend. Takes an LDAP
6275 URL as an optional argument (defaults to
6276 ldap://localhost)
6277
6278 LDAP connections should be secured where possible. This
6279 may be done using either Start-TLS (see ldap ssl) or by
6280 specifying ldaps:// in the URL argument.
6281
6282 Multiple servers may also be specified in double-quotes.
6283 Whether multiple servers are supported or not and the
6284 exact syntax depends on the LDAP library you use.
6285
6286
6287 Examples of use are:
6288
6289 passdb backend = tdbsam:/etc/samba/private/passdb.tdb
6290
6291 or multi server LDAP URL with OpenLDAP library:
6292
6293 passdb backend = ldapsam:"ldap://ldap-1.example.com ldap://ldap-2.example.com"
6294
6295 or multi server LDAP URL with Netscape based LDAP library:
6296
6297 passdb backend = ldapsam:"ldap://ldap-1.example.com ldap-2.example.com"
6298
6299 Default: passdb backend = tdbsam
6300
6301 passdb expand explicit (G)
6302
6303 This parameter controls whether Samba substitutes %-macros in the
6304 passdb fields if they are explicitly set. We used to expand macros
6305 here, but this turned out to be a bug because the Windows client
6306 can expand a variable %G_osver% in which %G would have been
6307 substituted by the user's primary group.
6308
6309 Default: passdb expand explicit = no
6310
6311 passwd chat (G)
6312
6313 This string controls the "chat" conversation that takes places
6314 between smbd(8) and the local password changing program to change
6315 the user's password. The string describes a sequence of
6316 response-receive pairs that smbd(8) uses to determine what to send
6317 to the passwd program and what to expect back. If the expected
6318 output is not received then the password is not changed.
6319
6320 This chat sequence is often quite site specific, depending on what
6321 local methods are used for password control (such as NIS etc).
6322
6323 Note that this parameter only is used if the unix password sync
6324 parameter is set to yes. This sequence is then called AS ROOT when
6325 the SMB password in the smbpasswd file is being changed, without
6326 access to the old password cleartext. This means that root must be
6327 able to reset the user's password without knowing the text of the
6328 previous password. In the presence of NIS/YP, this means that the
6329 passwd program must be executed on the NIS master.
6330
6331 The string can contain the macro %n which is substituted for the
6332 new password. The old password (%o) is only available when encrypt
6333 passwords has been disabled. The chat sequence can also contain the
6334 standard macros \n, \r, \t and \s to give line-feed,
6335 carriage-return, tab and space. The chat sequence string can also
6336 contain a '*' which matches any sequence of characters. Double
6337 quotes can be used to collect strings with spaces in them into a
6338 single string.
6339
6340 If the send string in any part of the chat sequence is a full stop
6341 ".", then no string is sent. Similarly, if the expect string is a
6342 full stop then no string is expected.
6343
6344 If the pam password change parameter is set to yes, the chat pairs
6345 may be matched in any order, and success is determined by the PAM
6346 result, not any particular output. The \n macro is ignored for PAM
6347 conversions.
6348
6349 Default: passwd chat = *new*password* %n\n *new*password* %n\n
6350 *changed*
6351
6352 Example: passwd chat = "*Enter NEW password*" %n\n "*Reenter NEW
6353 password*" %n\n "*Password changed*"
6354
6355 passwd chat debug (G)
6356
6357 This boolean specifies if the passwd chat script parameter is run
6358 in debug mode. In this mode the strings passed to and received from
6359 the passwd chat are printed in the smbd(8) log with a debug level
6360 of 100. This is a dangerous option as it will allow plaintext
6361 passwords to be seen in the smbd log. It is available to help Samba
6362 admins debug their passwd chat scripts when calling the passwd
6363 program and should be turned off after this has been done. This
6364 option has no effect if the pam password change parameter is set.
6365 This parameter is off by default.
6366
6367 Default: passwd chat debug = no
6368
6369 passwd chat timeout (G)
6370
6371 This integer specifies the number of seconds smbd will wait for an
6372 initial answer from a passwd chat script being run. Once the
6373 initial answer is received the subsequent answers must be received
6374 in one tenth of this time. The default it two seconds.
6375
6376 Default: passwd chat timeout = 2
6377
6378 passwd program (G)
6379
6380 The name of a program that can be used to set UNIX user passwords.
6381 Any occurrences of %u will be replaced with the user name. The user
6382 name is checked for existence before calling the password changing
6383 program.
6384
6385 Also note that many passwd programs insist in reasonable passwords,
6386 such as a minimum length, or the inclusion of mixed case chars and
6387 digits. This can pose a problem as some clients (such as Windows
6388 for Workgroups) uppercase the password before sending it.
6389
6390 Note that if the unix password sync parameter is set to yes then
6391 this program is called AS ROOT before the SMB password in the
6392 smbpasswd file is changed. If this UNIX password change fails, then
6393 smbd will fail to change the SMB password also (this is by design).
6394
6395 If the unix password sync parameter is set this parameter MUST USE
6396 ABSOLUTE PATHS for ALL programs called, and must be examined for
6397 security implications. Note that by default unix password sync is
6398 set to no.
6399
6400 Default: passwd program =
6401
6402 Example: passwd program = /bin/passwd %u
6403
6404 password hash gpg key ids (G)
6405
6406 If samba is running as an active directory domain controller, it is
6407 possible to store the cleartext password of accounts in a
6408 PGP/OpenGPG encrypted form.
6409
6410 You can specify one or more recipients by key id or user id. Note
6411 that 32bit key ids are not allowed, specify at least 64bit.
6412
6413 The value is stored as 'Primary:SambaGPG' in the
6414 supplementalCredentials attribute.
6415
6416 As password changes can occur on any domain controller, you should
6417 configure this on each of them. Note that this feature is currently
6418 available only on Samba domain controllers.
6419
6420 This option is only available if samba was compiled with gpgme
6421 support.
6422
6423 You may need to export the GNUPGHOME environment variable before
6424 starting samba. It is strongly recommended to only store the
6425 public key in this location. The private key is not used for
6426 encryption and should be only stored where decryption is required.
6427
6428 Being able to restore the cleartext password helps, when they need
6429 to be imported into other authentication systems later (see
6430 samba-tool user getpassword) or you want to keep the passwords in
6431 sync with another system, e.g. an OpenLDAP server (see samba-tool
6432 user syncpasswords).
6433
6434 While this option needs to be configured on all domain controllers,
6435 the samba-tool user syncpasswords command should run on a single
6436 domain controller only (typically the PDC-emulator).
6437
6438 Default: password hash gpg key ids =
6439
6440 Example: password hash gpg key ids = 4952E40301FAB41A
6441
6442 Example: password hash gpg key ids = selftest@samba.example.com
6443
6444 Example: password hash gpg key ids = selftest@samba.example.com,
6445 4952E40301FAB41A
6446
6447 password hash userPassword schemes (G)
6448
6449 This parameter determines whether or not samba(8) acting as an
6450 Active Directory Domain Controller will attempt to store additional
6451 passwords hash types for the user
6452
6453 The values are stored as 'Primary:userPassword' in the
6454 supplementalCredentials attribute. The value of this option is a
6455 hash type.
6456
6457 The currently supported hash types are:
6458
6459 · CryptSHA256
6460
6461 · CryptSHA512
6462
6463 Multiple instances of a hash type may be computed and stored. The
6464 password hashes are calculated using the crypt(3) call. The number
6465 of rounds used to compute the hash can be specified by adding
6466 ':rounds=xxxx' to the hash type, i.e. CryptSHA512:rounds=4500 would
6467 calculate an SHA512 hash using 4500 rounds. If not specified the
6468 Operating System defaults for crypt(3) are used.
6469
6470 As password changes can occur on any domain controller, you should
6471 configure this on each of them. Note that this feature is currently
6472 available only on Samba domain controllers.
6473
6474 Currently the NT Hash of the password is recorded when these hashes
6475 are calculated and stored. When retrieving the hashes the current
6476 value of the NT Hash is checked against the stored NT Hash. This
6477 detects password changes that have not updated the password hashes.
6478 In this case samba-tool user will ignore the stored hash values.
6479
6480 Being able to obtain the hashed password helps, when they need to
6481 be imported into other authentication systems later (see samba-tool
6482 user getpassword) or you want to keep the passwords in sync with
6483 another system, e.g. an OpenLDAP server (see samba-tool user
6484 syncpasswords).
6485
6486 Related command: unix password sync
6487
6488 Default: password hash userPassword schemes =
6489
6490 Example: password hash userPassword schemes = CryptSHA256
6491
6492 Example: password hash userPassword schemes = CryptSHA256
6493 CryptSHA512
6494
6495 Example: password hash userPassword schemes =
6496 CryptSHA256:rounds=5000 CryptSHA512:rounds=7000
6497
6498 password server (G)
6499
6500 By specifying the name of a domain controller with this option, and
6501 using security = [ads|domain] it is possible to get Samba to do all
6502 its username/password validation using a specific remote server.
6503
6504 Ideally, this option should not be used, as the default '*'
6505 indicates to Samba to determine the best DC to contact dynamically,
6506 just as all other hosts in an AD domain do. This allows the domain
6507 to be maintained (addition and removal of domain controllers)
6508 without modification to the smb.conf file. The cryptographic
6509 protection on the authenticated RPC calls used to verify passwords
6510 ensures that this default is safe.
6511
6512 It is strongly recommended that you use the default of '*', however
6513 if in your particular environment you have reason to specify a
6514 particular DC list, then the list of machines in this option must
6515 be a list of names or IP addresses of Domain controllers for the
6516 Domain. If you use the default of '*', or list several hosts in the
6517 password server option then smbd will try each in turn till it
6518 finds one that responds. This is useful in case your primary server
6519 goes down.
6520
6521 If the list of servers contains both names/IP's and the '*'
6522 character, the list is treated as a list of preferred domain
6523 controllers, but an auto lookup of all remaining DC's will be added
6524 to the list as well. Samba will not attempt to optimize this list
6525 by locating the closest DC.
6526
6527 If parameter is a name, it is looked up using the parameter name
6528 resolve order and so may resolved by any method and order described
6529 in that parameter.
6530
6531 Default: password server = *
6532
6533 Example: password server = NT-PDC, NT-BDC1, NT-BDC2, *
6534
6535 Example: password server = windc.mydomain.com:389 192.168.1.101 *
6536
6537 directory
6538
6539 This parameter is a synonym for path.
6540
6541 path (S)
6542
6543 This parameter specifies a directory to which the user of the
6544 service is to be given access. In the case of printable services,
6545 this is where print data will spool prior to being submitted to the
6546 host for printing.
6547
6548 For a printable service offering guest access, the service should
6549 be readonly and the path should be world-writeable and have the
6550 sticky bit set. This is not mandatory of course, but you probably
6551 won't get the results you expect if you do otherwise.
6552
6553 Any occurrences of %u in the path will be replaced with the UNIX
6554 username that the client is using on this connection. Any
6555 occurrences of %m will be replaced by the NetBIOS name of the
6556 machine they are connecting from. These replacements are very
6557 useful for setting up pseudo home directories for users.
6558
6559 Note that this path will be based on root dir if one was specified.
6560
6561 Default: path =
6562
6563 Example: path = /home/fred
6564
6565 perfcount module (G)
6566
6567 This parameter specifies the perfcount backend to be used when
6568 monitoring SMB operations. Only one perfcount module may be used,
6569 and it must implement all of the apis contained in the
6570 smb_perfcount_handler structure defined in smb.h.
6571
6572 No default
6573
6574 pid directory (G)
6575
6576 This option specifies the directory where pid files will be placed.
6577
6578 Default: pid directory = /run
6579
6580 Example: pid directory = /var/run/
6581
6582 posix locking (S)
6583
6584 The smbd(8) daemon maintains an database of file locks obtained by
6585 SMB clients. The default behavior is to map this internal database
6586 to POSIX locks. This means that file locks obtained by SMB clients
6587 are consistent with those seen by POSIX compliant applications
6588 accessing the files via a non-SMB method (e.g. NFS or local file
6589 access). It is very unlikely that you need to set this parameter to
6590 "no", unless you are sharing from an NFS mount, which is not a good
6591 idea in the first place.
6592
6593 Default: posix locking = yes
6594
6595 postexec (S)
6596
6597 This option specifies a command to be run whenever the service is
6598 disconnected. It takes the usual substitutions. The command may be
6599 run as the root on some systems.
6600
6601 An interesting example may be to unmount server resources:
6602
6603 postexec = /etc/umount /cdrom
6604
6605 Default: postexec =
6606
6607 Example: postexec = echo \"%u disconnected from %S from %m (%I)\"
6608 >> /tmp/log
6609
6610 exec
6611
6612 This parameter is a synonym for preexec.
6613
6614 preexec (S)
6615
6616 This option specifies a command to be run whenever the service is
6617 connected to. It takes the usual substitutions.
6618
6619 An interesting example is to send the users a welcome message every
6620 time they log in. Maybe a message of the day? Here is an example:
6621
6622 preexec = csh -c 'echo \"Welcome to %S!\" |
6623 /usr/local/samba/bin/smbclient -M %m -I %I' &
6624
6625 Of course, this could get annoying after a while :-)
6626
6627 See also preexec close and postexec.
6628
6629 Default: preexec =
6630
6631 Example: preexec = echo \"%u connected to %S from %m (%I)\" >>
6632 /tmp/log
6633
6634 preexec close (S)
6635
6636 This boolean option controls whether a non-zero return code from
6637 preexec should close the service being connected to.
6638
6639 Default: preexec close = no
6640
6641 prefered master
6642
6643 This parameter is a synonym for preferred master.
6644
6645 preferred master (G)
6646
6647 This boolean parameter controls if nmbd(8) is a preferred master
6648 browser for its workgroup.
6649
6650 If this is set to yes, on startup, nmbd will force an election, and
6651 it will have a slight advantage in winning the election. It is
6652 recommended that this parameter is used in conjunction with domain
6653 master = yes, so that nmbd can guarantee becoming a domain master.
6654
6655 Use this option with caution, because if there are several hosts
6656 (whether Samba servers, Windows 95 or NT) that are preferred master
6657 browsers on the same subnet, they will each periodically and
6658 continuously attempt to become the local master browser. This will
6659 result in unnecessary broadcast traffic and reduced browsing
6660 capabilities.
6661
6662 Default: preferred master = auto
6663
6664 prefork backoff increment (G)
6665
6666 This option specifies the number of seconds added to the delay
6667 before a prefork master or worker process is restarted. The restart
6668 is initially zero, the prefork backoff increment is added to the
6669 delay on each restart up to the value specified by "prefork maximum
6670 backoff".
6671
6672 Additionally the the backoff for an individual service by using
6673 "prefork backoff increment: service name" i.e. "prefork backoff
6674 increment:ldap = 2" to set the backoff increment to 2.
6675
6676 If the backoff increment is 2 and the maximum backoff is 5. There
6677 will be a zero second delay for the first restart. A two second
6678 delay for the second restart. A four second delay for the third and
6679 any subsequent restarts
6680
6681 Default: prefork backoff increment = 10
6682
6683 prefork children (G)
6684
6685 This option controls the number of worker processes that are
6686 started for each service when prefork process model is enabled (see
6687 samba(8) -M) The prefork children are only started for those
6688 services that support prefork (currently ldap, kdc and netlogon).
6689 For processes that don't support preforking all requests are
6690 handled by a single process for that service.
6691
6692 This should be set to a small multiple of the number of CPU's
6693 available on the server
6694
6695 Additionally the number of prefork children can be specified for an
6696 individual service by using "prefork children: service name" i.e.
6697 "prefork children:ldap = 8" to set the number of ldap worker
6698 processes.
6699
6700 Default: prefork children = 4
6701
6702 prefork maximum backoff (G)
6703
6704 This option controls the maximum delay before a failed pre-fork
6705 process is restarted.
6706
6707 Default: prefork maximum backoff = 120
6708
6709 preload modules (G)
6710
6711 This is a list of paths to modules that should be loaded into smbd
6712 before a client connects. This improves the speed of smbd when
6713 reacting to new connections somewhat.
6714
6715 Default: preload modules =
6716
6717 Example: preload modules = /usr/lib/samba/passdb/mysql.so
6718
6719 preserve case (S)
6720
6721 This controls if new filenames are created with the case that the
6722 client passes, or if they are forced to be the default case.
6723
6724 See the section on NAME MANGLING for a fuller discussion.
6725
6726 Default: preserve case = yes
6727
6728 print ok
6729
6730 This parameter is a synonym for printable.
6731
6732 printable (S)
6733
6734 If this parameter is yes, then clients may open, write to and
6735 submit spool files on the directory specified for the service.
6736
6737 Note that a printable service will ALWAYS allow writing to the
6738 service path (user privileges permitting) via the spooling of print
6739 data. The read only parameter controls only non-printing access to
6740 the resource.
6741
6742 Default: printable = no
6743
6744 printcap cache time (G)
6745
6746 This option specifies the number of seconds before the printing
6747 subsystem is again asked for the known printers.
6748
6749 Setting this parameter to 0 disables any rescanning for new or
6750 removed printers after the initial startup.
6751
6752 Default: printcap cache time = 750
6753
6754 Example: printcap cache time = 600
6755
6756 printcap
6757
6758 This parameter is a synonym for printcap name.
6759
6760 printcap name (G)
6761
6762 This parameter may be used to override the compiled-in default
6763 printcap name used by the server (usually /etc/printcap). See the
6764 discussion of the [printers] section above for reasons why you
6765 might want to do this.
6766
6767 To use the CUPS printing interface set printcap name = cups. This
6768 should be supplemented by an additional setting printing = cups in
6769 the [global] section. printcap name = cups will use the "dummy"
6770 printcap created by CUPS, as specified in your CUPS configuration
6771 file.
6772
6773 On System V systems that use lpstat to list available printers you
6774 can use printcap name = lpstat to automatically obtain lists of
6775 available printers. This is the default for systems that define
6776 SYSV at configure time in Samba (this includes most System V based
6777 systems). If
6778 printcap name is set to lpstat on these systems then Samba will
6779 launch lpstat -v and attempt to parse the output to obtain a
6780 printer list.
6781
6782 A minimal printcap file would look something like this:
6783
6784 print1|My Printer 1
6785 print2|My Printer 2
6786 print3|My Printer 3
6787 print4|My Printer 4
6788 print5|My Printer 5
6789
6790 where the '|' separates aliases of a printer. The fact that the
6791 second alias has a space in it gives a hint to Samba that it's a
6792 comment.
6793
6794 Note
6795 Under AIX the default printcap name is /etc/qconfig. Samba will
6796 assume the file is in AIX qconfig format if the string qconfig
6797 appears in the printcap filename.
6798 Default: printcap name = /etc/printcap
6799
6800 Example: printcap name = /etc/myprintcap
6801
6802 print command (S)
6803
6804 After a print job has finished spooling to a service, this command
6805 will be used via a system() call to process the spool file.
6806 Typically the command specified will submit the spool file to the
6807 host's printing subsystem, but there is no requirement that this be
6808 the case. The server will not remove the spool file, so whatever
6809 command you specify should remove the spool file when it has been
6810 processed, otherwise you will need to manually remove old spool
6811 files.
6812
6813 The print command is simply a text string. It will be used verbatim
6814 after macro substitutions have been made:
6815
6816 %s, %f - the path to the spool file name
6817
6818 %p - the appropriate printer name
6819
6820 %J - the job name as transmitted by the client.
6821
6822 %c - The number of printed pages of the spooled job (if known).
6823
6824 %z - the size of the spooled print job (in bytes)
6825
6826 The print command MUST contain at least one occurrence of %s or %f
6827 - the %p is optional. At the time a job is submitted, if no printer
6828 name is supplied the %p will be silently removed from the printer
6829 command.
6830
6831 If specified in the [global] section, the print command given will
6832 be used for any printable service that does not have its own print
6833 command specified.
6834
6835 If there is neither a specified print command for a printable
6836 service nor a global print command, spool files will be created but
6837 not processed and (most importantly) not removed.
6838
6839 Note that printing may fail on some UNIXes from the nobody account.
6840 If this happens then create an alternative guest account that can
6841 print and set the guest account in the [global] section.
6842
6843 You can form quite complex print commands by realizing that they
6844 are just passed to a shell. For example the following will log a
6845 print job, print the file, then remove it. Note that ';' is the
6846 usual separator for command in shell scripts.
6847
6848 print command = echo Printing %s >> /tmp/print.log; lpr -P %p %s;
6849 rm %s
6850
6851 You may have to vary this command considerably depending on how you
6852 normally print files on your system. The default for the parameter
6853 varies depending on the setting of the printing parameter.
6854
6855 Default: For printing = BSD, AIX, QNX, LPRNG or PLP :
6856
6857 print command = lpr -r -P%p %s
6858
6859 For printing = SYSV or HPUX :
6860
6861 print command = lp -c -d%p %s; rm %s
6862
6863 For printing = SOFTQ :
6864
6865 print command = lp -d%p -s %s; rm %s
6866
6867 For printing = CUPS : If SAMBA is compiled against libcups, then
6868 printcap = cups uses the CUPS API to submit jobs, etc. Otherwise it
6869 maps to the System V commands with the -oraw option for printing,
6870 i.e. it uses lp -c -d%p -oraw; rm %s. With printing = cups, and if
6871 SAMBA is compiled against libcups, any manually set print command
6872 will be ignored.
6873
6874 No default
6875
6876 Example: print command = /usr/local/samba/bin/myprintscript %p %s
6877
6878 printer
6879
6880 This parameter is a synonym for printer name.
6881
6882 printer name (S)
6883
6884 This parameter specifies the name of the printer to which print
6885 jobs spooled through a printable service will be sent.
6886
6887 If specified in the [global] section, the printer name given will
6888 be used for any printable service that does not have its own
6889 printer name specified.
6890
6891 The default value of the printer name may be lp on many systems.
6892
6893 Default: printer name =
6894
6895 Example: printer name = laserwriter
6896
6897 printing (S)
6898
6899 This parameters controls how printer status information is
6900 interpreted on your system. It also affects the default values for
6901 the print command, lpq command, lppause command , lpresume command,
6902 and lprm command if specified in the [global] section.
6903
6904 Currently nine printing styles are supported. They are BSD, AIX,
6905 LPRNG, PLP, SYSV, HPUX, QNX, SOFTQ, CUPS and IPRINT.
6906
6907 Be aware that CUPS and IPRINT are only available if the CUPS
6908 development library was available at the time Samba was compiled or
6909 packaged.
6910
6911 To see what the defaults are for the other print commands when
6912 using the various options use the testparm(1) program.
6913
6914 This option can be set on a per printer basis. Please be aware
6915 however, that you must place any of the various printing commands
6916 (e.g. print command, lpq command, etc...) after defining the value
6917 for the printing option since it will reset the printing commands
6918 to default values.
6919
6920 See also the discussion in the [printers] section.
6921
6922 See testparm -v. for the default value on your system
6923
6924 Default: printing = # Depends on the operating system
6925
6926 printjob username (S)
6927
6928 This parameter specifies which user information will be passed to
6929 the printing system. Usually, the username is sent, but in some
6930 cases, e.g. the domain prefix is useful, too.
6931
6932 Default: printjob username = %U
6933
6934 Example: printjob username = %D\%U
6935
6936 print notify backchannel (S)
6937
6938 Windows print clients can update print queue status by expecting
6939 the server to open a backchannel SMB connection to them. Due to
6940 client firewall settings this can cause considerable timeouts and
6941 will often fail, as there is no guarantee the client is even
6942 running an SMB server. By default, the Samba print server will not
6943 try to connect back to clients, and will treat corresponding
6944 requests as if the connection back to the client failed.
6945
6946 Default: print notify backchannel = no
6947
6948 private directory
6949
6950 This parameter is a synonym for private dir.
6951
6952 private dir (G)
6953
6954 This parameters defines the directory smbd will use for storing
6955 such files as smbpasswd and secrets.tdb.
6956
6957 Default: private dir = /var/lib/samba/private
6958
6959 queuepause command (S)
6960
6961 This parameter specifies the command to be executed on the server
6962 host in order to pause the printer queue.
6963
6964 This command should be a program or script which takes a printer
6965 name as its only parameter and stops the printer queue, such that
6966 no longer jobs are submitted to the printer.
6967
6968 This command is not supported by Windows for Workgroups, but can be
6969 issued from the Printers window under Windows 95 and NT.
6970
6971 If a %p is given then the printer name is put in its place.
6972 Otherwise it is placed at the end of the command.
6973
6974 Note that it is good practice to include the absolute path in the
6975 command as the PATH may not be available to the server.
6976
6977 Default: queuepause command = # determined by printing parameter
6978
6979 Example: queuepause command = disable %p
6980
6981 queueresume command (S)
6982
6983 This parameter specifies the command to be executed on the server
6984 host in order to resume the printer queue. It is the command to
6985 undo the behavior that is caused by the previous parameter
6986 (queuepause command).
6987
6988 This command should be a program or script which takes a printer
6989 name as its only parameter and resumes the printer queue, such that
6990 queued jobs are resubmitted to the printer.
6991
6992 This command is not supported by Windows for Workgroups, but can be
6993 issued from the Printers window under Windows 95 and NT.
6994
6995 If a %p is given then the printer name is put in its place.
6996 Otherwise it is placed at the end of the command.
6997
6998 Note that it is good practice to include the absolute path in the
6999 command as the PATH may not be available to the server.
7000
7001 Default: queueresume command = # determined by printing parameter
7002
7003 Example: queueresume command = enable %p
7004
7005 raw NTLMv2 auth (G)
7006
7007 This parameter determines whether or not smbd(8) will allow SMB1
7008 clients without extended security (without SPNEGO) to use NTLMv2
7009 authentication.
7010
7011 If this option, lanman auth and ntlm auth are all disabled, then
7012 only clients with SPNEGO support will be permitted. That means
7013 NTLMv2 is only supported within NTLMSSP.
7014
7015 Default: raw NTLMv2 auth = no
7016
7017 read list (S)
7018
7019 This is a list of users that are given read-only access to a
7020 service. If the connecting user is in this list then they will not
7021 be given write access, no matter what the read only option is set
7022 to. The list can include group names using the syntax described in
7023 the invalid users parameter.
7024
7025 Default: read list =
7026
7027 Example: read list = mary, @students
7028
7029 read only (S)
7030
7031 An inverted synonym is writeable.
7032
7033 If this parameter is yes, then users of a service may not create or
7034 modify files in the service's directory.
7035
7036 Note that a printable service (printable = yes) will ALWAYS allow
7037 writing to the directory (user privileges permitting), but only via
7038 spooling operations.
7039
7040 Default: read only = yes
7041
7042 read raw (G)
7043
7044 This is ignored if async smb echo handler is set, because this
7045 feature is incompatible with raw read SMB requests
7046
7047 If enabled, raw reads allow reads of 65535 bytes in one packet.
7048 This typically provides a major performance benefit for some very,
7049 very old clients.
7050
7051 However, some clients either negotiate the allowable block size
7052 incorrectly or are incapable of supporting larger block sizes, and
7053 for these clients you may need to disable raw reads.
7054
7055 In general this parameter should be viewed as a system tuning tool
7056 and left severely alone.
7057
7058 Default: read raw = yes
7059
7060 realm (G)
7061
7062 This option specifies the kerberos realm to use. The realm is used
7063 as the ADS equivalent of the NT4 domain. It is usually set to the
7064 DNS name of the kerberos server.
7065
7066 Default: realm =
7067
7068 Example: realm = mysambabox.mycompany.com
7069
7070 registry shares (G)
7071
7072 This turns on or off support for share definitions read from
7073 registry. Shares defined in smb.conf take precedence over shares
7074 with the same name defined in registry. See the section on
7075 registry-based configuration for details.
7076
7077 Note that this parameter defaults to no, but it is set to yes when
7078 config backend is set to registry.
7079
7080 Default: registry shares = no
7081
7082 Example: registry shares = yes
7083
7084 reject md5 clients (G)
7085
7086 This option controls whether the netlogon server (currently only in
7087 'active directory domain controller' mode), will reject clients
7088 which does not support NETLOGON_NEG_SUPPORTS_AES.
7089
7090 You can set this to yes if all domain members support aes. This
7091 will prevent downgrade attacks.
7092
7093 This option takes precedence to the 'allow nt4 crypto' option.
7094
7095 Default: reject md5 clients = no
7096
7097 reject md5 servers (G)
7098
7099 This option controls whether winbindd requires support for aes
7100 support for the netlogon secure channel.
7101
7102 The following flags will be required NETLOGON_NEG_ARCFOUR,
7103 NETLOGON_NEG_SUPPORTS_AES, NETLOGON_NEG_PASSWORD_SET2 and
7104 NETLOGON_NEG_AUTHENTICATED_RPC.
7105
7106 You can set this to yes if all domain controllers support aes. This
7107 will prevent downgrade attacks.
7108
7109 The behavior can be controlled per netbios domain by using 'reject
7110 md5 servers:NETBIOSDOMAIN = yes' as option.
7111
7112 This option takes precedence to the require strong key option.
7113
7114 Default: reject md5 servers = no
7115
7116 remote announce (G)
7117
7118 This option allows you to setup nmbd(8) to periodically announce
7119 itself to arbitrary IP addresses with an arbitrary workgroup name.
7120
7121 This is useful if you want your Samba server to appear in a remote
7122 workgroup for which the normal browse propagation rules don't work.
7123 The remote workgroup can be anywhere that you can send IP packets
7124 to.
7125
7126 For example:
7127
7128 remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF
7129
7130 the above line would cause nmbd to announce itself to the two given
7131 IP addresses using the given workgroup names. If you leave out the
7132 workgroup name, then the one given in the workgroup parameter is
7133 used instead.
7134
7135 The IP addresses you choose would normally be the broadcast
7136 addresses of the remote networks, but can also be the IP addresses
7137 of known browse masters if your network config is that stable.
7138
7139 See the chapter on Network Browsing in the Samba-HOWTO book.
7140
7141 Default: remote announce =
7142
7143 remote browse sync (G)
7144
7145 This option allows you to setup nmbd(8) to periodically request
7146 synchronization of browse lists with the master browser of a Samba
7147 server that is on a remote segment. This option will allow you to
7148 gain browse lists for multiple workgroups across routed networks.
7149 This is done in a manner that does not work with any non-Samba
7150 servers.
7151
7152 This is useful if you want your Samba server and all local clients
7153 to appear in a remote workgroup for which the normal browse
7154 propagation rules don't work. The remote workgroup can be anywhere
7155 that you can send IP packets to.
7156
7157 For example:
7158
7159 remote browse sync = 192.168.2.255 192.168.4.255
7160
7161 the above line would cause nmbd to request the master browser on
7162 the specified subnets or addresses to synchronize their browse
7163 lists with the local server.
7164
7165 The IP addresses you choose would normally be the broadcast
7166 addresses of the remote networks, but can also be the IP addresses
7167 of known browse masters if your network config is that stable. If a
7168 machine IP address is given Samba makes NO attempt to validate that
7169 the remote machine is available, is listening, nor that it is in
7170 fact the browse master on its segment.
7171
7172 The remote browse sync may be used on networks where there is no
7173 WINS server, and may be used on disjoint networks where each
7174 network has its own WINS server.
7175
7176 Default: remote browse sync =
7177
7178 rename user script (G)
7179
7180 This is the full pathname to a script that will be run as root by
7181 smbd(8) under special circumstances described below.
7182
7183 When a user with admin authority or SeAddUserPrivilege rights
7184 renames a user (e.g.: from the NT4 User Manager for Domains), this
7185 script will be run to rename the POSIX user. Two variables, %uold
7186 and %unew, will be substituted with the old and new usernames,
7187 respectively. The script should return 0 upon successful
7188 completion, and nonzero otherwise.
7189
7190 Note
7191 The script has all responsibility to rename all the necessary
7192 data that is accessible in this posix method. This can mean
7193 different requirements for different backends. The tdbsam and
7194 smbpasswd backends will take care of the contents of their
7195 respective files, so the script is responsible only for
7196 changing the POSIX username, and other data that may required
7197 for your circumstances, such as home directory. Please also
7198 consider whether or not you need to rename the actual home
7199 directories themselves. The ldapsam backend will not make any
7200 changes, because of the potential issues with renaming the LDAP
7201 naming attribute. In this case the script is responsible for
7202 changing the attribute that samba uses (uid) for locating
7203 users, as well as any data that needs to change for other
7204 applications using the same directory.
7205 Default: rename user script =
7206
7207 require strong key (G)
7208
7209 This option controls whether winbindd requires support for md5
7210 strong key support for the netlogon secure channel.
7211
7212 The following flags will be required NETLOGON_NEG_STRONG_KEYS,
7213 NETLOGON_NEG_ARCFOUR and NETLOGON_NEG_AUTHENTICATED_RPC.
7214
7215 You can set this to no if some domain controllers only support des.
7216 This might allows weak crypto to be negotiated, may via downgrade
7217 attacks.
7218
7219 The behavior can be controlled per netbios domain by using 'require
7220 strong key:NETBIOSDOMAIN = no' as option.
7221
7222 Note for active directory domain this option is hardcoded to 'yes'
7223
7224 This option yields precedence to the reject md5 servers option.
7225
7226 This option takes precedence to the client schannel option.
7227
7228 Default: require strong key = yes
7229
7230 reset on zero vc (G)
7231
7232 This boolean option controls whether an incoming SMB1 session setup
7233 should kill other connections coming from the same IP. This matches
7234 the default Windows 2003 behaviour. Setting this parameter to yes
7235 becomes necessary when you have a flaky network and windows decides
7236 to reconnect while the old connection still has files with share
7237 modes open. These files become inaccessible over the new
7238 connection. The client sends a zero VC on the new connection, and
7239 Windows 2003 kills all other connections coming from the same IP.
7240 This way the locked files are accessible again. Please be aware
7241 that enabling this option will kill connections behind a
7242 masquerading router, and will not trigger for clients that only use
7243 SMB2 or SMB3.
7244
7245 Default: reset on zero vc = no
7246
7247 restrict anonymous (G)
7248
7249 The setting of this parameter determines whether SAMR and LSA
7250 DCERPC services can be accessed anonymously. This corresponds to
7251 the following Windows Server registry options:
7252
7253 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\RestrictAnonymous
7254
7255
7256 The option also affects the browse option which is required by
7257 legacy clients which rely on Netbios browsing. While modern Windows
7258 version should be fine with restricting the access there could
7259 still be applications relying on anonymous access.
7260
7261 Setting restrict anonymous = 1 will disable anonymous SAMR access.
7262
7263 Setting restrict anonymous = 2 will, in addition to restricting
7264 SAMR access, disallow anonymous connections to the IPC$ share in
7265 general. Setting guest ok = yes on any share will remove the
7266 security advantage.
7267
7268 Default: restrict anonymous = 0
7269
7270 rndc command (G)
7271
7272 This option is deprecated with Samba 4.11 and will be removed in
7273 future.
7274
7275 This option specifies the path to the name server control utility.
7276
7277 This option is only useful when Samba as an AD DC is configured
7278 with BIND9_FLATFILE for DNS.
7279
7280 The rndc utility should be a part of the bind installation.
7281
7282 Default: rndc command = /usr/sbin/rndc
7283
7284 Example: rndc command = /usr/local/bind9/sbin/rndc
7285
7286 root
7287
7288 This parameter is a synonym for root directory.
7289
7290 root dir
7291
7292 This parameter is a synonym for root directory.
7293
7294 root directory (G)
7295
7296 The server will chroot() (i.e. Change its root directory) to this
7297 directory on startup. This is not strictly necessary for secure
7298 operation. Even without it the server will deny access to files not
7299 in one of the service entries. It may also check for, and deny
7300 access to, soft links to other parts of the filesystem, or attempts
7301 to use ".." in file names to access other directories (depending on
7302 the setting of the wide smbconfoptions parameter).
7303
7304 Adding a root directory entry other than "/" adds an extra level of
7305 security, but at a price. It absolutely ensures that no access is
7306 given to files not in the sub-tree specified in the root directory
7307 option, including some files needed for complete operation of the
7308 server. To maintain full operability of the server you will need to
7309 mirror some system files into the root directory tree. In
7310 particular you will need to mirror /etc/passwd (or a subset of it),
7311 and any binaries or configuration files needed for printing (if
7312 required). The set of files that must be mirrored is operating
7313 system dependent.
7314
7315 Default: root directory =
7316
7317 Example: root directory = /homes/smb
7318
7319 root postexec (S)
7320
7321 This is the same as the postexec parameter except that the command
7322 is run as root. This is useful for unmounting filesystems (such as
7323 CDROMs) after a connection is closed.
7324
7325 Default: root postexec =
7326
7327 root preexec (S)
7328
7329 This is the same as the preexec parameter except that the command
7330 is run as root. This is useful for mounting filesystems (such as
7331 CDROMs) when a connection is opened.
7332
7333 Default: root preexec =
7334
7335 root preexec close (S)
7336
7337 This is the same as the preexec close parameter except that the
7338 command is run as root.
7339
7340 Default: root preexec close = no
7341
7342 rpc big endian (G)
7343
7344 Setting this option will force the RPC client and server to
7345 transfer data in big endian.
7346
7347 If it is disabled, data will be transferred in little endian.
7348
7349 The behaviour is independent of the endianness of the host machine.
7350
7351 Default: rpc big endian = no
7352
7353 rpc_daemon:DAEMON (G)
7354
7355 Defines whether to use the embedded code or start a separate daemon
7356 for the defined rpc services. The rpc_daemon prefix must be
7357 followed by the server name, and a value.
7358
7359 Two possible values are currently supported:
7360
7361 disabled
7362 fork
7363
7364
7365 The classic method is to run rpc services as internal daemons
7366 embedded in smbd, therefore the external daemons are disabled by
7367 default.
7368
7369 Choosing the fork option will cause samba to fork a separate
7370 process for each daemon configured this way. Each daemon may in
7371 turn fork a number of children used to handle requests from
7372 multiple smbds and direct tcp/ip connections (if the Endpoint
7373 Mapper is enabled). Communication with smbd happens over named
7374 pipes and require that said pipes are forward to the external
7375 daemon (see rpc_server).
7376
7377 Forked RPC Daemons support dynamically forking children to handle
7378 connections. The heuristics about how many children to keep around
7379 and how fast to allow them to fork and also how many clients each
7380 child is allowed to handle concurrently is defined by parametrical
7381 options named after the daemon. Five options are currently
7382 supported:
7383
7384 prefork_min_children
7385 prefork_max_children
7386 prefork_spawn_rate
7387 prefork_max_allowed_clients
7388 prefork_child_min_life
7389
7390
7391 To set one of these options use the following syntax:
7392
7393 daemonname:prefork_min_children = 5
7394
7395
7396 Samba includes separate daemons for spoolss, lsarpc/lsass,
7397 netlogon, samr, FSRVP and mdssvc(Spotlight). Currently five daemons
7398 are available and they are called:
7399
7400 epmd
7401 lsasd
7402 spoolssd
7403 fssd
7404 mdssd
7405
7406
7407 Example:
7408
7409 rpc_daemon:spoolssd = fork
7410
7411
7412 Default: rpc_daemon:DAEMON = disabled
7413
7414 rpc_server:SERVER (G)
7415
7416 With this option you can define if a rpc service should be running
7417 internal/embedded in smbd or should be redirected to an external
7418 daemon like Samba4, the endpoint mapper daemon, the spoolss daemon
7419 or the new LSA service daemon. The rpc_server prefix must be
7420 followed by the pipe name, and a value.
7421
7422 This option can be set for each available rpc service in Samba. The
7423 following list shows all available pipe names services you can
7424 modify with this option.
7425
7426 · epmapper - Endpoint Mapper
7427
7428 · winreg - Remote Registry Service
7429
7430 · srvsvc - Remote Server Services
7431
7432 · lsarpc - Local Security Authority
7433
7434 · samr - Security Account Management
7435
7436 · netlogon - Netlogon Remote Protocol
7437
7438 · netdfs - Settings for Distributed File System
7439
7440 · dssetup - Active Directory Setup
7441
7442 · wkssvc - Workstation Services
7443
7444 · spoolss - Network Printing Spooler
7445
7446 · svcctl - Service Control
7447
7448 · ntsvcs - Plug and Play Services
7449
7450 · eventlog - Event Logger
7451
7452 · initshutdown - Init Shutdown Service
7453
7454 · mdssvc - Spotlight
7455
7456 Three possible values currently supported are: embedded external
7457 disabled
7458
7459 The classic method is to run every pipe as an internal function
7460 embedded in smbd. The defaults may vary depending on the service.
7461
7462 Choosing the external option allows one to run a separate daemon or
7463 even a completely independent (3rd party) server capable of
7464 interfacing with samba via the MS-RPC interface over named pipes.
7465
7466 Currently in Samba3 we support four daemons, spoolssd, epmd, lsasd
7467 and mdssd. These daemons can be enabled using the rpc_daemon
7468 option. For spoolssd you have to enable the daemon and proxy the
7469 named pipe with:
7470
7471 Examples:
7472
7473 rpc_daemon:lsasd = fork
7474 rpc_server:lsarpc = external
7475 rpc_server:samr = external
7476 rpc_server:netlogon = external
7477
7478 rpc_server:spoolss = external
7479 rpc_server:epmapper = disabled
7480
7481 rpc_daemon:mdssd = fork
7482 rpc_server:mdssvc = external
7483
7484
7485 There is one special option which allows you to enable rpc services
7486 to listen for ncacn_ip_tcp connections too. Currently this is only
7487 used for testing and doesn't scale!
7488
7489 rpc_server:tcpip = yes
7490
7491
7492 Default: rpc_server:SERVER = embedded
7493
7494 rpc server dynamic port range (G)
7495
7496 This parameter tells the RPC server which port range it is allowed
7497 to use to create a listening socket for LSA, SAM, Netlogon and
7498 others without wellknown tcp ports. The first value is the lowest
7499 number of the port range and the second the hightest.
7500
7501 This applies to RPC servers in all server roles.
7502
7503 Default: rpc server dynamic port range = 49152-65535
7504
7505 rpc server port (G)
7506
7507 Specifies which port the server should listen on for DCE/RPC over
7508 TCP/IP traffic.
7509
7510 This controls the default port for all protocols, except for
7511 NETLOGON.
7512
7513 If unset, the first available port from rpc server dynamic port
7514 range is used, e.g. 49152.
7515
7516 The NETLOGON server will use the next available port, e.g. 49153.
7517 To change this port use (eg) rpc server port:netlogon = 4000.
7518
7519 Furthermore, all RPC servers can have the port they use specified
7520 independenty, with (for example) rpc server port:drsuapi = 5000.
7521
7522 This option applies currently only when samba(8) runs as an active
7523 directory domain controller.
7524
7525 The default value 0 causes Samba to select the first available port
7526 from rpc server dynamic port range.
7527
7528 Default: rpc server port = 0
7529
7530 samba kcc command (G)
7531
7532 This option specifies the path to the Samba KCC command. This
7533 script is used for replication topology replication.
7534
7535 It should not be necessary to modify this option except for testing
7536 purposes or if the samba_kcc was installed in a non-default
7537 location.
7538
7539 Default: samba kcc command =
7540 /builddir/build/BUILD/samba-4.11.4/source4/scripting/bin/samba_kcc
7541
7542 Example: samba kcc command = /usr/local/bin/kcc
7543
7544 security (G)
7545
7546 This option affects how clients respond to Samba and is one of the
7547 most important settings in the smb.conf file.
7548
7549 The default is security = user, as this is the most common setting,
7550 used for a standalone file server or a DC.
7551
7552 The alternatives are security = ads or security = domain, which
7553 support joining Samba to a Windows domain
7554
7555 You should use security = user and map to guest if you want to
7556 mainly setup shares without a password (guest shares). This is
7557 commonly used for a shared printer server.
7558
7559 The different settings will now be explained.
7560
7561 SECURITY = AUTO
7562
7563 This is the default security setting in Samba, and causes Samba to
7564 consult the server role parameter (if set) to determine the
7565 security mode.
7566
7567 SECURITY = USER
7568
7569 If server role is not specified, this is the default security
7570 setting in Samba. With user-level security a client must first
7571 "log-on" with a valid username and password (which can be mapped
7572 using the username map parameter). Encrypted passwords (see the
7573 encrypted passwords parameter) can also be used in this security
7574 mode. Parameters such as user and guest only if set are then
7575 applied and may change the UNIX user to use on this connection, but
7576 only after the user has been successfully authenticated.
7577
7578 Note that the name of the resource being requested is not sent to
7579 the server until after the server has successfully authenticated
7580 the client. This is why guest shares don't work in user level
7581 security without allowing the server to automatically map unknown
7582 users into the guest account. See the map to guest parameter for
7583 details on doing this.
7584
7585 SECURITY = DOMAIN
7586
7587 This mode will only work correctly if net(8) has been used to add
7588 this machine into a Windows NT Domain. It expects the encrypted
7589 passwords parameter to be set to yes. In this mode Samba will try
7590 to validate the username/password by passing it to a Windows NT
7591 Primary or Backup Domain Controller, in exactly the same way that a
7592 Windows NT Server would do.
7593
7594 Note that a valid UNIX user must still exist as well as the account
7595 on the Domain Controller to allow Samba to have a valid UNIX
7596 account to map file access to.
7597
7598 Note that from the client's point of view security = domain is the
7599 same as security = user. It only affects how the server deals with
7600 the authentication, it does not in any way affect what the client
7601 sees.
7602
7603 Note that the name of the resource being requested is not sent to
7604 the server until after the server has successfully authenticated
7605 the client. This is why guest shares don't work in user level
7606 security without allowing the server to automatically map unknown
7607 users into the guest account. See the map to guest parameter for
7608 details on doing this.
7609
7610 See also the password server parameter and the encrypted passwords
7611 parameter.
7612
7613 SECURITY = ADS
7614
7615 In this mode, Samba will act as a domain member in an ADS realm. To
7616 operate in this mode, the machine running Samba will need to have
7617 Kerberos installed and configured and Samba will need to be joined
7618 to the ADS realm using the net utility.
7619
7620 Note that this mode does NOT make Samba operate as a Active
7621 Directory Domain Controller.
7622
7623 Note that this forces require strong key = yes and client schannel
7624 = yes for the primary domain.
7625
7626 Read the chapter about Domain Membership in the HOWTO for details.
7627
7628 Default: security = AUTO
7629
7630 Example: security = DOMAIN
7631
7632 security mask (S)
7633
7634 This parameter has been removed for Samba 4.0.0.
7635
7636 No default
7637
7638 max protocol
7639
7640 This parameter is a synonym for server max protocol.
7641
7642 protocol
7643
7644 This parameter is a synonym for server max protocol.
7645
7646 server max protocol (G)
7647
7648 The value of the parameter (a string) is the highest protocol level
7649 that will be supported by the server.
7650
7651 Possible values are :
7652
7653 · LANMAN1: First modern version of the protocol. Long
7654 filename support.
7655
7656 · LANMAN2: Updates to Lanman1 protocol.
7657
7658 · NT1: Current up to date version of the protocol. Used by
7659 Windows NT. Known as CIFS.
7660
7661 · SMB2: Re-implementation of the SMB protocol. Used by
7662 Windows Vista and later versions of Windows. SMB2 has
7663 sub protocols available.
7664
7665 · SMB2_02: The earliest SMB2 version.
7666
7667 · SMB2_10: Windows 7 SMB2 version.
7668
7669 · SMB2_22: Early Windows 8 SMB2 version.
7670
7671 · SMB2_24: Windows 8 beta SMB2 version.
7672
7673 By default SMB2 selects the SMB2_10 variant.
7674
7675 · SMB3: The same as SMB2. Used by Windows 8. SMB3 has sub
7676 protocols available.
7677
7678 · SMB3_00: Windows 8 SMB3 version. (mostly the
7679 same as SMB2_24)
7680
7681 · SMB3_02: Windows 8.1 SMB3 version.
7682
7683 · SMB3_10: early Windows 10 technical preview
7684 SMB3 version.
7685
7686 · SMB3_11: Windows 10 technical preview SMB3
7687 version (maybe final).
7688
7689 By default SMB3 selects the SMB3_11 variant.
7690
7691 Normally this option should not be set as the automatic negotiation
7692 phase in the SMB protocol takes care of choosing the appropriate
7693 protocol.
7694
7695 Default: server max protocol = SMB3
7696
7697 Example: server max protocol = LANMAN1
7698
7699 min protocol
7700
7701 This parameter is a synonym for server min protocol.
7702
7703 server min protocol (G)
7704
7705 This setting controls the minimum protocol version that the server
7706 will allow the client to use.
7707
7708 Normally this option should not be set as the automatic negotiation
7709 phase in the SMB protocol takes care of choosing the appropriate
7710 protocol unless you have legacy clients which are SMB1 capable
7711 only.
7712
7713 See Related command: server max protocol for a full list of
7714 available protocols.
7715
7716 Default: server min protocol = SMB2_02
7717
7718 Example: server min protocol = NT1
7719
7720 server multi channel support (G)
7721
7722 This boolean parameter controls whether smbd(8) will support SMB3
7723 multi-channel.
7724
7725 This parameter was added with version 4.4.
7726
7727 Warning: Note that this feature is still considered experimental.
7728 Use it at your own risk: Even though it may seem to work well in
7729 testing, it may result in data corruption under some race
7730 conditions. Future releases may improve this situation.
7731
7732 Default: server multi channel support = no
7733
7734 server role (G)
7735
7736 This option determines the basic operating mode of a Samba server
7737 and is one of the most important settings in the smb.conf file.
7738
7739 The default is server role = auto, as causes Samba to operate
7740 according to the security setting, or if not specified as a simple
7741 file server that is not connected to any domain.
7742
7743 The alternatives are server role = standalone or server role =
7744 member server, which support joining Samba to a Windows domain,
7745 along with server role = domain controller, which run Samba as a
7746 Windows domain controller.
7747
7748 You should use server role = standalone and map to guest if you
7749 want to mainly setup shares without a password (guest shares). This
7750 is commonly used for a shared printer server.
7751
7752 SERVER ROLE = AUTO
7753
7754 This is the default server role in Samba, and causes Samba to
7755 consult the security parameter (if set) to determine the server
7756 role, giving compatible behaviours to previous Samba versions.
7757
7758 SERVER ROLE = STANDALONE
7759
7760 If security is also not specified, this is the default security
7761 setting in Samba. In standalone operation, a client must first
7762 "log-on" with a valid username and password (which can be mapped
7763 using the username map parameter) stored on this machine. Encrypted
7764 passwords (see the encrypted passwords parameter) are by default
7765 used in this security mode. Parameters such as user and guest only
7766 if set are then applied and may change the UNIX user to use on this
7767 connection, but only after the user has been successfully
7768 authenticated.
7769
7770 SERVER ROLE = MEMBER SERVER
7771
7772 This mode will only work correctly if net(8) has been used to add
7773 this machine into a Windows Domain. It expects the encrypted
7774 passwords parameter to be set to yes. In this mode Samba will try
7775 to validate the username/password by passing it to a Windows or
7776 Samba Domain Controller, in exactly the same way that a Windows
7777 Server would do.
7778
7779 Note that a valid UNIX user must still exist as well as the account
7780 on the Domain Controller to allow Samba to have a valid UNIX
7781 account to map file access to. Winbind can provide this.
7782
7783 SERVER ROLE = CLASSIC PRIMARY DOMAIN CONTROLLER
7784
7785 This mode of operation runs a classic Samba primary domain
7786 controller, providing domain logon services to Windows and Samba
7787 clients of an NT4-like domain. Clients must be joined to the domain
7788 to create a secure, trusted path across the network. There must be
7789 only one PDC per NetBIOS scope (typcially a broadcast network or
7790 clients served by a single WINS server).
7791
7792 SERVER ROLE = CLASSIC BACKUP DOMAIN CONTROLLER
7793
7794 This mode of operation runs a classic Samba backup domain
7795 controller, providing domain logon services to Windows and Samba
7796 clients of an NT4-like domain. As a BDC, this allows multiple Samba
7797 servers to provide redundant logon services to a single NetBIOS
7798 scope.
7799
7800 SERVER ROLE = ACTIVE DIRECTORY DOMAIN CONTROLLER
7801
7802 This mode of operation runs Samba as an active directory domain
7803 controller, providing domain logon services to Windows and Samba
7804 clients of the domain. This role requires special configuration,
7805 see the Samba4 HOWTO
7806
7807 Default: server role = AUTO
7808
7809 Example: server role = ACTIVE DIRECTORY DOMAIN CONTROLLER
7810
7811 server schannel (G)
7812
7813 This option is deprecated with Samba 4.8 and will be removed in
7814 future. At the same time the default changed to yes, which will be
7815 the hardcoded behavior in future. If you have the need for the
7816 behavior of "auto" to be kept, please file a bug at
7817 https://bugzilla.samba.org.
7818
7819 This controls whether the server offers or even demands the use of
7820 the netlogon schannel. server schannel = no does not offer the
7821 schannel, server schannel = auto offers the schannel but does not
7822 enforce it, and server schannel = yes denies access if the client
7823 is not able to speak netlogon schannel. This is only the case for
7824 Windows NT4 before SP4.
7825
7826 Please note that with this set to no, you will have to apply the
7827 WindowsXP WinXP_SignOrSeal.reg registry patch found in the
7828 docs/registry subdirectory of the Samba distribution tarball.
7829
7830 Default: server schannel = yes
7831
7832 Example: server schannel = auto
7833
7834 server services (G)
7835
7836 This option contains the services that the Samba daemon will run.
7837
7838 An entry in the smb.conf file can either override the previous
7839 value completely or entries can be removed from or added to it by
7840 prefixing them with + or -.
7841
7842 Default: server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc,
7843 drepl, winbindd, ntp_signd, kcc, dnsupdate, dns
7844
7845 Example: server services = -s3fs, +smb
7846
7847 server signing (G)
7848
7849 This controls whether the client is allowed or required to use SMB1
7850 and SMB2 signing. Possible values are default, auto, mandatory and
7851 disabled.
7852
7853 By default, and when smb signing is set to default, smb signing is
7854 required when server role is active directory domain controller and
7855 disabled otherwise.
7856
7857 When set to auto, SMB1 signing is offered, but not enforced. When
7858 set to mandatory, SMB1 signing is required and if set to disabled,
7859 SMB signing is not offered either.
7860
7861 For the SMB2 protocol, by design, signing cannot be disabled. In
7862 the case where SMB2 is negotiated, if this parameter is set to
7863 disabled, it will be treated as auto. Setting it to mandatory will
7864 still require SMB2 clients to use signing.
7865
7866 Default: server signing = default
7867
7868 server string (G)
7869
7870 This controls what string will show up in the printer comment box
7871 in print manager and next to the IPC connection in net view. It can
7872 be any string that you wish to show to your users.
7873
7874 It also sets what will appear in browse lists next to the machine
7875 name.
7876
7877 A %v will be replaced with the Samba version number.
7878
7879 A %h will be replaced with the hostname.
7880
7881 Default: server string = Samba %v
7882
7883 Example: server string = University of GNUs Samba Server
7884
7885 set primary group script (G)
7886
7887 Thanks to the Posix subsystem in NT a Windows User has a primary
7888 group in addition to the auxiliary groups. This script sets the
7889 primary group in the unix user database when an administrator sets
7890 the primary group from the windows user manager or when fetching a
7891 SAM with net rpc vampire. %u will be replaced with the user whose
7892 primary group is to be set. %g will be replaced with the group to
7893 set.
7894
7895 Default: set primary group script =
7896
7897 Example: set primary group script = /usr/sbin/usermod -g '%g' '%u'
7898
7899 set quota command (G)
7900
7901 The set quota command should only be used whenever there is no
7902 operating system API available from the OS that samba can use.
7903
7904 This option is only available if Samba was compiled with quota
7905 support.
7906
7907 This parameter should specify the path to a script that can set
7908 quota for the specified arguments.
7909
7910 The specified script should take the following arguments:
7911
7912 · 1 - path to where the quota needs to be set. This needs
7913 to be interpreted relative to the current working
7914 directory that the script may also check for.
7915
7916 · 2 - quota type
7917
7918 · 1 - user quotas
7919
7920 · 2 - user default quotas (uid = -1)
7921
7922 · 3 - group quotas
7923
7924 · 4 - group default quotas (gid = -1)
7925
7926
7927 · 3 - id (uid for user, gid for group, -1 if N/A)
7928
7929 · 4 - quota state (0 = disable, 1 = enable, 2 = enable and
7930 enforce)
7931
7932 · 5 - block softlimit
7933
7934 · 6 - block hardlimit
7935
7936 · 7 - inode softlimit
7937
7938 · 8 - inode hardlimit
7939
7940 · 9(optional) - block size, defaults to 1024
7941
7942 The script should output at least one line of data on success. And
7943 nothing on failure.
7944
7945 Default: set quota command =
7946
7947 Example: set quota command = /usr/local/sbin/set_quota
7948
7949 share backend (G)
7950
7951 This option specifies the backend that will be used to access the
7952 configuration of file shares.
7953
7954 Traditionally, Samba file shares have been configured in the
7955 smb.conf file and this is still the default.
7956
7957 At the moment there are no other supported backends.
7958
7959 Default: share backend = classic
7960
7961 share:fake_fscaps (G)
7962
7963 This is needed to support some special application that makes
7964 QFSINFO calls to check whether we set the SPARSE_FILES bit (0x40).
7965 If this bit is not set that particular application refuses to work
7966 against Samba. With share:fake_fscaps = 64 the SPARSE_FILES file
7967 system capability flag is set. Use other decimal values to specify
7968 the bitmask you need to fake.
7969
7970 Default: share:fake_fscaps = 0
7971
7972 short preserve case (S)
7973
7974 This boolean parameter controls if new files which conform to 8.3
7975 syntax, that is all in upper case and of suitable length, are
7976 created upper case, or if they are forced to be the default case.
7977 This option can be use with preserve case = yes to permit long
7978 filenames to retain their case, while short names are lowered.
7979
7980 See the section on NAME MANGLING.
7981
7982 Default: short preserve case = yes
7983
7984 show add printer wizard (G)
7985
7986 With the introduction of MS-RPC based printing support for Windows
7987 NT/2000 client in Samba 2.2, a "Printers..." folder will appear on
7988 Samba hosts in the share listing. Normally this folder will contain
7989 an icon for the MS Add Printer Wizard (APW). However, it is
7990 possible to disable this feature regardless of the level of
7991 privilege of the connected user.
7992
7993 Under normal circumstances, the Windows NT/2000 client will open a
7994 handle on the printer server with OpenPrinterEx() asking for
7995 Administrator privileges. If the user does not have administrative
7996 access on the print server (i.e is not root or has granted the
7997 SePrintOperatorPrivilege), the OpenPrinterEx() call fails and the
7998 client makes another open call with a request for a lower privilege
7999 level. This should succeed, however the APW icon will not be
8000 displayed.
8001
8002 Disabling the show add printer wizard parameter will always cause
8003 the OpenPrinterEx() on the server to fail. Thus the APW icon will
8004 never be displayed.
8005
8006 Note
8007 This does not prevent the same user from having administrative
8008 privilege on an individual printer.
8009 Default: show add printer wizard = yes
8010
8011 shutdown script (G)
8012
8013 This a full path name to a script called by smbd(8) that should
8014 start a shutdown procedure.
8015
8016 If the connected user possesses the SeRemoteShutdownPrivilege,
8017 right, this command will be run as root.
8018
8019 The %z %t %r %f variables are expanded as follows:
8020
8021 · %z will be substituted with the shutdown message sent to
8022 the server.
8023
8024 · %t will be substituted with the number of seconds to
8025 wait before effectively starting the shutdown procedure.
8026
8027 · %r will be substituted with the switch -r. It means
8028 reboot after shutdown for NT.
8029
8030 · %f will be substituted with the switch -f. It means
8031 force the shutdown even if applications do not respond
8032 for NT.
8033
8034 Shutdown script example:
8035
8036 #!/bin/bash
8037
8038 time=$2
8039 let time="${time} / 60"
8040 let time="${time} + 1"
8041
8042 /sbin/shutdown $3 $4 +$time $1 &
8043
8044
8045 Shutdown does not return so we need to launch it in background.
8046
8047 Default: shutdown script =
8048
8049 Example: shutdown script = /usr/local/samba/sbin/shutdown %m %t %r
8050 %f
8051
8052 smb2 leases (G)
8053
8054 This boolean option tells smbd whether to globally negotiate SMB2
8055 leases on file open requests. Leasing is an SMB2-only feature which
8056 allows clients to aggressively cache files locally above and beyond
8057 the caching allowed by SMB1 oplocks.
8058
8059 This is only available with oplocks = yes and kernel oplocks = no.
8060
8061 Note that the write cache won't be used for file handles with a
8062 smb2 write lease.
8063
8064 Default: smb2 leases = yes
8065
8066 smb2 max credits (G)
8067
8068 This option controls the maximum number of outstanding simultaneous
8069 SMB2 operations that Samba tells the client it will allow. This is
8070 similar to the max mux parameter for SMB1. You should never need to
8071 set this parameter.
8072
8073 The default is 8192 credits, which is the same as a Windows 2008R2
8074 SMB2 server.
8075
8076 Default: smb2 max credits = 8192
8077
8078 smb2 max read (G)
8079
8080 This option specifies the protocol value that smbd(8) will return
8081 to a client, informing the client of the largest size that may be
8082 returned by a single SMB2 read call.
8083
8084 The maximum is 8388608 bytes (8MiB), which is the same as a Windows
8085 Server 2012 r2.
8086
8087 Please note that the default is 8MiB, but it's limit is based on
8088 the smb2 dialect (64KiB for SMB == 2.0, 8MiB for SMB >= 2.1 with
8089 LargeMTU). Large MTU is not supported over NBT (tcp port 139).
8090
8091 Default: smb2 max read = 8388608
8092
8093 smb2 max trans (G)
8094
8095 This option specifies the protocol value that smbd(8) will return
8096 to a client, informing the client of the largest size of buffer
8097 that may be used in querying file meta-data via QUERY_INFO and
8098 related SMB2 calls.
8099
8100 The maximum is 8388608 bytes (8MiB), which is the same as a Windows
8101 Server 2012 r2.
8102
8103 Please note that the default is 8MiB, but it's limit is based on
8104 the smb2 dialect (64KiB for SMB == 2.0, 1MiB for SMB >= 2.1 with
8105 LargeMTU). Large MTU is not supported over NBT (tcp port 139).
8106
8107 Default: smb2 max trans = 8388608
8108
8109 smb2 max write (G)
8110
8111 This option specifies the protocol value that smbd(8) will return
8112 to a client, informing the client of the largest size that may be
8113 sent to the server by a single SMB2 write call.
8114
8115 The maximum is 8388608 bytes (8MiB), which is the same as a Windows
8116 Server 2012 r2.
8117
8118 Please note that the default is 8MiB, but it's limit is based on
8119 the smb2 dialect (64KiB for SMB == 2.0, 8MiB for SMB => 2.1 with
8120 LargeMTU). Large MTU is not supported over NBT (tcp port 139).
8121
8122 Default: smb2 max write = 8388608
8123
8124 smbd async dosmode (S)
8125
8126 This parameter control whether the fileserver will use sync or
8127 async methods for fetching the DOS attributes when doing a
8128 directory listing. By default sync methods will be used.
8129
8130 Default: smbd async dosmode = no
8131
8132 smbd getinfo ask sharemode (S)
8133
8134 This parameter allows disabling fetching file write time from the
8135 open file handle database locking.tdb when a client requests file
8136 or directory metadata. It's a performance optimisation at the
8137 expense of protocol correctness.
8138
8139 Default: smbd getinfo ask sharemode = yes
8140
8141 smbd max async dosmode (S)
8142
8143 This parameter controls how many async operations to fetch the DOS
8144 attributes the fileserver will queue when doing directory listings.
8145
8146 Default: smbd max async dosmode = aio max threads * 2
8147
8148 smbd profiling level (G)
8149
8150 This parameter allows the administrator to enable profiling
8151 support.
8152
8153 Possible values are off, count and on.
8154
8155 Default: smbd profiling level = off
8156
8157 Example: smbd profiling level = on
8158
8159 smbd search ask sharemode (S)
8160
8161 This parameter allows disabling fetching file write time from the
8162 open file handle database locking.tdb. It's a performance
8163 optimisation at the expense of protocol correctness.
8164
8165 Default: smbd search ask sharemode = yes
8166
8167 smb encrypt (S)
8168
8169 This parameter controls whether a remote client is allowed or
8170 required to use SMB encryption. It has different effects depending
8171 on whether the connection uses SMB1 or SMB2 and newer:
8172
8173 · If the connection uses SMB1, then this option controls
8174 the use of a Samba-specific extension to the SMB
8175 protocol introduced in Samba 3.2 that makes use of the
8176 Unix extensions.
8177
8178 · If the connection uses SMB2 or newer, then this option
8179 controls the use of the SMB-level encryption that is
8180 supported in SMB version 3.0 and above and available in
8181 Windows 8 and newer.
8182
8183 This parameter can be set globally and on a per-share bases.
8184 Possible values are off (or disabled), enabled (or auto, or
8185 if_required), desired, and required (or mandatory). A special value
8186 is default which is the implicit default setting of enabled.
8187
8188 Effects for SMB1
8189 The Samba-specific encryption of SMB1 connections is an
8190 extension to the SMB protocol negotiated as part of the UNIX
8191 extensions. SMB encryption uses the GSSAPI (SSPI on Windows)
8192 ability to encrypt and sign every request/response in a SMB
8193 protocol stream. When enabled it provides a secure method of
8194 SMB/CIFS communication, similar to an ssh protected session,
8195 but using SMB/CIFS authentication to negotiate encryption and
8196 signing keys. Currently this is only supported smbclient of by
8197 Samba 3.2 and newer, and hopefully soon Linux CIFSFS and
8198 MacOS/X clients. Windows clients do not support this feature.
8199
8200 This may be set on a per-share basis, but clients may chose to
8201 encrypt the entire session, not just traffic to a specific
8202 share. If this is set to mandatory then all traffic to a share
8203 must be encrypted once the connection has been made to the
8204 share. The server would return "access denied" to all
8205 non-encrypted requests on such a share. Selecting encrypted
8206 traffic reduces throughput as smaller packet sizes must be used
8207 (no huge UNIX style read/writes allowed) as well as the
8208 overhead of encrypting and signing all the data.
8209
8210 If SMB encryption is selected, Windows style SMB signing (see
8211 the server signing option) is no longer necessary, as the
8212 GSSAPI flags use select both signing and sealing of the data.
8213
8214 When set to auto or default, SMB encryption is offered, but not
8215 enforced. When set to mandatory, SMB encryption is required and
8216 if set to disabled, SMB encryption can not be negotiated.
8217
8218 Effects for SMB2
8219 Native SMB transport encryption is available in SMB version 3.0
8220 or newer. It is only offered by Samba if server max protocol is
8221 set to SMB3 or newer. Clients supporting this type of
8222 encryption include Windows 8 and newer, Windows server 2012 and
8223 newer, and smbclient of Samba 4.1 and newer.
8224
8225 The protocol implementation offers various options:
8226
8227 · The capability to perform SMB encryption can be
8228 negotiated during protocol negotiation.
8229
8230 · Data encryption can be enabled globally. In that
8231 case, an encryption-capable connection will have all
8232 traffic in all its sessions encrypted. In particular
8233 all share connections will be encrypted.
8234
8235 · Data encryption can also be enabled per share if not
8236 enabled globally. For an encryption-capable
8237 connection, all connections to an encryption-enabled
8238 share will be encrypted.
8239
8240 · Encryption can be enforced. This means that session
8241 setups will be denied on non-encryption-capable
8242 connections if data encryption has been enabled
8243 globally. And tree connections will be denied for
8244 non-encryption capable connections to shares with
8245 data encryption enabled.
8246
8247 These features can be controlled with settings of smb encrypt
8248 as follows:
8249
8250 · Leaving it as default, explicitly setting default,
8251 or setting it to enabled globally will enable
8252 negotiation of encryption but will not turn on data
8253 encryption globally or per share.
8254
8255 · Setting it to desired globally will enable
8256 negotiation and will turn on data encryption on
8257 sessions and share connections for those clients
8258 that support it.
8259
8260 · Setting it to required globally will enable
8261 negotiation and turn on data encryption on sessions
8262 and share connections. Clients that do not support
8263 encryption will be denied access to the server.
8264
8265 · Setting it to off globally will completely disable
8266 the encryption feature for all connections. Setting
8267 smb encrypt = required for individual shares (while
8268 it's globally off) will deny access to this shares
8269 for all clients.
8270
8271 · Setting it to desired on a share will turn on data
8272 encryption for this share for clients that support
8273 encryption if negotiation has been enabled globally.
8274
8275 · Setting it to required on a share will enforce data
8276 encryption for this share if negotiation has been
8277 enabled globally. I.e. clients that do not support
8278 encryption will be denied access to the share.
8279
8280 Note that this allows per-share enforcing to be
8281 controlled in Samba differently from Windows: In
8282 Windows, RejectUnencryptedAccess is a global
8283 setting, and if it is set, all shares with data
8284 encryption turned on are automatically enforcing
8285 encryption. In order to achieve the same effect in
8286 Samba, one has to globally set smb encrypt to
8287 enabled, and then set all shares that should be
8288 encrypted to required. Additionally, it is possible
8289 in Samba to have some shares with encryption
8290 required and some other shares with encryption only
8291 desired, which is not possible in Windows.
8292
8293 · Setting it to off or enabled for a share has no
8294 effect.
8295
8296
8297 Default: smb encrypt = default
8298
8299 smb passwd file (G)
8300
8301 This option sets the path to the encrypted smbpasswd file. By
8302 default the path to the smbpasswd file is compiled into Samba.
8303
8304 An example of use is:
8305
8306 smb passwd file = /etc/samba/smbpasswd
8307
8308 Default: smb passwd file = /var/lib/samba/private/smbpasswd
8309
8310 smb ports (G)
8311
8312 Specifies which ports the server should listen on for SMB traffic.
8313
8314 Default: smb ports = 445 139
8315
8316 socket options (G)
8317
8318 Warning
8319 Modern server operating systems are tuned for high network
8320 performance in the majority of situations; when you set socket
8321 options you are overriding those settings. Linux in particular
8322 has an auto-tuning mechanism for buffer sizes that will be
8323 disabled if you specify a socket buffer size. This can
8324 potentially cripple your TCP/IP stack.
8325
8326 Getting the socket options correct can make a big difference to
8327 your performance, but getting them wrong can degrade it by just
8328 as much. As with any other low level setting, if you must make
8329 changes to it, make small changes and test the effect before
8330 making any large changes.
8331
8332 This option allows you to set socket options to be used when
8333 talking with the client.
8334
8335 Socket options are controls on the networking layer of the
8336 operating systems which allow the connection to be tuned.
8337
8338 This option will typically be used to tune your Samba server for
8339 optimal performance for your local network. There is no way that
8340 Samba can know what the optimal parameters are for your net, so you
8341 must experiment and choose them yourself. We strongly suggest you
8342 read the appropriate documentation for your operating system first
8343 (perhaps man setsockopt will help).
8344
8345 You may find that on some systems Samba will say "Unknown socket
8346 option" when you supply an option. This means you either
8347 incorrectly typed it or you need to add an include file to
8348 includes.h for your OS. If the latter is the case please send the
8349 patch to samba-technical@lists.samba.org.
8350
8351 Any of the supported socket options may be combined in any way you
8352 like, as long as your OS allows it.
8353
8354 This is the list of socket options currently settable using this
8355 option:
8356
8357 · SO_KEEPALIVE
8358
8359 · SO_REUSEADDR
8360
8361 · SO_BROADCAST
8362
8363 · TCP_NODELAY
8364
8365 · TCP_KEEPCNT *
8366
8367 · TCP_KEEPIDLE *
8368
8369 · TCP_KEEPINTVL *
8370
8371 · IPTOS_LOWDELAY
8372
8373 · IPTOS_THROUGHPUT
8374
8375 · SO_REUSEPORT
8376
8377 · SO_SNDBUF *
8378
8379 · SO_RCVBUF *
8380
8381 · SO_SNDLOWAT *
8382
8383 · SO_RCVLOWAT *
8384
8385 · SO_SNDTIMEO *
8386
8387 · SO_RCVTIMEO *
8388
8389 · TCP_FASTACK *
8390
8391 · TCP_QUICKACK
8392
8393 · TCP_NODELAYACK
8394
8395 · TCP_KEEPALIVE_THRESHOLD *
8396
8397 · TCP_KEEPALIVE_ABORT_THRESHOLD *
8398
8399 · TCP_DEFER_ACCEPT *
8400
8401 Those marked with a '*' take an integer argument. The others can
8402 optionally take a 1 or 0 argument to enable or disable the option,
8403 by default they will be enabled if you don't specify 1 or 0.
8404
8405 To specify an argument use the syntax SOME_OPTION = VALUE for
8406 example SO_SNDBUF = 8192. Note that you must not have any spaces
8407 before or after the = sign.
8408
8409 If you are on a local network then a sensible option might be:
8410
8411 socket options = IPTOS_LOWDELAY
8412
8413 If you have a local network then you could try:
8414
8415 socket options = IPTOS_LOWDELAY TCP_NODELAY
8416
8417 If you are on a wide area network then perhaps try setting
8418 IPTOS_THROUGHPUT.
8419
8420 Note that several of the options may cause your Samba server to
8421 fail completely. Use these options with caution!
8422
8423 Default: socket options = TCP_NODELAY
8424
8425 Example: socket options = IPTOS_LOWDELAY
8426
8427 spn update command (G)
8428
8429 This option sets the command that for updating servicePrincipalName
8430 names from spn_update_list.
8431
8432 Default: spn update command =
8433 /builddir/build/BUILD/samba-4.11.4/source4/scripting/bin/samba_spnupdate
8434
8435 Example: spn update command = /usr/local/sbin/spnupdate
8436
8437 spoolss: architecture (G)
8438
8439 Windows spoolss print clients only allow association of server-side
8440 drivers with printers when the driver architecture matches the
8441 advertised print server architecture. Samba's spoolss print server
8442 architecture can be changed using this parameter.
8443
8444 Default: spoolss: architecture = Windows NT x86
8445
8446 Example: spoolss: architecture = Windows x64
8447
8448 spoolss: os_major (G)
8449
8450 Windows might require a new os version number. This option allows
8451 to modify the build number. The complete default version number is:
8452 5.0.2195 (Windows 2000). The example is 6.1.7601 (Windows 2008 R2).
8453
8454 Default: spoolss: os_major = 5
8455
8456 Example: spoolss: os_major = 6
8457
8458 spoolss: os_minor (G)
8459
8460 Windows might require a new os version number. This option allows
8461 to modify the build number. The complete default version number is:
8462 5.0.2195 (Windows 2000). The example is 6.1.7601 (Windows 2008 R2).
8463
8464 Default: spoolss: os_minor = 0
8465
8466 Example: spoolss: os_minor = 1
8467
8468 spoolss: os_build (G)
8469
8470 Windows might require a new os version number. This option allows
8471 to modify the build number. The complete default version number is:
8472 5.0.2195 (Windows 2000). The example is 6.1.7601 (Windows 2008 R2).
8473
8474 Default: spoolss: os_build = 2195
8475
8476 Example: spoolss: os_build = 7601
8477
8478 spoolss_client: os_major (G)
8479
8480 Windows might require a new os version number. This option allows
8481 to modify the build number. The complete default version number is:
8482 6.1.7007 (Windows 7 and Windows Server 2008 R2).
8483
8484 Default: spoolss_client: os_major = 6
8485
8486 spoolss_client: os_minor (G)
8487
8488 Windows might require a new os version number. This option allows
8489 to modify the build number. The complete default version number is:
8490 6.1.7007 (Windows 7 and Windows Server 2008 R2).
8491
8492 Default: spoolss_client: os_minor = 1
8493
8494 spoolss_client: os_build (G)
8495
8496 Windows might require a new os version number. This option allows
8497 to modify the build number. The complete default version number is:
8498 6.1.7007 (Windows 7 and Windows Server 2008 R2).
8499
8500 Default: spoolss_client: os_build = 7007
8501
8502 spotlight (S)
8503
8504 This parameter controls whether Samba allows Spotlight queries on a
8505 share. For controlling indexing of filesystems you also have to use
8506 Tracker's own configuration system.
8507
8508 Spotlight has several prerequisites:
8509
8510 · Samba must be configured and built with Spotlight
8511 support.
8512
8513 · The mdssvc RPC service must be enabled, see below.
8514
8515 · Tracker intergration must be setup and the share must be
8516 indexed by Tracker.
8517
8518 For a detailed set of instructions please see
8519 https://wiki.samba.org/index.php/Spotlight.
8520
8521 The Spotlight RPC service can either be enabled as embedded RPC
8522 service:
8523
8524 [Global]
8525 rpc_server:mdsvc = embedded
8526
8527 Or it can be run in a separate RPC service daemon:
8528
8529 [Global]
8530 rpc_server:mdssd = fork
8531 rpc_server:mdsvc = external
8532
8533 Default: spotlight = no
8534
8535 stat cache (G)
8536
8537 This parameter determines if smbd(8) will use a cache in order to
8538 speed up case insensitive name mappings. You should never need to
8539 change this parameter.
8540
8541 Default: stat cache = yes
8542
8543 state directory (G)
8544
8545 Usually, most of the TDB files are stored in the lock directory.
8546 Since Samba 3.4.0, it is possible to differentiate between TDB
8547 files with persistent data and TDB files with non-persistent data
8548 using the state directory and the cache directory options.
8549
8550 This option specifies the directory where TDB files containing
8551 important persistent data will be stored.
8552
8553 Default: state directory = /var/lib/samba
8554
8555 Example: state directory = /var/run/samba/locks/state
8556
8557 store dos attributes (S)
8558
8559 If this parameter is set Samba attempts to first read DOS
8560 attributes (SYSTEM, HIDDEN, ARCHIVE or READ-ONLY) from a filesystem
8561 extended attribute, before mapping DOS attributes to UNIX
8562 permission bits (such as occurs with map hidden and map readonly).
8563 When set, DOS attributes will be stored onto an extended attribute
8564 in the UNIX filesystem, associated with the file or directory. When
8565 this parameter is set it will override the parameters map hidden,
8566 map system, map archive and map readonly and they will behave as if
8567 they were set to off. This parameter writes the DOS attributes as a
8568 string into the extended attribute named "user.DOSATTRIB". This
8569 extended attribute is explicitly hidden from smbd clients
8570 requesting an EA list. On Linux the filesystem must have been
8571 mounted with the mount option user_xattr in order for extended
8572 attributes to work, also extended attributes must be compiled into
8573 the Linux kernel. In Samba 3.5.0 and above the "user.DOSATTRIB"
8574 extended attribute has been extended to store the create time for a
8575 file as well as the DOS attributes. This is done in a backwards
8576 compatible way so files created by Samba 3.5.0 and above can still
8577 have the DOS attribute read from this extended attribute by earlier
8578 versions of Samba, but they will not be able to read the create
8579 time stored there. Storing the create time separately from the
8580 normal filesystem meta-data allows Samba to faithfully reproduce
8581 NTFS semantics on top of a POSIX filesystem. The default has
8582 changed to yes in Samba release 4.9.0 and above to allow better
8583 Windows fileserver compatibility in a default install.
8584
8585 Default: store dos attributes = yes
8586
8587 strict allocate (S)
8588
8589 This is a boolean that controls the handling of disk space
8590 allocation in the server. When this is set to yes the server will
8591 change from UNIX behaviour of not committing real disk storage
8592 blocks when a file is extended to the Windows behaviour of actually
8593 forcing the disk system to allocate real storage blocks when a file
8594 is created or extended to be a given size. In UNIX terminology this
8595 means that Samba will stop creating sparse files.
8596
8597 This option is really designed for file systems that support fast
8598 allocation of large numbers of blocks such as extent-based file
8599 systems. On file systems that don't support extents (most notably
8600 ext3) this can make Samba slower. When you work with large files
8601 over >100MB on file systems without extents you may even run into
8602 problems with clients running into timeouts.
8603
8604 When you have an extent based filesystem it's likely that we can
8605 make use of unwritten extents which allows Samba to allocate even
8606 large amounts of space very fast and you will not see any timeout
8607 problems caused by strict allocate. With strict allocate in use you
8608 will also get much better out of quota messages in case you use
8609 quotas. Another advantage of activating this setting is that it
8610 will help to reduce file fragmentation.
8611
8612 To give you an idea on which filesystems this setting might
8613 currently be a good option for you: XFS, ext4, btrfs, ocfs2 on
8614 Linux and JFS2 on AIX support unwritten extents. On Filesystems
8615 that do not support it, preallocation is probably an expensive
8616 operation where you will see reduced performance and risk to let
8617 clients run into timeouts when creating large files. Examples are
8618 ext3, ZFS, HFS+ and most others, so be aware if you activate this
8619 setting on those filesystems.
8620
8621 Default: strict allocate = no
8622
8623 strict locking (S)
8624
8625 This is an enumerated type that controls the handling of file
8626 locking in the server. When this is set to yes, the server will
8627 check every read and write access for file locks, and deny access
8628 if locks exist. This can be slow on some systems.
8629
8630 When strict locking is set to Auto (the default), the server
8631 performs file lock checks only on non-oplocked files. As most
8632 Windows redirectors perform file locking checks locally on oplocked
8633 files this is a good trade off for improved performance.
8634
8635 When strict locking is disabled, the server performs file lock
8636 checks only when the client explicitly asks for them.
8637
8638 Well-behaved clients always ask for lock checks when it is
8639 important. So in the vast majority of cases, strict locking = Auto
8640 or strict locking = no is acceptable.
8641
8642 Default: strict locking = Auto
8643
8644 strict rename (S)
8645
8646 By default a Windows SMB server prevents directory renames when
8647 there are open file or directory handles below it in the filesystem
8648 hierarchy. Historically Samba has always allowed this as POSIX
8649 filesystem semantics require it.
8650
8651 This boolean parameter allows Samba to match the Windows behavior.
8652 Setting this to "yes" is a very expensive change, as it forces
8653 Samba to travers the entire open file handle database on every
8654 directory rename request. In a clustered Samba system the cost is
8655 even greater than the non-clustered case.
8656
8657 When set to "no" smbd only checks the local process the client is
8658 attached to for open files below a directory being renamed, instead
8659 of checking for open files across all smbd processes.
8660
8661 Because of the expense in fully searching the database, the default
8662 is "no", and it is recommended to be left that way unless a
8663 specific Windows application requires it to be changed.
8664
8665 If the client has requested UNIX extensions (POSIX pathnames) then
8666 renames are always allowed and this parameter has no effect.
8667
8668 Default: strict rename = no
8669
8670 strict sync (S)
8671
8672 This parameter controls whether Samba honors a request from an SMB
8673 client to ensure any outstanding operating system buffer contents
8674 held in memory are safely written onto stable storage on disk. If
8675 set to yes, which is the default, then Windows applications can
8676 force the smbd server to synchronize unwritten data onto the disk.
8677 If set to no then smbd will ignore client requests to synchronize
8678 unwritten data onto stable storage on disk.
8679
8680 In Samba 4.7.0, the default for this parameter changed from no to
8681 yes to better match the expectations of SMB2/3 clients and improve
8682 application safety when running against smbd.
8683
8684 The flush request from SMB2/3 clients is handled asynchronously
8685 inside smbd, so leaving the parameter as the default value of yes
8686 does not block the processing of other requests to the smbd
8687 process.
8688
8689 Legacy Windows applications (such as the Windows 98 explorer shell)
8690 seemed to confuse writing buffer contents to the operating system
8691 with synchronously writing outstanding data onto stable storage on
8692 disk. Changing this parameter to no means that smbd(8) will ignore
8693 the Windows applications request to synchronize unwritten data onto
8694 disk. Only consider changing this if smbd is serving obsolete SMB1
8695 Windows clients prior to Windows XP (Windows 98 and below). There
8696 should be no need to change this setting for normal operations.
8697
8698 Default: strict sync = yes
8699
8700 svcctl list (G)
8701
8702 This option defines a list of init scripts that smbd will use for
8703 starting and stopping Unix services via the Win32 ServiceControl
8704 API. This allows Windows administrators to utilize the MS
8705 Management Console plug-ins to manage a Unix server running Samba.
8706
8707 The administrator must create a directory name svcctl in Samba's
8708 $(libdir) and create symbolic links to the init scripts in
8709 /etc/init.d/. The name of the links must match the names given as
8710 part of the svcctl list.
8711
8712 Default: svcctl list =
8713
8714 Example: svcctl list = cups postfix portmap httpd
8715
8716 sync always (S)
8717
8718 This is a boolean parameter that controls whether writes will
8719 always be written to stable storage before the write call returns.
8720 If this is no then the server will be guided by the client's
8721 request in each write call (clients can set a bit indicating that a
8722 particular write should be synchronous). If this is yes then every
8723 write will be followed by a fsync() call to ensure the data is
8724 written to disk. Note that the strict sync parameter must be set to
8725 yes in order for this parameter to have any effect.
8726
8727 Default: sync always = no
8728
8729 syslog (G)
8730
8731 This parameter maps how Samba debug messages are logged onto the
8732 system syslog logging levels. Samba debug level zero maps onto
8733 syslog LOG_ERR, debug level one maps onto LOG_WARNING, debug level
8734 two maps onto LOG_NOTICE, debug level three maps onto LOG_INFO. All
8735 higher levels are mapped to LOG_DEBUG.
8736
8737 This parameter sets the threshold for sending messages to syslog.
8738 Only messages with debug level less than this value will be sent to
8739 syslog. There still will be some logging to log.[sn]mbd even if
8740 syslog only is enabled.
8741
8742 The logging parameter should be used instead. When logging is set,
8743 it overrides the syslog parameter.
8744
8745 Default: syslog = 1
8746
8747 syslog only (G)
8748
8749 If this parameter is set then Samba debug messages are logged into
8750 the system syslog only, and not to the debug log files. There still
8751 will be some logging to log.[sn]mbd even if syslog only is enabled.
8752
8753 The logging parameter should be used instead. When logging is set,
8754 it overrides the syslog only parameter.
8755
8756 Default: syslog only = no
8757
8758 template homedir (G)
8759
8760 When filling out the user information for a Windows NT user, the
8761 winbindd(8) daemon uses this parameter to fill in the home
8762 directory for that user. If the string %D is present it is
8763 substituted with the user's Windows NT domain name. If the string
8764 %U is present it is substituted with the user's Windows NT user
8765 name.
8766
8767 Default: template homedir = /home/%D/%U
8768
8769 template shell (G)
8770
8771 When filling out the user information for a Windows NT user, the
8772 winbindd(8) daemon uses this parameter to fill in the login shell
8773 for that user.
8774
8775 Default: template shell = /bin/false
8776
8777 time server (G)
8778
8779 This parameter determines if nmbd(8) advertises itself as a time
8780 server to Windows clients.
8781
8782 Default: time server = no
8783
8784 debug timestamp
8785
8786 This parameter is a synonym for timestamp logs.
8787
8788 timestamp logs (G)
8789
8790 Samba debug log messages are timestamped by default. If you are
8791 running at a high debug level these timestamps can be distracting.
8792 This boolean parameter allows timestamping to be turned off.
8793
8794 Default: timestamp logs = yes
8795
8796 tls cafile (G)
8797
8798 This option can be set to a file (PEM format) containing CA
8799 certificates of root CAs to trust to sign certificates or
8800 intermediate CA certificates.
8801
8802 This path is relative to private dir if the path does not start
8803 with a /.
8804
8805 Default: tls cafile = tls/ca.pem
8806
8807 tls certfile (G)
8808
8809 This option can be set to a file (PEM format) containing the RSA
8810 certificate.
8811
8812 This path is relative to private dir if the path does not start
8813 with a /.
8814
8815 Default: tls certfile = tls/cert.pem
8816
8817 tls crlfile (G)
8818
8819 This option can be set to a file containing a certificate
8820 revocation list (CRL).
8821
8822 This path is relative to private dir if the path does not start
8823 with a /.
8824
8825 Default: tls crlfile =
8826
8827 tls dh params file (G)
8828
8829 This option can be set to a file with Diffie-Hellman parameters
8830 which will be used with DH ciphers.
8831
8832 This path is relative to private dir if the path does not start
8833 with a /.
8834
8835 Default: tls dh params file =
8836
8837 tls enabled (G)
8838
8839 If this option is set to yes, then Samba will use TLS when possible
8840 in communication.
8841
8842 Default: tls enabled = yes
8843
8844 tls keyfile (G)
8845
8846 This option can be set to a file (PEM format) containing the RSA
8847 private key. This file must be accessible without a pass-phrase,
8848 i.e. it must not be encrypted.
8849
8850 This path is relative to private dir if the path does not start
8851 with a /.
8852
8853 Default: tls keyfile = tls/key.pem
8854
8855 tls priority (G)
8856
8857 This option can be set to a string describing the TLS protocols to
8858 be supported in the parts of Samba that use GnuTLS, specifically
8859 the AD DC.
8860
8861 The default turns off SSLv3, as this protocol is no longer
8862 considered secure after CVE-2014-3566 (otherwise known as POODLE)
8863 impacted SSLv3 use in HTTPS applications.
8864
8865 The valid options are described in the GNUTLS Priority-Strings
8866 documentation at
8867 http://gnutls.org/manual/html_node/Priority-Strings.html
8868
8869 Default: tls priority = NORMAL:-VERS-SSL3.0
8870
8871 tls verify peer (G)
8872
8873 This controls if and how strict the client will verify the peer's
8874 certificate and name. Possible values are (in increasing order):
8875 no_check, ca_only, ca_and_name_if_available, ca_and_name and
8876 as_strict_as_possible.
8877
8878 When set to no_check the certificate is not verified at all, which
8879 allows trivial man in the middle attacks.
8880
8881 When set to ca_only the certificate is verified to be signed from a
8882 ca specified in the tls ca file option. Setting tls ca file to a
8883 valid file is required. The certificate lifetime is also verified.
8884 If the tls crl file option is configured, the certificate is also
8885 verified against the ca crl.
8886
8887 When set to ca_and_name_if_available all checks from ca_only are
8888 performed. In addition, the peer hostname is verified against the
8889 certificate's name, if it is provided by the application layer and
8890 not given as an ip address string.
8891
8892 When set to ca_and_name all checks from ca_and_name_if_available
8893 are performed. In addition the peer hostname needs to be provided
8894 and even an ip address is checked against the certificate's name.
8895
8896 When set to as_strict_as_possible all checks from ca_and_name are
8897 performed. In addition the tls crl file needs to be configured.
8898 Future versions of Samba may implement additional checks.
8899
8900 Default: tls verify peer = as_strict_as_possible
8901
8902 unicode (G)
8903
8904 Specifies whether the server and client should support unicode.
8905
8906 If this option is set to false, the use of ASCII will be forced.
8907
8908 Default: unicode = yes
8909
8910 unix charset (G)
8911
8912 Specifies the charset the unix machine Samba runs on uses. Samba
8913 needs to know this in order to be able to convert text to the
8914 charsets other SMB clients use.
8915
8916 This is also the charset Samba will use when specifying arguments
8917 to scripts that it invokes.
8918
8919 Default: unix charset = UTF-8
8920
8921 Example: unix charset = ASCII
8922
8923 unix extensions (G)
8924
8925 This boolean parameter controls whether Samba implements the CIFS
8926 UNIX extensions, as defined by HP. These extensions enable Samba to
8927 better serve UNIX CIFS clients by supporting features such as
8928 symbolic links, hard links, etc... These extensions require a
8929 similarly enabled client, and are of no current use to Windows
8930 clients.
8931
8932 Note if this parameter is turned on, the wide links parameter will
8933 automatically be disabled.
8934
8935 See the parameter allow insecure wide links if you wish to change
8936 this coupling between the two parameters.
8937
8938 Default: unix extensions = yes
8939
8940 unix password sync (G)
8941
8942 This boolean parameter controls whether Samba attempts to
8943 synchronize the UNIX password with the SMB password when the
8944 encrypted SMB password in the smbpasswd file is changed. If this is
8945 set to yes the program specified in the passwd program parameter is
8946 called AS ROOT - to allow the new UNIX password to be set without
8947 access to the old UNIX password (as the SMB password change code
8948 has no access to the old password cleartext, only the new).
8949
8950 This option has no effect if samba is running as an active
8951 directory domain controller, in that case have a look at the
8952 password hash gpg key ids option and the samba-tool user
8953 syncpasswords command.
8954
8955 Default: unix password sync = no
8956
8957 use client driver (S)
8958
8959 This parameter applies only to Windows NT/2000 clients. It has no
8960 effect on Windows 95/98/ME clients. When serving a printer to
8961 Windows NT/2000 clients without first installing a valid printer
8962 driver on the Samba host, the client will be required to install a
8963 local printer driver. From this point on, the client will treat the
8964 print as a local printer and not a network printer connection. This
8965 is much the same behavior that will occur when disable spoolss =
8966 yes.
8967
8968 The differentiating factor is that under normal circumstances, the
8969 NT/2000 client will attempt to open the network printer using
8970 MS-RPC. The problem is that because the client considers the
8971 printer to be local, it will attempt to issue the OpenPrinterEx()
8972 call requesting access rights associated with the logged on user.
8973 If the user possesses local administrator rights but not root
8974 privilege on the Samba host (often the case), the OpenPrinterEx()
8975 call will fail. The result is that the client will now display an
8976 "Access Denied; Unable to connect" message in the printer queue
8977 window (even though jobs may successfully be printed).
8978
8979 If this parameter is enabled for a printer, then any attempt to
8980 open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
8981 to PRINTER_ACCESS_USE instead. Thus allowing the OpenPrinterEx()
8982 call to succeed. This parameter MUST not be enabled on a print
8983 share which has valid print driver installed on the Samba server.
8984
8985 Default: use client driver = no
8986
8987 use mmap (G)
8988
8989 This global parameter determines if the tdb internals of Samba can
8990 depend on mmap working correctly on the running system. Samba
8991 requires a coherent mmap/read-write system memory cache. Currently
8992 only HPUX does not have such a coherent cache, and so this
8993 parameter is set to no by default on HPUX. On all other systems
8994 this parameter should be left alone. This parameter is provided to
8995 help the Samba developers track down problems with the tdb internal
8996 code.
8997
8998 Default: use mmap = yes
8999
9000 username level (G)
9001
9002 This option helps Samba to try and 'guess' at the real UNIX
9003 username, as many DOS clients send an all-uppercase username. By
9004 default Samba tries all lowercase, followed by the username with
9005 the first letter capitalized, and fails if the username is not
9006 found on the UNIX machine.
9007
9008 If this parameter is set to non-zero the behavior changes. This
9009 parameter is a number that specifies the number of uppercase
9010 combinations to try while trying to determine the UNIX user name.
9011 The higher the number the more combinations will be tried, but the
9012 slower the discovery of usernames will be. Use this parameter when
9013 you have strange usernames on your UNIX machine, such as
9014 AstrangeUser .
9015
9016 This parameter is needed only on UNIX systems that have case
9017 sensitive usernames.
9018
9019 Default: username level = 0
9020
9021 Example: username level = 5
9022
9023 username map (G)
9024
9025 This option allows you to specify a file containing a mapping of
9026 usernames from the clients to the server. This can be used for
9027 several purposes. The most common is to map usernames that users
9028 use on DOS or Windows machines to those that the UNIX box uses. The
9029 other is to map multiple users to a single username so that they
9030 can more easily share files.
9031
9032 Please note that for user mode security, the username map is
9033 applied prior to validating the user credentials. Domain member
9034 servers (domain or ads) apply the username map after the user has
9035 been successfully authenticated by the domain controller and
9036 require fully qualified entries in the map table (e.g. biddle =
9037 DOMAIN\foo).
9038
9039 The map file is parsed line by line. Each line should contain a
9040 single UNIX username on the left then a '=' followed by a list of
9041 usernames on the right. The list of usernames on the right may
9042 contain names of the form @group in which case they will match any
9043 UNIX username in that group. The special client name '*' is a
9044 wildcard and matches any name. Each line of the map file may be up
9045 to 1023 characters long.
9046
9047 The file is processed on each line by taking the supplied username
9048 and comparing it with each username on the right hand side of the
9049 '=' signs. If the supplied name matches any of the names on the
9050 right hand side then it is replaced with the name on the left.
9051 Processing then continues with the next line.
9052
9053 If any line begins with a '#' or a ';' then it is ignored.
9054
9055 If any line begins with an '!' then the processing will stop after
9056 that line if a mapping was done by the line. Otherwise mapping
9057 continues with every line being processed. Using '!' is most useful
9058 when you have a wildcard mapping line later in the file.
9059
9060 For example to map from the name admin or administrator to the UNIX
9061 name
9062 root you would use:
9063
9064 root = admin administrator
9065
9066 Or to map anyone in the UNIX group system to the UNIX name sys you
9067 would use:
9068
9069 sys = @system
9070
9071 You can have as many mappings as you like in a username map file.
9072
9073 If your system supports the NIS NETGROUP option then the netgroup
9074 database is checked before the /etc/group database for matching
9075 groups.
9076
9077 You can map Windows usernames that have spaces in them by using
9078 double quotes around the name. For example:
9079
9080 tridge = "Andrew Tridgell"
9081
9082 would map the windows username "Andrew Tridgell" to the unix
9083 username "tridge".
9084
9085 The following example would map mary and fred to the unix user sys,
9086 and map the rest to guest. Note the use of the '!' to tell Samba to
9087 stop processing if it gets a match on that line:
9088
9089 !sys = mary fred
9090 guest = *
9091
9092 Note that the remapping is applied to all occurrences of usernames.
9093 Thus if you connect to \\server\fred and fred is remapped to mary
9094 then you will actually be connecting to \\server\mary and will need
9095 to supply a password suitable for mary not fred. The only exception
9096 to this is the username passed to a Domain Controller (if you have
9097 one). The DC will receive whatever username the client supplies
9098 without modification.
9099
9100 Also note that no reverse mapping is done. The main effect this has
9101 is with printing. Users who have been mapped may have trouble
9102 deleting print jobs as PrintManager under WfWg will think they
9103 don't own the print job.
9104
9105 Samba versions prior to 3.0.8 would only support reading the fully
9106 qualified username (e.g.: DOMAIN\user) from the username map when
9107 performing a kerberos login from a client. However, when looking up
9108 a map entry for a user authenticated by NTLM[SSP], only the login
9109 name would be used for matches. This resulted in inconsistent
9110 behavior sometimes even on the same server.
9111
9112 The following functionality is obeyed in version 3.0.8 and later:
9113
9114 When performing local authentication, the username map is applied
9115 to the login name before attempting to authenticate the connection.
9116
9117 When relying upon a external domain controller for validating
9118 authentication requests, smbd will apply the username map to the
9119 fully qualified username (i.e. DOMAIN\user) only after the user
9120 has been successfully authenticated.
9121
9122 An example of use is:
9123
9124 username map = /usr/local/samba/lib/users.map
9125
9126 Default: username map = # no username map
9127
9128 username map cache time (G)
9129
9130 Mapping usernames with the username map or username map script
9131 features of Samba can be relatively expensive. During login of a
9132 user, the mapping is done several times. In particular, calling the
9133 username map script can slow down logins if external databases have
9134 to be queried from the script being called.
9135
9136 The parameter username map cache time controls a mapping cache. It
9137 specifies the number of seconds a mapping from the username map
9138 file or script is to be efficiently cached. The default of 0 means
9139 no caching is done.
9140
9141 Default: username map cache time = 0
9142
9143 Example: username map cache time = 60
9144
9145 username map script (G)
9146
9147 This script is a mutually exclusive alternative to the username map
9148 parameter. This parameter specifies and external program or script
9149 that must accept a single command line option (the username
9150 transmitted in the authentication request) and return a line on
9151 standard output (the name to which the account should mapped). In
9152 this way, it is possible to store username map tables in an LDAP or
9153 NIS directory services.
9154
9155 Default: username map script =
9156
9157 Example: username map script = /etc/samba/scripts/mapusers.sh
9158
9159 usershare allow guests (G)
9160
9161 This parameter controls whether user defined shares are allowed to
9162 be accessed by non-authenticated users or not. It is the equivalent
9163 of allowing people who can create a share the option of setting
9164 guest ok = yes in a share definition. Due to its security sensitive
9165 nature, the default is set to off.
9166
9167 Default: usershare allow guests = no
9168
9169 usershare max shares (G)
9170
9171 This parameter specifies the number of user defined shares that are
9172 allowed to be created by users belonging to the group owning the
9173 usershare directory. If set to zero (the default) user defined
9174 shares are ignored.
9175
9176 Default: usershare max shares = 0
9177
9178 usershare owner only (G)
9179
9180 This parameter controls whether the pathname exported by a user
9181 defined shares must be owned by the user creating the user defined
9182 share or not. If set to True (the default) then smbd checks that
9183 the directory path being shared is owned by the user who owns the
9184 usershare file defining this share and refuses to create the share
9185 if not. If set to False then no such check is performed and any
9186 directory path may be exported regardless of who owns it.
9187
9188 Default: usershare owner only = yes
9189
9190 usershare path (G)
9191
9192 This parameter specifies the absolute path of the directory on the
9193 filesystem used to store the user defined share definition files.
9194 This directory must be owned by root, and have no access for other,
9195 and be writable only by the group owner. In addition the "sticky"
9196 bit must also be set, restricting rename and delete to owners of a
9197 file (in the same way the /tmp directory is usually configured).
9198 Members of the group owner of this directory are the users allowed
9199 to create usershares.
9200
9201 For example, a valid usershare directory might be
9202 /usr/local/samba/lib/usershares, set up as follows.
9203
9204 ls -ld /usr/local/samba/lib/usershares/
9205 drwxrwx--T 2 root power_users 4096 2006-05-05 12:27 /usr/local/samba/lib/usershares/
9206
9207
9208 In this case, only members of the group "power_users" can create
9209 user defined shares.
9210
9211 Default: usershare path = /var/lib/samba/usershares
9212
9213 usershare prefix allow list (G)
9214
9215 This parameter specifies a list of absolute pathnames the root of
9216 which are allowed to be exported by user defined share definitions.
9217 If the pathname to be exported doesn't start with one of the
9218 strings in this list, the user defined share will not be allowed.
9219 This allows the Samba administrator to restrict the directories on
9220 the system that can be exported by user defined shares.
9221
9222 If there is a "usershare prefix deny list" and also a "usershare
9223 prefix allow list" the deny list is processed first, followed by
9224 the allow list, thus leading to the most restrictive
9225 interpretation.
9226
9227 Default: usershare prefix allow list =
9228
9229 Example: usershare prefix allow list = /home /data /space
9230
9231 usershare prefix deny list (G)
9232
9233 This parameter specifies a list of absolute pathnames the root of
9234 which are NOT allowed to be exported by user defined share
9235 definitions. If the pathname exported starts with one of the
9236 strings in this list the user defined share will not be allowed.
9237 Any pathname not starting with one of these strings will be allowed
9238 to be exported as a usershare. This allows the Samba administrator
9239 to restrict the directories on the system that can be exported by
9240 user defined shares.
9241
9242 If there is a "usershare prefix deny list" and also a "usershare
9243 prefix allow list" the deny list is processed first, followed by
9244 the allow list, thus leading to the most restrictive
9245 interpretation.
9246
9247 Default: usershare prefix deny list =
9248
9249 Example: usershare prefix deny list = /etc /dev /private
9250
9251 usershare template share (G)
9252
9253 User defined shares only have limited possible parameters such as
9254 path, guest ok, etc. This parameter allows usershares to "cloned"
9255 from an existing share. If "usershare template share" is set to the
9256 name of an existing share, then all usershares created have their
9257 defaults set from the parameters set on this share.
9258
9259 The target share may be set to be invalid for real file sharing by
9260 setting the parameter "-valid = False" on the template share
9261 definition. This causes it not to be seen as a real exported share
9262 but to be able to be used as a template for usershares.
9263
9264 Default: usershare template share =
9265
9266 Example: usershare template share = template_share
9267
9268 use sendfile (S)
9269
9270 If this parameter is yes, and the sendfile() system call is
9271 supported by the underlying operating system, then some SMB read
9272 calls (mainly ReadAndX and ReadRaw) will use the more efficient
9273 sendfile system call for files that are exclusively oplocked. This
9274 may make more efficient use of the system CPU's and cause Samba to
9275 be faster. Samba automatically turns this off for clients that use
9276 protocol levels lower than NT LM 0.12 and when it detects a client
9277 is Windows 9x (using sendfile from Linux will cause these clients
9278 to fail).
9279
9280 Default: use sendfile = no
9281
9282 utmp (G)
9283
9284 This boolean parameter is only available if Samba has been
9285 configured and compiled with the option --with-utmp. If set to yes
9286 then Samba will attempt to add utmp or utmpx records (depending on
9287 the UNIX system) whenever a connection is made to a Samba server.
9288 Sites may use this to record the user connecting to a Samba share.
9289
9290 Due to the requirements of the utmp record, we are required to
9291 create a unique identifier for the incoming user. Enabling this
9292 option creates an n^2 algorithm to find this number. This may
9293 impede performance on large installations.
9294
9295 Default: utmp = no
9296
9297 utmp directory (G)
9298
9299 This parameter is only available if Samba has been configured and
9300 compiled with the option --with-utmp. It specifies a directory
9301 pathname that is used to store the utmp or utmpx files (depending
9302 on the UNIX system) that record user connections to a Samba server.
9303 By default this is not set, meaning the system will use whatever
9304 utmp file the native system is set to use (usually /var/run/utmp on
9305 Linux).
9306
9307 Default: utmp directory = # Determined automatically
9308
9309 Example: utmp directory = /var/run/utmp
9310
9311 -valid (S)
9312
9313 This parameter indicates whether a share is valid and thus can be
9314 used. When this parameter is set to false, the share will be in no
9315 way visible nor accessible.
9316
9317 This option should not be used by regular users but might be of
9318 help to developers. Samba uses this option internally to mark
9319 shares as deleted.
9320
9321 Default: -valid = yes
9322
9323 valid users (S)
9324
9325 This is a list of users that should be allowed to login to this
9326 service. Names starting with '@', '+' and '&' are interpreted using
9327 the same rules as described in the invalid users parameter.
9328
9329 If this is empty (the default) then any user can login. If a
9330 username is in both this list and the invalid users list then
9331 access is denied for that user.
9332
9333 The current servicename is substituted for %S. This is useful in
9334 the [homes] section.
9335
9336 Note: When used in the [global] section this parameter may have
9337 unwanted side effects. For example: If samba is configured as a
9338 MASTER BROWSER (see local master, os level, domain master,
9339 preferred master) this option will prevent workstations from being
9340 able to browse the network.
9341
9342 Default: valid users = # No valid users list (anyone can login)
9343
9344 Example: valid users = greg, @pcusers
9345
9346 veto files (S)
9347
9348 This is a list of files and directories that are neither visible
9349 nor accessible. Each entry in the list must be separated by a '/',
9350 which allows spaces to be included in the entry. '*' and '?' can be
9351 used to specify multiple files or directories as in DOS wildcards.
9352
9353 Each entry must be a unix path, not a DOS path and must not include
9354 the unix directory separator '/'.
9355
9356 Note that the case sensitive option is applicable in vetoing files.
9357
9358 One feature of the veto files parameter that it is important to be
9359 aware of is Samba's behaviour when trying to delete a directory. If
9360 a directory that is to be deleted contains nothing but veto files
9361 this deletion will fail unless you also set the delete veto files
9362 parameter to yes.
9363
9364 Setting this parameter will affect the performance of Samba, as it
9365 will be forced to check all files and directories for a match as
9366 they are scanned.
9367
9368 Examples of use include:
9369
9370 ; Veto any files containing the word Security,
9371 ; any ending in .tmp, and any directory containing the
9372 ; word root.
9373 veto files = /*Security*/*.tmp/*root*/
9374
9375 ; Veto the Apple specific files that a NetAtalk server
9376 ; creates.
9377 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
9378
9379 Default: veto files = # No files or directories are vetoed
9380
9381 veto oplock files (S)
9382
9383 This parameter is only valid when the oplocks parameter is turned
9384 on for a share. It allows the Samba administrator to selectively
9385 turn off the granting of oplocks on selected files that match a
9386 wildcarded list, similar to the wildcarded list used in the veto
9387 files parameter.
9388
9389 You might want to do this on files that you know will be heavily
9390 contended for by clients. A good example of this is in the NetBench
9391 SMB benchmark program, which causes heavy client contention for
9392 files ending in .SEM. To cause Samba not to grant oplocks on these
9393 files you would use the line (either in the [global] section or in
9394 the section for the particular NetBench share.
9395
9396 An example of use is:
9397
9398 veto oplock files = /.*SEM/
9399
9400 Default: veto oplock files = # No files are vetoed for oplock
9401 grants
9402
9403 vfs object
9404
9405 This parameter is a synonym for vfs objects.
9406
9407 vfs objects (S)
9408
9409 This parameter specifies the backend names which are used for Samba
9410 VFS I/O operations. By default, normal disk I/O operations are used
9411 but these can be overloaded with one or more VFS objects.
9412
9413 Default: vfs objects =
9414
9415 Example: vfs objects = extd_audit recycle
9416
9417 volume (S)
9418
9419 This allows you to override the volume label returned for a share.
9420 Useful for CDROMs with installation programs that insist on a
9421 particular volume label.
9422
9423 Default: volume = # the name of the share
9424
9425 wide links (S)
9426
9427 This parameter controls whether or not links in the UNIX file
9428 system may be followed by the server. Links that point to areas
9429 within the directory tree exported by the server are always
9430 allowed; this parameter controls access only to areas that are
9431 outside the directory tree being exported.
9432
9433 Note: Turning this parameter on when UNIX extensions are enabled
9434 will allow UNIX clients to create symbolic links on the share that
9435 can point to files or directories outside restricted path exported
9436 by the share definition. This can cause access to areas outside of
9437 the share. Due to this problem, this parameter will be
9438 automatically disabled (with a message in the log file) if the unix
9439 extensions option is on.
9440
9441 See the parameter allow insecure wide links if you wish to change
9442 this coupling between the two parameters.
9443
9444 Default: wide links = no
9445
9446 winbind cache time (G)
9447
9448 This parameter specifies the number of seconds the winbindd(8)
9449 daemon will cache user and group information before querying a
9450 Windows NT server again.
9451
9452 This does not apply to authentication requests, these are always
9453 evaluated in real time unless the winbind offline logon option has
9454 been enabled.
9455
9456 Default: winbind cache time = 300
9457
9458 winbindd socket directory (G)
9459
9460 This setting controls the location of the winbind daemon's socket.
9461
9462 Except within automated test scripts, this should not be altered,
9463 as the client tools (nss_winbind etc) do not honour this parameter.
9464 Client tools must then be advised of the altered path with the
9465 WINBINDD_SOCKET_DIR environment varaible.
9466
9467 Default: winbindd socket directory = /run/samba/winbindd
9468
9469 winbind enum groups (G)
9470
9471 On large installations using winbindd(8) it may be necessary to
9472 suppress the enumeration of groups through the setgrent(),
9473 getgrent() and endgrent() group of system calls. If the winbind
9474 enum groups parameter is no, calls to the getgrent() system call
9475 will not return any data.
9476
9477 Warning
9478 Turning off group enumeration may cause some programs to behave
9479 oddly.
9480 Default: winbind enum groups = no
9481
9482 winbind enum users (G)
9483
9484 On large installations using winbindd(8) it may be necessary to
9485 suppress the enumeration of users through the setpwent(),
9486 getpwent() and endpwent() group of system calls. If the winbind
9487 enum users parameter is no, calls to the getpwent system call will
9488 not return any data.
9489
9490 Warning
9491 Turning off user enumeration may cause some programs to behave
9492 oddly. For example, the finger program relies on having access
9493 to the full user list when searching for matching usernames.
9494 Default: winbind enum users = no
9495
9496 winbind expand groups (G)
9497
9498 This option controls the maximum depth that winbindd will traverse
9499 when flattening nested group memberships of Windows domain groups.
9500 This is different from the winbind nested groups option which
9501 implements the Windows NT4 model of local group nesting. The
9502 "winbind expand groups" parameter specifically applies to the
9503 membership of domain groups.
9504
9505 This option also affects the return of non nested group memberships
9506 of Windows domain users. With the new default "winbind expand
9507 groups = 0" winbind does not query group memberships at all.
9508
9509 Be aware that a high value for this parameter can result in system
9510 slowdown as the main parent winbindd daemon must perform the group
9511 unrolling and will be unable to answer incoming NSS or
9512 authentication requests during this time.
9513
9514 The default value was changed from 1 to 0 with Samba 4.2. Some
9515 broken applications (including some implementations of newgrp and
9516 sg) calculate the group memberships of users by traversing groups,
9517 such applications will require "winbind expand groups = 1". But the
9518 new default makes winbindd more reliable as it doesn't require SAMR
9519 access to domain controllers of trusted domains.
9520
9521 Default: winbind expand groups = 0
9522
9523 winbind:ignore domains (G)
9524
9525 Allows one to enter a list of trusted domains winbind should ignore
9526 (untrust). This can avoid the overhead of resources from attempting
9527 to login to DCs that should not be communicated with.
9528
9529 Default: winbind:ignore domains =
9530
9531 Example: winbind:ignore domains = DOMAIN1, DOMAIN2
9532
9533 winbind max clients (G)
9534
9535 This parameter specifies the maximum number of clients the
9536 winbindd(8) daemon can connect with. The parameter is not a hard
9537 limit. The winbindd(8) daemon configures itself to be able to
9538 accept at least that many connections, and if the limit is reached,
9539 an attempt is made to disconnect idle clients.
9540
9541 Default: winbind max clients = 200
9542
9543 winbind max domain connections (G)
9544
9545 This parameter specifies the maximum number of simultaneous
9546 connections that the winbindd(8) daemon should open to the domain
9547 controller of one domain. Setting this parameter to a value greater
9548 than 1 can improve scalability with many simultaneous winbind
9549 requests, some of which might be slow.
9550
9551 Note that if winbind offline logon is set to Yes, then only one DC
9552 connection is allowed per domain, regardless of this setting.
9553
9554 Default: winbind max domain connections = 1
9555
9556 Example: winbind max domain connections = 10
9557
9558 winbind nested groups (G)
9559
9560 If set to yes, this parameter activates the support for nested
9561 groups. Nested groups are also called local groups or aliases. They
9562 work like their counterparts in Windows: Nested groups are defined
9563 locally on any machine (they are shared between DC's through their
9564 SAM) and can contain users and global groups from any trusted SAM.
9565 To be able to use nested groups, you need to run nss_winbind.
9566
9567 Default: winbind nested groups = yes
9568
9569 winbind normalize names (G)
9570
9571 This parameter controls whether winbindd will replace whitespace in
9572 user and group names with an underscore (_) character. For example,
9573 whether the name "Space Kadet" should be replaced with the string
9574 "space_kadet". Frequently Unix shell scripts will have difficulty
9575 with usernames contains whitespace due to the default field
9576 separator in the shell. If your domain possesses names containing
9577 the underscore character, this option may cause problems unless the
9578 name aliasing feature is supported by your nss_info plugin.
9579
9580 This feature also enables the name aliasing API which can be used
9581 to make domain user and group names to a non-qualified version.
9582 Please refer to the manpage for the configured idmap and nss_info
9583 plugin for the specifics on how to configure name aliasing for a
9584 specific configuration. Name aliasing takes precedence (and is
9585 mutually exclusive) over the whitespace replacement mechanism
9586 discussed previously.
9587
9588 Default: winbind normalize names = no
9589
9590 Example: winbind normalize names = yes
9591
9592 winbind nss info (G)
9593
9594 This parameter is designed to control how Winbind retrieves Name
9595 Service Information to construct a user's home directory and login
9596 shell. Currently the following settings are available:
9597
9598 · template - The default, using the parameters of template
9599 shell and template homedir)
9600
9601 · <sfu | sfu20 | rfc2307 > - When Samba is running in
9602 security = ads and your Active Directory Domain
9603 Controller does support the Microsoft "Services for
9604 Unix" (SFU) LDAP schema, winbind can retrieve the login
9605 shell and the home directory attributes directly from
9606 your Directory Server. For SFU 3.0 or 3.5 simply choose
9607 "sfu", if you use SFU 2.0 please choose "sfu20". Note
9608 that retrieving UID and GID from your ADS-Server
9609 requires to use idmap config DOMAIN:backend = ad as
9610 well. The primary group membership is currently always
9611 calculated via the "primaryGroupID" LDAP attribute.
9612
9613
9614 Default: winbind nss info = template
9615
9616 Example: winbind nss info = sfu
9617
9618 winbind offline logon (G)
9619
9620 This parameter is designed to control whether Winbind should allow
9621 one to login with the pam_winbind module using Cached Credentials.
9622 If enabled, winbindd will store user credentials from successful
9623 logins encrypted in a local cache.
9624
9625 Default: winbind offline logon = no
9626
9627 Example: winbind offline logon = yes
9628
9629 winbind reconnect delay (G)
9630
9631 This parameter specifies the number of seconds the winbindd(8)
9632 daemon will wait between attempts to contact a Domain controller
9633 for a domain that is determined to be down or not contactable.
9634
9635 Default: winbind reconnect delay = 30
9636
9637 winbind refresh tickets (G)
9638
9639 This parameter is designed to control whether Winbind should
9640 refresh Kerberos Tickets retrieved using the pam_winbind module.
9641
9642 Default: winbind refresh tickets = no
9643
9644 Example: winbind refresh tickets = yes
9645
9646 winbind request timeout (G)
9647
9648 This parameter specifies the number of seconds the winbindd(8)
9649 daemon will wait before disconnecting either a client connection
9650 with no outstanding requests (idle) or a client connection with a
9651 request that has remained outstanding (hung) for longer than this
9652 number of seconds.
9653
9654 Default: winbind request timeout = 60
9655
9656 winbind rpc only (G)
9657
9658 Setting this parameter to yes forces winbindd to use RPC instead of
9659 LDAP to retrieve information from Domain Controllers.
9660
9661 Default: winbind rpc only = no
9662
9663 winbind scan trusted domains (G)
9664
9665 This option only takes effect when the security option is set to
9666 domain or ads. If it is set to yes (the default), winbindd
9667 periodically tries to scan for new trusted domains and adds them to
9668 a global list inside of winbindd. The list can be extracted with
9669 wbinfo --trusted-domains --verbose. This matches the behaviour of
9670 Samba 4.7 and older.
9671
9672 The construction of that global list is not reliable and often
9673 incomplete in complex trust setups. In most situations the list is
9674 not needed any more for winbindd to operate correctly. E.g. for
9675 plain file serving via SMB using a simple idmap setup with autorid,
9676 tdb or ad. However some more complex setups require the list, e.g.
9677 if you specify idmap backends for specific domains. Some
9678 pam_winbind setups may also require the global list.
9679
9680 If you have a setup that doesn't require the global list, you
9681 should set winbind scan trusted domains = no.
9682
9683 Default: winbind scan trusted domains = yes
9684
9685 winbind sealed pipes (G)
9686
9687 This option controls whether any requests from winbindd to domain
9688 controllers pipe will be sealed. Disabling sealing can be useful
9689 for debugging purposes.
9690
9691 The behavior can be controlled per netbios domain by using 'winbind
9692 sealed pipes:NETBIOSDOMAIN = no' as option.
9693
9694 Default: winbind sealed pipes = yes
9695
9696 winbind separator (G)
9697
9698 This parameter allows an admin to define the character used when
9699 listing a username of the form of DOMAIN \user. This parameter is
9700 only applicable when using the pam_winbind.so and nss_winbind.so
9701 modules for UNIX services.
9702
9703 Please note that setting this parameter to + causes problems with
9704 group membership at least on glibc systems, as the character + is
9705 used as a special character for NIS in /etc/group.
9706
9707 Default: winbind separator = \
9708
9709 Example: winbind separator = +
9710
9711 winbind use default domain (G)
9712
9713 This parameter specifies whether the winbindd(8) daemon should
9714 operate on users without domain component in their username. Users
9715 without a domain component are treated as is part of the winbindd
9716 server's own domain. While this does not benefit Windows users, it
9717 makes SSH, FTP and e-mail function in a way much closer to the way
9718 they would in a native unix system.
9719
9720 This option should be avoided if possible. It can cause confusion
9721 about responsibilities for a user or group. In many situations it
9722 is not clear whether winbind or /etc/passwd should be seen as
9723 authoritative for a user, likewise for groups.
9724
9725 Default: winbind use default domain = no
9726
9727 Example: winbind use default domain = yes
9728
9729 winbind use krb5 enterprise principals (G)
9730
9731 winbindd is able to get kerberos tickets for pam_winbind with
9732 krb5_auth or wbinfo -K/--krb5auth=.
9733
9734 winbindd (at least on a domain member) is never be able to have a
9735 complete picture of the trust topology (which is managed by the
9736 DCs). There might be uPNSuffixes and msDS-SPNSuffixes values, which
9737 don't belong to any AD domain at all.
9738
9739 With winbind scan trusted domains = no winbindd don't even get an
9740 incomplete picture of the topology.
9741
9742 It is not really required to know about the trust topology. We can
9743 just rely on the [K]DCs of our primary domain (e.g.
9744 PRIMARY.A.EXAMPLE.COM) and use enterprise principals e.g.
9745 upnfromB@B.EXAMPLE.COM@PRIMARY.A.EXAMPLE.COM and follow the
9746 WRONG_REALM referrals in order to find the correct DC. The final
9747 principal might be userfromB@INTERNALB.EXAMPLE.PRIVATE.
9748
9749 With winbind use krb5 enterprise principals = yes winbindd
9750 enterprise principals will be used.
9751
9752 Default: winbind use krb5 enterprise principals = no
9753
9754 Example: winbind use krb5 enterprise principals = yes
9755
9756 winsdb:local_owner (G)
9757
9758 This specifies the address that is stored in the winsOwner
9759 attribute, of locally registered winsRecord-objects. The default is
9760 to use the ip-address of the first network interface.
9761
9762 No default
9763
9764 winsdb:dbnosync (G)
9765
9766 This parameter disables fsync() after changes of the WINS database.
9767
9768 Default: winsdb:dbnosync = no
9769
9770 wins hook (G)
9771
9772 When Samba is running as a WINS server this allows you to call an
9773 external program for all changes to the WINS database. The primary
9774 use for this option is to allow the dynamic update of external name
9775 resolution databases such as dynamic DNS.
9776
9777 The wins hook parameter specifies the name of a script or
9778 executable that will be called as follows:
9779
9780 wins_hook operation name nametype ttl IP_list
9781
9782 · The first argument is the operation and is one of "add",
9783 "delete", or "refresh". In most cases the operation can
9784 be ignored as the rest of the parameters provide
9785 sufficient information. Note that "refresh" may
9786 sometimes be called when the name has not previously
9787 been added, in that case it should be treated as an add.
9788
9789 · The second argument is the NetBIOS name. If the name is
9790 not a legal name then the wins hook is not called. Legal
9791 names contain only letters, digits, hyphens, underscores
9792 and periods.
9793
9794 · The third argument is the NetBIOS name type as a 2 digit
9795 hexadecimal number.
9796
9797 · The fourth argument is the TTL (time to live) for the
9798 name in seconds.
9799
9800 · The fifth and subsequent arguments are the IP addresses
9801 currently registered for that name. If this list is
9802 empty then the name should be deleted.
9803
9804 An example script that calls the BIND dynamic DNS update program
9805 nsupdate is provided in the examples directory of the Samba source
9806 code.
9807
9808 No default
9809
9810 wins proxy (G)
9811
9812 This is a boolean that controls if nmbd(8) will respond to
9813 broadcast name queries on behalf of other hosts. You may need to
9814 set this to yes for some older clients.
9815
9816 Default: wins proxy = no
9817
9818 wins server (G)
9819
9820 This specifies the IP address (or DNS name: IP address for
9821 preference) of the WINS server that nmbd(8) should register with.
9822 If you have a WINS server on your network then you should set this
9823 to the WINS server's IP.
9824
9825 You should point this at your WINS server if you have a
9826 multi-subnetted network.
9827
9828 If you want to work in multiple namespaces, you can give every wins
9829 server a 'tag'. For each tag, only one (working) server will be
9830 queried for a name. The tag should be separated from the ip address
9831 by a colon.
9832
9833 Note
9834 You need to set up Samba to point to a WINS server if you have
9835 multiple subnets and wish cross-subnet browsing to work
9836 correctly.
9837 See the chapter in the Samba3-HOWTO on Network Browsing.
9838
9839 Default: wins server =
9840
9841 Example: wins server = mary:192.9.200.1 fred:192.168.3.199
9842 mary:192.168.2.61 # For this example when querying a certain name,
9843 192.19.200.1 will be asked first and if that doesn't respond
9844 192.168.2.61. If either of those doesn't know the name
9845 192.168.3.199 will be queried.
9846
9847 Example: wins server = 192.9.200.1 192.168.2.61
9848
9849 wins support (G)
9850
9851 This boolean controls if the nmbd(8) process in Samba will act as a
9852 WINS server. You should not set this to yes unless you have a
9853 multi-subnetted network and you wish a particular nmbd to be your
9854 WINS server. Note that you should NEVER set this to yes on more
9855 than one machine in your network.
9856
9857 Default: wins support = no
9858
9859 workgroup (G)
9860
9861 This controls what workgroup your server will appear to be in when
9862 queried by clients. Note that this parameter also controls the
9863 Domain name used with the security = domain setting.
9864
9865 Default: workgroup = WORKGROUP
9866
9867 Example: workgroup = MYGROUP
9868
9869 wreplsrv:periodic_interval (G)
9870
9871 This maximum interval in seconds between 2 periodically scheduled
9872 runs where we check for wins.ldb changes and do push notifications
9873 to our push partners. Also wins_config.ldb changes are checked in
9874 that interval and partner configuration reloads are done.
9875
9876 Default: wreplsrv:periodic_interval = 15
9877
9878 wreplsrv:propagate name releases (G)
9879
9880 If this parameter is enabled, then explicit (from the client) and
9881 implicit (via the scavenging) name releases are propagated to the
9882 other servers directly, even if there are still other addresses
9883 active, this applies to SPECIAL GROUP (2) and MULTIHOMED (3)
9884 entries. Also the replication conflict merge algorithm for SPECIAL
9885 GROUP (2) entries discards replica addresses where the address
9886 owner is the local server, if the address was not stored locally
9887 before. The merge result is propagated directly in case an address
9888 was discarded. A Windows servers doesn't propagate name releases of
9889 SPECIAL GROUP (2) and MULTIHOMED (3) entries directly, which means
9890 that Windows servers may return different results to name queries
9891 for SPECIAL GROUP (2) and MULTIHOMED (3) names. The option doesn't
9892 have much negative impact if Windows servers are around, but be
9893 aware that they might return unexpected results.
9894
9895 Default: wreplsrv:propagate name releases = no
9896
9897 wreplsrv:scavenging_interval (G)
9898
9899 This is the interval in s between 2 scavenging runs which clean up
9900 the WINS database and changes the states of expired name records.
9901 Defaults to half of the value of wreplsrv:renew_interval.
9902
9903 No default
9904
9905 wreplsrv:tombstone_extra_timeout (G)
9906
9907 This is the time in s the server needs to be up till we'll remove
9908 tombstone records from our database. Defaults to 3 days.
9909
9910 Default: wreplsrv:tombstone_extra_timeout = 259200
9911
9912 wreplsrv:tombstone_interval (G)
9913
9914 This is the interval in s till released records of the WINS server
9915 become tombstone. Defaults to 6 days.
9916
9917 Default: wreplsrv:tombstone_interval = 518400
9918
9919 wreplsrv:tombstone_timeout (G)
9920
9921 This is the interval in s till tombstone records are deleted from
9922 the WINS database. Defaults to 1 day.
9923
9924 Default: wreplsrv:tombstone_timeout = 86400
9925
9926 wreplsrv:verify_interval (G)
9927
9928 This is the interval in s till we verify active replica records
9929 with the owning WINS server. Unfortunately not implemented yet.
9930 Defaults to 24 days.
9931
9932 Default: wreplsrv:verify_interval = 2073600
9933
9934 writable
9935
9936 This parameter is a synonym for writeable.
9937
9938 write ok
9939
9940 This parameter is a synonym for writeable.
9941
9942 writeable (S)
9943
9944 Inverted synonym for read only.
9945
9946 Default: writeable = no
9947
9948 write cache size (S)
9949
9950 If this integer parameter is set to non-zero value, Samba will
9951 create an in-memory cache for each oplocked file (it does not do
9952 this for non-oplocked files). All writes that the client does not
9953 request to be flushed directly to disk will be stored in this cache
9954 if possible. The cache is flushed onto disk when a write comes in
9955 whose offset would not fit into the cache or when the file is
9956 closed by the client. Reads for the file are also served from this
9957 cache if the data is stored within it.
9958
9959 This cache allows Samba to batch client writes into a more
9960 efficient write size for RAID disks (i.e. writes may be tuned to be
9961 the RAID stripe size) and can improve performance on systems where
9962 the disk subsystem is a bottleneck but there is free memory for
9963 userspace programs.
9964
9965 The integer parameter specifies the size of this cache (per
9966 oplocked file) in bytes.
9967
9968 Note that the write cache won't be used for file handles with a
9969 smb2 write lease.
9970
9971 Default: write cache size = 0
9972
9973 Example: write cache size = 262144 # for a 256k cache size per file
9974
9975 write list (S)
9976
9977 This is a list of users that are given read-write access to a
9978 service. If the connecting user is in this list then they will be
9979 given write access, no matter what the read only option is set to.
9980 The list can include group names using the @group syntax.
9981
9982 Note that if a user is in both the read list and the write list
9983 then they will be given write access.
9984
9985 Default: write list =
9986
9987 Example: write list = admin, root, @staff
9988
9989 write raw (G)
9990
9991 This is ignored if async smb echo handler is set, because this
9992 feature is incompatible with raw write SMB requests
9993
9994 If enabled, raw writes allow writes of 65535 bytes in one packet.
9995 This typically provides a major performance benefit for some very,
9996 very old clients.
9997
9998 However, some clients either negotiate the allowable block size
9999 incorrectly or are incapable of supporting larger block sizes, and
10000 for these clients you may need to disable raw writes.
10001
10002 In general this parameter should be viewed as a system tuning tool
10003 and left severely alone.
10004
10005 Default: write raw = yes
10006
10007 wtmp directory (G)
10008
10009 This parameter is only available if Samba has been configured and
10010 compiled with the option --with-utmp. It specifies a directory
10011 pathname that is used to store the wtmp or wtmpx files (depending
10012 on the UNIX system) that record user connections to a Samba server.
10013 The difference with the utmp directory is the fact that user info
10014 is kept after a user has logged out.
10015
10016 By default this is not set, meaning the system will use whatever
10017 utmp file the native system is set to use (usually /var/run/wtmp on
10018 Linux).
10019
10020 Default: wtmp directory =
10021
10022 Example: wtmp directory = /var/log/wtmp
10023
10025 Although the configuration file permits service names to contain
10026 spaces, your client software may not. Spaces will be ignored in
10027 comparisons anyway, so it shouldn't be a problem - but be aware of the
10028 possibility.
10029
10030 On a similar note, many clients - especially DOS clients - limit
10031 service names to eight characters. smbd(8) has no such limitation, but
10032 attempts to connect from such clients will fail if they truncate the
10033 service names. For this reason you should probably keep your service
10034 names down to eight characters in length.
10035
10036 Use of the [homes] and [printers] special sections make life for an
10037 administrator easy, but the various combinations of default attributes
10038 can be tricky. Take extreme care when designing these sections. In
10039 particular, ensure that the permissions on spool directories are
10040 correct.
10041
10043 This man page is part of version 4.11.4 of the Samba suite.
10044
10046 samba(7), smbpasswd(8), smbd(8), nmbd(8), winbindd(8), samba(8), samba-
10047 tool(8), smbclient(1), nmblookup(1), testparm(1).
10048
10050 The original Samba software and related utilities were created by
10051 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
10052 Source project similar to the way the Linux kernel is developed.
10053
10054
10055
10056Samba 4.11.4 12/16/2019 SMB.CONF(5)