Load samba-3.4.2 into branches/samba/upstream.
[abartlet/samba-debian.git] / docs / manpages / smb.conf.5
1 .\"     Title: smb.conf
2 .\"    Author: [see the "AUTHOR" section]
3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4 .\"      Date: 09/30/2009
5 .\"    Manual: File Formats and Conventions
6 .\"    Source: Samba 3.4
7 .\"  Language: English
8 .\"
9 .TH "SMB\&.CONF" "5" "09/30/2009" "Samba 3\&.4" "File Formats and Conventions"
10 .\" -----------------------------------------------------------------
11 .\" * (re)Define some macros
12 .\" -----------------------------------------------------------------
13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 .\" toupper - uppercase a string (locale-aware)
15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 .de toupper
17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18 \\$*
19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20 ..
21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 .\" SH-xref - format a cross-reference to an SH section
23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24 .de SH-xref
25 .ie n \{\
26 .\}
27 .toupper \\$*
28 .el \{\
29 \\$*
30 .\}
31 ..
32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 .\" SH - level-one heading that works better for non-TTY output
34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 .de1 SH
36 .\" put an extra blank line of space above the head in non-TTY output
37 .if t \{\
38 .sp 1
39 .\}
40 .sp \\n[PD]u
41 .nr an-level 1
42 .set-an-margin
43 .nr an-prevailing-indent \\n[IN]
44 .fi
45 .in \\n[an-margin]u
46 .ti 0
47 .HTML-TAG ".NH \\n[an-level]"
48 .it 1 an-trap
49 .nr an-no-space-flag 1
50 .nr an-break-flag 1
51 \." make the size of the head bigger
52 .ps +3
53 .ft B
54 .ne (2v + 1u)
55 .ie n \{\
56 .\" if n (TTY output), use uppercase
57 .toupper \\$*
58 .\}
59 .el \{\
60 .nr an-break-flag 0
61 .\" if not n (not TTY), use normal case (not uppercase)
62 \\$1
63 .in \\n[an-margin]u
64 .ti 0
65 .\" if not n (not TTY), put a border/line under subheading
66 .sp -.6
67 \l'\n(.lu'
68 .\}
69 ..
70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 .\" SS - level-two heading that works better for non-TTY output
72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 .de1 SS
74 .sp \\n[PD]u
75 .nr an-level 1
76 .set-an-margin
77 .nr an-prevailing-indent \\n[IN]
78 .fi
79 .in \\n[IN]u
80 .ti \\n[SN]u
81 .it 1 an-trap
82 .nr an-no-space-flag 1
83 .nr an-break-flag 1
84 .ps \\n[PS-SS]u
85 \." make the size of the head bigger
86 .ps +2
87 .ft B
88 .ne (2v + 1u)
89 .if \\n[.$] \&\\$*
90 ..
91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92 .\" BB/BE - put background/screen (filled box) around block of text
93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94 .de BB
95 .if t \{\
96 .sp -.5
97 .br
98 .in +2n
99 .ll -2n
100 .gcolor red
101 .di BX
102 .\}
103 ..
104 .de EB
105 .if t \{\
106 .if "\\$2"adjust-for-leading-newline" \{\
107 .sp -1
108 .\}
109 .br
110 .di
111 .in
112 .ll
113 .gcolor
114 .nr BW \\n(.lu-\\n(.i
115 .nr BH \\n(dn+.5v
116 .ne \\n(BHu+.5v
117 .ie "\\$2"adjust-for-leading-newline" \{\
118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119 .\}
120 .el \{\
121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122 .\}
123 .in 0
124 .sp -.5v
125 .nf
126 .BX
127 .in
128 .sp .5v
129 .fi
130 .\}
131 ..
132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133 .\" BM/EM - put colored marker in margin next to block of text
134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135 .de BM
136 .if t \{\
137 .br
138 .ll -2n
139 .gcolor red
140 .di BX
141 .\}
142 ..
143 .de EM
144 .if t \{\
145 .br
146 .di
147 .ll
148 .gcolor
149 .nr BH \\n(dn
150 .ne \\n(BHu
151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152 .in 0
153 .nf
154 .BX
155 .in
156 .fi
157 .\}
158 ..
159 .\" -----------------------------------------------------------------
160 .\" * set default formatting
161 .\" -----------------------------------------------------------------
162 .\" disable hyphenation
163 .nh
164 .\" disable justification (adjust text to left margin only)
165 .ad l
166 .\" -----------------------------------------------------------------
167 .\" * MAIN CONTENT STARTS HERE *
168 .\" -----------------------------------------------------------------
169 .SH "Name"
170 smb.conf \- The configuration file for the Samba suite
171 .SH "SYNOPSIS"
172 .PP
173 The
174 \FCsmb\&.conf\F[]
175 file is a configuration file for the Samba suite\&.
176 \FCsmb\&.conf\F[]
177 contains runtime configuration information for the Samba programs\&. The
178 \FCsmb\&.conf\F[]
179 file is designed to be configured and administered by the
180 \fBswat\fR(8)
181 program\&. The complete description of the file format and possible parameters held within are here for reference purposes\&.
182 .SH "FILE FORMAT"
183 .PP
184 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:
185 .sp
186 .if n \{\
187 .RS 4
188 .\}
189 .fam C
190 .ps -1
191 .nf
192 .if t \{\
193 .sp -1
194 .\}
195 .BB lightgray adjust-for-leading-newline
196 .sp -1
197
198 \fIname\fR = \fIvalue \fR
199 .EB lightgray adjust-for-leading-newline
200 .if t \{\
201 .sp 1
202 .\}
203 .fi
204 .fam
205 .ps +1
206 .if n \{\
207 .RE
208 .\}
209 .PP
210 The file is line\-based \- that is, each newline\-terminated line represents either a comment, a section name or a parameter\&.
211 .PP
212 Section and parameter names are not case sensitive\&.
213 .PP
214 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\&.
215 .PP
216 Any line beginning with a semicolon (\(lq;\(rq) or a hash (\(lq#\(rq) character is ignored, as are lines containing only whitespace\&.
217 .PP
218 Any line ending in a
219 \(lq\FC\e\F[]\(rq
220 is continued on the next line in the customary UNIX fashion\&.
221 .PP
222 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, 1/0 or true/false\&. Case is not significant in boolean values, but is preserved in string values\&. Some items such as create masks are numeric\&.
223 .SH "SECTION DESCRIPTIONS"
224 .PP
225 Each section in the configuration file (except for the [global] section) describes a shared resource (known as a
226 \(lqshare\(rq)\&. The section name is the name of the shared resource and the parameters within the section define the shares attributes\&.
227 .PP
228 There are three special sections, [global], [homes] and [printers], which are described under
229 \fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
230 .PP
231 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\&.
232 .PP
233 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)\&.
234 .PP
235 Sections may be designated
236 \fIguest\fR
237 services, in which case no password is required to access them\&. A specified UNIX
238 \fIguest account\fR
239 is used to define access privileges in this case\&.
240 .PP
241 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
242 \FCuser =\F[]
243 option in the share definition\&. For modern clients such as Windows 95/98/ME/NT/2000, this should not be necessary\&.
244 .PP
245 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\&.
246 .PP
247 The following sample section defines a file space share\&. The user has write access to the path
248 \FC/home/bar\F[]\&. The share is accessed via the share name
249 \FCfoo\F[]:
250 .sp
251 .if n \{\
252 .RS 4
253 .\}
254 .fam C
255 .ps -1
256 .nf
257 .if t \{\
258 .sp -1
259 .\}
260 .BB lightgray adjust-for-leading-newline
261 .sp -1
262
263         \fI[foo]\fR
264         \m[blue]\fBpath = /home/bar\fR\m[]
265         \m[blue]\fBread only = no\fR\m[]
266 .EB lightgray adjust-for-leading-newline
267 .if t \{\
268 .sp 1
269 .\}
270 .fi
271 .fam
272 .ps +1
273 .if n \{\
274 .RE
275 .\}
276 .PP
277 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
278 \fIguest ok\fR
279 parameter means access will be permitted as the default guest user (specified elsewhere):
280 .sp
281 .if n \{\
282 .RS 4
283 .\}
284 .fam C
285 .ps -1
286 .nf
287 .if t \{\
288 .sp -1
289 .\}
290 .BB lightgray adjust-for-leading-newline
291 .sp -1
292
293         \fI[aprinter]\fR
294         \m[blue]\fBpath = /usr/spool/public\fR\m[]
295         \m[blue]\fBread only = yes\fR\m[]
296         \m[blue]\fBprintable = yes\fR\m[]
297         \m[blue]\fBguest ok = yes\fR\m[]
298 .EB lightgray adjust-for-leading-newline
299 .if t \{\
300 .sp 1
301 .\}
302 .fi
303 .fam
304 .ps +1
305 .if n \{\
306 .RE
307 .\}
308 .sp
309 .SH "SPECIAL SECTIONS"
310 .SS "The [global] section"
311 .PP
312 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\&.
313 .SS "The [homes] section"
314 .PP
315 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\&.
316 .PP
317 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\&.
318 .PP
319 Some modifications are then made to the newly created share:
320 .sp
321 .RS 4
322 .ie n \{\
323 \h'-04'\(bu\h'+03'\c
324 .\}
325 .el \{\
326 .sp -1
327 .IP \(bu 2.3
328 .\}
329 The share name is changed from homes to the located username\&.
330 .RE
331 .sp
332 .RS 4
333 .ie n \{\
334 \h'-04'\(bu\h'+03'\c
335 .\}
336 .el \{\
337 .sp -1
338 .IP \(bu 2.3
339 .\}
340 If no path was given, the path is set to the user\'s home directory\&.
341 .sp
342 .RE
343 .PP
344 If you decide to use a
345 \fIpath =\fR
346 line in your [homes] section, it may be useful to use the %S macro\&. For example:
347 .sp
348 .if n \{\
349 .RS 4
350 .\}
351 .fam C
352 .ps -1
353 .nf
354 .if t \{\
355 .sp -1
356 .\}
357 .BB lightgray adjust-for-leading-newline
358 .sp -1
359
360 \fBpath = /data/pchome/%S\fR
361 .EB lightgray adjust-for-leading-newline
362 .if t \{\
363 .sp 1
364 .\}
365 .fi
366 .fam
367 .ps +1
368 .if n \{\
369 .RE
370 .\}
371 .sp
372 is useful if you have different home directories for your PCs than for UNIX access\&.
373 .PP
374 This is a fast and simple way to give a large number of clients access to their home directories with a minimum of fuss\&.
375 .PP
376 A similar process occurs if the requested section name is
377 \(lqhomes\(rq, 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\&.
378 .PP
379 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:
380 .sp
381 .if n \{\
382 .RS 4
383 .\}
384 .fam C
385 .ps -1
386 .nf
387 .if t \{\
388 .sp -1
389 .\}
390 .BB lightgray adjust-for-leading-newline
391 .sp -1
392
393 \fI[homes]\fR
394 \m[blue]\fBread only = no\fR\m[]
395 .EB lightgray adjust-for-leading-newline
396 .if t \{\
397 .sp 1
398 .\}
399 .fi
400 .fam
401 .ps +1
402 .if n \{\
403 .RE
404 .\}
405 .PP
406 An important point is that if guest access is specified in the [homes] section, all home directories will be visible to all clients
407 \fIwithout a password\fR\&. In the very unlikely event that this is actually desirable, it is wise to also specify
408 \fIread only access\fR\&.
409 .PP
410 The
411 \fIbrowseable\fR
412 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
413 \fIbrowseable = no\fR
414 in the [homes] section will hide the [homes] share but make any auto home directories visible\&.
415 .SS "The [printers] section"
416 .PP
417 This section works like [homes], but for printers\&.
418 .PP
419 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\&.
420 .PP
421 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\&.
422 .PP
423 A few modifications are then made to the newly created share:
424 .sp
425 .RS 4
426 .ie n \{\
427 \h'-04'\(bu\h'+03'\c
428 .\}
429 .el \{\
430 .sp -1
431 .IP \(bu 2.3
432 .\}
433 The share name is set to the located printer name
434 .RE
435 .sp
436 .RS 4
437 .ie n \{\
438 \h'-04'\(bu\h'+03'\c
439 .\}
440 .el \{\
441 .sp -1
442 .IP \(bu 2.3
443 .\}
444 If no printer name was given, the printer name is set to the located printer name
445 .RE
446 .sp
447 .RS 4
448 .ie n \{\
449 \h'-04'\(bu\h'+03'\c
450 .\}
451 .el \{\
452 .sp -1
453 .IP \(bu 2.3
454 .\}
455 If the share does not permit guest access and no username was given, the username is set to the located printer name\&.
456 .sp
457 .RE
458 .PP
459 The [printers] service MUST be printable \- if you specify otherwise, the server will refuse to load the configuration file\&.
460 .PP
461 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:
462 .sp
463 .if n \{\
464 .RS 4
465 .\}
466 .fam C
467 .ps -1
468 .nf
469 .if t \{\
470 .sp -1
471 .\}
472 .BB lightgray adjust-for-leading-newline
473 .sp -1
474
475 \fI[printers]\fR
476 \m[blue]\fBpath = /usr/spool/public\fR\m[]
477 \m[blue]\fBguest ok = yes\fR\m[]
478 \m[blue]\fBprintable = yes\fR\m[]
479 .EB lightgray adjust-for-leading-newline
480 .if t \{\
481 .sp 1
482 .\}
483 .fi
484 .fam
485 .ps +1
486 .if n \{\
487 .RE
488 .\}
489 .PP
490 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:
491 .sp
492 .if n \{\
493 .RS 4
494 .\}
495 .fam C
496 .ps -1
497 .nf
498 .if t \{\
499 .sp -1
500 .\}
501 .BB lightgray adjust-for-leading-newline
502 .sp -1
503
504 alias|alias|alias|alias\&.\&.\&.    
505 .EB lightgray adjust-for-leading-newline
506 .if t \{\
507 .sp 1
508 .\}
509 .fi
510 .fam
511 .ps +1
512 .if n \{\
513 .RE
514 .\}
515 .PP
516 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\&.
517 .PP
518 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 (\FC|\F[])\&.
519 .if n \{\
520 .sp
521 .\}
522 .RS 4
523 .BM yellow
524 .it 1 an-trap
525 .nr an-no-space-flag 1
526 .nr an-break-flag 1
527 .br
528 .ps +1
529 \fBNote\fR
530 .ps -1
531 .br
532 .PP
533 On SYSV systems which use lpstat to determine what printers are defined on the system you may be able to use
534 \FCprintcap name = lpstat\F[]
535 to automatically obtain a list of printers\&. See the
536 \FCprintcap name\F[]
537 option for more details\&.
538 .sp .5v
539 .EM yellow
540 .RE
541 .SH "USERSHARES"
542 .PP
543 Starting with Samba version 3\&.0\&.23 the capability for non\-root users to add, modify, and delete their own share definitions has been added\&. This capability is called
544 \fIusershares\fR
545 and is controlled by a set of parameters in the [global] section of the smb\&.conf\&. The relevant parameters are :
546 .PP
547 usershare allow guests
548 .RS 4
549 Controls if usershares can permit guest access\&.
550 .RE
551 .PP
552 usershare max shares
553 .RS 4
554 Maximum number of user defined shares allowed\&.
555 .RE
556 .PP
557 usershare owner only
558 .RS 4
559 If set only directories owned by the sharing user can be shared\&.
560 .RE
561 .PP
562 usershare path
563 .RS 4
564 Points to the directory containing the user defined share definitions\&. The filesystem permissions on this directory control who can create user defined shares\&.
565 .RE
566 .PP
567 usershare prefix allow list
568 .RS 4
569 Comma\-separated list of absolute pathnames restricting what directories can be shared\&. Only directories below the pathnames in this list are permitted\&.
570 .RE
571 .PP
572 usershare prefix deny list
573 .RS 4
574 Comma\-separated list of absolute pathnames restricting what directories can be shared\&. Directories below the pathnames in this list are prohibited\&.
575 .RE
576 .PP
577 usershare template share
578 .RS 4
579 Names a pre\-existing share used as a template for creating new usershares\&. All other share parameters not specified in the user defined share definition are copied from this named share\&.
580 .RE
581 .PP
582 To allow members of the UNIX group
583 \FCfoo\F[]
584 to create user defined shares, create the directory to contain the share definitions as follows:
585 .PP
586 Become root:
587 .sp
588 .if n \{\
589 .RS 4
590 .\}
591 .fam C
592 .ps -1
593 .nf
594 .if t \{\
595 .sp -1
596 .\}
597 .BB lightgray adjust-for-leading-newline
598 .sp -1
599
600 mkdir /usr/local/samba/lib/usershares
601 chgrp foo /usr/local/samba/lib/usershares
602 chmod 1770 /usr/local/samba/lib/usershares
603 .EB lightgray adjust-for-leading-newline
604 .if t \{\
605 .sp 1
606 .\}
607 .fi
608 .fam
609 .ps +1
610 .if n \{\
611 .RE
612 .\}
613 .PP
614 Then add the parameters
615 .sp
616 .if n \{\
617 .RS 4
618 .\}
619 .fam C
620 .ps -1
621 .nf
622 .if t \{\
623 .sp -1
624 .\}
625 .BB lightgray adjust-for-leading-newline
626 .sp -1
627
628         \m[blue]\fBusershare path = /usr/local/samba/lib/usershares\fR\m[]
629         \m[blue]\fBusershare max shares = 10\fR\m[] # (or the desired number of shares)
630 .EB lightgray adjust-for-leading-newline
631 .if t \{\
632 .sp 1
633 .\}
634 .fi
635 .fam
636 .ps +1
637 .if n \{\
638 .RE
639 .\}
640 .sp
641 to the global section of your
642 \FCsmb\&.conf\F[]\&. Members of the group foo may then manipulate the user defined shares using the following commands\&.
643 .PP
644 net usershare add sharename path [comment] [acl] [guest_ok=[y|n]]
645 .RS 4
646 To create or modify (overwrite) a user defined share\&.
647 .RE
648 .PP
649 net usershare delete sharename
650 .RS 4
651 To delete a user defined share\&.
652 .RE
653 .PP
654 net usershare list wildcard\-sharename
655 .RS 4
656 To list user defined shares\&.
657 .RE
658 .PP
659 net usershare info wildcard\-sharename
660 .RS 4
661 To print information about user defined shares\&.
662 .RE
663 .SH "PARAMETERS"
664 .PP
665 Parameters define the specific attributes of sections\&.
666 .PP
667 Some parameters are specific to the [global] section (e\&.g\&.,
668 \fIsecurity\fR)\&. Some parameters are usable in all sections (e\&.g\&.,
669 \fIcreate 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
670 \fIG\fR
671 in parentheses indicates that a parameter is specific to the [global] section\&. The letter
672 \fIS\fR
673 indicates that a parameter can be specified in a service specific section\&. All
674 \fIS\fR
675 parameters can also be specified in the [global] section \- in which case they will define the default behavior for all services\&.
676 .PP
677 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\&.
678 .SH "VARIABLE SUBSTITUTIONS"
679 .PP
680 Many of the strings that are settable in the config file can take substitutions\&. For example the option
681 \(lqpath = /tmp/%u\(rq
682 is interpreted as
683 \(lqpath = /tmp/john\(rq
684 if the user connected with the username john\&.
685 .PP
686 These substitutions are mostly noted in the descriptions below, but there are some general substitutions which apply whenever they might be relevant\&. These are:
687 .PP
688 %U
689 .RS 4
690 session username (the username that the client wanted, not necessarily the same as the one they got)\&.
691 .RE
692 .PP
693 %G
694 .RS 4
695 primary group name of %U\&.
696 .RE
697 .PP
698 %h
699 .RS 4
700 the Internet hostname that Samba is running on\&.
701 .RE
702 .PP
703 %m
704 .RS 4
705 the NetBIOS name of the client machine (very useful)\&.
706 .sp
707 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
708 \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\&.
709 .RE
710 .PP
711 %L
712 .RS 4
713 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
714 \(lqdual personality\(rq\&.
715 .RE
716 .PP
717 %M
718 .RS 4
719 the Internet name of the client machine\&.
720 .RE
721 .PP
722 %R
723 .RS 4
724 the selected protocol level after protocol negotiation\&. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1\&.
725 .RE
726 .PP
727 %d
728 .RS 4
729 the process id of the current server process\&.
730 .RE
731 .PP
732 %a
733 .RS 4
734 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), Windows XP 64\-bit(\fBWinXP64\fR), Windows 2003 including 2003R2 (\fBWin2K3\fR), and Windows Vista (\fBVista\fR)\&. Anything else will be known as
735 \fBUNKNOWN\fR\&.
736 .RE
737 .PP
738 %I
739 .RS 4
740 the IP address of the client machine\&.
741 .RE
742 .PP
743 %i
744 .RS 4
745 the local IP address to which a client connected\&.
746 .RE
747 .PP
748 %T
749 .RS 4
750 the current date and time\&.
751 .RE
752 .PP
753 %D
754 .RS 4
755 name of the domain or workgroup of the current user\&.
756 .RE
757 .PP
758 %w
759 .RS 4
760 the winbind separator\&.
761 .RE
762 .PP
763 %$(\fIenvvar\fR)
764 .RS 4
765 the value of the environment variable
766 \fIenvar\fR\&.
767 .RE
768 .PP
769 The following substitutes apply only to some configuration options (only those that are used when a connection has been established):
770 .PP
771 %S
772 .RS 4
773 the name of the current service, if any\&.
774 .RE
775 .PP
776 %P
777 .RS 4
778 the root directory of the current service, if any\&.
779 .RE
780 .PP
781 %u
782 .RS 4
783 username of the current service, if any\&.
784 .RE
785 .PP
786 %g
787 .RS 4
788 primary group name of %u\&.
789 .RE
790 .PP
791 %H
792 .RS 4
793 the home directory of the user given by %u\&.
794 .RE
795 .PP
796 %N
797 .RS 4
798 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
799 \fI\-\-with\-automount\fR
800 option, this value will be the same as %L\&.
801 .RE
802 .PP
803 %p
804 .RS 4
805 the path of the service\'s home directory, obtained from your NIS auto\&.map entry\&. The NIS auto\&.map entry is split up as
806 \FC%N:%p\F[]\&.
807 .RE
808 .PP
809 There are some quite creative things that can be done with these substitutions and other
810 \FCsmb\&.conf\F[]
811 options\&.
812 .SH "NAME MANGLING"
813 .PP
814 Samba supports
815 \FCname mangling\F[]
816 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\&.
817 .PP
818 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\&.
819 .PP
820 These options can be set separately for each service\&.
821 .PP
822 The options are:
823 .PP
824 case sensitive = yes/no/auto
825 .RS 4
826 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
827 \fIauto\fR\&.
828 .RE
829 .PP
830 default case = upper/lower
831 .RS 4
832 controls what the default case is for new filenames (ie\&. files that don\'t currently exist in the filesystem)\&. Default
833 \fIlower\fR\&. IMPORTANT NOTE: This option will be used to modify the case of
834 \fIall\fR
835 incoming client filenames, not just new filenames if the options
836 \m[blue]\fBcase sensitive = yes\fR\m[],
837 \m[blue]\fBpreserve case = No\fR\m[],
838 \m[blue]\fBshort preserve case = No\fR\m[]
839 are set\&. This change is needed as part of the optimisations for directories containing large numbers of files\&.
840 .RE
841 .PP
842 preserve case = yes/no
843 .RS 4
844 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
845 \FCdefault\F[]
846 case\&. Default
847 \fIyes\fR\&.
848 .RE
849 .PP
850 short preserve case = yes/no
851 .RS 4
852 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 the
853 \FCdefault\F[]
854 case\&. This option can be used with
855 \FCpreserve case = yes\F[]
856 to permit long filenames to retain their case, while short names are lowercased\&. Default
857 \fIyes\fR\&.
858 .RE
859 .PP
860 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\&.
861 .SH "NOTE ABOUT USERNAME/PASSWORD VALIDATION"
862 .PP
863 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\&.
864 .PP
865 If the service is marked
866 \(lqguest only = yes\(rq
867 and the server is running with share\-level security (\(lqsecurity = share\(rq, steps 1 to 5 are skipped\&.
868 .sp
869 .RS 4
870 .ie n \{\
871 \h'-04' 1.\h'+01'\c
872 .\}
873 .el \{\
874 .sp -1
875 .IP "  1." 4.2
876 .\}
877 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
878 \FC\e\eserver\eservice\F[]%\fIusername\fR
879 method of passing a username\&.
880 .RE
881 .sp
882 .RS 4
883 .ie n \{\
884 \h'-04' 2.\h'+01'\c
885 .\}
886 .el \{\
887 .sp -1
888 .IP "  2." 4.2
889 .\}
890 If the client has previously registered a username with the system and now supplies a correct password for that username, the connection is allowed\&.
891 .RE
892 .sp
893 .RS 4
894 .ie n \{\
895 \h'-04' 3.\h'+01'\c
896 .\}
897 .el \{\
898 .sp -1
899 .IP "  3." 4.2
900 .\}
901 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\&.
902 .RE
903 .sp
904 .RS 4
905 .ie n \{\
906 \h'-04' 4.\h'+01'\c
907 .\}
908 .el \{\
909 .sp -1
910 .IP "  4." 4.2
911 .\}
912 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\&.
913 .RE
914 .sp
915 .RS 4
916 .ie n \{\
917 \h'-04' 5.\h'+01'\c
918 .\}
919 .el \{\
920 .sp -1
921 .IP "  5." 4.2
922 .\}
923 If a
924 \FCuser = \F[]
925 field is given in the
926 \FCsmb\&.conf\F[]
927 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
928 \FCuser =\F[]
929 field, the connection is made as the username in the
930 \FCuser =\F[]
931 line\&. If one of the usernames in the
932 \FCuser =\F[]
933 list begins with a
934 \FC@\F[], that name expands to a list of names in the group of the same name\&.
935 .RE
936 .sp
937 .RS 4
938 .ie n \{\
939 \h'-04' 6.\h'+01'\c
940 .\}
941 .el \{\
942 .sp -1
943 .IP "  6." 4.2
944 .\}
945 If the service is a guest service, a connection is made as the username given in the
946 \FCguest account =\F[]
947 for the service, irrespective of the supplied password\&.
948 .RE
949 .SH "REGISTRY-BASED CONFIGURATION"
950 .PP
951 Starting with Samba version 3\&.2\&.0, the capability to store Samba configuration in the registry is available\&. The configuration is stored in the registry key
952 \fI\FCHKLM\eSoftware\eSamba\esmbconf\F[]\fR\&. There are two levels of registry configuration:
953 .sp
954 .RS 4
955 .ie n \{\
956 \h'-04' 1.\h'+01'\c
957 .\}
958 .el \{\
959 .sp -1
960 .IP "  1." 4.2
961 .\}
962 Share definitions stored in registry are used\&. This is triggered by setting the global parameter
963 \fIregistry shares\fR
964 to
965 \(lqyes\(rq
966 in
967 \fIsmb\&.conf\fR\&.
968 .sp
969 The registry shares are loaded not at startup but on demand at runtime by
970 \fIsmbd\fR\&. Shares defined in
971 \fIsmb\&.conf\fR
972 take priority over shares of the same name defined in registry\&.
973 .RE
974 .sp
975 .RS 4
976 .ie n \{\
977 \h'-04' 2.\h'+01'\c
978 .\}
979 .el \{\
980 .sp -1
981 .IP "  2." 4.2
982 .\}
983 Global
984 \fIsmb\&.conf\fR
985 options stored in registry are used\&. This can be activated in two different ways:
986 .sp
987 Firstly, a registry only configuration is triggered by setting
988 \m[blue]\fBconfig backend = registry\fR\m[]
989 in the [global] section of
990 \fIsmb\&.conf\fR\&. This resets everything that has been read from config files to this point and reads the content of the global configuration section from the registry\&. This is the recommended method of using registry based configuration\&.
991 .sp
992 Secondly, a mixed configuration can be activated by a special new meaning of the parameter
993 \m[blue]\fBinclude = registry\fR\m[]
994 in the [global] section of
995 \fIsmb\&.conf\fR\&. This reads the global options from registry with the same priorities as for an include of a text file\&. This may be especially useful in cases where an initial configuration is needed to access the registry\&.
996 .sp
997 Activation of global registry options automatically activates registry shares\&. So in the registry only case, shares are loaded on demand only\&.
998 .RE
999 .sp
1000 .RE
1001 .PP
1002 Note: To make registry\-based configurations foolproof at least to a certain extent, the use of
1003 \fIlock directory\fR
1004 and
1005 \fIconfig backend\fR
1006 inside the registry configuration has been disabled: Especially by changing the
1007 \fIlock directory\fR
1008 inside the registry configuration, one would create a broken setup where the daemons do not see the configuration they loaded once it is active\&.
1009 .PP
1010 The registry configuration can be accessed with tools like
1011 \fIregedit\fR
1012 or
1013 \fInet (rpc) registry\fR
1014 in the key
1015 \fI\FCHKLM\eSoftware\eSamba\esmbconf\F[]\fR\&. More conveniently, the
1016 \fIconf\fR
1017 subcommand of the
1018 \fBnet\fR(8)
1019 utility offers a dedicated interface to read and write the registry based configuration locally, i\&.e\&. directly accessing the database file, circumventing the server\&.
1020 .SH "EXPLANATION OF EACH PARAMETER"
1021
1022
1023 abort shutdown script (G)
1024 .\" abort shutdown script
1025 .PP
1026 .RS 4
1027 This a full path name to a script called by
1028 \fBsmbd\fR(8)
1029 that should stop a shutdown procedure issued by the
1030 \m[blue]\fBshutdown script\fR\m[]\&.
1031 .sp
1032 If the connected user posseses the
1033 \fBSeRemoteShutdownPrivilege\fR, right, this command will be run as root\&.
1034 .sp
1035 Default:
1036 \fI\fIabort shutdown script\fR\fR\fI = \fR\fI\FC""\F[]\fR\fI \fR
1037 .sp
1038 Example:
1039 \fI\fIabort shutdown script\fR\fR\fI = \fR\fI\FC/sbin/shutdown \-c\F[]\fR\fI \fR
1040 .RE
1041
1042 public
1043 .\" public
1044 .PP
1045 .RS 4
1046 This parameter is a synonym for
1047 access based share enum\&.
1048 .RE
1049
1050 access based share enum (S)
1051 .\" access based share enum
1052 .PP
1053 .RS 4
1054 If this parameter is
1055 \fByes\fR
1056 for a service, then the share hosted by the service will only be visible to users who have read or write access to the share during share enumeration (for example net view \e\esambaserver)\&. This has parallels to access based enumeration, the main difference being that only share permissions are evaluated, and security descriptors on files contained on the share are not used in computing enumeration access rights\&.
1057 .sp
1058 Default:
1059 \fI\fIaccess based share enum\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
1060 .RE
1061
1062 acl check permissions (S)
1063 .\" acl check permissions
1064 .PP
1065 .RS 4
1066 This boolean parameter controls what
1067 \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\&.
1068 .sp
1069 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 refresh\&. 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\&.
1070 .sp
1071 Default:
1072 \fI\fIacl check permissions\fR\fR\fI = \fR\fI\FCTrue\F[]\fR\fI \fR
1073 .RE
1074
1075 acl compatibility (G)
1076 .\" acl compatibility
1077 .PP
1078 .RS 4
1079 This parameter specifies what OS ACL semantics should be compatible with\&. Possible values are
1080 \fIwinnt\fR
1081 for Windows NT 4,
1082 \fIwin2k\fR
1083 for Windows 2000 and above and
1084 \fIauto\fR\&. If you specify
1085 \fIauto\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\&.
1086 .sp
1087 Default:
1088 \fI\fIacl compatibility\fR\fR\fI = \fR\fI\FCAuto\F[]\fR\fI \fR
1089 .sp
1090 Example:
1091 \fI\fIacl compatibility\fR\fR\fI = \fR\fI\FCwin2k\F[]\fR\fI \fR
1092 .RE
1093
1094 acl group control (S)
1095 .\" acl group control
1096 .PP
1097 .RS 4
1098 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
1099 \fIprimary group owner\fR
1100 of a file or directory to modify the permissions and ACLs on that file\&.
1101 .sp
1102 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\&.
1103 .sp
1104 This parameter allows Samba to also permit delegation of the control over a point in the exported directory hierarchy in much the same way as Windows\&. This allows all members of a UNIX group to control the permissions on a file or directory they have group ownership on\&.
1105 .sp
1106 This parameter is best used with the
1107 \m[blue]\fBinherit owner\fR\m[]
1108 option and also on on a share containing directories with the UNIX
1109 \fIsetgid bit\fR
1110 set on them, which causes new files and directories created within it to inherit the group ownership from the containing directory\&.
1111 .sp
1112 This is parameter has been was deprecated in Samba 3\&.0\&.23, but re\-activated in Samba 3\&.0\&.31 and above, as it now only controls permission changes if the user is in the owning primary group\&. It is now no longer equivalent to the
1113 \fIdos filemode\fR
1114 option\&.
1115 .sp
1116 Default:
1117 \fI\fIacl group control\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
1118 .RE
1119
1120 acl map full control (S)
1121 .\" acl map full control
1122 .PP
1123 .RS 4
1124 This boolean parameter controls whether
1125 \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\&.
1126 .sp
1127 Default:
1128 \fI\fIacl map full control\fR\fR\fI = \fR\fI\FCTrue\F[]\fR\fI \fR
1129 .RE
1130
1131 add group script (G)
1132 .\" add group script
1133 .PP
1134 .RS 4
1135 This is the full pathname to a script that will be run
1136 \fIAS ROOT\fR
1137 by
1138 \fBsmbd\fR(8)
1139 when a new group is requested\&. It will expand any
1140 \fI%g\fR
1141 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\&.
1142 .sp
1143 Default:
1144 \fI\fIadd group script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1145 .sp
1146 Example:
1147 \fI\fIadd group script\fR\fR\fI = \fR\fI\FC/usr/sbin/groupadd %g\F[]\fR\fI \fR
1148 .RE
1149
1150 add machine script (G)
1151 .\" add machine script
1152 .PP
1153 .RS 4
1154 This is the full pathname to a script that will be run by
1155 \fBsmbd\fR(8)
1156 when a machine is added to Samba\'s domain and a Unix account matching the machine\'s name appended with a "$" does not already exist\&.
1157 .sp
1158 This option is very similar to the
1159 \m[blue]\fBadd user script\fR\m[], and likewise uses the %u substitution for the account name\&. Do not use the %m substitution\&.
1160 .sp
1161 Default:
1162 \fI\fIadd machine script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1163 .sp
1164 Example:
1165 \fI\fIadd machine script\fR\fR\fI = \fR\fI\FC/usr/sbin/adduser \-n \-g machines \-c Machine \-d /var/lib/nobody \-s /bin/false %u\F[]\fR\fI \fR
1166 .RE
1167
1168 add port command (G)
1169 .\" add port command
1170 .PP
1171 .RS 4
1172 Samba 3\&.0\&.23 introduced support for adding printer ports remotely using the Windows "Add Standard TCP/IP Port Wizard"\&. This option defines an external program to be executed when smbd receives a request to add a new Port to the system\&. The script is passed two parameters:
1173 .sp
1174 .RS 4
1175 .ie n \{\
1176 \h'-04'\(bu\h'+03'\c
1177 .\}
1178 .el \{\
1179 .sp -1
1180 .IP \(bu 2.3
1181 .\}
1182 \fIport name\fR
1183 .RE
1184 .sp
1185 .RS 4
1186 .ie n \{\
1187 \h'-04'\(bu\h'+03'\c
1188 .\}
1189 .el \{\
1190 .sp -1
1191 .IP \(bu 2.3
1192 .\}
1193 \fIdevice URI\fR
1194 .sp
1195 .RE
1196 The deviceURI is in the for of socket://<hostname>[:<portnumber>] or lpd://<hostname>/<queuename>\&.
1197 .sp
1198 Default:
1199 \fI\fIadd port command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1200 .sp
1201 Example:
1202 \fI\fIadd port command\fR\fR\fI = \fR\fI\FC/etc/samba/scripts/addport\&.sh\F[]\fR\fI \fR
1203 .RE
1204
1205 addprinter command (G)
1206 .\" addprinter command
1207 .PP
1208 .RS 4
1209 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\&.
1210 .sp
1211 For a Samba host this means that the printer must be physically added to the underlying printing system\&. The
1212 \fIaddprinter command\fR
1213 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
1214 \FCsmb\&.conf\F[]
1215 file in order that it can be shared by
1216 \fBsmbd\fR(8)\&.
1217 .sp
1218 The
1219 \fIaddprinter command\fR
1220 is automatically invoked with the following parameter (in order):
1221 .sp
1222 .RS 4
1223 .ie n \{\
1224 \h'-04'\(bu\h'+03'\c
1225 .\}
1226 .el \{\
1227 .sp -1
1228 .IP \(bu 2.3
1229 .\}
1230 \fIprinter name\fR
1231 .RE
1232 .sp
1233 .RS 4
1234 .ie n \{\
1235 \h'-04'\(bu\h'+03'\c
1236 .\}
1237 .el \{\
1238 .sp -1
1239 .IP \(bu 2.3
1240 .\}
1241 \fIshare name\fR
1242 .RE
1243 .sp
1244 .RS 4
1245 .ie n \{\
1246 \h'-04'\(bu\h'+03'\c
1247 .\}
1248 .el \{\
1249 .sp -1
1250 .IP \(bu 2.3
1251 .\}
1252 \fIport name\fR
1253 .RE
1254 .sp
1255 .RS 4
1256 .ie n \{\
1257 \h'-04'\(bu\h'+03'\c
1258 .\}
1259 .el \{\
1260 .sp -1
1261 .IP \(bu 2.3
1262 .\}
1263 \fIdriver name\fR
1264 .RE
1265 .sp
1266 .RS 4
1267 .ie n \{\
1268 \h'-04'\(bu\h'+03'\c
1269 .\}
1270 .el \{\
1271 .sp -1
1272 .IP \(bu 2.3
1273 .\}
1274 \fIlocation\fR
1275 .RE
1276 .sp
1277 .RS 4
1278 .ie n \{\
1279 \h'-04'\(bu\h'+03'\c
1280 .\}
1281 .el \{\
1282 .sp -1
1283 .IP \(bu 2.3
1284 .\}
1285 \fIWindows 9x driver location\fR
1286 .sp
1287 .RE
1288 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\&.
1289 .sp
1290 Once the
1291 \fIaddprinter command\fR
1292 has been executed,
1293 \FCsmbd\F[]
1294 will reparse the
1295 \FC smb\&.conf\F[]
1296 to determine if the share defined by the APW exists\&. If the sharename is still invalid, then
1297 \FCsmbd \F[]
1298 will return an ACCESS_DENIED error to the client\&.
1299 .sp
1300 The
1301 \fIaddprinter command\fR
1302 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\&.
1303 .sp
1304 Default:
1305 \fI\fIaddprinter command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1306 .sp
1307 Example:
1308 \fI\fIaddprinter command\fR\fR\fI = \fR\fI\FC/usr/bin/addprinter\F[]\fR\fI \fR
1309 .RE
1310
1311 add share command (G)
1312 .\" add share command
1313 .PP
1314 .RS 4
1315 Samba 2\&.2\&.0 introduced the ability to dynamically add and delete shares via the Windows NT 4\&.0 Server Manager\&. The
1316 \fIadd share command\fR
1317 is used to define an external program or script which will add a new service definition to
1318 \FCsmb\&.conf\F[]\&.
1319 .sp
1320 In order to successfully execute the
1321 \fIadd share command\fR,
1322 \FCsmbd\F[]
1323 requires that the administrator connects using a root account (i\&.e\&. uid == 0) or has the
1324 \FCSeDiskOperatorPrivilege\F[]\&. Scripts defined in the
1325 \fIadd share command\fR
1326 parameter are executed as root\&.
1327 .sp
1328 When executed,
1329 \FCsmbd\F[]
1330 will automatically invoke the
1331 \fIadd share command\fR
1332 with five parameters\&.
1333 .sp
1334 .RS 4
1335 .ie n \{\
1336 \h'-04'\(bu\h'+03'\c
1337 .\}
1338 .el \{\
1339 .sp -1
1340 .IP \(bu 2.3
1341 .\}
1342 \fIconfigFile\fR
1343 \- the location of the global
1344 \FCsmb\&.conf\F[]
1345 file\&.
1346 .RE
1347 .sp
1348 .RS 4
1349 .ie n \{\
1350 \h'-04'\(bu\h'+03'\c
1351 .\}
1352 .el \{\
1353 .sp -1
1354 .IP \(bu 2.3
1355 .\}
1356 \fIshareName\fR
1357 \- the name of the new share\&.
1358 .RE
1359 .sp
1360 .RS 4
1361 .ie n \{\
1362 \h'-04'\(bu\h'+03'\c
1363 .\}
1364 .el \{\
1365 .sp -1
1366 .IP \(bu 2.3
1367 .\}
1368 \fIpathName\fR
1369 \- path to an **existing** directory on disk\&.
1370 .RE
1371 .sp
1372 .RS 4
1373 .ie n \{\
1374 \h'-04'\(bu\h'+03'\c
1375 .\}
1376 .el \{\
1377 .sp -1
1378 .IP \(bu 2.3
1379 .\}
1380 \fIcomment\fR
1381 \- comment string to associate with the new share\&.
1382 .RE
1383 .sp
1384 .RS 4
1385 .ie n \{\
1386 \h'-04'\(bu\h'+03'\c
1387 .\}
1388 .el \{\
1389 .sp -1
1390 .IP \(bu 2.3
1391 .\}
1392 \fImax connections\fR
1393 Number of maximum simultaneous connections to this share\&.
1394 .sp
1395 .RE
1396 This parameter is only used to add file shares\&. To add printer shares, see the
1397 \m[blue]\fBaddprinter command\fR\m[]\&.
1398 .sp
1399 Default:
1400 \fI\fIadd share command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1401 .sp
1402 Example:
1403 \fI\fIadd share command\fR\fR\fI = \fR\fI\FC/usr/local/bin/addshare\F[]\fR\fI \fR
1404 .RE
1405
1406 add user script (G)
1407 .\" add user script
1408 .PP
1409 .RS 4
1410 This is the full pathname to a script that will be run
1411 \fIAS ROOT\fR
1412 by
1413 \fBsmbd\fR(8)
1414 under special circumstances described below\&.
1415 .sp
1416 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
1417 \fION DEMAND\fR
1418 when a user accesses the Samba server\&.
1419 .sp
1420 In order to use this option,
1421 \fBsmbd\fR(8)
1422 must
1423 \fINOT\fR
1424 be set to
1425 \m[blue]\fBsecurity = share\fR\m[]
1426 and
1427 \m[blue]\fBadd user script\fR\m[]
1428 must be set to a full pathname for a script that will create a UNIX user given one argument of
1429 \fI%u\fR, which expands into the UNIX user name to create\&.
1430 .sp
1431 When the Windows user attempts to access the Samba server, at login (session setup in the SMB protocol) time,
1432 \fBsmbd\fR(8)
1433 contacts the
1434 \m[blue]\fBpassword server\fR\m[]
1435 and attempts to authenticate the given user with the given password\&. If the authentication succeeds then
1436 \FCsmbd\F[]
1437 attempts to find a UNIX user in the UNIX password database to map the Windows user into\&. If this lookup fails, and
1438 \m[blue]\fBadd user script\fR\m[]
1439 is set then
1440 \FCsmbd\F[]
1441 will call the specified script
1442 \fIAS ROOT\fR, expanding any
1443 \fI%u\fR
1444 argument to be the user name to create\&.
1445 .sp
1446 If this script successfully creates the user then
1447 \FCsmbd\F[]
1448 will continue on as though the UNIX user already existed\&. In this way, UNIX users are dynamically created to match existing Windows NT accounts\&.
1449 .sp
1450 See also
1451 \m[blue]\fBsecurity\fR\m[],
1452 \m[blue]\fBpassword server\fR\m[],
1453 \m[blue]\fBdelete user script\fR\m[]\&.
1454 .sp
1455 Default:
1456 \fI\fIadd user script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1457 .sp
1458 Example:
1459 \fI\fIadd user script\fR\fR\fI = \fR\fI\FC/usr/local/samba/bin/add_user %u\F[]\fR\fI \fR
1460 .RE
1461
1462 add user to group script (G)
1463 .\" add user to group script
1464 .PP
1465 .RS 4
1466 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
1467 \fBsmbd\fR(8)
1468 \fIAS ROOT\fR\&. Any
1469 \fI%g\fR
1470 will be replaced with the group name and any
1471 \fI%u\fR
1472 will be replaced with the user name\&.
1473 .sp
1474 Note that the
1475 \FCadduser\F[]
1476 command used in the example below does not support the used syntax on all systems\&.
1477 .sp
1478 Default:
1479 \fI\fIadd user to group script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1480 .sp
1481 Example:
1482 \fI\fIadd user to group script\fR\fR\fI = \fR\fI\FC/usr/sbin/adduser %u %g\F[]\fR\fI \fR
1483 .RE
1484
1485 administrative share (S)
1486 .\" administrative share
1487 .PP
1488 .RS 4
1489 If this parameter is set to
1490 \fByes\fR
1491 for a share, then the share will be an administrative share\&. The Administrative Shares are the default network shares created by all Windows NT\-based operating systems\&. These are shares like C$, D$ or ADMIN$\&. The type of these shares is STYPE_DISKTREE_HIDDEN\&.
1492 .sp
1493 See the section below on
1494 \m[blue]\fBsecurity\fR\m[]
1495 for more information about this option\&.
1496 .sp
1497 Default:
1498 \fI\fIadministrative share\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
1499 .RE
1500
1501 admin users (S)
1502 .\" admin users
1503 .PP
1504 .RS 4
1505 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)\&.
1506 .sp
1507 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\&.
1508 .sp
1509 This parameter will not work with the
1510 \m[blue]\fBsecurity = share\fR\m[]
1511 in Samba 3\&.0\&. This is by design\&.
1512 .sp
1513 Default:
1514 \fI\fIadmin users\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1515 .sp
1516 Example:
1517 \fI\fIadmin users\fR\fR\fI = \fR\fI\FCjason\F[]\fR\fI \fR
1518 .RE
1519
1520 afs share (S)
1521 .\" afs share
1522 .PP
1523 .RS 4
1524 This parameter controls whether special AFS features are enabled for this share\&. If enabled, it assumes that the directory exported via the
1525 \fIpath\fR
1526 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\&.
1527 .sp
1528 Default:
1529 \fI\fIafs share\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
1530 .RE
1531
1532 afs username map (G)
1533 .\" afs username map
1534 .PP
1535 .RS 4
1536 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\&.
1537 .sp
1538 The mapped user name must contain the cell name to log into, so without setting this parameter there will be no token\&.
1539 .sp
1540 Default:
1541 \fI\fIafs username map\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1542 .sp
1543 Example:
1544 \fI\fIafs username map\fR\fR\fI = \fR\fI\FC%u@afs\&.samba\&.org\F[]\fR\fI \fR
1545 .RE
1546
1547 aio read size (S)
1548 .\" aio read size
1549 .PP
1550 .RS 4
1551 If Samba has been built with asynchronous I/O support and this integer parameter is set to non\-zero value, Samba will read from file asynchronously when size of request is bigger than this value\&. Note that it happens only for non\-chained and non\-chaining reads and when not using write cache\&.
1552 .sp
1553 Current implementation of asynchronous I/O in Samba 3\&.0 does support only up to 10 outstanding asynchronous requests, read and write combined\&.
1554 .sp
1555 Related command:
1556 \m[blue]\fBwrite cache size\fR\m[]
1557 .sp
1558 Related command:
1559 \m[blue]\fBaio write size\fR\m[]
1560 .sp
1561 Default:
1562 \fI\fIaio read size\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
1563 .sp
1564 Example:
1565 \fI\fIaio read size\fR\fR\fI = \fR\fI\FC16384 # Use asynchronous I/O for reads bigger than 16KB request size\F[]\fR\fI \fR
1566 .RE
1567
1568 aio write size (S)
1569 .\" aio write size
1570 .PP
1571 .RS 4
1572 If Samba has been built with asynchronous I/O support and this integer parameter is set to non\-zero value, Samba will write to file asynchronously when size of request is bigger than this value\&. Note that it happens only for non\-chained and non\-chaining reads and when not using write cache\&.
1573 .sp
1574 Current implementation of asynchronous I/O in Samba 3\&.0 does support only up to 10 outstanding asynchronous requests, read and write combined\&.
1575 .sp
1576 Related command:
1577 \m[blue]\fBwrite cache size\fR\m[]
1578 .sp
1579 Related command:
1580 \m[blue]\fBaio read size\fR\m[]
1581 .sp
1582 Default:
1583 \fI\fIaio write size\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
1584 .sp
1585 Example:
1586 \fI\fIaio write size\fR\fR\fI = \fR\fI\FC16384 # Use asynchronous I/O for writes bigger than 16KB request size\F[]\fR\fI \fR
1587 .RE
1588
1589 algorithmic rid base (G)
1590 .\" algorithmic rid base
1591 .PP
1592 .RS 4
1593 This determines how Samba will use its algorithmic mapping from uids/gid to the RIDs needed to construct NT Security Identifiers\&.
1594 .sp
1595 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\&.
1596 .sp
1597 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 arbitrary\-rid supporting backends\&.
1598 .sp
1599 Default:
1600 \fI\fIalgorithmic rid base\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
1601 .sp
1602 Example:
1603 \fI\fIalgorithmic rid base\fR\fR\fI = \fR\fI\FC100000\F[]\fR\fI \fR
1604 .RE
1605
1606 allocation roundup size (S)
1607 .\" allocation roundup size
1608 .PP
1609 .RS 4
1610 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\&.
1611 .sp
1612 The integer parameter specifies the roundup size in bytes\&.
1613 .sp
1614 Default:
1615 \fI\fIallocation roundup size\fR\fR\fI = \fR\fI\FC1048576\F[]\fR\fI \fR
1616 .sp
1617 Example:
1618 \fI\fIallocation roundup size\fR\fR\fI = \fR\fI\FC0 # (to disable roundups)\F[]\fR\fI \fR
1619 .RE
1620
1621 allow trusted domains (G)
1622 .\" allow trusted domains
1623 .PP
1624 .RS 4
1625 This option only takes effect when the
1626 \m[blue]\fBsecurity\fR\m[]
1627 option is set to
1628 \fBserver\fR,
1629 \fBdomain\fR
1630 or
1631 \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\&.
1632 .sp
1633 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\&.
1634 .sp
1635 Default:
1636 \fI\fIallow trusted domains\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
1637 .RE
1638
1639 announce as (G)
1640 .\" announce as
1641 .PP
1642 .RS 4
1643 This specifies what type of server
1644 \fBnmbd\fR(8)
1645 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\&.
1646 .sp
1647 Default:
1648 \fI\fIannounce as\fR\fR\fI = \fR\fI\FCNT Server\F[]\fR\fI \fR
1649 .sp
1650 Example:
1651 \fI\fIannounce as\fR\fR\fI = \fR\fI\FCWin95\F[]\fR\fI \fR
1652 .RE
1653
1654 announce version (G)
1655 .\" announce version
1656 .PP
1657 .RS 4
1658 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\&.
1659 .sp
1660 Default:
1661 \fI\fIannounce version\fR\fR\fI = \fR\fI\FC4\&.9\F[]\fR\fI \fR
1662 .sp
1663 Example:
1664 \fI\fIannounce version\fR\fR\fI = \fR\fI\FC2\&.0\F[]\fR\fI \fR
1665 .RE
1666
1667 auth methods (G)
1668 .\" auth methods
1669 .PP
1670 .RS 4
1671 This option allows the administrator to chose what authentication methods
1672 \FCsmbd\F[]
1673 will use when authenticating a user\&. This option defaults to sensible values based on
1674 \m[blue]\fBsecurity\fR\m[]\&. 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\&.
1675 .sp
1676 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\&.
1677 .sp
1678 Possible options include
1679 \fBguest\fR
1680 (anonymous access),
1681 \fBsam\fR
1682 (lookups in local list of accounts based on netbios name or domain name),
1683 \fBwinbind\fR
1684 (relay authentication requests for remote users through winbindd),
1685 \fBntdomain\fR
1686 (pre\-winbindd method of authentication for remote domain users; deprecated in favour of winbind method),
1687 \fBtrustdomain\fR
1688 (authenticate trusted users by contacting the remote DC directly from smbd; deprecated in favour of winbind method)\&.
1689 .sp
1690 Default:
1691 \fI\fIauth methods\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1692 .sp
1693 Example:
1694 \fI\fIauth methods\fR\fR\fI = \fR\fI\FCguest sam winbind\F[]\fR\fI \fR
1695 .RE
1696
1697 available (S)
1698 .\" available
1699 .PP
1700 .RS 4
1701 This parameter lets you "turn off" a service\&. If
1702 \fIavailable = no\fR, then
1703 \fIALL\fR
1704 attempts to connect to the service will fail\&. Such failures are logged\&.
1705 .sp
1706 Default:
1707 \fI\fIavailable\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
1708 .RE
1709
1710 bind interfaces only (G)
1711 .\" bind interfaces only
1712 .PP
1713 .RS 4
1714 This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests\&. It affects file service
1715 \fBsmbd\fR(8)
1716 and name service
1717 \fBnmbd\fR(8)
1718 in a slightly different ways\&.
1719 .sp
1720 For name service it causes
1721 \FCnmbd\F[]
1722 to bind to ports 137 and 138 on the interfaces listed in the
1723 \m[blue]\fBinterfaces\fR\m[]
1724 parameter\&.
1725 \FCnmbd\F[]
1726 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
1727 \FCnmbd\F[]
1728 will service name requests on all of these sockets\&. If
1729 \m[blue]\fBbind interfaces only\fR\m[]
1730 is set then
1731 \FCnmbd\F[]
1732 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 the
1733 \m[blue]\fBinterfaces\fR\m[]
1734 parameter list\&. As unicast packets are received on the other sockets it allows
1735 \FCnmbd\F[]
1736 to refuse to serve names to machines that send packets that arrive through any interfaces not listed in the
1737 \m[blue]\fBinterfaces\fR\m[]
1738 list\&. IP Source address spoofing does defeat this simple check, however, so it must not be used seriously as a security feature for
1739 \FCnmbd\F[]\&.
1740 .sp
1741 For file service it causes
1742 \fBsmbd\fR(8)
1743 to bind only to the interface list given in the
1744 \m[blue]\fBinterfaces\fR\m[]
1745 parameter\&. This restricts the networks that
1746 \FCsmbd\F[]
1747 will serve, to packets coming in on 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\&.
1748 .sp
1749 If
1750 \m[blue]\fBbind interfaces only\fR\m[]
1751 is set and the network address
1752 \fI127\&.0\&.0\&.1\fR
1753 is not added to the
1754 \m[blue]\fBinterfaces\fR\m[]
1755 parameter list
1756 \fBsmbpasswd\fR(8)
1757 and
1758 \fBswat\fR(8)
1759 may not work as expected due to the reasons covered below\&.
1760 .sp
1761 To change a users SMB password, the
1762 \FCsmbpasswd\F[]
1763 by default connects to the
1764 \fIlocalhost \- 127\&.0\&.0\&.1\fR
1765 address as an SMB client to issue the password change request\&. If
1766 \m[blue]\fBbind interfaces only\fR\m[]
1767 is set then unless the network address
1768 \fI127\&.0\&.0\&.1\fR
1769 is added to the
1770 \m[blue]\fBinterfaces\fR\m[]
1771 parameter list then
1772 \FC smbpasswd\F[]
1773 will fail to connect in it\'s default mode\&.
1774 \FCsmbpasswd\F[]
1775 can be forced to use the primary IP interface of the local host by using its
1776 \fBsmbpasswd\fR(8)
1777 \fI\-r \fR\fI\fIremote machine\fR\fR
1778 parameter, with
1779 \fIremote machine\fR
1780 set to the IP name of the primary interface of the local host\&.
1781 .sp
1782 The
1783 \FCswat\F[]
1784 status page tries to connect with
1785 \FCsmbd\F[]
1786 and
1787 \FCnmbd\F[]
1788 at the address
1789 \fI127\&.0\&.0\&.1\fR
1790 to determine if they are running\&. Not adding
1791 \fI127\&.0\&.0\&.1\fR
1792 will cause
1793 \FC smbd\F[]
1794 and
1795 \FCnmbd\F[]
1796 to always show "not running" even if they really are\&. This can prevent
1797 \FC swat\F[]
1798 from starting/stopping/restarting
1799 \FCsmbd\F[]
1800 and
1801 \FCnmbd\F[]\&.
1802 .sp
1803 Default:
1804 \fI\fIbind interfaces only\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
1805 .RE
1806
1807 blocking locks (S)
1808 .\" blocking locks
1809 .PP
1810 .RS 4
1811 This parameter controls the behavior of
1812 \fBsmbd\fR(8)
1813 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\&.
1814 .sp
1815 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\&.
1816 .sp
1817 If this parameter is set to
1818 \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\&.
1819 .sp
1820 Default:
1821 \fI\fIblocking locks\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
1822 .RE
1823
1824 block size (S)
1825 .\" block size
1826 .PP
1827 .RS 4
1828 This parameter controls the behavior of
1829 \fBsmbd\fR(8)
1830 when reporting disk free sizes\&. By default, this reports a disk block size of 1024 bytes\&.
1831 .sp
1832 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\&.
1833 .sp
1834 Changing this option does not change the disk free reporting size, just the block size unit reported to the client\&.
1835 .sp
1836 Default:
1837 \fI\fIblock size\fR\fR\fI = \fR\fI\FC1024\F[]\fR\fI \fR
1838 .sp
1839 Example:
1840 \fI\fIblock size\fR\fR\fI = \fR\fI\FC4096\F[]\fR\fI \fR
1841 .RE
1842
1843 browsable
1844 .\" browsable
1845 .PP
1846 .RS 4
1847 This parameter is a synonym for
1848 browseable\&.
1849 .RE
1850
1851 browseable (S)
1852 .\" browseable
1853 .PP
1854 .RS 4
1855 This controls whether this share is seen in the list of available shares in a net view and in the browse list\&.
1856 .sp
1857 Default:
1858 \fI\fIbrowseable\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
1859 .RE
1860
1861 browse list (G)
1862 .\" browse list
1863 .PP
1864 .RS 4
1865 This controls whether
1866 \fBsmbd\fR(8)
1867 will serve a browse list to a client doing a
1868 \FCNetServerEnum\F[]
1869 call\&. Normally set to
1870 \fByes\fR\&. You should never need to change this\&.
1871 .sp
1872 Default:
1873 \fI\fIbrowse list\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
1874 .RE
1875
1876 casesignames
1877 .\" casesignames
1878 .PP
1879 .RS 4
1880 This parameter is a synonym for
1881 case sensitive\&.
1882 .RE
1883
1884 case sensitive (S)
1885 .\" case sensitive
1886 .PP
1887 .RS 4
1888 See the discussion in the section
1889 \m[blue]\fBname mangling\fR\m[]\&.
1890 .sp
1891 Default:
1892 \fI\fIcase sensitive\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
1893 .RE
1894
1895 change notify (S)
1896 .\" change notify
1897 .PP
1898 .RS 4
1899 This parameter specifies whether Samba should reply to a client\'s file change notify requests\&.
1900 .sp
1901 You should never need to change this parameter
1902 .sp
1903 Default:
1904 \fI\fIchange notify\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
1905 .RE
1906
1907 change share command (G)
1908 .\" change share command
1909 .PP
1910 .RS 4
1911 Samba 2\&.2\&.0 introduced the ability to dynamically add and delete shares via the Windows NT 4\&.0 Server Manager\&. The
1912 \fIchange share command\fR
1913 is used to define an external program or script which will modify an existing service definition in
1914 \FCsmb\&.conf\F[]\&.
1915 .sp
1916 In order to successfully execute the
1917 \fIchange share command\fR,
1918 \FCsmbd\F[]
1919 requires that the administrator connects using a root account (i\&.e\&. uid == 0) or has the
1920 \FCSeDiskOperatorPrivilege\F[]\&. Scripts defined in the
1921 \fIchange share command\fR
1922 parameter are executed as root\&.
1923 .sp
1924 When executed,
1925 \FCsmbd\F[]
1926 will automatically invoke the
1927 \fIchange share command\fR
1928 with five parameters\&.
1929 .sp
1930 .RS 4
1931 .ie n \{\
1932 \h'-04'\(bu\h'+03'\c
1933 .\}
1934 .el \{\
1935 .sp -1
1936 .IP \(bu 2.3
1937 .\}
1938 \fIconfigFile\fR
1939 \- the location of the global
1940 \FCsmb\&.conf\F[]
1941 file\&.
1942 .RE
1943 .sp
1944 .RS 4
1945 .ie n \{\
1946 \h'-04'\(bu\h'+03'\c
1947 .\}
1948 .el \{\
1949 .sp -1
1950 .IP \(bu 2.3
1951 .\}
1952 \fIshareName\fR
1953 \- the name of the new share\&.
1954 .RE
1955 .sp
1956 .RS 4
1957 .ie n \{\
1958 \h'-04'\(bu\h'+03'\c
1959 .\}
1960 .el \{\
1961 .sp -1
1962 .IP \(bu 2.3
1963 .\}
1964 \fIpathName\fR
1965 \- path to an **existing** directory on disk\&.
1966 .RE
1967 .sp
1968 .RS 4
1969 .ie n \{\
1970 \h'-04'\(bu\h'+03'\c
1971 .\}
1972 .el \{\
1973 .sp -1
1974 .IP \(bu 2.3
1975 .\}
1976 \fIcomment\fR
1977 \- comment string to associate with the new share\&.
1978 .RE
1979 .sp
1980 .RS 4
1981 .ie n \{\
1982 \h'-04'\(bu\h'+03'\c
1983 .\}
1984 .el \{\
1985 .sp -1
1986 .IP \(bu 2.3
1987 .\}
1988 \fImax connections\fR
1989 Number of maximum simultaneous connections to this share\&.
1990 .sp
1991 .RE
1992 This parameter is only used to modify existing file share definitions\&. To modify printer shares, use the "Printers\&.\&.\&." folder as seen when browsing the Samba host\&.
1993 .sp
1994 Default:
1995 \fI\fIchange share command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
1996 .sp
1997 Example:
1998 \fI\fIchange share command\fR\fR\fI = \fR\fI\FC/usr/local/bin/changeshare\F[]\fR\fI \fR
1999 .RE
2000
2001 check password script (G)
2002 .\" check password script
2003 .PP
2004 .RS 4
2005 The name of a program that can be used to check password complexity\&. The password is sent to the program\'s standard input\&.
2006 .sp
2007 The program must return 0 on a good password, or any other value if the password is bad\&. In case the password is considered weak (the program does not return 0) the user will be notified and the password change will fail\&.
2008 .sp
2009 Note: In the example directory is a sample program called
2010 \FCcrackcheck\F[]
2011 that uses cracklib to check the password quality\&.
2012 .sp
2013 Default:
2014 \fI\fIcheck password script\fR\fR\fI = \fR\fI\FCDisabled\F[]\fR\fI \fR
2015 .sp
2016 Example:
2017 \fI\fIcheck password script\fR\fR\fI = \fR\fI\FC/usr/local/sbin/crackcheck\F[]\fR\fI \fR
2018 .RE
2019
2020 client lanman auth (G)
2021 .\" client lanman auth
2022 .PP
2023 .RS 4
2024 This parameter determines whether or not
2025 \fBsmbclient\fR(8)
2026 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\&.
2027 .sp
2028 The LANMAN encrypted response is easily broken, due to its case\-insensitive nature, and the choice of algorithm\&. Clients without Windows 95/98 servers are advised to disable this option\&.
2029 .sp
2030 Disabling this option will also disable the
2031 \FCclient plaintext auth\F[]
2032 option\&.
2033 .sp
2034 Likewise, if the
2035 \FCclient ntlmv2 auth\F[]
2036 parameter is enabled, then only NTLMv2 logins will be attempted\&.
2037 .sp
2038 Default:
2039 \fI\fIclient lanman auth\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2040 .RE
2041
2042 client ldap sasl wrapping (G)
2043 .\" client ldap sasl wrapping
2044 .PP
2045 .RS 4
2046 The
2047 \m[blue]\fBclient ldap sasl wrapping\fR\m[]
2048 defines whether ldap traffic will be signed or signed and encrypted (sealed)\&. Possible values are
2049 \fIplain\fR,
2050 \fIsign\fR
2051 and
2052 \fIseal\fR\&.
2053 .sp
2054 The values
2055 \fIsign\fR
2056 and
2057 \fIseal\fR
2058 are only available if Samba has been compiled against a modern OpenLDAP version (2\&.3\&.x or higher)\&.
2059 .sp
2060 This option is needed in the case of Domain Controllers enforcing the usage of signed LDAP connections (e\&.g\&. Windows 2000 SP3 or higher)\&. LDAP sign and seal can be controlled with the registry key "\FCHKLM\eSystem\eCurrentControlSet\eServices\e\F[]
2061 \FCNTDS\eParameters\eLDAPServerIntegrity\F[]" on the Windows server side\&.
2062 .sp
2063 Depending on the used KRB5 library (MIT and older Heimdal versions) it is possible that the message "integrity only" is not supported\&. In this case,
2064 \fIsign\fR
2065 is just an alias for
2066 \fIseal\fR\&.
2067 .sp
2068 The default value is
2069 \fIplain\fR
2070 which is not irritable to KRB5 clock skew errors\&. That implies synchronizing the time with the KDC in the case of using
2071 \fIsign\fR
2072 or
2073 \fIseal\fR\&.
2074 .sp
2075 Default:
2076 \fI\fIclient ldap sasl wrapping\fR\fR\fI = \fR\fI\FCplain\F[]\fR\fI \fR
2077 .RE
2078
2079 client ntlmv2 auth (G)
2080 .\" client ntlmv2 auth
2081 .PP
2082 .RS 4
2083 This parameter determines whether or not
2084 \fBsmbclient\fR(8)
2085 will attempt to authenticate itself to servers using the NTLMv2 encrypted password response\&.
2086 .sp
2087 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\&.
2088 .sp
2089 Similarly, if enabled, NTLMv1,
2090 \FCclient lanman auth\F[]
2091 and
2092 \FCclient plaintext auth\F[]
2093 authentication will be disabled\&. This also disables share\-level authentication\&.
2094 .sp
2095 If disabled, an NTLM response (and possibly a LANMAN response) will be sent by the client, depending on the value of
2096 \FCclient lanman auth\F[]\&.
2097 .sp
2098 Note that some sites (particularly those following \'best practice\' security polices) only allow NTLMv2 responses, and not the weaker LM or NTLM\&.
2099 .sp
2100 Default:
2101 \fI\fIclient ntlmv2 auth\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2102 .RE
2103
2104 client plaintext auth (G)
2105 .\" client plaintext auth
2106 .PP
2107 .RS 4
2108 Specifies whether a client should send a plaintext password if the server does not support encrypted passwords\&.
2109 .sp
2110 Default:
2111 \fI\fIclient plaintext auth\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2112 .RE
2113
2114 client schannel (G)
2115 .\" client schannel
2116 .PP
2117 .RS 4
2118 This controls whether the client offers or even demands the use of the netlogon schannel\&.
2119 \m[blue]\fBclient schannel = no\fR\m[]
2120 does not offer the schannel,
2121 \m[blue]\fBclient schannel = auto\fR\m[]
2122 offers the schannel but does not enforce it, and
2123 \m[blue]\fBclient schannel = yes\fR\m[]
2124 denies access if the server is not able to speak netlogon schannel\&.
2125 .sp
2126 Default:
2127 \fI\fIclient schannel\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
2128 .sp
2129 Example:
2130 \fI\fIclient schannel\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
2131 .RE
2132
2133 client signing (G)
2134 .\" client signing
2135 .PP
2136 .RS 4
2137 This controls whether the client is allowed or required to use SMB signing\&. Possible values are
2138 \fIauto\fR,
2139 \fImandatory\fR
2140 and
2141 \fIdisabled\fR\&.
2142 .sp
2143 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\&.
2144 .sp
2145 Default:
2146 \fI\fIclient signing\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
2147 .RE
2148
2149 client use spnego (G)
2150 .\" client use spnego
2151 .PP
2152 .RS 4
2153 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\&.
2154 .sp
2155 Default:
2156 \fI\fIclient use spnego\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
2157 .RE
2158
2159 cluster addresses (G)
2160 .\" cluster addresses
2161 .PP
2162 .RS 4
2163 With this parameter you can add additional addresses nmbd will register with a WINS server\&. These addresses are not necessarily present on all nodes simultaneously, but they will be registered with the WINS server so that clients can contact any of the nodes\&.
2164 .sp
2165 Default:
2166 \fI\fIcluster addresses\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2167 .sp
2168 Example:
2169 \fI\fIcluster addresses\fR\fR\fI = \fR\fI\FC10\&.0\&.0\&.1 10\&.0\&.0\&.2 10\&.0\&.0\&.3\F[]\fR\fI \fR
2170 .RE
2171
2172 clustering (G)
2173 .\" clustering
2174 .PP
2175 .RS 4
2176 This parameter specifies whether Samba should contact ctdb for accessing its tdb files and use ctdb as a backend for its messaging backend\&.
2177 .sp
2178 Set this parameter to
2179 \FCyes\F[]
2180 only if you have a cluster setup with ctdb running\&.
2181 .sp
2182 Default:
2183 \fI\fIclustering\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2184 .RE
2185
2186 comment (S)
2187 .\" comment
2188 .PP
2189 .RS 4
2190 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
2191 \FCnet view\F[]
2192 to list what shares are available\&.
2193 .sp
2194 If you want to set the string that is displayed next to the machine name then see the
2195 \m[blue]\fBserver string\fR\m[]
2196 parameter\&.
2197 .sp
2198 Default:
2199 \fI\fIcomment\fR\fR\fI = \fR\fI\FC # No comment\F[]\fR\fI \fR
2200 .sp
2201 Example:
2202 \fI\fIcomment\fR\fR\fI = \fR\fI\FCFred\'s Files\F[]\fR\fI \fR
2203 .RE
2204
2205 config backend (G)
2206 .\" config backend
2207 .PP
2208 .RS 4
2209 This controls the backend for storing the configuration\&. Possible values are
2210 \fIfile\fR
2211 (the default) and
2212 \fIregistry\fR\&. When
2213 \m[blue]\fBconfig backend = registry\fR\m[]
2214 is encountered while loading
2215 \fIsmb\&.conf\fR, the configuration read so far is dropped and the global options are read from registry instead\&. So this triggers a registry only configuration\&. Share definitions are not read immediately but instead
2216 \fIregistry shares\fR
2217 is set to
2218 \fIyes\fR\&.
2219 .sp
2220 Note: This option can not be set inside the registry configuration itself\&.
2221 .sp
2222 Default:
2223 \fI\fIconfig backend\fR\fR\fI = \fR\fI\FCfile\F[]\fR\fI \fR
2224 .sp
2225 Example:
2226 \fI\fIconfig backend\fR\fR\fI = \fR\fI\FCregistry\F[]\fR\fI \fR
2227 .RE
2228
2229 config file (G)
2230 .\" config file
2231 .PP
2232 .RS 4
2233 This allows you to override the config file to use, instead of the default (usually
2234 \FCsmb\&.conf\F[])\&. There is a chicken and egg problem here as this option is set in the config file!
2235 .sp
2236 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\&.
2237 .sp
2238 This option takes the usual substitutions, which can be very useful\&.
2239 .sp
2240 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)\&.
2241 .sp
2242 \fINo default\fR
2243 .sp
2244 Example:
2245 \fI\fIconfig file\fR\fR\fI = \fR\fI\FC/usr/local/samba/lib/smb\&.conf\&.%m\F[]\fR\fI \fR
2246 .RE
2247
2248 copy (S)
2249 .\" copy
2250 .PP
2251 .RS 4
2252 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\&.
2253 .sp
2254 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\&.
2255 .sp
2256 Default:
2257 \fI\fIcopy\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2258 .sp
2259 Example:
2260 \fI\fIcopy\fR\fR\fI = \fR\fI\FCotherservice\F[]\fR\fI \fR
2261 .RE
2262
2263 create mode
2264 .\" create mode
2265 .PP
2266 .RS 4
2267 This parameter is a synonym for
2268 create mask\&.
2269 .RE
2270
2271 create mask (S)
2272 .\" create mask
2273 .PP
2274 .RS 4
2275 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
2276 \fInot\fR
2277 set here will be removed from the modes set on a file when it is created\&.
2278 .sp
2279 The default value of this parameter removes the
2280 \FCgroup\F[]
2281 and
2282 \FCother\F[]
2283 write and execute bits from the UNIX modes\&.
2284 .sp
2285 Following this Samba will bit\-wise \'OR\' the UNIX mode created from this parameter with the value of the
2286 \m[blue]\fBforce create mode\fR\m[]
2287 parameter which is set to 000 by default\&.
2288 .sp
2289 This parameter does not affect directory masks\&. See the parameter
2290 \m[blue]\fBdirectory mask\fR\m[]
2291 for details\&.
2292 .sp
2293 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
2294 \m[blue]\fBsecurity mask\fR\m[]\&.
2295 .sp
2296 Default:
2297 \fI\fIcreate mask\fR\fR\fI = \fR\fI\FC0744\F[]\fR\fI \fR
2298 .sp
2299 Example:
2300 \fI\fIcreate mask\fR\fR\fI = \fR\fI\FC0775\F[]\fR\fI \fR
2301 .RE
2302
2303 csc policy (S)
2304 .\" csc policy
2305 .PP
2306 .RS 4
2307 This stands for
2308 \fIclient\-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\&.
2309 .sp
2310 These values correspond to those used on Windows servers\&.
2311 .sp
2312 For example, shares containing roaming profiles can have offline caching disabled using
2313 \m[blue]\fBcsc policy = disable\fR\m[]\&.
2314 .sp
2315 Default:
2316 \fI\fIcsc policy\fR\fR\fI = \fR\fI\FCmanual\F[]\fR\fI \fR
2317 .sp
2318 Example:
2319 \fI\fIcsc policy\fR\fR\fI = \fR\fI\FCprograms\F[]\fR\fI \fR
2320 .RE
2321
2322 ctdbd socket (G)
2323 .\" ctdbd socket
2324 .PP
2325 .RS 4
2326 If you set
2327 \FCclustering=yes\F[], you need to tell Samba where ctdbd listens on its unix domain socket\&. The default path as of ctdb 1\&.0 is /tmp/ctdb\&.socket which you have to explicitly set for Samba in smb\&.conf\&.
2328 .sp
2329 Default:
2330 \fI\fIctdbd socket\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2331 .sp
2332 Example:
2333 \fI\fIctdbd socket\fR\fR\fI = \fR\fI\FC/tmp/ctdb\&.socket\F[]\fR\fI \fR
2334 .RE
2335
2336 cups connection timeout (G)
2337 .\" cups connection timeout
2338 .PP
2339 .RS 4
2340 This parameter is only applicable if
2341 \m[blue]\fBprinting\fR\m[]
2342 is set to
2343 \fBcups\fR\&.
2344 .sp
2345 If set, this option specifies the number of seconds that smbd will wait whilst trying to contact to the CUPS server\&. The connection will fail if it takes longer than this number of seconds\&.
2346 .sp
2347 Default:
2348 \fI\fIcups connection timeout\fR\fR\fI = \fR\fI\FC30\F[]\fR\fI \fR
2349 .sp
2350 Example:
2351 \fI\fIcups connection timeout\fR\fR\fI = \fR\fI\FC60\F[]\fR\fI \fR
2352 .RE
2353
2354 cups options (S)
2355 .\" cups options
2356 .PP
2357 .RS 4
2358 This parameter is only applicable if
2359 \m[blue]\fBprinting\fR\m[]
2360 is set to
2361 \fBcups\fR\&. Its value is a free form string of options passed directly to the cups library\&.
2362 .sp
2363 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\&. Multiple parameters should be space\-delimited name/value pairs according to the PAPI text option ABNF specification\&. Collection values ("name={a=\&.\&.\&. b=\&.\&.\&. c=\&.\&.\&.}") are stored with the curley brackets intact\&.
2364 .sp
2365 You should set this parameter to
2366 \fBraw\fR
2367 if your CUPS server
2368 \FCerror_log\F[]
2369 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
2370 \FC/etc/cups/mime\&.{convs,types}\F[]\&.
2371 .sp
2372 Default:
2373 \fI\fIcups options\fR\fR\fI = \fR\fI\FC""\F[]\fR\fI \fR
2374 .sp
2375 Example:
2376 \fI\fIcups options\fR\fR\fI = \fR\fI\FC"raw media=a4"\F[]\fR\fI \fR
2377 .RE
2378
2379 cups server (G)
2380 .\" cups server
2381 .PP
2382 .RS 4
2383 This parameter is only applicable if
2384 \m[blue]\fBprinting\fR\m[]
2385 is set to
2386 \fBcups\fR\&.
2387 .sp
2388 If set, this option overrides the ServerName option in the CUPS
2389 \FCclient\&.conf\F[]\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&.
2390 .sp
2391 Optionally, a port can be specified by separating the server name and port number with a colon\&. If no port was specified, the default port for IPP (631) will be used\&.
2392 .sp
2393 Default:
2394 \fI\fIcups server\fR\fR\fI = \fR\fI\FC""\F[]\fR\fI \fR
2395 .sp
2396 Example:
2397 \fI\fIcups server\fR\fR\fI = \fR\fI\FCmycupsserver\F[]\fR\fI \fR
2398 .sp
2399 Example:
2400 \fI\fIcups server\fR\fR\fI = \fR\fI\FCmycupsserver:1631\F[]\fR\fI \fR
2401 .RE
2402
2403 deadtime (G)
2404 .\" deadtime
2405 .PP
2406 .RS 4
2407 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\&.
2408 .sp
2409 This is useful to stop a server\'s resources being exhausted by a large number of inactive connections\&.
2410 .sp
2411 Most clients have an auto\-reconnect feature when a connection is broken so in most cases this parameter should be transparent to users\&.
2412 .sp
2413 Using this parameter with a timeout of a few minutes is recommended for most systems\&.
2414 .sp
2415 A deadtime of zero indicates that no auto\-disconnection should be performed\&.
2416 .sp
2417 Default:
2418 \fI\fIdeadtime\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
2419 .sp
2420 Example:
2421 \fI\fIdeadtime\fR\fR\fI = \fR\fI\FC15\F[]\fR\fI \fR
2422 .RE
2423
2424 debug class (G)
2425 .\" debug class
2426 .PP
2427 .RS 4
2428 With this boolean parameter enabled, the debug class (DBGC_CLASS) will be displayed in the debug header\&.
2429 .sp
2430 For more information about currently available debug classes, see section about
2431 \m[blue]\fBlog level\fR\m[]\&.
2432 .sp
2433 Default:
2434 \fI\fIdebug class\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2435 .RE
2436
2437 debug hires timestamp (G)
2438 .\" debug hires timestamp
2439 .PP
2440 .RS 4
2441 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\&.
2442 .sp
2443 Note that the parameter
2444 \m[blue]\fBdebug timestamp\fR\m[]
2445 must be on for this to have an effect\&.
2446 .sp
2447 Default:
2448 \fI\fIdebug hires timestamp\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2449 .RE
2450
2451 debug pid (G)
2452 .\" debug pid
2453 .PP
2454 .RS 4
2455 When using only one log file for more then one forked
2456 \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\&.
2457 .sp
2458 Note that the parameter
2459 \m[blue]\fBdebug timestamp\fR\m[]
2460 must be on for this to have an effect\&.
2461 .sp
2462 Default:
2463 \fI\fIdebug pid\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2464 .RE
2465
2466 debug prefix timestamp (G)
2467 .\" debug prefix timestamp
2468 .PP
2469 .RS 4
2470 With this option enabled, the timestamp message header is prefixed to the debug message without the filename and function information that is included with the
2471 \m[blue]\fBdebug timestamp\fR\m[]
2472 parameter\&. This gives timestamps to the messages without adding an additional line\&.
2473 .sp
2474 Note that this parameter overrides the
2475 \m[blue]\fBdebug timestamp\fR\m[]
2476 parameter\&.
2477 .sp
2478 Default:
2479 \fI\fIdebug prefix timestamp\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2480 .RE
2481
2482 timestamp logs
2483 .\" timestamp logs
2484 .PP
2485 .RS 4
2486 This parameter is a synonym for
2487 debug timestamp\&.
2488 .RE
2489
2490 debug timestamp (G)
2491 .\" debug timestamp
2492 .PP
2493 .RS 4
2494 Samba debug log messages are timestamped by default\&. If you are running at a high
2495 \m[blue]\fBdebug level\fR\m[]
2496 these timestamps can be distracting\&. This boolean parameter allows timestamping to be turned off\&.
2497 .sp
2498 Default:
2499 \fI\fIdebug timestamp\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
2500 .RE
2501
2502 debug uid (G)
2503 .\" debug uid
2504 .PP
2505 .RS 4
2506 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\&.
2507 .sp
2508 Note that the parameter
2509 \m[blue]\fBdebug timestamp\fR\m[]
2510 must be on for this to have an effect\&.
2511 .sp
2512 Default:
2513 \fI\fIdebug uid\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2514 .RE
2515
2516 dedicated keytab file (G)
2517 .\" dedicated keytab file
2518 .PP
2519 .RS 4
2520 Specifies the path to the kerberos keytab file when
2521 \m[blue]\fBkerberos method\fR\m[]
2522 is set to "dedicated keytab"\&.
2523 .sp
2524 Default:
2525 \fI\fIdedicated keytab file\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2526 .sp
2527 Example:
2528 \fI\fIdedicated keytab file\fR\fR\fI = \fR\fI\FC/usr/local/etc/krb5\&.keytab\F[]\fR\fI \fR
2529 .RE
2530
2531 default case (S)
2532 .\" default case
2533 .PP
2534 .RS 4
2535 See the section on
2536 \m[blue]\fBname mangling\fR\m[]\&. Also note the
2537 \m[blue]\fBshort preserve case\fR\m[]
2538 parameter\&.
2539 .sp
2540 Default:
2541 \fI\fIdefault case\fR\fR\fI = \fR\fI\FClower\F[]\fR\fI \fR
2542 .RE
2543
2544 default devmode (S)
2545 .\" default devmode
2546 .PP
2547 .RS 4
2548 This parameter is only applicable to
2549 \m[blue]\fBprintable\fR\m[]
2550 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\&.
2551 .sp
2552 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)\&.
2553 .sp
2554 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
2555 \FCdefault devmode = yes\F[]
2556 will instruct smbd to generate a default one\&.
2557 .sp
2558 For more information on Windows NT/2k printing and Device Modes, see the
2559 MSDN documentation\&.
2560 .sp
2561 Default:
2562 \fI\fIdefault devmode\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
2563 .RE
2564
2565 default
2566 .\" default
2567 .PP
2568 .RS 4
2569 This parameter is a synonym for
2570 default service\&.
2571 .RE
2572
2573 default service (G)
2574 .\" default service
2575 .PP
2576 .RS 4
2577 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
2578 \fINOT\fR
2579 given in the parameter value (see example below)\&.
2580 .sp
2581 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\&.
2582 .sp
2583 Typically the default service would be a
2584 \m[blue]\fBguest ok\fR\m[],
2585 \m[blue]\fBread\-only\fR\m[]
2586 service\&.
2587 .sp
2588 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
2589 \fI%S\fR
2590 to make a wildcard service\&.
2591 .sp
2592 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\&.
2593 .sp
2594 Default:
2595 \fI\fIdefault service\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2596 .sp
2597 Example:
2598 \fI\fIdefault service\fR\fR\fI = \fR\fI\FCpub\F[]\fR\fI \fR
2599 .RE
2600
2601 defer sharing violations (G)
2602 .\" defer sharing violations
2603 .PP
2604 .RS 4
2605 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\&.
2606 .sp
2607 UNIX by default does not have this behaviour\&.
2608 .sp
2609 There should be no reason to turn off this parameter, as it is designed to enable Samba to more correctly emulate Windows\&.
2610 .sp
2611 Default:
2612 \fI\fIdefer sharing violations\fR\fR\fI = \fR\fI\FCTrue\F[]\fR\fI \fR
2613 .RE
2614
2615 delete group script (G)
2616 .\" delete group script
2617 .PP
2618 .RS 4
2619 This is the full pathname to a script that will be run
2620 \fIAS ROOT\fR
2621 \fBsmbd\fR(8)
2622 when a group is requested to be deleted\&. It will expand any
2623 \fI%g\fR
2624 to the group name passed\&. This script is only useful for installations using the Windows NT domain administration tools\&.
2625 .sp
2626 Default:
2627 \fI\fIdelete group script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2628 .RE
2629
2630 deleteprinter command (G)
2631 .\" deleteprinter command
2632 .PP
2633 .RS 4
2634 With the introduction of MS\-RPC based printer support for Windows NT/2000 clients in Samba 2\&.2, it is now possible to delete a printer at run time by issuing the DeletePrinter() RPC call\&.
2635 .sp
2636 For a Samba host this means that the printer must be physically deleted from the underlying printing system\&. The
2637 \m[blue]\fBdeleteprinter command\fR\m[]
2638 defines a script to be run which will perform the necessary operations for removing the printer from the print system and from
2639 \FCsmb\&.conf\F[]\&.
2640 .sp
2641 The
2642 \m[blue]\fBdeleteprinter command\fR\m[]
2643 is automatically called with only one parameter:
2644 \m[blue]\fBprinter name\fR\m[]\&.
2645 .sp
2646 Once the
2647 \m[blue]\fBdeleteprinter command\fR\m[]
2648 has been executed,
2649 \FCsmbd\F[]
2650 will reparse the
2651 \FC smb\&.conf\F[]
2652 to check that the associated printer no longer exists\&. If the sharename is still valid, then
2653 \FCsmbd \F[]
2654 will return an ACCESS_DENIED error to the client\&.
2655 .sp
2656 Default:
2657 \fI\fIdeleteprinter command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2658 .sp
2659 Example:
2660 \fI\fIdeleteprinter command\fR\fR\fI = \fR\fI\FC/usr/bin/removeprinter\F[]\fR\fI \fR
2661 .RE
2662
2663 delete readonly (S)
2664 .\" delete readonly
2665 .PP
2666 .RS 4
2667 This parameter allows readonly files to be deleted\&. This is not normal DOS semantics, but is allowed by UNIX\&.
2668 .sp
2669 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\&.
2670 .sp
2671 Default:
2672 \fI\fIdelete readonly\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2673 .RE
2674
2675 delete share command (G)
2676 .\" delete share command
2677 .PP
2678 .RS 4
2679 Samba 2\&.2\&.0 introduced the ability to dynamically add and delete shares via the Windows NT 4\&.0 Server Manager\&. The
2680 \fIdelete share command\fR
2681 is used to define an external program or script which will remove an existing service definition from
2682 \FCsmb\&.conf\F[]\&.
2683 .sp
2684 In order to successfully execute the
2685 \fIdelete share command\fR,
2686 \FCsmbd\F[]
2687 requires that the administrator connects using a root account (i\&.e\&. uid == 0) or has the
2688 \FCSeDiskOperatorPrivilege\F[]\&. Scripts defined in the
2689 \fIdelete share command\fR
2690 parameter are executed as root\&.
2691 .sp
2692 When executed,
2693 \FCsmbd\F[]
2694 will automatically invoke the
2695 \fIdelete share command\fR
2696 with two parameters\&.
2697 .sp
2698 .RS 4
2699 .ie n \{\
2700 \h'-04'\(bu\h'+03'\c
2701 .\}
2702 .el \{\
2703 .sp -1
2704 .IP \(bu 2.3
2705 .\}
2706 \fIconfigFile\fR
2707 \- the location of the global
2708 \FCsmb\&.conf\F[]
2709 file\&.
2710 .RE
2711 .sp
2712 .RS 4
2713 .ie n \{\
2714 \h'-04'\(bu\h'+03'\c
2715 .\}
2716 .el \{\
2717 .sp -1
2718 .IP \(bu 2.3
2719 .\}
2720 \fIshareName\fR
2721 \- the name of the existing service\&.
2722 .sp
2723 .RE
2724 This parameter is only used to remove file shares\&. To delete printer shares, see the
2725 \m[blue]\fBdeleteprinter command\fR\m[]\&.
2726 .sp
2727 Default:
2728 \fI\fIdelete share command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2729 .sp
2730 Example:
2731 \fI\fIdelete share command\fR\fR\fI = \fR\fI\FC/usr/local/bin/delshare\F[]\fR\fI \fR
2732 .RE
2733
2734 delete user from group script (G)
2735 .\" delete user from group script
2736 .PP
2737 .RS 4
2738 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
2739 \fBsmbd\fR(8)
2740 \fIAS ROOT\fR\&. Any
2741 \fI%g\fR
2742 will be replaced with the group name and any
2743 \fI%u\fR
2744 will be replaced with the user name\&.
2745 .sp
2746 Default:
2747 \fI\fIdelete user from group script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2748 .sp
2749 Example:
2750 \fI\fIdelete user from group script\fR\fR\fI = \fR\fI\FC/usr/sbin/deluser %u %g\F[]\fR\fI \fR
2751 .RE
2752
2753 delete user script (G)
2754 .\" delete user script
2755 .PP
2756 .RS 4
2757 This is the full pathname to a script that will be run by
2758 \fBsmbd\fR(8)
2759 when managing users with remote RPC (NT) tools\&.
2760 .sp
2761 This script is called when a remote client removes a user from the server, normally using \'User Manager for Domains\' or
2762 \FCrpcclient\F[]\&.
2763 .sp
2764 This script should delete the given UNIX username\&.
2765 .sp
2766 Default:
2767 \fI\fIdelete user script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
2768 .sp
2769 Example:
2770 \fI\fIdelete user script\fR\fR\fI = \fR\fI\FC/usr/local/samba/bin/del_user %u\F[]\fR\fI \fR
2771 .RE
2772
2773 delete veto files (S)
2774 .\" delete veto files
2775 .PP
2776 .RS 4
2777 This option is used when Samba is attempting to delete a directory that contains one or more vetoed directories (see the
2778 \m[blue]\fBveto files\fR\m[]
2779 option)\&. If this option is set to
2780 \fBno\fR
2781 (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\&.
2782 .sp
2783 If this option is set to
2784 \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\&.
2785 \FC\&.AppleDouble\F[])
2786 .sp
2787 Setting
2788 \m[blue]\fBdelete veto files = yes\fR\m[]
2789 allows these directories to be transparently deleted when the parent directory is deleted (so long as the user has permissions to do so)\&.
2790 .sp
2791 Default:
2792 \fI\fIdelete veto files\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2793 .RE
2794
2795 dfree cache time (S)
2796 .\" dfree cache time
2797 .PP
2798 .RS 4
2799 The
2800 \fIdfree cache time\fR
2801 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\&.
2802 .sp
2803 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
2804 \m[blue]\fBdfree command\fR\m[]
2805 scripts increasing the load\&.
2806 .sp
2807 By default this parameter is zero, meaning no caching will be done\&.
2808 .sp
2809 \fINo default\fR
2810 .sp
2811 Example:
2812 \fI\fIdfree cache time\fR\fR\fI = \fR\fI\FCdfree cache time = 60\F[]\fR\fI \fR
2813 .RE
2814
2815 dfree command (S)
2816 .\" dfree command
2817 .PP
2818 .RS 4
2819 The
2820 \fIdfree command\fR
2821 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\&.
2822 .sp
2823 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\&.
2824 .sp
2825 In Samba version 3\&.0\&.21 this parameter has been changed to be a per\-share parameter, and in addition the parameter
2826 \m[blue]\fBdfree cache time\fR\m[]
2827 was added to allow the output of this script to be cached for systems under heavy load\&.
2828 .sp
2829 The external program will be passed a single parameter indicating a directory in the filesystem being queried\&. This will typically consist of the string
2830 \FC\&./\F[]\&. 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\&.
2831 .sp
2832 Note: Your script should
2833 \fINOT\fR
2834 be setuid or setgid and should be owned by (and writeable only by) root!
2835 .sp
2836 Where the script dfree (which must be made executable) could be:
2837 .sp
2838 .if n \{\
2839 .RS 4
2840 .\}
2841 .fam C
2842 .ps -1
2843 .nf
2844 .BB lightgray
2845  
2846 #!/bin/sh
2847 df $1 | tail \-1 | awk \'{print $(NF\-4),$(NF\-2)}\'
2848 .EB lightgray
2849 .fi
2850 .fam
2851 .ps +1
2852 .if n \{\
2853 .RE
2854 .\}
2855 .sp
2856 or perhaps (on Sys V based systems):
2857 .sp
2858 .if n \{\
2859 .RS 4
2860 .\}
2861 .fam C
2862 .ps -1
2863 .nf
2864 .BB lightgray
2865  
2866 #!/bin/sh
2867 /usr/bin/df \-k $1 | tail \-1 | awk \'{print $3" "$5}\'
2868 .EB lightgray
2869 .fi
2870 .fam
2871 .ps +1
2872 .if n \{\
2873 .RE
2874 .\}
2875 .sp
2876 Note that you may have to replace the command names with full path names on some systems\&.
2877 .sp
2878 By default internal routines for determining the disk capacity and remaining space will be used\&.
2879 .sp
2880 \fINo default\fR
2881 .sp
2882 Example:
2883 \fI\fIdfree command\fR\fR\fI = \fR\fI\FC/usr/local/samba/bin/dfree\F[]\fR\fI \fR
2884 .RE
2885
2886 directory mode
2887 .\" directory mode
2888 .PP
2889 .RS 4
2890 This parameter is a synonym for
2891 directory mask\&.
2892 .RE
2893
2894 directory mask (S)
2895 .\" directory mask
2896 .PP
2897 .RS 4
2898 This parameter is the octal modes which are used when converting DOS modes to UNIX modes when creating UNIX directories\&.
2899 .sp
2900 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
2901 \fInot\fR
2902 set here will be removed from the modes set on a directory when it is created\&.
2903 .sp
2904 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\&.
2905 .sp
2906 Following this Samba will bit\-wise \'OR\' the UNIX mode created from this parameter with the value of the
2907 \m[blue]\fBforce directory mode\fR\m[]
2908 parameter\&. This parameter is set to 000 by default (i\&.e\&. no extra mode bits are added)\&.
2909 .sp
2910 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
2911 \m[blue]\fBdirectory security mask\fR\m[]\&.
2912 .sp
2913 Default:
2914 \fI\fIdirectory mask\fR\fR\fI = \fR\fI\FC0755\F[]\fR\fI \fR
2915 .sp
2916 Example:
2917 \fI\fIdirectory mask\fR\fR\fI = \fR\fI\FC0775\F[]\fR\fI \fR
2918 .RE
2919
2920 directory security mask (S)
2921 .\" directory security mask
2922 .PP
2923 .RS 4
2924 This parameter controls what UNIX permission bits will be set when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog box\&.
2925 .sp
2926 This parameter is applied as a mask (AND\'ed with) to the incoming permission bits, thus resetting any bits not in this mask\&. Make sure not to mix up this parameter with
2927 \m[blue]\fBforce directory security mode\fR\m[], which works similar like this one but uses logical OR instead of AND\&. Essentially, zero bits in this mask are a set of bits that will always be set to zero\&.
2928 .sp
2929 Essentially, all bits set to zero in this mask will result in setting to zero the corresponding bits on the file permissions regardless of the previous status of this bits on the file\&.
2930 .sp
2931 If not set explicitly this parameter is set to 0777 meaning a user is allowed to set all the user/group/world permissions on a directory\&.
2932 .sp
2933 \fINote\fR
2934 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
2935 \fB0777\fR\&.
2936 .sp
2937 Default:
2938 \fI\fIdirectory security mask\fR\fR\fI = \fR\fI\FC0777\F[]\fR\fI \fR
2939 .sp
2940 Example:
2941 \fI\fIdirectory security mask\fR\fR\fI = \fR\fI\FC0700\F[]\fR\fI \fR
2942 .RE
2943
2944 disable netbios (G)
2945 .\" disable netbios
2946 .PP
2947 .RS 4
2948 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\&.
2949 .if n \{\
2950 .sp
2951 .\}
2952 .RS 4
2953 .BM yellow
2954 .it 1 an-trap
2955 .nr an-no-space-flag 1
2956 .nr an-break-flag 1
2957 .br
2958 .ps +1
2959 \fBNote\fR
2960 .ps -1
2961 .br
2962 Clients that only support netbios won\'t be able to see your samba server when netbios support is disabled\&.
2963 .sp .5v
2964 .EM yellow
2965 .RE
2966 Default:
2967 \fI\fIdisable netbios\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2968 .RE
2969
2970 disable spoolss (G)
2971 .\" disable spoolss
2972 .PP
2973 .RS 4
2974 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 unaffected 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\&.
2975 \fIBe very careful about enabling this parameter\&.\fR
2976 .sp
2977 Default:
2978 \fI\fIdisable spoolss\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
2979 .RE
2980
2981 display charset (G)
2982 .\" display charset
2983 .PP
2984 .RS 4
2985 Specifies the charset that samba will use to print messages to stdout and stderr\&. The default value is "LOCALE", which means automatically set, depending on the current locale\&. The value should generally be the same as the value of the parameter
2986 \m[blue]\fBunix charset\fR\m[]\&.
2987 .sp
2988 Default:
2989 \fI\fIdisplay charset\fR\fR\fI = \fR\fI\FC"LOCALE" or "ASCII" (depending on the system)\F[]\fR\fI \fR
2990 .sp
2991 Example:
2992 \fI\fIdisplay charset\fR\fR\fI = \fR\fI\FCUTF8\F[]\fR\fI \fR
2993 .RE
2994
2995 dmapi support (S)
2996 .\" dmapi support
2997 .PP
2998 .RS 4
2999 This parameter specifies whether Samba should use DMAPI to determine whether a file is offline or not\&. This would typically be used in conjunction with a hierarchical storage system that automatically migrates files to tape\&.
3000 .sp
3001 Note that Samba infers the status of a file by examining the events that a DMAPI application has registered interest in\&. This heuristic is satisfactory for a number of hierarchical storage systems, but there may be system for which it will fail\&. In this case, Samba may erroneously report files to be offline\&.
3002 .sp
3003 This parameter is only available if a supported DMAPI implementation was found at compilation time\&. It will only be used if DMAPI is found to enabled on the system at run time\&.
3004 .sp
3005 Default:
3006 \fI\fIdmapi support\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3007 .RE
3008
3009 dns proxy (G)
3010 .\" dns proxy
3011 .PP
3012 .RS 4
3013 Specifies that
3014 \fBnmbd\fR(8)
3015 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\&.
3016 .sp
3017 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\&.
3018 .sp
3019 \FCnmbd\F[]
3020 spawns a second copy of itself to do the DNS name lookup requests, as doing a name lookup is a blocking action\&.
3021 .sp
3022 Default:
3023 \fI\fIdns proxy\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3024 .RE
3025
3026 domain logons (G)
3027 .\" domain logons
3028 .PP
3029 .RS 4
3030 If set to
3031 \fByes\fR, the Samba server will provide the netlogon service for Windows 9X network logons for the
3032 \m[blue]\fBworkgroup\fR\m[]
3033 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\&.
3034 .sp
3035 Default:
3036 \fI\fIdomain logons\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3037 .RE
3038
3039 domain master (G)
3040 .\" domain master
3041 .PP
3042 .RS 4
3043 Tell
3044 \fBsmbd\fR(8)
3045 to enable WAN\-wide browse list collation\&. Setting this option causes
3046 \FCnmbd\F[]
3047 to claim a special domain specific NetBIOS name that identifies it as a domain master browser for its given
3048 \m[blue]\fBworkgroup\fR\m[]\&. Local master browsers in the same
3049 \m[blue]\fBworkgroup\fR\m[]
3050 on broadcast\-isolated subnets will give this
3051 \FCnmbd\F[]
3052 their local browse lists, and then ask
3053 \fBsmbd\fR(8)
3054 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\&.
3055 .sp
3056 Note that Windows NT Primary Domain Controllers expect to be able to claim this
3057 \m[blue]\fBworkgroup\fR\m[]
3058 specific special NetBIOS name that identifies them as domain master browsers for that
3059 \m[blue]\fBworkgroup\fR\m[]
3060 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
3061 \FCnmbd\F[]
3062 claims the special name for a
3063 \m[blue]\fBworkgroup\fR\m[]
3064 before a Windows NT PDC is able to do so then cross subnet browsing will behave strangely and may fail\&.
3065 .sp
3066 If
3067 \m[blue]\fBdomain logons = yes\fR\m[], then the default behavior is to enable the
3068 \m[blue]\fBdomain master\fR\m[]
3069 parameter\&. If
3070 \m[blue]\fBdomain logons\fR\m[]
3071 is not enabled (the default setting), then neither will
3072 \m[blue]\fBdomain master\fR\m[]
3073 be enabled by default\&.
3074 .sp
3075 When
3076 \m[blue]\fBdomain logons = Yes\fR\m[]
3077 the default setting for this parameter is Yes, with the result that Samba will be a PDC\&. If
3078 \m[blue]\fBdomain master = No\fR\m[], Samba will function as a BDC\&. In general, this parameter should be set to \'No\' only on a BDC\&.
3079 .sp
3080 Default:
3081 \fI\fIdomain master\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
3082 .RE
3083
3084 dont descend (S)
3085 .\" dont descend
3086 .PP
3087 .RS 4
3088 There are certain directories on some systems (e\&.g\&., the
3089 \FC/proc\F[]
3090 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\&.
3091 .sp
3092 Note that Samba can be very fussy about the exact format of the "dont descend" entries\&. For example you may need
3093 \FC \&./proc\F[]
3094 instead of just
3095 \FC/proc\F[]\&. Experimentation is the best policy :\-)
3096 .sp
3097 Default:
3098 \fI\fIdont descend\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3099 .sp
3100 Example:
3101 \fI\fIdont descend\fR\fR\fI = \fR\fI\FC/proc,/dev\F[]\fR\fI \fR
3102 .RE
3103
3104 dos charset (G)
3105 .\" dos charset
3106 .PP
3107 .RS 4
3108 DOS SMB clients assume the server has the same charset as they do\&. This option specifies which charset Samba should talk to DOS clients\&.
3109 .sp
3110 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
3111 \fBtestparm\fR(1)
3112 to check the default on your system\&.
3113 .sp
3114 \fINo default\fR
3115 .RE
3116
3117 dos filemode (S)
3118 .\" dos filemode
3119 .PP
3120 .RS 4
3121 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, including an ACL permission) to modify the permissions (including ACL) 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 may also be changed\&.
3122 .sp
3123 Default:
3124 \fI\fIdos filemode\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3125 .RE
3126
3127 dos filetime resolution (S)
3128 .\" dos filetime resolution
3129 .PP
3130 .RS 4
3131 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
3132 \fBsmbd\fR(8)\&.
3133 .sp
3134 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\&.
3135 .sp
3136 Default:
3137 \fI\fIdos filetime resolution\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3138 .RE
3139
3140 dos filetimes (S)
3141 .\" dos filetimes
3142 .PP
3143 .RS 4
3144 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
3145 \FCsmbd\F[]
3146 is acting on behalf of is not the file owner\&. Setting this option to
3147 \fB yes\fR
3148 allows DOS semantics and
3149 \fBsmbd\fR(8)
3150 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\&.
3151 .sp
3152 Default:
3153 \fI\fIdos filetimes\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3154 .RE
3155
3156 ea support (S)
3157 .\" ea support
3158 .PP
3159 .RS 4
3160 This boolean parameter controls whether
3161 \fBsmbd\fR(8)
3162 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\&.
3163 .sp
3164 Default:
3165 \fI\fIea support\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3166 .RE
3167
3168 enable asu support (G)
3169 .\" enable asu support
3170 .PP
3171 .RS 4
3172 Hosts running the "Advanced Server for Unix (ASU)" product require some special accomodations such as creating a builtin [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\&.
3173 .sp
3174 Default:
3175 \fI\fIenable asu support\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3176 .RE
3177
3178 enable privileges (G)
3179 .\" enable privileges
3180 .PP
3181 .RS 4
3182 This parameter controls whether or not smbd will honor privileges assigned to specific SIDs via either
3183 \FCnet rpc rights\F[]
3184 or one of the Windows user and group manager tools\&. This parameter is enabled by default\&. It can be disabled 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\&.
3185 .sp
3186 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\&.
3187 .sp
3188 Please read the extended description provided in the Samba HOWTO documentation\&.
3189 .sp
3190 Default:
3191 \fI\fIenable privileges\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3192 .RE
3193
3194 encrypt passwords (G)
3195 .\" encrypt passwords
3196 .PP
3197 .RS 4
3198 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\&.
3199 .sp
3200 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 encrypted 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\&.
3201 .sp
3202 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\&.
3203 .sp
3204 In order for encrypted passwords to work correctly
3205 \fBsmbd\fR(8)
3206 must either have access to a local
3207 \fBsmbpasswd\fR(5)
3208 file (see the
3209 \fBsmbpasswd\fR(8)
3210 program for information on how to set up and maintain this file), or set the
3211 \m[blue]\fBsecurity = [server|domain|ads]\fR\m[]
3212 parameter which causes
3213 \FCsmbd\F[]
3214 to authenticate against another server\&.
3215 .sp
3216 Default:
3217 \fI\fIencrypt passwords\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3218 .RE
3219
3220 enhanced browsing (G)
3221 .\" enhanced browsing
3222 .PP
3223 .RS 4
3224 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\&.
3225 .sp
3226 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\&.
3227 .sp
3228 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\&.
3229 .sp
3230 In general you should leave this option enabled as it makes cross\-subnet browse propagation much more reliable\&.
3231 .sp
3232 Default:
3233 \fI\fIenhanced browsing\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3234 .RE
3235
3236 enumports command (G)
3237 .\" enumports command
3238 .PP
3239 .RS 4
3240 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 (\FCsmbd \F[]
3241 does not use a port name for anything) other than the default
3242 \fB"Samba Printer Port"\fR, you can define
3243 \fIenumports command\fR
3244 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\&.
3245 .sp
3246 Default:
3247 \fI\fIenumports command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3248 .sp
3249 Example:
3250 \fI\fIenumports command\fR\fR\fI = \fR\fI\FC/usr/bin/listports\F[]\fR\fI \fR
3251 .RE
3252
3253 eventlog list (G)
3254 .\" eventlog list
3255 .PP
3256 .RS 4
3257 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
3258 \FC$(lockdir)/eventlog\F[]\&.
3259 .sp
3260 The administrator must use an external process to parse the normal Unix logs such as
3261 \FC/var/log/messages\F[]
3262 and write then entries to the eventlog tdb files\&. Refer to the eventlogadm(8) utility for how to write eventlog entries\&.
3263 .sp
3264 Default:
3265 \fI\fIeventlog list\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3266 .sp
3267 Example:
3268 \fI\fIeventlog list\fR\fR\fI = \fR\fI\FCSecurity Application Syslog Apache\F[]\fR\fI \fR
3269 .RE
3270
3271 fake directory create times (S)
3272 .\" fake directory create times
3273 .PP
3274 .RS 4
3275 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\&.
3276 .sp
3277 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\&.
3278 .sp
3279 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\&.
3280 .sp
3281 Default:
3282 \fI\fIfake directory create times\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3283 .RE
3284
3285 fake oplocks (S)
3286 .\" fake oplocks
3287 .PP
3288 .RS 4
3289 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\&.
3290 .sp
3291 When you set
3292 \FCfake oplocks = yes\F[],
3293 \fBsmbd\fR(8)
3294 will always grant oplock requests no matter how many clients are using the file\&.
3295 .sp
3296 It is generally much better to use the real
3297 \m[blue]\fBoplocks\fR\m[]
3298 support rather than this parameter\&.
3299 .sp
3300 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!
3301 .sp
3302 Default:
3303 \fI\fIfake oplocks\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3304 .RE
3305
3306 follow symlinks (S)
3307 .\" follow symlinks
3308 .PP
3309 .RS 4
3310 This parameter allows the Samba administrator to stop
3311 \fBsmbd\fR(8)
3312 from following symbolic links in a particular share\&. Setting this parameter to
3313 \fBno\fR
3314 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
3315 \FC/etc/passwd\F[]
3316 in their home directory for instance\&. However it will slow filename lookups down slightly\&.
3317 .sp
3318 This option is enabled (i\&.e\&.
3319 \FCsmbd\F[]
3320 will follow symbolic links) by default\&.
3321 .sp
3322 Default:
3323 \fI\fIfollow symlinks\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3324 .RE
3325
3326 force create mode (S)
3327 .\" force create mode
3328 .PP
3329 .RS 4
3330 This parameter specifies a set of UNIX mode bit permissions that will
3331 \fIalways\fR
3332 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\&. 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
3333 \fIcreate mask\fR
3334 parameter is applied\&.
3335 .sp
3336 The example below would force all newly 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\'\&.
3337 .sp
3338 Default:
3339 \fI\fIforce create mode\fR\fR\fI = \fR\fI\FC000\F[]\fR\fI \fR
3340 .sp
3341 Example:
3342 \fI\fIforce create mode\fR\fR\fI = \fR\fI\FC0755\F[]\fR\fI \fR
3343 .RE
3344
3345 force directory mode (S)
3346 .\" force directory mode
3347 .PP
3348 .RS 4
3349 This parameter specifies a set of UNIX mode bit permissions that will
3350 \fIalways\fR
3351 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
3352 \fIdirectory mask\fR
3353 is applied\&.
3354 .sp
3355 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\'\&.
3356 .sp
3357 Default:
3358 \fI\fIforce directory mode\fR\fR\fI = \fR\fI\FC000\F[]\fR\fI \fR
3359 .sp
3360 Example:
3361 \fI\fIforce directory mode\fR\fR\fI = \fR\fI\FC0755\F[]\fR\fI \fR
3362 .RE
3363
3364 force directory security mode (S)
3365 .\" force directory security mode
3366 .PP
3367 .RS 4
3368 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\&.
3369 .sp
3370 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
3371 \m[blue]\fBdirectory security mask\fR\m[], which works in a similar manner to this one, but uses a logical AND instead of an OR\&.
3372 .sp
3373 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)\&.
3374 .sp
3375 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\&.
3376 .if n \{\
3377 .sp
3378 .\}
3379 .RS 4
3380 .BM yellow
3381 .it 1 an-trap
3382 .nr an-no-space-flag 1
3383 .nr an-break-flag 1
3384 .br
3385 .ps +1
3386 \fBNote\fR
3387 .ps -1
3388 .br
3389 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\&.
3390 .sp .5v
3391 .EM yellow
3392 .RE
3393 Default:
3394 \fI\fIforce directory security mode\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
3395 .sp
3396 Example:
3397 \fI\fIforce directory security mode\fR\fR\fI = \fR\fI\FC700\F[]\fR\fI \fR
3398 .RE
3399
3400 group
3401 .\" group
3402 .PP
3403 .RS 4
3404 This parameter is a synonym for
3405 force group\&.
3406 .RE
3407
3408 force group (S)
3409 .\" force group
3410 .PP
3411 .RS 4
3412 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\&.
3413 .sp
3414 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
3415 \FCforce group = +sys\F[]
3416 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\&.
3417 .sp
3418 If the
3419 \m[blue]\fBforce user\fR\m[]
3420 parameter is also set the group specified in
3421 \fIforce group\fR
3422 will override the primary group set in
3423 \fIforce user\fR\&.
3424 .sp
3425 Default:
3426 \fI\fIforce group\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3427 .sp
3428 Example:
3429 \fI\fIforce group\fR\fR\fI = \fR\fI\FCagroup\F[]\fR\fI \fR
3430 .RE
3431
3432 force printername (S)
3433 .\" force printername
3434 .PP
3435 .RS 4
3436 When printing from Windows NT (or later), each printer in
3437 \FCsmb\&.conf\F[]
3438 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
3439 \fIprinter name\fR
3440 option)\&.
3441 .sp
3442 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
3443 \fIforce printername = yes\fR\&.
3444 .sp
3445 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\&.
3446 .sp
3447 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\&.
3448 .sp
3449 Default:
3450 \fI\fIforce printername\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3451 .RE
3452
3453 force security mode (S)
3454 .\" force security mode
3455 .PP
3456 .RS 4
3457 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\&.
3458 .sp
3459 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
3460 \m[blue]\fBsecurity mask\fR\m[], which works similar like this one but uses logical AND instead of OR\&.
3461 .sp
3462 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\&.
3463 .sp
3464 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\&.
3465 .sp
3466 \fI Note\fR
3467 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\&.
3468 .sp
3469 Default:
3470 \fI\fIforce security mode\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
3471 .sp
3472 Example:
3473 \fI\fIforce security mode\fR\fR\fI = \fR\fI\FC700\F[]\fR\fI \fR
3474 .RE
3475
3476 force unknown acl user (S)
3477 .\" force unknown acl user
3478 .PP
3479 .RS 4
3480 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\&.
3481 .sp
3482 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\&.
3483 .sp
3484 Try using this parameter when XCOPY /O gives an ACCESS_DENIED error\&.
3485 .sp
3486 Default:
3487 \fI\fIforce unknown acl user\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3488 .RE
3489
3490 force user (S)
3491 .\" force user
3492 .PP
3493 .RS 4
3494 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\&.
3495 .sp
3496 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\&.
3497 .sp
3498 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)\&.
3499 .sp
3500 Default:
3501 \fI\fIforce user\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3502 .sp
3503 Example:
3504 \fI\fIforce user\fR\fR\fI = \fR\fI\FCauser\F[]\fR\fI \fR
3505 .RE
3506
3507 fstype (S)
3508 .\" fstype
3509 .PP
3510 .RS 4
3511 This parameter allows the administrator to configure the string that specifies the type of filesystem a share is using that is reported by
3512 \fBsmbd\fR(8)
3513 when a client queries the filesystem type for a share\&. The default type is
3514 \fBNTFS\fR
3515 for compatibility with Windows NT but this can be changed to other strings such as
3516 \fBSamba\fR
3517 or
3518 \fBFAT\fR
3519 if required\&.
3520 .sp
3521 Default:
3522 \fI\fIfstype\fR\fR\fI = \fR\fI\FCNTFS\F[]\fR\fI \fR
3523 .sp
3524 Example:
3525 \fI\fIfstype\fR\fR\fI = \fR\fI\FCSamba\F[]\fR\fI \fR
3526 .RE
3527
3528 get quota command (G)
3529 .\" get quota command
3530 .PP
3531 .RS 4
3532 The
3533 \FCget quota command\F[]
3534 should only be used whenever there is no operating system API available from the OS that samba can use\&.
3535 .sp
3536 This option is only available you have compiled Samba with the
3537 \FC\-\-with\-sys\-quotas\F[]
3538 option or on Linux with
3539 \FC\-\-with\-quotas\F[]
3540 and a working quota api was found in the system\&.
3541 .sp
3542 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\&.
3543 .sp
3544 Such a script should take 3 arguments:
3545 .sp
3546 .RS 4
3547 .ie n \{\
3548 \h'-04'\(bu\h'+03'\c
3549 .\}
3550 .el \{\
3551 .sp -1
3552 .IP \(bu 2.3
3553 .\}
3554 directory
3555 .RE
3556 .sp
3557 .RS 4
3558 .ie n \{\
3559 \h'-04'\(bu\h'+03'\c
3560 .\}
3561 .el \{\
3562 .sp -1
3563 .IP \(bu 2.3
3564 .\}
3565 type of query
3566 .RE
3567 .sp
3568 .RS 4
3569 .ie n \{\
3570 \h'-04'\(bu\h'+03'\c
3571 .\}
3572 .el \{\
3573 .sp -1
3574 .IP \(bu 2.3
3575 .\}
3576 uid of user or gid of group
3577 .sp
3578 .RE
3579 The type of query can be one of :
3580 .sp
3581 .RS 4
3582 .ie n \{\
3583 \h'-04'\(bu\h'+03'\c
3584 .\}
3585 .el \{\
3586 .sp -1
3587 .IP \(bu 2.3
3588 .\}
3589 1 \- user quotas
3590 .RE
3591 .sp
3592 .RS 4
3593 .ie n \{\
3594 \h'-04'\(bu\h'+03'\c
3595 .\}
3596 .el \{\
3597 .sp -1
3598 .IP \(bu 2.3
3599 .\}
3600 2 \- user default quotas (uid = \-1)
3601 .RE
3602 .sp
3603 .RS 4
3604 .ie n \{\
3605 \h'-04'\(bu\h'+03'\c
3606 .\}
3607 .el \{\
3608 .sp -1
3609 .IP \(bu 2.3
3610 .\}
3611 3 \- group quotas
3612 .RE
3613 .sp
3614 .RS 4
3615 .ie n \{\
3616 \h'-04'\(bu\h'+03'\c
3617 .\}
3618 .el \{\
3619 .sp -1
3620 .IP \(bu 2.3
3621 .\}
3622 4 \- group default quotas (gid = \-1)
3623 .sp
3624 .RE
3625 This script should print one line as output with spaces between the arguments\&. The arguments are:
3626 .sp
3627 .RS 4
3628 .ie n \{\
3629 \h'-04'\(bu\h'+03'\c
3630 .\}
3631 .el \{\
3632 .sp -1
3633 .IP \(bu 2.3
3634 .\}
3635 Arg 1 \- quota flags (0 = no quotas, 1 = quotas enabled, 2 = quotas enabled and enforced)
3636 .RE
3637 .sp
3638 .RS 4
3639 .ie n \{\
3640 \h'-04'\(bu\h'+03'\c
3641 .\}
3642 .el \{\
3643 .sp -1
3644 .IP \(bu 2.3
3645 .\}
3646 Arg 2 \- number of currently used blocks
3647 .RE
3648 .sp
3649 .RS 4
3650 .ie n \{\
3651 \h'-04'\(bu\h'+03'\c
3652 .\}
3653 .el \{\
3654 .sp -1
3655 .IP \(bu 2.3
3656 .\}
3657 Arg 3 \- the softlimit number of blocks
3658 .RE
3659 .sp
3660 .RS 4
3661 .ie n \{\
3662 \h'-04'\(bu\h'+03'\c
3663 .\}
3664 .el \{\
3665 .sp -1
3666 .IP \(bu 2.3
3667 .\}
3668 Arg 4 \- the hardlimit number of blocks
3669 .RE
3670 .sp
3671 .RS 4
3672 .ie n \{\
3673 \h'-04'\(bu\h'+03'\c
3674 .\}
3675 .el \{\
3676 .sp -1
3677 .IP \(bu 2.3
3678 .\}
3679 Arg 5 \- currently used number of inodes
3680 .RE
3681 .sp
3682 .RS 4
3683 .ie n \{\
3684 \h'-04'\(bu\h'+03'\c
3685 .\}
3686 .el \{\
3687 .sp -1
3688 .IP \(bu 2.3
3689 .\}
3690 Arg 6 \- the softlimit number of inodes
3691 .RE
3692 .sp
3693 .RS 4
3694 .ie n \{\
3695 \h'-04'\(bu\h'+03'\c
3696 .\}
3697 .el \{\
3698 .sp -1
3699 .IP \(bu 2.3
3700 .\}
3701 Arg 7 \- the hardlimit number of inodes
3702 .RE
3703 .sp
3704 .RS 4
3705 .ie n \{\
3706 \h'-04'\(bu\h'+03'\c
3707 .\}
3708 .el \{\
3709 .sp -1
3710 .IP \(bu 2.3
3711 .\}
3712 Arg 8(optional) \- the number of bytes in a block(default is 1024)
3713 .sp
3714 .RE
3715 Default:
3716 \fI\fIget quota command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3717 .sp
3718 Example:
3719 \fI\fIget quota command\fR\fR\fI = \fR\fI\FC/usr/local/sbin/query_quota\F[]\fR\fI \fR
3720 .RE
3721
3722 getwd cache (G)
3723 .\" getwd cache
3724 .PP
3725 .RS 4
3726 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
3727 \m[blue]\fBwide smbconfoptions\fR\m[]
3728 parameter is set to
3729 \fBno\fR\&.
3730 .sp
3731 Default:
3732 \fI\fIgetwd cache\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3733 .RE
3734
3735 guest account (G)
3736 .\" guest account
3737 .PP
3738 .RS 4
3739 This is a username which will be used for access to services which are specified as
3740 \m[blue]\fBguest ok\fR\m[]
3741 (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\&.
3742 .sp
3743 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
3744 \FCsu \-\F[]
3745 command) and trying to print using the system print command such as
3746 \FClpr(1)\F[]
3747 or
3748 \FC lp(1)\F[]\&.
3749 .sp
3750 This parameter does not accept % macros, because many parts of the system require this value to be constant for correct operation\&.
3751 .sp
3752 Default:
3753 \fI\fIguest account\fR\fR\fI = \fR\fI\FCnobody # default can be changed at compile\-time\F[]\fR\fI \fR
3754 .sp
3755 Example:
3756 \fI\fIguest account\fR\fR\fI = \fR\fI\FCftp\F[]\fR\fI \fR
3757 .RE
3758
3759 public
3760 .\" public
3761 .PP
3762 .RS 4
3763 This parameter is a synonym for
3764 guest ok\&.
3765 .RE
3766
3767 guest ok (S)
3768 .\" guest ok
3769 .PP
3770 .RS 4
3771 If this parameter is
3772 \fByes\fR
3773 for a service, then no password is required to connect to the service\&. Privileges will be those of the
3774 \m[blue]\fBguest account\fR\m[]\&.
3775 .sp
3776 This paramater nullifies the benifits of setting
3777 \m[blue]\fBrestrict anonymous = 2\fR\m[]
3778 .sp
3779 See the section below on
3780 \m[blue]\fBsecurity\fR\m[]
3781 for more information about this option\&.
3782 .sp
3783 Default:
3784 \fI\fIguest ok\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3785 .RE
3786
3787 only guest
3788 .\" only guest
3789 .PP
3790 .RS 4
3791 This parameter is a synonym for
3792 guest only\&.
3793 .RE
3794
3795 guest only (S)
3796 .\" guest only
3797 .PP
3798 .RS 4
3799 If this parameter is
3800 \fByes\fR
3801 for a service, then only guest connections to the service are permitted\&. This parameter will have no effect if
3802 \m[blue]\fBguest ok\fR\m[]
3803 is not set for the service\&.
3804 .sp
3805 See the section below on
3806 \m[blue]\fBsecurity\fR\m[]
3807 for more information about this option\&.
3808 .sp
3809 Default:
3810 \fI\fIguest only\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3811 .RE
3812
3813 hide dot files (S)
3814 .\" hide dot files
3815 .PP
3816 .RS 4
3817 This is a boolean parameter that controls whether files starting with a dot appear as hidden files\&.
3818 .sp
3819 Default:
3820 \fI\fIhide dot files\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3821 .RE
3822
3823 hide files (S)
3824 .\" hide files
3825 .PP
3826 .RS 4
3827 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\&.
3828 .sp
3829 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\&.
3830 .sp
3831 Each entry must be a Unix path, not a DOS path and must not include the Unix directory separator \'/\'\&.
3832 .sp
3833 Note that the case sensitivity option is applicable in hiding files\&.
3834 .sp
3835 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\&.
3836 .sp
3837 The example shown above is based on files that the Macintosh SMB client (DAVE) available from
3838 Thursby
3839 creates for internal use, and also still hides all files beginning with a dot\&.
3840 .sp
3841 An example of us of this parameter is:
3842 .sp
3843 .if n \{\
3844 .RS 4
3845 .\}
3846 .fam C
3847 .ps -1
3848 .nf
3849 .if t \{\
3850 .sp -1
3851 .\}
3852 .BB lightgray adjust-for-leading-newline
3853 .sp -1
3854
3855 hide files = /\&.*/DesktopFolderDB/TrashFor%m/resource\&.frk/
3856 .EB lightgray adjust-for-leading-newline
3857 .if t \{\
3858 .sp 1
3859 .\}
3860 .fi
3861 .fam
3862 .ps +1
3863 .if n \{\
3864 .RE
3865 .\}
3866 .sp
3867 Default:
3868 \fI\fIhide files\fR\fR\fI = \fR\fI\FC # no file are hidden\F[]\fR\fI \fR
3869 .RE
3870
3871 hide special files (S)
3872 .\" hide special files
3873 .PP
3874 .RS 4
3875 This parameter prevents clients from seeing special files such as sockets, devices and fifo\'s in directory listings\&.
3876 .sp
3877 Default:
3878 \fI\fIhide special files\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3879 .RE
3880
3881 hide unreadable (S)
3882 .\" hide unreadable
3883 .PP
3884 .RS 4
3885 This parameter prevents clients from seeing the existance of files that cannot be read\&. Defaults to off\&.
3886 .sp
3887 Default:
3888 \fI\fIhide unreadable\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3889 .RE
3890
3891 hide unwriteable files (S)
3892 .\" hide unwriteable files
3893 .PP
3894 .RS 4
3895 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\&.
3896 .sp
3897 Default:
3898 \fI\fIhide unwriteable files\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3899 .RE
3900
3901 homedir map (G)
3902 .\" homedir map
3903 .PP
3904 .RS 4
3905 If
3906 \m[blue]\fBnis homedir\fR\m[]
3907 is
3908 \fByes\fR, and
3909 \fBsmbd\fR(8)
3910 is also acting as a Win95/98
3911 \fIlogon server\fR
3912 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:
3913 .sp
3914 .if n \{\
3915 .RS 4
3916 .\}
3917 .fam C
3918 .ps -1
3919 .nf
3920 .if t \{\
3921 .sp -1
3922 .\}
3923 .BB lightgray adjust-for-leading-newline
3924 .sp -1
3925
3926 \FCusername server:/some/file/system\F[]
3927 .EB lightgray adjust-for-leading-newline
3928 .if t \{\
3929 .sp 1
3930 .\}
3931 .fi
3932 .fam
3933 .ps +1
3934 .if n \{\
3935 .RE
3936 .\}
3937 .sp
3938 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\&.
3939 .if n \{\
3940 .sp
3941 .\}
3942 .RS 4
3943 .BM yellow
3944 .it 1 an-trap
3945 .nr an-no-space-flag 1
3946 .nr an-break-flag 1
3947 .br
3948 .ps +1
3949 \fBNote\fR
3950 .ps -1
3951 .br
3952 A working NIS client is required on the system for this option to work\&.
3953 .sp .5v
3954 .EM yellow
3955 .RE
3956 Default:
3957 \fI\fIhomedir map\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
3958 .sp
3959 Example:
3960 \fI\fIhomedir map\fR\fR\fI = \fR\fI\FCamd\&.homedir\F[]\fR\fI \fR
3961 .RE
3962
3963 host msdfs (G)
3964 .\" host msdfs
3965 .PP
3966 .RS 4
3967 If set to
3968 \fByes\fR, Samba will act as a Dfs server, and allow Dfs\-aware clients to browse Dfs trees hosted on the server\&.
3969 .sp
3970 See also the
3971 \m[blue]\fBmsdfs root\fR\m[]
3972 share level parameter\&. For more information on setting up a Dfs tree on Samba, refer to the MSFDS chapter in the book Samba3\-HOWTO\&.
3973 .sp
3974 Default:
3975 \fI\fIhost msdfs\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3976 .RE
3977
3978 hostname lookups (G)
3979 .\" hostname lookups
3980 .PP
3981 .RS 4
3982 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
3983 \FChosts deny\F[]
3984 and
3985 \FChosts allow\F[]\&.
3986 .sp
3987 Default:
3988 \fI\fIhostname lookups\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
3989 .sp
3990 Example:
3991 \fI\fIhostname lookups\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
3992 .RE
3993
3994 allow hosts
3995 .\" allow hosts
3996 .PP
3997 .RS 4
3998 This parameter is a synonym for
3999 hosts allow\&.
4000 .RE
4001
4002 hosts allow (S)
4003 .\" hosts allow
4004 .PP
4005 .RS 4
4006 A synonym for this parameter is
4007 \m[blue]\fBallow hosts\fR\m[]\&.
4008 .sp
4009 This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service\&.
4010 .sp
4011 If specified in the [global] section then it will apply to all services, regardless of whether the individual service has a different setting\&.
4012 .sp
4013 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
4014 \FCallow hosts = 150\&.203\&.5\&.\F[]\&. The full syntax of the list is described in the man page
4015 \FChosts_access(5)\F[]\&. Note that this man page may not be present on your system, so a brief description will be given here also\&.
4016 .sp
4017 Note that the localhost address 127\&.0\&.0\&.1 will always be allowed access unless specifically denied by a
4018 \m[blue]\fBhosts deny\fR\m[]
4019 option\&.
4020 .sp
4021 You can also specify hosts by network/netmask pairs and by netgroup names if your system supports netgroups\&. The
4022 \fIEXCEPT\fR
4023 keyword can also be used to limit a wildcard list\&. The following examples may provide some help:
4024 .sp
4025 Example 1: allow all IPs in 150\&.203\&.*\&.*; except one
4026 .sp
4027 \FChosts allow = 150\&.203\&. EXCEPT 150\&.203\&.6\&.66\F[]
4028 .sp
4029 Example 2: allow hosts that match the given network/netmask
4030 .sp
4031 \FChosts allow = 150\&.203\&.15\&.0/255\&.255\&.255\&.0\F[]
4032 .sp
4033 Example 3: allow a couple of hosts
4034 .sp
4035 \FChosts allow = lapland, arvidsjaur\F[]
4036 .sp
4037 Example 4: allow only hosts in NIS netgroup "foonet", but deny access from one particular host
4038 .sp
4039 \FChosts allow = @foonet\F[]
4040 .sp
4041 \FChosts deny = pirate\F[]
4042 .if n \{\
4043 .sp
4044 .\}
4045 .RS 4
4046 .BM yellow
4047 .it 1 an-trap
4048 .nr an-no-space-flag 1
4049 .nr an-break-flag 1
4050 .br
4051 .ps +1
4052 \fBNote\fR
4053 .ps -1
4054 .br
4055 Note that access still requires suitable user\-level passwords\&.
4056 .sp .5v
4057 .EM yellow
4058 .RE
4059 See
4060 \fBtestparm\fR(1)
4061 for a way of testing your host access to see if it does what you expect\&.
4062 .sp
4063 Default:
4064 \fI\fIhosts allow\fR\fR\fI = \fR\fI\FC # none (i\&.e\&., all hosts permitted access)\F[]\fR\fI \fR
4065 .sp
4066 Example:
4067 \fI\fIhosts allow\fR\fR\fI = \fR\fI\FC150\&.203\&.5\&. myhost\&.mynet\&.edu\&.au\F[]\fR\fI \fR
4068 .RE
4069
4070 deny hosts
4071 .\" deny hosts
4072 .PP
4073 .RS 4
4074 This parameter is a synonym for
4075 hosts deny\&.
4076 .RE
4077
4078 hosts deny (S)
4079 .\" hosts deny
4080 .PP
4081 .RS 4
4082 The opposite of
4083 \fIhosts allow\fR
4084 \- hosts listed here are
4085 \fINOT\fR
4086 permitted access to services unless the specific services have their own lists to override this one\&. Where the lists conflict, the
4087 \fIallow\fR
4088 list takes precedence\&.
4089 .sp
4090 In the event that it is necessary to deny all by default, use the keyword ALL (or the netmask
4091 \FC0\&.0\&.0\&.0/0\F[]) and then explicitly specify to the
4092 \m[blue]\fBhosts allow = hosts allow\fR\m[]
4093 parameter those hosts that should be permitted access\&.
4094 .sp
4095 Default:
4096 \fI\fIhosts deny\fR\fR\fI = \fR\fI\FC # none (i\&.e\&., no hosts specifically excluded)\F[]\fR\fI \fR
4097 .sp
4098 Example:
4099 \fI\fIhosts deny\fR\fR\fI = \fR\fI\FC150\&.203\&.4\&. badhost\&.mynet\&.edu\&.au\F[]\fR\fI \fR
4100 .RE
4101
4102 idmap alloc backend (G)
4103 .\" idmap alloc backend
4104 .PP
4105 .RS 4
4106 The idmap alloc backend provides a plugin interface for Winbind to use when allocating Unix uids/gids for Windows SIDs\&. This option refers to the name of the idmap module which will provide the id allocation functionality\&. Please refer to the man page for each idmap plugin to determine whether or not the module implements the allocation feature\&. The most common plugins are the tdb (\fBidmap_tdb\fR(8)) and ldap (\fBidmap_ldap\fR(8)) libraries\&.
4107 .sp
4108 This parameter defaults to the value
4109 \m[blue]\fBidmap backend\fR\m[]
4110 was set to, so by default winbind will allocate Unix IDs from the default backend\&. You will only need to set this parameter explicitly if you have an external source for Unix IDs, like a central database service somewhere in your company\&.
4111 .sp
4112 Also refer to the
4113 \m[blue]\fBidmap alloc config\fR\m[]
4114 option\&.
4115 .sp
4116 \fINo default\fR
4117 .sp
4118 Example:
4119 \fI\fIidmap alloc backend\fR\fR\fI = \fR\fI\FCtdb\F[]\fR\fI \fR
4120 .RE
4121
4122 idmap alloc config (G)
4123 .\" idmap alloc config
4124 .PP
4125 .RS 4
4126 The idmap alloc config prefix provides a means of managing settings for the backend defined by the
4127 \m[blue]\fBidmap alloc backend\fR\m[]
4128 parameter\&. Refer to the man page for each idmap plugin regarding specific configuration details\&.
4129 .sp
4130 \fINo default\fR
4131 .RE
4132
4133 idmap backend (G)
4134 .\" idmap backend
4135 .PP
4136 .RS 4
4137 The idmap backend provides a plugin interface for Winbind to use varying backends to store SID/uid/gid mapping tables\&.
4138 .sp
4139 This option specifies the default backend that is used when no special configuration set by
4140 \m[blue]\fBidmap config\fR\m[]
4141 matches the specific request\&.
4142 .sp
4143 This default backend also specifies the place where winbind\-generated idmap entries will be stored\&. So it is highly recommended that you specify a writable backend like
4144 \fBidmap_tdb\fR(8)
4145 or
4146 \fBidmap_ldap\fR(8)
4147 as the idmap backend\&. The
4148 \fBidmap_rid\fR(8)
4149 and
4150 \fBidmap_ad\fR(8)
4151 backends are not writable and thus will generate unexpected results if set as idmap backend\&.
4152 .sp
4153 To use the rid and ad backends, please specify them via the
4154 \m[blue]\fBidmap config\fR\m[]
4155 parameter, possibly also for the domain your machine is member of, specified by
4156 \m[blue]\fBworkgroup\fR\m[]\&.
4157 .sp
4158 Examples of SID/uid/gid backends include tdb (\fBidmap_tdb\fR(8)), ldap (\fBidmap_ldap\fR(8)), rid (\fBidmap_rid\fR(8)), and ad (\fBidmap_ad\fR(8))\&.
4159 .sp
4160 Default:
4161 \fI\fIidmap backend\fR\fR\fI = \fR\fI\FCtdb\F[]\fR\fI \fR
4162 .RE
4163
4164 idmap cache time (G)
4165 .\" idmap cache time
4166 .PP
4167 .RS 4
4168 This parameter specifies the number of seconds that Winbind\'s idmap interface will cache positive SID/uid/gid query results\&.
4169 .sp
4170 Default:
4171 \fI\fIidmap cache time\fR\fR\fI = \fR\fI\FC604800 (one week)\F[]\fR\fI \fR
4172 .RE
4173
4174 idmap config (G)
4175 .\" idmap config
4176 .PP
4177 .RS 4
4178 The idmap config prefix provides a means of managing each trusted domain separately\&. The idmap config prefix should be followed by the name of the domain, a colon, and a setting specific to the chosen backend\&. There are three options available for all domains:
4179 .PP
4180 backend = backend_name
4181 .RS 4
4182 Specifies the name of the idmap plugin to use as the SID/uid/gid backend for this domain\&.
4183 .RE
4184 .PP
4185 range = low \- high
4186 .RS 4
4187 Defines the available matching uid and gid range for which the backend is authoritative\&. Note that the range commonly matches the allocation range due to the fact that the same backend will store and retrieve SID/uid/gid mapping entries\&.
4188 .sp
4189 winbind uses this parameter to find the backend that is authoritative for a unix ID to SID mapping, so it must be set for each individually configured domain, and it must be disjoint from the ranges set via
4190 \m[blue]\fBidmap uid\fR\m[]
4191 and
4192 \m[blue]\fBidmap gid\fR\m[]\&.
4193 .RE
4194 .sp
4195 The following example illustrates how to configure the
4196 \fBidmap_ad\fR(8)
4197 for the CORP domain and the
4198 \fBidmap_tdb\fR(8)
4199 backend for all other domains\&. This configuration assumes that the admin of CORP assigns unix ids below 1000000 via the SFU extensions, and winbind is supposed to use the next million entries for its own mappings from trusted domains and for local groups for example\&.
4200 .sp
4201 .if n \{\
4202 .RS 4
4203 .\}
4204 .fam C
4205 .ps -1
4206 .nf
4207 .if t \{\
4208 .sp -1
4209 .\}
4210 .BB lightgray adjust-for-leading-newline
4211 .sp -1
4212
4213         idmap backend = tdb
4214         idmap uid = 1000000\-1999999
4215         idmap gid = 1000000\-1999999
4216
4217         idmap config CORP : backend  = ad
4218         idmap config CORP : range = 1000\-999999
4219         
4220 .EB lightgray adjust-for-leading-newline
4221 .if t \{\
4222 .sp 1
4223 .\}
4224 .fi
4225 .fam
4226 .ps +1
4227 .if n \{\
4228 .RE
4229 .\}
4230 .sp
4231 \fINo default\fR
4232 .RE
4233
4234 winbind gid
4235 .\" winbind gid
4236 .PP
4237 .RS 4
4238 This parameter is a synonym for
4239 idmap gid\&.
4240 .RE
4241
4242 idmap gid (G)
4243 .\" idmap gid
4244 .PP
4245 .RS 4
4246 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\&.
4247 .sp
4248 See also the
4249 \m[blue]\fBidmap backend\fR\m[], and
4250 \m[blue]\fBidmap config\fR\m[]
4251 options\&.
4252 .sp
4253 Default:
4254 \fI\fIidmap gid\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4255 .sp
4256 Example:
4257 \fI\fIidmap gid\fR\fR\fI = \fR\fI\FC10000\-20000\F[]\fR\fI \fR
4258 .RE
4259
4260 idmap negative cache time (G)
4261 .\" idmap negative cache time
4262 .PP
4263 .RS 4
4264 This parameter specifies the number of seconds that Winbind\'s idmap interface will cache negative SID/uid/gid query results\&.
4265 .sp
4266 Default:
4267 \fI\fIidmap negative cache time\fR\fR\fI = \fR\fI\FC120\F[]\fR\fI \fR
4268 .RE
4269
4270 winbind uid
4271 .\" winbind uid
4272 .PP
4273 .RS 4
4274 This parameter is a synonym for
4275 idmap uid\&.
4276 .RE
4277
4278 idmap uid (G)
4279 .\" idmap uid
4280 .PP
4281 .RS 4
4282 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\&.
4283 .sp
4284 See also the
4285 \m[blue]\fBidmap backend\fR\m[]
4286 and
4287 \m[blue]\fBidmap config\fR\m[]
4288 options\&.
4289 .sp
4290 Default:
4291 \fI\fIidmap uid\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4292 .sp
4293 Example:
4294 \fI\fIidmap uid\fR\fR\fI = \fR\fI\FC10000\-20000\F[]\fR\fI \fR
4295 .RE
4296
4297 include (G)
4298 .\" include
4299 .PP
4300 .RS 4
4301 This allows you to include one config file inside another\&. The file is included literally, as though typed in place\&.
4302 .sp
4303 It takes the standard substitutions, except
4304 \fI%u\fR,
4305 \fI%P\fR
4306 and
4307 \fI%S\fR\&.
4308 .sp
4309 The parameter
4310 \fIinclude = registry\fR
4311 has a special meaning: It does
4312 \fInot\fR
4313 include a file named
4314 \fIregistry\fR
4315 from the current working directory, but instead reads the global configuration options from the registry\&. See the section on registry\-based configuration for details\&. Note that this option automatically activates registry shares\&.
4316 .sp
4317 Default:
4318 \fI\fIinclude\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4319 .sp
4320 Example:
4321 \fI\fIinclude\fR\fR\fI = \fR\fI\FC/usr/local/samba/lib/admin_smb\&.conf\F[]\fR\fI \fR
4322 .RE
4323
4324 inherit acls (S)
4325 .\" inherit acls
4326 .PP
4327 .RS 4
4328 This parameter can be used to ensure that if default acls exist on parent directories, they are always honored when creating a new file or subdirectory in these parent directories\&. The default behavior is to use the unix mode specified when creating the directory\&. Enabling this option sets the unix mode to 0777, thus guaranteeing that default directory acls are propagated\&.
4329 .sp
4330 Default:
4331 \fI\fIinherit acls\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4332 .RE
4333
4334 inherit owner (S)
4335 .\" inherit owner
4336 .PP
4337 .RS 4
4338 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\&.
4339 .sp
4340 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\&.
4341 .sp
4342 Default:
4343 \fI\fIinherit owner\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4344 .RE
4345
4346 inherit permissions (S)
4347 .\" inherit permissions
4348 .PP
4349 .RS 4
4350 The permissions on new files and directories are normally governed by
4351 \m[blue]\fBcreate mask\fR\m[],
4352 \m[blue]\fBdirectory mask\fR\m[],
4353 \m[blue]\fBforce create mode\fR\m[]
4354 and
4355 \m[blue]\fBforce directory mode\fR\m[]
4356 but the boolean inherit permissions parameter overrides this\&.
4357 .sp
4358 New directories inherit the mode of the parent directory, including bits such as setgid\&.
4359 .sp
4360 New files inherit their read/write bits from the parent directory\&. Their execute bits continue to be determined by
4361 \m[blue]\fBmap archive\fR\m[],
4362 \m[blue]\fBmap hidden\fR\m[]
4363 and
4364 \m[blue]\fBmap system\fR\m[]
4365 as usual\&.
4366 .sp
4367 Note that the setuid bit is
4368 \fInever\fR
4369 set via inheritance (the code explicitly prohibits this)\&.
4370 .sp
4371 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\&.
4372 .sp
4373 Default:
4374 \fI\fIinherit permissions\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4375 .RE
4376
4377 init logon delayed hosts (G)
4378 .\" init logon delayed hosts
4379 .PP
4380 .RS 4
4381 This parameter takes a list of host names, addresses or networks for which the initial samlogon reply should be delayed (so other DCs get preferred by XP workstations if there are any)\&.
4382 .sp
4383 The length of the delay can be specified with the
4384 \m[blue]\fBinit logon delay\fR\m[]
4385 parameter\&.
4386 .sp
4387 Default:
4388 \fI\fIinit logon delayed hosts\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4389 .sp
4390 Example:
4391 \fI\fIinit logon delayed hosts\fR\fR\fI = \fR\fI\FC150\&.203\&.5\&. myhost\&.mynet\&.de\F[]\fR\fI \fR
4392 .RE
4393
4394 init logon delay (G)
4395 .\" init logon delay
4396 .PP
4397 .RS 4
4398 This parameter specifies a delay in milliseconds for the hosts configured for delayed initial samlogon with
4399 \m[blue]\fBinit logon delayed hosts\fR\m[]\&.
4400 .sp
4401 Default:
4402 \fI\fIinit logon delay\fR\fR\fI = \fR\fI\FC100\F[]\fR\fI \fR
4403 .RE
4404
4405 interfaces (G)
4406 .\" interfaces
4407 .PP
4408 .RS 4
4409 This option allows you to override the default network interfaces list that Samba will use for browsing, name registration and other NetBIOS over TCP/IP (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\&.
4410 .sp
4411 The option takes a list of interface strings\&. Each string can be in any of the following forms:
4412 .sp
4413 .RS 4
4414 .ie n \{\
4415 \h'-04'\(bu\h'+03'\c
4416 .\}
4417 .el \{\
4418 .sp -1
4419 .IP \(bu 2.3
4420 .\}
4421 a network interface name (such as eth0)\&. This may include shell\-like wildcards so eth* will match any interface starting with the substring "eth"
4422 .RE
4423 .sp
4424 .RS 4
4425 .ie n \{\
4426 \h'-04'\(bu\h'+03'\c
4427 .\}
4428 .el \{\
4429 .sp -1
4430 .IP \(bu 2.3
4431 .\}
4432 an IP address\&. In this case the netmask is determined from the list of interfaces obtained from the kernel
4433 .RE
4434 .sp
4435 .RS 4
4436 .ie n \{\
4437 \h'-04'\(bu\h'+03'\c
4438 .\}
4439 .el \{\
4440 .sp -1
4441 .IP \(bu 2.3
4442 .\}
4443 an IP/mask pair\&.
4444 .RE
4445 .sp
4446 .RS 4
4447 .ie n \{\
4448 \h'-04'\(bu\h'+03'\c
4449 .\}
4450 .el \{\
4451 .sp -1
4452 .IP \(bu 2.3
4453 .\}
4454 a broadcast/mask pair\&.
4455 .sp
4456 .RE
4457 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\&.
4458 .sp
4459 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\&.
4460 .sp
4461 By default Samba enables all active interfaces that are broadcast capable except the loopback adaptor (IP address 127\&.0\&.0\&.1)\&.
4462 .sp
4463 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\&.
4464 .sp
4465 Default:
4466 \fI\fIinterfaces\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4467 .sp
4468 Example:
4469 \fI\fIinterfaces\fR\fR\fI = \fR\fI\FCeth0 192\&.168\&.2\&.10/24 192\&.168\&.3\&.10/255\&.255\&.255\&.0\F[]\fR\fI \fR
4470 .RE
4471
4472 invalid users (S)
4473 .\" invalid users
4474 .PP
4475 .RS 4
4476 This is a list of users that should not be allowed to login to this service\&. This is really a
4477 \fIparanoid\fR
4478 check to absolutely ensure an improper setting does not breach your security\&.
4479 .sp
4480 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\&.
4481 .sp
4482 A name starting with \'+\' is interpreted only by looking in the UNIX group database via the NSS getgrnam() interface\&. 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
4483 \fI+&group\fR
4484 means check the UNIX group database, followed by the NIS netgroup database, and the value
4485 \fI&+group\fR
4486 means check the NIS netgroup database, followed by the UNIX group database (the same as the \'@\' prefix)\&.
4487 .sp
4488 The current servicename is substituted for
4489 \fI%S\fR\&. This is useful in the [homes] section\&.
4490 .sp
4491 Default:
4492 \fI\fIinvalid users\fR\fR\fI = \fR\fI\FC # no invalid users\F[]\fR\fI \fR
4493 .sp
4494 Example:
4495 \fI\fIinvalid users\fR\fR\fI = \fR\fI\FCroot fred admin @wheel\F[]\fR\fI \fR
4496 .RE
4497
4498 iprint server (G)
4499 .\" iprint server
4500 .PP
4501 .RS 4
4502 This parameter is only applicable if
4503 \m[blue]\fBprinting\fR\m[]
4504 is set to
4505 \fBiprint\fR\&.
4506 .sp
4507 If set, this option overrides the ServerName option in the CUPS
4508 \FCclient\&.conf\F[]\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&.
4509 .sp
4510 Default:
4511 \fI\fIiprint server\fR\fR\fI = \fR\fI\FC""\F[]\fR\fI \fR
4512 .sp
4513 Example:
4514 \fI\fIiprint server\fR\fR\fI = \fR\fI\FCMYCUPSSERVER\F[]\fR\fI \fR
4515 .RE
4516
4517 keepalive (G)
4518 .\" keepalive
4519 .PP
4520 .RS 4
4521 The value of the parameter (an integer) represents the number of seconds between
4522 \fIkeepalive\fR
4523 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\&.
4524 .sp
4525 Keepalives should, in general, not be needed if the socket has the SO_KEEPALIVE attribute set on it by default\&. (see
4526 \m[blue]\fBsocket options\fR\m[])\&. Basically you should only use this option if you strike difficulties\&.
4527 .sp
4528 Default:
4529 \fI\fIkeepalive\fR\fR\fI = \fR\fI\FC300\F[]\fR\fI \fR
4530 .sp
4531 Example:
4532 \fI\fIkeepalive\fR\fR\fI = \fR\fI\FC600\F[]\fR\fI \fR
4533 .RE
4534
4535 kerberos method (G)
4536 .\" kerberos method
4537 .PP
4538 .RS 4
4539 Controls how kerberos tickets are verified\&.
4540 .sp
4541 Valid options are:
4542 .sp
4543 .RS 4
4544 .ie n \{\
4545 \h'-04'\(bu\h'+03'\c
4546 .\}
4547 .el \{\
4548 .sp -1
4549 .IP \(bu 2.3
4550 .\}
4551 secrets only \- use only the secrets\&.tdb for ticket verification (default)
4552 .RE
4553 .sp
4554 .RS 4
4555 .ie n \{\
4556 \h'-04'\(bu\h'+03'\c
4557 .\}
4558 .el \{\
4559 .sp -1
4560 .IP \(bu 2.3
4561 .\}
4562 system keytab \- use only the system keytab for ticket verification
4563 .RE
4564 .sp
4565 .RS 4
4566 .ie n \{\
4567 \h'-04'\(bu\h'+03'\c
4568 .\}
4569 .el \{\
4570 .sp -1
4571 .IP \(bu 2.3
4572 .\}
4573 dedicated keytab \- use a dedicated keytab for ticket verification
4574 .RE
4575 .sp
4576 .RS 4
4577 .ie n \{\
4578 \h'-04'\(bu\h'+03'\c
4579 .\}
4580 .el \{\
4581 .sp -1
4582 .IP \(bu 2.3
4583 .\}
4584 secrets and keytab \- use the secrets\&.tdb first, then the system keytab
4585 .sp
4586 .RE
4587 The major difference between "system keytab" and "dedicated keytab" is that the latter method relies on kerberos to find the correct keytab entry instead of filtering based on expected principals\&.
4588 .sp
4589 When the kerberos method is in "dedicated keytab" mode,
4590 \m[blue]\fBdedicated keytab file\fR\m[]
4591 must be set to specify the location of the keytab file\&.
4592 .sp
4593 Default:
4594 \fI\fIkerberos method\fR\fR\fI = \fR\fI\FCsecrets only\F[]\fR\fI \fR
4595 .RE
4596
4597 kernel change notify (S)
4598 .\" kernel change notify
4599 .PP
4600 .RS 4
4601 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\&.
4602 .sp
4603 This parameter is only used when your kernel supports change notification to user programs using the inotify interface\&.
4604 .sp
4605 Default:
4606 \fI\fIkernel change notify\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
4607 .RE
4608
4609 kernel oplocks (G)
4610 .\" kernel oplocks
4611 .PP
4612 .RS 4
4613 For UNIXes that support kernel based
4614 \m[blue]\fBoplocks\fR\m[]
4615 (currently only IRIX and the Linux 2\&.4 kernel), this parameter allows the use of them to be turned on or off\&.
4616 .sp
4617 Kernel oplocks support allows Samba
4618 \fIoplocks \fR
4619 to be broken whenever a local UNIX process or NFS operation accesses a file that
4620 \fBsmbd\fR(8)
4621 has oplocked\&. This allows complete data consistency between SMB/CIFS, NFS and local file access (and is a
4622 \fIvery\fR
4623 cool feature :\-)\&.
4624 .sp
4625 This parameter defaults to
4626 \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\&.
4627 .sp
4628 Default:
4629 \fI\fIkernel oplocks\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
4630 .RE
4631
4632 lanman auth (G)
4633 .\" lanman auth
4634 .PP
4635 .RS 4
4636 This parameter determines whether or not
4637 \fBsmbd\fR(8)
4638 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\&.
4639 .sp
4640 The LANMAN encrypted response is easily broken, due to its case\-insensitive nature, and the choice of algorithm\&. Servers without Windows 95/98/ME or MS DOS clients are advised to disable this option\&.
4641 .sp
4642 Unlike the
4643 \FCencrypt passwords\F[]
4644 option, this parameter cannot alter client behaviour, and the LANMAN response will still be sent over the network\&. See the
4645 \FCclient lanman auth\F[]
4646 to disable this for Samba\'s clients (such as smbclient)
4647 .sp
4648 If this option, and
4649 \FCntlm auth\F[]
4650 are both disabled, then only NTLMv2 logins will be permited\&. Not all clients support NTLMv2, and most will require special configuration to use it\&.
4651 .sp
4652 Default:
4653 \fI\fIlanman auth\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4654 .RE
4655
4656 large readwrite (G)
4657 .\" large readwrite
4658 .PP
4659 .RS 4
4660 This parameter determines whether or not
4661 \fBsmbd\fR(8)
4662 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\&.
4663 .sp
4664 Default:
4665 \fI\fIlarge readwrite\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
4666 .RE
4667
4668 ldap admin dn (G)
4669 .\" ldap admin dn
4670 .PP
4671 .RS 4
4672 The
4673 \m[blue]\fBldap admin dn\fR\m[]
4674 defines the Distinguished Name (DN) name used by Samba to contact the ldap server when retreiving user account information\&. The
4675 \m[blue]\fBldap admin dn\fR\m[]
4676 is used in conjunction with the admin dn password stored in the
4677 \FCprivate/secrets\&.tdb\F[]
4678 file\&. See the
4679 \fBsmbpasswd\fR(8)
4680 man page for more information on how to accomplish this\&.
4681 .sp
4682 The
4683 \m[blue]\fBldap admin dn\fR\m[]
4684 requires a fully specified DN\&. The
4685 \m[blue]\fBldap suffix\fR\m[]
4686 is not appended to the
4687 \m[blue]\fBldap admin dn\fR\m[]\&.
4688 .sp
4689 \fINo default\fR
4690 .RE
4691
4692 ldap connection timeout (G)
4693 .\" ldap connection timeout
4694 .PP
4695 .RS 4
4696 This parameter tells the LDAP library calls which timeout in seconds they should honor during initial connection establishments to LDAP servers\&. It is very useful in failover scenarios in particular\&. If one or more LDAP servers are not reachable at all, we do not have to wait until TCP timeouts are over\&. This feature must be supported by your LDAP library\&.
4697 .sp
4698 This parameter is different from
4699 \m[blue]\fBldap timeout\fR\m[]
4700 which affects operations on LDAP servers using an existing connection and not establishing an initial connection\&.
4701 .sp
4702 Default:
4703 \fI\fIldap connection timeout\fR\fR\fI = \fR\fI\FC2\F[]\fR\fI \fR
4704 .RE
4705
4706 ldap debug level (G)
4707 .\" ldap debug level
4708 .PP
4709 .RS 4
4710 This parameter controls the debug level of the LDAP library calls\&. In the case of OpenLDAP, it is the same bit\-field as understood by the server and documented in the
4711 \fBslapd.conf\fR(5)
4712 manpage\&. A typical useful value will be
4713 \fI1\fR
4714 for tracing function calls\&.
4715 .sp
4716 The debug ouput from the LDAP libraries appears with the prefix [LDAP] in Samba\'s logging output\&. The level at which LDAP logging is printed is controlled by the parameter
4717 \fIldap debug threshold\fR\&.
4718 .sp
4719 Default:
4720 \fI\fIldap debug level\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
4721 .sp
4722 Example:
4723 \fI\fIldap debug level\fR\fR\fI = \fR\fI\FC1\F[]\fR\fI \fR
4724 .RE
4725
4726 ldap debug threshold (G)
4727 .\" ldap debug threshold
4728 .PP
4729 .RS 4
4730 This parameter controls the Samba debug level at which the ldap library debug output is printed in the Samba logs\&. See the description of
4731 \fIldap debug level\fR
4732 for details\&.
4733 .sp
4734 Default:
4735 \fI\fIldap debug threshold\fR\fR\fI = \fR\fI\FC10\F[]\fR\fI \fR
4736 .sp
4737 Example:
4738 \fI\fIldap debug threshold\fR\fR\fI = \fR\fI\FC5\F[]\fR\fI \fR
4739 .RE
4740
4741 ldap delete dn (G)
4742 .\" ldap delete dn
4743 .PP
4744 .RS 4
4745 This parameter specifies whether a delete operation in the ldapsam deletes the complete entry or only the attributes specific to Samba\&.
4746 .sp
4747 Default:
4748 \fI\fIldap delete dn\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4749 .RE
4750
4751 ldap group suffix (G)
4752 .\" ldap group suffix
4753 .PP
4754 .RS 4
4755 This parameter specifies the suffix that is used for groups when these are added to the LDAP directory\&. If this parameter is unset, the value of
4756 \m[blue]\fBldap suffix\fR\m[]
4757 will be used instead\&. The suffix string is pre\-pended to the
4758 \m[blue]\fBldap suffix\fR\m[]
4759 string so use a partial DN\&.
4760 .sp
4761 Default:
4762 \fI\fIldap group suffix\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4763 .sp
4764 Example:
4765 \fI\fIldap group suffix\fR\fR\fI = \fR\fI\FCou=Groups\F[]\fR\fI \fR
4766 .RE
4767
4768 ldap idmap suffix (G)
4769 .\" ldap idmap suffix
4770 .PP
4771 .RS 4
4772 This parameters specifies the suffix that is used when storing idmap mappings\&. If this parameter is unset, the value of
4773 \m[blue]\fBldap suffix\fR\m[]
4774 will be used instead\&. The suffix string is pre\-pended to the
4775 \m[blue]\fBldap suffix\fR\m[]
4776 string so use a partial DN\&.
4777 .sp
4778 Default:
4779 \fI\fIldap idmap suffix\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4780 .sp
4781 Example:
4782 \fI\fIldap idmap suffix\fR\fR\fI = \fR\fI\FCou=Idmap\F[]\fR\fI \fR
4783 .RE
4784
4785 ldap machine suffix (G)
4786 .\" ldap machine suffix
4787 .PP
4788 .RS 4
4789 It specifies where machines should be added to the ldap tree\&. If this parameter is unset, the value of
4790 \m[blue]\fBldap suffix\fR\m[]
4791 will be used instead\&. The suffix string is pre\-pended to the
4792 \m[blue]\fBldap suffix\fR\m[]
4793 string so use a partial DN\&.
4794 .sp
4795 Default:
4796 \fI\fIldap machine suffix\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
4797 .sp
4798 Example:
4799 \fI\fIldap machine suffix\fR\fR\fI = \fR\fI\FCou=Computers\F[]\fR\fI \fR
4800 .RE
4801
4802 ldap passwd sync (G)
4803 .\" ldap passwd sync
4804 .PP
4805 .RS 4
4806 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\&.
4807 .sp
4808 The
4809 \m[blue]\fBldap passwd sync\fR\m[]
4810 can be set to one of three values:
4811 .sp
4812 .RS 4
4813 .ie n \{\
4814 \h'-04'\(bu\h'+03'\c
4815 .\}
4816 .el \{\
4817 .sp -1
4818 .IP \(bu 2.3
4819 .\}
4820 \fIYes\fR
4821 = Try to update the LDAP, NT and LM passwords and update the pwdLastSet time\&.
4822 .RE
4823 .sp
4824 .RS 4
4825 .ie n \{\
4826 \h'-04'\(bu\h'+03'\c
4827 .\}
4828 .el \{\
4829 .sp -1
4830 .IP \(bu 2.3
4831 .\}
4832 \fINo\fR
4833 = Update NT and LM passwords and update the pwdLastSet time\&.
4834 .RE
4835 .sp
4836 .RS 4
4837 .ie n \{\
4838 \h'-04'\(bu\h'+03'\c
4839 .\}
4840 .el \{\
4841 .sp -1
4842 .IP \(bu 2.3
4843 .\}
4844 \fIOnly\fR
4845 = Only update the LDAP password and let the LDAP server do the rest\&.
4846 .sp
4847 .RE
4848 Default:
4849 \fI\fIldap passwd sync\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4850 .RE
4851
4852 ldap replication sleep (G)
4853 .\" ldap replication sleep
4854 .PP
4855 .RS 4
4856 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\&.
4857 .sp
4858 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\&.
4859 .sp
4860 The value is specified in milliseconds, the maximum value is 5000 (5 seconds)\&.
4861 .sp
4862 Default:
4863 \fI\fIldap replication sleep\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
4864 .RE
4865
4866 ldapsam:editposix (G)
4867 .\" ldapsam:editposix
4868 .PP
4869 .RS 4
4870 Editposix is an option that leverages ldapsam:trusted to make it simpler to manage a domain controller eliminating the need to set up custom scripts to add and manage the posix users and groups\&. This option will instead directly manipulate the ldap tree to create, remove and modify user and group entries\&. This option also requires a running winbindd as it is used to allocate new uids/gids on user/group creation\&. The allocation range must be therefore configured\&.
4871 .sp
4872 To use this option, a basic ldap tree must be provided and the ldap suffix parameters must be properly configured\&. On virgin servers the default users and groups (Administrator, Guest, Domain Users, Domain Admins, Domain Guests) can be precreated with the command
4873 \FCnet sam provision\F[]\&. To run this command the ldap server must be running, Winindd must be running and the smb\&.conf ldap options must be properly configured\&. The typical ldap setup used with the
4874 \m[blue]\fBldapsam:trusted = yes\fR\m[]
4875 option is usually sufficient to use
4876 \m[blue]\fBldapsam:editposix = yes\fR\m[]
4877 as well\&.
4878 .sp
4879 An example configuration can be the following:
4880 .sp
4881 .if n \{\
4882 .RS 4
4883 .\}
4884 .fam C
4885 .ps -1
4886 .nf
4887 .if t \{\
4888 .sp -1
4889 .\}
4890 .BB lightgray adjust-for-leading-newline
4891 .sp -1
4892
4893         encrypt passwords = true
4894         passdb backend = ldapsam
4895
4896         ldapsam:trusted=yes
4897         ldapsam:editposix=yes
4898
4899         ldap admin dn = cn=admin,dc=samba,dc=org
4900         ldap delete dn = yes
4901         ldap group suffix = ou=groups
4902         ldap idmap suffix = ou=idmap
4903         ldap machine suffix = ou=computers
4904         ldap user suffix = ou=users
4905         ldap suffix = dc=samba,dc=org
4906
4907         idmap backend = ldap:"ldap://localhost"
4908
4909         idmap uid = 5000\-50000
4910         idmap gid = 5000\-50000
4911         
4912 .EB lightgray adjust-for-leading-newline
4913 .if t \{\
4914 .sp 1
4915 .\}
4916 .fi
4917 .fam
4918 .ps +1
4919 .if n \{\
4920 .RE
4921 .\}
4922 .sp
4923 This configuration assumes a directory layout like described in the following ldif:
4924 .sp
4925 .if n \{\
4926 .RS 4
4927 .\}
4928 .fam C
4929 .ps -1
4930 .nf
4931 .if t \{\
4932 .sp -1
4933 .\}
4934 .BB lightgray adjust-for-leading-newline
4935 .sp -1
4936
4937         dn: dc=samba,dc=org
4938         objectClass: top
4939         objectClass: dcObject
4940         objectClass: organization
4941         o: samba\&.org
4942         dc: samba
4943
4944         dn: cn=admin,dc=samba,dc=org
4945         objectClass: simpleSecurityObject
4946         objectClass: organizationalRole
4947         cn: admin
4948         description: LDAP administrator
4949         userPassword: secret
4950
4951         dn: ou=users,dc=samba,dc=org
4952         objectClass: top
4953         objectClass: organizationalUnit
4954         ou: users
4955
4956         dn: ou=groups,dc=samba,dc=org
4957         objectClass: top
4958         objectClass: organizationalUnit
4959         ou: groups
4960
4961         dn: ou=idmap,dc=samba,dc=org
4962         objectClass: top
4963         objectClass: organizationalUnit
4964         ou: idmap
4965
4966         dn: ou=computers,dc=samba,dc=org
4967         objectClass: top
4968         objectClass: organizationalUnit
4969         ou: computers
4970         
4971 .EB lightgray adjust-for-leading-newline
4972 .if t \{\
4973 .sp 1
4974 .\}
4975 .fi
4976 .fam
4977 .ps +1
4978 .if n \{\
4979 .RE
4980 .\}
4981 .sp
4982 Default:
4983 \fI\fIldapsam:editposix\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
4984 .RE
4985
4986 ldapsam:trusted (G)
4987 .\" ldapsam:trusted
4988 .PP
4989 .RS 4
4990 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\&.
4991 .sp
4992 To make Samba scale well in large environments, the
4993 \m[blue]\fBldapsam:trusted = yes\fR\m[]
4994 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,
4995 \m[blue]\fBldapsam:trusted = yes\fR\m[]
4996 can be activated and Samba can bypass the NSS system to query user group memberships\&. 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\&.
4997 .sp
4998 Default:
4999 \fI\fIldapsam:trusted\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
5000 .RE
5001
5002 ldap ssl ads (G)
5003 .\" ldap ssl ads
5004 .PP
5005 .RS 4
5006 This option is used to define whether or not Samba should use SSL when connecting to the ldap server using
5007 \fIads\fR
5008 methods\&. Rpc methods are not affected by this parameter\&. Please note, that this parameter won\'t have any effect if
5009 \m[blue]\fBldap ssl\fR\m[]
5010 is set to
5011 \fIno\fR\&.
5012 .sp
5013 See
5014 smb\&.conf(5)
5015 for more information on
5016 \m[blue]\fBldap ssl\fR\m[]\&.
5017 .sp
5018 Default:
5019 \fI\fIldap ssl ads\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
5020 .RE
5021
5022 ldap ssl (G)
5023 .\" ldap ssl
5024 .PP
5025 .RS 4
5026 This option is used to define whether or not Samba should use SSL when connecting to the ldap server This is
5027 \fINOT\fR
5028 related to Samba\'s previous SSL support which was enabled by specifying the
5029 \FC\-\-with\-ssl\F[]
5030 option to the
5031 \FCconfigure\F[]
5032 script\&.
5033 .sp
5034 LDAP connections should be secured where possible\&. This may be done setting
5035 \fIeither\fR
5036 this parameter to
5037 \fIStart_tls\fR
5038 \fIor\fR
5039 by specifying
5040 \fIldaps://\fR
5041 in the URL argument of
5042 \m[blue]\fBpassdb backend\fR\m[]\&.
5043 .sp
5044 The
5045 \m[blue]\fBldap ssl\fR\m[]
5046 can be set to one of two values:
5047 .sp
5048 .RS 4
5049 .ie n \{\
5050 \h'-04'\(bu\h'+03'\c
5051 .\}
5052 .el \{\
5053 .sp -1
5054 .IP \(bu 2.3
5055 .\}
5056 \fIOff\fR
5057 = Never use SSL when querying the directory\&.
5058 .RE
5059 .sp
5060 .RS 4
5061 .ie n \{\
5062 \h'-04'\(bu\h'+03'\c
5063 .\}
5064 .el \{\
5065 .sp -1
5066 .IP \(bu 2.3
5067 .\}
5068 \fIstart tls\fR
5069 = Use the LDAPv3 StartTLS extended operation (RFC2830) for communicating with the directory server\&.
5070 .sp
5071 .RE
5072 Please note that this parameter does only affect
5073 \fIrpc\fR
5074 methods\&. To enable the LDAPv3 StartTLS extended operation (RFC2830) for
5075 \fIads\fR, set
5076 \m[blue]\fBldap ssl = yes\fR\m[]
5077 \fIand\fR
5078 \m[blue]\fBldap ssl ads = yes\fR\m[]\&. See
5079 smb\&.conf(5)
5080 for more information on
5081 \m[blue]\fBldap ssl ads\fR\m[]\&.
5082 .sp
5083 Default:
5084 \fI\fIldap ssl\fR\fR\fI = \fR\fI\FCstart tls\F[]\fR\fI \fR
5085 .RE
5086
5087 ldap suffix (G)
5088 .\" ldap suffix
5089 .PP
5090 .RS 4
5091 Specifies the base for all ldap suffixes and for storing the sambaDomain object\&.
5092 .sp
5093 The ldap suffix will be appended to the values specified for the
5094 \m[blue]\fBldap user suffix\fR\m[],
5095 \m[blue]\fBldap group suffix\fR\m[],
5096 \m[blue]\fBldap machine suffix\fR\m[], and the
5097 \m[blue]\fBldap idmap suffix\fR\m[]\&. Each of these should be given only a DN relative to the
5098 \m[blue]\fBldap suffix\fR\m[]\&.
5099 .sp
5100 Default:
5101 \fI\fIldap suffix\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
5102 .sp
5103 Example:
5104 \fI\fIldap suffix\fR\fR\fI = \fR\fI\FCdc=samba,dc=org\F[]\fR\fI \fR
5105 .RE
5106
5107 ldap timeout (G)
5108 .\" ldap timeout
5109 .PP
5110 .RS 4
5111 This parameter defines the number of seconds that Samba should use as timeout for LDAP operations\&.
5112 .sp
5113 Default:
5114 \fI\fIldap timeout\fR\fR\fI = \fR\fI\FC15\F[]\fR\fI \fR
5115 .RE
5116
5117 ldap user suffix (G)
5118 .\" ldap user suffix
5119 .PP
5120 .RS 4
5121 This parameter specifies where users are added to the tree\&. If this parameter is unset, the value of
5122 \m[blue]\fBldap suffix\fR\m[]
5123 will be used instead\&. The suffix string is pre\-pended to the
5124 \m[blue]\fBldap suffix\fR\m[]
5125 string so use a partial DN\&.
5126 .sp
5127 Default:
5128 \fI\fIldap user suffix\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
5129 .sp
5130 Example:
5131 \fI\fIldap user suffix\fR\fR\fI = \fR\fI\FCou=people\F[]\fR\fI \fR
5132 .RE
5133
5134 level2 oplocks (S)
5135 .\" level2 oplocks
5136 .PP
5137 .RS 4
5138 This parameter controls whether Samba supports level2 (read\-only) oplocks on a share\&.
5139 .sp
5140 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)\&.
5141 .sp
5142 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\&.
5143 .sp
5144 It is recommended that this parameter be turned on to speed access to shared executables\&.
5145 .sp
5146 For more discussions on level2 oplocks see the CIFS spec\&.
5147 .sp
5148 Currently, if
5149 \m[blue]\fBkernel oplocks\fR\m[]
5150 are supported then level2 oplocks are not granted (even if this parameter is set to
5151 \fByes\fR)\&. Note also, the
5152 \m[blue]\fBoplocks\fR\m[]
5153 parameter must be set to
5154 \fByes\fR
5155 on this share in order for this parameter to have any effect\&.
5156 .sp
5157 Default:
5158 \fI\fIlevel2 oplocks\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
5159 .RE
5160
5161 lm announce (G)
5162 .\" lm announce
5163 .PP
5164 .RS 4
5165 This parameter determines if
5166 \fBnmbd\fR(8)
5167 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,
5168 \fByes\fR,
5169 \fBno\fR, or
5170 \fBauto\fR\&. The default is
5171 \fBauto\fR\&. If set to
5172 \fBno\fR
5173 Samba will never produce these broadcasts\&. If set to
5174 \fByes\fR
5175 Samba will produce Lanman announce broadcasts at a frequency set by the parameter
5176 \m[blue]\fBlm interval\fR\m[]\&. If set to
5177 \fBauto\fR
5178 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 parameter
5179 \m[blue]\fBlm interval\fR\m[]\&.
5180 .sp
5181 Default:
5182 \fI\fIlm announce\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
5183 .sp
5184 Example:
5185 \fI\fIlm announce\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
5186 .RE
5187
5188 lm interval (G)
5189 .\" lm interval
5190 .PP
5191 .RS 4
5192 If Samba is set to produce Lanman announce broadcasts needed by OS/2 clients (see the
5193 \m[blue]\fBlm announce\fR\m[]
5194 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
5195 \m[blue]\fBlm announce\fR\m[]
5196 parameter\&.
5197 .sp
5198 Default:
5199 \fI\fIlm interval\fR\fR\fI = \fR\fI\FC60\F[]\fR\fI \fR
5200 .sp
5201 Example:
5202 \fI\fIlm interval\fR\fR\fI = \fR\fI\FC120\F[]\fR\fI \fR
5203 .RE
5204
5205 load printers (G)
5206 .\" load printers
5207 .PP
5208 .RS 4
5209 A boolean variable that controls whether all printers in the printcap will be loaded for browsing by default\&. See the
5210 \m[blue]\fBprinters\fR\m[]
5211 section for more details\&.
5212 .sp
5213 Default:
5214 \fI\fIload printers\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
5215 .RE
5216
5217 local master (G)
5218 .\" local master
5219 .PP
5220 .RS 4
5221 This option allows
5222 \fBnmbd\fR(8)
5223 to try and become a local master browser on a subnet\&. If set to
5224 \fBno\fR
5225 then
5226 \FC nmbd\F[]
5227 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
5228 \fByes\fR\&. Setting this value to
5229 \fByes\fR
5230 doesn\'t mean that Samba will
5231 \fIbecome\fR
5232 the local master browser on a subnet, just that
5233 \FCnmbd\F[]
5234 will
5235 \fIparticipate\fR
5236 in elections for local master browser\&.
5237 .sp
5238 Setting this value to
5239 \fBno\fR
5240 will cause
5241 \FCnmbd\F[]
5242 \fInever\fR
5243 to become a local master browser\&.
5244 .sp
5245 Default:
5246 \fI\fIlocal master\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
5247 .RE
5248
5249 lock dir
5250 .\" lock dir
5251 .PP
5252 .RS 4
5253 This parameter is a synonym for
5254 lock directory\&.
5255 .RE
5256
5257 lock directory (G)
5258 .\" lock directory
5259 .PP
5260 .RS 4
5261 This option specifies the directory where lock files will be placed\&. The lock files are used to implement the
5262 \m[blue]\fBmax connections\fR\m[]
5263 option\&.
5264 .sp
5265 Note: This option can not be set inside registry configurations\&.
5266 .sp
5267 Default:
5268 \fI\fIlock directory\fR\fR\fI = \fR\fI\FC${prefix}/var/locks\F[]\fR\fI \fR
5269 .sp
5270 Example:
5271 \fI\fIlock directory\fR\fR\fI = \fR\fI\FC/var/run/samba/locks\F[]\fR\fI \fR
5272 .RE
5273
5274 locking (S)
5275 .\" locking
5276 .PP
5277 .RS 4
5278 This controls whether or not locking will be performed by the server in response to lock requests from the client\&.
5279 .sp
5280 If
5281 \FClocking = no\F[], all lock and unlock requests will appear to succeed and all lock queries will report that the file in question is available for locking\&.
5282 .sp
5283 If
5284 \FClocking = yes\F[], real locking will be performed by the server\&.
5285 .sp
5286 This option
5287 \fImay\fR
5288 be useful for read\-only filesystems which
5289 \fImay\fR
5290 not need locking (such as CDROM drives), although setting this parameter of
5291 \fBno\fR
5292 is not really recommended even in this case\&.
5293 .sp
5294 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\&.
5295 .sp
5296 \fINo default\fR
5297 .RE
5298
5299 lock spin count (G)
5300 .\" lock spin count
5301 .PP
5302 .RS 4
5303 This parameter has been made inoperative in Samba 3\&.0\&.24\&. The functionality it contolled is now controlled by the parameter
5304 \m[blue]\fBlock spin time\fR\m[]\&.
5305 .sp
5306 Default:
5307 \fI\fIlock spin count\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
5308 .RE
5309
5310 lock spin time (G)
5311 .\" lock spin time
5312 .PP
5313 .RS 4
5314 The time in microseconds that smbd should keep waiting to see if a failed lock request can be granted\&. This parameter has changed in default value from Samba 3\&.0\&.23 from 10 to 200\&. The associated
5315 \m[blue]\fBlock spin count\fR\m[]
5316 parameter is no longer used in Samba 3\&.0\&.24\&. You should not need to change the value of this parameter\&.
5317 .sp
5318 Default:
5319 \fI\fIlock spin time\fR\fR\fI = \fR\fI\FC200\F[]\fR\fI \fR
5320 .RE
5321
5322 log file (G)
5323 .\" log file
5324 .PP
5325 .RS 4
5326 This option allows you to override the name of the Samba log file (also known as the debug file)\&.
5327 .sp
5328 This option takes the standard substitutions, allowing you to have separate log files for each user or machine\&.
5329 .sp
5330 \fINo default\fR
5331 .sp
5332 Example:
5333 \fI\fIlog file\fR\fR\fI = \fR\fI\FC/usr/local/samba/var/log\&.%m\F[]\fR\fI \fR
5334 .RE
5335
5336 debuglevel
5337 .\" debuglevel
5338 .PP
5339 .RS 4
5340 This parameter is a synonym for
5341 log level\&.
5342 .RE
5343
5344 log level (G)
5345 .\" log level
5346 .PP
5347 .RS 4
5348 The value of the parameter (a astring) allows the debug level (logging level) to be specified in the
5349 \FCsmb\&.conf\F[]
5350 file\&.
5351 .sp
5352 This parameter has been extended since the 2\&.2\&.x series, now it allows to specify the debug level for multiple debug classes\&. This is to give greater flexibility in the configuration of the system\&. The following debug classes are currently implemented:
5353 .sp
5354 .RS 4
5355 .ie n \{\
5356 \h'-04'\(bu\h'+03'\c
5357 .\}
5358 .el \{\
5359 .sp -1
5360 .IP \(bu 2.3
5361 .\}
5362 \fIall\fR
5363 .RE
5364 .sp
5365 .RS 4
5366 .ie n \{\
5367 \h'-04'\(bu\h'+03'\c
5368 .\}
5369 .el \{\
5370 .sp -1
5371 .IP \(bu 2.3
5372 .\}
5373 \fItdb\fR
5374 .RE
5375 .sp
5376 .RS 4
5377 .ie n \{\
5378 \h'-04'\(bu\h'+03'\c
5379 .\}
5380 .el \{\
5381 .sp -1
5382 .IP \(bu 2.3
5383 .\}
5384 \fIprintdrivers\fR
5385 .RE
5386 .sp
5387 .RS 4
5388 .ie n \{\
5389 \h'-04'\(bu\h'+03'\c
5390 .\}
5391 .el \{\
5392 .sp -1
5393 .IP \(bu 2.3
5394 .\}
5395 \fIlanman\fR
5396 .RE
5397 .sp
5398 .RS 4
5399 .ie n \{\
5400 \h'-04'\(bu\h'+03'\c
5401 .\}
5402 .el \{\
5403 .sp -1
5404 .IP \(bu 2.3
5405 .\}
5406 \fIsmb\fR
5407 .RE
5408 .sp
5409 .RS 4
5410 .ie n \{\
5411 \h'-04'\(bu\h'+03'\c
5412 .\}
5413 .el \{\
5414 .sp -1
5415 .IP \(bu 2.3
5416 .\}
5417 \fIrpc_parse\fR
5418 .RE
5419 .sp
5420 .RS 4
5421 .ie n \{\
5422 \h'-04'\(bu\h'+03'\c
5423 .\}
5424 .el \{\
5425 .sp -1
5426 .IP \(bu 2.3
5427 .\}
5428 \fIrpc_srv\fR
5429 .RE
5430 .sp
5431 .RS 4
5432 .ie n \{\
5433 \h'-04'\(bu\h'+03'\c
5434 .\}
5435 .el \{\
5436 .sp -1
5437 .IP \(bu 2.3
5438 .\}
5439 \fIrpc_cli\fR
5440 .RE
5441 .sp
5442 .RS 4
5443 .ie n \{\
5444 \h'-04'\(bu\h'+03'\c
5445 .\}
5446 .el \{\
5447 .sp -1
5448 .IP \(bu 2.3
5449 .\}
5450 \fIpassdb\fR
5451 .RE
5452 .sp
5453 .RS 4
5454 .ie n \{\
5455 \h'-04'\(bu\h'+03'\c
5456 .\}
5457 .el \{\
5458 .sp -1
5459 .IP \(bu 2.3
5460 .\}
5461 \fIsam\fR
5462 .RE
5463 .sp
5464 .RS 4
5465 .ie n \{\
5466 \h'-04'\(bu\h'+03'\c
5467 .\}
5468 .el \{\
5469 .sp -1
5470 .IP \(bu 2.3
5471 .\}
5472 \fIauth\fR
5473 .RE
5474 .sp
5475 .RS 4
5476 .ie n \{\
5477 \h'-04'\(bu\h'+03'\c
5478 .\}
5479 .el \{\
5480 .sp -1
5481 .IP \(bu 2.3
5482 .\}
5483 \fIwinbind\fR
5484 .RE
5485 .sp
5486 .RS 4
5487 .ie n \{\
5488 \h'-04'\(bu\h'+03'\c
5489 .\}
5490 .el \{\
5491 .sp -1
5492 .IP \(bu 2.3
5493 .\}
5494 \fIvfs\fR
5495 .RE
5496 .sp
5497 .RS 4
5498 .ie n \{\
5499 \h'-04'\(bu\h'+03'\c
5500 .\}
5501 .el \{\
5502 .sp -1
5503 .IP \(bu 2.3
5504 .\}
5505 \fIidmap\fR
5506 .RE
5507 .sp
5508 .RS 4
5509 .ie n \{\
5510 \h'-04'\(bu\h'+03'\c
5511 .\}
5512 .el \{\
5513 .sp -1
5514 .IP \(bu 2.3
5515 .\}
5516 \fIquota\fR
5517 .RE
5518 .sp
5519 .RS 4
5520 .ie n \{\
5521 \h'-04'\(bu\h'+03'\c
5522 .\}
5523 .el \{\
5524 .sp -1
5525 .IP \(bu 2.3
5526 .\}
5527 \fIacls\fR
5528 .RE
5529 .sp
5530 .RS 4
5531 .ie n \{\
5532 \h'-04'\(bu\h'+03'\c
5533 .\}
5534 .el \{\
5535 .sp -1
5536 .IP \(bu 2.3
5537 .\}
5538 \fIlocking\fR
5539 .RE
5540 .sp
5541 .RS 4
5542 .ie n \{\
5543 \h'-04'\(bu\h'+03'\c
5544 .\}
5545 .el \{\
5546 .sp -1
5547 .IP \(bu 2.3
5548 .\}
5549 \fImsdfs\fR
5550 .RE
5551 .sp
5552 .RS 4
5553 .ie n \{\
5554 \h'-04'\(bu\h'+03'\c
5555 .\}
5556 .el \{\
5557 .sp -1
5558 .IP \(bu 2.3
5559 .\}
5560 \fIdmapi\fR
5561 .RE
5562 .sp
5563 .RS 4
5564 .ie n \{\
5565 \h'-04'\(bu\h'+03'\c
5566 .\}
5567 .el \{\
5568 .sp -1
5569 .IP \(bu 2.3
5570 .\}
5571 \fIregistry\fR
5572 .sp
5573 .RE
5574 Default:
5575 \fI\fIlog level\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
5576 .sp
5577 Example:
5578 \fI\fIlog level\fR\fR\fI = \fR\fI\FC3 passdb:5 auth:10 winbind:2\F[]\fR\fI \fR
5579 .RE
5580
5581 logon drive (G)
5582 .\" logon drive
5583 .PP
5584 .RS 4
5585 This parameter specifies the local path to which the home directory will be connected (see
5586 \m[blue]\fBlogon home\fR\m[]) and is only used by NT Workstations\&.
5587 .sp
5588 Note that this option is only useful if Samba is set up as a logon server\&.
5589 .sp
5590 Default:
5591 \fI\fIlogon drive\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
5592 .sp
5593 Example:
5594 \fI\fIlogon drive\fR\fR\fI = \fR\fI\FCh:\F[]\fR\fI \fR
5595 .RE
5596
5597 logon home (G)
5598 .\" logon home
5599 .PP
5600 .RS 4
5601 This parameter specifies the home directory location when a Win95/98 or NT Workstation logs into a Samba PDC\&. It allows you to do
5602 .sp
5603
5604 \FCC:\e>\F[]\fBNET USE H: /HOME\fR
5605 .sp
5606 from a command prompt, for example\&.
5607 .sp
5608 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
5609 .sp
5610 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:
5611 .sp
5612
5613 \FClogon home = \e\e%N\e%U\eprofile\F[]
5614 .sp
5615 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 \e\eserver\eshare when a user does
5616 \FCnet use /home\F[]
5617 but use the whole string when dealing with profiles\&.
5618 .sp
5619 Note that in prior versions of Samba, the
5620 \m[blue]\fBlogon path\fR\m[]
5621 was returned rather than
5622 \fIlogon home\fR\&. This broke
5623 \FCnet use /home\F[]
5624 but allowed profiles outside the home directory\&. The current implementation is correct, and can be used for profiles if you use the above trick\&.
5625 .sp
5626 Disable this feature by setting
5627 \m[blue]\fBlogon home = ""\fR\m[]
5628 \- using the empty string\&.
5629 .sp
5630 This option is only useful if Samba is set up as a logon server\&.
5631 .sp
5632 Default:
5633 \fI\fIlogon home\fR\fR\fI = \fR\fI\FC\e\e%N\e%U\F[]\fR\fI \fR
5634 .sp
5635 Example:
5636 \fI\fIlogon home\fR\fR\fI = \fR\fI\FC\e\eremote_smb_server\e%U\F[]\fR\fI \fR
5637 .RE
5638
5639 logon path (G)
5640 .\" logon path
5641 .PP
5642 .RS 4
5643 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 the
5644 \m[blue]\fBlogon home\fR\m[]
5645 parameter\&.
5646 .sp
5647 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",
5648 \FCdesktop\F[],
5649 \FCstart menu\F[],
5650 \FCnetwork neighborhood\F[],
5651 \FCprograms\F[]
5652 and other folders, and their contents, are loaded and displayed on your Windows NT client\&.
5653 .sp
5654 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
5655 \fIMAN\fRdatory profile)\&.
5656 .sp
5657 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 \e\e%N\ehomes\eprofile_path will cause problems)\&.
5658 .sp
5659 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
5660 .if n \{\
5661 .sp
5662 .\}
5663 .RS 4
5664 .BM yellow
5665 .it 1 an-trap
5666 .nr an-no-space-flag 1
5667 .nr an-break-flag 1
5668 .br
5669 .ps +1
5670 \fBWarning\fR
5671 .ps -1
5672 .br
5673 Do not quote the value\&. Setting this as
5674 \(lq\e\e%N\eprofile\e%U\(rq
5675 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)\&.
5676 .sp .5v
5677 .EM yellow
5678 .RE
5679 Note that this option is only useful if Samba is set up as a domain controller\&.
5680 .sp
5681 Disable the use of roaming profiles by setting the value of this parameter to the empty string\&. For example,
5682 \m[blue]\fBlogon path = ""\fR\m[]\&. 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\&.
5683 .sp
5684 An example of use is:
5685 .sp
5686 .if n \{\
5687 .RS 4
5688 .\}
5689 .fam C
5690 .ps -1
5691 .nf
5692 .if t \{\
5693 .sp -1
5694 .\}
5695 .BB lightgray adjust-for-leading-newline
5696 .sp -1
5697
5698 logon path = \e\ePROFILESERVER\ePROFILE\e%U
5699 .EB lightgray adjust-for-leading-newline
5700 .if t \{\
5701 .sp 1
5702 .\}
5703 .fi
5704 .fam
5705 .ps +1
5706 .if n \{\
5707 .RE
5708 .\}
5709 .sp
5710 Default:
5711 \fI\fIlogon path\fR\fR\fI = \fR\fI\FC\e\e%N\e%U\eprofile\F[]\fR\fI \fR
5712 .RE
5713
5714 logon script (G)
5715 .\" logon script
5716 .PP
5717 .RS 4
5718 This parameter specifies the batch file (\FC\&.bat\F[]) or NT command file (\FC\&.cmd\F[]) 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\&.
5719 .sp
5720 The script must be a relative path to the
5721 \fI[netlogon]\fR
5722 service\&. If the [netlogon] service specifies a
5723 \m[blue]\fBpath\fR\m[]
5724 of
5725 \FC/usr/local/samba/netlogon\F[], and
5726 \m[blue]\fBlogon script = STARTUP\&.BAT\fR\m[], then the file that will be downloaded is:
5727 .sp
5728 .if n \{\
5729 .RS 4
5730 .\}
5731 .fam C
5732 .ps -1
5733 .nf
5734 .if t \{\
5735 .sp -1
5736 .\}
5737 .BB lightgray adjust-for-leading-newline
5738 .sp -1
5739
5740         /usr/local/samba/netlogon/STARTUP\&.BAT
5741 .EB lightgray adjust-for-leading-newline
5742 .if t \{\
5743 .sp 1
5744 .\}
5745 .fi
5746 .fam
5747 .ps +1
5748 .if n \{\
5749 .RE
5750 .\}
5751 .sp
5752 The contents of the batch file are entirely your choice\&. A suggested command would be to add
5753 \FCNET TIME \e\eSERVER /SET /YES\F[], to force every machine to synchronize clocks with the same time server\&. Another use would be to add
5754 \FCNET USE U: \e\eSERVER\eUTILS\F[]
5755 for commonly used utilities, or
5756 .sp
5757 .if n \{\
5758 .RS 4
5759 .\}
5760 .fam C
5761 .ps -1
5762 .nf
5763 .if t \{\
5764 .sp -1
5765 .\}
5766 .BB lightgray adjust-for-leading-newline
5767 .sp -1
5768
5769 \fBNET USE Q: \e\eSERVER\eISO9001_QA\fR
5770 .EB lightgray adjust-for-leading-newline
5771 .if t \{\
5772 .sp 1
5773 .\}
5774 .fi
5775 .fam
5776 .ps +1
5777 .if n \{\
5778 .RE
5779 .\}
5780 .sp
5781 for example\&.
5782 .sp
5783 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\&.
5784 .sp
5785 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
5786 .sp
5787 This option is only useful if Samba is set up as a logon server\&.
5788 .sp
5789 Default:
5790 \fI\fIlogon script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
5791 .sp
5792 Example:
5793 \fI\fIlogon script\fR\fR\fI = \fR\fI\FCscripts\e%U\&.bat\F[]\fR\fI \fR
5794 .RE
5795
5796 lppause command (S)
5797 .\" lppause command
5798 .PP
5799 .RS 4
5800 This parameter specifies the command to be executed on the server host in order to stop printing or spooling a specific print job\&.
5801 .sp
5802 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\&.
5803 .sp
5804 If a
5805 \fI%p\fR
5806 is given then the printer name is put in its place\&. A
5807 \fI%j\fR
5808 is replaced with the job number (an integer)\&. On HPUX (see
5809 \fIprinting=hpux \fR), if the
5810 \fI\-p%p\fR
5811 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\&.
5812 .sp
5813 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\&.
5814 .sp
5815 Default:
5816 \fI\fIlppause command\fR\fR\fI = \fR\fI\FC # Currently no default value is given to this string, unless the value of the \m[blue]\fBprinting\fR\m[] parameter is \fBSYSV\fR, in which case the default is : \FClp \-i %p\-%j \-H hold\F[] or if the value of the \fIprinting\fR parameter is \fBSOFTQ\fR, then the default is: \FCqstat \-s \-j%j \-h\F[]\&. \F[]\fR\fI \fR
5817 .sp
5818 Example:
5819 \fI\fIlppause command\fR\fR\fI = \fR\fI\FC/usr/bin/lpalt %p\-%j \-p0\F[]\fR\fI \fR
5820 .RE
5821
5822 lpq cache time (G)
5823 .\" lpq cache time
5824 .PP
5825 .RS 4
5826 This controls how long lpq info will be cached for to prevent the
5827 \FClpq\F[]
5828 command being called too often\&. A separate cache is kept for each variation of the
5829 \FC lpq\F[]
5830 command used by the system, so if you use different
5831 \FClpq\F[]
5832 commands for different users then they won\'t share cache information\&.
5833 .sp
5834 The cache files are stored in
5835 \FC/tmp/lpq\&.xxxx\F[]
5836 where xxxx is a hash of the
5837 \FClpq\F[]
5838 command in use\&.
5839 .sp
5840 The default is 30 seconds, meaning that the cached results of a previous identical
5841 \FClpq\F[]
5842 command will be used if the cached data is less than 30 seconds old\&. A large value may be advisable if your
5843 \FClpq\F[]
5844 command is very slow\&.
5845 .sp
5846 A value of 0 will disable caching completely\&.
5847 .sp
5848 Default:
5849 \fI\fIlpq cache time\fR\fR\fI = \fR\fI\FC30\F[]\fR\fI \fR
5850 .sp
5851 Example:
5852 \fI\fIlpq cache time\fR\fR\fI = \fR\fI\FC10\F[]\fR\fI \fR
5853 .RE
5854
5855 lpq command (S)
5856 .\" lpq command
5857 .PP
5858 .RS 4
5859 This parameter specifies the command to be executed on the server host in order to obtain
5860 \FClpq \F[]\-style printer status information\&.
5861 .sp
5862 This command should be a program or script which takes a printer name as its only parameter and outputs printer status information\&.
5863 .sp
5864 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
5865 \fIprinting =\fR
5866 option\&.
5867 .sp
5868 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\&.
5869 .sp
5870 If a
5871 \fI%p\fR
5872 is given then the printer name is put in its place\&. Otherwise it is placed at the end of the command\&.
5873 .sp
5874 Note that it is good practice to include the absolute path in the
5875 \fIlpq command\fR
5876 as the
5877 \fB$PATH \fR
5878 may not be available to the server\&. When compiled with the CUPS libraries, no
5879 \fIlpq command\fR
5880 is needed because smbd will make a library call to obtain the print queue listing\&.
5881 .sp
5882 Default:
5883 \fI\fIlpq command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
5884 .sp
5885 Example:
5886 \fI\fIlpq command\fR\fR\fI = \fR\fI\FC/usr/bin/lpq \-P%p\F[]\fR\fI \fR
5887 .RE
5888
5889 lpresume command (S)
5890 .\" lpresume command
5891 .PP
5892 .RS 4
5893 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\&.
5894 .sp
5895 This command should be a program or script which takes a printer name and job number to resume the print job\&. See also the
5896 \m[blue]\fBlppause command\fR\m[]
5897 parameter\&.
5898 .sp
5899 If a
5900 \fI%p\fR
5901 is given then the printer name is put in its place\&. A
5902 \fI%j\fR
5903 is replaced with the job number (an integer)\&.
5904 .sp
5905 Note that it is good practice to include the absolute path in the
5906 \fIlpresume command\fR
5907 as the PATH may not be available to the server\&.
5908 .sp
5909 See also the
5910 \m[blue]\fBprinting\fR\m[]
5911 parameter\&.
5912 .sp
5913 Default: Currently no default value is given to this string, unless the value of the
5914 \fIprinting\fR
5915 parameter is
5916 \fBSYSV\fR, in which case the default is:
5917 .sp
5918 \FClp \-i %p\-%j \-H resume\F[]
5919 .sp
5920 or if the value of the
5921 \fIprinting\fR
5922 parameter is
5923 \fBSOFTQ\fR, then the default is:
5924 .sp
5925 \FCqstat \-s \-j%j \-r\F[]
5926 .sp
5927 \fINo default\fR
5928 .sp
5929 Example:
5930 \fI\fIlpresume command\fR\fR\fI = \fR\fI\FC/usr/bin/lpalt %p\-%j \-p2\F[]\fR\fI \fR
5931 .RE
5932
5933 lprm command (S)
5934 .\" lprm command
5935 .PP
5936 .RS 4
5937 This parameter specifies the command to be executed on the server host in order to delete a print job\&.
5938 .sp
5939 This command should be a program or script which takes a printer name and job number, and deletes the print job\&.
5940 .sp
5941 If a
5942 \fI%p\fR
5943 is given then the printer name is put in its place\&. A
5944 \fI%j\fR
5945 is replaced with the job number (an integer)\&.
5946 .sp
5947 Note that it is good practice to include the absolute path in the
5948 \fIlprm command\fR
5949 as the PATH may not be available to the server\&.
5950 .sp
5951 Examples of use are:
5952 .sp
5953 .if n \{\
5954 .RS 4
5955 .\}
5956 .fam C
5957 .ps -1
5958 .nf
5959 .if t \{\
5960 .sp -1
5961 .\}
5962 .BB lightgray adjust-for-leading-newline
5963 .sp -1
5964
5965 lprm command = /usr/bin/lprm \-P%p %j
5966
5967 or
5968
5969 lprm command = /usr/bin/cancel %p\-%j
5970 .EB lightgray adjust-for-leading-newline
5971 .if t \{\
5972 .sp 1
5973 .\}
5974 .fi
5975 .fam
5976 .ps +1
5977 .if n \{\
5978 .RE
5979 .\}
5980 .sp
5981 Default:
5982 \fI\fIlprm command\fR\fR\fI = \fR\fI\FC determined by printing parameter\F[]\fR\fI \fR
5983 .RE
5984
5985 machine password timeout (G)
5986 .\" machine password timeout
5987 .PP
5988 .RS 4
5989 If a Samba server is a member of a Windows NT Domain (see the
5990 \m[blue]\fBsecurity = domain\fR\m[]
5991 parameter) then periodically a running smbd process will try and change the MACHINE ACCOUNT PASSWORD stored in the TDB called
5992 \FCprivate/secrets\&.tdb \F[]\&. 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\&.
5993 .sp
5994 See also
5995 \fBsmbpasswd\fR(8), and the
5996 \m[blue]\fBsecurity = domain\fR\m[]
5997 parameter\&.
5998 .sp
5999 Default:
6000 \fI\fImachine password timeout\fR\fR\fI = \fR\fI\FC604800\F[]\fR\fI \fR
6001 .RE
6002
6003 magic output (S)
6004 .\" magic output
6005 .PP
6006 .RS 4
6007 This parameter specifies the name of a file which will contain output created by a magic script (see the
6008 \m[blue]\fBmagic script\fR\m[]
6009 parameter below)\&.
6010 .if n \{\
6011 .sp
6012 .\}
6013 .RS 4
6014 .BM yellow
6015 .it 1 an-trap
6016 .nr an-no-space-flag 1
6017 .nr an-break-flag 1
6018 .br
6019 .ps +1
6020 \fBWarning\fR
6021 .ps -1
6022 .br
6023 If two clients use the same
6024 \fImagic script \fR
6025 in the same directory the output file content is undefined\&.
6026 .sp .5v
6027 .EM yellow
6028 .RE
6029 Default:
6030 \fI\fImagic output\fR\fR\fI = \fR\fI\FC<magic script name>\&.out\F[]\fR\fI \fR
6031 .sp
6032 Example:
6033 \fI\fImagic output\fR\fR\fI = \fR\fI\FCmyfile\&.txt\F[]\fR\fI \fR
6034 .RE
6035
6036 magic script (S)
6037 .\" magic script
6038 .PP
6039 .RS 4
6040 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\&.
6041 .sp
6042 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\&.
6043 .sp
6044 If the script generates output, output will be sent to the file specified by the
6045 \m[blue]\fBmagic output\fR\m[]
6046 parameter (see above)\&.
6047 .sp
6048 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
6049 \fIas is\fR
6050 on the host, which for some hosts and some shells will require filtering at the DOS end\&.
6051 .sp
6052 Magic scripts are
6053 \fIEXPERIMENTAL\fR
6054 and should
6055 \fINOT\fR
6056 be relied upon\&.
6057 .sp
6058 Default:
6059 \fI\fImagic script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
6060 .sp
6061 Example:
6062 \fI\fImagic script\fR\fR\fI = \fR\fI\FCuser\&.csh\F[]\fR\fI \fR
6063 .RE
6064
6065 mangled names (S)
6066 .\" mangled names
6067 .PP
6068 .RS 4
6069 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\&.
6070 .sp
6071 See the section on
6072 \m[blue]\fBname mangling\fR\m[]
6073 for details on how to control the mangling process\&.
6074 .sp
6075 If mangling is used then the mangling algorithm is as follows:
6076 .sp
6077 .RS 4
6078 .ie n \{\
6079 \h'-04'\(bu\h'+03'\c
6080 .\}
6081 .el \{\
6082 .sp -1
6083 .IP \(bu 2.3
6084 .\}
6085 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\&.
6086 .RE
6087 .sp
6088 .RS 4
6089 .ie n \{\
6090 \h'-04'\(bu\h'+03'\c
6091 .\}
6092 .el \{\
6093 .sp -1
6094 .IP \(bu 2.3
6095 .\}
6096 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\&.
6097 .sp
6098 Note that the character to use may be specified using the
6099 \m[blue]\fBmangling char\fR\m[]
6100 option, if you don\'t like \'~\'\&.
6101 .RE
6102 .sp
6103 .RS 4
6104 .ie n \{\
6105 \h'-04'\(bu\h'+03'\c
6106 .\}
6107 .el \{\
6108 .sp -1
6109 .IP \(bu 2.3
6110 .\}
6111 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)\&.
6112 .sp
6113 .RE
6114 The two\-digit hash value consists of upper case alphanumeric characters\&.
6115 .sp
6116 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\&.
6117 .sp
6118 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\&.
6119 .sp
6120 Default:
6121 \fI\fImangled names\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
6122 .RE
6123
6124 mangle prefix (G)
6125 .\" mangle prefix
6126 .PP
6127 .RS 4
6128 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\&.
6129 .sp
6130 mangle prefix is effective only when mangling method is hash2\&.
6131 .sp
6132 Default:
6133 \fI\fImangle prefix\fR\fR\fI = \fR\fI\FC1\F[]\fR\fI \fR
6134 .sp
6135 Example:
6136 \fI\fImangle prefix\fR\fR\fI = \fR\fI\FC4\F[]\fR\fI \fR
6137 .RE
6138
6139 mangling char (S)
6140 .\" mangling char
6141 .PP
6142 .RS 4
6143 This controls what character is used as the
6144 \fImagic\fR
6145 character in
6146 \m[blue]\fBname mangling\fR\m[]\&. 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\&.
6147 .sp
6148 Default:
6149 \fI\fImangling char\fR\fR\fI = \fR\fI\FC~\F[]\fR\fI \fR
6150 .sp
6151 Example:
6152 \fI\fImangling char\fR\fR\fI = \fR\fI\FC^\F[]\fR\fI \fR
6153 .RE
6154
6155 mangling method (G)
6156 .\" mangling method
6157 .PP
6158 .RS 4
6159 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\&.
6160 .sp
6161 Default:
6162 \fI\fImangling method\fR\fR\fI = \fR\fI\FChash2\F[]\fR\fI \fR
6163 .sp
6164 Example:
6165 \fI\fImangling method\fR\fR\fI = \fR\fI\FChash\F[]\fR\fI \fR
6166 .RE
6167
6168 map acl inherit (S)
6169 .\" map acl inherit
6170 .PP
6171 .RS 4
6172 This boolean parameter controls whether
6173 \fBsmbd\fR(8)
6174 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\&.
6175 .sp
6176 Default:
6177 \fI\fImap acl inherit\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
6178 .RE
6179
6180 map archive (S)
6181 .\" map archive
6182 .PP
6183 .RS 4
6184 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 is 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\&.\&.\&.
6185 .sp
6186 Note that this requires the
6187 \m[blue]\fBcreate mask\fR\m[]
6188 parameter to be set such that owner execute bit is not masked out (i\&.e\&. it must include 100)\&. See the parameter
6189 \m[blue]\fBcreate mask\fR\m[]
6190 for details\&.
6191 .sp
6192 Default:
6193 \fI\fImap archive\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
6194 .RE
6195
6196 map hidden (S)
6197 .\" map hidden
6198 .PP
6199 .RS 4
6200 This controls whether DOS style hidden files should be mapped to the UNIX world execute bit\&.
6201 .sp
6202 Note that this requires the
6203 \m[blue]\fBcreate mask\fR\m[]
6204 to be set such that the world execute bit is not masked out (i\&.e\&. it must include 001)\&. See the parameter
6205 \m[blue]\fBcreate mask\fR\m[]
6206 for details\&.
6207 .sp
6208 \fINo default\fR
6209 .RE
6210
6211 map read only (S)
6212 .\" map read only
6213 .PP
6214 .RS 4
6215 This controls how the DOS read only attribute should be mapped from a UNIX filesystem\&.
6216 .sp
6217 This parameter can take three different values, which tell
6218 \fBsmbd\fR(8)
6219 how to display the read only attribute on files, where either
6220 \m[blue]\fBstore dos attributes\fR\m[]
6221 is set to
6222 \fBNo\fR, or no extended attribute is present\&. If
6223 \m[blue]\fBstore dos attributes\fR\m[]
6224 is set to
6225 \fByes\fR
6226 then this parameter is
6227 \fIignored\fR\&. This is a new parameter introduced in Samba version 3\&.0\&.21\&.
6228 .sp
6229 The three settings are :
6230 .sp
6231 .RS 4
6232 .ie n \{\
6233 \h'-04'\(bu\h'+03'\c
6234 .\}
6235 .el \{\
6236 .sp -1
6237 .IP \(bu 2.3
6238 .\}
6239
6240 \fBYes\fR
6241 \- 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\&. If the read only DOS attribute is set, Samba sets the owner, group and others write bits to zero\&. Write bits set in an ACL are ignored by Samba\&. If the read only DOS attribute is unset, Samba simply sets the write bit of the owner to one\&.
6242 .RE
6243 .sp
6244 .RS 4
6245 .ie n \{\
6246 \h'-04'\(bu\h'+03'\c
6247 .\}
6248 .el \{\
6249 .sp -1
6250 .IP \(bu 2.3
6251 .\}
6252
6253 \fBPermissions\fR
6254 \- The read only DOS attribute is mapped to the effective permissions of the connecting user, as evaluated by
6255 \fBsmbd\fR(8)
6256 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\&.
6257 .RE
6258 .sp
6259 .RS 4
6260 .ie n \{\
6261 \h'-04'\(bu\h'+03'\c
6262 .\}
6263 .el \{\
6264 .sp -1
6265 .IP \(bu 2.3
6266 .\}
6267
6268 \fBNo\fR
6269 \- The read only DOS attribute is unaffected by permissions, and can only be set by the
6270 \m[blue]\fBstore dos attributes\fR\m[]
6271 method\&. This may be useful for exporting mounted CDs\&.
6272 .sp
6273 .RE
6274 Default:
6275 \fI\fImap read only\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
6276 .RE
6277
6278 map system (S)
6279 .\" map system
6280 .PP
6281 .RS 4
6282 This controls whether DOS style system files should be mapped to the UNIX group execute bit\&.
6283 .sp
6284 Note that this requires the
6285 \m[blue]\fBcreate mask\fR\m[]
6286 to be set such that the group execute bit is not masked out (i\&.e\&. it must include 010)\&. See the parameter
6287 \m[blue]\fBcreate mask\fR\m[]
6288 for details\&.
6289 .sp
6290 Default:
6291 \fI\fImap system\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
6292 .RE
6293
6294 map to guest (G)
6295 .\" map to guest
6296 .PP
6297 .RS 4
6298 This parameter is only useful in
6299 \m[blue]\fBSECURITY = security\fR\m[]
6300 modes other than
6301 \fIsecurity = share\fR
6302 and
6303 \fIsecurity = server\fR
6304 \- i\&.e\&.
6305 \fBuser\fR, and
6306 \fBdomain\fR\&.
6307 .sp
6308 This parameter can take four different values, which tell
6309 \fBsmbd\fR(8)
6310 what to do with user login requests that don\'t match a valid UNIX user in some way\&.
6311 .sp
6312 The four settings are :
6313 .sp
6314 .RS 4
6315 .ie n \{\
6316 \h'-04'\(bu\h'+03'\c
6317 .\}
6318 .el \{\
6319 .sp -1
6320 .IP \(bu 2.3
6321 .\}
6322 \fBNever\fR
6323 \- Means user login requests with an invalid password are rejected\&. This is the default\&.
6324 .RE
6325 .sp
6326 .RS 4
6327 .ie n \{\
6328 \h'-04'\(bu\h'+03'\c
6329 .\}
6330 .el \{\
6331 .sp -1
6332 .IP \(bu 2.3
6333 .\}
6334 \fBBad User\fR
6335 \- 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
6336 \m[blue]\fBguest account\fR\m[]\&.
6337 .RE
6338 .sp
6339 .RS 4
6340 .ie n \{\
6341 \h'-04'\(bu\h'+03'\c
6342 .\}
6343 .el \{\
6344 .sp -1
6345 .IP \(bu 2.3
6346 .\}
6347 \fBBad Password\fR
6348 \- Means user logins with an invalid password are treated as a guest login and mapped into the
6349 \m[blue]\fBguest account\fR\m[]\&. 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
6350 \fIhate\fR
6351 you if you set the
6352 \fImap to guest\fR
6353 parameter this way :\-)\&.
6354 .RE
6355 .sp
6356 .RS 4
6357 .ie n \{\
6358 \h'-04'\(bu\h'+03'\c
6359 .\}
6360 .el \{\
6361 .sp -1
6362 .IP \(bu 2.3
6363 .\}
6364 \fBBad Uid\fR
6365 \- 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\&.
6366 .sp
6367 .RE
6368 Note that this parameter is needed to set up "Guest" share services when using
6369 \fIsecurity\fR
6370 modes other than share and server\&. This is because in these modes the name of the resource being requested is
6371 \fInot\fR
6372 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\&. This parameter is not useful with
6373 \fIsecurity = server\fR
6374 as in this security mode no information is returned about whether a user logon failed due to a bad username or bad password, the same error is returned from a modern server in both cases\&.
6375 .sp
6376 For people familiar with the older Samba releases, this parameter maps to the old compile\-time setting of the
6377 \fB GUEST_SESSSETUP\fR
6378 value in local\&.h\&.
6379 .sp
6380 Default:
6381 \fI\fImap to guest\fR\fR\fI = \fR\fI\FCNever\F[]\fR\fI \fR
6382 .sp
6383 Example:
6384 \fI\fImap to guest\fR\fR\fI = \fR\fI\FCBad User\F[]\fR\fI \fR
6385 .RE
6386
6387 map untrusted to domain (G)
6388 .\" map untrusted to domain
6389 .PP
6390 .RS 4
6391 If a client connects to smbd using an untrusted domain name, such as BOGUS\euser, smbd replaces the BOGUS domain with it\'s SAM name before attempting to authenticate that user\&. In the case where smbd is acting as a PDC this will be DOMAIN\euser\&. In the case where smbd is acting as a domain member server or a standalone server this will be WORKSTATION\euser\&.
6392 .sp
6393 In previous versions of Samba (pre 3\&.4), if smbd was acting as a domain member server, the BOGUS domain name would instead be replaced by the primary domain which smbd was a member of\&. In this case authentication would be deferred off to a DC using the credentials DOMAIN\euser\&.
6394 .sp
6395 When this parameter is set to
6396 \fByes\fR
6397 smbd provides the legacy behavior of mapping untrusted domain names to the primary domain\&. When smbd is not acting as a domain member server, this parameter has no effect\&.
6398 .sp
6399 Default:
6400 \fI\fImap untrusted to domain\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
6401 .RE
6402
6403 max connections (S)
6404 .\" max connections
6405 .PP
6406 .RS 4
6407 This option allows the number of simultaneous connections to a service to be limited\&. If
6408 \fImax connections\fR
6409 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\&.
6410 .sp
6411 Record lock files are used to implement this feature\&. The lock files will be stored in the directory specified by the
6412 \m[blue]\fBlock directory\fR\m[]
6413 option\&.
6414 .sp
6415 Default:
6416 \fI\fImax connections\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6417 .sp
6418 Example:
6419 \fI\fImax connections\fR\fR\fI = \fR\fI\FC10\F[]\fR\fI \fR
6420 .RE
6421
6422 max disk size (G)
6423 .\" max disk size
6424 .PP
6425 .RS 4
6426 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\&.
6427 .sp
6428 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
6429 \fImax disk size\fR\&.
6430 .sp
6431 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\&.
6432 .sp
6433 A
6434 \fImax disk size\fR
6435 of 0 means no limit\&.
6436 .sp
6437 Default:
6438 \fI\fImax disk size\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6439 .sp
6440 Example:
6441 \fI\fImax disk size\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
6442 .RE
6443
6444 max log size (G)
6445 .\" max log size
6446 .PP
6447 .RS 4
6448 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
6449 \FC\&.old\F[]
6450 extension\&.
6451 .sp
6452 A size of 0 means no limit\&.
6453 .sp
6454 Default:
6455 \fI\fImax log size\fR\fR\fI = \fR\fI\FC5000\F[]\fR\fI \fR
6456 .sp
6457 Example:
6458 \fI\fImax log size\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
6459 .RE
6460
6461 max mux (G)
6462 .\" max mux
6463 .PP
6464 .RS 4
6465 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\&.
6466 .sp
6467 Default:
6468 \fI\fImax mux\fR\fR\fI = \fR\fI\FC50\F[]\fR\fI \fR
6469 .RE
6470
6471 max open files (G)
6472 .\" max open files
6473 .PP
6474 .RS 4
6475 This parameter limits the maximum number of open files that one
6476 \fBsmbd\fR(8)
6477 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\&.
6478 .sp
6479 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\&.
6480 .sp
6481 Default:
6482 \fI\fImax open files\fR\fR\fI = \fR\fI\FC10000\F[]\fR\fI \fR
6483 .RE
6484
6485 max print jobs (S)
6486 .\" max print jobs
6487 .PP
6488 .RS 4
6489 This parameter limits the maximum number of jobs allowable in a Samba printer queue at any given moment\&. If this number is exceeded,
6490 \fBsmbd\fR(8)
6491 will remote "Out of Space" to the client\&.
6492 .sp
6493 Default:
6494 \fI\fImax print jobs\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
6495 .sp
6496 Example:
6497 \fI\fImax print jobs\fR\fR\fI = \fR\fI\FC5000\F[]\fR\fI \fR
6498 .RE
6499
6500 protocol
6501 .\" protocol
6502 .PP
6503 .RS 4
6504 This parameter is a synonym for
6505 max protocol\&.
6506 .RE
6507
6508 max protocol (G)
6509 .\" max protocol
6510 .PP
6511 .RS 4
6512 The value of the parameter (a string) is the highest protocol level that will be supported by the server\&.
6513 .sp
6514 Possible values are :
6515 .sp
6516 .RS 4
6517 .ie n \{\
6518 \h'-04'\(bu\h'+03'\c
6519 .\}
6520 .el \{\
6521 .sp -1
6522 .IP \(bu 2.3
6523 .\}
6524 \fBCORE\fR: Earliest version\&. No concept of user names\&.
6525 .RE
6526 .sp
6527 .RS 4
6528 .ie n \{\
6529 \h'-04'\(bu\h'+03'\c
6530 .\}
6531 .el \{\
6532 .sp -1
6533 .IP \(bu 2.3
6534 .\}
6535 \fBCOREPLUS\fR: Slight improvements on CORE for efficiency\&.
6536 .RE
6537 .sp
6538 .RS 4
6539 .ie n \{\
6540 \h'-04'\(bu\h'+03'\c
6541 .\}
6542 .el \{\
6543 .sp -1
6544 .IP \(bu 2.3
6545 .\}
6546 \fBLANMAN1\fR: First
6547 \fI modern\fR
6548 version of the protocol\&. Long filename support\&.
6549 .RE
6550 .sp
6551 .RS 4
6552 .ie n \{\
6553 \h'-04'\(bu\h'+03'\c
6554 .\}
6555 .el \{\
6556 .sp -1
6557 .IP \(bu 2.3
6558 .\}
6559 \fBLANMAN2\fR: Updates to Lanman1 protocol\&.
6560 .RE
6561 .sp
6562 .RS 4
6563 .ie n \{\
6564 \h'-04'\(bu\h'+03'\c
6565 .\}
6566 .el \{\
6567 .sp -1
6568 .IP \(bu 2.3
6569 .\}
6570 \fBNT1\fR: Current up to date version of the protocol\&. Used by Windows NT\&. Known as CIFS\&.
6571 .sp
6572 .RE
6573 Normally this option should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropriate protocol\&.
6574 .sp
6575 Default:
6576 \fI\fImax protocol\fR\fR\fI = \fR\fI\FCNT1\F[]\fR\fI \fR
6577 .sp
6578 Example:
6579 \fI\fImax protocol\fR\fR\fI = \fR\fI\FCLANMAN1\F[]\fR\fI \fR
6580 .RE
6581
6582 max reported print jobs (S)
6583 .\" max reported print jobs
6584 .PP
6585 .RS 4
6586 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\&.
6587 .sp
6588 Default:
6589 \fI\fImax reported print jobs\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6590 .sp
6591 Example:
6592 \fI\fImax reported print jobs\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
6593 .RE
6594
6595 max smbd processes (G)
6596 .\" max smbd processes
6597 .PP
6598 .RS 4
6599 This parameter limits the maximum number of
6600 \fBsmbd\fR(8)
6601 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
6602 \fBsmbd\fR(8)
6603 associated with him or her to handle connections to all shares from a given host\&.
6604 .sp
6605 Default:
6606 \fI\fImax smbd processes\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6607 .sp
6608 Example:
6609 \fI\fImax smbd processes\fR\fR\fI = \fR\fI\FC1000\F[]\fR\fI \fR
6610 .RE
6611
6612 max stat cache size (G)
6613 .\" max stat cache size
6614 .PP
6615 .RS 4
6616 This parameter limits the size in memory of any
6617 \fIstat cache\fR
6618 being used to speed up case insensitive name mappings\&. It represents the number of kilobyte (1024) units the stat cache can use\&. A value of zero, meaning unlimited, is not advisable due to increased memory useage\&. You should not need to change this parameter\&.
6619 .sp
6620 Default:
6621 \fI\fImax stat cache size\fR\fR\fI = \fR\fI\FC256\F[]\fR\fI \fR
6622 .sp
6623 Example:
6624 \fI\fImax stat cache size\fR\fR\fI = \fR\fI\FC100\F[]\fR\fI \fR
6625 .RE
6626
6627 max ttl (G)
6628 .\" max ttl
6629 .PP
6630 .RS 4
6631 This option tells
6632 \fBnmbd\fR(8)
6633 what the default \'time to live\' of NetBIOS names should be (in seconds) when
6634 \FCnmbd\F[]
6635 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\&.
6636 .sp
6637 Default:
6638 \fI\fImax ttl\fR\fR\fI = \fR\fI\FC259200\F[]\fR\fI \fR
6639 .RE
6640
6641 max wins ttl (G)
6642 .\" max wins ttl
6643 .PP
6644 .RS 4
6645 This option tells
6646 \fBsmbd\fR(8)
6647 when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the maximum \'time to live\' of NetBIOS names that
6648 \FCnmbd\F[]
6649 will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 days (518400 seconds)\&.
6650 .sp
6651 Default:
6652 \fI\fImax wins ttl\fR\fR\fI = \fR\fI\FC518400\F[]\fR\fI \fR
6653 .RE
6654
6655 max xmit (G)
6656 .\" max xmit
6657 .PP
6658 .RS 4
6659 This option controls the maximum packet size that will be negotiated by Samba\&. The default is 16644, which matches the behavior of Windows 2000\&. A value below 2048 is likely to cause problems\&. You should never need to change this parameter from its default value\&.
6660 .sp
6661 Default:
6662 \fI\fImax xmit\fR\fR\fI = \fR\fI\FC16644\F[]\fR\fI \fR
6663 .sp
6664 Example:
6665 \fI\fImax xmit\fR\fR\fI = \fR\fI\FC8192\F[]\fR\fI \fR
6666 .RE
6667
6668 message command (G)
6669 .\" message command
6670 .PP
6671 .RS 4
6672 This specifies what command to run when the server receives a WinPopup style message\&.
6673 .sp
6674 This would normally be a command that would deliver the message somehow\&. How this is to be done is up to your imagination\&.
6675 .sp
6676 An example is:
6677 .sp
6678 .if n \{\
6679 .RS 4
6680 .\}
6681 .fam C
6682 .ps -1
6683 .nf
6684 .if t \{\
6685 .sp -1
6686 .\}
6687 .BB lightgray adjust-for-leading-newline
6688 .sp -1
6689
6690 \FCmessage command = csh \-c \'xedit %s;rm %s\' &\F[]
6691 .EB lightgray adjust-for-leading-newline
6692 .if t \{\
6693 .sp 1
6694 .\}
6695 .fi
6696 .fam
6697 .ps +1
6698 .if n \{\
6699 .RE
6700 .\}
6701 .sp
6702 This delivers the message using
6703 \FCxedit\F[], then removes it afterwards\&.
6704 \fINOTE 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)\&.
6705 .sp
6706 All messages are delivered as the global guest user\&. The command takes the standard substitutions, although
6707 \fI %u\fR
6708 won\'t work (\fI%U\fR
6709 may be better in this case)\&.
6710 .sp
6711 Apart from the standard substitutions, some additional ones apply\&. In particular:
6712 .sp
6713 .RS 4
6714 .ie n \{\
6715 \h'-04'\(bu\h'+03'\c
6716 .\}
6717 .el \{\
6718 .sp -1
6719 .IP \(bu 2.3
6720 .\}
6721 \fI%s\fR
6722 = the filename containing the message\&.
6723 .RE
6724 .sp
6725 .RS 4
6726 .ie n \{\
6727 \h'-04'\(bu\h'+03'\c
6728 .\}
6729 .el \{\
6730 .sp -1
6731 .IP \(bu 2.3
6732 .\}
6733 \fI%t\fR
6734 = the destination that the message was sent to (probably the server name)\&.
6735 .RE
6736 .sp
6737 .RS 4
6738 .ie n \{\
6739 \h'-04'\(bu\h'+03'\c
6740 .\}
6741 .el \{\
6742 .sp -1
6743 .IP \(bu 2.3
6744 .\}
6745 \fI%f\fR
6746 = who the message is from\&.
6747 .sp
6748 .RE
6749 You could make this command send mail, or whatever else takes your fancy\&. Please let us know of any really interesting ideas you have\&.
6750 .sp
6751 Here\'s a way of sending the messages as mail to root:
6752 .sp
6753 .if n \{\
6754 .RS 4
6755 .\}
6756 .fam C
6757 .ps -1
6758 .nf
6759 .if t \{\
6760 .sp -1
6761 .\}
6762 .BB lightgray adjust-for-leading-newline
6763 .sp -1
6764
6765 \FCmessage command = /bin/mail \-s \'message from %f on %m\' root < %s; rm %s\F[]
6766 .EB lightgray adjust-for-leading-newline
6767 .if t \{\
6768 .sp 1
6769 .\}
6770 .fi
6771 .fam
6772 .ps +1
6773 .if n \{\
6774 .RE
6775 .\}
6776 .sp
6777 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\&.
6778 .sp
6779 If you want to silently delete it then try:
6780 .sp
6781 .if n \{\
6782 .RS 4
6783 .\}
6784 .fam C
6785 .ps -1
6786 .nf
6787 .if t \{\
6788 .sp -1
6789 .\}
6790 .BB lightgray adjust-for-leading-newline
6791 .sp -1
6792
6793 \FCmessage command = rm %s\F[]
6794 .EB lightgray adjust-for-leading-newline
6795 .if t \{\
6796 .sp 1
6797 .\}
6798 .fi
6799 .fam
6800 .ps +1
6801 .if n \{\
6802 .RE
6803 .\}
6804 .sp
6805 Default:
6806 \fI\fImessage command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
6807 .sp
6808 Example:
6809 \fI\fImessage command\fR\fR\fI = \fR\fI\FCcsh \-c \'xedit %s; rm %s\' &\F[]\fR\fI \fR
6810 .RE
6811
6812 min print space (S)
6813 .\" min print space
6814 .PP
6815 .RS 4
6816 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\&.
6817 .sp
6818 Default:
6819 \fI\fImin print space\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6820 .sp
6821 Example:
6822 \fI\fImin print space\fR\fR\fI = \fR\fI\FC2000\F[]\fR\fI \fR
6823 .RE
6824
6825 min protocol (G)
6826 .\" min protocol
6827 .PP
6828 .RS 4
6829 The value of the parameter (a string) is the lowest SMB protocol dialect than Samba will support\&. Please refer to the
6830 \m[blue]\fBmax protocol\fR\m[]
6831 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
6832 \FCsource/smbd/negprot\&.c\F[]
6833 for a listing of known protocol dialects supported by clients\&.
6834 .sp
6835 If you are viewing this parameter as a security measure, you should also refer to the
6836 \m[blue]\fBlanman auth\fR\m[]
6837 parameter\&. Otherwise, you should never need to change this parameter\&.
6838 .sp
6839 Default:
6840 \fI\fImin protocol\fR\fR\fI = \fR\fI\FCCORE\F[]\fR\fI \fR
6841 .sp
6842 Example:
6843 \fI\fImin protocol\fR\fR\fI = \fR\fI\FCNT1\F[]\fR\fI \fR
6844 .RE
6845
6846 min receivefile size (G)
6847 .\" min receivefile size
6848 .PP
6849 .RS 4
6850 This option changes the behavior of
6851 \fBsmbd\fR(8)
6852 when processing SMBwriteX calls\&. Any incoming SMBwriteX call on a non\-signed SMB/CIFS connection greater than this value will not be processed in the normal way but will be passed to any underlying kernel recvfile or splice system call (if there is no such call Samba will emulate in user space)\&. This allows zero\-copy writes directly from network socket buffers into the filesystem buffer cache, if available\&. It may improve performance but user testing is recommended\&. If set to zero Samba processes SMBwriteX calls in the normal way\&. To enable POSIX large write support (SMB/CIFS writes up to 16Mb) this option must be nonzero\&. The maximum value is 128k\&. Values greater than 128k will be silently set to 128k\&.
6853 .sp
6854 Note this option will have NO EFFECT if set on a SMB signed connection\&.
6855 .sp
6856 The default is zero, which diables this option\&.
6857 .sp
6858 Default:
6859 \fI\fImin receivefile size\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6860 .RE
6861
6862 min wins ttl (G)
6863 .\" min wins ttl
6864 .PP
6865 .RS 4
6866 This option tells
6867 \fBnmbd\fR(8)
6868 when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the minimum \'time to live\' of NetBIOS names that
6869 \FCnmbd\F[]
6870 will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 hours (21600 seconds)\&.
6871 .sp
6872 Default:
6873 \fI\fImin wins ttl\fR\fR\fI = \fR\fI\FC21600\F[]\fR\fI \fR
6874 .RE
6875
6876 msdfs proxy (S)
6877 .\" msdfs proxy
6878 .PP
6879 .RS 4
6880 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\&.
6881 .sp
6882 Only Dfs roots can act as proxy shares\&. Take a look at the
6883 \m[blue]\fBmsdfs root\fR\m[]
6884 and
6885 \m[blue]\fBhost msdfs\fR\m[]
6886 options to find out how to set up a Dfs root share\&.
6887 .sp
6888 \fINo default\fR
6889 .sp
6890 Example:
6891 \fI\fImsdfs proxy\fR\fR\fI = \fR\fI\FC\eotherserver\esomeshare\F[]\fR\fI \fR
6892 .RE
6893
6894 msdfs root (S)
6895 .\" msdfs root
6896 .PP
6897 .RS 4
6898 If set to
6899 \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
6900 \FCmsdfs:serverA\e\eshareA,serverB\e\eshareB\F[]
6901 and so on\&. For more information on setting up a Dfs tree on Samba, refer to the MSDFS chapter in the Samba3\-HOWTO book\&.
6902 .sp
6903 Default:
6904 \fI\fImsdfs root\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
6905 .RE
6906
6907 name cache timeout (G)
6908 .\" name cache timeout
6909 .PP
6910 .RS 4
6911 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\&.
6912 .sp
6913 Default:
6914 \fI\fIname cache timeout\fR\fR\fI = \fR\fI\FC660\F[]\fR\fI \fR
6915 .sp
6916 Example:
6917 \fI\fIname cache timeout\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
6918 .RE
6919
6920 name resolve order (G)
6921 .\" name resolve order
6922 .PP
6923 .RS 4
6924 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\&.
6925 .sp
6926 The options are: "lmhosts", "host", "wins" and "bcast"\&. They cause names to be resolved as follows:
6927 .sp
6928 .RS 4
6929 .ie n \{\
6930 \h'-04'\(bu\h'+03'\c
6931 .\}
6932 .el \{\
6933 .sp -1
6934 .IP \(bu 2.3
6935 .\}
6936
6937 \fBlmhosts\fR
6938 : 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\&.
6939 .RE
6940 .sp
6941 .RS 4
6942 .ie n \{\
6943 \h'-04'\(bu\h'+03'\c
6944 .\}
6945 .el \{\
6946 .sp -1
6947 .IP \(bu 2.3
6948 .\}
6949
6950 \fBhost\fR
6951 : Do a standard host name to IP address resolution, using the system
6952 \FC/etc/hosts \F[], 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
6953 \FC/etc/nsswitch\&.conf\F[]
6954 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\&.
6955 .RE
6956 .sp
6957 .RS 4
6958 .ie n \{\
6959 \h'-04'\(bu\h'+03'\c
6960 .\}
6961 .el \{\
6962 .sp -1
6963 .IP \(bu 2.3
6964 .\}
6965 \fBwins\fR
6966 : Query a name with the IP address listed in the
6967 \m[blue]\fBWINSSERVER\fR\m[]
6968 parameter\&. If no WINS server has been specified this method will be ignored\&.
6969 .RE
6970 .sp
6971 .RS 4
6972 .ie n \{\
6973 \h'-04'\(bu\h'+03'\c
6974 .\}
6975 .el \{\
6976 .sp -1
6977 .IP \(bu 2.3
6978 .\}
6979 \fBbcast\fR
6980 : Do a broadcast on each of the known local interfaces listed in the
6981 \m[blue]\fBinterfaces\fR\m[]
6982 parameter\&. This is the least reliable of the name resolution methods as it depends on the target host being on a locally connected subnet\&.
6983 .sp
6984 .RE
6985 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\&.
6986 .sp
6987 When Samba is functioning in ADS security mode (\FCsecurity = ads\F[]) it is advised to use following settings for
6988 \fIname resolve order\fR:
6989 .sp
6990 \FCname resolve order = wins bcast\F[]
6991 .sp
6992 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\&.
6993 .sp
6994 Default:
6995 \fI\fIname resolve order\fR\fR\fI = \fR\fI\FClmhosts host wins bcast\F[]\fR\fI \fR
6996 .sp
6997 Example:
6998 \fI\fIname resolve order\fR\fR\fI = \fR\fI\FClmhosts bcast host\F[]\fR\fI \fR
6999 .RE
7000
7001 netbios aliases (G)
7002 .\" netbios aliases
7003 .PP
7004 .RS 4
7005 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\&.
7006 .sp
7007 Default:
7008 \fI\fInetbios aliases\fR\fR\fI = \fR\fI\FC # empty string (no additional names)\F[]\fR\fI \fR
7009 .sp
7010 Example:
7011 \fI\fInetbios aliases\fR\fR\fI = \fR\fI\FCTEST TEST1 TEST2\F[]\fR\fI \fR
7012 .RE
7013
7014 netbios name (G)
7015 .\" netbios name
7016 .PP
7017 .RS 4
7018 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\&.
7019 .sp
7020 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
7021 \FCPIPE\F[]\&. To avoid this problem, do not name your Samba\-3 server
7022 \FCPIPE\F[]\&.
7023 .sp
7024 Default:
7025 \fI\fInetbios name\fR\fR\fI = \fR\fI\FC # machine DNS name\F[]\fR\fI \fR
7026 .sp
7027 Example:
7028 \fI\fInetbios name\fR\fR\fI = \fR\fI\FCMYNAME\F[]\fR\fI \fR
7029 .RE
7030
7031 netbios scope (G)
7032 .\" netbios scope
7033 .PP
7034 .RS 4
7035 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\&.
7036 .sp
7037 Default:
7038 \fI\fInetbios scope\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7039 .RE
7040
7041 nis homedir (G)
7042 .\" nis homedir
7043 .PP
7044 .RS 4
7045 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\&.
7046 .sp
7047 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\&.
7048 .sp
7049 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 in
7050 \m[blue]\fBhomedir map\fR\m[]
7051 and return the server listed there\&.
7052 .sp
7053 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\&.
7054 .sp
7055 Default:
7056 \fI\fInis homedir\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7057 .RE
7058
7059 nt acl support (S)
7060 .\" nt acl support
7061 .PP
7062 .RS 4
7063 This boolean parameter controls whether
7064 \fBsmbd\fR(8)
7065 will attempt to map UNIX permissions into Windows NT access control lists\&. The UNIX permissions considered are the the traditional UNIX owner and group permissions, as well as POSIX ACLs set on any files or directories\&. This parameter was formally a global parameter in releases prior to 2\&.2\&.2\&.
7066 .sp
7067 Default:
7068 \fI\fInt acl support\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7069 .RE
7070
7071 ntlm auth (G)
7072 .\" ntlm auth
7073 .PP
7074 .RS 4
7075 This parameter determines whether or not
7076 \fBsmbd\fR(8)
7077 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\&.
7078 .sp
7079 If this option, and
7080 \FClanman auth\F[]
7081 are both disabled, then only NTLMv2 logins will be permited\&. Not all clients support NTLMv2, and most will require special configuration to use it\&.
7082 .sp
7083 Default:
7084 \fI\fIntlm auth\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7085 .RE
7086
7087 nt pipe support (G)
7088 .\" nt pipe support
7089 .PP
7090 .RS 4
7091 This boolean parameter controls whether
7092 \fBsmbd\fR(8)
7093 will allow Windows NT clients to connect to the NT SMB specific
7094 \fBIPC$\fR
7095 pipes\&. This is a developer debugging option and can be left alone\&.
7096 .sp
7097 Default:
7098 \fI\fInt pipe support\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7099 .RE
7100
7101 nt status support (G)
7102 .\" nt status support
7103 .PP
7104 .RS 4
7105 This boolean parameter controls whether
7106 \fBsmbd\fR(8)
7107 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
7108 \fBno\fR
7109 then Samba offers exactly the same DOS error codes that versions prior to Samba 2\&.2\&.3 reported\&.
7110 .sp
7111 You should not need to ever disable this parameter\&.
7112 .sp
7113 Default:
7114 \fI\fInt status support\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7115 .RE
7116
7117 null passwords (G)
7118 .\" null passwords
7119 .PP
7120 .RS 4
7121 Allow or disallow client access to accounts that have null passwords\&.
7122 .sp
7123 See also
7124 \fBsmbpasswd\fR(5)\&.
7125 .sp
7126 Default:
7127 \fI\fInull passwords\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7128 .RE
7129
7130 obey pam restrictions (G)
7131 .\" obey pam restrictions
7132 .PP
7133 .RS 4
7134 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
7135 \m[blue]\fBencrypt passwords = yes\fR\m[]\&. The reason is that PAM modules cannot support the challenge/response authentication mechanism needed in the presence of SMB password encryption\&.
7136 .sp
7137 Default:
7138 \fI\fIobey pam restrictions\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7139 .RE
7140
7141 only user (S)
7142 .\" only user
7143 .PP
7144 .RS 4
7145 This is a boolean option that controls whether connections with usernames not in the
7146 \fIuser\fR
7147 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
7148 \fIuser\fR
7149 list and is only really useful in
7150 \m[blue]\fBsecurity = share\fR\m[]
7151 level security\&.
7152 .sp
7153 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
7154 \FCuser = %S\F[]
7155 which means your
7156 \fIuser\fR
7157 list will be just the service name, which for home directories is the name of the user\&.
7158 .sp
7159 Default:
7160 \fI\fIonly user\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7161 .RE
7162
7163 oplock break wait time (G)
7164 .\" oplock break wait time
7165 .PP
7166 .RS 4
7167 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\&.
7168 .if n \{\
7169 .sp
7170 .\}
7171 .RS 4
7172 .BM yellow
7173 .it 1 an-trap
7174 .nr an-no-space-flag 1
7175 .nr an-break-flag 1
7176 .br
7177 .ps +1
7178 \fBWarning\fR
7179 .ps -1
7180 .br
7181 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE\&.
7182 .sp .5v
7183 .EM yellow
7184 .RE
7185 Default:
7186 \fI\fIoplock break wait time\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
7187 .RE
7188
7189 oplock contention limit (S)
7190 .\" oplock contention limit
7191 .PP
7192 .RS 4
7193 This is a
7194 \fIvery\fR
7195 advanced
7196 \fBsmbd\fR(8)
7197 tuning option to improve the efficiency of the granting of oplocks under multiple client contention for the same file\&.
7198 .sp
7199 In brief it specifies a number, which causes
7200 \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
7201 \FCsmbd\F[]
7202 to behave in a similar way to Windows NT\&.
7203 .if n \{\
7204 .sp
7205 .\}
7206 .RS 4
7207 .BM yellow
7208 .it 1 an-trap
7209 .nr an-no-space-flag 1
7210 .nr an-break-flag 1
7211 .br
7212 .ps +1
7213 \fBWarning\fR
7214 .ps -1
7215 .br
7216 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE\&.
7217 .sp .5v
7218 .EM yellow
7219 .RE
7220 Default:
7221 \fI\fIoplock contention limit\fR\fR\fI = \fR\fI\FC2\F[]\fR\fI \fR
7222 .RE
7223
7224 oplocks (S)
7225 .\" oplocks
7226 .PP
7227 .RS 4
7228 This boolean option tells
7229 \FCsmbd\F[]
7230 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
7231 \FCSpeed\&.txt\F[]
7232 in the Samba
7233 \FCdocs/\F[]
7234 directory\&.
7235 .sp
7236 Oplocks may be selectively turned off on certain files with a share\&. See the
7237 \m[blue]\fBveto oplock files\fR\m[]
7238 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 the
7239 \m[blue]\fBkernel oplocks\fR\m[]
7240 parameter for details\&.
7241 .sp
7242 Default:
7243 \fI\fIoplocks\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7244 .RE
7245
7246 os2 driver map (G)
7247 .\" os2 driver map
7248 .PP
7249 .RS 4
7250 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:
7251 .sp
7252 <nt driver name> = <os2 driver name>\&.<device name>
7253 .sp
7254 For example, a valid entry using the HP LaserJet 5 printer driver would appear as
7255 \FCHP LaserJet 5L = LASERJET\&.HP LaserJet 5L\F[]\&.
7256 .sp
7257 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\&.
7258 .sp
7259 Default:
7260 \fI\fIos2 driver map\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7261 .RE
7262
7263 os level (G)
7264 .\" os level
7265 .PP
7266 .RS 4
7267 This integer value controls what level Samba advertises itself as for browse elections\&. The value of this parameter determines whether
7268 \fBnmbd\fR(8)
7269 has a chance of becoming a local master browser for the
7270 \m[blue]\fBworkgroup\fR\m[]
7271 in the local broadcast area\&.
7272 .sp
7273 \fI Note:\fR
7274 By 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 override the default setting\&. Please refer to the chapter on Network Browsing in the Samba\-3 HOWTO document for further information regarding the use of this parameter\&.
7275 \fINote:\fR
7276 The maximum value for this parameter is 255\&. If you use higher values, counting will start at 0!
7277 .sp
7278 Default:
7279 \fI\fIos level\fR\fR\fI = \fR\fI\FC20\F[]\fR\fI \fR
7280 .sp
7281 Example:
7282 \fI\fIos level\fR\fR\fI = \fR\fI\FC65\F[]\fR\fI \fR
7283 .RE
7284
7285 pam password change (G)
7286 .\" pam password change
7287 .PP
7288 .RS 4
7289 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
7290 \m[blue]\fBpasswd program\fR\m[]\&. It should be possible to enable this without changing your
7291 \m[blue]\fBpasswd chat\fR\m[]
7292 parameter for most setups\&.
7293 .sp
7294 Default:
7295 \fI\fIpam password change\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7296 .RE
7297
7298 panic action (G)
7299 .\" panic action
7300 .PP
7301 .RS 4
7302 This is a Samba developer option that allows a system command to be called when either
7303 \fBsmbd\fR(8)
7304 or
7305 \fBnmbd\fR(8)
7306 crashes\&. This is usually used to draw attention to the fact that a problem occurred\&.
7307 .sp
7308 Default:
7309 \fI\fIpanic action\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7310 .sp
7311 Example:
7312 \fI\fIpanic action\fR\fR\fI = \fR\fI\FC"/bin/sleep 90000"\F[]\fR\fI \fR
7313 .RE
7314
7315 paranoid server security (G)
7316 .\" paranoid server security
7317 .PP
7318 .RS 4
7319 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\&.
7320 .sp
7321 Disabling this option prevents Samba from making this check, which involves deliberatly attempting a bad logon to the remote server\&.
7322 .sp
7323 Default:
7324 \fI\fIparanoid server security\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7325 .RE
7326
7327 passdb backend (G)
7328 .\" passdb backend
7329 .PP
7330 .RS 4
7331 This option allows the administrator to chose which backend will be used for storing user and possibly group information\&. This allows you to swap between different storage mechanisms without recompile\&.
7332 .sp
7333 The parameter value is divided into two parts, the backend\'s name, and a \'location\' string that has meaning only to that particular backed\&. These are separated by a : character\&.
7334 .sp
7335 Available backends can include:
7336 .sp
7337 .RS 4
7338 .ie n \{\
7339 \h'-04'\(bu\h'+03'\c
7340 .\}
7341 .el \{\
7342 .sp -1
7343 .IP \(bu 2.3
7344 .\}
7345 \FCsmbpasswd\F[]
7346 \- The old plaintext passdb backend\&. Some Samba features will not work if this passdb backend is used\&. Takes a path to the smbpasswd file as an optional argument\&.
7347 .RE
7348 .sp
7349 .RS 4
7350 .ie n \{\
7351 \h'-04'\(bu\h'+03'\c
7352 .\}
7353 .el \{\
7354 .sp -1
7355 .IP \(bu 2.3
7356 .\}
7357 \FCtdbsam\F[]
7358 \- The TDB based password storage backend\&. Takes a path to the TDB as an optional argument (defaults to passdb\&.tdb in the
7359 \m[blue]\fBprivate dir\fR\m[]
7360 directory\&.
7361 .RE
7362 .sp
7363 .RS 4
7364 .ie n \{\
7365 \h'-04'\(bu\h'+03'\c
7366 .\}
7367 .el \{\
7368 .sp -1
7369 .IP \(bu 2.3
7370 .\}
7371 \FCldapsam\F[]
7372 \- The LDAP based passdb backend\&. Takes an LDAP URL as an optional argument (defaults to
7373 \FCldap://localhost\F[])
7374 .sp
7375 LDAP connections should be secured where possible\&. This may be done using either Start\-TLS (see
7376 \m[blue]\fBldap ssl\fR\m[]) or by specifying
7377 \fIldaps://\fR
7378 in the URL argument\&.
7379 .sp
7380 Multiple servers may also be specified in double\-quotes\&. Whether multiple servers are supported or not and the exact syntax depends on the LDAP library you use\&.
7381 .sp
7382 .RE
7383
7384         Examples of use are:
7385 .sp
7386 .if n \{\
7387 .RS 4
7388 .\}
7389 .fam C
7390 .ps -1
7391 .nf
7392 .if t \{\
7393 .sp -1
7394 .\}
7395 .BB lightgray adjust-for-leading-newline
7396 .sp -1
7397
7398 passdb backend = tdbsam:/etc/samba/private/passdb\&.tdb 
7399
7400 or multi server LDAP URL with OpenLDAP library:
7401
7402 passdb backend = ldapsam:"ldap://ldap\-1\&.example\&.com ldap://ldap\-2\&.example\&.com"
7403
7404 or multi server LDAP URL with Netscape based LDAP library:
7405
7406 passdb backend = ldapsam:"ldap://ldap\-1\&.example\&.com ldap\-2\&.example\&.com"
7407 .EB lightgray adjust-for-leading-newline
7408 .if t \{\
7409 .sp 1
7410 .\}
7411 .fi
7412 .fam
7413 .ps +1
7414 .if n \{\
7415 .RE
7416 .\}
7417 .sp
7418 Default:
7419 \fI\fIpassdb backend\fR\fR\fI = \fR\fI\FCtdbsam\F[]\fR\fI \fR
7420 .RE
7421
7422 passdb expand explicit (G)
7423 .\" passdb expand explicit
7424 .PP
7425 .RS 4
7426 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\&.
7427 .sp
7428 Default:
7429 \fI\fIpassdb expand explicit\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7430 .RE
7431
7432 passwd chat debug (G)
7433 .\" passwd chat debug
7434 .PP
7435 .RS 4
7436 This boolean specifies if the passwd chat script parameter is run in
7437 \fIdebug\fR
7438 mode\&. In this mode the strings passed to and received from the passwd chat are printed in the
7439 \fBsmbd\fR(8)
7440 log with a
7441 \m[blue]\fBdebug level\fR\m[]
7442 of 100\&. This is a dangerous option as it will allow plaintext passwords to be seen in the
7443 \FCsmbd\F[]
7444 log\&. It is available to help Samba admins debug their
7445 \fIpasswd chat\fR
7446 scripts when calling the
7447 \fIpasswd program\fR
7448 and should be turned off after this has been done\&. This option has no effect if the
7449 \m[blue]\fBpam password change\fR\m[]
7450 parameter is set\&. This parameter is off by default\&.
7451 .sp
7452 Default:
7453 \fI\fIpasswd chat debug\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7454 .RE
7455
7456 passwd chat timeout (G)
7457 .\" passwd chat timeout
7458 .PP
7459 .RS 4
7460 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\&.
7461 .sp
7462 Default:
7463 \fI\fIpasswd chat timeout\fR\fR\fI = \fR\fI\FC2\F[]\fR\fI \fR
7464 .RE
7465
7466 passwd chat (G)
7467 .\" passwd chat
7468 .PP
7469 .RS 4
7470 This string controls the
7471 \fI"chat"\fR
7472 conversation that takes places between
7473 \fBsmbd\fR(8)
7474 and the local password changing program to change the user\'s password\&. The string describes a sequence of response\-receive pairs that
7475 \fBsmbd\fR(8)
7476 uses to determine what to send to the
7477 \m[blue]\fBpasswd program\fR\m[]
7478 and what to expect back\&. If the expected output is not received then the password is not changed\&.
7479 .sp
7480 This chat sequence is often quite site specific, depending on what local methods are used for password control (such as NIS etc)\&.
7481 .sp
7482 Note that this parameter only is used if the
7483 \m[blue]\fBunix password sync\fR\m[]
7484 parameter is set to
7485 \fByes\fR\&. This sequence is then called
7486 \fIAS ROOT\fR
7487 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
7488 \m[blue]\fBpasswd program\fR\m[]
7489 must be executed on the NIS master\&.
7490 .sp
7491 The string can contain the macro
7492 \fI%n\fR
7493 which is substituted for the new password\&. The old passsword (\fI%o\fR) is only available when
7494 \m[blue]\fBencrypt passwords\fR\m[]
7495 has been disabled\&. The chat sequence can also contain the standard macros \en, \er, \et and \es 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\&.
7496 .sp
7497 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\&.
7498 .sp
7499 If the
7500 \m[blue]\fBpam password change\fR\m[]
7501 parameter is set to
7502 \fByes\fR, the chat pairs may be matched in any order, and success is determined by the PAM result, not any particular output\&. The \en macro is ignored for PAM conversions\&.
7503 .sp
7504 Default:
7505 \fI\fIpasswd chat\fR\fR\fI = \fR\fI\FC*new*password* %n\en*new*password* %n\en *changed*\F[]\fR\fI \fR
7506 .sp
7507 Example:
7508 \fI\fIpasswd chat\fR\fR\fI = \fR\fI\FC"*Enter NEW password*" %n\en "*Reenter NEW password*" %n\en "*Password changed*"\F[]\fR\fI \fR
7509 .RE
7510
7511 passwd program (G)
7512 .\" passwd program
7513 .PP
7514 .RS 4
7515 The name of a program that can be used to set UNIX user passwords\&. Any occurrences of
7516 \fI%u\fR
7517 will be replaced with the user name\&. The user name is checked for existence before calling the password changing program\&.
7518 .sp
7519 Also note that many passwd programs insist in
7520 \fIreasonable \fR
7521 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\&.
7522 .sp
7523 \fINote\fR
7524 that if the
7525 \fIunix password sync\fR
7526 parameter is set to
7527 \fByes \fR
7528 then this program is called
7529 \fIAS ROOT\fR
7530 before the SMB password in the smbpasswd file is changed\&. If this UNIX password change fails, then
7531 \FCsmbd\F[]
7532 will fail to change the SMB password also (this is by design)\&.
7533 .sp
7534 If the
7535 \fIunix password sync\fR
7536 parameter is set this parameter
7537 \fIMUST USE ABSOLUTE PATHS\fR
7538 for
7539 \fIALL\fR
7540 programs called, and must be examined for security implications\&. Note that by default
7541 \fIunix password sync\fR
7542 is set to
7543 \fBno\fR\&.
7544 .sp
7545 Default:
7546 \fI\fIpasswd program\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7547 .sp
7548 Example:
7549 \fI\fIpasswd program\fR\fR\fI = \fR\fI\FC/bin/passwd %u\F[]\fR\fI \fR
7550 .RE
7551
7552 password level (G)
7553 .\" password level
7554 .PP
7555 .RS 4
7556 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\&.
7557 .sp
7558 This parameter defines the maximum number of characters that may be upper case in passwords\&.
7559 .sp
7560 For example, say the password given was "FRED"\&. If
7561 \fI password level\fR
7562 is set to 1, the following combinations would be tried if "FRED" failed:
7563 .sp
7564 "Fred", "fred", "fRed", "frEd","freD"
7565 .sp
7566 If
7567 \fIpassword level\fR
7568 was set to 2, the following combinations would also be tried:
7569 .sp
7570 "FRed", "FrEd", "FreD", "fREd", "fReD", "frED", \&.\&.
7571 .sp
7572 And so on\&.
7573 .sp
7574 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\&.
7575 .sp
7576 A value of zero will cause only two attempts to be made \- the password as is and the password in all\-lower case\&.
7577 .sp
7578 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
7579 \m[blue]\fBencrypt passwords = No\fR\m[]\&.
7580 .sp
7581 Default:
7582 \fI\fIpassword level\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
7583 .sp
7584 Example:
7585 \fI\fIpassword level\fR\fR\fI = \fR\fI\FC4\F[]\fR\fI \fR
7586 .RE
7587
7588 password server (G)
7589 .\" password server
7590 .PP
7591 .RS 4
7592 By specifying the name of another SMB server or Active Directory domain controller with this option, and using
7593 \FCsecurity = [ads|domain|server]\F[]
7594 it is possible to get Samba to do all its username/password validation using a specific remote server\&.
7595 .sp
7596 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\&.
7597 .sp
7598 If parameter is a name, it is looked up using the parameter
7599 \m[blue]\fBname resolve order\fR\m[]
7600 and so may resolved by any method and order described in that parameter\&.
7601 .sp
7602 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\&.
7603 .if n \{\
7604 .sp
7605 .\}
7606 .RS 4
7607 .BM yellow
7608 .it 1 an-trap
7609 .nr an-no-space-flag 1
7610 .nr an-break-flag 1
7611 .br
7612 .ps +1
7613 \fBNote\fR
7614 .ps -1
7615 .br
7616 Using a password server means your UNIX box (running Samba) is only as secure as your password server\&.
7617 \fIDO NOT CHOOSE A PASSWORD SERVER THAT YOU DON\'T COMPLETELY TRUST\fR\&.
7618 .sp .5v
7619 .EM yellow
7620 .RE
7621 Never point a Samba server at itself for password serving\&. This will cause a loop and could lock up your Samba server!
7622 .sp
7623 The name of the password server takes the standard substitutions, but probably the only useful one is
7624 \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!
7625 .sp
7626 If the
7627 \fIsecurity\fR
7628 parameter is set to
7629 \fBdomain\fR
7630 or
7631 \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
7632 \FC security = domain\F[]
7633 is that if you list several hosts in the
7634 \fIpassword server\fR
7635 option then
7636 \FCsmbd \F[]
7637 will try each in turn till it finds one that responds\&. This is useful in case your primary server goes down\&.
7638 .sp
7639 If the
7640 \fIpassword server\fR
7641 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
7642 \fBWORKGROUP<1C>\fR
7643 and then contacting each server returned in the list of IP addresses from the name resolution source\&.
7644 .sp
7645 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\&.
7646 .sp
7647 If the
7648 \fIsecurity\fR
7649 parameter is set to
7650 \fBserver\fR, then there are different restrictions that
7651 \FCsecurity = domain\F[]
7652 doesn\'t suffer from:
7653 .sp
7654 .RS 4
7655 .ie n \{\
7656 \h'-04'\(bu\h'+03'\c
7657 .\}
7658 .el \{\
7659 .sp -1
7660 .IP \(bu 2.3
7661 .\}
7662 You may list several password servers in the
7663 \fIpassword server\fR
7664 parameter, however if an
7665 \FCsmbd\F[]
7666 makes a connection to a password server, and then the password server fails, no more users will be able to be authenticated from this
7667 \FCsmbd\F[]\&. This is a restriction of the SMB/CIFS protocol when in
7668 \FCsecurity = server \F[]
7669 mode and cannot be fixed in Samba\&.
7670 .RE
7671 .sp
7672 .RS 4
7673 .ie n \{\
7674 \h'-04'\(bu\h'+03'\c
7675 .\}
7676 .el \{\
7677 .sp -1
7678 .IP \(bu 2.3
7679 .\}
7680 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
7681 \FC security = server\F[]
7682 mode the network logon will appear to come from there rather than from the users workstation\&.
7683 .sp
7684 .RE
7685 Default:
7686 \fI\fIpassword server\fR\fR\fI = \fR\fI\FC*\F[]\fR\fI \fR
7687 .sp
7688 Example:
7689 \fI\fIpassword server\fR\fR\fI = \fR\fI\FCNT\-PDC, NT\-BDC1, NT\-BDC2, *\F[]\fR\fI \fR
7690 .sp
7691 Example:
7692 \fI\fIpassword server\fR\fR\fI = \fR\fI\FCwindc\&.mydomain\&.com:389 192\&.168\&.1\&.101 *\F[]\fR\fI \fR
7693 .RE
7694
7695 directory
7696 .\" directory
7697 .PP
7698 .RS 4
7699 This parameter is a synonym for
7700 path\&.
7701 .RE
7702
7703 path (S)
7704 .\" path
7705 .PP
7706 .RS 4
7707 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\&.
7708 .sp
7709 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\&.
7710 .sp
7711 Any occurrences of
7712 \fI%u\fR
7713 in the path will be replaced with the UNIX username that the client is using on this connection\&. Any occurrences of
7714 \fI%m\fR
7715 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\&.
7716 .sp
7717 Note that this path will be based on
7718 \m[blue]\fBroot dir\fR\m[]
7719 if one was specified\&.
7720 .sp
7721 Default:
7722 \fI\fIpath\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7723 .sp
7724 Example:
7725 \fI\fIpath\fR\fR\fI = \fR\fI\FC/home/fred\F[]\fR\fI \fR
7726 .RE
7727
7728 perfcount module (G)
7729 .\" perfcount module
7730 .PP
7731 .RS 4
7732 This parameter specifies the perfcount backend to be used when monitoring SMB operations\&. Only one perfcount module may be used, and it must implement all of the apis contained in the smb_perfcount_handler structure defined in smb\&.h\&.
7733 .sp
7734 \fINo default\fR
7735 .RE
7736
7737 pid directory (G)
7738 .\" pid directory
7739 .PP
7740 .RS 4
7741 This option specifies the directory where pid files will be placed\&.
7742 .sp
7743 Default:
7744 \fI\fIpid directory\fR\fR\fI = \fR\fI\FC${prefix}/var/locks\F[]\fR\fI \fR
7745 .sp
7746 Example:
7747 \fI\fIpid directory\fR\fR\fI = \fR\fI\FCpid directory = /var/run/\F[]\fR\fI \fR
7748 .RE
7749
7750 posix locking (S)
7751 .\" posix locking
7752 .PP
7753 .RS 4
7754 The
7755 \fBsmbd\fR(8)
7756 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\&.
7757 .sp
7758 Default:
7759 \fI\fIposix locking\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7760 .RE
7761
7762 postexec (S)
7763 .\" postexec
7764 .PP
7765 .RS 4
7766 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\&.
7767 .sp
7768 An interesting example may be to unmount server resources:
7769 .sp
7770 \FCpostexec = /etc/umount /cdrom\F[]
7771 .sp
7772 Default:
7773 \fI\fIpostexec\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7774 .sp
7775 Example:
7776 \fI\fIpostexec\fR\fR\fI = \fR\fI\FCecho \e"%u disconnected from %S from %m (%I)\e" >> /tmp/log\F[]\fR\fI \fR
7777 .RE
7778
7779 preexec close (S)
7780 .\" preexec close
7781 .PP
7782 .RS 4
7783 This boolean option controls whether a non\-zero return code from
7784 \m[blue]\fBpreexec\fR\m[]
7785 should close the service being connected to\&.
7786 .sp
7787 Default:
7788 \fI\fIpreexec close\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7789 .RE
7790
7791 exec
7792 .\" exec
7793 .PP
7794 .RS 4
7795 This parameter is a synonym for
7796 preexec\&.
7797 .RE
7798
7799 preexec (S)
7800 .\" preexec
7801 .PP
7802 .RS 4
7803 This option specifies a command to be run whenever the service is connected to\&. It takes the usual substitutions\&.
7804 .sp
7805 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:
7806 .sp
7807
7808 \FCpreexec = csh \-c \'echo \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient \-M %m \-I %I\' & \F[]
7809 .sp
7810 Of course, this could get annoying after a while :\-)
7811 .sp
7812 See also
7813 \m[blue]\fBpreexec close\fR\m[]
7814 and
7815 \m[blue]\fBpostexec\fR\m[]\&.
7816 .sp
7817 Default:
7818 \fI\fIpreexec\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7819 .sp
7820 Example:
7821 \fI\fIpreexec\fR\fR\fI = \fR\fI\FCecho \e"%u connected to %S from %m (%I)\e" >> /tmp/log\F[]\fR\fI \fR
7822 .RE
7823
7824 prefered master
7825 .\" prefered master
7826 .PP
7827 .RS 4
7828 This parameter is a synonym for
7829 preferred master\&.
7830 .RE
7831
7832 preferred master (G)
7833 .\" preferred master
7834 .PP
7835 .RS 4
7836 This boolean parameter controls if
7837 \fBnmbd\fR(8)
7838 is a preferred master browser for its workgroup\&.
7839 .sp
7840 If this is set to
7841 \fByes\fR, on startup,
7842 \FCnmbd\F[]
7843 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
7844 \m[blue]\fBdomain master = yes\fR\m[], so that
7845 \FCnmbd\F[]
7846 can guarantee becoming a domain master\&.
7847 .sp
7848 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\&.
7849 .sp
7850 Default:
7851 \fI\fIpreferred master\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
7852 .RE
7853
7854 preload modules (G)
7855 .\" preload modules
7856 .PP
7857 .RS 4
7858 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\&.
7859 .sp
7860 Default:
7861 \fI\fIpreload modules\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7862 .sp
7863 Example:
7864 \fI\fIpreload modules\fR\fR\fI = \fR\fI\FC/usr/lib/samba/passdb/mysql\&.so\F[]\fR\fI \fR
7865 .RE
7866
7867 auto services
7868 .\" auto services
7869 .PP
7870 .RS 4
7871 This parameter is a synonym for
7872 preload\&.
7873 .RE
7874
7875 preload (G)
7876 .\" preload
7877 .PP
7878 .RS 4
7879 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\&.
7880 .sp
7881 Note that if you just want all printers in your printcap file loaded then the
7882 \m[blue]\fBload printers\fR\m[]
7883 option is easier\&.
7884 .sp
7885 Default:
7886 \fI\fIpreload\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
7887 .sp
7888 Example:
7889 \fI\fIpreload\fR\fR\fI = \fR\fI\FCfred lp colorlp\F[]\fR\fI \fR
7890 .RE
7891
7892 preserve case (S)
7893 .\" preserve case
7894 .PP
7895 .RS 4
7896 This controls if new filenames are created with the case that the client passes, or if they are forced to be the
7897 \m[blue]\fBdefault case\fR\m[]\&.
7898 .sp
7899 See the section on
7900 NAME MANGLING
7901 for a fuller discussion\&.
7902 .sp
7903 Default:
7904 \fI\fIpreserve case\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
7905 .RE
7906
7907 print ok
7908 .\" print ok
7909 .PP
7910 .RS 4
7911 This parameter is a synonym for
7912 printable\&.
7913 .RE
7914
7915 printable (S)
7916 .\" printable
7917 .PP
7918 .RS 4
7919 If this parameter is
7920 \fByes\fR, then clients may open, write to and submit spool files on the directory specified for the service\&.
7921 .sp
7922 Note that a printable service will ALWAYS allow writing to the service path (user privileges permitting) via the spooling of print data\&. The
7923 \m[blue]\fBread only\fR\m[]
7924 parameter controls only non\-printing access to the resource\&.
7925 .sp
7926 Default:
7927 \fI\fIprintable\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
7928 .RE
7929
7930 printcap cache time (G)
7931 .\" printcap cache time
7932 .PP
7933 .RS 4
7934 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\&.
7935 .sp
7936 Setting this parameter to 0 disables any rescanning for new or removed printers after the initial startup\&.
7937 .sp
7938 Default:
7939 \fI\fIprintcap cache time\fR\fR\fI = \fR\fI\FC750\F[]\fR\fI \fR
7940 .sp
7941 Example:
7942 \fI\fIprintcap cache time\fR\fR\fI = \fR\fI\FC600\F[]\fR\fI \fR
7943 .RE
7944
7945 printcap
7946 .\" printcap
7947 .PP
7948 .RS 4
7949 This parameter is a synonym for
7950 printcap name\&.
7951 .RE
7952
7953 printcap name (G)
7954 .\" printcap name
7955 .PP
7956 .RS 4
7957 This parameter may be used to override the compiled\-in default printcap name used by the server (usually
7958 \FC /etc/printcap\F[])\&. See the discussion of the
7959 [printers]
7960 section above for reasons why you might want to do this\&.
7961 .sp
7962 To use the CUPS printing interface set
7963 \FCprintcap name = cups \F[]\&. This should be supplemented by an addtional setting
7964 \m[blue]\fBprinting = cups\fR\m[]
7965 in the [global] section\&.
7966 \FCprintcap name = cups\F[]
7967 will use the "dummy" printcap created by CUPS, as specified in your CUPS configuration file\&.
7968 .sp
7969 On System V systems that use
7970 \FClpstat\F[]
7971 to list available printers you can use
7972 \FCprintcap name = lpstat \F[]
7973 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
7974 \fI printcap name\fR
7975 is set to
7976 \FClpstat\F[]
7977 on these systems then Samba will launch
7978 \FClpstat \-v\F[]
7979 and attempt to parse the output to obtain a printer list\&.
7980 .sp
7981 A minimal printcap file would look something like this:
7982 .sp
7983 .if n \{\
7984 .RS 4
7985 .\}
7986 .fam C
7987 .ps -1
7988 .nf
7989 .if t \{\
7990 .sp -1
7991 .\}
7992 .BB lightgray adjust-for-leading-newline
7993 .sp -1
7994
7995 print1|My Printer 1
7996 print2|My Printer 2
7997 print3|My Printer 3
7998 print4|My Printer 4
7999 print5|My Printer 5
8000 .EB lightgray adjust-for-leading-newline
8001 .if t \{\
8002 .sp 1
8003 .\}
8004 .fi
8005 .fam
8006 .ps +1
8007 .if n \{\
8008 .RE
8009 .\}
8010 .sp
8011 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\&.
8012 .if n \{\
8013 .sp
8014 .\}
8015 .RS 4
8016 .BM yellow
8017 .it 1 an-trap
8018 .nr an-no-space-flag 1
8019 .nr an-break-flag 1
8020 .br
8021 .ps +1
8022 \fBNote\fR
8023 .ps -1
8024 .br
8025 Under AIX the default printcap name is
8026 \FC/etc/qconfig\F[]\&. Samba will assume the file is in AIX
8027 \FCqconfig\F[]
8028 format if the string
8029 \FCqconfig\F[]
8030 appears in the printcap filename\&.
8031 .sp .5v
8032 .EM yellow
8033 .RE
8034 Default:
8035 \fI\fIprintcap name\fR\fR\fI = \fR\fI\FC/etc/printcap\F[]\fR\fI \fR
8036 .sp
8037 Example:
8038 \fI\fIprintcap name\fR\fR\fI = \fR\fI\FC/etc/myprintcap\F[]\fR\fI \fR
8039 .RE
8040
8041 print command (S)
8042 .\" print command
8043 .PP
8044 .RS 4
8045 After a print job has finished spooling to a service, this command will be used via a
8046 \FCsystem()\F[]
8047 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\&.
8048 .sp
8049 The print command is simply a text string\&. It will be used verbatim after macro substitutions have been made:
8050 .sp
8051 %s, %f \- the path to the spool file name
8052 .sp
8053 %p \- the appropriate printer name
8054 .sp
8055 %J \- the job name as transmitted by the client\&.
8056 .sp
8057 %c \- The number of printed pages of the spooled job (if known)\&.
8058 .sp
8059 %z \- the size of the spooled print job (in bytes)
8060 .sp
8061 The print command
8062 \fIMUST\fR
8063 contain at least one occurrence of
8064 \fI%s\fR
8065 or
8066 \fI%f \fR
8067 \- the
8068 \fI%p\fR
8069 is optional\&. At the time a job is submitted, if no printer name is supplied the
8070 \fI%p \fR
8071 will be silently removed from the printer command\&.
8072 .sp
8073 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\&.
8074 .sp
8075 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\&.
8076 .sp
8077 Note that printing may fail on some UNIXes from the
8078 \fBnobody\fR
8079 account\&. If this happens then create an alternative guest account that can print and set the
8080 \m[blue]\fBguest account\fR\m[]
8081 in the [global] section\&.
8082 .sp
8083 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\&.
8084 .sp
8085 \FCprint command = echo Printing %s >> /tmp/print\&.log; lpr \-P %p %s; rm %s\F[]
8086 .sp
8087 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
8088 \m[blue]\fBprinting\fR\m[]
8089 parameter\&.
8090 .sp
8091 Default: For
8092 \FCprinting = BSD, AIX, QNX, LPRNG or PLP :\F[]
8093 .sp
8094 \FCprint command = lpr \-r \-P%p %s\F[]
8095 .sp
8096 For
8097 \FCprinting = SYSV or HPUX :\F[]
8098 .sp
8099 \FCprint command = lp \-c \-d%p %s; rm %s\F[]
8100 .sp
8101 For
8102 \FCprinting = SOFTQ :\F[]
8103 .sp
8104 \FCprint command = lp \-d%p \-s %s; rm %s\F[]
8105 .sp
8106 For printing = CUPS : If SAMBA is compiled against libcups, then
8107 \m[blue]\fBprintcap = cups\fR\m[]
8108 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
8109 \FClp \-c \-d%p \-oraw; rm %s\F[]\&. With
8110 \FCprinting = cups\F[], and if SAMBA is compiled against libcups, any manually set print command will be ignored\&.
8111 .sp
8112 \fINo default\fR
8113 .sp
8114 Example:
8115 \fI\fIprint command\fR\fR\fI = \fR\fI\FC/usr/local/samba/bin/myprintscript %p %s\F[]\fR\fI \fR
8116 .RE
8117
8118 printer admin (S)
8119 .\" printer admin
8120 .PP
8121 .RS 4
8122 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\&.
8123 .sp
8124 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\&.
8125 .sp
8126 Default:
8127 \fI\fIprinter admin\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8128 .sp
8129 Example:
8130 \fI\fIprinter admin\fR\fR\fI = \fR\fI\FCadmin, @staff\F[]\fR\fI \fR
8131 .RE
8132
8133 printer
8134 .\" printer
8135 .PP
8136 .RS 4
8137 This parameter is a synonym for
8138 printer name\&.
8139 .RE
8140
8141 printer name (S)
8142 .\" printer name
8143 .PP
8144 .RS 4
8145 This parameter specifies the name of the printer to which print jobs spooled through a printable service will be sent\&.
8146 .sp
8147 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\&.
8148 .sp
8149 The default value of the
8150 \m[blue]\fBprinter name\fR\m[]
8151 may be
8152 \FClp\F[]
8153 on many systems\&.
8154 .sp
8155 Default:
8156 \fI\fIprinter name\fR\fR\fI = \fR\fI\FCnone\F[]\fR\fI \fR
8157 .sp
8158 Example:
8159 \fI\fIprinter name\fR\fR\fI = \fR\fI\FClaserwriter\F[]\fR\fI \fR
8160 .RE
8161
8162 printing (S)
8163 .\" printing
8164 .PP
8165 .RS 4
8166 This parameters controls how printer status information is interpreted on your system\&. It also affects the default values for the
8167 \fIprint command\fR,
8168 \fIlpq command\fR,
8169 \fIlppause command \fR,
8170 \fIlpresume command\fR, and
8171 \fIlprm command\fR
8172 if specified in the [global] section\&.
8173 .sp
8174 Currently nine printing styles are supported\&. They are
8175 \fBBSD\fR,
8176 \fBAIX\fR,
8177 \fBLPRNG\fR,
8178 \fBPLP\fR,
8179 \fBSYSV\fR,
8180 \fBHPUX\fR,
8181 \fBQNX\fR,
8182 \fBSOFTQ\fR, and
8183 \fBCUPS\fR\&.
8184 .sp
8185 To see what the defaults are for the other print commands when using the various options use the
8186 \fBtestparm\fR(1)
8187 program\&.
8188 .sp
8189 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
8190 \fIprinting\fR
8191 option since it will reset the printing commands to default values\&.
8192 .sp
8193 See also the discussion in the
8194 [printers]
8195 section\&.
8196 .sp
8197 Default:
8198 \fI\fIprinting\fR\fR\fI = \fR\fI\FCDepends on the operating system, see \FCtestparm \-v\&.\F[]\F[]\fR\fI \fR
8199 .RE
8200
8201 printjob username (S)
8202 .\" printjob username
8203 .PP
8204 .RS 4
8205 This parameter specifies which user information will be passed to the printing system\&. Usually, the username is sent, but in some cases, e\&.g\&. the domain prefix is useful, too\&.
8206 .sp
8207 Default:
8208 \fI\fIprintjob username\fR\fR\fI = \fR\fI\FC%U\F[]\fR\fI \fR
8209 .sp
8210 Example:
8211 \fI\fIprintjob username\fR\fR\fI = \fR\fI\FC%D\e%U\F[]\fR\fI \fR
8212 .RE
8213
8214 private dir (G)
8215 .\" private dir
8216 .PP
8217 .RS 4
8218 This parameters defines the directory smbd will use for storing such files as
8219 \FCsmbpasswd\F[]
8220 and
8221 \FCsecrets\&.tdb\F[]\&.
8222 .sp
8223 Default:
8224 \fI\fIprivate dir\fR\fR\fI = \fR\fI\FC${prefix}/private\F[]\fR\fI \fR
8225 .RE
8226
8227 profile acls (S)
8228 .\" profile acls
8229 .PP
8230 .RS 4
8231 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\&.
8232 .sp
8233 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\e\eAdministrators, BUILTIN\e\eUsers 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\e\eUsers to every returned ACL\&. This will allow any Windows 2000 or XP workstation user to access the profile\&.
8234 .sp
8235 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\&.
8236 .sp
8237 Default:
8238 \fI\fIprofile acls\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
8239 .RE
8240
8241 queuepause command (S)
8242 .\" queuepause command
8243 .PP
8244 .RS 4
8245 This parameter specifies the command to be executed on the server host in order to pause the printer queue\&.
8246 .sp
8247 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\&.
8248 .sp
8249 This command is not supported by Windows for Workgroups, but can be issued from the Printers window under Windows 95 and NT\&.
8250 .sp
8251 If a
8252 \fI%p\fR
8253 is given then the printer name is put in its place\&. Otherwise it is placed at the end of the command\&.
8254 .sp
8255 Note that it is good practice to include the absolute path in the command as the PATH may not be available to the server\&.
8256 .sp
8257 \fINo default\fR
8258 .sp
8259 Example:
8260 \fI\fIqueuepause command\fR\fR\fI = \fR\fI\FCdisable %p\F[]\fR\fI \fR
8261 .RE
8262
8263 queueresume command (S)
8264 .\" queueresume command
8265 .PP
8266 .RS 4
8267 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 (\m[blue]\fBqueuepause command\fR\m[])\&.
8268 .sp
8269 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\&.
8270 .sp
8271 This command is not supported by Windows for Workgroups, but can be issued from the Printers window under Windows 95 and NT\&.
8272 .sp
8273 If a
8274 \fI%p\fR
8275 is given then the printer name is put in its place\&. Otherwise it is placed at the end of the command\&.
8276 .sp
8277 Note that it is good practice to include the absolute path in the command as the PATH may not be available to the server\&.
8278 .sp
8279 Default:
8280 \fI\fIqueueresume command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8281 .sp
8282 Example:
8283 \fI\fIqueueresume command\fR\fR\fI = \fR\fI\FCenable %p\F[]\fR\fI \fR
8284 .RE
8285
8286 read list (S)
8287 .\" read list
8288 .PP
8289 .RS 4
8290 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
8291 \m[blue]\fBread only\fR\m[]
8292 option is set to\&. The list can include group names using the syntax described in the
8293 \m[blue]\fBinvalid users\fR\m[]
8294 parameter\&.
8295 .sp
8296 This parameter will not work with the
8297 \m[blue]\fBsecurity = share\fR\m[]
8298 in Samba 3\&.0\&. This is by design\&.
8299 .sp
8300 Default:
8301 \fI\fIread list\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8302 .sp
8303 Example:
8304 \fI\fIread list\fR\fR\fI = \fR\fI\FCmary, @students\F[]\fR\fI \fR
8305 .RE
8306
8307 read only (S)
8308 .\" read only
8309 .PP
8310 .RS 4
8311 An inverted synonym is
8312 \m[blue]\fBwriteable\fR\m[]\&.
8313 .sp
8314 If this parameter is
8315 \fByes\fR, then users of a service may not create or modify files in the service\'s directory\&.
8316 .sp
8317 Note that a printable service (\FCprintable = yes\F[]) will
8318 \fIALWAYS\fR
8319 allow writing to the directory (user privileges permitting), but only via spooling operations\&.
8320 .sp
8321 Default:
8322 \fI\fIread only\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
8323 .RE
8324
8325 read raw (G)
8326 .\" read raw
8327 .PP
8328 .RS 4
8329 This parameter controls whether or not the server will support the raw read SMB requests when transferring data to clients\&.
8330 .sp
8331 If enabled, raw reads allow reads of 65535 bytes in one packet\&. This typically provides a major performance benefit\&.
8332 .sp
8333 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\&.
8334 .sp
8335 In general this parameter should be viewed as a system tuning tool and left severely alone\&.
8336 .sp
8337 Default:
8338 \fI\fIread raw\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
8339 .RE
8340
8341 realm (G)
8342 .\" realm
8343 .PP
8344 .RS 4
8345 This option specifies the kerberos realm to use\&. The realm is used as the ADS equivalent of the NT4
8346 \FCdomain\F[]\&. It is usually set to the DNS name of the kerberos server\&.
8347 .sp
8348 Default:
8349 \fI\fIrealm\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8350 .sp
8351 Example:
8352 \fI\fIrealm\fR\fR\fI = \fR\fI\FCmysambabox\&.mycompany\&.com\F[]\fR\fI \fR
8353 .RE
8354
8355 registry shares (G)
8356 .\" registry shares
8357 .PP
8358 .RS 4
8359 This turns on or off support for share definitions read from registry\&. Shares defined in
8360 \fIsmb\&.conf\fR
8361 take precedence over shares with the same name defined in registry\&. See the section on registry\-based configuration for details\&.
8362 .sp
8363 Note that this parameter defaults to
8364 \fIno\fR, but it is set to
8365 \fIyes\fR
8366 when
8367 \fIconfig backend\fR
8368 is set to
8369 \fIregistry\fR\&.
8370 .sp
8371 Default:
8372 \fI\fIregistry shares\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
8373 .sp
8374 Example:
8375 \fI\fIregistry shares\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
8376 .RE
8377
8378 remote announce (G)
8379 .\" remote announce
8380 .PP
8381 .RS 4
8382 This option allows you to setup
8383 \fBnmbd\fR(8)
8384 to periodically announce itself to arbitrary IP addresses with an arbitrary workgroup name\&.
8385 .sp
8386 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\&.
8387 .sp
8388 For example:
8389 .sp
8390 .if n \{\
8391 .RS 4
8392 .\}
8393 .fam C
8394 .ps -1
8395 .nf
8396 .if t \{\
8397 .sp -1
8398 .\}
8399 .BB lightgray adjust-for-leading-newline
8400 .sp -1
8401
8402 \FCremote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\F[]
8403 .EB lightgray adjust-for-leading-newline
8404 .if t \{\
8405 .sp 1
8406 .\}
8407 .fi
8408 .fam
8409 .ps +1
8410 .if n \{\
8411 .RE
8412 .\}
8413 .sp
8414 the above line would cause
8415 \FCnmbd\F[]
8416 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
8417 \m[blue]\fBworkgroup\fR\m[]
8418 parameter is used instead\&.
8419 .sp
8420 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\&.
8421 .sp
8422 See the chapter on Network Browsing in the Samba\-HOWTO book\&.
8423 .sp
8424 Default:
8425 \fI\fIremote announce\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8426 .RE
8427
8428 remote browse sync (G)
8429 .\" remote browse sync
8430 .PP
8431 .RS 4
8432 This option allows you to setup
8433 \fBnmbd\fR(8)
8434 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\&.
8435 .sp
8436 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\&.
8437 .sp
8438 For example:
8439 .sp
8440 .if n \{\
8441 .RS 4
8442 .\}
8443 .fam C
8444 .ps -1
8445 .nf
8446 .if t \{\
8447 .sp -1
8448 .\}
8449 .BB lightgray adjust-for-leading-newline
8450 .sp -1
8451
8452 \fIremote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fR
8453 .EB lightgray adjust-for-leading-newline
8454 .if t \{\
8455 .sp 1
8456 .\}
8457 .fi
8458 .fam
8459 .ps +1
8460 .if n \{\
8461 .RE
8462 .\}
8463 .sp
8464 the above line would cause
8465 \FCnmbd\F[]
8466 to request the master browser on the specified subnets or addresses to synchronize their browse lists with the local server\&.
8467 .sp
8468 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\&.
8469 .sp
8470 The
8471 \m[blue]\fBremote browse sync\fR\m[]
8472 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\&.
8473 .sp
8474 Default:
8475 \fI\fIremote browse sync\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8476 .RE
8477
8478 rename user script (G)
8479 .\" rename user script
8480 .PP
8481 .RS 4
8482 This is the full pathname to a script that will be run as root by
8483 \fBsmbd\fR(8)
8484 under special circumstances described below\&.
8485 .sp
8486 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,
8487 \FC%uold\F[]
8488 and
8489 \FC%unew\F[], will be substituted with the old and new usernames, respectively\&. The script should return 0 upon successful completion, and nonzero otherwise\&.
8490 .if n \{\
8491 .sp
8492 .\}
8493 .RS 4
8494 .BM yellow
8495 .it 1 an-trap
8496 .nr an-no-space-flag 1
8497 .nr an-break-flag 1
8498 .br
8499 .ps +1
8500 \fBNote\fR
8501 .ps -1
8502 .br
8503 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\&.
8504 .sp .5v
8505 .EM yellow
8506 .RE
8507 Default:
8508 \fI\fIrename user script\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
8509 .RE
8510
8511 reset on zero vc (G)
8512 .\" reset on zero vc
8513 .PP
8514 .RS 4
8515 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\&.
8516 .sp
8517 Default:
8518 \fI\fIreset on zero vc\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
8519 .RE
8520
8521 restrict anonymous (G)
8522 .\" restrict anonymous
8523 .PP
8524 .RS 4
8525 The setting of this parameter determines whether user and group list information is returned for an anonymous connection\&. and mirrors the effects of the
8526 .sp
8527 .if n \{\
8528 .RS 4
8529 .\}
8530 .fam C
8531 .ps -1
8532 .nf
8533 .if t \{\
8534 .sp -1
8535 .\}
8536 .BB lightgray adjust-for-leading-newline
8537 .sp -1
8538
8539 HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\e
8540            Control\eLSA\eRestrictAnonymous
8541 .EB lightgray adjust-for-leading-newline
8542 .if t \{\
8543 .sp 1
8544 .\}
8545 .fi
8546 .fam
8547 .ps +1
8548 .if n \{\
8549 .RE
8550 .\}
8551 .sp
8552 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\&.
8553 .sp
8554 The security advantage of using restrict anonymous = 1 is dubious, as user and group list information can be obtained using other means\&.
8555 .if n \{\
8556 .sp
8557 .\}
8558 .RS 4
8559 .BM yellow
8560 .it 1 an-trap
8561 .nr an-no-space-flag 1
8562 .nr an-break-flag 1
8563 .br
8564 .ps +1
8565 \fBNote\fR
8566 .ps -1
8567 .br
8568 The security advantage of using restrict anonymous = 2 is removed by setting
8569 \m[blue]\fBguest ok = yes\fR\m[]
8570 on any share\&.
8571 .sp .5v
8572 .EM yellow
8573 .RE
8574 Default:
8575 \fI\fIrestrict anonymous\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
8576 .RE
8577
8578 root
8579 .\" root
8580 .PP
8581 .RS 4
8582 This parameter is a synonym for
8583 root directory\&.
8584 .RE
8585
8586 root dir
8587 .\" root dir
8588 .PP
8589 .RS 4
8590 This parameter is a synonym for
8591 root directory\&.
8592 .RE
8593
8594 root directory (G)
8595 .\" root directory
8596 .PP
8597 .RS 4
8598 The server will
8599 \FCchroot()\F[]
8600 (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 the
8601 \m[blue]\fBwide smbconfoptions\fR\m[]
8602 parameter)\&.
8603 .sp
8604 Adding a
8605 \fIroot directory\fR
8606 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
8607 \fIroot directory\fR
8608 option,
8609 \fIincluding\fR
8610 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
8611 \fIroot directory\fR
8612 tree\&. In particular you will need to mirror
8613 \FC/etc/passwd\F[]
8614 (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\&.
8615 .sp
8616 Default:
8617 \fI\fIroot directory\fR\fR\fI = \fR\fI\FC/\F[]\fR\fI \fR
8618 .sp
8619 Example:
8620 \fI\fIroot directory\fR\fR\fI = \fR\fI\FC/homes/smb\F[]\fR\fI \fR
8621 .RE
8622
8623 root postexec (S)
8624 .\" root postexec
8625 .PP
8626 .RS 4
8627 This is the same as the
8628 \fIpostexec\fR
8629 parameter except that the command is run as root\&. This is useful for unmounting filesystems (such as CDROMs) after a connection is closed\&.
8630 .sp
8631 Default:
8632 \fI\fIroot postexec\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8633 .RE
8634
8635 root preexec close (S)
8636 .\" root preexec close
8637 .PP
8638 .RS 4
8639 This is the same as the
8640 \fIpreexec close \fR
8641 parameter except that the command is run as root\&.
8642 .sp
8643 Default:
8644 \fI\fIroot preexec close\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
8645 .RE
8646
8647 root preexec (S)
8648 .\" root preexec
8649 .PP
8650 .RS 4
8651 This is the same as the
8652 \fIpreexec\fR
8653 parameter except that the command is run as root\&. This is useful for mounting filesystems (such as CDROMs) when a connection is opened\&.
8654 .sp
8655 Default:
8656 \fI\fIroot preexec\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
8657 .RE
8658
8659 security mask (S)
8660 .\" security mask
8661 .PP
8662 .RS 4
8663 This parameter controls what UNIX permission bits will be set when a Windows NT client is manipulating the UNIX permission on a file using the native NT security dialog box\&.
8664 .sp
8665 This parameter is applied as a mask (AND\'ed with) to the incoming permission bits, thus resetting any bits not in this mask\&. Make sure not to mix up this parameter with
8666 \m[blue]\fBforce security mode\fR\m[], which works in a manner similar to this one but uses a logical OR instead of an AND\&.
8667 .sp
8668 Essentially, all bits set to zero in this mask will result in setting to zero the corresponding bits on the file permissions regardless of the previous status of this bits on the file\&.
8669 .sp
8670 If not set explicitly this parameter is 0777, allowing a user to set all the user/group/world permissions on a file\&.
8671 .sp
8672 \fI Note\fR
8673 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
8674 \fB0777\fR\&.
8675 .sp
8676 Default:
8677 \fI\fIsecurity mask\fR\fR\fI = \fR\fI\FC0777\F[]\fR\fI \fR
8678 .sp
8679 Example:
8680 \fI\fIsecurity mask\fR\fR\fI = \fR\fI\FC0770\F[]\fR\fI \fR
8681 .RE
8682
8683 security (G)
8684 .\" security
8685 .PP
8686 .RS 4
8687 This option affects how clients respond to Samba and is one of the most important settings in the
8688 \FC smb\&.conf\F[]
8689 file\&.
8690 .sp
8691 The option sets the "security mode bit" in replies to protocol negotiations with
8692 \fBsmbd\fR(8)
8693 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\&.
8694 .sp
8695 The default is
8696 \FCsecurity = user\F[], as this is the most common setting needed when talking to Windows 98 and Windows NT\&.
8697 .sp
8698 The alternatives are
8699 \FCsecurity = share\F[],
8700 \FCsecurity = server\F[]
8701 or
8702 \FCsecurity = domain \F[]\&.
8703 .sp
8704 In versions of Samba prior to 2\&.0\&.0, the default was
8705 \FCsecurity = share\F[]
8706 mainly because that was the only option at one stage\&.
8707 .sp
8708 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 username and 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\&.
8709 .sp
8710 If your PCs use usernames that are the same as their usernames on the UNIX machine then you will want to use
8711 \FCsecurity = user\F[]\&. If you mostly use usernames that don\'t exist on the UNIX box then use
8712 \FCsecurity = share\F[]\&.
8713 .sp
8714 You should also use
8715 \FCsecurity = share\F[]
8716 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
8717 \FCsecurity = user\F[], see the
8718 \m[blue]\fBmap to guest\fR\m[]
8719 parameter for details\&.
8720 .sp
8721 It is possible to use
8722 \FCsmbd\F[]
8723 in a
8724 \fI hybrid mode\fR
8725 where it is offers both user and share level security under different
8726 \m[blue]\fBNetBIOS aliases\fR\m[]\&.
8727 .sp
8728 The different settings will now be explained\&.
8729 .sp
8730 \fISECURITY = SHARE\fR
8731 .sp
8732 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
8733 \FCsecurity = share \F[]
8734 server)\&. Instead, the clients send authentication information (passwords) on a per\-share basis, at the time they attempt to connect to that share\&.
8735 .sp
8736 Note that
8737 \FCsmbd\F[]
8738 \fIALWAYS\fR
8739 uses a valid UNIX user to act on behalf of the client, even in
8740 \FCsecurity = share\F[]
8741 level security\&.
8742 .sp
8743 As clients are not required to send a username to the server in share level security,
8744 \FCsmbd\F[]
8745 uses several techniques to determine the correct UNIX user to use on behalf of the client\&.
8746 .sp
8747 A list of possible UNIX usernames to match with the given client password is constructed using the following methods :
8748 .sp
8749 .RS 4
8750 .ie n \{\
8751 \h'-04'\(bu\h'+03'\c
8752 .\}
8753 .el \{\
8754 .sp -1
8755 .IP \(bu 2.3
8756 .\}
8757 If the
8758 \m[blue]\fBguest only\fR\m[]
8759 parameter is set, then all the other stages are missed and only the
8760 \m[blue]\fBguest account\fR\m[]
8761 username is checked\&.
8762 .RE
8763 .sp
8764 .RS 4
8765 .ie n \{\
8766 \h'-04'\(bu\h'+03'\c
8767 .\}
8768 .el \{\
8769 .sp -1
8770 .IP \(bu 2.3
8771 .\}
8772 Is a username is sent with the share connection request, then this username (after mapping \- see
8773 \m[blue]\fBusername map\fR\m[]), is added as a potential username\&.
8774 .RE
8775 .sp
8776 .RS 4
8777 .ie n \{\
8778 \h'-04'\(bu\h'+03'\c
8779 .\}
8780 .el \{\
8781 .sp -1
8782 .IP \(bu 2.3
8783 .\}
8784 If the client did a previous
8785 \fIlogon \fR
8786 request (the SessionSetup SMB call) then the username sent in this SMB will be added as a potential username\&.
8787 .RE
8788 .sp
8789 .RS 4
8790 .ie n \{\
8791 \h'-04'\(bu\h'+03'\c
8792 .\}
8793 .el \{\
8794 .sp -1
8795 .IP \(bu 2.3
8796 .\}
8797 The name of the service the client requested is added as a potential username\&.
8798 .RE
8799 .sp
8800 .RS 4
8801 .ie n \{\
8802 \h'-04'\(bu\h'+03'\c
8803 .\}
8804 .el \{\
8805 .sp -1
8806 .IP \(bu 2.3
8807 .\}
8808 The NetBIOS name of the client is added to the list as a potential username\&.
8809 .RE
8810 .sp
8811 .RS 4
8812 .ie n \{\
8813 \h'-04'\(bu\h'+03'\c
8814 .\}
8815 .el \{\
8816 .sp -1
8817 .IP \(bu 2.3
8818 .\}
8819 Any users on the
8820 \m[blue]\fBuser\fR\m[]
8821 list are added as potential usernames\&.
8822 .sp
8823 .RE
8824 If the
8825 \fIguest only\fR
8826 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\&.
8827 .sp
8828 If the
8829 \fIguest only\fR
8830 parameter is set, or no username can be determined then if the share is marked as available to the
8831 \fIguest account\fR, then this guest user will be used, otherwise access is denied\&.
8832 .sp
8833 Note that it can be
8834 \fIvery\fR
8835 confusing in share\-level security as to which UNIX username will eventually be used in granting access\&.
8836 .sp
8837 See also the section
8838 NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
8839 .sp
8840 \fISECURITY = USER\fR
8841 .sp
8842 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
8843 \m[blue]\fBusername map\fR\m[]
8844 parameter)\&. Encrypted passwords (see the
8845 \m[blue]\fBencrypted passwords\fR\m[]
8846 parameter) can also be used in this security mode\&. Parameters such as
8847 \m[blue]\fBuser\fR\m[]
8848 and
8849 \m[blue]\fBguest only\fR\m[]
8850 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\&.
8851 .sp
8852 \fINote\fR
8853 that the name of the resource being requested is
8854 \fInot\fR
8855 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
8856 \m[blue]\fBguest account\fR\m[]\&. See the
8857 \m[blue]\fBmap to guest\fR\m[]
8858 parameter for details on doing this\&.
8859 .sp
8860 See also the section
8861 NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
8862 .sp
8863 \fISECURITY = DOMAIN\fR
8864 .sp
8865 This mode will only work correctly if
8866 \fBnet\fR(8)
8867 has been used to add this machine into a Windows NT Domain\&. It expects the
8868 \m[blue]\fBencrypted passwords\fR\m[]
8869 parameter to be set to
8870 \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\&.
8871 .sp
8872 \fINote\fR
8873 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\&.
8874 .sp
8875 \fINote\fR
8876 that from the client\'s point of view
8877 \FCsecurity = domain\F[]
8878 is the same as
8879 \FCsecurity = user\F[]\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&.
8880 .sp
8881 \fINote\fR
8882 that the name of the resource being requested is
8883 \fInot\fR
8884 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
8885 \m[blue]\fBguest account\fR\m[]\&. See the
8886 \m[blue]\fBmap to guest\fR\m[]
8887 parameter for details on doing this\&.
8888 .sp
8889 See also the section
8890 NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
8891 .sp
8892 See also the
8893 \m[blue]\fBpassword server\fR\m[]
8894 parameter and the
8895 \m[blue]\fBencrypted passwords\fR\m[]
8896 parameter\&.
8897 .sp
8898 \fISECURITY = SERVER\fR
8899 .sp
8900 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
8901 \FCsecurity = user\F[]\&. It expects the
8902 \m[blue]\fBencrypted passwords\fR\m[]
8903 parameter to be set to
8904 \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
8905 \FCsmbpasswd\F[]
8906 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\&.
8907 .if n \{\
8908 .sp
8909 .\}
8910 .RS 4
8911 .BM yellow
8912 .it 1 an-trap
8913 .nr an-no-space-flag 1
8914 .nr an-break-flag 1
8915 .br
8916 .ps +1
8917 \fBNote\fR
8918 .ps -1
8919 .br
8920 This mode of operation has significant pitfalls since it is more vulnerable to man\-in\-the\-middle attacks and server impersonation\&. 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 authentications to the Samba server may fail (from a single client, till it disconnects)\&.
8921 .sp .5v
8922 .EM yellow
8923 .RE
8924 .if n \{\
8925 .sp
8926 .\}
8927 .RS 4
8928 .BM yellow
8929 .it 1 an-trap
8930 .nr an-no-space-flag 1
8931 .nr an-break-flag 1
8932 .br
8933 .ps +1
8934 \fBNote\fR
8935 .ps -1
8936 .br
8937 From the client\'s point of view,
8938 \FCsecurity = server\F[]
8939 is the same as
8940 \FCsecurity = user\F[]\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&.
8941 .sp .5v
8942 .EM yellow
8943 .RE
8944 \fINote\fR
8945 that the name of the resource being requested is
8946 \fInot\fR
8947 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
8948 \m[blue]\fBguest account\fR\m[]\&. See the
8949 \m[blue]\fBmap to guest\fR\m[]
8950 parameter for details on doing this\&.
8951 .sp
8952 See also the section
8953 NOTE ABOUT USERNAME/PASSWORD VALIDATION\&.
8954 .sp
8955 See also the
8956 \m[blue]\fBpassword server\fR\m[]
8957 parameter and the
8958 \m[blue]\fBencrypted passwords\fR\m[]
8959 parameter\&.
8960 .sp
8961 \fISECURITY = ADS\fR
8962 .sp
8963 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\&.
8964 .sp
8965 Note that this mode does NOT make Samba operate as a Active Directory Domain Controller\&.
8966 .sp
8967 Read the chapter about Domain Membership in the HOWTO for details\&.
8968 .sp
8969 Default:
8970 \fI\fIsecurity\fR\fR\fI = \fR\fI\FCUSER\F[]\fR\fI \fR
8971 .sp
8972 Example:
8973 \fI\fIsecurity\fR\fR\fI = \fR\fI\FCDOMAIN\F[]\fR\fI \fR
8974 .RE
8975
8976 server schannel (G)
8977 .\" server schannel
8978 .PP
8979 .RS 4
8980 This controls whether the server offers or even demands the use of the netlogon schannel\&.
8981 \m[blue]\fBserver schannel = no\fR\m[]
8982 does not offer the schannel,
8983 \m[blue]\fBserver schannel = auto\fR\m[]
8984 offers the schannel but does not enforce it, and
8985 \m[blue]\fBserver schannel = yes\fR\m[]
8986 denies access if the client is not able to speak netlogon schannel\&. This is only the case for Windows NT4 before SP4\&.
8987 .sp
8988 Please note that with this set to
8989 \FCno\F[], you will have to apply the WindowsXP
8990 \FCWinXP_SignOrSeal\&.reg\F[]
8991 registry patch found in the docs/registry subdirectory of the Samba distribution tarball\&.
8992 .sp
8993 Default:
8994 \fI\fIserver schannel\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
8995 .sp
8996 Example:
8997 \fI\fIserver schannel\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
8998 .RE
8999
9000 server signing (G)
9001 .\" server signing
9002 .PP
9003 .RS 4
9004 This controls whether the client is allowed or required to use SMB signing\&. Possible values are
9005 \fIauto\fR,
9006 \fImandatory\fR
9007 and
9008 \fIdisabled\fR\&.
9009 .sp
9010 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\&.
9011 .sp
9012 Default:
9013 \fI\fIserver signing\fR\fR\fI = \fR\fI\FCDisabled\F[]\fR\fI \fR
9014 .RE
9015
9016 server string (G)
9017 .\" server string
9018 .PP
9019 .RS 4
9020 This controls what string will show up in the printer comment box in print manager and next to the IPC connection in
9021 \FCnet view\F[]\&. It can be any string that you wish to show to your users\&.
9022 .sp
9023 It also sets what will appear in browse lists next to the machine name\&.
9024 .sp
9025 A
9026 \fI%v\fR
9027 will be replaced with the Samba version number\&.
9028 .sp
9029 A
9030 \fI%h\fR
9031 will be replaced with the hostname\&.
9032 .sp
9033 Default:
9034 \fI\fIserver string\fR\fR\fI = \fR\fI\FCSamba %v\F[]\fR\fI \fR
9035 .sp
9036 Example:
9037 \fI\fIserver string\fR\fR\fI = \fR\fI\FCUniversity of GNUs Samba Server\F[]\fR\fI \fR
9038 .RE
9039
9040 set directory (S)
9041 .\" set directory
9042 .PP
9043 .RS 4
9044 If
9045 \FCset directory = no\F[], then users of the service may not use the setdir command to change directory\&.
9046 .sp
9047 The
9048 \FCsetdir\F[]
9049 command is only implemented in the Digital Pathworks client\&. See the Pathworks documentation for details\&.
9050 .sp
9051 Default:
9052 \fI\fIset directory\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9053 .RE
9054
9055 set primary group script (G)
9056 .\" set primary group script
9057 .PP
9058 .RS 4
9059 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
9060 \FCnet rpc vampire\F[]\&.
9061 \fI%u\fR
9062 will be replaced with the user whose primary group is to be set\&.
9063 \fI%g\fR
9064 will be replaced with the group to set\&.
9065 .sp
9066 Default:
9067 \fI\fIset primary group script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
9068 .sp
9069 Example:
9070 \fI\fIset primary group script\fR\fR\fI = \fR\fI\FC/usr/sbin/usermod \-g \'%g\' \'%u\'\F[]\fR\fI \fR
9071 .RE
9072
9073 set quota command (G)
9074 .\" set quota command
9075 .PP
9076 .RS 4
9077 The
9078 \FCset quota command\F[]
9079 should only be used whenever there is no operating system API available from the OS that samba can use\&.
9080 .sp
9081 This option is only available if Samba was configured with the argument
9082 \FC\-\-with\-sys\-quotas\F[]
9083 or on linux when
9084 \FC\&./configure \-\-with\-quotas\F[]
9085 was used and a working quota api was found in the system\&. Most packages are configured with these options already\&.
9086 .sp
9087 This parameter should specify the path to a script that can set quota for the specified arguments\&.
9088 .sp
9089 The specified script should take the following arguments:
9090 .sp
9091 .RS 4
9092 .ie n \{\
9093 \h'-04'\(bu\h'+03'\c
9094 .\}
9095 .el \{\
9096 .sp -1
9097 .IP \(bu 2.3
9098 .\}
9099 1 \- quota type
9100 .sp
9101 .RS 4
9102 .ie n \{\
9103 \h'-04'\(bu\h'+03'\c
9104 .\}
9105 .el \{\
9106 .sp -1
9107 .IP \(bu 2.3
9108 .\}
9109 1 \- user quotas
9110 .RE
9111 .sp
9112 .RS 4
9113 .ie n \{\
9114 \h'-04'\(bu\h'+03'\c
9115 .\}
9116 .el \{\
9117 .sp -1
9118 .IP \(bu 2.3
9119 .\}
9120 2 \- user default quotas (uid = \-1)
9121 .RE
9122 .sp
9123 .RS 4
9124 .ie n \{\
9125 \h'-04'\(bu\h'+03'\c
9126 .\}
9127 .el \{\
9128 .sp -1
9129 .IP \(bu 2.3
9130 .\}
9131 3 \- group quotas
9132 .RE
9133 .sp
9134 .RS 4
9135 .ie n \{\
9136 \h'-04'\(bu\h'+03'\c
9137 .\}
9138 .el \{\
9139 .sp -1
9140 .IP \(bu 2.3
9141 .\}
9142 4 \- group default quotas (gid = \-1)
9143 .sp
9144 .RE
9145 .RE
9146 .sp
9147 .RS 4
9148 .ie n \{\
9149 \h'-04'\(bu\h'+03'\c
9150 .\}
9151 .el \{\
9152 .sp -1
9153 .IP \(bu 2.3
9154 .\}
9155 2 \- id (uid for user, gid for group, \-1 if N/A)
9156 .RE
9157 .sp
9158 .RS 4
9159 .ie n \{\
9160 \h'-04'\(bu\h'+03'\c
9161 .\}
9162 .el \{\
9163 .sp -1
9164 .IP \(bu 2.3
9165 .\}
9166 3 \- quota state (0 = disable, 1 = enable, 2 = enable and enforce)
9167 .RE
9168 .sp
9169 .RS 4
9170 .ie n \{\
9171 \h'-04'\(bu\h'+03'\c
9172 .\}
9173 .el \{\
9174 .sp -1
9175 .IP \(bu 2.3
9176 .\}
9177 4 \- block softlimit
9178 .RE
9179 .sp
9180 .RS 4
9181 .ie n \{\
9182 \h'-04'\(bu\h'+03'\c
9183 .\}
9184 .el \{\
9185 .sp -1
9186 .IP \(bu 2.3
9187 .\}
9188 5 \- block hardlimit
9189 .RE
9190 .sp
9191 .RS 4
9192 .ie n \{\
9193 \h'-04'\(bu\h'+03'\c
9194 .\}
9195 .el \{\
9196 .sp -1
9197 .IP \(bu 2.3
9198 .\}
9199 6 \- inode softlimit
9200 .RE
9201 .sp
9202 .RS 4
9203 .ie n \{\
9204 \h'-04'\(bu\h'+03'\c
9205 .\}
9206 .el \{\
9207 .sp -1
9208 .IP \(bu 2.3
9209 .\}
9210 7 \- inode hardlimit
9211 .RE
9212 .sp
9213 .RS 4
9214 .ie n \{\
9215 \h'-04'\(bu\h'+03'\c
9216 .\}
9217 .el \{\
9218 .sp -1
9219 .IP \(bu 2.3
9220 .\}
9221 8(optional) \- block size, defaults to 1024
9222 .sp
9223 .RE
9224 The script should output at least one line of data on success\&. And nothing on failure\&.
9225 .sp
9226 Default:
9227 \fI\fIset quota command\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
9228 .sp
9229 Example:
9230 \fI\fIset quota command\fR\fR\fI = \fR\fI\FC/usr/local/sbin/set_quota\F[]\fR\fI \fR
9231 .RE
9232
9233 share modes (S)
9234 .\" share modes
9235 .PP
9236 .RS 4
9237 This enables or disables the honoring of the
9238 \fIshare modes\fR
9239 during a file open\&. These modes are used by clients to gain exclusive read or write access to a file\&.
9240 .sp
9241 This is a deprecated option from old versions of Samba, and will be removed in the next major release\&.
9242 .sp
9243 These open modes are not directly supported by UNIX, so they are simulated using shared memory\&.
9244 .sp
9245 The share modes that are enabled by this option are the standard Windows share modes\&.
9246 .sp
9247 This option gives full share compatibility and is enabled by default\&.
9248 .sp
9249 You should
9250 \fINEVER\fR
9251 turn this parameter off as many Windows applications will break if you do so\&.
9252 .sp
9253 Default:
9254 \fI\fIshare modes\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
9255 .RE
9256
9257 short preserve case (S)
9258 .\" short preserve case
9259 .PP
9260 .RS 4
9261 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
9262 \m[blue]\fBdefault case\fR\m[]\&. This option can be use with
9263 \m[blue]\fBpreserve case = yes\fR\m[]
9264 to permit long filenames to retain their case, while short names are lowered\&.
9265 .sp
9266 See the section on
9267 NAME MANGLING\&.
9268 .sp
9269 Default:
9270 \fI\fIshort preserve case\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
9271 .RE
9272
9273 show add printer wizard (G)
9274 .\" show add printer wizard
9275 .PP
9276 .RS 4
9277 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\&.
9278 .sp
9279 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
9280 \fIprinter admin\fR
9281 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\&.
9282 .sp
9283 Disabling the
9284 \fIshow add printer wizard\fR
9285 parameter will always cause the OpenPrinterEx() on the server to fail\&. Thus the APW icon will never be displayed\&.
9286 .if n \{\
9287 .sp
9288 .\}
9289 .RS 4
9290 .BM yellow
9291 .it 1 an-trap
9292 .nr an-no-space-flag 1
9293 .nr an-break-flag 1
9294 .br
9295 .ps +1
9296 \fBNote\fR
9297 .ps -1
9298 .br
9299 This does not prevent the same user from having administrative privilege on an individual printer\&.
9300 .sp .5v
9301 .EM yellow
9302 .RE
9303 Default:
9304 \fI\fIshow add printer wizard\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
9305 .RE
9306
9307 shutdown script (G)
9308 .\" shutdown script
9309 .PP
9310 .RS 4
9311 This a full path name to a script called by
9312 \fBsmbd\fR(8)
9313 that should start a shutdown procedure\&.
9314 .sp
9315 If the connected user posseses the
9316 \fBSeRemoteShutdownPrivilege\fR, right, this command will be run as root\&.
9317 .sp
9318 The %z %t %r %f variables are expanded as follows:
9319 .sp
9320 .RS 4
9321 .ie n \{\
9322 \h'-04'\(bu\h'+03'\c
9323 .\}
9324 .el \{\
9325 .sp -1
9326 .IP \(bu 2.3
9327 .\}
9328 \fI%z\fR
9329 will be substituted with the shutdown message sent to the server\&.
9330 .RE
9331 .sp
9332 .RS 4
9333 .ie n \{\
9334 \h'-04'\(bu\h'+03'\c
9335 .\}
9336 .el \{\
9337 .sp -1
9338 .IP \(bu 2.3
9339 .\}
9340 \fI%t\fR
9341 will be substituted with the number of seconds to wait before effectively starting the shutdown procedure\&.
9342 .RE
9343 .sp
9344 .RS 4
9345 .ie n \{\
9346 \h'-04'\(bu\h'+03'\c
9347 .\}
9348 .el \{\
9349 .sp -1
9350 .IP \(bu 2.3
9351 .\}
9352 \fI%r\fR
9353 will be substituted with the switch
9354 \fI\-r\fR\&. It means reboot after shutdown for NT\&.
9355 .RE
9356 .sp
9357 .RS 4
9358 .ie n \{\
9359 \h'-04'\(bu\h'+03'\c
9360 .\}
9361 .el \{\
9362 .sp -1
9363 .IP \(bu 2.3
9364 .\}
9365 \fI%f\fR
9366 will be substituted with the switch
9367 \fI\-f\fR\&. It means force the shutdown even if applications do not respond for NT\&.
9368 .sp
9369 .RE
9370 Shutdown script example:
9371 .sp
9372 .if n \{\
9373 .RS 4
9374 .\}
9375 .fam C
9376 .ps -1
9377 .nf
9378 .if t \{\
9379 .sp -1
9380 .\}
9381 .BB lightgray adjust-for-leading-newline
9382 .sp -1
9383
9384 #!/bin/bash
9385                 
9386 $time=0
9387 let "time/60"
9388 let "time++"
9389
9390 /sbin/shutdown $3 $4 +$time $1 &
9391 .EB lightgray adjust-for-leading-newline
9392 .if t \{\
9393 .sp 1
9394 .\}
9395 .fi
9396 .fam
9397 .ps +1
9398 .if n \{\
9399 .RE
9400 .\}
9401 .sp
9402 Shutdown does not return so we need to launch it in background\&.
9403 .sp
9404 Default:
9405 \fI\fIshutdown script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
9406 .sp
9407 Example:
9408 \fI\fIshutdown script\fR\fR\fI = \fR\fI\FC/usr/local/samba/sbin/shutdown %m %t %r %f\F[]\fR\fI \fR
9409 .RE
9410
9411 smb encrypt (S)
9412 .\" smb encrypt
9413 .PP
9414 .RS 4
9415 This is a new feature introduced with Samba 3\&.2 and above\&. It is an extension to the SMB/CIFS protocol negotiated as part of the UNIX extensions\&. SMB encryption uses the GSSAPI (SSPI on Windows) ability to encrypt and sign every request/response in a SMB protocol stream\&. When enabled it provides a secure method of SMB/CIFS communication, similar to an ssh protected session, but using SMB/CIFS authentication to negotiate encryption and signing keys\&. Currently this is only supported by Samba 3\&.2 smbclient, and hopefully soon Linux CIFSFS and MacOS/X clients\&. Windows clients do not support this feature\&.
9416 .sp
9417 This controls whether the remote client is allowed or required to use SMB encryption\&. Possible values are
9418 \fIauto\fR,
9419 \fImandatory\fR
9420 and
9421 \fIdisabled\fR\&. This may be set on a per\-share basis, but clients may chose to encrypt the entire session, not just traffic to a specific share\&. If this is set to mandatory then all traffic to a share
9422 \fImust\fR
9423 must be encrypted once the connection has been made to the share\&. The server would return "access denied" to all non\-encrypted requests on such a share\&. Selecting encrypted traffic reduces throughput as smaller packet sizes must be used (no huge UNIX style read/writes allowed) as well as the overhead of encrypting and signing all the data\&.
9424 .sp
9425 If SMB encryption is selected, Windows style SMB signing (see the
9426 \m[blue]\fBserver signing\fR\m[]
9427 option) is no longer necessary, as the GSSAPI flags use select both signing and sealing of the data\&.
9428 .sp
9429 When set to auto, SMB encryption is offered, but not enforced\&. When set to mandatory, SMB encryption is required and if set to disabled, SMB encryption can not be negotiated\&.
9430 .sp
9431 Default:
9432 \fI\fIsmb encrypt\fR\fR\fI = \fR\fI\FCauto\F[]\fR\fI \fR
9433 .RE
9434
9435 smb passwd file (G)
9436 .\" smb passwd file
9437 .PP
9438 .RS 4
9439 This option sets the path to the encrypted smbpasswd file\&. By default the path to the smbpasswd file is compiled into Samba\&.
9440 .sp
9441 An example of use is:
9442 .sp
9443 .if n \{\
9444 .RS 4
9445 .\}
9446 .fam C
9447 .ps -1
9448 .nf
9449 .if t \{\
9450 .sp -1
9451 .\}
9452 .BB lightgray adjust-for-leading-newline
9453 .sp -1
9454
9455 smb passwd file = /etc/samba/smbpasswd
9456 .EB lightgray adjust-for-leading-newline
9457 .if t \{\
9458 .sp 1
9459 .\}
9460 .fi
9461 .fam
9462 .ps +1
9463 .if n \{\
9464 .RE
9465 .\}
9466 .sp
9467 Default:
9468 \fI\fIsmb passwd file\fR\fR\fI = \fR\fI\FC${prefix}/private/smbpasswd\F[]\fR\fI \fR
9469 .RE
9470
9471 smb ports (G)
9472 .\" smb ports
9473 .PP
9474 .RS 4
9475 Specifies which ports the server should listen on for SMB traffic\&.
9476 .sp
9477 Default:
9478 \fI\fIsmb ports\fR\fR\fI = \fR\fI\FC445 139\F[]\fR\fI \fR
9479 .RE
9480
9481 socket address (G)
9482 .\" socket address
9483 .PP
9484 .RS 4
9485 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\&.
9486 .sp
9487 Setting this option should never be necessary on usual Samba servers running only one nmbd\&.
9488 .sp
9489 By default Samba will accept connections on any address\&.
9490 .sp
9491 Default:
9492 \fI\fIsocket address\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
9493 .sp
9494 Example:
9495 \fI\fIsocket address\fR\fR\fI = \fR\fI\FC192\&.168\&.2\&.20\F[]\fR\fI \fR
9496 .RE
9497
9498 socket options (G)
9499 .\" socket options
9500 .PP
9501 .RS 4
9502 This option allows you to set socket options to be used when talking with the client\&.
9503 .sp
9504 Socket options are controls on the networking layer of the operating systems which allow the connection to be tuned\&.
9505 .sp
9506 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
9507 \FCman setsockopt\F[]
9508 will help)\&.
9509 .sp
9510 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
9511 samba\-technical@samba\&.org\&.
9512 .sp
9513 Any of the supported socket options may be combined in any way you like, as long as your OS allows it\&.
9514 .sp
9515 This is the list of socket options currently settable using this option:
9516 .sp
9517 .RS 4
9518 .ie n \{\
9519 \h'-04'\(bu\h'+03'\c
9520 .\}
9521 .el \{\
9522 .sp -1
9523 .IP \(bu 2.3
9524 .\}
9525 SO_KEEPALIVE
9526 .RE
9527 .sp
9528 .RS 4
9529 .ie n \{\
9530 \h'-04'\(bu\h'+03'\c
9531 .\}
9532 .el \{\
9533 .sp -1
9534 .IP \(bu 2.3
9535 .\}
9536 SO_REUSEADDR
9537 .RE
9538 .sp
9539 .RS 4
9540 .ie n \{\
9541 \h'-04'\(bu\h'+03'\c
9542 .\}
9543 .el \{\
9544 .sp -1
9545 .IP \(bu 2.3
9546 .\}
9547 SO_BROADCAST
9548 .RE
9549 .sp
9550 .RS 4
9551 .ie n \{\
9552 \h'-04'\(bu\h'+03'\c
9553 .\}
9554 .el \{\
9555 .sp -1
9556 .IP \(bu 2.3
9557 .\}
9558 TCP_NODELAY
9559 .RE
9560 .sp
9561 .RS 4
9562 .ie n \{\
9563 \h'-04'\(bu\h'+03'\c
9564 .\}
9565 .el \{\
9566 .sp -1
9567 .IP \(bu 2.3
9568 .\}
9569 IPTOS_LOWDELAY
9570 .RE
9571 .sp
9572 .RS 4
9573 .ie n \{\
9574 \h'-04'\(bu\h'+03'\c
9575 .\}
9576 .el \{\
9577 .sp -1
9578 .IP \(bu 2.3
9579 .\}
9580 IPTOS_THROUGHPUT
9581 .RE
9582 .sp
9583 .RS 4
9584 .ie n \{\
9585 \h'-04'\(bu\h'+03'\c
9586 .\}
9587 .el \{\
9588 .sp -1
9589 .IP \(bu 2.3
9590 .\}
9591 SO_SNDBUF *
9592 .RE
9593 .sp
9594 .RS 4
9595 .ie n \{\
9596 \h'-04'\(bu\h'+03'\c
9597 .\}
9598 .el \{\
9599 .sp -1
9600 .IP \(bu 2.3
9601 .\}
9602 SO_RCVBUF *
9603 .RE
9604 .sp
9605 .RS 4
9606 .ie n \{\
9607 \h'-04'\(bu\h'+03'\c
9608 .\}
9609 .el \{\
9610 .sp -1
9611 .IP \(bu 2.3
9612 .\}
9613 SO_SNDLOWAT *
9614 .RE
9615 .sp
9616 .RS 4
9617 .ie n \{\
9618 \h'-04'\(bu\h'+03'\c
9619 .\}
9620 .el \{\
9621 .sp -1
9622 .IP \(bu 2.3
9623 .\}
9624 SO_RCVLOWAT *
9625 .sp
9626 .RE
9627 Those marked with a
9628 \fI\'*\'\fR
9629 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\&.
9630 .sp
9631 To specify an argument use the syntax SOME_OPTION = VALUE for example
9632 \FCSO_SNDBUF = 8192\F[]\&. Note that you must not have any spaces before or after the = sign\&.
9633 .sp
9634 If you are on a local network then a sensible option might be:
9635 .sp
9636 \FCsocket options = IPTOS_LOWDELAY\F[]
9637 .sp
9638 If you have a local network then you could try:
9639 .sp
9640 \FCsocket options = IPTOS_LOWDELAY TCP_NODELAY\F[]
9641 .sp
9642 If you are on a wide area network then perhaps try setting IPTOS_THROUGHPUT\&.
9643 .sp
9644 Note that several of the options may cause your Samba server to fail completely\&. Use these options with caution!
9645 .sp
9646 Default:
9647 \fI\fIsocket options\fR\fR\fI = \fR\fI\FCTCP_NODELAY\F[]\fR\fI \fR
9648 .sp
9649 Example:
9650 \fI\fIsocket options\fR\fR\fI = \fR\fI\FCIPTOS_LOWDELAY\F[]\fR\fI \fR
9651 .RE
9652
9653 stat cache (G)
9654 .\" stat cache
9655 .PP
9656 .RS 4
9657 This parameter determines if
9658 \fBsmbd\fR(8)
9659 will use a cache in order to speed up case insensitive name mappings\&. You should never need to change this parameter\&.
9660 .sp
9661 Default:
9662 \fI\fIstat cache\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
9663 .RE
9664
9665 store dos attributes (S)
9666 .\" store dos attributes
9667 .PP
9668 .RS 4
9669 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
9670 \m[blue]\fBmap hidden\fR\m[]
9671 and
9672 \m[blue]\fBmap readonly\fR\m[])\&. 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
9673 \m[blue]\fBmap hidden\fR\m[],
9674 \m[blue]\fBmap system\fR\m[],
9675 \m[blue]\fBmap archive\fR\m[]
9676 and
9677 \m[blue]\fBmap readonly\fR\m[]
9678 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\&.
9679 .sp
9680 Default:
9681 \fI\fIstore dos attributes\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9682 .RE
9683
9684 strict allocate (S)
9685 .\" strict allocate
9686 .PP
9687 .RS 4
9688 This is a boolean that controls the handling of disk space allocation in the server\&. When this is set to
9689 \fByes\fR
9690 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\&.
9691 .sp
9692 When strict allocate is
9693 \fBno\fR
9694 the server does sparse disk block allocation when a file is extended\&.
9695 .sp
9696 Setting this to
9697 \fByes\fR
9698 can help Samba return out of quota messages on systems that are restricting the disk quota of users\&.
9699 .sp
9700 Default:
9701 \fI\fIstrict allocate\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9702 .RE
9703
9704 strict locking (S)
9705 .\" strict locking
9706 .PP
9707 .RS 4
9708 This is an enumerated type that controls the handling of file locking in the server\&. When this is set to
9709 \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\&.
9710 .sp
9711 When strict locking is set to Auto (the default), the server performs file lock checks only on non\-oplocked files\&. As most Windows redirectors perform file locking checks locally on oplocked files this is a good trade off for improved performance\&.
9712 .sp
9713 When strict locking is disabled, the server performs file lock checks only when the client explicitly asks for them\&.
9714 .sp
9715 Well\-behaved clients always ask for lock checks when it is important\&. So in the vast majority of cases,
9716 \FCstrict locking = Auto\F[]
9717 or
9718 \FCstrict locking = no\F[]
9719 is acceptable\&.
9720 .sp
9721 Default:
9722 \fI\fIstrict locking\fR\fR\fI = \fR\fI\FCAuto\F[]\fR\fI \fR
9723 .RE
9724
9725 strict sync (S)
9726 .\" strict sync
9727 .PP
9728 .RS 4
9729 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
9730 \fBno\fR
9731 (the default) means that
9732 \fBsmbd\fR(8)
9733 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\&.
9734 .sp
9735 Default:
9736 \fI\fIstrict sync\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9737 .RE
9738
9739 svcctl list (G)
9740 .\" svcctl list
9741 .PP
9742 .RS 4
9743 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\&.
9744 .sp
9745 The administrator must create a directory name
9746 \FCsvcctl\F[]
9747 in Samba\'s $(libdir) and create symbolic links to the init scripts in
9748 \FC/etc/init\&.d/\F[]\&. The name of the links must match the names given as part of the
9749 \fIsvcctl list\fR\&.
9750 .sp
9751 Default:
9752 \fI\fIsvcctl list\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
9753 .sp
9754 Example:
9755 \fI\fIsvcctl list\fR\fR\fI = \fR\fI\FCcups postfix portmap httpd\F[]\fR\fI \fR
9756 .RE
9757
9758 sync always (S)
9759 .\" sync always
9760 .PP
9761 .RS 4
9762 This is a boolean parameter that controls whether writes will always be written to stable storage before the write call returns\&. If this is
9763 \fBno\fR
9764 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
9765 \fByes\fR
9766 then every write will be followed by a
9767 \FCfsync() \F[]
9768 call to ensure the data is written to disk\&. Note that the
9769 \fIstrict sync\fR
9770 parameter must be set to
9771 \fByes\fR
9772 in order for this parameter to have any effect\&.
9773 .sp
9774 Default:
9775 \fI\fIsync always\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9776 .RE
9777
9778 syslog only (G)
9779 .\" syslog only
9780 .PP
9781 .RS 4
9782 If this parameter is set then Samba debug messages are logged into the system syslog only, and not to the debug log files\&. There still will be some logging to log\&.[sn]mbd even if
9783 \fIsyslog only\fR
9784 is enabled\&.
9785 .sp
9786 Default:
9787 \fI\fIsyslog only\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9788 .RE
9789
9790 syslog (G)
9791 .\" syslog
9792 .PP
9793 .RS 4
9794 This parameter maps how Samba debug messages are logged onto the system syslog logging levels\&. Samba debug level zero maps onto syslog
9795 \fBLOG_ERR\fR, debug level one maps onto
9796 \fBLOG_WARNING\fR, debug level two maps onto
9797 \fBLOG_NOTICE\fR, debug level three maps onto LOG_INFO\&. All higher levels are mapped to
9798 \fBLOG_DEBUG\fR\&.
9799 .sp
9800 This parameter sets the threshold for sending messages to syslog\&. Only messages with debug level less than this value will be sent to syslog\&. There still will be some logging to log\&.[sn]mbd even if
9801 \fIsyslog only\fR
9802 is enabled\&.
9803 .sp
9804 Default:
9805 \fI\fIsyslog\fR\fR\fI = \fR\fI\FC1\F[]\fR\fI \fR
9806 .RE
9807
9808 template homedir (G)
9809 .\" template homedir
9810 .PP
9811 .RS 4
9812 When filling out the user information for a Windows NT user, the
9813 \fBwinbindd\fR(8)
9814 daemon uses this parameter to fill in the home directory for that user\&. If the string
9815 \fI%D\fR
9816 is present it is substituted with the user\'s Windows NT domain name\&. If the string
9817 \fI%U\fR
9818 is present it is substituted with the user\'s Windows NT user name\&.
9819 .sp
9820 Default:
9821 \fI\fItemplate homedir\fR\fR\fI = \fR\fI\FC/home/%D/%U\F[]\fR\fI \fR
9822 .RE
9823
9824 template shell (G)
9825 .\" template shell
9826 .PP
9827 .RS 4
9828 When filling out the user information for a Windows NT user, the
9829 \fBwinbindd\fR(8)
9830 daemon uses this parameter to fill in the login shell for that user\&.
9831 .sp
9832 \fINo default\fR
9833 .RE
9834
9835 time offset (G)
9836 .\" time offset
9837 .PP
9838 .RS 4
9839 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\&.
9840 .sp
9841 Default:
9842 \fI\fItime offset\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
9843 .sp
9844 Example:
9845 \fI\fItime offset\fR\fR\fI = \fR\fI\FC60\F[]\fR\fI \fR
9846 .RE
9847
9848 time server (G)
9849 .\" time server
9850 .PP
9851 .RS 4
9852 This parameter determines if
9853 \fBnmbd\fR(8)
9854 advertises itself as a time server to Windows clients\&.
9855 .sp
9856 Default:
9857 \fI\fItime server\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9858 .RE
9859
9860 unix charset (G)
9861 .\" unix charset
9862 .PP
9863 .RS 4
9864 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\&.
9865 .sp
9866 This is also the charset Samba will use when specifying arguments to scripts that it invokes\&.
9867 .sp
9868 Default:
9869 \fI\fIunix charset\fR\fR\fI = \fR\fI\FCUTF8\F[]\fR\fI \fR
9870 .sp
9871 Example:
9872 \fI\fIunix charset\fR\fR\fI = \fR\fI\FCASCII\F[]\fR\fI \fR
9873 .RE
9874
9875 unix extensions (G)
9876 .\" unix extensions
9877 .PP
9878 .RS 4
9879 This boolean parameter controls whether Samba implements 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\&.
9880 .sp
9881 Default:
9882 \fI\fIunix extensions\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
9883 .RE
9884
9885 unix password sync (G)
9886 .\" unix password sync
9887 .PP
9888 .RS 4
9889 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
9890 \fByes\fR
9891 the program specified in the
9892 \fIpasswd program\fR
9893 parameter is called
9894 \fIAS ROOT\fR
9895 \- 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)\&.
9896 .sp
9897 Default:
9898 \fI\fIunix password sync\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9899 .RE
9900
9901 update encrypted (G)
9902 .\" update encrypted
9903 .PP
9904 .RS 4
9905 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 database) 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
9906 \fBno\fR\&.
9907 .sp
9908 In order for this parameter to be operative the
9909 \m[blue]\fBencrypt passwords\fR\m[]
9910 parameter must be set to
9911 \fBno\fR\&. The default value of
9912 \m[blue]\fBencrypt passwords = Yes\fR\m[]\&. Note: This must be set to
9913 \fBno\fR
9914 for this
9915 \m[blue]\fBupdate encrypted\fR\m[]
9916 to work\&.
9917 .sp
9918 Note that even when this parameter is set, a user authenticating to
9919 \FCsmbd\F[]
9920 must still enter a valid password in order to connect correctly, and to update their hashed (smbpasswd) passwords\&.
9921 .sp
9922 Default:
9923 \fI\fIupdate encrypted\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9924 .RE
9925
9926 use client driver (S)
9927 .\" use client driver
9928 .PP
9929 .RS 4
9930 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
9931 \FCdisable spoolss = yes\F[]\&.
9932 .sp
9933 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)\&.
9934 .sp
9935 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\&.
9936 \fIThis parameter MUST not be enabled on a print share which has valid print driver installed on the Samba server\&.\fR
9937 .sp
9938 Default:
9939 \fI\fIuse client driver\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
9940 .RE
9941
9942 use mmap (G)
9943 .\" use mmap
9944 .PP
9945 .RS 4
9946 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
9947 \fBno\fR
9948 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\&.
9949 .sp
9950 Default:
9951 \fI\fIuse mmap\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
9952 .RE
9953
9954 username level (G)
9955 .\" username level
9956 .PP
9957 .RS 4
9958 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\&.
9959 .sp
9960 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
9961 \fBAstrangeUser \fR\&.
9962 .sp
9963 This parameter is needed only on UNIX systems that have case sensitive usernames\&.
9964 .sp
9965 Default:
9966 \fI\fIusername level\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
9967 .sp
9968 Example:
9969 \fI\fIusername level\fR\fR\fI = \fR\fI\FC5\F[]\fR\fI \fR
9970 .RE
9971
9972 username map script (G)
9973 .\" username map script
9974 .PP
9975 .RS 4
9976 This script is a mutually exclusive alternative to the
9977 \m[blue]\fBusername map\fR\m[]
9978 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\&.
9979 .sp
9980 Default:
9981 \fI\fIusername map script\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
9982 .sp
9983 Example:
9984 \fI\fIusername map script\fR\fR\fI = \fR\fI\FC/etc/samba/scripts/mapusers\&.sh\F[]\fR\fI \fR
9985 .RE
9986
9987 username map (G)
9988 .\" username map
9989 .PP
9990 .RS 4
9991 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\&.
9992 .sp
9993 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 =
9994 \FCDOMAIN\efoo\F[])\&.
9995 .sp
9996 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\&.
9997 .sp
9998 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\&.
9999 .sp
10000 If any line begins with a \'#\' or a \';\' then it is ignored\&.
10001 .sp
10002 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\&.
10003 .sp
10004 For example to map from the name
10005 \fBadmin\fR
10006 or
10007 \fBadministrator\fR
10008 to the UNIX name
10009 \fB root\fR
10010 you would use:
10011 .sp
10012 .if n \{\
10013 .RS 4
10014 .\}
10015 .fam C
10016 .ps -1
10017 .nf
10018 .if t \{\
10019 .sp -1
10020 .\}
10021 .BB lightgray adjust-for-leading-newline
10022 .sp -1
10023
10024 \FCroot = admin administrator\F[]
10025 .EB lightgray adjust-for-leading-newline
10026 .if t \{\
10027 .sp 1
10028 .\}
10029 .fi
10030 .fam
10031 .ps +1
10032 .if n \{\
10033 .RE
10034 .\}
10035 .sp
10036 Or to map anyone in the UNIX group
10037 \fBsystem\fR
10038 to the UNIX name
10039 \fBsys\fR
10040 you would use:
10041 .sp
10042 .if n \{\
10043 .RS 4
10044 .\}
10045 .fam C
10046 .ps -1
10047 .nf
10048 .if t \{\
10049 .sp -1
10050 .\}
10051 .BB lightgray adjust-for-leading-newline
10052 .sp -1
10053
10054 \FCsys = @system\F[]
10055 .EB lightgray adjust-for-leading-newline
10056 .if t \{\
10057 .sp 1
10058 .\}
10059 .fi
10060 .fam
10061 .ps +1
10062 .if n \{\
10063 .RE
10064 .\}
10065 .sp
10066 You can have as many mappings as you like in a username map file\&.
10067 .sp
10068 If your system supports the NIS NETGROUP option then the netgroup database is checked before the
10069 \FC/etc/group \F[]
10070 database for matching groups\&.
10071 .sp
10072 You can map Windows usernames that have spaces in them by using double quotes around the name\&. For example:
10073 .sp
10074 .if n \{\
10075 .RS 4
10076 .\}
10077 .fam C
10078 .ps -1
10079 .nf
10080 .if t \{\
10081 .sp -1
10082 .\}
10083 .BB lightgray adjust-for-leading-newline
10084 .sp -1
10085
10086 \FCtridge = "Andrew Tridgell"\F[]
10087 .EB lightgray adjust-for-leading-newline
10088 .if t \{\
10089 .sp 1
10090 .\}
10091 .fi
10092 .fam
10093 .ps +1
10094 .if n \{\
10095 .RE
10096 .\}
10097 .sp
10098 would map the windows username "Andrew Tridgell" to the unix username "tridge"\&.
10099 .sp
10100 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:
10101 .sp
10102 .if n \{\
10103 .RS 4
10104 .\}
10105 .fam C
10106 .ps -1
10107 .nf
10108 .if t \{\
10109 .sp -1
10110 .\}
10111 .BB lightgray adjust-for-leading-newline
10112 .sp -1
10113
10114 !sys = mary fred
10115 guest = *
10116 .EB lightgray adjust-for-leading-newline
10117 .if t \{\
10118 .sp 1
10119 .\}
10120 .fi
10121 .fam
10122 .ps +1
10123 .if n \{\
10124 .RE
10125 .\}
10126 .sp
10127 Note that the remapping is applied to all occurrences of usernames\&. Thus if you connect to \e\eserver\efred and
10128 \fBfred\fR
10129 is remapped to
10130 \fBmary\fR
10131 then you will actually be connecting to \e\eserver\emary and will need to supply a password suitable for
10132 \fBmary\fR
10133 not
10134 \fBfred\fR\&. The only exception to this is the username passed to the
10135 \m[blue]\fBpassword server\fR\m[]
10136 (if you have one)\&. The password server will receive whatever username the client supplies without modification\&.
10137 .sp
10138 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\&.
10139 .sp
10140 Samba versions prior to 3\&.0\&.8 would only support reading the fully qualified username (e\&.g\&.:
10141 \FCDOMAIN\euser\F[]) 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\&.
10142 .sp
10143 The following functionality is obeyed in version 3\&.0\&.8 and later:
10144 .sp
10145 When performing local authentication, the username map is applied to the login name before attempting to authenticate the connection\&.
10146 .sp
10147 When relying upon a external domain controller for validating authentication requests, smbd will apply the username map to the fully qualified username (i\&.e\&.
10148 \FCDOMAIN\euser\F[]) only after the user has been successfully authenticated\&.
10149 .sp
10150 An example of use is:
10151 .sp
10152 .if n \{\
10153 .RS 4
10154 .\}
10155 .fam C
10156 .ps -1
10157 .nf
10158 .if t \{\
10159 .sp -1
10160 .\}
10161 .BB lightgray adjust-for-leading-newline
10162 .sp -1
10163
10164 username map = /usr/local/samba/lib/users\&.map
10165 .EB lightgray adjust-for-leading-newline
10166 .if t \{\
10167 .sp 1
10168 .\}
10169 .fi
10170 .fam
10171 .ps +1
10172 .if n \{\
10173 .RE
10174 .\}
10175 .sp
10176 Default:
10177 \fI\fIusername map\fR\fR\fI = \fR\fI\FC # no username map\F[]\fR\fI \fR
10178 .RE
10179
10180 user
10181 .\" user
10182 .PP
10183 .RS 4
10184 This parameter is a synonym for
10185 username\&.
10186 .RE
10187
10188 users
10189 .\" users
10190 .PP
10191 .RS 4
10192 This parameter is a synonym for
10193 username\&.
10194 .RE
10195
10196 username (S)
10197 .\" username
10198 .PP
10199 .RS 4
10200 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)\&.
10201 .sp
10202 The
10203 \fIusername\fR
10204 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 \e\eserver\eshare%user syntax instead\&.
10205 .sp
10206 The
10207 \fIusername\fR
10208 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
10209 \fIusername\fR
10210 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\&.
10211 .sp
10212 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\&.
10213 .sp
10214 To restrict a service to a particular set of users you can use the
10215 \m[blue]\fBvalid users\fR\m[]
10216 parameter\&.
10217 .sp
10218 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\&.
10219 .sp
10220 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\&.
10221 .sp
10222 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\&.
10223 .sp
10224 Note that searching though a groups database can take quite some time, and some clients may time out during the search\&.
10225 .sp
10226 See the section
10227 NOTE ABOUT USERNAME/PASSWORD VALIDATION
10228 for more information on how this parameter determines access to the services\&.
10229 .sp
10230 Default:
10231 \fI\fIusername\fR\fR\fI = \fR\fI\FC # The guest account if a guest service, else <empty string>\&.\F[]\fR\fI \fR
10232 .sp
10233 Example:
10234 \fI\fIusername\fR\fR\fI = \fR\fI\FCfred, mary, jack, jane, @users, @pcgroup\F[]\fR\fI \fR
10235 .RE
10236
10237 usershare allow guests (G)
10238 .\" usershare allow guests
10239 .PP
10240 .RS 4
10241 This parameter controls whether user defined shares are allowed to be accessed by non\-authenticated users or not\&. It is the equivalent of allowing people who can create a share the option of setting
10242 \fIguest ok = yes\fR
10243 in a share definition\&. Due to its security sensitive nature, the default is set to off\&.
10244 .sp
10245 Default:
10246 \fI\fIusershare allow guests\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10247 .RE
10248
10249 usershare max shares (G)
10250 .\" usershare max shares
10251 .PP
10252 .RS 4
10253 This parameter specifies the number of user defined shares that are allowed to be created by users belonging to the group owning the usershare directory\&. If set to zero (the default) user defined shares are ignored\&.
10254 .sp
10255 Default:
10256 \fI\fIusershare max shares\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
10257 .RE
10258
10259 usershare owner only (G)
10260 .\" usershare owner only
10261 .PP
10262 .RS 4
10263 This parameter controls whether the pathname exported by a user defined shares must be owned by the user creating the user defined share or not\&. If set to True (the default) then smbd checks that the directory path being shared is owned by the user who owns the usershare file defining this share and refuses to create the share if not\&. If set to False then no such check is performed and any directory path may be exported regardless of who owns it\&.
10264 .sp
10265 Default:
10266 \fI\fIusershare owner only\fR\fR\fI = \fR\fI\FCTrue\F[]\fR\fI \fR
10267 .RE
10268
10269 usershare path (G)
10270 .\" usershare path
10271 .PP
10272 .RS 4
10273 This parameter specifies the absolute path of the directory on the filesystem used to store the user defined share definition files\&. This directory must be owned by root, and have no access for other, and be writable only by the group owner\&. In addition the "sticky" bit must also be set, restricting rename and delete to owners of a file (in the same way the /tmp directory is usually configured)\&. Members of the group owner of this directory are the users allowed to create usershares\&. If this parameter is undefined then no user defined shares are allowed\&.
10274 .sp
10275 For example, a valid usershare directory might be /usr/local/samba/lib/usershares, set up as follows\&.
10276 .sp
10277
10278 .sp
10279 .if n \{\
10280 .RS 4
10281 .\}
10282 .fam C
10283 .ps -1
10284 .nf
10285 .if t \{\
10286 .sp -1
10287 .\}
10288 .BB lightgray adjust-for-leading-newline
10289 .sp -1
10290
10291         ls \-ld /usr/local/samba/lib/usershares/
10292         drwxrwx\-\-T  2 root power_users 4096 2006\-05\-05 12:27 /usr/local/samba/lib/usershares/
10293         
10294 .EB lightgray adjust-for-leading-newline
10295 .if t \{\
10296 .sp 1
10297 .\}
10298 .fi
10299 .fam
10300 .ps +1
10301 .if n \{\
10302 .RE
10303 .\}
10304 .sp
10305 In this case, only members of the group "power_users" can create user defined shares\&.
10306 .sp
10307 Default:
10308 \fI\fIusershare path\fR\fR\fI = \fR\fI\FCNULL\F[]\fR\fI \fR
10309 .RE
10310
10311 usershare prefix allow list (G)
10312 .\" usershare prefix allow list
10313 .PP
10314 .RS 4
10315 This parameter specifies a list of absolute pathnames the root of which are allowed to be exported by user defined share definitions\&. If the pathname to be exported doesn\'t start with one of the strings in this list, the user defined share will not be allowed\&. This allows the Samba administrator to restrict the directories on the system that can be exported by user defined shares\&.
10316 .sp
10317 If there is a "usershare prefix deny list" and also a "usershare prefix allow list" the deny list is processed first, followed by the allow list, thus leading to the most restrictive interpretation\&.
10318 .sp
10319 Default:
10320 \fI\fIusershare prefix allow list\fR\fR\fI = \fR\fI\FCNULL\F[]\fR\fI \fR
10321 .sp
10322 Example:
10323 \fI\fIusershare prefix allow list\fR\fR\fI = \fR\fI\FC/home /data /space\F[]\fR\fI \fR
10324 .RE
10325
10326 usershare prefix deny list (G)
10327 .\" usershare prefix deny list
10328 .PP
10329 .RS 4
10330 This parameter specifies a list of absolute pathnames the root of which are NOT allowed to be exported by user defined share definitions\&. If the pathname exported starts with one of the strings in this list the user defined share will not be allowed\&. Any pathname not starting with one of these strings will be allowed to be exported as a usershare\&. This allows the Samba administrator to restrict the directories on the system that can be exported by user defined shares\&.
10331 .sp
10332 If there is a "usershare prefix deny list" and also a "usershare prefix allow list" the deny list is processed first, followed by the allow list, thus leading to the most restrictive interpretation\&.
10333 .sp
10334 Default:
10335 \fI\fIusershare prefix deny list\fR\fR\fI = \fR\fI\FCNULL\F[]\fR\fI \fR
10336 .sp
10337 Example:
10338 \fI\fIusershare prefix deny list\fR\fR\fI = \fR\fI\FC/etc /dev /private\F[]\fR\fI \fR
10339 .RE
10340
10341 usershare template share (G)
10342 .\" usershare template share
10343 .PP
10344 .RS 4
10345 User defined shares only have limited possible parameters such as path, guest ok, etc\&. This parameter allows usershares to "cloned" from an existing share\&. If "usershare template share" is set to the name of an existing share, then all usershares created have their defaults set from the parameters set on this share\&.
10346 .sp
10347 The target share may be set to be invalid for real file sharing by setting the parameter "\-valid = False" on the template share definition\&. This causes it not to be seen as a real exported share but to be able to be used as a template for usershares\&.
10348 .sp
10349 Default:
10350 \fI\fIusershare template share\fR\fR\fI = \fR\fI\FCNULL\F[]\fR\fI \fR
10351 .sp
10352 Example:
10353 \fI\fIusershare template share\fR\fR\fI = \fR\fI\FCtemplate_share\F[]\fR\fI \fR
10354 .RE
10355
10356 use sendfile (S)
10357 .\" use sendfile
10358 .PP
10359 .RS 4
10360 If this parameter is
10361 \fByes\fR, and the
10362 \fBsendfile()\fR
10363 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)\&.
10364 .sp
10365 Default:
10366 \fI\fIuse sendfile\fR\fR\fI = \fR\fI\FCfalse\F[]\fR\fI \fR
10367 .RE
10368
10369 use spnego (G)
10370 .\" use spnego
10371 .PP
10372 .RS 4
10373 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\&.
10374 .sp
10375 Unless further issues are discovered with our SPNEGO implementation, there is no reason this should ever be disabled\&.
10376 .sp
10377 Default:
10378 \fI\fIuse spnego\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
10379 .RE
10380
10381 utmp directory (G)
10382 .\" utmp directory
10383 .PP
10384 .RS 4
10385 This parameter is only available if Samba has been configured and compiled with the option
10386 \FC \-\-with\-utmp\F[]\&. 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
10387 \FC/var/run/utmp\F[]
10388 on Linux)\&.
10389 .sp
10390 Default:
10391 \fI\fIutmp directory\fR\fR\fI = \fR\fI\FC # Determined automatically\F[]\fR\fI \fR
10392 .sp
10393 Example:
10394 \fI\fIutmp directory\fR\fR\fI = \fR\fI\FC/var/run/utmp\F[]\fR\fI \fR
10395 .RE
10396
10397 utmp (G)
10398 .\" utmp
10399 .PP
10400 .RS 4
10401 This boolean parameter is only available if Samba has been configured and compiled with the option
10402 \FC\-\-with\-utmp\F[]\&. If set to
10403 \fByes\fR
10404 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\&.
10405 .sp
10406 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\&.
10407 .sp
10408 Default:
10409 \fI\fIutmp\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10410 .RE
10411
10412 valid users (S)
10413 .\" valid users
10414 .PP
10415 .RS 4
10416 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
10417 \fIinvalid users\fR
10418 parameter\&.
10419 .sp
10420 If this is empty (the default) then any user can login\&. If a username is in both this list and the
10421 \fIinvalid users\fR
10422 list then access is denied for that user\&.
10423 .sp
10424 The current servicename is substituted for
10425 \fI%S\fR\&. This is useful in the [homes] section\&.
10426 .sp
10427 Default:
10428 \fI\fIvalid users\fR\fR\fI = \fR\fI\FC # No valid users list (anyone can login) \F[]\fR\fI \fR
10429 .sp
10430 Example:
10431 \fI\fIvalid users\fR\fR\fI = \fR\fI\FCgreg, @pcusers\F[]\fR\fI \fR
10432 .RE
10433
10434 \-valid (S)
10435 .\" -valid
10436 .PP
10437 .RS 4
10438 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\&.
10439 .sp
10440 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\&.
10441 .sp
10442 Default:
10443 \fI\fI\-valid\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
10444 .RE
10445
10446 veto files (S)
10447 .\" veto files
10448 .PP
10449 .RS 4
10450 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\&.
10451 .sp
10452 Each entry must be a unix path, not a DOS path and must
10453 \fInot\fR
10454 include the unix directory separator \'/\'\&.
10455 .sp
10456 Note that the
10457 \m[blue]\fBcase sensitive\fR\m[]
10458 option is applicable in vetoing files\&.
10459 .sp
10460 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
10461 \fIfail\fR
10462 unless you also set the
10463 \m[blue]\fBdelete veto files\fR\m[]
10464 parameter to
10465 \fIyes\fR\&.
10466 .sp
10467 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\&.
10468 .sp
10469 Examples of use include:
10470 .sp
10471 .if n \{\
10472 .RS 4
10473 .\}
10474 .fam C
10475 .ps -1
10476 .nf
10477 .if t \{\
10478 .sp -1
10479 .\}
10480 .BB lightgray adjust-for-leading-newline
10481 .sp -1
10482
10483 ; Veto any files containing the word Security,
10484 ; any ending in \&.tmp, and any directory containing the
10485 ; word root\&.
10486 veto files = /*Security*/*\&.tmp/*root*/
10487
10488 ; Veto the Apple specific files that a NetAtalk server
10489 ; creates\&.
10490 veto files = /\&.AppleDouble/\&.bin/\&.AppleDesktop/Network Trash Folder/
10491 .EB lightgray adjust-for-leading-newline
10492 .if t \{\
10493 .sp 1
10494 .\}
10495 .fi
10496 .fam
10497 .ps +1
10498 .if n \{\
10499 .RE
10500 .\}
10501 .sp
10502 Default:
10503 \fI\fIveto files\fR\fR\fI = \fR\fI\FCNo files or directories are vetoed\&.\F[]\fR\fI \fR
10504 .RE
10505
10506 veto oplock files (S)
10507 .\" veto oplock files
10508 .PP
10509 .RS 4
10510 This parameter is only valid when the
10511 \m[blue]\fBoplocks\fR\m[]
10512 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 the
10513 \m[blue]\fBveto files\fR\m[]
10514 parameter\&.
10515 .sp
10516 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
10517 \FC\&.SEM\F[]\&. 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\&.
10518 .sp
10519 An example of use is:
10520 .sp
10521 .if n \{\
10522 .RS 4
10523 .\}
10524 .fam C
10525 .ps -1
10526 .nf
10527 .if t \{\
10528 .sp -1
10529 .\}
10530 .BB lightgray adjust-for-leading-newline
10531 .sp -1
10532
10533 veto oplock files = /\&.*SEM/
10534 .EB lightgray adjust-for-leading-newline
10535 .if t \{\
10536 .sp 1
10537 .\}
10538 .fi
10539 .fam
10540 .ps +1
10541 .if n \{\
10542 .RE
10543 .\}
10544 .sp
10545 Default:
10546 \fI\fIveto oplock files\fR\fR\fI = \fR\fI\FC # No files are vetoed for oplock grants\F[]\fR\fI \fR
10547 .RE
10548
10549 vfs object
10550 .\" vfs object
10551 .PP
10552 .RS 4
10553 This parameter is a synonym for
10554 vfs objects\&.
10555 .RE
10556
10557 vfs objects (S)
10558 .\" vfs objects
10559 .PP
10560 .RS 4
10561 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\&.
10562 .sp
10563 Default:
10564 \fI\fIvfs objects\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
10565 .sp
10566 Example:
10567 \fI\fIvfs objects\fR\fR\fI = \fR\fI\FCextd_audit recycle\F[]\fR\fI \fR
10568 .RE
10569
10570 volume (S)
10571 .\" volume
10572 .PP
10573 .RS 4
10574 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\&.
10575 .sp
10576 Default:
10577 \fI\fIvolume\fR\fR\fI = \fR\fI\FC # the name of the share\F[]\fR\fI \fR
10578 .RE
10579
10580 wide links (S)
10581 .\" wide links
10582 .PP
10583 .RS 4
10584 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\&.
10585 .sp
10586 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\&.
10587 .sp
10588 Default:
10589 \fI\fIwide links\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
10590 .RE
10591
10592 winbind cache time (G)
10593 .\" winbind cache time
10594 .PP
10595 .RS 4
10596 This parameter specifies the number of seconds the
10597 \fBwinbindd\fR(8)
10598 daemon will cache user and group information before querying a Windows NT server again\&.
10599 .sp
10600 This does not apply to authentication requests, these are always evaluated in real time unless the
10601 \m[blue]\fBwinbind offline logon\fR\m[]
10602 option has been enabled\&.
10603 .sp
10604 Default:
10605 \fI\fIwinbind cache time\fR\fR\fI = \fR\fI\FC300\F[]\fR\fI \fR
10606 .RE
10607
10608 winbind enum groups (G)
10609 .\" winbind enum groups
10610 .PP
10611 .RS 4
10612 On large installations using
10613 \fBwinbindd\fR(8)
10614 it may be necessary to suppress the enumeration of groups through the
10615 \FCsetgrent()\F[],
10616 \FCgetgrent()\F[]
10617 and
10618 \FCendgrent()\F[]
10619 group of system calls\&. If the
10620 \fIwinbind enum groups\fR
10621 parameter is
10622 \fBno\fR, calls to the
10623 \FCgetgrent()\F[]
10624 system call will not return any data\&.
10625 .if n \{\
10626 .sp
10627 .\}
10628 .RS 4
10629 .BM yellow
10630 .it 1 an-trap
10631 .nr an-no-space-flag 1
10632 .nr an-break-flag 1
10633 .br
10634 .ps +1
10635 \fBWarning\fR
10636 .ps -1
10637 .br
10638 Turning off group enumeration may cause some programs to behave oddly\&.
10639 .sp .5v
10640 .EM yellow
10641 .RE
10642 Default:
10643 \fI\fIwinbind enum groups\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10644 .RE
10645
10646 winbind enum users (G)
10647 .\" winbind enum users
10648 .PP
10649 .RS 4
10650 On large installations using
10651 \fBwinbindd\fR(8)
10652 it may be necessary to suppress the enumeration of users through the
10653 \FCsetpwent()\F[],
10654 \FCgetpwent()\F[]
10655 and
10656 \FCendpwent()\F[]
10657 group of system calls\&. If the
10658 \fIwinbind enum users\fR
10659 parameter is
10660 \fBno\fR, calls to the
10661 \FCgetpwent\F[]
10662 system call will not return any data\&.
10663 .if n \{\
10664 .sp
10665 .\}
10666 .RS 4
10667 .BM yellow
10668 .it 1 an-trap
10669 .nr an-no-space-flag 1
10670 .nr an-break-flag 1
10671 .br
10672 .ps +1
10673 \fBWarning\fR
10674 .ps -1
10675 .br
10676 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\&.
10677 .sp .5v
10678 .EM yellow
10679 .RE
10680 Default:
10681 \fI\fIwinbind enum users\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10682 .RE
10683
10684 winbind expand groups (G)
10685 .\" winbind expand groups
10686 .PP
10687 .RS 4
10688 This option controls the maximum depth that winbindd will traverse when flattening nested group memberships of Windows domain groups\&. This is different from the
10689 \m[blue]\fBwinbind nested groups\fR\m[]
10690 option which implements the Windows NT4 model of local group nesting\&. The "winbind expand groups" parameter specifically applies to the membership of domain groups\&.
10691 .sp
10692 Be aware that a high value for this parameter can result in system slowdown as the main parent winbindd daemon must perform the group unrolling and will be unable to answer incoming NSS or authentication requests during this time\&.
10693 .sp
10694 Default:
10695 \fI\fIwinbind expand groups\fR\fR\fI = \fR\fI\FC1\F[]\fR\fI \fR
10696 .RE
10697
10698 winbind nested groups (G)
10699 .\" winbind nested groups
10700 .PP
10701 .RS 4
10702 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\&.
10703 .sp
10704 Default:
10705 \fI\fIwinbind nested groups\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
10706 .RE
10707
10708 winbind normalize names (G)
10709 .\" winbind normalize names
10710 .PP
10711 .RS 4
10712 This parameter controls whether winbindd will replace whitespace in user and group names with an underscore (_) character\&. For example, whether the name "Space Kadet" should be replaced with the string "space_kadet"\&. Frequently Unix shell scripts will have difficulty with usernames contains whitespace due to the default field separator in the shell\&. If your domain possesses names containing the underscore character, this option may cause problems unless the name aliasing feature is supported by your nss_info plugin\&.
10713 .sp
10714 This feature also enables the name aliasing API which can be used to make domain user and group names to a non\-qualified version\&. Please refer to the manpage for the configured idmap and nss_info plugin for the specifics on how to configure name aliasing for a specific configuration\&. Name aliasing takes precendence (and is mutually exclusive) over the whitespace replacement mechanism discussed previsouly\&.
10715 .sp
10716 Default:
10717 \fI\fIwinbind normalize names\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10718 .sp
10719 Example:
10720 \fI\fIwinbind normalize names\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
10721 .RE
10722
10723 winbind nss info (G)
10724 .\" winbind nss info
10725 .PP
10726 .RS 4
10727 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:
10728 .sp
10729 .RS 4
10730 .ie n \{\
10731 \h'-04'\(bu\h'+03'\c
10732 .\}
10733 .el \{\
10734 .sp -1
10735 .IP \(bu 2.3
10736 .\}
10737 \fItemplate\fR
10738 \- The default, using the parameters of
10739 \fItemplate shell\fR
10740 and
10741 \fItemplate homedir\fR)
10742 .RE
10743 .sp
10744 .RS 4
10745 .ie n \{\
10746 \h'-04'\(bu\h'+03'\c
10747 .\}
10748 .el \{\
10749 .sp -1
10750 .IP \(bu 2.3
10751 .\}
10752 \fI<sfu | rfc2307 >\fR
10753 \- 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
10754 \fIidmap backend\fR
10755 = ad or
10756 \fIidmap config DOMAIN:backend\fR
10757 = ad as well\&.
10758 .sp
10759 .RE
10760 .sp
10761 Default:
10762 \fI\fIwinbind nss info\fR\fR\fI = \fR\fI\FCtemplate\F[]\fR\fI \fR
10763 .sp
10764 Example:
10765 \fI\fIwinbind nss info\fR\fR\fI = \fR\fI\FCtemplate sfu\F[]\fR\fI \fR
10766 .RE
10767
10768 winbind offline logon (G)
10769 .\" winbind offline logon
10770 .PP
10771 .RS 4
10772 This parameter is designed to control whether Winbind should allow to login with the
10773 \fIpam_winbind\fR
10774 module using Cached Credentials\&. If enabled, winbindd will store user credentials from successful logins encrypted in a local cache\&.
10775 .sp
10776 Default:
10777 \fI\fIwinbind offline logon\fR\fR\fI = \fR\fI\FCfalse\F[]\fR\fI \fR
10778 .sp
10779 Example:
10780 \fI\fIwinbind offline logon\fR\fR\fI = \fR\fI\FCtrue\F[]\fR\fI \fR
10781 .RE
10782
10783 winbind reconnect delay (G)
10784 .\" winbind reconnect delay
10785 .PP
10786 .RS 4
10787 This parameter specifies the number of seconds the
10788 \fBwinbindd\fR(8)
10789 daemon will wait between attempts to contact a Domain controller for a domain that is determined to be down or not contactable\&.
10790 .sp
10791 Default:
10792 \fI\fIwinbind reconnect delay\fR\fR\fI = \fR\fI\FC30\F[]\fR\fI \fR
10793 .RE
10794
10795 winbind refresh tickets (G)
10796 .\" winbind refresh tickets
10797 .PP
10798 .RS 4
10799 This parameter is designed to control whether Winbind should refresh Kerberos Tickets retrieved using the
10800 \fIpam_winbind\fR
10801 module\&.
10802 .sp
10803 Default:
10804 \fI\fIwinbind refresh tickets\fR\fR\fI = \fR\fI\FCfalse\F[]\fR\fI \fR
10805 .sp
10806 Example:
10807 \fI\fIwinbind refresh tickets\fR\fR\fI = \fR\fI\FCtrue\F[]\fR\fI \fR
10808 .RE
10809
10810 winbind rpc only (G)
10811 .\" winbind rpc only
10812 .PP
10813 .RS 4
10814 Setting this parameter to
10815 \FCyes\F[]
10816 forces winbindd to use RPC instead of LDAP to retrieve information from Domain Controllers\&.
10817 .sp
10818 Default:
10819 \fI\fIwinbind rpc only\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10820 .RE
10821
10822 winbind separator (G)
10823 .\" winbind separator
10824 .PP
10825 .RS 4
10826 This parameter allows an admin to define the character used when listing a username of the form of
10827 \fIDOMAIN \fR\e\fIuser\fR\&. This parameter is only applicable when using the
10828 \FCpam_winbind\&.so\F[]
10829 and
10830 \FCnss_winbind\&.so\F[]
10831 modules for UNIX services\&.
10832 .sp
10833 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\&.
10834 .sp
10835 Default:
10836 \fI\fIwinbind separator\fR\fR\fI = \fR\fI\FC\'\e\'\F[]\fR\fI \fR
10837 .sp
10838 Example:
10839 \fI\fIwinbind separator\fR\fR\fI = \fR\fI\FC+\F[]\fR\fI \fR
10840 .RE
10841
10842 winbind trusted domains only (G)
10843 .\" winbind trusted domains only
10844 .PP
10845 .RS 4
10846 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
10847 \FCDOMAIN\euser1\F[]
10848 would be mapped to the account user1 in /etc/passwd instead of allocating a new uid for him or her\&.
10849 .sp
10850 This parameter is now deprecated in favor of the newer idmap_nss backend\&. Refer to the
10851 \fBidmap_nss\fR(8)
10852 man page for more information\&.
10853 .sp
10854 Default:
10855 \fI\fIwinbind trusted domains only\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10856 .RE
10857
10858 winbind use default domain (G)
10859 .\" winbind use default domain
10860 .PP
10861 .RS 4
10862 This parameter specifies whether the
10863 \fBwinbindd\fR(8)
10864 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\&.
10865 .sp
10866 Default:
10867 \fI\fIwinbind use default domain\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10868 .sp
10869 Example:
10870 \fI\fIwinbind use default domain\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
10871 .RE
10872
10873 wins hook (G)
10874 .\" wins hook
10875 .PP
10876 .RS 4
10877 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\&.
10878 .sp
10879 The wins hook parameter specifies the name of a script or executable that will be called as follows:
10880 .sp
10881 \FCwins_hook operation name nametype ttl IP_list\F[]
10882 .sp
10883 .RS 4
10884 .ie n \{\
10885 \h'-04'\(bu\h'+03'\c
10886 .\}
10887 .el \{\
10888 .sp -1
10889 .IP \(bu 2.3
10890 .\}
10891 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\&.
10892 .RE
10893 .sp
10894 .RS 4
10895 .ie n \{\
10896 \h'-04'\(bu\h'+03'\c
10897 .\}
10898 .el \{\
10899 .sp -1
10900 .IP \(bu 2.3
10901 .\}
10902 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\&.
10903 .RE
10904 .sp
10905 .RS 4
10906 .ie n \{\
10907 \h'-04'\(bu\h'+03'\c
10908 .\}
10909 .el \{\
10910 .sp -1
10911 .IP \(bu 2.3
10912 .\}
10913 The third argument is the NetBIOS name type as a 2 digit hexadecimal number\&.
10914 .RE
10915 .sp
10916 .RS 4
10917 .ie n \{\
10918 \h'-04'\(bu\h'+03'\c
10919 .\}
10920 .el \{\
10921 .sp -1
10922 .IP \(bu 2.3
10923 .\}
10924 The fourth argument is the TTL (time to live) for the name in seconds\&.
10925 .RE
10926 .sp
10927 .RS 4
10928 .ie n \{\
10929 \h'-04'\(bu\h'+03'\c
10930 .\}
10931 .el \{\
10932 .sp -1
10933 .IP \(bu 2.3
10934 .\}
10935 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\&.
10936 .sp
10937 .RE
10938 An example script that calls the BIND dynamic DNS update program
10939 \FCnsupdate\F[]
10940 is provided in the examples directory of the Samba source code\&.
10941 .sp
10942 \fINo default\fR
10943 .RE
10944
10945 wins proxy (G)
10946 .\" wins proxy
10947 .PP
10948 .RS 4
10949 This is a boolean that controls if
10950 \fBnmbd\fR(8)
10951 will respond to broadcast name queries on behalf of other hosts\&. You may need to set this to
10952 \fByes\fR
10953 for some older clients\&.
10954 .sp
10955 Default:
10956 \fI\fIwins proxy\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
10957 .RE
10958
10959 wins server (G)
10960 .\" wins server
10961 .PP
10962 .RS 4
10963 This specifies the IP address (or DNS name: IP address for preference) of the WINS server that
10964 \fBnmbd\fR(8)
10965 should register with\&. If you have a WINS server on your network then you should set this to the WINS server\'s IP\&.
10966 .sp
10967 You should point this at your WINS server if you have a multi\-subnetted network\&.
10968 .sp
10969 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\&.
10970 .if n \{\
10971 .sp
10972 .\}
10973 .RS 4
10974 .BM yellow
10975 .it 1 an-trap
10976 .nr an-no-space-flag 1
10977 .nr an-break-flag 1
10978 .br
10979 .ps +1
10980 \fBNote\fR
10981 .ps -1
10982 .br
10983 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\&.
10984 .sp .5v
10985 .EM yellow
10986 .RE
10987 See the chapter in the Samba3\-HOWTO on Network Browsing\&.
10988 .sp
10989 Default:
10990 \fI\fIwins server\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
10991 .sp
10992 Example:
10993 \fI\fIwins server\fR\fR\fI = \fR\fI\FCmary: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\&.\F[]\fR\fI \fR
10994 .sp
10995 Example:
10996 \fI\fIwins server\fR\fR\fI = \fR\fI\FC192\&.9\&.200\&.1 192\&.168\&.2\&.61\F[]\fR\fI \fR
10997 .RE
10998
10999 wins support (G)
11000 .\" wins support
11001 .PP
11002 .RS 4
11003 This boolean controls if the
11004 \fBnmbd\fR(8)
11005 process in Samba will act as a WINS server\&. You should not set this to
11006 \fByes\fR
11007 unless you have a multi\-subnetted network and you wish a particular
11008 \FCnmbd\F[]
11009 to be your WINS server\&. Note that you should
11010 \fINEVER\fR
11011 set this to
11012 \fByes\fR
11013 on more than one machine in your network\&.
11014 .sp
11015 Default:
11016 \fI\fIwins support\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
11017 .RE
11018
11019 workgroup (G)
11020 .\" workgroup
11021 .PP
11022 .RS 4
11023 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
11024 \m[blue]\fBsecurity = domain\fR\m[]
11025 setting\&.
11026 .sp
11027 Default:
11028 \fI\fIworkgroup\fR\fR\fI = \fR\fI\FCWORKGROUP\F[]\fR\fI \fR
11029 .sp
11030 Example:
11031 \fI\fIworkgroup\fR\fR\fI = \fR\fI\FCMYGROUP\F[]\fR\fI \fR
11032 .RE
11033
11034 writable
11035 .\" writable
11036 .PP
11037 .RS 4
11038 This parameter is a synonym for
11039 writeable\&.
11040 .RE
11041
11042 writeable (S)
11043 .\" writeable
11044 .PP
11045 .RS 4
11046 Inverted synonym for
11047 \m[blue]\fBread only\fR\m[]\&.
11048 .sp
11049 Default:
11050 \fI\fIwriteable\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR
11051 .RE
11052
11053 write cache size (S)
11054 .\" write cache size
11055 .PP
11056 .RS 4
11057 If this integer parameter is set to non\-zero value, Samba will create an in\-memory cache for each oplocked file (it does
11058 \fInot\fR
11059 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\&.
11060 .sp
11061 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\&.
11062 .sp
11063 The integer parameter specifies the size of this cache (per oplocked file) in bytes\&.
11064 .sp
11065 Default:
11066 \fI\fIwrite cache size\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR
11067 .sp
11068 Example:
11069 \fI\fIwrite cache size\fR\fR\fI = \fR\fI\FC262144 # for a 256k cache size per file\F[]\fR\fI \fR
11070 .RE
11071
11072 write list (S)
11073 .\" write list
11074 .PP
11075 .RS 4
11076 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
11077 \m[blue]\fBread only\fR\m[]
11078 option is set to\&. The list can include group names using the @group syntax\&.
11079 .sp
11080 Note that if a user is in both the read list and the write list then they will be given write access\&.
11081 .sp
11082 By design, this parameter will not work with the
11083 \m[blue]\fBsecurity = share\fR\m[]
11084 in Samba 3\&.0\&.
11085 .sp
11086 Default:
11087 \fI\fIwrite list\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
11088 .sp
11089 Example:
11090 \fI\fIwrite list\fR\fR\fI = \fR\fI\FCadmin, root, @staff\F[]\fR\fI \fR
11091 .RE
11092
11093 write raw (G)
11094 .\" write raw
11095 .PP
11096 .RS 4
11097 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\&.
11098 .sp
11099 Default:
11100 \fI\fIwrite raw\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR
11101 .RE
11102
11103 wtmp directory (G)
11104 .\" wtmp directory
11105 .PP
11106 .RS 4
11107 This parameter is only available if Samba has been configured and compiled with the option
11108 \FC \-\-with\-utmp\F[]\&. 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\&.
11109 .sp
11110 By default this is not set, meaning the system will use whatever utmp file the native system is set to use (usually
11111 \FC/var/run/wtmp\F[]
11112 on Linux)\&.
11113 .sp
11114 Default:
11115 \fI\fIwtmp directory\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR
11116 .sp
11117 Example:
11118 \fI\fIwtmp directory\fR\fR\fI = \fR\fI\FC/var/log/wtmp\F[]\fR\fI \fR
11119 .RE
11120 .SH "WARNINGS"
11121 .PP
11122 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\&.
11123 .PP
11124 On a similar note, many clients \- especially DOS clients \- limit service names to eight characters\&.
11125 \fBsmbd\fR(8)
11126 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\&.
11127 .PP
11128 Use of the
11129 \FC[homes]\F[]
11130 and
11131 \FC[printers]\F[]
11132 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\&.
11133 .SH "VERSION"
11134 .PP
11135 This man page is correct for version 3 of the Samba suite\&.
11136 .SH "SEE ALSO"
11137 .PP
11138
11139 \fBsamba\fR(7),
11140 \fBsmbpasswd\fR(8),
11141 \fBswat\fR(8),
11142 \fBsmbd\fR(8),
11143 \fBnmbd\fR(8),
11144 \fBsmbclient\fR(1),
11145 \fBnmblookup\fR(1),
11146 \fBtestparm\fR(1),
11147 \fBtestprns\fR(1)\&.
11148 .SH "AUTHOR"
11149 .PP
11150 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\&.
11151 .PP
11152 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
11153 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\&.