preparing for release of 2.2.0-alpha0
[Samba.git] / docs / manpages / smb.conf.5
bloba560052563cb8a7660efc26a745976425f800980
1 .TH SMB.CONF 5 "09 Oct 2000" "smb.conf 2.2.0-alpha0"
2 .PP 
3 .SH "NAME" 
4 smb\&.conf \- The configuration file for the Samba suite
5 .PP 
6 .SH "SYNOPSIS" 
7 .PP 
8 \fBsmb\&.conf\fP The \fBsmb\&.conf\fP file is a configuration file for the
9 Samba suite\&. \fBsmb\&.conf\fP contains runtime configuration information
10 for the Samba programs\&. The \fBsmb\&.conf\fP file is designed to be
11 configured and administered by the \fBswat (8)\fP
12 program\&. The complete description of the file format and possible
13 parameters held within are here for reference purposes\&.
14 .PP 
15 .SH "FILE FORMAT" 
16 .PP 
17 The file consists of sections and parameters\&. A section begins with
18 the name of the section in square brackets and continues until the
19 next section begins\&. Sections contain parameters of the form 
20 .PP 
21 \f(CW\'name = value\'\fP
22 .PP 
23 The file is line-based - that is, each newline-terminated line
24 represents either a comment, a section name or a parameter\&.
25 .PP 
26 Section and parameter names are not case sensitive\&.
27 .PP 
28 Only the first equals sign in a parameter is significant\&. Whitespace
29 before or after the first equals sign is discarded\&. Leading, trailing
30 and internal whitespace in section and parameter names is
31 irrelevant\&. Leading and trailing whitespace in a parameter value is
32 discarded\&. Internal whitespace within a parameter value is retained
33 verbatim\&.
34 .PP 
35 Any line beginning with a semicolon (\';\') or a hash (\'#\') character is
36 ignored, as are lines containing only whitespace\&.
37 .PP 
38 Any line ending in a \f(CW\'\e\'\fP is "continued" on the next line in the
39 customary UNIX fashion\&.
40 .PP 
41 The values following the equals sign in parameters are all either a
42 string (no quotes needed) or a boolean, which may be given as yes/no,
43 0/1 or true/false\&. Case is not significant in boolean values, but is
44 preserved in string values\&. Some items such as create modes are
45 numeric\&.
46 .PP 
47 .SH "SECTION DESCRIPTIONS" 
48 .PP 
49 Each section in the configuration file (except for the
50 \fB[global]\fP section) describes a shared resource (known
51 as a \fI"share"\fP)\&. The section name is the name of the shared resource
52 and the parameters within the section define the shares attributes\&.
53 .PP 
54 There are three special sections, \fB[global]\fP,
55 \fB[homes]\fP and \fB[printers]\fP, which are
56 described under \fB\'special sections\'\fP\&. The
57 following notes apply to ordinary section descriptions\&.
58 .PP 
59 A share consists of a directory to which access is being given plus
60 a description of the access rights which are granted to the user of
61 the service\&. Some housekeeping options are also specifiable\&.
62 .PP 
63 Sections are either filespace services (used by the client as an
64 extension of their native file systems) or printable services (used by
65 the client to access print services on the host running the server)\&.
66 .PP 
67 Sections may be designated \fBguest\fP services, in which
68 case no password is required to access them\&. A specified UNIX
69 \fBguest account\fP is used to define access
70 privileges in this case\&.
71 .PP 
72 Sections other than guest services will require a password to access
73 them\&. The client provides the username\&. As older clients only provide
74 passwords and not usernames, you may specify a list of usernames to
75 check against the password using the \fB"user="\fP option in
76 the share definition\&. For modern clients such as Windows 95/98 and
77 Windows NT, this should not be necessary\&.
78 .PP 
79 Note that the access rights granted by the server are masked by the
80 access rights granted to the specified or guest UNIX user by the host
81 system\&. The server does not grant more access than the host system
82 grants\&.
83 .PP 
84 The following sample section defines a file space share\&. The user has
85 write access to the path \f(CW/home/bar\fP\&. The share is accessed via
86 the share name "foo":
87 .PP 
89 .nf 
93         [foo]
94                 path = /home/bar
95                 writeable = true
98 .fi 
101 .PP 
102 The following sample section defines a printable share\&. The share
103 is readonly, but printable\&. That is, the only write access permitted
104 is via calls to open, write to and close a spool file\&. The
105 \fB\'guest ok\'\fP parameter means access will be permitted
106 as the default guest user (specified elsewhere):
107 .PP 
109 .nf 
112         [aprinter]
113                 path = /usr/spool/public
114                 writeable = false
115                 printable = true
116                 guest ok = true
118 .fi 
121 .PP 
122 .SH "SPECIAL SECTIONS" 
123 .PP 
124 .IP 
125 .IP "\fBThe [global] section\fP" 
126 .IP 
127 Parameters in this section apply to the server as a whole, or are
128 defaults for sections which do not specifically define certain
129 items\&. See the notes under \fB\'PARAMETERS\'\fP for more
130 information\&.
131 .IP 
132 .IP "\fBThe [homes] section\fP" 
133 .IP 
134 If a section called \f(CW\'homes\'\fP is included in the configuration file,
135 services connecting clients to their home directories can be created
136 on the fly by the server\&.
137 .IP 
138 When the connection request is made, the existing sections are
139 scanned\&. If a match is found, it is used\&. If no match is found, the
140 requested section name is treated as a user name and looked up in the
141 local password file\&. If the name exists and the correct password has
142 been given, a share is created by cloning the [homes] section\&.
143 .IP 
144 Some modifications are then made to the newly created share:
145 .IP 
146 .IP 
147 .IP o 
148 The share name is changed from \f(CW\'homes\'\fP to the located
149 username
150 .IP 
151 .IP o 
152 If no path was given, the path is set to the user\'s home
153 directory\&.
154 .IP 
155 .IP 
156 If you decide to use a \fBpath=\fP line in your [homes]
157 section then you may find it useful to use the \fB%S\fP
158 macro\&. For example :
159 .IP 
160 \f(CWpath=/data/pchome/%S\fP
161 .IP 
162 would be useful if you have different home directories for your PCs
163 than for UNIX access\&.
164 .IP 
165 This is a fast and simple way to give a large number of clients access
166 to their home directories with a minimum of fuss\&.
167 .IP 
168 A similar process occurs if the requested section name is \f(CW"homes"\fP,
169 except that the share name is not changed to that of the requesting
170 user\&. This method of using the [homes] section works well if different
171 users share a client PC\&.
172 .IP 
173 The [homes] section can specify all the parameters a normal service
174 section can specify, though some make more sense than others\&. The
175 following is a typical and suitable [homes] section:
176 .IP 
178 .nf 
181         [homes]
182                 writeable = yes
184 .fi 
187 .IP 
188 An important point is that if guest access is specified in the [homes]
189 section, all home directories will be visible to all clients
190 \fBwithout a password\fP\&. In the very unlikely event that this is
191 actually desirable, it would be wise to also specify \fBread only
192 access\fP\&.
193 .IP 
194 Note that the \fBbrowseable\fP flag for auto home
195 directories will be inherited from the global browseable flag, not the
196 [homes] browseable flag\&. This is useful as it means setting
197 browseable=no in the [homes] section will hide the [homes] share but
198 make any auto home directories visible\&.
199 .IP 
200 .IP "\fBThe [printers] section\fP" 
201 .IP 
202 This section works like \fB[homes]\fP, but for printers\&.
203 .IP 
204 If a \fB[printers]\fP section occurs in the configuration file, users are
205 able to connect to any printer specified in the local host\'s printcap
206 file\&.
207 .IP 
208 When a connection request is made, the existing sections are
209 scanned\&. If a match is found, it is used\&. If no match is found, but a
210 \fB[homes]\fP section exists, it is used as described
211 above\&. Otherwise, the requested section name is treated as a printer
212 name and the appropriate printcap file is scanned to see if the
213 requested section name is a valid printer share name\&. If a match is
214 found, a new printer share is created by cloning the \fB[printers]\fP
215 section\&.
216 .IP 
217 A few modifications are then made to the newly created share:
218 .IP 
219 .IP 
220 .IP o 
221 The share name is set to the located printer name
222 .IP 
223 .IP o 
224 If no printer name was given, the printer name is set to the
225 located printer name
226 .IP 
227 .IP o 
228 If the share does not permit guest access and no username was
229 given, the username is set to the located printer name\&.
230 .IP 
231 .IP 
232 Note that the \fB[printers]\fP service MUST be printable - if you specify
233 otherwise, the server will refuse to load the configuration file\&.
234 .IP 
235 Typically the path specified would be that of a world-writeable spool
236 directory with the sticky bit set on it\&. A typical \fB[printers]\fP entry
237 would look like this:
238 .IP 
240 .nf 
243         [printers]
244                 path = /usr/spool/public
245                 guest ok = yes
246                 printable = yes 
248 .fi 
251 .IP 
252 All aliases given for a printer in the printcap file are legitimate
253 printer names as far as the server is concerned\&. If your printing
254 subsystem doesn\'t work like that, you will have to set up a
255 pseudo-printcap\&. This is a file consisting of one or more lines like
256 this:
257 .IP 
259 .nf 
261         alias|alias|alias|alias\&.\&.\&.    
262 .fi 
265 .IP 
266 Each alias should be an acceptable printer name for your printing
267 subsystem\&. In the \fB[global]\fP section, specify the new
268 file as your printcap\&.  The server will then only recognize names
269 found in your pseudo-printcap, which of course can contain whatever
270 aliases you like\&. The same technique could be used simply to limit
271 access to a subset of your local printers\&.
272 .IP 
273 An alias, by the way, is defined as any component of the first entry
274 of a printcap record\&. Records are separated by newlines, components
275 (if there are more than one) are separated by vertical bar symbols
276 ("|")\&.
277 .IP 
278 NOTE: On SYSV systems which use lpstat to determine what printers are
279 defined on the system you may be able to use \fB"printcap name =
280 lpstat"\fP to automatically obtain a list of
281 printers\&. See the \fB"printcap name"\fP option for
282 more details\&.
283 .IP 
284 .PP 
285 .SH "PARAMETERS" 
286 .PP 
287 Parameters define the specific attributes of sections\&.
288 .PP 
289 Some parameters are specific to the \fB[global]\fP section
290 (e\&.g\&., \fBsecurity\fP)\&.  Some parameters are usable in
291 all sections (e\&.g\&., \fBcreate mode\fP)\&. All others are
292 permissible only in normal sections\&. For the purposes of the following
293 descriptions the \fB[homes]\fP and
294 \fB[printers]\fP sections will be considered normal\&.
295 The letter \f(CW\'G\'\fP in parentheses indicates that a parameter is
296 specific to the \fB[global]\fP section\&. The letter \f(CW\'S\'\fP
297 indicates that a parameter can be specified in a service specific
298 section\&. Note that all \f(CW\'S\'\fP parameters can also be specified in the
299 \fB[global]\fP section - in which case they will define
300 the default behavior for all services\&.
301 .PP 
302 Parameters are arranged here in alphabetical order - this may not
303 create best bedfellows, but at least you can find them! Where there
304 are synonyms, the preferred synonym is described, others refer to the
305 preferred synonym\&.
306 .PP 
307 .SH "VARIABLE SUBSTITUTIONS" 
308 .PP 
309 Many of the strings that are settable in the config file can take
310 substitutions\&. For example the option \fB\f(CW"path =
311 /tmp/%u"\fP\fP would be interpreted as \f(CW"path = /tmp/john"\fP if
312 the user connected with the username john\&.
313 .PP 
314 These substitutions are mostly noted in the descriptions below, but
315 there are some general substitutions which apply whenever they might
316 be relevant\&. These are:
317 .PP 
318 .IP 
319 .IP o 
320 \fB%S\fP = the name of the current service, if any\&.
321 .IP 
322 .IP o 
323 \fB%P\fP = the root directory of the current service, if any\&.
324 .IP 
325 .IP o 
326 \fB%u\fP = user name of the current service, if any\&.
327 .IP 
328 .IP o 
329 \fB%g\fP = primary group name of \fB%u\fP\&.
330 .IP 
331 .IP o 
332 \fB%U\fP = session user name (the user name that
333 the client wanted, not necessarily the same as the one they got)\&.
334 .IP 
335 .IP o 
336 \fB%G\fP = primary group name of \fB%U\fP\&.
337 .IP 
338 .IP o 
339 \fB%H\fP = the home directory of the user given by \fB%u\fP\&.
340 .IP 
341 .IP o 
342 \fB%v\fP = the Samba version\&.
343 .IP 
344 .IP o 
345 \fB%h\fP = the internet hostname that Samba is running on\&.
346 .IP 
347 .IP o 
348 \fB%m\fP = the NetBIOS name of the client machine (very useful)\&.
349 .IP 
350 .IP o 
351 \fB%L\fP = the NetBIOS name of the server\&. This allows you to change your
352 config based on what the client calls you\&. Your server can have a "dual
353 personality"\&.
354 .IP 
355 .IP o 
356 \fB%M\fP = the internet name of the client machine\&.
357 .IP 
358 .IP o 
359 \fB%N\fP = the name of your NIS home directory server\&.  This is
360 obtained from your NIS auto\&.map entry\&.  If you have not compiled Samba
361 with the \fB--with-automount\fP option then this value will be the same
362 as \fB%L\fP\&.
363 .IP 
364 .IP o 
365 \fB%p\fP = the path of the service\'s home directory, obtained from your NIS
366 auto\&.map entry\&. The NIS auto\&.map entry is split up as "%N:%p"\&.
367 .IP 
368 .IP o 
369 \fB%R\fP = the selected protocol level after protocol
370 negotiation\&. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1\&.
371 .IP 
372 .IP o 
373 \fB%d\fP = The process id of the current server process\&.
374 .IP 
375 .IP o 
376 \fB%a\fP = the architecture of the remote
377 machine\&. Only some are recognized, and those may not be 100%
378 reliable\&. It currently recognizes Samba, WfWg, WinNT and
379 Win95\&. Anything else will be known as "UNKNOWN"\&. If it gets it wrong
380 then sending a level 3 log to samba@samba\&.org
381 should allow it to be fixed\&.
382 .IP 
383 .IP o 
384 \fB%I\fP = The IP address of the client machine\&.
385 .IP 
386 .IP o 
387 \fB%T\fP = the current date and time\&.
388 .IP 
389 .PP 
390 There are some quite creative things that can be done with these
391 substitutions and other smb\&.conf options\&.
392 .PP 
393 .SH "NAME MANGLING" 
394 .PP 
395 Samba supports \fI"name mangling"\fP so that DOS and Windows clients can
396 use files that don\'t conform to the 8\&.3 format\&. It can also be set to
397 adjust the case of 8\&.3 format filenames\&.
398 .PP 
399 There are several options that control the way mangling is performed,
400 and they are grouped here rather than listed separately\&. For the
401 defaults look at the output of the testparm program\&.
402 .PP 
403 All of these options can be set separately for each service (or
404 globally, of course)\&.
405 .PP 
406 The options are:
407 .PP 
408 \fB"mangle case = yes/no"\fP controls if names that have characters that
409 aren\'t of the "default" case are mangled\&. For example, if this is yes
410 then a name like \f(CW"Mail"\fP would be mangled\&. Default \fIno\fP\&.
411 .PP 
412 \fB"case sensitive = yes/no"\fP controls whether filenames are case
413 sensitive\&. If they aren\'t then Samba must do a filename search and
414 match on passed names\&. Default \fIno\fP\&.
415 .PP 
416 \fB"default case = upper/lower"\fP controls what the default case is for new
417 filenames\&. Default \fIlower\fP\&.
418 .PP 
419 \fB"preserve case = yes/no"\fP controls if new files are created with the
420 case that the client passes, or if they are forced to be the \f(CW"default"\fP
421 case\&. Default \fIYes\fP\&.
422 .PP 
423 .PP 
424 \fB"short preserve case = yes/no"\fP controls if new files which conform
425 to 8\&.3 syntax, that is all in upper case and of suitable length, are
426 created upper case, or if they are forced to be the \f(CW"default"\fP
427 case\&. This option can be use with \fB"preserve case =
428 yes"\fP to permit long filenames to retain their
429 case, while short names are lowered\&. Default \fIYes\fP\&.
430 .PP 
431 By default, Samba 2\&.0 has the same semantics as a Windows NT
432 server, in that it is case insensitive but case preserving\&.
433 .PP 
434 .SH "NOTE ABOUT USERNAME/PASSWORD VALIDATION" 
435 .PP 
436 There are a number of ways in which a user can connect to a
437 service\&. The server follows the following steps in determining if it
438 will allow a connection to a specified service\&. If all the steps fail
439 then the connection request is rejected\&. If one of the steps pass then
440 the following steps are not checked\&.
441 .PP 
442 If the service is marked \fB"guest only = yes"\fP then
443 steps 1 to 5 are skipped\&.
444 .PP 
445 .IP 
446 .IP 1\&. 
447 Step 1: If the client has passed a username/password pair and
448 that username/password pair is validated by the UNIX system\'s password
449 programs then the connection is made as that username\&. Note that this
450 includes the \f(CW\e\eserver\eservice%username\fP method of passing a
451 username\&.
452 .IP 
453 .IP 2\&. 
454 Step 2: If the client has previously registered a username with
455 the system and now supplies a correct password for that username then
456 the connection is allowed\&.
457 .IP 
458 .IP 3\&. 
459 Step 3: The client\'s netbios name and any previously used user
460 names are checked against the supplied password, if they match then
461 the connection is allowed as the corresponding user\&.
462 .IP 
463 .IP 4\&. 
464 Step 4: If the client has previously validated a
465 username/password pair with the server and the client has passed the
466 validation token then that username is used\&. 
467 .IP 
468 .IP 5\&. 
469 Step 5: If a \fB"user = "\fP field is given in the
470 smb\&.conf file for the service and the client has supplied a password,
471 and that password matches (according to the UNIX system\'s password
472 checking) with one of the usernames from the \fBuser=\fP
473 field then the connection is made as the username in the
474 \fB"user="\fP line\&. If one of the username in the
475 \fBuser=\fP list begins with a \f(CW\'@\'\fP then that name
476 expands to a list of names in the group of the same name\&.
477 .IP 
478 .IP 6\&. 
479 Step 6: If the service is a guest service then a connection is
480 made as the username given in the \fB"guest account
481 ="\fP for the service, irrespective of the supplied
482 password\&.
483 .IP 
484 .PP 
485 .SH "COMPLETE LIST OF GLOBAL PARAMETERS" 
486 .PP 
487 Here is a list of all global parameters\&. See the section of each
488 parameter for details\&.  Note that some are synonyms\&.
489 .PP 
490 .IP 
491 .IP o 
492 \fBadd user script\fP
493 .IP 
494 .IP o 
495 \fBallow trusted domains\fP
496 .IP 
497 .IP o 
498 \fBannounce as\fP
499 .IP 
500 .IP o 
501 \fBannounce version\fP
502 .IP 
503 .IP o 
504 \fBauto services\fP
505 .IP 
506 .IP o 
507 \fBbind interfaces only\fP
508 .IP 
509 .IP o 
510 \fBbrowse list\fP
511 .IP 
512 .IP o 
513 \fBchange notify timeout\fP
514 .IP 
515 .IP o 
516 \fBcharacter set\fP
517 .IP 
518 .IP o 
519 \fBclient code page\fP
520 .IP 
521 .IP o 
522 \fBcoding system\fP
523 .IP 
524 .IP o 
525 \fBconfig file\fP
526 .IP 
527 .IP o 
528 \fBdeadtime\fP
529 .IP 
530 .IP o 
531 \fBdebug hires timestamp\fP
532 .IP 
533 .IP o 
534 \fBdebug pid\fP
535 .IP 
536 .IP o 
537 \fBdebug timestamp\fP
538 .IP 
539 .IP o 
540 \fBdebug uid\fP
541 .IP 
542 .IP o 
543 \fBdebug level\fP
544 .IP 
545 .IP o 
546 \fBdefault\fP
547 .IP 
548 .IP o 
549 \fBdefault service\fP
550 .IP 
551 .IP o 
552 \fBdelete user script\fP
553 .IP 
554 .IP o 
555 \fBdfree command\fP
556 .IP 
557 .IP o 
558 \fBdns proxy\fP
559 .IP 
560 .IP o 
561 \fBdomain admin group\fP
562 .IP 
563 .IP o 
564 \fBdomain admin users\fP
565 .IP 
566 .IP o 
567 \fBdomain groups\fP
568 .IP 
569 .IP o 
570 \fBdomain guest group\fP
571 .IP 
572 .IP o 
573 \fBdomain guest users\fP
574 .IP 
575 .IP o 
576 \fBdomain logons\fP
577 .IP 
578 .IP o 
579 \fBdomain master\fP
580 .IP 
581 .IP o 
582 \fBencrypt passwords\fP
583 .IP 
584 .IP o 
585 \fBgetwd cache\fP
586 .IP 
587 .IP o 
588 \fBhomedir map\fP
589 .IP 
590 .IP o 
591 \fBhosts equiv\fP
592 .IP 
593 .IP o 
594 \fBinterfaces\fP
595 .IP 
596 .IP o 
597 \fBkeepalive\fP
598 .IP 
599 .IP o 
600 \fBkernel oplocks\fP
601 .IP 
602 .IP o 
603 \fBldap filter\fP
604 .IP 
605 .IP o 
606 \fBldap port\fP
607 .IP 
608 .IP o 
609 \fBldap root\fP
610 .IP 
611 .IP o 
612 \fBldap root passwd\fP
613 .IP 
614 .IP o 
615 \fBldap server\fP
616 .IP 
617 .IP o 
618 \fBldap suffix\fP
619 .IP 
620 .IP o 
621 \fBlm announce\fP
622 .IP 
623 .IP o 
624 \fBlm interval\fP
625 .IP 
626 .IP o 
627 \fBload printers\fP
628 .IP 
629 .IP o 
630 \fBlocal master\fP
631 .IP 
632 .IP o 
633 \fBlock dir\fP
634 .IP 
635 .IP o 
636 \fBlock directory\fP
637 .IP 
638 .IP o 
639 \fBlog file\fP
640 .IP 
641 .IP o 
642 \fBlog level\fP
643 .IP 
644 .IP o 
645 \fBlogon drive\fP
646 .IP 
647 .IP o 
648 \fBlogon home\fP
649 .IP 
650 .IP o 
651 \fBlogon path\fP
652 .IP 
653 .IP o 
654 \fBlogon script\fP
655 .IP 
656 .IP o 
657 \fBlpq cache time\fP
658 .IP 
659 .IP o 
660 \fBmachine password timeout\fP
661 .IP 
662 .IP o 
663 \fBmangled stack\fP
664 .IP 
665 .IP o 
666 \fBmap to guest\fP
667 .IP 
668 .IP o 
669 \fBmax disk size\fP
670 .IP 
671 .IP o 
672 \fBmax log size\fP
673 .IP 
674 .IP o 
675 \fBmax mux\fP
676 .IP 
677 .IP o 
678 \fBmax open files\fP
679 .IP 
680 .IP o 
681 \fBmax packet\fP
682 .IP 
683 .IP o 
684 \fBmax ttl\fP
685 .IP 
686 .IP o 
687 \fBmax wins ttl\fP
688 .IP 
689 .IP o 
690 \fBmax xmit\fP
691 .IP 
692 .IP o 
693 \fBmessage command\fP
694 .IP 
695 .IP o 
696 \fBmin passwd length\fP
697 .IP 
698 .IP o 
699 \fBmin password length\fP
700 .IP 
701 .IP o 
702 \fBmin wins ttl\fP
703 .IP 
704 .IP o 
705 \fBname resolve order\fP
706 .IP 
707 .IP o 
708 \fBnetbios aliases\fP
709 .IP 
710 .IP o 
711 \fBnetbios name\fP
712 .IP 
713 .IP o 
714 \fBnetbios scope\fP
715 .IP 
716 .IP o 
717 \fBnis homedir\fP
718 .IP 
719 .IP o 
720 \fBnt acl support\fP
721 .IP 
722 .IP o 
723 \fBnt pipe support\fP
724 .IP 
725 .IP o 
726 \fBnt smb support\fP
727 .IP 
728 .IP o 
729 \fBnull passwords\fP
730 .IP 
731 .IP o 
732 \fBole locking compatibility\fP
733 .IP 
734 .IP o 
735 \fBoplock break wait time\fP
736 .IP 
737 .IP o 
738 \fBos level\fP
739 .IP 
740 .IP o 
741 \fBpacket size\fP
742 .IP 
743 .IP o 
744 \fBpanic action\fP
745 .IP 
746 .IP o 
747 \fBpasswd chat\fP
748 .IP 
749 .IP o 
750 \fBpasswd chat debug\fP
751 .IP 
752 .IP o 
753 \fBpasswd program\fP
754 .IP 
755 .IP o 
756 \fBpassword level\fP
757 .IP 
758 .IP o 
759 \fBpassword server\fP
760 .IP 
761 .IP o 
762 \fBprefered master\fP
763 .IP 
764 .IP o 
765 \fBpreferred master\fP
766 .IP 
767 .IP o 
768 \fBpreload\fP
769 .IP 
770 .IP o 
771 \fBprintcap\fP
772 .IP 
773 .IP o 
774 \fBprintcap name\fP
775 .IP 
776 .IP o 
777 \fBprinter driver file\fP
778 .IP 
779 .IP o 
780 \fBprotocol\fP
781 .IP 
782 .IP o 
783 \fBread bmpx\fP
784 .IP 
785 .IP o 
786 \fBread prediction\fP
787 .IP 
788 .IP o 
789 \fBread raw\fP
790 .IP 
791 .IP o 
792 \fBread size\fP
793 .IP 
794 .IP o 
795 \fBremote announce\fP
796 .IP 
797 .IP o 
798 \fBremote browse sync\fP
799 .IP 
800 .IP o 
801 \fBrestrict anonymous\fP
802 .IP 
803 .IP o 
804 \fBroot\fP
805 .IP 
806 .IP o 
807 \fBroot dir\fP
808 .IP 
809 .IP o 
810 \fBroot directory\fP
811 .IP 
812 .IP o 
813 \fBsecurity\fP
814 .IP 
815 .IP o 
816 \fBserver string\fP
817 .IP 
818 .IP o 
819 \fBshared mem size\fP
820 .IP 
821 .IP o 
822 \fBsmb passwd file\fP
823 .IP 
824 .IP o 
825 \fBsmbrun\fP
826 .IP 
827 .IP o 
828 \fBsocket address\fP
829 .IP 
830 .IP o 
831 \fBsocket options\fP
832 .IP 
833 .IP o 
834 \fBsource environment\fP
835 .IP 
836 .IP o 
837 \fBssl\fP
838 .IP 
839 .IP o 
840 \fBssl CA certDir\fP
841 .IP 
842 .IP o 
843 \fBssl CA certFile\fP
844 .IP 
845 .IP o 
846 \fBssl ciphers\fP
847 .IP 
848 .IP o 
849 \fBssl client cert\fP
850 .IP 
851 .IP o 
852 \fBssl client key\fP
853 .IP 
854 .IP o 
855 \fBssl compatibility\fP
856 .IP 
857 .IP o 
858 \fBssl hosts\fP
859 .IP 
860 .IP o 
861 \fBssl hosts resign\fP
862 .IP 
863 .IP o 
864 \fBssl require clientcert\fP
865 .IP 
866 .IP o 
867 \fBssl require servercert\fP
868 .IP 
869 .IP o 
870 \fBssl server cert\fP
871 .IP 
872 .IP o 
873 \fBssl server key\fP
874 .IP 
875 .IP o 
876 \fBssl version\fP
877 .IP 
878 .IP o 
879 \fBstat cache\fP
880 .IP 
881 .IP o 
882 \fBstat cache size\fP
883 .IP 
884 .IP o 
885 \fBstrip dot\fP
886 .IP 
887 .IP o 
888 \fBsyslog\fP
889 .IP 
890 .IP o 
891 \fBsyslog only\fP
892 .IP 
893 .IP o 
894 \fBtemplate homedir\fP
895 .IP 
896 .IP o 
897 \fBtemplate shell\fP
898 .IP 
899 .IP o 
900 \fBtime offset\fP
901 .IP 
902 .IP o 
903 \fBtime server\fP
904 .IP 
905 .IP o 
906 \fBtimestamp logs\fP
907 .IP 
908 .IP o 
909 \fBunix password sync\fP
910 .IP 
911 .IP o 
912 \fBunix realname\fP
913 .IP 
914 .IP o 
915 \fBupdate encrypted\fP
916 .IP 
917 .IP o 
918 \fBuse rhosts\fP
919 .IP 
920 .IP o 
921 \fBusername level\fP
922 .IP 
923 .IP o 
924 \fBusername map\fP
925 .IP 
926 .IP o 
927 \fButmp directory\fP
928 .IP 
929 .IP o 
930 \fBvalid chars\fP
931 .IP 
932 .IP o 
933 \fBwinbind cache time\fP
934 .IP 
935 .IP o 
936 \fBwinbind gid\fP
937 .IP 
938 .IP o 
939 \fBwinbind uid\fP
940 .IP 
941 .IP o 
942 \fBwins hook\fP
943 .IP 
944 .IP o 
945 \fBwins proxy\fP
946 .IP 
947 .IP o 
948 \fBwins server\fP
949 .IP 
950 .IP o 
951 \fBwins support\fP
952 .IP 
953 .IP o 
954 \fBworkgroup\fP
955 .IP 
956 .IP o 
957 \fBwrite raw\fP
958 .IP 
959 .PP 
960 .SH "COMPLETE LIST OF SERVICE PARAMETERS" 
961 .PP 
962 Here is a list of all service parameters\&. See the section of each
963 parameter for details\&. Note that some are synonyms\&.
964 .PP 
965 .IP 
966 .IP o 
967 \fBadmin users\fP
968 .IP 
969 .IP o 
970 \fBallow hosts\fP
971 .IP 
972 .IP o 
973 \fBalternate permissions\fP
974 .IP 
975 .IP o 
976 \fBavailable\fP
977 .IP 
978 .IP o 
979 \fBblocking locks\fP
980 .IP 
981 .IP o 
982 \fBbrowsable\fP
983 .IP 
984 .IP o 
985 \fBbrowseable\fP
986 .IP 
987 .IP o 
988 \fBcase sensitive\fP
989 .IP 
990 .IP o 
991 \fBcasesignames\fP
992 .IP 
993 .IP o 
994 \fBcomment\fP
995 .IP 
996 .IP o 
997 \fBcopy\fP
998 .IP 
999 .IP o 
1000 \fBcreate mask\fP
1001 .IP 
1002 .IP o 
1003 \fBcreate mode\fP
1004 .IP 
1005 .IP o 
1006 \fBdefault case\fP
1007 .IP 
1008 .IP o 
1009 \fBdelete readonly\fP
1010 .IP 
1011 .IP o 
1012 \fBdelete veto files\fP
1013 .IP 
1014 .IP o 
1015 \fBdeny hosts\fP
1016 .IP 
1017 .IP o 
1018 \fBdirectory\fP
1019 .IP 
1020 .IP o 
1021 \fBdirectory mask\fP
1022 .IP 
1023 .IP o 
1024 \fBdirectory mode\fP
1025 .IP 
1026 .IP o 
1027 \fBdirectory security mask\fP
1028 .IP 
1029 .IP o 
1030 \fBdont descend\fP
1031 .IP 
1032 .IP o 
1033 \fBdos filetime resolution\fP
1034 .IP 
1035 .IP o 
1036 \fBdos filetimes\fP
1037 .IP 
1038 .IP o 
1039 \fBexec\fP
1040 .IP 
1041 .IP o 
1042 \fBfake directory create times\fP
1043 .IP 
1044 .IP o 
1045 \fBfake oplocks\fP
1046 .IP 
1047 .IP o 
1048 \fBfollow symlinks\fP
1049 .IP 
1050 .IP o 
1051 \fBforce create mode\fP
1052 .IP 
1053 .IP o 
1054 \fBforce directory mode\fP
1055 .IP 
1056 .IP o 
1057 \fBforce directory security mode\fP
1058 .IP 
1059 .IP o 
1060 \fBforce group\fP
1061 .IP 
1062 .IP o 
1063 \fBforce security mode\fP
1064 .IP 
1065 .IP o 
1066 \fBforce user\fP
1067 .IP 
1068 .IP o 
1069 \fBfstype\fP
1070 .IP 
1071 .IP o 
1072 \fBgroup\fP
1073 .IP 
1074 .IP o 
1075 \fBguest account\fP
1076 .IP 
1077 .IP o 
1078 \fBguest ok\fP
1079 .IP 
1080 .IP o 
1081 \fBguest only\fP
1082 .IP 
1083 .IP o 
1084 \fBhide dot files\fP
1085 .IP 
1086 .IP o 
1087 \fBhide files\fP
1088 .IP 
1089 .IP o 
1090 \fBhosts allow\fP
1091 .IP 
1092 .IP o 
1093 \fBhosts deny\fP
1094 .IP 
1095 .IP o 
1096 \fBinclude\fP
1097 .IP 
1098 .IP o 
1099 \fBinherit permissions\fP
1100 .IP 
1101 .IP o 
1102 \fBinvalid users\fP
1103 .IP 
1104 .IP o 
1105 \fBlevel2 oplocks\fP
1106 .IP 
1107 .IP o 
1108 \fBlocking\fP
1109 .IP 
1110 .IP o 
1111 \fBlppause command\fP
1112 .IP 
1113 .IP o 
1114 \fBlpq command\fP
1115 .IP 
1116 .IP o 
1117 \fBlpresume command\fP
1118 .IP 
1119 .IP o 
1120 \fBlprm command\fP
1121 .IP 
1122 .IP o 
1123 \fBmagic output\fP
1124 .IP 
1125 .IP o 
1126 \fBmagic script\fP
1127 .IP 
1128 .IP o 
1129 \fBmangle case\fP
1130 .IP 
1131 .IP o 
1132 \fBmangle locks\fP
1133 .IP 
1134 .IP o 
1135 \fBmangled map\fP
1136 .IP 
1137 .IP o 
1138 \fBmangled names\fP
1139 .IP 
1140 .IP o 
1141 \fBmangling char\fP
1142 .IP 
1143 .IP o 
1144 \fBmap archive\fP
1145 .IP 
1146 .IP o 
1147 \fBmap hidden\fP
1148 .IP 
1149 .IP o 
1150 \fBmap system\fP
1151 .IP 
1152 .IP o 
1153 \fBmax connections\fP
1154 .IP 
1155 .IP o 
1156 \fBmin print space\fP
1157 .IP 
1158 .IP o 
1159 \fBonly guest\fP
1160 .IP 
1161 .IP o 
1162 \fBonly user\fP
1163 .IP 
1164 .IP o 
1165 \fBoplock contention limit\fP
1166 .IP 
1167 .IP o 
1168 \fBoplocks\fP
1169 .IP 
1170 .IP o 
1171 \fBpath\fP
1172 .IP 
1173 .IP o 
1174 \fBpostexec\fP
1175 .IP 
1176 .IP o 
1177 \fBpostscript\fP
1178 .IP 
1179 .IP o 
1180 \fBpreexec\fP
1181 .IP 
1182 .IP o 
1183 \fBpreexec close\fP
1184 .IP 
1185 .IP o 
1186 \fBpreserve case\fP
1187 .IP 
1188 .IP o 
1189 \fBprint command\fP
1190 .IP 
1191 .IP o 
1192 \fBprint ok\fP
1193 .IP 
1194 .IP o 
1195 \fBprintable\fP
1196 .IP 
1197 .IP o 
1198 \fBprinter\fP
1199 .IP 
1200 .IP o 
1201 \fBprinter admin\fP
1202 .IP 
1203 .IP o 
1204 \fBprinter driver\fP
1205 .IP 
1206 .IP o 
1207 \fBprinter driver location\fP
1208 .IP 
1209 .IP o 
1210 \fBprinter name\fP
1211 .IP 
1212 .IP o 
1213 \fBprinting\fP
1214 .IP 
1215 .IP o 
1216 \fBpublic\fP
1217 .IP 
1218 .IP o 
1219 \fBqueuepause command\fP
1220 .IP 
1221 .IP o 
1222 \fBqueueresume command\fP
1223 .IP 
1224 .IP o 
1225 \fBread list\fP
1226 .IP 
1227 .IP o 
1228 \fBread only\fP
1229 .IP 
1230 .IP o 
1231 \fBroot postexec\fP
1232 .IP 
1233 .IP o 
1234 \fBroot preexec\fP
1235 .IP 
1236 .IP o 
1237 \fBroot preexec close\fP
1238 .IP 
1239 .IP o 
1240 \fBsecurity mask\fP
1241 .IP 
1242 .IP o 
1243 \fBset directory\fP
1244 .IP 
1245 .IP o 
1246 \fBshare modes\fP
1247 .IP 
1248 .IP o 
1249 \fBshort preserve case\fP
1250 .IP 
1251 .IP o 
1252 \fBstatus\fP
1253 .IP 
1254 .IP o 
1255 \fBstrict locking\fP
1256 .IP 
1257 .IP o 
1258 \fBstrict sync\fP
1259 .IP 
1260 .IP o 
1261 \fBsync always\fP
1262 .IP 
1263 .IP o 
1264 \fBuser\fP
1265 .IP 
1266 .IP o 
1267 \fBusername\fP
1268 .IP 
1269 .IP o 
1270 \fBusers\fP
1271 .IP 
1272 .IP o 
1273 \fButmp\fP
1274 .IP 
1275 .IP o 
1276 \fBvalid users\fP
1277 .IP 
1278 .IP o 
1279 \fBveto files\fP
1280 .IP 
1281 .IP o 
1282 \fBveto oplock files\fP
1283 .IP 
1284 .IP o 
1285 \fBvolume\fP
1286 .IP 
1287 .IP o 
1288 \fBwide links\fP
1289 .IP 
1290 .IP o 
1291 \fBwritable\fP
1292 .IP 
1293 .IP o 
1294 \fBwrite cache size\fP
1295 .IP 
1296 .IP o 
1297 \fBwrite list\fP
1298 .IP 
1299 .IP o 
1300 \fBwrite ok\fP
1301 .IP 
1302 .IP o 
1303 \fBwriteable\fP
1304 .IP 
1305 .PP 
1306 .SH "EXPLANATION OF EACH PARAMETER" 
1307 .PP 
1308 .IP 
1309 .IP "\fBadd user script (G)\fP" 
1310 .IP 
1311 This is the full pathname to a script that will be run \fIAS ROOT\fP by
1312 \fBsmbd (8)\fP under special circumstances decribed
1313 below\&.
1314 .IP 
1315 Normally, a Samba server requires that UNIX users are created for all
1316 users accessing files on this server\&. For sites that use Windows NT
1317 account databases as their primary user database creating these users
1318 and keeping the user list in sync with the Windows NT PDC is an
1319 onerous task\&. This option allows \fBsmbd\fP to create
1320 the required UNIX users \fION DEMAND\fP when a user accesses the Samba
1321 server\&.
1322 .IP 
1323 In order to use this option, \fBsmbd\fP must be set to
1324 \fBsecurity=server\fP or
1325 \fBsecurity=domain\fP and \fB"add user script"\fP
1326 must be set to a full pathname for a script that will create a UNIX user
1327 given one argument of \fB%u\fP, which expands into the UNIX user name to
1328 create\&.
1329 .IP 
1330 When the Windows user attempts to access the Samba server, at
1331 \fI"login"\fP(session setup in the SMB protocol) time,
1332 \fBsmbd\fP contacts the \fBpassword
1333 server\fP and attempts to authenticate the given user
1334 with the given password\&. If the authentication succeeds then
1335 \fBsmbd\fP attempts to find a UNIX user in the UNIX
1336 password database to map the Windows user into\&. If this lookup fails,
1337 and \fB"add user script"\fP is set then \fBsmbd\fP will
1338 call the specified script \fIAS ROOT\fP, expanding any \fB%u\fP argument
1339 to be the user name to create\&.
1340 .IP 
1341 If this script successfully creates the user then
1342 \fBsmbd\fP will continue on as though the UNIX user
1343 already existed\&. In this way, UNIX users are dynamically created to
1344 match existing Windows NT accounts\&.
1345 .IP 
1346 See also \fBsecurity=server\fP,
1347 \fBsecurity=domain\fP, \fBpassword
1348 server\fP, \fBdelete user
1349 script\fP\&.
1350 .IP 
1351 \fBDefault:\fP
1352 \f(CW   add user script = <empty string>\fP
1353 .IP 
1354 \fBExample:\fP
1355 \f(CW   add user script = /usr/local/samba/bin/add_user %u\fP
1356 .IP 
1357 .IP "\fBadmin users (S)\fP" 
1358 .IP 
1359 This is a list of users who will be granted administrative privileges
1360 on the share\&. This means that they will do all file operations as the
1361 super-user (root)\&.
1362 .IP 
1363 You should use this option very carefully, as any user in this list
1364 will be able to do anything they like on the share, irrespective of
1365 file permissions\&.
1366 .IP 
1367 \fBDefault:\fP 
1368 .br 
1369 \f(CW   no admin users\fP
1370 .IP 
1371 \fBExample:\fP 
1372 .br 
1373 \f(CW   admin users = jason\fP
1374 .IP 
1375 .IP "\fBallow hosts (S)\fP" 
1376 .IP 
1377 Synonym for \fBhosts allow\fP\&.
1378 .IP 
1379 .IP "\fBallow trusted domains (G)\fP" 
1380 .IP 
1381 This option only takes effect when the \fBsecurity\fP
1382 option is set to \fBserver\fP or \fBdomain\fP\&.  If it is set to no,
1383 then attempts to connect to a resource from a domain or workgroup other than
1384 the one which smbd is running in will fail, even if that domain
1385 is trusted by the remote server doing the authentication\&.
1386 .IP 
1387 This is useful if you only want your Samba server to serve resources
1388 to users in the domain it is a member of\&. As an example, suppose that there are
1389 two domains DOMA and DOMB\&.  DOMB is trusted by DOMA, which contains
1390 the Samba server\&.  Under normal circumstances, a user with an account
1391 in DOMB can then access the resources of a UNIX account with the same
1392 account name on the Samba server even if they do not have an account
1393 in DOMA\&.  This can make implementing a security boundary difficult\&.
1394 .IP 
1395 \fBDefault:\fP
1396 \f(CW     allow trusted domains = Yes\fP
1397 .IP 
1398 \fBExample:\fP
1399 \f(CW     allow trusted domains = No\fP
1400 .IP 
1401 .IP "\fBalternate permissions (S)\fP" 
1402 .IP 
1403 This is a deprecated parameter\&. It no longer has any effect in Samba2\&.0\&.
1404 In previous versions of Samba it affected the way the DOS "read only"
1405 attribute was mapped for a file\&. In Samba2\&.0 a file is marked "read only"
1406 if the UNIX file does not have the \'w\' bit set for the owner of the file,
1407 regardless if the owner of the file is the currently logged on user or not\&.
1408 .IP 
1409 .IP "\fBannounce as (G)\fP" 
1410 .IP 
1411 This specifies what type of server \fBnmbd\fP will
1412 announce itself as, to a network neighborhood browse list\&. By default
1413 this is set to Windows NT\&. The valid options are : "NT", which is a
1414 synonym for "NT Server", "NT Server", "NT Workstation", "Win95" or
1415 "WfW" meaning Windows NT Server, Windows NT Workstation, Windows 95
1416 and Windows for Workgroups respectively\&. Do not change this parameter
1417 unless you have a specific need to stop Samba appearing as an NT server
1418 as this may prevent Samba servers from participating as browser servers correctly\&.
1419 .IP 
1420 \fBDefault:\fP
1421 \f(CW   announce as = NT Server\fP
1422 .IP 
1423 \fBExample\fP
1424 \f(CW   announce as = Win95\fP
1425 .IP 
1426 .IP "\fBannounce version (G)\fP" 
1427 .IP 
1428 This specifies the major and minor version numbers that nmbd will use
1429 when announcing itself as a server\&. The default is 4\&.2\&.  Do not change
1430 this parameter unless you have a specific need to set a Samba server
1431 to be a downlevel server\&.
1432 .IP 
1433 \fBDefault:\fP
1434 \f(CW   announce version = 4\&.2\fP
1435 .IP 
1436 \fBExample:\fP
1437 \f(CW   announce version = 2\&.0\fP
1438 .IP 
1439 .IP "\fBauto services (G)\fP" 
1440 .IP 
1441 This is a list of services that you want to be automatically added to
1442 the browse lists\&. This is most useful for homes and printers services
1443 that would otherwise not be visible\&.
1444 .IP 
1445 Note that if you just want all printers in your printcap file loaded
1446 then the \fB"load printers"\fP option is easier\&.
1447 .IP 
1448 \fBDefault:\fP
1449 \f(CW   no auto services\fP
1450 .IP 
1451 \fBExample:\fP
1452 \f(CW   auto services = fred lp colorlp\fP
1453 .IP 
1454 .IP "\fBavailable (S)\fP" 
1455 .IP 
1456 This parameter lets you \fI\'turn off\'\fP a service\&. If \f(CW\'available = no\'\fP,
1457 then \fIALL\fP attempts to connect to the service will fail\&. Such failures
1458 are logged\&.
1459 .IP 
1460 \fBDefault:\fP
1461 \f(CW   available = yes\fP
1462 .IP 
1463 \fBExample:\fP
1464 \f(CW   available = no\fP
1465 .IP 
1466 .IP "\fBbind interfaces only (G)\fP" 
1467 .IP 
1468 This global parameter allows the Samba admin to limit what interfaces
1469 on a machine will serve smb requests\&. If affects file service
1470 \fBsmbd\fP and name service \fBnmbd\fP
1471 in slightly different ways\&.
1472 .IP 
1473 For name service it causes \fBnmbd\fP to bind to ports
1474 137 and 138 on the interfaces listed in the
1475 \fB\'interfaces\'\fP
1476 parameter\&. \fBnmbd\fP also binds to the \'all
1477 addresses\' interface (0\&.0\&.0\&.0) on ports 137 and 138 for the purposes
1478 of reading broadcast messages\&. If this option is not set then
1479 \fBnmbd\fP will service name requests on all of these
1480 sockets\&. If \fB"bind interfaces only"\fP is set then
1481 \fBnmbd\fP will check the source address of any
1482 packets coming in on the broadcast sockets and discard any that don\'t
1483 match the broadcast addresses of the interfaces in the
1484 \fB\'interfaces\'\fP parameter list\&. As unicast packets
1485 are received on the other sockets it allows \fBnmbd\fP
1486 to refuse to serve names to machines that send packets that arrive
1487 through any interfaces not listed in the
1488 \fB"interfaces"\fP list\&.  IP Source address spoofing
1489 does defeat this simple check, however so it must not be used
1490 seriously as a security feature for \fBnmbd\fP\&.
1491 .IP 
1492 For file service it causes \fBsmbd\fP to bind only to
1493 the interface list given in the \fB\'interfaces\'\fP
1494 parameter\&. This restricts the networks that \fBsmbd\fP
1495 will serve to packets coming in those interfaces\&.  Note that you
1496 should not use this parameter for machines that are serving PPP or
1497 other intermittent or non-broadcast network interfaces as it will not
1498 cope with non-permanent interfaces\&.
1499 .IP 
1500 If \fB"bind interfaces only"\fP is set then unless the network address
1501 \fI127\&.0\&.0\&.1\fP is added to the \fB\'interfaces\'\fP parameter
1502 list \fBsmbpasswd\fP and
1503 \fBswat\fP may not work as expected due to the
1504 reasons covered below\&.
1505 .IP 
1506 To change a users SMB password, the \fBsmbpasswd\fP
1507 by default connects to the \fI"localhost" - 127\&.0\&.0\&.1\fP address as an SMB
1508 client to issue the password change request\&. If \fB"bind interfaces only"\fP
1509 is set then unless the network address \fI127\&.0\&.0\&.1\fP is added to the
1510 \fB\'interfaces\'\fP parameter list then
1511 \fBsmbpasswd\fP will fail to connect in it\'s
1512 default mode\&. \fBsmbpasswd\fP can be forced to
1513 use the primary IP interface of the local host by using its
1514 \fB"-r remote machine"\fP parameter, with
1515 \fB"remote machine"\fP set to the IP name of the primary interface
1516 of the local host\&.
1517 .IP 
1518 The \fBswat\fP status page tries to connect with
1519 \fBsmbd\fP and \fBnmbd\fP at the address 
1520 \fI127\&.0\&.0\&.1\fP to determine if they are running\&.  Not adding \fI127\&.0\&.0\&.1\fP  will cause
1521 \fBsmbd\fP and \fBnmbd\fP to always show
1522 "not running" even if they really are\&.  This can prevent
1523 \fBswat\fP from starting/stopping/restarting
1524 \fBsmbd\fP and \fBnmbd\fP\&.
1525 .IP 
1526 \fBDefault:\fP
1527 \f(CW   bind interfaces only = False\fP
1528 .IP 
1529 \fBExample:\fP
1530 \f(CW   bind interfaces only = True\fP
1531 .IP 
1532 .IP "\fBblocking locks (S)\fP" 
1533 .IP 
1534 This parameter controls the behavior of \fBsmbd\fP when
1535 given a request by a client to obtain a byte range lock on a region
1536 of an open file, and the request has a time limit associated with it\&.
1537 .IP 
1538 If this parameter is set and the lock range requested cannot be
1539 immediately satisfied, Samba 2\&.0 will internally queue the lock 
1540 request, and periodically attempt to obtain the lock until the
1541 timeout period expires\&.
1542 .IP 
1543 If this parameter is set to "False", then Samba 2\&.0 will behave
1544 as previous versions of Samba would and will fail the lock
1545 request immediately if the lock range cannot be obtained\&.
1546 .IP 
1547 This parameter can be set per share\&.
1548 .IP 
1549 \fBDefault:\fP
1550 \f(CW   blocking locks = True\fP
1551 .IP 
1552 \fBExample:\fP
1553 \f(CW   blocking locks = False\fP
1554 .IP 
1555 .IP "\fBbrowsable (S)\fP" 
1556 .IP 
1557 Synonym for \fBbrowseable\fP\&.
1558 .IP 
1559 .IP "\fBbrowse list(G)\fP" 
1560 .IP 
1561 This controls whether \fBsmbd\fP will serve a browse
1562 list to a client doing a NetServerEnum call\&. Normally set to true\&. You
1563 should never need to change this\&.
1564 .IP 
1565 \fBDefault:\fP
1566 \f(CW   browse list = Yes\fP
1567 .IP 
1568 .IP "\fBbrowseable\fP" 
1569 .IP 
1570 This controls whether this share is seen in the list of available
1571 shares in a net view and in the browse list\&.
1572 .IP 
1573 \fBDefault:\fP
1574 \f(CW   browseable = Yes\fP
1575 .IP 
1576 \fBExample:\fP
1577 \f(CW   browseable = No\fP
1578 .IP 
1579 .IP "\fBcase sensitive (S)\fP" 
1580 .IP 
1581 See the discussion in the section \fBNAME MANGLING\fP\&.
1582 .IP 
1583 .IP "\fBcasesignames (S)\fP" 
1584 .IP 
1585 Synonym for \fB"case sensitive"\fP\&.
1586 .IP 
1587 .IP "\fBchange notify timeout (G)\fP" 
1588 .IP 
1589 One of the new NT SMB requests that Samba 2\&.0 supports is the
1590 "ChangeNotify" requests\&. This SMB allows a client to tell a server to
1591 \fI"watch"\fP a particular directory for any changes and only reply to
1592 the SMB request when a change has occurred\&. Such constant scanning of
1593 a directory is expensive under UNIX, hence an
1594 \fBsmbd\fP daemon only performs such a scan on each
1595 requested directory once every \fBchange notify timeout\fP seconds\&.
1596 .IP 
1597 \fBchange notify timeout\fP is specified in units of seconds\&.
1598 .IP 
1599 \fBDefault:\fP
1600 \f(CW   change notify timeout = 60\fP
1601 .IP 
1602 \fBExample:\fP
1603 \f(CW   change notify timeout = 300\fP
1604 .IP 
1605 Would change the scan time to every 5 minutes\&.
1606 .IP 
1607 .IP "\fBcharacter set (G)\fP" 
1608 .IP 
1609 This allows a smbd to map incoming filenames from a DOS Code page (see
1610 the \fBclient code page\fP parameter) to several
1611 built in UNIX character sets\&. The built in code page translations are:
1612 .IP 
1613 .IP 
1614 .IP o 
1615 \fBISO8859-1\fP Western European UNIX character set\&. The parameter
1616 \fBclient code page\fP \fIMUST\fP be set to code
1617 page 850 if the \fBcharacter set\fP parameter is set to iso8859-1
1618 in order for the conversion to the UNIX character set to be done
1619 correctly\&.
1620 .IP 
1621 .IP o 
1622 \fBISO8859-2\fP Eastern European UNIX character set\&. The parameter
1623 \fBclient code page\fP \fIMUST\fP be set to code
1624 page 852 if the \fBcharacter set\fP parameter is set to ISO8859-2
1625 in order for the conversion to the UNIX character set to be done
1626 correctly\&. 
1627 .IP 
1628 .IP o 
1629 \fBISO8859-5\fP Russian Cyrillic UNIX character set\&. The parameter
1630 \fBclient code page\fP \fIMUST\fP be set to code
1631 page 866 if the \fBcharacter set\fP parameter is set to ISO8859-5
1632 in order for the conversion to the UNIX character set to be done
1633 correctly\&. 
1634 .IP 
1635 .IP o 
1636 \fBISO8859-7\fP Greek UNIX character set\&. The parameter
1637 \fBclient code page\fP \fIMUST\fP be set to code
1638 page 737 if the \fBcharacter set\fP parameter is set to ISO8859-7
1639 in order for the conversion to the UNIX character set to be done
1640 correctly\&. 
1641 .IP 
1642 .IP o 
1643 \fBKOI8-R\fP Alternate mapping for Russian Cyrillic UNIX
1644 character set\&. The parameter \fBclient code
1645 page\fP \fIMUST\fP be set to code page 866 if the
1646 \fBcharacter set\fP parameter is set to KOI8-R in order for the
1647 conversion to the UNIX character set to be done correctly\&.
1648 .IP 
1649 .IP 
1650 \fIBUG\fP\&. These MSDOS code page to UNIX character set mappings should
1651 be dynamic, like the loading of MS DOS code pages, not static\&.
1652 .IP 
1653 See also \fBclient code page\fP\&.  Normally this
1654 parameter is not set, meaning no filename translation is done\&.
1655 .IP 
1656 \fBDefault:\fP
1657 \f(CW   character set = <empty string>\fP
1658 .IP 
1659 \fBExample:\fP
1660 \f(CW   character set = ISO8859-1\fP
1661 .IP 
1662 .IP "\fBclient code page (G)\fP" 
1663 .IP 
1664 This parameter specifies the DOS code page that the clients accessing
1665 Samba are using\&. To determine what code page a Windows or DOS client
1666 is using, open a DOS command prompt and type the command "chcp"\&. This
1667 will output the code page\&. The default for USA MS-DOS, Windows 95, and
1668 Windows NT releases is code page 437\&. The default for western european
1669 releases of the above operating systems is code page 850\&.
1670 .IP 
1671 This parameter tells \fBsmbd\fP which of the
1672 \f(CWcodepage\&.XXX\fP files to dynamically load on startup\&. These files,
1673 described more fully in the manual page \fBmake_smbcodepage
1674 (1)\fP, tell \fBsmbd\fP how
1675 to map lower to upper case characters to provide the case insensitivity
1676 of filenames that Windows clients expect\&.
1677 .IP 
1678 Samba currently ships with the following code page files :
1679 .IP 
1680 .IP 
1681 .IP o 
1682 \fBCode Page 437 - MS-DOS Latin US\fP
1683 .IP 
1684 .IP o 
1685 \fBCode Page 737 - Windows \'95 Greek\fP
1686 .IP 
1687 .IP o 
1688 \fBCode Page 850 - MS-DOS Latin 1\fP
1689 .IP 
1690 .IP o 
1691 \fBCode Page 852 - MS-DOS Latin 2\fP
1692 .IP 
1693 .IP o 
1694 \fBCode Page 861 - MS-DOS Icelandic\fP
1695 .IP 
1696 .IP o 
1697 \fBCode Page 866 - MS-DOS Cyrillic\fP
1698 .IP 
1699 .IP o 
1700 \fBCode Page 932 - MS-DOS Japanese SJIS\fP
1701 .IP 
1702 .IP o 
1703 \fBCode Page 936 - MS-DOS Simplified Chinese\fP
1704 .IP 
1705 .IP o 
1706 \fBCode Page 949 - MS-DOS Korean Hangul\fP
1707 .IP 
1708 .IP o 
1709 \fBCode Page 950 - MS-DOS Traditional Chinese\fP
1710 .IP 
1711 .IP 
1712 Thus this parameter may have any of the values 437, 737, 850, 852,
1713 861, 932, 936, 949, or 950\&.  If you don\'t find the codepage you need,
1714 read the comments in one of the other codepage files and the
1715 \fBmake_smbcodepage (1)\fP man page and
1716 write one\&. Please remember to donate it back to the Samba user
1717 community\&.
1718 .IP 
1719 This parameter co-operates with the \fB"valid
1720 chars"\fP parameter in determining what characters are
1721 valid in filenames and how capitalization is done\&. If you set both
1722 this parameter and the \fB"valid chars"\fP parameter
1723 the \fB"client code page"\fP parameter \fIMUST\fP be set before the
1724 \fB"valid chars"\fP parameter in the \fBsmb\&.conf\fP
1725 file\&. The \fB"valid chars"\fP string will then augment
1726 the character settings in the "client code page" parameter\&.
1727 .IP 
1728 If not set, \fB"client code page"\fP defaults to 850\&.
1729 .IP 
1730 See also : \fB"valid chars"\fP
1731 .IP 
1732 \fBDefault:\fP
1733 \f(CW   client code page = 850\fP
1734 .IP 
1735 \fBExample:\fP
1736 \f(CW   client code page = 936\fP
1737 .IP 
1738 .IP "\fBcodingsystem (G)\fP" 
1739 .IP 
1740 This parameter is used to determine how incoming Shift-JIS Japanese
1741 characters are mapped from the incoming \fB"client code
1742 page"\fP used by the client, into file names in the
1743 UNIX filesystem\&. Only useful if \fB"client code
1744 page"\fP is set to 932 (Japanese Shift-JIS)\&.
1745 .IP 
1746 The options are :
1747 .IP 
1748 .IP 
1749 .IP o 
1750 \fBSJIS\fP  Shift-JIS\&. Does no conversion of the incoming filename\&.
1751 .IP 
1752 .IP o 
1753 \fBJIS8, J8BB, J8BH, J8@B, J8@J, J8@H \fP Convert from incoming
1754 Shift-JIS to eight bit JIS code with different shift-in, shift out
1755 codes\&.
1756 .IP 
1757 .IP o 
1758 \fBJIS7, J7BB, J7BH, J7@B, J7@J, J7@H \fP Convert from incoming
1759 Shift-JIS to seven bit JIS code with different shift-in, shift out
1760 codes\&.
1761 .IP 
1762 .IP o 
1763 \fBJUNET, JUBB, JUBH, JU@B, JU@J, JU@H \fP Convert from incoming
1764 Shift-JIS to JUNET code with different shift-in, shift out codes\&.
1765 .IP 
1766 .IP o 
1767 \fBEUC\fP  Convert an incoming Shift-JIS character to EUC code\&.
1768 .IP 
1769 .IP o 
1770 \fBHEX\fP Convert an incoming Shift-JIS character to a 3 byte hex
1771 representation, i\&.e\&. \f(CW:AB\fP\&.
1772 .IP 
1773 .IP o 
1774 \fBCAP\fP Convert an incoming Shift-JIS character to the 3 byte hex
1775 representation used by the Columbia AppleTalk Program (CAP),
1776 i\&.e\&. \f(CW:AB\fP\&.  This is used for compatibility between Samba and CAP\&.
1777 .IP 
1778 .IP 
1779 .IP "\fBcomment (S)\fP" 
1780 .IP 
1781 This is a text field that is seen next to a share when a client does a
1782 queries the server, either via the network neighborhood or via "net
1783 view" to list what shares are available\&.
1784 .IP 
1785 If you want to set the string that is displayed next to the machine
1786 name then see the server string command\&.
1787 .IP 
1788 \fBDefault:\fP
1789 \f(CW   No comment string\fP
1790 .IP 
1791 \fBExample:\fP
1792 \f(CW   comment = Fred\'s Files\fP
1793 .IP 
1794 .IP "\fBconfig file (G)\fP" 
1795 .IP 
1796 This allows you to override the config file to use, instead of the
1797 default (usually \fBsmb\&.conf\fP)\&. There is a chicken and egg problem
1798 here as this option is set in the config file!
1799 .IP 
1800 For this reason, if the name of the config file has changed when the
1801 parameters are loaded then it will reload them from the new config
1802 file\&.
1803 .IP 
1804 This option takes the usual substitutions, which can be very useful\&.
1805 .IP 
1806 If the config file doesn\'t exist then it won\'t be loaded (allowing you
1807 to special case the config files of just a few clients)\&.
1808 .IP 
1809 \fBExample:\fP
1810 \f(CW   config file = /usr/local/samba/lib/smb\&.conf\&.%m\fP
1811 .IP 
1812 .IP "\fBcopy (S)\fP" 
1813 .IP 
1814 This parameter allows you to \fI\'clone\'\fP service entries\&. The specified
1815 service is simply duplicated under the current service\'s name\&. Any
1816 parameters specified in the current section will override those in the
1817 section being copied\&.
1818 .IP 
1819 This feature lets you set up a \'template\' service and create similar
1820 services easily\&. Note that the service being copied must occur earlier
1821 in the configuration file than the service doing the copying\&.
1822 .IP 
1823 \fBDefault:\fP
1824 \f(CW   none\fP
1825 .IP 
1826 \fBExample:\fP
1827 \f(CW   copy = otherservice\fP
1828 .IP 
1829 .IP "\fBcreate mask (S)\fP" 
1830 .IP 
1831 A synonym for this parameter is \fB\'create mode\'\fP\&.
1832 .IP 
1833 When a file is created, the necessary permissions are calculated
1834 according to the mapping from DOS modes to UNIX permissions, and the
1835 resulting UNIX mode is then bit-wise \'AND\'ed with this parameter\&.
1836 This parameter may be thought of as a bit-wise MASK for the UNIX modes
1837 of a file\&. Any bit \fI*not*\fP set here will be removed from the modes set
1838 on a file when it is created\&.
1839 .IP 
1840 The default value of this parameter removes the \'group\' and \'other\'
1841 write and execute bits from the UNIX modes\&.
1842 .IP 
1843 Following this Samba will bit-wise \'OR\' the UNIX mode created from
1844 this parameter with the value of the "force create mode" parameter
1845 which is set to 000 by default\&.
1846 .IP 
1847 This parameter does not affect directory modes\&. See the parameter
1848 \fB\'directory mode\'\fP for details\&.
1849 .IP 
1850 See also the \fB"force create mode"\fP parameter
1851 for forcing particular mode bits to be set on created files\&. See also
1852 the \fB"directory mode"\fP parameter for masking
1853 mode bits on created directories\&.
1854 See also the \fB"inherit permissions"\fP parameter\&.
1855 .IP 
1856 \fBDefault:\fP
1857 \f(CW   create mask = 0744\fP
1858 .IP 
1859 \fBExample:\fP
1860 \f(CW   create mask = 0775\fP
1861 .IP 
1862 .IP "\fBcreate mode (S)\fP" 
1863 .IP 
1864 This is a synonym for \fBcreate mask\fP\&.
1865 .IP 
1866 .IP "\fBdeadtime (G)\fP" 
1867 .IP 
1868 The value of the parameter (a decimal integer) represents the number
1869 of minutes of inactivity before a connection is considered dead, and
1870 it is disconnected\&. The deadtime only takes effect if the number of
1871 open files is zero\&.
1872 .IP 
1873 This is useful to stop a server\'s resources being exhausted by a large
1874 number of inactive connections\&.
1875 .IP 
1876 Most clients have an auto-reconnect feature when a connection is
1877 broken so in most cases this parameter should be transparent to users\&.
1878 .IP 
1879 Using this parameter with a timeout of a few minutes is recommended
1880 for most systems\&.
1881 .IP 
1882 A deadtime of zero indicates that no auto-disconnection should be
1883 performed\&.
1884 .IP 
1885 \fBDefault:\fP
1886 \f(CW   deadtime = 0\fP
1887 .IP 
1888 \fBExample:\fP
1889 \f(CW   deadtime = 15\fP
1890 .IP 
1891 .IP "\fBdebug hires timestamp (G)\fP" 
1892 .IP 
1893 Sometimes the timestamps in the log messages are needed with a
1894 resolution of higher that seconds, this boolean parameter adds
1895 microsecond resolution to the timestamp message header when turned on\&.
1896 .IP 
1897 Note that the parameter \fBdebug timestamp\fP
1898 must be on for this to have an effect\&.
1899 .IP 
1900 \fBDefault:\fP
1901 \f(CW debug hires timestamp = No\fP
1902 .IP 
1903 \fBExample:\fP
1904 \f(CW debug hires timestamp = Yes\fP
1905 .IP 
1906 .IP "\fBdebug timestamp (G)\fP" 
1907 .IP 
1908 Samba2\&.0 debug log messages are timestamped by default\&. If you are
1909 running at a high \fB"debug level"\fP these timestamps
1910 can be distracting\&. This boolean parameter allows timestamping to be turned
1911 off\&.
1912 .IP 
1913 \fBDefault:\fP
1914 \f(CW   debug timestamp = Yes\fP
1915 .IP 
1916 \fBExample:\fP
1917 \f(CW   debug timestamp = No\fP
1918 .IP 
1919 .IP "\fBdebug pid (G)\fP" 
1920 .IP 
1921 When using only one log file for more then one forked smbd-process
1922 there may be hard to follow which process outputs which message\&.
1923 This boolean parameter is adds the process-id to the timestamp message
1924 headers in the logfile when turned on\&.
1925 .IP 
1926 Note that the parameter \fBdebug timestamp\fP
1927 must be on for this to have an effect\&.
1928 .IP 
1929 \fBDefault:\fP
1930 \f(CW   debug pid = No\fP
1931 .IP 
1932 \fBExample:\fP
1933 \f(CW   debug pid = Yes\fP
1934 .IP 
1935 .IP "\fBdebug uid (G)\fP" 
1936 .IP 
1937 Samba is sometimes run as root and sometime run as the connected
1938 user, this boolean parameter inserts the current euid, egid, uid
1939 and gid to the timestamp message headers in the log file if turned on\&.
1940 .IP 
1941 Note that the parameter \fBdebug timestamp\fP
1942 must be on for this to have an effect\&.
1943 .IP 
1944 \fBDefault:\fP
1945 \f(CW   debug uid = No\fP
1946 .IP 
1947 \fBExample:\fP
1948 \f(CW   debug uid = Yes\fP
1949 .IP 
1950 .IP "\fBdebug level (G)\fP" 
1951 .IP 
1952 The value of the parameter (an integer) allows the debug level
1953 (logging level) to be specified in the \fBsmb\&.conf\fP file\&. This is to
1954 give greater flexibility in the configuration of the system\&.
1955 .IP 
1956 The default will be the debug level specified on the command line
1957 or level zero if none was specified\&.
1958 .IP 
1959 \fBExample:\fP
1960 \f(CW   debug level = 3\fP
1961 .IP 
1962 .IP "\fBdefault (G)\fP" 
1963 .IP 
1964 A synonym for \fBdefault service\fP\&.
1965 .IP 
1966 .IP "\fBdefault case (S)\fP" 
1967 .IP 
1968 See the section on \fB"NAME MANGLING"\fP\&. Also note
1969 the \fB"short preserve case"\fP parameter\&.
1970 .IP 
1971 .IP "\fBdefault service (G)\fP" 
1972 .IP 
1973 This parameter specifies the name of a service which will be connected
1974 to if the service actually requested cannot be found\&. Note that the
1975 square brackets are \fINOT\fP given in the parameter value (see example
1976 below)\&.
1977 .IP 
1978 There is no default value for this parameter\&. If this parameter is not
1979 given, attempting to connect to a nonexistent service results in an
1980 error\&.
1981 .IP 
1982 Typically the default service would be a \fBguest ok\fP,
1983 \fBread-only\fP service\&.
1984 .IP 
1985 Also note that the apparent service name will be changed to equal that
1986 of the requested service, this is very useful as it allows you to use
1987 macros like \fB%S\fP to make a wildcard service\&.
1988 .IP 
1989 Note also that any \f(CW\'_\'\fP characters in the name of the service used
1990 in the default service will get mapped to a \f(CW\'/\'\fP\&. This allows for
1991 interesting things\&.
1992 .IP 
1993 \fBExample:\fP
1995 .nf 
1998         default service = pub
1999         
2000         [pub]
2001                 path = /%S
2003 .fi 
2006 .IP 
2007 .IP "\fBdelete user script (G)\fP" 
2008 .IP 
2009 This is the full pathname to a script that will be run \fIAS ROOT\fP by
2010 \fBsmbd (8)\fP under special circumstances decribed
2011 below\&.
2012 .IP 
2013 Normally, a Samba server requires that UNIX users are created for all
2014 users accessing files on this server\&. For sites that use Windows NT
2015 account databases as their primary user database creating these users
2016 and keeping the user list in sync with the Windows NT PDC is an
2017 onerous task\&. This option allows \fBsmbd\fP to delete
2018 the required UNIX users \fION DEMAND\fP when a user accesses the Samba
2019 server and the Windows NT user no longer exists\&.
2020 .IP 
2021 In order to use this option, \fBsmbd\fP must be set to
2022 \fBsecurity=domain\fP and \fB"delete user
2023 script"\fP must be set to a full pathname for a script that will delete
2024 a UNIX user given one argument of \fB%u\fP, which expands into the UNIX
2025 user name to delete\&. \fINOTE\fP that this is different to the
2026 \fBadd user script\fP which will work with the
2027 \fBsecurity=server\fP option as well as
2028 \fBsecurity=domain\fP\&. The reason for this
2029 is only when Samba is a domain member does it get the information
2030 on an attempted user logon that a user no longer exists\&. In the
2031 \fBsecurity=server\fP mode a missing user
2032 is treated the same as an invalid password logon attempt\&. Deleting
2033 the user in this circumstance would not be a good idea\&.
2034 .IP 
2035 When the Windows user attempts to access the Samba server, at
2036 \fI"login"\fP(session setup in the SMB protocol) time,
2037 \fBsmbd\fP contacts the \fBpassword
2038 server\fP and attempts to authenticate the given user
2039 with the given password\&. If the authentication fails with the specific
2040 Domain error code meaning that the user no longer exists then
2041 \fBsmbd\fP attempts to find a UNIX user in the UNIX
2042 password database that matches the Windows user account\&. If this lookup succeeds,
2043 and \fB"delete user script"\fP is set then \fBsmbd\fP will
2044 call the specified script \fIAS ROOT\fP, expanding any \fB%u\fP argument
2045 to be the user name to delete\&.
2046 .IP 
2047 This script should delete the given UNIX username\&. In this way, UNIX
2048 users are dynamically deleted to match existing Windows NT accounts\&.
2049 .IP 
2050 See also \fBsecurity=domain\fP,
2051 \fBpassword server\fP, \fBadd user
2052 script\fP\&.
2053 .IP 
2054 \fBDefault:\fP
2055 \f(CW   delete user script = <empty string>\fP
2056 .IP 
2057 \fBExample:\fP
2058 \f(CW   delete user script = /usr/local/samba/bin/del_user %u\fP
2059 .IP 
2060 .IP "\fBdelete readonly (S)\fP" 
2061 .IP 
2062 This parameter allows readonly files to be deleted\&.  This is not
2063 normal DOS semantics, but is allowed by UNIX\&.
2064 .IP 
2065 This option may be useful for running applications such as rcs, where
2066 UNIX file ownership prevents changing file permissions, and DOS
2067 semantics prevent deletion of a read only file\&.
2068 .IP 
2069 \fBDefault:\fP
2070 \f(CW   delete readonly = No\fP
2071 .IP 
2072 \fBExample:\fP
2073 \f(CW   delete readonly = Yes\fP
2074 .IP 
2075 .IP "\fBdelete veto files (S)\fP" 
2076 .IP 
2077 This option is used when Samba is attempting to delete a directory
2078 that contains one or more vetoed directories (see the \fB\'veto
2079 files\'\fP option)\&.  If this option is set to False (the
2080 default) then if a vetoed directory contains any non-vetoed files or
2081 directories then the directory delete will fail\&. This is usually what
2082 you want\&.
2083 .IP 
2084 If this option is set to True, then Samba will attempt to recursively
2085 delete any files and directories within the vetoed directory\&. This can
2086 be useful for integration with file serving systems such as \fBNetAtalk\fP,
2087 which create meta-files within directories you might normally veto
2088 DOS/Windows users from seeing (e\&.g\&. \f(CW\&.AppleDouble\fP)
2089 .IP 
2090 Setting \f(CW\'delete veto files = True\'\fP allows these directories to be 
2091 transparently deleted when the parent directory is deleted (so long
2092 as the user has permissions to do so)\&.
2093 .IP 
2094 See also the \fBveto files\fP parameter\&.
2095 .IP 
2096 \fBDefault:\fP
2097 \f(CW   delete veto files = False\fP
2098 .IP 
2099 \fBExample:\fP
2100 \f(CW   delete veto files = True\fP
2101 .IP 
2102 .IP "\fBdeny hosts (S)\fP" 
2103 .IP 
2104 Synonym for \fBhosts deny\fP\&.
2105 .IP 
2106 .IP "\fBdfree command (G)\fP" 
2107 .IP 
2108 The dfree command setting should only be used on systems where a
2109 problem occurs with the internal disk space calculations\&. This has
2110 been known to happen with Ultrix, but may occur with other operating
2111 systems\&. The symptom that was seen was an error of "Abort Retry
2112 Ignore" at the end of each directory listing\&.
2113 .IP 
2114 This setting allows the replacement of the internal routines to
2115 calculate the total disk space and amount available with an external
2116 routine\&. The example below gives a possible script that might fulfill
2117 this function\&.
2118 .IP 
2119 The external program will be passed a single parameter indicating a
2120 directory in the filesystem being queried\&. This will typically consist
2121 of the string \f(CW"\&./"\fP\&. The script should return two integers in
2122 ascii\&. The first should be the total disk space in blocks, and the
2123 second should be the number of available blocks\&. An optional third
2124 return value can give the block size in bytes\&. The default blocksize
2125 is 1024 bytes\&.
2126 .IP 
2127 Note: Your script should \fINOT\fP be setuid or setgid and should be
2128 owned by (and writeable only by) root!
2129 .IP 
2130 \fBDefault:\fP
2131 \f(CW   By default internal routines for determining the disk capacity
2132 and remaining space will be used\&.\fP
2133 .IP 
2134 \fBExample:\fP
2135 \f(CW   dfree command = /usr/local/samba/bin/dfree\fP
2136 .IP 
2137 Where the script dfree (which must be made executable) could be:
2138 .IP 
2140 .nf 
2143         #!/bin/sh
2144         df $1 | tail -1 | awk \'{print $2" "$4}\'
2146 .fi 
2149 .IP 
2150 or perhaps (on Sys V based systems):
2151 .IP 
2153 .nf 
2156         #!/bin/sh
2157         /usr/bin/df -k $1 | tail -1 | awk \'{print $3" "$5}\'
2159 .fi 
2162 .IP 
2163 Note that you may have to replace the command names with full
2164 path names on some systems\&.
2165 .IP 
2166 .IP "\fBdirectory (S)\fP" 
2167 .IP 
2168 Synonym for \fBpath\fP\&.
2169 .IP 
2170 .IP "\fBdirectory mask (S)\fP" 
2171 .IP 
2172 This parameter is the octal modes which are used when converting DOS
2173 modes to UNIX modes when creating UNIX directories\&.
2174 .IP 
2175 When a directory is created, the necessary permissions are calculated
2176 according to the mapping from DOS modes to UNIX permissions, and the
2177 resulting UNIX mode is then bit-wise \'AND\'ed with this parameter\&.
2178 This parameter may be thought of as a bit-wise MASK for the UNIX modes
2179 of a directory\&. Any bit \fI*not*\fP set here will be removed from the
2180 modes set on a directory when it is created\&.
2181 .IP 
2182 The default value of this parameter removes the \'group\' and \'other\'
2183 write bits from the UNIX mode, allowing only the user who owns the
2184 directory to modify it\&.
2185 .IP 
2186 Following this Samba will bit-wise \'OR\' the UNIX mode created from
2187 this parameter with the value of the "force directory mode"
2188 parameter\&. This parameter is set to 000 by default (i\&.e\&. no extra mode
2189 bits are added)\&.
2190 .IP 
2191 See the \fB"force directory mode"\fP parameter
2192 to cause particular mode bits to always be set on created directories\&.
2193 .IP 
2194 See also the \fB"create mode"\fP parameter for masking
2195 mode bits on created files, and the \fB"directory security mask"\fP
2196 parameter\&.
2197 .IP 
2198 See also the \fB"inherit permissions"\fP parameter\&.
2199 .IP 
2200 \fBDefault:\fP
2201 \f(CW   directory mask = 0755\fP
2202 .IP 
2203 \fBExample:\fP
2204 \f(CW   directory mask = 0775\fP
2205 .IP 
2206 .IP "\fBdirectory mode (S)\fP" 
2207 .IP 
2208 Synonym for \fBdirectory mask\fP\&.
2209 .IP 
2210 .IP "\fBdirectory security mask (S)\fP" 
2211 .IP 
2212 This parameter controls what UNIX permission bits can be modified
2213 when a Windows NT client is manipulating the UNIX permission on a
2214 directory using the native NT security dialog box\&.
2215 .IP 
2216 This parameter is applied as a mask (AND\'ed with) to the changed
2217 permission bits, thus preventing any bits not in this mask from
2218 being modified\&. Essentially, zero bits in this mask may be treated
2219 as a set of bits the user is not allowed to change\&.
2220 .IP 
2221 If not set explicitly this parameter is set to the same value as the
2222 \fBdirectory mask\fP parameter\&. To allow a user to
2223 modify all the user/group/world permissions on a directory, set this
2224 parameter to 0777\&.
2225 .IP 
2226 \fINote\fP that users who can access the Samba server through other
2227 means can easily bypass this restriction, so it is primarily
2228 useful for standalone "appliance" systems\&.  Administrators of
2229 most normal systems will probably want to set it to 0777\&.
2230 .IP 
2231 See also the \fBforce directory security
2232 mode\fP, \fBsecurity
2233 mask\fP, \fBforce security mode\fP
2234 parameters\&.
2235 .IP 
2236 \fBDefault:\fP
2237 \f(CW   directory security mask = <same as directory mask>\fP
2238 .IP 
2239 \fBExample:\fP
2240 \f(CW   directory security mask = 0777\fP
2241 .IP 
2242 .IP "\fBdns proxy (G)\fP" 
2243 .IP 
2244 Specifies that \fBnmbd\fP when acting as a WINS
2245 server and finding that a NetBIOS name has not been registered, should
2246 treat the NetBIOS name word-for-word as a DNS name and do a lookup
2247 with the DNS server for that name on behalf of the name-querying
2248 client\&.
2249 .IP 
2250 Note that the maximum length for a NetBIOS name is 15 characters, so
2251 the DNS name (or DNS alias) can likewise only be 15 characters,
2252 maximum\&.
2253 .IP 
2254 \fBnmbd\fP spawns a second copy of itself to do the
2255 DNS name lookup requests, as doing a name lookup is a blocking action\&.
2256 .IP 
2257 See also the parameter \fBwins support\fP\&.
2258 .IP 
2259 \fBDefault:\fP
2260 \f(CW   dns proxy = yes\fP
2261 .IP 
2262 \fBdomain admin group (G)\fP
2263 .IP 
2264 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2265 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2266 To work with the latest code builds that may have more support for
2267 Samba NT Domain Controller functionality please subscribe to the
2268 mailing list \fBSamba-ntdom\fP available by visiting the web page at
2269 http://lists\&.samba\&.org/
2270 .IP 
2271 .IP "\fBdomain admin users (G)\fP" 
2272 .IP 
2273 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2274 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2275 To work with the latest code builds that may have more support for
2276 Samba NT Domain Controller functionality please subscribe to the
2277 mailing list \fBSamba-ntdom\fP available by visiting the web page at
2278 http://lists\&.samba\&.org/
2279 .IP 
2280 .IP "\fBdomain groups (G)\fP" 
2281 .IP 
2282 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2283 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2284 To work with the latest code builds that may have more support for
2285 Samba NT Domain Controller functionality please subscribe to the
2286 mailing list \fBSamba-ntdom\fP available by visiting the web page at
2287 http://lists\&.samba\&.org/
2288 .IP 
2289 .IP "\fBdomain guest group (G)\fP" 
2290 .IP 
2291 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2292 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2293 To work with the latest code builds that may have more support for
2294 Samba NT Domain Controller functionality please subscribe to the
2295 mailing list \fBSamba-ntdom\fP available by visiting the web page at 
2296 http://lists\&.samba\&.org/
2297 .IP 
2298 .IP "\fBdomain guest users (G)\fP" 
2299 .IP 
2300 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2301 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2302 To work with the latest code builds that may have more support for
2303 Samba NT Domain Controller functionality please subscribe to the
2304 mailing list \fBSamba-ntdom\fP available by visiting the web page at
2305 http://lists\&.samba\&.org/
2306 .IP 
2307 .IP "\fBdomain logons (G)\fP" 
2308 .IP 
2309 If set to true, the Samba server will serve Windows 95/98 Domain
2310 logons for the \fBworkgroup\fP it is in\&. For more
2311 details on setting up this feature see the file DOMAINS\&.txt in the
2312 Samba documentation directory \f(CWdocs/\fP shipped with the source code\&.
2313 .IP 
2314 Note that Win95/98 Domain logons are \fINOT\fP the same as Windows
2315 NT Domain logons\&. NT Domain logons require a Primary Domain Controller
2316 (PDC) for the Domain\&. It is intended that in a future release Samba
2317 will be able to provide this functionality for Windows NT clients
2318 also\&.
2319 .IP 
2320 \fBDefault:\fP
2321 \f(CW   domain logons = no\fP
2322 .IP 
2323 .IP "\fBdomain master (G)\fP" 
2324 .IP 
2325 Tell \fBnmbd\fP to enable WAN-wide browse list
2326 collation\&. Setting this option causes \fBnmbd\fP to
2327 claim a special domain specific NetBIOS name that identifies it as a
2328 domain master browser for its given
2329 \fBworkgroup\fP\&. Local master browsers in the same
2330 \fBworkgroup\fP on broadcast-isolated subnets will give
2331 this \fBnmbd\fP their local browse lists, and then
2332 ask \fBsmbd\fP for a complete copy of the browse list
2333 for the whole wide area network\&.  Browser clients will then contact
2334 their local master browser, and will receive the domain-wide browse
2335 list, instead of just the list for their broadcast-isolated subnet\&.
2336 .IP 
2337 Note that Windows NT Primary Domain Controllers expect to be able to
2338 claim this \fBworkgroup\fP specific special NetBIOS
2339 name that identifies them as domain master browsers for that
2340 \fBworkgroup\fP by default (i\&.e\&. there is no way to
2341 prevent a Windows NT PDC from attempting to do this)\&. This means that
2342 if this parameter is set and \fBnmbd\fP claims the
2343 special name for a \fBworkgroup\fP before a Windows NT
2344 PDC is able to do so then cross subnet browsing will behave strangely
2345 and may fail\&.
2346 .IP 
2347 \fBDefault:\fP
2348 \f(CW   domain master = no\fP
2349 .IP 
2350 .IP "\fBdont descend (S)\fP" 
2351 .IP 
2352 There are certain directories on some systems (e\&.g\&., the \f(CW/proc\fP tree
2353 under Linux) that are either not of interest to clients or are
2354 infinitely deep (recursive)\&. This parameter allows you to specify a
2355 comma-delimited list of directories that the server should always show
2356 as empty\&.
2357 .IP 
2358 Note that Samba can be very fussy about the exact format of the "dont
2359 descend" entries\&. For example you may need \f(CW"\&./proc"\fP instead of
2360 just \f(CW"/proc"\fP\&. Experimentation is the best policy :-)
2361 .IP 
2362 \fBDefault:\fP
2363 \f(CW   none (i\&.e\&., all directories are OK to descend)\fP
2364 .IP 
2365 \fBExample:\fP
2366 \f(CW   dont descend = /proc,/dev\fP
2367 .IP 
2368 .IP "\fBdos filetime resolution (S)\fP" 
2369 .IP 
2370 Under the DOS and Windows FAT filesystem, the finest granularity on
2371 time resolution is two seconds\&. Setting this parameter for a share
2372 causes Samba to round the reported time down to the nearest two second
2373 boundary when a query call that requires one second resolution is made
2374 to \fBsmbd\fP\&.
2375 .IP 
2376 This option is mainly used as a compatibility option for Visual C++
2377 when used against Samba shares\&. If oplocks are enabled on a share,
2378 Visual C++ uses two different time reading calls to check if a file
2379 has changed since it was last read\&. One of these calls uses a
2380 one-second granularity, the other uses a two second granularity\&. As
2381 the two second call rounds any odd second down, then if the file has a
2382 timestamp of an odd number of seconds then the two timestamps will not
2383 match and Visual C++ will keep reporting the file has changed\&. Setting
2384 this option causes the two timestamps to match, and Visual C++ is
2385 happy\&.
2386 .IP 
2387 \fBDefault:\fP
2388 \f(CW   dos filetime resolution = False\fP
2389 .IP 
2390 \fBExample:\fP
2391 \f(CW   dos filetime resolution = True\fP
2392 .IP 
2393 .IP "\fBdos filetimes (S)\fP" 
2394 .IP 
2395 Under DOS and Windows, if a user can write to a file they can change
2396 the timestamp on it\&. Under POSIX semantics, only the owner of the file
2397 or root may change the timestamp\&. By default, Samba runs with POSIX
2398 semantics and refuses to change the timestamp on a file if the user
2399 smbd is acting on behalf of is not the file owner\&. Setting this option
2400 to True allows DOS semantics and smbd will change the file timestamp as
2401 DOS requires\&.
2402 .IP 
2403 \fBDefault:\fP
2404 \f(CW   dos filetimes = False\fP
2405 .IP 
2406 \fBExample:\fP
2407 \f(CW   dos filetimes = True\fP
2408 .IP 
2409 .IP "\fBencrypt passwords (G)\fP" 
2410 .IP 
2411 This boolean controls whether encrypted passwords will be negotiated
2412 with the client\&. Note that Windows NT 4\&.0 SP3 and above and also
2413 Windows 98 will by default expect encrypted passwords unless a
2414 registry entry is changed\&. To use encrypted passwords in Samba see the
2415 file ENCRYPTION\&.txt in the Samba documentation directory \f(CWdocs/\fP
2416 shipped with the source code\&.
2417 .IP 
2418 In order for encrypted passwords to work correctly
2419 \fBsmbd\fP must either have access to a local
2420 \fBsmbpasswd (5)\fP file (see the
2421 \fBsmbpasswd (8)\fP program for information on
2422 how to set up and maintain this file), or set the
2423 \fBsecurity=\fP parameter to either
2424 \fB"server"\fP or
2425 \fB"domain"\fP which causes
2426 \fBsmbd\fP to authenticate against another server\&.
2427 .IP 
2428 .IP "\fBexec (S)\fP" 
2429 .IP 
2430 This is a synonym for \fBpreexec\fP\&.
2431 .IP 
2432 .IP "\fBfake directory create times (S)\fP" 
2433 .IP 
2434 NTFS and Windows VFAT file systems keep a create time for all files
2435 and directories\&. This is not the same as the ctime - status change
2436 time - that Unix keeps, so Samba by default reports the earliest of
2437 the various times Unix does keep\&. Setting this parameter for a share
2438 causes Samba to always report midnight 1-1-1980 as the create time for
2439 directories\&.
2440 .IP 
2441 This option is mainly used as a compatibility option for Visual C++
2442 when used against Samba shares\&. Visual C++ generated makefiles have
2443 the object directory as a dependency for each object file, and a make
2444 rule to create the directory\&. Also, when NMAKE compares timestamps it
2445 uses the creation time when examining a directory\&. Thus the object
2446 directory will be created if it does not exist, but once it does exist
2447 it will always have an earlier timestamp than the object files it
2448 contains\&.
2449 .IP 
2450 However, Unix time semantics mean that the create time reported by
2451 Samba will be updated whenever a file is created or deleted in the
2452 directory\&. NMAKE therefore finds all object files in the object
2453 directory bar the last one built are out of date compared to the
2454 directory and rebuilds them\&. Enabling this option ensures directories
2455 always predate their contents and an NMAKE build will proceed as
2456 expected\&.
2457 .IP 
2458 \fBDefault:\fP
2459 \f(CW   fake directory create times = False\fP
2460 .IP 
2461 \fBExample:\fP
2462 \f(CW   fake directory create times = True\fP
2463 .IP 
2464 .IP "\fBfake oplocks (S)\fP" 
2465 .IP 
2466 Oplocks are the way that SMB clients get permission from a server to
2467 locally cache file operations\&. If a server grants an oplock
2468 (opportunistic lock) then the client is free to assume that it is the
2469 only one accessing the file and it will aggressively cache file
2470 data\&. With some oplock types the client may even cache file open/close
2471 operations\&. This can give enormous performance benefits\&.
2472 .IP 
2473 When you set \f(CW"fake oplocks = yes"\fP \fBsmbd\fP will
2474 always grant oplock requests no matter how many clients are using the
2475 file\&.
2476 .IP 
2477 It is generally much better to use the real \fBoplocks\fP
2478 support rather than this parameter\&.
2479 .IP 
2480 If you enable this option on all read-only shares or shares that you
2481 know will only be accessed from one client at a time such as
2482 physically read-only media like CDROMs, you will see a big performance
2483 improvement on many operations\&. If you enable this option on shares
2484 where multiple clients may be accessing the files read-write at the
2485 same time you can get data corruption\&. Use this option carefully!
2486 .IP 
2487 This option is disabled by default\&.
2488 .IP 
2489 .IP "\fBfollow symlinks (S)\fP" 
2490 .IP 
2491 This parameter allows the Samba administrator to stop
2492 \fBsmbd\fP from following symbolic links in a
2493 particular share\&. Setting this parameter to \fI"No"\fP prevents any file
2494 or directory that is a symbolic link from being followed (the user
2495 will get an error)\&.  This option is very useful to stop users from
2496 adding a symbolic link to \f(CW/etc/passwd\fP in their home directory for
2497 instance\&.  However it will slow filename lookups down slightly\&.
2498 .IP 
2499 This option is enabled (i\&.e\&. \fBsmbd\fP will follow
2500 symbolic links) by default\&.
2501 .IP 
2502 .IP "\fBforce create mode (S)\fP" 
2503 .IP 
2504 This parameter specifies a set of UNIX mode bit permissions that will
2505 \fI*always*\fP be set on a file by Samba\&. This is done by bitwise
2506 \'OR\'ing these bits onto the mode bits of a file that is being created
2507 or having its permissions changed\&. The default for this parameter is
2508 (in octal) 000\&. The modes in this parameter are bitwise \'OR\'ed onto
2509 the file mode after the mask set in the \fB"create
2510 mask"\fP parameter is applied\&.
2511 .IP 
2512 See also the parameter \fB"create mask"\fP for details
2513 on masking mode bits on files\&.
2514 .IP 
2515 See also the \fB"inherit permissions"\fP parameter\&.
2516 .IP 
2517 \fBDefault:\fP
2518 \f(CW   force create mode = 000\fP
2519 .IP 
2520 \fBExample:\fP
2521 \f(CW   force create mode = 0755\fP
2522 .IP 
2523 would force all created files to have read and execute permissions set
2524 for \'group\' and \'other\' as well as the read/write/execute bits set for
2525 the \'user\'\&.
2526 .IP 
2527 .IP "\fBforce directory mode (S)\fP" 
2528 .IP 
2529 This parameter specifies a set of UNIX mode bit permissions that will
2530 \fI*always*\fP be set on a directory created by Samba\&. This is done by
2531 bitwise \'OR\'ing these bits onto the mode bits of a directory that is
2532 being created\&. The default for this parameter is (in octal) 0000 which
2533 will not add any extra permission bits to a created directory\&. This
2534 operation is done after the mode mask in the parameter
2535 \fB"directory mask"\fP is applied\&.
2536 .IP 
2537 See also the parameter \fB"directory mask"\fP for
2538 details on masking mode bits on created directories\&.
2539 .IP 
2540 See also the \fB"inherit permissions"\fP parameter\&.
2541 .IP 
2542 \fBDefault:\fP
2543 \f(CW   force directory mode = 000\fP
2544 .IP 
2545 \fBExample:\fP
2546 \f(CW   force directory mode = 0755\fP
2547 .IP 
2548 would force all created directories to have read and execute
2549 permissions set for \'group\' and \'other\' as well as the
2550 read/write/execute bits set for the \'user\'\&.
2551 .IP 
2552 .IP "\fBforce directory security mode (S)\fP" 
2553 .IP 
2554 This parameter controls what UNIX permission bits can be modified when
2555 a Windows NT client is manipulating the UNIX permission on a directory
2556 using the native NT security dialog box\&.
2557 .IP 
2558 This parameter is applied as a mask (OR\'ed with) to the changed
2559 permission bits, thus forcing any bits in this mask that the user may
2560 have modified to be on\&. Essentially, one bits in this mask may be
2561 treated as a set of bits that, when modifying security on a directory,
2562 the user has always set to be \'on\'\&.
2563 .IP 
2564 If not set explicitly this parameter is set to the same value as the
2565 \fBforce directory mode\fP parameter\&. To allow
2566 a user to modify all the user/group/world permissions on a directory,
2567 with restrictions set this parameter to 000\&.
2568 .IP 
2569 \fINote\fP that users who can access the Samba server through other
2570 means can easily bypass this restriction, so it is primarily
2571 useful for standalone "appliance" systems\&.  Administrators of
2572 most normal systems will probably want to set it to 0000\&.
2573 .IP 
2574 See also the \fBdirectory security mask\fP,
2575 \fBsecurity mask\fP, \fBforce security
2576 mode\fP parameters\&.
2577 .IP 
2578 \fBDefault:\fP
2579 \f(CW   force directory security mode = <same as force directory mode>\fP
2580 .IP 
2581 \fBExample:\fP
2582 \f(CW   force directory security mode = 0\fP
2583 .IP 
2584 .IP "\fBforce group (S)\fP" 
2585 .IP 
2586 This specifies a UNIX group name that will be assigned as the default
2587 primary group for all users connecting to this service\&. This is useful
2588 for sharing files by ensuring that all access to files on service will
2589 use the named group for their permissions checking\&. Thus, by assigning
2590 permissions for this group to the files and directories within this
2591 service the Samba administrator can restrict or allow sharing of these
2592 files\&.
2593 .IP 
2594 In Samba 2\&.0\&.5 and above this parameter has extended functionality in the following
2595 way\&. If the group name listed here has a \'+\' character prepended to it
2596 then the current user accessing the share only has the primary group 
2597 default assigned to this group if they are already assigned as a member
2598 of that group\&. This allows an administrator to decide that only users
2599 who are already in a particular group will create files with group 
2600 ownership set to that group\&. This gives a finer granularity of ownership
2601 assignment\&. For example, the setting \f(CWforce group = +sys\fP means
2602 that only users who are already in group sys will have their default
2603 primary group assigned to sys when accessing this Samba share\&. All
2604 other users will retain their ordinary primary group\&.
2605 .IP 
2606 If the \fB"force user"\fP parameter is also set the
2607 group specified in \fBforce group\fP will override the primary group
2608 set in \fB"force user"\fP\&.
2609 .IP 
2610 See also \fB"force user"\fP
2611 .IP 
2612 \fBDefault:\fP
2613 \f(CW   no forced group\fP
2614 .IP 
2615 \fBExample:\fP
2616 \f(CW   force group = agroup\fP
2617 .IP 
2618 .IP "\fBforce security mode (S)\fP" 
2619 .IP 
2620 This parameter controls what UNIX permission bits can be modified when
2621 a Windows NT client is manipulating the UNIX permission on a file
2622 using the native NT security dialog box\&.
2623 .IP 
2624 This parameter is applied as a mask (OR\'ed with) to the changed
2625 permission bits, thus forcing any bits in this mask that the user may
2626 have modified to be on\&. Essentially, one bits in this mask may be
2627 treated as a set of bits that, when modifying security on a file, the
2628 user has always set to be \'on\'\&.
2629 .IP 
2630 If not set explicitly this parameter is set to the same value as the
2631 \fBforce create mode\fP parameter\&. To allow
2632 a user to modify all the user/group/world permissions on a file,
2633 with no restrictions set this parameter to 000\&.
2634 .IP 
2635 \fINote\fP that users who can access the Samba server through other
2636 means can easily bypass this restriction, so it is primarily
2637 useful for standalone "appliance" systems\&.  Administrators of
2638 most normal systems will probably want to set it to 0000\&.
2639 .IP 
2640 See also the \fBforce directory security
2641 mode\fP, \fBdirectory security
2642 mask\fP, \fBsecurity mask\fP
2643 parameters\&.
2644 .IP 
2645 \fBDefault:\fP
2646 \f(CW   force security mode = <same as force create mode>\fP
2647 .IP 
2648 \fBExample:\fP
2649 \f(CW   force security mode = 0\fP
2650 .IP 
2651 .IP "\fBforce user (S)\fP" 
2652 .IP 
2653 This specifies a UNIX user name that will be assigned as the default
2654 user for all users connecting to this service\&. This is useful for
2655 sharing files\&. You should also use it carefully as using it
2656 incorrectly can cause security problems\&.
2657 .IP 
2658 This user name only gets used once a connection is established\&. Thus
2659 clients still need to connect as a valid user and supply a valid
2660 password\&. Once connected, all file operations will be performed as the
2661 \f(CW"forced user"\fP, no matter what username the client connected as\&.
2662 .IP 
2663 This can be very useful\&.
2664 .IP 
2665 In Samba 2\&.0\&.5 and above this parameter also causes the primary
2666 group of the forced user to be used as the primary group for all
2667 file activity\&. Prior to 2\&.0\&.5 the primary group was left as the
2668 primary group of the connecting user (this was a bug)\&.
2669 .IP 
2670 See also \fB"force group"\fP
2671 .IP 
2672 \fBDefault:\fP
2673 \f(CW   no forced user\fP
2674 .IP 
2675 \fBExample:\fP
2676 \f(CW   force user = auser\fP
2677 .IP 
2678 .IP "\fBfstype (S)\fP" 
2679 .IP 
2680 This parameter allows the administrator to configure the string that
2681 specifies the type of filesystem a share is using that is reported by
2682 \fBsmbd\fP when a client queries the filesystem type
2683 for a share\&. The default type is \fB"NTFS"\fP for compatibility with
2684 Windows NT but this can be changed to other strings such as "Samba" or
2685 "FAT" if required\&.
2686 .IP 
2687 \fBDefault:\fP
2688 \f(CW   fstype = NTFS\fP
2689 .IP 
2690 \fBExample:\fP
2691 \f(CW   fstype = Samba\fP
2692 .IP 
2693 .IP "\fBgetwd cache (G)\fP" 
2694 .IP 
2695 This is a tuning option\&. When this is enabled a caching algorithm
2696 will be used to reduce the time taken for getwd() calls\&. This can have
2697 a significant impact on performance, especially when the
2698 \fBwidelinks\fP parameter is set to False\&.
2699 .IP 
2700 \fBDefault:\fP
2701 \f(CW   getwd cache = No\fP
2702 .IP 
2703 \fBExample:\fP
2704 \f(CW   getwd cache = Yes\fP
2705 .IP 
2706 .IP "\fBgroup (S)\fP" 
2707 .IP 
2708 Synonym for \fB"force group"\fP\&.
2709 .IP 
2710 .IP "\fBguest account (S)\fP" 
2711 .IP 
2712 This is a username which will be used for access to services which are
2713 specified as \fB\'guest ok\'\fP (see below)\&. Whatever
2714 privileges this user has will be available to any client connecting to
2715 the guest service\&. Typically this user will exist in the password
2716 file, but will not have a valid login\&. The user account \fB"ftp"\fP is
2717 often a good choice for this parameter\&. If a username is specified in
2718 a given service, the specified username overrides this one\&.
2719 .IP 
2720 One some systems the default guest account "nobody" may not be able to
2721 print\&. Use another account in this case\&. You should test this by
2722 trying to log in as your guest user (perhaps by using the \f(CW"su -"\fP
2723 command) and trying to print using the system print command such as
2724 \fBlpr (1)\fP or \fBlp (1)\fP\&.
2725 .IP 
2726 \fBDefault:\fP
2727 \f(CW   specified at compile time, usually "nobody"\fP
2728 .IP 
2729 \fBExample:\fP
2730 \f(CW   guest account = ftp\fP
2731 .IP 
2732 .IP "\fBguest ok (S)\fP" 
2733 .IP 
2734 If this parameter is \fI\'yes\'\fP for a service, then no password is
2735 required to connect to the service\&. Privileges will be those of the
2736 \fBguest account\fP\&.
2737 .IP 
2738 See the section below on \fBsecurity\fP for more
2739 information about this option\&.
2740 .IP 
2741 \fBDefault:\fP
2742 \f(CW   guest ok = no\fP
2743 .IP 
2744 \fBExample:\fP
2745 \f(CW   guest ok = yes\fP
2746 .IP 
2747 .IP "\fBguest only (S)\fP" 
2748 .IP 
2749 If this parameter is \fI\'yes\'\fP for a service, then only guest
2750 connections to the service are permitted\&. This parameter will have no
2751 affect if \fB"guest ok"\fP or \fB"public"\fP
2752 is not set for the service\&.
2753 .IP 
2754 See the section below on \fBsecurity\fP for more
2755 information about this option\&.
2756 .IP 
2757 \fBDefault:\fP
2758 \f(CW   guest only = no\fP
2759 .IP 
2760 \fBExample:\fP
2761 \f(CW   guest only = yes\fP
2762 .IP 
2763 .IP "\fBhide dot files (S)\fP" 
2764 .IP 
2765 This is a boolean parameter that controls whether files starting with
2766 a dot appear as hidden files\&.
2767 .IP 
2768 \fBDefault:\fP
2769 \f(CW   hide dot files = yes\fP
2770 .IP 
2771 \fBExample:\fP
2772 \f(CW   hide dot files = no\fP
2773 .IP 
2774 .IP "\fBhide files(S)\fP" 
2775 .IP 
2776 This is a list of files or directories that are not visible but are
2777 accessible\&.  The DOS \'hidden\' attribute is applied to any files or
2778 directories that match\&.
2779 .IP 
2780 Each entry in the list must be separated by a \f(CW\'/\'\fP, which allows
2781 spaces to be included in the entry\&.  \f(CW\'*\'\fP and \f(CW\'?\'\fP can be used
2782 to specify multiple files or directories as in DOS wildcards\&.
2783 .IP 
2784 Each entry must be a Unix path, not a DOS path and must not include the 
2785 Unix directory separator \f(CW\'/\'\fP\&.
2786 .IP 
2787 Note that the case sensitivity option is applicable in hiding files\&.
2788 .IP 
2789 Setting this parameter will affect the performance of Samba, as it
2790 will be forced to check all files and directories for a match as they
2791 are scanned\&.
2792 .IP 
2793 See also \fB"hide dot files"\fP, \fB"veto
2794 files"\fP and \fB"case sensitive"\fP\&.
2795 .IP 
2796 \fBDefault\fP
2798 .nf 
2801         No files or directories are hidden by this option (dot files are
2802         hidden by default because of the "hide dot files" option)\&.
2804 .fi 
2807 .IP 
2808 \fBExample\fP
2809 \f(CW   hide files = /\&.*/DesktopFolderDB/TrashFor%m/resource\&.frk/\fP
2810 .IP 
2811 The above example is based on files that the Macintosh SMB client
2812 (DAVE) available from \fBThursby\fP creates for
2813 internal use, and also still hides all files beginning with a dot\&.
2814 .IP 
2815 .IP "\fBhomedir map (G)\fP" 
2816 .IP 
2817 If \fB"nis homedir"\fP is true, and
2818 \fBsmbd\fP is also acting as a Win95/98 \fBlogon
2819 server\fP then this parameter specifies the NIS (or YP)
2820 map from which the server for the user\'s home directory should be
2821 extracted\&.  At present, only the Sun auto\&.home map format is
2822 understood\&. The form of the map is:
2823 .IP 
2824 \f(CWusername   server:/some/file/system\fP
2825 .IP 
2826 and the program will extract the servername from before the first
2827 \f(CW\':\'\fP\&.  There should probably be a better parsing system that copes
2828 with different map formats and also Amd (another automounter) maps\&.
2829 .IP 
2830 NB: A working NIS is required on the system for this option to work\&.
2831 .IP 
2832 See also \fB"nis homedir"\fP, \fBdomain
2833 logons\fP\&.
2834 .IP 
2835 \fBDefault:\fP
2836 \f(CW   homedir map = auto\&.home\fP
2837 .IP 
2838 \fBExample:\fP
2839 \f(CW   homedir map = amd\&.homedir\fP
2840 .IP 
2841 .IP "\fBhosts allow (S)\fP" 
2842 .IP 
2843 A synonym for this parameter is \fB\'allow hosts\'\fP
2844 .IP 
2845 This parameter is a comma, space, or tab delimited set of hosts which
2846 are permitted to access a service\&.
2847 .IP 
2848 If specified in the \fB[global]\fP section then it will
2849 apply to all services, regardless of whether the individual service
2850 has a different setting\&.
2851 .IP 
2852 You can specify the hosts by name or IP number\&. For example, you could
2853 restrict access to only the hosts on a Class C subnet with something
2854 like \f(CW"allow hosts = 150\&.203\&.5\&."\fP\&. The full syntax of the list is
2855 described in the man page \fBhosts_access (5)\fP\&. Note that this man
2856 page may not be present on your system, so a brief description will
2857 be given here also\&.
2858 .IP 
2859 Note that the localhost address 127\&.0\&.0\&.1 will always be allowed
2860 access unless specifically denied by a "hosts deny" option\&.
2861 .IP 
2862 You can also specify hosts by network/netmask pairs and by netgroup
2863 names if your system supports netgroups\&. The \fIEXCEPT\fP keyword can also
2864 be used to limit a wildcard list\&. The following examples may provide
2865 some help:
2866 .IP 
2867 \fBExample 1\fP: allow all IPs in 150\&.203\&.*\&.* except one
2868 .IP 
2869 \f(CW   hosts allow = 150\&.203\&. EXCEPT 150\&.203\&.6\&.66\fP
2870 .IP 
2871 \fBExample 2\fP: allow hosts that match the given network/netmask
2872 .IP 
2873 \f(CW   hosts allow = 150\&.203\&.15\&.0/255\&.255\&.255\&.0\fP
2874 .IP 
2875 \fBExample 3\fP: allow a couple of hosts
2876 .IP 
2877 \f(CW   hosts allow = lapland, arvidsjaur\fP
2878 .IP 
2879 \fBExample 4\fP: allow only hosts in NIS netgroup "foonet", but 
2880 deny access from one particular host
2881 .IP 
2882 \f(CW   hosts allow = @foonet\fP
2883 .IP 
2884 \f(CW   hosts deny = pirate\fP
2885 .IP 
2886 Note that access still requires suitable user-level passwords\&.
2887 .IP 
2888 See \fBtestparm (1)\fP for a way of testing your
2889 host access to see if it does what you expect\&.
2890 .IP 
2891 \fBDefault:\fP
2892 \f(CW   none (i\&.e\&., all hosts permitted access)\fP
2893 .IP 
2894 \fBExample:\fP
2895 \f(CW   allow hosts = 150\&.203\&.5\&. myhost\&.mynet\&.edu\&.au\fP
2896 .IP 
2897 .IP "\fBhosts deny (S)\fP" 
2898 .IP 
2899 The opposite of \fB\'hosts allow\'\fP - hosts listed
2900 here are \fINOT\fP permitted access to services unless the specific
2901 services have their own lists to override this one\&. Where the lists
2902 conflict, the \fB\'allow\'\fP list takes precedence\&.
2903 .IP 
2904 \fBDefault:\fP
2905 \f(CW   none (i\&.e\&., no hosts specifically excluded)\fP
2906 .IP 
2907 \fBExample:\fP
2908 \f(CW   hosts deny = 150\&.203\&.4\&. badhost\&.mynet\&.edu\&.au\fP
2909 .IP 
2910 .IP "\fBhosts equiv (G)\fP" 
2911 .IP 
2912 If this global parameter is a non-null string, it specifies the name
2913 of a file to read for the names of hosts and users who will be allowed
2914 access without specifying a password\&.
2915 .IP 
2916 This is not be confused with \fBhosts allow\fP which
2917 is about hosts access to services and is more useful for guest
2918 services\&. \fBhosts equiv\fP may be useful for NT clients which will not
2919 supply passwords to samba\&.
2920 .IP 
2921 NOTE: The use of \fBhosts equiv\fP can be a major security hole\&. This is
2922 because you are trusting the PC to supply the correct username\&. It is
2923 very easy to get a PC to supply a false username\&. I recommend that the
2924 \fBhosts equiv\fP option be only used if you really know what you are
2925 doing, or perhaps on a home network where you trust your spouse and
2926 kids\&. And only if you \fIreally\fP trust them :-)\&.
2927 .IP 
2928 \fBDefault\fP
2929 \f(CW   No host equivalences\fP
2930 .IP 
2931 \fBExample\fP
2932 \f(CW   hosts equiv = /etc/hosts\&.equiv\fP
2933 .IP 
2934 .IP "\fBinclude (G)\fP" 
2935 .IP 
2936 This allows you to include one config file inside another\&.  The file
2937 is included literally, as though typed in place\&.
2938 .IP 
2939 It takes the standard substitutions, except \fB%u\fP,
2940 \fB%P\fP and \fB%S\fP\&.
2941 .IP 
2942 .IP "\fBinherit permissions (S)\fP" 
2943 .IP 
2944 The permissions on new files and directories are normally governed by
2945 \fB"create mask"\fP,
2946 \fB"directory mask"\fP,
2947 \fB"force create mode"\fP and
2948 \fB"force directory mode"\fP
2949 but the boolean inherit permissions parameter overrides this\&.
2950 .IP 
2951 New directories inherit the mode of the parent directory,
2952 including bits such as setgid\&.
2953 .IP 
2954 New files inherit their read/write bits from the parent directory\&.
2955 Their execute bits continue to be determined by
2956 \fB"map archive"\fP,
2957 \fB"map hidden"\fP and
2958 \fB"map system"\fP as usual\&.
2959 .IP 
2960 Note that the setuid bit is *never* set via inheritance
2961 (the code explicitly prohibits this)\&.
2962 .IP 
2963 This can be particularly useful on large systems with many users,
2964 perhaps several thousand,
2965 to allow a single \fB[homes]\fP share to be used flexibly by each user\&.
2966 .IP 
2967 See also \fB"create mask"\fP, \fB"directory mask"\fP,
2968 \fB"force create mode"\fP and
2969 \fB"force directory mode"\fP\&.
2970 .IP 
2971 \fBDefault\fP
2972 \f(CW   inherit permissions = no\fP
2973 .IP 
2974 \fBExample\fP
2975 \f(CW   inherit permissions = yes\fP
2976 .IP 
2977 .IP "\fBinterfaces (G)\fP" 
2978 .IP 
2979 This option allows you to override the default network interfaces list
2980 that Samba will use for browsing, name registration and other NBT
2981 traffic\&. By default Samba will query the kernel for the list of all
2982 active interfaces and use any interfaces except 127\&.0\&.0\&.1 that are
2983 broadcast capable\&.
2984 .IP 
2985 The option takes a list of interface strings\&. Each string can be in
2986 any of the following forms:
2987 .IP 
2988 .IP o 
2989 a network interface name (such as eth0)\&. This may include
2990 shell-like wildcards so eth* will match any interface starting
2991 with the substring "eth"
2992 .IP o 
2993 an IP address\&. In this case the netmask is determined
2994 from the list of interfaces obtained from the kernel
2995 .IP o 
2996 an IP/mask pair\&. 
2997 .IP o 
2998 a broadcast/mask pair\&. 
2999 .IP 
3000 The "mask" parameters can either be a bit length (such as 24 for a C
3001 class network) or a full netmask in dotted decmal form\&.
3002 .IP 
3003 The "IP" parameters above can either be a full dotted decimal IP
3004 address or a hostname which will be looked up via the OSes normal
3005 hostname resolution mechanisms\&.
3006 .IP 
3007 For example, the following line:
3008 .IP 
3009 \f(CWinterfaces = eth0 192\&.168\&.2\&.10/24 192\&.168\&.3\&.10/255\&.255\&.255\&.0\fP
3010 .IP 
3011 would configure three network interfaces corresponding to the eth0
3012 device and IP addresses 192\&.168\&.2\&.10 and 192\&.168\&.3\&.10\&. The netmasks of
3013 the latter two interfaces would be set to 255\&.255\&.255\&.0\&.
3014 .IP 
3015 See also \fB"bind interfaces only"\fP\&.
3016 .IP 
3017 .IP "\fBinvalid users (S)\fP" 
3018 .IP 
3019 This is a list of users that should not be allowed to login to this
3020 service\&. This is really a \fI"paranoid"\fP check to absolutely ensure an
3021 improper setting does not breach your security\&.
3022 .IP 
3023 A name starting with a \f(CW\'@\'\fP is interpreted as an NIS netgroup first
3024 (if your system supports NIS), and then as a UNIX group if the name
3025 was not found in the NIS netgroup database\&.
3026 .IP 
3027 A name starting with \f(CW\'+\'\fP is interpreted only by looking in the
3028 UNIX group database\&. A name starting with \f(CW\'&\'\fP is interpreted only
3029 by looking in the NIS netgroup database (this requires NIS to be
3030 working on your system)\&. The characters \f(CW\'+\'\fP and \f(CW\'&\'\fP may be
3031 used at the start of the name in either order so the value
3032 \f(CW"+&group"\fP means check the UNIX group database, followed by the NIS
3033 netgroup database, and the value \f(CW"&+group"\fP means check the NIS
3034 netgroup database, followed by the UNIX group database (the same as
3035 the \f(CW\'@\'\fP prefix)\&.
3036 .IP 
3037 The current servicename is substituted for
3038 \fB%S\fP\&. This is useful in the \fB[homes]\fP
3039 section\&.
3040 .IP 
3041 See also \fB"valid users"\fP\&.
3042 .IP 
3043 \fBDefault:\fP
3044 \f(CW   No invalid users\fP
3045 .IP 
3046 \fBExample:\fP
3047 \f(CW   invalid users = root fred admin @wheel\fP
3048 .IP 
3049 .IP "\fBkeepalive (G)\fP" 
3050 .IP 
3051 The value of the parameter (an integer) represents the number of
3052 seconds between \fB\'keepalive\'\fP packets\&. If this parameter is zero, no
3053 keepalive packets will be sent\&. Keepalive packets, if sent, allow the
3054 server to tell whether a client is still present and responding\&.
3055 .IP 
3056 Keepalives should, in general, not be needed if the socket being used
3057 has the SO_KEEPALIVE attribute set on it (see \fB"socket
3058 options"\fP)\&. Basically you should only use this option
3059 if you strike difficulties\&.
3060 .IP 
3061 \fBDefault:\fP
3062 \f(CW   keepalive = 0\fP
3063 .IP 
3064 \fBExample:\fP
3065 \f(CW   keepalive = 60\fP
3066 .IP 
3067 .IP "\fBkernel oplocks (G)\fP" 
3068 .IP 
3069 For UNIXs that support kernel based \fBoplocks\fP
3070 (currently only IRIX but hopefully also Linux and FreeBSD soon) this
3071 parameter allows the use of them to be turned on or off\&.
3072 .IP 
3073 Kernel oplocks support allows Samba \fBoplocks\fP to be
3074 broken whenever a local UNIX process or NFS operation accesses a file
3075 that \fBsmbd\fP has oplocked\&. This allows complete
3076 data consistency between SMB/CIFS, NFS and local file access (and is a
3077 \fIvery\fP cool feature :-)\&.
3078 .IP 
3079 This parameter defaults to \fI"On"\fP on systems that have the support,
3080 and \fI"off"\fP on systems that don\'t\&. You should never need to touch
3081 this parameter\&.
3082 .IP 
3083 See also the \fB"oplocks"\fP and \fB"level2 oplocks"\fP
3084 parameters\&.
3085 .IP 
3086 .IP "\fBldap filter (G)\fP" 
3087 .IP 
3088 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
3089 password database stored on an LDAP server back-end\&. These options
3090 are only available if your version of Samba was configured with
3091 the \fB--with-ldap\fP option\&.
3092 .IP 
3093 This parameter specifies an LDAP search filter used to search for a
3094 user name in the LDAP database\&. It must contain the string
3095 \fB%u\fP which will be replaced with the user being
3096 searched for\&.
3097 .IP 
3098 \fBDefault:\fP
3099 \f(CW   empty string\&.\fP
3100 .IP 
3101 .IP "\fBldap port (G)\fP" 
3102 .IP 
3103 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
3104 password database stored on an LDAP server back-end\&. These options
3105 are only available if your version of Samba was configured with
3106 the \fB--with-ldap\fP option\&.
3107 .IP 
3108 This parameter specifies the TCP port number to use to contact
3109 the LDAP server on\&.
3110 .IP 
3111 \fBDefault:\fP
3112 \f(CW   ldap port = 389\&.\fP
3113 .IP 
3114 .IP "\fBldap root (G)\fP" 
3115 .IP 
3116 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
3117 password database stored on an LDAP server back-end\&. These options
3118 are only available if your version of Samba was configured with
3119 the \fB--with-ldap\fP option\&.
3120 .IP 
3121 This parameter specifies the entity to bind to the LDAP server
3122 as (essentially the LDAP username) in order to be able to perform
3123 queries and modifications on the LDAP database\&.
3124 .IP 
3125 See also \fBldap root passwd\fP\&.
3126 .IP 
3127 \fBDefault:\fP
3128 \f(CW   empty string (no user defined)\fP
3129 .IP 
3130 .IP "\fBldap root passwd (G)\fP" 
3131 .IP 
3132 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
3133 password database stored on an LDAP server back-end\&. These options
3134 are only available if your version of Samba was configured with
3135 the \fB--with-ldap\fP option\&.
3136 .IP 
3137 This parameter specifies the password for the entity to bind to the
3138 LDAP server as (the password for this LDAP username) in order to be
3139 able to perform queries and modifications on the LDAP database\&.
3140 .IP 
3141 \fIBUGS:\fP This parameter should \fINOT\fP be a readable parameter
3142 in the \fBsmb\&.conf\fP file and will be removed once a correct
3143 storage place is found\&.
3144 .IP 
3145 See also \fBldap root\fP\&.
3146 .IP 
3147 \fBDefault:\fP
3148 \f(CW   empty string\&.\fP
3149 .IP 
3150 .IP "\fBldap server (G)\fP" 
3151 .IP 
3152 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
3153 password database stored on an LDAP server back-end\&. These options
3154 are only available if your version of Samba was configured with
3155 the \fB--with-ldap\fP option\&.
3156 .IP 
3157 This parameter specifies the DNS name of the LDAP server to use
3158 for SMB/CIFS authentication purposes\&.
3159 .IP 
3160 \fBDefault:\fP
3161 \f(CW   ldap server = localhost\fP
3162 .IP 
3163 .IP "\fBldap suffix (G)\fP" 
3164 .IP 
3165 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
3166 password database stored on an LDAP server back-end\&. These options
3167 are only available if your version of Samba was configured with
3168 the \fB--with-ldap\fP option\&.
3169 .IP 
3170 This parameter specifies the \f(CW"dn"\fP or LDAP \fI"distinguished name"\fP
3171 that tells \fBsmbd\fP to start from when searching
3172 for an entry in the LDAP password database\&.
3173 .IP 
3174 \fBDefault:\fP
3175 \f(CW   empty string\&.\fP
3176 .IP 
3177 .IP "\fBlevel2 oplocks (S)\fP" 
3178 .IP 
3179 This parameter (new in Samba 2\&.0\&.5) controls whether Samba supports
3180 level2 (read-only) oplocks on a share\&. In Samba 2\&.0\&.5 this parameter
3181 defaults to "False" as the code is new, but will default to "True"
3182 in a later release\&.
3183 .IP 
3184 Level2, or read-only oplocks allow Windows NT clients that have an
3185 oplock on a file to downgrade from a read-write oplock to a read-only
3186 oplock once a second client opens the file (instead of releasing all
3187 oplocks on a second open, as in traditional, exclusive oplocks)\&. This
3188 allows all openers of the file that support level2 oplocks to cache
3189 the file for read-ahead only (ie\&. they may not cache writes or lock
3190 requests) and increases performance for many acesses of files that
3191 are not commonly written (such as application \&.EXE files)\&.
3192 .IP 
3193 Once one of the clients which have a read-only oplock writes to
3194 the file all clients are notified (no reply is needed or waited
3195 for) and told to break their oplocks to "none" and delete any
3196 read-ahead caches\&.
3197 .IP 
3198 It is recommended that this parameter be turned on to speed access
3199 to shared executables (and also to test the code :-)\&.
3200 .IP 
3201 For more discussions on level2 oplocks see the CIFS spec\&.
3202 .IP 
3203 Currently, if \fB"kernel oplocks"\fP are supported
3204 then level2 oplocks are not granted (even if this parameter is set
3205 to \f(CW"true"\fP)\&. Note also, the \fB"oplocks"\fP parameter must
3206 be set to "true" on this share in order for this parameter to have any
3207 effect\&.
3208 .IP 
3209 See also the \fB"oplocks"\fP and \fB"kernel oplocks"\fP parameters\&.
3210 .IP 
3211 \fBDefault:\fP
3212 \f(CW level2 oplocks = False\fP
3213 .IP 
3214 \fBExample:\fP
3215 \f(CW level2 oplocks = True\fP
3216 .IP 
3217 .IP "\fBlm announce (G)\fP" 
3218 .IP 
3219 This parameter determines if \fBnmbd\fP will produce
3220 Lanman announce broadcasts that are needed by \fBOS/2\fP clients in order
3221 for them to see the Samba server in their browse list\&. This parameter
3222 can have three values, \f(CW"true"\fP, \f(CW"false"\fP, or \f(CW"auto"\fP\&. The
3223 default is \f(CW"auto"\fP\&.  If set to \f(CW"false"\fP Samba will never produce
3224 these broadcasts\&. If set to \f(CW"true"\fP Samba will produce Lanman
3225 announce broadcasts at a frequency set by the parameter \fB"lm
3226 interval"\fP\&. If set to \f(CW"auto"\fP Samba will not send Lanman
3227 announce broadcasts by default but will listen for them\&. If it hears
3228 such a broadcast on the wire it will then start sending them at a
3229 frequency set by the parameter \fB"lm interval"\fP\&.
3230 .IP 
3231 See also \fB"lm interval"\fP\&.
3232 .IP 
3233 \fBDefault:\fP
3234 \f(CW   lm announce = auto\fP
3235 .IP 
3236 \fBExample:\fP
3237 \f(CW   lm announce = true\fP
3238 .IP 
3239 .IP "\fBlm interval (G)\fP" 
3240 .IP 
3241 If Samba is set to produce Lanman announce broadcasts needed by
3242 \fBOS/2\fP clients (see the \fB"lm announce"\fP
3243 parameter) then this parameter defines the frequency in seconds with
3244 which they will be made\&.  If this is set to zero then no Lanman
3245 announcements will be made despite the setting of the \fB"lm
3246 announce"\fP parameter\&.
3247 .IP 
3248 See also \fB"lm announce"\fP\&.
3249 .IP 
3250 \fBDefault:\fP
3251 \f(CW   lm interval = 60\fP
3252 .IP 
3253 \fBExample:\fP
3254 \f(CW   lm interval = 120\fP
3255 .IP 
3256 .IP "\fBload printers (G)\fP" 
3257 .IP 
3258 A boolean variable that controls whether all printers in the printcap
3259 will be loaded for browsing by default\&. See the
3260 \fB"printers"\fP section for more details\&.
3261 .IP 
3262 \fBDefault:\fP
3263 \f(CW   load printers = yes\fP
3264 .IP 
3265 \fBExample:\fP
3266 \f(CW   load printers = no\fP
3267 .IP 
3268 .IP "\fBlocal master (G)\fP" 
3269 .IP 
3270 This option allows \fBnmbd\fP to try and become a
3271 local master browser on a subnet\&. If set to False then
3272 \fBnmbd\fP will not attempt to become a local master
3273 browser on a subnet and will also lose in all browsing elections\&. By
3274 default this value is set to true\&. Setting this value to true doesn\'t
3275 mean that Samba will \fIbecome\fP the local master browser on a subnet,
3276 just that \fBnmbd\fP will \fIparticipate\fP in
3277 elections for local master browser\&.
3278 .IP 
3279 Setting this value to False will cause \fBnmbd\fP
3280 \fInever\fP to become a local master browser\&.
3281 .IP 
3282 \fBDefault:\fP
3283 \f(CW   local master = yes\fP
3284 .IP 
3285 .IP "\fBlock dir (G)\fP" 
3286 .IP 
3287 Synonym for \fB"lock directory"\fP\&.
3288 .IP 
3289 .IP "\fBlock directory (G)\fP" 
3290 .IP 
3291 This option specifies the directory where lock files will be placed\&.
3292 The lock files are used to implement the \fB"max
3293 connections"\fP option\&.
3294 .IP 
3295 \fBDefault:\fP
3296 \f(CW   lock directory = /tmp/samba\fP
3297 .IP 
3298 \fBExample:\fP
3299 \f(CW   lock directory = /usr/local/samba/var/locks\fP
3300 .IP 
3301 .IP "\fBlocking (S)\fP" 
3302 .IP 
3303 This controls whether or not locking will be performed by the server
3304 in response to lock requests from the client\&.
3305 .IP 
3306 If \f(CW"locking = no"\fP, all lock and unlock requests will appear to
3307 succeed and all lock queries will indicate that the queried lock is
3308 clear\&.
3309 .IP 
3310 If \f(CW"locking = yes"\fP, real locking will be performed by the server\&.
3311 .IP 
3312 This option \fImay\fP be useful for read-only filesystems which \fImay\fP
3313 not need locking (such as cdrom drives), although setting this
3314 parameter of \f(CW"no"\fP is not really recommended even in this case\&.
3315 .IP 
3316 Be careful about disabling locking either globally or in a specific
3317 service, as lack of locking may result in data corruption\&. You should
3318 never need to set this parameter\&.
3319 .IP 
3320 \fBDefault:\fP
3321 \f(CW   locking = yes\fP
3322 .IP 
3323 \fBExample:\fP
3324 \f(CW   locking = no\fP
3325 .IP 
3326 .IP "\fBlog file (G)\fP" 
3327 .IP 
3328 This options allows you to override the name of the Samba log file
3329 (also known as the debug file)\&.
3330 .IP 
3331 This option takes the standard substitutions, allowing you to have
3332 separate log files for each user or machine\&.
3333 .IP 
3334 \fBExample:\fP
3335 \f(CW   log file = /usr/local/samba/var/log\&.%m\fP
3336 .IP 
3337 .IP "\fBlog level (G)\fP" 
3338 .IP 
3339 Synonym for \fB"debug level"\fP\&.
3340 .IP 
3341 .IP "\fBlogon drive (G)\fP" 
3342 .IP 
3343 This parameter specifies the local path to which the home directory
3344 will be connected (see \fB"logon home"\fP) and is only
3345 used by NT Workstations\&. 
3346 .IP 
3347 Note that this option is only useful if Samba is set up as a
3348 \fBlogon server\fP\&.
3349 .IP 
3350 \fBExample:\fP
3351 \f(CW   logon drive = h:\fP
3352 .IP 
3353 .IP "\fBlogon home (G)\fP" 
3354 .IP 
3355 This parameter specifies the home directory location when a Win95/98 or
3356 NT Workstation logs into a Samba PDC\&.  It allows you to do 
3357 .IP 
3358 \f(CW"NET USE H: /HOME"\fP
3359 .IP 
3360 from a command prompt, for example\&.
3361 .IP 
3362 This option takes the standard substitutions, allowing you to have
3363 separate logon scripts for each user or machine\&.
3364 .IP 
3365 This parameter can be used with Win9X workstations to ensure that
3366 roaming profiles are stored in a subdirectory of the user\'s home
3367 directory\&.  This is done in the following way:
3368 .IP 
3369 \f(CW"     logon home = \e\e%L\e%U\eprofile"\fP
3370 .IP 
3371 This tells Samba to return the above string, with substitutions made
3372 when a client requests the info, generally in a NetUserGetInfo request\&.
3373 Win9X clients truncate the info to \e\eserver\eshare when a user does \f(CW"net use /home"\fP,
3374 but use the whole string when dealing with profiles\&.
3375 .IP 
3376 Note that in prior versions of Samba, the \f(CW"logon path"\fP was returned rather than
3377 \f(CW"logon home"\fP\&.  This broke \f(CW"net use /home"\fP but allowed profiles outside the 
3378 home directory\&.  The current implementation is correct, and can be used for profiles
3379 if you use the above trick\&.
3380 .IP 
3381 Note that this option is only useful if Samba is set up as a
3382 \fBlogon server\fP\&.
3383 .IP 
3384 \fBExample:\fP
3385 \f(CW   logon home = "\e\eremote_smb_server\e%U"\fP
3386 .IP 
3387 \fBDefault:\fP
3388 \f(CW   logon home = "\e\e%N\e%U"\fP
3389 .IP 
3390 .IP "\fBlogon path (G)\fP" 
3391 .IP 
3392 This parameter specifies the home directory where roaming profiles
3393 (NTuser\&.dat etc files for Windows NT) are stored\&.  Contrary to previous 
3394 versions of these manual pages, it has nothing to do with Win 9X roaming
3395 profiles\&.  To find out how to handle roaming profiles for Win 9X system, see 
3396 the \f(CW"logon home"\fP parameter\&.
3397 .IP 
3398 This option takes the standard substitutions, allowing you to have
3399 separate logon scripts for each user or machine\&.  It also specifies
3400 the directory from which the \f(CW"application data"\fP, (\f(CW"desktop"\fP, \f(CW"start menu"\fP,
3401 \f(CW"network neighborhood"\fP, \f(CW"programs"\fP and other folders, and their
3402 contents, are loaded and displayed on your Windows NT client\&.
3403 .IP 
3404 The share and the path must be readable by the user for the
3405 preferences and directories to be loaded onto the Windows NT
3406 client\&.  The share must be writeable when the logs in for the first
3407 time, in order that the Windows NT client can create the NTuser\&.dat
3408 and other directories\&.
3409 .IP 
3410 Thereafter, the directories and any of the contents can, if required, be
3411 made read-only\&.  It is not advisable that the NTuser\&.dat file be made
3412 read-only - rename it to NTuser\&.man to achieve the desired effect (a
3413 \fIMAN\fPdatory profile)\&. 
3414 .IP 
3415 Windows clients can sometimes maintain a connection to the [homes]
3416 share, even though there is no user logged in\&.  Therefore, it is vital
3417 that the logon path does not include a reference to the homes share
3418 (i\&.e\&. setting this parameter to \f(CW\e\e%N\eHOMES\eprofile_path\fP will cause
3419 problems)\&.
3420 .IP 
3421 This option takes the standard substitutions, allowing you to have
3422 separate logon scripts for each user or machine\&.
3423 .IP 
3424 Note that this option is only useful if Samba is set up as a
3425 \fBlogon server\fP\&.
3426 .IP 
3427 \fBDefault:\fP
3428 \f(CW   logon path = \e\e%N\e%U\eprofile\fP
3429 .IP 
3430 \fBExample:\fP
3431 \f(CW   logon path = \e\ePROFILESERVER\eHOME_DIR\e%U\ePROFILE\fP
3432 .IP 
3433 .IP "\fBlogon script (G)\fP" 
3434 .IP 
3435 This parameter specifies the batch file (\&.bat) or NT command file
3436 (\&.cmd) to be downloaded and run on a machine when a user successfully
3437 logs in\&.  The file must contain the DOS style cr/lf line endings\&.
3438 Using a DOS-style editor to create the file is recommended\&.
3439 .IP 
3440 The script must be a relative path to the \f(CW[netlogon]\fP service\&.  If
3441 the \f(CW[netlogon]\fP service specifies a \fBpath\fP of
3442 /usr/local/samba/netlogon, and logon script = STARTUP\&.BAT, then the
3443 file that will be downloaded is:
3444 .IP 
3445 \f(CW/usr/local/samba/netlogon/STARTUP\&.BAT\fP
3446 .IP 
3447 The contents of the batch file is entirely your choice\&.  A suggested
3448 command would be to add \f(CWNET TIME \e\eSERVER /SET /YES\fP, to force every
3449 machine to synchronize clocks with the same time server\&.  Another use
3450 would be to add \f(CWNET USE U: \e\eSERVER\eUTILS\fP for commonly used
3451 utilities, or \f(CWNET USE Q: \e\eSERVER\eISO9001_QA\fP for example\&.
3452 .IP 
3453 Note that it is particularly important not to allow write access to
3454 the \f(CW[netlogon]\fP share, or to grant users write permission on the
3455 batch files in a secure environment, as this would allow the batch
3456 files to be arbitrarily modified and security to be breached\&.
3457 .IP 
3458 This option takes the standard substitutions, allowing you to have
3459 separate logon scripts for each user or machine\&.
3460 .IP 
3461 Note that this option is only useful if Samba is set up as a
3462 \fBlogon server\fP\&.
3463 .IP 
3464 \fBExample:\fP
3465 \f(CW   logon script = scripts\e%U\&.bat\fP
3466 .IP 
3467 .IP "\fBlppause command (S)\fP" 
3468 .IP 
3469 This parameter specifies the command to be executed on the server host
3470 in order to stop printing or spooling a specific print job\&.
3471 .IP 
3472 This command should be a program or script which takes a printer name
3473 and job number to pause the print job\&. One way of implementing this is
3474 by using job priorities, where jobs having a too low priority won\'t be
3475 sent to the printer\&.
3476 .IP 
3477 If a \f(CW"%p"\fP is given then the printername is put in its place\&. A
3478 \f(CW"%j"\fP is replaced with the job number (an integer)\&.  On HPUX (see
3479 \fBprinting=hpux\fP), if the \f(CW"-p%p"\fP option is added
3480 to the lpq command, the job will show up with the correct status,
3481 i\&.e\&. if the job priority is lower than the set fence priority it will
3482 have the PAUSED status, whereas if the priority is equal or higher it
3483 will have the SPOOLED or PRINTING status\&.
3484 .IP 
3485 Note that it is good practice to include the absolute path in the
3486 lppause command as the PATH may not be available to the server\&.
3487 .IP 
3488 See also the \fB"printing"\fP parameter\&.
3489 .IP 
3490 \fBDefault:\fP
3491 Currently no default value is given to this string, unless the
3492 value of the \fB"printing"\fP parameter is \f(CWSYSV\fP, in
3493 which case the default is :
3494 .IP 
3495 \f(CW   lp -i %p-%j -H hold\fP
3496 .IP 
3497 or if the value of the \fB"printing"\fP parameter is \f(CWsoftq\fP,
3498 then the default is:
3499 .IP 
3500 \f(CW   qstat -s -j%j -h\fP
3501 .IP 
3502 \fBExample for HPUX:\fP
3503 lppause command = /usr/bin/lpalt %p-%j -p0
3504 .IP 
3505 .IP "\fBlpq cache time (G)\fP" 
3506 .IP 
3507 This controls how long lpq info will be cached for to prevent the
3508 \fBlpq\fP command being called too often\&. A separate cache is kept for
3509 each variation of the \fBlpq\fP command used by the system, so if you
3510 use different \fBlpq\fP commands for different users then they won\'t
3511 share cache information\&.
3512 .IP 
3513 The cache files are stored in \f(CW/tmp/lpq\&.xxxx\fP where xxxx is a hash of
3514 the \fBlpq\fP command in use\&.
3515 .IP 
3516 The default is 10 seconds, meaning that the cached results of a
3517 previous identical \fBlpq\fP command will be used if the cached data is
3518 less than 10 seconds old\&. A large value may be advisable if your
3519 \fBlpq\fP command is very slow\&.
3520 .IP 
3521 A value of 0 will disable caching completely\&.
3522 .IP 
3523 See also the \fB"printing"\fP parameter\&.
3524 .IP 
3525 \fBDefault:\fP
3526 \f(CW   lpq cache time = 10\fP
3527 .IP 
3528 \fBExample:\fP
3529 \f(CW   lpq cache time = 30\fP
3530 .IP 
3531 .IP "\fBlpq command (S)\fP" 
3532 .IP 
3533 This parameter specifies the command to be executed on the server host
3534 in order to obtain \f(CW"lpq"\fP-style printer status information\&.
3535 .IP 
3536 This command should be a program or script which takes a printer name
3537 as its only parameter and outputs printer status information\&.
3538 .IP 
3539 Currently eight styles of printer status information are supported;
3540 BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX and SOFTQ\&. This covers most UNIX
3541 systems\&. You control which type is expected using the
3542 \fB"printing ="\fP option\&.
3543 .IP 
3544 Some clients (notably Windows for Workgroups) may not correctly send
3545 the connection number for the printer they are requesting status
3546 information about\&. To get around this, the server reports on the first
3547 printer service connected to by the client\&. This only happens if the
3548 connection number sent is invalid\&.
3549 .IP 
3550 If a \f(CW%p\fP is given then the printername is put in its place\&. Otherwise
3551 it is placed at the end of the command\&.
3552 .IP 
3553 Note that it is good practice to include the absolute path in the \fBlpq
3554 command\fP as the PATH may not be available to the server\&.
3555 .IP 
3556 See also the \fB"printing"\fP parameter\&.
3557 .IP 
3558 \fBDefault:\fP
3559 \f(CW        depends on the setting of printing =\fP
3560 .IP 
3561 \fBExample:\fP
3562 \f(CW   lpq command = /usr/bin/lpq %p\fP
3563 .IP 
3564 .IP "\fBlpresume command (S)\fP" 
3565 .IP 
3566 This parameter specifies the command to be executed on the server host
3567 in order to restart or continue printing or spooling a specific print
3568 job\&.
3569 .IP 
3570 This command should be a program or script which takes a printer name
3571 and job number to resume the print job\&. See also the \fB"lppause
3572 command"\fP parameter\&.
3573 .IP 
3574 If a \f(CW%p\fP is given then the printername is put in its place\&. A
3575 \f(CW%j\fP is replaced with the job number (an integer)\&.
3576 .IP 
3577 Note that it is good practice to include the absolute path in the \fBlpresume
3578 command\fP as the PATH may not be available to the server\&.
3579 .IP 
3580 See also the \fB"printing"\fP parameter\&.
3581 .IP 
3582 \fBDefault:\fP
3583 .IP 
3584 Currently no default value is given to this string, unless the
3585 value of the \fB"printing"\fP parameter is \f(CWSYSV\fP, in
3586 which case the default is :
3587 .IP 
3588 \f(CW   lp -i %p-%j -H resume\fP
3589 .IP 
3590 or if the value of the \fB"printing"\fP parameter is \f(CWsoftq\fP,
3591 then the default is:
3592 .IP 
3593 \f(CW   qstat -s -j%j -r\fP
3594 .IP 
3595 \fBExample for HPUX:\fP
3596 \f(CW        lpresume command = /usr/bin/lpalt %p-%j -p2\fP
3597 .IP 
3598 .IP "\fBlprm command (S)\fP" 
3599 .IP 
3600 This parameter specifies the command to be executed on the server host
3601 in order to delete a print job\&.
3602 .IP 
3603 This command should be a program or script which takes a printer name
3604 and job number, and deletes the print job\&.
3605 .IP 
3606 If a \f(CW%p\fP is given then the printername is put in its place\&. A
3607 \f(CW%j\fP is replaced with the job number (an integer)\&.
3608 .IP 
3609 Note that it is good practice to include the absolute path in the
3610 \fBlprm command\fP as the PATH may not be available to the server\&.
3611 .IP 
3612 See also the \fB"printing"\fP parameter\&.
3613 .IP 
3614 \fBDefault:\fP
3615 \f(CW   depends on the setting of "printing ="\fP
3616 .IP 
3617 \fBExample 1:\fP
3618 \f(CW   lprm command = /usr/bin/lprm -P%p %j\fP
3619 .IP 
3620 \fBExample 2:\fP
3621 \f(CW   lprm command = /usr/bin/cancel %p-%j\fP
3622 .IP 
3623 .IP "\fBmachine password timeout (G)\fP" 
3624 .IP 
3625 If a Samba server is a member of an Windows NT Domain (see the
3626 \fB"security=domain"\fP) parameter) then
3627 periodically a running \fBsmbd\fP process will try and
3628 change the \fBMACHINE ACCOUNT PASWORD\fP stored in the file called
3629 \f(CW<Domain>\&.<Machine>\&.mac\fP where \f(CW<Domain>\fP is the name of the
3630 Domain we are a member of and \f(CW<Machine>\fP is the primary
3631 \fB"NetBIOS name"\fP of the machine
3632 \fBsmbd\fP is running on\&. This parameter specifies how
3633 often this password will be changed, in seconds\&. The default is one
3634 week (expressed in seconds), the same as a Windows NT Domain member
3635 server\&.
3636 .IP 
3637 See also \fBsmbpasswd (8)\fP, and the
3638 \fB"security=domain"\fP) parameter\&.
3639 .IP 
3640 \fBDefault:\fP
3641 \f(CW   machine password timeout = 604800\fP
3642 .IP 
3643 .IP "\fBmagic output (S)\fP" 
3644 .IP 
3645 This parameter specifies the name of a file which will contain output
3646 created by a magic script (see the \fB"magic
3647 script"\fP parameter below)\&.
3648 .IP 
3649 Warning: If two clients use the same \fB"magic
3650 script"\fP in the same directory the output file content
3651 is undefined\&.
3652 .IP 
3653 \fBDefault:\fP
3654 \f(CW   magic output = <magic script name>\&.out\fP
3655 .IP 
3656 \fBExample:\fP
3657 \f(CW   magic output = myfile\&.txt\fP
3658 .IP 
3659 .IP "\fBmagic script (S)\fP" 
3660 .IP 
3661 This parameter specifies the name of a file which, if opened, will be
3662 executed by the server when the file is closed\&. This allows a UNIX
3663 script to be sent to the Samba host and executed on behalf of the
3664 connected user\&.
3665 .IP 
3666 Scripts executed in this way will be deleted upon completion,
3667 permissions permitting\&.
3668 .IP 
3669 If the script generates output, output will be sent to the file
3670 specified by the \fB"magic output"\fP parameter (see
3671 above)\&.
3672 .IP 
3673 Note that some shells are unable to interpret scripts containing
3674 carriage-return-linefeed instead of linefeed as the end-of-line
3675 marker\&. Magic scripts must be executable \fI"as is"\fP on the host,
3676 which for some hosts and some shells will require filtering at the DOS
3677 end\&.
3678 .IP 
3679 Magic scripts are \fIEXPERIMENTAL\fP and should \fINOT\fP be relied upon\&.
3680 .IP 
3681 \fBDefault:\fP
3682 \f(CW   None\&. Magic scripts disabled\&.\fP
3683 .IP 
3684 \fBExample:\fP
3685 \f(CW   magic script = user\&.csh\fP
3686 .IP 
3687 .IP "\fBmangle case (S)\fP" 
3688 .IP 
3689 See the section on \fB"NAME MANGLING"\fP\&.
3690 .IP 
3691 .IP "\fBmangle locks (S)\fP" 
3692 .IP 
3693 This option is was introduced with Samba 2\&.0\&.4 and above and has been
3694 removed in Samba 2\&.0\&.6 as Samba now dynamically configures such things
3695 on 32 bit systems\&.
3696 .IP 
3697 .IP "\fBmangled map (S)\fP" 
3698 .IP 
3699 This is for those who want to directly map UNIX file names which can
3700 not be represented on Windows/DOS\&.  The mangling of names is not always
3701 what is needed\&.  In particular you may have documents with file
3702 extensions that differ between DOS and UNIX\&. For example, under UNIX
3703 it is common to use \f(CW"\&.html"\fP for HTML files, whereas under
3704 Windows/DOS \f(CW"\&.htm"\fP is more commonly used\&.
3705 .IP 
3706 So to map \f(CW"html"\fP to \f(CW"htm"\fP you would use:
3707 .IP 
3708 \f(CW  mangled map = (*\&.html *\&.htm)\fP
3709 .IP 
3710 One very useful case is to remove the annoying \f(CW";1"\fP off the ends
3711 of filenames on some CDROMS (only visible under some UNIXs)\&. To do
3712 this use a map of (*;1 *)\&.
3713 .IP 
3714 \fBdefault:\fP
3715 \f(CW   no mangled map\fP
3716 .IP 
3717 \fBExample:\fP
3718 \f(CW   mangled map = (*;1 *)\fP
3719 .IP 
3720 .IP "\fBmangled names (S)\fP" 
3721 .IP 
3722 This controls whether non-DOS names under UNIX should be mapped to
3723 DOS-compatible names ("mangled") and made visible, or whether non-DOS
3724 names should simply be ignored\&.
3725 .IP 
3726 See the section on \fB"NAME MANGLING"\fP for details
3727 on how to control the mangling process\&.
3728 .IP 
3729 If mangling is used then the mangling algorithm is as follows:
3730 .IP 
3731 .IP 
3732 .IP o 
3733 The first (up to) five alphanumeric characters before the
3734 rightmost dot of the filename are preserved, forced to upper case, and
3735 appear as the first (up to) five characters of the mangled name\&.
3736 .IP 
3737 .IP o 
3738 A tilde \f(CW"~"\fP is appended to the first part of the mangled
3739 name, followed by a two-character unique sequence, based on the
3740 original root name (i\&.e\&., the original filename minus its final
3741 extension)\&. The final extension is included in the hash calculation
3742 only if it contains any upper case characters or is longer than three
3743 characters\&.
3744 .IP 
3745 Note that the character to use may be specified using the
3746 \fB"mangling char"\fP option, if you don\'t like
3747 \f(CW\'~\'\fP\&.
3748 .IP 
3749 .IP o 
3750 The first three alphanumeric characters of the final extension
3751 are preserved, forced to upper case and appear as the extension of the
3752 mangled name\&. The final extension is defined as that part of the
3753 original filename after the rightmost dot\&. If there are no dots in the
3754 filename, the mangled name will have no extension (except in the case
3755 of \fB"hidden files"\fP - see below)\&.
3756 .IP 
3757 .IP o 
3758 Files whose UNIX name begins with a dot will be presented as DOS
3759 hidden files\&. The mangled name will be created as for other filenames,
3760 but with the leading dot removed and \f(CW"___"\fP as its extension regardless
3761 of actual original extension (that\'s three underscores)\&.
3762 .IP 
3763 .IP 
3764 The two-digit hash value consists of upper case alphanumeric
3765 characters\&.
3766 .IP 
3767 This algorithm can cause name collisions only if files in a directory
3768 share the same first five alphanumeric characters\&. The probability of
3769 such a clash is 1/1300\&.
3770 .IP 
3771 The name mangling (if enabled) allows a file to be copied between UNIX
3772 directories from Windows/DOS while retaining the long UNIX
3773 filename\&. UNIX files can be renamed to a new extension from
3774 Windows/DOS and will retain the same basename\&. Mangled names do not
3775 change between sessions\&.
3776 .IP 
3777 \fBDefault:\fP
3778 \f(CW   mangled names = yes\fP
3779 .IP 
3780 \fBExample:\fP
3781 \f(CW   mangled names = no\fP
3782 .IP 
3783 .IP "\fBmangling char (S)\fP" 
3784 .IP 
3785 This controls what character is used as the \fI"magic"\fP character in
3786 \fBname mangling\fP\&. The default is a \f(CW\'~\'\fP but
3787 this may interfere with some software\&. Use this option to set it to
3788 whatever you prefer\&.
3789 .IP 
3790 \fBDefault:\fP
3791 \f(CW   mangling char = ~\fP
3792 .IP 
3793 \fBExample:\fP
3794 \f(CW   mangling char = ^\fP
3795 .IP 
3796 .IP "\fBmangled stack (G)\fP" 
3797 .IP 
3798 This parameter controls the number of mangled names that should be
3799 cached in the Samba server \fBsmbd\fP\&.
3800 .IP 
3801 This stack is a list of recently mangled base names (extensions are
3802 only maintained if they are longer than 3 characters or contains upper
3803 case characters)\&.
3804 .IP 
3805 The larger this value, the more likely it is that mangled names can be
3806 successfully converted to correct long UNIX names\&. However, large
3807 stack sizes will slow most directory access\&. Smaller stacks save
3808 memory in the server (each stack element costs 256 bytes)\&.
3809 .IP 
3810 It is not possible to absolutely guarantee correct long file names, so
3811 be prepared for some surprises!
3812 .IP 
3813 \fBDefault:\fP
3814 \f(CW   mangled stack = 50\fP
3815 .IP 
3816 \fBExample:\fP
3817 \f(CW   mangled stack = 100\fP
3818 .IP 
3819 .IP "\fBmap archive (S)\fP" 
3820 .IP 
3821 This controls whether the DOS archive attribute should be mapped to
3822 the UNIX owner execute bit\&.  The DOS archive bit is set when a file
3823 has been modified since its last backup\&.  One motivation for this
3824 option it to keep Samba/your PC from making any file it touches from
3825 becoming executable under UNIX\&.  This can be quite annoying for shared
3826 source code, documents, etc\&.\&.\&.
3827 .IP 
3828 Note that this requires the \fB"create mask"\fP
3829 parameter to be set such that owner execute bit is not masked out
3830 (i\&.e\&. it must include 100)\&. See the parameter \fB"create
3831 mask"\fP for details\&.
3832 .IP 
3833 \fBDefault:\fP
3834 \f(CW      map archive = yes\fP
3835 .IP 
3836 \fBExample:\fP
3837 \f(CW      map archive = no\fP
3838 .IP 
3839 .IP "\fBmap hidden (S)\fP" 
3840 .IP 
3841 This controls whether DOS style hidden files should be mapped to the
3842 UNIX world execute bit\&.
3843 .IP 
3844 Note that this requires the \fB"create mask"\fP to be
3845 set such that the world execute bit is not masked out (i\&.e\&. it must
3846 include 001)\&. See the parameter \fB"create mask"\fP
3847 for details\&.
3848 .IP 
3849 \fBDefault:\fP
3850 \f(CW   map hidden = no\fP
3851 .IP 
3852 \fBExample:\fP
3853 \f(CW   map hidden = yes\fP
3854 .IP 
3855 .IP "\fBmap system (S)\fP" 
3856 .IP 
3857 This controls whether DOS style system files should be mapped to the
3858 UNIX group execute bit\&.
3859 .IP 
3860 Note that this requires the \fB"create mask"\fP to be
3861 set such that the group execute bit is not masked out (i\&.e\&. it must
3862 include 010)\&. See the parameter \fB"create mask"\fP
3863 for details\&.
3864 .IP 
3865 \fBDefault:\fP
3866 \f(CW   map system = no\fP
3867 .IP 
3868 \fBExample:\fP
3869 \f(CW   map system = yes\fP
3870 .IP 
3871 .IP "\fBmap to guest (G)\fP" 
3872 .IP 
3873 This parameter is only useful in \fBsecurity\fP modes
3874 other than \fB"security=share"\fP - i\&.e\&. user,
3875 server, and domain\&.
3876 .IP 
3877 This parameter can take three different values, which tell
3878 \fBsmbd\fP what to do with user login requests that
3879 don\'t match a valid UNIX user in some way\&.
3880 .IP 
3881 The three settings are :
3882 .IP 
3883 .IP 
3884 .IP o 
3885 \fB"Never"\fP - Means user login requests with an invalid password
3886 are rejected\&. This is the default\&.
3887 .IP 
3888 .IP o 
3889 \fB"Bad User"\fP - Means user logins with an invalid password are
3890 rejected, unless the username does not exist, in which case it is
3891 treated as a guest login and mapped into the \fB"guest
3892 account"\fP\&.
3893 .IP 
3894 .IP o 
3895 \fB"Bad Password"\fP - Means user logins with an invalid
3896 password are treated as a guest login and mapped into the
3897 \fB"guest account"\fP\&. Note that this can
3898 cause problems as it means that any user incorrectly typing their
3899 password will be silently logged on a \fB"guest"\fP - and 
3900 will not know the reason they cannot access files they think
3901 they should - there will have been no message given to them
3902 that they got their password wrong\&. Helpdesk services will
3903 \fI*hate*\fP you if you set the \fB"map to guest"\fP parameter
3904 this way :-)\&.
3905 .IP 
3906 .IP 
3907 Note that this parameter is needed to set up \fB"Guest"\fP share
3908 services when using \fBsecurity\fP modes other than
3909 share\&. This is because in these modes the name of the resource being
3910 requested is \fI*not*\fP sent to the server until after the server has
3911 successfully authenticated the client so the server cannot make
3912 authentication decisions at the correct time (connection to the
3913 share) for \fB"Guest"\fP shares\&.
3914 .IP 
3915 For people familiar with the older Samba releases, this parameter
3916 maps to the old compile-time setting of the GUEST_SESSSETUP value
3917 in local\&.h\&.
3918 .IP 
3919 \fBDefault:\fP
3920 \f(CW   map to guest = Never\fP
3921 \fBExample\fP:
3922 \f(CW   map to guest = Bad User\fP
3923 .IP 
3924 .IP "\fBmax connections (S)\fP" 
3925 .IP 
3926 This option allows the number of simultaneous connections to a service
3927 to be limited\&. If \fB"max connections"\fP is greater than 0 then
3928 connections will be refused if this number of connections to the
3929 service are already open\&. A value of zero mean an unlimited number of
3930 connections may be made\&.
3931 .IP 
3932 Record lock files are used to implement this feature\&. The lock files
3933 will be stored in the directory specified by the \fB"lock
3934 directory"\fP option\&.
3935 .IP 
3936 \fBDefault:\fP
3937 \f(CW   max connections = 0\fP
3938 .IP 
3939 \fBExample:\fP
3940 \f(CW   max connections = 10\fP
3941 .IP 
3942 .IP "\fBmax disk size (G)\fP" 
3943 .IP 
3944 This option allows you to put an upper limit on the apparent size of
3945 disks\&. If you set this option to 100 then all shares will appear to be
3946 not larger than 100 MB in size\&.
3947 .IP 
3948 Note that this option does not limit the amount of data you can put on
3949 the disk\&. In the above case you could still store much more than 100
3950 MB on the disk, but if a client ever asks for the amount of free disk
3951 space or the total disk size then the result will be bounded by the
3952 amount specified in \fB"max disk size"\fP\&.
3953 .IP 
3954 This option is primarily useful to work around bugs in some pieces of
3955 software that can\'t handle very large disks, particularly disks over
3956 1GB in size\&.
3957 .IP 
3958 A \fB"max disk size"\fP of 0 means no limit\&.
3959 .IP 
3960 \fBDefault:\fP
3961 \f(CW   max disk size = 0\fP
3962 .IP 
3963 \fBExample:\fP
3964 \f(CW   max disk size = 1000\fP
3965 .IP 
3966 .IP "\fBmax log size (G)\fP" 
3967 .IP 
3968 This option (an integer in kilobytes) specifies the max size the log
3969 file should grow to\&. Samba periodically checks the size and if it is
3970 exceeded it will rename the file, adding a \f(CW"\&.old"\fP extension\&.
3971 .IP 
3972 A size of 0 means no limit\&.
3973 .IP 
3974 \fBDefault:\fP
3975 \f(CW   max log size = 5000\fP
3976 .IP 
3977 \fBExample:\fP
3978 \f(CW   max log size = 1000\fP
3979 .IP 
3980 .IP "\fBmax mux (G)\fP" 
3981 .IP 
3982 This option controls the maximum number of outstanding simultaneous
3983 SMB operations that samba tells the client it will allow\&. You should
3984 never need to set this parameter\&.
3985 .IP 
3986 \fBDefault:\fP
3987 \f(CW   max mux = 50\fP
3988 .IP 
3989 .IP "\fBmax open files (G)\fP" 
3990 .IP 
3991 This parameter limits the maximum number of open files that one
3992 \fBsmbd\fP file serving process may have open for
3993 a client at any one time\&. The default for this parameter is set
3994 very high (10,000) as Samba uses only one bit per unopened file\&.
3995 .IP 
3996 The limit of the number of open files is usually set by the
3997 UNIX per-process file descriptor limit rather than this parameter
3998 so you should never need to touch this parameter\&.
3999 .IP 
4000 \fBDefault:\fP
4001 \f(CW   max open files = 10000\fP
4002 .IP 
4003 .IP "\fBmax packet (G)\fP" 
4004 .IP 
4005 Synonym for \fB"packet size"\fP\&.
4006 .IP 
4007 .IP "\fBmax ttl (G)\fP" 
4008 .IP 
4009 This option tells \fBnmbd\fP what the default \'time
4010 to live\' of NetBIOS names should be (in seconds) when
4011 \fBnmbd\fP is requesting a name using either a
4012 broadcast packet or from a WINS server\&. You should never need to
4013 change this parameter\&. The default is 3 days\&.
4014 .IP 
4015 \fBDefault:\fP
4016 \f(CW   max ttl = 259200\fP
4017 .IP 
4018 .IP "\fBmax wins ttl (G)\fP" 
4019 .IP 
4020 This option tells \fBnmbd\fP when acting as a WINS
4021 server \fB(wins support =true)\fP what the maximum
4022 \'time to live\' of NetBIOS names that \fBnmbd\fP will
4023 grant will be (in seconds)\&. You should never need to change this
4024 parameter\&.  The default is 6 days (518400 seconds)\&.
4025 .IP 
4026 See also the \fB"min wins ttl"\fP parameter\&.
4027 .IP 
4028 \fBDefault:\fP
4029 \f(CW        max wins ttl = 518400\fP
4030 .IP 
4031 .IP "\fBmax xmit (G)\fP" 
4032 .IP 
4033 This option controls the maximum packet size that will be negotiated
4034 by Samba\&. The default is 65535, which is the maximum\&. In some cases
4035 you may find you get better performance with a smaller value\&. A value
4036 below 2048 is likely to cause problems\&.
4037 .IP 
4038 \fBDefault:\fP
4039 \f(CW   max xmit = 65535\fP
4040 .IP 
4041 \fBExample:\fP
4042 \f(CW   max xmit = 8192\fP
4043 .IP 
4044 .IP "\fBmessage command (G)\fP" 
4045 .IP 
4046 This specifies what command to run when the server receives a WinPopup
4047 style message\&.
4048 .IP 
4049 This would normally be a command that would deliver the message
4050 somehow\&. How this is to be done is up to your imagination\&.
4051 .IP 
4052 An example is:
4053 .IP 
4054 \f(CW   message command = csh -c \'xedit %s;rm %s\' &\fP
4055 .IP 
4056 This delivers the message using \fBxedit\fP, then removes it
4057 afterwards\&. \fINOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN
4058 IMMEDIATELY\fP\&. That\'s why I have the \f(CW\'&\'\fP on the end\&. If it doesn\'t
4059 return immediately then your PCs may freeze when sending messages
4060 (they should recover after 30secs, hopefully)\&.
4061 .IP 
4062 All messages are delivered as the global guest user\&. The command takes
4063 the standard substitutions, although \fB%u\fP won\'t work
4064 (\fB%U\fP may be better in this case)\&.
4065 .IP 
4066 Apart from the standard substitutions, some additional ones apply\&. In
4067 particular:
4068 .IP 
4069 .IP 
4070 .IP o 
4071 \f(CW"%s"\fP = the filename containing the message\&.
4072 .IP 
4073 .IP o 
4074 \f(CW"%t"\fP = the destination that the message was sent to (probably the server
4075 name)\&.
4076 .IP 
4077 .IP o 
4078 \f(CW"%f"\fP = who the message is from\&.
4079 .IP 
4080 .IP 
4081 You could make this command send mail, or whatever else takes your
4082 fancy\&. Please let us know of any really interesting ideas you have\&.
4083 .IP 
4084 Here\'s a way of sending the messages as mail to root:
4085 .IP 
4086 \f(CWmessage command = /bin/mail -s \'message from %f on %m\' root < %s; rm %s\fP
4087 .IP 
4088 If you don\'t have a message command then the message won\'t be
4089 delivered and Samba will tell the sender there was an
4090 error\&. Unfortunately WfWg totally ignores the error code and carries
4091 on regardless, saying that the message was delivered\&.
4092 .IP 
4093 If you want to silently delete it then try:
4094 .IP 
4095 \f(CW"message command = rm %s"\fP\&.
4096 .IP 
4097 \fBDefault:\fP
4098 \f(CW   no message command\fP
4099 .IP 
4100 \fBExample:\fP
4101 \f(CW        message command = csh -c \'xedit %s;rm %s\' &\fP
4102 .IP 
4103 .IP "\fBmin print space (S)\fP" 
4104 .IP 
4105 This sets the minimum amount of free disk space that must be available
4106 before a user will be able to spool a print job\&. It is specified in
4107 kilobytes\&. The default is 0, which means a user can always spool a print
4108 job\&.
4109 .IP 
4110 See also the \fBprinting\fP parameter\&.
4111 .IP 
4112 \fBDefault:\fP
4113 \f(CW   min print space = 0\fP
4114 .IP 
4115 \fBExample:\fP
4116 \f(CW   min print space = 2000\fP
4117 .IP 
4118 .IP "\fBmin passwd length (G)\fP" 
4119 .IP 
4120 Synonym for \fB"min password length"\fP\&.
4121 .IP 
4122 .IP "\fBmin password length (G)\fP" 
4123 .IP 
4124 This option sets the minimum length in characters of a plaintext password
4125 than smbd will accept when performing UNIX password changing\&.
4126 .IP 
4127 See also \fB"unix password sync"\fP,
4128 \fB"passwd program"\fP and \fB"passwd chat
4129 debug"\fP\&.
4130 .IP 
4131 \fBDefault:\fP
4132 \f(CW   min password length = 5\fP
4133 .IP 
4134 .IP "\fBmin wins ttl (G)\fP" 
4135 .IP 
4136 This option tells \fBnmbd\fP when acting as a WINS
4137 server \fB(wins support = true)\fP what the minimum
4138 \'time to live\' of NetBIOS names that \fBnmbd\fP will
4139 grant will be (in seconds)\&. You should never need to change this
4140 parameter\&.  The default is 6 hours (21600 seconds)\&.
4141 .IP 
4142 \fBDefault:\fP
4143 \f(CW   min wins ttl = 21600\fP
4144 .IP 
4145 .IP "\fBname resolve order (G)\fP" 
4146 .IP 
4147 This option is used by the programs in the Samba suite to determine
4148 what naming services and in what order to resolve host names to IP
4149 addresses\&. The option takes a space separated string of different name
4150 resolution options\&.
4151 .IP 
4152 The options are :"lmhosts", "host", "wins" and "bcast"\&. They cause
4153 names to be resolved as follows :
4154 .IP 
4155 .IP 
4156 .IP o 
4157 \fBlmhosts\fP : Lookup an IP address in the Samba lmhosts file\&.
4158 If the line in lmhosts has no name type attached to the NetBIOS
4159 name (see the \fBlmhosts (5)\fP for details) then
4160 any name type matches for lookup\&.
4161 .IP 
4162 .IP o 
4163 \fBhost\fP : Do a standard host name to IP address resolution,
4164 using the system /etc/hosts, NIS, or DNS lookups\&. This method of name
4165 resolution is operating system depended for instance on IRIX or
4166 Solaris this may be controlled by the \fI/etc/nsswitch\&.conf\fP file)\&.
4167 Note that this method is only used if the NetBIOS name type being
4168 queried is the 0x20 (server) name type, otherwise it is ignored\&.
4169 .IP 
4170 .IP o 
4171 \fBwins\fP : Query a name with the IP address listed in the
4172 \fBwins server\fP parameter\&. If no WINS server has
4173 been specified this method will be ignored\&.
4174 .IP 
4175 .IP o 
4176 \fBbcast\fP : Do a broadcast on each of the known local interfaces
4177 listed in the \fBinterfaces\fP parameter\&. This is the
4178 least reliable of the name resolution methods as it depends on the
4179 target host being on a locally connected subnet\&.
4180 .IP 
4181 .IP 
4182 \fBDefault:\fP
4183 \f(CW   name resolve order = lmhosts host wins bcast\fP
4184 .IP 
4185 \fBExample:\fP
4186 \f(CW   name resolve order = lmhosts bcast host\fP
4187 .IP 
4188 This will cause the local lmhosts file to be examined first, followed
4189 by a broadcast attempt, followed by a normal system hostname lookup\&.
4190 .IP 
4191 .IP "\fBnetbios aliases (G)\fP" 
4192 .IP 
4193 This is a list of NetBIOS names that \fBnmbd\fP will
4194 advertise as additional names by which the Samba server is known\&. This
4195 allows one machine to appear in browse lists under multiple names\&. If
4196 a machine is acting as a \fBbrowse server\fP or
4197 \fBlogon server\fP none of these names will be
4198 advertised as either browse server or logon servers, only the primary
4199 name of the machine will be advertised with these capabilities\&.
4200 .IP 
4201 See also \fB"netbios name"\fP\&.
4202 .IP 
4203 \fBDefault:\fP
4204 \f(CW   empty string (no additional names)\fP
4205 .IP 
4206 \fBExample:\fP
4207 \f(CW   netbios aliases = TEST TEST1 TEST2\fP
4208 .IP 
4209 .IP "\fBnetbios name (G)\fP" 
4210 .IP 
4211 This sets the NetBIOS name by which a Samba server is known\&. By
4212 default it is the same as the first component of the host\'s DNS name\&.
4213 If a machine is a \fBbrowse server\fP or
4214 \fBlogon server\fP this name (or the first component
4215 of the hosts DNS name) will be the name that these services are
4216 advertised under\&.
4217 .IP 
4218 See also \fB"netbios aliases"\fP\&.
4219 .IP 
4220 \fBDefault:\fP
4221 \f(CW   Machine DNS name\&.\fP
4222 .IP 
4223 \fBExample:\fP
4224 \f(CW   netbios name = MYNAME\fP
4225 .IP 
4226 .IP "\fBnetbios scope (G)\fP" 
4227 .IP 
4228 This sets the NetBIOS scope that Samba will operate under\&. This should
4229 not be set unless every machine on your LAN also sets this value\&.
4230 .IP 
4231 .IP "\fBnis homedir (G)\fP" 
4232 .IP 
4233 Get the home share server from a NIS map\&. For UNIX systems that use an
4234 automounter, the user\'s home directory will often be mounted on a
4235 workstation on demand from a remote server\&. 
4236 .IP 
4237 When the Samba logon server is not the actual home directory server,
4238 but is mounting the home directories via NFS then two network hops
4239 would be required to access the users home directory if the logon
4240 server told the client to use itself as the SMB server for home
4241 directories (one over SMB and one over NFS)\&. This can be very
4242 slow\&.
4243 .IP 
4244 This option allows Samba to return the home share as being on a
4245 different server to the logon server and as long as a Samba daemon is
4246 running on the home directory server, it will be mounted on the Samba
4247 client directly from the directory server\&. When Samba is returning the
4248 home share to the client, it will consult the NIS map specified in
4249 \fB"homedir map"\fP and return the server listed
4250 there\&.
4251 .IP 
4252 Note that for this option to work there must be a working NIS
4253 system and the Samba server with this option must also be a
4254 \fBlogon server\fP\&.
4255 .IP 
4256 \fBDefault:\fP
4257 \f(CW   nis homedir = false\fP
4258 .IP 
4259 \fBExample:\fP
4260 \f(CW   nis homedir = true\fP
4261 .IP 
4262 .IP "\fBnt acl support (G)\fP" 
4263 .IP 
4264 This boolean parameter controls whether \fBsmbd\fP
4265 will attempt to map UNIX permissions into Windows NT access control lists\&.
4266 .IP 
4267 \fBDefault:\fP
4268 \f(CW   nt acl support = yes\fP
4269 .IP 
4270 \fBExample:\fP
4271 \f(CW   nt acl support = no\fP
4272 .IP 
4273 .IP "\fBnt pipe support (G)\fP" 
4274 .IP 
4275 This boolean parameter controls whether \fBsmbd\fP
4276 will allow Windows NT clients to connect to the NT SMB specific
4277 \f(CWIPC$\fP pipes\&. This is a developer debugging option and can be left
4278 alone\&.
4279 .IP 
4280 \fBDefault:\fP
4281 \f(CW   nt pipe support = yes\fP
4282 .IP 
4283 .IP "\fBnt smb support (G)\fP" 
4284 .IP 
4285 This boolean parameter controls whether \fBsmbd\fP
4286 will negotiate NT specific SMB support with Windows NT
4287 clients\&. Although this is a developer debugging option and should be
4288 left alone, benchmarking has discovered that Windows NT clients give
4289 faster performance with this option set to \f(CW"no"\fP\&. This is still
4290 being investigated\&. If this option is set to \f(CW"no"\fP then Samba
4291 offers exactly the same SMB calls that versions prior to Samba2\&.0
4292 offered\&. This information may be of use if any users are having
4293 problems with NT SMB support\&.
4294 .IP 
4295 \fBDefault:\fP
4296 \f(CW   nt support = yes\fP
4297 .IP 
4298 .IP "\fBnull passwords (G)\fP" 
4299 .IP 
4300 Allow or disallow client access to accounts that have null passwords\&. 
4301 .IP 
4302 See also \fBsmbpasswd (5)\fP\&.
4303 .IP 
4304 \fBDefault:\fP
4305 \f(CW   null passwords = no\fP
4306 .IP 
4307 \fBExample:\fP
4308 \f(CW   null passwords = yes\fP
4309 .IP 
4310 .IP "\fBole locking compatibility (G)\fP" 
4311 .IP 
4312 This parameter allows an administrator to turn off the byte range lock
4313 manipulation that is done within Samba to give compatibility for OLE
4314 applications\&. Windows OLE applications use byte range locking as a
4315 form of inter-process communication, by locking ranges of bytes around
4316 the 2^32 region of a file range\&. This can cause certain UNIX lock
4317 managers to crash or otherwise cause problems\&. Setting this parameter
4318 to \f(CW"no"\fP means you trust your UNIX lock manager to handle such cases
4319 correctly\&.
4320 .IP 
4321 \fBDefault:\fP
4322 \f(CW   ole locking compatibility = yes\fP
4323 .IP 
4324 \fBExample:\fP
4325 \f(CW   ole locking compatibility = no\fP
4326 .IP 
4327 .IP "\fBonly guest (S)\fP" 
4328 .IP 
4329 A synonym for \fB"guest only"\fP\&.
4330 .IP 
4331 .IP "\fBonly user (S)\fP" 
4332 .IP 
4333 This is a boolean option that controls whether connections with
4334 usernames not in the \fBuser=\fP list will be allowed\&. By
4335 default this option is disabled so a client can supply a username to
4336 be used by the server\&.
4337 .IP 
4338 Note that this also means Samba won\'t try to deduce usernames from the
4339 service name\&. This can be annoying for the \fB[homes]\fP
4340 section\&. To get around this you could use "\fBuser\fP =
4341 \fB%S\fP" which means your \fB"user"\fP list
4342 will be just the service name, which for home directories is the name
4343 of the user\&.
4344 .IP 
4345 See also the \fBuser\fP parameter\&.
4346 .IP 
4347 \fBDefault:\fP
4348 \f(CW   only user = False\fP
4349 .IP 
4350 \fBExample:\fP
4351 \f(CW   only user = True\fP
4352 .IP 
4353 .IP "\fBoplocks (S)\fP" 
4354 .IP 
4355 This boolean option tells smbd whether to issue oplocks (opportunistic
4356 locks) to file open requests on this share\&. The oplock code can
4357 dramatically (approx\&. 30% or more) improve the speed of access to files
4358 on Samba servers\&. It allows the clients to aggressively cache files
4359 locally and you may want to disable this option for unreliable network
4360 environments (it is turned on by default in Windows NT Servers)\&.  For
4361 more information see the file Speed\&.txt in the Samba docs/ directory\&.
4362 .IP 
4363 Oplocks may be selectively turned off on certain files on a per share basis\&.
4364 See the \'veto oplock files\' parameter\&. On some systems oplocks are recognized
4365 by the underlying operating system\&. This allows data synchronization between
4366 all access to oplocked files, whether it be via Samba or NFS or a local
4367 UNIX process\&. See the \fBkernel oplocks\fP parameter
4368 for details\&.
4369 .IP 
4370 See also the \fB"kernel oplocks"\fP and
4371 \fB"level2 oplocks"\fP parameters\&.
4372 .IP 
4373 \fBDefault:\fP
4374 \f(CW   oplocks = True\fP
4375 .IP 
4376 \fBExample:\fP
4377 \f(CW   oplocks = False\fP
4378 .IP 
4379 .IP "\fBoplock break wait time (G)\fP" 
4380 .IP 
4381 This is a tuning parameter added due to bugs in both Windows 9x and WinNT\&.
4382 If Samba responds to a client too quickly when that client issues an SMB that
4383 can cause an oplock break request, then the client redirector can fail and
4384 not respond to the break request\&. This tuning parameter (which is set in
4385 milliseconds) is the amount of time Samba will wait before sending an
4386 oplock break request to such (broken) clients\&.
4387 .IP 
4388 \fIDO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA
4389 OPLOCK CODE\fP\&.
4390 .IP 
4391 \fBDefault:\fP
4392 \f(CW   oplock break wait time = 10\fP
4393 .IP 
4394 .IP "\fBoplock contention limit (S)\fP" 
4395 .IP 
4396 This is a \fIvery\fP advanced \fBsmbd\fP tuning option to improve
4397 the efficiency of the granting of oplocks under multiple client contention for the same file\&.
4398 .IP 
4399 In brief it specifies a number, which causes smbd not to grant an oplock even
4400 when requested if the approximate number of clients contending for an oplock on
4401 the same file goes over this limit\&. This causes \fBsmbd\fP to
4402 behave in a similar way to Windows NT\&.
4403 .IP 
4404 \fIDO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA
4405 OPLOCK CODE\fP\&.
4406 .IP 
4407 \fBDefault:\fP
4408 \f(CW oplock contention limit = 2\fP
4409 .IP 
4410 .IP "\fBos level (G)\fP" 
4411 .IP 
4412 This integer value controls what level Samba advertises itself as for
4413 browse elections\&. The value of this parameter determines whether
4414 \fBnmbd\fP has a chance of becoming a local master
4415 browser for the \fBWORKGROUP\fP in the local broadcast
4416 area\&. The default is zero, which means \fBnmbd\fP will
4417 lose elections to Windows machines\&. See BROWSING\&.txt in the Samba
4418 docs/ directory for details\&.
4419 .IP 
4420 \fBDefault:\fP
4421 \f(CW   os level = 20\fP
4422 .IP 
4423 \fBExample:\fP
4424 \f(CW   os level = 65    ; This will win against any NT Server\fP
4425 .IP 
4426 .IP "\fBpacket size (G)\fP" 
4427 .IP 
4428 This is a deprecated parameter that has no effect on the current
4429 Samba code\&. It is left in the parameter list to prevent breaking
4430 old \fBsmb\&.conf\fP files\&.
4431 .IP 
4432 .IP "\fBpanic action (G)\fP" 
4433 .IP 
4434 This is a Samba developer option that allows a system command to be
4435 called when either \fBsmbd\fP or
4436 \fBnmbd\fP crashes\&. This is usually used to draw
4437 attention to the fact that a problem occurred\&.
4438 .IP 
4439 \fBDefault:\fP
4440 \f(CW   panic action = <empty string>\fP
4441 .IP 
4442 .IP "\fBpasswd chat (G)\fP" 
4443 .IP 
4444 This string controls the \fI"chat"\fP conversation that takes places
4445 between \fBsmbd\fP and the local password changing
4446 program to change the users password\&. The string describes a sequence
4447 of response-receive pairs that \fBsmbd\fP uses to
4448 determine what to send to the \fBpasswd\fP program
4449 and what to expect back\&. If the expected output is not received then
4450 the password is not changed\&.
4451 .IP 
4452 This chat sequence is often quite site specific, depending on what
4453 local methods are used for password control (such as NIS etc)\&.
4454 .IP 
4455 The string can contain the macros \f(CW"%o"\fP and \f(CW"%n"\fP which are
4456 substituted for the old and new passwords respectively\&. It can also
4457 contain the standard macros \f(CW"\en"\fP, \f(CW"\er"\fP, \f(CW"\et"\fP and \f(CW"\es"\fP
4458 to give line-feed, carriage-return, tab and space\&.
4459 .IP 
4460 The string can also contain a \f(CW\'*\'\fP which matches any sequence of
4461 characters\&.
4462 .IP 
4463 Double quotes can be used to collect strings with spaces in them into
4464 a single string\&.
4465 .IP 
4466 If the send string in any part of the chat sequence is a fullstop
4467 \f(CW"\&."\fP  then no string is sent\&. Similarly, is the expect string is a
4468 fullstop then no string is expected\&.
4469 .IP 
4470 Note that if the \fB"unix password sync"\fP
4471 parameter is set to true, then this sequence is called \fI*AS ROOT*\fP
4472 when the SMB password in the smbpasswd file is being changed, without
4473 access to the old password cleartext\&. In this case the old password
4474 cleartext is set to \f(CW""\fP (the empty string)\&.
4475 .IP 
4476 See also \fB"unix password sync"\fP,
4477 \fB"passwd program"\fP and \fB"passwd chat
4478 debug"\fP\&.
4479 .IP 
4480 \fBExample:\fP 
4482 .nf 
4484  passwd chat = "*Enter OLD password*" %o\en "*Enter NEW password*" %n\en "*Reenter NEW password*" %n\en "*Password changed*"
4486 .fi 
4489 .IP 
4490 \fBDefault:\fP
4492 .nf 
4494        passwd chat = *old*password* %o\en *new*password* %n\en *new*password* %n\en *changed*
4495 .fi 
4498 .IP 
4499 .IP "\fBpasswd chat debug (G)\fP" 
4500 .IP 
4501 This boolean specifies if the passwd chat script parameter is run in
4502 \f(CW"debug"\fP mode\&. In this mode the strings passed to and received from
4503 the passwd chat are printed in the \fBsmbd\fP log with
4504 a \fB"debug level"\fP of 100\&. This is a dangerous
4505 option as it will allow plaintext passwords to be seen in the
4506 \fBsmbd\fP log\&. It is available to help Samba admins
4507 debug their \fB"passwd chat"\fP scripts when calling
4508 the \fB"passwd program"\fP and should be turned off
4509 after this has been done\&. This parameter is off by default\&.
4510 .IP 
4511 See also \fB"passwd chat"\fP, \fB"passwd
4512 program"\fP\&.
4513 .IP 
4514 \fBExample:\fP
4515 \f(CW     passwd chat debug = True\fP
4516 .IP 
4517 \fBDefault:\fP
4518 \f(CW     passwd chat debug = False\fP
4519 .IP 
4520 .IP "\fBpasswd program (G)\fP" 
4521 .IP 
4522 The name of a program that can be used to set UNIX user passwords\&.
4523 Any occurrences of \fB%u\fP will be replaced with the
4524 user name\&. The user name is checked for existence before calling the
4525 password changing program\&.
4526 .IP 
4527 Also note that many passwd programs insist in \fI"reasonable"\fP
4528 passwords, such as a minimum length, or the inclusion of mixed case
4529 chars and digits\&. This can pose a problem as some clients (such as
4530 Windows for Workgroups) uppercase the password before sending it\&.
4531 .IP 
4532 \fINote\fP that if the \fB"unix password sync"\fP
4533 parameter is set to \f(CW"True"\fP then this program is called \fI*AS
4534 ROOT*\fP before the SMB password in the
4535 \fBsmbpasswd\fP file is changed\&. If this UNIX
4536 password change fails, then \fBsmbd\fP will fail to
4537 change the SMB password also (this is by design)\&.
4538 .IP 
4539 If the \fB"unix password sync"\fP parameter is
4540 set this parameter \fIMUST USE ABSOLUTE PATHS\fP for \fIALL\fP programs
4541 called, and must be examined for security implications\&. Note that by
4542 default \fB"unix password sync"\fP is set to
4543 \f(CW"False"\fP\&.
4544 .IP 
4545 See also \fB"unix password sync"\fP\&.
4546 .IP 
4547 \fBDefault:\fP
4548 \f(CW   passwd program = /bin/passwd\fP
4549 .IP 
4550 \fBExample:\fP
4551 \f(CW   passwd program = /sbin/passwd %u\fP
4552 .IP 
4553 .IP "\fBpassword level (G)\fP" 
4554 .IP 
4555 Some client/server combinations have difficulty with mixed-case
4556 passwords\&.  One offending client is Windows for Workgroups, which for
4557 some reason forces passwords to upper case when using the LANMAN1
4558 protocol, but leaves them alone when using COREPLUS!
4559 .IP 
4560 This parameter defines the maximum number of characters that may be
4561 upper case in passwords\&.
4562 .IP 
4563 For example, say the password given was \f(CW"FRED"\fP\&. If \fBpassword
4564 level\fP is set to 1, the following combinations would be tried if
4565 \f(CW"FRED"\fP failed:
4566 .IP 
4567 \f(CW"Fred"\fP, \f(CW"fred"\fP, \f(CW"fRed"\fP, \f(CW"frEd"\fP, \f(CW"freD"\fP
4568 .IP 
4569 If \fBpassword level\fP was set to 2, the following combinations would
4570 also be tried: 
4571 .IP 
4572 \f(CW"FRed"\fP, \f(CW"FrEd"\fP, \f(CW"FreD"\fP, \f(CW"fREd"\fP, \f(CW"fReD"\fP,
4573 \f(CW"frED"\fP, \f(CW\&.\&.\fP
4574 .IP 
4575 And so on\&.
4576 .IP 
4577 The higher value this parameter is set to the more likely it is that a
4578 mixed case password will be matched against a single case
4579 password\&. However, you should be aware that use of this parameter
4580 reduces security and increases the time taken to process a new
4581 connection\&.
4582 .IP 
4583 A value of zero will cause only two attempts to be made - the password
4584 as is and the password in all-lower case\&.
4585 .IP 
4586 \fBDefault:\fP
4587 \f(CW   password level = 0\fP
4588 .IP 
4589 \fBExample:\fP
4590 \f(CW   password level = 4\fP
4591 .IP 
4592 .IP "\fBpassword server (G)\fP" 
4593 .IP 
4594 By specifying the name of another SMB server (such as a WinNT box)
4595 with this option, and using \fB"security = domain"\fP or
4596 \fB"security = server"\fP you can get Samba to do all
4597 its username/password validation via a remote server\&.
4598 .IP 
4599 This options sets the name of the password server to use\&. It must be a
4600 NetBIOS name, so if the machine\'s NetBIOS name is different from its
4601 internet name then you may have to add its NetBIOS name to the lmhosts 
4602 file which is stored in the same directory as the \fBsmb\&.conf\fP file\&.
4603 .IP 
4604 The name of the password server is looked up using the parameter
4605 \fB"name resolve order="\fP and so may resolved
4606 by any method and order described in that parameter\&.
4607 .IP 
4608 The password server much be a machine capable of using the "LM1\&.2X002"
4609 or the "LM NT 0\&.12" protocol, and it must be in user level security
4610 mode\&. 
4611 .IP 
4612 NOTE: Using a password server means your UNIX box (running Samba) is
4613 only as secure as your password server\&. \fIDO NOT CHOOSE A PASSWORD
4614 SERVER THAT YOU DON\'T COMPLETELY TRUST\fP\&.
4615 .IP 
4616 Never point a Samba server at itself for password serving\&. This will
4617 cause a loop and could lock up your Samba server!
4618 .IP 
4619 The name of the password server takes the standard substitutions, but
4620 probably the only useful one is \fB%m\fP, which means
4621 the Samba server will use the incoming client as the password
4622 server\&. If you use this then you better trust your clients, and you
4623 better restrict them with hosts allow!
4624 .IP 
4625 If the \fB"security"\fP parameter is set to
4626 \fB"domain"\fP, then the list of machines in this option must be a list
4627 of Primary or Backup Domain controllers for the
4628 \fBDomain\fP or the character \f(CW*\fP, as the Samba server is cryptographicly
4629 in that domain, and will use cryptographicly authenticated RPC calls
4630 to authenticate the user logging on\&. The advantage of using
4631 \fB"security=domain"\fP is that if you list
4632 several hosts in the \fB"password server"\fP option then
4633 \fBsmbd\fP will try each in turn till it finds one
4634 that responds\&. This is useful in case your primary server goes down\&.
4635 .IP 
4636 If the \fB"password server"\fP option is set to the character \f(CW*\fP,
4637 then Samba will attempt to auto-locate the Primary or Backup Domain controllers
4638 to authenticate against by doing a query for the name \f(CWWORKGROUP<1C>\fP
4639 and then contacting each server returned in the list of IP addresses
4640 from the \fBname resolution\fP source\&.
4641 .IP 
4642 If the \fB"security"\fP parameter is set to
4643 \fB"server"\fP, then there are different
4644 restrictions that \fB"security=domain"\fP
4645 doesn\'t suffer from:
4646 .IP 
4647 .IP 
4648 .IP o 
4649 You may list several password servers in the \fB"password server"\fP
4650 parameter, however if an \fBsmbd\fP makes a connection
4651 to a password server, and then the password server fails, no more
4652 users will be able to be authenticated from this
4653 \fBsmbd\fP\&.  This is a restriction of the SMB/CIFS
4654 protocol when in \fB"security=server"\fP mode
4655 and cannot be fixed in Samba\&.
4656 .IP 
4657 .IP o 
4658 If you are using a Windows NT server as your password server then
4659 you will have to ensure that your users are able to login from the
4660 Samba server, as when in
4661 \fB"security=server"\fP mode the network
4662 logon will appear to come from there rather than from the users
4663 workstation\&.
4664 .IP 
4665 .IP 
4666 See also the \fB"security"\fP parameter\&.
4667 .IP 
4668 \fBDefault:\fP
4669 \f(CW   password server = <empty string>\fP
4670 .IP 
4671 \fBExample:\fP
4672 \f(CW   password server = NT-PDC, NT-BDC1, NT-BDC2\fP
4673 .IP 
4674 \fBExample:\fP
4675 \f(CW   password server = *\fP
4676 .IP 
4677 .IP "\fBpath (S)\fP" 
4678 .IP 
4679 This parameter specifies a directory to which the user of the service
4680 is to be given access\&. In the case of printable services, this is
4681 where print data will spool prior to being submitted to the host for
4682 printing\&.
4683 .IP 
4684 For a printable service offering guest access, the service should be
4685 readonly and the path should be world-writeable and have the sticky bit
4686 set\&. This is not mandatory of course, but you probably won\'t get the
4687 results you expect if you do otherwise\&.
4688 .IP 
4689 Any occurrences of \fB%u\fP in the path will be replaced
4690 with the UNIX username that the client is using on this
4691 connection\&. Any occurrences of \fB%m\fP will be replaced
4692 by the NetBIOS name of the machine they are connecting from\&. These
4693 replacements are very useful for setting up pseudo home directories
4694 for users\&.
4695 .IP 
4696 Note that this path will be based on \fB"root dir"\fP if
4697 one was specified\&.
4698 .IP 
4699 \fBDefault:\fP
4700 \f(CW   none\fP
4701 .IP 
4702 \fBExample:\fP
4703 \f(CW   path = /home/fred\fP
4704 .IP 
4705 .IP "\fBpostexec (S)\fP" 
4706 .IP 
4707 This option specifies a command to be run whenever the service is
4708 disconnected\&. It takes the usual substitutions\&. The command may be run
4709 as the root on some systems\&.
4710 .IP 
4711 An interesting example may be do unmount server resources:
4712 .IP 
4713 \f(CWpostexec = /etc/umount /cdrom\fP
4714 .IP 
4715 See also \fBpreexec\fP\&.
4716 .IP 
4717 \fBDefault:\fP
4718 \f(CW      none (no command executed)\fP
4719 .IP 
4720 \fBExample:\fP
4721 \f(CW      postexec = echo "%u disconnected from %S from %m (%I)" >> /tmp/log\fP
4722 .IP 
4723 .IP "\fBpostscript (S)\fP" 
4724 .IP 
4725 This parameter forces a printer to interpret the print files as
4726 postscript\&. This is done by adding a \f(CW%!\fP to the start of print output\&.
4727 .IP 
4728 This is most useful when you have lots of PCs that persist in putting
4729 a control-D at the start of print jobs, which then confuses your
4730 printer\&.
4731 .IP 
4732 \fBDefault:\fP
4733 \f(CW   postscript = False\fP
4734 .IP 
4735 \fBExample:\fP
4736 \f(CW   postscript = True\fP
4737 .IP 
4738 .IP "\fBpreexec (S)\fP" 
4739 .IP 
4740 This option specifies a command to be run whenever the service is
4741 connected to\&. It takes the usual substitutions\&.
4742 .IP 
4743 An interesting example is to send the users a welcome message every
4744 time they log in\&. Maybe a message of the day? Here is an example:
4745 .IP 
4747 .nf 
4750         preexec = csh -c \'echo \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient -M %m -I %I\' &
4752 .fi 
4755 .IP 
4756 Of course, this could get annoying after a while :-)
4757 .IP 
4758 See also \fBpreexec close\fP and \fBpostexec\fP\&.
4759 .IP 
4760 \fBDefault:\fP
4761 \f(CW   none (no command executed)\fP
4762 .IP 
4763 \fBExample:\fP
4764 \f(CW        preexec = echo \e"%u connected to %S from %m (%I)\e" >> /tmp/log\fP
4765 .IP 
4766 .IP "\fBpreexec close (S)\fP" 
4767 .IP 
4768 This boolean option controls whether a non-zero return code from
4769 \fB"preexec"\fP should close the service being connected to\&.
4770 .IP 
4771 \fBDefault:\fP
4772 \f(CW   preexec close = no\fP
4773 .IP 
4774 \fBExample:\fP
4775 \f(CW   preexec close = yes\fP
4776 .IP 
4777 .IP "\fBpreferred master (G)\fP" 
4778 .IP 
4779 This boolean parameter controls if \fBnmbd\fP is a
4780 preferred master browser for its workgroup\&.
4781 .IP 
4782 If this is set to true, on startup, \fBnmbd\fP will
4783 force an election, and it will have a slight advantage in winning the
4784 election\&.  It is recommended that this parameter is used in
4785 conjunction with \fB"domain master = yes"\fP, so
4786 that \fBnmbd\fP can guarantee becoming a domain
4787 master\&.
4788 .IP 
4789 Use this option with caution, because if there are several hosts
4790 (whether Samba servers, Windows 95 or NT) that are preferred master
4791 browsers on the same subnet, they will each periodically and
4792 continuously attempt to become the local master browser\&.  This will
4793 result in unnecessary broadcast traffic and reduced browsing
4794 capabilities\&.
4795 .IP 
4796 See also \fBos level\fP\&.
4797 .IP 
4798 \fBDefault:\fP
4799 \f(CW   preferred master = no\fP
4800 .IP 
4801 \fBExample:\fP
4802 \f(CW   preferred master = yes\fP
4803 .IP 
4804 .IP "\fBprefered master (G)\fP" 
4805 .IP 
4806 Synonym for \fB"preferred master"\fP for people
4807 who cannot spell :-)\&.
4808 .IP 
4809 .IP "\fBpreload\fP" 
4810 Synonym for \fB"auto services"\fP\&.
4811 .IP 
4812 .IP "\fBpreserve case (S)\fP" 
4813 .IP 
4814 This controls if new filenames are created with the case that the
4815 client passes, or if they are forced to be the \f(CW"default"\fP case\&.
4816 .IP 
4817 \fBDefault:\fP
4818 \f(CW       preserve case = yes\fP
4819 .IP 
4820 See the section on \fB"NAME MANGLING"\fP for a
4821 fuller discussion\&.
4822 .IP 
4823 .IP "\fBprint command (S)\fP" 
4824 .IP 
4825 After a print job has finished spooling to a service, this command
4826 will be used via a \f(CWsystem()\fP call to process the spool
4827 file\&. Typically the command specified will submit the spool file to
4828 the host\'s printing subsystem, but there is no requirement that this
4829 be the case\&. The server will not remove the spool file, so whatever
4830 command you specify should remove the spool file when it has been
4831 processed, otherwise you will need to manually remove old spool files\&.
4832 .IP 
4833 The print command is simply a text string\&. It will be used verbatim,
4834 with two exceptions: All occurrences of \f(CW"%s"\fP and \f(CW"%f"\fP will be
4835 replaced by the appropriate spool file name, and all occurrences of
4836 \f(CW"%p"\fP will be replaced by the appropriate printer name\&. The spool
4837 file name is generated automatically by the server, the printer name
4838 is discussed below\&.
4839 .IP 
4840 The print command \fIMUST\fP contain at least one occurrence of \f(CW"%s"\fP
4841 or \f(CW"%f"\fP - the \f(CW"%p"\fP is optional\&. At the time a job is
4842 submitted, if no printer name is supplied the \f(CW"%p"\fP will be
4843 silently removed from the printer command\&.
4844 .IP 
4845 If specified in the \fB"[global]"\fP section, the print
4846 command given will be used for any printable service that does not
4847 have its own print command specified\&.
4848 .IP 
4849 If there is neither a specified print command for a printable service
4850 nor a global print command, spool files will be created but not
4851 processed and (most importantly) not removed\&.
4852 .IP 
4853 Note that printing may fail on some UNIXs from the \f(CW"nobody"\fP
4854 account\&. If this happens then create an alternative guest account that
4855 can print and set the \fB"guest account"\fP in the
4856 \fB"[global]"\fP section\&.
4857 .IP 
4858 You can form quite complex print commands by realizing that they are
4859 just passed to a shell\&. For example the following will log a print
4860 job, print the file, then remove it\&. Note that \f(CW\';\'\fP is the usual
4861 separator for command in shell scripts\&.
4862 .IP 
4863 \f(CWprint command = echo Printing %s >> /tmp/print\&.log; lpr -P %p %s; rm %s\fP
4864 .IP 
4865 You may have to vary this command considerably depending on how you
4866 normally print files on your system\&. The default for the parameter
4867 varies depending on the setting of the \fB"printing="\fP
4868 parameter\&.
4869 .IP 
4870 \fBDefault:\fP
4871 For \fB"printing="\fP BSD, AIX, QNX, LPRNG or PLP :
4872 \f(CW   print command = lpr -r -P%p %s\fP
4873 .IP 
4874 For \fB"printing="\fP SYS or HPUX :
4875 \f(CW   print command = lp -c -d%p %s; rm %s\fP
4876 .IP 
4877 For \fB"printing="\fP SOFTQ :
4878 \f(CW   print command = lp -d%p -s %s; rm %s\fP
4879 .IP 
4880 \fBExample:\fP
4881 \f(CW   print command = /usr/local/samba/bin/myprintscript %p %s\fP
4882 .IP 
4883 .IP "\fBprint ok (S)\fP" 
4884 .IP 
4885 Synonym for \fBprintable\fP\&.
4886 .IP 
4887 .IP "\fBprintable (S)\fP" 
4888 .IP 
4889 If this parameter is \f(CW"yes"\fP, then clients may open, write to and
4890 submit spool files on the directory specified for the service\&.
4891 .IP 
4892 Note that a printable service will ALWAYS allow writing to the service
4893 path (user privileges permitting) via the spooling of print data\&. The
4894 \fB"writeable"\fP parameter controls only non-printing
4895 access to the resource\&.
4896 .IP 
4897 \fBDefault:\fP
4898 \f(CW   printable = no\fP
4899 .IP 
4900 \fBExample:\fP
4901 \f(CW   printable = yes\fP
4902 .IP 
4903 .IP "\fBprintcap (G)\fP" 
4904 .IP 
4905 Synonym for \fBprintcapname\fP\&.
4906 .IP 
4907 .IP "\fBprinter admin (S)\fP" 
4908 .IP 
4909 This is a list of users that can do anything to printers via the
4910 remote administration interfaces offered by MSRPC (usually using a NT
4911 workstation)\&. Note that the root user always has admin rights\&.
4912 .IP 
4913 \fBDefault:\fP
4914 \f(CW     printer admin = <empty string>\fP
4915 .IP 
4916 \fBExample:\fP
4917 \f(CW   printer admin = admin, @staff\fP
4918 .IP 
4919 .IP "\fBprintcap name (G)\fP" 
4920 .IP 
4921 This parameter may be used to override the compiled-in default
4922 printcap name used by the server (usually /etc/printcap)\&. See the
4923 discussion of the \fB[printers]\fP section above for
4924 reasons why you might want to do this\&.
4925 .IP 
4926 On System V systems that use \fBlpstat\fP to list available printers you
4927 can use \f(CW"printcap name = lpstat"\fP to automatically obtain lists of
4928 available printers\&. This is the default for systems that define SYSV
4929 at configure time in Samba (this includes most System V based
4930 systems)\&. If \fB"printcap name"\fP is set to \fBlpstat\fP on these systems
4931 then Samba will launch \f(CW"lpstat -v"\fP and attempt to parse the output
4932 to obtain a printer list\&.
4933 .IP 
4934 A minimal printcap file would look something like this:
4935 .IP 
4937 .nf 
4940         print1|My Printer 1
4941         print2|My Printer 2
4942         print3|My Printer 3
4943         print4|My Printer 4
4944         print5|My Printer 5
4946 .fi 
4949 .IP 
4950 where the \f(CW\'|\'\fP separates aliases of a printer\&. The fact that the
4951 second alias has a space in it gives a hint to Samba that it\'s a
4952 comment\&.
4953 .IP 
4954 \fINOTE\fP: Under AIX the default printcap name is
4955 \f(CW"/etc/qconfig"\fP\&. Samba will assume the file is in AIX \f(CW"qconfig"\fP
4956 format if the string \f(CW"/qconfig"\fP appears in the printcap filename\&.
4957 .IP 
4958 \fBDefault:\fP
4959 \f(CW   printcap name = /etc/printcap\fP
4960 .IP 
4961 \fBExample:\fP
4962 \f(CW   printcap name = /etc/myprintcap\fP
4963 .IP 
4964 .IP "\fBprinter (S)\fP" 
4965 .IP 
4966 This parameter specifies the name of the printer to which print jobs
4967 spooled through a printable service will be sent\&.
4968 .IP 
4969 If specified in the \fB[global]\fP section, the printer
4970 name given will be used for any printable service that does not have
4971 its own printer name specified\&.
4972 .IP 
4973 \fBDefault:\fP
4974 none (but may be \f(CW"lp"\fP on many systems)
4975 .IP 
4976 \fBExample:\fP
4977 printer name = laserwriter
4978 .IP 
4979 .IP "\fBprinter driver (S)\fP" 
4980 .IP 
4981 This option allows you to control the string that clients receive when
4982 they ask the server for the printer driver associated with a
4983 printer\&. If you are using Windows95 or WindowsNT then you can use this
4984 to automate the setup of printers on your system\&.
4985 .IP 
4986 You need to set this parameter to the exact string (case sensitive)
4987 that describes the appropriate printer driver for your system\&. If you
4988 don\'t know the exact string to use then you should first try with no
4989 \fB"printer driver"\fP option set and the client will give you a list of
4990 printer drivers\&. The appropriate strings are shown in a scrollbox
4991 after you have chosen the printer manufacturer\&.
4992 .IP 
4993 See also \fB"printer driver file"\fP\&.
4994 .IP 
4995 \fBExample:\fP
4996 printer driver = HP LaserJet 4L
4997 .IP 
4998 .IP "\fBprinter driver file (G)\fP" 
4999 .IP 
5000 This parameter tells Samba where the printer driver definition file,
5001 used when serving drivers to Windows 95 clients, is to be found\&. If
5002 this is not set, the default is :
5003 .IP 
5004 \f(CWSAMBA_INSTALL_DIRECTORY/lib/printers\&.def\fP
5005 .IP 
5006 This file is created from Windows 95 \f(CW"msprint\&.def"\fP files found on
5007 the Windows 95 client system\&. For more details on setting up serving
5008 of printer drivers to Windows 95 clients, see the documentation file
5009 in the docs/ directory, PRINTER_DRIVER\&.txt\&.
5010 .IP 
5011 \fBDefault:\fP
5012 \f(CW   None (set in compile)\&.\fP
5013 .IP 
5014 \fBExample:\fP
5015 \f(CW   printer driver file = /usr/local/samba/printers/drivers\&.def\fP
5016 .IP 
5017 See also \fB"printer driver location"\fP\&.
5018 .IP 
5019 .IP "\fBprinter driver location (S)\fP" 
5020 .IP 
5021 This parameter tells clients of a particular printer share where to
5022 find the printer driver files for the automatic installation of
5023 drivers for Windows 95 machines\&. If Samba is set up to serve printer
5024 drivers to Windows 95 machines, this should be set to
5025 .IP 
5026 \f(CW\e\eMACHINE\ePRINTER$\fP
5027 .IP 
5028 Where MACHINE is the NetBIOS name of your Samba server, and PRINTER$
5029 is a share you set up for serving printer driver files\&. For more
5030 details on setting this up see the documentation file in the docs/
5031 directory, PRINTER_DRIVER\&.txt\&.
5032 .IP 
5033 \fBDefault:\fP
5034 \f(CW   None\fP
5035 .IP 
5036 \fBExample:\fP
5037 \f(CW   printer driver location = \e\eMACHINE\ePRINTER$\fP
5038 .IP 
5039 See also \fB"printer driver file"\fP\&.
5040 .IP 
5041 .IP "\fBprinter name (S)\fP" 
5042 .IP 
5043 Synonym for \fBprinter\fP\&.
5044 .IP 
5045 .IP "\fBprinting (S)\fP" 
5046 .IP 
5047 This parameters controls how printer status information is interpreted
5048 on your system\&. It also affects the default values for the
5049 \fB"print command"\fP, \fB"lpq
5050 command"\fP \fB"lppause command"\fP,
5051 \fB"lpresume command"\fP, and \fB"lprm
5052 command"\fP if specified in the \fB[global]\fP
5053 section\&.
5054 .IP 
5055 Currently eight printing styles are supported\&. They are
5056 \fB"printing=BSD"\fP, \fB"printing=AIX"\fP, 
5057 \fB"printing=LPRNG"\fP, \fB"printing=PLP"\fP, \fB"printing=SYSV"\fP, 
5058 \fB"printing="HPUX"\fP, \fB"printing=QNX"\fP, \fB"printing=SOFTQ"\fP,
5059 and \fB"printing=CUPS"\fP\&.
5060 .IP 
5061 To see what the defaults are for the other print commands when using
5062 the various options use the \fB"testparm"\fP program\&.
5063 .IP 
5064 This option can be set on a per printer basis
5065 .IP 
5066 See also the discussion in the \fB[printers]\fP section\&.
5067 .IP 
5068 .IP "\fBprotocol (G)\fP" 
5069 .IP 
5070 The value of the parameter (a string) is the highest protocol level
5071 that will be supported by the server\&.
5072 .IP 
5073 Possible values are :
5074 .IP 
5075 .IP 
5076 .IP o 
5077 CORE: Earliest version\&. No concept of user names\&.
5078 .IP 
5079 .IP o 
5080 COREPLUS: Slight improvements on CORE for efficiency\&.
5081 .IP 
5082 .IP o 
5083 LANMAN1: First \fI"modern"\fP version of the protocol\&. Long
5084 filename support\&.
5085 .IP 
5086 .IP o 
5087 LANMAN2: Updates to Lanman1 protocol\&.
5088 .IP 
5089 .IP o 
5090 NT1: Current up to date version of the protocol\&. Used by Windows
5091 NT\&. Known as CIFS\&.
5092 .IP 
5093 .IP 
5094 Normally this option should not be set as the automatic negotiation
5095 phase in the SMB protocol takes care of choosing the appropriate
5096 protocol\&.
5097 .IP 
5098 \fBDefault:\fP
5099 \f(CW   protocol = NT1\fP
5100 .IP 
5101 \fBExample:\fP
5102 \f(CW   protocol = LANMAN1\fP
5103 .IP 
5104 .IP "\fBpublic (S)\fP" 
5105 .IP 
5106 Synonym for \fB"guest ok"\fP\&.
5107 .IP 
5108 .IP "\fBqueuepause command (S)\fP" 
5109 .IP 
5110 This parameter specifies the command to be executed on the server host
5111 in order to pause the printerqueue\&.
5112 .IP 
5113 This command should be a program or script which takes a printer name
5114 as its only parameter and stops the printerqueue, such that no longer
5115 jobs are submitted to the printer\&.
5116 .IP 
5117 This command is not supported by Windows for Workgroups, but can be
5118 issued from the Printer\'s window under Windows 95 & NT\&.
5119 .IP 
5120 If a \f(CW"%p"\fP is given then the printername is put in its
5121 place\&. Otherwise it is placed at the end of the command\&.
5122 .IP 
5123 Note that it is good practice to include the absolute path in the
5124 command as the PATH may not be available to the server\&.
5125 .IP 
5126 \fBDefault:\fP
5127 \f(CW        depends on the setting of "printing ="\fP
5128 .IP 
5129 \fBExample:\fP
5130 \f(CW      queuepause command = disable %p\fP
5131 .IP 
5132 .IP "\fBqueueresume command (S)\fP" 
5133 .IP 
5134 This parameter specifies the command to be executed on the server host
5135 in order to resume the printerqueue\&. It is the command to undo the
5136 behavior that is caused by the previous parameter
5137 (\fB"queuepause command\fP)\&.
5138 .IP 
5139 This command should be a program or script which takes a printer name
5140 as its only parameter and resumes the printerqueue, such that queued
5141 jobs are resubmitted to the printer\&.
5142 .IP 
5143 This command is not supported by Windows for Workgroups, but can be
5144 issued from the Printer\'s window under Windows 95 & NT\&.
5145 .IP 
5146 If a \f(CW"%p"\fP is given then the printername is put in its
5147 place\&. Otherwise it is placed at the end of the command\&.
5148 .IP 
5149 Note that it is good practice to include the absolute path in the
5150 command as the PATH may not be available to the server\&.
5151 .IP 
5152 \fBDefault:\fP
5153 \f(CW        depends on the setting of "printing ="\fP
5154 .IP 
5155 \fBExample:\fP
5156 \f(CW      queuepause command = enable %p\fP
5157 .IP 
5158 .IP "\fBread bmpx (G)\fP" 
5159 .IP 
5160 This boolean parameter controls whether \fBsmbd\fP
5161 will support the "Read Block Multiplex" SMB\&. This is now rarely used
5162 and defaults to off\&. You should never need to set this parameter\&.
5163 .IP 
5164 \fBDefault:\fP
5165 read bmpx = No
5166 .IP 
5167 .IP "\fBread list (S)\fP" 
5168 .IP 
5169 This is a list of users that are given read-only access to a
5170 service\&. If the connecting user is in this list then they will not be
5171 given write access, no matter what the \fB"writeable"\fP
5172 option is set to\&. The list can include group names using the syntax
5173 described in the \fB"invalid users"\fP parameter\&.
5174 .IP 
5175 See also the \fB"write list"\fP parameter and
5176 the \fB"invalid users"\fP parameter\&.
5177 .IP 
5178 \fBDefault:\fP
5179 \f(CW   read list = <empty string>\fP
5180 .IP 
5181 \fBExample:\fP
5182 \f(CW   read list = mary, @students\fP
5183 .IP 
5184 .IP "\fBread only (S)\fP" 
5185 .IP 
5186 Note that this is an inverted synonym for
5187 \fB"writeable"\fP\&.
5188 .IP 
5189 .IP "\fBread prediction (G)\fP" 
5190 .IP 
5191 \fINOTE\fP: This code is currently disabled in Samba2\&.0 and
5192 may be removed at a later date\&. Hence this parameter has
5193 no effect\&.
5194 .IP 
5195 This options enables or disables the read prediction code used to
5196 speed up reads from the server\&. When enabled the server will try to
5197 pre-read data from the last accessed file that was opened read-only
5198 while waiting for packets\&.
5199 .IP 
5200 \fBDefault:\fP
5201 \f(CW   read prediction = False\fP
5202 .IP 
5203 .IP "\fBread raw (G)\fP" 
5204 .IP 
5205 This parameter controls whether or not the server will support the raw
5206 read SMB requests when transferring data to clients\&.
5207 .IP 
5208 If enabled, raw reads allow reads of 65535 bytes in one packet\&. This
5209 typically provides a major performance benefit\&.
5210 .IP 
5211 However, some clients either negotiate the allowable block size
5212 incorrectly or are incapable of supporting larger block sizes, and for
5213 these clients you may need to disable raw reads\&.
5214 .IP 
5215 In general this parameter should be viewed as a system tuning tool and left
5216 severely alone\&. See also \fB"write raw"\fP\&.
5217 .IP 
5218 \fBDefault:\fP
5219 \f(CW   read raw = yes\fP
5220 .IP 
5221 .IP "\fBread size (G)\fP" 
5222 .IP 
5223 The option \fB"read size"\fP affects the overlap of disk reads/writes
5224 with network reads/writes\&. If the amount of data being transferred in
5225 several of the SMB commands (currently SMBwrite, SMBwriteX and
5226 SMBreadbraw) is larger than this value then the server begins writing
5227 the data before it has received the whole packet from the network, or
5228 in the case of SMBreadbraw, it begins writing to the network before
5229 all the data has been read from disk\&.
5230 .IP 
5231 This overlapping works best when the speeds of disk and network access
5232 are similar, having very little effect when the speed of one is much
5233 greater than the other\&.
5234 .IP 
5235 The default value is 16384, but very little experimentation has been
5236 done yet to determine the optimal value, and it is likely that the
5237 best value will vary greatly between systems anyway\&. A value over
5238 65536 is pointless and will cause you to allocate memory
5239 unnecessarily\&.
5240 .IP 
5241 \fBDefault:\fP
5242 \f(CW   read size = 16384\fP
5243 .IP 
5244 \fBExample:\fP
5245 \f(CW   read size = 8192\fP
5246 .IP 
5247 .IP "\fBremote announce (G)\fP" 
5248 .IP 
5249 This option allows you to setup \fBnmbd\fP to
5250 periodically announce itself to arbitrary IP addresses with an
5251 arbitrary workgroup name\&.
5252 .IP 
5253 This is useful if you want your Samba server to appear in a remote
5254 workgroup for which the normal browse propagation rules don\'t
5255 work\&. The remote workgroup can be anywhere that you can send IP
5256 packets to\&.
5257 .IP 
5258 For example:
5259 .IP 
5260 \f(CW   remote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\fP
5261 .IP 
5262 the above line would cause nmbd to announce itself to the two given IP
5263 addresses using the given workgroup names\&. If you leave out the
5264 workgroup name then the one given in the
5265 \fB"workgroup"\fP parameter is used instead\&.
5266 .IP 
5267 The IP addresses you choose would normally be the broadcast addresses
5268 of the remote networks, but can also be the IP addresses of known
5269 browse masters if your network config is that stable\&.
5270 .IP 
5271 See the documentation file BROWSING\&.txt in the docs/ directory\&.
5272 .IP 
5273 \fBDefault:\fP
5274 \f(CW   remote announce = <empty string>\fP
5275 .IP 
5276 \fBExample:\fP
5277 \f(CW   remote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\fP
5278 .IP 
5279 .IP "\fBremote browse sync (G)\fP" 
5280 .IP 
5281 This option allows you to setup \fBnmbd\fP to
5282 periodically request synchronization of browse lists with the master
5283 browser of a samba server that is on a remote segment\&. This option
5284 will allow you to gain browse lists for multiple workgroups across
5285 routed networks\&. This is done in a manner that does not work with any
5286 non-samba servers\&.
5287 .IP 
5288 This is useful if you want your Samba server and all local clients to
5289 appear in a remote workgroup for which the normal browse propagation
5290 rules don\'t work\&. The remote workgroup can be anywhere that you can
5291 send IP packets to\&.
5292 .IP 
5293 For example:
5294 .IP 
5295 \f(CW   remote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fP
5296 .IP 
5297 the above line would cause \fBnmbd\fP to request the
5298 master browser on the specified subnets or addresses to synchronize
5299 their browse lists with the local server\&.
5300 .IP 
5301 The IP addresses you choose would normally be the broadcast addresses
5302 of the remote networks, but can also be the IP addresses of known
5303 browse masters if your network config is that stable\&. If a machine IP
5304 address is given Samba makes NO attempt to validate that the remote
5305 machine is available, is listening, nor that it is in fact the browse
5306 master on it\'s segment\&.
5307 .IP 
5308 \fBDefault:\fP
5309 \f(CW   remote browse sync = <empty string>\fP
5310 .IP 
5311 \fBExample:\fP
5312 \f(CW   remote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fP
5313 .IP 
5314 .IP "\fBrestrict anonymous (G)\fP" 
5315 .IP 
5316 This is a boolean parameter\&.  If it is true, then anonymous access
5317 to the server will be restricted, namely in the case where the server
5318 is expecting the client to send a username, but it doesn\'t\&.  Setting
5319 it to true will force these anonymous connections to be denied, and
5320 the client will be required to always supply a username and password
5321 when connecting\&. Use of this parameter is only recommened for homogenous 
5322 NT client environments\&.
5323 .IP 
5324 This parameter makes the use of macro expansions that rely
5325 on the username (%U, %G, etc) consistant\&.  NT 4\&.0 likes to use
5326 anonymous connections when refreshing the share list, and this
5327 is a way to work around that\&.
5328 .IP 
5329 When restrict anonymous is true, all anonymous connections are denied
5330 no matter what they are for\&.  This can effect the ability of a machine
5331 to access the samba Primary Domain Controller to revalidate it\'s machine
5332 account after someone else has logged on the client interactively\&.  The
5333 NT client will display a message saying that the machine\'s account in 
5334 the domain doesn\'t exist or the password is bad\&.  The best way to deal 
5335 with this is to reboot NT client machines between interactive logons, 
5336 using "Shutdown and Restart", rather than "Close all programs and logon 
5337 as a different user"\&.
5338 .IP 
5339 \fBDefault:\fP
5340 \f(CW     restrict anonymous = false\fP
5341 .IP 
5342 \fBExample:\fP
5343 \f(CW     restrict anonymous = true\fP
5344 .IP 
5345 .IP "\fBroot (G)\fP" 
5346 .IP 
5347 Synonym for \fB"root directory"\fP\&.
5348 .IP 
5349 .IP "\fBroot dir (G)\fP" 
5350 .IP 
5351 Synonym for \fB"root directory"\fP\&.
5352 .IP 
5353 .IP "\fBroot directory (G)\fP" 
5354 .IP 
5355 The server will \f(CW"chroot()"\fP (i\&.e\&. Change it\'s root directory) to
5356 this directory on startup\&. This is not strictly necessary for secure
5357 operation\&. Even without it the server will deny access to files not in
5358 one of the service entries\&. It may also check for, and deny access to,
5359 soft links to other parts of the filesystem, or attempts to use
5360 \f(CW"\&.\&."\fP in file names to access other directories (depending on the
5361 setting of the \fB"wide links"\fP parameter)\&.
5362 .IP 
5363 Adding a \fB"root directory"\fP entry other than \f(CW"/"\fP adds an extra
5364 level of security, but at a price\&. It absolutely ensures that no
5365 access is given to files not in the sub-tree specified in the \fB"root
5366 directory"\fP option, \fI*including*\fP some files needed for complete
5367 operation of the server\&. To maintain full operability of the server
5368 you will need to mirror some system files into the \fB"root
5369 directory"\fP tree\&. In particular you will need to mirror /etc/passwd
5370 (or a subset of it), and any binaries or configuration files needed
5371 for printing (if required)\&. The set of files that must be mirrored is
5372 operating system dependent\&.
5373 .IP 
5374 \fBDefault:\fP
5375 \f(CW   root directory = /\fP
5376 .IP 
5377 \fBExample:\fP
5378 \f(CW   root directory = /homes/smb\fP
5379 .IP 
5380 .IP "\fBroot postexec (S)\fP" 
5381 .IP 
5382 This is the same as the \fB"postexec"\fP parameter
5383 except that the command is run as root\&. This is useful for unmounting
5384 filesystems (such as cdroms) after a connection is closed\&.
5385 .IP 
5386 See also \fB"postexec"\fP\&.
5387 .IP 
5388 .IP "\fBroot preexec (S)\fP" 
5389 .IP 
5390 This is the same as the \fB"preexec"\fP parameter except
5391 that the command is run as root\&. This is useful for mounting
5392 filesystems (such as cdroms) before a connection is finalized\&.
5393 .IP 
5394 See also \fB"preexec"\fP
5395 and \fB"root preexec close"\fP\&.
5396 .IP 
5397 .IP "\fBroot preexec close (S)\fP" 
5398 .IP 
5399 This is the same as the \fB"preexec close"\fP parameter
5400 except that the command is run as root\&.
5401 .IP 
5402 See also \fB"preexec"\fP, \fB"preexec close"\fP\&.
5403 .IP 
5404 .IP "\fBsecurity (G)\fP" 
5405 .IP 
5406 This option affects how clients respond to Samba and is one of the most
5407 important settings in the \fBsmb\&.conf\fP file\&.
5408 .IP 
5409 The option sets the \f(CW"security mode bit"\fP in replies to protocol
5410 negotiations with \fBsmbd\fP to turn share level
5411 security on or off\&. Clients decide based on this bit whether (and how)
5412 to transfer user and password information to the server\&.
5413 .IP 
5414 The default is "security=user", as this is
5415 the most common setting needed when talking to Windows 98 and Windows
5416 NT\&.
5417 .IP 
5418 The alternatives are \fB"security = share"\fP,
5419 \fB"security = server"\fP or
5420 \fB"security=domain"\fP\&.
5421 .IP 
5422 \fI*****NOTE THAT THIS DEFAULT IS DIFFERENT IN SAMBA2\&.0 THAN FOR
5423 PREVIOUS VERSIONS OF SAMBA *******\fP\&.
5424 .IP 
5425 In previous versions of Samba the default was
5426 \fB"security=share"\fP mainly because that was
5427 the only option at one stage\&.
5428 .IP 
5429 There is a bug in WfWg that has relevance to this setting\&. When in
5430 user or server level security a WfWg client will totally ignore the
5431 password you type in the "connect drive" dialog box\&. This makes it
5432 very difficult (if not impossible) to connect to a Samba service as
5433 anyone except the user that you are logged into WfWg as\&.
5434 .IP 
5435 If your PCs use usernames that are the same as their usernames on the
5436 UNIX machine then you will want to use \fB"security = user"\fP\&. If you
5437 mostly use usernames that don\'t exist on the UNIX box then use
5438 \fB"security = share"\fP\&.
5439 .IP 
5440 You should also use \fBsecurity=share\fP if
5441 you want to mainly setup shares without a password (guest
5442 shares)\&. This is commonly used for a shared printer server\&. It is more
5443 difficult to setup guest shares with
5444 \fBsecurity=user\fP, see the \fB"map to
5445 guest"\fPparameter for details\&.
5446 .IP 
5447 It is possible to use \fBsmbd\fP in a \fI"hybrid
5448 mode"\fP where it is offers both user and share level security under
5449 different \fBNetBIOS aliases\fP\&. See the
5450 \fBNetBIOS aliases\fP and the
5451 \fBinclude\fP parameters for more information\&.
5452 .IP 
5453 The different settings will now be explained\&.
5454 .IP 
5455 .IP 
5456 .IP "\fB"security=share"\fP" 
5457 When clients connect to a share level
5458 security server then need not log onto the server with a valid
5459 username and password before attempting to connect to a shared
5460 resource (although modern clients such as Windows 95/98 and Windows NT
5461 will send a logon request with a username but no password when talking
5462 to a \fBsecurity=share\fP server)\&. Instead, the clients send
5463 authentication information (passwords) on a per-share basis, at the
5464 time they attempt to connect to that share\&.
5465 .IP 
5466 Note that \fBsmbd\fP \fI*ALWAYS*\fP uses a valid UNIX
5467 user to act on behalf of the client, even in \fB"security=share"\fP
5468 level security\&.
5469 .IP 
5470 As clients are not required to send a username to the server
5471 in share level security, \fBsmbd\fP uses several
5472 techniques to determine the correct UNIX user to use on behalf
5473 of the client\&.
5474 .IP 
5475 A list of possible UNIX usernames to match with the given
5476 client password is constructed using the following methods :
5477 .IP 
5478 .IP 
5479 .IP o 
5480 If the \fB"guest only"\fP parameter is set, then
5481 all the other stages are missed and only the \fB"guest
5482 account"\fP username is checked\&.
5483 .IP 
5484 .IP o 
5485 Is a username is sent with the share connection request, then
5486 this username (after mapping - see \fB"username
5487 map"\fP), is added as a potential username\&.
5488 .IP 
5489 .IP o 
5490 If the client did a previous \fI"logon"\fP request (the
5491 SessionSetup SMB call) then the username sent in this SMB
5492 will be added as a potential username\&.
5493 .IP 
5494 .IP o 
5495 The name of the service the client requested is added
5496 as a potential username\&.
5497 .IP 
5498 .IP o 
5499 The NetBIOS name of the client is added to the list as a
5500 potential username\&.
5501 .IP 
5502 .IP o 
5503 Any users on the \fB"user"\fP list are added
5504 as potential usernames\&.
5505 .IP 
5506 .IP 
5507 If the \fB"guest only"\fP parameter is not set, then
5508 this list is then tried with the supplied password\&. The first user for
5509 whom the password matches will be used as the UNIX user\&.
5510 .IP 
5511 If the \fB"guest only"\fP parameter is set, or no
5512 username can be determined then if the share is marked as available to
5513 the \fB"guest account"\fP, then this guest user will
5514 be used, otherwise access is denied\&.
5515 .IP 
5516 Note that it can be \fI*very*\fP confusing in share-level security as to
5517 which UNIX username will eventually be used in granting access\&.
5518 .IP 
5519 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5520 VALIDATION"\fP\&.
5521 .IP 
5522 .IP "\fB"security=user"\fP" 
5523 .IP 
5524 This is the default security setting in Samba2\&.0\&. With user-level
5525 security a client must first \f(CW"log-on"\fP with a valid username and
5526 password (which can be mapped using the \fB"username
5527 map"\fP parameter)\&. Encrypted passwords (see the
5528 \fB"encrypted passwords"\fP parameter) can also
5529 be used in this security mode\&. Parameters such as
5530 \fB"user"\fP and \fB"guest only"\fP, if set
5531 are then applied and may change the UNIX user to use on this
5532 connection, but only after the user has been successfully
5533 authenticated\&.
5534 .IP 
5535 \fINote\fP that the name of the resource being requested is
5536 \fI*not*\fP sent to the server until after the server has successfully
5537 authenticated the client\&. This is why guest shares don\'t work in user
5538 level security without allowing the server to automatically map unknown
5539 users into the \fB"guest account"\fP\&. See the
5540 \fB"map to guest"\fP parameter for details on
5541 doing this\&.
5542 .IP 
5543 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5544 VALIDATION"\fP\&.
5545 .IP 
5546 .IP "\fB"security=server"\fP" 
5547 .IP 
5548 In this mode Samba will try to validate the username/password by
5549 passing it to another SMB server, such as an NT box\&. If this fails it
5550 will revert to \fB"security = user"\fP, but note that if encrypted
5551 passwords have been negotiated then Samba cannot revert back to
5552 checking the UNIX password file, it must have a valid smbpasswd file
5553 to check users against\&. See the documentation file in the docs/
5554 directory ENCRYPTION\&.txt for details on how to set this up\&.
5555 .IP 
5556 \fINote\fP that from the clients point of view \fB"security=server"\fP is
5557 the same as \fB"security=user"\fP\&. It only
5558 affects how the server deals with the authentication, it does not in
5559 any way affect what the client sees\&.
5560 .IP 
5561 \fINote\fP that the name of the resource being requested is
5562 \fI*not*\fP sent to the server until after the server has successfully
5563 authenticated the client\&. This is why guest shares don\'t work in server
5564 level security without allowing the server to automatically map unknown
5565 users into the \fB"guest account"\fP\&. See the
5566 \fB"map to guest"\fP parameter for details on
5567 doing this\&.
5568 .IP 
5569 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5570 VALIDATION"\fP\&.
5571 .IP 
5572 See also the \fB"password server"\fP parameter\&.
5573 and the \fB"encrypted passwords"\fP parameter\&.
5574 .IP 
5575 .IP "\fB"security=domain"\fP" 
5576 .IP 
5577 This mode will only work correctly if
5578 \fBsmbpasswd\fP has been used to add this machine
5579 into a Windows NT Domain\&. It expects the \fB"encrypted
5580 passwords"\fP parameter to be set to \f(CW"true"\fP\&. In
5581 this mode Samba will try to validate the username/password by passing
5582 it to a Windows NT Primary or Backup Domain Controller, in exactly the
5583 same way that a Windows NT Server would do\&.
5584 .IP 
5585 \fINote\fP that a valid UNIX user must still exist as well as the
5586 account on the Domain Controller to allow Samba to have a valid
5587 UNIX account to map file access to\&.
5588 .IP 
5589 \fINote\fP that from the clients point of view \fB"security=domain"\fP is
5590 the same as \fB"security=user"\fP\&. It only
5591 affects how the server deals with the authentication, it does not in
5592 any way affect what the client sees\&.
5593 .IP 
5594 \fINote\fP that the name of the resource being requested is
5595 \fI*not*\fP sent to the server until after the server has successfully
5596 authenticated the client\&. This is why guest shares don\'t work in domain
5597 level security without allowing the server to automatically map unknown
5598 users into the \fB"guest account"\fP\&. See the
5599 \fB"map to guest"\fP parameter for details on
5600 doing this\&.
5601 .IP 
5602 \fIBUG:\fP There is currently a bug in the implementation of
5603 \fB"security=domain\fP with respect to multi-byte character
5604 set usernames\&. The communication with a Domain Controller
5605 must be done in UNICODE and Samba currently does not widen
5606 multi-byte user names to UNICODE correctly, thus a multi-byte
5607 username will not be recognized correctly at the Domain Controller\&.
5608 This issue will be addressed in a future release\&.
5609 .IP 
5610 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5611 VALIDATION"\fP\&.
5612 .IP 
5613 See also the \fB"password server"\fP parameter\&.
5614 and the \fB"encrypted passwords"\fP parameter\&.
5615 .IP 
5616 .IP 
5617 \fBDefault:\fP
5618 \f(CW   security = USER\fP
5619 .IP 
5620 \fBExample:\fP
5621 \f(CW   security = DOMAIN\fP
5622 .IP 
5623 .IP "\fBsecurity mask (S)\fP" 
5624 .IP 
5625 This parameter controls what UNIX permission bits can be modified
5626 when a Windows NT client is manipulating the UNIX permission on a
5627 file using the native NT security dialog box\&.
5628 .IP 
5629 This parameter is applied as a mask (AND\'ed with) to the changed
5630 permission bits, thus preventing any bits not in this mask from
5631 being modified\&. Essentially, zero bits in this mask may be treated
5632 as a set of bits the user is not allowed to change\&.
5633 .IP 
5634 If not set explicitly this parameter is set to the same value as the
5635 \fBcreate mask\fP parameter\&. To allow a user to
5636 modify all the user/group/world permissions on a file, set this
5637 parameter to 0777\&.
5638 .IP 
5639 \fINote\fP that users who can access the Samba server through other
5640 means can easily bypass this restriction, so it is primarily
5641 useful for standalone "appliance" systems\&.  Administrators of
5642 most normal systems will probably want to set it to 0777\&.
5643 .IP 
5644 See also the \fBforce directory security
5645 mode\fP, \fBdirectory security
5646 mask\fP, \fBforce security
5647 mode\fP parameters\&.
5648 .IP 
5649 \fBDefault:\fP
5650 \f(CW   security mask = <same as create mask>\fP
5651 .IP 
5652 \fBExample:\fP
5653 \f(CW   security mask = 0777\fP
5654 .IP 
5655 .IP "\fBserver string (G)\fP" 
5656 .IP 
5657 This controls what string will show up in the printer comment box in
5658 print manager and next to the IPC connection in \f(CW"net view"\fP\&. It can be
5659 any string that you wish to show to your users\&.
5660 .IP 
5661 It also sets what will appear in browse lists next to the machine
5662 name\&.
5663 .IP 
5664 A \f(CW"%v"\fP will be replaced with the Samba version number\&.
5665 .IP 
5666 A \f(CW"%h"\fP will be replaced with the hostname\&.
5667 .IP 
5668 \fBDefault:\fP
5669 \f(CW   server string = Samba %v\fP
5670 .IP 
5671 \fBExample:\fP
5672 \f(CW   server string = University of GNUs Samba Server\fP
5673 .IP 
5674 .IP "\fBset directory (S)\fP" 
5675 .IP 
5676 If \f(CW"set directory = no"\fP, then users of the service may not use the
5677 setdir command to change directory\&.
5678 .IP 
5679 The setdir command is only implemented in the Digital Pathworks
5680 client\&. See the Pathworks documentation for details\&.
5681 .IP 
5682 \fBDefault:\fP
5683 \f(CW   set directory = no\fP
5684 .IP 
5685 \fBExample:\fP
5686 \f(CW   set directory = yes\fP
5687 .IP 
5688 .IP "\fBshare modes (S)\fP" 
5689 .IP 
5690 This enables or disables the honoring of the \f(CW"share modes"\fP during a
5691 file open\&. These modes are used by clients to gain exclusive read or
5692 write access to a file\&.
5693 .IP 
5694 These open modes are not directly supported by UNIX, so they are
5695 simulated using shared memory, or lock files if your UNIX doesn\'t
5696 support shared memory (almost all do)\&.
5697 .IP 
5698 The share modes that are enabled by this option are DENY_DOS,
5699 DENY_ALL, DENY_READ, DENY_WRITE, DENY_NONE and DENY_FCB\&.
5700 .IP 
5701 This option gives full share compatibility and enabled by default\&.
5702 .IP 
5703 You should \fI*NEVER*\fP turn this parameter off as many Windows
5704 applications will break if you do so\&.
5705 .IP 
5706 \fBDefault:\fP
5707 \f(CW   share modes = yes\fP
5708 .IP 
5709 .IP "\fBshared mem size (G)\fP" 
5710 .IP 
5711 It specifies the size of the shared memory (in bytes) to use between
5712 \fBsmbd\fP processes\&. This parameter defaults to one
5713 megabyte of shared memory\&. It is possible that if you have a large
5714 server with many files open simultaneously that you may need to
5715 increase this parameter\&. Signs that this parameter is set too low are
5716 users reporting strange problems trying to save files (locking errors)
5717 and error messages in the smbd log looking like \f(CW"ERROR
5718 smb_shm_alloc : alloc of XX bytes failed"\fP\&.
5719 .IP 
5720 If your OS refuses the size that Samba asks for then Samba will try a
5721 smaller size, reducing by a factor of 0\&.8 until the OS accepts it\&.
5722 .IP 
5723 \fBDefault:\fP
5724 \f(CW   shared mem size = 1048576\fP
5725 .IP 
5726 \fBExample:\fP
5727 \f(CW   shared mem size = 5242880 ; Set to 5mb for a large number of files\&.\fP
5728 .IP 
5729 .IP "\fBshort preserve case (S)\fP" 
5730 .IP 
5731 This boolean parameter controls if new files which conform to 8\&.3
5732 syntax, that is all in upper case and of suitable length, are created
5733 upper case, or if they are forced to be the \f(CW"default"\fP case\&. This
5734 option can be use with \fB"preserve case
5735 =yes"\fP to permit long filenames to retain their
5736 case, while short names are lowered\&. Default \fIYes\fP\&.
5737 .IP 
5738 See the section on \fBNAME MANGLING\fP\&.
5739 .IP 
5740 \fBDefault:\fP
5741 \f(CW   short preserve case = yes\fP
5742 .IP 
5743 .IP "\fBsmb passwd file (G)\fP" 
5744 .IP 
5745 This option sets the path to the encrypted smbpasswd file\&.  By default
5746 the path to the smbpasswd file is compiled into Samba\&.
5747 .IP 
5748 \fBDefault:\fP
5749 \f(CW   smb passwd file= <compiled default>\fP
5750 .IP 
5751 \fBExample:\fP
5752 \f(CW   smb passwd file = /usr/samba/private/smbpasswd\fP
5753 .IP 
5754 .IP "\fBsmbrun (G)\fP" 
5755 .IP 
5756 This sets the full path to the \fBsmbrun\fP binary\&. This defaults to the
5757 value in the Makefile\&.
5758 .IP 
5759 You must get this path right for many services to work correctly\&.
5760 .IP 
5761 You should not need to change this parameter so long as Samba
5762 is installed correctly\&.
5763 .IP 
5764 \fBDefault:\fP
5765 \f(CW   smbrun=<compiled default>\fP
5766 .IP 
5767 \fBExample:\fP
5768 \f(CW   smbrun = /usr/local/samba/bin/smbrun\fP
5769 .IP 
5770 .IP "\fBsocket address (G)\fP" 
5771 .IP 
5772 This option allows you to control what address Samba will listen for
5773 connections on\&. This is used to support multiple virtual interfaces on
5774 the one server, each with a different configuration\&.
5775 .IP 
5776 By default samba will accept connections on any address\&.
5777 .IP 
5778 \fBExample:\fP
5779 \f(CW   socket address = 192\&.168\&.2\&.20\fP
5780 .IP 
5781 .IP "\fBsocket options (G)\fP" 
5782 .IP 
5783 This option allows you to set socket options to be used when talking
5784 with the client\&.
5785 .IP 
5786 Socket options are controls on the networking layer of the operating
5787 systems which allow the connection to be tuned\&.
5788 .IP 
5789 This option will typically be used to tune your Samba server for
5790 optimal performance for your local network\&. There is no way that Samba
5791 can know what the optimal parameters are for your net, so you must
5792 experiment and choose them yourself\&. We strongly suggest you read the
5793 appropriate documentation for your operating system first (perhaps
5794 \fB"man setsockopt"\fP will help)\&.
5795 .IP 
5796 You may find that on some systems Samba will say "Unknown socket
5797 option" when you supply an option\&. This means you either incorrectly 
5798 typed it or you need to add an include file to includes\&.h for your OS\&. 
5799 If the latter is the case please send the patch to
5800 samba@samba\&.org\&.
5801 .IP 
5802 Any of the supported socket options may be combined in any way you
5803 like, as long as your OS allows it\&.
5804 .IP 
5805 This is the list of socket options currently settable using this
5806 option:
5807 .IP 
5808 .IP 
5809 .IP o 
5810 SO_KEEPALIVE
5811 .IP 
5812 .IP o 
5813 SO_REUSEADDR
5814 .IP 
5815 .IP o 
5816 SO_BROADCAST
5817 .IP 
5818 .IP o 
5819 TCP_NODELAY
5820 .IP 
5821 .IP o 
5822 IPTOS_LOWDELAY
5823 .IP 
5824 .IP o 
5825 IPTOS_THROUGHPUT
5826 .IP 
5827 .IP o 
5828 SO_SNDBUF *
5829 .IP 
5830 .IP o 
5831 SO_RCVBUF *
5832 .IP 
5833 .IP o 
5834 SO_SNDLOWAT *
5835 .IP 
5836 .IP o 
5837 SO_RCVLOWAT *
5838 .IP 
5839 .IP 
5840 Those marked with a \f(CW*\fP take an integer argument\&. The others can
5841 optionally take a 1 or 0 argument to enable or disable the option, by
5842 default they will be enabled if you don\'t specify 1 or 0\&.
5843 .IP 
5844 To specify an argument use the syntax SOME_OPTION=VALUE for example
5845 \f(CWSO_SNDBUF=8192\fP\&. Note that you must not have any spaces before or after
5846 the = sign\&.
5847 .IP 
5848 If you are on a local network then a sensible option might be
5849 .IP 
5850 \f(CWsocket options = IPTOS_LOWDELAY\fP
5851 .IP 
5852 If you have a local network then you could try:
5853 .IP 
5854 \f(CWsocket options = IPTOS_LOWDELAY TCP_NODELAY\fP
5855 .IP 
5856 If you are on a wide area network then perhaps try setting
5857 IPTOS_THROUGHPUT\&. 
5858 .IP 
5859 Note that several of the options may cause your Samba server to fail
5860 completely\&. Use these options with caution!
5861 .IP 
5862 \fBDefault:\fP
5863 \f(CW   socket options = TCP_NODELAY\fP
5864 .IP 
5865 \fBExample:\fP
5866 \f(CW   socket options = IPTOS_LOWDELAY\fP
5867 .IP 
5868 .IP "\fBsource environment (G)\fP" 
5869 .IP 
5870 This parameter causes Samba to set environment variables as per the
5871 content of the file named\&.
5872 .IP 
5873 The file \fBmust\fP be owned by root and not world writable in order
5874 to be read (this is a security check)\&.
5875 .IP 
5876 If the value of this parameter starts with a "|" character then Samba will
5877 treat that value as a pipe command to open and will set the environment
5878 variables from the oput of the pipe\&. This command must not be world writable
5879 and must reside in a directory that is not world writable\&.
5880 .IP 
5881 The contents of the file or the output of the pipe should be formatted
5882 as the output of the standard Unix env(1) command\&. This is of the form :
5883 .IP 
5884 Example environment entry:
5885 \f(CW SAMBA_NETBIOS_NAME=myhostname \fP
5886 .IP 
5887 \fBDefault:\fP
5888 \f(CWNo default value\fP
5889 .IP 
5890 \fBExamples:\fP
5891 .IP 
5892 \f(CW   source environment = |/etc/smb\&.conf\&.sh\fP
5893 .IP 
5894 \f(CW   source environment = /usr/local/smb_env_vars\fP
5895 .IP 
5896 .IP "\fBssl (G)\fP" 
5897 .IP 
5898 This variable is part of SSL-enabled Samba\&. This is only available if
5899 the SSL libraries have been compiled on your system and the configure
5900 option \f(CW"--with-ssl"\fP was given at configure time\&.
5901 .IP 
5902 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5903 enabled by default in any current binary version of Samba\&.
5904 .IP 
5905 This variable enables or disables the entire SSL mode\&. If it is set to
5906 "no", the SSL enabled samba behaves exactly like the non-SSL samba\&. If
5907 set to "yes", it depends on the variables \fB"ssl
5908 hosts"\fP and \fB"ssl hosts resign"\fP
5909 whether an SSL connection will be required\&.
5910 .IP 
5911 \fBDefault:\fP
5912 \f(CW   ssl=no\fP
5913 \fBExample:\fP
5914 \f(CW   ssl=yes\fP
5915 .IP 
5916 .IP "\fBssl CA certDir (G)\fP" 
5917 .IP 
5918 This variable is part of SSL-enabled Samba\&. This is only available if
5919 the SSL libraries have been compiled on your system and the configure
5920 option \f(CW"--with-ssl"\fP was given at configure time\&.
5921 .IP 
5922 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5923 enabled by default in any current binary version of Samba\&.
5924 .IP 
5925 This variable defines where to look up the Certification
5926 Authorities\&. The given directory should contain one file for each CA
5927 that samba will trust\&.  The file name must be the hash value over the
5928 "Distinguished Name" of the CA\&. How this directory is set up is
5929 explained later in this document\&. All files within the directory that
5930 don\'t fit into this naming scheme are ignored\&. You don\'t need this
5931 variable if you don\'t verify client certificates\&.
5932 .IP 
5933 \fBDefault:\fP
5934 \f(CW   ssl CA certDir = /usr/local/ssl/certs\fP
5935 .IP 
5936 .IP "\fBssl CA certFile (G)\fP" 
5937 .IP 
5938 This variable is part of SSL-enabled Samba\&. This is only available if
5939 the SSL libraries have been compiled on your system and the configure
5940 option \f(CW"--with-ssl"\fP was given at configure time\&.
5941 .IP 
5942 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5943 enabled by default in any current binary version of Samba\&.
5944 .IP 
5945 This variable is a second way to define the trusted CAs\&. The
5946 certificates of the trusted CAs are collected in one big file and this
5947 variable points to the file\&. You will probably only use one of the two
5948 ways to define your CAs\&. The first choice is preferable if you have
5949 many CAs or want to be flexible, the second is preferable if you only
5950 have one CA and want to keep things simple (you won\'t need to create
5951 the hashed file names)\&. You don\'t need this variable if you don\'t
5952 verify client certificates\&.
5953 .IP 
5954 \fBDefault:\fP
5955 \f(CW   ssl CA certFile = /usr/local/ssl/certs/trustedCAs\&.pem\fP
5956 .IP 
5957 .IP "\fBssl ciphers (G)\fP" 
5958 .IP 
5959 This variable is part of SSL-enabled Samba\&. This is only available if
5960 the SSL libraries have been compiled on your system and the configure
5961 option \f(CW"--with-ssl"\fP was given at configure time\&.
5962 .IP 
5963 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5964 enabled by default in any current binary version of Samba\&.
5965 .IP 
5966 This variable defines the ciphers that should be offered during SSL
5967 negotiation\&. You should not set this variable unless you know what you
5968 are doing\&.
5969 .IP 
5970 .IP "\fBssl client cert (G)\fP" 
5971 .IP 
5972 This variable is part of SSL-enabled Samba\&. This is only available if
5973 the SSL libraries have been compiled on your system and the configure
5974 option \f(CW"--with-ssl"\fP was given at configure time\&.
5975 .IP 
5976 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5977 enabled by default in any current binary version of Samba\&.
5978 .IP 
5979 The certificate in this file is used by
5980 \fBsmbclient\fP if it exists\&. It\'s needed if the
5981 server requires a client certificate\&.
5982 .IP 
5983 \fBDefault:\fP
5984 \f(CW   ssl client cert = /usr/local/ssl/certs/smbclient\&.pem\fP
5985 .IP 
5986 .IP "\fBssl client key (G)\fP" 
5987 .IP 
5988 This variable is part of SSL-enabled Samba\&. This is only available if
5989 the SSL libraries have been compiled on your system and the configure
5990 option \f(CW"--with-ssl"\fP was given at configure time\&.
5991 .IP 
5992 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5993 enabled by default in any current binary version of Samba\&.
5994 .IP 
5995 This is the private key for \fBsmbclient\fP\&. It\'s
5996 only needed if the client should have a certificate\&.
5997 .IP 
5998 \fBDefault:\fP
5999 \f(CW   ssl client key = /usr/local/ssl/private/smbclient\&.pem\fP
6000 .IP 
6001 .IP "\fBssl compatibility (G)\fP" 
6002 .IP 
6003 This variable is part of SSL-enabled Samba\&. This is only available if
6004 the SSL libraries have been compiled on your system and the configure
6005 option \f(CW"--with-ssl"\fP was given at configure time\&.
6006 .IP 
6007 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6008 enabled by default in any current binary version of Samba\&.
6009 .IP 
6010 This variable defines whether SSLeay should be configured for bug
6011 compatibility with other SSL implementations\&. This is probably not
6012 desirable because currently no clients with SSL implementations other
6013 than SSLeay exist\&.
6014 .IP 
6015 \fBDefault:\fP
6016 \f(CW   ssl compatibility = no\fP
6017 .IP 
6018 .IP "\fBssl hosts (G)\fP" 
6019 .IP 
6020 See \fB"ssl hosts resign"\fP\&.
6021 .IP 
6022 .IP "\fBssl hosts resign (G)\fP" 
6023 .IP 
6024 This variable is part of SSL-enabled Samba\&. This is only available if
6025 the SSL libraries have been compiled on your system and the configure
6026 option \f(CW"--with-ssl"\fP was given at configure time\&.
6027 .IP 
6028 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6029 enabled by default in any current binary version of Samba\&.
6030 .IP 
6031 These two variables define whether samba will go into SSL mode or
6032 not\&. If none of them is defined, samba will allow only SSL
6033 connections\&. If the \fB"ssl hosts"\fP variable lists
6034 hosts (by IP-address, IP-address range, net group or name), only these
6035 hosts will be forced into SSL mode\&. If the \fB"ssl hosts resign"\fP
6036 variable lists hosts, only these hosts will NOT be forced into SSL
6037 mode\&. The syntax for these two variables is the same as for the
6038 \fB"hosts allow"\fP and \fB"hosts
6039 deny"\fP pair of variables, only that the subject of the
6040 decision is different: It\'s not the access right but whether SSL is
6041 used or not\&. See the \fB"allow hosts"\fP parameter for
6042 details\&. The example below requires SSL connections from all hosts
6043 outside the local net (which is 192\&.168\&.*\&.*)\&.
6044 .IP 
6045 \fBDefault:\fP
6046 \f(CW   ssl hosts = <empty string>\fP
6047 \f(CW   ssl hosts resign = <empty string>\fP
6048 .IP 
6049 \fBExample:\fP
6050 \f(CW   ssl hosts resign = 192\&.168\&.\fP
6051 .IP 
6052 .IP "\fBssl require clientcert (G)\fP" 
6053 .IP 
6054 This variable is part of SSL-enabled Samba\&. This is only available if
6055 the SSL libraries have been compiled on your system and the configure
6056 option \f(CW"--with-ssl"\fP was given at configure time\&.
6057 .IP 
6058 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6059 enabled by default in any current binary version of Samba\&.
6060 .IP 
6061 If this variable is set to \f(CW"yes"\fP, the server will not tolerate
6062 connections from clients that don\'t have a valid certificate\&. The
6063 directory/file given in \fB"ssl CA certDir"\fP and
6064 \fB"ssl CA certFile"\fP will be used to look up the
6065 CAs that issued the client\'s certificate\&. If the certificate can\'t be
6066 verified positively, the connection will be terminated\&.  If this
6067 variable is set to \f(CW"no"\fP, clients don\'t need certificates\&. Contrary
6068 to web applications you really \fI*should*\fP require client
6069 certificates\&. In the web environment the client\'s data is sensitive
6070 (credit card numbers) and the server must prove to be trustworthy\&. In
6071 a file server environment the server\'s data will be sensitive and the
6072 clients must prove to be trustworthy\&.
6073 .IP 
6074 \fBDefault:\fP
6075 \f(CW   ssl require clientcert = no\fP
6076 .IP 
6077 .IP "\fBssl require servercert (G)\fP" 
6078 .IP 
6079 This variable is part of SSL-enabled Samba\&. This is only available if
6080 the SSL libraries have been compiled on your system and the configure
6081 option \f(CW"--with-ssl"\fP was given at configure time\&.
6082 .IP 
6083 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6084 enabled by default in any current binary version of Samba\&.
6085 .IP 
6086 If this variable is set to \f(CW"yes"\fP, the
6087 \fBsmbclient\fP will request a certificate from
6088 the server\&. Same as \fB"ssl require
6089 clientcert"\fP for the server\&.
6090 .IP 
6091 \fBDefault:\fP
6092 \f(CW   ssl require servercert = no\fP
6093 .IP 
6094 .IP "\fBssl server cert (G)\fP" 
6095 .IP 
6096 This variable is part of SSL-enabled Samba\&. This is only available if
6097 the SSL libraries have been compiled on your system and the configure
6098 option \f(CW"--with-ssl"\fP was given at configure time\&.
6099 .IP 
6100 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6101 enabled by default in any current binary version of Samba\&.
6102 .IP 
6103 This is the file containing the server\'s certificate\&. The server _must_
6104 have a certificate\&. The file may also contain the server\'s private key\&.
6105 See later for how certificates and private keys are created\&.
6106 .IP 
6107 \fBDefault:\fP
6108 \f(CW   ssl server cert = <empty string>\fP
6109 .IP 
6110 .IP "\fBssl server key (G)\fP" 
6111 .IP 
6112 This variable is part of SSL-enabled Samba\&. This is only available if
6113 the SSL libraries have been compiled on your system and the configure
6114 option \f(CW"--with-ssl"\fP was given at configure time\&.
6115 .IP 
6116 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6117 enabled by default in any current binary version of Samba\&.
6118 .IP 
6119 This file contains the private key of the server\&. If this variable is
6120 not defined, the key is looked up in the certificate file (it may be
6121 appended to the certificate)\&. The server \fI*must*\fP have a private key
6122 and the certificate \fI*must*\fP match this private key\&.
6123 .IP 
6124 \fBDefault:\fP
6125 \f(CW   ssl server key = <empty string>\fP
6126 .IP 
6127 .IP "\fBssl version (G)\fP" 
6128 .IP 
6129 This variable is part of SSL-enabled Samba\&. This is only available if
6130 the SSL libraries have been compiled on your system and the configure
6131 option \f(CW"--with-ssl"\fP was given at configure time\&.
6132 .IP 
6133 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
6134 enabled by default in any current binary version of Samba\&.
6135 .IP 
6136 This enumeration variable defines the versions of the SSL protocol
6137 that will be used\&. \f(CW"ssl2or3"\fP allows dynamic negotiation of SSL v2
6138 or v3, \f(CW"ssl2"\fP results in SSL v2, \f(CW"ssl3"\fP results in SSL v3 and
6139 "tls1" results in TLS v1\&. TLS (Transport Layer Security) is the
6140 (proposed?) new standard for SSL\&.
6141 .IP 
6142 \fBDefault:\fP
6143 \f(CW   ssl version = "ssl2or3"\fP
6144 .IP 
6145 .IP "\fBstat cache (G)\fP" 
6146 .IP 
6147 This parameter determines if \fBsmbd\fP will use a
6148 cache in order to speed up case insensitive name mappings\&. You should
6149 never need to change this parameter\&.
6150 .IP 
6151 \fBDefault:\fP
6152 \f(CW   stat cache = yes\fP
6153 .IP 
6154 .IP "\fBstat cache size (G)\fP" 
6155 .IP 
6156 This parameter determines the number of entries in the \fBstat
6157 cache\fP\&.  You should never need to change this parameter\&.
6158 .IP 
6159 \fBDefault:\fP
6160 \f(CW   stat cache size = 50\fP
6161 .IP 
6162 .IP "\fBstatus (G)\fP" 
6163 .IP 
6164 This enables or disables logging of connections to a status file that
6165 \fBsmbstatus\fP can read\&.
6166 .IP 
6167 With this disabled \fBsmbstatus\fP won\'t be able
6168 to tell you what connections are active\&. You should never need to
6169 change this parameter\&.
6170 .IP 
6171 \fBDefault:\fP
6172 status = yes
6173 .IP 
6174 .IP "\fBstrict locking (S)\fP" 
6175 .IP 
6176 This is a boolean that controls the handling of file locking in the
6177 server\&. When this is set to \f(CW"yes"\fP the server will check every read and
6178 write access for file locks, and deny access if locks exist\&. This can
6179 be slow on some systems\&.
6180 .IP 
6181 When strict locking is \f(CW"no"\fP the server does file lock checks only
6182 when the client explicitly asks for them\&.
6183 .IP 
6184 Well behaved clients always ask for lock checks when it is important,
6185 so in the vast majority of cases \fB"strict locking = no"\fP is
6186 preferable\&.
6187 .IP 
6188 \fBDefault:\fP
6189 \f(CW   strict locking = no\fP
6190 .IP 
6191 \fBExample:\fP
6192 \f(CW   strict locking = yes\fP
6193 .IP 
6194 .IP "\fBstrict sync (S)\fP" 
6195 .IP 
6196 Many Windows applications (including the Windows 98 explorer shell)
6197 seem to confuse flushing buffer contents to disk with doing a sync to
6198 disk\&. Under UNIX, a sync call forces the process to be suspended until
6199 the kernel has ensured that all outstanding data in kernel disk
6200 buffers has been safely stored onto stable storage\&. This is very slow
6201 and should only be done rarely\&. Setting this parameter to "no" (the
6202 default) means that smbd ignores the Windows applications requests for
6203 a sync call\&. There is only a possibility of losing data if the
6204 operating system itself that Samba is running on crashes, so there is
6205 little danger in this default setting\&. In addition, this fixes many
6206 performance problems that people have reported with the new Windows98
6207 explorer shell file copies\&.
6208 .IP 
6209 See also the \fB"sync always"\fP parameter\&.
6210 .IP 
6211 \fBDefault:\fP
6212 \f(CW   strict sync = no\fP
6213 .IP 
6214 \fBExample:\fP
6215 \f(CW   strict sync = yes\fP
6216 .IP 
6217 .IP "\fBstrip dot (G)\fP" 
6218 .IP 
6219 This is a boolean that controls whether to strip trailing dots off
6220 UNIX filenames\&. This helps with some CDROMs that have filenames ending
6221 in a single dot\&.
6222 .IP 
6223 \fBDefault:\fP
6224 \f(CW   strip dot = no\fP
6225 .IP 
6226 \fBExample:\fP
6227 \f(CW   strip dot = yes\fP
6228 .IP 
6229 .IP "\fBsync always (S)\fP" 
6230 .IP 
6231 This is a boolean parameter that controls whether writes will always
6232 be written to stable storage before the write call returns\&. If this is
6233 false then the server will be guided by the client\'s request in each
6234 write call (clients can set a bit indicating that a particular write
6235 should be synchronous)\&. If this is true then every write will be
6236 followed by a fsync() call to ensure the data is written to disk\&.
6237 Note that the \fB"strict sync"\fP parameter must be
6238 set to \f(CW"yes"\fP in order for this parameter to have any affect\&.
6239 .IP 
6240 See also the \fB"strict sync"\fP parameter\&.
6241 .IP 
6242 \fBDefault:\fP
6243 \f(CW   sync always = no\fP
6244 .IP 
6245 \fBExample:\fP
6246 \f(CW   sync always = yes\fP
6247 .IP 
6248 .IP "\fBsyslog (G)\fP" 
6249 .IP 
6250 This parameter maps how Samba debug messages are logged onto the
6251 system syslog logging levels\&. Samba debug level zero maps onto syslog
6252 LOG_ERR, debug level one maps onto LOG_WARNING, debug level two maps
6253 onto LOG_NOTICE, debug level three maps onto LOG_INFO\&. All higher 
6254 levels are mapped to LOG_DEBUG\&.
6255 .IP 
6256 This paramter sets the threshold for sending messages to syslog\&. 
6257 Only messages with debug level less than this value will be sent 
6258 to syslog\&.
6259 .IP 
6260 \fBDefault:\fP
6261 \f(CW   syslog = 1\fP
6262 .IP 
6263 .IP "\fBsyslog only (G)\fP" 
6264 .IP 
6265 If this parameter is set then Samba debug messages are logged into the
6266 system syslog only, and not to the debug log files\&.
6267 .IP 
6268 \fBDefault:\fP
6269 \f(CW   syslog only = no\fP
6270 .IP 
6271 .IP "\fBtemplate homedir (G)\fP" 
6272 .IP 
6273 NOTE: this parameter is only available in Samba 3\&.0\&.
6274 .IP 
6275 When filling out the user information for a Windows NT user, the
6276 \fBwinbindd\fP daemon uses this parameter to fill in
6277 the home directory for that user\&.  If the string \f(CW%D\fP is present it is
6278 substituted with the user\'s Windows NT domain name\&.  If the string \f(CW%U\fP
6279 is present it is substituted with the user\'s Windows NT user name\&.
6280 .IP 
6281 \fBDefault:\fP
6282 \f(CW     template homedir = /home/%D/%U\fP
6283 .IP 
6284 .IP "\fBtemplate shell (G)\fP" 
6285 .IP 
6286 NOTE: this parameter is only available in Samba 3\&.0\&.
6287 .IP 
6288 When filling out the user information for a Windows NT user, the
6289 \fBwinbindd\fP daemon uses this parameter to fill in
6290 the login shell for that user\&.
6291 .IP 
6292 \fBDefault:\fP
6293 \f(CW     template shell = /bin/false\fP
6294 .IP 
6295 .IP "\fBtime offset (G)\fP" 
6296 .IP 
6297 This parameter is a setting in minutes to add to the normal GMT to
6298 local time conversion\&. This is useful if you are serving a lot of PCs
6299 that have incorrect daylight saving time handling\&.
6300 .IP 
6301 \fBDefault:\fP
6302 \f(CW   time offset = 0\fP
6303 .IP 
6304 \fBExample:\fP
6305 \f(CW   time offset = 60\fP
6306 .IP 
6307 .IP 
6308 .IP "\fBtime server (G)\fP" 
6309 .IP 
6310 This parameter determines if \fBnmbd\fP advertises
6311 itself as a time server to Windows clients\&. The default is False\&.
6312 .IP 
6313 \fBDefault:\fP
6314 \f(CW   time server = False\fP
6315 .IP 
6316 \fBExample:\fP
6317 \f(CW   time server = True\fP
6318 .IP 
6319 .IP "\fBtimestamp logs (G)\fP" 
6320 .IP 
6321 Synonym for \fB"debug timestamp"\fP\&.
6322 .IP 
6323 .IP "\fBunix password sync (G)\fP" 
6324 .IP 
6325 This boolean parameter controls whether Samba attempts to synchronize
6326 the UNIX password with the SMB password when the encrypted SMB
6327 password in the smbpasswd file is changed\&. If this is set to true the
6328 program specified in the \fB"passwd program"\fP
6329 parameter is called \fI*AS ROOT*\fP - to allow the new UNIX password to be
6330 set without access to the old UNIX password (as the SMB password has
6331 change code has no access to the old password cleartext, only the
6332 new)\&. By default this is set to \f(CW"false"\fP\&.
6333 .IP 
6334 See also \fB"passwd program"\fP, \fB"passwd
6335 chat"\fP\&.
6336 .IP 
6337 \fBDefault:\fP
6338 \f(CW   unix password sync = False\fP
6339 .IP 
6340 \fBExample:\fP
6341 \f(CW   unix password sync = True\fP
6342 .IP 
6343 .IP "\fBunix realname (G)\fP" 
6344 .IP 
6345 This boolean parameter when set causes samba to supply the real name
6346 field from the unix password file to the client\&. This is useful for
6347 setting up mail clients and WWW browsers on systems used by more than
6348 one person\&.
6349 .IP 
6350 \fBDefault:\fP
6351 \f(CW   unix realname = no\fP
6352 .IP 
6353 \fBExample:\fP
6354 \f(CW   unix realname = yes\fP
6355 .IP 
6356 .IP "\fBupdate encrypted (G)\fP" 
6357 .IP 
6358 This boolean parameter allows a user logging on with a plaintext
6359 password to have their encrypted (hashed) password in the smbpasswd
6360 file to be updated automatically as they log on\&. This option allows a
6361 site to migrate from plaintext password authentication (users
6362 authenticate with plaintext password over the wire, and are checked
6363 against a UNIX account database) to encrypted password authentication
6364 (the SMB challenge/response authentication mechanism) without forcing
6365 all users to re-enter their passwords via smbpasswd at the time the
6366 change is made\&. This is a convenience option to allow the change over
6367 to encrypted passwords to be made over a longer period\&. Once all users
6368 have encrypted representations of their passwords in the smbpasswd
6369 file this parameter should be set to \f(CW"off"\fP\&.
6370 .IP 
6371 In order for this parameter to work correctly the \fB"encrypt
6372 passwords"\fP parameter must be set to \f(CW"no"\fP when
6373 this parameter is set to \f(CW"yes"\fP\&.
6374 .IP 
6375 Note that even when this parameter is set a user authenticating to
6376 smbd must still enter a valid password in order to connect correctly,
6377 and to update their hashed (smbpasswd) passwords\&.
6378 .IP 
6379 \fBDefault:\fP
6380 \f(CW   update encrypted = no\fP
6381 .IP 
6382 \fBExample:\fP
6383 \f(CW   update encrypted = yes\fP
6384 .IP 
6385 .IP "\fBuse rhosts (G)\fP" 
6386 .IP 
6387 If this global parameter is a true, it specifies that the UNIX users
6388 \f(CW"\&.rhosts"\fP file in their home directory will be read to find the
6389 names of hosts and users who will be allowed access without specifying
6390 a password\&.
6391 .IP 
6392 NOTE: The use of \fBuse rhosts\fP can be a major security hole\&. This is
6393 because you are trusting the PC to supply the correct username\&. It is
6394 very easy to get a PC to supply a false username\&. I recommend that the
6395 \fBuse rhosts\fP option be only used if you really know what you are
6396 doing\&.
6397 .IP 
6398 \fBDefault:\fP
6399 \f(CW   use rhosts = no\fP
6400 .IP 
6401 \fBExample:\fP
6402 \f(CW   use rhosts = yes\fP
6403 .IP 
6404 .IP "\fBuser (S)\fP" 
6405 .IP 
6406 Synonym for \fB"username"\fP\&.
6407 .IP 
6408 .IP "\fBusers (S)\fP" 
6409 .IP 
6410 Synonym for \fB"username"\fP\&.
6411 .IP 
6412 .IP "\fBusername (S)\fP" 
6413 .IP 
6414 Multiple users may be specified in a comma-delimited list, in which
6415 case the supplied password will be tested against each username in
6416 turn (left to right)\&.
6417 .IP 
6418 The \fBusername=\fP line is needed only when the PC is unable to supply
6419 its own username\&. This is the case for the COREPLUS protocol or where
6420 your users have different WfWg usernames to UNIX usernames\&. In both
6421 these cases you may also be better using the \f(CW\e\eserver\eshare%user\fP
6422 syntax instead\&.
6423 .IP 
6424 The \fBusername=\fP line is not a great solution in many cases as it
6425 means Samba will try to validate the supplied password against each of
6426 the usernames in the username= line in turn\&. This is slow and a bad
6427 idea for lots of users in case of duplicate passwords\&. You may get
6428 timeouts or security breaches using this parameter unwisely\&.
6429 .IP 
6430 Samba relies on the underlying UNIX security\&. This parameter does not
6431 restrict who can login, it just offers hints to the Samba server as to
6432 what usernames might correspond to the supplied password\&. Users can
6433 login as whoever they please and they will be able to do no more
6434 damage than if they started a telnet session\&. The daemon runs as the
6435 user that they log in as, so they cannot do anything that user cannot
6436 do\&.
6437 .IP 
6438 To restrict a service to a particular set of users you can use the
6439 \fB"valid users="\fP parameter\&.
6440 .IP 
6441 If any of the usernames begin with a \f(CW\'@\'\fP then the name will be
6442 looked up first in the yp netgroups list (if Samba is compiled with
6443 netgroup support), followed by a lookup in the UNIX groups database
6444 and will expand to a list of all users in the group of that name\&.
6445 .IP 
6446 If any of the usernames begin with a \f(CW\'+\'\fP then the name will be
6447 looked up only in the UNIX groups database and will expand to a list
6448 of all users in the group of that name\&.
6449 .IP 
6450 If any of the usernames begin with a \f(CW\'&\'\fP then the name will be
6451 looked up only in the yp netgroups database (if Samba is compiled with
6452 netgroup support) and will expand to a list of all users in the
6453 netgroup group of that name\&.
6454 .IP 
6455 Note that searching though a groups database can take quite some time,
6456 and some clients may time out during the search\&.
6457 .IP 
6458 See the section \fB"NOTE ABOUT USERNAME/PASSWORD
6459 VALIDATION"\fP for more
6460 information on how this parameter determines access to the services\&.
6461 .IP 
6462 \fBDefault:\fP
6463 \f(CW   The guest account if a guest service, else the name of the service\&.\fP
6464 .IP 
6465 \fBExamples:\fP
6467 .nf 
6470         username = fred
6471         username = fred, mary, jack, jane, @users, @pcgroup
6473 .fi 
6476 .IP 
6477 .IP "\fBusername level (G)\fP" 
6478 .IP 
6479 This option helps Samba to try and \'guess\' at the real UNIX username,
6480 as many DOS clients send an all-uppercase username\&. By default Samba
6481 tries all lowercase, followed by the username with the first letter
6482 capitalized, and fails if the username is not found on the UNIX
6483 machine\&.
6484 .IP 
6485 If this parameter is set to non-zero the behavior changes\&. This
6486 parameter is a number that specifies the number of uppercase
6487 combinations to try whilst trying to determine the UNIX user name\&. The
6488 higher the number the more combinations will be tried, but the slower
6489 the discovery of usernames will be\&. Use this parameter when you have
6490 strange usernames on your UNIX machine, such as \f(CW"AstrangeUser"\fP\&.
6491 .IP 
6492 \fBDefault:\fP
6493 \f(CW   username level = 0\fP
6494 .IP 
6495 \fBExample:\fP
6496 \f(CW   username level = 5\fP
6497 .IP 
6498 .IP "\fBusername map (G)\fP" 
6499 .IP 
6500 This option allows you to specify a file containing a mapping of
6501 usernames from the clients to the server\&. This can be used for several
6502 purposes\&. The most common is to map usernames that users use on DOS or
6503 Windows machines to those that the UNIX box uses\&. The other is to map
6504 multiple users to a single username so that they can more easily share
6505 files\&.
6506 .IP 
6507 The map file is parsed line by line\&. Each line should contain a single
6508 UNIX username on the left then a \f(CW\'=\'\fP followed by a list of
6509 usernames on the right\&. The list of usernames on the right may contain
6510 names of the form @group in which case they will match any UNIX
6511 username in that group\&. The special client name \f(CW\'*\'\fP is a wildcard
6512 and matches any name\&. Each line of the map file may be up to 1023
6513 characters long\&.
6514 .IP 
6515 The file is processed on each line by taking the supplied username and
6516 comparing it with each username on the right hand side of the \f(CW\'=\'\fP
6517 signs\&. If the supplied name matches any of the names on the right hand
6518 side then it is replaced with the name on the left\&. Processing then
6519 continues with the next line\&.
6520 .IP 
6521 If any line begins with a \f(CW\'#\'\fP or a \f(CW\';\'\fP then it is ignored
6522 .IP 
6523 If any line begins with an \f(CW\'!\'\fP then the processing will stop after
6524 that line if a mapping was done by the line\&. Otherwise mapping
6525 continues with every line being processed\&. Using \f(CW\'!\'\fP is most
6526 useful when you have a wildcard mapping line later in the file\&.
6527 .IP 
6528 For example to map from the name \f(CW"admin"\fP or \f(CW"administrator"\fP to
6529 the UNIX name \f(CW"root"\fP you would use:
6530 .IP 
6531 \f(CW   root = admin administrator\fP
6532 .IP 
6533 Or to map anyone in the UNIX group \f(CW"system"\fP to the UNIX name
6534 \f(CW"sys"\fP you would use:
6535 .IP 
6536 \f(CW   sys = @system\fP
6537 .IP 
6538 You can have as many mappings as you like in a username map file\&.
6539 .IP 
6540 If your system supports the NIS NETGROUP option then the netgroup
6541 database is checked before the \f(CW/etc/group\fP database for matching
6542 groups\&.
6543 .IP 
6544 You can map Windows usernames that have spaces in them by using double
6545 quotes around the name\&. For example:
6546 .IP 
6547 \f(CW   tridge = "Andrew Tridgell"\fP
6548 .IP 
6549 would map the windows username \f(CW"Andrew Tridgell"\fP to the unix
6550 username tridge\&.
6551 .IP 
6552 The following example would map mary and fred to the unix user sys,
6553 and map the rest to guest\&. Note the use of the \f(CW\'!\'\fP to tell Samba
6554 to stop processing if it gets a match on that line\&.
6555 .IP 
6557 .nf 
6560         !sys = mary fred
6561         guest = *
6563 .fi 
6566 .IP 
6567 Note that the remapping is applied to all occurrences of
6568 usernames\&. Thus if you connect to \f(CW"\e\eserver\efred"\fP and \f(CW"fred"\fP
6569 is remapped to \f(CW"mary"\fP then you will actually be connecting to
6570 \f(CW"\e\eserver\emary"\fP and will need to supply a password suitable for
6571 \f(CW"mary"\fP not \f(CW"fred"\fP\&. The only exception to this is the username
6572 passed to the \fB"password server"\fP (if you have
6573 one)\&. The password server will receive whatever username the client
6574 supplies without modification\&.
6575 .IP 
6576 Also note that no reverse mapping is done\&. The main effect this has is
6577 with printing\&. Users who have been mapped may have trouble deleting
6578 print jobs as PrintManager under WfWg will think they don\'t own the
6579 print job\&.
6580 .IP 
6581 \fBDefault:\fP
6582 \f(CW   no username map\fP
6583 .IP 
6584 \fBExample:\fP
6585 \f(CW   username map = /usr/local/samba/lib/users\&.map\fP
6586 .IP 
6587 .IP "\fButmp (S)\fP" 
6588 .IP 
6589 This boolean parameter is only available if Samba has been configured and compiled 
6590 with the option \f(CW--with-utmp\fP\&. If set to True then Samba will attempt
6591 to add utmp or utmpx records (depending on the UNIX system) whenever a
6592 connection is made to a Samba server\&. Sites may use this to record the
6593 user connecting to a Samba share\&.
6594 .IP 
6595 See also the \fB"utmp directory"\fP parameter\&.
6596 .IP 
6597 \fBDefault:\fP
6598 \f(CWutmp = False\fP
6599 .IP 
6600 \fBExample:\fP
6601 \f(CWutmp = True\fP
6602 .IP 
6603 .IP "\fButmp directory(G)\fP" 
6604 .IP 
6605 This parameter is only available if Samba has been configured and compiled
6606 with the option \f(CW--with-utmp\fP\&. It specifies a directory pathname that is
6607 used to store the utmp or utmpx files (depending on the UNIX system) that
6608 record user connections to a Samba server\&. See also the \fB"utmp"\fP
6609 parameter\&. By default this is not set, meaning the system will use whatever
6610 utmp file the native system is set to use (usually /var/run/utmp on Linux)\&.
6611 .IP 
6612 \fBDefault:\fP
6613 \f(CWno utmp directory\fP
6614 .IP 
6615 \fBExample:\fP
6616 \f(CWutmp directory = /var/adm/\fP
6617 .IP 
6618 .IP "winbind cache time" 
6619 .IP 
6620 NOTE: this parameter is only available in Samba 3\&.0\&.
6621 .IP 
6622 This parameter specifies the number of seconds the
6623 \fBwinbindd\fP daemon will cache user and group
6624 information before querying a Windows NT server again\&.
6625 .IP 
6626 \fBDefault:\fP
6627 \f(CW     winbind cache type = 15\fP
6628 .IP 
6629 .IP "winbind gid" 
6630 .IP 
6631 NOTE: this parameter is only available in Samba 3\&.0\&.
6632 .IP 
6633 The winbind gid parameter specifies the range of group ids that are
6634 allocated by the \fBwinbindd\fP daemon\&.  This range of
6635 group ids should have no existing local or nis groups within it as strange
6636 conflicts can occur otherwise\&.
6637 .IP 
6638 \fBDefault:\fP
6639 \f(CW     winbind gid = <empty string>\fP
6640 .IP 
6641 \fBExample:\fP
6642 \f(CW     winbind gid = 10000-20000\fP
6643 .IP 
6644 .IP "winbind uid" 
6645 .IP 
6646 NOTE: this parameter is only available in Samba 3\&.0\&.
6647 .IP 
6648 The winbind uid parameter specifies the range of user ids that are
6649 allocated by the \fBwinbindd\fP daemon\&.  This range of
6650 ids should have no existing local or nis users within it as strange
6651 conflicts can occur otherwise\&.
6652 .IP 
6653 \fBDefault:\fP
6654 \f(CW     winbind uid = <empty string>\fP
6655 .IP 
6656 \fBExample:\fP
6657 \f(CW     winbind uid = 10000-20000\fP
6658 .IP 
6659 .IP "\fBvalid chars (G)\fP" 
6660 .IP 
6661 The option allows you to specify additional characters that should be
6662 considered valid by the server in filenames\&. This is particularly
6663 useful for national character sets, such as adding u-umlaut or a-ring\&.
6664 .IP 
6665 The option takes a list of characters in either integer or character
6666 form with spaces between them\&. If you give two characters with a colon
6667 between them then it will be taken as an lowercase:uppercase pair\&.
6668 .IP 
6669 If you have an editor capable of entering the characters into the
6670 config file then it is probably easiest to use this method\&. Otherwise
6671 you can specify the characters in octal, decimal or hexadecimal form
6672 using the usual C notation\&.
6673 .IP 
6674 For example to add the single character \f(CW\'Z\'\fP to the charset (which
6675 is a pointless thing to do as it\'s already there) you could do one of
6676 the following
6677 .IP 
6679 .nf 
6682         valid chars = Z
6683         valid chars = z:Z
6684         valid chars = 0132:0172
6686 .fi 
6689 .IP 
6690 The last two examples above actually add two characters, and alter the
6691 uppercase and lowercase mappings appropriately\&.
6692 .IP 
6693 Note that you MUST specify this parameter after the \fB"client
6694 code page"\fP parameter if you have both set\&. If
6695 \fB"client code page"\fP is set after the
6696 \fB"valid chars"\fP parameter the \fB"valid chars"\fP settings will be
6697 overwritten\&.
6698 .IP 
6699 See also the \fB"client code page"\fP parameter\&.
6700 .IP 
6701 \fBDefault:\fP
6703 .nf 
6706         Samba defaults to using a reasonable set of valid characters
6707         for English systems
6709 .fi 
6712 .IP 
6713 \fBExample\fP
6714 \f(CW   valid chars = 0345:0305 0366:0326 0344:0304\fP
6715 .IP 
6716 The above example allows filenames to have the Swedish characters in
6717 them\&.
6718 .IP 
6719 NOTE: It is actually quite difficult to correctly produce a \fB"valid
6720 chars"\fP line for a particular system\&. To automate the process
6721 tino@augsburg\&.net has written a package called \fB"validchars"\fP
6722 which will automatically produce a complete \fB"valid chars"\fP line for
6723 a given client system\&. Look in the examples/validchars/ subdirectory
6724 of your Samba source code distribution for this package\&.
6725 .IP 
6726 .IP "\fBvalid users (S)\fP" 
6727 .IP 
6728 This is a list of users that should be allowed to login to this
6729 service\&. Names starting with \f(CW\'@\'\fP, \f(CW\'+\'\fP and \f(CW\'&\'\fP are
6730 interpreted using the same rules as described in the \fB"invalid
6731 users"\fP parameter\&.
6732 .IP 
6733 If this is empty (the default) then any user can login\&. If a username
6734 is in both this list and the \fB"invalid users"\fP
6735 list then access is denied for that user\&.
6736 .IP 
6737 The current servicename is substituted for
6738 \fB"%S"\fP\&. This is useful in the
6739 \fB[homes]\fP section\&.
6740 .IP 
6741 See also \fB"invalid users"\fP\&.
6742 .IP 
6743 \fBDefault:\fP
6744 \f(CW   No valid users list\&. (anyone can login)\fP
6745 .IP 
6746 \fBExample:\fP
6747 \f(CW   valid users = greg, @pcusers\fP
6748 .IP 
6749 .IP "\fBveto files(S)\fP" 
6750 .IP 
6751 This is a list of files and directories that are neither visible nor
6752 accessible\&.  Each entry in the list must be separated by a \f(CW\'/\'\fP,
6753 which allows spaces to be included in the entry\&. \f(CW\'*\'\fP and \f(CW\'?\'\fP 
6754 can be used to specify multiple files or directories as in DOS
6755 wildcards\&.
6756 .IP 
6757 Each entry must be a unix path, not a DOS path and must \fI*not*\fP include the 
6758 unix directory separator \f(CW\'/\'\fP\&.
6759 .IP 
6760 Note that the \fB"case sensitive"\fP option is
6761 applicable in vetoing files\&.
6762 .IP 
6763 One feature of the veto files parameter that it is important to be
6764 aware of, is that if a directory contains nothing but files that match
6765 the veto files parameter (which means that Windows/DOS clients cannot
6766 ever see them) is deleted, the veto files within that directory *are
6767 automatically deleted* along with it, if the user has UNIX permissions
6768 to do so\&.
6769 .IP 
6770 Setting this parameter will affect the performance of Samba, as it
6771 will be forced to check all files and directories for a match as they
6772 are scanned\&.
6773 .IP 
6774 See also \fB"hide files"\fP and \fB"case
6775 sensitive"\fP\&.
6776 .IP 
6777 \fBDefault:\fP
6778 \f(CW   No files or directories are vetoed\&.\fP
6779 .IP 
6780 \fBExamples:\fP
6781 .IP 
6782 Example 1\&.
6783 .IP 
6785 .nf 
6789     Veto any files containing the word Security, 
6790     any ending in \&.tmp, and any directory containing the
6791     word root\&.
6793         veto files = /*Security*/*\&.tmp/*root*/
6795 .fi 
6798 .IP 
6799 Example 2\&.
6800 .IP 
6802 .nf 
6805     Veto the Apple specific files that a NetAtalk server
6806     creates\&.
6808     veto files = /\&.AppleDouble/\&.bin/\&.AppleDesktop/Network Trash Folder/
6810 .fi 
6813 .IP 
6814 .IP "\fBveto oplock files (S)\fP" 
6815 .IP 
6816 This parameter is only valid when the \fB"oplocks"\fP
6817 parameter is turned on for a share\&. It allows the Samba administrator
6818 to selectively turn off the granting of oplocks on selected files that
6819 match a wildcarded list, similar to the wildcarded list used in the
6820 \fB"veto files"\fP parameter\&.
6821 .IP 
6822 \fBDefault:\fP
6823 \f(CW   No files are vetoed for oplock grants\&.\fP
6824 .IP 
6825 \fBExamples:\fP
6826 .IP 
6827 You might want to do this on files that you know will be heavily
6828 contended for by clients\&. A good example of this is in the NetBench
6829 SMB benchmark program, which causes heavy client contention for files
6830 ending in \f(CW"\&.SEM"\fP\&. To cause Samba not to grant oplocks on these
6831 files you would use the line (either in the \fB[global]\fP
6832 section or in the section for the particular NetBench share :
6833 .IP 
6834 \f(CW     veto oplock files = /*\&.SEM/\fP
6835 .IP 
6836 .IP "\fBvolume (S)\fP" 
6837 .IP 
6838 This allows you to override the volume label returned for a
6839 share\&. Useful for CDROMs with installation programs that insist on a
6840 particular volume label\&.
6841 .IP 
6842 The default is the name of the share\&.
6843 .IP 
6844 .IP "\fBwide links (S)\fP" 
6845 .IP 
6846 This parameter controls whether or not links in the UNIX file system
6847 may be followed by the server\&. Links that point to areas within the
6848 directory tree exported by the server are always allowed; this
6849 parameter controls access only to areas that are outside the directory
6850 tree being exported\&.
6851 .IP 
6852 Note that setting this parameter can have a negative effect on your
6853 server performance due to the extra system calls that Samba has to
6854 do in order to perform the link checks\&.
6855 .IP 
6856 \fBDefault:\fP
6857 \f(CW   wide links = yes\fP
6858 .IP 
6859 \fBExample:\fP
6860 \f(CW   wide links = no\fP
6861 .IP 
6862 .IP "\fBwins proxy (G)\fP" 
6863 .IP 
6864 This is a boolean that controls if \fBnmbd\fP will
6865 respond to broadcast name queries on behalf of other hosts\&. You may
6866 need to set this to \f(CW"yes"\fP for some older clients\&.
6867 .IP 
6868 \fBDefault:\fP
6869 \f(CW   wins proxy = no\fP
6870 .IP 
6871 .IP "\fBwins server (G)\fP" 
6872 .IP 
6873 This specifies the IP address (or DNS name: IP address for preference)
6874 of the WINS server that \fBnmbd\fP should register with\&.
6875 If you have a WINS server on your network then you should set this to
6876 the WINS server\'s IP\&.        
6877 .IP 
6878 You should point this at your WINS server if you have a
6879 multi-subnetted network\&.
6880 .IP 
6881 \fINOTE\fP\&. You need to set up Samba to point to a WINS server if you
6882 have multiple subnets and wish cross-subnet browsing to work correctly\&.
6883 .IP 
6884 See the documentation file BROWSING\&.txt in the docs/ directory of your
6885 Samba source distribution\&.
6886 .IP 
6887 \fBDefault:\fP
6888 \f(CW   wins server = \fP
6889 .IP 
6890 \fBExample:\fP
6891 \f(CW   wins server = 192\&.9\&.200\&.1\fP
6892 .IP 
6893 .IP "\fBwins hook (G)\fP" 
6894 .IP 
6895 When Samba is running as a WINS server this allows you to call an
6896 external program for all changes to the WINS database\&. The primary use
6897 for this option is to allow the dynamic update of external name
6898 resolution databases such as dynamic DNS\&.
6899 .IP 
6900 The wins hook parameter specifies the name of a script or executable
6901 that will be called as follows:
6902 .IP 
6903 wins_hook operation name nametype ttl IP_list
6904 .IP 
6905 The first argument is the operation and is one of "add", "delete",
6906 or "refresh"\&. In most cases the operation can be ignored as the rest
6907 of the parameters provide sufficient information\&. Note that "refresh"
6908 may sometimes be called when the name has not previously been added,
6909 in that case it should be treated as an add\&.
6910 .IP 
6911 The second argument is the netbios name\&. If the name is not a legal
6912 name then the wins hook is not called\&. Legal names contain only
6913 letters, digits, hyphens, underscores and periods\&.
6914 .IP 
6915 The third argument is the netbios name type as a 2 digit hexadecimal
6916 number\&. 
6917 .IP 
6918 The fourth argument is the TTL (time to live) for the name in seconds\&.
6919 .IP 
6920 The fifth and subsequent arguments are the IP addresses currently
6921 registered for that name\&. If this list is empty then the name should
6922 be deleted\&.
6923 .IP 
6924 An example script that calls the BIND dynamic DNS update program
6925 "nsupdate" is provided in the examples directory of the Samba source
6926 code\&. 
6927 .IP 
6928 .IP "\fBwins support (G)\fP" 
6929 .IP 
6930 This boolean controls if the \fBnmbd\fP process in
6931 Samba will act as a WINS server\&. You should not set this to true
6932 unless you have a multi-subnetted network and you wish a particular
6933 \fBnmbd\fP to be your WINS server\&. Note that you
6934 should \fI*NEVER*\fP set this to true on more than one machine in your
6935 network\&.
6936 .IP 
6937 \fBDefault:\fP
6938 \f(CW   wins support = no\fP
6939 .IP 
6940 .IP "\fBworkgroup (G)\fP" 
6941 .IP 
6942 This controls what workgroup your server will appear to be in when
6943 queried by clients\&. Note that this parameter also controls the Domain
6944 name used with the \fB"security=domain"\fP
6945 setting\&.
6946 .IP 
6947 \fBDefault:\fP
6948 \f(CW   set at compile time to WORKGROUP\fP
6949 .IP 
6950 \fBExample:\fP
6951 workgroup = MYGROUP
6952 .IP 
6953 .IP "\fBwritable (S)\fP" 
6954 .IP 
6955 Synonym for \fB"writeable"\fP for people who can\'t spell :-)\&.
6956 .IP 
6957 .IP "\fBwrite list (S)\fP" 
6958 .IP 
6959 This is a list of users that are given read-write access to a
6960 service\&. If the connecting user is in this list then they will be
6961 given write access, no matter what the \fB"writeable"\fP
6962 option is set to\&. The list can include group names using the @group
6963 syntax\&.
6964 .IP 
6965 Note that if a user is in both the read list and the write list then
6966 they will be given write access\&.
6967 .IP 
6968 See also the \fB"read list"\fP option\&.
6969 .IP 
6970 \fBDefault:\fP
6971 \f(CW     write list = <empty string>\fP
6972 .IP 
6973 \fBExample:\fP
6974 \f(CW   write list = admin, root, @staff\fP
6975 .IP 
6976 .IP "\fBwrite cache size (S)\fP" 
6977 .IP 
6978 This integer parameter (new with Samba 2\&.0\&.7) if set to non-zero causes Samba to create an in-memory
6979 cache for each oplocked file (it does \fBnot\fP do this for non-oplocked files)\&. All
6980 writes that the client does not request to be flushed directly to disk will be
6981 stored in this cache if possible\&. The cache is flushed onto disk when a write
6982 comes in whose offset would not fit into the cache or when the file is closed
6983 by the client\&. Reads for the file are also served from this cache if the data
6984 is stored within it\&.
6985 .IP 
6986 This cache allows Samba to batch client writes into a more efficient write
6987 size for RAID disks (ie\&. writes may be tuned to be the RAID stripe size) and
6988 can improve performance on systems where the disk subsystem is a bottleneck
6989 but there is free memory for userspace programs\&.
6990 .IP 
6991 The integer parameter specifies the size of this cache (per oplocked file)
6992 in bytes\&.
6993 .IP 
6994 \fBDefault:\fP
6995 \f(CW     write cache size = 0\fP
6996 .IP 
6997 \fBExample:\fP
6998 \f(CW        write cache size = 262144\fP
6999 for a 256k cache size per file\&.
7000 .IP 
7001 .IP "\fBwrite ok (S)\fP" 
7002 .IP 
7003 Synonym for \fBwriteable\fP\&.
7004 .IP 
7005 .IP "\fBwrite raw (G)\fP" 
7006 .IP 
7007 This parameter controls whether or not the server will support raw
7008 writes SMB\'s when transferring data from clients\&. You should never
7009 need to change this parameter\&.
7010 .IP 
7011 \fBDefault:\fP
7012 \f(CW   write raw = yes\fP
7013 .IP 
7014 .IP "\fBwriteable\fP" 
7015 .IP 
7016 An inverted synonym is \fB"read only"\fP\&.
7017 .IP 
7018 If this parameter is \f(CW"no"\fP, then users of a service may not create
7019 or modify files in the service\'s directory\&.
7020 .IP 
7021 Note that a printable service \fB("printable = yes")\fP
7022 will \fI*ALWAYS*\fP allow writing to the directory (user privileges
7023 permitting), but only via spooling operations\&.
7024 .IP 
7025 \fBDefault:\fP
7026 \f(CW   writeable = no\fP
7027 .IP 
7028 \fBExamples:\fP
7030 .nf 
7033         read only = no
7034         writeable = yes
7035         write ok = yes
7037 .fi 
7040 .IP 
7041 .PP 
7042 .SH "WARNINGS" 
7043 .PP 
7044 Although the configuration file permits service names to contain
7045 spaces, your client software may not\&. Spaces will be ignored in
7046 comparisons anyway, so it shouldn\'t be a problem - but be aware of the
7047 possibility\&.
7048 .PP 
7049 On a similar note, many clients - especially DOS clients - limit
7050 service names to eight characters\&. \fBSmbd\fP has no
7051 such limitation, but attempts to connect from such clients will fail
7052 if they truncate the service names\&.  For this reason you should
7053 probably keep your service names down to eight characters in length\&.
7054 .PP 
7055 Use of the \fB[homes]\fP and \fB[printers]\fP
7056 special sections make life for an administrator easy, but the various
7057 combinations of default attributes can be tricky\&. Take extreme care
7058 when designing these sections\&. In particular, ensure that the
7059 permissions on spool directories are correct\&.
7060 .PP 
7061 .SH "VERSION" 
7062 .PP 
7063 This man page is correct for version 2\&.0 of the Samba suite\&.
7064 .PP 
7065 .SH "SEE ALSO" 
7066 .PP 
7067 \fBsmbd (8)\fP, \fBsmbclient (1)\fP,
7068 \fBnmbd (8)\fP, \fBtestparm (1)\fP,
7069 \fBtestprns (1)\fP, \fBSamba\fP,
7070 \fBnmblookup (1)\fP, \fBsmbpasswd (5)\fP,
7071 \fBsmbpasswd (8)\fP\&.
7072 .PP 
7073 .SH "AUTHOR" 
7074 .PP 
7075 The original Samba software and related utilities were created by
7076 Andrew Tridgell samba@samba\&.org\&. Samba is now developed
7077 by the Samba Team as an Open Source project similar to the way the
7078 Linux kernel is developed\&.
7079 .PP 
7080 The original Samba man pages were written by Karl Auer\&. The man page
7081 sources were converted to YODL format (another excellent piece of Open
7082 Source software, available at
7083 \fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fP)
7084 and updated for the Samba2\&.0 release by Jeremy Allison\&.
7085 samba@samba\&.org\&.
7086 .PP 
7087 See \fBsamba (7)\fP to find out how to get a full
7088 list of contributors and details on how to submit bug reports,
7089 comments etc\&.