Initial import
[samba] / docs / manpages / smb.conf.5
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "SMB.CONF" 5 "" "" ""
21 .SH NAME
22 smb.conf \- The configuration file for the Samba suite
23 .SH "SYNOPSIS"
24
25 .PP
26 The \fIsmb\&.conf\fR file is a configuration file for the Samba suite\&. \fIsmb\&.conf\fR contains runtime configuration information for the Samba programs\&. The\fIsmb\&.conf\fR file is designed to be configured and administered by the\fBswat\fR(8) program\&. The complete description of the file format and possible parameters held within are here for reference purposes\&.
27
28 .SH "FILE FORMAT"
29
30 .PP
31 The file consists of sections and parameters\&. A section begins with the name of the section in square brackets and continues until the next section begins\&. Sections contain parameters of the form: 
32 .nf
33
34 \fIname\fR = \fIvalue \fR
35 .fi
36  
37
38 .PP
39 The file is line\-based \- that is, each newline\-terminated line represents either a comment, a section name or a parameter\&.
40
41 .PP
42 Section and parameter names are not case sensitive\&.
43
44 .PP
45 Only the first equals sign in a parameter is significant\&. Whitespace before or after the first equals sign is discarded\&. Leading, trailing and internal whitespace in section and parameter names is irrelevant\&. Leading and trailing whitespace in a parameter value is discarded\&. Internal whitespace within a parameter value is retained verbatim\&.
46
47 .PP
48 Any line beginning with a semicolon (``;'') or a hash (``#'') character is ignored, as are lines containing only whitespace\&.
49
50 .PP
51 Any line ending in a ``\\'' is continued on the next line in the customary UNIX fashion\&.
52
53 .PP
54 The values following the equals sign in parameters are all either a string (no quotes needed) or a boolean, which may be given as yes/no, 0/1 or true/false\&. Case is not significant in boolean values, but is preserved in string values\&. Some items such as create masks are numeric\&.
55
56 .SH "SECTION DESCRIPTIONS"
57
58 .PP
59 Each section in the configuration file (except for the [global] section) describes a shared resource (known as a ``share'')\&. The section name is the name of the shared resource and the parameters within the section define the shares attributes\&.
60
61 .PP
62 There are three special sections, [global], [homes] and [printers], which are described under\fBspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
63
64 .PP
65 A share consists of a directory to which access is being given plus a description of the access rights which are granted to the user of the service\&. Some housekeeping options are also specifiable\&.
66
67 .PP
68 Sections are either file share services (used by the client as an extension of their native file systems) or printable services (used by the client to access print services on the host running the server)\&.
69
70 .PP
71 Sections may be designated \fBguest\fR services, in which case no password is required to access them\&. A specified UNIX \fBguest account\fR is used to define access privileges in this case\&.
72
73 .PP
74 Sections other than guest services will require a password to access them\&. The client provides the username\&. As older clients only provide passwords and not usernames, you may specify a list of usernames to check against the password using the user = option in the share definition\&. For modern clients such as Windows 95/98/ME/NT/2000, this should not be necessary\&.
75
76 .PP
77 The access rights granted by the server are masked by the access rights granted to the specified or guest UNIX user by the host system\&. The server does not grant more access than the host system grants\&.
78
79 .PP
80 The following sample section defines a file space share\&. The user has write access to the path \fI/home/bar\fR\&. The share is accessed via the share name foo: 
81 .nf
82
83         \fI[foo]\fR
84         path = /home/bar
85         read only = no
86 .fi
87  
88
89 .PP
90 The following sample section defines a printable share\&. The share is read\-only, but printable\&. That is, the only write access permitted is via calls to open, write to and close a spool file\&. The \fBguest ok\fR parameter means access will be permitted as the default guest user (specified elsewhere): 
91 .nf
92
93         \fI[aprinter]\fR
94         path = /usr/spool/public
95         read only = yes
96         printable = yes
97         guest ok = yes
98 .fi
99  
100
101 .SH "SPECIAL SECTIONS"
102
103 .SS "The [global] section"
104
105 .PP
106 Parameters in this section apply to the server as a whole, or are defaults for sections that do not specifically define certain items\&. See the notes under PARAMETERS for more information\&.
107
108 .SS "The [homes] section"
109
110 .PP
111 If a section called [homes] is included in the configuration file, services connecting clients to their home directories can be created on the fly by the server\&.
112
113 .PP
114 When the connection request is made, the existing sections are scanned\&. If a match is found, it is used\&. If no match is found, the requested section name is treated as a username and looked up in the local password file\&. If the name exists and the correct password has been given, a share is created by cloning the [homes] section\&.
115
116 .PP
117 Some modifications are then made to the newly created share:
118
119 .TP 3
120 \(bu
121 The share name is changed from homes to the located username\&.
122 .TP
123 \(bu
124 If no path was given, the path is set to the user's home directory\&.
125 .LP
126
127 .PP
128 If you decide to use a \fBpath =\fR line in your [homes] section, it may be useful to use the %S macro\&. For example: 
129 .nf
130
131 \fBpath = /data/pchome/%S\fR
132 .fi
133  is useful if you have different home directories for your PCs than for UNIX access\&.
134
135 .PP
136 This is a fast and simple way to give a large number of clients access to their home directories with a minimum of fuss\&.
137
138 .PP
139 A similar process occurs if the requested section name is ``homes'', except that the share name is not changed to that of the requesting user\&. This method of using the [homes] section works well if different users share a client PC\&.
140
141 .PP
142 The [homes] section can specify all the parameters a normal service section can specify, though some make more sense than others\&. The following is a typical and suitable [homes] section: 
143 .nf
144
145 \fI[homes]\fR
146 read only = no
147 .fi
148  
149
150 .PP
151 An important point is that if guest access is specified in the [homes] section, all home directories will be visible to all clients \fBwithout a password\fR\&. In the very unlikely event that this is actually desirable, it is wise to also specify \fBread only access\fR\&.
152
153 .PP
154 The \fBbrowseable\fR flag for auto home directories will be inherited from the global browseable flag, not the [homes] browseable flag\&. This is useful as it means setting \fBbrowseable = no\fR in the [homes] section will hide the [homes] share but make any auto home directories visible\&.
155
156 .SS "The [printers] section"
157
158 .PP
159 This section works like [homes], but for printers\&.
160
161 .PP
162 If a [printers] section occurs in the configuration file, users are able to connect to any printer specified in the local host's printcap file\&.
163
164 .PP
165 When a connection request is made, the existing sections are scanned\&. If a match is found, it is used\&. If no match is found, but a [homes] section exists, it is used as described above\&. Otherwise, the requested section name is treated as a printer name and the appropriate printcap file is scanned to see if the requested section name is a valid printer share name\&. If a match is found, a new printer share is created by cloning the [printers] section\&.
166
167 .PP
168 A few modifications are then made to the newly created share:
169
170 .TP 3
171 \(bu
172 The share name is set to the located printer name
173 .TP
174 \(bu
175 If no printer name was given, the printer name is set to the located printer name
176 .TP
177 \(bu
178 If the share does not permit guest access and no username was given, the username is set to the located printer name\&.
179 .LP
180
181 .PP
182 The [printers] service MUST be printable \- if you specify otherwise, the server will refuse to load the configuration file\&.
183
184 .PP
185 Typically the path specified is that of a world\-writeable spool directory with the sticky bit set on it\&. A typical [printers] entry looks like this: 
186 .nf
187
188 \fI[printers]\fR
189 path = /usr/spool/public
190 guest ok = yes
191 printable = yes
192 .fi
193  
194
195 .PP
196 All aliases given for a printer in the printcap file are legitimate printer names as far as the server is concerned\&. If your printing subsystem doesn't work like that, you will have to set up a pseudo\-printcap\&. This is a file consisting of one or more lines like this: 
197 .nf
198
199 alias|alias|alias|alias\&.\&.\&.    
200 .fi
201  
202
203 .PP
204 Each alias should be an acceptable printer name for your printing subsystem\&. In the [global] section, specify the new file as your printcap\&. The server will only recognize names found in your pseudo\-printcap, which of course can contain whatever aliases you like\&. The same technique could be used simply to limit access to a subset of your local printers\&.
205
206 .PP
207 An alias, by the way, is defined as any component of the first entry of a printcap record\&. Records are separated by newlines, components (if there are more than one) are separated by vertical bar symbols (|)\&.
208
209 .RS
210 .Sh "Note"
211
212 .PP
213 On SYSV systems which use lpstat to determine what printers are defined on the system you may be able to useprintcap name = lpstat to automatically obtain a list of printers\&. See theprintcap name option for more details\&.
214
215 .RE
216
217 .SH "PARAMETERS"
218
219 .PP
220 Parameters define the specific attributes of sections\&.
221
222 .PP
223 Some parameters are specific to the [global] section (e\&.g\&., \fBsecurity\fR)\&. Some parameters are usable in all sections (e\&.g\&., \fBcreate mask\fR)\&. All others are permissible only in normal sections\&. For the purposes of the following descriptions the [homes] and [printers] sections will be considered normal\&. The letter \fBG\fR in parentheses indicates that a parameter is specific to the [global] section\&. The letter \fBS\fR indicates that a parameter can be specified in a service specific section\&. All \fBS\fR parameters can also be specified in the [global] section \- in which case they will define the default behavior for all services\&.
224
225 .PP
226 Parameters are arranged here in alphabetical order \- this may not create best bedfellows, but at least you can find them! Where there are synonyms, the preferred synonym is described, others refer to the preferred synonym\&.
227
228 .SH "VARIABLE SUBSTITUTIONS"
229
230 .PP
231 Many of the strings that are settable in the config file can take substitutions\&. For example the option``path = /tmp/%u'' is interpreted as ``path = /tmp/john'' if the user connected with the username john\&.
232
233 .PP
234 These substitutions are mostly noted in the descriptions below, but there are some general substitutions which apply whenever they might be relevant\&. These are:
235
236 .TP
237 %U
238 session username (the username that the client wanted, not necessarily the same as the one they got)\&.
239
240 .TP
241 %G
242 primary group name of %U\&.
243
244 .TP
245 %h
246 the Internet hostname that Samba is running on\&.
247
248 .TP
249 %m
250 the NetBIOS name of the client machine (very useful)\&.
251
252 This parameter is not available when Samba listens on port 445, as clients no longer send this information\&. If you use this macro in an include statement on a domain that has a Samba domain controller be sure to set in the [global] section \fIsmb ports = 139\fR\&. This will cause Samba to not listen on port 445 and will permit include functionality to function as it did with Samba 2\&.x\&.
253
254 .TP
255 %L
256 the NetBIOS name of the server\&. This allows you to change your config based on what the client calls you\&. Your server can have a ``dual personality''\&.
257
258 .TP
259 %M
260 the Internet name of the client machine\&.
261
262 .TP
263 %R
264 the selected protocol level after protocol negotiation\&. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1\&.
265
266 .TP
267 %d
268 the process id of the current server process\&.
269
270 .TP
271 %a
272 the architecture of the remote machine\&. It currently recognizes Samba (\fBSamba\fR), the Linux CIFS file system (\fBCIFSFS\fR), OS/2, (\fBOS2\fR), Windows for Workgroups (\fBWfWg\fR), Windows 9x/ME (\fBWin95\fR), Windows NT (\fBWinNT\fR), Windows 2000 (\fBWin2K\fR), Windows XP (\fBWinXP\fR), and Windows 2003 (\fBWin2K3\fR)\&. Anything else will be known as\fBUNKNOWN\fR\&.
273
274 .TP
275 %I
276 the IP address of the client machine\&.
277
278 .TP
279 %i
280 the local IP address to which a client connected\&.
281
282 .TP
283 %T
284 the current date and time\&.
285
286 .TP
287 %D
288 name of the domain or workgroup of the current user\&.
289
290 .TP
291 %w
292 the winbind separator\&.
293
294 .TP
295 %$(\fIenvvar\fR)
296 the value of the environment variable\fIenvar\fR\&.
297
298 .PP
299 The following substitutes apply only to some configuration options (only those that are used when a connection has been established):
300
301 .TP
302 %S
303 the name of the current service, if any\&.
304
305 .TP
306 %P
307 the root directory of the current service, if any\&.
308
309 .TP
310 %u
311 username of the current service, if any\&.
312
313 .TP
314 %g
315 primary group name of %u\&.
316
317 .TP
318 %H
319 the home directory of the user given by %u\&.
320
321 .TP
322 %N
323 the name of your NIS home directory server\&. This is obtained from your NIS auto\&.map entry\&. If you have not compiled Samba with the \fB\-\-with\-automount\fR option, this value will be the same as %L\&.
324
325 .TP
326 %p
327 the path of the service's home directory, obtained from your NIS auto\&.map entry\&. The NIS auto\&.map entry is split up as %N:%p\&.
328
329 .PP
330 There are some quite creative things that can be done with these substitutions and other\fIsmb\&.conf\fR options\&.
331
332 .SH "NAME MANGLING"
333
334 .PP
335 Samba supports name mangling so that DOS and Windows clients can use files that don't conform to the 8\&.3 format\&. It can also be set to adjust the case of 8\&.3 format filenames\&.
336
337 .PP
338 There are several options that control the way mangling is performed, and they are grouped here rather than listed separately\&. For the defaults look at the output of the testparm program\&.
339
340 .PP
341 All of these options can be set separately for each service (or globally, of course)\&.
342
343 .PP
344 The options are:
345
346 .TP
347 case sensitive = yes/no/auto
348 controls whether filenames are case sensitive\&. If they aren't, Samba must do a filename search and match on passed names\&. The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS and smbclient 3\&.0\&.5 and above currently) to tell the Samba server on a per\-packet basis that they wish to access the file system in a case\-sensitive manner (to support UNIX case sensitive semantics)\&. No Windows or DOS system supports case\-sensitive filename so setting this option to auto is that same as setting it to no for them\&. Default \fBauto\fR\&.
349
350 .TP
351 default case = upper/lower
352 controls what the default case is for new filenames (ie\&. files that don't currently exist in the filesystem)\&. Default \fBlower\fR\&. IMPORTANT NOTE: This option will be used to modify the case of\fBall\fR incoming client filenames, not just new filenames if the options case sensitive = yes, preserve case = No,short preserve case = No are set\&. This change is needed as part of the optimisations for directories containing large numbers of files\&.
353
354 .TP
355 preserve case = yes/no
356 controls whether new files (ie\&. files that don't currently exist in the filesystem) are created with the case that the client passes, or if they are forced to be the default case\&. Default\fByes\fR\&.
357
358 .TP
359 short preserve case = yes/no
360 controls if new files (ie\&. files that don't currently exist in the filesystem) which conform to 8\&.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be thedefault case\&. This option can be used with preserve case = yes to permit long filenames to retain their case, while short names are lowercased\&. Default \fByes\fR\&.
361
362 .PP
363 By default, Samba 3\&.0 has the same semantics as a Windows NT server, in that it is case insensitive but case preserving\&. As a special case for directories with large numbers of files, if the case options are set as follows, "case sensitive = yes", "case preserve = no", "short preserve case = no" then the "default case" option will be applied and will modify all filenames sent from the client when accessing this share\&.
364
365 .SH "NOTE ABOUT USERNAME/PASSWORD VALIDATION"
366
367 .PP
368 There are a number of ways in which a user can connect to a service\&. The server uses the following steps in determining if it will allow a connection to a specified service\&. If all the steps fail, the connection request is rejected\&. However, if one of the steps succeeds, the following steps are not checked\&.
369
370 .PP
371 If the service is marked ``guest only = yes'' and the server is running with share\-level security (``security = share'', steps 1 to 5 are skipped\&.
372
373 .TP 3
374 1.
375 If the client has passed a username/password pair and that username/password pair is validated by the UNIX system's password programs, the connection is made as that username\&. This includes the\\\\server\\service%\fIusername\fR method of passing a username\&.
376 .TP
377 2.
378 If the client has previously registered a username with the system and now supplies a correct password for that username, the connection is allowed\&.
379 .TP
380 3.
381 The client's NetBIOS name and any previously used usernames are checked against the supplied password\&. If they match, the connection is allowed as the corresponding user\&.
382 .TP
383 4.
384 If the client has previously validated a username/password pair with the server and the client has passed the validation token, that username is used\&.
385 .TP
386 5.
387 If a user = field is given in the \fIsmb\&.conf\fR file for the service and the client has supplied a password, and that password matches (according to the UNIX system's password checking) with one of the usernames from the user = field, the connection is made as the username in the user = line\&. If one of the usernames in the user = list begins with a @, that name expands to a list of names in the group of the same name\&.
388 .TP
389 6.
390 If the service is a guest service, a connection is made as the username given in the guest account = for the service, irrespective of the supplied password\&.
391 .LP
392
393 .SH "EXPLANATION OF EACH PARAMETER"
394
395 .TP
396 abort shutdown script (G)
397 This a full path name to a script called by \fBsmbd\fR(8) that should stop a shutdown procedure issued by the shutdown script\&.
398
399 If the connected user posseses the \fBSeRemoteShutdownPrivilege\fR, right, this command will be run as user\&.
400
401 Default: \fB\fIabort shutdown script\fR = \fR 
402
403 Example: \fB\fIabort shutdown script\fR = /sbin/shutdown \-c \fR 
404
405 .TP
406 acl check permissions (S)
407 This boolean parameter controls what \fBsmbd\fR(8)does on receiving a protocol request of "open for delete" from a Windows client\&. If a Windows client doesn't have permissions to delete a file then they expect this to be denied at open time\&. POSIX systems normally only detect restrictions on delete by actually attempting to delete the file or directory\&. As Windows clients can (and do) "back out" a delete request by unsetting the "delete on close" bit Samba cannot delete the file immediately on "open for delete" request as we cannot restore such a deleted file\&. With this parameter set to true (the default) then smbd checks the file system permissions directly on "open for delete" and denies the request without actually deleting the file if the file system permissions would seem to deny it\&. This is not perfect, as it's possible a user could have deleted a file without Samba being able to check the permissions correctly, but it is close enough to Windows semantics for mostly correct behaviour\&. Samba will correctly check POSIX ACL semantics in this case\&.
408
409 If this parameter is set to "false" Samba doesn't check permissions on "open for delete" and allows the open\&. If the user doesn't have permission to delete the file this will only be discovered at close time, which is too late for the Windows user tools to display an error message to the user\&. The symptom of this is files that appear to have been deleted "magically" re\-appearing on a Windows explorer refersh\&. This is an extremely advanced protocol option which should not need to be changed\&. This parameter was introduced in its final form in 3\&.0\&.21, an earlier version with slightly different semantics was introduced in 3\&.0\&.20\&. That older version is not documented here\&.
410
411 Default: \fB\fIacl check permissions\fR = True \fR 
412
413 .TP
414 acl compatibility (S)
415 This parameter specifies what OS ACL semantics should be compatible with\&. Possible values are \fBwinnt\fR for Windows NT 4,\fBwin2k\fR for Windows 2000 and above and \fBauto\fR\&. If you specify \fBauto\fR, the value for this parameter will be based upon the version of the client\&. There should be no reason to change this parameter from the default\&.
416
417 Default: \fB\fIacl compatibility\fR = Auto \fR 
418
419 Example: \fB\fIacl compatibility\fR = win2k \fR 
420
421 .TP
422 acl group control (S)
423 In a POSIX filesystem, only the owner of a file or directory and the superuser can modify the permissions and ACLs on a file\&. If this parameter is set, then Samba overrides this restriction, and also allows the\fBprimary group owner\fR of a file or directory to modify the permissions and ACLs on that file\&.
424
425 On a Windows server, groups may be the owner of a file or directory \- thus allowing anyone in that group to modify the permissions on it\&. This allows the delegation of security controls on a point in the filesystem to the group owner of a directory and anything below it also owned by that group\&. This means there are multiple people with permissions to modify ACLs on a file or directory, easing managability\&.
426
427 This parameter allows Samba to also permit delegation of the control over a point in the exported directory hierarchy in much the same was as Windows\&. This allows all members of a UNIX group to control the permissions on a file or directory they have group ownership on\&.
428
429 This parameter is best used with the inherit owner option and also on on a share containing directories with the UNIX \fBsetgid bit\fR bit set on them, which causes new files and directories created within it to inherit the group ownership from the containing directory\&.
430
431 This is a new parameter introduced in Samba 3\&.0\&.20\&.
432
433 This can be particularly useful to allow groups to manage their own security on a part of the filesystem they have group ownership of, removing the bottleneck of having only the user owner or superuser able to reset permissions\&.
434
435 Default: \fB\fIacl group control\fR = no \fR 
436
437 .TP
438 acl map full control (S)
439 This boolean parameter controls whether \fBsmbd\fR(8)maps a POSIX ACE entry of "rwx" (read/write/execute), the maximum allowed POSIX permission set, into a Windows ACL of "FULL CONTROL"\&. If this parameter is set to true any POSIX ACE entry of "rwx" will be returned in a Windows ACL as "FULL CONTROL", is this parameter is set to false any POSIX ACE entry of "rwx" will be returned as the specific Windows ACL bits representing read, write and execute\&.
440
441 Default: \fB\fIacl map full control\fR = True \fR 
442
443 .TP
444 add group script (G)
445 This is the full pathname to a script that will be run\fBAS ROOT\fR by \fBsmbd\fR(8) when a new group is requested\&. It will expand any \fI%g\fR to the group name passed\&. This script is only useful for installations using the Windows NT domain administration tools\&. The script is free to create a group with an arbitrary name to circumvent unix group name restrictions\&. In that case the script must print the numeric gid of the created group on stdout\&.
446
447 \fBNo default\fR
448
449 .TP
450 add machine script (G)
451 This is the full pathname to a script that will be run by\fBsmbd\fR(8) when a machine is added to it's domain using the administrator username and password method\&.
452
453 This option is only required when using sam back\-ends tied to the Unix uid method of RID calculation such as smbpasswd\&. This option is only available in Samba 3\&.0\&.
454
455 Default: \fB\fIadd machine script\fR = \fR 
456
457 Example: \fB\fIadd machine script\fR = /usr/sbin/adduser \-n \-g machines \-c Machine \-d /var/lib/nobody \-s /bin/false %u \fR 
458
459 .TP
460 add printer command (G)
461 With the introduction of MS\-RPC based printing support for Windows NT/2000 clients in Samba 2\&.2, The MS Add Printer Wizard (APW) icon is now also available in the "Printers\&.\&.\&." folder displayed a share listing\&. The APW allows for printers to be add remotely to a Samba or Windows NT/2000 print server\&.
462
463 For a Samba host this means that the printer must be physically added to the underlying printing system\&. The \fIadd printer command\fR defines a script to be run which will perform the necessary operations for adding the printer to the print system and to add the appropriate service definition to the \fIsmb\&.conf\fR file in order that it can be shared by \fBsmbd\fR(8)\&.
464
465 The \fIaddprinter command\fR is automatically invoked with the following parameter (in order):
466
467
468 .RS
469 .TP 3
470 \(bu
471 \fIprinter name\fR
472 .TP
473 \(bu
474 \fIshare name\fR
475 .TP
476 \(bu
477 \fIport name\fR
478 .TP
479 \(bu
480 \fIdriver name\fR
481 .TP
482 \(bu
483 \fIlocation\fR
484 .TP
485 \(bu
486 \fIWindows 9x driver location\fR
487 .LP
488 .RE
489 .IP
490 All parameters are filled in from the PRINTER_INFO_2 structure sent by the Windows NT/2000 client with one exception\&. The "Windows 9x driver location" parameter is included for backwards compatibility only\&. The remaining fields in the structure are generated from answers to the APW questions\&.
491
492 Once the \fIaddprinter command\fR has been executed, \fBsmbd\fR will reparse the \fI smb\&.conf\fR to determine if the share defined by the APW exists\&. If the sharename is still invalid, then \fBsmbd \fR will return an ACCESS_DENIED error to the client\&.
493
494 The "add printer command" program can output a single line of text, which Samba will set as the port the new printer is connected to\&. If this line isn't output, Samba won't reload its printer shares\&.
495
496 Default: \fB\fIadd printer command\fR = \fR 
497
498 Example: \fB\fIadd printer command\fR = /usr/bin/addprinter \fR 
499
500 .TP
501 add share command (G)
502 Samba 2\&.2\&.0 introduced the ability to dynamically add and delete shares via the Windows NT 4\&.0 Server Manager\&. The\fIadd share command\fR is used to define an external program or script which will add a new service definition to \fIsmb\&.conf\fR\&. In order to successfully execute the \fIadd share command\fR, \fBsmbd\fR requires that the administrator be connected using a root account (i\&.e\&. uid == 0)\&.
503
504 When executed, \fBsmbd\fR will automatically invoke the\fIadd share command\fR with four parameters\&.
505
506
507 .RS
508 .TP 3
509 \(bu
510 \fIconfigFile\fR \- the location of the global \fIsmb\&.conf\fR file\&.
511 .TP
512 \(bu
513 \fIshareName\fR \- the name of the new share\&.
514 .TP
515 \(bu
516 \fIpathName\fR \- path to an **existing** directory on disk\&.
517 .TP
518 \(bu
519 \fIcomment\fR \- comment string to associate with the new share\&.
520 .LP
521 .RE
522 .IP
523 This parameter is only used for add file shares\&. To add printer shares, see the addprinter command\&.
524
525 Default: \fB\fIadd share command\fR = \fR 
526
527 Example: \fB\fIadd share command\fR = /usr/local/bin/addshare \fR 
528
529 .TP
530 add user script (G)
531 This is the full pathname to a script that will be run \fBAS ROOT\fR by\fBsmbd\fR(8) under special circumstances described below\&.
532
533 Normally, a Samba server requires that UNIX users are created for all users accessing files on this server\&. For sites that use Windows NT account databases as their primary user database creating these users and keeping the user list in sync with the Windows NT PDC is an onerous task\&. This option allows smbd to create the required UNIX users\fBON DEMAND\fR when a user accesses the Samba server\&.
534
535 In order to use this option, \fBsmbd\fR(8) must \fBNOT\fR be set tosecurity = share and add user script must be set to a full pathname for a script that will create a UNIX user given one argument of\fI%u\fR, which expands into the UNIX user name to create\&.
536
537 When the Windows user attempts to access the Samba server, at login (session setup in the SMB protocol) time, \fBsmbd\fR(8) contacts the password server and attempts to authenticate the given user with the given password\&. If the authentication succeeds then \fBsmbd\fR attempts to find a UNIX user in the UNIX password database to map the Windows user into\&. If this lookup fails, andadd user script is set then \fBsmbd\fR will call the specified script \fBAS ROOT\fR, expanding any\fI%u\fR argument to be the user name to create\&.
538
539 If this script successfully creates the user then \fBsmbd\fR will continue on as though the UNIX user already existed\&. In this way, UNIX users are dynamically created to match existing Windows NT accounts\&.
540
541 See also security, password server,delete user script\&.
542
543 Default: \fB\fIadd user script\fR = \fR 
544
545 Example: \fB\fIadd user script\fR = /usr/local/samba/bin/add_user %u \fR 
546
547 .TP
548 add user to group script (G)
549 Full path to the script that will be called when a user is added to a group using the Windows NT domain administration tools\&. It will be run by \fBsmbd\fR(8) \fBAS ROOT\fR\&. Any \fI%g\fR will be replaced with the group name and any \fI%u\fR will be replaced with the user name\&.
550
551 Note that the \fBadduser\fR command used in the example below does not support the used syntax on all systems\&.
552
553 Default: \fB\fIadd user to group script\fR = \fR 
554
555 Example: \fB\fIadd user to group script\fR = /usr/sbin/adduser %u %g \fR 
556
557 .TP
558 admin users (S)
559 This is a list of users who will be granted administrative privileges on the share\&. This means that they will do all file operations as the super\-user (root)\&.
560
561 You should use this option very carefully, as any user in this list will be able to do anything they like on the share, irrespective of file permissions\&.
562
563 This parameter will not work with the security = share in Samba 3\&.0\&. This is by design\&.
564
565 Default: \fB\fIadmin users\fR = \fR 
566
567 Example: \fB\fIadmin users\fR = jason \fR 
568
569 .TP
570 afs share (S)
571 This parameter controls whether special AFS features are enabled for this share\&. If enabled, it assumes that the directory exported via the \fIpath\fR parameter is a local AFS import\&. The special AFS features include the attempt to hand\-craft an AFS token if you enabled \-\-with\-fake\-kaserver in configure\&.
572
573 Default: \fB\fIafs share\fR = no \fR 
574
575 .TP
576 afs username map (G)
577 If you are using the fake kaserver AFS feature, you might want to hand\-craft the usernames you are creating tokens for\&. For example this is necessary if you have users from several domain in your AFS Protection Database\&. One possible scheme to code users as DOMAIN+User as it is done by winbind with the + as a separator\&.
578
579 The mapped user name must contain the cell name to log into, so without setting this parameter there will be no token\&.
580
581 Default: \fB\fIafs username map\fR = \fR 
582
583 Example: \fB\fIafs username map\fR = %u@afs\&.samba\&.org \fR 
584
585 .TP
586 algorithmic rid base (G)
587 This determines how Samba will use its algorithmic mapping from uids/gid to the RIDs needed to construct NT Security Identifiers\&.
588
589 Setting this option to a larger value could be useful to sites transitioning from WinNT and Win2k, as existing user and group rids would otherwise clash with sytem users etc\&.
590
591 All UIDs and GIDs must be able to be resolved into SIDs for the correct operation of ACLs on the server\&. As such the algorithmic mapping can't be 'turned off', but pushing it 'out of the way' should resolve the issues\&. Users and groups can then be assigned 'low' RIDs in arbitary\-rid supporting backends\&.
592
593 Default: \fB\fIalgorithmic rid base\fR = 1000 \fR 
594
595 Example: \fB\fIalgorithmic rid base\fR = 100000 \fR 
596
597 .TP
598 allocation roundup size (S)
599 This parameter allows an administrator to tune the allocation size reported to Windows clients\&. The default size of 1Mb generally results in improved Windows client performance\&. However, rounding the allocation size may cause difficulties for some applications, e\&.g\&. MS Visual Studio\&. If the MS Visual Studio compiler starts to crash with an internal error, set this parameter to zero for this share\&.
600
601 The integer parameter specifies the roundup size in bytes\&.
602
603 Default: \fB\fIallocation roundup size\fR = 1048576 \fR 
604
605 Example: \fB\fIallocation roundup size\fR = 0 # (to disable roundups) \fR 
606
607 .TP
608 allow trusted domains (G)
609 This option only takes effect when the security option is set to \fBserver\fR,\fBdomain\fR or \fBads\fR\&. If it is set to no, then attempts to connect to a resource from a domain or workgroup other than the one which smbd is running in will fail, even if that domain is trusted by the remote server doing the authentication\&.
610
611 This is useful if you only want your Samba server to serve resources to users in the domain it is a member of\&. As an example, suppose that there are two domains DOMA and DOMB\&. DOMB is trusted by DOMA, which contains the Samba server\&. Under normal circumstances, a user with an account in DOMB can then access the resources of a UNIX account with the same account name on the Samba server even if they do not have an account in DOMA\&. This can make implementing a security boundary difficult\&.
612
613 Default: \fB\fIallow trusted domains\fR = yes \fR 
614
615 .TP
616 announce as (G)
617 This specifies what type of server \fBnmbd\fR(8) will announce itself as, to a network neighborhood browse list\&. By default this is set to Windows NT\&. The valid options are : "NT Server" (which can also be written as "NT"), "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, Windows NT Workstation, Windows 95 and Windows for Workgroups respectively\&. Do not change this parameter unless you have a specific need to stop Samba appearing as an NT server as this may prevent Samba servers from participating as browser servers correctly\&.
618
619 Default: \fB\fIannounce as\fR = NT Server \fR 
620
621 Example: \fB\fIannounce as\fR = Win95 \fR 
622
623 .TP
624 announce version (G)
625 This specifies the major and minor version numbers that nmbd will use when announcing itself as a server\&. The default is 4\&.9\&. Do not change this parameter unless you have a specific need to set a Samba server to be a downlevel server\&.
626
627 Default: \fB\fIannounce version\fR = 4\&.9 \fR 
628
629 Example: \fB\fIannounce version\fR = 2\&.0 \fR 
630
631 .TP
632 auth methods (G)
633 This option allows the administrator to chose what authentication methods \fBsmbd\fR will use when authenticating a user\&. This option defaults to sensible values based on security\&. This should be considered a developer option and used only in rare circumstances\&. In the majority (if not all) of production servers, the default setting should be adequate\&.
634
635 Each entry in the list attempts to authenticate the user in turn, until the user authenticates\&. In practice only one method will ever actually be able to complete the authentication\&.
636
637 Possible options include \fBguest\fR (anonymous access), \fBsam\fR (lookups in local list of accounts based on netbios name or domain name), \fBwinbind\fR (relay authentication requests for remote users through winbindd), \fBntdomain\fR (pre\-winbindd method of authentication for remote domain users; deprecated in favour of winbind method), \fBtrustdomain\fR (authenticate trusted users by contacting the remote DC directly from smbd; deprecated in favour of winbind method)\&.
638
639 Default: \fB\fIauth methods\fR = \fR 
640
641 Example: \fB\fIauth methods\fR = guest sam winbind \fR 
642
643 .TP
644 available (S)
645 This parameter lets you "turn off" a service\&. If\fIavailable = no\fR, then \fBALL\fR attempts to connect to the service will fail\&. Such failures are logged\&.
646
647 Default: \fB\fIavailable\fR = yes \fR 
648
649 .TP
650 bind interfaces only (G)
651 This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests\&. It affects file service \fBsmbd\fR(8) and name service \fBnmbd\fR(8) in a slightly different ways\&.
652
653 For name service it causes \fBnmbd\fR to bind to ports 137 and 138 on the interfaces listed in the interfaces parameter\&. \fBnmbd\fR also binds to the "all addresses" interface (0\&.0\&.0\&.0) on ports 137 and 138 for the purposes of reading broadcast messages\&. If this option is not set then \fBnmbd\fR will service name requests on all of these sockets\&. If bind interfaces only is set then\fBnmbd\fR will check the source address of any packets coming in on the broadcast sockets and discard any that don't match the broadcast addresses of the interfaces in theinterfaces parameter list\&. As unicast packets are received on the other sockets it allows \fBnmbd\fR to refuse to serve names to machines that send packets that arrive through any interfaces not listed in the interfaces list\&. IP Source address spoofing does defeat this simple check, however, so it must not be used seriously as a security feature for\fBnmbd\fR\&.
654
655 For file service it causes \fBsmbd\fR(8) to bind only to the interface list given in the interfaces parameter\&. This restricts the networks that \fBsmbd\fR will serve to packets coming in those interfaces\&. Note that you should not use this parameter for machines that are serving PPP or other intermittent or non\-broadcast network interfaces as it will not cope with non\-permanent interfaces\&.
656
657 If bind interfaces only is set then unless the network address\fB127\&.0\&.0\&.1\fR is added to the interfaces parameter list\fBsmbpasswd\fR(8) and\fBswat\fR(8) may not work as expected due to the reasons covered below\&.
658
659 To change a users SMB password, the \fBsmbpasswd\fR by default connects to the\fBlocalhost \- 127\&.0\&.0\&.1\fR address as an SMB client to issue the password change request\&. Ifbind interfaces only is set then unless the network address\fB127\&.0\&.0\&.1\fR is added to the interfaces parameter list then \fB smbpasswd\fR will fail to connect in it's default mode\&. \fBsmbpasswd\fR can be forced to use the primary IP interface of the local host by using its \fBsmbpasswd\fR(8)\fI\-r \fIremote machine\fR\fR parameter, with \fIremote machine\fR set to the IP name of the primary interface of the local host\&.
660
661 The \fBswat\fR status page tries to connect with \fBsmbd\fR and \fBnmbd\fR at the address\fB127\&.0\&.0\&.1\fR to determine if they are running\&. Not adding \fB127\&.0\&.0\&.1\fR will cause \fB smbd\fR and \fBnmbd\fR to always show "not running" even if they really are\&. This can prevent \fB swat\fR from starting/stopping/restarting \fBsmbd\fR and \fBnmbd\fR\&.
662
663 Default: \fB\fIbind interfaces only\fR = no \fR 
664
665 .TP
666 blocking locks (S)
667 This parameter controls the behavior of \fBsmbd\fR(8) when given a request by a client to obtain a byte range lock on a region of an open file, and the request has a time limit associated with it\&.
668
669 If this parameter is set and the lock range requested cannot be immediately satisfied, samba will internally queue the lock request, and periodically attempt to obtain the lock until the timeout period expires\&.
670
671 If this parameter is set to \fBno\fR, then samba will behave as previous versions of Samba would and will fail the lock request immediately if the lock range cannot be obtained\&.
672
673 Default: \fB\fIblocking locks\fR = yes \fR 
674
675 .TP
676 block size (S)
677 This parameter controls the behavior of \fBsmbd\fR(8) when reporting disk free sizes\&. By default, this reports a disk block size of 1024 bytes\&.
678
679 Changing this parameter may have some effect on the efficiency of client writes, this is not yet confirmed\&. This parameter was added to allow advanced administrators to change it (usually to a higher value) and test the effect it has on client write performance without re\-compiling the code\&. As this is an experimental option it may be removed in a future release\&.
680
681 Changing this option does not change the disk free reporting size, just the block size unit reported to the client\&.
682
683 \fBNo default\fR
684
685 .TP
686 browsable
687 This parameter is a synonym for browseable\&.
688
689 .TP
690 browseable (S)
691 This controls whether this share is seen in the list of available shares in a net view and in the browse list\&.
692
693 Default: \fB\fIbrowseable\fR = yes \fR 
694
695 .TP
696 browse list (G)
697 This controls whether \fBsmbd\fR(8) will serve a browse list to a client doing a \fBNetServerEnum\fR call\&. Normally set to \fByes\fR\&. You should never need to change this\&.
698
699 Default: \fB\fIbrowse list\fR = yes \fR 
700
701 .TP
702 casesignames
703 This parameter is a synonym for case sensitive\&.
704
705 .TP
706 case sensitive (S)
707 See the discussion in the section name mangling\&.
708
709 Default: \fB\fIcase sensitive\fR = no \fR 
710
711 .TP
712 change notify timeout (G)
713 This SMB allows a client to tell a server to "watch" a particular directory for any changes and only reply to the SMB request when a change has occurred\&. Such constant scanning of a directory is expensive under UNIX, hence an \fBsmbd\fR(8) daemon only performs such a scan on each requested directory once every \fIchange notify timeout\fR seconds\&.
714
715 Default: \fB\fIchange notify timeout\fR = 60 \fR 
716
717 Example: \fB\fIchange notify timeout\fR = 300 # Would change the scan time to every 5 minutes\&. \fR 
718
719 .TP
720 change share command (G)
721 Samba 2\&.2\&.0 introduced the ability to dynamically add and delete shares via the Windows NT 4\&.0 Server Manager\&. The\fIchange share command\fR is used to define an external program or script which will modify an existing service definition in \fIsmb\&.conf\fR\&. In order to successfully execute the \fIchange share command\fR, \fBsmbd\fR requires that the administrator be connected using a root account (i\&.e\&. uid == 0)\&.
722
723 When executed, \fBsmbd\fR will automatically invoke the\fIchange share command\fR with four parameters\&.
724
725
726 .RS
727 .TP 3
728 \(bu
729 \fIconfigFile\fR \- the location of the global \fIsmb\&.conf\fR file\&.
730 .TP
731 \(bu
732 \fIshareName\fR \- the name of the new share\&.
733 .TP
734 \(bu
735 \fIpathName\fR \- path to an **existing** directory on disk\&.
736 .TP
737 \(bu
738 \fIcomment\fR \- comment string to associate with the new share\&.
739 .LP
740 .RE
741 .IP
742 This parameter is only used modify existing file shares definitions\&. To modify printer shares, use the "Printers\&.\&.\&." folder as seen when browsing the Samba host\&.
743
744 Default: \fB\fIchange share command\fR = \fR 
745
746 Example: \fB\fIchange share command\fR = /usr/local/bin/addshare \fR 
747
748 .TP
749 check password script (G)
750 The name of a program that can be used to check password complexity\&. The password is sent to the program's standrad input\&.
751
752 The program must return 0 on good password any other value otherwise\&. In case the password is considered weak (the program do not return 0) the user will be notified and the password change will fail\&.
753
754 Note: In the example directory there is a sample program called crackcheck that uses cracklib to checkpassword quality
755
756 \&.
757
758
759 Default: \fB\fIcheck password script\fR = Disabled \fR 
760
761 Example: \fB\fIcheck password script\fR = check password script = /usr/local/sbin/crackcheck \fR 
762
763 .TP
764 client lanman auth (G)
765 This parameter determines whether or not \fBsmbclient\fR(8) and other samba client tools will attempt to authenticate itself to servers using the weaker LANMAN password hash\&. If disabled, only server which support NT password hashes (e\&.g\&. Windows NT/2000, Samba, etc\&.\&.\&. but not Windows 95/98) will be able to be connected from the Samba client\&.
766
767 The LANMAN encrypted response is easily broken, due to it's case\-insensitive nature, and the choice of algorithm\&. Clients without Windows 95/98 servers are advised to disable this option\&.
768
769 Disabling this option will also disable the \fBclient plaintext auth\fR option
770
771 Likewise, if the \fBclient ntlmv2 auth\fR parameter is enabled, then only NTLMv2 logins will be attempted\&.
772
773 Default: \fB\fIclient lanman auth\fR = yes \fR 
774
775 .TP
776 client ntlmv2 auth (G)
777 This parameter determines whether or not \fBsmbclient\fR(8) will attempt to authenticate itself to servers using the NTLMv2 encrypted password response\&.
778
779 If enabled, only an NTLMv2 and LMv2 response (both much more secure than earlier versions) will be sent\&. Many servers (including NT4 < SP4, Win9x and Samba 2\&.2) are not compatible with NTLMv2\&.
780
781 Similarly, if enabled, NTLMv1, \fBclient lanman auth\fR and \fBclient plaintext auth\fR authentication will be disabled\&. This also disables share\-level authentication\&.
782
783 If disabled, an NTLM response (and possibly a LANMAN response) will be sent by the client, depending on the value of \fBclient lanman auth\fR\&.
784
785 Note that some sites (particularly those following 'best practice' security polices) only allow NTLMv2 responses, and not the weaker LM or NTLM\&.
786
787 Default: \fB\fIclient ntlmv2 auth\fR = no \fR 
788
789 .TP
790 client plaintext auth (G)
791 Specifies whether a client should send a plaintext password if the server does not support encrypted passwords\&.
792
793 Default: \fB\fIclient plaintext auth\fR = yes \fR 
794
795 .TP
796 client schannel (G)
797 This controls whether the client offers or even demands the use of the netlogon schannel\&. client schannel = no does not offer the schannel, client schannel = auto offers the schannel but does not enforce it, and client schannel = yes denies access if the server is not able to speak netlogon schannel\&.
798
799 Default: \fB\fIclient schannel\fR = auto \fR 
800
801 Example: \fB\fIclient schannel\fR = yes \fR 
802
803 .TP
804 client signing (G)
805 This controls whether the client offers or requires the server it talks to to use SMB signing\&. Possible values are \fBauto\fR, \fBmandatory\fR and \fBdisabled\fR\&.
806
807 When set to auto, SMB signing is offered, but not enforced\&. When set to mandatory, SMB signing is required and if set to disabled, SMB signing is not offered either\&.
808
809 Default: \fB\fIclient signing\fR = auto \fR 
810
811 .TP
812 client use spnego (G)
813 This variable controls whether Samba clients will try to use Simple and Protected NEGOciation (as specified by rfc2478) with supporting servers (including WindowsXP, Windows2000 and Samba 3\&.0) to agree upon an authentication mechanism\&. This enables Kerberos authentication in particular\&.
814
815 Default: \fB\fIclient use spnego\fR = yes \fR 
816
817 .TP
818 comment (S)
819 This is a text field that is seen next to a share when a client does a queries the server, either via the network neighborhood or via \fBnet view\fR to list what shares are available\&.
820
821 If you want to set the string that is displayed next to the machine name then see the server string parameter\&.
822
823 Default: \fB\fIcomment\fR = # No comment \fR 
824
825 Example: \fB\fIcomment\fR = Fred's Files \fR 
826
827 .TP
828 config file (G)
829 This allows you to override the config file to use, instead of the default (usually \fIsmb\&.conf\fR)\&. There is a chicken and egg problem here as this option is set in the config file!
830
831 For this reason, if the name of the config file has changed when the parameters are loaded then it will reload them from the new config file\&.
832
833 This option takes the usual substitutions, which can be very useful\&.
834
835 If the config file doesn't exist then it won't be loaded (allowing you to special case the config files of just a few clients)\&.
836
837 \fBNo default\fR
838
839 Example: \fB\fIconfig file\fR = /usr/local/samba/lib/smb\&.conf\&.%m \fR 
840
841 .TP
842 copy (S)
843 This parameter allows you to "clone" service entries\&. The specified service is simply duplicated under the current service's name\&. Any parameters specified in the current section will override those in the section being copied\&.
844
845 This feature lets you set up a 'template' service and create similar services easily\&. Note that the service being copied must occur earlier in the configuration file than the service doing the copying\&.
846
847 Default: \fB\fIcopy\fR = \fR 
848
849 Example: \fB\fIcopy\fR = otherservice \fR 
850
851 .TP
852 create mode
853 This parameter is a synonym for create mask\&.
854
855 .TP
856 create mask (S)
857 When a file is created, the necessary permissions are calculated according to the mapping from DOS modes to UNIX permissions, and the resulting UNIX mode is then bit\-wise 'AND'ed with this parameter\&. This parameter may be thought of as a bit\-wise MASK for the UNIX modes of a file\&. Any bit \fBnot\fR set here will be removed from the modes set on a file when it is created\&.
858
859 The default value of this parameter removes the group and other write and execute bits from the UNIX modes\&.
860
861 Following this Samba will bit\-wise 'OR' the UNIX mode created from this parameter with the value of theforce create mode parameter which is set to 000 by default\&.
862
863 This parameter does not affect directory masks\&. See the parameter directory mask for details\&.
864
865 Note that this parameter does not apply to permissions set by Windows NT/2000 ACL editors\&. If the administrator wishes to enforce a mask on access control lists also, they need to set the security mask\&.
866
867 Default: \fB\fIcreate mask\fR = 0744 \fR 
868
869 Example: \fB\fIcreate mask\fR = 0775 \fR 
870
871 .TP
872 csc policy (S)
873 This stands for \fBclient\-side caching policy\fR, and specifies how clients capable of offline caching will cache the files in the share\&. The valid values are: manual, documents, programs, disable\&.
874
875 These values correspond to those used on Windows servers\&.
876
877 For example, shares containing roaming profiles can have offline caching disabled usingcsc policy = disable\&.
878
879 Default: \fB\fIcsc policy\fR = manual \fR 
880
881 Example: \fB\fIcsc policy\fR = programs \fR 
882
883 .TP
884 cups options (S)
885 This parameter is only applicable if printing is set to \fBcups\fR\&. Its value is a free form string of options passed directly to the cups library\&.
886
887 You can pass any generic print option known to CUPS (as listed in the CUPS "Software Users' Manual")\&. You can also pass any printer specific option (as listed in "lpoptions \-d printername \-l") valid for the target queue\&.
888
889 You should set this parameter to \fBraw\fR if your CUPS server \fIerror_log\fR file contains messages such as "Unsupported format 'application/octet\-stream'" when printing from a Windows client through Samba\&. It is no longer necessary to enable system wide raw printing in \fI/etc/cups/mime\&.{convs,types}\fR\&.
890
891 Default: \fB\fIcups options\fR = "" \fR 
892
893 Example: \fB\fIcups options\fR = "raw,media=a4,job\-sheets=secret,secret" \fR 
894
895 .TP
896 cups server (G)
897 This parameter is only applicable if printing is set to \fBcups\fR\&.
898
899 If set, this option overrides the ServerName option in the CUPS \fIclient\&.conf\fR\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&.
900
901 Default: \fB\fIcups server\fR = "" \fR 
902
903 Example: \fB\fIcups server\fR = MYCUPSSERVER \fR 
904
905 .TP
906 deadtime (G)
907 The value of the parameter (a decimal integer) represents the number of minutes of inactivity before a connection is considered dead, and it is disconnected\&. The deadtime only takes effect if the number of open files is zero\&.
908
909 This is useful to stop a server's resources being exhausted by a large number of inactive connections\&.
910
911 Most clients have an auto\-reconnect feature when a connection is broken so in most cases this parameter should be transparent to users\&.
912
913 Using this parameter with a timeout of a few minutes is recommended for most systems\&.
914
915 A deadtime of zero indicates that no auto\-disconnection should be performed\&.
916
917 Default: \fB\fIdeadtime\fR = 0 \fR 
918
919 Example: \fB\fIdeadtime\fR = 15 \fR 
920
921 .TP
922 debug hires timestamp (G)
923 Sometimes the timestamps in the log messages are needed with a resolution of higher that seconds, this boolean parameter adds microsecond resolution to the timestamp message header when turned on\&.
924
925 Note that the parameter debug timestamp must be on for this to have an effect\&.
926
927 Default: \fB\fIdebug hires timestamp\fR = no \fR 
928
929 .TP
930 debug pid (G)
931 When using only one log file for more then one forked \fBsmbd\fR(8)\-process there may be hard to follow which process outputs which message\&. This boolean parameter is adds the process\-id to the timestamp message headers in the logfile when turned on\&.
932
933 Note that the parameter debug timestamp must be on for this to have an effect\&.
934
935 Default: \fB\fIdebug pid\fR = no \fR 
936
937 .TP
938 timestamp logs
939 This parameter is a synonym for debug timestamp\&.
940
941 .TP
942 debug timestamp (G)
943 Samba debug log messages are timestamped by default\&. If you are running at a high debug level these timestamps can be distracting\&. This boolean parameter allows timestamping to be turned off\&.
944
945 Default: \fB\fIdebug timestamp\fR = yes \fR 
946
947 .TP
948 debug uid (G)
949 Samba is sometimes run as root and sometime run as the connected user, this boolean parameter inserts the current euid, egid, uid and gid to the timestamp message headers in the log file if turned on\&.
950
951 Note that the parameter debug timestamp must be on for this to have an effect\&.
952
953 Default: \fB\fIdebug uid\fR = no \fR 
954
955 .TP
956 default case (S)
957 See the section on name mangling \&. Also note the short preserve case parameter\&.
958
959 Default: \fB\fIdefault case\fR = lower \fR 
960
961 .TP
962 default devmode (S)
963 This parameter is only applicable to printable services\&. When smbd is serving Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba server has a Device Mode which defines things such as paper size and orientation and duplex settings\&. The device mode can only correctly be generated by the printer driver itself (which can only be executed on a Win32 platform)\&. Because smbd is unable to execute the driver code to generate the device mode, the default behavior is to set this field to NULL\&.
964
965 Most problems with serving printer drivers to Windows NT/2k/XP clients can be traced to a problem with the generated device mode\&. Certain drivers will do things such as crashing the client's Explorer\&.exe with a NULL devmode\&. However, other printer drivers can cause the client's spooler service (spoolsv\&.exe) to die if the devmode was not created by the driver itself (i\&.e\&. smbd generates a default devmode)\&.
966
967 This parameter should be used with care and tested with the printer driver in question\&. It is better to leave the device mode to NULL and let the Windows client set the correct values\&. Because drivers do not do this all the time, setting \fBdefault devmode = yes\fR will instruct smbd to generate a default one\&.
968
969 For more information on Windows NT/2k printing and Device Modes, see the MSDN documentation\&.
970
971 Default: \fB\fIdefault devmode\fR = no \fR 
972
973 .TP
974 default
975 This parameter is a synonym for default service\&.
976
977 .TP
978 default service (G)
979 This parameter specifies the name of a service which will be connected to if the service actually requested cannot be found\&. Note that the square brackets are \fBNOT\fR given in the parameter value (see example below)\&.
980
981 There is no default value for this parameter\&. If this parameter is not given, attempting to connect to a nonexistent service results in an error\&.
982
983 Typically the default service would be a guest ok, read\-only service\&.
984
985 Also note that the apparent service name will be changed to equal that of the requested service, this is very useful as it allows you to use macros like \fI%S\fR to make a wildcard service\&.
986
987 Note also that any "_" characters in the name of the service used in the default service will get mapped to a "/"\&. This allows for interesting things\&.
988
989 Default: \fB\fIdefault service\fR = \fR 
990
991 Example: \fB\fIdefault service\fR = pub \fR 
992
993 .TP
994 defer sharing violations (G)
995 Windows allows specifying how a file will be shared with other processes when it is opened\&. Sharing violations occur when a file is opened by a different process using options that violate the share settings specified by other processes\&. This parameter causes smbd to act as a Windows server does, and defer returning a "sharing violation" error message for up to one second, allowing the client to close the file causing the violation in the meantime\&.
996
997 UNIX by default does not have this behaviour\&.
998
999 There should be no reason to turn off this parameter, as it is designed to enable Samba to more correctly emulate Windows\&.
1000
1001 Default: \fB\fIdefer sharing violations\fR = True \fR 
1002
1003 .TP
1004 delete group script (G)
1005 This is the full pathname to a script that will be run \fBAS ROOT\fR  \fBsmbd\fR(8) when a group is requested to be deleted\&. It will expand any \fI%g\fR to the group name passed\&. This script is only useful for installations using the Windows NT domain administration tools\&.
1006
1007 Default: \fB\fIdelete group script\fR = \fR 
1008
1009 .TP
1010 deleteprinter command (G)
1011 With the introduction of MS\-RPC based printer support for Windows NT/2000 clients in Samba 2\&.2, it is now possible to delete printer at run time by issuing the DeletePrinter() RPC call\&.
1012
1013 For a Samba host this means that the printer must be physically deleted from underlying printing system\&. The deleteprinter command defines a script to be run which will perform the necessary operations for removing the printer from the print system and from \fIsmb\&.conf\fR\&.
1014
1015 The deleteprinter command is automatically called with only one parameter: printer name\&.
1016
1017 Once the deleteprinter command has been executed, \fBsmbd\fR will reparse the \fI smb\&.conf\fR to associated printer no longer exists\&. If the sharename is still valid, then \fBsmbd \fR will return an ACCESS_DENIED error to the client\&.
1018
1019 Default: \fB\fIdeleteprinter command\fR = \fR 
1020
1021 Example: \fB\fIdeleteprinter command\fR = /usr/bin/removeprinter \fR 
1022
1023 .TP
1024 delete readonly (S)
1025 This parameter allows readonly files to be deleted\&. This is not normal DOS semantics, but is allowed by UNIX\&.
1026
1027 This option may be useful for running applications such as rcs, where UNIX file ownership prevents changing file permissions, and DOS semantics prevent deletion of a read only file\&.
1028
1029 Default: \fB\fIdelete readonly\fR = no \fR 
1030
1031 .TP
1032 delete share command (G)
1033 Samba 2\&.2\&.0 introduced the ability to dynamically add and delete shares via the Windows NT 4\&.0 Server Manager\&. The\fIdelete share command\fR is used to define an external program or script which will remove an existing service definition from \fIsmb\&.conf\fR\&. In order to successfully execute the \fIdelete share command\fR, \fBsmbd\fR requires that the administrator be connected using a root account (i\&.e\&. uid == 0)\&.
1034
1035 When executed, \fBsmbd\fR will automatically invoke the\fIdelete share command\fR with two parameters\&.
1036
1037
1038 .RS
1039 .TP 3
1040 \(bu
1041 \fIconfigFile\fR \- the location of the global \fIsmb\&.conf\fR file\&.
1042 .TP
1043 \(bu
1044 \fIshareName\fR \- the name of the existing service\&.
1045 .LP
1046 .RE
1047 .IP
1048 This parameter is only used to remove file shares\&. To delete printer shares, see the deleteprinter command\&.
1049
1050 Default: \fB\fIdelete share command\fR = \fR 
1051
1052 Example: \fB\fIdelete share command\fR = /usr/local/bin/delshare \fR 
1053
1054 .TP
1055 delete user from group script (G)
1056 Full path to the script that will be called when a user is removed from a group using the Windows NT domain administration tools\&. It will be run by \fBsmbd\fR(8)  \fBAS ROOT\fR\&. Any \fI%g\fR will be replaced with the group name and any \fI%u\fR will be replaced with the user name\&.
1057
1058 Default: \fB\fIdelete user from group script\fR = \fR 
1059
1060 Example: \fB\fIdelete user from group script\fR = /usr/sbin/deluser %u %g \fR 
1061
1062 .TP
1063 delete user script (G)
1064 This is the full pathname to a script that will be run by \fBsmbd\fR(8) when managing users with remote RPC (NT) tools\&.
1065
1066 This script is called when a remote client removes a user from the server, normally using 'User Manager for Domains' or\fBrpcclient\fR\&.
1067
1068 This script should delete the given UNIX username\&.
1069
1070 Default: \fB\fIdelete user script\fR = \fR 
1071
1072 Example: \fB\fIdelete user script\fR = /usr/local/samba/bin/del_user %u \fR 
1073
1074 .TP
1075 delete veto files (S)
1076 This option is used when Samba is attempting to delete a directory that contains one or more vetoed directories (see the veto files option)\&. If this option is set to \fBno\fR (the default) then if a vetoed directory contains any non\-vetoed files or directories then the directory delete will fail\&. This is usually what you want\&.
1077
1078 If this option is set to \fByes\fR, then Samba will attempt to recursively delete any files and directories within the vetoed directory\&. This can be useful for integration with file serving systems such as NetAtalk which create meta\-files within directories you might normally veto DOS/Windows users from seeing (e\&.g\&. \fI\&.AppleDouble\fR)
1079
1080 Setting delete veto files = yes allows these directories to be transparently deleted when the parent directory is deleted (so long as the user has permissions to do so)\&.
1081
1082 Default: \fB\fIdelete veto files\fR = no \fR 
1083
1084 .TP
1085 dfree cache time (S)
1086 The \fIdfree cache time\fR should only be used on systems where a problem occurs with the internal disk space calculations\&. This has been known to happen with Ultrix, but may occur with other operating systems\&. The symptom that was seen was an error of "Abort Retry Ignore" at the end of each directory listing\&.
1087
1088 This is a new parameter introduced in Samba version 3\&.0\&.21\&. It specifies in seconds the time that smbd will cache the output of a disk free query\&. If set to zero (the default) no caching is done\&. This allows a heavily loaded server to prevent rapid spawning of dfree command scripts increasing the load\&.
1089
1090 By default this parameter is zero, meaning no caching will be done\&.
1091
1092 \fBNo default\fR
1093
1094 Example: \fB\fIdfree cache time\fR = dfree cache time = 60 \fR 
1095
1096 .TP
1097 dfree command (S)
1098 The \fIdfree command\fR setting should only be used on systems where a problem occurs with the internal disk space calculations\&. This has been known to happen with Ultrix, but may occur with other operating systems\&. The symptom that was seen was an error of "Abort Retry Ignore" at the end of each directory listing\&.
1099
1100 This setting allows the replacement of the internal routines to calculate the total disk space and amount available with an external routine\&. The example below gives a possible script that might fulfill this function\&.
1101
1102 In Samba version 3\&.0\&.21 this parameter has been changed to be a per\-share parameter, and in addition the parameter dfree cache time was added to allow the output of this script to be cached for systems under heavy load\&.
1103
1104 The external program will be passed a single parameter indicating a directory in the filesystem being queried\&. This will typically consist of the string \fI\&./\fR\&. The script should return two integers in ASCII\&. The first should be the total disk space in blocks, and the second should be the number of available blocks\&. An optional third return value can give the block size in bytes\&. The default blocksize is 1024 bytes\&.
1105
1106 Note: Your script should \fBNOT\fR be setuid or setgid and should be owned by (and writeable only by) root!
1107
1108 Where the script dfree (which must be made executable) could be: 
1109 .nf
1110  
1111 #!/bin/sh
1112 df $1 | tail \-1 | awk '{print $2" "$4}'
1113 .fi
1114  or perhaps (on Sys V based systems): 
1115 .nf
1116  
1117 #!/bin/sh
1118 /usr/bin/df \-k $1 | tail \-1 | awk '{print $3" "$5}'
1119 .fi
1120  Note that you may have to replace the command names with full path names on some systems\&.
1121
1122 By default internal routines for determining the disk capacity and remaining space will be used\&.
1123
1124 \fBNo default\fR
1125
1126 Example: \fB\fIdfree command\fR = /usr/local/samba/bin/dfree \fR 
1127
1128 .TP
1129 directory mode
1130 This parameter is a synonym for directory mask\&.
1131
1132 .TP
1133 directory mask (S)
1134 This parameter is the octal modes which are used when converting DOS modes to UNIX modes when creating UNIX directories\&.
1135
1136 When a directory is created, the necessary permissions are calculated according to the mapping from DOS modes to UNIX permissions, and the resulting UNIX mode is then bit\-wise 'AND'ed with this parameter\&. This parameter may be thought of as a bit\-wise MASK for the UNIX modes of a directory\&. Any bit \fBnot\fR set here will be removed from the modes set on a directory when it is created\&.
1137
1138 The default value of this parameter removes the 'group' and 'other' write bits from the UNIX mode, allowing only the user who owns the directory to modify it\&.
1139
1140 Following this Samba will bit\-wise 'OR' the UNIX mode created from this parameter with the value of the force directory mode parameter\&. This parameter is set to 000 by default (i\&.e\&. no extra mode bits are added)\&.
1141
1142 Note that this parameter does not apply to permissions set by Windows NT/2000 ACL editors\&. If the administrator wishes to enforce a mask on access control lists also, they need to set the directory security mask\&.
1143
1144 Default: \fB\fIdirectory mask\fR = 0755 \fR 
1145
1146 Example: \fB\fIdirectory mask\fR = 0775 \fR 
1147
1148 .TP
1149 directory security mask (S)
1150 This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog box\&.
1151
1152 This parameter is applied as a mask (AND'ed with) to the changed permission bits, thus preventing any bits not in this mask from being modified\&. Make sure not to mix up this parameter with force directory security mode, which works similar like this one but uses logical OR instead of AND\&. Essentially, zero bits in this mask may be treated as a set of bits the user is not allowed to change\&.
1153
1154 If not set explicitly this parameter is set to 0777 meaning a user is allowed to modify all the user/group/world permissions on a directory\&.
1155
1156 \fBNote\fR that users who can access the Samba server through other means can easily bypass this restriction, so it is primarily useful for standalone "appliance" systems\&. Administrators of most normal systems will probably want to leave it as the default of \fB0777\fR\&.
1157
1158 Default: \fB\fIdirectory security mask\fR = 0777 \fR 
1159
1160 Example: \fB\fIdirectory security mask\fR = 0700 \fR 
1161
1162 .TP
1163 disable netbios (G)
1164 Enabling this parameter will disable netbios support in Samba\&. Netbios is the only available form of browsing in all windows versions except for 2000 and XP\&.
1165
1166
1167 .RS
1168 .Sh "Note"
1169 Clients that only support netbios won't be able to see your samba server when netbios support is disabled\&.
1170
1171 .RE
1172 Default: \fB\fIdisable netbios\fR = no \fR 
1173
1174 .TP
1175 disable spoolss (G)
1176 Enabling this parameter will disable Samba's support for the SPOOLSS set of MS\-RPC's and will yield identical behavior as Samba 2\&.0\&.x\&. Windows NT/2000 clients will downgrade to using Lanman style printing commands\&. Windows 9x/ME will be uneffected by the parameter\&. However, this will also disable the ability to upload printer drivers to a Samba server via the Windows NT Add Printer Wizard or by using the NT printer properties dialog window\&. It will also disable the capability of Windows NT/2000 clients to download print drivers from the Samba host upon demand\&. \fBBe very careful about enabling this parameter\&.\fR 
1177
1178 Default: \fB\fIdisable spoolss\fR = no \fR 
1179
1180 .TP
1181 display charset (G)
1182 Specifies the charset that samba will use to print messages to stdout and stderr and SWAT will use\&. Should generally be the same as the unix charset\&.
1183
1184 Default: \fB\fIdisplay charset\fR = ASCII \fR 
1185
1186 Example: \fB\fIdisplay charset\fR = UTF8 \fR 
1187
1188 .TP
1189 dns proxy (G)
1190 Specifies that \fBnmbd\fR(8) when acting as a WINS server and finding that a NetBIOS name has not been registered, should treat the NetBIOS name word\-for\-word as a DNS name and do a lookup with the DNS server for that name on behalf of the name\-querying client\&.
1191
1192 Note that the maximum length for a NetBIOS name is 15 characters, so the DNS name (or DNS alias) can likewise only be 15 characters, maximum\&.
1193
1194 \fBnmbd\fR spawns a second copy of itself to do the DNS name lookup requests, as doing a name lookup is a blocking action\&.
1195
1196 Default: \fB\fIdns proxy\fR = yes \fR 
1197
1198 .TP
1199 domain logons (G)
1200 If set to \fByes\fR, the Samba server will provide the netlogon service for Windows 9X network logons for theworkgroup it is in\&. This will also cause the Samba server to act as a domain controller for NT4 style domain services\&. For more details on setting up this feature see the Domain Control chapter of the Samba HOWTO Collection\&.
1201
1202 Default: \fB\fIdomain logons\fR = no \fR 
1203
1204 .TP
1205 domain master (G)
1206 Tell \fBsmbd\fR(8) to enable WAN\-wide browse list collation\&. Setting this option causes \fBnmbd\fR to claim a special domain specific NetBIOS name that identifies it as a domain master browser for its givenworkgroup\&. Local master browsers in the same workgroup on broadcast\-isolated subnets will give this \fBnmbd\fR their local browse lists, and then ask \fBsmbd\fR(8) for a complete copy of the browse list for the whole wide area network\&. Browser clients will then contact their local master browser, and will receive the domain\-wide browse list, instead of just the list for their broadcast\-isolated subnet\&.
1207
1208 Note that Windows NT Primary Domain Controllers expect to be able to claim this workgroup specific special NetBIOS name that identifies them as domain master browsers for thatworkgroup by default (i\&.e\&. there is no way to prevent a Windows NT PDC from attempting to do this)\&. This means that if this parameter is set and \fBnmbd\fR claims the special name for a workgroup before a Windows NT PDC is able to do so then cross subnet browsing will behave strangely and may fail\&.
1209
1210 If domain logons = yes, then the default behavior is to enable thedomain master parameter\&. If domain logons is not enabled (the default setting), then neither will domain master be enabled by default\&.
1211
1212 When domain logons = Yes the default setting for this parameter is Yes, with the result that Samba will be a PDC\&. If domain master = No, Samba will function as a BDC\&. In general, this parameter should be set to 'No' only on a BDC\&.
1213
1214 Default: \fB\fIdomain master\fR = auto \fR 
1215
1216 .TP
1217 dont descend (S)
1218 There are certain directories on some systems (e\&.g\&., the \fI/proc\fR tree under Linux) that are either not of interest to clients or are infinitely deep (recursive)\&. This parameter allows you to specify a comma\-delimited list of directories that the server should always show as empty\&.
1219
1220 Note that Samba can be very fussy about the exact format of the "dont descend" entries\&. For example you may need \fI \&./proc\fR instead of just \fI/proc\fR\&. Experimentation is the best policy :\-)
1221
1222 Default: \fB\fIdont descend\fR = \fR 
1223
1224 Example: \fB\fIdont descend\fR = /proc,/dev \fR 
1225
1226 .TP
1227 dos charset (G)
1228 DOS SMB clients assume the server has the same charset as they do\&. This option specifies which charset Samba should talk to DOS clients\&.
1229
1230 The default depends on which charsets you have installed\&. Samba tries to use charset 850 but falls back to ASCII in case it is not available\&. Run \fBtestparm\fR(1) to check the default on your system\&.
1231
1232 \fBNo default\fR
1233
1234 .TP
1235 dos filemode (S)
1236 The default behavior in Samba is to provide UNIX\-like behavior where only the owner of a file/directory is able to change the permissions on it\&. However, this behavior is often confusing to DOS/Windows users\&. Enabling this parameter allows a user who has write access to the file (by whatever means) to modify the permissions on it\&. Note that a user belonging to the group owning the file will not be allowed to change permissions if the group is only granted read access\&. Ownership of the file/directory is not changed, only the permissions are modified\&.
1237
1238 Default: \fB\fIdos filemode\fR = no \fR 
1239
1240 .TP
1241 dos filetime resolution (S)
1242 Under the DOS and Windows FAT filesystem, the finest granularity on time resolution is two seconds\&. Setting this parameter for a share causes Samba to round the reported time down to the nearest two second boundary when a query call that requires one second resolution is made to \fBsmbd\fR(8)\&.
1243
1244 This option is mainly used as a compatibility option for Visual C++ when used against Samba shares\&. If oplocks are enabled on a share, Visual C++ uses two different time reading calls to check if a file has changed since it was last read\&. One of these calls uses a one\-second granularity, the other uses a two second granularity\&. As the two second call rounds any odd second down, then if the file has a timestamp of an odd number of seconds then the two timestamps will not match and Visual C++ will keep reporting the file has changed\&. Setting this option causes the two timestamps to match, and Visual C++ is happy\&.
1245
1246 Default: \fB\fIdos filetime resolution\fR = no \fR 
1247
1248 .TP
1249 dos filetimes (S)
1250 Under DOS and Windows, if a user can write to a file they can change the timestamp on it\&. Under POSIX semantics, only the owner of the file or root may change the timestamp\&. By default, Samba runs with POSIX semantics and refuses to change the timestamp on a file if the user \fBsmbd\fR is acting on behalf of is not the file owner\&. Setting this option to \fB yes\fR allows DOS semantics and \fBsmbd\fR(8) will change the file timestamp as DOS requires\&. Due to changes in Microsoft Office 2000 and beyond, the default for this parameter has been changed from "no" to "yes" in Samba 3\&.0\&.14 and above\&. Microsoft Excel will display dialog box warnings about the file being changed by another user if this parameter is not set to "yes" and files are being shared between users\&.
1251
1252 Default: \fB\fIdos filetimes\fR = yes \fR 
1253
1254 .TP
1255 ea support (S)
1256 This boolean parameter controls whether \fBsmbd\fR(8) will allow clients to attempt to store OS/2 style Extended attributes on a share\&. In order to enable this parameter the underlying filesystem exported by the share must support extended attributes (such as provided on XFS and EXT3 on Linux, with the correct kernel patches)\&. On Linux the filesystem must have been mounted with the mount option user_xattr in order for extended attributes to work, also extended attributes must be compiled into the Linux kernel\&.
1257
1258 Default: \fB\fIea support\fR = no \fR 
1259
1260 .TP
1261 enable asu support (G)
1262 Hosts running the "Advanced Server for Unix (ASU)" product require some special accomodations such as creating a builting [ADMIN$] share that only supports IPC connections\&. The has been the default behavior in smbd for many years\&. However, certain Microsoft applications such as the Print Migrator tool require that the remote server support an [ADMIN$} file share\&. Disabling this parameter allows for creating an [ADMIN$] file share in smb\&.conf\&.
1263
1264 Default: \fB\fIenable asu support\fR = yes \fR 
1265
1266 .TP
1267 enable privileges (G)
1268 This parameter controls whether or not smbd will honor privileges assigned to specific SIDs via either \fBnet rpc rights\fR or one of the Windows user and group manager tools\&. This parameter is disabled by default to prevent members of the Domain Admins group from being able to assign privileges to users or groups which can then result in certain smbd operations running as root that would normally run under the context of the connected user\&.
1269
1270 An example of how privileges can be used is to assign the right to join clients to a Samba controlled domain without providing root access to the server via smbd\&.
1271
1272 Please read the extended description provided in the Samba documentation before enabling this option\&.
1273
1274 Default: \fB\fIenable privileges\fR = no \fR 
1275
1276 .TP
1277 enable rid algorithm (G)
1278 This option is used to control whether or not smbd in Samba 3\&.0 should fallback to the algorithm used by Samba 2\&.2 to generate user and group RIDs\&. The longterm development goal is to remove the algorithmic mappings of RIDs altogether, but this has proved to be difficult\&. This parameter is mainly provided so that developers can turn the algorithm on and off and see what breaks\&. This parameter should not be disabled by non\-developers because certain features in Samba will fail to work without it\&.
1279
1280 Default: \fB\fIenable rid algorithm\fR = yes \fR 
1281
1282 .TP
1283 encrypt passwords (G)
1284 This boolean controls whether encrypted passwords will be negotiated with the client\&. Note that Windows NT 4\&.0 SP3 and above and also Windows 98 will by default expect encrypted passwords unless a registry entry is changed\&. To use encrypted passwords in Samba see the chapter "User Database" in the Samba HOWTO Collection\&.
1285
1286 MS Windows clients that expect Microsoft encrypted passwords and that do not have plain text password support enabled will be able to connect only to a Samba server that has encypted password support enabled and for which the user accounts have a valid encrypted password\&. Refer to the smbpasswd command man page for information regarding the creation of encrypted passwords for user accounts\&.
1287
1288 The use of plain text passwords is NOT advised as support for this feature is no longer maintained in Microsoft Windows products\&. If you want to use plain text passwords you must set this parameter to no\&.
1289
1290 In order for encrypted passwords to work correctly \fBsmbd\fR(8) must either have access to a local \fBsmbpasswd\fR(5) file (see the \fBsmbpasswd\fR(8) program for information on how to set up and maintain this file), or set the security = [server|domain|ads] parameter which causes \fBsmbd\fR to authenticate against another server\&.
1291
1292 Default: \fB\fIencrypt passwords\fR = yes \fR 
1293
1294 .TP
1295 enhanced browsing (G)
1296 This option enables a couple of enhancements to cross\-subnet browse propagation that have been added in Samba but which are not standard in Microsoft implementations\&.
1297
1298 The first enhancement to browse propagation consists of a regular wildcard query to a Samba WINS server for all Domain Master Browsers, followed by a browse synchronization with each of the returned DMBs\&. The second enhancement consists of a regular randomised browse synchronization with all currently known DMBs\&.
1299
1300 You may wish to disable this option if you have a problem with empty workgroups not disappearing from browse lists\&. Due to the restrictions of the browse protocols these enhancements can cause a empty workgroup to stay around forever which can be annoying\&.
1301
1302 In general you should leave this option enabled as it makes cross\-subnet browse propagation much more reliable\&.
1303
1304 Default: \fB\fIenhanced browsing\fR = yes \fR 
1305
1306 .TP
1307 enumports command (G)
1308 The concept of a "port" is fairly foreign to UNIX hosts\&. Under Windows NT/2000 print servers, a port is associated with a port monitor and generally takes the form of a local port (i\&.e\&. LPT1:, COM1:, FILE:) or a remote port (i\&.e\&. LPD Port Monitor, etc\&.\&.\&.)\&. By default, Samba has only one port defined\-\-\fB"Samba Printer Port"\fR\&. Under Windows NT/2000, all printers must have a valid port name\&. If you wish to have a list of ports displayed (\fBsmbd \fR does not use a port name for anything) other than the default \fB"Samba Printer Port"\fR, you can define \fIenumports command\fR to point to a program which should generate a list of ports, one per line, to standard output\&. This listing will then be used in response to the level 1 and 2 EnumPorts() RPC\&.
1309
1310 Default: \fB\fIenumports command\fR = \fR 
1311
1312 Example: \fB\fIenumports command\fR = /usr/bin/listports \fR 
1313
1314 .TP
1315 eventlog list (G)
1316 This option defines a list of log names that Samba will report to the Microsoft EventViewer utility\&. The listed eventlogs will be associated with tdb file on disk in the \fI$(libdir)/eventlog\fR\&.
1317
1318 The administrator must use an external process to parse the normal Unix logs such as \fI/var/log/messages\fR and write then entries to the eventlog tdb files\&. Refer to the eventlogadm(8) utility for how to write eventlog entries\&.
1319
1320 Default: \fB\fIeventlog list\fR = \fR 
1321
1322 Example: \fB\fIeventlog list\fR = Security Application Syslog Apache \fR 
1323
1324 .TP
1325 fake directory create times (S)
1326 NTFS and Windows VFAT file systems keep a create time for all files and directories\&. This is not the same as the ctime \- status change time \- that Unix keeps, so Samba by default reports the earliest of the various times Unix does keep\&. Setting this parameter for a share causes Samba to always report midnight 1\-1\-1980 as the create time for directories\&.
1327
1328 This option is mainly used as a compatibility option for Visual C++ when used against Samba shares\&. Visual C++ generated makefiles have the object directory as a dependency for each object file, and a make rule to create the directory\&. Also, when NMAKE compares timestamps it uses the creation time when examining a directory\&. Thus the object directory will be created if it does not exist, but once it does exist it will always have an earlier timestamp than the object files it contains\&.
1329
1330 However, Unix time semantics mean that the create time reported by Samba will be updated whenever a file is created or or deleted in the directory\&. NMAKE finds all object files in the object directory\&. The timestamp of the last one built is then compared to the timestamp of the object directory\&. If the directory's timestamp if newer, then all object files will be rebuilt\&. Enabling this option ensures directories always predate their contents and an NMAKE build will proceed as expected\&.
1331
1332 Default: \fB\fIfake directory create times\fR = no \fR 
1333
1334 .TP
1335 fake oplocks (S)
1336 Oplocks are the way that SMB clients get permission from a server to locally cache file operations\&. If a server grants an oplock (opportunistic lock) then the client is free to assume that it is the only one accessing the file and it will aggressively cache file data\&. With some oplock types the client may even cache file open/close operations\&. This can give enormous performance benefits\&.
1337
1338 When you set \fBfake oplocks = yes\fR, \fBsmbd\fR(8) will always grant oplock requests no matter how many clients are using the file\&.
1339
1340 It is generally much better to use the real oplocks support rather than this parameter\&.
1341
1342 If you enable this option on all read\-only shares or shares that you know will only be accessed from one client at a time such as physically read\-only media like CDROMs, you will see a big performance improvement on many operations\&. If you enable this option on shares where multiple clients may be accessing the files read\-write at the same time you can get data corruption\&. Use this option carefully!
1343
1344 Default: \fB\fIfake oplocks\fR = no \fR 
1345
1346 .TP
1347 follow symlinks (S)
1348 This parameter allows the Samba administrator to stop \fBsmbd\fR(8)from following symbolic links in a particular share\&. Setting this parameter to \fBno\fR prevents any file or directory that is a symbolic link from being followed (the user will get an error)\&. This option is very useful to stop users from adding a symbolic link to \fI/etc/passwd\fR in their home directory for instance\&. However it will slow filename lookups down slightly\&.
1349
1350 This option is enabled (i\&.e\&. \fBsmbd\fR will follow symbolic links) by default\&.
1351
1352 Default: \fB\fIfollow symlinks\fR = yes \fR 
1353
1354 .TP
1355 force create mode (S)
1356 This parameter specifies a set of UNIX mode bit permissions that will \fBalways\fR be set on a file created by Samba\&. This is done by bitwise 'OR'ing these bits onto the mode bits of a file that is being created or having its permissions changed\&. The default for this parameter is (in octal) 000\&. The modes in this parameter are bitwise 'OR'ed onto the file mode after the mask set in the \fIcreate mask\fR parameter is applied\&.
1357
1358 The example below would force all created files to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'\&.
1359
1360 Default: \fB\fIforce create mode\fR = 000 \fR 
1361
1362 Example: \fB\fIforce create mode\fR = 0755 \fR 
1363
1364 .TP
1365 force directory mode (S)
1366 This parameter specifies a set of UNIX mode bit permissions that will \fBalways\fR be set on a directory created by Samba\&. This is done by bitwise 'OR'ing these bits onto the mode bits of a directory that is being created\&. The default for this parameter is (in octal) 0000 which will not add any extra permission bits to a created directory\&. This operation is done after the mode mask in the parameter \fIdirectory mask\fR is applied\&.
1367
1368 The example below would force all created directories to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'\&.
1369
1370 Default: \fB\fIforce directory mode\fR = 000 \fR 
1371
1372 Example: \fB\fIforce directory mode\fR = 0755 \fR 
1373
1374 .TP
1375 force directory security mode (S)
1376 This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog box\&.
1377
1378 This parameter is applied as a mask (OR'ed with) to the changed permission bits, thus forcing any bits in this mask that the user may have modified to be on\&. Make sure not to mix up this parameter with directory security mask, which works in a similar manner to this one, but uses a logical AND instead of an OR\&.
1379
1380 Essentially, this mask may be treated as a set of bits that, when modifying security on a directory, to will enable (1) any flags that are off (0) but which the mask has set to on (1)\&.
1381
1382 If not set explicitly this parameter is 0000, which allows a user to modify all the user/group/world permissions on a directory without restrictions\&.
1383
1384
1385 .RS
1386 .Sh "Note"
1387 Users who can access the Samba server through other means can easily bypass this restriction, so it is primarily useful for standalone "appliance" systems\&. Administrators of most normal systems will probably want to leave it set as 0000\&.
1388
1389 .RE
1390 Default: \fB\fIforce directory security mode\fR = 0 \fR 
1391
1392 Example: \fB\fIforce directory security mode\fR = 700 \fR 
1393
1394 .TP
1395 group
1396 This parameter is a synonym for force group\&.
1397
1398 .TP
1399 force group (S)
1400 This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service\&. This is useful for sharing files by ensuring that all access to files on service will use the named group for their permissions checking\&. Thus, by assigning permissions for this group to the files and directories within this service the Samba administrator can restrict or allow sharing of these files\&.
1401
1402 In Samba 2\&.0\&.5 and above this parameter has extended functionality in the following way\&. If the group name listed here has a '+' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group\&. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group\&. This gives a finer granularity of ownership assignment\&. For example, the setting \fIforce group = +sys\fR means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share\&. All other users will retain their ordinary primary group\&.
1403
1404 If the force user parameter is also set the group specified in \fIforce group\fR will override the primary group set in \fIforce user\fR\&.
1405
1406 Default: \fB\fIforce group\fR = \fR 
1407
1408 Example: \fB\fIforce group\fR = agroup \fR 
1409
1410 .TP
1411 force printername (S)
1412 When printing from Windows NT (or later), each printer in \fIsmb\&.conf\fR has two associated names which can be used by the client\&. The first is the sharename (or shortname) defined in smb\&.conf\&. This is the only printername available for use by Windows 9x clients\&. The second name associated with a printer can be seen when browsing to the "Printers" (or "Printers and Faxes") folder on the Samba server\&. This is referred to simply as the printername (not to be confused with the \fIprinter name\fR option)\&.
1413
1414 When assigning a new driver to a printer on a remote Windows compatible print server such as Samba, the Windows client will rename the printer to match the driver name just uploaded\&. This can result in confusion for users when multiple printers are bound to the same driver\&. To prevent Samba from allowing the printer's printername to differ from the sharename defined in smb\&.conf, set \fIforce printername = yes\fR\&.
1415
1416 Be aware that enabling this parameter may affect migrating printers from a Windows server to Samba since Windows has no way to force the sharename and printername to match\&.
1417
1418 It is recommended that this parameter's value not be changed once the printer is in use by clients as this could cause a user not be able to delete printer connections from their local Printers folder\&.
1419
1420 Default: \fB\fIforce printername\fR = no \fR 
1421
1422 .TP
1423 force security mode (S)
1424 This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a file using the native NT security dialog box\&.
1425
1426 This parameter is applied as a mask (OR'ed with) to the changed permission bits, thus forcing any bits in this mask that the user may have modified to be on\&. Make sure not to mix up this parameter with security mask, which works similar like this one but uses logical AND instead of OR\&.
1427
1428 Essentially, one bits in this mask may be treated as a set of bits that, when modifying security on a file, the user has always set to be on\&.
1429
1430 If not set explicitly this parameter is set to 0, and allows a user to modify all the user/group/world permissions on a file, with no restrictions\&.
1431
1432 \fB Note\fR that users who can access the Samba server through other means can easily bypass this restriction, so it is primarily useful for standalone "appliance" systems\&. Administrators of most normal systems will probably want to leave this set to 0000\&.
1433
1434 Default: \fB\fIforce security mode\fR = 0 \fR 
1435
1436 Example: \fB\fIforce security mode\fR = 700 \fR 
1437
1438 .TP
1439 force unknown acl user (S)
1440 If this parameter is set, a Windows NT ACL that contains an unknown SID (security descriptor, or representation of a user or group id) as the owner or group owner of the file will be silently mapped into the current UNIX uid or gid of the currently connected user\&.
1441
1442 This is designed to allow Windows NT clients to copy files and folders containing ACLs that were created locally on the client machine and contain users local to that machine only (no domain users) to be copied to a Samba server (usually with XCOPY /O) and have the unknown userid and groupid of the file owner map to the current connected user\&. This can only be fixed correctly when winbindd allows arbitrary mapping from any Windows NT SID to a UNIX uid or gid\&.
1443
1444 Try using this parameter when XCOPY /O gives an ACCESS_DENIED error\&.
1445
1446 Default: \fB\fIforce unknown acl user\fR = no \fR 
1447
1448 .TP
1449 force user (S)
1450 This specifies a UNIX user name that will be assigned as the default user for all users connecting to this service\&. This is useful for sharing files\&. You should also use it carefully as using it incorrectly can cause security problems\&.
1451
1452 This user name only gets used once a connection is established\&. Thus clients still need to connect as a valid user and supply a valid password\&. Once connected, all file operations will be performed as the "forced user", no matter what username the client connected as\&. This can be very useful\&.
1453
1454 In Samba 2\&.0\&.5 and above this parameter also causes the primary group of the forced user to be used as the primary group for all file activity\&. Prior to 2\&.0\&.5 the primary group was left as the primary group of the connecting user (this was a bug)\&.
1455
1456 Default: \fB\fIforce user\fR = \fR 
1457
1458 Example: \fB\fIforce user\fR = auser \fR 
1459
1460 .TP
1461 fstype (S)
1462 This parameter allows the administrator to configure the string that specifies the type of filesystem a share is using that is reported by \fBsmbd\fR(8) when a client queries the filesystem type for a share\&. The default type is \fBNTFS\fR for compatibility with Windows NT but this can be changed to other strings such as \fBSamba\fR or \fBFAT\fR if required\&.
1463
1464 Default: \fB\fIfstype\fR = NTFS \fR 
1465
1466 Example: \fB\fIfstype\fR = Samba \fR 
1467
1468 .TP
1469 get quota command (G)
1470 The \fBget quota command\fR should only be used whenever there is no operating system API available from the OS that samba can use\&.
1471
1472 This option is only available with \fB\&./configure \-\-with\-sys\-quotas\fR\&. Or on linux when \fB\&./configure \-\-with\-quotas\fR was used and a working quota api was found in the system\&.
1473
1474 This parameter should specify the path to a script that queries the quota information for the specified user/group for the partition that the specified directory is on\&.
1475
1476 Such a script should take 3 arguments:
1477
1478
1479 .RS
1480 .TP 3
1481 \(bu
1482 directory
1483 .TP
1484 \(bu
1485 type of query
1486 .TP
1487 \(bu
1488 uid of user or gid of group
1489 .LP
1490 .RE
1491 .IP
1492 The type of query can be one of :
1493
1494
1495 .RS
1496 .TP 3
1497 \(bu
1498 1 \- user quotas
1499 .TP
1500 \(bu
1501 2 \- user default quotas (uid = \-1)
1502 .TP
1503 \(bu
1504 3 \- group quotas
1505 .TP
1506 \(bu
1507 4 \- group default quotas (gid = \-1)
1508 .LP
1509 .RE
1510 .IP
1511 This script should print one line as output with spaces between the arguments\&. The arguments are:
1512
1513
1514 .RS
1515 .TP 3
1516 \(bu
1517 Arg 1 \- quota flags (0 = no quotas, 1 = quotas enabled, 2 = quotas enabled and enforced)
1518 .TP
1519 \(bu
1520 Arg 2 \- number of currently used blocks
1521 .TP
1522 \(bu
1523 Arg 3 \- the softlimit number of blocks
1524 .TP
1525 \(bu
1526 Arg 4 \- the hardlimit number of blocks
1527 .TP
1528 \(bu
1529 Arg 5 \- currently used number of inodes
1530 .TP
1531 \(bu
1532 Arg 6 \- the softlimit number of inodes
1533 .TP
1534 \(bu
1535 Arg 7 \- the hardlimit number of inodes
1536 .TP
1537 \(bu
1538 Arg 8(optional) \- the number of bytes in a block(default is 1024)
1539 .LP
1540 .RE
1541 .IP
1542 Default: \fB\fIget quota command\fR = \fR 
1543
1544 Example: \fB\fIget quota command\fR = /usr/local/sbin/query_quota \fR 
1545
1546 .TP
1547 getwd cache (G)
1548 This is a tuning option\&. When this is enabled a caching algorithm will be used to reduce the time taken for getwd() calls\&. This can have a significant impact on performance, especially when the wide smbconfoptions parameter is set to \fBno\fR\&.
1549
1550 Default: \fB\fIgetwd cache\fR = yes \fR 
1551
1552 .TP
1553 guest account (G)
1554 This is a username which will be used for access to services which are specified as guest ok (see below)\&. Whatever privileges this user has will be available to any client connecting to the guest service\&. This user must exist in the password file, but does not require a valid login\&. The user account "ftp" is often a good choice for this parameter\&.
1555
1556 On some systems the default guest account "nobody" may not be able to print\&. Use another account in this case\&. You should test this by trying to log in as your guest user (perhaps by using the \fBsu \-\fR command) and trying to print using the system print command such as \fBlpr(1)\fR or \fB lp(1)\fR\&.
1557
1558 This parameter does not accept % macros, because many parts of the system require this value to be constant for correct operation\&.
1559
1560 Default: \fB\fIguest account\fR = nobody # default can be changed at compile\-time \fR 
1561
1562 Example: \fB\fIguest account\fR = ftp \fR 
1563
1564 .TP
1565 public
1566 This parameter is a synonym for guest ok\&.
1567
1568 .TP
1569 guest ok (S)
1570 If this parameter is \fByes\fR for a service, then no password is required to connect to the service\&. Privileges will be those of the guest account\&.
1571
1572 This paramater nullifies the benifits of setting restrict anonymous = 2
1573
1574 See the section below on security for more information about this option\&.
1575
1576 Default: \fB\fIguest ok\fR = no \fR 
1577
1578 .TP
1579 only guest
1580 This parameter is a synonym for guest only\&.
1581
1582 .TP
1583 guest only (S)
1584 If this parameter is \fByes\fR for a service, then only guest connections to the service are permitted\&. This parameter will have no effect if guest ok is not set for the service\&.
1585
1586 See the section below on security for more information about this option\&.
1587
1588 Default: \fB\fIguest only\fR = no \fR 
1589
1590 .TP
1591 hide dot files (S)
1592 This is a boolean parameter that controls whether files starting with a dot appear as hidden files\&.
1593
1594 Default: \fB\fIhide dot files\fR = yes \fR 
1595
1596 .TP
1597 hide files (S)
1598 This is a list of files or directories that are not visible but are accessible\&. The DOS 'hidden' attribute is applied to any files or directories that match\&.
1599
1600 Each entry in the list must be separated by a '/', which allows spaces to be included in the entry\&. '*' and '?' can be used to specify multiple files or directories as in DOS wildcards\&.
1601
1602 Each entry must be a Unix path, not a DOS path and must not include the Unix directory separator '/'\&.
1603
1604 Note that the case sensitivity option is applicable in hiding files\&.
1605
1606 Setting this parameter will affect the performance of Samba, as it will be forced to check all files and directories for a match as they are scanned\&.
1607
1608 The example shown above is based on files that the Macintosh SMB client (DAVE) available from Thursby creates for internal use, and also still hides all files beginning with a dot\&.
1609
1610 An example of us of this parameter is: 
1611 .nf
1612
1613 hide files = /\&.*/DesktopFolderDB/TrashFor%m/resource\&.frk/
1614 .fi
1615  
1616
1617 Default: \fB\fIhide files\fR = # no file are hidden \fR 
1618
1619 .TP
1620 hide special files (S)
1621 This parameter prevents clients from seeing special files such as sockets, devices and fifo's in directory listings\&.
1622
1623 Default: \fB\fIhide special files\fR = no \fR 
1624
1625 .TP
1626 hide unreadable (S)
1627 This parameter prevents clients from seeing the existance of files that cannot be read\&. Defaults to off\&.
1628
1629 Default: \fB\fIhide unreadable\fR = no \fR 
1630
1631 .TP
1632 hide unwriteable files (S)
1633 This parameter prevents clients from seeing the existance of files that cannot be written to\&. Defaults to off\&. Note that unwriteable directories are shown as usual\&.
1634
1635 Default: \fB\fIhide unwriteable files\fR = no \fR 
1636
1637 .TP
1638 homedir map (G)
1639 If nis homedir is \fByes\fR, and \fBsmbd\fR(8) is also acting as a Win95/98 \fIlogon server\fR then this parameter specifies the NIS (or YP) map from which the server for the user's home directory should be extracted\&. At present, only the Sun auto\&.home map format is understood\&. The form of the map is: 
1640 .nf
1641
1642 \fBusername server:/some/file/system\fR
1643 .fi
1644  and the program will extract the servername from before the first ':'\&. There should probably be a better parsing system that copes with different map formats and also Amd (another automounter) maps\&.
1645
1646
1647 .RS
1648 .Sh "Note"
1649 A working NIS client is required on the system for this option to work\&.
1650
1651 .RE
1652 Default: \fB\fIhomedir map\fR = \fR 
1653
1654 Example: \fB\fIhomedir map\fR = amd\&.homedir \fR 
1655
1656 .TP
1657 host msdfs (G)
1658 If set to \fByes\fR, Samba will act as a Dfs server, and allow Dfs\-aware clients to browse Dfs trees hosted on the server\&.
1659
1660 See also the msdfs root share level parameter\&. For more information on setting up a Dfs tree on Samba, refer to the MSFDS chapter in the book Samba3\-HOWTO\&.
1661
1662 Default: \fB\fIhost msdfs\fR = no \fR 
1663
1664 .TP
1665 hostname lookups (G)
1666 Specifies whether samba should use (expensive) hostname lookups or use the ip addresses instead\&. An example place where hostname lookups are currently used is when checking the \fBhosts deny\fR and \fBhosts allow\fR\&.
1667
1668 Default: \fB\fIhostname lookups\fR = no \fR 
1669
1670 Example: \fB\fIhostname lookups\fR = yes \fR 
1671
1672 .TP
1673 allow hosts
1674 This parameter is a synonym for hosts allow\&.
1675
1676 .TP
1677 hosts allow (S)
1678 A synonym for this parameter is allow hosts\&.
1679
1680 This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service\&.
1681
1682 If specified in the [global] section then it will apply to all services, regardless of whether the individual service has a different setting\&.
1683
1684 You can specify the hosts by name or IP number\&. For example, you could restrict access to only the hosts on a Class C subnet with something like \fBallow hosts = 150\&.203\&.5\&.\fR\&. The full syntax of the list is described in the man page \fIhosts_access(5)\fR\&. Note that this man page may not be present on your system, so a brief description will be given here also\&.
1685
1686 Note that the localhost address 127\&.0\&.0\&.1 will always be allowed access unless specifically denied by a hosts deny option\&.
1687
1688 You can also specify hosts by network/netmask pairs and by netgroup names if your system supports netgroups\&. The \fBEXCEPT\fR keyword can also be used to limit a wildcard list\&. The following examples may provide some help:
1689
1690 Example 1: allow all IPs in 150\&.203\&.*\&.*; except one
1691
1692 \fBhosts allow = 150\&.203\&. EXCEPT 150\&.203\&.6\&.66\fR
1693
1694 Example 2: allow hosts that match the given network/netmask
1695
1696 \fBhosts allow = 150\&.203\&.15\&.0/255\&.255\&.255\&.0\fR
1697
1698 Example 3: allow a couple of hosts
1699
1700 \fBhosts allow = lapland, arvidsjaur\fR
1701
1702 Example 4: allow only hosts in NIS netgroup "foonet", but deny access from one particular host
1703
1704 \fBhosts allow = @foonet\fR
1705
1706 \fBhosts deny = pirate\fR
1707
1708
1709 .RS
1710 .Sh "Note"
1711 Note that access still requires suitable user\-level passwords\&.
1712
1713 .RE
1714 See \fBtestparm\fR(1) for a way of testing your host access to see if it does what you expect\&.
1715
1716 Default: \fB\fIhosts allow\fR = # none (i\&.e\&., all hosts permitted access) \fR 
1717
1718 Example: \fB\fIhosts allow\fR = 150\&.203\&.5\&. myhost\&.mynet\&.edu\&.au \fR 
1719
1720 .TP
1721 deny hosts
1722 This parameter is a synonym for hosts deny\&.
1723
1724 .TP
1725 hosts deny (S)
1726 The opposite of \fIhosts allow\fR \- hosts listed here are \fBNOT\fR permitted access to services unless the specific services have their own lists to override this one\&. Where the lists conflict, the \fIallow\fR list takes precedence\&.
1727
1728 In the event that it is necessary to deny all by default, use the keyword ALL (or the netmask 0\&.0\&.0\&.0/0) and then explicitly specify to the hosts allow = hosts allow parameter those hosts that should be permitted access\&.
1729
1730 Default: \fB\fIhosts deny\fR = # none (i\&.e\&., no hosts specifically excluded) \fR 
1731
1732 Example: \fB\fIhosts deny\fR = 150\&.203\&.4\&. badhost\&.mynet\&.edu\&.au \fR 
1733
1734 .TP
1735 hosts equiv (G)
1736 If this global parameter is a non\-null string, it specifies the name of a file to read for the names of hosts and users who will be allowed access without specifying a password\&.
1737
1738 This is not be confused with hosts allow which is about hosts access to services and is more useful for guest services\&. \fI hosts equiv\fR may be useful for NT clients which will not supply passwords to Samba\&.
1739
1740
1741 .RS
1742 .Sh "Note"
1743 The use of \fIhosts equiv \fR can be a major security hole\&. This is because you are trusting the PC to supply the correct username\&. It is very easy to get a PC to supply a false username\&. I recommend that the \fIhosts equiv\fR option be only used if you really know what you are doing, or perhaps on a home network where you trust your spouse and kids\&. And only if you \fBreally\fR trust them :\-)\&.
1744
1745 .RE
1746 Default: \fB\fIhosts equiv\fR = # no host equivalences \fR 
1747
1748 Example: \fB\fIhosts equiv\fR = hosts equiv = /etc/hosts\&.equiv \fR 
1749
1750 .TP
1751 idmap backend (G)
1752 The purpose of the idmap backend parameter is to allow idmap to NOT use the local idmap tdb file to obtain SID to UID / GID mappings, but instead to obtain them from a common LDAP backend\&. This way all domain members and controllers will have the same UID and GID to SID mappings\&. This avoids the risk of UID / GID inconsistencies across UNIX / Linux systems that are sharing information over protocols other than SMB/CIFS (ie: NFS)\&.
1753
1754 An alternate method of SID to UID / GID mapping can be achieved using the idmap_rid plug\-in\&. This plug\-in uses the account RID to derive the UID and GID by adding the RID to a base value specified\&. This utility requires that the parameter``allow trusted domains = No'' must be specified, as it is not compatible with multiple domain environments\&. The idmap uid and idmap gid ranges must also be specified\&.
1755
1756 Finally, using the idmap_ad module, the UID and GID can directly be retrieved from an Active Directory LDAP Server that supports an RFC2307 compliant LDAP schema\&. idmap_ad supports "Services for Unix" (SFU) version 2\&.x and 3\&.0\&.
1757
1758 Default: \fB\fIidmap backend\fR = \fR 
1759
1760 Example: \fB\fIidmap backend\fR = ldap:ldap://ldapslave\&.example\&.com \fR 
1761
1762 Example: \fB\fIidmap backend\fR = idmap_rid:BUILTIN=1000\-1999,DOMNAME=2000\-100000000 \fR 
1763
1764 Example: \fB\fIidmap backend\fR = idmap_ad \fR 
1765
1766 .TP
1767 winbind gid
1768 This parameter is a synonym for idmap gid\&.
1769
1770 .TP
1771 idmap gid (G)
1772 The idmap gid parameter specifies the range of group ids that are allocated for the purpose of mapping UNX groups to NT group SIDs\&. This range of group ids should have no existing local or NIS groups within it as strange conflicts can occur otherwise\&.
1773
1774 The availability of an idmap gid range is essential for correct operation of all group mapping\&.
1775
1776 Default: \fB\fIidmap gid\fR = \fR 
1777
1778 Example: \fB\fIidmap gid\fR = 10000\-20000 \fR 
1779
1780 .TP
1781 winbind uid
1782 This parameter is a synonym for idmap uid\&.
1783
1784 .TP
1785 idmap uid (G)
1786 The idmap uid parameter specifies the range of user ids that are allocated for use in mapping UNIX users to NT user SIDs\&. This range of ids should have no existing local or NIS users within it as strange conflicts can occur otherwise\&.
1787
1788 Default: \fB\fIidmap uid\fR = \fR 
1789
1790 Example: \fB\fIidmap uid\fR = 10000\-20000 \fR 
1791
1792 .TP
1793 include (G)
1794 This allows you to include one config file inside another\&. The file is included literally, as though typed in place\&.
1795
1796 It takes the standard substitutions, except \fI%u\fR,\fI%P\fR and \fI%S\fR\&.
1797
1798 Default: \fB\fIinclude\fR = \fR 
1799
1800 Example: \fB\fIinclude\fR = /usr/local/samba/lib/admin_smb\&.conf \fR 
1801
1802 .TP
1803 inherit acls (S)
1804 This parameter can be used to ensure that if default acls exist on parent directories, they are always honored when creating a subdirectory\&. The default behavior is to use the mode specified when creating the directory\&. Enabling this option sets the mode to 0777, thus guaranteeing that default directory acls are propagated\&.
1805
1806 Default: \fB\fIinherit acls\fR = no \fR 
1807
1808 .TP
1809 inherit owner (S)
1810 The ownership of new files and directories is normally governed by effective uid of the connected user\&. This option allows the Samba administrator to specify that the ownership for new files and directories should be controlled by the ownership of the parent directory\&.
1811
1812 Common scenarios where this behavior is useful is in implementing drop\-boxes where users can create and edit files but not delete them and to ensure that newly create files in a user's roaming profile directory are actually owner by the user\&.
1813
1814 Default: \fB\fIinherit owner\fR = no \fR 
1815
1816 .TP
1817 inherit permissions (S)
1818 The permissions on new files and directories are normally governed by create mask,directory mask, force create mode and force directory mode but the boolean inherit permissions parameter overrides this\&.
1819
1820 New directories inherit the mode of the parent directory, including bits such as setgid\&.
1821
1822 New files inherit their read/write bits from the parent directory\&. Their execute bits continue to be determined by map archive, map hidden and map system as usual\&.
1823
1824 Note that the setuid bit is \fBnever\fR set via inheritance (the code explicitly prohibits this)\&.
1825
1826 This can be particularly useful on large systems with many users, perhaps several thousand, to allow a single [homes] share to be used flexibly by each user\&.
1827
1828 Default: \fB\fIinherit permissions\fR = no \fR 
1829
1830 .TP
1831 interfaces (G)
1832 This option allows you to override the default network interfaces list that Samba will use for browsing, name registration and other NBT traffic\&. By default Samba will query the kernel for the list of all active interfaces and use any interfaces except 127\&.0\&.0\&.1 that are broadcast capable\&.
1833
1834 The option takes a list of interface strings\&. Each string can be in any of the following forms:
1835
1836
1837 .RS
1838 .TP 3
1839 \(bu
1840 a network interface name (such as eth0)\&. This may include shell\-like wildcards so eth* will match any interface starting with the substring "eth"
1841 .TP
1842 \(bu
1843 an IP address\&. In this case the netmask is determined from the list of interfaces obtained from the kernel
1844 .TP
1845 \(bu
1846 an IP/mask pair\&.
1847 .TP
1848 \(bu
1849 a broadcast/mask pair\&.
1850 .LP
1851 .RE
1852 .IP
1853 The "mask" parameters can either be a bit length (such as 24 for a C class network) or a full netmask in dotted decimal form\&.
1854
1855 The "IP" parameters above can either be a full dotted decimal IP address or a hostname which will be looked up via the OS's normal hostname resolution mechanisms\&.
1856
1857 By default Samba enables all active interfaces that are broadcast capable except the loopback adaptor (IP address 127\&.0\&.0\&.1)\&.
1858
1859 The example below configures three network interfaces corresponding to the eth0 device and IP addresses 192\&.168\&.2\&.10 and 192\&.168\&.3\&.10\&. The netmasks of the latter two interfaces would be set to 255\&.255\&.255\&.0\&.
1860
1861 Default: \fB\fIinterfaces\fR = \fR 
1862
1863 Example: \fB\fIinterfaces\fR = eth0 192\&.168\&.2\&.10/24 192\&.168\&.3\&.10/255\&.255\&.255\&.0 \fR 
1864
1865 .TP
1866 invalid users (S)
1867 This is a list of users that should not be allowed to login to this service\&. This is really a \fBparanoid\fR check to absolutely ensure an improper setting does not breach your security\&.
1868
1869 A name starting with a '@' is interpreted as an NIS netgroup first (if your system supports NIS), and then as a UNIX group if the name was not found in the NIS netgroup database\&.
1870
1871 A name starting with '+' is interpreted only by looking in the UNIX group database\&. A name starting with '&' is interpreted only by looking in the NIS netgroup database (this requires NIS to be working on your system)\&. The characters '+' and '&' may be used at the start of the name in either order so the value \fI+&group\fR means check the UNIX group database, followed by the NIS netgroup database, and the value \fI&+group\fR means check the NIS netgroup database, followed by the UNIX group database (the same as the '@' prefix)\&.
1872
1873 The current servicename is substituted for \fI%S\fR\&. This is useful in the [homes] section\&.
1874
1875 Default: \fB\fIinvalid users\fR = # no invalid users \fR 
1876
1877 Example: \fB\fIinvalid users\fR = root fred admin @wheel \fR 
1878
1879 .TP
1880 iprint server (G)
1881 This parameter is only applicable if printing is set to \fBiprint\fR\&.
1882
1883 If set, this option overrides the ServerName option in the CUPS \fIclient\&.conf\fR\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&.
1884
1885 Default: \fB\fIiprint server\fR = "" \fR 
1886
1887 Example: \fB\fIiprint server\fR = MYCUPSSERVER \fR 
1888
1889 .TP
1890 keepalive (G)
1891 The value of the parameter (an integer) represents the number of seconds between \fIkeepalive\fR packets\&. If this parameter is zero, no keepalive packets will be sent\&. Keepalive packets, if sent, allow the server to tell whether a client is still present and responding\&.
1892
1893 Keepalives should, in general, not be needed if the socket has the SO_KEEPALIVE attribute set on it by default\&. (see socket options)\&. Basically you should only use this option if you strike difficulties\&.
1894
1895 Default: \fB\fIkeepalive\fR = 300 \fR 
1896
1897 Example: \fB\fIkeepalive\fR = 600 \fR 
1898
1899 .TP
1900 kernel change notify (G)
1901 This parameter specifies whether Samba should ask the kernel for change notifications in directories so that SMB clients can refresh whenever the data on the server changes\&.
1902
1903 This parameter is only used when your kernel supports change notification to user programs, using the F_NOTIFY fcntl\&.
1904
1905 Default: \fB\fIkernel change notify\fR = yes \fR 
1906
1907 .TP
1908 kernel oplocks (G)
1909 For UNIXes that support kernel based oplocks (currently only IRIX and the Linux 2\&.4 kernel), this parameter allows the use of them to be turned on or off\&.
1910
1911 Kernel oplocks support allows Samba \fIoplocks \fR to be broken whenever a local UNIX process or NFS operation accesses a file that \fBsmbd\fR(8) has oplocked\&. This allows complete data consistency between SMB/CIFS, NFS and local file access (and is a \fBvery\fR cool feature :\-)\&.
1912
1913 This parameter defaults to \fBon\fR, but is translated to a no\-op on systems that no not have the necessary kernel support\&. You should never need to touch this parameter\&.
1914
1915 Default: \fB\fIkernel oplocks\fR = yes \fR 
1916
1917 .TP
1918 lanman auth (G)
1919 This parameter determines whether or not \fBsmbd\fR(8) will attempt to authenticate users or permit password changes using the LANMAN password hash\&. If disabled, only clients which support NT password hashes (e\&.g\&. Windows NT/2000 clients, smbclient, but not Windows 95/98 or the MS DOS network client) will be able to connect to the Samba host\&.
1920
1921 The LANMAN encrypted response is easily broken, due to it's case\-insensitive nature, and the choice of algorithm\&. Servers without Windows 95/98/ME or MS DOS clients are advised to disable this option\&.
1922
1923 Unlike the \fBencypt passwords\fR option, this parameter cannot alter client behaviour, and the LANMAN response will still be sent over the network\&. See the \fBclient lanman auth\fR to disable this for Samba's clients (such as smbclient)
1924
1925 If this option, and \fBntlm auth\fR are both disabled, then only NTLMv2 logins will be permited\&. Not all clients support NTLMv2, and most will require special configuration to use it\&.
1926
1927 Default: \fB\fIlanman auth\fR = yes \fR 
1928
1929 .TP
1930 large readwrite (G)
1931 This parameter determines whether or not \fBsmbd\fR(8) supports the new 64k streaming read and write varient SMB requests introduced with Windows 2000\&. Note that due to Windows 2000 client redirector bugs this requires Samba to be running on a 64\-bit capable operating system such as IRIX, Solaris or a Linux 2\&.4 kernel\&. Can improve performance by 10% with Windows 2000 clients\&. Defaults to on\&. Not as tested as some other Samba code paths\&.
1932
1933 Default: \fB\fIlarge readwrite\fR = yes \fR 
1934
1935 .TP
1936 ldap admin dn (G)
1937 The ldap admin dn defines the Distinguished Name (DN) name used by Samba to contact the ldap server when retreiving user account information\&. The ldap admin dn is used in conjunction with the admin dn password stored in the \fIprivate/secrets\&.tdb\fR file\&. See the \fBsmbpasswd\fR(8) man page for more information on how to accomplish this\&.
1938
1939 The ldap admin dn requires a fully specified DN\&. The ldap suffix is not appended to the ldap admin dn\&.
1940
1941 \fBNo default\fR
1942
1943 .TP
1944 ldap delete dn (G)
1945 This parameter specifies whether a delete operation in the ldapsam deletes the complete entry or only the attributes specific to Samba\&.
1946
1947 Default: \fB\fIldap delete dn\fR = no \fR 
1948
1949 .TP
1950 ldap group suffix (G)
1951 This parameters specifies the suffix that is used for groups when these are added to the LDAP directory\&. If this parameter is unset, the value of ldap suffix will be used instead\&. The suffix string is pre\-pended to the ldap suffix string so use a partial DN\&.
1952
1953 Default: \fB\fIldap group suffix\fR = \fR 
1954
1955 Example: \fB\fIldap group suffix\fR = ou=Groups \fR 
1956
1957 .TP
1958 ldap idmap suffix (G)
1959 This parameters specifies the suffix that is used when storing idmap mappings\&. If this parameter is unset, the value of ldap suffix will be used instead\&. The suffix string is pre\-pended to the ldap suffix string so use a partial DN\&.
1960
1961 Default: \fB\fIldap idmap suffix\fR = \fR 
1962
1963 Example: \fB\fIldap idmap suffix\fR = ou=Idmap \fR 
1964
1965 .TP
1966 ldap machine suffix (G)
1967 It specifies where machines should be added to the ldap tree\&. If this parameter is unset, the value ofldap suffix will be used instead\&. The suffix string is pre\-pended to theldap suffix string so use a partial DN\&.
1968
1969 Default: \fB\fIldap machine suffix\fR = \fR 
1970
1971 Example: \fB\fIldap machine suffix\fR = ou=Computers \fR 
1972
1973 .TP
1974 ldap passwd sync (G)
1975 This option is used to define whether or not Samba should sync the LDAP password with the NT and LM hashes for normal accounts (NOT for workstation, server or domain trusts) on a password change via SAMBA\&.
1976
1977 The ldap passwd sync can be set to one of three values:
1978
1979
1980 .RS
1981 .TP 3
1982 \(bu
1983 \fIYes\fR = Try to update the LDAP, NT and LM passwords and update the pwdLastSet time\&.
1984 .TP
1985 \(bu
1986 \fINo\fR = Update NT and LM passwords and update the pwdLastSet time\&.
1987 .TP
1988 \(bu
1989 \fIOnly\fR = Only update the LDAP password and let the LDAP server do the rest\&.
1990 .LP
1991 .RE
1992 .IP
1993 Default: \fB\fIldap passwd sync\fR = no \fR 
1994
1995 .TP
1996 ldap port (G)
1997 This parameter is only available if Samba has been configure to include the\fB\-\-with\-ldapsam\fR option at compile time\&.
1998
1999 This option is used to control the tcp port number used to contact theldap server\&. The default is to use the stand LDAPS port 636\&.
2000
2001 Default: \fB\fIldap port\fR = 636 # if ldap ssl = on \fR 
2002
2003 Default: \fB\fIldap port\fR = 389 # if ldap ssl = off \fR 
2004
2005 .TP
2006 ldap replication sleep (G)
2007 When Samba is asked to write to a read\-only LDAP replica, we are redirected to talk to the read\-write master server\&. This server then replicates our changes back to the 'local' server, however the replication might take some seconds, especially over slow links\&. Certain client activities, particularly domain joins, can become confused by the 'success' that does not immediately change the LDAP back\-end's data\&.
2008
2009 This option simply causes Samba to wait a short time, to allow the LDAP server to catch up\&. If you have a particularly high\-latency network, you may wish to time the LDAP replication with a network sniffer, and increase this value accordingly\&. Be aware that no checking is performed that the data has actually replicated\&.
2010
2011 The value is specified in milliseconds, the maximum value is 5000 (5 seconds)\&.
2012
2013 Default: \fB\fIldap replication sleep\fR = 1000 \fR 
2014
2015 .TP
2016 ldapsam:trusted (G)
2017 By default, Samba as a Domain Controller with an LDAP backend needs to use the Unix\-style NSS subsystem to access user and group information\&. Due to the way Unix stores user information in /etc/passwd and /etc/group this inevitably leads to inefficiencies\&. One important question a user needs to know is the list of groups he is member of\&. The plain UNIX model involves a complete enumeration of the file /etc/group and its NSS counterparts in LDAP\&. UNIX has optimized functions to enumerate group membership\&. Sadly, other functions that are used to deal with user and group attributes lack such optimization\&.
2018
2019 o make Samba scale well in large environments, the ldapsam:trusted = yes option assumes that the complete user and group database that is relevant to Samba is stored in LDAP with the standard posixAccount/posixGroup attributes\&. It further assumes that the Samba auxiliary object classes are stored together with the POSIX data in the same LDAP object\&. If these assumptions are met,ldapsam:trusted = yes can be activated and Samba can completely bypass the NSS system to query user information\&. Optimized LDAP queries can greatly speed up domain logon and administration tasks\&. Depending on the size of the LDAP database a factor of 100 or more for common queries is easily achieved\&.
2020
2021 Default: \fB\fIldapsam:trusted\fR = no \fR 
2022
2023 .TP
2024 ldap server (G)
2025 This parameter is only available if Samba has been configure to include the \fB\-\-with\-ldapsam\fR option at compile time\&.
2026
2027 This parameter should contain the FQDN of the ldap directory server which should be queried to locate user account information\&.
2028
2029 Default: \fB\fIldap server\fR = localhost \fR 
2030
2031 .TP
2032 ldap ssl (G)
2033 This option is used to define whether or not Samba should use SSL when connecting to the ldap server This is \fBNOT\fR related to Samba's previous SSL support which was enabled by specifying the\fB\-\-with\-ssl\fR option to the \fIconfigure\fR script\&.
2034
2035 The ldap ssl can be set to one of three values:
2036
2037
2038 .RS
2039 .TP 3
2040 \(bu
2041 \fIOff\fR = Never use SSL when querying the directory\&.
2042 .TP
2043 \(bu
2044 \fIStart_tls\fR = Use the LDAPv3 StartTLS extended operation (RFC2830) for communicating with the directory server\&.
2045 .TP
2046 \(bu
2047 \fIOn\fR = Use SSL on the ldaps port when contacting the \fIldap server\fR\&. Only available when the backwards\-compatiblity \fB\-\-with\-ldapsam\fR option is specified to configure\&. See passdb backend
2048 .LP
2049 .RE
2050 .IP
2051 Default: \fB\fIldap ssl\fR = start_tls \fR 
2052
2053 .TP
2054 ldap suffix (G)
2055 Specifies the base for all ldap suffixes and for storing the sambaDomain object\&.
2056
2057 The ldap suffix will be appended to the values specified for the ldap user suffix,ldap group suffix, ldap machine suffix, and theldap idmap suffix\&. Each of these should be given only a DN relative to theldap suffix\&.
2058
2059 Default: \fB\fIldap suffix\fR = \fR 
2060
2061 Example: \fB\fIldap suffix\fR = dc=samba,dc=org \fR 
2062
2063 .TP
2064 ldap timeout (G)
2065 When Samba connects to an ldap server that servermay be down or unreachable\&. To prevent Samba from hanging whilst waiting for the connection this parameter specifies in seconds how long Samba should wait before failing the connect\&. The default is to only wait fifteen seconds for the ldap server to respond to the connect request\&.
2066
2067 Default: \fB\fIldap timeout\fR = 15 \fR 
2068
2069 .TP
2070 ldap user suffix (G)
2071 This parameter specifies where users are added to the tree\&. If this parameter is unset, the value of ldap suffix will be used instead\&. The suffix string is pre\-pended to the ldap suffix string so use a partial DN\&.
2072
2073 Default: \fB\fIldap user suffix\fR = \fR 
2074
2075 Example: \fB\fIldap user suffix\fR = ou=people \fR 
2076
2077 .TP
2078 level2 oplocks (S)
2079 This parameter controls whether Samba supports level2 (read\-only) oplocks on a share\&.
2080
2081 Level2, or read\-only oplocks allow Windows NT clients that have an oplock on a file to downgrade from a read\-write oplock to a read\-only oplock once a second client opens the file (instead of releasing all oplocks on a second open, as in traditional, exclusive oplocks)\&. This allows all openers of the file that support level2 oplocks to cache the file for read\-ahead only (ie\&. they may not cache writes or lock requests) and increases performance for many accesses of files that are not commonly written (such as application \&.EXE files)\&.
2082
2083 Once one of the clients which have a read\-only oplock writes to the file all clients are notified (no reply is needed or waited for) and told to break their oplocks to "none" and delete any read\-ahead caches\&.
2084
2085 It is recommended that this parameter be turned on to speed access to shared executables\&.
2086
2087 For more discussions on level2 oplocks see the CIFS spec\&.
2088
2089 Currently, if kernel oplocks are supported then level2 oplocks are not granted (even if this parameter is set to\fByes\fR)\&. Note also, the oplocks parameter must be set to \fByes\fR on this share in order for this parameter to have any effect\&.
2090
2091 Default: \fB\fIlevel2 oplocks\fR = yes \fR 
2092
2093 .TP
2094 lm announce (G)
2095 This parameter determines if \fBnmbd\fR(8) will produce Lanman announce broadcasts that are needed by OS/2 clients in order for them to see the Samba server in their browse list\&. This parameter can have three values, \fByes\fR, \fBno\fR, or\fBauto\fR\&. The default is \fBauto\fR\&. If set to \fBno\fR Samba will never produce these broadcasts\&. If set to \fByes\fR Samba will produce Lanman announce broadcasts at a frequency set by the parameterlm interval\&. If set to \fBauto\fR Samba will not send Lanman announce broadcasts by default but will listen for them\&. If it hears such a broadcast on the wire it will then start sending them at a frequency set by the parameterlm interval\&.
2096
2097 Default: \fB\fIlm announce\fR = auto \fR 
2098
2099 Example: \fB\fIlm announce\fR = yes \fR 
2100
2101 .TP
2102 lm interval (G)
2103 If Samba is set to produce Lanman announce broadcasts needed by OS/2 clients (see thelm announce parameter) then this parameter defines the frequency in seconds with which they will be made\&. If this is set to zero then no Lanman announcements will be made despite the setting of the lm announce parameter\&.
2104
2105 Default: \fB\fIlm interval\fR = 60 \fR 
2106
2107 Example: \fB\fIlm interval\fR = 120 \fR 
2108
2109 .TP
2110 load printers (G)
2111 A boolean variable that controls whether all printers in the printcap will be loaded for browsing by default\&. See the printers section for more details\&.
2112
2113 Default: \fB\fIload printers\fR = yes \fR 
2114
2115 .TP
2116 local master (G)
2117 This option allows \fBnmbd\fR(8) to try and become a local master browser on a subnet\&. If set to \fBno\fR then \fB nmbd\fR will not attempt to become a local master browser on a subnet and will also lose in all browsing elections\&. By default this value is set to \fByes\fR\&. Setting this value to\fByes\fR doesn't mean that Samba will \fBbecome\fR the local master browser on a subnet, just that \fBnmbd\fR will \fBparticipate\fR in elections for local master browser\&.
2118
2119 Setting this value to \fBno\fR will cause \fBnmbd\fR  \fBnever\fR to become a local master browser\&.
2120
2121 Default: \fB\fIlocal master\fR = yes \fR 
2122
2123 .TP
2124 lock dir
2125 This parameter is a synonym for lock directory\&.
2126
2127 .TP
2128 lock directory (G)
2129 This option specifies the directory where lock files will be placed\&. The lock files are used to implement themax connections option\&.
2130
2131 Default: \fB\fIlock directory\fR = ${prefix}/var/locks \fR 
2132
2133 Example: \fB\fIlock directory\fR = /var/run/samba/locks \fR 
2134
2135 .TP
2136 locking (S)
2137 This controls whether or not locking will be performed by the server in response to lock requests from the client\&.
2138
2139 If \fBlocking = no\fR, all lock and unlock requests will appear to succeed and all lock queries will report that the file in question is available for locking\&.
2140
2141 If \fBlocking = yes\fR, real locking will be performed by the server\&.
2142
2143 This option \fBmay\fR be useful for read\-only filesystems which \fBmay\fR not need locking (such as CDROM drives), although setting this parameter of \fBno\fR is not really recommended even in this case\&.
2144
2145 Be careful about disabling locking either globally or in a specific service, as lack of locking may result in data corruption\&. You should never need to set this parameter\&.
2146
2147 \fBNo default\fR
2148
2149 .TP
2150 lock spin count (G)
2151 This parameter controls the number of times that smbd should attempt to gain a byte range lock on the behalf of a client request\&. Experiments have shown that Windows 2k servers do not reply with a failure if the lock could not be immediately granted, but try a few more times in case the lock could later be acquired\&. This behavior is used to support PC database formats such as MS Access and FoxPro\&.
2152
2153 Default: \fB\fIlock spin count\fR = 3 \fR 
2154
2155 .TP
2156 lock spin time (G)
2157 The time in microseconds that smbd should pause before attempting to gain a failed lock\&. Seelock spin count for more details\&.
2158
2159 Default: \fB\fIlock spin time\fR = 10 \fR 
2160
2161 .TP
2162 log file (G)
2163 This option allows you to override the name of the Samba log file (also known as the debug file)\&.
2164
2165 This option takes the standard substitutions, allowing you to have separate log files for each user or machine\&.
2166
2167 \fBNo default\fR
2168
2169 Example: \fB\fIlog file\fR = /usr/local/samba/var/log\&.%m \fR 
2170
2171 .TP
2172 debuglevel
2173 This parameter is a synonym for log level\&.
2174
2175 .TP
2176 log level (G)
2177 The value of the parameter (a astring) allows the debug level (logging level) to be specified in the \fIsmb\&.conf\fR file\&. This parameter has been extended since the 2\&.2\&.x series, now it allow to specify the debug level for multiple debug classes\&. This is to give greater flexibility in the configuration of the system\&.
2178
2179 The default will be the log level specified on the command line or level zero if none was specified\&.
2180
2181 \fBNo default\fR
2182
2183 Example: \fB\fIlog level\fR = 3 passdb:5 auth:10 winbind:2 \fR 
2184
2185 .TP
2186 logon drive (G)
2187 This parameter specifies the local path to which the home directory will be connected (see logon home) and is only used by NT Workstations\&.
2188
2189 Note that this option is only useful if Samba is set up as a logon server\&.
2190
2191 Default: \fB\fIlogon drive\fR = z: \fR 
2192
2193 Example: \fB\fIlogon drive\fR = h: \fR 
2194
2195 .TP
2196 logon home (G)
2197 This parameter specifies the home directory location when a Win95/98 or NT Workstation logs into a Samba PDC\&. It allows you to do
2198
2199 C:\\>\fBNET USE H: /HOME\fR 
2200
2201 from a command prompt, for example\&.
2202
2203 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
2204
2205 This parameter can be used with Win9X workstations to ensure that roaming profiles are stored in a subdirectory of the user's home directory\&. This is done in the following way:
2206
2207 \fBlogon home = \\\\%N\\%U\\profile\fR 
2208
2209 This tells Samba to return the above string, with substitutions made when a client requests the info, generally in a NetUserGetInfo request\&. Win9X clients truncate the info to \\\\server\\share when a user does\fBnet use /home\fR but use the whole string when dealing with profiles\&.
2210
2211 Note that in prior versions of Samba, the logon path was returned rather than\fIlogon home\fR\&. This broke \fBnet use /home\fR but allowed profiles outside the home directory\&. The current implementation is correct, and can be used for profiles if you use the above trick\&.
2212
2213 Disable this feature by setting logon home = "" \- using the empty string\&.
2214
2215 This option is only useful if Samba is set up as a logon server\&.
2216
2217 Default: \fB\fIlogon home\fR = \\\\%N\\%U \fR 
2218
2219 Example: \fB\fIlogon home\fR = \\\\remote_smb_server\\%U \fR 
2220
2221 .TP
2222 logon path (G)
2223 This parameter specifies the directory where roaming profiles (Desktop, NTuser\&.dat, etc) are stored\&. Contrary to previous versions of these manual pages, it has nothing to do with Win 9X roaming profiles\&. To find out how to handle roaming profiles for Win 9X system, see thelogon home parameter\&.
2224
2225 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&. It also specifies the directory from which the "Application Data", (\fIdesktop\fR, \fIstart menu\fR, \fInetwork neighborhood\fR, \fIprograms\fR and other folders, and their contents, are loaded and displayed on your Windows NT client\&.
2226
2227 The share and the path must be readable by the user for the preferences and directories to be loaded onto the Windows NT client\&. The share must be writeable when the user logs in for the first time, in order that the Windows NT client can create the NTuser\&.dat and other directories\&. Thereafter, the directories and any of the contents can, if required, be made read\-only\&. It is not advisable that the NTuser\&.dat file be made read\-only \- rename it to NTuser\&.man to achieve the desired effect (a\fBMAN\fRdatory profile)\&.
2228
2229 Windows clients can sometimes maintain a connection to the [homes] share, even though there is no user logged in\&. Therefore, it is vital that the logon path does not include a reference to the homes share (i\&.e\&. setting this parameter to \\\\%N\\homes\\profile_path will cause problems)\&.
2230
2231 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
2232
2233
2234 .RS
2235 .Sh "Warning"
2236 Do not quote the value\&. Setting this as ``\\\\%N\\profile\\%U'' will break profile handling\&. Where the tdbsam or ldapsam passdb backend is used, at the time the user account is created the value configured for this parameter is written to the passdb backend and that value will over\-ride the parameter value present in the smb\&.conf file\&. Any error present in the passdb backend account record must be editted using the appropriate tool (pdbedit on the command\-line, or any other locally provided system tool\&.
2237
2238 .RE
2239 Note that this option is only useful if Samba is set up as a domain controller\&.
2240
2241 Disable the use of roaming profiles by setting the value of this parameter to the empty string\&. For example, logon path = ""\&. Take note that even if the default setting in the smb\&.conf file is the empty string, any value specified in the user account settings in the passdb backend will over\-ride the effect of setting this parameter to null\&. Disabling of all roaming profile use requires that the user account settings must also be blank\&.
2242
2243 An example of use is: 
2244 .nf
2245
2246 logon path = \\\\PROFILESERVER\\PROFILE\\%U
2247 .fi
2248  
2249
2250 Default: \fB\fIlogon path\fR = \\\\%N\\%U\\profile \fR 
2251
2252 .TP
2253 logon script (G)
2254 This parameter specifies the batch file (\fI\&.bat\fR) or NT command file (\fI\&.cmd\fR) to be downloaded and run on a machine when a user successfully logs in\&. The file must contain the DOS style CR/LF line endings\&. Using a DOS\-style editor to create the file is recommended\&.
2255
2256 The script must be a relative path to the \fI[netlogon]\fR service\&. If the [netlogon] service specifies a path of \fI/usr/local/samba/netlogon\fR, and logon script = STARTUP\&.BAT, then the file that will be downloaded is: 
2257 .nf
2258
2259         /usr/local/samba/netlogon/STARTUP\&.BAT
2260 .fi
2261  
2262
2263 The contents of the batch file are entirely your choice\&. A suggested command would be to add \fBNET TIME \\\\SERVER /SET /YES\fR, to force every machine to synchronize clocks with the same time server\&. Another use would be to add \fBNET USE U: \\\\SERVER\\UTILS\fR for commonly used utilities, or 
2264 .nf
2265
2266 \fBNET USE Q: \\\\SERVER\\ISO9001_QA\fR
2267 .fi
2268  for example\&.
2269
2270 Note that it is particularly important not to allow write access to the [netlogon] share, or to grant users write permission on the batch files in a secure environment, as this would allow the batch files to be arbitrarily modified and security to be breached\&.
2271
2272 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
2273
2274 This option is only useful if Samba is set up as a logon server\&.
2275
2276 Default: \fB\fIlogon script\fR = \fR 
2277
2278 Example: \fB\fIlogon script\fR = scripts\\%U\&.bat \fR 
2279
2280 .TP
2281 lppause command (S)
2282 This parameter specifies the command to be executed on the server host in order to stop printing or spooling a specific print job\&.
2283
2284 This command should be a program or script which takes a printer name and job number to pause the print job\&. One way of implementing this is by using job priorities, where jobs having a too low priority won't be sent to the printer\&.
2285
2286 If a \fI%p\fR is given then the printer name is put in its place\&. A \fI%j\fR is replaced with the job number (an integer)\&. On HPUX (see \fIprinting=hpux \fR), if the \fI\-p%p\fR option is added to the lpq command, the job will show up with the correct status, i\&.e\&. if the job priority is lower than the set fence priority it will have the PAUSED status, whereas if the priority is equal or higher it will have the SPOOLED or PRINTING status\&.
2287
2288 Note that it is good practice to include the absolute path in the lppause command as the PATH may not be available to the server\&.
2289
2290 Default: \fB\fIlppause command\fR = # Currently no default value is given to this string, unless the value of the printing parameter is \fBSYSV\fR, in which case the default is : \fBlp \-i %p\-%j \-H hold\fR or if the value of the \fIprinting\fR parameter is \fBSOFTQ\fR, then the default is: \fBqstat \-s \-j%j \-h\fR\&. \fR 
2291
2292 Example: \fB\fIlppause command\fR = /usr/bin/lpalt %p\-%j \-p0 \fR 
2293
2294 .TP
2295 lpq cache time (G)
2296 This controls how long lpq info will be cached for to prevent the \fBlpq\fR command being called too often\&. A separate cache is kept for each variation of the \fB lpq\fR command used by the system, so if you use different\fBlpq\fR commands for different users then they won't share cache information\&.
2297
2298 The cache files are stored in \fI/tmp/lpq\&.xxxx\fR where xxxx is a hash of the \fBlpq\fR command in use\&.
2299
2300 The default is 10 seconds, meaning that the cached results of a previous identical \fBlpq\fR command will be used if the cached data is less than 10 seconds old\&. A large value may be advisable if your \fBlpq\fR command is very slow\&.
2301
2302 A value of 0 will disable caching completely\&.
2303
2304 Default: \fB\fIlpq cache time\fR = 10 \fR 
2305
2306 Example: \fB\fIlpq cache time\fR = 30 \fR 
2307
2308 .TP
2309 lpq command (S)
2310 This parameter specifies the command to be executed on the server host in order to obtain \fBlpq \fR\-style printer status information\&.
2311
2312 This command should be a program or script which takes a printer name as its only parameter and outputs printer status information\&.
2313
2314 Currently nine styles of printer status information are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ\&. This covers most UNIX systems\&. You control which type is expected using the \fIprinting =\fR option\&.
2315
2316 Some clients (notably Windows for Workgroups) may not correctly send the connection number for the printer they are requesting status information about\&. To get around this, the server reports on the first printer service connected to by the client\&. This only happens if the connection number sent is invalid\&.
2317
2318 If a \fI%p\fR is given then the printer name is put in its place\&. Otherwise it is placed at the end of the command\&.
2319
2320 Note that it is good practice to include the absolute path in the \fIlpq command\fR as the \fB$PATH \fR may not be available to the server\&. When compiled with the CUPS libraries, no \fIlpq command\fR is needed because smbd will make a library call to obtain the print queue listing\&.
2321
2322 Default: \fB\fIlpq command\fR = \fR 
2323
2324 Example: \fB\fIlpq command\fR = /usr/bin/lpq \-P%p \fR 
2325
2326 .TP
2327 lpresume command (S)
2328 This parameter specifies the command to be executed on the server host in order to restart or continue printing or spooling a specific print job\&.
2329
2330 This command should be a program or script which takes a printer name and job number to resume the print job\&. See also the lppause command parameter\&.
2331
2332 If a \fI%p\fR is given then the printer name is put in its place\&. A \fI%j\fR is replaced with the job number (an integer)\&.
2333
2334 Note that it is good practice to include the absolute path in the \fIlpresume command\fR as the PATH may not be available to the server\&.
2335
2336 See also the printing parameter\&.
2337
2338 Default: Currently no default value is given to this string, unless the value of the \fIprinting\fR parameter is \fBSYSV\fR, in which case the default is :
2339
2340 \fBlp \-i %p\-%j \-H resume\fR
2341
2342 or if the value of the \fIprinting\fR parameter is \fBSOFTQ\fR, then the default is:
2343
2344 \fBqstat \-s \-j%j \-r\fR
2345
2346 Default: \fB\fIlpresume command\fR = lpresume command = /usr/bin/lpalt %p\-%j \-p2 \fR 
2347
2348 .TP
2349 lprm command (S)
2350 This parameter specifies the command to be executed on the server host in order to delete a print job\&.
2351
2352 This command should be a program or script which takes a printer name and job number, and deletes the print job\&.
2353
2354 If a \fI%p\fR is given then the printer name is put in its place\&. A \fI%j\fR is replaced with the job number (an integer)\&.
2355
2356 Note that it is good practice to include the absolute path in the \fIlprm command\fR as the PATH may not be available to the server\&.
2357
2358 Examples of use are: 
2359 .nf
2360
2361 lprm command = /usr/bin/lprm \-P%p %j
2362
2363 or
2364
2365 lprm command = /usr/bin/cancel %p\-%j
2366 .fi
2367  
2368
2369 Default: \fB\fIlprm command\fR = determined by printing parameter \fR 
2370
2371 .TP
2372 machine password timeout (G)
2373 If a Samba server is a member of a Windows NT Domain (see the security = domain parameter) then periodically a running smbd process will try and change the MACHINE ACCOUNT PASSWORD stored in the TDB called \fIprivate/secrets\&.tdb \fR\&. This parameter specifies how often this password will be changed, in seconds\&. The default is one week (expressed in seconds), the same as a Windows NT Domain member server\&.
2374
2375 See also \fBsmbpasswd\fR(8), and the security = domain parameter\&.
2376
2377 Default: \fB\fImachine password timeout\fR = 604800 \fR 
2378
2379 .TP
2380 magic output (S)
2381 This parameter specifies the name of a file which will contain output created by a magic script (see themagic script parameter below)\&.
2382
2383
2384 .RS
2385 .Sh "Warning"
2386 If two clients use the same \fImagic script \fR in the same directory the output file content is undefined\&.
2387
2388 .RE
2389 Default: \fB\fImagic output\fR = <magic script name>\&.out \fR 
2390
2391 Example: \fB\fImagic output\fR = myfile\&.txt \fR 
2392
2393 .TP
2394 magic script (S)
2395 This parameter specifies the name of a file which, if opened, will be executed by the server when the file is closed\&. This allows a UNIX script to be sent to the Samba host and executed on behalf of the connected user\&.
2396
2397 Scripts executed in this way will be deleted upon completion assuming that the user has the appropriate level of privilege and the file permissions allow the deletion\&.
2398
2399 If the script generates output, output will be sent to the file specified by the magic output parameter (see above)\&.
2400
2401 Note that some shells are unable to interpret scripts containing CR/LF instead of CR as the end\-of\-line marker\&. Magic scripts must be executable\fBas is\fR on the host, which for some hosts and some shells will require filtering at the DOS end\&.
2402
2403 Magic scripts are \fBEXPERIMENTAL\fR and should \fBNOT\fR be relied upon\&.
2404
2405 Default: \fB\fImagic script\fR = \fR 
2406
2407 Example: \fB\fImagic script\fR = user\&.csh \fR 
2408
2409 .TP
2410 mangled map (S)
2411 This is for those who want to directly map UNIX file names which cannot be represented on Windows/DOS\&. The mangling of names is not always what is needed\&. In particular you may have documents with file extensions that differ between DOS and UNIX\&. For example, under UNIX it is common to use \fI\&.html\fR for HTML files, whereas under Windows/DOS \fI\&.htm\fR is more commonly used\&.
2412
2413 So to map \fIhtml\fR to \fIhtm\fR you would use:
2414
2415 mangled map = (*\&.html *\&.htm)\&.
2416
2417 One very useful case is to remove the annoying \fI;1\fR off the ends of filenames on some CDROMs (only visible under some UNIXes)\&. To do this use a map of (*;1 *;)\&.
2418
2419 Default: \fB\fImangled map\fR = # no mangled map \fR 
2420
2421 Example: \fB\fImangled map\fR = (*;1 *;) \fR 
2422
2423 .TP
2424 mangled names (S)
2425 This controls whether non\-DOS names under UNIX should be mapped to DOS\-compatible names ("mangled") and made visible, or whether non\-DOS names should simply be ignored\&.
2426
2427 See the section on name mangling for details on how to control the mangling process\&.
2428
2429 If mangling is used then the mangling algorithm is as follows:
2430
2431
2432 .RS
2433 .TP 3
2434 \(bu
2435 The first (up to) five alphanumeric characters before the rightmost dot of the filename are preserved, forced to upper case, and appear as the first (up to) five characters of the mangled name\&.
2436 .TP
2437 \(bu
2438 A tilde "~" is appended to the first part of the mangled name, followed by a two\-character unique sequence, based on the original root name (i\&.e\&., the original filename minus its final extension)\&. The final extension is included in the hash calculation only if it contains any upper case characters or is longer than three characters\&.
2439
2440 Note that the character to use may be specified using the mangling char option, if you don't like '~'\&.
2441 .TP
2442 \(bu
2443 Files whose UNIX name begins with a dot will be presented as DOS hidden files\&. The mangled name will be created as for other filenames, but with the leading dot removed and "___" as its extension regardless of actual original extension (that's three underscores)\&.
2444 .LP
2445 .RE
2446 .IP
2447 The two\-digit hash value consists of upper case alphanumeric characters\&.
2448
2449 This algorithm can cause name collisions only if files in a directory share the same first five alphanumeric characters\&. The probability of such a clash is 1/1300\&.
2450
2451 The name mangling (if enabled) allows a file to be copied between UNIX directories from Windows/DOS while retaining the long UNIX filename\&. UNIX files can be renamed to a new extension from Windows/DOS and will retain the same basename\&. Mangled names do not change between sessions\&.
2452
2453 Default: \fB\fImangled names\fR = yes \fR 
2454
2455 .TP
2456 mangle prefix (G)
2457 controls the number of prefix characters from the original name used when generating the mangled names\&. A larger value will give a weaker hash and therefore more name collisions\&. The minimum value is 1 and the maximum value is 6\&.
2458
2459 mangle prefix is effective only when mangling method is hash2\&.
2460
2461 Default: \fB\fImangle prefix\fR = 1 \fR 
2462
2463 Example: \fB\fImangle prefix\fR = 4 \fR 
2464
2465 .TP
2466 mangling char (S)
2467 This controls what character is used as the \fBmagic\fR character in name mangling\&. The default is a '~' but this may interfere with some software\&. Use this option to set it to whatever you prefer\&. This is effective only when mangling method is hash\&.
2468
2469 Default: \fB\fImangling char\fR = ~ \fR 
2470
2471 Example: \fB\fImangling char\fR = ^ \fR 
2472
2473 .TP
2474 mangling method (G)
2475 controls the algorithm used for the generating the mangled names\&. Can take two different values, "hash" and "hash2"\&. "hash" is the algorithm that was used used in Samba for many years and was the default in Samba 2\&.2\&.x "hash2" is now the default and is newer and considered a better algorithm (generates less collisions) in the names\&. Many Win32 applications store the mangled names and so changing to algorithms must not be done lightly as these applications may break unless reinstalled\&.
2476
2477 Default: \fB\fImangling method\fR = hash2 \fR 
2478
2479 Example: \fB\fImangling method\fR = hash \fR 
2480
2481 .TP
2482 map acl inherit (S)
2483 This boolean parameter controls whether \fBsmbd\fR(8) will attempt to map the 'inherit' and 'protected' access control entry flags stored in Windows ACLs into an extended attribute called user\&.SAMBA_PAI\&. This parameter only takes effect if Samba is being run on a platform that supports extended attributes (Linux and IRIX so far) and allows the Windows 2000 ACL editor to correctly use inheritance with the Samba POSIX ACL mapping code\&.
2484
2485 Default: \fB\fImap acl inherit\fR = no \fR 
2486
2487 .TP
2488 map archive (S)
2489 This controls whether the DOS archive attribute should be mapped to the UNIX owner execute bit\&. The DOS archive bit is set when a file has been modified since its last backup\&. One motivation for this option it to keep Samba/your PC from making any file it touches from becoming executable under UNIX\&. This can be quite annoying for shared source code, documents, etc\&.\&.\&.
2490
2491 Note that this requires the create mask parameter to be set such that owner execute bit is not masked out (i\&.e\&. it must include 100)\&. See the parametercreate mask for details\&.
2492
2493 Default: \fB\fImap archive\fR = yes \fR 
2494
2495 .TP
2496 map hidden (S)
2497 This controls whether DOS style hidden files should be mapped to the UNIX world execute bit\&.
2498
2499 Note that this requires the create mask to be set such that the world execute bit is not masked out (i\&.e\&. it must include 001)\&. See the parameter create mask for details\&.
2500
2501 \fBNo default\fR
2502
2503 .TP
2504 map read only (S)
2505 This controls how the DOS read only attribute should be mapped from a UNIX filesystem\&.
2506
2507 This parameter can take three different values, which tell \fBsmbd\fR(8) how to display the read only attribute on files, where eitherstore dos attributes is set to \fBNo\fR, or no extended attribute is present\&. If store dos attributes is set to \fByes\fR then this parameter is \fBignored\fR\&. This is a new parameter introduced in Samba version 3\&.0\&.21\&.
2508
2509 The three settings are :
2510
2511
2512 .RS
2513 .TP 3
2514 \(bu
2515 \fBYes\fR \- The read only DOS attribute is mapped to the inverse of the user or owner write bit in the unix permission mode set\&. If the owner write bit is not set, the read only attribute is reported as being set on the file\&.
2516 .TP
2517 \(bu
2518 \fBPermissions\fR \- The read only DOS attribute is mapped to the effective permissions of the connecting user, as evaluated by \fBsmbd\fR(8) by reading the unix permissions and POSIX ACL (if present)\&. If the connecting user does not have permission to modify the file, the read only attribute is reported as being set on the file\&.
2519 .TP
2520 \(bu
2521 \fBNo\fR \- The read only DOS attribute is unaffected by permissions, and can only be set by the store dos attributes method\&. This may be useful for exporting mounted CDs\&.
2522 .LP
2523 .RE
2524 .IP
2525 Default: \fB\fImap read only\fR = yes \fR 
2526
2527 .TP
2528 map system (S)
2529 This controls whether DOS style system files should be mapped to the UNIX group execute bit\&.
2530
2531 Note that this requires the create mask to be set such that the group execute bit is not masked out (i\&.e\&. it must include 010)\&. See the parametercreate mask for details\&.
2532
2533 Default: \fB\fImap system\fR = no \fR 
2534
2535 .TP
2536 map to guest (G)
2537 This parameter is only useful in SECURITY = security modes other than \fIsecurity = share\fR \- i\&.e\&. \fBuser\fR, \fBserver\fR, and \fBdomain\fR\&.
2538
2539 This parameter can take four different values, which tell \fBsmbd\fR(8) what to do with user login requests that don't match a valid UNIX user in some way\&.
2540
2541 The four settings are :
2542
2543
2544 .RS
2545 .TP 3
2546 \(bu
2547 \fBNever\fR \- Means user login requests with an invalid password are rejected\&. This is the default\&.
2548 .TP
2549 \(bu
2550 \fBBad User\fR \- Means user logins with an invalid password are rejected, unless the username does not exist, in which case it is treated as a guest login and mapped into the guest account\&.
2551 .TP
2552 \(bu
2553 \fBBad Password\fR \- Means user logins with an invalid password are treated as a guest login and mapped into the guest account\&. Note that this can cause problems as it means that any user incorrectly typing their password will be silently logged on as "guest" \- and will not know the reason they cannot access files they think they should \- there will have been no message given to them that they got their password wrong\&. Helpdesk services will \fBhate\fR you if you set the \fImap to guest\fR parameter this way :\-)\&.
2554 .TP
2555 \(bu
2556 \fBBad Uid\fR \- Is only applicable when Samba is configured in some type of domain mode security (security = {domain|ads}) and means that user logins which are successfully authenticated but which have no valid Unix user account (and smbd is unable to create one) should be mapped to the defined guest account\&. This was the default behavior of Samba 2\&.x releases\&. Note that if a member server is running winbindd, this option should never be required because the nss_winbind library will export the Windows domain users and groups to the underlying OS via the Name Service Switch interface\&.
2557 .LP
2558 .RE
2559 .IP
2560 Note that this parameter is needed to set up "Guest" share services when using \fIsecurity\fR modes other than share\&. This is because in these modes the name of the resource being requested is \fBnot\fR sent to the server until after the server has successfully authenticated the client so the server cannot make authentication decisions at the correct time (connection to the share) for "Guest" shares\&.
2561
2562 For people familiar with the older Samba releases, this parameter maps to the old compile\-time setting of the \fB GUEST_SESSSETUP\fR value in local\&.h\&.
2563
2564 Default: \fB\fImap to guest\fR = Never \fR 
2565
2566 Example: \fB\fImap to guest\fR = Bad User \fR 
2567
2568 .TP
2569 max connections (S)
2570 This option allows the number of simultaneous connections to a service to be limited\&. If \fImax connections\fR is greater than 0 then connections will be refused if this number of connections to the service are already open\&. A value of zero mean an unlimited number of connections may be made\&.
2571
2572 Record lock files are used to implement this feature\&. The lock files will be stored in the directory specified by the lock directory option\&.
2573
2574 Default: \fB\fImax connections\fR = 0 \fR 
2575
2576 Example: \fB\fImax connections\fR = 10 \fR 
2577
2578 .TP
2579 max disk size (G)
2580 This option allows you to put an upper limit on the apparent size of disks\&. If you set this option to 100 then all shares will appear to be not larger than 100 MB in size\&.
2581
2582 Note that this option does not limit the amount of data you can put on the disk\&. In the above case you could still store much more than 100 MB on the disk, but if a client ever asks for the amount of free disk space or the total disk size then the result will be bounded by the amount specified in \fImax disk size\fR\&.
2583
2584 This option is primarily useful to work around bugs in some pieces of software that can't handle very large disks, particularly disks over 1GB in size\&.
2585
2586 A \fImax disk size\fR of 0 means no limit\&.
2587
2588 Default: \fB\fImax disk size\fR = 0 \fR 
2589
2590 Example: \fB\fImax disk size\fR = 1000 \fR 
2591
2592 .TP
2593 max log size (G)
2594 This option (an integer in kilobytes) specifies the max size the log file should grow to\&. Samba periodically checks the size and if it is exceeded it will rename the file, adding a \fI\&.old\fR extension\&.
2595
2596 A size of 0 means no limit\&.
2597
2598 Default: \fB\fImax log size\fR = 5000 \fR 
2599
2600 Default: \fB\fImax log size\fR = 1000 \fR 
2601
2602 .TP
2603 max mux (G)
2604 This option controls the maximum number of outstanding simultaneous SMB operations that Samba tells the client it will allow\&. You should never need to set this parameter\&.
2605
2606 Default: \fB\fImax mux\fR = 50 \fR 
2607
2608 .TP
2609 max open files (G)
2610 This parameter limits the maximum number of open files that one \fBsmbd\fR(8) file serving process may have open for a client at any one time\&. The default for this parameter is set very high (10,000) as Samba uses only one bit per unopened file\&.
2611
2612 The limit of the number of open files is usually set by the UNIX per\-process file descriptor limit rather than this parameter so you should never need to touch this parameter\&.
2613
2614 Default: \fB\fImax open files\fR = 10000 \fR 
2615
2616 .TP
2617 max print jobs (S)
2618 This parameter limits the maximum number of jobs allowable in a Samba printer queue at any given moment\&. If this number is exceeded, \fBsmbd\fR(8) will remote "Out of Space" to the client\&.
2619
2620 Default: \fB\fImax print jobs\fR = 1000 \fR 
2621
2622 Example: \fB\fImax print jobs\fR = 5000 \fR 
2623
2624 .TP
2625 protocol
2626 This parameter is a synonym for max protocol\&.
2627
2628 .TP
2629 max protocol (G)
2630 The value of the parameter (a string) is the highest protocol level that will be supported by the server\&.
2631
2632 Possible values are :
2633
2634
2635 .RS
2636 .TP 3
2637 \(bu
2638 \fBCORE\fR: Earliest version\&. No concept of user names\&.
2639 .TP
2640 \(bu
2641 \fBCOREPLUS\fR: Slight improvements on CORE for efficiency\&.
2642 .TP
2643 \(bu
2644 \fBLANMAN1\fR: First \fB modern\fR version of the protocol\&. Long filename support\&.
2645 .TP
2646 \(bu
2647 \fBLANMAN2\fR: Updates to Lanman1 protocol\&.
2648 .TP
2649 \(bu
2650 \fBNT1\fR: Current up to date version of the protocol\&. Used by Windows NT\&. Known as CIFS\&.
2651 .LP
2652 .RE
2653 .IP
2654 Normally this option should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropriate protocol\&.
2655
2656 Default: \fB\fImax protocol\fR = NT1 \fR 
2657
2658 Example: \fB\fImax protocol\fR = LANMAN1 \fR 
2659
2660 .TP
2661 max reported print jobs (S)
2662 This parameter limits the maximum number of jobs displayed in a port monitor for Samba printer queue at any given moment\&. If this number is exceeded, the excess jobs will not be shown\&. A value of zero means there is no limit on the number of print jobs reported\&.
2663
2664 Default: \fB\fImax reported print jobs\fR = 0 \fR 
2665
2666 Example: \fB\fImax reported print jobs\fR = 1000 \fR 
2667
2668 .TP
2669 max smbd processes (G)
2670 This parameter limits the maximum number of \fBsmbd\fR(8) processes concurrently running on a system and is intended as a stopgap to prevent degrading service to clients in the event that the server has insufficient resources to handle more than this number of connections\&. Remember that under normal operating conditions, each user will have an \fBsmbd\fR(8) associated with him or her to handle connections to all shares from a given host\&.
2671
2672 Default: \fB\fImax smbd processes\fR = 0 \fR 
2673
2674 Example: \fB\fImax smbd processes\fR = 1000 \fR 
2675
2676 .TP
2677 max stat cache size (G)
2678 This parameter limits the size in memory of any \fIstat cache\fR being used to speed up case insensitive name mappings\&. This parameter is the number of kilobyte (1024) units the stat cache can use\&. The default is zero, which means unlimited\&. You should not need to change this parameter\&.
2679
2680 Default: \fB\fImax stat cache size\fR = 0 \fR 
2681
2682 Example: \fB\fImax stat cache size\fR = 1024 \fR 
2683
2684 .TP
2685 max ttl (G)
2686 This option tells \fBnmbd\fR(8) what the default 'time to live' of NetBIOS names should be (in seconds) when \fBnmbd\fR is requesting a name using either a broadcast packet or from a WINS server\&. You should never need to change this parameter\&. The default is 3 days\&.
2687
2688 Default: \fB\fImax ttl\fR = 259200 \fR 
2689
2690 .TP
2691 max wins ttl (G)
2692 This option tells \fBsmbd\fR(8) when acting as a WINS server (wins support = yes) what the maximum 'time to live' of NetBIOS names that \fBnmbd\fR will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 days (518400 seconds)\&.
2693
2694 Default: \fB\fImax wins ttl\fR = 518400 \fR 
2695
2696 .TP
2697 max xmit (G)
2698 This option controls the maximum packet size that will be negotiated by Samba\&. The default is 65535, which is the maximum\&. In some cases you may find you get better performance with a smaller value\&. A value below 2048 is likely to cause problems\&.
2699
2700 Default: \fB\fImax xmit\fR = 65535 \fR 
2701
2702 Example: \fB\fImax xmit\fR = 8192 \fR 
2703
2704 .TP
2705 message command (G)
2706 This specifies what command to run when the server receives a WinPopup style message\&.
2707
2708 This would normally be a command that would deliver the message somehow\&. How this is to be done is up to your imagination\&.
2709
2710 An example is: 
2711 .nf
2712
2713 \fBmessage command = csh \-c 'xedit %s;rm %s' &\fR
2714 .fi
2715  
2716
2717 This delivers the message using \fBxedit\fR, then removes it afterwards\&. \fBNOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN IMMEDIATELY\fR\&. That's why I have the '&' on the end\&. If it doesn't return immediately then your PCs may freeze when sending messages (they should recover after 30 seconds, hopefully)\&.
2718
2719 All messages are delivered as the global guest user\&. The command takes the standard substitutions, although \fI %u\fR won't work (\fI%U\fR may be better in this case)\&.
2720
2721 Apart from the standard substitutions, some additional ones apply\&. In particular:
2722
2723
2724 .RS
2725 .TP 3
2726 \(bu
2727 \fI%s\fR = the filename containing the message\&.
2728 .TP
2729 \(bu
2730 \fI%t\fR = the destination that the message was sent to (probably the server name)\&.
2731 .TP
2732 \(bu
2733 \fI%f\fR = who the message is from\&.
2734 .LP
2735 .RE
2736 .IP
2737 You could make this command send mail, or whatever else takes your fancy\&. Please let us know of any really interesting ideas you have\&.
2738
2739 Here's a way of sending the messages as mail to root: 
2740 .nf
2741
2742 \fBmessage command = /bin/mail \-s 'message from %f on %m' root < %s; rm %s\fR
2743 .fi
2744  
2745
2746 If you don't have a message command then the message won't be delivered and Samba will tell the sender there was an error\&. Unfortunately WfWg totally ignores the error code and carries on regardless, saying that the message was delivered\&.
2747
2748 If you want to silently delete it then try: 
2749 .nf
2750
2751 \fBmessage command = rm %s\fR
2752 .fi
2753  
2754
2755 Default: \fB\fImessage command\fR = \fR 
2756
2757 Example: \fB\fImessage command\fR = csh \-c 'xedit %s; rm %s' & \fR 
2758
2759 .TP
2760 min print space (S)
2761 This sets the minimum amount of free disk space that must be available before a user will be able to spool a print job\&. It is specified in kilobytes\&. The default is 0, which means a user can always spool a print job\&.
2762
2763 Default: \fB\fImin print space\fR = 0 \fR 
2764
2765 Example: \fB\fImin print space\fR = 2000 \fR 
2766
2767 .TP
2768 min protocol (G)
2769 The value of the parameter (a string) is the lowest SMB protocol dialect than Samba will support\&. Please refer to the max protocol parameter for a list of valid protocol names and a brief description of each\&. You may also wish to refer to the C source code in \fIsource/smbd/negprot\&.c\fR for a listing of known protocol dialects supported by clients\&.
2770
2771 If you are viewing this parameter as a security measure, you should also refer to the lanman auth parameter\&. Otherwise, you should never need to change this parameter\&.
2772
2773 Default: \fB\fImin protocol\fR = CORE \fR 
2774
2775 Example: \fB\fImin protocol\fR = NT1 \fR 
2776
2777 .TP
2778 min wins ttl (G)
2779 This option tells \fBnmbd\fR(8) when acting as a WINS server (wins support = yes) what the minimum 'time to live' of NetBIOS names that \fBnmbd\fR will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 hours (21600 seconds)\&.
2780
2781 Default: \fB\fImin wins ttl\fR = 21600 \fR 
2782
2783 .TP
2784 msdfs proxy (S)
2785 This parameter indicates that the share is a stand\-in for another CIFS share whose location is specified by the value of the parameter\&. When clients attempt to connect to this share, they are redirected to the proxied share using the SMB\-Dfs protocol\&.
2786
2787 Only Dfs roots can act as proxy shares\&. Take a look at themsdfs root and host msdfs options to find out how to set up a Dfs root share\&.
2788
2789 \fBNo default\fR
2790
2791 Example: \fB\fImsdfs proxy\fR = \\otherserver\\someshare \fR 
2792
2793 .TP
2794 msdfs root (S)
2795 If set to \fByes\fR, Samba treats the share as a Dfs root and allows clients to browse the distributed file system tree rooted at the share directory\&. Dfs links are specified in the share directory by symbolic links of the form \fImsdfs:serverA\\\\shareA,serverB\\\\shareB\fR and so on\&. For more information on setting up a Dfs tree on Samba, refer to the MSDFS chapter in the Samba3\-HOWTO book\&.
2796
2797 Default: \fB\fImsdfs root\fR = no \fR 
2798
2799 .TP
2800 name cache timeout (G)
2801 Specifies the number of seconds it takes before entries in samba's hostname resolve cache time out\&. If the timeout is set to 0\&. the caching is disabled\&.
2802
2803 Default: \fB\fIname cache timeout\fR = 660 \fR 
2804
2805 Example: \fB\fIname cache timeout\fR = 0 \fR 
2806
2807 .TP
2808 name resolve order (G)
2809 This option is used by the programs in the Samba suite to determine what naming services to use and in what order to resolve host names to IP addresses\&. Its main purpose to is to control how netbios name resolution is performed\&. The option takes a space separated string of name resolution options\&.
2810
2811 The options are: "lmhosts", "host", "wins" and "bcast"\&. They cause names to be resolved as follows:
2812
2813
2814 .RS
2815 .TP 3
2816 \(bu
2817 \fBlmhosts\fR : Lookup an IP address in the Samba lmhosts file\&. If the line in lmhosts has no name type attached to the NetBIOS name (see the manpage for lmhosts for details) then any name type matches for lookup\&.
2818 .TP
2819 \(bu
2820 \fBhost\fR : Do a standard host name to IP address resolution, using the system\fI/etc/hosts \fR, NIS, or DNS lookups\&. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the \fI/etc/nsswitch\&.conf\fR file\&. Note that this method is used only if the NetBIOS name type being queried is the 0x20 (server) name type or 0x1c (domain controllers)\&. The latter case is only useful for active directory domains and results in a DNS query for the SRV RR entry matching _ldap\&._tcp\&.domain\&.
2821 .TP
2822 \(bu
2823 \fBwins\fR : Query a name with the IP address listed in the WINSSERVER parameter\&. If no WINS server has been specified this method will be ignored\&.
2824 .TP
2825 \(bu
2826 \fBbcast\fR : Do a broadcast on each of the known local interfaces listed in the interfaces parameter\&. This is the least reliable of the name resolution methods as it depends on the target host being on a locally connected subnet\&.
2827 .LP
2828 .RE
2829 .IP
2830 The example below will cause the local lmhosts file to be examined first, followed by a broadcast attempt, followed by a normal system hostname lookup\&.
2831
2832 When Samba is functioning in ADS security mode (\fBsecurity = ads\fR) it is advised to use following settings for \fIname resolve order\fR:
2833
2834 \fBname resolve order = wins bcast\fR
2835
2836 DC lookups will still be done via DNS, but fallbacks to netbios names will not inundate your DNS servers with needless querys for DOMAIN<0x1c> lookups\&.
2837
2838 Default: \fB\fIname resolve order\fR = lmhosts host wins bcast \fR 
2839
2840 Example: \fB\fIname resolve order\fR = lmhosts bcast host \fR 
2841
2842 .TP
2843 netbios aliases (G)
2844 This is a list of NetBIOS names that nmbd will advertise as additional names by which the Samba server is known\&. This allows one machine to appear in browse lists under multiple names\&. If a machine is acting as a browse server or logon server none of these names will be advertised as either browse server or logon servers, only the primary name of the machine will be advertised with these capabilities\&.
2845
2846 Default: \fB\fInetbios aliases\fR = # empty string (no additional names) \fR 
2847
2848 Example: \fB\fInetbios aliases\fR = TEST TEST1 TEST2 \fR 
2849
2850 .TP
2851 netbios name (G)
2852 This sets the NetBIOS name by which a Samba server is known\&. By default it is the same as the first component of the host's DNS name\&. If a machine is a browse server or logon server this name (or the first component of the hosts DNS name) will be the name that these services are advertised under\&.
2853
2854 There is a bug in Samba\-3 that breaks operation of browsing and access to shares if the netbios name is set to the literal name PIPE\&. To avoid this problem, do not name your Samba\-3 server PIPE\&.
2855
2856 Default: \fB\fInetbios name\fR = # machine DNS name \fR 
2857
2858 Example: \fB\fInetbios name\fR = MYNAME \fR 
2859
2860 .TP
2861 netbios scope (G)
2862 This sets the NetBIOS scope that Samba will operate under\&. This should not be set unless every machine on your LAN also sets this value\&.
2863
2864 Default: \fB\fInetbios scope\fR = \fR 
2865
2866 .TP
2867 nis homedir (G)
2868 Get the home share server from a NIS map\&. For UNIX systems that use an automounter, the user's home directory will often be mounted on a workstation on demand from a remote server\&.
2869
2870 When the Samba logon server is not the actual home directory server, but is mounting the home directories via NFS then two network hops would be required to access the users home directory if the logon server told the client to use itself as the SMB server for home directories (one over SMB and one over NFS)\&. This can be very slow\&.
2871
2872 This option allows Samba to return the home share as being on a different server to the logon server and as long as a Samba daemon is running on the home directory server, it will be mounted on the Samba client directly from the directory server\&. When Samba is returning the home share to the client, it will consult the NIS map specified inhomedir map and return the server listed there\&.
2873
2874 Note that for this option to work there must be a working NIS system and the Samba server with this option must also be a logon server\&.
2875
2876 Default: \fB\fInis homedir\fR = no \fR 
2877
2878 .TP
2879 nt acl support (S)
2880 This boolean parameter controls whether \fBsmbd\fR(8) will attempt to map UNIX permissions into Windows NT access control lists\&. This parameter was formally a global parameter in releases prior to 2\&.2\&.2\&.
2881
2882 Default: \fB\fInt acl support\fR = yes \fR 
2883
2884 .TP
2885 ntlm auth (G)
2886 This parameter determines whether or not \fBsmbd\fR(8) will attempt to authenticate users using the NTLM encrypted password response\&. If disabled, either the lanman password hash or an NTLMv2 response will need to be sent by the client\&.
2887
2888 If this option, and \fBlanman auth\fR are both disabled, then only NTLMv2 logins will be permited\&. Not all clients support NTLMv2, and most will require special configuration to us it\&.
2889
2890 Default: \fB\fIntlm auth\fR = yes \fR 
2891
2892 .TP
2893 nt pipe support (G)
2894 This boolean parameter controls whether \fBsmbd\fR(8) will allow Windows NT clients to connect to the NT SMB specific \fBIPC$\fR pipes\&. This is a developer debugging option and can be left alone\&.
2895
2896 Default: \fB\fInt pipe support\fR = yes \fR 
2897
2898 .TP
2899 nt status support (G)
2900 This boolean parameter controls whether \fBsmbd\fR(8) will negotiate NT specific status support with Windows NT/2k/XP clients\&. This is a developer debugging option and should be left alone\&. If this option is set to \fBno\fR then Samba offers exactly the same DOS error codes that versions prior to Samba 2\&.2\&.3 reported\&.
2901
2902 You should not need to ever disable this parameter\&.
2903
2904 Default: \fB\fInt status support\fR = yes \fR 
2905
2906 .TP
2907 null passwords (G)
2908 Allow or disallow client access to accounts that have null passwords\&.
2909
2910 See also \fBsmbpasswd\fR(5)\&.
2911
2912 Default: \fB\fInull passwords\fR = no \fR 
2913
2914 .TP
2915 obey pam restrictions (G)
2916 When Samba 3\&.0 is configured to enable PAM support (i\&.e\&. \-\-with\-pam), this parameter will control whether or not Samba should obey PAM's account and session management directives\&. The default behavior is to use PAM for clear text authentication only and to ignore any account or session management\&. Note that Samba always ignores PAM for authentication in the case of encrypt passwords = yes\&. The reason is that PAM modules cannot support the challenge/response authentication mechanism needed in the presence of SMB password encryption\&.
2917
2918 Default: \fB\fIobey pam restrictions\fR = no \fR 
2919
2920 .TP
2921 only user (S)
2922 This is a boolean option that controls whether connections with usernames not in the \fIuser\fR list will be allowed\&. By default this option is disabled so that a client can supply a username to be used by the server\&. Enabling this parameter will force the server to only use the login names from the \fIuser\fR list and is only really useful in security = share level security\&.
2923
2924 Note that this also means Samba won't try to deduce usernames from the service name\&. This can be annoying for the [homes] section\&. To get around this you could use \fBuser = %S\fR which means your \fIuser\fR list will be just the service name, which for home directories is the name of the user\&.
2925
2926 Default: \fB\fIonly user\fR = no \fR 
2927
2928 .TP
2929 oplock break wait time (G)
2930 This is a tuning parameter added due to bugs in both Windows 9x and WinNT\&. If Samba responds to a client too quickly when that client issues an SMB that can cause an oplock break request, then the network client can fail and not respond to the break request\&. This tuning parameter (which is set in milliseconds) is the amount of time Samba will wait before sending an oplock break request to such (broken) clients\&.
2931
2932
2933 .RS
2934 .Sh "Warning"
2935 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE\&.
2936
2937 .RE
2938 Default: \fB\fIoplock break wait time\fR = 0 \fR 
2939
2940 .TP
2941 oplock contention limit (S)
2942 This is a \fBvery\fR advanced \fBsmbd\fR(8) tuning option to improve the efficiency of the granting of oplocks under multiple client contention for the same file\&.
2943
2944 In brief it specifies a number, which causes \fBsmbd\fR(8)not to grant an oplock even when requested if the approximate number of clients contending for an oplock on the same file goes over this limit\&. This causes \fBsmbd\fR to behave in a similar way to Windows NT\&.
2945
2946
2947 .RS
2948 .Sh "Warning"
2949 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE\&.
2950
2951 .RE
2952 Default: \fB\fIoplock contention limit\fR = 2 \fR 
2953
2954 .TP
2955 oplocks (S)
2956 This boolean option tells \fBsmbd\fR whether to issue oplocks (opportunistic locks) to file open requests on this share\&. The oplock code can dramatically (approx\&. 30% or more) improve the speed of access to files on Samba servers\&. It allows the clients to aggressively cache files locally and you may want to disable this option for unreliable network environments (it is turned on by default in Windows NT Servers)\&. For more information see the file\fISpeed\&.txt\fR in the Samba\fIdocs/\fR directory\&.
2957
2958 Oplocks may be selectively turned off on certain files with a share\&. See the veto oplock files parameter\&. On some systems oplocks are recognized by the underlying operating system\&. This allows data synchronization between all access to oplocked files, whether it be via Samba or NFS or a local UNIX process\&. See thekernel oplocks parameter for details\&.
2959
2960 Default: \fB\fIoplocks\fR = yes \fR 
2961
2962 .TP
2963 os2 driver map (G)
2964 The parameter is used to define the absolute path to a file containing a mapping of Windows NT printer driver names to OS/2 printer driver names\&. The format is:
2965
2966 <nt driver name> = <os2 driver name>\&.<device name>
2967
2968 For example, a valid entry using the HP LaserJet 5 printer driver would appear as \fBHP LaserJet 5L = LASERJET\&.HP LaserJet 5L\fR\&.
2969
2970 The need for the file is due to the printer driver namespace problem described in the chapter on Classical Printing in the Samba3\-HOWTO book\&. For more details on OS/2 clients, please refer to chapter on other clients in the Samba3\-HOWTO book\&.
2971
2972 Default: \fB\fIos2 driver map\fR = \fR 
2973
2974 .TP
2975 os level (G)
2976 This integer value controls what level Samba advertises itself as for browse elections\&. The value of this parameter determines whether \fBnmbd\fR(8) has a chance of becoming a local master browser for the workgroup in the local broadcast area\&.
2977
2978 \fB Note :\fRBy default, Samba will win a local master browsing election over all Microsoft operating systems except a Windows NT 4\&.0/2000 Domain Controller\&. This means that a misconfigured Samba host can effectively isolate a subnet for browsing purposes\&. This parameter is largely auto\-configured in the Samba\-3 release series and it is seldom necessary to manually over\-ride the default setting\&. Please refer to chapter 9 of the Samba\-3 HOWTO document for further information regarding the use of this parameter\&.
2979
2980 Default: \fB\fIos level\fR = 20 \fR 
2981
2982 Example: \fB\fIos level\fR = 65 \fR 
2983
2984 .TP
2985 pam password change (G)
2986 With the addition of better PAM support in Samba 2\&.2, this parameter, it is possible to use PAM's password change control flag for Samba\&. If enabled, then PAM will be used for password changes when requested by an SMB client instead of the program listed in passwd program\&. It should be possible to enable this without changing your passwd chat parameter for most setups\&.
2987
2988 Default: \fB\fIpam password change\fR = no \fR 
2989
2990 .TP
2991 panic action (G)
2992 This is a Samba developer option that allows a system command to be called when either \fBsmbd\fR(8) or \fBsmbd\fR(8)crashes\&. This is usually used to draw attention to the fact that a problem occurred\&.
2993
2994 Default: \fB\fIpanic action\fR = \fR 
2995
2996 Example: \fB\fIpanic action\fR = "/bin/sleep 90000" \fR 
2997
2998 .TP
2999 paranoid server security (G)
3000 Some version of NT 4\&.x allow non\-guest users with a bad passowrd\&. When this option is enabled, samba will not use a broken NT 4\&.x server as password server, but instead complain to the logs and exit\&.
3001
3002 Disabling this option prevents Samba from making this check, which involves deliberatly attempting a bad logon to the remote server\&.
3003
3004 Default: \fB\fIparanoid server security\fR = yes \fR 
3005
3006 .TP
3007 passdb backend (G)
3008 This option allows the administrator to chose which backends to retrieve and store passwords with\&. This allows (for example) both smbpasswd and tdbsam to be used without a recompile\&. Multiple backends can be specified, separated by spaces\&. The backends will be searched in the order they are specified\&. New users are always added to the first backend specified\&.
3009
3010 This parameter is in two parts, the backend's name, and a 'location' string that has meaning only to that particular backed\&. These are separated by a : character\&.
3011
3012 Available backends can include:
3013
3014 .RS
3015 .TP 3
3016 \(bu
3017 \fBsmbpasswd\fR \- The default smbpasswd backend\&. Takes a path to the smbpasswd file as an optional argument\&.
3018 .TP
3019 \(bu
3020 \fBtdbsam\fR \- The TDB based password storage backend\&. Takes a path to the TDB as an optional argument (defaults to passdb\&.tdb in the private dir directory\&.
3021 .TP
3022 \(bu
3023 \fBldapsam\fR \- The LDAP based passdb backend\&. Takes an LDAP URL as an optional argument (defaults to \fBldap://localhost\fR)
3024
3025 LDAP connections should be secured where possible\&. This may be done using either Start\-TLS (see ldap ssl) or by specifying \fIldaps://\fR in the URL argument\&.
3026
3027 Multiple servers may also be specified in double\-quotes, if your LDAP libraries supports the LDAP URL notation\&. (OpenLDAP does)\&.
3028 .TP
3029 \(bu
3030 \fBnisplussam\fR \- The NIS+ based passdb backend\&. Takes name NIS domain as an optional argument\&. Only works with sun NIS+ servers\&.
3031 .TP
3032 \(bu
3033 \fBmysql\fR \- The MySQL based passdb backend\&. Takes an identifier as argument\&. Read the Samba HOWTO Collection for configuration details\&.
3034 .LP
3035 .RE
3036 .IP
3037  
3038
3039
3040         Examples of use are:
3041 .nf
3042
3043 passdb backend = tdbsam:/etc/samba/private/passdb\&.tdb \\
3044     smbpasswd:/etc/samba/smbpasswd
3045
3046 or
3047
3048 passdb backend = ldapsam:ldaps://ldap\&.example\&.com
3049
3050 or
3051
3052 passdb backend = ldapsam:"ldap://ldap\-1\&.example\&.com \\
3053     ldap://ldap\-2\&.example\&.com"
3054
3055 or
3056
3057 passdb backend = mysql:my_plugin_args tdbsam
3058 .fi
3059 Default: \fB\fIpassdb backend\fR = smbpasswd \fR 
3060
3061 .TP
3062 passdb expand explicit (G)
3063 This parameter controls whether Samba substitutes %\-macros in the passdb fields if they are explicitly set\&. We used to expand macros here, but this turned out to be a bug because the Windows client can expand a variable %G_osver% in which %G would have been substituted by the user's primary group\&.
3064
3065 This parameter is set to "yes" by default, but this is about to change in the future\&.
3066
3067 Default: \fB\fIpassdb expand explicit\fR = yes \fR 
3068
3069 .TP
3070 passwd chat (G)
3071 This string controls the \fB"chat"\fR conversation that takes places between \fBsmbd\fR(8) and the local password changing program to change the user's password\&. The string describes a sequence of response\-receive pairs that \fBsmbd\fR(8) uses to determine what to send to the passwd program and what to expect back\&. If the expected output is not received then the password is not changed\&.
3072
3073 This chat sequence is often quite site specific, depending on what local methods are used for password control (such as NIS etc)\&.
3074
3075 Note that this parameter only is only used if the unix password sync parameter is set to \fByes\fR\&. This sequence is then called \fBAS ROOT\fR when the SMB password in the smbpasswd file is being changed, without access to the old password cleartext\&. This means that root must be able to reset the user's password without knowing the text of the previous password\&. In the presence of NIS/YP, this means that the passwd program must be executed on the NIS master\&.
3076
3077 The string can contain the macro \fI%n\fR which is substituted for the new password\&. The chat sequence can also contain the standard macros \\n, \\r, \\t and \\s to give line\-feed, carriage\-return, tab and space\&. The chat sequence string can also contain a '*' which matches any sequence of characters\&. Double quotes can be used to collect strings with spaces in them into a single string\&.
3078
3079 If the send string in any part of the chat sequence is a full stop "\&.", then no string is sent\&. Similarly, if the expect string is a full stop then no string is expected\&.
3080
3081 If the pam password change parameter is set to \fByes\fR, the chat pairs may be matched in any order, and success is determined by the PAM result, not any particular output\&. The \\n macro is ignored for PAM conversions\&.
3082
3083 Default: \fB\fIpasswd chat\fR = *new*password* %n\\n*new*password* %n\\n *changed* \fR 
3084
3085 Example: \fB\fIpasswd chat\fR = "*Enter OLD password*" %o\\n "*Enter NEW password*" %n\\n "*Reenter NEW password*" %n\\n "*Password changed*" \fR 
3086
3087 .TP
3088 passwd chat debug (G)
3089 This boolean specifies if the passwd chat script parameter is run in \fBdebug\fR mode\&. In this mode the strings passed to and received from the passwd chat are printed in the \fBsmbd\fR(8) log with a debug level of 100\&. This is a dangerous option as it will allow plaintext passwords to be seen in the \fBsmbd\fR log\&. It is available to help Samba admins debug their \fIpasswd chat\fR scripts when calling the \fIpasswd program\fR and should be turned off after this has been done\&. This option has no effect if the pam password change paramter is set\&. This parameter is off by default\&.
3090
3091 Default: \fB\fIpasswd chat debug\fR = no \fR 
3092
3093 .TP
3094 passwd chat timeout (G)
3095 This integer specifies the number of seconds smbd will wait for an initial answer from a passwd chat script being run\&. Once the initial answer is received the subsequent answers must be received in one tenth of this time\&. The default it two seconds\&.
3096
3097 Default: \fB\fIpasswd chat timeout\fR = 2 \fR 
3098
3099 .TP
3100 passwd program (G)
3101 The name of a program that can be used to set UNIX user passwords\&. Any occurrences of \fI%u\fR will be replaced with the user name\&. The user name is checked for existence before calling the password changing program\&.
3102
3103 Also note that many passwd programs insist in \fBreasonable \fR passwords, such as a minimum length, or the inclusion of mixed case chars and digits\&. This can pose a problem as some clients (such as Windows for Workgroups) uppercase the password before sending it\&.
3104
3105 \fBNote\fR that if the \fIunix password sync\fR parameter is set to \fByes \fR then this program is called \fBAS ROOT\fR before the SMB password in the smbpasswd file is changed\&. If this UNIX password change fails, then \fBsmbd\fR will fail to change the SMB password also (this is by design)\&.
3106
3107 If the \fIunix password sync\fR parameter is set this parameter \fBMUST USE ABSOLUTE PATHS\fR for \fBALL\fR programs called, and must be examined for security implications\&. Note that by default \fIunix password sync\fR is set to \fBno\fR\&.
3108
3109 Default: \fB\fIpasswd program\fR = \fR 
3110
3111 Example: \fB\fIpasswd program\fR = /bin/passwd %u \fR 
3112
3113 .TP
3114 password level (G)
3115 Some client/server combinations have difficulty with mixed\-case passwords\&. One offending client is Windows for Workgroups, which for some reason forces passwords to upper case when using the LANMAN1 protocol, but leaves them alone when using COREPLUS! Another problem child is the Windows 95/98 family of operating systems\&. These clients upper case clear text passwords even when NT LM 0\&.12 selected by the protocol negotiation request/response\&.
3116
3117 This parameter defines the maximum number of characters that may be upper case in passwords\&.
3118
3119 For example, say the password given was "FRED"\&. If \fI password level\fR is set to 1, the following combinations would be tried if "FRED" failed:
3120
3121 "Fred", "fred", "fRed", "frEd","freD"
3122
3123 If \fIpassword level\fR was set to 2, the following combinations would also be tried:
3124
3125 "FRed", "FrEd", "FreD", "fREd", "fReD", "frED", \&.\&.
3126
3127 And so on\&.
3128
3129 The higher value this parameter is set to the more likely it is that a mixed case password will be matched against a single case password\&. However, you should be aware that use of this parameter reduces security and increases the time taken to process a new connection\&.
3130
3131 A value of zero will cause only two attempts to be made \- the password as is and the password in all\-lower case\&.
3132
3133 This parameter is used only when using plain\-text passwords\&. It is not at all used when encrypted passwords as in use (that is the default since samba\-3\&.0\&.0)\&. Use this only when encrypt passwords = No\&.
3134
3135 Default: \fB\fIpassword level\fR = 0 \fR 
3136
3137 Example: \fB\fIpassword level\fR = 4 \fR 
3138
3139 .TP
3140 password server (G)
3141 By specifying the name of another SMB server or Active Directory domain controller with this option, and using \fBsecurity = [ads|domain|server]\fR it is possible to get Samba to to do all its username/password validation using a specific remote server\&.
3142
3143 This option sets the name or IP address of the password server to use\&. New syntax has been added to support defining the port to use when connecting to the server the case of an ADS realm\&. To define a port other than the default LDAP port of 389, add the port number using a colon after the name or IP address (e\&.g\&. 192\&.168\&.1\&.100:389)\&. If you do not specify a port, Samba will use the standard LDAP port of tcp/389\&. Note that port numbers have no effect on password servers for Windows NT 4\&.0 domains or netbios connections\&.
3144
3145 If parameter is a name, it is looked up using the parameter name resolve order and so may resolved by any method and order described in that parameter\&.
3146
3147 The password server must be a machine capable of using the "LM1\&.2X002" or the "NT LM 0\&.12" protocol, and it must be in user level security mode\&.
3148
3149
3150 .RS
3151 .Sh "Note"
3152 Using a password server means your UNIX box (running Samba) is only as secure as your password server\&. \fBDO NOT CHOOSE A PASSWORD SERVER THAT YOU DON'T COMPLETELY TRUST\fR\&.
3153
3154 .RE
3155 Never point a Samba server at itself for password serving\&. This will cause a loop and could lock up your Samba server!
3156
3157 The name of the password server takes the standard substitutions, but probably the only useful one is \fI%m \fR, which means the Samba server will use the incoming client as the password server\&. If you use this then you better trust your clients, and you had better restrict them with hosts allow!
3158
3159 If the \fIsecurity\fR parameter is set to \fBdomain\fR or \fBads\fR, then the list of machines in this option must be a list of Primary or Backup Domain controllers for the Domain or the character '*', as the Samba server is effectively in that domain, and will use cryptographically authenticated RPC calls to authenticate the user logging on\&. The advantage of using \fB security = domain\fR is that if you list several hosts in the \fIpassword server\fR option then \fBsmbd \fR will try each in turn till it finds one that responds\&. This is useful in case your primary server goes down\&.
3160
3161 If the \fIpassword server\fR option is set to the character '*', then Samba will attempt to auto\-locate the Primary or Backup Domain controllers to authenticate against by doing a query for the name \fBWORKGROUP<1C>\fR and then contacting each server returned in the list of IP addresses from the name resolution source\&.
3162
3163 If the list of servers contains both names/IP's and the '*' character, the list is treated as a list of preferred domain controllers, but an auto lookup of all remaining DC's will be added to the list as well\&. Samba will not attempt to optimize this list by locating the closest DC\&.
3164
3165 If the \fIsecurity\fR parameter is set to \fBserver\fR, then there are different restrictions that \fBsecurity = domain\fR doesn't suffer from:
3166
3167
3168 .RS
3169 .TP 3
3170 \(bu
3171 You may list several password servers in the \fIpassword server\fR parameter, however if an \fBsmbd\fR makes a connection to a password server, and then the password server fails, no more users will be able to be authenticated from this \fBsmbd\fR\&. This is a restriction of the SMB/CIFS protocol when in \fBsecurity = server \fR mode and cannot be fixed in Samba\&.
3172 .TP
3173 \(bu
3174 If you are using a Windows NT server as your password server then you will have to ensure that your users are able to login from the Samba server, as when in \fB security = server\fR mode the network logon will appear to come from there rather than from the users workstation\&.
3175 .LP
3176 .RE
3177 .IP
3178 Default: \fB\fIpassword server\fR = \fR 
3179
3180 Example: \fB\fIpassword server\fR = NT\-PDC, NT\-BDC1, NT\-BDC2, * \fR 
3181
3182 Example: \fB\fIpassword server\fR = windc\&.mydomain\&.com:389 192\&.168\&.1\&.101 * \fR 
3183
3184 Example: \fB\fIpassword server\fR = * \fR 
3185
3186 .TP
3187 directory
3188 This parameter is a synonym for path\&.
3189
3190 .TP
3191 path (S)
3192 This parameter specifies a directory to which the user of the service is to be given access\&. In the case of printable services, this is where print data will spool prior to being submitted to the host for printing\&.
3193
3194 For a printable service offering guest access, the service should be readonly and the path should be world\-writeable and have the sticky bit set\&. This is not mandatory of course, but you probably won't get the results you expect if you do otherwise\&.
3195
3196 Any occurrences of \fI%u\fR in the path will be replaced with the UNIX username that the client is using on this connection\&. Any occurrences of \fI%m\fR will be replaced by the NetBIOS name of the machine they are connecting from\&. These replacements are very useful for setting up pseudo home directories for users\&.
3197
3198 Note that this path will be based on root dir if one was specified\&.
3199
3200 Default: \fB\fIpath\fR = \fR 
3201
3202 Example: \fB\fIpath\fR = /home/fred \fR 
3203
3204 .TP
3205 pid directory (G)
3206 This option specifies the directory where pid files will be placed\&.
3207
3208 Default: \fB\fIpid directory\fR = ${prefix}/var/locks \fR 
3209
3210 Example: \fB\fIpid directory\fR = pid directory = /var/run/ \fR 
3211
3212 .TP
3213 posix locking (S)
3214 The \fBsmbd\fR(8) daemon maintains an database of file locks obtained by SMB clients\&. The default behavior is to map this internal database to POSIX locks\&. This means that file locks obtained by SMB clients are consistent with those seen by POSIX compliant applications accessing the files via a non\-SMB method (e\&.g\&. NFS or local file access)\&. You should never need to disable this parameter\&.
3215
3216 Default: \fB\fIposix locking\fR = yes \fR 
3217
3218 .TP
3219 postexec (S)
3220 This option specifies a command to be run whenever the service is disconnected\&. It takes the usual substitutions\&. The command may be run as the root on some systems\&.
3221
3222 An interesting example may be to unmount server resources:
3223
3224 \fBpostexec = /etc/umount /cdrom\fR
3225
3226 Default: \fB\fIpostexec\fR = \fR 
3227
3228 Example: \fB\fIpostexec\fR = echo \\"%u disconnected from %S from %m (%I)\\" >> /tmp/log \fR 
3229
3230 .TP
3231 exec
3232 This parameter is a synonym for preexec\&.
3233
3234 .TP
3235 preexec (S)
3236 This option specifies a command to be run whenever the service is connected to\&. It takes the usual substitutions\&.
3237
3238 An interesting example is to send the users a welcome message every time they log in\&. Maybe a message of the day? Here is an example:
3239
3240 \fBpreexec = csh \-c 'echo \\"Welcome to %S!\\" | /usr/local/samba/bin/smbclient \-M %m \-I %I' & \fR 
3241
3242 Of course, this could get annoying after a while :\-)
3243
3244 See also preexec close and postexec\&.
3245
3246 Default: \fB\fIpreexec\fR = \fR 
3247
3248 Example: \fB\fIpreexec\fR = echo \\"%u connected to %S from %m (%I)\\" >> /tmp/log \fR 
3249
3250 .TP
3251 preexec close (S)
3252 This boolean option controls whether a non\-zero return code from preexec should close the service being connected to\&.
3253
3254 Default: \fB\fIpreexec close\fR = no \fR 
3255
3256 .TP
3257 prefered master
3258 This parameter is a synonym for preferred master\&.
3259
3260 .TP
3261 preferred master (G)
3262 This boolean parameter controls if \fBnmbd\fR(8) is a preferred master browser for its workgroup\&.
3263
3264 If this is set to \fByes\fR, on startup, \fBnmbd\fR will force an election, and it will have a slight advantage in winning the election\&. It is recommended that this parameter is used in conjunction with domain master = yes, so that\fBnmbd\fR can guarantee becoming a domain master\&.
3265
3266 Use this option with caution, because if there are several hosts (whether Samba servers, Windows 95 or NT) that are preferred master browsers on the same subnet, they will each periodically and continuously attempt to become the local master browser\&. This will result in unnecessary broadcast traffic and reduced browsing capabilities\&.
3267
3268 Default: \fB\fIpreferred master\fR = auto \fR 
3269
3270 .TP
3271 auto services
3272 This parameter is a synonym for preload\&.
3273
3274 .TP
3275 preload (G)
3276 This is a list of services that you want to be automatically added to the browse lists\&. This is most useful for homes and printers services that would otherwise not be visible\&.
3277
3278 Note that if you just want all printers in your printcap file loaded then the load printers option is easier\&.
3279
3280 Default: \fB\fIpreload\fR = \fR 
3281
3282 Example: \fB\fIpreload\fR = fred lp colorlp \fR 
3283
3284 .TP
3285 preload modules (G)
3286 This is a list of paths to modules that should be loaded into smbd before a client connects\&. This improves the speed of smbd when reacting to new connections somewhat\&.
3287
3288 Default: \fB\fIpreload modules\fR = \fR 
3289
3290 Example: \fB\fIpreload modules\fR = /usr/lib/samba/passdb/mysql\&.so \fR 
3291
3292 .TP
3293 preserve case (S)
3294 This controls if new filenames are created with the case that the client passes, or if they are forced to be the default case\&.
3295
3296 See the section on NAME MANGLING for a fuller discussion\&.
3297
3298 Default: \fB\fIpreserve case\fR = yes \fR 
3299
3300 .TP
3301 print ok
3302 This parameter is a synonym for printable\&.
3303
3304 .TP
3305 printable (S)
3306 If this parameter is \fByes\fR, then clients may open, write to and submit spool files on the directory specified for the service\&.
3307
3308 Note that a printable service will ALWAYS allow writing to the service path (user privileges permitting) via the spooling of print data\&. The read only parameter controls only non\-printing access to the resource\&.
3309
3310 Default: \fB\fIprintable\fR = no \fR 
3311
3312 .TP
3313 printcap cache time (G)
3314 This option specifies the number of seconds before the printing subsystem is again asked for the known printers\&. If the value is greater than 60 the initial waiting time is set to 60 seconds to allow an earlier first rescan of the printing subsystem\&.
3315
3316 Setting this parameter to 0 (the default) disables any rescanning for new or removed printers after the initial startup\&.
3317
3318 Default: \fB\fIprintcap cache time\fR = 0 \fR 
3319
3320 Example: \fB\fIprintcap cache time\fR = 600 \fR 
3321
3322 .TP
3323 printcap
3324 This parameter is a synonym for printcap name\&.
3325
3326 .TP
3327 printcap name (S)
3328 This parameter may be used to override the compiled\-in default printcap name used by the server (usually\fI /etc/printcap\fR)\&. See the discussion of the [printers] section above for reasons why you might want to do this\&.
3329
3330 To use the CUPS printing interface set \fBprintcap name = cups \fR\&. This should be supplemented by an addtional setting printing = cups in the [global] section\&. \fBprintcap name = cups\fR will use the "dummy" printcap created by CUPS, as specified in your CUPS configuration file\&.
3331
3332 On System V systems that use \fBlpstat\fR to list available printers you can use \fBprintcap name = lpstat \fR to automatically obtain lists of available printers\&. This is the default for systems that define SYSV at configure time in Samba (this includes most System V based systems)\&. If \fI printcap name\fR is set to \fBlpstat\fR on these systems then Samba will launch \fBlpstat \-v\fR and attempt to parse the output to obtain a printer list\&.
3333
3334 A minimal printcap file would look something like this: 
3335 .nf
3336
3337 print1|My Printer 1
3338 print2|My Printer 2
3339 print3|My Printer 3
3340 print4|My Printer 4
3341 print5|My Printer 5
3342 .fi
3343  where the '|' separates aliases of a printer\&. The fact that the second alias has a space in it gives a hint to Samba that it's a comment\&.
3344
3345
3346 .RS
3347 .Sh "Note"
3348 Under AIX the default printcap name is \fI/etc/qconfig\fR\&. Samba will assume the file is in AIX \fIqconfig\fR format if the string \fIqconfig\fR appears in the printcap filename\&.
3349
3350 .RE
3351 Default: \fB\fIprintcap name\fR = /etc/printcap \fR 
3352
3353 Example: \fB\fIprintcap name\fR = /etc/myprintcap \fR 
3354
3355 .TP
3356 print command (S)
3357 After a print job has finished spooling to a service, this command will be used via a \fBsystem()\fR call to process the spool file\&. Typically the command specified will submit the spool file to the host's printing subsystem, but there is no requirement that this be the case\&. The server will not remove the spool file, so whatever command you specify should remove the spool file when it has been processed, otherwise you will need to manually remove old spool files\&.
3358
3359 The print command is simply a text string\&. It will be used verbatim after macro substitutions have been made:
3360
3361 %s, %f \- the path to the spool file name
3362
3363 %p \- the appropriate printer name
3364
3365 %J \- the job name as transmitted by the client\&.
3366
3367 %c \- The number of printed pages of the spooled job (if known)\&.
3368
3369 %z \- the size of the spooled print job (in bytes)
3370
3371 The print command \fBMUST\fR contain at least one occurrence of \fI%s\fR or \fI%f \fR \- the \fI%p\fR is optional\&. At the time a job is submitted, if no printer name is supplied the \fI%p \fR will be silently removed from the printer command\&.
3372
3373 If specified in the [global] section, the print command given will be used for any printable service that does not have its own print command specified\&.
3374
3375 If there is neither a specified print command for a printable service nor a global print command, spool files will be created but not processed and (most importantly) not removed\&.
3376
3377 Note that printing may fail on some UNIXes from the \fBnobody\fR account\&. If this happens then create an alternative guest account that can print and set the guest account in the [global] section\&.
3378
3379 You can form quite complex print commands by realizing that they are just passed to a shell\&. For example the following will log a print job, print the file, then remove it\&. Note that ';' is the usual separator for command in shell scripts\&.
3380
3381 \fBprint command = echo Printing %s >> /tmp/print\&.log; lpr \-P %p %s; rm %s\fR
3382
3383 You may have to vary this command considerably depending on how you normally print files on your system\&. The default for the parameter varies depending on the setting of the printing parameter\&.
3384
3385 Default: For \fBprinting = BSD, AIX, QNX, LPRNG or PLP :\fR
3386
3387 \fBprint command = lpr \-r \-P%p %s\fR
3388
3389 For \fBprinting = SYSV or HPUX :\fR
3390
3391 \fBprint command = lp \-c \-d%p %s; rm %s\fR
3392
3393 For \fBprinting = SOFTQ :\fR
3394
3395 \fBprint command = lp \-d%p \-s %s; rm %s\fR
3396
3397 For printing = CUPS : If SAMBA is compiled against libcups, then printcap = cups uses the CUPS API to submit jobs, etc\&. Otherwise it maps to the System V commands with the \-oraw option for printing, i\&.e\&. it uses \fBlp \-c \-d%p \-oraw; rm %s\fR\&. With \fBprinting = cups\fR, and if SAMBA is compiled against libcups, any manually set print command will be ignored\&.
3398
3399 \fBNo default\fR
3400
3401 Example: \fB\fIprint command\fR = /usr/local/samba/bin/myprintscript %p %s \fR 
3402
3403 .TP
3404 printer admin (S)
3405 This lists users who can do anything to printers via the remote administration interfaces offered by MS\-RPC (usually using a NT workstation)\&. This parameter can be set per\-share or globally\&. Note: The root user always has admin rights\&. Use caution with use in the global stanza as this can cause side effects\&.
3406
3407 This parameter has been marked deprecated in favor of using the SePrintOperatorPrivilege and individual print security descriptors\&. It will be removed in a future release\&.
3408
3409 Default: \fB\fIprinter admin\fR = \fR 
3410
3411 Example: \fB\fIprinter admin\fR = admin, @staff \fR 
3412
3413 .TP
3414 printer
3415 This parameter is a synonym for printer name\&.
3416
3417 .TP
3418 printer name (S)
3419 This parameter specifies the name of the printer to which print jobs spooled through a printable service will be sent\&.
3420
3421 If specified in the [global] section, the printer name given will be used for any printable service that does not have its own printer name specified\&.
3422
3423 The default value of the printer name may be lp on many systems\&.
3424
3425 Default: \fB\fIprinter name\fR = none \fR 
3426
3427 Example: \fB\fIprinter name\fR = laserwriter \fR 
3428
3429 .TP
3430 printing (S)
3431 This parameters controls how printer status information is interpreted on your system\&. It also affects the default values for the \fIprint command\fR, \fIlpq command\fR, \fIlppause command \fR, \fIlpresume command\fR, and \fIlprm command\fR if specified in the [global] section\&.
3432
3433 Currently nine printing styles are supported\&. They are \fBBSD\fR, \fBAIX\fR, \fBLPRNG\fR, \fBPLP\fR, \fBSYSV\fR, \fBHPUX\fR, \fBQNX\fR, \fBSOFTQ\fR, and \fBCUPS\fR\&.
3434
3435 To see what the defaults are for the other print commands when using the various options use the \fBtestparm\fR(1) program\&.
3436
3437 This option can be set on a per printer basis\&. Please be aware however, that you must place any of the various printing commands (e\&.g\&. print command, lpq command, etc\&.\&.\&.) after defining the value for the \fIprinting\fR option since it will reset the printing commands to default values\&.
3438
3439 See also the discussion in the [printers] section\&.
3440
3441 \fBNo default\fR
3442
3443 .TP
3444 private dir (G)
3445 This parameters defines the directory smbd will use for storing such files as \fIsmbpasswd\fR and \fIsecrets\&.tdb\fR\&.
3446
3447 Default: \fB\fIprivate dir\fR = ${prefix}/private \fR 
3448
3449 .TP
3450 profile acls (S)
3451 This boolean parameter was added to fix the problems that people have been having with storing user profiles on Samba shares from Windows 2000 or Windows XP clients\&. New versions of Windows 2000 or Windows XP service packs do security ACL checking on the owner and ability to write of the profile directory stored on a local workstation when copied from a Samba share\&.
3452
3453 When not in domain mode with winbindd then the security info copied onto the local workstation has no meaning to the logged in user (SID) on that workstation so the profile storing fails\&. Adding this parameter onto a share used for profile storage changes two things about the returned Windows ACL\&. Firstly it changes the owner and group owner of all reported files and directories to be BUILTIN\\\\Administrators, BUILTIN\\\\Users respectively (SIDs S\-1\-5\-32\-544, S\-1\-5\-32\-545)\&. Secondly it adds an ACE entry of "Full Control" to the SID BUILTIN\\\\Users to every returned ACL\&. This will allow any Windows 2000 or XP workstation user to access the profile\&.
3454
3455 Note that if you have multiple users logging on to a workstation then in order to prevent them from being able to access each others profiles you must remove the "Bypass traverse checking" advanced user right\&. This will prevent access to other users profile directories as the top level profile directory (named after the user) is created by the workstation profile code and has an ACL restricting entry to the directory tree to the owning user\&.
3456
3457 Default: \fB\fIprofile acls\fR = no \fR 
3458
3459 .TP
3460 queuepause command (S)
3461 This parameter specifies the command to be executed on the server host in order to pause the printer queue\&.
3462
3463 This command should be a program or script which takes a printer name as its only parameter and stops the printer queue, such that no longer jobs are submitted to the printer\&.
3464
3465 This command is not supported by Windows for Workgroups, but can be issued from the Printers window under Windows 95 and NT\&.
3466
3467 If a \fI%p\fR is given then the printer name is put in its place\&. Otherwise it is placed at the end of the command\&.
3468
3469 Note that it is good practice to include the absolute path in the command as the PATH may not be available to the server\&.
3470
3471 \fBNo default\fR
3472
3473 Example: \fB\fIqueuepause command\fR = disable %p \fR 
3474
3475 .TP
3476 queueresume command (S)
3477 This parameter specifies the command to be executed on the server host in order to resume the printer queue\&. It is the command to undo the behavior that is caused by the previous parameter (queuepause command)\&.
3478
3479 This command should be a program or script which takes a printer name as its only parameter and resumes the printer queue, such that queued jobs are resubmitted to the printer\&.
3480
3481 This command is not supported by Windows for Workgroups, but can be issued from the Printers window under Windows 95 and NT\&.
3482
3483 If a \fI%p\fR is given then the printer name is put in its place\&. Otherwise it is placed at the end of the command\&.
3484
3485 Note that it is good practice to include the absolute path in the command as the PATH may not be available to the server\&.
3486
3487 Default: \fB\fIqueueresume command\fR = \fR 
3488
3489 Example: \fB\fIqueueresume command\fR = enable %p \fR 
3490
3491 .TP
3492 read bmpx (G)
3493 This boolean parameter controls whether \fBsmbd\fR(8) will support the "Read Block Multiplex" SMB\&. This is now rarely used and defaults to \fBno\fR\&. You should never need to set this parameter\&.
3494
3495 Default: \fB\fIread bmpx\fR = no \fR 
3496
3497 .TP
3498 read list (S)
3499 This is a list of users that are given read\-only access to a service\&. If the connecting user is in this list then they will not be given write access, no matter what the read only option is set to\&. The list can include group names using the syntax described in the invalid users parameter\&.
3500
3501 This parameter will not work with the security = share in Samba 3\&.0\&. This is by design\&.
3502
3503 Default: \fB\fIread list\fR = \fR 
3504
3505 Example: \fB\fIread list\fR = mary, @students \fR 
3506
3507 .TP
3508 read only (S)
3509 An inverted synonym is writeable\&.
3510
3511 If this parameter is \fByes\fR, then users of a service may not create or modify files in the service's directory\&.
3512
3513 Note that a printable service (\fBprintable = yes\fR) will \fBALWAYS\fR allow writing to the directory (user privileges permitting), but only via spooling operations\&.
3514
3515 Default: \fB\fIread only\fR = yes \fR 
3516
3517 .TP
3518 read raw (G)
3519 This parameter controls whether or not the server will support the raw read SMB requests when transferring data to clients\&.
3520
3521 If enabled, raw reads allow reads of 65535 bytes in one packet\&. This typically provides a major performance benefit\&.
3522
3523 However, some clients either negotiate the allowable block size incorrectly or are incapable of supporting larger block sizes, and for these clients you may need to disable raw reads\&.
3524
3525 In general this parameter should be viewed as a system tuning tool and left severely alone\&.
3526
3527 Default: \fB\fIread raw\fR = yes \fR 
3528
3529 .TP
3530 realm (G)
3531 This option specifies the kerberos realm to use\&. The realm is used as the ADS equivalent of the NT4 \fBdomain\fR\&. It is usually set to the DNS name of the kerberos server\&.
3532
3533 Default: \fB\fIrealm\fR = \fR 
3534
3535 Example: \fB\fIrealm\fR = mysambabox\&.mycompany\&.com \fR 
3536
3537 .TP
3538 remote announce (G)
3539 This option allows you to setup \fBnmbd\fR(8)to periodically announce itself to arbitrary IP addresses with an arbitrary workgroup name\&.
3540
3541 This is useful if you want your Samba server to appear in a remote workgroup for which the normal browse propagation rules don't work\&. The remote workgroup can be anywhere that you can send IP packets to\&.
3542
3543 For example: 
3544 .nf
3545
3546 \fBremote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\fR
3547 .fi
3548  the above line would cause \fBnmbd\fR to announce itself to the two given IP addresses using the given workgroup names\&. If you leave out the workgroup name then the one given in the workgroup parameter is used instead\&.
3549
3550 The IP addresses you choose would normally be the broadcast addresses of the remote networks, but can also be the IP addresses of known browse masters if your network config is that stable\&.
3551
3552 See the chapter on Network Browsing in the Samba\-HOWTO book\&.
3553
3554 Default: \fB\fIremote announce\fR = \fR 
3555
3556 .TP
3557 remote browse sync (G)
3558 This option allows you to setup \fBnmbd\fR(8) to periodically request synchronization of browse lists with the master browser of a Samba server that is on a remote segment\&. This option will allow you to gain browse lists for multiple workgroups across routed networks\&. This is done in a manner that does not work with any non\-Samba servers\&.
3559
3560 This is useful if you want your Samba server and all local clients to appear in a remote workgroup for which the normal browse propagation rules don't work\&. The remote workgroup can be anywhere that you can send IP packets to\&.
3561
3562 For example: 
3563 .nf
3564
3565 \fIremote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fR
3566 .fi
3567  the above line would cause \fBnmbd\fR to request the master browser on the specified subnets or addresses to synchronize their browse lists with the local server\&.
3568
3569 The IP addresses you choose would normally be the broadcast addresses of the remote networks, but can also be the IP addresses of known browse masters if your network config is that stable\&. If a machine IP address is given Samba makes NO attempt to validate that the remote machine is available, is listening, nor that it is in fact the browse master on its segment\&.
3570
3571 The remote browse sync may be used on networks where there is no WINS server, and may be used on disjoint networks where each network has its own WINS server\&.
3572
3573 Default: \fB\fIremote browse sync\fR = \fR 
3574
3575 .TP
3576 rename user script (G)
3577 This is the full pathname to a script that will be run as root by \fBsmbd\fR(8) under special circumstances described below\&.
3578
3579 When a user with admin authority or SeAddUserPrivilege rights renames a user (e\&.g\&.: from the NT4 User Manager for Domains), this script will be run to rename the POSIX user\&. Two variables, %uold and%unew, will be substituted with the old and new usernames, respectively\&. The script should return 0 upon successful completion, and nonzero otherwise\&.
3580
3581
3582 .RS
3583 .Sh "Note"
3584 The script has all responsibility to rename all the necessary data that is accessible in this posix method\&. This can mean different requirements for different backends\&. The tdbsam and smbpasswd backends will take care of the contents of their respective files, so the script is responsible only for changing the POSIX username, and other data that may required for your circumstances, such as home directory\&. Please also consider whether or not you need to rename the actual home directories themselves\&. The ldapsam backend will not make any changes, because of the potential issues with renaming the LDAP naming attribute\&. In this case the script is responsible for changing the attribute that samba uses (uid) for locating users, as well as any data that needs to change for other applications using the same directory\&.
3585
3586 .RE
3587 Default: \fB\fIrename user script\fR = no \fR 
3588
3589 .TP
3590 reset on zero vc (S)
3591 This boolean option controls whether an incoming session setup should kill other connections coming from the same IP\&. This matches the default Windows 2003 behaviour\&. Setting this parameter to yes becomes necessary when you have a flaky network and windows decides to reconnect while the old connection still has files with share modes open\&. These files become inaccessible over the new connection\&. The client sends a zero VC on the new connection, and Windows 2003 kills all other connections coming from the same IP\&. This way the locked files are accessible again\&. Please be aware that enabling this option will kill connections behind a masquerading router\&.
3592
3593 Default: \fB\fIreset on zero vc\fR = no \fR 
3594
3595 .TP
3596 restrict anonymous (G)
3597 The setting of this parameter determines whether user and group list information is returned for an anonymous connection\&. and mirrors the effects of the 
3598 .nf
3599
3600 HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\
3601            Control\\LSA\\RestrictAnonymous
3602 .fi
3603  registry key in Windows 2000 and Windows NT\&. When set to 0, user and group list information is returned to anyone who asks\&. When set to 1, only an authenticated user can retrive user and group list information\&. For the value 2, supported by Windows 2000/XP and Samba, no anonymous connections are allowed at all\&. This can break third party and Microsoft applications which expect to be allowed to perform operations anonymously\&.
3604
3605 The security advantage of using restrict anonymous = 1 is dubious, as user and group list information can be obtained using other means\&.
3606
3607
3608 .RS
3609 .Sh "Note"
3610 The security advantage of using restrict anonymous = 2 is removed by setting guest ok = yes on any share\&.
3611
3612 .RE
3613 Default: \fB\fIrestrict anonymous\fR = 0 \fR 
3614
3615 .TP
3616 root
3617 This parameter is a synonym for root directory\&.
3618
3619 .TP
3620 root dir
3621 This parameter is a synonym for root directory\&.
3622
3623 .TP
3624 root directory (G)
3625 The server will \fBchroot()\fR (i\&.e\&. Change its root directory) to this directory on startup\&. This is not strictly necessary for secure operation\&. Even without it the server will deny access to files not in one of the service entries\&. It may also check for, and deny access to, soft links to other parts of the filesystem, or attempts to use "\&.\&." in file names to access other directories (depending on the setting of thewide smbconfoptions parameter)\&.
3626
3627 Adding a \fIroot directory\fR entry other than "/" adds an extra level of security, but at a price\&. It absolutely ensures that no access is given to files not in the sub\-tree specified in the \fIroot directory\fR option, \fBincluding\fR some files needed for complete operation of the server\&. To maintain full operability of the server you will need to mirror some system files into the \fIroot directory\fR tree\&. In particular you will need to mirror \fI/etc/passwd\fR (or a subset of it), and any binaries or configuration files needed for printing (if required)\&. The set of files that must be mirrored is operating system dependent\&.
3628
3629 Default: \fB\fIroot directory\fR = / \fR 
3630
3631 Example: \fB\fIroot directory\fR = /homes/smb \fR 
3632
3633 .TP
3634 root postexec (S)
3635 This is the same as the \fIpostexec\fR parameter except that the command is run as root\&. This is useful for unmounting filesystems (such as CDROMs) after a connection is closed\&.
3636
3637 Default: \fB\fIroot postexec\fR = \fR 
3638
3639 .TP
3640 root preexec (S)
3641 This is the same as the \fIpreexec\fR parameter except that the command is run as root\&. This is useful for mounting filesystems (such as CDROMs) when a connection is opened\&.
3642
3643 Default: \fB\fIroot preexec\fR = \fR 
3644
3645 .TP
3646 root preexec close (S)
3647 This is the same as the \fIpreexec close \fR parameter except that the command is run as root\&.
3648
3649 Default: \fB\fIroot preexec close\fR = no \fR 
3650
3651 .TP
3652 security (G)
3653 This option affects how clients respond to Samba and is one of the most important settings in the \fI smb\&.conf\fR file\&.
3654
3655 The option sets the "security mode bit" in replies to protocol negotiations with \fBsmbd\fR(8) to turn share level security on or off\&. Clients decide based on this bit whether (and how) to transfer user and password information to the server\&.
3656
3657 The default is \fBsecurity = user\fR, as this is the most common setting needed when talking to Windows 98 and Windows NT\&.
3658
3659 The alternatives are \fBsecurity = share\fR, \fBsecurity = server\fR or \fBsecurity = domain \fR\&.
3660
3661 In versions of Samba prior to 2\&.0\&.0, the default was \fBsecurity = share\fR mainly because that was the only option at one stage\&.
3662
3663 There is a bug in WfWg that has relevance to this setting\&. When in user or server level security a WfWg client will totally ignore the password you type in the "connect drive" dialog box\&. This makes it very difficult (if not impossible) to connect to a Samba service as anyone except the user that you are logged into WfWg as\&.
3664
3665 If your PCs use usernames that are the same as their usernames on the UNIX machine then you will want to use \fBsecurity = user\fR\&. If you mostly use usernames that don't exist on the UNIX box then use \fBsecurity = share\fR\&.
3666
3667 You should also use \fBsecurity = share\fR if you want to mainly setup shares without a password (guest shares)\&. This is commonly used for a shared printer server\&. It is more difficult to setup guest shares with \fBsecurity = user\fR, see the map to guestparameter for details\&.
3668
3669 It is possible to use \fBsmbd\fR in a \fB hybrid mode\fR where it is offers both user and share level security under different NetBIOS aliases\&.
3670
3671 The different settings will now be explained\&.
3672
3673 \fBSECURITY = SHARE\fR
3674
3675 When clients connect to a share level security server they need not log onto the server with a valid username and password before attempting to connect to a shared resource (although modern clients such as Windows 95/98 and Windows NT will send a logon request with a username but no password when talking to a \fBsecurity = share \fR server)\&. Instead, the clients send authentication information (passwords) on a per\-share basis, at the time they attempt to connect to that share\&.
3676
3677 Note that \fBsmbd\fR  \fBALWAYS\fR uses a valid UNIX user to act on behalf of the client, even in \fBsecurity = share\fR level security\&.
3678
3679 As clients are not required to send a username to the server in share level security, \fBsmbd\fR uses several techniques to determine the correct UNIX user to use on behalf of the client\&.
3680
3681 A list of possible UNIX usernames to match with the given client password is constructed using the following methods :
3682
3683
3684 .RS
3685 .TP 3
3686 \(bu
3687 If the guest only parameter is set, then all the other stages are missed and only the guest account username is checked\&.
3688 .TP
3689 \(bu
3690 Is a username is sent with the share connection request, then this username (after mapping \- see username map), is added as a potential username\&.
3691 .TP
3692 \(bu
3693 If the client did a previous \fBlogon \fR request (the SessionSetup SMB call) then the username sent in this SMB will be added as a potential username\&.
3694 .TP
3695 \(bu
3696 The name of the service the client requested is added as a potential username\&.
3697 .TP
3698 \(bu
3699 The NetBIOS name of the client is added to the list as a potential username\&.
3700 .TP
3701 \(bu
3702 Any users on the user list are added as potential usernames\&.
3703 .LP
3704 .RE
3705 .IP
3706 If the \fIguest only\fR parameter is not set, then this list is then tried with the supplied password\&. The first user for whom the password matches will be used as the UNIX user\&.
3707
3708 If the \fIguest only\fR parameter is set, or no username can be determined then if the share is marked as available to the \fIguest account\fR, then this guest user will be used, otherwise access is denied\&.
3709
3710 Note that it can be \fBvery\fR confusing in share\-level security as to which UNIX username will eventually be used in granting access\&.
3711
3712 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
3713
3714 \fBSECURITY = USER\fR
3715
3716 This is the default security setting in Samba 3\&.0\&. With user\-level security a client must first "log\-on" with a valid username and password (which can be mapped using the username map parameter)\&. Encrypted passwords (see the encrypted passwords parameter) can also be used in this security mode\&. Parameters such as user and guest only if set are then applied and may change the UNIX user to use on this connection, but only after the user has been successfully authenticated\&.
3717
3718 \fBNote\fR that the name of the resource being requested is \fBnot\fR sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don't work in user level security without allowing the server to automatically map unknown users into the guest account\&. See the map to guest parameter for details on doing this\&.
3719
3720 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
3721
3722 \fBSECURITY = DOMAIN\fR
3723
3724 This mode will only work correctly if \fBnet\fR(8) has been used to add this machine into a Windows NT Domain\&. It expects the encrypted passwords parameter to be set to \fByes\fR\&. In this mode Samba will try to validate the username/password by passing it to a Windows NT Primary or Backup Domain Controller, in exactly the same way that a Windows NT Server would do\&.
3725
3726 \fBNote\fR that a valid UNIX user must still exist as well as the account on the Domain Controller to allow Samba to have a valid UNIX account to map file access to\&.
3727
3728 \fBNote\fR that from the client's point of view \fBsecurity = domain\fR is the same as \fBsecurity = user\fR\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&.
3729
3730 \fBNote\fR that the name of the resource being requested is \fBnot\fR sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don't work in user level security without allowing the server to automatically map unknown users into the guest account\&. See the map to guest parameter for details on doing this\&.
3731
3732 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
3733
3734 See also the password server parameter and the encrypted passwords parameter\&.
3735
3736 \fBSECURITY = SERVER\fR
3737
3738 In this mode Samba will try to validate the username/password by passing it to another SMB server, such as an NT box\&. If this fails it will revert to \fBsecurity = user\fR\&. It expects theencrypted passwords parameter to be set to \fByes\fR, unless the remote server does not support them\&. However note that if encrypted passwords have been negotiated then Samba cannot revert back to checking the UNIX password file, it must have a valid \fIsmbpasswd\fR file to check users against\&. See the chapter about the User Database in the Samba HOWTO Collection for details on how to set this up\&.
3739
3740
3741 .RS
3742 .Sh "Note"
3743 This mode of operation has significant pitfalls, due to the fact that is activly initiates a man\-in\-the\-middle attack on the remote SMB server\&. In particular, this mode of operation can cause significant resource consuption on the PDC, as it must maintain an active connection for the duration of the user's session\&. Furthermore, if this connection is lost, there is no way to reestablish it, and futher authenticaions to the Samba server may fail\&. (From a single client, till it disconnects)\&.
3744
3745 .RE
3746
3747 .RS
3748 .Sh "Note"
3749 From the client's point of view \fBsecurity = server\fR is the same as \fBsecurity = user\fR\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&.
3750
3751 .RE
3752 \fBNote\fR that the name of the resource being requested is \fBnot\fR sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don't work in user level security without allowing the server to automatically map unknown users into the guest account\&. See the map to guest parameter for details on doing this\&.
3753
3754 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
3755
3756 See also the password server parameter and theencrypted passwords parameter\&.
3757
3758 \fBSECURITY = ADS\fR
3759
3760 In this mode, Samba will act as a domain member in an ADS realm\&. To operate in this mode, the machine running Samba will need to have Kerberos installed and configured and Samba will need to be joined to the ADS realm using the net utility\&.
3761
3762 Note that this mode does NOT make Samba operate as a Active Directory Domain Controller\&.
3763
3764 Read the chapter about Domain Membership in the HOWTO for details\&.
3765
3766 Default: \fB\fIsecurity\fR = USER \fR 
3767
3768 Example: \fB\fIsecurity\fR = DOMAIN \fR 
3769
3770 .TP
3771 security mask (S)
3772 This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a file using the native NT security dialog box\&.
3773
3774 This parameter is applied as a mask (AND'ed with) to the changed permission bits, thus preventing any bits not in this mask from being modified\&. Make sure not to mix up this parameter with force security mode, which works in a manner similar to this one but uses a logical OR instead of an AND\&.
3775
3776 Essentially, zero bits in this mask may be treated as a set of bits the user is not allowed to change\&.
3777
3778 If not set explicitly this parameter is 0777, allowing a user to modify all the user/group/world permissions on a file\&.
3779
3780 \fB Note\fR that users who can access the Samba server through other means can easily bypass this restriction, so it is primarily useful for standalone "appliance" systems\&. Administrators of most normal systems will probably want to leave it set to \fB0777\fR\&.
3781
3782 Default: \fB\fIsecurity mask\fR = 0777 \fR 
3783
3784 Example: \fB\fIsecurity mask\fR = 0770 \fR 
3785
3786 .TP
3787 server schannel (G)
3788 This controls whether the server offers or even demands the use of the netlogon schannel\&.server schannel = no does not offer the schannel, server schannel = auto offers the schannel but does not enforce it, and server schannel = yes denies access if the client is not able to speak netlogon schannel\&. This is only the case for Windows NT4 before SP4\&.
3789
3790 Please note that with this set to no you will have to apply the WindowsXP\fIWinXP_SignOrSeal\&.reg\fR registry patch found in the docs/registry subdirectory of the Samba distribution tarball\&.
3791
3792 Default: \fB\fIserver schannel\fR = auto \fR 
3793
3794 Example: \fB\fIserver schannel\fR = yes \fR 
3795
3796 .TP
3797 server signing (G)
3798 This controls whether the server offers or requires the client it talks to to use SMB signing\&. Possible values are \fBauto\fR, \fBmandatory\fR and \fBdisabled\fR\&.
3799
3800 When set to auto, SMB signing is offered, but not enforced\&. When set to mandatory, SMB signing is required and if set to disabled, SMB signing is not offered either\&.
3801
3802 Default: \fB\fIserver signing\fR = Disabled \fR 
3803
3804 .TP
3805 server string (G)
3806 This controls what string will show up in the printer comment box in print manager and next to the IPC connection in \fBnet view\fR\&. It can be any string that you wish to show to your users\&.
3807
3808 It also sets what will appear in browse lists next to the machine name\&.
3809
3810 A \fI%v\fR will be replaced with the Samba version number\&.
3811
3812 A \fI%h\fR will be replaced with the hostname\&.
3813
3814 Default: \fB\fIserver string\fR = Samba %v \fR 
3815
3816 Example: \fB\fIserver string\fR = University of GNUs Samba Server \fR 
3817
3818 .TP
3819 set directory (S)
3820 If \fBset directory = no\fR, then users of the service may not use the setdir command to change directory\&.
3821
3822 The \fBsetdir\fR command is only implemented in the Digital Pathworks client\&. See the Pathworks documentation for details\&.
3823
3824 Default: \fB\fIset directory\fR = no \fR 
3825
3826 .TP
3827 set primary group script (G)
3828 Thanks to the Posix subsystem in NT a Windows User has a primary group in addition to the auxiliary groups\&. This script sets the primary group in the unix userdatase when an administrator sets the primary group from the windows user manager or when fetching a SAM with \fBnet rpc vampire\fR\&. \fI%u\fR will be replaced with the user whose primary group is to be set\&.\fI%g\fR will be replaced with the group to set\&.
3829
3830 Default: \fB\fIset primary group script\fR = \fR 
3831
3832 Example: \fB\fIset primary group script\fR = /usr/sbin/usermod \-g '%g' '%u' \fR 
3833
3834 .TP
3835 set quota command (G)
3836 The \fBset quota command\fR should only be used whenever there is no operating system API available from the OS that samba can use\&.
3837
3838 This option is only available if Samba was configured with the argument \fB\-\-with\-sys\-quotas\fR or on linux when \fB\&./configure \-\-with\-quotas\fR was used and a working quota api was found in the system\&. Most packages are configured with these options already\&.
3839
3840 This parameter should specify the path to a script that can set quota for the specified arguments\&.
3841
3842 The specified script should take the following arguments:
3843
3844
3845 .RS
3846 .TP 3
3847 \(bu
3848 1 \- quota type
3849
3850 .RS
3851 .TP 3
3852 \(bu
3853 1 \- user quotas
3854 .TP
3855 \(bu
3856 2 \- user default quotas (uid = \-1)
3857 .TP
3858 \(bu
3859 3 \- group quotas
3860 .TP
3861 \(bu
3862 4 \- group default quotas (gid = \-1)
3863 .LP
3864 .RE
3865 .IP
3866  
3867 .TP
3868 \(bu
3869 2 \- id (uid for user, gid for group, \-1 if N/A)
3870 .TP
3871 \(bu
3872 3 \- quota state (0 = disable, 1 = enable, 2 = enable and enforce)
3873 .TP
3874 \(bu
3875 4 \- block softlimit
3876 .TP
3877 \(bu
3878 5 \- block hardlimit
3879 .TP
3880 \(bu
3881 6 \- inode softlimit
3882 .TP
3883 \(bu
3884 7 \- inode hardlimit
3885 .TP
3886 \(bu
3887 8(optional) \- block size, defaults to 1024
3888 .LP
3889 .RE
3890 .IP
3891 The script should output at least one line of data on success\&. And nothing on failure\&.
3892
3893 Default: \fB\fIset quota command\fR = \fR 
3894
3895 Example: \fB\fIset quota command\fR = /usr/local/sbin/set_quota \fR 
3896
3897 .TP
3898 share modes (S)
3899 This enables or disables the honoring of the \fIshare modes\fR during a file open\&. These modes are used by clients to gain exclusive read or write access to a file\&.
3900
3901 These open modes are not directly supported by UNIX, so they are simulated using shared memory, or lock files if your UNIX doesn't support shared memory (almost all do)\&.
3902
3903 The share modes that are enabled by this option are\fBDENY_DOS\fR, \fBDENY_ALL\fR,\fBDENY_READ\fR, \fBDENY_WRITE\fR,\fBDENY_NONE\fR and \fBDENY_FCB\fR\&.
3904
3905 This option gives full share compatibility and enabled by default\&.
3906
3907 You should \fBNEVER\fR turn this parameter off as many Windows applications will break if you do so\&.
3908
3909 Default: \fB\fIshare modes\fR = yes \fR 
3910
3911 .TP
3912 short preserve case (S)
3913 This boolean parameter controls if new files which conform to 8\&.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be the default case \&. This option can be use with preserve case = yes to permit long filenames to retain their case, while short names are lowered\&.
3914
3915 See the section on NAME MANGLING\&.
3916
3917 Default: \fB\fIshort preserve case\fR = yes \fR 
3918
3919 .TP
3920 show add printer wizard (G)
3921 With the introduction of MS\-RPC based printing support for Windows NT/2000 client in Samba 2\&.2, a "Printers\&.\&.\&." folder will appear on Samba hosts in the share listing\&. Normally this folder will contain an icon for the MS Add Printer Wizard (APW)\&. However, it is possible to disable this feature regardless of the level of privilege of the connected user\&.
3922
3923 Under normal circumstances, the Windows NT/2000 client will open a handle on the printer server with OpenPrinterEx() asking for Administrator privileges\&. If the user does not have administrative access on the print server (i\&.e is not root or a member of the \fIprinter admin\fR group), the OpenPrinterEx() call fails and the client makes another open call with a request for a lower privilege level\&. This should succeed, however the APW icon will not be displayed\&.
3924
3925 Disabling the \fIshow add printer wizard\fR parameter will always cause the OpenPrinterEx() on the server to fail\&. Thus the APW icon will never be displayed\&.
3926
3927
3928 .RS
3929 .Sh "Note"
3930 This does not prevent the same user from having administrative privilege on an individual printer\&.
3931
3932 .RE
3933 Default: \fB\fIshow add printer wizard\fR = yes \fR 
3934
3935 .TP
3936 shutdown script (G)
3937 This a full path name to a script called by\fBsmbd\fR(8) that should start a shutdown procedure\&.
3938
3939 If the connected user posseses the \fBSeRemoteShutdownPrivilege\fR, right, this command will be run as user\&.
3940
3941 The %z %t %r %f variables are expanded as follows:
3942
3943
3944 .RS
3945 .TP 3
3946 \(bu
3947 \fI%z\fR will be substituted with the shutdown message sent to the server\&.
3948 .TP
3949 \(bu
3950 \fI%t\fR will be substituted with the number of seconds to wait before effectively starting the shutdown procedure\&.
3951 .TP
3952 \(bu
3953 \fI%r\fR will be substituted with the switch \fB\-r\fR\&. It means reboot after shutdown for NT\&.
3954 .TP
3955 \(bu
3956 \fI%f\fR will be substituted with the switch \fB\-f\fR\&. It means force the shutdown even if applications do not respond for NT\&.
3957 .LP
3958 .RE
3959 .IP
3960 Shutdown script example: 
3961 .nf
3962
3963 #!/bin/bash
3964                 
3965 $time=0
3966 let "time/60"
3967 let "time++"
3968
3969 /sbin/shutdown $3 $4 +$time $1 &
3970 .fi
3971  Shutdown does not return so we need to launch it in background\&.
3972
3973 Default: \fB\fIshutdown script\fR = \fR 
3974
3975 Example: \fB\fIshutdown script\fR = /usr/local/samba/sbin/shutdown %m %t %r %f \fR 
3976
3977 .TP
3978 smb passwd file (G)
3979 This option sets the path to the encrypted smbpasswd file\&. By default the path to the smbpasswd file is compiled into Samba\&.
3980
3981 An example of use is: 
3982 .nf
3983
3984 smb passwd file = /etc/samba/smbpasswd
3985 .fi
3986  
3987
3988 Default: \fB\fIsmb passwd file\fR = ${prefix}/private/smbpasswd \fR 
3989
3990 .TP
3991 smb ports (G)
3992 Specifies which ports the server should listen on for SMB traffic\&.
3993
3994 Default: \fB\fIsmb ports\fR = 445 139 \fR 
3995
3996 .TP
3997 socket address (G)
3998 This option allows you to control what address Samba will listen for connections on\&. This is used to support multiple virtual interfaces on the one server, each with a different configuration\&.
3999
4000 By default Samba will accept connections on any address\&.
4001
4002 Default: \fB\fIsocket address\fR = \fR 
4003
4004 Example: \fB\fIsocket address\fR = 192\&.168\&.2\&.20 \fR 
4005
4006 .TP
4007 socket options (G)
4008 This option allows you to set socket options to be used when talking with the client\&.
4009
4010 Socket options are controls on the networking layer of the operating systems which allow the connection to be tuned\&.
4011
4012 This option will typically be used to tune your Samba server for optimal performance for your local network\&. There is no way that Samba can know what the optimal parameters are for your net, so you must experiment and choose them yourself\&. We strongly suggest you read the appropriate documentation for your operating system first (perhaps \fBman setsockopt\fR will help)\&.
4013
4014 You may find that on some systems Samba will say "Unknown socket option" when you supply an option\&. This means you either incorrectly typed it or you need to add an include file to includes\&.h for your OS\&. If the latter is the case please send the patch to samba\-technical@samba\&.org\&.
4015
4016 Any of the supported socket options may be combined in any way you like, as long as your OS allows it\&.
4017
4018 This is the list of socket options currently settable using this option:
4019
4020
4021 .RS
4022 .TP 3
4023 \(bu
4024 SO_KEEPALIVE
4025 .TP
4026 \(bu
4027 SO_REUSEADDR
4028 .TP
4029 \(bu
4030 SO_BROADCAST
4031 .TP
4032 \(bu
4033 TCP_NODELAY
4034 .TP
4035 \(bu
4036 IPTOS_LOWDELAY
4037 .TP
4038 \(bu
4039 IPTOS_THROUGHPUT
4040 .TP
4041 \(bu
4042 SO_SNDBUF *
4043 .TP
4044 \(bu
4045 SO_RCVBUF *
4046 .TP
4047 \(bu
4048 SO_SNDLOWAT *
4049 .TP
4050 \(bu
4051 SO_RCVLOWAT *
4052 .LP
4053 .RE
4054 .IP
4055 Those marked with a \fB'*'\fR take an integer argument\&. The others can optionally take a 1 or 0 argument to enable or disable the option, by default they will be enabled if you don't specify 1 or 0\&.
4056
4057 To specify an argument use the syntax SOME_OPTION = VALUE for example \fBSO_SNDBUF = 8192\fR\&. Note that you must not have any spaces before or after the = sign\&.
4058
4059 If you are on a local network then a sensible option might be:
4060
4061 \fBsocket options = IPTOS_LOWDELAY\fR
4062
4063 If you have a local network then you could try:
4064
4065 \fBsocket options = IPTOS_LOWDELAY TCP_NODELAY\fR
4066
4067 If you are on a wide area network then perhaps try setting IPTOS_THROUGHPUT\&.
4068
4069 Note that several of the options may cause your Samba server to fail completely\&. Use these options with caution!
4070
4071 Default: \fB\fIsocket options\fR = TCP_NODELAY \fR 
4072
4073 Example: \fB\fIsocket options\fR = IPTOS_LOWDELAY \fR 
4074
4075 .TP
4076 stat cache (G)
4077 This parameter determines if \fBsmbd\fR(8) will use a cache in order to speed up case insensitive name mappings\&. You should never need to change this parameter\&.
4078
4079 Default: \fB\fIstat cache\fR = yes \fR 
4080
4081 .TP
4082 store dos attributes (S)
4083 If this parameter is set Samba attempts to first read DOS attributes (SYSTEM, HIDDEN, ARCHIVE or READ\-ONLY) from a filesystem extended attribute, before mapping DOS attributes to UNIX permission bits (such as occurs with map hidden and map readonly)\&. When set, DOS attributes will be stored onto an extended attribute in the UNIX filesystem, associated with the file or directory\&. For no other mapping to occur as a fall\-back, the parameters map hidden,map system, map archive and map readonly must be set to off\&. This parameter writes the DOS attributes as a string into the extended attribute named "user\&.DOSATTRIB"\&. This extended attribute is explicitly hidden from smbd clients requesting an EA list\&. On Linux the filesystem must have been mounted with the mount option user_xattr in order for extended attributes to work, also extended attributes must be compiled into the Linux kernel\&.
4084
4085 Default: \fB\fIstore dos attributes\fR = yes \fR 
4086
4087 .TP
4088 strict allocate (S)
4089 This is a boolean that controls the handling of disk space allocation in the server\&. When this is set to \fByes\fR the server will change from UNIX behaviour of not committing real disk storage blocks when a file is extended to the Windows behaviour of actually forcing the disk system to allocate real storage blocks when a file is created or extended to be a given size\&. In UNIX terminology this means that Samba will stop creating sparse files\&. This can be slow on some systems\&.
4090
4091 When strict allocate is \fBno\fR the server does sparse disk block allocation when a file is extended\&.
4092
4093 Setting this to \fByes\fR can help Samba return out of quota messages on systems that are restricting the disk quota of users\&.
4094
4095 Default: \fB\fIstrict allocate\fR = no \fR 
4096
4097 .TP
4098 strict locking (S)
4099 This is a boolean that controls the handling of file locking in the server\&. When this is set to \fByes\fR, the server will check every read and write access for file locks, and deny access if locks exist\&. This can be slow on some systems\&.
4100
4101 When strict locking is disabled, the server performs file lock checks only when the client explicitly asks for them\&.
4102
4103 Well\-behaved clients always ask for lock checks when it is important\&. So in the vast majority of cases,\fBstrict locking = no\fR is acceptable\&.
4104
4105 Default: \fB\fIstrict locking\fR = yes \fR 
4106
4107 .TP
4108 strict sync (S)
4109 Many Windows applications (including the Windows 98 explorer shell) seem to confuse flushing buffer contents to disk with doing a sync to disk\&. Under UNIX, a sync call forces the process to be suspended until the kernel has ensured that all outstanding data in kernel disk buffers has been safely stored onto stable storage\&. This is very slow and should only be done rarely\&. Setting this parameter to \fBno\fR (the default) means that \fBsmbd\fR(8) ignores the Windows applications requests for a sync call\&. There is only a possibility of losing data if the operating system itself that Samba is running on crashes, so there is little danger in this default setting\&. In addition, this fixes many performance problems that people have reported with the new Windows98 explorer shell file copies\&.
4110
4111 Default: \fB\fIstrict sync\fR = no \fR 
4112
4113 .TP
4114 svcctl list (G)
4115 This option defines a list of init scripts that smbd will use for starting and stopping Unix services via the Win32 ServiceControl API\&. This allows Windows administrators to utilize the MS Management Console plug\-ins to manage a Unix server running Samba\&.
4116
4117 The administrator must create a directory name \fIsvcctl\fR in Samba's $(libdir) and create symbolic links to the init scripts in \fI/etc/init\&.d/\fR\&. The name of the links must match the names given as part of the \fIsvcctl list\fR\&.
4118
4119 Default: \fB\fIsvcctl list\fR = \fR 
4120
4121 Example: \fB\fIsvcctl list\fR = cups postfix portmap httpd \fR 
4122
4123 .TP
4124 sync always (S)
4125 This is a boolean parameter that controls whether writes will always be written to stable storage before the write call returns\&. If this is \fBno\fR then the server will be guided by the client's request in each write call (clients can set a bit indicating that a particular write should be synchronous)\&. If this is \fByes\fR then every write will be followed by a \fBfsync() \fR call to ensure the data is written to disk\&. Note that the \fIstrict sync\fR parameter must be set to \fByes\fR in order for this parameter to have any affect\&.
4126
4127 Default: \fB\fIsync always\fR = no \fR 
4128
4129 .TP
4130 syslog (G)
4131 This parameter maps how Samba debug messages are logged onto the system syslog logging levels\&. Samba debug level zero maps onto syslog \fBLOG_ERR\fR, debug level one maps onto \fBLOG_WARNING\fR, debug level two maps onto \fBLOG_NOTICE\fR, debug level three maps onto LOG_INFO\&. All higher levels are mapped to \fBLOG_DEBUG\fR\&.
4132
4133 This parameter sets the threshold for sending messages to syslog\&. Only messages with debug level less than this value will be sent to syslog\&.
4134
4135 Default: \fB\fIsyslog\fR = 1 \fR 
4136
4137 .TP
4138 syslog only (G)
4139 If this parameter is set then Samba debug messages are logged into the system syslog only, and not to the debug log files\&.
4140
4141 Default: \fB\fIsyslog only\fR = no \fR 
4142
4143 .TP
4144 template homedir (G)
4145 When filling out the user information for a Windows NT user, the \fBwinbindd\fR(8) daemon uses this parameter to fill in the home directory for that user\&. If the string \fI%D\fR is present it is substituted with the user's Windows NT domain name\&. If the string \fI%U\fR is present it is substituted with the user's Windows NT user name\&.
4146
4147 Default: \fB\fItemplate homedir\fR = /home/%D/%U \fR 
4148
4149 .TP
4150 template shell (G)
4151 When filling out the user information for a Windows NT user, the \fBwinbindd\fR(8) daemon uses this parameter to fill in the login shell for that user\&.
4152
4153 \fBNo default\fR
4154
4155 .TP
4156 time offset (G)
4157 This parameter is a setting in minutes to add to the normal GMT to local time conversion\&. This is useful if you are serving a lot of PCs that have incorrect daylight saving time handling\&.
4158
4159 Default: \fB\fItime offset\fR = 0 \fR 
4160
4161 Example: \fB\fItime offset\fR = 60 \fR 
4162
4163 .TP
4164 time server (G)
4165 This parameter determines if \fBnmbd\fR(8) advertises itself as a time server to Windows clients\&.
4166
4167 Default: \fB\fItime server\fR = no \fR 
4168
4169 .TP
4170 unix charset (G)
4171 Specifies the charset the unix machine Samba runs on uses\&. Samba needs to know this in order to be able to convert text to the charsets other SMB clients use\&.
4172
4173 This is also the charset Samba will use when specifying arguments to scripts that it invokes\&.
4174
4175 Default: \fB\fIunix charset\fR = UTF8 \fR 
4176
4177 Example: \fB\fIunix charset\fR = ASCII \fR 
4178
4179 .TP
4180 unix extensions (G)
4181 This boolean parameter controls whether Samba implments the CIFS UNIX extensions, as defined by HP\&. These extensions enable Samba to better serve UNIX CIFS clients by supporting features such as symbolic links, hard links, etc\&.\&.\&. These extensions require a similarly enabled client, and are of no current use to Windows clients\&.
4182
4183 Default: \fB\fIunix extensions\fR = yes \fR 
4184
4185 .TP
4186 unix password sync (G)
4187 This boolean parameter controls whether Samba attempts to synchronize the UNIX password with the SMB password when the encrypted SMB password in the smbpasswd file is changed\&. If this is set to \fByes\fR the program specified in the \fIpasswd program\fRparameter is called \fBAS ROOT\fR \- to allow the new UNIX password to be set without access to the old UNIX password (as the SMB password change code has no access to the old password cleartext, only the new)\&.
4188
4189 Default: \fB\fIunix password sync\fR = no \fR 
4190
4191 .TP
4192 update encrypted (G)
4193 This boolean parameter allows a user logging on with a plaintext password to have their encrypted (hashed) password in the smbpasswd file to be updated automatically as they log on\&. This option allows a site to migrate from plaintext password authentication (users authenticate with plaintext password over the wire, and are checked against a UNIX account atabase) to encrypted password authentication (the SMB challenge/response authentication mechanism) without forcing all users to re\-enter their passwords via smbpasswd at the time the change is made\&. This is a convenience option to allow the change over to encrypted passwords to be made over a longer period\&. Once all users have encrypted representations of their passwords in the smbpasswd file this parameter should be set to \fBno\fR\&.
4194
4195 In order for this parameter to be operative the encrypt passwords parameter must be set to \fBno\fR\&. The default value of encrypt passwords = Yes\&. Note: This must be set to \fBno\fR for this update encrypted to work\&.
4196
4197 Note that even when this parameter is set a user authenticating to \fBsmbd\fR must still enter a valid password in order to connect correctly, and to update their hashed (smbpasswd) passwords\&.
4198
4199 Default: \fB\fIupdate encrypted\fR = no \fR 
4200
4201 .TP
4202 use client driver (S)
4203 This parameter applies only to Windows NT/2000 clients\&. It has no effect on Windows 95/98/ME clients\&. When serving a printer to Windows NT/2000 clients without first installing a valid printer driver on the Samba host, the client will be required to install a local printer driver\&. From this point on, the client will treat the print as a local printer and not a network printer connection\&. This is much the same behavior that will occur when \fBdisable spoolss = yes\fR\&.
4204
4205 The differentiating factor is that under normal circumstances, the NT/2000 client will attempt to open the network printer using MS\-RPC\&. The problem is that because the client considers the printer to be local, it will attempt to issue the OpenPrinterEx() call requesting access rights associated with the logged on user\&. If the user possesses local administator rights but not root privilege on the Samba host (often the case), the OpenPrinterEx() call will fail\&. The result is that the client will now display an "Access Denied; Unable to connect" message in the printer queue window (even though jobs may successfully be printed)\&.
4206
4207 If this parameter is enabled for a printer, then any attempt to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped to PRINTER_ACCESS_USE instead\&. Thus allowing the OpenPrinterEx() call to succeed\&. \fBThis parameter MUST not be able enabled on a print share which has valid print driver installed on the Samba server\&.\fR
4208
4209 Default: \fB\fIuse client driver\fR = no \fR 
4210
4211 .TP
4212 use kerberos keytab (G)
4213 Specifies whether Samba should attempt to maintain service principals in the systems keytab file for \fBhost/FQDN\fR and \fBcifs/FQDN\fR\&.
4214
4215 When you are using the heimdal Kerberos libraries, you must also specify the following in\fI/etc/krb5\&.conf\fR: 
4216 .nf
4217
4218 [libdefaults]
4219 default_keytab_name = FILE:/etc/krb5\&.keytab
4220 .fi
4221  
4222
4223 Default: \fB\fIuse kerberos keytab\fR = False \fR 
4224
4225 .TP
4226 use mmap (G)
4227 This global parameter determines if the tdb internals of Samba can depend on mmap working correctly on the running system\&. Samba requires a coherent mmap/read\-write system memory cache\&. Currently only HPUX does not have such a coherent cache, and so this parameter is set to \fBno\fR by default on HPUX\&. On all other systems this parameter should be left alone\&. This parameter is provided to help the Samba developers track down problems with the tdb internal code\&.
4228
4229 Default: \fB\fIuse mmap\fR = yes \fR 
4230
4231 .TP
4232 user
4233 This parameter is a synonym for username\&.
4234
4235 .TP
4236 users
4237 This parameter is a synonym for username\&.
4238
4239 .TP
4240 username (S)
4241 Multiple users may be specified in a comma\-delimited list, in which case the supplied password will be tested against each username in turn (left to right)\&.
4242
4243 The \fIusername\fR line is needed only when the PC is unable to supply its own username\&. This is the case for the COREPLUS protocol or where your users have different WfWg usernames to UNIX usernames\&. In both these cases you may also be better using the \\\\server\\share%user syntax instead\&.
4244
4245 The \fIusername\fR line is not a great solution in many cases as it means Samba will try to validate the supplied password against each of the usernames in the \fIusername\fR line in turn\&. This is slow and a bad idea for lots of users in case of duplicate passwords\&. You may get timeouts or security breaches using this parameter unwisely\&.
4246
4247 Samba relies on the underlying UNIX security\&. This parameter does not restrict who can login, it just offers hints to the Samba server as to what usernames might correspond to the supplied password\&. Users can login as whoever they please and they will be able to do no more damage than if they started a telnet session\&. The daemon runs as the user that they log in as, so they cannot do anything that user cannot do\&.
4248
4249 To restrict a service to a particular set of users you can use the valid users parameter\&.
4250
4251 If any of the usernames begin with a '@' then the name will be looked up first in the NIS netgroups list (if Samba is compiled with netgroup support), followed by a lookup in the UNIX groups database and will expand to a list of all users in the group of that name\&.
4252
4253 If any of the usernames begin with a '+' then the name will be looked up only in the UNIX groups database and will expand to a list of all users in the group of that name\&.
4254
4255 If any of the usernames begin with a '&' then the name will be looked up only in the NIS netgroups database (if Samba is compiled with netgroup support) and will expand to a list of all users in the netgroup group of that name\&.
4256
4257 Note that searching though a groups database can take quite some time, and some clients may time out during the search\&.
4258
4259 See the section NOTE ABOUT USERNAME/PASSWORD VALIDATION for more information on how this parameter determines access to the services\&.
4260
4261 Default: \fB\fIusername\fR = # The guest account if a guest service, else <empty string>\&. \fR 
4262
4263 Example: \fB\fIusername\fR = fred, mary, jack, jane, @users, @pcgroup \fR 
4264
4265 .TP
4266 username level (G)
4267 This option helps Samba to try and 'guess' at the real UNIX username, as many DOS clients send an all\-uppercase username\&. By default Samba tries all lowercase, followed by the username with the first letter capitalized, and fails if the username is not found on the UNIX machine\&.
4268
4269 If this parameter is set to non\-zero the behavior changes\&. This parameter is a number that specifies the number of uppercase combinations to try while trying to determine the UNIX user name\&. The higher the number the more combinations will be tried, but the slower the discovery of usernames will be\&. Use this parameter when you have strange usernames on your UNIX machine, such as \fBAstrangeUser \fR\&.
4270
4271 This parameter is needed only on UNIX systems that have case sensitive usernames\&.
4272
4273 Default: \fB\fIusername level\fR = 0 \fR 
4274
4275 Example: \fB\fIusername level\fR = 5 \fR 
4276
4277 .TP
4278 username map (G)
4279 This option allows you to specify a file containing a mapping of usernames from the clients to the server\&. This can be used for several purposes\&. The most common is to map usernames that users use on DOS or Windows machines to those that the UNIX box uses\&. The other is to map multiple users to a single username so that they can more easily share files\&.
4280
4281 Please note that for user or share mode security, the username map is applied prior to validating the user credentials\&. Domain member servers (domain or ads) apply the username map after the user has been successfully authenticated by the domain controller and require fully qualified enties in the map table (e\&.g\&. biddle = DOMAIN\\foo)\&.
4282
4283 The map file is parsed line by line\&. Each line should contain a single UNIX username on the left then a '=' followed by a list of usernames on the right\&. The list of usernames on the right may contain names of the form @group in which case they will match any UNIX username in that group\&. The special client name '*' is a wildcard and matches any name\&. Each line of the map file may be up to 1023 characters long\&.
4284
4285 The file is processed on each line by taking the supplied username and comparing it with each username on the right hand side of the '=' signs\&. If the supplied name matches any of the names on the right hand side then it is replaced with the name on the left\&. Processing then continues with the next line\&.
4286
4287 If any line begins with a '#' or a ';' then it is ignored\&.
4288
4289 If any line begins with an '!' then the processing will stop after that line if a mapping was done by the line\&. Otherwise mapping continues with every line being processed\&. Using '!' is most useful when you have a wildcard mapping line later in the file\&.
4290
4291 For example to map from the name \fBadmin\fR or \fBadministrator\fR to the UNIX name \fB root\fR you would use: 
4292 .nf
4293
4294 \fBroot = admin administrator\fR
4295 .fi
4296  Or to map anyone in the UNIX group \fBsystem\fR to the UNIX name \fBsys\fR you would use: 
4297 .nf
4298
4299 \fBsys = @system\fR
4300 .fi
4301  
4302
4303 You can have as many mappings as you like in a username map file\&.
4304
4305 If your system supports the NIS NETGROUP option then the netgroup database is checked before the \fI/etc/group \fR database for matching groups\&.
4306
4307 You can map Windows usernames that have spaces in them by using double quotes around the name\&. For example: 
4308 .nf
4309
4310 \fBtridge = "Andrew Tridgell"\fR
4311 .fi
4312  would map the windows username "Andrew Tridgell" to the unix username "tridge"\&.
4313
4314 The following example would map mary and fred to the unix user sys, and map the rest to guest\&. Note the use of the '!' to tell Samba to stop processing if it gets a match on that line: 
4315 .nf
4316
4317 !sys = mary fred
4318 guest = *
4319 .fi
4320  
4321
4322 Note that the remapping is applied to all occurrences of usernames\&. Thus if you connect to \\\\server\\fred and\fBfred\fR is remapped to \fBmary\fR then you will actually be connecting to \\\\server\\mary and will need to supply a password suitable for \fBmary\fR not\fBfred\fR\&. The only exception to this is the username passed to the password server (if you have one)\&. The password server will receive whatever username the client supplies without modification\&.
4323
4324 Also note that no reverse mapping is done\&. The main effect this has is with printing\&. Users who have been mapped may have trouble deleting print jobs as PrintManager under WfWg will think they don't own the print job\&.
4325
4326 Samba versions prior to 3\&.0\&.8 would only support reading the fully qualified username (e\&.g\&.: DOMAIN\\user) from the username map when performing a kerberos login from a client\&. However, when looking up a map entry for a user authenticated by NTLM[SSP], only the login name would be used for matches\&. This resulted in inconsistent behavior sometimes even on the same server\&.
4327
4328 The following functionality is obeyed in version 3\&.0\&.8 and later:
4329
4330 When performing local authentication, the username map is applied to the login name before attempting to authenticate the connection\&.
4331
4332 When relying upon a external domain controller for validating authentication requests, smbd will apply the username map to the fully qualified username (i\&.e\&. DOMAIN\\user) only after the user has been successfully authenticated\&.
4333
4334 An example of use is: 
4335 .nf
4336
4337 username map = /usr/local/samba/lib/users\&.map
4338 .fi
4339  
4340
4341 Default: \fB\fIusername map\fR = # no username map \fR 
4342
4343 .TP
4344 username map script (G)
4345 This script is a mutually exclusive alternative to theusername map parameter\&. This parameter specifies and external program or script that must accept a single command line option (the username transmitted in the authentication request) and return a line line on standard output (the name to which the account should mapped)\&. In this way, it is possible to store username map tables in an LDAP or NIS directory services\&.
4346
4347 Default: \fB\fIusername map script\fR = \fR 
4348
4349 Example: \fB\fIusername map script\fR = /etc/samba/scripts/mapusers\&.sh \fR 
4350
4351 .TP
4352 use sendfile (S)
4353 If this parameter is \fByes\fR, and the \fBsendfile()\fR system call is supported by the underlying operating system, then some SMB read calls (mainly ReadAndX and ReadRaw) will use the more efficient sendfile system call for files that are exclusively oplocked\&. This may make more efficient use of the system CPU's and cause Samba to be faster\&. Samba automatically turns this off for clients that use protocol levels lower than NT LM 0\&.12 and when it detects a client is Windows 9x (using sendfile from Linux will cause these clients to fail)\&.
4354
4355 Default: \fB\fIuse sendfile\fR = false \fR 
4356
4357 .TP
4358 use spnego (G)
4359 This variable controls controls whether samba will try to use Simple and Protected NEGOciation (as specified by rfc2478) with WindowsXP and Windows2000 clients to agree upon an authentication mechanism\&.
4360
4361 Unless further issues are discovered with our SPNEGO implementation, there is no reason this should ever be disabled\&.
4362
4363 Default: \fB\fIuse spnego\fR = yes \fR 
4364
4365 .TP
4366 utmp (G)
4367 This boolean parameter is only available if Samba has been configured and compiled with the option \fB\-\-with\-utmp\fR\&. If set to\fByes\fR then Samba will attempt to add utmp or utmpx records (depending on the UNIX system) whenever a connection is made to a Samba server\&. Sites may use this to record the user connecting to a Samba share\&.
4368
4369 Due to the requirements of the utmp record, we are required to create a unique identifier for the incoming user\&. Enabling this option creates an n^2 algorithm to find this number\&. This may impede performance on large installations\&.
4370
4371 Default: \fB\fIutmp\fR = no \fR 
4372
4373 .TP
4374 utmp directory (G)
4375 This parameter is only available if Samba has been configured and compiled with the option \fB \-\-with\-utmp\fR\&. It specifies a directory pathname that is used to store the utmp or utmpx files (depending on the UNIX system) that record user connections to a Samba server\&. By default this is not set, meaning the system will use whatever utmp file the native system is set to use (usually\fI/var/run/utmp\fR on Linux)\&.
4376
4377 Default: \fB\fIutmp directory\fR = # Determined automatically \fR 
4378
4379 Example: \fB\fIutmp directory\fR = /var/run/utmp \fR 
4380
4381 .TP
4382 \-valid (S)
4383 This parameter indicates whether a share is valid and thus can be used\&. When this parameter is set to false, the share will be in no way visible nor accessible\&.
4384
4385 This option should not be used by regular users but might be of help to developers\&. Samba uses this option internally to mark shares as deleted\&.
4386
4387 Default: \fB\fI\-valid\fR = yes \fR 
4388
4389 .TP
4390 valid users (S)
4391 This is a list of users that should be allowed to login to this service\&. Names starting with '@', '+' and '&' are interpreted using the same rules as described in the \fIinvalid users\fR parameter\&.
4392
4393 If this is empty (the default) then any user can login\&. If a username is in both this list and the \fIinvalid users\fR list then access is denied for that user\&.
4394
4395 The current servicename is substituted for \fI%S\fR\&. This is useful in the [homes] section\&.
4396
4397 Default: \fB\fIvalid users\fR = # No valid users list (anyone can login) \fR 
4398
4399 Example: \fB\fIvalid users\fR = greg, @pcusers \fR 
4400
4401 .TP
4402 veto files (S)
4403 This is a list of files and directories that are neither visible nor accessible\&. Each entry in the list must be separated by a '/', which allows spaces to be included in the entry\&. '*' and '?' can be used to specify multiple files or directories as in DOS wildcards\&.
4404
4405 Each entry must be a unix path, not a DOS path and must \fBnot\fR include the unix directory separator '/'\&.
4406
4407 Note that the case sensitive option is applicable in vetoing files\&.
4408
4409 One feature of the veto files parameter that it is important to be aware of is Samba's behaviour when trying to delete a directory\&. If a directory that is to be deleted contains nothing but veto files this deletion will \fBfail\fR unless you also set the delete veto files parameter to \fIyes\fR\&.
4410
4411 Setting this parameter will affect the performance of Samba, as it will be forced to check all files and directories for a match as they are scanned\&.
4412
4413 Examples of use include: 
4414 .nf
4415
4416 ; Veto any files containing the word Security,
4417 ; any ending in \&.tmp, and any directory containing the
4418 ; word root\&.
4419 veto files = /*Security*/*\&.tmp/*root*/
4420
4421 ; Veto the Apple specific files that a NetAtalk server
4422 ; creates\&.
4423 veto files = /\&.AppleDouble/\&.bin/\&.AppleDesktop/Network Trash Folder/
4424 .fi
4425  
4426
4427 Default: \fB\fIveto files\fR = No files or directories are vetoed\&. \fR 
4428
4429 .TP
4430 veto oplock files (S)
4431 This parameter is only valid when the oplocks parameter is turned on for a share\&. It allows the Samba administrator to selectively turn off the granting of oplocks on selected files that match a wildcarded list, similar to the wildcarded list used in theveto files parameter\&.
4432
4433 You might want to do this on files that you know will be heavily contended for by clients\&. A good example of this is in the NetBench SMB benchmark program, which causes heavy client contention for files ending in\fI\&.SEM\fR\&. To cause Samba not to grant oplocks on these files you would use the line (either in the [global] section or in the section for the particular NetBench share\&.
4434
4435 An example of use is: 
4436 .nf
4437
4438 veto oplock files = /\&.*SEM/
4439 .fi
4440  
4441
4442 Default: \fB\fIveto oplock files\fR = # No files are vetoed for oplock grants \fR 
4443
4444 .TP
4445 vfs object
4446 This parameter is a synonym for vfs objects\&.
4447
4448 .TP
4449 vfs objects (S)
4450 This parameter specifies the backend names which are used for Samba VFS I/O operations\&. By default, normal disk I/O operations are used but these can be overloaded with one or more VFS objects\&.
4451
4452 Default: \fB\fIvfs objects\fR = \fR 
4453
4454 Example: \fB\fIvfs objects\fR = extd_audit recycle \fR 
4455
4456 .TP
4457 volume (S)
4458 This allows you to override the volume label returned for a share\&. Useful for CDROMs with installation programs that insist on a particular volume label\&.
4459
4460 Default: \fB\fIvolume\fR = # the name of the share \fR 
4461
4462 .TP
4463 wide links (S)
4464 This parameter controls whether or not links in the UNIX file system may be followed by the server\&. Links that point to areas within the directory tree exported by the server are always allowed; this parameter controls access only to areas that are outside the directory tree being exported\&.
4465
4466 Note that setting this parameter can have a negative effect on your server performance due to the extra system calls that Samba has to do in order to perform the link checks\&.
4467
4468 Default: \fB\fIwide links\fR = yes \fR 
4469
4470 .TP
4471 winbind cache time (G)
4472 This parameter specifies the number of seconds the \fBwinbindd\fR(8) daemon will cache user and group information before querying a Windows NT server again\&.
4473
4474
4475 .RS
4476 .Sh "Note"
4477 This does not apply to authentication requests, these are always evaluated in real time\&.
4478
4479 .RE
4480 Default: \fB\fIwinbind cache time\fR = 300 \fR 
4481
4482 .TP
4483 winbind enum groups (G)
4484 On large installations using \fBwinbindd\fR(8) it may be necessary to suppress the enumeration of groups through the \fBsetgrent()\fR,\fBgetgrent()\fR and\fBendgrent()\fR group of system calls\&. If the \fIwinbind enum groups\fR parameter is\fBno\fR, calls to the \fBgetgrent()\fR system call will not return any data\&.
4485
4486
4487 .RS
4488 .Sh "Warning"
4489 Turning off group enumeration may cause some programs to behave oddly\&.
4490
4491 .RE
4492 Default: \fB\fIwinbind enum groups\fR = yes \fR 
4493
4494 .TP
4495 winbind enum users (G)
4496 On large installations using \fBwinbindd\fR(8) it may be necessary to suppress the enumeration of users through the \fBsetpwent()\fR,\fBgetpwent()\fR and\fBendpwent()\fR group of system calls\&. If the \fIwinbind enum users\fR parameter is\fBno\fR, calls to the \fBgetpwent\fR system call will not return any data\&.
4497
4498
4499 .RS
4500 .Sh "Warning"
4501 Turning off user enumeration may cause some programs to behave oddly\&. For example, the finger program relies on having access to the full user list when searching for matching usernames\&.
4502
4503 .RE
4504 Default: \fB\fIwinbind enum users\fR = yes \fR 
4505
4506 .TP
4507 winbind nested groups (G)
4508 If set to yes, this parameter activates the support for nested groups\&. Nested groups are also called local groups or aliases\&. They work like their counterparts in Windows: Nested groups are defined locally on any machine (they are shared between DC's through their SAM) and can contain users and global groups from any trusted SAM\&. To be able to use nested groups, you need to run nss_winbind\&.
4509
4510 Please note that per 3\&.0\&.3 this is a new feature, so handle with care\&.
4511
4512 Default: \fB\fIwinbind nested groups\fR = no \fR 
4513
4514 .TP
4515 winbind nss info (G)
4516 This parameter is designed to control how Winbind retrieves Name Service Information to construct a user's home directory and login shell\&. Currently the following settings are available:
4517
4518 .RS
4519 .TP 3
4520 \(bu
4521 \fItemplate\fR \- The default, using the parameters of \fItemplate shell\fR and \fItemplate homedir\fR)
4522 .TP
4523 \(bu
4524 \fIsfu\fR \- When Samba is running in security = ads and your Active Directory Domain Controller does support the Microsoft "Services for Unix" (SFU) LDAP schema, winbind can retrieve the login shell and the home directory attributes directly from your Directory Server\&. Note that retrieving UID and GID from your ADS\-Server requires to use\fIidmap backend\fR = idmap_ad as well\&.
4525 .LP
4526 .RE
4527 .IP
4528  
4529
4530 Default: \fB\fIwinbind nss info\fR = template \fR 
4531
4532 Example: \fB\fIwinbind nss info\fR = template sfu \fR 
4533
4534 .TP
4535 winbind separator (G)
4536 This parameter allows an admin to define the character used when listing a username of the form of \fIDOMAIN \fR\\\fIuser\fR\&. This parameter is only applicable when using the \fIpam_winbind\&.so\fR and \fInss_winbind\&.so\fR modules for UNIX services\&.
4537
4538 Please note that setting this parameter to + causes problems with group membership at least on glibc systems, as the character + is used as a special character for NIS in /etc/group\&.
4539
4540 Default: \fB\fIwinbind separator\fR = '\\' \fR 
4541
4542 Example: \fB\fIwinbind separator\fR = + \fR 
4543
4544 .TP
4545 winbind trusted domains only (G)
4546 This parameter is designed to allow Samba servers that are members of a Samba controlled domain to use UNIX accounts distributed via NIS, rsync, or LDAP as the uid's for winbindd users in the hosts primary domain\&. Therefore, the user DOMAIN\\user1 would be mapped to the account user1 in /etc/passwd instead of allocating a new uid for him or her\&.
4547
4548 Default: \fB\fIwinbind trusted domains only\fR = no \fR 
4549
4550 .TP
4551 winbind use default domain (G)
4552 This parameter specifies whether the\fBwinbindd\fR(8) daemon should operate on users without domain component in their username\&. Users without a domain component are treated as is part of the winbindd server's own domain\&. While this does not benifit Windows users, it makes SSH, FTP and e\-mail function in a way much closer to the way they would in a native unix system\&.
4553
4554 Default: \fB\fIwinbind use default domain\fR = no \fR 
4555
4556 Example: \fB\fIwinbind use default domain\fR = yes \fR 
4557
4558 .TP
4559 wins hook (G)
4560 When Samba is running as a WINS server this allows you to call an external program for all changes to the WINS database\&. The primary use for this option is to allow the dynamic update of external name resolution databases such as dynamic DNS\&.
4561
4562 The wins hook parameter specifies the name of a script or executable that will be called as follows:
4563
4564 \fBwins_hook operation name nametype ttl IP_list\fR
4565
4566
4567 .RS
4568 .TP 3
4569 \(bu
4570 The first argument is the operation and is one of "add", "delete", or "refresh"\&. In most cases the operation can be ignored as the rest of the parameters provide sufficient information\&. Note that "refresh" may sometimes be called when the name has not previously been added, in that case it should be treated as an add\&.
4571 .TP
4572 \(bu
4573 The second argument is the NetBIOS name\&. If the name is not a legal name then the wins hook is not called\&. Legal names contain only letters, digits, hyphens, underscores and periods\&.
4574 .TP
4575 \(bu
4576 The third argument is the NetBIOS name type as a 2 digit hexadecimal number\&.
4577 .TP
4578 \(bu
4579 The fourth argument is the TTL (time to live) for the name in seconds\&.
4580 .TP
4581 \(bu
4582 The fifth and subsequent arguments are the IP addresses currently registered for that name\&. If this list is empty then the name should be deleted\&.
4583 .LP
4584 .RE
4585 .IP
4586 An example script that calls the BIND dynamic DNS update program \fBnsupdate\fR is provided in the examples directory of the Samba source code\&.
4587
4588 \fBNo default\fR
4589
4590 .TP
4591 wins proxy (G)
4592 This is a boolean that controls if \fBnmbd\fR(8) will respond to broadcast name queries on behalf of other hosts\&. You may need to set this to \fByes\fR for some older clients\&.
4593
4594 Default: \fB\fIwins proxy\fR = no \fR 
4595
4596 .TP
4597 wins server (G)
4598 This specifies the IP address (or DNS name: IP address for preference) of the WINS server that \fBnmbd\fR(8) should register with\&. If you have a WINS server on your network then you should set this to the WINS server's IP\&.
4599
4600 You should point this at your WINS server if you have a multi\-subnetted network\&.
4601
4602 If you want to work in multiple namespaces, you can give every wins server a 'tag'\&. For each tag, only one (working) server will be queried for a name\&. The tag should be separated from the ip address by a colon\&.
4603
4604
4605 .RS
4606 .Sh "Note"
4607 You need to set up Samba to point to a WINS server if you have multiple subnets and wish cross\-subnet browsing to work correctly\&.
4608
4609 .RE
4610 See the chapter in the Samba3\-HOWTO on Network Browsing\&.
4611
4612 Default: \fB\fIwins server\fR = \fR 
4613
4614 Example: \fB\fIwins server\fR = mary:192\&.9\&.200\&.1 fred:192\&.168\&.3\&.199 mary:192\&.168\&.2\&.61 # For this example when querying a certain name, 192\&.19\&.200\&.1 will be asked first and if that doesn't respond 192\&.168\&.2\&.61\&. If either of those doesn't know the name 192\&.168\&.3\&.199 will be queried\&. \fR 
4615
4616 Example: \fB\fIwins server\fR = 192\&.9\&.200\&.1 192\&.168\&.2\&.61 \fR 
4617
4618 .TP
4619 wins support (G)
4620 This boolean controls if the \fBnmbd\fR(8) process in Samba will act as a WINS server\&. You should not set this to \fByes\fR unless you have a multi\-subnetted network and you wish a particular \fBnmbd\fR to be your WINS server\&. Note that you should \fBNEVER\fR set this to \fByes\fR on more than one machine in your network\&.
4621
4622 Default: \fB\fIwins support\fR = no \fR 
4623
4624 .TP
4625 workgroup (G)
4626 This controls what workgroup your server will appear to be in when queried by clients\&. Note that this parameter also controls the Domain name used with the security = domain setting\&.
4627
4628 Default: \fB\fIworkgroup\fR = WORKGROUP \fR 
4629
4630 Example: \fB\fIworkgroup\fR = MYGROUP \fR 
4631
4632 .TP
4633 writable
4634 This parameter is a synonym for writeable\&.
4635
4636 .TP
4637 writeable (S)
4638 Inverted synonym for read only\&.
4639
4640 \fBNo default\fR
4641
4642 .TP
4643 write cache size (S)
4644 If this integer parameter is set to non\-zero value, Samba will create an in\-memory cache for each oplocked file (it does \fBnot\fR do this for non\-oplocked files)\&. All writes that the client does not request to be flushed directly to disk will be stored in this cache if possible\&. The cache is flushed onto disk when a write comes in whose offset would not fit into the cache or when the file is closed by the client\&. Reads for the file are also served from this cache if the data is stored within it\&.
4645
4646 This cache allows Samba to batch client writes into a more efficient write size for RAID disks (i\&.e\&. writes may be tuned to be the RAID stripe size) and can improve performance on systems where the disk subsystem is a bottleneck but there is free memory for userspace programs\&.
4647
4648 The integer parameter specifies the size of this cache (per oplocked file) in bytes\&.
4649
4650 Default: \fB\fIwrite cache size\fR = 0 \fR 
4651
4652 Example: \fB\fIwrite cache size\fR = 262144 # for a 256k cache size per file \fR 
4653
4654 .TP
4655 write list (S)
4656 This is a list of users that are given read\-write access to a service\&. If the connecting user is in this list then they will be given write access, no matter what the read only option is set to\&. The list can include group names using the @group syntax\&.
4657
4658 Note that if a user is in both the read list and the write list then they will be given write access\&.
4659
4660 By design, this parameter will not work with the security = share in Samba 3\&.0\&.
4661
4662 Default: \fB\fIwrite list\fR = \fR 
4663
4664 Example: \fB\fIwrite list\fR = admin, root, @staff \fR 
4665
4666 .TP
4667 write raw (G)
4668 This parameter controls whether or not the server will support raw write SMB's when transferring data from clients\&. You should never need to change this parameter\&.
4669
4670 Default: \fB\fIwrite raw\fR = yes \fR 
4671
4672 .TP
4673 wtmp directory (G)
4674 This parameter is only available if Samba has been configured and compiled with the option \fB \-\-with\-utmp\fR\&. It specifies a directory pathname that is used to store the wtmp or wtmpx files (depending on the UNIX system) that record user connections to a Samba server\&. The difference with the utmp directory is the fact that user info is kept after a user has logged out\&.
4675
4676 By default this is not set, meaning the system will use whatever utmp file the native system is set to use (usually\fI/var/run/wtmp\fR on Linux)\&.
4677
4678 Default: \fB\fIwtmp directory\fR = \fR 
4679
4680 Example: \fB\fIwtmp directory\fR = /var/log/wtmp \fR 
4681
4682 .SH "WARNINGS"
4683
4684 .PP
4685 Although the configuration file permits service names to contain spaces, your client software may not\&. Spaces will be ignored in comparisons anyway, so it shouldn't be a problem \- but be aware of the possibility\&.
4686
4687 .PP
4688 On a similar note, many clients \- especially DOS clients \- limit service names to eight characters\&.\fBsmbd\fR(8) has no such limitation, but attempts to connect from such clients will fail if they truncate the service names\&. For this reason you should probably keep your service names down to eight characters in length\&.
4689
4690 .PP
4691 Use of the [homes] and [printers] special sections make life for an administrator easy, but the various combinations of default attributes can be tricky\&. Take extreme care when designing these sections\&. In particular, ensure that the permissions on spool directories are correct\&.
4692
4693 .SH "VERSION"
4694
4695 .PP
4696 This man page is correct for version 3\&.0 of the Samba suite\&.
4697
4698 .SH "SEE ALSO"
4699
4700 .PP
4701 \fBsamba\fR(7), \fBsmbpasswd\fR(8), \fBswat\fR(8), \fBsmbd\fR(8), \fBnmbd\fR(8), \fBsmbclient\fR(1), \fBnmblookup\fR(1), \fBtestparm\fR(1), \fBtestprns\fR(1)\&.
4702
4703 .SH "AUTHOR"
4704
4705 .PP
4706 The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
4707
4708 .PP
4709 The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
4710