sync 3_0 branch with HEAD
[samba.git] / docs / htmldocs / smb.conf.5.html
1 <HTML
2 ><HEAD
3 ><TITLE
4 >smb.conf</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.57"></HEAD
8 ><BODY
9 CLASS="REFENTRY"
10 BGCOLOR="#FFFFFF"
11 TEXT="#000000"
12 LINK="#0000FF"
13 VLINK="#840084"
14 ALINK="#0000FF"
15 ><H1
16 ><A
17 NAME="SMB.CONF"
18 >smb.conf</A
19 ></H1
20 ><DIV
21 CLASS="REFNAMEDIV"
22 ><A
23 NAME="AEN5"
24 ></A
25 ><H2
26 >Name</H2
27 >smb.conf&nbsp;--&nbsp;The configuration file for the Samba suite</DIV
28 ><DIV
29 CLASS="REFSECT1"
30 ><A
31 NAME="AEN8"
32 ></A
33 ><H2
34 >SYNOPSIS</H2
35 ><P
36 >The <TT
37 CLASS="FILENAME"
38 >smb.conf</TT
39 > file is a configuration 
40         file for the Samba suite. <TT
41 CLASS="FILENAME"
42 >smb.conf</TT
43 > contains 
44         runtime configuration information for the Samba programs. The
45         <TT
46 CLASS="FILENAME"
47 >smb.conf</TT
48 > file is designed to be configured and 
49         administered by the <A
50 HREF="swat.8.html"
51 TARGET="_top"
52 ><B
53 CLASS="COMMAND"
54 >swat(8)</B
55 >
56         </A
57 > program. The complete description of the file format and 
58         possible parameters held within are here for reference purposes.</P
59 ></DIV
60 ><DIV
61 CLASS="REFSECT1"
62 ><A
63 NAME="AEN16"
64 ></A
65 ><H2
66 >FILE FORMAT</H2
67 ><P
68 >The file consists of sections and parameters. A section 
69         begins with the name of the section in square brackets and continues 
70         until the next section begins. Sections contain parameters of the 
71         form</P
72 ><P
73 ><TT
74 CLASS="REPLACEABLE"
75 ><I
76 >name</I
77 ></TT
78 > = <TT
79 CLASS="REPLACEABLE"
80 ><I
81 >value
82         </I
83 ></TT
84 ></P
85 ><P
86 >The file is line-based - that is, each newline-terminated 
87         line represents either a comment, a section name or a parameter.</P
88 ><P
89 >Section and parameter names are not case sensitive.</P
90 ><P
91 >Only the first equals sign in a parameter is significant. 
92         Whitespace before or after the first equals sign is discarded.
93         Leading, trailing and internal whitespace in section and parameter 
94         names is irrelevant. Leading and trailing whitespace in a parameter 
95         value is discarded. Internal whitespace within a parameter value 
96         is retained verbatim.</P
97 ><P
98 >Any line beginning with a semicolon (';') or a hash ('#') 
99         character is ignored, as are lines containing only whitespace.</P
100 ><P
101 >Any line ending in a '\' is continued
102         on the next line in the customary UNIX fashion.</P
103 ><P
104 >The values following the equals sign in parameters are all 
105         either a string (no quotes needed) or a boolean, which may be given 
106         as yes/no, 0/1 or true/false. Case is not significant in boolean 
107         values, but is preserved in string values. Some items such as 
108         create modes are numeric.</P
109 ></DIV
110 ><DIV
111 CLASS="REFSECT1"
112 ><A
113 NAME="AEN28"
114 ></A
115 ><H2
116 >SECTION DESCRIPTIONS</H2
117 ><P
118 >Each section in the configuration file (except for the
119         [global] section) describes a shared resource (known
120         as a "share"). The section name is the name of the 
121         shared resource and the parameters within the section define 
122         the shares attributes.</P
123 ><P
124 >There are three special sections, [global],
125         [homes] and [printers], which are
126         described under <EM
127 >special sections</EM
128 >. The
129         following notes apply to ordinary section descriptions.</P
130 ><P
131 >A share consists of a directory to which access is being 
132         given plus a description of the access rights which are granted 
133         to the user of the service. Some housekeeping options are 
134         also specifiable.</P
135 ><P
136 >Sections are either file share services (used by the 
137         client as an extension of their native file systems) or 
138         printable services (used by the client to access print services 
139         on the host running the server).</P
140 ><P
141 >Sections may be designated <EM
142 >guest</EM
143 > services,
144         in which case no password is required to access them. A specified 
145         UNIX <EM
146 >guest account</EM
147 > is used to define access
148         privileges in this case.</P
149 ><P
150 >Sections other than guest services will require a password 
151         to access them. The client provides the username. As older clients 
152         only provide passwords and not usernames, you may specify a list 
153         of usernames to check against the password using the "user =" 
154         option in the share definition. For modern clients such as 
155         Windows 95/98/ME/NT/2000, this should not be necessary.</P
156 ><P
157 >Note that the access rights granted by the server are 
158         masked by the access rights granted to the specified or guest 
159         UNIX user by the host system. The server does not grant more
160         access than the host system grants.</P
161 ><P
162 >The following sample section defines a file space share. 
163         The user has write access to the path <TT
164 CLASS="FILENAME"
165 >/home/bar</TT
166 >. 
167         The share is accessed via the share name "foo":</P
168 ><TABLE
169 BORDER="0"
170 BGCOLOR="#E0E0E0"
171 WIDTH="100%"
172 ><TR
173 ><TD
174 ><PRE
175 CLASS="SCREEN"
176 >       <TT
177 CLASS="COMPUTEROUTPUT"
178 >       [foo]
179                 path = /home/bar
180                 writeable = true
181         </TT
182 >
183         </PRE
184 ></TD
185 ></TR
186 ></TABLE
187 ><P
188 >The following sample section defines a printable share. 
189         The share is readonly, but printable. That is, the only write 
190         access permitted is via calls to open, write to and close a 
191         spool file. The <EM
192 >guest ok</EM
193 > parameter means 
194         access will be permitted as the default guest user (specified 
195         elsewhere):</P
196 ><TABLE
197 BORDER="0"
198 BGCOLOR="#E0E0E0"
199 WIDTH="100%"
200 ><TR
201 ><TD
202 ><PRE
203 CLASS="SCREEN"
204 >       <TT
205 CLASS="COMPUTEROUTPUT"
206 >       [aprinter]
207                 path = /usr/spool/public
208                 writeable = false
209                 printable = true
210                 guest ok = true
211         </TT
212 >
213         </PRE
214 ></TD
215 ></TR
216 ></TABLE
217 ></DIV
218 ><DIV
219 CLASS="REFSECT1"
220 ><A
221 NAME="AEN48"
222 ></A
223 ><H2
224 >SPECIAL SECTIONS</H2
225 ><DIV
226 CLASS="REFSECT2"
227 ><A
228 NAME="AEN50"
229 ></A
230 ><H3
231 >The [global] section</H3
232 ><P
233 >parameters in this section apply to the server 
234                 as a whole, or are defaults for sections which do not 
235                 specifically define certain items. See the notes
236                 under PARAMETERS for more information.</P
237 ></DIV
238 ><DIV
239 CLASS="REFSECT2"
240 ><A
241 NAME="AEN53"
242 ></A
243 ><H3
244 >The [homes] section</H3
245 ><P
246 >If a section called homes is included in the 
247                 configuration file, services connecting clients to their 
248                 home directories can be created on the fly by the server.</P
249 ><P
250 >When the connection request is made, the existing 
251                 sections are scanned. If a match is found, it is used. If no 
252                 match is found, the requested section name is treated as a 
253                 user name and looked up in the local password file. If the 
254                 name exists and the correct password has been given, a share is 
255                 created by cloning the [homes] section.</P
256 ><P
257 >Some modifications are then made to the newly 
258                 created share:</P
259 ><P
260 ></P
261 ><UL
262 ><LI
263 ><P
264 >The share name is changed from homes to 
265                 the located username.</P
266 ></LI
267 ><LI
268 ><P
269 >If no path was given, the path is set to
270                 the user's home directory.</P
271 ></LI
272 ></UL
273 ><P
274 >If you decide to use a <EM
275 >path =</EM
276 > line 
277                 in your [homes] section then you may find it useful 
278                 to use the %S macro. For example :</P
279 ><P
280 ><TT
281 CLASS="USERINPUT"
282 ><B
283 >path = /data/pchome/%S</B
284 ></TT
285 ></P
286 ><P
287 >would be useful if you have different home directories 
288                 for your PCs than for UNIX access.</P
289 ><P
290 >This is a fast and simple way to give a large number 
291                 of clients access to their home directories with a minimum 
292                 of fuss.</P
293 ><P
294 >A similar process occurs if the requested section 
295                 name is "homes", except that the share name is not 
296                 changed to that of the requesting user. This method of using
297                 the [homes] section works well if different users share 
298                 a client PC.</P
299 ><P
300 >The [homes] section can specify all the parameters 
301                 a normal service section can specify, though some make more sense 
302                 than others. The following is a typical and suitable [homes]
303                 section:</P
304 ><TABLE
305 BORDER="0"
306 BGCOLOR="#E0E0E0"
307 WIDTH="100%"
308 ><TR
309 ><TD
310 ><PRE
311 CLASS="SCREEN"
312 >               <TT
313 CLASS="COMPUTEROUTPUT"
314 >               [homes]
315                         writeable = yes
316                 </TT
317 >
318                 </PRE
319 ></TD
320 ></TR
321 ></TABLE
322 ><P
323 >An important point is that if guest access is specified 
324                 in the [homes] section, all home directories will be 
325                 visible to all clients <EM
326 >without a password</EM
327 >. 
328                 In the very unlikely event that this is actually desirable, it 
329                 would be wise to also specify <EM
330 >read only
331                 access</EM
332 >.</P
333 ><P
334 >Note that the <EM
335 >browseable</EM
336 > flag for 
337                 auto home directories will be inherited from the global browseable 
338                 flag, not the [homes] browseable flag. This is useful as 
339                 it means setting <EM
340 >browseable = no</EM
341 > in
342                 the [homes] section will hide the [homes] share but make
343                 any auto home directories visible.</P
344 ></DIV
345 ><DIV
346 CLASS="REFSECT2"
347 ><A
348 NAME="AEN79"
349 ></A
350 ><H3
351 >The [printers] section</H3
352 ><P
353 >This section works like [homes], 
354                 but for printers.</P
355 ><P
356 >If a [printers] section occurs in the 
357                 configuration file, users are able to connect to any printer 
358                 specified in the local host's printcap file.</P
359 ><P
360 >When a connection request is made, the existing sections 
361                 are scanned. If a match is found, it is used. If no match is found, 
362                 but a [homes] section exists, it is used as described
363                 above. Otherwise, the requested section name is treated as a
364                 printer name and the appropriate printcap file is scanned to see 
365                 if the requested section name is a valid printer share name. If 
366                 a match is found, a new printer share is created by cloning 
367                 the [printers] section.</P
368 ><P
369 >A few modifications are then made to the newly created 
370                 share:</P
371 ><P
372 ></P
373 ><UL
374 ><LI
375 ><P
376 >The share name is set to the located printer 
377                 name</P
378 ></LI
379 ><LI
380 ><P
381 >If no printer name was given, the printer name 
382                 is set to the located printer name</P
383 ></LI
384 ><LI
385 ><P
386 >If the share does not permit guest access and 
387                 no username was given, the username is set to the located 
388                 printer name.</P
389 ></LI
390 ></UL
391 ><P
392 >Note that the [printers] service MUST be 
393                 printable - if you specify otherwise, the server will refuse 
394                 to load the configuration file.</P
395 ><P
396 >Typically the path specified would be that of a 
397                 world-writeable spool directory with the sticky bit set on 
398                 it. A typical [printers] entry would look like 
399                 this:</P
400 ><TABLE
401 BORDER="0"
402 BGCOLOR="#E0E0E0"
403 WIDTH="100%"
404 ><TR
405 ><TD
406 ><PRE
407 CLASS="SCREEN"
408 ><TT
409 CLASS="COMPUTEROUTPUT"
410 >               [printers]
411                         path = /usr/spool/public
412                         guest ok = yes
413                         printable = yes 
414                 </TT
415 ></PRE
416 ></TD
417 ></TR
418 ></TABLE
419 ><P
420 >All aliases given for a printer in the printcap file 
421                 are legitimate printer names as far as the server is concerned. 
422                 If your printing subsystem doesn't work like that, you will have 
423                 to set up a pseudo-printcap. This is a file consisting of one or 
424                 more lines like this:</P
425 ><TABLE
426 BORDER="0"
427 BGCOLOR="#E0E0E0"
428 WIDTH="100%"
429 ><TR
430 ><TD
431 ><PRE
432 CLASS="SCREEN"
433 >               <TT
434 CLASS="COMPUTEROUTPUT"
435 >               alias|alias|alias|alias...    
436                 </TT
437 >
438                 </PRE
439 ></TD
440 ></TR
441 ></TABLE
442 ><P
443 >Each alias should be an acceptable printer name for 
444                 your printing subsystem. In the [global] section, specify 
445                 the new file as your printcap.  The server will then only recognize 
446                 names found in your pseudo-printcap, which of course can contain 
447                 whatever aliases you like. The same technique could be used 
448                 simply to limit access to a subset of your local printers.</P
449 ><P
450 >An alias, by the way, is defined as any component of the 
451                 first entry of a printcap record. Records are separated by newlines,
452                 components (if there are more than one) are separated by vertical 
453                 bar symbols ('|').</P
454 ><P
455 >NOTE: On SYSV systems which use lpstat to determine what 
456                 printers are defined on the system you may be able to use
457                 "printcap name = lpstat" to automatically obtain a list 
458                 of printers. See the "printcap name" option 
459                 for more details.</P
460 ></DIV
461 ></DIV
462 ><DIV
463 CLASS="REFSECT1"
464 ><A
465 NAME="AEN102"
466 ></A
467 ><H2
468 >PARAMETERS</H2
469 ><P
470 >parameters define the specific attributes of sections.</P
471 ><P
472 >Some parameters are specific to the [global] section
473         (e.g., <EM
474 >security</EM
475 >).  Some parameters are usable 
476         in all sections (e.g., <EM
477 >create mode</EM
478 >). All others 
479         are permissible only in normal sections. For the purposes of the 
480         following descriptions the [homes] and [printers]
481         sections will be considered normal.  The letter <EM
482 >G</EM
483
484         in parentheses indicates that a parameter is specific to the
485         [global] section. The letter <EM
486 >S</EM
487 >
488         indicates that a parameter can be specified in a service specific
489         section. Note that all <EM
490 >S</EM
491 > parameters can also be specified in 
492         the [global] section - in which case they will define
493         the default behavior for all services.</P
494 ><P
495 >parameters are arranged here in alphabetical order - this may 
496         not create best bedfellows, but at least you can find them! Where
497         there are synonyms, the preferred synonym is described, others refer 
498         to the preferred synonym.</P
499 ></DIV
500 ><DIV
501 CLASS="REFSECT1"
502 ><A
503 NAME="AEN112"
504 ></A
505 ><H2
506 >VARIABLE SUBSTITUTIONS</H2
507 ><P
508 >Many of the strings that are settable in the config file 
509         can take substitutions. For example the option "path =
510         /tmp/%u" would be interpreted as "path = 
511         /tmp/john" if the user connected with the username john.</P
512 ><P
513 >These substitutions are mostly noted in the descriptions below, 
514         but there are some general substitutions which apply whenever they 
515         might be relevant. These are:</P
516 ><P
517 ></P
518 ><DIV
519 CLASS="VARIABLELIST"
520 ><DL
521 ><DT
522 >%S</DT
523 ><DD
524 ><P
525 >the name of the current service, if any.</P
526 ></DD
527 ><DT
528 >%P</DT
529 ><DD
530 ><P
531 >the root directory of the current service, 
532                 if any.</P
533 ></DD
534 ><DT
535 >%u</DT
536 ><DD
537 ><P
538 >user name of the current service, if any.</P
539 ></DD
540 ><DT
541 >%g</DT
542 ><DD
543 ><P
544 >primary group name of %u.</P
545 ></DD
546 ><DT
547 >%U</DT
548 ><DD
549 ><P
550 >session user name (the user name that the client 
551                 wanted, not necessarily the same as the one they got).</P
552 ></DD
553 ><DT
554 >%G</DT
555 ><DD
556 ><P
557 >primary group name of %U.</P
558 ></DD
559 ><DT
560 >%H</DT
561 ><DD
562 ><P
563 >the home directory of the user given 
564                 by %u.</P
565 ></DD
566 ><DT
567 >%v</DT
568 ><DD
569 ><P
570 >the Samba version.</P
571 ></DD
572 ><DT
573 >%h</DT
574 ><DD
575 ><P
576 >the Internet hostname that Samba is running 
577                 on.</P
578 ></DD
579 ><DT
580 >%m</DT
581 ><DD
582 ><P
583 >the NetBIOS name of the client machine 
584                 (very useful).</P
585 ></DD
586 ><DT
587 >%L</DT
588 ><DD
589 ><P
590 >the NetBIOS name of the server. This allows you 
591                 to change your config based on what the client calls you. Your 
592                 server can have a "dual personality".</P
593 ><P
594 >Note that this paramater is not available when Samba listens
595                 on port 445, as clients no longer send this information </P
596 ></DD
597 ><DT
598 >%M</DT
599 ><DD
600 ><P
601 >the Internet name of the client machine.
602                 </P
603 ></DD
604 ><DT
605 >%N</DT
606 ><DD
607 ><P
608 >the name of your NIS home directory server.  
609                 This is obtained from your NIS auto.map entry.  If you have 
610                 not compiled Samba with the <EM
611 >--with-automount</EM
612
613                 option then this value will be the same as %L.</P
614 ></DD
615 ><DT
616 >%p</DT
617 ><DD
618 ><P
619 >the path of the service's home directory, 
620                 obtained from your NIS auto.map entry. The NIS auto.map entry 
621                 is split up as "%N:%p".</P
622 ></DD
623 ><DT
624 >%R</DT
625 ><DD
626 ><P
627 >the selected protocol level after 
628                 protocol negotiation. It can be one of CORE, COREPLUS, 
629                 LANMAN1, LANMAN2 or NT1.</P
630 ></DD
631 ><DT
632 >%d</DT
633 ><DD
634 ><P
635 >The process id of the current server
636                 process.</P
637 ></DD
638 ><DT
639 >%a</DT
640 ><DD
641 ><P
642 >the architecture of the remote
643                 machine. Only some are recognized, and those may not be 
644                 100% reliable. It currently recognizes Samba, WfWg, Win95,
645                 WinNT and Win2k. Anything else will be known as 
646                 "UNKNOWN". If it gets it wrong then sending a level 
647                 3 log to <A
648 HREF="mailto:samba@samba.org"
649 TARGET="_top"
650 >samba@samba.org
651                 </A
652 > should allow it to be fixed.</P
653 ></DD
654 ><DT
655 >%I</DT
656 ><DD
657 ><P
658 >The IP address of the client machine.</P
659 ></DD
660 ><DT
661 >%T</DT
662 ><DD
663 ><P
664 >the current date and time.</P
665 ></DD
666 ><DT
667 >%$(<TT
668 CLASS="REPLACEABLE"
669 ><I
670 >envvar</I
671 ></TT
672 >)</DT
673 ><DD
674 ><P
675 >The value of the environment variable
676                 <TT
677 CLASS="REPLACEABLE"
678 ><I
679 >envar</I
680 ></TT
681 >.</P
682 ></DD
683 ></DL
684 ></DIV
685 ><P
686 >There are some quite creative things that can be done 
687         with these substitutions and other smb.conf options.</P
688 ></DIV
689 ><DIV
690 CLASS="REFSECT1"
691 ><A
692 NAME="AEN203"
693 ></A
694 ><H2
695 >NAME MANGLING</H2
696 ><P
697 >Samba supports "name mangling" so that DOS and 
698         Windows clients can use files that don't conform to the 8.3 format. 
699         It can also be set to adjust the case of 8.3 format filenames.</P
700 ><P
701 >There are several options that control the way mangling is 
702         performed, and they are grouped here rather than listed separately. 
703         For the defaults look at the output of the testparm program. </P
704 ><P
705 >All of these options can be set separately for each service 
706         (or globally, of course). </P
707 ><P
708 >The options are: </P
709 ><P
710 ></P
711 ><DIV
712 CLASS="VARIABLELIST"
713 ><DL
714 ><DT
715 >mangle case = yes/no</DT
716 ><DD
717 ><P
718 > controls if names that have characters that 
719                 aren't of the "default" case are mangled. For example, 
720                 if this is yes then a name like "Mail" would be mangled. 
721                 Default <EM
722 >no</EM
723 >.</P
724 ></DD
725 ><DT
726 >case sensitive = yes/no</DT
727 ><DD
728 ><P
729 >controls whether filenames are case sensitive. If 
730                 they aren't then Samba must do a filename search and match on passed 
731                 names. Default <EM
732 >no</EM
733 >.</P
734 ></DD
735 ><DT
736 >default case = upper/lower</DT
737 ><DD
738 ><P
739 >controls what the default case is for new 
740                 filenames. Default <EM
741 >lower</EM
742 >.</P
743 ></DD
744 ><DT
745 >preserve case = yes/no</DT
746 ><DD
747 ><P
748 >controls if new files are created with the 
749                 case that the client passes, or if they are forced to be the 
750                 "default" case. Default <EM
751 >yes</EM
752 >.
753                 </P
754 ></DD
755 ><DT
756 >short preserve case = yes/no</DT
757 ><DD
758 ><P
759 >controls if new files which conform to 8.3 syntax,
760                 that is all in upper case and of suitable length, are created 
761                 upper case, or if they are forced to be the "default" 
762                 case. This option can be use with "preserve case = yes" 
763                 to permit long filenames to retain their case, while short names 
764                 are lowercased. Default <EM
765 >yes</EM
766 >.</P
767 ></DD
768 ></DL
769 ></DIV
770 ><P
771 >By default, Samba 2.2 has the same semantics as a Windows 
772         NT server, in that it is case insensitive but case preserving.</P
773 ></DIV
774 ><DIV
775 CLASS="REFSECT1"
776 ><A
777 NAME="AEN236"
778 ></A
779 ><H2
780 >NOTE ABOUT USERNAME/PASSWORD VALIDATION</H2
781 ><P
782 >There are a number of ways in which a user can connect 
783         to a service. The server uses the following steps in determining 
784         if it will allow a connection to a specified service. If all the 
785         steps fail, then the connection request is rejected.  However, if one of the 
786         steps succeeds, then the following steps are not checked.</P
787 ><P
788 >If the service is marked "guest only = yes" and the
789         server is running with share-level security ("security = share")
790         then steps 1 to 5 are skipped.</P
791 ><P
792 ></P
793 ><OL
794 TYPE="1"
795 ><LI
796 ><P
797 >If the client has passed a username/password 
798                 pair and that username/password pair is validated by the UNIX 
799                 system's password programs then the connection is made as that 
800                 username. Note that this includes the 
801                 \\server\service%<TT
802 CLASS="REPLACEABLE"
803 ><I
804 >username</I
805 ></TT
806 > method of passing 
807                 a username.</P
808 ></LI
809 ><LI
810 ><P
811 >If the client has previously registered a username 
812                 with the system and now supplies a correct password for that 
813                 username then the connection is allowed.</P
814 ></LI
815 ><LI
816 ><P
817 >The client's NetBIOS name and any previously 
818                 used user names are checked against the supplied password, if 
819                 they match then the connection is allowed as the corresponding 
820                 user.</P
821 ></LI
822 ><LI
823 ><P
824 >If the client has previously validated a
825                 username/password pair with the server and the client has passed 
826                 the validation token then that username is used. </P
827 ></LI
828 ><LI
829 ><P
830 >If a "user = " field is given in the
831                 <TT
832 CLASS="FILENAME"
833 >smb.conf</TT
834 > file for the service and the client 
835                 has supplied a password, and that password matches (according to 
836                 the UNIX system's password checking) with one of the usernames 
837                 from the "user =" field then the connection is made as 
838                 the username in the "user =" line. If one 
839                 of the username in the "user =" list begins with a
840                 '@' then that name expands to a list of names in 
841                 the group of the same name.</P
842 ></LI
843 ><LI
844 ><P
845 >If the service is a guest service then a 
846                 connection is made as the username given in the "guest 
847                 account =" for the service, irrespective of the 
848                 supplied password.</P
849 ></LI
850 ></OL
851 ></DIV
852 ><DIV
853 CLASS="REFSECT1"
854 ><A
855 NAME="AEN255"
856 ></A
857 ><H2
858 >COMPLETE LIST OF GLOBAL PARAMETERS</H2
859 ><P
860 >Here is a list of all global parameters. See the section of 
861         each parameter for details.  Note that some are synonyms.</P
862 ><P
863 ></P
864 ><UL
865 ><LI
866 ><P
867 ><A
868 HREF="#ABORTSHUTDOWNSCRIPT"
869 ><TT
870 CLASS="PARAMETER"
871 ><I
872 >abort shutdown script</I
873 ></TT
874 ></A
875 ></P
876 ></LI
877 ><LI
878 ><P
879 ><A
880 HREF="#ADDPRINTERCOMMAND"
881 ><TT
882 CLASS="PARAMETER"
883 ><I
884 >add printer command</I
885 ></TT
886 ></A
887 ></P
888 ></LI
889 ><LI
890 ><P
891 ><A
892 HREF="#ADDSHARECOMMAND"
893 ><TT
894 CLASS="PARAMETER"
895 ><I
896 >add share command</I
897 ></TT
898 ></A
899 ></P
900 ></LI
901 ><LI
902 ><P
903 ><A
904 HREF="#ADDUSERSCRIPT"
905 ><TT
906 CLASS="PARAMETER"
907 ><I
908 >add user script</I
909 ></TT
910 ></A
911 ></P
912 ></LI
913 ><LI
914 ><P
915 ><A
916 HREF="#ADDMACHINESCRIPT"
917 ><TT
918 CLASS="PARAMETER"
919 ><I
920 >add machine script</I
921 ></TT
922 ></A
923 ></P
924 ></LI
925 ><LI
926 ><P
927 ><A
928 HREF="#ALGORITHMICRIDBASE"
929 ><TT
930 CLASS="PARAMETER"
931 ><I
932 >algorithmic rid base</I
933 ></TT
934 ></A
935 ></P
936 ></LI
937 ><LI
938 ><P
939 ><A
940 HREF="#ALLOWTRUSTEDDOMAINS"
941 ><TT
942 CLASS="PARAMETER"
943 ><I
944 >allow trusted domains</I
945 ></TT
946 ></A
947 ></P
948 ></LI
949 ><LI
950 ><P
951 ><A
952 HREF="#ANNOUNCEAS"
953 ><TT
954 CLASS="PARAMETER"
955 ><I
956 >announce as</I
957 ></TT
958 ></A
959 ></P
960 ></LI
961 ><LI
962 ><P
963 ><A
964 HREF="#ANNOUNCEVERSION"
965 ><TT
966 CLASS="PARAMETER"
967 ><I
968 >announce version</I
969 ></TT
970 ></A
971 ></P
972 ></LI
973 ><LI
974 ><P
975 ><A
976 HREF="#AUTHMETHODS"
977 ><TT
978 CLASS="PARAMETER"
979 ><I
980 >auth methods</I
981 ></TT
982 ></A
983 ></P
984 ></LI
985 ><LI
986 ><P
987 ><A
988 HREF="#AUTOSERVICES"
989 ><TT
990 CLASS="PARAMETER"
991 ><I
992 >auto services</I
993 ></TT
994 ></A
995 ></P
996 ></LI
997 ><LI
998 ><P
999 ><A
1000 HREF="#BINDINTERFACESONLY"
1001 ><TT
1002 CLASS="PARAMETER"
1003 ><I
1004 >bind interfaces only</I
1005 ></TT
1006 ></A
1007 ></P
1008 ></LI
1009 ><LI
1010 ><P
1011 ><A
1012 HREF="#BROWSELIST"
1013 ><TT
1014 CLASS="PARAMETER"
1015 ><I
1016 >browse list</I
1017 ></TT
1018 ></A
1019 ></P
1020 ></LI
1021 ><LI
1022 ><P
1023 ><A
1024 HREF="#CHANGENOTIFYTIMEOUT"
1025 ><TT
1026 CLASS="PARAMETER"
1027 ><I
1028 >change notify timeout</I
1029 ></TT
1030 ></A
1031 ></P
1032 ></LI
1033 ><LI
1034 ><P
1035 ><A
1036 HREF="#CHANGESHARECOMMAND"
1037 ><TT
1038 CLASS="PARAMETER"
1039 ><I
1040 >change share command</I
1041 ></TT
1042 ></A
1043 ></P
1044 ></LI
1045 ><LI
1046 ><P
1047 ><A
1048 HREF="#CONFIGFILE"
1049 ><TT
1050 CLASS="PARAMETER"
1051 ><I
1052 >config file</I
1053 ></TT
1054 ></A
1055 ></P
1056 ></LI
1057 ><LI
1058 ><P
1059 ><A
1060 HREF="#DEADTIME"
1061 ><TT
1062 CLASS="PARAMETER"
1063 ><I
1064 >deadtime</I
1065 ></TT
1066 ></A
1067 ></P
1068 ></LI
1069 ><LI
1070 ><P
1071 ><A
1072 HREF="#DEBUGHIRESTIMESTAMP"
1073 ><TT
1074 CLASS="PARAMETER"
1075 ><I
1076 >debug hires timestamp</I
1077 ></TT
1078 ></A
1079 ></P
1080 ></LI
1081 ><LI
1082 ><P
1083 ><A
1084 HREF="#DEBUGPID"
1085 ><TT
1086 CLASS="PARAMETER"
1087 ><I
1088 >debug pid</I
1089 ></TT
1090 ></A
1091 ></P
1092 ></LI
1093 ><LI
1094 ><P
1095 ><A
1096 HREF="#DEBUGTIMESTAMP"
1097 ><TT
1098 CLASS="PARAMETER"
1099 ><I
1100 >debug timestamp</I
1101 ></TT
1102 ></A
1103 ></P
1104 ></LI
1105 ><LI
1106 ><P
1107 ><A
1108 HREF="#DEBUGUID"
1109 ><TT
1110 CLASS="PARAMETER"
1111 ><I
1112 >debug uid</I
1113 ></TT
1114 ></A
1115 ></P
1116 ></LI
1117 ><LI
1118 ><P
1119 ><A
1120 HREF="#DEBUGLEVEL"
1121 ><TT
1122 CLASS="PARAMETER"
1123 ><I
1124 >debuglevel</I
1125 ></TT
1126 ></A
1127 ></P
1128 ></LI
1129 ><LI
1130 ><P
1131 ><A
1132 HREF="#DEFAULT"
1133 ><TT
1134 CLASS="PARAMETER"
1135 ><I
1136 >default</I
1137 ></TT
1138 ></A
1139 ></P
1140 ></LI
1141 ><LI
1142 ><P
1143 ><A
1144 HREF="#DEFAULTSERVICE"
1145 ><TT
1146 CLASS="PARAMETER"
1147 ><I
1148 >default service</I
1149 ></TT
1150 ></A
1151 ></P
1152 ></LI
1153 ><LI
1154 ><P
1155 ><A
1156 HREF="#DELETEPRINTERCOMMAND"
1157 ><TT
1158 CLASS="PARAMETER"
1159 ><I
1160 >delete printer command</I
1161 ></TT
1162 ></A
1163 ></P
1164 ></LI
1165 ><LI
1166 ><P
1167 ><A
1168 HREF="#DELETESHARECOMMAND"
1169 ><TT
1170 CLASS="PARAMETER"
1171 ><I
1172 >delete share command</I
1173 ></TT
1174 ></A
1175 ></P
1176 ></LI
1177 ><LI
1178 ><P
1179 ><A
1180 HREF="#DELETEUSERSCRIPT"
1181 ><TT
1182 CLASS="PARAMETER"
1183 ><I
1184 >delete user script</I
1185 ></TT
1186 ></A
1187 ></P
1188 ></LI
1189 ><LI
1190 ><P
1191 ><A
1192 HREF="#DFREECOMMAND"
1193 ><TT
1194 CLASS="PARAMETER"
1195 ><I
1196 >dfree command</I
1197 ></TT
1198 ></A
1199 ></P
1200 ></LI
1201 ><LI
1202 ><P
1203 ><A
1204 HREF="#DISABLESPOOLSS"
1205 ><TT
1206 CLASS="PARAMETER"
1207 ><I
1208 >disable spoolss</I
1209 ></TT
1210 ></A
1211 ></P
1212 ></LI
1213 ><LI
1214 ><P
1215 ><A
1216 HREF="#DNSPROXY"
1217 ><TT
1218 CLASS="PARAMETER"
1219 ><I
1220 >dns proxy</I
1221 ></TT
1222 ></A
1223 ></P
1224 ></LI
1225 ><LI
1226 ><P
1227 ><A
1228 HREF="#DOMAINADMINGROUP"
1229 ><TT
1230 CLASS="PARAMETER"
1231 ><I
1232 >domain admin group</I
1233 ></TT
1234 ></A
1235 ></P
1236 ></LI
1237 ><LI
1238 ><P
1239 ><A
1240 HREF="#DOMAINGUESTGROUP"
1241 ><TT
1242 CLASS="PARAMETER"
1243 ><I
1244 >domain guest group</I
1245 ></TT
1246 ></A
1247 ></P
1248 ></LI
1249 ><LI
1250 ><P
1251 ><A
1252 HREF="#DOMAINLOGONS"
1253 ><TT
1254 CLASS="PARAMETER"
1255 ><I
1256 >domain logons</I
1257 ></TT
1258 ></A
1259 ></P
1260 ></LI
1261 ><LI
1262 ><P
1263 ><A
1264 HREF="#DOMAINMASTER"
1265 ><TT
1266 CLASS="PARAMETER"
1267 ><I
1268 >domain master</I
1269 ></TT
1270 ></A
1271 ></P
1272 ></LI
1273 ><LI
1274 ><P
1275 ><A
1276 HREF="#ENCRYPTPASSWORDS"
1277 ><TT
1278 CLASS="PARAMETER"
1279 ><I
1280 >encrypt passwords</I
1281 ></TT
1282 ></A
1283 ></P
1284 ></LI
1285 ><LI
1286 ><P
1287 ><A
1288 HREF="#ENHANCEDBROWSING"
1289 ><TT
1290 CLASS="PARAMETER"
1291 ><I
1292 >enhanced browsing</I
1293 ></TT
1294 ></A
1295 ></P
1296 ></LI
1297 ><LI
1298 ><P
1299 ><A
1300 HREF="#ENUMPORTSCOMMAND"
1301 ><TT
1302 CLASS="PARAMETER"
1303 ><I
1304 >enumports command</I
1305 ></TT
1306 ></A
1307 ></P
1308 ></LI
1309 ><LI
1310 ><P
1311 ><A
1312 HREF="#GETWDCACHE"
1313 ><TT
1314 CLASS="PARAMETER"
1315 ><I
1316 >getwd cache</I
1317 ></TT
1318 ></A
1319 ></P
1320 ></LI
1321 ><LI
1322 ><P
1323 ><A
1324 HREF="#HIDELOCALUSERS"
1325 ><TT
1326 CLASS="PARAMETER"
1327 ><I
1328 >hide local users</I
1329 ></TT
1330 ></A
1331 ></P
1332 ></LI
1333 ><LI
1334 ><P
1335 ><A
1336 HREF="#HIDEUNREADABLE"
1337 ><TT
1338 CLASS="PARAMETER"
1339 ><I
1340 >hide unreadable</I
1341 ></TT
1342 ></A
1343 ></P
1344 ></LI
1345 ><LI
1346 ><P
1347 ><A
1348 HREF="#HOMEDIRMAP"
1349 ><TT
1350 CLASS="PARAMETER"
1351 ><I
1352 >homedir map</I
1353 ></TT
1354 ></A
1355 ></P
1356 ></LI
1357 ><LI
1358 ><P
1359 ><A
1360 HREF="#HOSTMSDFS"
1361 ><TT
1362 CLASS="PARAMETER"
1363 ><I
1364 >host msdfs</I
1365 ></TT
1366 ></A
1367 ></P
1368 ></LI
1369 ><LI
1370 ><P
1371 ><A
1372 HREF="#HOSTSEQUIV"
1373 ><TT
1374 CLASS="PARAMETER"
1375 ><I
1376 >hosts equiv</I
1377 ></TT
1378 ></A
1379 ></P
1380 ></LI
1381 ><LI
1382 ><P
1383 ><A
1384 HREF="#INTERFACES"
1385 ><TT
1386 CLASS="PARAMETER"
1387 ><I
1388 >interfaces</I
1389 ></TT
1390 ></A
1391 ></P
1392 ></LI
1393 ><LI
1394 ><P
1395 ><A
1396 HREF="#KEEPALIVE"
1397 ><TT
1398 CLASS="PARAMETER"
1399 ><I
1400 >keepalive</I
1401 ></TT
1402 ></A
1403 ></P
1404 ></LI
1405 ><LI
1406 ><P
1407 ><A
1408 HREF="#KERNELOPLOCKS"
1409 ><TT
1410 CLASS="PARAMETER"
1411 ><I
1412 >kernel oplocks</I
1413 ></TT
1414 ></A
1415 ></P
1416 ></LI
1417 ><LI
1418 ><P
1419 ><A
1420 HREF="#LANMANAUTH"
1421 ><TT
1422 CLASS="PARAMETER"
1423 ><I
1424 >lanman auth</I
1425 ></TT
1426 ></A
1427 ></P
1428 ></LI
1429 ><LI
1430 ><P
1431 ><A
1432 HREF="#LARGEREADWRITE"
1433 ><TT
1434 CLASS="PARAMETER"
1435 ><I
1436 >large readwrite</I
1437 ></TT
1438 ></A
1439 ></P
1440 ></LI
1441 ><LI
1442 ><P
1443 ><A
1444 HREF="#LDAPADMINDN"
1445 ><TT
1446 CLASS="PARAMETER"
1447 ><I
1448 >ldap admin dn</I
1449 ></TT
1450 ></A
1451 ></P
1452 ></LI
1453 ><LI
1454 ><P
1455 ><A
1456 HREF="#LDAPFILTER"
1457 ><TT
1458 CLASS="PARAMETER"
1459 ><I
1460 >ldap filter</I
1461 ></TT
1462 ></A
1463 ></P
1464 ></LI
1465 ><LI
1466 ><P
1467 ><A
1468 HREF="#LDAPSSL"
1469 ><TT
1470 CLASS="PARAMETER"
1471 ><I
1472 >ldap ssl</I
1473 ></TT
1474 ></A
1475 ></P
1476 ></LI
1477 ><LI
1478 ><P
1479 ><A
1480 HREF="#LDAPSUFFIX"
1481 ><TT
1482 CLASS="PARAMETER"
1483 ><I
1484 >ldap suffix</I
1485 ></TT
1486 ></A
1487 ></P
1488 ></LI
1489 ><LI
1490 ><P
1491 ><A
1492 HREF="#LDAPUSERSUFFIX"
1493 ><TT
1494 CLASS="PARAMETER"
1495 ><I
1496 >ldap suffix</I
1497 ></TT
1498 ></A
1499 ></P
1500 ></LI
1501 ><LI
1502 ><P
1503 ><A
1504 HREF="#LDAPMACHINESUFFIX"
1505 ><TT
1506 CLASS="PARAMETER"
1507 ><I
1508 >ldap suffix</I
1509 ></TT
1510 ></A
1511 ></P
1512 ></LI
1513 ><LI
1514 ><P
1515 ><A
1516 HREF="#LMANNOUNCE"
1517 ><TT
1518 CLASS="PARAMETER"
1519 ><I
1520 >lm announce</I
1521 ></TT
1522 ></A
1523 ></P
1524 ></LI
1525 ><LI
1526 ><P
1527 ><A
1528 HREF="#LMINTERVAL"
1529 ><TT
1530 CLASS="PARAMETER"
1531 ><I
1532 >lm interval</I
1533 ></TT
1534 ></A
1535 ></P
1536 ></LI
1537 ><LI
1538 ><P
1539 ><A
1540 HREF="#LOADPRINTERS"
1541 ><TT
1542 CLASS="PARAMETER"
1543 ><I
1544 >load printers</I
1545 ></TT
1546 ></A
1547 ></P
1548 ></LI
1549 ><LI
1550 ><P
1551 ><A
1552 HREF="#LOCALMASTER"
1553 ><TT
1554 CLASS="PARAMETER"
1555 ><I
1556 >local master</I
1557 ></TT
1558 ></A
1559 ></P
1560 ></LI
1561 ><LI
1562 ><P
1563 ><A
1564 HREF="#LOCKDIR"
1565 ><TT
1566 CLASS="PARAMETER"
1567 ><I
1568 >lock dir</I
1569 ></TT
1570 ></A
1571 ></P
1572 ></LI
1573 ><LI
1574 ><P
1575 ><A
1576 HREF="#LOCKDIRECTORY"
1577 ><TT
1578 CLASS="PARAMETER"
1579 ><I
1580 >lock directory</I
1581 ></TT
1582 ></A
1583 ></P
1584 ></LI
1585 ><LI
1586 ><P
1587 ><A
1588 HREF="#LOCKSPINCOUNT"
1589 ><TT
1590 CLASS="PARAMETER"
1591 ><I
1592 >lock spin count</I
1593 ></TT
1594 ></A
1595 ></P
1596 ></LI
1597 ><LI
1598 ><P
1599 ><A
1600 HREF="#LOCKSPINTIME"
1601 ><TT
1602 CLASS="PARAMETER"
1603 ><I
1604 >lock spin time</I
1605 ></TT
1606 ></A
1607 ></P
1608 ></LI
1609 ><LI
1610 ><P
1611 ><A
1612 HREF="#PIDDIRECTORY"
1613 ><TT
1614 CLASS="PARAMETER"
1615 ><I
1616 >pid directory</I
1617 ></TT
1618 ></A
1619 ></P
1620 ></LI
1621 ><LI
1622 ><P
1623 ><A
1624 HREF="#LOGFILE"
1625 ><TT
1626 CLASS="PARAMETER"
1627 ><I
1628 >log file</I
1629 ></TT
1630 ></A
1631 ></P
1632 ></LI
1633 ><LI
1634 ><P
1635 ><A
1636 HREF="#LOGLEVEL"
1637 ><TT
1638 CLASS="PARAMETER"
1639 ><I
1640 >log level</I
1641 ></TT
1642 ></A
1643 ></P
1644 ></LI
1645 ><LI
1646 ><P
1647 ><A
1648 HREF="#LOGONDRIVE"
1649 ><TT
1650 CLASS="PARAMETER"
1651 ><I
1652 >logon drive</I
1653 ></TT
1654 ></A
1655 ></P
1656 ></LI
1657 ><LI
1658 ><P
1659 ><A
1660 HREF="#LOGONHOME"
1661 ><TT
1662 CLASS="PARAMETER"
1663 ><I
1664 >logon home</I
1665 ></TT
1666 ></A
1667 ></P
1668 ></LI
1669 ><LI
1670 ><P
1671 ><A
1672 HREF="#LOGONPATH"
1673 ><TT
1674 CLASS="PARAMETER"
1675 ><I
1676 >logon path</I
1677 ></TT
1678 ></A
1679 ></P
1680 ></LI
1681 ><LI
1682 ><P
1683 ><A
1684 HREF="#LOGONSCRIPT"
1685 ><TT
1686 CLASS="PARAMETER"
1687 ><I
1688 >logon script</I
1689 ></TT
1690 ></A
1691 ></P
1692 ></LI
1693 ><LI
1694 ><P
1695 ><A
1696 HREF="#LPQCACHETIME"
1697 ><TT
1698 CLASS="PARAMETER"
1699 ><I
1700 >lpq cache time</I
1701 ></TT
1702 ></A
1703 ></P
1704 ></LI
1705 ><LI
1706 ><P
1707 ><A
1708 HREF="#MACHINEPASSWORDTIMEOUT"
1709 ><TT
1710 CLASS="PARAMETER"
1711 ><I
1712 >machine password timeout</I
1713 ></TT
1714 ></A
1715 ></P
1716 ></LI
1717 ><LI
1718 ><P
1719 ><A
1720 HREF="#MANGLEDSTACK"
1721 ><TT
1722 CLASS="PARAMETER"
1723 ><I
1724 >mangled stack</I
1725 ></TT
1726 ></A
1727 ></P
1728 ></LI
1729 ><LI
1730 ><P
1731 ><A
1732 HREF="#MAPTOGUEST"
1733 ><TT
1734 CLASS="PARAMETER"
1735 ><I
1736 >map to guest</I
1737 ></TT
1738 ></A
1739 ></P
1740 ></LI
1741 ><LI
1742 ><P
1743 ><A
1744 HREF="#MAXDISKSIZE"
1745 ><TT
1746 CLASS="PARAMETER"
1747 ><I
1748 >max disk size</I
1749 ></TT
1750 ></A
1751 ></P
1752 ></LI
1753 ><LI
1754 ><P
1755 ><A
1756 HREF="#MAXLOGSIZE"
1757 ><TT
1758 CLASS="PARAMETER"
1759 ><I
1760 >max log size</I
1761 ></TT
1762 ></A
1763 ></P
1764 ></LI
1765 ><LI
1766 ><P
1767 ><A
1768 HREF="#MAXMUX"
1769 ><TT
1770 CLASS="PARAMETER"
1771 ><I
1772 >max mux</I
1773 ></TT
1774 ></A
1775 ></P
1776 ></LI
1777 ><LI
1778 ><P
1779 ><A
1780 HREF="#MAXOPENFILES"
1781 ><TT
1782 CLASS="PARAMETER"
1783 ><I
1784 >max open files</I
1785 ></TT
1786 ></A
1787 ></P
1788 ></LI
1789 ><LI
1790 ><P
1791 ><A
1792 HREF="#MAXPROTOCOL"
1793 ><TT
1794 CLASS="PARAMETER"
1795 ><I
1796 >max protocol</I
1797 ></TT
1798 ></A
1799 ></P
1800 ></LI
1801 ><LI
1802 ><P
1803 ><A
1804 HREF="#MAXSMBDPROCESSES"
1805 ><TT
1806 CLASS="PARAMETER"
1807 ><I
1808 >max smbd processes</I
1809 ></TT
1810 ></A
1811 ></P
1812 ></LI
1813 ><LI
1814 ><P
1815 ><A
1816 HREF="#MAXTTL"
1817 ><TT
1818 CLASS="PARAMETER"
1819 ><I
1820 >max ttl</I
1821 ></TT
1822 ></A
1823 ></P
1824 ></LI
1825 ><LI
1826 ><P
1827 ><A
1828 HREF="#MAXWINSTTL"
1829 ><TT
1830 CLASS="PARAMETER"
1831 ><I
1832 >max wins ttl</I
1833 ></TT
1834 ></A
1835 ></P
1836 ></LI
1837 ><LI
1838 ><P
1839 ><A
1840 HREF="#MAXXMIT"
1841 ><TT
1842 CLASS="PARAMETER"
1843 ><I
1844 >max xmit</I
1845 ></TT
1846 ></A
1847 ></P
1848 ></LI
1849 ><LI
1850 ><P
1851 ><A
1852 HREF="#MESSAGECOMMAND"
1853 ><TT
1854 CLASS="PARAMETER"
1855 ><I
1856 >message command</I
1857 ></TT
1858 ></A
1859 ></P
1860 ></LI
1861 ><LI
1862 ><P
1863 ><A
1864 HREF="#MINPASSWDLENGTH"
1865 ><TT
1866 CLASS="PARAMETER"
1867 ><I
1868 >min passwd length</I
1869 ></TT
1870 ></A
1871 ></P
1872 ></LI
1873 ><LI
1874 ><P
1875 ><A
1876 HREF="#MINPASSWORDLENGTH"
1877 ><TT
1878 CLASS="PARAMETER"
1879 ><I
1880 >min password length</I
1881 ></TT
1882 ></A
1883 ></P
1884 ></LI
1885 ><LI
1886 ><P
1887 ><A
1888 HREF="#MINPROTOCOL"
1889 ><TT
1890 CLASS="PARAMETER"
1891 ><I
1892 >min protocol</I
1893 ></TT
1894 ></A
1895 ></P
1896 ></LI
1897 ><LI
1898 ><P
1899 ><A
1900 HREF="#MINWINSTTL"
1901 ><TT
1902 CLASS="PARAMETER"
1903 ><I
1904 >min wins ttl</I
1905 ></TT
1906 ></A
1907 ></P
1908 ></LI
1909 ><LI
1910 ><P
1911 ><A
1912 HREF="#NAMERESOLVEORDER"
1913 ><TT
1914 CLASS="PARAMETER"
1915 ><I
1916 >name resolve order</I
1917 ></TT
1918 ></A
1919 ></P
1920 ></LI
1921 ><LI
1922 ><P
1923 ><A
1924 HREF="#NETBIOSALIASES"
1925 ><TT
1926 CLASS="PARAMETER"
1927 ><I
1928 >netbios aliases</I
1929 ></TT
1930 ></A
1931 ></P
1932 ></LI
1933 ><LI
1934 ><P
1935 ><A
1936 HREF="#NETBIOSNAME"
1937 ><TT
1938 CLASS="PARAMETER"
1939 ><I
1940 >netbios name</I
1941 ></TT
1942 ></A
1943 ></P
1944 ></LI
1945 ><LI
1946 ><P
1947 ><A
1948 HREF="#NETBIOSSCOPE"
1949 ><TT
1950 CLASS="PARAMETER"
1951 ><I
1952 >netbios scope</I
1953 ></TT
1954 ></A
1955 ></P
1956 ></LI
1957 ><LI
1958 ><P
1959 ><A
1960 HREF="#NISHOMEDIR"
1961 ><TT
1962 CLASS="PARAMETER"
1963 ><I
1964 >nis homedir</I
1965 ></TT
1966 ></A
1967 ></P
1968 ></LI
1969 ><LI
1970 ><P
1971 ><A
1972 HREF="#NONUNIXACCOUNTRANGE"
1973 ><TT
1974 CLASS="PARAMETER"
1975 ><I
1976 >non unix account range</I
1977 ></TT
1978 ></A
1979 ></P
1980 ></LI
1981 ><LI
1982 ><P
1983 ><A
1984 HREF="#NTPIPESUPPORT"
1985 ><TT
1986 CLASS="PARAMETER"
1987 ><I
1988 >nt pipe support</I
1989 ></TT
1990 ></A
1991 ></P
1992 ></LI
1993 ><LI
1994 ><P
1995 ><A
1996 HREF="#NTSTATUSSUPPORT"
1997 ><TT
1998 CLASS="PARAMETER"
1999 ><I
2000 >nt status support</I
2001 ></TT
2002 ></A
2003 ></P
2004 ></LI
2005 ><LI
2006 ><P
2007 ><A
2008 HREF="#NULLPASSWORDS"
2009 ><TT
2010 CLASS="PARAMETER"
2011 ><I
2012 >null passwords</I
2013 ></TT
2014 ></A
2015 ></P
2016 ></LI
2017 ><LI
2018 ><P
2019 ><A
2020 HREF="#OBEYPAMRESTRICTIONS"
2021 ><TT
2022 CLASS="PARAMETER"
2023 ><I
2024 >obey pam restrictions</I
2025 ></TT
2026 ></A
2027 ></P
2028 ></LI
2029 ><LI
2030 ><P
2031 ><A
2032 HREF="#OPLOCKBREAKWAITTIME"
2033 ><TT
2034 CLASS="PARAMETER"
2035 ><I
2036 >oplock break wait time</I
2037 ></TT
2038 ></A
2039 ></P
2040 ></LI
2041 ><LI
2042 ><P
2043 ><A
2044 HREF="#OSLEVEL"
2045 ><TT
2046 CLASS="PARAMETER"
2047 ><I
2048 >os level</I
2049 ></TT
2050 ></A
2051 ></P
2052 ></LI
2053 ><LI
2054 ><P
2055 ><A
2056 HREF="#OS2DRIVERMAP"
2057 ><TT
2058 CLASS="PARAMETER"
2059 ><I
2060 >os2 driver map</I
2061 ></TT
2062 ></A
2063 ></P
2064 ></LI
2065 ><LI
2066 ><P
2067 ><A
2068 HREF="#PAMPASSWORDCHANGE"
2069 ><TT
2070 CLASS="PARAMETER"
2071 ><I
2072 >pam password change</I
2073 ></TT
2074 ></A
2075 ></P
2076 ></LI
2077 ><LI
2078 ><P
2079 ><A
2080 HREF="#PANICACTION"
2081 ><TT
2082 CLASS="PARAMETER"
2083 ><I
2084 >panic action</I
2085 ></TT
2086 ></A
2087 ></P
2088 ></LI
2089 ><LI
2090 ><P
2091 ><A
2092 HREF="#PASSDBBACKEND"
2093 ><TT
2094 CLASS="PARAMETER"
2095 ><I
2096 >passdb backend</I
2097 ></TT
2098 ></A
2099 ></P
2100 ></LI
2101 ><LI
2102 ><P
2103 ><A
2104 HREF="#PASSWDCHAT"
2105 ><TT
2106 CLASS="PARAMETER"
2107 ><I
2108 >passwd chat</I
2109 ></TT
2110 ></A
2111 ></P
2112 ></LI
2113 ><LI
2114 ><P
2115 ><A
2116 HREF="#PASSWDCHATDEBUG"
2117 ><TT
2118 CLASS="PARAMETER"
2119 ><I
2120 >passwd chat debug</I
2121 ></TT
2122 ></A
2123 ></P
2124 ></LI
2125 ><LI
2126 ><P
2127 ><A
2128 HREF="#PASSWDPROGRAM"
2129 ><TT
2130 CLASS="PARAMETER"
2131 ><I
2132 >passwd program</I
2133 ></TT
2134 ></A
2135 ></P
2136 ></LI
2137 ><LI
2138 ><P
2139 ><A
2140 HREF="#PASSWORDLEVEL"
2141 ><TT
2142 CLASS="PARAMETER"
2143 ><I
2144 >password level</I
2145 ></TT
2146 ></A
2147 ></P
2148 ></LI
2149 ><LI
2150 ><P
2151 ><A
2152 HREF="#PASSWORDSERVER"
2153 ><TT
2154 CLASS="PARAMETER"
2155 ><I
2156 >password server</I
2157 ></TT
2158 ></A
2159 ></P
2160 ></LI
2161 ><LI
2162 ><P
2163 ><A
2164 HREF="#PREFEREDMASTER"
2165 ><TT
2166 CLASS="PARAMETER"
2167 ><I
2168 >prefered master</I
2169 ></TT
2170 ></A
2171 ></P
2172 ></LI
2173 ><LI
2174 ><P
2175 ><A
2176 HREF="#PREFERREDMASTER"
2177 ><TT
2178 CLASS="PARAMETER"
2179 ><I
2180 >preferred master</I
2181 ></TT
2182 ></A
2183 ></P
2184 ></LI
2185 ><LI
2186 ><P
2187 ><A
2188 HREF="#PRELOAD"
2189 ><TT
2190 CLASS="PARAMETER"
2191 ><I
2192 >preload</I
2193 ></TT
2194 ></A
2195 ></P
2196 ></LI
2197 ><LI
2198 ><P
2199 ><A
2200 HREF="#PRINTCAP"
2201 ><TT
2202 CLASS="PARAMETER"
2203 ><I
2204 >printcap</I
2205 ></TT
2206 ></A
2207 ></P
2208 ></LI
2209 ><LI
2210 ><P
2211 ><A
2212 HREF="#PRINTCAPNAME"
2213 ><TT
2214 CLASS="PARAMETER"
2215 ><I
2216 >printcap name</I
2217 ></TT
2218 ></A
2219 ></P
2220 ></LI
2221 ><LI
2222 ><P
2223 ><A
2224 HREF="#PRINTERDRIVERFILE"
2225 ><TT
2226 CLASS="PARAMETER"
2227 ><I
2228 >printer driver file</I
2229 ></TT
2230 ></A
2231 ></P
2232 ></LI
2233 ><LI
2234 ><P
2235 ><A
2236 HREF="#PRIVATEDIR"
2237 ><TT
2238 CLASS="PARAMETER"
2239 ><I
2240 >private dir</I
2241 ></TT
2242 ></A
2243 ></P
2244 ></LI
2245 ><LI
2246 ><P
2247 ><A
2248 HREF="#PROTOCOL"
2249 ><TT
2250 CLASS="PARAMETER"
2251 ><I
2252 >protocol</I
2253 ></TT
2254 ></A
2255 ></P
2256 ></LI
2257 ><LI
2258 ><P
2259 ><A
2260 HREF="#READBMPX"
2261 ><TT
2262 CLASS="PARAMETER"
2263 ><I
2264 >read bmpx</I
2265 ></TT
2266 ></A
2267 ></P
2268 ></LI
2269 ><LI
2270 ><P
2271 ><A
2272 HREF="#READRAW"
2273 ><TT
2274 CLASS="PARAMETER"
2275 ><I
2276 >read raw</I
2277 ></TT
2278 ></A
2279 ></P
2280 ></LI
2281 ><LI
2282 ><P
2283 ><A
2284 HREF="#READSIZE"
2285 ><TT
2286 CLASS="PARAMETER"
2287 ><I
2288 >read size</I
2289 ></TT
2290 ></A
2291 ></P
2292 ></LI
2293 ><LI
2294 ><P
2295 ><A
2296 HREF="#REMOTEANNOUNCE"
2297 ><TT
2298 CLASS="PARAMETER"
2299 ><I
2300 >remote announce</I
2301 ></TT
2302 ></A
2303 ></P
2304 ></LI
2305 ><LI
2306 ><P
2307 ><A
2308 HREF="#REMOTEBROWSESYNC"
2309 ><TT
2310 CLASS="PARAMETER"
2311 ><I
2312 >remote browse sync</I
2313 ></TT
2314 ></A
2315 ></P
2316 ></LI
2317 ><LI
2318 ><P
2319 ><A
2320 HREF="#RESTRICTANONYMOUS"
2321 ><TT
2322 CLASS="PARAMETER"
2323 ><I
2324 >restrict anonymous</I
2325 ></TT
2326 ></A
2327 ></P
2328 ></LI
2329 ><LI
2330 ><P
2331 ><A
2332 HREF="#ROOT"
2333 ><TT
2334 CLASS="PARAMETER"
2335 ><I
2336 >root</I
2337 ></TT
2338 ></A
2339 ></P
2340 ></LI
2341 ><LI
2342 ><P
2343 ><A
2344 HREF="#ROOTDIR"
2345 ><TT
2346 CLASS="PARAMETER"
2347 ><I
2348 >root dir</I
2349 ></TT
2350 ></A
2351 ></P
2352 ></LI
2353 ><LI
2354 ><P
2355 ><A
2356 HREF="#ROOTDIRECTORY"
2357 ><TT
2358 CLASS="PARAMETER"
2359 ><I
2360 >root directory</I
2361 ></TT
2362 ></A
2363 ></P
2364 ></LI
2365 ><LI
2366 ><P
2367 ><A
2368 HREF="#SECURITY"
2369 ><TT
2370 CLASS="PARAMETER"
2371 ><I
2372 >security</I
2373 ></TT
2374 ></A
2375 ></P
2376 ></LI
2377 ><LI
2378 ><P
2379 ><A
2380 HREF="#SERVERSTRING"
2381 ><TT
2382 CLASS="PARAMETER"
2383 ><I
2384 >server string</I
2385 ></TT
2386 ></A
2387 ></P
2388 ></LI
2389 ><LI
2390 ><P
2391 ><A
2392 HREF="#SHOWADDPRINTERWIZARD"
2393 ><TT
2394 CLASS="PARAMETER"
2395 ><I
2396 >show add printer wizard</I
2397 ></TT
2398 ></A
2399 ></P
2400 ></LI
2401 ><LI
2402 ><P
2403 ><A
2404 HREF="#SHUTDOWNSCRIPT"
2405 ><TT
2406 CLASS="PARAMETER"
2407 ><I
2408 >shutdown script</I
2409 ></TT
2410 ></A
2411 ></P
2412 ></LI
2413 ><LI
2414 ><P
2415 ><A
2416 HREF="#SMBPASSWDFILE"
2417 ><TT
2418 CLASS="PARAMETER"
2419 ><I
2420 >smb passwd file</I
2421 ></TT
2422 ></A
2423 ></P
2424 ></LI
2425 ><LI
2426 ><P
2427 ><A
2428 HREF="#SOCKETADDRESS"
2429 ><TT
2430 CLASS="PARAMETER"
2431 ><I
2432 >socket address</I
2433 ></TT
2434 ></A
2435 ></P
2436 ></LI
2437 ><LI
2438 ><P
2439 ><A
2440 HREF="#SOCKETOPTIONS"
2441 ><TT
2442 CLASS="PARAMETER"
2443 ><I
2444 >socket options</I
2445 ></TT
2446 ></A
2447 ></P
2448 ></LI
2449 ><LI
2450 ><P
2451 ><A
2452 HREF="#SOURCEENVIRONMENT"
2453 ><TT
2454 CLASS="PARAMETER"
2455 ><I
2456 >source environment</I
2457 ></TT
2458 ></A
2459 ></P
2460 ></LI
2461 ><LI
2462 ><P
2463 ><A
2464 HREF="#SPNEGO"
2465 ><TT
2466 CLASS="PARAMETER"
2467 ><I
2468 >use spnego</I
2469 ></TT
2470 ></A
2471 ></P
2472 ></LI
2473 ><LI
2474 ><P
2475 ><A
2476 HREF="#STATCACHE"
2477 ><TT
2478 CLASS="PARAMETER"
2479 ><I
2480 >stat cache</I
2481 ></TT
2482 ></A
2483 ></P
2484 ></LI
2485 ><LI
2486 ><P
2487 ><A
2488 HREF="#STATCACHESIZE"
2489 ><TT
2490 CLASS="PARAMETER"
2491 ><I
2492 >stat cache size</I
2493 ></TT
2494 ></A
2495 ></P
2496 ></LI
2497 ><LI
2498 ><P
2499 ><A
2500 HREF="#STRIPDOT"
2501 ><TT
2502 CLASS="PARAMETER"
2503 ><I
2504 >strip dot</I
2505 ></TT
2506 ></A
2507 ></P
2508 ></LI
2509 ><LI
2510 ><P
2511 ><A
2512 HREF="#SYSLOG"
2513 ><TT
2514 CLASS="PARAMETER"
2515 ><I
2516 >syslog</I
2517 ></TT
2518 ></A
2519 ></P
2520 ></LI
2521 ><LI
2522 ><P
2523 ><A
2524 HREF="#SYSLOGONLY"
2525 ><TT
2526 CLASS="PARAMETER"
2527 ><I
2528 >syslog only</I
2529 ></TT
2530 ></A
2531 ></P
2532 ></LI
2533 ><LI
2534 ><P
2535 ><A
2536 HREF="#TEMPLATEHOMEDIR"
2537 ><TT
2538 CLASS="PARAMETER"
2539 ><I
2540 >template homedir</I
2541 ></TT
2542 ></A
2543 ></P
2544 ></LI
2545 ><LI
2546 ><P
2547 ><A
2548 HREF="#TEMPLATESHELL"
2549 ><TT
2550 CLASS="PARAMETER"
2551 ><I
2552 >template shell</I
2553 ></TT
2554 ></A
2555 ></P
2556 ></LI
2557 ><LI
2558 ><P
2559 ><A
2560 HREF="#TIMEOFFSET"
2561 ><TT
2562 CLASS="PARAMETER"
2563 ><I
2564 >time offset</I
2565 ></TT
2566 ></A
2567 ></P
2568 ></LI
2569 ><LI
2570 ><P
2571 ><A
2572 HREF="#TIMESERVER"
2573 ><TT
2574 CLASS="PARAMETER"
2575 ><I
2576 >time server</I
2577 ></TT
2578 ></A
2579 ></P
2580 ></LI
2581 ><LI
2582 ><P
2583 ><A
2584 HREF="#TIMESTAMPLOGS"
2585 ><TT
2586 CLASS="PARAMETER"
2587 ><I
2588 >timestamp logs</I
2589 ></TT
2590 ></A
2591 ></P
2592 ></LI
2593 ><LI
2594 ><P
2595 ><A
2596 HREF="#TOTALPRINTJOBS"
2597 ><TT
2598 CLASS="PARAMETER"
2599 ><I
2600 >total print jobs</I
2601 ></TT
2602 ></A
2603 ></P
2604 ></LI
2605 ><LI
2606 ><P
2607 ><A
2608 HREF="#UNIXEXTENSIONS"
2609 ><TT
2610 CLASS="PARAMETER"
2611 ><I
2612 >unix extensions</I
2613 ></TT
2614 ></A
2615 ></P
2616 ></LI
2617 ><LI
2618 ><P
2619 ><A
2620 HREF="#UNIXPASSWORDSYNC"
2621 ><TT
2622 CLASS="PARAMETER"
2623 ><I
2624 >unix password sync</I
2625 ></TT
2626 ></A
2627 ></P
2628 ></LI
2629 ><LI
2630 ><P
2631 ><A
2632 HREF="#UPDATEENCRYPTED"
2633 ><TT
2634 CLASS="PARAMETER"
2635 ><I
2636 >update encrypted</I
2637 ></TT
2638 ></A
2639 ></P
2640 ></LI
2641 ><LI
2642 ><P
2643 ><A
2644 HREF="#USEMMAP"
2645 ><TT
2646 CLASS="PARAMETER"
2647 ><I
2648 >use mmap</I
2649 ></TT
2650 ></A
2651 ></P
2652 ></LI
2653 ><LI
2654 ><P
2655 ><A
2656 HREF="#USERHOSTS"
2657 ><TT
2658 CLASS="PARAMETER"
2659 ><I
2660 >use rhosts</I
2661 ></TT
2662 ></A
2663 ></P
2664 ></LI
2665 ><LI
2666 ><P
2667 ><A
2668 HREF="#USERNAMELEVEL"
2669 ><TT
2670 CLASS="PARAMETER"
2671 ><I
2672 >username level</I
2673 ></TT
2674 ></A
2675 ></P
2676 ></LI
2677 ><LI
2678 ><P
2679 ><A
2680 HREF="#USERNAMEMAP"
2681 ><TT
2682 CLASS="PARAMETER"
2683 ><I
2684 >username map</I
2685 ></TT
2686 ></A
2687 ></P
2688 ></LI
2689 ><LI
2690 ><P
2691 ><A
2692 HREF="#UTMP"
2693 ><TT
2694 CLASS="PARAMETER"
2695 ><I
2696 >utmp</I
2697 ></TT
2698 ></A
2699 ></P
2700 ></LI
2701 ><LI
2702 ><P
2703 ><A
2704 HREF="#UTMPDIRECTORY"
2705 ><TT
2706 CLASS="PARAMETER"
2707 ><I
2708 >utmp directory</I
2709 ></TT
2710 ></A
2711 ></P
2712 ></LI
2713 ><LI
2714 ><P
2715 ><A
2716 HREF="#WINBINDCACHETIME"
2717 ><TT
2718 CLASS="PARAMETER"
2719 ><I
2720 >winbind cache time</I
2721 ></TT
2722 ></A
2723 ></P
2724 ></LI
2725 ><LI
2726 ><P
2727 ><A
2728 HREF="#WINBINDENUMUSERS"
2729 ><TT
2730 CLASS="PARAMETER"
2731 ><I
2732 >winbind enum users</I
2733 ></TT
2734 ></A
2735 ></P
2736 ></LI
2737 ><LI
2738 ><P
2739 ><A
2740 HREF="#WINBINDENUMGROUPS"
2741 ><TT
2742 CLASS="PARAMETER"
2743 ><I
2744 >winbind enum groups</I
2745 ></TT
2746 ></A
2747 ></P
2748 ></LI
2749 ><LI
2750 ><P
2751 ><A
2752 HREF="#WINBINDGID"
2753 ><TT
2754 CLASS="PARAMETER"
2755 ><I
2756 >winbind gid</I
2757 ></TT
2758 ></A
2759 ></P
2760 ></LI
2761 ><LI
2762 ><P
2763 ><A
2764 HREF="#WINBINDSEPARATOR"
2765 ><TT
2766 CLASS="PARAMETER"
2767 ><I
2768 >winbind separator</I
2769 ></TT
2770 ></A
2771 ></P
2772 ></LI
2773 ><LI
2774 ><P
2775 ><A
2776 HREF="#WINBINDUID"
2777 ><TT
2778 CLASS="PARAMETER"
2779 ><I
2780 >winbind uid</I
2781 ></TT
2782 ></A
2783 ></P
2784 ></LI
2785 ><LI
2786 ><P
2787 ><A
2788 HREF="#WINBINDUSEDEFAULTDOMAIN"
2789 ><TT
2790 CLASS="PARAMETER"
2791 ><I
2792 >winbind use default domain</I
2793 ></TT
2794 ></A
2795 ></P
2796 ></LI
2797 ><LI
2798 ><P
2799 ><A
2800 HREF="#WINSHOOK"
2801 ><TT
2802 CLASS="PARAMETER"
2803 ><I
2804 >wins hook</I
2805 ></TT
2806 ></A
2807 ></P
2808 ></LI
2809 ><LI
2810 ><P
2811 ><A
2812 HREF="#WINSPROXY"
2813 ><TT
2814 CLASS="PARAMETER"
2815 ><I
2816 >wins proxy</I
2817 ></TT
2818 ></A
2819 ></P
2820 ></LI
2821 ><LI
2822 ><P
2823 ><A
2824 HREF="#WINSSERVER"
2825 ><TT
2826 CLASS="PARAMETER"
2827 ><I
2828 >wins server</I
2829 ></TT
2830 ></A
2831 ></P
2832 ></LI
2833 ><LI
2834 ><P
2835 ><A
2836 HREF="#WINSSUPPORT"
2837 ><TT
2838 CLASS="PARAMETER"
2839 ><I
2840 >wins support</I
2841 ></TT
2842 ></A
2843 ></P
2844 ></LI
2845 ><LI
2846 ><P
2847 ><A
2848 HREF="#WORKGROUP"
2849 ><TT
2850 CLASS="PARAMETER"
2851 ><I
2852 >workgroup</I
2853 ></TT
2854 ></A
2855 ></P
2856 ></LI
2857 ><LI
2858 ><P
2859 ><A
2860 HREF="#WRITERAW"
2861 ><TT
2862 CLASS="PARAMETER"
2863 ><I
2864 >write raw</I
2865 ></TT
2866 ></A
2867 ></P
2868 ></LI
2869 ></UL
2870 ></DIV
2871 ><DIV
2872 CLASS="REFSECT1"
2873 ><A
2874 NAME="AEN927"
2875 ></A
2876 ><H2
2877 >COMPLETE LIST OF SERVICE PARAMETERS</H2
2878 ><P
2879 >Here is a list of all service parameters. See the section on 
2880         each parameter for details. Note that some are synonyms.</P
2881 ><P
2882 ></P
2883 ><UL
2884 ><LI
2885 ><P
2886 ><A
2887 HREF="#ADMINUSERS"
2888 ><TT
2889 CLASS="PARAMETER"
2890 ><I
2891 >admin users</I
2892 ></TT
2893 ></A
2894 ></P
2895 ></LI
2896 ><LI
2897 ><P
2898 ><A
2899 HREF="#ALLOWHOSTS"
2900 ><TT
2901 CLASS="PARAMETER"
2902 ><I
2903 >allow hosts</I
2904 ></TT
2905 ></A
2906 ></P
2907 ></LI
2908 ><LI
2909 ><P
2910 ><A
2911 HREF="#AVAILABLE"
2912 ><TT
2913 CLASS="PARAMETER"
2914 ><I
2915 >available</I
2916 ></TT
2917 ></A
2918 ></P
2919 ></LI
2920 ><LI
2921 ><P
2922 ><A
2923 HREF="#BLOCKINGLOCKS"
2924 ><TT
2925 CLASS="PARAMETER"
2926 ><I
2927 >blocking locks</I
2928 ></TT
2929 ></A
2930 ></P
2931 ></LI
2932 ><LI
2933 ><P
2934 ><A
2935 HREF="#BROWSABLE"
2936 ><TT
2937 CLASS="PARAMETER"
2938 ><I
2939 >browsable</I
2940 ></TT
2941 ></A
2942 ></P
2943 ></LI
2944 ><LI
2945 ><P
2946 ><A
2947 HREF="#BROWSEABLE"
2948 ><TT
2949 CLASS="PARAMETER"
2950 ><I
2951 >browseable</I
2952 ></TT
2953 ></A
2954 ></P
2955 ></LI
2956 ><LI
2957 ><P
2958 ><A
2959 HREF="#CASESENSITIVE"
2960 ><TT
2961 CLASS="PARAMETER"
2962 ><I
2963 >case sensitive</I
2964 ></TT
2965 ></A
2966 ></P
2967 ></LI
2968 ><LI
2969 ><P
2970 ><A
2971 HREF="#CASESIGNAMES"
2972 ><TT
2973 CLASS="PARAMETER"
2974 ><I
2975 >casesignames</I
2976 ></TT
2977 ></A
2978 ></P
2979 ></LI
2980 ><LI
2981 ><P
2982 ><A
2983 HREF="#COMMENT"
2984 ><TT
2985 CLASS="PARAMETER"
2986 ><I
2987 >comment</I
2988 ></TT
2989 ></A
2990 ></P
2991 ></LI
2992 ><LI
2993 ><P
2994 ><A
2995 HREF="#COPY"
2996 ><TT
2997 CLASS="PARAMETER"
2998 ><I
2999 >copy</I
3000 ></TT
3001 ></A
3002 ></P
3003 ></LI
3004 ><LI
3005 ><P
3006 ><A
3007 HREF="#CREATEMASK"
3008 ><TT
3009 CLASS="PARAMETER"
3010 ><I
3011 >create mask</I
3012 ></TT
3013 ></A
3014 ></P
3015 ></LI
3016 ><LI
3017 ><P
3018 ><A
3019 HREF="#CREATEMODE"
3020 ><TT
3021 CLASS="PARAMETER"
3022 ><I
3023 >create mode</I
3024 ></TT
3025 ></A
3026 ></P
3027 ></LI
3028 ><LI
3029 ><P
3030 ><A
3031 HREF="#CSCPOLICY"
3032 ><TT
3033 CLASS="PARAMETER"
3034 ><I
3035 >csc policy</I
3036 ></TT
3037 ></A
3038 ></P
3039 ></LI
3040 ><LI
3041 ><P
3042 ><A
3043 HREF="#DEFAULTCASE"
3044 ><TT
3045 CLASS="PARAMETER"
3046 ><I
3047 >default case</I
3048 ></TT
3049 ></A
3050 ></P
3051 ></LI
3052 ><LI
3053 ><P
3054 ><A
3055 HREF="#DEFAULTDEVMODE"
3056 ><TT
3057 CLASS="PARAMETER"
3058 ><I
3059 >default devmode</I
3060 ></TT
3061 ></A
3062 ></P
3063 ></LI
3064 ><LI
3065 ><P
3066 ><A
3067 HREF="#DELETEREADONLY"
3068 ><TT
3069 CLASS="PARAMETER"
3070 ><I
3071 >delete readonly</I
3072 ></TT
3073 ></A
3074 ></P
3075 ></LI
3076 ><LI
3077 ><P
3078 ><A
3079 HREF="#DELETEVETOFILES"
3080 ><TT
3081 CLASS="PARAMETER"
3082 ><I
3083 >delete veto files</I
3084 ></TT
3085 ></A
3086 ></P
3087 ></LI
3088 ><LI
3089 ><P
3090 ><A
3091 HREF="#DENYHOSTS"
3092 ><TT
3093 CLASS="PARAMETER"
3094 ><I
3095 >deny hosts</I
3096 ></TT
3097 ></A
3098 ></P
3099 ></LI
3100 ><LI
3101 ><P
3102 ><A
3103 HREF="#DIRECTORY"
3104 ><TT
3105 CLASS="PARAMETER"
3106 ><I
3107 >directory</I
3108 ></TT
3109 ></A
3110 ></P
3111 ></LI
3112 ><LI
3113 ><P
3114 ><A
3115 HREF="#DIRECTORYMASK"
3116 ><TT
3117 CLASS="PARAMETER"
3118 ><I
3119 >directory mask</I
3120 ></TT
3121 ></A
3122 ></P
3123 ></LI
3124 ><LI
3125 ><P
3126 ><A
3127 HREF="#DIRECTORYMODE"
3128 ><TT
3129 CLASS="PARAMETER"
3130 ><I
3131 >directory mode</I
3132 ></TT
3133 ></A
3134 ></P
3135 ></LI
3136 ><LI
3137 ><P
3138 ><A
3139 HREF="#DIRECTORYSECURITYMASK"
3140 ><TT
3141 CLASS="PARAMETER"
3142 ><I
3143 >directory security mask</I
3144 ></TT
3145 ></A
3146 ></P
3147 ></LI
3148 ><LI
3149 ><P
3150 ><A
3151 HREF="#DONTDESCEND"
3152 ><TT
3153 CLASS="PARAMETER"
3154 ><I
3155 >dont descend</I
3156 ></TT
3157 ></A
3158 ></P
3159 ></LI
3160 ><LI
3161 ><P
3162 ><A
3163 HREF="#DOSFILEMODE"
3164 ><TT
3165 CLASS="PARAMETER"
3166 ><I
3167 >dos filemode</I
3168 ></TT
3169 ></A
3170 ></P
3171 ></LI
3172 ><LI
3173 ><P
3174 ><A
3175 HREF="#DOSFILETIMERESOLUTION"
3176 ><TT
3177 CLASS="PARAMETER"
3178 ><I
3179 >dos filetime resolution</I
3180 ></TT
3181 ></A
3182 ></P
3183 ></LI
3184 ><LI
3185 ><P
3186 ><A
3187 HREF="#DOSFILETIMES"
3188 ><TT
3189 CLASS="PARAMETER"
3190 ><I
3191 >dos filetimes</I
3192 ></TT
3193 ></A
3194 ></P
3195 ></LI
3196 ><LI
3197 ><P
3198 ><A
3199 HREF="#EXEC"
3200 ><TT
3201 CLASS="PARAMETER"
3202 ><I
3203 >exec</I
3204 ></TT
3205 ></A
3206 ></P
3207 ></LI
3208 ><LI
3209 ><P
3210 ><A
3211 HREF="#FAKEDIRECTORYCREATETIMES"
3212 ><TT
3213 CLASS="PARAMETER"
3214 ><I
3215 >fake directory create times</I
3216 ></TT
3217 ></A
3218 ></P
3219 ></LI
3220 ><LI
3221 ><P
3222 ><A
3223 HREF="#FAKEOPLOCKS"
3224 ><TT
3225 CLASS="PARAMETER"
3226 ><I
3227 >fake oplocks</I
3228 ></TT
3229 ></A
3230 ></P
3231 ></LI
3232 ><LI
3233 ><P
3234 ><A
3235 HREF="#FOLLOWSYMLINKS"
3236 ><TT
3237 CLASS="PARAMETER"
3238 ><I
3239 >follow symlinks</I
3240 ></TT
3241 ></A
3242 ></P
3243 ></LI
3244 ><LI
3245 ><P
3246 ><A
3247 HREF="#FORCECREATEMODE"
3248 ><TT
3249 CLASS="PARAMETER"
3250 ><I
3251 >force create mode</I
3252 ></TT
3253 ></A
3254 ></P
3255 ></LI
3256 ><LI
3257 ><P
3258 ><A
3259 HREF="#FORCEDIRECTORYMODE"
3260 ><TT
3261 CLASS="PARAMETER"
3262 ><I
3263 >force directory mode</I
3264 ></TT
3265 ></A
3266 ></P
3267 ></LI
3268 ><LI
3269 ><P
3270 ><A
3271 HREF="#FORCEDIRECTORYSECURITYMODE"
3272 ><TT
3273 CLASS="PARAMETER"
3274 ><I
3275 >force directory security mode</I
3276 ></TT
3277 ></A
3278 ></P
3279 ></LI
3280 ><LI
3281 ><P
3282 ><A
3283 HREF="#FORCEGROUP"
3284 ><TT
3285 CLASS="PARAMETER"
3286 ><I
3287 >force group</I
3288 ></TT
3289 ></A
3290 ></P
3291 ></LI
3292 ><LI
3293 ><P
3294 ><A
3295 HREF="#FORCESECURITYMODE"
3296 ><TT
3297 CLASS="PARAMETER"
3298 ><I
3299 >force security mode</I
3300 ></TT
3301 ></A
3302 ></P
3303 ></LI
3304 ><LI
3305 ><P
3306 ><A
3307 HREF="#FORCEUSER"
3308 ><TT
3309 CLASS="PARAMETER"
3310 ><I
3311 >force user</I
3312 ></TT
3313 ></A
3314 ></P
3315 ></LI
3316 ><LI
3317 ><P
3318 ><A
3319 HREF="#FSTYPE"
3320 ><TT
3321 CLASS="PARAMETER"
3322 ><I
3323 >fstype</I
3324 ></TT
3325 ></A
3326 ></P
3327 ></LI
3328 ><LI
3329 ><P
3330 ><A
3331 HREF="#GROUP"
3332 ><TT
3333 CLASS="PARAMETER"
3334 ><I
3335 >group</I
3336 ></TT
3337 ></A
3338 ></P
3339 ></LI
3340 ><LI
3341 ><P
3342 ><A
3343 HREF="#GUESTACCOUNT"
3344 ><TT
3345 CLASS="PARAMETER"
3346 ><I
3347 >guest account</I
3348 ></TT
3349 ></A
3350 ></P
3351 ></LI
3352 ><LI
3353 ><P
3354 ><A
3355 HREF="#GUESTOK"
3356 ><TT
3357 CLASS="PARAMETER"
3358 ><I
3359 >guest ok</I
3360 ></TT
3361 ></A
3362 ></P
3363 ></LI
3364 ><LI
3365 ><P
3366 ><A
3367 HREF="#GUESTONLY"
3368 ><TT
3369 CLASS="PARAMETER"
3370 ><I
3371 >guest only</I
3372 ></TT
3373 ></A
3374 ></P
3375 ></LI
3376 ><LI
3377 ><P
3378 ><A
3379 HREF="#HIDEDOTFILES"
3380 ><TT
3381 CLASS="PARAMETER"
3382 ><I
3383 >hide dot files</I
3384 ></TT
3385 ></A
3386 ></P
3387 ></LI
3388 ><LI
3389 ><P
3390 ><A
3391 HREF="#HIDEFILES"
3392 ><TT
3393 CLASS="PARAMETER"
3394 ><I
3395 >hide files</I
3396 ></TT
3397 ></A
3398 ></P
3399 ></LI
3400 ><LI
3401 ><P
3402 ><A
3403 HREF="#HOSTSALLOW"
3404 ><TT
3405 CLASS="PARAMETER"
3406 ><I
3407 >hosts allow</I
3408 ></TT
3409 ></A
3410 ></P
3411 ></LI
3412 ><LI
3413 ><P
3414 ><A
3415 HREF="#HOSTSDENY"
3416 ><TT
3417 CLASS="PARAMETER"
3418 ><I
3419 >hosts deny</I
3420 ></TT
3421 ></A
3422 ></P
3423 ></LI
3424 ><LI
3425 ><P
3426 ><A
3427 HREF="#INCLUDE"
3428 ><TT
3429 CLASS="PARAMETER"
3430 ><I
3431 >include</I
3432 ></TT
3433 ></A
3434 ></P
3435 ></LI
3436 ><LI
3437 ><P
3438 ><A
3439 HREF="#INHERITACLS"
3440 ><TT
3441 CLASS="PARAMETER"
3442 ><I
3443 >inherit acls</I
3444 ></TT
3445 ></A
3446 ></P
3447 ></LI
3448 ><LI
3449 ><P
3450 ><A
3451 HREF="#INHERITPERMISSIONS"
3452 ><TT
3453 CLASS="PARAMETER"
3454 ><I
3455 >inherit permissions</I
3456 ></TT
3457 ></A
3458 ></P
3459 ></LI
3460 ><LI
3461 ><P
3462 ><A
3463 HREF="#INVALIDUSERS"
3464 ><TT
3465 CLASS="PARAMETER"
3466 ><I
3467 >invalid users</I
3468 ></TT
3469 ></A
3470 ></P
3471 ></LI
3472 ><LI
3473 ><P
3474 ><A
3475 HREF="#LEVEL2OPLOCKS"
3476 ><TT
3477 CLASS="PARAMETER"
3478 ><I
3479 >level2 oplocks</I
3480 ></TT
3481 ></A
3482 ></P
3483 ></LI
3484 ><LI
3485 ><P
3486 ><A
3487 HREF="#LOCKING"
3488 ><TT
3489 CLASS="PARAMETER"
3490 ><I
3491 >locking</I
3492 ></TT
3493 ></A
3494 ></P
3495 ></LI
3496 ><LI
3497 ><P
3498 ><A
3499 HREF="#LPPAUSECOMMAND"
3500 ><TT
3501 CLASS="PARAMETER"
3502 ><I
3503 >lppause command</I
3504 ></TT
3505 ></A
3506 ></P
3507 ></LI
3508 ><LI
3509 ><P
3510 ><A
3511 HREF="#LPQCOMMAND"
3512 ><TT
3513 CLASS="PARAMETER"
3514 ><I
3515 >lpq command</I
3516 ></TT
3517 ></A
3518 ></P
3519 ></LI
3520 ><LI
3521 ><P
3522 ><A
3523 HREF="#LPRESUMECOMMAND"
3524 ><TT
3525 CLASS="PARAMETER"
3526 ><I
3527 >lpresume command</I
3528 ></TT
3529 ></A
3530 ></P
3531 ></LI
3532 ><LI
3533 ><P
3534 ><A
3535 HREF="#LPRMCOMMAND"
3536 ><TT
3537 CLASS="PARAMETER"
3538 ><I
3539 >lprm command</I
3540 ></TT
3541 ></A
3542 ></P
3543 ></LI
3544 ><LI
3545 ><P
3546 ><A
3547 HREF="#MAGICOUTPUT"
3548 ><TT
3549 CLASS="PARAMETER"
3550 ><I
3551 >magic output</I
3552 ></TT
3553 ></A
3554 ></P
3555 ></LI
3556 ><LI
3557 ><P
3558 ><A
3559 HREF="#MAGICSCRIPT"
3560 ><TT
3561 CLASS="PARAMETER"
3562 ><I
3563 >magic script</I
3564 ></TT
3565 ></A
3566 ></P
3567 ></LI
3568 ><LI
3569 ><P
3570 ><A
3571 HREF="#MANGLECASE"
3572 ><TT
3573 CLASS="PARAMETER"
3574 ><I
3575 >mangle case</I
3576 ></TT
3577 ></A
3578 ></P
3579 ></LI
3580 ><LI
3581 ><P
3582 ><A
3583 HREF="#MANGLEDMAP"
3584 ><TT
3585 CLASS="PARAMETER"
3586 ><I
3587 >mangled map</I
3588 ></TT
3589 ></A
3590 ></P
3591 ></LI
3592 ><LI
3593 ><P
3594 ><A
3595 HREF="#MANGLEDNAMES"
3596 ><TT
3597 CLASS="PARAMETER"
3598 ><I
3599 >mangled names</I
3600 ></TT
3601 ></A
3602 ></P
3603 ></LI
3604 ><LI
3605 ><P
3606 ><A
3607 HREF="#MANGLINGCHAR"
3608 ><TT
3609 CLASS="PARAMETER"
3610 ><I
3611 >mangling char</I
3612 ></TT
3613 ></A
3614 ></P
3615 ></LI
3616 ><LI
3617 ><P
3618 ><A
3619 HREF="#MAPARCHIVE"
3620 ><TT
3621 CLASS="PARAMETER"
3622 ><I
3623 >map archive</I
3624 ></TT
3625 ></A
3626 ></P
3627 ></LI
3628 ><LI
3629 ><P
3630 ><A
3631 HREF="#MAPHIDDEN"
3632 ><TT
3633 CLASS="PARAMETER"
3634 ><I
3635 >map hidden</I
3636 ></TT
3637 ></A
3638 ></P
3639 ></LI
3640 ><LI
3641 ><P
3642 ><A
3643 HREF="#MAPSYSTEM"
3644 ><TT
3645 CLASS="PARAMETER"
3646 ><I
3647 >map system</I
3648 ></TT
3649 ></A
3650 ></P
3651 ></LI
3652 ><LI
3653 ><P
3654 ><A
3655 HREF="#MAXCONNECTIONS"
3656 ><TT
3657 CLASS="PARAMETER"
3658 ><I
3659 >max connections</I
3660 ></TT
3661 ></A
3662 ></P
3663 ></LI
3664 ><LI
3665 ><P
3666 ><A
3667 HREF="#MAXPRINTJOBS"
3668 ><TT
3669 CLASS="PARAMETER"
3670 ><I
3671 >max print jobs</I
3672 ></TT
3673 ></A
3674 ></P
3675 ></LI
3676 ><LI
3677 ><P
3678 ><A
3679 HREF="#MINPRINTSPACE"
3680 ><TT
3681 CLASS="PARAMETER"
3682 ><I
3683 >min print space</I
3684 ></TT
3685 ></A
3686 ></P
3687 ></LI
3688 ><LI
3689 ><P
3690 ><A
3691 HREF="#MSDFSROOT"
3692 ><TT
3693 CLASS="PARAMETER"
3694 ><I
3695 >msdfs root</I
3696 ></TT
3697 ></A
3698 ></P
3699 ></LI
3700 ><LI
3701 ><P
3702 ><A
3703 HREF="#NTACLSUPPORT"
3704 ><TT
3705 CLASS="PARAMETER"
3706 ><I
3707 >nt acl support</I
3708 ></TT
3709 ></A
3710 ></P
3711 ></LI
3712 ><LI
3713 ><P
3714 ><A
3715 HREF="#ONLYGUEST"
3716 ><TT
3717 CLASS="PARAMETER"
3718 ><I
3719 >only guest</I
3720 ></TT
3721 ></A
3722 ></P
3723 ></LI
3724 ><LI
3725 ><P
3726 ><A
3727 HREF="#ONLYUSER"
3728 ><TT
3729 CLASS="PARAMETER"
3730 ><I
3731 >only user</I
3732 ></TT
3733 ></A
3734 ></P
3735 ></LI
3736 ><LI
3737 ><P
3738 ><A
3739 HREF="#OPLOCKCONTENTIONLIMIT"
3740 ><TT
3741 CLASS="PARAMETER"
3742 ><I
3743 >oplock contention limit</I
3744 ></TT
3745 ></A
3746 ></P
3747 ></LI
3748 ><LI
3749 ><P
3750 ><A
3751 HREF="#OPLOCKS"
3752 ><TT
3753 CLASS="PARAMETER"
3754 ><I
3755 >oplocks</I
3756 ></TT
3757 ></A
3758 ></P
3759 ></LI
3760 ><LI
3761 ><P
3762 ><A
3763 HREF="#PATH"
3764 ><TT
3765 CLASS="PARAMETER"
3766 ><I
3767 >path</I
3768 ></TT
3769 ></A
3770 ></P
3771 ></LI
3772 ><LI
3773 ><P
3774 ><A
3775 HREF="#POSIXLOCKING"
3776 ><TT
3777 CLASS="PARAMETER"
3778 ><I
3779 >posix locking</I
3780 ></TT
3781 ></A
3782 ></P
3783 ></LI
3784 ><LI
3785 ><P
3786 ><A
3787 HREF="#POSTEXEC"
3788 ><TT
3789 CLASS="PARAMETER"
3790 ><I
3791 >postexec</I
3792 ></TT
3793 ></A
3794 ></P
3795 ></LI
3796 ><LI
3797 ><P
3798 ><A
3799 HREF="#POSTSCRIPT"
3800 ><TT
3801 CLASS="PARAMETER"
3802 ><I
3803 >postscript</I
3804 ></TT
3805 ></A
3806 ></P
3807 ></LI
3808 ><LI
3809 ><P
3810 ><A
3811 HREF="#PREEXEC"
3812 ><TT
3813 CLASS="PARAMETER"
3814 ><I
3815 >preexec</I
3816 ></TT
3817 ></A
3818 ></P
3819 ></LI
3820 ><LI
3821 ><P
3822 ><A
3823 HREF="#PREEXECCLOSE"
3824 ><TT
3825 CLASS="PARAMETER"
3826 ><I
3827 >preexec close</I
3828 ></TT
3829 ></A
3830 ></P
3831 ></LI
3832 ><LI
3833 ><P
3834 ><A
3835 HREF="#PRESERVECASE"
3836 ><TT
3837 CLASS="PARAMETER"
3838 ><I
3839 >preserve case</I
3840 ></TT
3841 ></A
3842 ></P
3843 ></LI
3844 ><LI
3845 ><P
3846 ><A
3847 HREF="#PRINTCOMMAND"
3848 ><TT
3849 CLASS="PARAMETER"
3850 ><I
3851 >print command</I
3852 ></TT
3853 ></A
3854 ></P
3855 ></LI
3856 ><LI
3857 ><P
3858 ><A
3859 HREF="#PRINTOK"
3860 ><TT
3861 CLASS="PARAMETER"
3862 ><I
3863 >print ok</I
3864 ></TT
3865 ></A
3866 ></P
3867 ></LI
3868 ><LI
3869 ><P
3870 ><A
3871 HREF="#PRINTABLE"
3872 ><TT
3873 CLASS="PARAMETER"
3874 ><I
3875 >printable</I
3876 ></TT
3877 ></A
3878 ></P
3879 ></LI
3880 ><LI
3881 ><P
3882 ><A
3883 HREF="#PRINTER"
3884 ><TT
3885 CLASS="PARAMETER"
3886 ><I
3887 >printer</I
3888 ></TT
3889 ></A
3890 ></P
3891 ></LI
3892 ><LI
3893 ><P
3894 ><A
3895 HREF="#PRINTERADMIN"
3896 ><TT
3897 CLASS="PARAMETER"
3898 ><I
3899 >printer admin</I
3900 ></TT
3901 ></A
3902 ></P
3903 ></LI
3904 ><LI
3905 ><P
3906 ><A
3907 HREF="#PRINTERDRIVER"
3908 ><TT
3909 CLASS="PARAMETER"
3910 ><I
3911 >printer driver</I
3912 ></TT
3913 ></A
3914 ></P
3915 ></LI
3916 ><LI
3917 ><P
3918 ><A
3919 HREF="#PRINTERDRIVERLOCATION"
3920 ><TT
3921 CLASS="PARAMETER"
3922 ><I
3923 >printer driver location</I
3924 ></TT
3925 ></A
3926 ></P
3927 ></LI
3928 ><LI
3929 ><P
3930 ><A
3931 HREF="#PRINTERNAME"
3932 ><TT
3933 CLASS="PARAMETER"
3934 ><I
3935 >printer name</I
3936 ></TT
3937 ></A
3938 ></P
3939 ></LI
3940 ><LI
3941 ><P
3942 ><A
3943 HREF="#PRINTING"
3944 ><TT
3945 CLASS="PARAMETER"
3946 ><I
3947 >printing</I
3948 ></TT
3949 ></A
3950 ></P
3951 ></LI
3952 ><LI
3953 ><P
3954 ><A
3955 HREF="#PUBLIC"
3956 ><TT
3957 CLASS="PARAMETER"
3958 ><I
3959 >public</I
3960 ></TT
3961 ></A
3962 ></P
3963 ></LI
3964 ><LI
3965 ><P
3966 ><A
3967 HREF="#QUEUEPAUSECOMMAND"
3968 ><TT
3969 CLASS="PARAMETER"
3970 ><I
3971 >queuepause command</I
3972 ></TT
3973 ></A
3974 ></P
3975 ></LI
3976 ><LI
3977 ><P
3978 ><A
3979 HREF="#QUEUERESUMECOMMAND"
3980 ><TT
3981 CLASS="PARAMETER"
3982 ><I
3983 >queueresume command</I
3984 ></TT
3985 ></A
3986 ></P
3987 ></LI
3988 ><LI
3989 ><P
3990 ><A
3991 HREF="#READLIST"
3992 ><TT
3993 CLASS="PARAMETER"
3994 ><I
3995 >read list</I
3996 ></TT
3997 ></A
3998 ></P
3999 ></LI
4000 ><LI
4001 ><P
4002 ><A
4003 HREF="#READONLY"
4004 ><TT
4005 CLASS="PARAMETER"
4006 ><I
4007 >read only</I
4008 ></TT
4009 ></A
4010 ></P
4011 ></LI
4012 ><LI
4013 ><P
4014 ><A
4015 HREF="#ROOTPOSTEXEC"
4016 ><TT
4017 CLASS="PARAMETER"
4018 ><I
4019 >root postexec</I
4020 ></TT
4021 ></A
4022 ></P
4023 ></LI
4024 ><LI
4025 ><P
4026 ><A
4027 HREF="#ROOTPREEXEC"
4028 ><TT
4029 CLASS="PARAMETER"
4030 ><I
4031 >root preexec</I
4032 ></TT
4033 ></A
4034 ></P
4035 ></LI
4036 ><LI
4037 ><P
4038 ><A
4039 HREF="#ROOTPREEXECCLOSE"
4040 ><TT
4041 CLASS="PARAMETER"
4042 ><I
4043 >root preexec close</I
4044 ></TT
4045 ></A
4046 ></P
4047 ></LI
4048 ><LI
4049 ><P
4050 ><A
4051 HREF="#SECURITYMASK"
4052 ><TT
4053 CLASS="PARAMETER"
4054 ><I
4055 >security mask</I
4056 ></TT
4057 ></A
4058 ></P
4059 ></LI
4060 ><LI
4061 ><P
4062 ><A
4063 HREF="#SETDIRECTORY"
4064 ><TT
4065 CLASS="PARAMETER"
4066 ><I
4067 >set directory</I
4068 ></TT
4069 ></A
4070 ></P
4071 ></LI
4072 ><LI
4073 ><P
4074 ><A
4075 HREF="#SHAREMODES"
4076 ><TT
4077 CLASS="PARAMETER"
4078 ><I
4079 >share modes</I
4080 ></TT
4081 ></A
4082 ></P
4083 ></LI
4084 ><LI
4085 ><P
4086 ><A
4087 HREF="#SHORTPRESERVECASE"
4088 ><TT
4089 CLASS="PARAMETER"
4090 ><I
4091 >short preserve case</I
4092 ></TT
4093 ></A
4094 ></P
4095 ></LI
4096 ><LI
4097 ><P
4098 ><A
4099 HREF="#STATUS"
4100 ><TT
4101 CLASS="PARAMETER"
4102 ><I
4103 >status</I
4104 ></TT
4105 ></A
4106 ></P
4107 ></LI
4108 ><LI
4109 ><P
4110 ><A
4111 HREF="#STRICTALLOCATE"
4112 ><TT
4113 CLASS="PARAMETER"
4114 ><I
4115 >strict allocate</I
4116 ></TT
4117 ></A
4118 ></P
4119 ></LI
4120 ><LI
4121 ><P
4122 ><A
4123 HREF="#STRICTLOCKING"
4124 ><TT
4125 CLASS="PARAMETER"
4126 ><I
4127 >strict locking</I
4128 ></TT
4129 ></A
4130 ></P
4131 ></LI
4132 ><LI
4133 ><P
4134 ><A
4135 HREF="#STRICTSYNC"
4136 ><TT
4137 CLASS="PARAMETER"
4138 ><I
4139 >strict sync</I
4140 ></TT
4141 ></A
4142 ></P
4143 ></LI
4144 ><LI
4145 ><P
4146 ><A
4147 HREF="#SYNCALWAYS"
4148 ><TT
4149 CLASS="PARAMETER"
4150 ><I
4151 >sync always</I
4152 ></TT
4153 ></A
4154 ></P
4155 ></LI
4156 ><LI
4157 ><P
4158 ><A
4159 HREF="#USECLIENTDRIVER"
4160 ><TT
4161 CLASS="PARAMETER"
4162 ><I
4163 >use client driver</I
4164 ></TT
4165 ></A
4166 ></P
4167 ></LI
4168 ><LI
4169 ><P
4170 ><A
4171 HREF="#USER"
4172 ><TT
4173 CLASS="PARAMETER"
4174 ><I
4175 >user</I
4176 ></TT
4177 ></A
4178 ></P
4179 ></LI
4180 ><LI
4181 ><P
4182 ><A
4183 HREF="#USERNAME"
4184 ><TT
4185 CLASS="PARAMETER"
4186 ><I
4187 >username</I
4188 ></TT
4189 ></A
4190 ></P
4191 ></LI
4192 ><LI
4193 ><P
4194 ><A
4195 HREF="#USERS"
4196 ><TT
4197 CLASS="PARAMETER"
4198 ><I
4199 >users</I
4200 ></TT
4201 ></A
4202 ></P
4203 ></LI
4204 ><LI
4205 ><P
4206 ><A
4207 HREF="#VALIDUSERS"
4208 ><TT
4209 CLASS="PARAMETER"
4210 ><I
4211 >valid users</I
4212 ></TT
4213 ></A
4214 ></P
4215 ></LI
4216 ><LI
4217 ><P
4218 ><A
4219 HREF="#VETOFILES"
4220 ><TT
4221 CLASS="PARAMETER"
4222 ><I
4223 >veto files</I
4224 ></TT
4225 ></A
4226 ></P
4227 ></LI
4228 ><LI
4229 ><P
4230 ><A
4231 HREF="#VETOOPLOCKFILES"
4232 ><TT
4233 CLASS="PARAMETER"
4234 ><I
4235 >veto oplock files</I
4236 ></TT
4237 ></A
4238 ></P
4239 ></LI
4240 ><LI
4241 ><P
4242 ><A
4243 HREF="#VFSOBJECT"
4244 ><TT
4245 CLASS="PARAMETER"
4246 ><I
4247 >vfs object</I
4248 ></TT
4249 ></A
4250 ></P
4251 ></LI
4252 ><LI
4253 ><P
4254 ><A
4255 HREF="#VFSOPTIONS"
4256 ><TT
4257 CLASS="PARAMETER"
4258 ><I
4259 >vfs options</I
4260 ></TT
4261 ></A
4262 ></P
4263 ></LI
4264 ><LI
4265 ><P
4266 ><A
4267 HREF="#VOLUME"
4268 ><TT
4269 CLASS="PARAMETER"
4270 ><I
4271 >volume</I
4272 ></TT
4273 ></A
4274 ></P
4275 ></LI
4276 ><LI
4277 ><P
4278 ><A
4279 HREF="#WIDELINKS"
4280 ><TT
4281 CLASS="PARAMETER"
4282 ><I
4283 >wide links</I
4284 ></TT
4285 ></A
4286 ></P
4287 ></LI
4288 ><LI
4289 ><P
4290 ><A
4291 HREF="#WRITABLE"
4292 ><TT
4293 CLASS="PARAMETER"
4294 ><I
4295 >writable</I
4296 ></TT
4297 ></A
4298 ></P
4299 ></LI
4300 ><LI
4301 ><P
4302 ><A
4303 HREF="#WRITECACHESIZE"
4304 ><TT
4305 CLASS="PARAMETER"
4306 ><I
4307 >write cache size</I
4308 ></TT
4309 ></A
4310 ></P
4311 ></LI
4312 ><LI
4313 ><P
4314 ><A
4315 HREF="#WRITELIST"
4316 ><TT
4317 CLASS="PARAMETER"
4318 ><I
4319 >write list</I
4320 ></TT
4321 ></A
4322 ></P
4323 ></LI
4324 ><LI
4325 ><P
4326 ><A
4327 HREF="#WRITEOK"
4328 ><TT
4329 CLASS="PARAMETER"
4330 ><I
4331 >write ok</I
4332 ></TT
4333 ></A
4334 ></P
4335 ></LI
4336 ><LI
4337 ><P
4338 ><A
4339 HREF="#WRITEABLE"
4340 ><TT
4341 CLASS="PARAMETER"
4342 ><I
4343 >writeable</I
4344 ></TT
4345 ></A
4346 ></P
4347 ></LI
4348 ></UL
4349 ></DIV
4350 ><DIV
4351 CLASS="REFSECT1"
4352 ><A
4353 NAME="AEN1419"
4354 ></A
4355 ><H2
4356 >EXPLANATION OF EACH PARAMETER</H2
4357 ><P
4358 ></P
4359 ><DIV
4360 CLASS="VARIABLELIST"
4361 ><DL
4362 ><DT
4363 ><A
4364 NAME="ABORTSHUTDOWNSCRIPT"
4365 ></A
4366 >abort shutdown script (G)</DT
4367 ><DD
4368 ><P
4369 ><EM
4370 >This parameter only exists in the HEAD cvs branch</EM
4371 >
4372                 This a full path name to a script called by
4373                 <A
4374 HREF="smbd.8.html"
4375 TARGET="_top"
4376 ><B
4377 CLASS="COMMAND"
4378 >smbd(8)</B
4379 ></A
4380 >  that
4381                 should stop a shutdown procedure issued by the <A
4382 HREF="#SHUTDOWNSCRIPT"
4383 ><TT
4384 CLASS="PARAMETER"
4385 ><I
4386 >shutdown script</I
4387 ></TT
4388 ></A
4389 >.</P
4390 ><P
4391 >This command will be run as user.</P
4392 ><P
4393 >Default: <EM
4394 >None</EM
4395 >.</P
4396 ><P
4397 >Example: <B
4398 CLASS="COMMAND"
4399 >abort shutdown script = /sbin/shutdown -c</B
4400 ></P
4401 ></DD
4402 ><DT
4403 ><A
4404 NAME="ADDPRINTERCOMMAND"
4405 ></A
4406 >add printer command (G)</DT
4407 ><DD
4408 ><P
4409 >With the introduction of MS-RPC based printing
4410                 support for Windows NT/2000 clients in Samba 2.2, The MS Add
4411                 Printer Wizard (APW) icon is now also available in the 
4412                 "Printers..." folder displayed a share listing.  The APW
4413                 allows for printers to be add remotely to a Samba or Windows 
4414                 NT/2000 print server.</P
4415 ><P
4416 >For a Samba host this means that the printer must be 
4417                 physically added to the underlying printing system.  The <TT
4418 CLASS="PARAMETER"
4419 ><I
4420 >add 
4421                 printer command</I
4422 ></TT
4423 > defines a script to be run which 
4424                 will perform the necessary operations for adding the printer
4425                 to the print system and to add the appropriate service definition 
4426                 to the  <TT
4427 CLASS="FILENAME"
4428 >smb.conf</TT
4429 > file in order that it can be 
4430                 shared by <A
4431 HREF="smbd.8.html"
4432 TARGET="_top"
4433 ><B
4434 CLASS="COMMAND"
4435 >smbd(8)</B
4436 >
4437                 </A
4438 >.</P
4439 ><P
4440 >The <TT
4441 CLASS="PARAMETER"
4442 ><I
4443 >add printer command</I
4444 ></TT
4445 > is
4446                 automatically invoked with the following parameter (in 
4447                 order:</P
4448 ><P
4449 ></P
4450 ><UL
4451 ><LI
4452 ><P
4453 ><TT
4454 CLASS="PARAMETER"
4455 ><I
4456 >printer name</I
4457 ></TT
4458 ></P
4459 ></LI
4460 ><LI
4461 ><P
4462 ><TT
4463 CLASS="PARAMETER"
4464 ><I
4465 >share name</I
4466 ></TT
4467 ></P
4468 ></LI
4469 ><LI
4470 ><P
4471 ><TT
4472 CLASS="PARAMETER"
4473 ><I
4474 >port name</I
4475 ></TT
4476 ></P
4477 ></LI
4478 ><LI
4479 ><P
4480 ><TT
4481 CLASS="PARAMETER"
4482 ><I
4483 >driver name</I
4484 ></TT
4485 ></P
4486 ></LI
4487 ><LI
4488 ><P
4489 ><TT
4490 CLASS="PARAMETER"
4491 ><I
4492 >location</I
4493 ></TT
4494 ></P
4495 ></LI
4496 ><LI
4497 ><P
4498 ><TT
4499 CLASS="PARAMETER"
4500 ><I
4501 >Windows 9x driver location</I
4502 ></TT
4503 >
4504                         </P
4505 ></LI
4506 ></UL
4507 ><P
4508 >All parameters are filled in from the PRINTER_INFO_2 structure sent 
4509                 by the Windows NT/2000 client with one exception.  The "Windows 9x
4510                 driver location" parameter is included for backwards compatibility
4511                 only.  The remaining fields in the structure are generated from answers
4512                 to the APW questions.</P
4513 ><P
4514 >Once the <TT
4515 CLASS="PARAMETER"
4516 ><I
4517 >add printer command</I
4518 ></TT
4519 > has 
4520                 been executed, <B
4521 CLASS="COMMAND"
4522 >smbd</B
4523 > will reparse the <TT
4524 CLASS="FILENAME"
4525 >               smb.conf</TT
4526 > to determine if the share defined by the APW
4527                 exists.  If the sharename is still invalid, then <B
4528 CLASS="COMMAND"
4529 >smbd
4530                 </B
4531 > will return an ACCESS_DENIED error to the client.</P
4532 ><P
4533 >See also <A
4534 HREF="#DELETEPRINTERCOMMAND"
4535 ><TT
4536 CLASS="PARAMETER"
4537 ><I
4538 >               delete printer command</I
4539 ></TT
4540 ></A
4541 >, <A
4542 HREF="#PRINTING"
4543 ><TT
4544 CLASS="PARAMETER"
4545 ><I
4546 >printing</I
4547 ></TT
4548 ></A
4549 >,
4550                 <A
4551 HREF="#SHOWADDPRINTERWIZARD"
4552 ><TT
4553 CLASS="PARAMETER"
4554 ><I
4555 >show add
4556                 printer wizard</I
4557 ></TT
4558 ></A
4559 ></P
4560 ><P
4561 >Default: <EM
4562 >none</EM
4563 ></P
4564 ><P
4565 >Example: <B
4566 CLASS="COMMAND"
4567 >addprinter command = /usr/bin/addprinter
4568                 </B
4569 ></P
4570 ></DD
4571 ><DT
4572 ><A
4573 NAME="ADDSHARECOMMAND"
4574 ></A
4575 >add share command (G)</DT
4576 ><DD
4577 ><P
4578 >Samba 2.2.0 introduced the ability to dynamically 
4579                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
4580                 <TT
4581 CLASS="PARAMETER"
4582 ><I
4583 >add share command</I
4584 ></TT
4585 > is used to define an 
4586                 external program or script which will add a new service definition 
4587                 to <TT
4588 CLASS="FILENAME"
4589 >smb.conf</TT
4590 >.  In order to successfully 
4591                 execute the <TT
4592 CLASS="PARAMETER"
4593 ><I
4594 >add share command</I
4595 ></TT
4596 >, <B
4597 CLASS="COMMAND"
4598 >smbd</B
4599 >
4600                 requires that the administrator be connected using a root account (i.e. 
4601                 uid == 0).
4602                 </P
4603 ><P
4604 >               When executed, <B
4605 CLASS="COMMAND"
4606 >smbd</B
4607 > will automatically invoke the 
4608                 <TT
4609 CLASS="PARAMETER"
4610 ><I
4611 >add share command</I
4612 ></TT
4613 > with four parameters.
4614                 </P
4615 ><P
4616 ></P
4617 ><UL
4618 ><LI
4619 ><P
4620 ><TT
4621 CLASS="PARAMETER"
4622 ><I
4623 >configFile</I
4624 ></TT
4625 > - the location 
4626                         of the global <TT
4627 CLASS="FILENAME"
4628 >smb.conf</TT
4629 > file. 
4630                         </P
4631 ></LI
4632 ><LI
4633 ><P
4634 ><TT
4635 CLASS="PARAMETER"
4636 ><I
4637 >shareName</I
4638 ></TT
4639 > - the name of the new 
4640                         share.
4641                         </P
4642 ></LI
4643 ><LI
4644 ><P
4645 ><TT
4646 CLASS="PARAMETER"
4647 ><I
4648 >pathName</I
4649 ></TT
4650 > - path to an **existing**
4651                         directory on disk.
4652                         </P
4653 ></LI
4654 ><LI
4655 ><P
4656 ><TT
4657 CLASS="PARAMETER"
4658 ><I
4659 >comment</I
4660 ></TT
4661 > - comment string to associate 
4662                         with the new share.
4663                         </P
4664 ></LI
4665 ></UL
4666 ><P
4667 >               This parameter is only used for add file shares.  To add printer shares, 
4668                 see the <A
4669 HREF="#ADDPRINTERCOMMAND"
4670 ><TT
4671 CLASS="PARAMETER"
4672 ><I
4673 >add printer 
4674                 command</I
4675 ></TT
4676 ></A
4677 >.
4678                 </P
4679 ><P
4680 >               See also <A
4681 HREF="#CHANGESHARECOMMAND"
4682 ><TT
4683 CLASS="PARAMETER"
4684 ><I
4685 >change share 
4686                 command</I
4687 ></TT
4688 ></A
4689 >, <A
4690 HREF="#DELETESHARECOMMAND"
4691 ><TT
4692 CLASS="PARAMETER"
4693 ><I
4694 >delete share
4695                 command</I
4696 ></TT
4697 ></A
4698 >.
4699                 </P
4700 ><P
4701 >Default: <EM
4702 >none</EM
4703 ></P
4704 ><P
4705 >Example: <B
4706 CLASS="COMMAND"
4707 >add share command = /usr/local/bin/addshare</B
4708 ></P
4709 ></DD
4710 ><DT
4711 ><A
4712 NAME="ADDMACHINESCRIPT"
4713 ></A
4714 >add machine script (G)</DT
4715 ><DD
4716 ><P
4717 >This is the full pathname to a script that will 
4718                 be run by <A
4719 HREF="smbd.8.html"
4720 TARGET="_top"
4721 >smbd(8)</A
4722 >  when a machine is added
4723                 to it's domain using the administrator username and password method. </P
4724 ><P
4725 >This option is only required when using sam back-ends tied to the
4726                 Unix uid method of RID calculation such as smbpasswd.  This option is only
4727                 available in Samba 3.0.</P
4728 ><P
4729 >Default: <B
4730 CLASS="COMMAND"
4731 >add machine script = &#60;empty string&#62;
4732                 </B
4733 ></P
4734 ><P
4735 >Example: <B
4736 CLASS="COMMAND"
4737 >add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
4738                 </B
4739 ></P
4740 ></DD
4741 ><DT
4742 ><A
4743 NAME="ADDUSERSCRIPT"
4744 ></A
4745 >add user script (G)</DT
4746 ><DD
4747 ><P
4748 >This is the full pathname to a script that will 
4749                 be run <EM
4750 >AS ROOT</EM
4751 > by <A
4752 HREF="smbd.8.html"
4753 TARGET="_top"
4754 >smbd(8)
4755                 </A
4756 > under special circumstances described below.</P
4757 ><P
4758 >Normally, a Samba server requires that UNIX users are 
4759                 created for all users accessing files on this server. For sites 
4760                 that use Windows NT account databases as their primary user database 
4761                 creating these users and keeping the user list in sync with the 
4762                 Windows NT PDC is an onerous task. This option allows <A
4763 HREF="smbd.8.html"
4764 TARGET="_top"
4765 >smbd</A
4766 > to create the required UNIX users 
4767                 <EM
4768 >ON DEMAND</EM
4769 > when a user accesses the Samba server.</P
4770 ><P
4771 >In order to use this option, <A
4772 HREF="smbd.8.html"
4773 TARGET="_top"
4774 >smbd</A
4775
4776                 must <EM
4777 >NOT</EM
4778 > be set to <TT
4779 CLASS="PARAMETER"
4780 ><I
4781 >security = share</I
4782 ></TT
4783 >
4784                 and <TT
4785 CLASS="PARAMETER"
4786 ><I
4787 >add user script</I
4788 ></TT
4789 >
4790                 must be set to a full pathname for a script that will create a UNIX 
4791                 user given one argument of <TT
4792 CLASS="PARAMETER"
4793 ><I
4794 >%u</I
4795 ></TT
4796 >, which expands into 
4797                 the UNIX user name to create.</P
4798 ><P
4799 >When the Windows user attempts to access the Samba server, 
4800                 at login (session setup in the SMB protocol) time, <A
4801 HREF="smbd.8.html"
4802 TARGET="_top"
4803 >               smbd</A
4804 > contacts the <TT
4805 CLASS="PARAMETER"
4806 ><I
4807 >password server</I
4808 ></TT
4809 > and 
4810                 attempts to authenticate the given user with the given password. If the 
4811                 authentication succeeds then <B
4812 CLASS="COMMAND"
4813 >smbd</B
4814
4815                 attempts to find a UNIX user in the UNIX password database to map the 
4816                 Windows user into. If this lookup fails, and <TT
4817 CLASS="PARAMETER"
4818 ><I
4819 >add user script
4820                 </I
4821 ></TT
4822 > is set then <B
4823 CLASS="COMMAND"
4824 >smbd</B
4825 > will
4826                 call the specified script <EM
4827 >AS ROOT</EM
4828 >, expanding 
4829                 any <TT
4830 CLASS="PARAMETER"
4831 ><I
4832 >%u</I
4833 ></TT
4834 > argument to be the user name to create.</P
4835 ><P
4836 >If this script successfully creates the user then <B
4837 CLASS="COMMAND"
4838 >smbd
4839                 </B
4840 > will continue on as though the UNIX user
4841                 already existed. In this way, UNIX users are dynamically created to
4842                 match existing Windows NT accounts.</P
4843 ><P
4844 >See also <A
4845 HREF="#SECURITY"
4846 ><TT
4847 CLASS="PARAMETER"
4848 ><I
4849 >               security</I
4850 ></TT
4851 ></A
4852 >, <A
4853 HREF="#PASSWORDSERVER"
4854 >               <TT
4855 CLASS="PARAMETER"
4856 ><I
4857 >password server</I
4858 ></TT
4859 ></A
4860 >, 
4861                 <A
4862 HREF="#DELETEUSERSCRIPT"
4863 ><TT
4864 CLASS="PARAMETER"
4865 ><I
4866 >delete user 
4867                 script</I
4868 ></TT
4869 ></A
4870 >.</P
4871 ><P
4872 >Default: <B
4873 CLASS="COMMAND"
4874 >add user script = &#60;empty string&#62;
4875                 </B
4876 ></P
4877 ><P
4878 >Example: <B
4879 CLASS="COMMAND"
4880 >add user script = /usr/local/samba/bin/add_user 
4881                 %u</B
4882 ></P
4883 ></DD
4884 ><DT
4885 ><A
4886 NAME="ADDGROUPSCRIPT"
4887 ></A
4888 >add group script (G)</DT
4889 ><DD
4890 ><P
4891 >This is the full pathname to a script that will 
4892                 be run <EM
4893 >AS ROOT</EM
4894 > by <A
4895 HREF="smbd.8.html"
4896 TARGET="_top"
4897 >smbd(8) when a new group is requested. It will expand any <TT
4898 CLASS="PARAMETER"
4899 ><I
4900 >%g</I
4901 ></TT
4902 > to the group name passed.  This script is only useful for installations using the Windows NT domain administration tools.
4903                 </A
4904 > &#13;</P
4905 ></DD
4906 ><DT
4907 ><A
4908 NAME="ADMINUSERS"
4909 ></A
4910 >admin users (S)</DT
4911 ><DD
4912 ><P
4913 >This is a list of users who will be granted 
4914                 administrative privileges on the share. This means that they 
4915                 will do all file operations as the super-user (root).</P
4916 ><P
4917 >You should use this option very carefully, as any user in 
4918                 this list will be able to do anything they like on the share, 
4919                 irrespective of file permissions.</P
4920 ><P
4921 >Default: <EM
4922 >no admin users</EM
4923 ></P
4924 ><P
4925 >Example: <B
4926 CLASS="COMMAND"
4927 >admin users = jason</B
4928 ></P
4929 ></DD
4930 ><DT
4931 ><A
4932 NAME="ALLOWHOSTS"
4933 ></A
4934 >allow hosts (S)</DT
4935 ><DD
4936 ><P
4937 >Synonym for <A
4938 HREF="#HOSTSALLOW"
4939 >               <TT
4940 CLASS="PARAMETER"
4941 ><I
4942 >hosts allow</I
4943 ></TT
4944 ></A
4945 >.</P
4946 ></DD
4947 ><DT
4948 ><A
4949 NAME="ALGORITHMICRIDBASE"
4950 ></A
4951 >algorithmic rid base (G)</DT
4952 ><DD
4953 ><P
4954 >This determines how Samba will use its
4955                 algorithmic mapping from uids/gid to the RIDs needed to construct
4956                 NT Security Identifiers.</P
4957 ><P
4958 >Setting this option to a larger value could be useful to sites
4959                 transitioning from WinNT and Win2k, as existing user and 
4960                 group rids would otherwise clash with sytem users etc. 
4961                 </P
4962 ><P
4963 >All UIDs and GIDs must be able to be resolved into SIDs for  
4964                 the correct operation of ACLs on the server.  As such the algorithmic
4965                 mapping can't be 'turned off', but pushing it 'out of the way' should
4966                 resolve the issues.  Users and groups can then be assigned 'low' RIDs
4967                 in arbitary-rid supporting backends. </P
4968 ><P
4969 >Default: <B
4970 CLASS="COMMAND"
4971 >algorithmic rid base = 1000</B
4972 ></P
4973 ><P
4974 >Example: <B
4975 CLASS="COMMAND"
4976 >algorithmic rid base = 100000</B
4977 ></P
4978 ></DD
4979 ><DT
4980 ><A
4981 NAME="ALLOWTRUSTEDDOMAINS"
4982 ></A
4983 >allow trusted domains (G)</DT
4984 ><DD
4985 ><P
4986 >This option only takes effect when the <A
4987 HREF="#SECURITY"
4988 ><TT
4989 CLASS="PARAMETER"
4990 ><I
4991 >security</I
4992 ></TT
4993 ></A
4994 > option is set to 
4995                 <TT
4996 CLASS="CONSTANT"
4997 >server</TT
4998 > or <TT
4999 CLASS="CONSTANT"
5000 >domain</TT
5001 >.  
5002                 If it is set to no, then attempts to connect to a resource from 
5003                 a domain or workgroup other than the one which <A
5004 HREF="smbd.8.html"
5005 TARGET="_top"
5006 >smbd</A
5007 > is running 
5008                 in will fail, even if that domain is trusted by the remote server 
5009                 doing the authentication.</P
5010 ><P
5011 >This is useful if you only want your Samba server to 
5012                 serve resources to users in the domain it is a member of. As 
5013                 an example, suppose that there are two domains DOMA and DOMB.  DOMB 
5014                 is trusted by DOMA, which contains the Samba server.  Under normal 
5015                 circumstances, a user with an account in DOMB can then access the 
5016                 resources of a UNIX account with the same account name on the 
5017                 Samba server even if they do not have an account in DOMA.  This 
5018                 can make implementing a security boundary difficult.</P
5019 ><P
5020 >Default: <B
5021 CLASS="COMMAND"
5022 >allow trusted domains = yes</B
5023 ></P
5024 ></DD
5025 ><DT
5026 ><A
5027 NAME="ANNOUNCEAS"
5028 ></A
5029 >announce as (G)</DT
5030 ><DD
5031 ><P
5032 >This specifies what type of server 
5033                 <A
5034 HREF="nmbd.8.html"
5035 TARGET="_top"
5036 ><B
5037 CLASS="COMMAND"
5038 >nmbd</B
5039 ></A
5040
5041                 will announce itself as, to a network neighborhood browse 
5042                 list. By default this is set to Windows NT. The valid options 
5043                 are : "NT Server" (which can also be written as "NT"), 
5044                 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, 
5045                 Windows NT Workstation, Windows 95 and Windows for Workgroups 
5046                 respectively. Do not change this parameter unless you have a 
5047                 specific need to stop Samba appearing as an NT server as this 
5048                 may prevent Samba servers from participating as browser servers 
5049                 correctly.</P
5050 ><P
5051 >Default: <B
5052 CLASS="COMMAND"
5053 >announce as = NT Server</B
5054 ></P
5055 ><P
5056 >Example: <B
5057 CLASS="COMMAND"
5058 >announce as = Win95</B
5059 ></P
5060 ></DD
5061 ><DT
5062 ><A
5063 NAME="ANNOUNCEVERSION"
5064 ></A
5065 >announce version (G)</DT
5066 ><DD
5067 ><P
5068 >This specifies the major and minor version numbers 
5069                 that nmbd will use when announcing itself as a server. The default 
5070                 is 4.2.  Do not change this parameter unless you have a specific 
5071                 need to set a Samba server to be a downlevel server.</P
5072 ><P
5073 >Default: <B
5074 CLASS="COMMAND"
5075 >announce version = 4.5</B
5076 ></P
5077 ><P
5078 >Example: <B
5079 CLASS="COMMAND"
5080 >announce version = 2.0</B
5081 ></P
5082 ></DD
5083 ><DT
5084 ><A
5085 NAME="AUTOSERVICES"
5086 ></A
5087 >auto services (G)</DT
5088 ><DD
5089 ><P
5090 >This is a synonym for the <A
5091 HREF="#PRELOAD"
5092 >               <TT
5093 CLASS="PARAMETER"
5094 ><I
5095 >preload</I
5096 ></TT
5097 ></A
5098 >.</P
5099 ></DD
5100 ><DT
5101 ><A
5102 NAME="AUTHMETHODS"
5103 ></A
5104 >auth methods (G)</DT
5105 ><DD
5106 ><P
5107 >This option allows the administrator to chose what
5108                 authentication methods <B
5109 CLASS="COMMAND"
5110 >smbd</B
5111 > will use when authenticating
5112                 a user.  This option defaults to sensible values based on <A
5113 HREF="#SECURITY"
5114 ><TT
5115 CLASS="PARAMETER"
5116 ><I
5117 >               security</I
5118 ></TT
5119 ></A
5120 >.
5121
5122                 Each entry in the list attempts to authenticate the user in turn, until
5123                 the user authenticates.  In practice only one method will ever actually 
5124                 be able to complete the authentication.
5125                 </P
5126 ><P
5127 >Default: <B
5128 CLASS="COMMAND"
5129 >auth methods = &#60;empty string&#62;</B
5130 ></P
5131 ><P
5132 >Example: <B
5133 CLASS="COMMAND"
5134 >auth methods = guest sam ntdomain</B
5135 ></P
5136 ></DD
5137 ><DT
5138 ><A
5139 NAME="AVAILABLE"
5140 ></A
5141 >available (S)</DT
5142 ><DD
5143 ><P
5144 >This parameter lets you "turn off" a service. If 
5145                 <TT
5146 CLASS="PARAMETER"
5147 ><I
5148 >available = no</I
5149 ></TT
5150 >, then <EM
5151 >ALL</EM
5152
5153                 attempts to connect to the service will fail. Such failures are 
5154                 logged.</P
5155 ><P
5156 >Default: <B
5157 CLASS="COMMAND"
5158 >available = yes</B
5159 ></P
5160 ></DD
5161 ><DT
5162 ><A
5163 NAME="BINDINTERFACESONLY"
5164 ></A
5165 >bind interfaces only (G)</DT
5166 ><DD
5167 ><P
5168 >This global parameter allows the Samba admin 
5169                 to limit what interfaces on a machine will serve SMB requests. If 
5170                 affects file service <A
5171 HREF="smbd.8.html"
5172 TARGET="_top"
5173 >smbd(8)</A
5174 > and 
5175                 name service <A
5176 HREF="nmbd.8.html"
5177 TARGET="_top"
5178 >nmbd(8)</A
5179 > in slightly 
5180                 different ways.</P
5181 ><P
5182 >For name service it causes <B
5183 CLASS="COMMAND"
5184 >nmbd</B
5185 > to bind 
5186                 to ports 137 and 138 on the interfaces listed in the <A
5187 HREF="#INTERFACES"
5188 >interfaces</A
5189 > parameter. <B
5190 CLASS="COMMAND"
5191 >nmbd
5192                 </B
5193 > also binds to the "all addresses" interface (0.0.0.0) 
5194                 on ports 137 and 138 for the purposes of reading broadcast messages. 
5195                 If this option is not set then <B
5196 CLASS="COMMAND"
5197 >nmbd</B
5198 > will service 
5199                 name requests on all of these sockets. If <TT
5200 CLASS="PARAMETER"
5201 ><I
5202 >bind interfaces
5203                 only</I
5204 ></TT
5205 > is set then <B
5206 CLASS="COMMAND"
5207 >nmbd</B
5208 > will check the 
5209                 source address of any packets coming in on the broadcast sockets 
5210                 and discard any that don't match the broadcast addresses of the 
5211                 interfaces in the <TT
5212 CLASS="PARAMETER"
5213 ><I
5214 >interfaces</I
5215 ></TT
5216 > parameter list. 
5217                 As unicast packets are received on the other sockets it allows 
5218                 <B
5219 CLASS="COMMAND"
5220 >nmbd</B
5221 > to refuse to serve names to machines that 
5222                 send packets that arrive through any interfaces not listed in the
5223                 <TT
5224 CLASS="PARAMETER"
5225 ><I
5226 >interfaces</I
5227 ></TT
5228 > list.  IP Source address spoofing
5229                 does defeat this simple check, however so it must not be used
5230                 seriously as a security feature for <B
5231 CLASS="COMMAND"
5232 >nmbd</B
5233 >.</P
5234 ><P
5235 >For file service it causes <A
5236 HREF="smbd.8.html"
5237 TARGET="_top"
5238 >smbd(8)</A
5239 >
5240                 to bind only to the interface list given in the <A
5241 HREF="#INTERFACES"
5242 >               interfaces</A
5243 > parameter. This restricts the networks that 
5244                 <B
5245 CLASS="COMMAND"
5246 >smbd</B
5247 > will serve to packets coming in those 
5248                 interfaces.  Note that you should not use this parameter for machines 
5249                 that are serving PPP or other intermittent or non-broadcast network 
5250                 interfaces as it will not cope with non-permanent interfaces.</P
5251 ><P
5252 >If <TT
5253 CLASS="PARAMETER"
5254 ><I
5255 >bind interfaces only</I
5256 ></TT
5257 > is set then 
5258                 unless the network address <EM
5259 >127.0.0.1</EM
5260 > is added 
5261                 to the <TT
5262 CLASS="PARAMETER"
5263 ><I
5264 >interfaces</I
5265 ></TT
5266 > parameter list <A
5267 HREF="smbpasswd.8.html"
5268 TARGET="_top"
5269 ><B
5270 CLASS="COMMAND"
5271 >smbpasswd(8)</B
5272 ></A
5273
5274                 and <A
5275 HREF="swat.8.html"
5276 TARGET="_top"
5277 ><B
5278 CLASS="COMMAND"
5279 >swat(8)</B
5280 ></A
5281 > may 
5282                 not work as expected due to the reasons covered below.</P
5283 ><P
5284 >To change a users SMB password, the <B
5285 CLASS="COMMAND"
5286 >smbpasswd</B
5287 >
5288                 by default connects to the <EM
5289 >localhost - 127.0.0.1</EM
5290
5291                 address as an SMB client to issue the password change request. If 
5292                 <TT
5293 CLASS="PARAMETER"
5294 ><I
5295 >bind interfaces only</I
5296 ></TT
5297 > is set then unless the 
5298                 network address <EM
5299 >127.0.0.1</EM
5300 > is added to the
5301                 <TT
5302 CLASS="PARAMETER"
5303 ><I
5304 >interfaces</I
5305 ></TT
5306 > parameter list then <B
5307 CLASS="COMMAND"
5308 >               smbpasswd</B
5309 > will fail to connect in it's default mode. 
5310                 <B
5311 CLASS="COMMAND"
5312 >smbpasswd</B
5313 > can be forced to use the primary IP interface 
5314                 of the local host by using its <A
5315 HREF="smbpasswd.8.html#minusr"
5316 TARGET="_top"
5317 >               <TT
5318 CLASS="PARAMETER"
5319 ><I
5320 >-r <TT
5321 CLASS="REPLACEABLE"
5322 ><I
5323 >remote machine</I
5324 ></TT
5325 ></I
5326 ></TT
5327 >
5328                 </A
5329 > parameter, with <TT
5330 CLASS="REPLACEABLE"
5331 ><I
5332 >remote machine</I
5333 ></TT
5334 > set 
5335                 to the IP name of the primary interface of the local host.</P
5336 ><P
5337 >The <B
5338 CLASS="COMMAND"
5339 >swat</B
5340 > status page tries to connect with
5341                 <B
5342 CLASS="COMMAND"
5343 >smbd</B
5344 > and <B
5345 CLASS="COMMAND"
5346 >nmbd</B
5347 > at the address 
5348                 <EM
5349 >127.0.0.1</EM
5350 > to determine if they are running.  
5351                 Not adding <EM
5352 >127.0.0.1</EM
5353 >  will cause <B
5354 CLASS="COMMAND"
5355 >               smbd</B
5356 > and <B
5357 CLASS="COMMAND"
5358 >nmbd</B
5359 > to always show
5360                 "not running" even if they really are.  This can prevent <B
5361 CLASS="COMMAND"
5362 >               swat</B
5363 > from starting/stopping/restarting <B
5364 CLASS="COMMAND"
5365 >smbd</B
5366 >
5367                 and <B
5368 CLASS="COMMAND"
5369 >nmbd</B
5370 >.</P
5371 ><P
5372 >Default: <B
5373 CLASS="COMMAND"
5374 >bind interfaces only = no</B
5375 ></P
5376 ></DD
5377 ><DT
5378 ><A
5379 NAME="BLOCKINGLOCKS"
5380 ></A
5381 >blocking locks (S)</DT
5382 ><DD
5383 ><P
5384 >This parameter controls the behavior of <A
5385 HREF="smbd.8.html"
5386 TARGET="_top"
5387 >smbd(8)</A
5388 > when given a request by a client 
5389                 to obtain a byte range lock on a region of an open file, and the 
5390                 request has a time limit associated with it.</P
5391 ><P
5392 >If this parameter is set and the lock range requested 
5393                 cannot be immediately satisfied, Samba 2.2 will internally 
5394                 queue the lock request, and periodically attempt to obtain 
5395                 the lock until the timeout period expires.</P
5396 ><P
5397 >If this parameter is set to <TT
5398 CLASS="CONSTANT"
5399 >false</TT
5400 >, then 
5401                 Samba 2.2 will behave as previous versions of Samba would and 
5402                 will fail the lock request immediately if the lock range 
5403                 cannot be obtained.</P
5404 ><P
5405 >Default: <B
5406 CLASS="COMMAND"
5407 >blocking locks = yes</B
5408 ></P
5409 ></DD
5410 ><DT
5411 ><A
5412 NAME="BROWSABLE"
5413 ></A
5414 >browsable (S)</DT
5415 ><DD
5416 ><P
5417 >See the <A
5418 HREF="#BROWSEABLE"
5419 ><TT
5420 CLASS="PARAMETER"
5421 ><I
5422 >               browseable</I
5423 ></TT
5424 ></A
5425 >.</P
5426 ></DD
5427 ><DT
5428 ><A
5429 NAME="BROWSELIST"
5430 ></A
5431 >browse list (G)</DT
5432 ><DD
5433 ><P
5434 >This controls whether <A
5435 HREF="smbd.8.html"
5436 TARGET="_top"
5437 >               <B
5438 CLASS="COMMAND"
5439 >smbd(8)</B
5440 ></A
5441 > will serve a browse list to 
5442                 a client doing a <B
5443 CLASS="COMMAND"
5444 >NetServerEnum</B
5445 > call. Normally 
5446                 set to <TT
5447 CLASS="CONSTANT"
5448 >true</TT
5449 >. You should never need to change 
5450                 this.</P
5451 ><P
5452 >Default: <B
5453 CLASS="COMMAND"
5454 >browse list = yes</B
5455 ></P
5456 ></DD
5457 ><DT
5458 ><A
5459 NAME="BROWSEABLE"
5460 ></A
5461 >browseable (S)</DT
5462 ><DD
5463 ><P
5464 >This controls whether this share is seen in 
5465                 the list of available shares in a net view and in the browse list.</P
5466 ><P
5467 >Default: <B
5468 CLASS="COMMAND"
5469 >browseable = yes</B
5470 ></P
5471 ></DD
5472 ><DT
5473 ><A
5474 NAME="CASESENSITIVE"
5475 ></A
5476 >case sensitive (S)</DT
5477 ><DD
5478 ><P
5479 >See the discussion in the section <A
5480 HREF="#AEN203"
5481 >NAME MANGLING</A
5482 >.</P
5483 ><P
5484 >Default: <B
5485 CLASS="COMMAND"
5486 >case sensitive = no</B
5487 ></P
5488 ></DD
5489 ><DT
5490 ><A
5491 NAME="CASESIGNAMES"
5492 ></A
5493 >casesignames (S)</DT
5494 ><DD
5495 ><P
5496 >Synonym for <A
5497 HREF="#CASESENSITIVE"
5498 >case 
5499                 sensitive</A
5500 >.</P
5501 ></DD
5502 ><DT
5503 ><A
5504 NAME="CHANGENOTIFYTIMEOUT"
5505 ></A
5506 >change notify timeout (G)</DT
5507 ><DD
5508 ><P
5509 >This SMB allows a client to tell a server to 
5510                 "watch" a particular directory for any changes and only reply to
5511                 the SMB request when a change has occurred. Such constant scanning of
5512                 a directory is expensive under UNIX, hence an <A
5513 HREF="smbd.8.html"
5514 TARGET="_top"
5515 >               <B
5516 CLASS="COMMAND"
5517 >smbd(8)</B
5518 ></A
5519 > daemon only performs such a scan 
5520                 on each requested directory once every <TT
5521 CLASS="PARAMETER"
5522 ><I
5523 >change notify 
5524                 timeout</I
5525 ></TT
5526 > seconds.</P
5527 ><P
5528 >Default: <B
5529 CLASS="COMMAND"
5530 >change notify timeout = 60</B
5531 ></P
5532 ><P
5533 >Example: <B
5534 CLASS="COMMAND"
5535 >change notify timeout = 300</B
5536 ></P
5537 ><P
5538 >Would change the scan time to every 5 minutes.</P
5539 ></DD
5540 ><DT
5541 ><A
5542 NAME="CHANGESHARECOMMAND"
5543 ></A
5544 >change share command (G)</DT
5545 ><DD
5546 ><P
5547 >Samba 2.2.0 introduced the ability to dynamically 
5548                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
5549                 <TT
5550 CLASS="PARAMETER"
5551 ><I
5552 >change share command</I
5553 ></TT
5554 > is used to define an 
5555                 external program or script which will modify an existing service definition 
5556                 in <TT
5557 CLASS="FILENAME"
5558 >smb.conf</TT
5559 >.  In order to successfully 
5560                 execute the <TT
5561 CLASS="PARAMETER"
5562 ><I
5563 >change share command</I
5564 ></TT
5565 >, <B
5566 CLASS="COMMAND"
5567 >smbd</B
5568 >
5569                 requires that the administrator be connected using a root account (i.e. 
5570                 uid == 0).
5571                 </P
5572 ><P
5573 >               When executed, <B
5574 CLASS="COMMAND"
5575 >smbd</B
5576 > will automatically invoke the 
5577                 <TT
5578 CLASS="PARAMETER"
5579 ><I
5580 >change share command</I
5581 ></TT
5582 > with four parameters.
5583                 </P
5584 ><P
5585 ></P
5586 ><UL
5587 ><LI
5588 ><P
5589 ><TT
5590 CLASS="PARAMETER"
5591 ><I
5592 >configFile</I
5593 ></TT
5594 > - the location 
5595                         of the global <TT
5596 CLASS="FILENAME"
5597 >smb.conf</TT
5598 > file. 
5599                         </P
5600 ></LI
5601 ><LI
5602 ><P
5603 ><TT
5604 CLASS="PARAMETER"
5605 ><I
5606 >shareName</I
5607 ></TT
5608 > - the name of the new 
5609                         share.
5610                         </P
5611 ></LI
5612 ><LI
5613 ><P
5614 ><TT
5615 CLASS="PARAMETER"
5616 ><I
5617 >pathName</I
5618 ></TT
5619 > - path to an **existing**
5620                         directory on disk.
5621                         </P
5622 ></LI
5623 ><LI
5624 ><P
5625 ><TT
5626 CLASS="PARAMETER"
5627 ><I
5628 >comment</I
5629 ></TT
5630 > - comment string to associate 
5631                         with the new share.
5632                         </P
5633 ></LI
5634 ></UL
5635 ><P
5636 >               This parameter is only used modify existing file shares definitions.  To modify 
5637                 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
5638                 </P
5639 ><P
5640 >               See also <A
5641 HREF="#ADDSHARECOMMAND"
5642 ><TT
5643 CLASS="PARAMETER"
5644 ><I
5645 >add share
5646                 command</I
5647 ></TT
5648 ></A
5649 >, <A
5650 HREF="#DELETESHARECOMMAND"
5651 ><TT
5652 CLASS="PARAMETER"
5653 ><I
5654 >delete 
5655                 share command</I
5656 ></TT
5657 ></A
5658 >.
5659                 </P
5660 ><P
5661 >Default: <EM
5662 >none</EM
5663 ></P
5664 ><P
5665 >Example: <B
5666 CLASS="COMMAND"
5667 >change share command = /usr/local/bin/addshare</B
5668 ></P
5669 ></DD
5670 ><DT
5671 ><A
5672 NAME="COMMENT"
5673 ></A
5674 >comment (S)</DT
5675 ><DD
5676 ><P
5677 >This is a text field that is seen next to a share 
5678                 when a client does a queries the server, either via the network 
5679                 neighborhood or via <B
5680 CLASS="COMMAND"
5681 >net view</B
5682 > to list what shares 
5683                 are available.</P
5684 ><P
5685 >If you want to set the string that is displayed next to the 
5686                 machine name then see the <A
5687 HREF="#SERVERSTRING"
5688 ><TT
5689 CLASS="PARAMETER"
5690 ><I
5691 >               server string</I
5692 ></TT
5693 ></A
5694 > parameter.</P
5695 ><P
5696 >Default: <EM
5697 >No comment string</EM
5698 ></P
5699 ><P
5700 >Example: <B
5701 CLASS="COMMAND"
5702 >comment = Fred's Files</B
5703 ></P
5704 ></DD
5705 ><DT
5706 ><A
5707 NAME="CONFIGFILE"
5708 ></A
5709 >config file (G)</DT
5710 ><DD
5711 ><P
5712 >This allows you to override the config file 
5713                 to use, instead of the default (usually <TT
5714 CLASS="FILENAME"
5715 >smb.conf</TT
5716 >). 
5717                 There is a chicken and egg problem here as this option is set 
5718                 in the config file!</P
5719 ><P
5720 >For this reason, if the name of the config file has changed 
5721                 when the parameters are loaded then it will reload them from 
5722                 the new config file.</P
5723 ><P
5724 >This option takes the usual substitutions, which can 
5725                 be very useful.</P
5726 ><P
5727 >If the config file doesn't exist then it won't be loaded 
5728                 (allowing you to special case the config files of just a few 
5729                 clients).</P
5730 ><P
5731 >Example: <B
5732 CLASS="COMMAND"
5733 >config file = /usr/local/samba/lib/smb.conf.%m
5734                 </B
5735 ></P
5736 ></DD
5737 ><DT
5738 ><A
5739 NAME="COPY"
5740 ></A
5741 >copy (S)</DT
5742 ><DD
5743 ><P
5744 >This parameter allows you to "clone" service 
5745                 entries. The specified service is simply duplicated under the 
5746                 current service's name. Any parameters specified in the current 
5747                 section will override those in the section being copied.</P
5748 ><P
5749 >This feature lets you set up a 'template' service and 
5750                 create similar services easily. Note that the service being 
5751                 copied must occur earlier in the configuration file than the 
5752                 service doing the copying.</P
5753 ><P
5754 >Default: <EM
5755 >no value</EM
5756 ></P
5757 ><P
5758 >Example: <B
5759 CLASS="COMMAND"
5760 >copy = otherservice</B
5761 ></P
5762 ></DD
5763 ><DT
5764 ><A
5765 NAME="CREATEMASK"
5766 ></A
5767 >create mask (S)</DT
5768 ><DD
5769 ><P
5770 >A synonym for this parameter is 
5771                 <A
5772 HREF="#CREATEMODE"
5773 ><TT
5774 CLASS="PARAMETER"
5775 ><I
5776 >create mode</I
5777 ></TT
5778 >
5779                 </A
5780 >.</P
5781 ><P
5782 >When a file is created, the necessary permissions are 
5783                 calculated according to the mapping from DOS modes to UNIX 
5784                 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed 
5785                 with this parameter. This parameter may be thought of as a bit-wise 
5786                 MASK for the UNIX modes of a file. Any bit <EM
5787 >not</EM
5788
5789                 set here will be removed from the modes set on a file when it is 
5790                 created.</P
5791 ><P
5792 >The default value of this parameter removes the 
5793                 'group' and 'other' write and execute bits from the UNIX modes.</P
5794 ><P
5795 >Following this Samba will bit-wise 'OR' the UNIX mode created 
5796                 from this parameter with the value of the <A
5797 HREF="#FORCECREATEMODE"
5798 ><TT
5799 CLASS="PARAMETER"
5800 ><I
5801 >force create mode</I
5802 ></TT
5803 ></A
5804 >
5805                 parameter which is set to 000 by default.</P
5806 ><P
5807 >This parameter does not affect directory modes. See the 
5808                 parameter <A
5809 HREF="#DIRECTORYMODE"
5810 ><TT
5811 CLASS="PARAMETER"
5812 ><I
5813 >directory mode
5814                 </I
5815 ></TT
5816 ></A
5817 > for details.</P
5818 ><P
5819 >See also the <A
5820 HREF="#FORCECREATEMODE"
5821 ><TT
5822 CLASS="PARAMETER"
5823 ><I
5824 >force 
5825                 create mode</I
5826 ></TT
5827 ></A
5828 > parameter for forcing particular mode 
5829                 bits to be set on created files. See also the <A
5830 HREF="#DIRECTORYMODE"
5831 >               <TT
5832 CLASS="PARAMETER"
5833 ><I
5834 >directory mode</I
5835 ></TT
5836 ></A
5837 > parameter for masking 
5838                 mode bits on created directories.  See also the <A
5839 HREF="#INHERITPERMISSIONS"
5840 >               <TT
5841 CLASS="PARAMETER"
5842 ><I
5843 >inherit permissions</I
5844 ></TT
5845 ></A
5846 > parameter.</P
5847 ><P
5848 >Note that this parameter does not apply to permissions
5849                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
5850                 a mask on access control lists also, they need to set the <A
5851 HREF="#SECURITYMASK"
5852 ><TT
5853 CLASS="PARAMETER"
5854 ><I
5855 >security mask</I
5856 ></TT
5857 ></A
5858 >.</P
5859 ><P
5860 >Default: <B
5861 CLASS="COMMAND"
5862 >create mask = 0744</B
5863 ></P
5864 ><P
5865 >Example: <B
5866 CLASS="COMMAND"
5867 >create mask = 0775</B
5868 ></P
5869 ></DD
5870 ><DT
5871 ><A
5872 NAME="CREATEMODE"
5873 ></A
5874 >create mode (S)</DT
5875 ><DD
5876 ><P
5877 >This is a synonym for <A
5878 HREF="#CREATEMASK"
5879 ><TT
5880 CLASS="PARAMETER"
5881 ><I
5882 >               create mask</I
5883 ></TT
5884 ></A
5885 >.</P
5886 ></DD
5887 ><DT
5888 ><A
5889 NAME="CSCPOLICY"
5890 ></A
5891 >csc policy (S)</DT
5892 ><DD
5893 ><P
5894 >This stands for <EM
5895 >client-side caching 
5896                 policy</EM
5897 >, and specifies how clients capable of offline
5898                 caching will cache the files in the share. The valid values
5899                 are: manual, documents, programs, disable.</P
5900 ><P
5901 >These values correspond to those used on Windows
5902                 servers.</P
5903 ><P
5904 >For example, shares containing roaming profiles can have
5905                 offline caching disabled using <B
5906 CLASS="COMMAND"
5907 >csc policy = disable
5908                 </B
5909 >.</P
5910 ><P
5911 >Default: <B
5912 CLASS="COMMAND"
5913 >csc policy = manual</B
5914 ></P
5915 ><P
5916 >Example: <B
5917 CLASS="COMMAND"
5918 >csc policy = programs</B
5919 ></P
5920 ></DD
5921 ><DT
5922 ><A
5923 NAME="DEADTIME"
5924 ></A
5925 >deadtime (G)</DT
5926 ><DD
5927 ><P
5928 >The value of the parameter (a decimal integer) 
5929                 represents the number of minutes of inactivity before a connection 
5930                 is considered dead, and it is disconnected. The deadtime only takes 
5931                 effect if the number of open files is zero.</P
5932 ><P
5933 >This is useful to stop a server's resources being 
5934                 exhausted by a large number of inactive connections.</P
5935 ><P
5936 >Most clients have an auto-reconnect feature when a 
5937                 connection is broken so in most cases this parameter should be 
5938                 transparent to users.</P
5939 ><P
5940 >Using this parameter with a timeout of a few minutes 
5941                 is recommended for most systems.</P
5942 ><P
5943 >A deadtime of zero indicates that no auto-disconnection 
5944                 should be performed.</P
5945 ><P
5946 >Default: <B
5947 CLASS="COMMAND"
5948 >deadtime = 0</B
5949 ></P
5950 ><P
5951 >Example: <B
5952 CLASS="COMMAND"
5953 >deadtime = 15</B
5954 ></P
5955 ></DD
5956 ><DT
5957 ><A
5958 NAME="DEBUGHIRESTIMESTAMP"
5959 ></A
5960 >debug hires timestamp (G)</DT
5961 ><DD
5962 ><P
5963 >Sometimes the timestamps in the log messages 
5964                 are needed with a resolution of higher that seconds, this 
5965                 boolean parameter adds microsecond resolution to the timestamp 
5966                 message header when turned on.</P
5967 ><P
5968 >Note that the parameter <A
5969 HREF="#DEBUGTIMESTAMP"
5970 ><TT
5971 CLASS="PARAMETER"
5972 ><I
5973 >               debug timestamp</I
5974 ></TT
5975 ></A
5976 > must be on for this to have an 
5977                 effect.</P
5978 ><P
5979 >Default: <B
5980 CLASS="COMMAND"
5981 >debug hires timestamp = no</B
5982 ></P
5983 ></DD
5984 ><DT
5985 ><A
5986 NAME="DEBUGPID"
5987 ></A
5988 >debug pid (G)</DT
5989 ><DD
5990 ><P
5991 >When using only one log file for more then one 
5992                 forked <A
5993 HREF="smbd.8.html"
5994 TARGET="_top"
5995 >smbd</A
5996 >-process there may be hard to follow which process 
5997                 outputs which message. This boolean parameter is adds the process-id 
5998                 to the timestamp message headers in the logfile when turned on.</P
5999 ><P
6000 >Note that the parameter <A
6001 HREF="#DEBUGTIMESTAMP"
6002 ><TT
6003 CLASS="PARAMETER"
6004 ><I
6005 >               debug timestamp</I
6006 ></TT
6007 ></A
6008 > must be on for this to have an 
6009                 effect.</P
6010 ><P
6011 >Default: <B
6012 CLASS="COMMAND"
6013 >debug pid = no</B
6014 ></P
6015 ></DD
6016 ><DT
6017 ><A
6018 NAME="DEBUGTIMESTAMP"
6019 ></A
6020 >debug timestamp (G)</DT
6021 ><DD
6022 ><P
6023 >Samba 2.2 debug log messages are timestamped 
6024                 by default. If you are running at a high <A
6025 HREF="#DEBUGLEVEL"
6026 >               <TT
6027 CLASS="PARAMETER"
6028 ><I
6029 >debug level</I
6030 ></TT
6031 ></A
6032 > these timestamps
6033                 can be distracting. This boolean parameter allows timestamping 
6034                 to be turned off.</P
6035 ><P
6036 >Default: <B
6037 CLASS="COMMAND"
6038 >debug timestamp = yes</B
6039 ></P
6040 ></DD
6041 ><DT
6042 ><A
6043 NAME="DEBUGUID"
6044 ></A
6045 >debug uid (G)</DT
6046 ><DD
6047 ><P
6048 >Samba is sometimes run as root and sometime 
6049                 run as the connected user, this boolean parameter inserts the 
6050                 current euid, egid, uid and gid to the timestamp message headers 
6051                 in the log file if turned on.</P
6052 ><P
6053 >Note that the parameter <A
6054 HREF="#DEBUGTIMESTAMP"
6055 ><TT
6056 CLASS="PARAMETER"
6057 ><I
6058 >               debug timestamp</I
6059 ></TT
6060 ></A
6061 > must be on for this to have an 
6062                 effect.</P
6063 ><P
6064 >Default: <B
6065 CLASS="COMMAND"
6066 >debug uid = no</B
6067 ></P
6068 ></DD
6069 ><DT
6070 ><A
6071 NAME="DEBUGLEVEL"
6072 ></A
6073 >debuglevel (G)</DT
6074 ><DD
6075 ><P
6076 >Synonym for <A
6077 HREF="#LOGLEVEL"
6078 ><TT
6079 CLASS="PARAMETER"
6080 ><I
6081 >               log level</I
6082 ></TT
6083 ></A
6084 >.</P
6085 ></DD
6086 ><DT
6087 ><A
6088 NAME="DEFAULT"
6089 ></A
6090 >default (G)</DT
6091 ><DD
6092 ><P
6093 >A synonym for <A
6094 HREF="#DEFAULTSERVICE"
6095 ><TT
6096 CLASS="PARAMETER"
6097 ><I
6098 >               default service</I
6099 ></TT
6100 ></A
6101 >.</P
6102 ></DD
6103 ><DT
6104 ><A
6105 NAME="DEFAULTCASE"
6106 ></A
6107 >default case (S)</DT
6108 ><DD
6109 ><P
6110 >See the section on <A
6111 HREF="#AEN203"
6112 >               NAME MANGLING</A
6113 >. Also note the <A
6114 HREF="#SHORTPRESERVECASE"
6115 >               <TT
6116 CLASS="PARAMETER"
6117 ><I
6118 >short preserve case</I
6119 ></TT
6120 ></A
6121 > parameter.</P
6122 ><P
6123 >Default: <B
6124 CLASS="COMMAND"
6125 >default case = lower</B
6126 ></P
6127 ></DD
6128 ><DT
6129 ><A
6130 NAME="DEFAULTDEVMODE"
6131 ></A
6132 >default devmode (S)</DT
6133 ><DD
6134 ><P
6135 >This parameter is only applicable to <A
6136 HREF="#PRINTOK"
6137 >printable</A
6138 > services.  When smbd is serving
6139                 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
6140                 server has a Device Mode which defines things such as paper size and
6141                 orientation and duplex settings.  The device mode can only correctly be
6142                 generated by the printer driver itself (which can only be executed on a
6143                 Win32 platform).  Because smbd is unable to execute the driver code
6144                 to generate the device mode, the default behavior is to set this field
6145                 to NULL.
6146                 </P
6147 ><P
6148 >Most problems with serving printer drivers to Windows NT/2k/XP clients
6149                 can be traced to a problem with the generated device mode.  Certain drivers
6150                 will do things such as crashing the client's Explorer.exe with a NULL devmode.
6151                 However, other printer drivers can cause the client's spooler service
6152                 (spoolsv.exe) to die if the devmode was not created by the driver itself
6153                 (i.e. smbd generates a default devmode).
6154                 </P
6155 ><P
6156 >This parameter should be used with care and tested with the printer
6157                 driver in question.  It is better to leave the device mode to NULL
6158                 and let the Windows client set the correct values.  Because drivers do not
6159                 do this all the time, setting <B
6160 CLASS="COMMAND"
6161 >default devmode = yes</B
6162 >
6163                 will instruct smbd to generate a default one.
6164                 </P
6165 ><P
6166 >For more information on Windows NT/2k printing and Device Modes,
6167                 see the <A
6168 HREF="http://msdn.microsoft.com/"
6169 TARGET="_top"
6170 >MSDN documentation</A
6171 >.
6172                 </P
6173 ><P
6174 >Default: <B
6175 CLASS="COMMAND"
6176 >default devmode = no</B
6177 ></P
6178 ></DD
6179 ><DT
6180 ><A
6181 NAME="DEFAULTSERVICE"
6182 ></A
6183 >default service (G)</DT
6184 ><DD
6185 ><P
6186 >This parameter specifies the name of a service
6187                 which will be connected to if the service actually requested cannot
6188                 be found. Note that the square brackets are <EM
6189 >NOT</EM
6190 >
6191                 given in the parameter value (see example below).</P
6192 ><P
6193 >There is no default value for this parameter. If this 
6194                 parameter is not given, attempting to connect to a nonexistent 
6195                 service results in an error.</P
6196 ><P
6197 >Typically the default service would be a <A
6198 HREF="#GUESTOK"
6199 >               <TT
6200 CLASS="PARAMETER"
6201 ><I
6202 >guest ok</I
6203 ></TT
6204 ></A
6205 >, <A
6206 HREF="#READONLY"
6207 >               <TT
6208 CLASS="PARAMETER"
6209 ><I
6210 >read-only</I
6211 ></TT
6212 ></A
6213 > service.</P
6214 ><P
6215 >Also note that the apparent service name will be changed 
6216                 to equal that of the requested service, this is very useful as it 
6217                 allows you to use macros like <TT
6218 CLASS="PARAMETER"
6219 ><I
6220 >%S</I
6221 ></TT
6222 > to make 
6223                 a wildcard service.</P
6224 ><P
6225 >Note also that any "_" characters in the name of the service 
6226                 used in the default service will get mapped to a "/". This allows for
6227                 interesting things.</P
6228 ><P
6229 >Example:</P
6230 ><P
6231 ><TABLE
6232 BORDER="0"
6233 BGCOLOR="#E0E0E0"
6234 WIDTH="90%"
6235 ><TR
6236 ><TD
6237 ><PRE
6238 CLASS="PROGRAMLISTING"
6239 >[global]
6240         default service = pub
6241         
6242 [pub]
6243         path = /%S
6244                 </PRE
6245 ></TD
6246 ></TR
6247 ></TABLE
6248 ></P
6249 ></DD
6250 ><DT
6251 ><A
6252 NAME="DELETEPRINTERCOMMAND"
6253 ></A
6254 >delete printer command (G)</DT
6255 ><DD
6256 ><P
6257 >With the introduction of MS-RPC based printer
6258                 support for Windows NT/2000 clients in Samba 2.2, it is now 
6259                 possible to delete printer at run time by issuing the 
6260                 DeletePrinter() RPC call.</P
6261 ><P
6262 >For a Samba host this means that the printer must be 
6263                 physically deleted from underlying printing system.  The <TT
6264 CLASS="PARAMETER"
6265 ><I
6266 >               deleteprinter command</I
6267 ></TT
6268 > defines a script to be run which 
6269                 will perform the necessary operations for removing the printer
6270                 from the print system and from <TT
6271 CLASS="FILENAME"
6272 >smb.conf</TT
6273 >.
6274                 </P
6275 ><P
6276 >The <TT
6277 CLASS="PARAMETER"
6278 ><I
6279 >delete printer command</I
6280 ></TT
6281 > is 
6282                 automatically called with only one parameter: <TT
6283 CLASS="PARAMETER"
6284 ><I
6285 >               "printer name"</I
6286 ></TT
6287 >.</P
6288 ><P
6289 >Once the <TT
6290 CLASS="PARAMETER"
6291 ><I
6292 >delete printer command</I
6293 ></TT
6294 > has 
6295                 been executed, <B
6296 CLASS="COMMAND"
6297 >smbd</B
6298 > will reparse the <TT
6299 CLASS="FILENAME"
6300 >               smb.conf</TT
6301 > to associated printer no longer exists.  
6302                 If the sharename is still valid, then <B
6303 CLASS="COMMAND"
6304 >smbd
6305                 </B
6306 > will return an ACCESS_DENIED error to the client.</P
6307 ><P
6308 >See also <A
6309 HREF="#ADDPRINTERCOMMAND"
6310 ><TT
6311 CLASS="PARAMETER"
6312 ><I
6313 >               add printer command</I
6314 ></TT
6315 ></A
6316 >, <A
6317 HREF="#PRINTING"
6318 ><TT
6319 CLASS="PARAMETER"
6320 ><I
6321 >printing</I
6322 ></TT
6323 ></A
6324 >,
6325                 <A
6326 HREF="#SHOWADDPRINTERWIZARD"
6327 ><TT
6328 CLASS="PARAMETER"
6329 ><I
6330 >show add
6331                 printer wizard</I
6332 ></TT
6333 ></A
6334 ></P
6335 ><P
6336 >Default: <EM
6337 >none</EM
6338 ></P
6339 ><P
6340 >Example: <B
6341 CLASS="COMMAND"
6342 >deleteprinter command = /usr/bin/removeprinter
6343                 </B
6344 ></P
6345 ></DD
6346 ><DT
6347 ><A
6348 NAME="DELETEREADONLY"
6349 ></A
6350 >delete readonly (S)</DT
6351 ><DD
6352 ><P
6353 >This parameter allows readonly files to be deleted.  
6354                 This is not normal DOS semantics, but is allowed by UNIX.</P
6355 ><P
6356 >This option may be useful for running applications such 
6357                 as rcs, where UNIX file ownership prevents changing file 
6358                 permissions, and DOS semantics prevent deletion of a read only file.</P
6359 ><P
6360 >Default: <B
6361 CLASS="COMMAND"
6362 >delete readonly = no</B
6363 ></P
6364 ></DD
6365 ><DT
6366 ><A
6367 NAME="DELETESHARECOMMAND"
6368 ></A
6369 >delete share command (G)</DT
6370 ><DD
6371 ><P
6372 >Samba 2.2.0 introduced the ability to dynamically 
6373                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6374                 <TT
6375 CLASS="PARAMETER"
6376 ><I
6377 >delete share command</I
6378 ></TT
6379 > is used to define an 
6380                 external program or script which will remove an existing service 
6381                 definition from <TT
6382 CLASS="FILENAME"
6383 >smb.conf</TT
6384 >.  In order to successfully 
6385                 execute the <TT
6386 CLASS="PARAMETER"
6387 ><I
6388 >delete share command</I
6389 ></TT
6390 >, <B
6391 CLASS="COMMAND"
6392 >smbd</B
6393 >
6394                 requires that the administrator be connected using a root account (i.e. 
6395                 uid == 0).
6396                 </P
6397 ><P
6398 >               When executed, <B
6399 CLASS="COMMAND"
6400 >smbd</B
6401 > will automatically invoke the 
6402                 <TT
6403 CLASS="PARAMETER"
6404 ><I
6405 >delete share command</I
6406 ></TT
6407 > with two parameters.
6408                 </P
6409 ><P
6410 ></P
6411 ><UL
6412 ><LI
6413 ><P
6414 ><TT
6415 CLASS="PARAMETER"
6416 ><I
6417 >configFile</I
6418 ></TT
6419 > - the location 
6420                         of the global <TT
6421 CLASS="FILENAME"
6422 >smb.conf</TT
6423 > file. 
6424                         </P
6425 ></LI
6426 ><LI
6427 ><P
6428 ><TT
6429 CLASS="PARAMETER"
6430 ><I
6431 >shareName</I
6432 ></TT
6433 > - the name of 
6434                         the existing service.
6435                         </P
6436 ></LI
6437 ></UL
6438 ><P
6439 >               This parameter is only used to remove file shares.  To delete printer shares, 
6440                 see the <A
6441 HREF="#DELETEPRINTERCOMMAND"
6442 ><TT
6443 CLASS="PARAMETER"
6444 ><I
6445 >delete printer 
6446                 command</I
6447 ></TT
6448 ></A
6449 >.
6450                 </P
6451 ><P
6452 >               See also <A
6453 HREF="#ADDSHARECOMMAND"
6454 ><TT
6455 CLASS="PARAMETER"
6456 ><I
6457 >add share
6458                 command</I
6459 ></TT
6460 ></A
6461 >, <A
6462 HREF="#CHANGESHARECOMMAND"
6463 ><TT
6464 CLASS="PARAMETER"
6465 ><I
6466 >change 
6467                 share command</I
6468 ></TT
6469 ></A
6470 >.
6471                 </P
6472 ><P
6473 >Default: <EM
6474 >none</EM
6475 ></P
6476 ><P
6477 >Example: <B
6478 CLASS="COMMAND"
6479 >delete share command = /usr/local/bin/delshare</B
6480 ></P
6481 ></DD
6482 ><DT
6483 ><A
6484 NAME="DELETEUSERSCRIPT"
6485 ></A
6486 >delete user script (G)</DT
6487 ><DD
6488 ><P
6489 >This is the full pathname to a script that will 
6490                 be run by <A
6491 HREF="smbd.8.html"
6492 TARGET="_top"
6493 ><B
6494 CLASS="COMMAND"
6495 >smbd(8)</B
6496 ></A
6497 >
6498                 when managing user's with remote RPC (NT) tools.
6499                 </P
6500 ><P
6501 >This script is called when a remote client removes a user
6502                 from the server, normally using 'User Manager for Domains' or
6503                 <B
6504 CLASS="COMMAND"
6505 >rpcclient</B
6506 >.
6507                 </P
6508 ><P
6509 >This script should delete the given UNIX username. 
6510                 </P
6511 ><P
6512 >Default: <B
6513 CLASS="COMMAND"
6514 >delete user script = &#60;empty string&#62;
6515                 </B
6516 ></P
6517 ><P
6518 >Example: <B
6519 CLASS="COMMAND"
6520 >delete user script = /usr/local/samba/bin/del_user 
6521                 %u</B
6522 ></P
6523 ></DD
6524 ><DT
6525 ><A
6526 NAME="DELETEVETOFILES"
6527 ></A
6528 >delete veto files (S)</DT
6529 ><DD
6530 ><P
6531 >This option is used when Samba is attempting to 
6532                 delete a directory that contains one or more vetoed directories 
6533                 (see the <A
6534 HREF="#VETOFILES"
6535 ><TT
6536 CLASS="PARAMETER"
6537 ><I
6538 >veto files</I
6539 ></TT
6540 ></A
6541 >
6542                 option).  If this option is set to <TT
6543 CLASS="CONSTANT"
6544 >false</TT
6545 > (the default) then if a vetoed 
6546                 directory contains any non-vetoed files or directories then the 
6547                 directory delete will fail. This is usually what you want.</P
6548 ><P
6549 >If this option is set to <TT
6550 CLASS="CONSTANT"
6551 >true</TT
6552 >, then Samba 
6553                 will attempt to recursively delete any files and directories within 
6554                 the vetoed directory. This can be useful for integration with file 
6555                 serving systems such as NetAtalk which create meta-files within 
6556                 directories you might normally veto DOS/Windows users from seeing 
6557                 (e.g. <TT
6558 CLASS="FILENAME"
6559 >.AppleDouble</TT
6560 >)</P
6561 ><P
6562 >Setting <B
6563 CLASS="COMMAND"
6564 >delete veto files = yes</B
6565 > allows these 
6566                 directories to be  transparently deleted when the parent directory 
6567                 is deleted (so long as the user has permissions to do so).</P
6568 ><P
6569 >See also the <A
6570 HREF="#VETOFILES"
6571 ><TT
6572 CLASS="PARAMETER"
6573 ><I
6574 >veto 
6575                 files</I
6576 ></TT
6577 ></A
6578 > parameter.</P
6579 ><P
6580 >Default: <B
6581 CLASS="COMMAND"
6582 >delete veto files = no</B
6583 ></P
6584 ></DD
6585 ><DT
6586 ><A
6587 NAME="DENYHOSTS"
6588 ></A
6589 >deny hosts (S)</DT
6590 ><DD
6591 ><P
6592 >Synonym for <A
6593 HREF="#HOSTSDENY"
6594 ><TT
6595 CLASS="PARAMETER"
6596 ><I
6597 >hosts 
6598                 deny</I
6599 ></TT
6600 ></A
6601 >.</P
6602 ></DD
6603 ><DT
6604 ><A
6605 NAME="DFREECOMMAND"
6606 ></A
6607 >dfree command (G)</DT
6608 ><DD
6609 ><P
6610 >The <TT
6611 CLASS="PARAMETER"
6612 ><I
6613 >dfree command</I
6614 ></TT
6615 > setting should 
6616                 only be used on systems where a problem occurs with the internal 
6617                 disk space calculations. This has been known to happen with Ultrix, 
6618                 but may occur with other operating systems. The symptom that was 
6619                 seen was an error of "Abort Retry Ignore" at the end of each 
6620                 directory listing.</P
6621 ><P
6622 >This setting allows the replacement of the internal routines to
6623                 calculate the total disk space and amount available with an external
6624                 routine. The example below gives a possible script that might fulfill
6625                 this function.</P
6626 ><P
6627 >The external program will be passed a single parameter indicating 
6628                 a directory in the filesystem being queried. This will typically consist
6629                 of the string <TT
6630 CLASS="FILENAME"
6631 >./</TT
6632 >. The script should return two 
6633                 integers in ASCII. The first should be the total disk space in blocks, 
6634                 and the second should be the number of available blocks. An optional 
6635                 third return value can give the block size in bytes. The default 
6636                 blocksize is 1024 bytes.</P
6637 ><P
6638 >Note: Your script should <EM
6639 >NOT</EM
6640 > be setuid or 
6641                 setgid and should be owned by (and writeable only by) root!</P
6642 ><P
6643 >Default: <EM
6644 >By default internal routines for 
6645                 determining the disk capacity and remaining space will be used.
6646                 </EM
6647 ></P
6648 ><P
6649 >Example: <B
6650 CLASS="COMMAND"
6651 >dfree command = /usr/local/samba/bin/dfree
6652                 </B
6653 ></P
6654 ><P
6655 >Where the script dfree (which must be made executable) could be:</P
6656 ><P
6657 ><TABLE
6658 BORDER="0"
6659 BGCOLOR="#E0E0E0"
6660 WIDTH="90%"
6661 ><TR
6662 ><TD
6663 ><PRE
6664 CLASS="PROGRAMLISTING"
6665
6666                 #!/bin/sh
6667                 df $1 | tail -1 | awk '{print $2" "$4}'
6668                 </PRE
6669 ></TD
6670 ></TR
6671 ></TABLE
6672 ></P
6673 ><P
6674 >or perhaps (on Sys V based systems):</P
6675 ><P
6676 ><TABLE
6677 BORDER="0"
6678 BGCOLOR="#E0E0E0"
6679 WIDTH="90%"
6680 ><TR
6681 ><TD
6682 ><PRE
6683 CLASS="PROGRAMLISTING"
6684
6685                 #!/bin/sh
6686                 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
6687                 </PRE
6688 ></TD
6689 ></TR
6690 ></TABLE
6691 ></P
6692 ><P
6693 >Note that you may have to replace the command names 
6694                 with full path names on some systems.</P
6695 ></DD
6696 ><DT
6697 ><A
6698 NAME="DIRECTORY"
6699 ></A
6700 >directory (S)</DT
6701 ><DD
6702 ><P
6703 >Synonym for <A
6704 HREF="#PATH"
6705 ><TT
6706 CLASS="PARAMETER"
6707 ><I
6708 >path
6709                 </I
6710 ></TT
6711 ></A
6712 >.</P
6713 ></DD
6714 ><DT
6715 ><A
6716 NAME="DIRECTORYMASK"
6717 ></A
6718 >directory mask (S)</DT
6719 ><DD
6720 ><P
6721 >This parameter is the octal modes which are 
6722                 used when converting DOS modes to UNIX modes when creating UNIX 
6723                 directories.</P
6724 ><P
6725 >When a directory is created, the necessary permissions are 
6726                 calculated according to the mapping from DOS modes to UNIX permissions, 
6727                 and the resulting UNIX mode is then bit-wise 'AND'ed with this 
6728                 parameter. This parameter may be thought of as a bit-wise MASK for 
6729                 the UNIX modes of a directory. Any bit <EM
6730 >not</EM
6731 > set 
6732                 here will be removed from the modes set on a directory when it is 
6733                 created.</P
6734 ><P
6735 >The default value of this parameter removes the 'group' 
6736                 and 'other' write bits from the UNIX mode, allowing only the 
6737                 user who owns the directory to modify it.</P
6738 ><P
6739 >Following this Samba will bit-wise 'OR' the UNIX mode 
6740                 created from this parameter with the value of the <A
6741 HREF="#FORCEDIRECTORYMODE"
6742 ><TT
6743 CLASS="PARAMETER"
6744 ><I
6745 >force directory mode
6746                 </I
6747 ></TT
6748 ></A
6749 > parameter. This parameter is set to 000 by 
6750                 default (i.e. no extra mode bits are added).</P
6751 ><P
6752 >Note that this parameter does not apply to permissions
6753                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
6754                 a mask on access control lists also, they need to set the <A
6755 HREF="#DIRECTORYSECURITYMASK"
6756 ><TT
6757 CLASS="PARAMETER"
6758 ><I
6759 >directory security mask</I
6760 ></TT
6761 ></A
6762 >.</P
6763 ><P
6764 >See the <A
6765 HREF="#FORCEDIRECTORYMODE"
6766 ><TT
6767 CLASS="PARAMETER"
6768 ><I
6769 >force 
6770                 directory mode</I
6771 ></TT
6772 ></A
6773 > parameter to cause particular mode 
6774                 bits to always be set on created directories.</P
6775 ><P
6776 >See also the <A
6777 HREF="#CREATEMODE"
6778 ><TT
6779 CLASS="PARAMETER"
6780 ><I
6781 >create mode
6782                 </I
6783 ></TT
6784 ></A
6785 > parameter for masking mode bits on created files, 
6786                 and the <A
6787 HREF="#DIRECTORYSECURITYMASK"
6788 ><TT
6789 CLASS="PARAMETER"
6790 ><I
6791 >directory 
6792                 security mask</I
6793 ></TT
6794 ></A
6795 > parameter.</P
6796 ><P
6797 >Also refer to the <A
6798 HREF="#INHERITPERMISSIONS"
6799 ><TT
6800 CLASS="PARAMETER"
6801 ><I
6802 >               inherit permissions</I
6803 ></TT
6804 ></A
6805 > parameter.</P
6806 ><P
6807 >Default: <B
6808 CLASS="COMMAND"
6809 >directory mask = 0755</B
6810 ></P
6811 ><P
6812 >Example: <B
6813 CLASS="COMMAND"
6814 >directory mask = 0775</B
6815 ></P
6816 ></DD
6817 ><DT
6818 ><A
6819 NAME="DIRECTORYMODE"
6820 ></A
6821 >directory mode (S)</DT
6822 ><DD
6823 ><P
6824 >Synonym for <A
6825 HREF="#DIRECTORYMASK"
6826 ><TT
6827 CLASS="PARAMETER"
6828 ><I
6829 >               directory mask</I
6830 ></TT
6831 ></A
6832 ></P
6833 ></DD
6834 ><DT
6835 ><A
6836 NAME="DIRECTORYSECURITYMASK"
6837 ></A
6838 >directory security mask (S)</DT
6839 ><DD
6840 ><P
6841 >This parameter controls what UNIX permission bits 
6842                 can be modified when a Windows NT client is manipulating the UNIX 
6843                 permission on a directory using the native NT security dialog 
6844                 box.</P
6845 ><P
6846 >This parameter is applied as a mask (AND'ed with) to 
6847                 the changed permission bits, thus preventing any bits not in 
6848                 this mask from being modified. Essentially, zero bits in this 
6849                 mask may be treated as a set of bits the user is not allowed 
6850                 to change.</P
6851 ><P
6852 >If not set explicitly this parameter is set to 0777
6853                 meaning a user is allowed to modify all the user/group/world
6854                 permissions on a directory.</P
6855 ><P
6856 ><EM
6857 >Note</EM
6858 > that users who can access the 
6859                 Samba server through other means can easily bypass this restriction, 
6860                 so it is primarily useful for standalone "appliance" systems.  
6861                 Administrators of most normal systems will probably want to leave
6862                 it as the default of <TT
6863 CLASS="CONSTANT"
6864 >0777</TT
6865 >.</P
6866 ><P
6867 >See also the <A
6868 HREF="#FORCEDIRECTORYSECURITYMODE"
6869 ><TT
6870 CLASS="PARAMETER"
6871 ><I
6872 >               force directory security mode</I
6873 ></TT
6874 ></A
6875 >, <A
6876 HREF="#SECURITYMASK"
6877 ><TT
6878 CLASS="PARAMETER"
6879 ><I
6880 >security mask</I
6881 ></TT
6882 ></A
6883 >, 
6884                 <A
6885 HREF="#FORCESECURITYMODE"
6886 ><TT
6887 CLASS="PARAMETER"
6888 ><I
6889 >force security mode
6890                 </I
6891 ></TT
6892 ></A
6893 > parameters.</P
6894 ><P
6895 >Default: <B
6896 CLASS="COMMAND"
6897 >directory security mask = 0777</B
6898 ></P
6899 ><P
6900 >Example: <B
6901 CLASS="COMMAND"
6902 >directory security mask = 0700</B
6903 ></P
6904 ></DD
6905 ><DT
6906 ><A
6907 NAME="DISABLESPOOLSS"
6908 ></A
6909 >disable spoolss (G)</DT
6910 ><DD
6911 ><P
6912 >Enabling this parameter will disables Samba's support
6913                 for the SPOOLSS set of MS-RPC's and will yield identical behavior
6914                 as Samba 2.0.x.  Windows NT/2000 clients will downgrade to using
6915                 Lanman style printing commands. Windows 9x/ME will be uneffected by
6916                 the parameter. However, this will also disable the ability to upload
6917                 printer drivers to a Samba server via the Windows NT Add Printer
6918                 Wizard or by using the NT printer properties dialog window.  It will
6919                 also disable the capability of Windows NT/2000 clients to download
6920                 print drivers from the Samba host upon demand.
6921                 <EM
6922 >Be very careful about enabling this parameter.</EM
6923 >
6924                 </P
6925 ><P
6926 >See also <A
6927 HREF="#USECLIENTDRIVER"
6928 >use client driver</A
6929 >
6930                 </P
6931 ><P
6932 >Default : <B
6933 CLASS="COMMAND"
6934 >disable spoolss = no</B
6935 ></P
6936 ></DD
6937 ><DT
6938 ><A
6939 NAME="DNSPROXY"
6940 ></A
6941 >dns proxy (G)</DT
6942 ><DD
6943 ><P
6944 >Specifies that <A
6945 HREF="nmbd.8.html"
6946 TARGET="_top"
6947 >nmbd(8)</A
6948
6949                 when acting as a WINS server and finding that a NetBIOS name has not 
6950                 been registered, should treat the NetBIOS name word-for-word as a DNS 
6951                 name and do a lookup with the DNS server for that name on behalf of 
6952                 the name-querying client.</P
6953 ><P
6954 >Note that the maximum length for a NetBIOS name is 15 
6955                 characters, so the DNS name (or DNS alias) can likewise only be 
6956                 15 characters, maximum.</P
6957 ><P
6958 ><B
6959 CLASS="COMMAND"
6960 >nmbd</B
6961 > spawns a second copy of itself to do the
6962                 DNS name lookup requests, as doing a name lookup is a blocking 
6963                 action.</P
6964 ><P
6965 >See also the parameter <A
6966 HREF="#WINSSUPPORT"
6967 ><TT
6968 CLASS="PARAMETER"
6969 ><I
6970 >               wins support</I
6971 ></TT
6972 ></A
6973 >.</P
6974 ><P
6975 >Default: <B
6976 CLASS="COMMAND"
6977 >dns proxy = yes</B
6978 ></P
6979 ></DD
6980 ><DT
6981 ><A
6982 NAME="DOMAINADMINGROUP"
6983 ></A
6984 >domain admin group (G)</DT
6985 ><DD
6986 ><P
6987 >This parameter is intended as a temporary solution
6988                 to enable users to be a member of the "Domain Admins" group when 
6989                 a Samba host is acting as a PDC.  A complete solution will be provided
6990                 by a system for mapping Windows NT/2000 groups onto UNIX groups.
6991                 Please note that this parameter has a somewhat confusing name.  It 
6992                 accepts a list of usernames and of group names in standard 
6993                 <TT
6994 CLASS="FILENAME"
6995 >smb.conf</TT
6996 >       notation.
6997                 </P
6998 ><P
6999 >See also <A
7000 HREF="#DOMAINGUESTGROUP"
7001 ><TT
7002 CLASS="PARAMETER"
7003 ><I
7004 >domain
7005                 guest group</I
7006 ></TT
7007 ></A
7008 >, <A
7009 HREF="#DOMAINLOGONS"
7010 ><TT
7011 CLASS="PARAMETER"
7012 ><I
7013 >domain
7014                 logons</I
7015 ></TT
7016 ></A
7017 >
7018                 </P
7019 ><P
7020 >Default: <EM
7021 >no domain administrators</EM
7022 ></P
7023 ><P
7024 >Example: <B
7025 CLASS="COMMAND"
7026 >domain admin group = root @wheel</B
7027 ></P
7028 ></DD
7029 ><DT
7030 ><A
7031 NAME="DOMAINGUESTGROUP"
7032 ></A
7033 >domain guest group (G)</DT
7034 ><DD
7035 ><P
7036 >This parameter is intended as a temporary solution
7037                 to enable users to be a member of the "Domain Guests" group when 
7038                 a Samba host is acting as a PDC.  A complete solution will be provided
7039                 by a system for mapping Windows NT/2000 groups onto UNIX groups.
7040                 Please note that this parameter has a somewhat confusing name.  It 
7041                 accepts a list of usernames and of group names in standard 
7042                 <TT
7043 CLASS="FILENAME"
7044 >smb.conf</TT
7045 >       notation.
7046                 </P
7047 ><P
7048 >See also <A
7049 HREF="#DOMAINADMINGROUP"
7050 ><TT
7051 CLASS="PARAMETER"
7052 ><I
7053 >domain
7054                 admin group</I
7055 ></TT
7056 ></A
7057 >, <A
7058 HREF="#DOMAINLOGONS"
7059 ><TT
7060 CLASS="PARAMETER"
7061 ><I
7062 >domain
7063                 logons</I
7064 ></TT
7065 ></A
7066 >
7067                 </P
7068 ><P
7069 >Default: <EM
7070 >no domain guests</EM
7071 ></P
7072 ><P
7073 >Example: <B
7074 CLASS="COMMAND"
7075 >domain guest group = nobody @guest</B
7076 ></P
7077 ></DD
7078 ><DT
7079 ><A
7080 NAME="DOMAINLOGONS"
7081 ></A
7082 >domain logons (G)</DT
7083 ><DD
7084 ><P
7085 >If set to <TT
7086 CLASS="CONSTANT"
7087 >true</TT
7088 >, the Samba server will serve 
7089                 Windows 95/98 Domain logons for the <A
7090 HREF="#WORKGROUP"
7091 >               <TT
7092 CLASS="PARAMETER"
7093 ><I
7094 >workgroup</I
7095 ></TT
7096 ></A
7097 > it is in. Samba 2.2 also 
7098                 has limited capability to act as a domain controller for Windows 
7099                 NT 4 Domains.  For more details on setting up this feature see 
7100                 the Samba-PDC-HOWTO included in the <TT
7101 CLASS="FILENAME"
7102 >htmldocs/</TT
7103 >
7104                 directory shipped with the source code.</P
7105 ><P
7106 >Default: <B
7107 CLASS="COMMAND"
7108 >domain logons = no</B
7109 ></P
7110 ></DD
7111 ><DT
7112 ><A
7113 NAME="DOMAINMASTER"
7114 ></A
7115 >domain master (G)</DT
7116 ><DD
7117 ><P
7118 >Tell <A
7119 HREF="nmbd.8.html"
7120 TARGET="_top"
7121 ><B
7122 CLASS="COMMAND"
7123 >               nmbd(8)</B
7124 ></A
7125 > to enable WAN-wide browse list
7126                 collation. Setting this option causes <B
7127 CLASS="COMMAND"
7128 >nmbd</B
7129 > to
7130                 claim a special domain specific NetBIOS name that identifies 
7131                 it as a domain master browser for its given <A
7132 HREF="#WORKGROUP"
7133 >               <TT
7134 CLASS="PARAMETER"
7135 ><I
7136 >workgroup</I
7137 ></TT
7138 ></A
7139 >. Local master browsers 
7140                 in the same <TT
7141 CLASS="PARAMETER"
7142 ><I
7143 >workgroup</I
7144 ></TT
7145 > on broadcast-isolated 
7146                 subnets will give this <B
7147 CLASS="COMMAND"
7148 >nmbd</B
7149 > their local browse lists, 
7150                 and then ask <A
7151 HREF="smbd.8.html"
7152 TARGET="_top"
7153 ><B
7154 CLASS="COMMAND"
7155 >smbd(8)</B
7156 ></A
7157
7158                 for a complete copy of the browse list for the whole wide area 
7159                 network.  Browser clients will then contact their local master browser, 
7160                 and will receive the domain-wide browse list, instead of just the list 
7161                 for their broadcast-isolated subnet.</P
7162 ><P
7163 >Note that Windows NT Primary Domain Controllers expect to be 
7164                 able to claim this <TT
7165 CLASS="PARAMETER"
7166 ><I
7167 >workgroup</I
7168 ></TT
7169 > specific special 
7170                 NetBIOS name that identifies them as domain master browsers for 
7171                 that <TT
7172 CLASS="PARAMETER"
7173 ><I
7174 >workgroup</I
7175 ></TT
7176 > by default (i.e. there is no 
7177                 way to prevent a Windows NT PDC from attempting to do this). This 
7178                 means that if this parameter is set and <B
7179 CLASS="COMMAND"
7180 >nmbd</B
7181 > claims 
7182                 the special name for a <TT
7183 CLASS="PARAMETER"
7184 ><I
7185 >workgroup</I
7186 ></TT
7187 > before a Windows 
7188                 NT PDC is able to do so then cross subnet browsing will behave 
7189                 strangely and may fail.</P
7190 ><P
7191 >If <A
7192 HREF="#DOMAINLOGONS"
7193 ><B
7194 CLASS="COMMAND"
7195 >domain logons = yes</B
7196 >
7197                 </A
7198 >, then the default behavior is to enable the <TT
7199 CLASS="PARAMETER"
7200 ><I
7201 >domain 
7202                 master</I
7203 ></TT
7204 > parameter.  If <TT
7205 CLASS="PARAMETER"
7206 ><I
7207 >domain logons</I
7208 ></TT
7209 > is 
7210                 not enabled (the default setting), then neither will <TT
7211 CLASS="PARAMETER"
7212 ><I
7213 >domain 
7214                 master</I
7215 ></TT
7216 > be enabled by default.</P
7217 ><P
7218 >Default: <B
7219 CLASS="COMMAND"
7220 >domain master = auto</B
7221 ></P
7222 ></DD
7223 ><DT
7224 ><A
7225 NAME="DONTDESCEND"
7226 ></A
7227 >dont descend (S)</DT
7228 ><DD
7229 ><P
7230 >There are certain directories on some systems 
7231                 (e.g., the <TT
7232 CLASS="FILENAME"
7233 >/proc</TT
7234 > tree under Linux) that are either not 
7235                 of interest to clients or are infinitely deep (recursive). This 
7236                 parameter allows you to specify a comma-delimited list of directories 
7237                 that the server should always show as empty.</P
7238 ><P
7239 >Note that Samba can be very fussy about the exact format 
7240                 of the "dont descend" entries. For example you may need <TT
7241 CLASS="FILENAME"
7242 >               ./proc</TT
7243 > instead of just <TT
7244 CLASS="FILENAME"
7245 >/proc</TT
7246 >. 
7247                 Experimentation is the best policy :-)  </P
7248 ><P
7249 >Default: <EM
7250 >none (i.e., all directories are OK 
7251                 to descend)</EM
7252 ></P
7253 ><P
7254 >Example: <B
7255 CLASS="COMMAND"
7256 >dont descend = /proc,/dev</B
7257 ></P
7258 ></DD
7259 ><DT
7260 ><A
7261 NAME="DOSFILEMODE"
7262 ></A
7263 >dos filemode (S)</DT
7264 ><DD
7265 ><P
7266 > The default behavior in Samba is to provide 
7267                 UNIX-like behavior where only the owner of a file/directory is 
7268                 able to change the permissions on it.  However, this behavior
7269                 is often confusing to  DOS/Windows users.  Enabling this parameter 
7270                 allows a user who has write access to the file (by whatever 
7271                 means) to modify the permissions on it.  Note that a user
7272                 belonging to the group owning the file will not be allowed to
7273                 change permissions if the group is only granted read access.
7274                 Ownership of the file/directory is not changed, only the permissions 
7275                 are modified.</P
7276 ><P
7277 >Default: <B
7278 CLASS="COMMAND"
7279 >dos filemode = no</B
7280 ></P
7281 ></DD
7282 ><DT
7283 ><A
7284 NAME="DOSFILETIMERESOLUTION"
7285 ></A
7286 >dos filetime resolution (S)</DT
7287 ><DD
7288 ><P
7289 >Under the DOS and Windows FAT filesystem, the finest 
7290                 granularity on time resolution is two seconds. Setting this parameter 
7291                 for a share causes Samba to round the reported time down to the 
7292                 nearest two second boundary when a query call that requires one second 
7293                 resolution is made to <A
7294 HREF="smbd.8.html"
7295 TARGET="_top"
7296 ><B
7297 CLASS="COMMAND"
7298 >smbd(8)</B
7299 >
7300                 </A
7301 >.</P
7302 ><P
7303 >This option is mainly used as a compatibility option for Visual 
7304                 C++ when used against Samba shares. If oplocks are enabled on a 
7305                 share, Visual C++ uses two different time reading calls to check if a 
7306                 file has changed since it was last read. One of these calls uses a
7307                 one-second granularity, the other uses a two second granularity. As
7308                 the two second call rounds any odd second down, then if the file has a
7309                 timestamp of an odd number of seconds then the two timestamps will not
7310                 match and Visual C++ will keep reporting the file has changed. Setting
7311                 this option causes the two timestamps to match, and Visual C++ is
7312                 happy.</P
7313 ><P
7314 >Default: <B
7315 CLASS="COMMAND"
7316 >dos filetime resolution = no</B
7317 ></P
7318 ></DD
7319 ><DT
7320 ><A
7321 NAME="DOSFILETIMES"
7322 ></A
7323 >dos filetimes (S)</DT
7324 ><DD
7325 ><P
7326 >Under DOS and Windows, if a user can write to a 
7327                 file they can change the timestamp on it. Under POSIX semantics, 
7328                 only the owner of the file or root may change the timestamp. By 
7329                 default, Samba runs with POSIX semantics and refuses to change the 
7330                 timestamp on a file if the user <B
7331 CLASS="COMMAND"
7332 >smbd</B
7333 > is acting 
7334                 on behalf of is not the file owner. Setting this option to <TT
7335 CLASS="CONSTANT"
7336 >               true</TT
7337 > allows DOS semantics and <A
7338 HREF="smbd.8.html"
7339 TARGET="_top"
7340 >smbd</A
7341 > will change the file 
7342                 timestamp as DOS requires.</P
7343 ><P
7344 >Default: <B
7345 CLASS="COMMAND"
7346 >dos filetimes = no</B
7347 ></P
7348 ></DD
7349 ><DT
7350 ><A
7351 NAME="ENCRYPTPASSWORDS"
7352 ></A
7353 >encrypt passwords (G)</DT
7354 ><DD
7355 ><P
7356 >This boolean controls whether encrypted passwords 
7357                 will be negotiated with the client. Note that Windows NT 4.0 SP3 and 
7358                 above and also Windows 98 will by default expect encrypted passwords 
7359                 unless a registry entry is changed. To use encrypted passwords in 
7360                 Samba see the file ENCRYPTION.txt in the Samba documentation 
7361                 directory <TT
7362 CLASS="FILENAME"
7363 >docs/</TT
7364 > shipped with the source code.</P
7365 ><P
7366 >In order for encrypted passwords to work correctly
7367                 <A
7368 HREF="smbd.8.html"
7369 TARGET="_top"
7370 ><B
7371 CLASS="COMMAND"
7372 >smbd(8)</B
7373 ></A
7374 > must either 
7375                 have access to a local <A
7376 HREF="smbpasswd.5.html"
7377 TARGET="_top"
7378 ><TT
7379 CLASS="FILENAME"
7380 >smbpasswd(5)
7381                 </TT
7382 ></A
7383 > file (see the <A
7384 HREF="smbpasswd.8.html"
7385 TARGET="_top"
7386 ><B
7387 CLASS="COMMAND"
7388 >               smbpasswd(8)</B
7389 ></A
7390 > program for information on how to set up 
7391                 and maintain this file), or set the <A
7392 HREF="#SECURITY"
7393 >security = [server|domain|ads]</A
7394 > parameter which 
7395                 causes <B
7396 CLASS="COMMAND"
7397 >smbd</B
7398 > to authenticate against another 
7399                 server.</P
7400 ><P
7401 >Default: <B
7402 CLASS="COMMAND"
7403 >encrypt passwords = yes</B
7404 ></P
7405 ></DD
7406 ><DT
7407 ><A
7408 NAME="ENHANCEDBROWSING"
7409 ></A
7410 >enhanced browsing (G)</DT
7411 ><DD
7412 ><P
7413 >This option enables a couple of enhancements to 
7414                 cross-subnet browse propagation that have been added in Samba 
7415                 but which are not standard in Microsoft implementations.  
7416                 </P
7417 ><P
7418 >The first enhancement to browse propagation consists of a regular
7419                 wildcard query to a Samba WINS server for all Domain Master Browsers,
7420                 followed by a browse synchronization with each of the returned
7421                 DMBs. The second enhancement consists of a regular randomised browse
7422                 synchronization with all currently known DMBs.</P
7423 ><P
7424 >You may wish to disable this option if you have a problem with empty
7425                 workgroups not disappearing from browse lists. Due to the restrictions
7426                 of the browse protocols these enhancements can cause a empty workgroup
7427                 to stay around forever which can be annoying.</P
7428 ><P
7429 >In general you should leave this option enabled as it makes
7430                 cross-subnet browse propagation much more reliable.</P
7431 ><P
7432 >Default: <B
7433 CLASS="COMMAND"
7434 >enhanced browsing = yes</B
7435 ></P
7436 ></DD
7437 ><DT
7438 ><A
7439 NAME="ENUMPORTSCOMMAND"
7440 ></A
7441 >enumports command (G)</DT
7442 ><DD
7443 ><P
7444 >The concept of a "port" is fairly foreign
7445                 to UNIX hosts.  Under Windows NT/2000 print servers, a port
7446                 is associated with a port monitor and generally takes the form of
7447                 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
7448                 (i.e. LPD Port Monitor, etc...).  By default, Samba has only one
7449                 port defined--<TT
7450 CLASS="CONSTANT"
7451 >"Samba Printer Port"</TT
7452 >.  Under 
7453                 Windows NT/2000, all printers must have a valid port name.  
7454                 If you wish to have a list of ports displayed (<B
7455 CLASS="COMMAND"
7456 >smbd
7457                 </B
7458 > does not use a port name for anything) other than 
7459                 the default <TT
7460 CLASS="CONSTANT"
7461 >"Samba Printer Port"</TT
7462 >, you 
7463                 can define <TT
7464 CLASS="PARAMETER"
7465 ><I
7466 >enumports command</I
7467 ></TT
7468 > to point to
7469                 a program which should generate a list of ports, one per line,
7470                 to standard output.  This listing will then be used in response
7471                 to the level 1 and 2 EnumPorts() RPC.</P
7472 ><P
7473 >Default: <EM
7474 >no enumports command</EM
7475 ></P
7476 ><P
7477 >Example: <B
7478 CLASS="COMMAND"
7479 >enumports command = /usr/bin/listports
7480                 </B
7481 ></P
7482 ></DD
7483 ><DT
7484 ><A
7485 NAME="EXEC"
7486 ></A
7487 >exec (S)</DT
7488 ><DD
7489 ><P
7490 >This is a synonym for <A
7491 HREF="#PREEXEC"
7492 >               <TT
7493 CLASS="PARAMETER"
7494 ><I
7495 >preexec</I
7496 ></TT
7497 ></A
7498 >.</P
7499 ></DD
7500 ><DT
7501 ><A
7502 NAME="FAKEDIRECTORYCREATETIMES"
7503 ></A
7504 >fake directory create times (S)</DT
7505 ><DD
7506 ><P
7507 >NTFS and Windows VFAT file systems keep a create 
7508                 time for all files and directories. This is not the same as the 
7509                 ctime - status change time - that Unix keeps, so Samba by default 
7510                 reports the earliest of the various times Unix does keep. Setting 
7511                 this parameter for a share causes Samba to always report midnight 
7512                 1-1-1980 as the create time for directories.</P
7513 ><P
7514 >This option is mainly used as a compatibility option for 
7515                 Visual C++ when used against Samba shares. Visual C++ generated 
7516                 makefiles have the object directory as a dependency for each object 
7517                 file, and a make rule to create the directory. Also, when NMAKE 
7518                 compares timestamps it uses the creation time when examining a 
7519                 directory. Thus the object directory will be created if it does not 
7520                 exist, but once it does exist it will always have an earlier 
7521                 timestamp than the object files it contains.</P
7522 ><P
7523 >However, Unix time semantics mean that the create time 
7524                 reported by Samba will be updated whenever a file is created or 
7525                 or deleted in the directory.  NMAKE finds all object files in 
7526                 the object directory.  The timestamp of the last one built is then 
7527                 compared to the timestamp of the object directory.  If the 
7528                 directory's timestamp if newer, then all object files
7529                 will be rebuilt.  Enabling this option 
7530                 ensures directories always predate their contents and an NMAKE build 
7531                 will proceed as expected.</P
7532 ><P
7533 >Default: <B
7534 CLASS="COMMAND"
7535 >fake directory create times = no</B
7536 ></P
7537 ></DD
7538 ><DT
7539 ><A
7540 NAME="FAKEOPLOCKS"
7541 ></A
7542 >fake oplocks (S)</DT
7543 ><DD
7544 ><P
7545 >Oplocks are the way that SMB clients get permission 
7546                 from a server to locally cache file operations. If a server grants 
7547                 an oplock (opportunistic lock) then the client is free to assume 
7548                 that it is the only one accessing the file and it will aggressively 
7549                 cache file data. With some oplock types the client may even cache 
7550                 file open/close operations. This can give enormous performance benefits.
7551                 </P
7552 ><P
7553 >When you set <B
7554 CLASS="COMMAND"
7555 >fake oplocks = yes</B
7556 >, <A
7557 HREF="smbd.8.html"
7558 TARGET="_top"
7559 ><B
7560 CLASS="COMMAND"
7561 >smbd(8)</B
7562 ></A
7563 > will
7564                 always grant oplock requests no matter how many clients are using 
7565                 the file.</P
7566 ><P
7567 >It is generally much better to use the real <A
7568 HREF="#OPLOCKS"
7569 ><TT
7570 CLASS="PARAMETER"
7571 ><I
7572 >oplocks</I
7573 ></TT
7574 ></A
7575 > support rather 
7576                 than this parameter.</P
7577 ><P
7578 >If you enable this option on all read-only shares or 
7579                 shares that you know will only be accessed from one client at a 
7580                 time such as physically read-only media like CDROMs, you will see 
7581                 a big performance improvement on many operations. If you enable 
7582                 this option on shares where multiple clients may be accessing the 
7583                 files read-write at the same time you can get data corruption. Use 
7584                 this option carefully!</P
7585 ><P
7586 >Default: <B
7587 CLASS="COMMAND"
7588 >fake oplocks = no</B
7589 ></P
7590 ></DD
7591 ><DT
7592 ><A
7593 NAME="FOLLOWSYMLINKS"
7594 ></A
7595 >follow symlinks (S)</DT
7596 ><DD
7597 ><P
7598 >This parameter allows the Samba administrator 
7599                 to stop <A
7600 HREF="smbd.8.html"
7601 TARGET="_top"
7602 ><B
7603 CLASS="COMMAND"
7604 >smbd(8)</B
7605 ></A
7606
7607                 from following symbolic links in a particular share. Setting this 
7608                 parameter to <TT
7609 CLASS="CONSTANT"
7610 >no</TT
7611 > prevents any file or directory 
7612                 that is a symbolic link from being followed (the user will get an 
7613                 error).  This option is very useful to stop users from adding a 
7614                 symbolic link to <TT
7615 CLASS="FILENAME"
7616 >/etc/passwd</TT
7617 > in their home 
7618                 directory for instance.  However it will slow filename lookups 
7619                 down slightly.</P
7620 ><P
7621 >This option is enabled (i.e. <B
7622 CLASS="COMMAND"
7623 >smbd</B
7624 > will 
7625                 follow symbolic links) by default.</P
7626 ><P
7627 >Default: <B
7628 CLASS="COMMAND"
7629 >follow symlinks = yes</B
7630 ></P
7631 ></DD
7632 ><DT
7633 ><A
7634 NAME="FORCECREATEMODE"
7635 ></A
7636 >force create mode (S)</DT
7637 ><DD
7638 ><P
7639 >This parameter specifies a set of UNIX mode bit 
7640                 permissions that will <EM
7641 >always</EM
7642 > be set on a 
7643                 file created by Samba. This is done by bitwise 'OR'ing these bits onto 
7644                 the mode bits of a file that is being created or having its 
7645                 permissions changed. The default for this parameter is (in octal) 
7646                 000. The modes in this parameter are bitwise 'OR'ed onto the file 
7647                 mode after the mask set in the <TT
7648 CLASS="PARAMETER"
7649 ><I
7650 >create mask</I
7651 ></TT
7652
7653                 parameter is applied.</P
7654 ><P
7655 >See also the parameter <A
7656 HREF="#CREATEMASK"
7657 ><TT
7658 CLASS="PARAMETER"
7659 ><I
7660 >create 
7661                 mask</I
7662 ></TT
7663 ></A
7664 > for details on masking mode bits on files.</P
7665 ><P
7666 >See also the <A
7667 HREF="#INHERITPERMISSIONS"
7668 ><TT
7669 CLASS="PARAMETER"
7670 ><I
7671 >inherit 
7672                 permissions</I
7673 ></TT
7674 ></A
7675 > parameter.</P
7676 ><P
7677 >Default: <B
7678 CLASS="COMMAND"
7679 >force create mode = 000</B
7680 ></P
7681 ><P
7682 >Example: <B
7683 CLASS="COMMAND"
7684 >force create mode = 0755</B
7685 ></P
7686 ><P
7687 >would force all created files to have read and execute 
7688                 permissions set for 'group' and 'other' as well as the 
7689                 read/write/execute bits set for the 'user'.</P
7690 ></DD
7691 ><DT
7692 ><A
7693 NAME="FORCEDIRECTORYMODE"
7694 ></A
7695 >force directory mode (S)</DT
7696 ><DD
7697 ><P
7698 >This parameter specifies a set of UNIX mode bit 
7699                 permissions that will <EM
7700 >always</EM
7701 > be set on a directory 
7702                 created by Samba. This is done by bitwise 'OR'ing these bits onto the 
7703                 mode bits of a directory that is being created. The default for this 
7704                 parameter is (in octal) 0000 which will not add any extra permission 
7705                 bits to a created directory. This operation is done after the mode 
7706                 mask in the parameter <TT
7707 CLASS="PARAMETER"
7708 ><I
7709 >directory mask</I
7710 ></TT
7711 > is 
7712                 applied.</P
7713 ><P
7714 >See also the parameter <A
7715 HREF="#DIRECTORYMASK"
7716 ><TT
7717 CLASS="PARAMETER"
7718 ><I
7719 >               directory mask</I
7720 ></TT
7721 ></A
7722 > for details on masking mode bits 
7723                 on created directories.</P
7724 ><P
7725 >See also the <A
7726 HREF="#INHERITPERMISSIONS"
7727 ><TT
7728 CLASS="PARAMETER"
7729 ><I
7730 >               inherit permissions</I
7731 ></TT
7732 ></A
7733 > parameter.</P
7734 ><P
7735 >Default: <B
7736 CLASS="COMMAND"
7737 >force directory mode = 000</B
7738 ></P
7739 ><P
7740 >Example: <B
7741 CLASS="COMMAND"
7742 >force directory mode = 0755</B
7743 ></P
7744 ><P
7745 >would force all created directories to have read and execute
7746                 permissions set for 'group' and 'other' as well as the
7747                 read/write/execute bits set for the 'user'.</P
7748 ></DD
7749 ><DT
7750 ><A
7751 NAME="FORCEDIRECTORYSECURITYMODE"
7752 ></A
7753 >force directory 
7754                 security mode (S)</DT
7755 ><DD
7756 ><P
7757 >This parameter controls what UNIX permission bits 
7758                 can be modified when a Windows NT client is manipulating the UNIX 
7759                 permission on a directory using the native NT security dialog box.</P
7760 ><P
7761 >This parameter is applied as a mask (OR'ed with) to the 
7762                 changed permission bits, thus forcing any bits in this mask that 
7763                 the user may have modified to be on. Essentially, one bits in this 
7764                 mask may be treated as a set of bits that, when modifying security 
7765                 on a directory, the user has always set to be 'on'.</P
7766 ><P
7767 >If not set explicitly this parameter is 000, which 
7768                 allows a user to modify all the user/group/world permissions on a 
7769                 directory without restrictions.</P
7770 ><P
7771 ><EM
7772 >Note</EM
7773 > that users who can access the 
7774                 Samba server through other means can easily bypass this restriction, 
7775                 so it is primarily useful for standalone "appliance" systems.  
7776                 Administrators of most normal systems will probably want to leave
7777                 it set as 0000.</P
7778 ><P
7779 >See also the <A
7780 HREF="#DIRECTORYSECURITYMASK"
7781 ><TT
7782 CLASS="PARAMETER"
7783 ><I
7784 >               directory security mask</I
7785 ></TT
7786 ></A
7787 >, <A
7788 HREF="#SECURITYMASK"
7789 >               <TT
7790 CLASS="PARAMETER"
7791 ><I
7792 >security mask</I
7793 ></TT
7794 ></A
7795 >, 
7796                 <A
7797 HREF="#FORCESECURITYMODE"
7798 ><TT
7799 CLASS="PARAMETER"
7800 ><I
7801 >force security mode
7802                 </I
7803 ></TT
7804 ></A
7805 > parameters.</P
7806 ><P
7807 >Default: <B
7808 CLASS="COMMAND"
7809 >force directory security mode = 0</B
7810 ></P
7811 ><P
7812 >Example: <B
7813 CLASS="COMMAND"
7814 >force directory security mode = 700</B
7815 ></P
7816 ></DD
7817 ><DT
7818 ><A
7819 NAME="FORCEGROUP"
7820 ></A
7821 >force group (S)</DT
7822 ><DD
7823 ><P
7824 >This specifies a UNIX group name that will be 
7825                 assigned as the default primary group for all users connecting 
7826                 to this service. This is useful for sharing files by ensuring 
7827                 that all access to files on service will use the named group for 
7828                 their permissions checking. Thus, by assigning permissions for this 
7829                 group to the files and directories within this service the Samba 
7830                 administrator can restrict or allow sharing of these files.</P
7831 ><P
7832 >In Samba 2.0.5 and above this parameter has extended 
7833                 functionality in the following way. If the group name listed here 
7834                 has a '+' character prepended to it then the current user accessing 
7835                 the share only has the primary group default assigned to this group 
7836                 if they are already assigned as a member of that group. This allows 
7837                 an administrator to decide that only users who are already in a 
7838                 particular group will create files with group ownership set to that 
7839                 group. This gives a finer granularity of ownership assignment. For 
7840                 example, the setting <TT
7841 CLASS="FILENAME"
7842 >force group = +sys</TT
7843 > means 
7844                 that only users who are already in group sys will have their default
7845                 primary group assigned to sys when accessing this Samba share. All
7846                 other users will retain their ordinary primary group.</P
7847 ><P
7848 >If the <A
7849 HREF="#FORCEUSER"
7850 ><TT
7851 CLASS="PARAMETER"
7852 ><I
7853 >force user
7854                 </I
7855 ></TT
7856 ></A
7857 > parameter is also set the group specified in 
7858                 <TT
7859 CLASS="PARAMETER"
7860 ><I
7861 >force group</I
7862 ></TT
7863 > will override the primary group
7864                 set in <TT
7865 CLASS="PARAMETER"
7866 ><I
7867 >force user</I
7868 ></TT
7869 >.</P
7870 ><P
7871 >See also <A
7872 HREF="#FORCEUSER"
7873 ><TT
7874 CLASS="PARAMETER"
7875 ><I
7876 >force 
7877                 user</I
7878 ></TT
7879 ></A
7880 >.</P
7881 ><P
7882 >Default: <EM
7883 >no forced group</EM
7884 ></P
7885 ><P
7886 >Example: <B
7887 CLASS="COMMAND"
7888 >force group = agroup</B
7889 ></P
7890 ></DD
7891 ><DT
7892 ><A
7893 NAME="FORCESECURITYMODE"
7894 ></A
7895 >force security mode (S)</DT
7896 ><DD
7897 ><P
7898 >This parameter controls what UNIX permission 
7899                 bits can be modified when a Windows NT client is manipulating 
7900                 the UNIX permission on a file using the native NT security dialog 
7901                 box.</P
7902 ><P
7903 >This parameter is applied as a mask (OR'ed with) to the 
7904                 changed permission bits, thus forcing any bits in this mask that 
7905                 the user may have modified to be on. Essentially, one bits in this 
7906                 mask may be treated as a set of bits that, when modifying security 
7907                 on a file, the user has always set to be 'on'.</P
7908 ><P
7909 >If not set explicitly this parameter is set to 0,
7910                 and allows a user to modify all the user/group/world permissions on a file,
7911                 with no restrictions.</P
7912 ><P
7913 ><EM
7914 >Note</EM
7915 > that users who can access 
7916                 the Samba server through other means can easily bypass this restriction, 
7917                 so it is primarily useful for standalone "appliance" systems.  
7918                 Administrators of most normal systems will probably want to leave
7919                 this set to 0000.</P
7920 ><P
7921 >See also the <A
7922 HREF="#FORCEDIRECTORYSECURITYMODE"
7923 ><TT
7924 CLASS="PARAMETER"
7925 ><I
7926 >               force directory security mode</I
7927 ></TT
7928 ></A
7929 >,
7930                 <A
7931 HREF="#DIRECTORYSECURITYMASK"
7932 ><TT
7933 CLASS="PARAMETER"
7934 ><I
7935 >directory security
7936                 mask</I
7937 ></TT
7938 ></A
7939 >, <A
7940 HREF="#SECURITYMASK"
7941 ><TT
7942 CLASS="PARAMETER"
7943 ><I
7944 >               security mask</I
7945 ></TT
7946 ></A
7947 > parameters.</P
7948 ><P
7949 >Default: <B
7950 CLASS="COMMAND"
7951 >force security mode = 0</B
7952 ></P
7953 ><P
7954 >Example: <B
7955 CLASS="COMMAND"
7956 >force security mode = 700</B
7957 ></P
7958 ></DD
7959 ><DT
7960 ><A
7961 NAME="FORCEUSER"
7962 ></A
7963 >force user (S)</DT
7964 ><DD
7965 ><P
7966 >This specifies a UNIX user name that will be 
7967                 assigned as the default user for all users connecting to this service. 
7968                 This is useful for sharing files. You should also use it carefully 
7969                 as using it incorrectly can cause security problems.</P
7970 ><P
7971 >This user name only gets used once a connection is established. 
7972                 Thus clients still need to connect as a valid user and supply a 
7973                 valid password. Once connected, all file operations will be performed 
7974                 as the "forced user", no matter what username the client connected 
7975                 as.  This can be very useful.</P
7976 ><P
7977 >In Samba 2.0.5 and above this parameter also causes the 
7978                 primary group of the forced user to be used as the primary group 
7979                 for all file activity. Prior to 2.0.5 the primary group was left 
7980                 as the primary group of the connecting user (this was a bug).</P
7981 ><P
7982 >See also <A
7983 HREF="#FORCEGROUP"
7984 ><TT
7985 CLASS="PARAMETER"
7986 ><I
7987 >force group
7988                 </I
7989 ></TT
7990 ></A
7991 ></P
7992 ><P
7993 >Default: <EM
7994 >no forced user</EM
7995 ></P
7996 ><P
7997 >Example: <B
7998 CLASS="COMMAND"
7999 >force user = auser</B
8000 ></P
8001 ></DD
8002 ><DT
8003 ><A
8004 NAME="FSTYPE"
8005 ></A
8006 >fstype (S)</DT
8007 ><DD
8008 ><P
8009 >This parameter allows the administrator to 
8010                 configure the string that specifies the type of filesystem a share 
8011                 is using that is reported by <A
8012 HREF="smbd.8.html"
8013 TARGET="_top"
8014 ><B
8015 CLASS="COMMAND"
8016 >smbd(8)
8017                 </B
8018 ></A
8019 > when a client queries the filesystem type
8020                 for a share. The default type is <TT
8021 CLASS="CONSTANT"
8022 >NTFS</TT
8023 > for 
8024                 compatibility with Windows NT but this can be changed to other 
8025                 strings such as <TT
8026 CLASS="CONSTANT"
8027 >Samba</TT
8028 > or <TT
8029 CLASS="CONSTANT"
8030 >FAT
8031                 </TT
8032 > if required.</P
8033 ><P
8034 >Default: <B
8035 CLASS="COMMAND"
8036 >fstype = NTFS</B
8037 ></P
8038 ><P
8039 >Example: <B
8040 CLASS="COMMAND"
8041 >fstype = Samba</B
8042 ></P
8043 ></DD
8044 ><DT
8045 ><A
8046 NAME="GETWDCACHE"
8047 ></A
8048 >getwd cache (G)</DT
8049 ><DD
8050 ><P
8051 >This is a tuning option. When this is enabled a 
8052                 caching algorithm will be used to reduce the time taken for getwd() 
8053                 calls. This can have a significant impact on performance, especially 
8054                 when the <A
8055 HREF="#WIDELINKS"
8056 ><TT
8057 CLASS="PARAMETER"
8058 ><I
8059 >wide links</I
8060 ></TT
8061 >
8062                 </A
8063 >parameter is set to <TT
8064 CLASS="CONSTANT"
8065 >false</TT
8066 >.</P
8067 ><P
8068 >Default: <B
8069 CLASS="COMMAND"
8070 >getwd cache = yes</B
8071 ></P
8072 ></DD
8073 ><DT
8074 ><A
8075 NAME="GROUP"
8076 ></A
8077 >group (S)</DT
8078 ><DD
8079 ><P
8080 >Synonym for <A
8081 HREF="#FORCEGROUP"
8082 ><TT
8083 CLASS="PARAMETER"
8084 ><I
8085 >force 
8086                 group</I
8087 ></TT
8088 ></A
8089 >.</P
8090 ></DD
8091 ><DT
8092 ><A
8093 NAME="GUESTACCOUNT"
8094 ></A
8095 >guest account (S)</DT
8096 ><DD
8097 ><P
8098 >This is a username which will be used for access 
8099                 to services which are specified as <A
8100 HREF="#GUESTOK"
8101 ><TT
8102 CLASS="PARAMETER"
8103 ><I
8104 >               guest ok</I
8105 ></TT
8106 ></A
8107 > (see below). Whatever privileges this 
8108                 user has will be available to any client connecting to the guest service. 
8109                 Typically this user will exist in the password file, but will not
8110                 have a valid login. The user account "ftp" is often a good choice 
8111                 for this parameter. If a username is specified in a given service, 
8112                 the specified username overrides this one.</P
8113 ><P
8114 >One some systems the default guest account "nobody" may not 
8115                 be able to print. Use another account in this case. You should test 
8116                 this by trying to log in as your guest user (perhaps by using the 
8117                 <B
8118 CLASS="COMMAND"
8119 >su -</B
8120 > command) and trying to print using the 
8121                 system print command such as <B
8122 CLASS="COMMAND"
8123 >lpr(1)</B
8124 > or <B
8125 CLASS="COMMAND"
8126 >               lp(1)</B
8127 >.</P
8128 ><P
8129 >Default: <EM
8130 >specified at compile time, usually 
8131                 "nobody"</EM
8132 ></P
8133 ><P
8134 >Example: <B
8135 CLASS="COMMAND"
8136 >guest account = ftp</B
8137 ></P
8138 ></DD
8139 ><DT
8140 ><A
8141 NAME="GUESTOK"
8142 ></A
8143 >guest ok (S)</DT
8144 ><DD
8145 ><P
8146 >If this parameter is <TT
8147 CLASS="CONSTANT"
8148 >yes</TT
8149 > for 
8150                 a service, then no password is required to connect to the service. 
8151                 Privileges will be those of the <A
8152 HREF="#GUESTACCOUNT"
8153 ><TT
8154 CLASS="PARAMETER"
8155 ><I
8156 >               guest account</I
8157 ></TT
8158 ></A
8159 >.</P
8160 ><P
8161 >See the section below on <A
8162 HREF="#SECURITY"
8163 ><TT
8164 CLASS="PARAMETER"
8165 ><I
8166 >               security</I
8167 ></TT
8168 ></A
8169 > for more information about this option.
8170                 </P
8171 ><P
8172 >Default: <B
8173 CLASS="COMMAND"
8174 >guest ok = no</B
8175 ></P
8176 ></DD
8177 ><DT
8178 ><A
8179 NAME="GUESTONLY"
8180 ></A
8181 >guest only (S)</DT
8182 ><DD
8183 ><P
8184 >If this parameter is <TT
8185 CLASS="CONSTANT"
8186 >yes</TT
8187 > for 
8188                 a service, then only guest connections to the service are permitted. 
8189                 This parameter will have no effect if <A
8190 HREF="#GUESTOK"
8191 >               <TT
8192 CLASS="PARAMETER"
8193 ><I
8194 >guest ok</I
8195 ></TT
8196 ></A
8197 > is not set for the service.</P
8198 ><P
8199 >See the section below on <A
8200 HREF="#SECURITY"
8201 ><TT
8202 CLASS="PARAMETER"
8203 ><I
8204 >               security</I
8205 ></TT
8206 ></A
8207 > for more information about this option.
8208                 </P
8209 ><P
8210 >Default: <B
8211 CLASS="COMMAND"
8212 >guest only = no</B
8213 ></P
8214 ></DD
8215 ><DT
8216 ><A
8217 NAME="HIDEDOTFILES"
8218 ></A
8219 >hide dot files (S)</DT
8220 ><DD
8221 ><P
8222 >This is a boolean parameter that controls whether 
8223                 files starting with a dot appear as hidden files.</P
8224 ><P
8225 >Default: <B
8226 CLASS="COMMAND"
8227 >hide dot files = yes</B
8228 ></P
8229 ></DD
8230 ><DT
8231 ><A
8232 NAME="HIDEFILES"
8233 ></A
8234 >hide files(S)</DT
8235 ><DD
8236 ><P
8237 >This is a list of files or directories that are not 
8238                 visible but are accessible.  The DOS 'hidden' attribute is applied 
8239                 to any files or directories that match.</P
8240 ><P
8241 >Each entry in the list must be separated by a '/', 
8242                 which allows spaces to be included in the entry.  '*'
8243                 and '?' can be used to specify multiple files or directories 
8244                 as in DOS wildcards.</P
8245 ><P
8246 >Each entry must be a Unix path, not a DOS path and must 
8247                 not include the Unix directory separator '/'.</P
8248 ><P
8249 >Note that the case sensitivity option is applicable 
8250                 in hiding files.</P
8251 ><P
8252 >Setting this parameter will affect the performance of Samba, 
8253                 as it will be forced to check all files and directories for a match 
8254                 as they are scanned.</P
8255 ><P
8256 >See also <A
8257 HREF="#HIDEDOTFILES"
8258 ><TT
8259 CLASS="PARAMETER"
8260 ><I
8261 >hide 
8262                 dot files</I
8263 ></TT
8264 ></A
8265 >, <A
8266 HREF="#VETOFILES"
8267 ><TT
8268 CLASS="PARAMETER"
8269 ><I
8270 >               veto files</I
8271 ></TT
8272 ></A
8273 > and <A
8274 HREF="#CASESENSITIVE"
8275 >               <TT
8276 CLASS="PARAMETER"
8277 ><I
8278 >case sensitive</I
8279 ></TT
8280 ></A
8281 >.</P
8282 ><P
8283 >Default: <EM
8284 >no file are hidden</EM
8285 ></P
8286 ><P
8287 >Example: <B
8288 CLASS="COMMAND"
8289 >hide files =
8290                 /.*/DesktopFolderDB/TrashFor%m/resource.frk/</B
8291 ></P
8292 ><P
8293 >The above example is based on files that the Macintosh 
8294                 SMB client (DAVE) available from <A
8295 HREF="http://www.thursby.com"
8296 TARGET="_top"
8297
8298                 Thursby</A
8299 > creates for internal use, and also still hides 
8300                 all files beginning with a dot.</P
8301 ></DD
8302 ><DT
8303 ><A
8304 NAME="HIDELOCALUSERS"
8305 ></A
8306 >hide local users(G)</DT
8307 ><DD
8308 ><P
8309 >This parameter toggles the hiding of local UNIX 
8310                 users (root, wheel, floppy, etc) from remote clients.</P
8311 ><P
8312 >Default: <B
8313 CLASS="COMMAND"
8314 >hide local users = no</B
8315 ></P
8316 ></DD
8317 ><DT
8318 ><A
8319 NAME="HIDEUNREADABLE"
8320 ></A
8321 >hide unreadable (S)</DT
8322 ><DD
8323 ><P
8324 >This parameter prevents clients from seeing the
8325                 existance of files that cannot be read. Defaults to off.</P
8326 ><P
8327 >Default: <B
8328 CLASS="COMMAND"
8329 >hide unreadable = no</B
8330 ></P
8331 ></DD
8332 ><DT
8333 ><A
8334 NAME="HOMEDIRMAP"
8335 ></A
8336 >homedir map (G)</DT
8337 ><DD
8338 ><P
8339 >If<A
8340 HREF="#NISHOMEDIR"
8341 ><TT
8342 CLASS="PARAMETER"
8343 ><I
8344 >nis homedir
8345                 </I
8346 ></TT
8347 ></A
8348 > is <TT
8349 CLASS="CONSTANT"
8350 >true</TT
8351 >, and <A
8352 HREF="smbd.8.html"
8353 TARGET="_top"
8354 ><B
8355 CLASS="COMMAND"
8356 >smbd(8)</B
8357 ></A
8358 > is also acting 
8359                 as a Win95/98 <TT
8360 CLASS="PARAMETER"
8361 ><I
8362 >logon server</I
8363 ></TT
8364 > then this parameter 
8365                 specifies the NIS (or YP) map from which the server for the user's 
8366                 home directory should be extracted.  At present, only the Sun 
8367                 auto.home map format is understood. The form of the map is:</P
8368 ><P
8369 ><B
8370 CLASS="COMMAND"
8371 >username       server:/some/file/system</B
8372 ></P
8373 ><P
8374 >and the program will extract the servername from before 
8375                 the first ':'.  There should probably be a better parsing system 
8376                 that copes with different map formats and also Amd (another 
8377                 automounter) maps.</P
8378 ><P
8379 ><EM
8380 >NOTE :</EM
8381 >A working NIS client is required on 
8382                 the system for this option to work.</P
8383 ><P
8384 >See also <A
8385 HREF="#NISHOMEDIR"
8386 ><TT
8387 CLASS="PARAMETER"
8388 ><I
8389 >nis homedir</I
8390 ></TT
8391 >
8392                 </A
8393 >, <A
8394 HREF="#DOMAINLOGONS"
8395 ><TT
8396 CLASS="PARAMETER"
8397 ><I
8398 >domain logons</I
8399 ></TT
8400 >
8401                 </A
8402 >.</P
8403 ><P
8404 >Default: <B
8405 CLASS="COMMAND"
8406 >homedir map = &#60;empty string&#62;</B
8407 ></P
8408 ><P
8409 >Example: <B
8410 CLASS="COMMAND"
8411 >homedir map = amd.homedir</B
8412 ></P
8413 ></DD
8414 ><DT
8415 ><A
8416 NAME="HOSTMSDFS"
8417 ></A
8418 >host msdfs (G)</DT
8419 ><DD
8420 ><P
8421 >This boolean parameter is only available 
8422                 if Samba has been configured and compiled with the <B
8423 CLASS="COMMAND"
8424 >               --with-msdfs</B
8425 > option. If set to <TT
8426 CLASS="CONSTANT"
8427 >yes</TT
8428 >, 
8429                 Samba will act as a Dfs server, and  allow Dfs-aware clients 
8430                 to browse Dfs trees hosted on the server.</P
8431 ><P
8432 >See also the <A
8433 HREF="#MSDFSROOT"
8434 ><TT
8435 CLASS="PARAMETER"
8436 ><I
8437 >               msdfs root</I
8438 ></TT
8439 ></A
8440 > share  level  parameter.  For
8441                 more  information  on  setting  up a Dfs tree on Samba,
8442                 refer to <A
8443 HREF="msdfs_setup.html"
8444 TARGET="_top"
8445 >msdfs_setup.html</A
8446 >.
8447                 </P
8448 ><P
8449 >Default: <B
8450 CLASS="COMMAND"
8451 >host msdfs = no</B
8452 ></P
8453 ></DD
8454 ><DT
8455 ><A
8456 NAME="HOSTSALLOW"
8457 ></A
8458 >hosts allow (S)</DT
8459 ><DD
8460 ><P
8461 >A synonym for this parameter is <TT
8462 CLASS="PARAMETER"
8463 ><I
8464 >allow 
8465                 hosts</I
8466 ></TT
8467 >.</P
8468 ><P
8469 >This parameter is a comma, space, or tab delimited 
8470                 set of hosts which are permitted to access a service.</P
8471 ><P
8472 >If specified in the [global] section then it will
8473                 apply to all services, regardless of whether the individual 
8474                 service has a different setting.</P
8475 ><P
8476 >You can specify the hosts by name or IP number. For 
8477                 example, you could restrict access to only the hosts on a 
8478                 Class C subnet with something like <B
8479 CLASS="COMMAND"
8480 >allow hosts = 150.203.5.
8481                 </B
8482 >. The full syntax of the list is described in the man 
8483                 page <TT
8484 CLASS="FILENAME"
8485 >hosts_access(5)</TT
8486 >. Note that this man
8487                 page may not be present on your system, so a brief description will
8488                 be given here also.</P
8489 ><P
8490 >Note that the localhost address 127.0.0.1 will always 
8491                 be allowed access unless specifically denied by a <A
8492 HREF="#HOSTSDENY"
8493 ><TT
8494 CLASS="PARAMETER"
8495 ><I
8496 >hosts deny</I
8497 ></TT
8498 ></A
8499 > option.</P
8500 ><P
8501 >You can also specify hosts by network/netmask pairs and 
8502                 by netgroup names if your system supports netgroups. The 
8503                 <EM
8504 >EXCEPT</EM
8505 > keyword can also be used to limit a 
8506                 wildcard list. The following examples may provide some help:</P
8507 ><P
8508 >Example 1: allow all IPs in 150.203.*.*; except one</P
8509 ><P
8510 ><B
8511 CLASS="COMMAND"
8512 >hosts allow = 150.203. EXCEPT 150.203.6.66</B
8513 ></P
8514 ><P
8515 >Example 2: allow hosts that match the given network/netmask</P
8516 ><P
8517 ><B
8518 CLASS="COMMAND"
8519 >hosts allow = 150.203.15.0/255.255.255.0</B
8520 ></P
8521 ><P
8522 >Example 3: allow a couple of hosts</P
8523 ><P
8524 ><B
8525 CLASS="COMMAND"
8526 >hosts allow = lapland, arvidsjaur</B
8527 ></P
8528 ><P
8529 >Example 4: allow only hosts in NIS netgroup "foonet", but 
8530                 deny access from one particular host</P
8531 ><P
8532 ><B
8533 CLASS="COMMAND"
8534 >hosts allow = @foonet</B
8535 ></P
8536 ><P
8537 ><B
8538 CLASS="COMMAND"
8539 >hosts deny = pirate</B
8540 ></P
8541 ><P
8542 >Note that access still requires suitable user-level passwords.</P
8543 ><P
8544 >See <A
8545 HREF="testparm.1.html"
8546 TARGET="_top"
8547 ><B
8548 CLASS="COMMAND"
8549 >testparm(1)</B
8550 >
8551                 </A
8552 > for a way of testing your host access to see if it does 
8553                 what you expect.</P
8554 ><P
8555 >Default: <EM
8556 >none (i.e., all hosts permitted access)
8557                 </EM
8558 ></P
8559 ><P
8560 >Example: <B
8561 CLASS="COMMAND"
8562 >allow hosts = 150.203.5. myhost.mynet.edu.au
8563                 </B
8564 ></P
8565 ></DD
8566 ><DT
8567 ><A
8568 NAME="HOSTSDENY"
8569 ></A
8570 >hosts deny (S)</DT
8571 ><DD
8572 ><P
8573 >The opposite of <TT
8574 CLASS="PARAMETER"
8575 ><I
8576 >hosts allow</I
8577 ></TT
8578
8579                 - hosts listed here are <EM
8580 >NOT</EM
8581 > permitted access to 
8582                 services unless the specific services have their own lists to override 
8583                 this one. Where the lists conflict, the <TT
8584 CLASS="PARAMETER"
8585 ><I
8586 >allow</I
8587 ></TT
8588
8589                 list takes precedence.</P
8590 ><P
8591 >Default: <EM
8592 >none (i.e., no hosts specifically excluded)
8593                 </EM
8594 ></P
8595 ><P
8596 >Example: <B
8597 CLASS="COMMAND"
8598 >hosts deny = 150.203.4. badhost.mynet.edu.au
8599                 </B
8600 ></P
8601 ></DD
8602 ><DT
8603 ><A
8604 NAME="HOSTSEQUIV"
8605 ></A
8606 >hosts equiv (G)</DT
8607 ><DD
8608 ><P
8609 >If this global parameter is a non-null string, 
8610                 it specifies the name of a file to read for the names of hosts 
8611                 and users who will be allowed access without specifying a password.
8612                 </P
8613 ><P
8614 >This is not be confused with <A
8615 HREF="#HOSTSALLOW"
8616 >               <TT
8617 CLASS="PARAMETER"
8618 ><I
8619 >hosts allow</I
8620 ></TT
8621 ></A
8622 > which is about hosts 
8623                 access to services and is more useful for guest services. <TT
8624 CLASS="PARAMETER"
8625 ><I
8626 >               hosts equiv</I
8627 ></TT
8628 > may be useful for NT clients which will 
8629                 not supply passwords to Samba.</P
8630 ><P
8631 ><EM
8632 >NOTE :</EM
8633 > The use of <TT
8634 CLASS="PARAMETER"
8635 ><I
8636 >hosts equiv
8637                 </I
8638 ></TT
8639 > can be a major security hole. This is because you are 
8640                 trusting the PC to supply the correct username. It is very easy to 
8641                 get a PC to supply a false username. I recommend that the 
8642                 <TT
8643 CLASS="PARAMETER"
8644 ><I
8645 >hosts equiv</I
8646 ></TT
8647 > option be only used if you really 
8648                 know what you are doing, or perhaps on a home network where you trust 
8649                 your spouse and kids. And only if you <EM
8650 >really</EM
8651 > trust 
8652                 them :-).</P
8653 ><P
8654 >Default: <EM
8655 >no host equivalences</EM
8656 ></P
8657 ><P
8658 >Example: <B
8659 CLASS="COMMAND"
8660 >hosts equiv = /etc/hosts.equiv</B
8661 ></P
8662 ></DD
8663 ><DT
8664 ><A
8665 NAME="INCLUDE"
8666 ></A
8667 >include (G)</DT
8668 ><DD
8669 ><P
8670 >This allows you to include one config file 
8671                 inside another.  The file is included literally, as though typed 
8672                 in place.</P
8673 ><P
8674 >It takes the standard substitutions, except <TT
8675 CLASS="PARAMETER"
8676 ><I
8677 >%u
8678                 </I
8679 ></TT
8680 >, <TT
8681 CLASS="PARAMETER"
8682 ><I
8683 >%P</I
8684 ></TT
8685 > and <TT
8686 CLASS="PARAMETER"
8687 ><I
8688 >%S</I
8689 ></TT
8690 >.
8691                 </P
8692 ><P
8693 >Default: <EM
8694 >no file included</EM
8695 ></P
8696 ><P
8697 >Example: <B
8698 CLASS="COMMAND"
8699 >include = /usr/local/samba/lib/admin_smb.conf
8700                 </B
8701 ></P
8702 ></DD
8703 ><DT
8704 ><A
8705 NAME="INHERITACLS"
8706 ></A
8707 >inherit acls (S)</DT
8708 ><DD
8709 ><P
8710 >This parameter can be used to ensure
8711                 that if default acls exist on parent directories,
8712                 they are always honored when creating a subdirectory.
8713                 The default behavior is to use the mode specified
8714                 when creating the directory.  Enabling this option
8715                 sets the mode to 0777, thus guaranteeing that 
8716                 default directory acls are propagated.
8717                 </P
8718 ><P
8719 >Default: <B
8720 CLASS="COMMAND"
8721 >inherit acls = no</B
8722 >
8723                 </P
8724 ></DD
8725 ><DT
8726 ><A
8727 NAME="INHERITPERMISSIONS"
8728 ></A
8729 >inherit permissions (S)</DT
8730 ><DD
8731 ><P
8732 >The permissions on new files and directories 
8733                 are normally governed by <A
8734 HREF="#CREATEMASK"
8735 ><TT
8736 CLASS="PARAMETER"
8737 ><I
8738 >               create mask</I
8739 ></TT
8740 ></A
8741 >, <A
8742 HREF="#DIRECTORYMASK"
8743 >               <TT
8744 CLASS="PARAMETER"
8745 ><I
8746 >directory mask</I
8747 ></TT
8748 ></A
8749 >, <A
8750 HREF="#FORCECREATEMODE"
8751 ><TT
8752 CLASS="PARAMETER"
8753 ><I
8754 >force create mode</I
8755 ></TT
8756 >
8757                 </A
8758 > and <A
8759 HREF="#FORCEDIRECTORYMODE"
8760 ><TT
8761 CLASS="PARAMETER"
8762 ><I
8763 >force 
8764                 directory mode</I
8765 ></TT
8766 ></A
8767 > but the boolean inherit 
8768                 permissions parameter overrides this.</P
8769 ><P
8770 >New directories inherit the mode of the parent directory,
8771                 including bits such as setgid.</P
8772 ><P
8773 >New files inherit their read/write bits from the parent 
8774                 directory.  Their execute bits continue to be determined by
8775                 <A
8776 HREF="#MAPARCHIVE"
8777 ><TT
8778 CLASS="PARAMETER"
8779 ><I
8780 >map archive</I
8781 ></TT
8782 >
8783                 </A
8784 >, <A
8785 HREF="#MAPHIDDEN"
8786 ><TT
8787 CLASS="PARAMETER"
8788 ><I
8789 >map hidden</I
8790 ></TT
8791 >
8792                 </A
8793 > and <A
8794 HREF="#MAPSYSTEM"
8795 ><TT
8796 CLASS="PARAMETER"
8797 ><I
8798 >map system</I
8799 ></TT
8800 >
8801                 </A
8802 > as usual.</P
8803 ><P
8804 >Note that the setuid bit is <EM
8805 >never</EM
8806 > set via 
8807                 inheritance (the code explicitly prohibits this).</P
8808 ><P
8809 >This can be particularly useful on large systems with 
8810                 many users, perhaps several thousand, to allow a single [homes] 
8811                 share to be used flexibly by each user.</P
8812 ><P
8813 >See also <A
8814 HREF="#CREATEMASK"
8815 ><TT
8816 CLASS="PARAMETER"
8817 ><I
8818 >create mask
8819                 </I
8820 ></TT
8821 ></A
8822 >, <A
8823 HREF="#DIRECTORYMASK"
8824 ><TT
8825 CLASS="PARAMETER"
8826 ><I
8827 >               directory mask</I
8828 ></TT
8829 ></A
8830 >, <A
8831 HREF="#FORCECREATEMODE"
8832 >               <TT
8833 CLASS="PARAMETER"
8834 ><I
8835 >force create mode</I
8836 ></TT
8837 ></A
8838 > and <A
8839 HREF="#FORCEDIRECTORYMODE"
8840 ><TT
8841 CLASS="PARAMETER"
8842 ><I
8843 >force directory mode</I
8844 ></TT
8845 >
8846                 </A
8847 >.</P
8848 ><P
8849 >Default: <B
8850 CLASS="COMMAND"
8851 >inherit permissions = no</B
8852 ></P
8853 ></DD
8854 ><DT
8855 ><A
8856 NAME="INTERFACES"
8857 ></A
8858 >interfaces (G)</DT
8859 ><DD
8860 ><P
8861 >This option allows you to override the default 
8862                 network interfaces list that Samba will use for browsing, name 
8863                 registration and other NBT traffic. By default Samba will query 
8864                 the kernel for the list of all active interfaces and use any 
8865                 interfaces except 127.0.0.1 that are broadcast capable.</P
8866 ><P
8867 >The option takes a list of interface strings. Each string 
8868                 can be in any of the following forms:</P
8869 ><P
8870 ></P
8871 ><UL
8872 ><LI
8873 ><P
8874 >a network interface name (such as eth0). 
8875                         This may include shell-like wildcards so eth* will match 
8876                         any interface starting with the substring "eth"</P
8877 ></LI
8878 ><LI
8879 ><P
8880 >an IP address. In this case the netmask is 
8881                         determined from the list of interfaces obtained from the 
8882                         kernel</P
8883 ></LI
8884 ><LI
8885 ><P
8886 >an IP/mask pair. </P
8887 ></LI
8888 ><LI
8889 ><P
8890 >a broadcast/mask pair.</P
8891 ></LI
8892 ></UL
8893 ><P
8894 >The "mask" parameters can either be a bit length (such 
8895                 as 24 for a C class network) or a full netmask in dotted 
8896                 decimal form.</P
8897 ><P
8898 >The "IP" parameters above can either be a full dotted 
8899                 decimal IP address or a hostname which will be looked up via 
8900                 the OS's normal hostname resolution mechanisms.</P
8901 ><P
8902 >For example, the following line:</P
8903 ><P
8904 ><B
8905 CLASS="COMMAND"
8906 >interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
8907                 </B
8908 ></P
8909 ><P
8910 >would configure three network interfaces corresponding 
8911                 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. 
8912                 The netmasks of the latter two interfaces would be set to 255.255.255.0.</P
8913 ><P
8914 >See also <A
8915 HREF="#BINDINTERFACESONLY"
8916 ><TT
8917 CLASS="PARAMETER"
8918 ><I
8919 >bind 
8920                 interfaces only</I
8921 ></TT
8922 ></A
8923 >.</P
8924 ><P
8925 >Default: <EM
8926 >all active interfaces except 127.0.0.1 
8927                 that are broadcast capable</EM
8928 ></P
8929 ></DD
8930 ><DT
8931 ><A
8932 NAME="INVALIDUSERS"
8933 ></A
8934 >invalid users (S)</DT
8935 ><DD
8936 ><P
8937 >This is a list of users that should not be allowed 
8938                 to login to this service. This is really a <EM
8939 >paranoid</EM
8940
8941                 check to absolutely ensure an improper setting does not breach 
8942                 your security.</P
8943 ><P
8944 >A name starting with a '@' is interpreted as an NIS 
8945                 netgroup first (if your system supports NIS), and then as a UNIX 
8946                 group if the name was not found in the NIS netgroup database.</P
8947 ><P
8948 >A name starting with '+' is interpreted only 
8949                 by looking in the UNIX group database. A name starting with 
8950                 '&#38;' is interpreted only by looking in the NIS netgroup database 
8951                 (this requires NIS to be working on your system). The characters 
8952                 '+' and '&#38;' may be used at the start of the name in either order 
8953                 so the value <TT
8954 CLASS="PARAMETER"
8955 ><I
8956 >+&#38;group</I
8957 ></TT
8958 > means check the 
8959                 UNIX group database, followed by the NIS netgroup database, and 
8960                 the value <TT
8961 CLASS="PARAMETER"
8962 ><I
8963 >&#38;+group</I
8964 ></TT
8965 > means check the NIS
8966                 netgroup database, followed by the UNIX group database (the 
8967                 same as the '@' prefix).</P
8968 ><P
8969 >The current servicename is substituted for <TT
8970 CLASS="PARAMETER"
8971 ><I
8972 >%S</I
8973 ></TT
8974 >. 
8975                 This is useful in the [homes] section.</P
8976 ><P
8977 >See also <A
8978 HREF="#VALIDUSERS"
8979 ><TT
8980 CLASS="PARAMETER"
8981 ><I
8982 >valid users
8983                 </I
8984 ></TT
8985 ></A
8986 >.</P
8987 ><P
8988 >Default: <EM
8989 >no invalid users</EM
8990 ></P
8991 ><P
8992 >Example: <B
8993 CLASS="COMMAND"
8994 >invalid users = root fred admin @wheel
8995                 </B
8996 ></P
8997 ></DD
8998 ><DT
8999 ><A
9000 NAME="KEEPALIVE"
9001 ></A
9002 >keepalive (G)</DT
9003 ><DD
9004 ><P
9005 >The value of the parameter (an integer) represents 
9006                 the number of seconds between <TT
9007 CLASS="PARAMETER"
9008 ><I
9009 >keepalive</I
9010 ></TT
9011
9012                 packets. If this parameter is zero, no keepalive packets will be 
9013                 sent. Keepalive packets, if sent, allow the server to tell whether 
9014                 a client is still present and responding.</P
9015 ><P
9016 >Keepalives should, in general, not be needed if the socket 
9017                 being used has the SO_KEEPALIVE attribute set on it (see <A
9018 HREF="#SOCKETOPTIONS"
9019 ><TT
9020 CLASS="PARAMETER"
9021 ><I
9022 >socket options</I
9023 ></TT
9024 ></A
9025 >). 
9026                 Basically you should only use this option if you strike difficulties.</P
9027 ><P
9028 >Default: <B
9029 CLASS="COMMAND"
9030 >keepalive = 300</B
9031 ></P
9032 ><P
9033 >Example: <B
9034 CLASS="COMMAND"
9035 >keepalive = 600</B
9036 ></P
9037 ></DD
9038 ><DT
9039 ><A
9040 NAME="KERNELOPLOCKS"
9041 ></A
9042 >kernel oplocks (G)</DT
9043 ><DD
9044 ><P
9045 >For UNIXes that support kernel based <A
9046 HREF="#OPLOCKS"
9047 ><TT
9048 CLASS="PARAMETER"
9049 ><I
9050 >oplocks</I
9051 ></TT
9052 ></A
9053 >
9054                 (currently only IRIX and the Linux 2.4 kernel), this parameter 
9055                 allows the use of them to be turned on or off.</P
9056 ><P
9057 >Kernel oplocks support allows Samba <TT
9058 CLASS="PARAMETER"
9059 ><I
9060 >oplocks
9061                 </I
9062 ></TT
9063 > to be broken whenever a local UNIX process or NFS operation 
9064                 accesses a file that <A
9065 HREF="smbd.8.html"
9066 TARGET="_top"
9067 ><B
9068 CLASS="COMMAND"
9069 >smbd(8)</B
9070 >
9071                 </A
9072 > has oplocked. This allows complete data consistency between 
9073                 SMB/CIFS, NFS and local file access (and is a <EM
9074 >very</EM
9075
9076                 cool feature :-).</P
9077 ><P
9078 >This parameter defaults to <TT
9079 CLASS="CONSTANT"
9080 >on</TT
9081 >, but is translated
9082                 to a no-op on systems that no not have the necessary kernel support.
9083                 You should never need to touch this parameter.</P
9084 ><P
9085 >See also the <A
9086 HREF="#OPLOCKS"
9087 ><TT
9088 CLASS="PARAMETER"
9089 ><I
9090 >oplocks</I
9091 ></TT
9092 >
9093                 </A
9094 > and <A
9095 HREF="#LEVEL2OPLOCKS"
9096 ><TT
9097 CLASS="PARAMETER"
9098 ><I
9099 >level2 oplocks
9100                 </I
9101 ></TT
9102 ></A
9103 > parameters.</P
9104 ><P
9105 >Default: <B
9106 CLASS="COMMAND"
9107 >kernel oplocks = yes</B
9108 ></P
9109 ></DD
9110 ><DT
9111 ><A
9112 NAME="LANMANAUTH"
9113 ></A
9114 >lanman auth (G)</DT
9115 ><DD
9116 ><P
9117 >This parameter determines whether or not <A
9118 HREF="smbd.8.html"
9119 TARGET="_top"
9120 >smbd</A
9121 > will
9122                 attempt to authenticate users using the LANMAN password hash.
9123                 If disabled, only clients which support NT password hashes (e.g. Windows 
9124                 NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS 
9125                 network client) will be able to connect to the Samba host.</P
9126 ><P
9127 >Default : <B
9128 CLASS="COMMAND"
9129 >lanman auth = yes</B
9130 ></P
9131 ></DD
9132 ><DT
9133 ><A
9134 NAME="LARGEREADWRITE"
9135 ></A
9136 >large readwrite (G)</DT
9137 ><DD
9138 ><P
9139 >This parameter determines whether or not <A
9140 HREF="smbd.8.html"
9141 TARGET="_top"
9142 >smbd</A
9143 >
9144                 supports the new 64k streaming read and write varient SMB requests introduced
9145                 with Windows 2000. Note that due to Windows 2000 client redirector bugs
9146                 this requires Samba to be running on a 64-bit capable operating system such
9147                 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
9148                 Windows 2000 clients. Defaults to on. Not as tested as some other Samba
9149                 code paths.
9150                 </P
9151 ><P
9152 >Default : <B
9153 CLASS="COMMAND"
9154 >large readwrite = yes</B
9155 ></P
9156 ></DD
9157 ><DT
9158 ><A
9159 NAME="LDAPADMINDN"
9160 ></A
9161 >ldap admin dn (G)</DT
9162 ><DD
9163 ><P
9164 > The <TT
9165 CLASS="PARAMETER"
9166 ><I
9167 >ldap admin dn</I
9168 ></TT
9169 > defines the Distinguished 
9170                 Name (DN) name used by Samba to contact the ldap server when retreiving 
9171                 user account information. The <TT
9172 CLASS="PARAMETER"
9173 ><I
9174 >ldap
9175                 admin dn</I
9176 ></TT
9177 > is used in conjunction with the admin dn password
9178                 stored in the <TT
9179 CLASS="FILENAME"
9180 >private/secrets.tdb</TT
9181 > file.  See the
9182                 <A
9183 HREF="smbpasswd.8.html"
9184 TARGET="_top"
9185 ><B
9186 CLASS="COMMAND"
9187 >smbpasswd(8)</B
9188 ></A
9189 > man
9190                 page for more information on how to accmplish this.
9191                 </P
9192 ><P
9193 >Default : <EM
9194 >none</EM
9195 ></P
9196 ></DD
9197 ><DT
9198 ><A
9199 NAME="LDAPFILTER"
9200 ></A
9201 >ldap filter (G)</DT
9202 ><DD
9203 ><P
9204 >This parameter specifies the RFC 2254 compliant LDAP search filter.
9205                 The default is to match the login name with the <TT
9206 CLASS="CONSTANT"
9207 >uid</TT
9208
9209                 attribute for all entries matching the <TT
9210 CLASS="CONSTANT"
9211 >sambaAccount</TT
9212 >               
9213                 objectclass.  Note that this filter should only return one entry.
9214                 </P
9215 ><P
9216 >Default : <B
9217 CLASS="COMMAND"
9218 >ldap filter = (&#38;(uid=%u)(objectclass=sambaAccount))</B
9219 ></P
9220 ></DD
9221 ><DT
9222 ><A
9223 NAME="LDAPSSL"
9224 ></A
9225 >ldap ssl (G)</DT
9226 ><DD
9227 ><P
9228 >This option is used to define whether or not Samba should
9229                 use SSL when connecting to the ldap server
9230                 This is <EM
9231 >NOT</EM
9232 > related to
9233                 Samba's previous SSL support which was enabled by specifying the 
9234                 <B
9235 CLASS="COMMAND"
9236 >--with-ssl</B
9237 > option to the <TT
9238 CLASS="FILENAME"
9239 >configure</TT
9240
9241                 script.
9242                 </P
9243 ><P
9244 >               The <TT
9245 CLASS="PARAMETER"
9246 ><I
9247 >ldap ssl</I
9248 ></TT
9249 > can be set to one of three values:
9250                 (a) <TT
9251 CLASS="CONSTANT"
9252 >on</TT
9253 > - Always use SSL when contacting the 
9254                 <TT
9255 CLASS="PARAMETER"
9256 ><I
9257 >ldap   server</I
9258 ></TT
9259 >, (b) <TT
9260 CLASS="CONSTANT"
9261 >off</TT
9262 > -
9263                 Never use SSL when querying the directory, or (c) <TT
9264 CLASS="CONSTANT"
9265 >start_tls</TT
9266
9267                 - Use the LDAPv3 StartTLS extended operation 
9268                 (RFC2830) for communicating with the directory server.
9269                 </P
9270 ><P
9271 >Default : <B
9272 CLASS="COMMAND"
9273 >ldap ssl = on</B
9274 ></P
9275 ></DD
9276 ><DT
9277 ><A
9278 NAME="LDAPSUFFIX"
9279 ></A
9280 >ldap suffix (G)</DT
9281 ><DD
9282 ><P
9283 >Default : <EM
9284 >none</EM
9285 ></P
9286 ></DD
9287 ><DT
9288 ><A
9289 NAME="LDAPUSERSUFFIX"
9290 ></A
9291 >ldap user suffix (G)</DT
9292 ><DD
9293 ><P
9294 >It specifies where users are added to the tree.
9295                 </P
9296 ><P
9297 >Default : <EM
9298 >none</EM
9299 ></P
9300 ></DD
9301 ><DT
9302 ><A
9303 NAME="LDAPMACHINESUFFIX"
9304 ></A
9305 >ldap machine suffix (G)</DT
9306 ><DD
9307 ><P
9308 >It specifies where machines should be 
9309                 added to the ldap tree.
9310                 </P
9311 ><P
9312 >Default : <EM
9313 >none</EM
9314 ></P
9315 ></DD
9316 ><DT
9317 ><A
9318 NAME="LEVEL2OPLOCKS"
9319 ></A
9320 >level2 oplocks (S)</DT
9321 ><DD
9322 ><P
9323 >This parameter controls whether Samba supports
9324                 level2 (read-only) oplocks on a share.</P
9325 ><P
9326 >Level2, or read-only oplocks allow Windows NT clients 
9327                 that have an oplock on a file to downgrade from a read-write oplock 
9328                 to a read-only oplock once a second client opens the file (instead 
9329                 of releasing all oplocks on a second open, as in traditional, 
9330                 exclusive oplocks). This allows all openers of the file that 
9331                 support level2 oplocks to cache the file for read-ahead only (ie. 
9332                 they may not cache writes or lock requests) and increases performance 
9333                 for many accesses of files that are not commonly written (such as 
9334                 application .EXE files).</P
9335 ><P
9336 >Once one of the clients which have a read-only oplock 
9337                 writes to the file all clients are notified (no reply is needed 
9338                 or waited for) and told to break their oplocks to "none" and 
9339                 delete any read-ahead caches.</P
9340 ><P
9341 >It is recommended that this parameter be turned on 
9342                 to speed access to shared executables.</P
9343 ><P
9344 >For more discussions on level2 oplocks see the CIFS spec.</P
9345 ><P
9346 >Currently, if <A
9347 HREF="#KERNELOPLOCKS"
9348 ><TT
9349 CLASS="PARAMETER"
9350 ><I
9351 >kernel 
9352                 oplocks</I
9353 ></TT
9354 ></A
9355 > are supported then level2 oplocks are 
9356                 not granted (even if this parameter is set to <TT
9357 CLASS="CONSTANT"
9358 >yes</TT
9359 >). 
9360                 Note also, the <A
9361 HREF="#OPLOCKS"
9362 ><TT
9363 CLASS="PARAMETER"
9364 ><I
9365 >oplocks</I
9366 ></TT
9367 >
9368                 </A
9369 > parameter must be set to <TT
9370 CLASS="CONSTANT"
9371 >true</TT
9372 > on this share in order for 
9373                 this parameter to have any effect.</P
9374 ><P
9375 >See also the <A
9376 HREF="#OPLOCKS"
9377 ><TT
9378 CLASS="PARAMETER"
9379 ><I
9380 >oplocks</I
9381 ></TT
9382 >
9383                 </A
9384 > and <A
9385 HREF="#OPLOCKS"
9386 ><TT
9387 CLASS="PARAMETER"
9388 ><I
9389 >kernel oplocks</I
9390 ></TT
9391 >
9392                 </A
9393 > parameters.</P
9394 ><P
9395 >Default: <B
9396 CLASS="COMMAND"
9397 >level2 oplocks = yes</B
9398 ></P
9399 ></DD
9400 ><DT
9401 ><A
9402 NAME="LMANNOUNCE"
9403 ></A
9404 >lm announce (G)</DT
9405 ><DD
9406 ><P
9407 >This parameter determines if <A
9408 HREF="nmbd.8.html"
9409 TARGET="_top"
9410 >               <B
9411 CLASS="COMMAND"
9412 >nmbd(8)</B
9413 ></A
9414 > will produce Lanman announce 
9415                 broadcasts that are needed by OS/2 clients in order for them to see 
9416                 the Samba server in their browse list. This parameter can have three 
9417                 values, <TT
9418 CLASS="CONSTANT"
9419 >true</TT
9420 >, <TT
9421 CLASS="CONSTANT"
9422 >false</TT
9423 >, or
9424                 <TT
9425 CLASS="CONSTANT"
9426 >auto</TT
9427 >. The default is <TT
9428 CLASS="CONSTANT"
9429 >auto</TT
9430 >.  
9431                 If set to <TT
9432 CLASS="CONSTANT"
9433 >false</TT
9434 > Samba will never produce these 
9435                 broadcasts. If set to <TT
9436 CLASS="CONSTANT"
9437 >true</TT
9438 > Samba will produce 
9439                 Lanman announce broadcasts at a frequency set by the parameter 
9440                 <TT
9441 CLASS="PARAMETER"
9442 ><I
9443 >lm interval</I
9444 ></TT
9445 >. If set to <TT
9446 CLASS="CONSTANT"
9447 >auto</TT
9448
9449                 Samba will not send Lanman announce broadcasts by default but will 
9450                 listen for them. If it hears such a broadcast on the wire it will 
9451                 then start sending them at a frequency set by the parameter 
9452                 <TT
9453 CLASS="PARAMETER"
9454 ><I
9455 >lm interval</I
9456 ></TT
9457 >.</P
9458 ><P
9459 >See also <A
9460 HREF="#LMINTERVAL"
9461 ><TT
9462 CLASS="PARAMETER"
9463 ><I
9464 >lm interval
9465                 </I
9466 ></TT
9467 ></A
9468 >.</P
9469 ><P
9470 >Default: <B
9471 CLASS="COMMAND"
9472 >lm announce = auto</B
9473 ></P
9474 ><P
9475 >Example: <B
9476 CLASS="COMMAND"
9477 >lm announce = yes</B
9478 ></P
9479 ></DD
9480 ><DT
9481 ><A
9482 NAME="LMINTERVAL"
9483 ></A
9484 >lm interval (G)</DT
9485 ><DD
9486 ><P
9487 >If Samba is set to produce Lanman announce 
9488                 broadcasts needed by OS/2 clients (see the <A
9489 HREF="#LMANNOUNCE"
9490 >               <TT
9491 CLASS="PARAMETER"
9492 ><I
9493 >lm announce</I
9494 ></TT
9495 ></A
9496 > parameter) then this 
9497                 parameter defines the frequency in seconds with which they will be 
9498                 made.  If this is set to zero then no Lanman announcements will be 
9499                 made despite the setting of the <TT
9500 CLASS="PARAMETER"
9501 ><I
9502 >lm announce</I
9503 ></TT
9504
9505                 parameter.</P
9506 ><P
9507 >See also <A
9508 HREF="#LMANNOUNCE"
9509 ><TT
9510 CLASS="PARAMETER"
9511 ><I
9512 >lm 
9513                 announce</I
9514 ></TT
9515 ></A
9516 >.</P
9517 ><P
9518 >Default: <B
9519 CLASS="COMMAND"
9520 >lm interval = 60</B
9521 ></P
9522 ><P
9523 >Example: <B
9524 CLASS="COMMAND"
9525 >lm interval = 120</B
9526 ></P
9527 ></DD
9528 ><DT
9529 ><A
9530 NAME="LOADPRINTERS"
9531 ></A
9532 >load printers (G)</DT
9533 ><DD
9534 ><P
9535 >A boolean variable that controls whether all 
9536                 printers in the printcap will be loaded for browsing by default. 
9537                 See the <A
9538 HREF="#AEN79"
9539 >printers</A
9540 > section for 
9541                 more details.</P
9542 ><P
9543 >Default: <B
9544 CLASS="COMMAND"
9545 >load printers = yes</B
9546 ></P
9547 ></DD
9548 ><DT
9549 ><A
9550 NAME="LOCALMASTER"
9551 ></A
9552 >local master (G)</DT
9553 ><DD
9554 ><P
9555 >This option allows <A
9556 HREF="nmbd.8.html"
9557 TARGET="_top"
9558 ><B
9559 CLASS="COMMAND"
9560 >               nmbd(8)</B
9561 ></A
9562 > to try and become a local master browser 
9563                 on a subnet. If set to <TT
9564 CLASS="CONSTANT"
9565 >false</TT
9566 > then <B
9567 CLASS="COMMAND"
9568 >               nmbd</B
9569 > will not attempt to become a local master browser 
9570                 on a subnet and will also lose in all browsing elections. By
9571                 default this value is set to <TT
9572 CLASS="CONSTANT"
9573 >true</TT
9574 >. Setting this value to <TT
9575 CLASS="CONSTANT"
9576 >true</TT
9577 > doesn't
9578                 mean that Samba will <EM
9579 >become</EM
9580 > the local master 
9581                 browser on a subnet, just that <B
9582 CLASS="COMMAND"
9583 >nmbd</B
9584 > will <EM
9585 >               participate</EM
9586 > in elections for local master browser.</P
9587 ><P
9588 >Setting this value to <TT
9589 CLASS="CONSTANT"
9590 >false</TT
9591 > will cause <B
9592 CLASS="COMMAND"
9593 >nmbd</B
9594 >
9595                 <EM
9596 >never</EM
9597 > to become a local master browser.</P
9598 ><P
9599 >Default: <B
9600 CLASS="COMMAND"
9601 >local master = yes</B
9602 ></P
9603 ></DD
9604 ><DT
9605 ><A
9606 NAME="LOCKDIR"
9607 ></A
9608 >lock dir (G)</DT
9609 ><DD
9610 ><P
9611 >Synonym for <A
9612 HREF="#LOCKDIRECTORY"
9613 ><TT
9614 CLASS="PARAMETER"
9615 ><I
9616 >               lock directory</I
9617 ></TT
9618 ></A
9619 >.</P
9620 ></DD
9621 ><DT
9622 ><A
9623 NAME="LOCKDIRECTORY"
9624 ></A
9625 >lock directory (G)</DT
9626 ><DD
9627 ><P
9628 >This option specifies the directory where lock 
9629                 files will be placed.  The lock files are used to implement the 
9630                 <A
9631 HREF="#MAXCONNECTIONS"
9632 ><TT
9633 CLASS="PARAMETER"
9634 ><I
9635 >max connections</I
9636 ></TT
9637 >
9638                 </A
9639 > option.</P
9640 ><P
9641 >Default: <B
9642 CLASS="COMMAND"
9643 >lock directory = ${prefix}/var/locks</B
9644 ></P
9645 ><P
9646 >Example: <B
9647 CLASS="COMMAND"
9648 >lock directory = /var/run/samba/locks</B
9649 >
9650                 </P
9651 ></DD
9652 ><DT
9653 ><A
9654 NAME="LOCKSPINCOUNT"
9655 ></A
9656 >lock spin count (G)</DT
9657 ><DD
9658 ><P
9659 >This parameter controls the number of times
9660                 that smbd should attempt to gain a byte range lock on the 
9661                 behalf of a client request.  Experiments have shown that
9662                 Windows 2k servers do not reply with a failure if the lock
9663                 could not be immediately granted, but try a few more times
9664                 in case the lock could later be aquired.  This behavior
9665                 is used to support PC database formats such as MS Access
9666                 and FoxPro.
9667                 </P
9668 ><P
9669 >Default: <B
9670 CLASS="COMMAND"
9671 >lock spin count = 2</B
9672 >
9673                 </P
9674 ></DD
9675 ><DT
9676 ><A
9677 NAME="LOCKSPINTIME"
9678 ></A
9679 >lock spin time (G)</DT
9680 ><DD
9681 ><P
9682 >The time in microseconds that smbd should 
9683                 pause before attempting to gain a failed lock.  See
9684                 <A
9685 HREF="#LOCKSPINCOUNT"
9686 ><TT
9687 CLASS="PARAMETER"
9688 ><I
9689 >lock spin 
9690                 count</I
9691 ></TT
9692 ></A
9693 > for more details.
9694                 </P
9695 ><P
9696 >Default: <B
9697 CLASS="COMMAND"
9698 >lock spin time = 10</B
9699 >
9700                 </P
9701 ></DD
9702 ><DT
9703 ><A
9704 NAME="LOCKING"
9705 ></A
9706 >locking (S)</DT
9707 ><DD
9708 ><P
9709 >This controls whether or not locking will be 
9710                 performed by the server in response to lock requests from the 
9711                 client.</P
9712 ><P
9713 >If <B
9714 CLASS="COMMAND"
9715 >locking = no</B
9716 >, all lock and unlock 
9717                 requests will appear to succeed and all lock queries will report 
9718                 that the file in question is available for locking.</P
9719 ><P
9720 >If <B
9721 CLASS="COMMAND"
9722 >locking = yes</B
9723 >, real locking will be performed 
9724                 by the server.</P
9725 ><P
9726 >This option <EM
9727 >may</EM
9728 > be useful for read-only 
9729                 filesystems which <EM
9730 >may</EM
9731 > not need locking (such as 
9732                 CDROM drives), although setting this parameter of <TT
9733 CLASS="CONSTANT"
9734 >no</TT
9735
9736                 is not really recommended even in this case.</P
9737 ><P
9738 >Be careful about disabling locking either globally or in a 
9739                 specific service, as lack of locking may result in data corruption. 
9740                 You should never need to set this parameter.</P
9741 ><P
9742 >Default: <B
9743 CLASS="COMMAND"
9744 >locking = yes</B
9745 ></P
9746 ></DD
9747 ><DT
9748 ><A
9749 NAME="LOGFILE"
9750 ></A
9751 >log file (G)</DT
9752 ><DD
9753 ><P
9754 >This option allows you to override the name 
9755                 of the Samba log file (also known as the debug file).</P
9756 ><P
9757 >This option takes the standard substitutions, allowing 
9758                 you to have separate log files for each user or machine.</P
9759 ><P
9760 >Example: <B
9761 CLASS="COMMAND"
9762 >log file = /usr/local/samba/var/log.%m
9763                 </B
9764 ></P
9765 ></DD
9766 ><DT
9767 ><A
9768 NAME="LOGLEVEL"
9769 ></A
9770 >log level (G)</DT
9771 ><DD
9772 ><P
9773 >The value of the parameter (a astring) allows 
9774                 the debug level (logging level) to be specified in the 
9775                 <TT
9776 CLASS="FILENAME"
9777 >smb.conf</TT
9778 > file. This parameter has been
9779                 extended since 2.2.x series, now it allow to specify the debug
9780                 level for multiple debug classes. This is to give greater 
9781                 flexibility in the configuration of the system.</P
9782 ><P
9783 >The default will be the log level specified on 
9784                 the command line or level zero if none was specified.</P
9785 ><P
9786 >Example: <B
9787 CLASS="COMMAND"
9788 >log level = 3 passdb:5 auth:10 winbind:2
9789                 </B
9790 ></P
9791 ></DD
9792 ><DT
9793 ><A
9794 NAME="LOGONDRIVE"
9795 ></A
9796 >logon drive (G)</DT
9797 ><DD
9798 ><P
9799 >This parameter specifies the local path to 
9800                 which the home directory will be connected (see <A
9801 HREF="#LOGONHOME"
9802 ><TT
9803 CLASS="PARAMETER"
9804 ><I
9805 >logon home</I
9806 ></TT
9807 ></A
9808 >) 
9809                 and is only used by NT Workstations. </P
9810 ><P
9811 >Note that this option is only useful if Samba is set up as a
9812                 logon server.</P
9813 ><P
9814 >Default: <B
9815 CLASS="COMMAND"
9816 >logon drive = z:</B
9817 ></P
9818 ><P
9819 >Example: <B
9820 CLASS="COMMAND"
9821 >logon drive = h:</B
9822 ></P
9823 ></DD
9824 ><DT
9825 ><A
9826 NAME="LOGONHOME"
9827 ></A
9828 >logon home (G)</DT
9829 ><DD
9830 ><P
9831 >This parameter specifies the home directory 
9832                 location when a Win95/98 or NT Workstation logs into a Samba PDC.  
9833                 It allows you to do </P
9834 ><P
9835 ><TT
9836 CLASS="PROMPT"
9837 >C:\&#62; </TT
9838 ><TT
9839 CLASS="USERINPUT"
9840 ><B
9841 >NET USE H: /HOME</B
9842 ></TT
9843 >
9844                 </P
9845 ><P
9846 >from a command prompt, for example.</P
9847 ><P
9848 >This option takes the standard substitutions, allowing 
9849                 you to have separate logon scripts for each user or machine.</P
9850 ><P
9851 >This parameter can be used with Win9X workstations to ensure 
9852                 that roaming profiles are stored in a subdirectory of the user's 
9853                 home directory.  This is done in the following way:</P
9854 ><P
9855 ><B
9856 CLASS="COMMAND"
9857 >logon home = \\%N\%U\profile</B
9858 ></P
9859 ><P
9860 >This tells Samba to return the above string, with 
9861                 substitutions made when a client requests the info, generally 
9862                 in a NetUserGetInfo request.  Win9X clients truncate the info to
9863                 \\server\share when a user does <B
9864 CLASS="COMMAND"
9865 >net use /home</B
9866 >
9867                 but use the whole string when dealing with profiles.</P
9868 ><P
9869 >Note that in prior versions of Samba, the <A
9870 HREF="#LOGONPATH"
9871 >               <TT
9872 CLASS="PARAMETER"
9873 ><I
9874 >logon path</I
9875 ></TT
9876 ></A
9877 > was returned rather than 
9878                 <TT
9879 CLASS="PARAMETER"
9880 ><I
9881 >logon home</I
9882 ></TT
9883 >.  This broke <B
9884 CLASS="COMMAND"
9885 >net use 
9886                 /home</B
9887 > but allowed profiles outside the home directory.  
9888                 The current implementation is correct, and can be used for 
9889                 profiles if you use the above trick.</P
9890 ><P
9891 >This option is only useful if Samba is set up as a logon 
9892                 server.</P
9893 ><P
9894 >Default: <B
9895 CLASS="COMMAND"
9896 >logon home = "\\%N\%U"</B
9897 ></P
9898 ><P
9899 >Example: <B
9900 CLASS="COMMAND"
9901 >logon home = "\\remote_smb_server\%U"</B
9902 >
9903                 </P
9904 ></DD
9905 ><DT
9906 ><A
9907 NAME="LOGONPATH"
9908 ></A
9909 >logon path (G)</DT
9910 ><DD
9911 ><P
9912 >This parameter specifies the home directory 
9913                 where roaming profiles (NTuser.dat etc files for Windows NT) are 
9914                 stored.  Contrary to previous versions of these manual pages, it has 
9915                 nothing to do with Win 9X roaming profiles.  To find out how to 
9916                 handle roaming profiles for Win 9X system, see the <A
9917 HREF="#LOGONHOME"
9918 >               <TT
9919 CLASS="PARAMETER"
9920 ><I
9921 >logon home</I
9922 ></TT
9923 ></A
9924 > parameter.</P
9925 ><P
9926 >This option takes the standard substitutions, allowing you 
9927                 to have separate logon scripts for each user or machine.  It also 
9928                 specifies the directory from which the "Application Data", 
9929                 (<TT
9930 CLASS="FILENAME"
9931 >desktop</TT
9932 >, <TT
9933 CLASS="FILENAME"
9934 >start menu</TT
9935 >,
9936                 <TT
9937 CLASS="FILENAME"
9938 >network neighborhood</TT
9939 >, <TT
9940 CLASS="FILENAME"
9941 >programs</TT
9942
9943                 and other folders, and their contents, are loaded and displayed on 
9944                 your Windows NT client.</P
9945 ><P
9946 >The share and the path must be readable by the user for 
9947                 the preferences and directories to be loaded onto the Windows NT
9948                 client.  The share must be writeable when the user logs in for the first
9949                 time, in order that the Windows NT client can create the NTuser.dat
9950                 and other directories.</P
9951 ><P
9952 >Thereafter, the directories and any of the contents can, 
9953                 if required, be made read-only.  It is not advisable that the 
9954                 NTuser.dat file be made read-only - rename it to NTuser.man to 
9955                 achieve the desired effect (a <EM
9956 >MAN</EM
9957 >datory 
9958                 profile). </P
9959 ><P
9960 >Windows clients can sometimes maintain a connection to 
9961                 the [homes] share, even though there is no user logged in.  
9962                 Therefore, it is vital that the logon path does not include a 
9963                 reference to the homes share (i.e. setting this parameter to
9964                 \%N\%U\profile_path will cause problems).</P
9965 ><P
9966 >This option takes the standard substitutions, allowing 
9967                 you to have separate logon scripts for each user or machine.</P
9968 ><P
9969 >Note that this option is only useful if Samba is set up 
9970                 as a logon server.</P
9971 ><P
9972 >Default: <B
9973 CLASS="COMMAND"
9974 >logon path = \\%N\%U\profile</B
9975 ></P
9976 ><P
9977 >Example: <B
9978 CLASS="COMMAND"
9979 >logon path = \\PROFILESERVER\PROFILE\%U</B
9980 ></P
9981 ></DD
9982 ><DT
9983 ><A
9984 NAME="LOGONSCRIPT"
9985 ></A
9986 >logon script (G)</DT
9987 ><DD
9988 ><P
9989 >This parameter specifies the batch file (.bat) or 
9990                 NT command file (.cmd) to be downloaded and run on a machine when 
9991                 a user successfully logs in.  The file must contain the DOS 
9992                 style CR/LF line endings. Using a DOS-style editor to create the 
9993                 file is recommended.</P
9994 ><P
9995 >The script must be a relative path to the [netlogon] 
9996                 service.  If the [netlogon] service specifies a <A
9997 HREF="#PATH"
9998 >               <TT
9999 CLASS="PARAMETER"
10000 ><I
10001 >path</I
10002 ></TT
10003 ></A
10004 > of <TT
10005 CLASS="FILENAME"
10006 >/usr/local/samba/netlogon
10007                 </TT
10008 >, and <B
10009 CLASS="COMMAND"
10010 >logon script = STARTUP.BAT</B
10011 >, then 
10012                 the file that will be downloaded is:</P
10013 ><P
10014 ><TT
10015 CLASS="FILENAME"
10016 >/usr/local/samba/netlogon/STARTUP.BAT</TT
10017 ></P
10018 ><P
10019 >The contents of the batch file are entirely your choice.  A 
10020                 suggested command would be to add <B
10021 CLASS="COMMAND"
10022 >NET TIME \\SERVER /SET 
10023                 /YES</B
10024 >, to force every machine to synchronize clocks with 
10025                 the same time server.  Another use would be to add <B
10026 CLASS="COMMAND"
10027 >NET USE 
10028                 U: \\SERVER\UTILS</B
10029 > for commonly used utilities, or <B
10030 CLASS="COMMAND"
10031 >               NET USE Q: \\SERVER\ISO9001_QA</B
10032 > for example.</P
10033 ><P
10034 >Note that it is particularly important not to allow write 
10035                 access to the [netlogon] share, or to grant users write permission 
10036                 on the batch files in a secure environment, as this would allow 
10037                 the batch files to be arbitrarily modified and security to be 
10038                 breached.</P
10039 ><P
10040 >This option takes the standard substitutions, allowing you 
10041                 to have separate logon scripts for each user or machine.</P
10042 ><P
10043 >This option is only useful if Samba is set up as a logon 
10044                 server.</P
10045 ><P
10046 >Default: <EM
10047 >no logon script defined</EM
10048 ></P
10049 ><P
10050 >Example: <B
10051 CLASS="COMMAND"
10052 >logon script = scripts\%U.bat</B
10053 ></P
10054 ></DD
10055 ><DT
10056 ><A
10057 NAME="LPPAUSECOMMAND"
10058 ></A
10059 >lppause command (S)</DT
10060 ><DD
10061 ><P
10062 >This parameter specifies the command to be 
10063                 executed on the server host in order to stop printing or spooling 
10064                 a specific print job.</P
10065 ><P
10066 >This command should be a program or script which takes 
10067                 a printer name and job number to pause the print job. One way 
10068                 of implementing this is by using job priorities, where jobs 
10069                 having a too low priority won't be sent to the printer.</P
10070 ><P
10071 >If a <TT
10072 CLASS="PARAMETER"
10073 ><I
10074 >%p</I
10075 ></TT
10076 > is given then the printer name 
10077                 is put in its place. A <TT
10078 CLASS="PARAMETER"
10079 ><I
10080 >%j</I
10081 ></TT
10082 > is replaced with 
10083                 the job number (an integer).  On HPUX (see <TT
10084 CLASS="PARAMETER"
10085 ><I
10086 >printing=hpux
10087                 </I
10088 ></TT
10089 >), if the <TT
10090 CLASS="PARAMETER"
10091 ><I
10092 >-p%p</I
10093 ></TT
10094 > option is added 
10095                 to the lpq command, the job will show up with the correct status, i.e. 
10096                 if the job priority is lower than the set fence priority it will 
10097                 have the PAUSED status, whereas if  the priority is equal or higher it 
10098                 will have the SPOOLED or PRINTING status.</P
10099 ><P
10100 >Note that it is good practice to include the absolute path 
10101                 in the lppause command as the PATH may not be available to the server.</P
10102 ><P
10103 >See also the <A
10104 HREF="#PRINTING"
10105 ><TT
10106 CLASS="PARAMETER"
10107 ><I
10108 >printing
10109                 </I
10110 ></TT
10111 ></A
10112 > parameter.</P
10113 ><P
10114 >Default: Currently no default value is given to 
10115                 this string, unless the value of the <TT
10116 CLASS="PARAMETER"
10117 ><I
10118 >printing</I
10119 ></TT
10120
10121                 parameter is <TT
10122 CLASS="CONSTANT"
10123 >SYSV</TT
10124 >, in which case the default is :</P
10125 ><P
10126 ><B
10127 CLASS="COMMAND"
10128 >lp -i %p-%j -H hold</B
10129 ></P
10130 ><P
10131 >or if the value of the <TT
10132 CLASS="PARAMETER"
10133 ><I
10134 >printing</I
10135 ></TT
10136 > parameter 
10137                 is <TT
10138 CLASS="CONSTANT"
10139 >SOFTQ</TT
10140 >, then the default is:</P
10141 ><P
10142 ><B
10143 CLASS="COMMAND"
10144 >qstat -s -j%j -h</B
10145 ></P
10146 ><P
10147 >Example for HPUX: <B
10148 CLASS="COMMAND"
10149 >lppause command = /usr/bin/lpalt       
10150                 %p-%j -p0</B
10151 ></P
10152 ></DD
10153 ><DT
10154 ><A
10155 NAME="LPQCACHETIME"
10156 ></A
10157 >lpq cache time (G)</DT
10158 ><DD
10159 ><P
10160 >This controls how long lpq info will be cached 
10161                 for to prevent the <B
10162 CLASS="COMMAND"
10163 >lpq</B
10164 > command being called too 
10165                 often. A separate cache is kept for each variation of the <B
10166 CLASS="COMMAND"
10167 >               lpq</B
10168 > command used by the system, so if you use different 
10169                 <B
10170 CLASS="COMMAND"
10171 >lpq</B
10172 > commands for different users then they won't
10173                 share cache information.</P
10174 ><P
10175 >The cache files are stored in <TT
10176 CLASS="FILENAME"
10177 >/tmp/lpq.xxxx</TT
10178
10179                 where xxxx is a hash of the <B
10180 CLASS="COMMAND"
10181 >lpq</B
10182 > command in use.</P
10183 ><P
10184 >The default is 10 seconds, meaning that the cached results 
10185                 of a previous identical <B
10186 CLASS="COMMAND"
10187 >lpq</B
10188 > command will be used 
10189                 if the cached data is less than 10 seconds old. A large value may 
10190                 be advisable if your <B
10191 CLASS="COMMAND"
10192 >lpq</B
10193 > command is very slow.</P
10194 ><P
10195 >A value of 0 will disable caching completely.</P
10196 ><P
10197 >See also the <A
10198 HREF="#PRINTING"
10199 ><TT
10200 CLASS="PARAMETER"
10201 ><I
10202 >printing
10203                 </I
10204 ></TT
10205 ></A
10206 > parameter.</P
10207 ><P
10208 >Default: <B
10209 CLASS="COMMAND"
10210 >lpq cache time = 10</B
10211 ></P
10212 ><P
10213 >Example: <B
10214 CLASS="COMMAND"
10215 >lpq cache time = 30</B
10216 ></P
10217 ></DD
10218 ><DT
10219 ><A
10220 NAME="LPQCOMMAND"
10221 ></A
10222 >lpq command (S)</DT
10223 ><DD
10224 ><P
10225 >This parameter specifies the command to be 
10226                 executed on the server host in order to obtain <B
10227 CLASS="COMMAND"
10228 >lpq
10229                 </B
10230 >-style printer status information.</P
10231 ><P
10232 >This command should be a program or script which 
10233                 takes a printer name as its only parameter and outputs printer 
10234                 status information.</P
10235 ><P
10236 >Currently nine styles of printer status information 
10237                 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ. 
10238                 This covers most UNIX systems. You control which type is expected 
10239                 using the <TT
10240 CLASS="PARAMETER"
10241 ><I
10242 >printing =</I
10243 ></TT
10244 > option.</P
10245 ><P
10246 >Some clients (notably Windows for Workgroups) may not 
10247                 correctly send the connection number for the printer they are 
10248                 requesting status information about. To get around this, the 
10249                 server reports on the first printer service connected to by the 
10250                 client. This only happens if the connection number sent is invalid.</P
10251 ><P
10252 >If a <TT
10253 CLASS="PARAMETER"
10254 ><I
10255 >%p</I
10256 ></TT
10257 > is given then the printer name 
10258                 is put in its place. Otherwise it is placed at the end of the 
10259                 command.</P
10260 ><P
10261 >Note that it is good practice to include the absolute path 
10262                 in the <TT
10263 CLASS="PARAMETER"
10264 ><I
10265 >lpq command</I
10266 ></TT
10267 > as the <TT
10268 CLASS="ENVAR"
10269 >$PATH
10270                 </TT
10271 > may not be available to the server.  When compiled with
10272                 the CUPS libraries, no <TT
10273 CLASS="PARAMETER"
10274 ><I
10275 >lpq command</I
10276 ></TT
10277 > is
10278                 needed because smbd will make a library call to obtain the 
10279                 print queue listing.</P
10280 ><P
10281 >See also the <A
10282 HREF="#PRINTING"
10283 ><TT
10284 CLASS="PARAMETER"
10285 ><I
10286 >printing
10287                 </I
10288 ></TT
10289 ></A
10290 > parameter.</P
10291 ><P
10292 >Default: <EM
10293 >depends on the setting of <TT
10294 CLASS="PARAMETER"
10295 ><I
10296 >               printing</I
10297 ></TT
10298 ></EM
10299 ></P
10300 ><P
10301 >Example: <B
10302 CLASS="COMMAND"
10303 >lpq command = /usr/bin/lpq -P%p</B
10304 ></P
10305 ></DD
10306 ><DT
10307 ><A
10308 NAME="LPRESUMECOMMAND"
10309 ></A
10310 >lpresume command (S)</DT
10311 ><DD
10312 ><P
10313 >This parameter specifies the command to be 
10314                 executed on the server host in order to restart or continue 
10315                 printing or spooling a specific print job.</P
10316 ><P
10317 >This command should be a program or script which takes 
10318                 a printer name and job number to resume the print job. See 
10319                 also the <A
10320 HREF="#LPPAUSECOMMAND"
10321 ><TT
10322 CLASS="PARAMETER"
10323 ><I
10324 >lppause command
10325                 </I
10326 ></TT
10327 ></A
10328 > parameter.</P
10329 ><P
10330 >If a <TT
10331 CLASS="PARAMETER"
10332 ><I
10333 >%p</I
10334 ></TT
10335 > is given then the printer name 
10336                 is put in its place. A <TT
10337 CLASS="PARAMETER"
10338 ><I
10339 >%j</I
10340 ></TT
10341 > is replaced with 
10342                 the job number (an integer).</P
10343 ><P
10344 >Note that it is good practice to include the absolute path 
10345                 in the <TT
10346 CLASS="PARAMETER"
10347 ><I
10348 >lpresume command</I
10349 ></TT
10350 > as the PATH may not 
10351                 be available to the server.</P
10352 ><P
10353 >See also the <A
10354 HREF="#PRINTING"
10355 ><TT
10356 CLASS="PARAMETER"
10357 ><I
10358 >printing
10359                 </I
10360 ></TT
10361 ></A
10362 > parameter.</P
10363 ><P
10364 >Default: Currently no default value is given 
10365                 to this string, unless the value of the <TT
10366 CLASS="PARAMETER"
10367 ><I
10368 >printing</I
10369 ></TT
10370
10371                 parameter is <TT
10372 CLASS="CONSTANT"
10373 >SYSV</TT
10374 >, in which case the default is :</P
10375 ><P
10376 ><B
10377 CLASS="COMMAND"
10378 >lp -i %p-%j -H resume</B
10379 ></P
10380 ><P
10381 >or if the value of the <TT
10382 CLASS="PARAMETER"
10383 ><I
10384 >printing</I
10385 ></TT
10386 > parameter 
10387                 is <TT
10388 CLASS="CONSTANT"
10389 >SOFTQ</TT
10390 >, then the default is:</P
10391 ><P
10392 ><B
10393 CLASS="COMMAND"
10394 >qstat -s -j%j -r</B
10395 ></P
10396 ><P
10397 >Example for HPUX: <B
10398 CLASS="COMMAND"
10399 >lpresume command = /usr/bin/lpalt 
10400                 %p-%j -p2</B
10401 ></P
10402 ></DD
10403 ><DT
10404 ><A
10405 NAME="LPRMCOMMAND"
10406 ></A
10407 >lprm command (S)</DT
10408 ><DD
10409 ><P
10410 >This parameter specifies the command to be 
10411                 executed on the server host in order to delete a print job.</P
10412 ><P
10413 >This command should be a program or script which takes 
10414                 a printer name and job number, and deletes the print job.</P
10415 ><P
10416 >If a <TT
10417 CLASS="PARAMETER"
10418 ><I
10419 >%p</I
10420 ></TT
10421 > is given then the printer name 
10422                 is put in its place. A <TT
10423 CLASS="PARAMETER"
10424 ><I
10425 >%j</I
10426 ></TT
10427 > is replaced with 
10428                 the job number (an integer).</P
10429 ><P
10430 >Note that it is good practice to include the absolute 
10431                 path in the <TT
10432 CLASS="PARAMETER"
10433 ><I
10434 >lprm command</I
10435 ></TT
10436 > as the PATH may not be 
10437                 available to the server.</P
10438 ><P
10439 >See also the <A
10440 HREF="#PRINTING"
10441 ><TT
10442 CLASS="PARAMETER"
10443 ><I
10444 >printing
10445                 </I
10446 ></TT
10447 ></A
10448 > parameter.</P
10449 ><P
10450 >Default: <EM
10451 >depends on the setting of <TT
10452 CLASS="PARAMETER"
10453 ><I
10454 >printing
10455                 </I
10456 ></TT
10457 ></EM
10458 ></P
10459 ><P
10460 >Example 1: <B
10461 CLASS="COMMAND"
10462 >lprm command = /usr/bin/lprm -P%p %j
10463                 </B
10464 ></P
10465 ><P
10466 >Example 2: <B
10467 CLASS="COMMAND"
10468 >lprm command = /usr/bin/cancel %p-%j
10469                 </B
10470 ></P
10471 ></DD
10472 ><DT
10473 ><A
10474 NAME="MACHINEPASSWORDTIMEOUT"
10475 ></A
10476 >machine password timeout (G)</DT
10477 ><DD
10478 ><P
10479 >If a Samba server is a member of a Windows 
10480                 NT Domain (see the <A
10481 HREF="#SECURITYEQUALSDOMAIN"
10482 >security = domain</A
10483 >) 
10484                 parameter) then periodically a running <A
10485 HREF="smbd.8.html"
10486 TARGET="_top"
10487 >               smbd(8)</A
10488 > process will try and change the MACHINE ACCOUNT 
10489                 PASSWORD stored in the TDB called <TT
10490 CLASS="FILENAME"
10491 >private/secrets.tdb
10492                 </TT
10493 >.  This parameter specifies how often this password 
10494                 will be changed, in seconds. The default is one week (expressed in 
10495                 seconds), the same as a Windows NT Domain member server.</P
10496 ><P
10497 >See also <A
10498 HREF="smbpasswd.8.html"
10499 TARGET="_top"
10500 ><B
10501 CLASS="COMMAND"
10502 >smbpasswd(8)
10503                 </B
10504 ></A
10505 >, and the <A
10506 HREF="#SECURITYEQUALSDOMAIN"
10507 >               security = domain</A
10508 >) parameter.</P
10509 ><P
10510 >Default: <B
10511 CLASS="COMMAND"
10512 >machine password timeout = 604800</B
10513 ></P
10514 ></DD
10515 ><DT
10516 ><A
10517 NAME="MAGICOUTPUT"
10518 ></A
10519 >magic output (S)</DT
10520 ><DD
10521 ><P
10522 >This parameter specifies the name of a file 
10523                 which will contain output created by a magic script (see the 
10524                 <A
10525 HREF="#MAGICSCRIPT"
10526 ><TT
10527 CLASS="PARAMETER"
10528 ><I
10529 >magic script</I
10530 ></TT
10531 ></A
10532 >
10533                 parameter below).</P
10534 ><P
10535 >Warning: If two clients use the same <TT
10536 CLASS="PARAMETER"
10537 ><I
10538 >magic script
10539                 </I
10540 ></TT
10541 > in the same directory the output file content
10542                 is undefined.</P
10543 ><P
10544 >Default: <B
10545 CLASS="COMMAND"
10546 >magic output = &#60;magic script name&#62;.out
10547                 </B
10548 ></P
10549 ><P
10550 >Example: <B
10551 CLASS="COMMAND"
10552 >magic output = myfile.txt</B
10553 ></P
10554 ></DD
10555 ><DT
10556 ><A
10557 NAME="MAGICSCRIPT"
10558 ></A
10559 >magic script (S)</DT
10560 ><DD
10561 ><P
10562 >This parameter specifies the name of a file which, 
10563                 if opened, will be executed by the server when the file is closed. 
10564                 This allows a UNIX script to be sent to the Samba host and 
10565                 executed on behalf of the connected user.</P
10566 ><P
10567 >Scripts executed in this way will be deleted upon 
10568                 completion assuming that the user has the appropriate level 
10569                 of privilege and the file permissions allow the deletion.</P
10570 ><P
10571 >If the script generates output, output will be sent to 
10572                 the file specified by the <A
10573 HREF="#MAGICOUTPUT"
10574 ><TT
10575 CLASS="PARAMETER"
10576 ><I
10577 >               magic output</I
10578 ></TT
10579 ></A
10580 > parameter (see above).</P
10581 ><P
10582 >Note that some shells are unable to interpret scripts 
10583                 containing CR/LF instead of CR as 
10584                 the end-of-line marker. Magic scripts must be executable 
10585                 <EM
10586 >as is</EM
10587 > on the host, which for some hosts and 
10588                 some shells will require filtering at the DOS end.</P
10589 ><P
10590 >Magic scripts are <EM
10591 >EXPERIMENTAL</EM
10592 > and 
10593                 should <EM
10594 >NOT</EM
10595 > be relied upon.</P
10596 ><P
10597 >Default: <EM
10598 >None. Magic scripts disabled.</EM
10599 ></P
10600 ><P
10601 >Example: <B
10602 CLASS="COMMAND"
10603 >magic script = user.csh</B
10604 ></P
10605 ></DD
10606 ><DT
10607 ><A
10608 NAME="MANGLECASE"
10609 ></A
10610 >mangle case (S)</DT
10611 ><DD
10612 ><P
10613 >See the section on <A
10614 HREF="#AEN203"
10615 >               NAME MANGLING</A
10616 ></P
10617 ><P
10618 >Default: <B
10619 CLASS="COMMAND"
10620 >mangle case = no</B
10621 ></P
10622 ></DD
10623 ><DT
10624 ><A
10625 NAME="MANGLEDMAP"
10626 ></A
10627 >mangled map (S)</DT
10628 ><DD
10629 ><P
10630 >This is for those who want to directly map UNIX 
10631                 file names which cannot be represented on Windows/DOS.  The mangling 
10632                 of names is not always what is needed.  In particular you may have 
10633                 documents with file extensions that differ between DOS and UNIX. 
10634                 For example, under UNIX it is common to use <TT
10635 CLASS="FILENAME"
10636 >.html</TT
10637
10638                 for HTML files, whereas under Windows/DOS <TT
10639 CLASS="FILENAME"
10640 >.htm</TT
10641
10642                 is more commonly used.</P
10643 ><P
10644 >So to map <TT
10645 CLASS="FILENAME"
10646 >html</TT
10647 > to <TT
10648 CLASS="FILENAME"
10649 >htm</TT
10650
10651                 you would use:</P
10652 ><P
10653 ><B
10654 CLASS="COMMAND"
10655 >mangled map = (*.html *.htm)</B
10656 ></P
10657 ><P
10658 >One very useful case is to remove the annoying <TT
10659 CLASS="FILENAME"
10660 >;1
10661                 </TT
10662 > off the ends of filenames on some CDROMs (only visible 
10663                 under some UNIXes). To do this use a map of (*;1 *;).</P
10664 ><P
10665 >Default: <EM
10666 >no mangled map</EM
10667 ></P
10668 ><P
10669 >Example: <B
10670 CLASS="COMMAND"
10671 >mangled map = (*;1 *;)</B
10672 ></P
10673 ></DD
10674 ><DT
10675 ><A
10676 NAME="MANGLEDNAMES"
10677 ></A
10678 >mangled names (S)</DT
10679 ><DD
10680 ><P
10681 >This controls whether non-DOS names under UNIX 
10682                 should be mapped to DOS-compatible names ("mangled") and made visible, 
10683                 or whether non-DOS names should simply be ignored.</P
10684 ><P
10685 >See the section on <A
10686 HREF="#AEN203"
10687 >               NAME MANGLING</A
10688 > for details on how to control the mangling process.</P
10689 ><P
10690 >If mangling is used then the mangling algorithm is as follows:</P
10691 ><P
10692 ></P
10693 ><UL
10694 ><LI
10695 ><P
10696 >The first (up to) five alphanumeric characters 
10697                         before the rightmost dot of the filename are preserved, forced 
10698                         to upper case, and appear as the first (up to) five characters 
10699                         of the mangled name.</P
10700 ></LI
10701 ><LI
10702 ><P
10703 >A tilde "~" is appended to the first part of the mangled
10704                         name, followed by a two-character unique sequence, based on the
10705                         original root name (i.e., the original filename minus its final
10706                         extension). The final extension is included in the hash calculation
10707                         only if it contains any upper case characters or is longer than three
10708                         characters.</P
10709 ><P
10710 >Note that the character to use may be specified using 
10711                         the <A
10712 HREF="#MANGLINGCHAR"
10713 ><TT
10714 CLASS="PARAMETER"
10715 ><I
10716 >mangling char</I
10717 ></TT
10718 >
10719                         </A
10720 > option, if you don't like '~'.</P
10721 ></LI
10722 ><LI
10723 ><P
10724 >The first three alphanumeric characters of the final 
10725                         extension are preserved, forced to upper case and appear as the 
10726                         extension of the mangled name. The final extension is defined as that 
10727                         part of the original filename after the rightmost dot. If there are no 
10728                         dots in the filename, the mangled name will have no extension (except 
10729                         in the case of "hidden files" - see below).</P
10730 ></LI
10731 ><LI
10732 ><P
10733 >Files whose UNIX name begins with a dot will be 
10734                         presented as DOS hidden files. The mangled name will be created as 
10735                         for other filenames, but with the leading dot removed and "___" as 
10736                         its extension regardless of actual original extension (that's three 
10737                         underscores).</P
10738 ></LI
10739 ></UL
10740 ><P
10741 >The two-digit hash value consists of upper case 
10742                 alphanumeric characters.</P
10743 ><P
10744 >This algorithm can cause name collisions only if files 
10745                 in a directory share the same first five alphanumeric characters. 
10746                 The probability of such a clash is 1/1300.</P
10747 ><P
10748 >The name mangling (if enabled) allows a file to be 
10749                 copied between UNIX directories from Windows/DOS while retaining 
10750                 the long UNIX filename. UNIX files can be renamed to a new extension 
10751                 from Windows/DOS and will retain the same basename. Mangled names 
10752                 do not change between sessions.</P
10753 ><P
10754 >Default: <B
10755 CLASS="COMMAND"
10756 >mangled names = yes</B
10757 ></P
10758 ></DD
10759 ><DT
10760 ><A
10761 NAME="MANGLEDSTACK"
10762 ></A
10763 >mangled stack (G)</DT
10764 ><DD
10765 ><P
10766 >This parameter controls the number of mangled names 
10767                 that should be cached in the Samba server <A
10768 HREF="smbd.8.html"
10769 TARGET="_top"
10770 >               smbd(8)</A
10771 >.</P
10772 ><P
10773 >This stack is a list of recently mangled base names 
10774                 (extensions are only maintained if they are longer than 3 characters 
10775                 or contains upper case characters).</P
10776 ><P
10777 >The larger this value, the more likely it is that mangled 
10778                 names can be successfully converted to correct long UNIX names. 
10779                 However, large stack sizes will slow most directory accesses. Smaller 
10780                 stacks save memory in the server (each stack element costs 256 bytes).
10781                 </P
10782 ><P
10783 >It is not possible to absolutely guarantee correct long 
10784                 filenames, so be prepared for some surprises!</P
10785 ><P
10786 >Default: <B
10787 CLASS="COMMAND"
10788 >mangled stack = 50</B
10789 ></P
10790 ><P
10791 >Example: <B
10792 CLASS="COMMAND"
10793 >mangled stack = 100</B
10794 ></P
10795 ></DD
10796 ><DT
10797 ><A
10798 NAME="MANGLINGCHAR"
10799 ></A
10800 >mangling char (S)</DT
10801 ><DD
10802 ><P
10803 >This controls what character is used as 
10804                 the <EM
10805 >magic</EM
10806 > character in <A
10807 HREF="#AEN203"
10808 >name mangling</A
10809 >. The default is a '~'
10810                 but this may interfere with some software. Use this option to set 
10811                 it to whatever you prefer.</P
10812 ><P
10813 >Default: <B
10814 CLASS="COMMAND"
10815 >mangling char = ~</B
10816 ></P
10817 ><P
10818 >Example: <B
10819 CLASS="COMMAND"
10820 >mangling char = ^</B
10821 ></P
10822 ></DD
10823 ><DT
10824 ><A
10825 NAME="MAPARCHIVE"
10826 ></A
10827 >map archive (S)</DT
10828 ><DD
10829 ><P
10830 >This controls whether the DOS archive attribute 
10831                 should be mapped to the UNIX owner execute bit.  The DOS archive bit 
10832                 is set when a file has been modified since its last backup.  One 
10833                 motivation for this option it to keep Samba/your PC from making 
10834                 any file it touches from becoming executable under UNIX.  This can 
10835                 be quite annoying for shared source code, documents, etc...</P
10836 ><P
10837 >Note that this requires the <TT
10838 CLASS="PARAMETER"
10839 ><I
10840 >create mask</I
10841 ></TT
10842 >
10843                 parameter to be set such that owner execute bit is not masked out 
10844                 (i.e. it must include 100). See the parameter <A
10845 HREF="#CREATEMASK"
10846 >               <TT
10847 CLASS="PARAMETER"
10848 ><I
10849 >create mask</I
10850 ></TT
10851 ></A
10852 > for details.</P
10853 ><P
10854 >Default: <B
10855 CLASS="COMMAND"
10856 >map archive = yes</B
10857 ></P
10858 ></DD
10859 ><DT
10860 ><A
10861 NAME="MAPHIDDEN"
10862 ></A
10863 >map hidden (S)</DT
10864 ><DD
10865 ><P
10866 >This controls whether DOS style hidden files 
10867                 should be mapped to the UNIX world execute bit.</P
10868 ><P
10869 >Note that this requires the <TT
10870 CLASS="PARAMETER"
10871 ><I
10872 >create mask</I
10873 ></TT
10874
10875                 to be set such that the world execute bit is not masked out (i.e. 
10876                 it must include 001). See the parameter <A
10877 HREF="#CREATEMASK"
10878 >               <TT
10879 CLASS="PARAMETER"
10880 ><I
10881 >create mask</I
10882 ></TT
10883 ></A
10884 > for details.</P
10885 ><P
10886 >Default: <B
10887 CLASS="COMMAND"
10888 >map hidden = no</B
10889 ></P
10890 ></DD
10891 ><DT
10892 ><A
10893 NAME="MAPSYSTEM"
10894 ></A
10895 >map system (S)</DT
10896 ><DD
10897 ><P
10898 >This controls whether DOS style system files 
10899                 should be mapped to the UNIX group execute bit.</P
10900 ><P
10901 >Note that this requires the <TT
10902 CLASS="PARAMETER"
10903 ><I
10904 >create mask</I
10905 ></TT
10906
10907                 to be set such that the group execute bit is not masked out (i.e. 
10908                 it must include 010). See the parameter <A
10909 HREF="#CREATEMASK"
10910 >               <TT
10911 CLASS="PARAMETER"
10912 ><I
10913 >create mask</I
10914 ></TT
10915 ></A
10916 > for details.</P
10917 ><P
10918 >Default: <B
10919 CLASS="COMMAND"
10920 >map system = no</B
10921 ></P
10922 ></DD
10923 ><DT
10924 ><A
10925 NAME="MAPTOGUEST"
10926 ></A
10927 >map to guest (G)</DT
10928 ><DD
10929 ><P
10930 >This parameter is only useful in <A
10931 HREF="#SECURITY"
10932 >               security</A
10933 > modes other than <TT
10934 CLASS="PARAMETER"
10935 ><I
10936 >security = share</I
10937 ></TT
10938
10939                 - i.e. <TT
10940 CLASS="CONSTANT"
10941 >user</TT
10942 >, <TT
10943 CLASS="CONSTANT"
10944 >server</TT
10945 >, 
10946                 and <TT
10947 CLASS="CONSTANT"
10948 >domain</TT
10949 >.</P
10950 ><P
10951 >This parameter can take three different values, which tell
10952                 <A
10953 HREF="smbd.8.html"
10954 TARGET="_top"
10955 >smbd(8)</A
10956 > what to do with user 
10957                 login requests that don't match a valid UNIX user in some way.</P
10958 ><P
10959 >The three settings are :</P
10960 ><P
10961 ></P
10962 ><UL
10963 ><LI
10964 ><P
10965 ><TT
10966 CLASS="CONSTANT"
10967 >Never</TT
10968 > - Means user login 
10969                         requests with an invalid password are rejected. This is the 
10970                         default.</P
10971 ></LI
10972 ><LI
10973 ><P
10974 ><TT
10975 CLASS="CONSTANT"
10976 >Bad User</TT
10977 > - Means user
10978                         logins with an invalid password are rejected, unless the username 
10979                         does not exist, in which case it is treated as a guest login and 
10980                         mapped into the <A
10981 HREF="#GUESTACCOUNT"
10982 ><TT
10983 CLASS="PARAMETER"
10984 ><I
10985 >                       guest account</I
10986 ></TT
10987 ></A
10988 >.</P
10989 ></LI
10990 ><LI
10991 ><P
10992 ><TT
10993 CLASS="CONSTANT"
10994 >Bad Password</TT
10995 > - Means user logins 
10996                         with an invalid password are treated as a guest login and mapped 
10997                         into the <A
10998 HREF="#GUESTACCOUNT"
10999 >guest account</A
11000 >. Note that 
11001                         this can cause problems as it means that any user incorrectly typing 
11002                         their password will be silently logged on as "guest" - and 
11003                         will not know the reason they cannot access files they think
11004                         they should - there will have been no message given to them
11005                         that they got their password wrong. Helpdesk services will
11006                         <EM
11007 >hate</EM
11008 > you if you set the <TT
11009 CLASS="PARAMETER"
11010 ><I
11011 >map to 
11012                         guest</I
11013 ></TT
11014 > parameter this way :-).</P
11015 ></LI
11016 ></UL
11017 ><P
11018 >Note that this parameter is needed to set up "Guest" 
11019                 share services when using <TT
11020 CLASS="PARAMETER"
11021 ><I
11022 >security</I
11023 ></TT
11024 > modes other than 
11025                 share. This is because in these modes the name of the resource being
11026                 requested is <EM
11027 >not</EM
11028 > sent to the server until after 
11029                 the server has successfully authenticated the client so the server 
11030                 cannot make authentication decisions at the correct time (connection 
11031                 to the share) for "Guest" shares.</P
11032 ><P
11033 >For people familiar with the older Samba releases, this 
11034                 parameter maps to the old compile-time setting of the <TT
11035 CLASS="CONSTANT"
11036 >               GUEST_SESSSETUP</TT
11037 > value in local.h.</P
11038 ><P
11039 >Default: <B
11040 CLASS="COMMAND"
11041 >map to guest = Never</B
11042 ></P
11043 ><P
11044 >Example: <B
11045 CLASS="COMMAND"
11046 >map to guest = Bad User</B
11047 ></P
11048 ></DD
11049 ><DT
11050 ><A
11051 NAME="MAXCONNECTIONS"
11052 ></A
11053 >max connections (S)</DT
11054 ><DD
11055 ><P
11056 >This option allows the number of simultaneous 
11057                 connections to a service to be limited. If <TT
11058 CLASS="PARAMETER"
11059 ><I
11060 >max connections
11061                 </I
11062 ></TT
11063 > is greater than 0 then connections will be refused if 
11064                 this number of connections to the service are already open. A value 
11065                 of zero mean an unlimited number of connections may be made.</P
11066 ><P
11067 >Record lock files are used to implement this feature. The 
11068                 lock files will be stored in the directory specified by the <A
11069 HREF="#LOCKDIRECTORY"
11070 ><TT
11071 CLASS="PARAMETER"
11072 ><I
11073 >lock directory</I
11074 ></TT
11075 ></A
11076
11077                 option.</P
11078 ><P
11079 >Default: <B
11080 CLASS="COMMAND"
11081 >max connections = 0</B
11082 ></P
11083 ><P
11084 >Example: <B
11085 CLASS="COMMAND"
11086 >max connections = 10</B
11087 ></P
11088 ></DD
11089 ><DT
11090 ><A
11091 NAME="MAXDISKSIZE"
11092 ></A
11093 >max disk size (G)</DT
11094 ><DD
11095 ><P
11096 >This option allows you to put an upper limit 
11097                 on the apparent size of disks. If you set this option to 100 
11098                 then all shares will appear to be not larger than 100 MB in 
11099                 size.</P
11100 ><P
11101 >Note that this option does not limit the amount of 
11102                 data you can put on the disk. In the above case you could still 
11103                 store much more than 100 MB on the disk, but if a client ever asks 
11104                 for the amount of free disk space or the total disk size then the 
11105                 result will be bounded by the amount specified in <TT
11106 CLASS="PARAMETER"
11107 ><I
11108 >max 
11109                 disk size</I
11110 ></TT
11111 >.</P
11112 ><P
11113 >This option is primarily useful to work around bugs 
11114                 in some pieces of software that can't handle very large disks, 
11115                 particularly disks over 1GB in size.</P
11116 ><P
11117 >A <TT
11118 CLASS="PARAMETER"
11119 ><I
11120 >max disk size</I
11121 ></TT
11122 > of 0 means no limit.</P
11123 ><P
11124 >Default: <B
11125 CLASS="COMMAND"
11126 >max disk size = 0</B
11127 ></P
11128 ><P
11129 >Example: <B
11130 CLASS="COMMAND"
11131 >max disk size = 1000</B
11132 ></P
11133 ></DD
11134 ><DT
11135 ><A
11136 NAME="MAXLOGSIZE"
11137 ></A
11138 >max log size (G)</DT
11139 ><DD
11140 ><P
11141 >This option (an integer in kilobytes) specifies 
11142                 the max size the log file should grow to. Samba periodically checks 
11143                 the size and if it is exceeded it will rename the file, adding 
11144                 a <TT
11145 CLASS="FILENAME"
11146 >.old</TT
11147 > extension.</P
11148 ><P
11149 >A size of 0 means no limit.</P
11150 ><P
11151 >Default: <B
11152 CLASS="COMMAND"
11153 >max log size = 5000</B
11154 ></P
11155 ><P
11156 >Example: <B
11157 CLASS="COMMAND"
11158 >max log size = 1000</B
11159 ></P
11160 ></DD
11161 ><DT
11162 ><A
11163 NAME="MAXMUX"
11164 ></A
11165 >max mux (G)</DT
11166 ><DD
11167 ><P
11168 >This option controls the maximum number of 
11169                 outstanding simultaneous SMB operations that Samba tells the client 
11170                 it will allow. You should never need to set this parameter.</P
11171 ><P
11172 >Default: <B
11173 CLASS="COMMAND"
11174 >max mux = 50</B
11175 ></P
11176 ></DD
11177 ><DT
11178 ><A
11179 NAME="MAXOPENFILES"
11180 ></A
11181 >max open files (G)</DT
11182 ><DD
11183 ><P
11184 >This parameter limits the maximum number of 
11185                 open files that one <A
11186 HREF="smbd.8.html"
11187 TARGET="_top"
11188 >smbd(8)</A
11189 > file 
11190                 serving process may have open for a client at any one time. The 
11191                 default for this parameter is set very high (10,000) as Samba uses 
11192                 only one bit per unopened file.</P
11193 ><P
11194 >The limit of the number of open files is usually set 
11195                 by the UNIX per-process file descriptor limit rather than 
11196                 this parameter so you should never need to touch this parameter.</P
11197 ><P
11198 >Default: <B
11199 CLASS="COMMAND"
11200 >max open files = 10000</B
11201 ></P
11202 ></DD
11203 ><DT
11204 ><A
11205 NAME="MAXPRINTJOBS"
11206 ></A
11207 >max print jobs (S)</DT
11208 ><DD
11209 ><P
11210 >This parameter limits the maximum number of 
11211                 jobs allowable in a Samba printer queue at any given moment.
11212                 If this number is exceeded, <A
11213 HREF="smbd.8.html"
11214 TARGET="_top"
11215 ><B
11216 CLASS="COMMAND"
11217 >               smbd(8)</B
11218 ></A
11219 > will remote "Out of Space" to the client.
11220                 See all <A
11221 HREF="#TOTALPRINTJOBS"
11222 ><TT
11223 CLASS="PARAMETER"
11224 ><I
11225 >total
11226                 print jobs</I
11227 ></TT
11228 ></A
11229 >.
11230                 </P
11231 ><P
11232 >Default: <B
11233 CLASS="COMMAND"
11234 >max print jobs = 1000</B
11235 ></P
11236 ><P
11237 >Example: <B
11238 CLASS="COMMAND"
11239 >max print jobs = 5000</B
11240 ></P
11241 ></DD
11242 ><DT
11243 ><A
11244 NAME="MAXPROTOCOL"
11245 ></A
11246 >max protocol (G)</DT
11247 ><DD
11248 ><P
11249 >The value of the parameter (a string) is the highest 
11250                 protocol level that will be supported by the server.</P
11251 ><P
11252 >Possible values are :</P
11253 ><P
11254 ></P
11255 ><UL
11256 ><LI
11257 ><P
11258 ><TT
11259 CLASS="CONSTANT"
11260 >CORE</TT
11261 >: Earliest version. No 
11262                         concept of user names.</P
11263 ></LI
11264 ><LI
11265 ><P
11266 ><TT
11267 CLASS="CONSTANT"
11268 >COREPLUS</TT
11269 >: Slight improvements on 
11270                         CORE for efficiency.</P
11271 ></LI
11272 ><LI
11273 ><P
11274 ><TT
11275 CLASS="CONSTANT"
11276 >LANMAN1</TT
11277 >: First <EM
11278 >                       modern</EM
11279 > version of the protocol. Long filename
11280                         support.</P
11281 ></LI
11282 ><LI
11283 ><P
11284 ><TT
11285 CLASS="CONSTANT"
11286 >LANMAN2</TT
11287 >: Updates to Lanman1 protocol.
11288                         </P
11289 ></LI
11290 ><LI
11291 ><P
11292 ><TT
11293 CLASS="CONSTANT"
11294 >NT1</TT
11295 >: Current up to date version of 
11296                         the protocol. Used by Windows NT. Known as CIFS.</P
11297 ></LI
11298 ></UL
11299 ><P
11300 >Normally this option should not be set as the automatic 
11301                 negotiation phase in the SMB protocol takes care of choosing 
11302                 the appropriate protocol.</P
11303 ><P
11304 >See also <A
11305 HREF="#MINPROTOCOL"
11306 ><TT
11307 CLASS="PARAMETER"
11308 ><I
11309 >min
11310                 protocol</I
11311 ></TT
11312 ></A
11313 ></P
11314 ><P
11315 >Default: <B
11316 CLASS="COMMAND"
11317 >max protocol = NT1</B
11318 ></P
11319 ><P
11320 >Example: <B
11321 CLASS="COMMAND"
11322 >max protocol = LANMAN1</B
11323 ></P
11324 ></DD
11325 ><DT
11326 ><A
11327 NAME="MAXSMBDPROCESSES"
11328 ></A
11329 >max smbd processes (G)</DT
11330 ><DD
11331 ><P
11332 >This parameter limits the maximum number of 
11333                 <A
11334 HREF="smbd.8.html"
11335 TARGET="_top"
11336 ><B
11337 CLASS="COMMAND"
11338 >smbd(8)</B
11339 ></A
11340 >
11341                 processes concurrently running on a system and is intended
11342                 as a stopgap to prevent degrading service to clients in the event
11343                 that the server has insufficient resources to handle more than this
11344                 number of connections.  Remember that under normal operating
11345                 conditions, each user will have an <A
11346 HREF="smbd.8.html"
11347 TARGET="_top"
11348 >smbd</A
11349 > associated with him or her
11350                 to handle connections to all shares from a given host.
11351                 </P
11352 ><P
11353 >Default: <B
11354 CLASS="COMMAND"
11355 >max smbd processes = 0</B
11356 >   ## no limit</P
11357 ><P
11358 >Example: <B
11359 CLASS="COMMAND"
11360 >max smbd processes = 1000</B
11361 ></P
11362 ></DD
11363 ><DT
11364 ><A
11365 NAME="MAXTTL"
11366 ></A
11367 >max ttl (G)</DT
11368 ><DD
11369 ><P
11370 >This option tells <A
11371 HREF="nmbd.8.html"
11372 TARGET="_top"
11373 >nmbd(8)</A
11374 >
11375                 what the default 'time to live' of NetBIOS names should be (in seconds) 
11376                 when <B
11377 CLASS="COMMAND"
11378 >nmbd</B
11379 > is requesting a name using either a
11380                 broadcast packet or from a WINS server. You should never need to
11381                 change this parameter. The default is 3 days.</P
11382 ><P
11383 >Default: <B
11384 CLASS="COMMAND"
11385 >max ttl = 259200</B
11386 ></P
11387 ></DD
11388 ><DT
11389 ><A
11390 NAME="MAXWINSTTL"
11391 ></A
11392 >max wins ttl (G)</DT
11393 ><DD
11394 ><P
11395 >This option tells <A
11396 HREF="nmbd.8.html"
11397 TARGET="_top"
11398 >nmbd(8)
11399                 </A
11400 > when acting as a WINS server (<A
11401 HREF="#WINSSUPPORT"
11402 >               <TT
11403 CLASS="PARAMETER"
11404 ><I
11405 >wins support = yes</I
11406 ></TT
11407 ></A
11408 >) what the maximum
11409                 'time to live' of NetBIOS names that <B
11410 CLASS="COMMAND"
11411 >nmbd</B
11412
11413                 will grant will be (in seconds). You should never need to change this
11414                 parameter.  The default is 6 days (518400 seconds).</P
11415 ><P
11416 >See also the <A
11417 HREF="#MINWINSTTL"
11418 ><TT
11419 CLASS="PARAMETER"
11420 ><I
11421 >min 
11422                 wins ttl</I
11423 ></TT
11424 ></A
11425 > parameter.</P
11426 ><P
11427 >Default: <B
11428 CLASS="COMMAND"
11429 >max wins ttl = 518400</B
11430 ></P
11431 ></DD
11432 ><DT
11433 ><A
11434 NAME="MAXXMIT"
11435 ></A
11436 >max xmit (G)</DT
11437 ><DD
11438 ><P
11439 >This option controls the maximum packet size 
11440                 that will be negotiated by Samba. The default is 65535, which 
11441                 is the maximum. In some cases you may find you get better performance 
11442                 with a smaller value. A value below 2048 is likely to cause problems.
11443                 </P
11444 ><P
11445 >Default: <B
11446 CLASS="COMMAND"
11447 >max xmit = 65535</B
11448 ></P
11449 ><P
11450 >Example: <B
11451 CLASS="COMMAND"
11452 >max xmit = 8192</B
11453 ></P
11454 ></DD
11455 ><DT
11456 ><A
11457 NAME="MESSAGECOMMAND"
11458 ></A
11459 >message command (G)</DT
11460 ><DD
11461 ><P
11462 >This specifies what command to run when the 
11463                 server receives a WinPopup style message.</P
11464 ><P
11465 >This would normally be a command that would 
11466                 deliver the message somehow. How this is to be done is 
11467                 up to your imagination.</P
11468 ><P
11469 >An example is:</P
11470 ><P
11471 ><B
11472 CLASS="COMMAND"
11473 >message command = csh -c 'xedit %s;rm %s' &#38;</B
11474 >
11475                 </P
11476 ><P
11477 >This delivers the message using <B
11478 CLASS="COMMAND"
11479 >xedit</B
11480 >, then 
11481                 removes it afterwards. <EM
11482 >NOTE THAT IT IS VERY IMPORTANT 
11483                 THAT THIS COMMAND RETURN IMMEDIATELY</EM
11484 >. That's why I 
11485                 have the '&#38;' on the end. If it doesn't return immediately then 
11486                 your PCs may freeze when sending messages (they should recover 
11487                 after 30 seconds, hopefully).</P
11488 ><P
11489 >All messages are delivered as the global guest user. 
11490                 The command takes the standard substitutions, although <TT
11491 CLASS="PARAMETER"
11492 ><I
11493 >               %u</I
11494 ></TT
11495 > won't work (<TT
11496 CLASS="PARAMETER"
11497 ><I
11498 >%U</I
11499 ></TT
11500 > may be better 
11501                 in this case).</P
11502 ><P
11503 >Apart from the standard substitutions, some additional 
11504                 ones apply. In particular:</P
11505 ><P
11506 ></P
11507 ><UL
11508 ><LI
11509 ><P
11510 ><TT
11511 CLASS="PARAMETER"
11512 ><I
11513 >%s</I
11514 ></TT
11515 > = the filename containing 
11516                         the message.</P
11517 ></LI
11518 ><LI
11519 ><P
11520 ><TT
11521 CLASS="PARAMETER"
11522 ><I
11523 >%t</I
11524 ></TT
11525 > = the destination that 
11526                         the message was sent to (probably the server name).</P
11527 ></LI
11528 ><LI
11529 ><P
11530 ><TT
11531 CLASS="PARAMETER"
11532 ><I
11533 >%f</I
11534 ></TT
11535 > = who the message 
11536                         is from.</P
11537 ></LI
11538 ></UL
11539 ><P
11540 >You could make this command send mail, or whatever else 
11541                 takes your fancy. Please let us know of any really interesting 
11542                 ideas you have.</P
11543 ><P
11544 >Here's a way of sending the messages as mail to root:</P
11545 ><P
11546 ><B
11547 CLASS="COMMAND"
11548 >message command = /bin/mail -s 'message from %f on 
11549                 %m' root &#60; %s; rm %s</B
11550 ></P
11551 ><P
11552 >If you don't have a message command then the message 
11553                 won't be delivered and Samba will tell the sender there was 
11554                 an error. Unfortunately WfWg totally ignores the error code 
11555                 and carries on regardless, saying that the message was delivered.
11556                 </P
11557 ><P
11558 >If you want to silently delete it then try:</P
11559 ><P
11560 ><B
11561 CLASS="COMMAND"
11562 >message command = rm %s</B
11563 ></P
11564 ><P
11565 >Default: <EM
11566 >no message command</EM
11567 ></P
11568 ><P
11569 >Example: <B
11570 CLASS="COMMAND"
11571 >message command = csh -c 'xedit %s;
11572                 rm %s' &#38;</B
11573 ></P
11574 ></DD
11575 ><DT
11576 ><A
11577 NAME="MINPASSWDLENGTH"
11578 ></A
11579 >min passwd length (G)</DT
11580 ><DD
11581 ><P
11582 >Synonym for <A
11583 HREF="#MINPASSWORDLENGTH"
11584 >               <TT
11585 CLASS="PARAMETER"
11586 ><I
11587 >min password length</I
11588 ></TT
11589 ></A
11590 >.</P
11591 ></DD
11592 ><DT
11593 ><A
11594 NAME="MINPASSWORDLENGTH"
11595 ></A
11596 >min password length (G)</DT
11597 ><DD
11598 ><P
11599 >This option sets the minimum length in characters 
11600                 of a plaintext password that <B
11601 CLASS="COMMAND"
11602 >smbd</B
11603 > will accept when performing 
11604                 UNIX password changing.</P
11605 ><P
11606 >See also <A
11607 HREF="#UNIXPASSWORDSYNC"
11608 ><TT
11609 CLASS="PARAMETER"
11610 ><I
11611 >unix 
11612                 password sync</I
11613 ></TT
11614 ></A
11615 >, <A
11616 HREF="#PASSWDPROGRAM"
11617 >               <TT
11618 CLASS="PARAMETER"
11619 ><I
11620 >passwd program</I
11621 ></TT
11622 ></A
11623 > and <A
11624 HREF="#PASSWDCHATDEBUG"
11625 ><TT
11626 CLASS="PARAMETER"
11627 ><I
11628 >passwd chat debug</I
11629 ></TT
11630 >
11631                 </A
11632 >.</P
11633 ><P
11634 >Default: <B
11635 CLASS="COMMAND"
11636 >min password length = 5</B
11637 ></P
11638 ></DD
11639 ><DT
11640 ><A
11641 NAME="MINPRINTSPACE"
11642 ></A
11643 >min print space (S)</DT
11644 ><DD
11645 ><P
11646 >This sets the minimum amount of free disk 
11647                 space that must be available before a user will be able to spool 
11648                 a print job. It is specified in kilobytes. The default is 0, which 
11649                 means a user can always spool a print job.</P
11650 ><P
11651 >See also the <A
11652 HREF="#PRINTING"
11653 ><TT
11654 CLASS="PARAMETER"
11655 ><I
11656 >printing
11657                 </I
11658 ></TT
11659 ></A
11660 > parameter.</P
11661 ><P
11662 >Default: <B
11663 CLASS="COMMAND"
11664 >min print space = 0</B
11665 ></P
11666 ><P
11667 >Example: <B
11668 CLASS="COMMAND"
11669 >min print space = 2000</B
11670 ></P
11671 ></DD
11672 ><DT
11673 ><A
11674 NAME="MINPROTOCOL"
11675 ></A
11676 >min protocol (G)</DT
11677 ><DD
11678 ><P
11679 >The value of the parameter (a string) is the 
11680                 lowest SMB protocol dialect than Samba will support.  Please refer
11681                 to the <A
11682 HREF="#MAXPROTOCOL"
11683 ><TT
11684 CLASS="PARAMETER"
11685 ><I
11686 >max protocol</I
11687 ></TT
11688 ></A
11689 >
11690                 parameter for a list of valid protocol names and a brief description
11691                 of each.  You may also wish to refer to the C source code in
11692                 <TT
11693 CLASS="FILENAME"
11694 >source/smbd/negprot.c</TT
11695 > for a listing of known protocol
11696                 dialects supported by clients.</P
11697 ><P
11698 >If you are viewing this parameter as a security measure, you should
11699                 also refer to the <A
11700 HREF="#LANMANAUTH"
11701 ><TT
11702 CLASS="PARAMETER"
11703 ><I
11704 >lanman 
11705                 auth</I
11706 ></TT
11707 ></A
11708 > parameter.  Otherwise, you should never need 
11709                 to change this parameter.</P
11710 ><P
11711 >Default : <B
11712 CLASS="COMMAND"
11713 >min protocol = CORE</B
11714 ></P
11715 ><P
11716 >Example : <B
11717 CLASS="COMMAND"
11718 >min protocol = NT1</B
11719 >  # disable DOS 
11720                 clients</P
11721 ></DD
11722 ><DT
11723 ><A
11724 NAME="MINWINSTTL"
11725 ></A
11726 >min wins ttl (G)</DT
11727 ><DD
11728 ><P
11729 >This option tells <A
11730 HREF="nmbd.8.html"
11731 TARGET="_top"
11732 >nmbd(8)</A
11733 >
11734                 when acting as a WINS server (<A
11735 HREF="#WINSSUPPORT"
11736 ><TT
11737 CLASS="PARAMETER"
11738 ><I
11739 >               wins support = yes</I
11740 ></TT
11741 ></A
11742 >) what the minimum 'time to live' 
11743                 of NetBIOS names that <B
11744 CLASS="COMMAND"
11745 >nmbd</B
11746 > will grant will be (in 
11747                 seconds). You should never need to change this parameter.  The default 
11748                 is 6 hours (21600 seconds).</P
11749 ><P
11750 >Default: <B
11751 CLASS="COMMAND"
11752 >min wins ttl = 21600</B
11753 ></P
11754 ></DD
11755 ><DT
11756 ><A
11757 NAME="MSDFSROOT"
11758 ></A
11759 >msdfs root (S)</DT
11760 ><DD
11761 ><P
11762 >This boolean parameter is only available if 
11763                 Samba is configured  and  compiled with the <B
11764 CLASS="COMMAND"
11765 >               --with-msdfs</B
11766 > option.  If set to <TT
11767 CLASS="CONSTANT"
11768 >yes</TT
11769 >, 
11770                 Samba treats the share as a Dfs root and  allows clients to browse 
11771                 the distributed file system tree rooted at the share directory. 
11772                 Dfs links are specified  in  the share directory by symbolic 
11773                 links of the form <TT
11774 CLASS="FILENAME"
11775 >msdfs:serverA\shareA,serverB\shareB
11776                 </TT
11777 > and so on.  For more information on setting up a Dfs tree 
11778                 on Samba,  refer to <A
11779 HREF="msdfs_setup.html"
11780 TARGET="_top"
11781 >msdfs_setup.html
11782                 </A
11783 >.</P
11784 ><P
11785 >See also <A
11786 HREF="#HOSTMSDFS"
11787 ><TT
11788 CLASS="PARAMETER"
11789 ><I
11790 >host msdfs
11791                 </I
11792 ></TT
11793 ></A
11794 ></P
11795 ><P
11796 >Default: <B
11797 CLASS="COMMAND"
11798 >msdfs root = no</B
11799 ></P
11800 ></DD
11801 ><DT
11802 ><A
11803 NAME="NAMERESOLVEORDER"
11804 ></A
11805 >name resolve order (G)</DT
11806 ><DD
11807 ><P
11808 >This option is used by the programs in the Samba 
11809                 suite to determine what naming services to use and in what order 
11810                 to resolve host names to IP addresses. The option takes a space 
11811                 separated string of name resolution options.</P
11812 ><P
11813 >The options are :"lmhosts", "host", "wins" and "bcast". They 
11814                 cause names to be resolved as follows :</P
11815 ><P
11816 ></P
11817 ><UL
11818 ><LI
11819 ><P
11820 ><TT
11821 CLASS="CONSTANT"
11822 >lmhosts</TT
11823 > : Lookup an IP 
11824                         address in the Samba lmhosts file. If the line in lmhosts has 
11825                         no name type attached to the NetBIOS name (see the <A
11826 HREF="lmhosts.5.html"
11827 TARGET="_top"
11828 >lmhosts(5)</A
11829 > for details) then
11830                         any name type matches for lookup.</P
11831 ></LI
11832 ><LI
11833 ><P
11834 ><TT
11835 CLASS="CONSTANT"
11836 >host</TT
11837 > : Do a standard host 
11838                         name to IP address resolution, using the system <TT
11839 CLASS="FILENAME"
11840 >/etc/hosts
11841                         </TT
11842 >, NIS, or DNS lookups. This method of name resolution 
11843                         is operating system depended for instance on IRIX or Solaris this 
11844                         may be controlled by the <TT
11845 CLASS="FILENAME"
11846 >/etc/nsswitch.conf</TT
11847
11848                         file.  Note that this method is only used if the NetBIOS name 
11849                         type being queried is the 0x20 (server) name type, otherwise 
11850                         it is ignored.</P
11851 ></LI
11852 ><LI
11853 ><P
11854 ><TT
11855 CLASS="CONSTANT"
11856 >wins</TT
11857 > : Query a name with 
11858                         the IP address listed in the <A
11859 HREF="#WINSSERVER"
11860 ><TT
11861 CLASS="PARAMETER"
11862 ><I
11863 >                       wins server</I
11864 ></TT
11865 ></A
11866 > parameter.  If no WINS server has
11867                         been specified this method will be ignored.</P
11868 ></LI
11869 ><LI
11870 ><P
11871 ><TT
11872 CLASS="CONSTANT"
11873 >bcast</TT
11874 > : Do a broadcast on 
11875                         each of the known local interfaces listed in the <A
11876 HREF="#INTERFACES"
11877 ><TT
11878 CLASS="PARAMETER"
11879 ><I
11880 >interfaces</I
11881 ></TT
11882 ></A
11883
11884                         parameter. This is the least reliable of the name resolution 
11885                         methods as it depends on the target host being on a locally 
11886                         connected subnet.</P
11887 ></LI
11888 ></UL
11889 ><P
11890 >Default: <B
11891 CLASS="COMMAND"
11892 >name resolve order = lmhosts host wins bcast
11893                 </B
11894 ></P
11895 ><P
11896 >Example: <B
11897 CLASS="COMMAND"
11898 >name resolve order = lmhosts bcast host
11899                 </B
11900 ></P
11901 ><P
11902 >This will cause the local lmhosts file to be examined 
11903                 first, followed by a broadcast attempt, followed by a normal 
11904                 system hostname lookup.</P
11905 ></DD
11906 ><DT
11907 ><A
11908 NAME="NETBIOSALIASES"
11909 ></A
11910 >netbios aliases (G)</DT
11911 ><DD
11912 ><P
11913 >This is a list of NetBIOS names that <A
11914 HREF="nmbd.8.html"
11915 TARGET="_top"
11916 >nmbd(8)</A
11917 > will advertise as additional 
11918                 names by which the Samba server is known. This allows one machine 
11919                 to appear in browse lists under multiple names. If a machine is 
11920                 acting as a browse server or logon server none 
11921                 of these names will be advertised as either browse server or logon 
11922                 servers, only the primary name of the machine will be advertised 
11923                 with these capabilities.</P
11924 ><P
11925 >See also <A
11926 HREF="#NETBIOSNAME"
11927 ><TT
11928 CLASS="PARAMETER"
11929 ><I
11930 >netbios 
11931                 name</I
11932 ></TT
11933 ></A
11934 >.</P
11935 ><P
11936 >Default: <EM
11937 >empty string (no additional names)</EM
11938 ></P
11939 ><P
11940 >Example: <B
11941 CLASS="COMMAND"
11942 >netbios aliases = TEST TEST1 TEST2</B
11943 ></P
11944 ></DD
11945 ><DT
11946 ><A
11947 NAME="NETBIOSNAME"
11948 ></A
11949 >netbios name (G)</DT
11950 ><DD
11951 ><P
11952 >This sets the NetBIOS name by which a Samba 
11953                 server is known. By default it is the same as the first component 
11954                 of the host's DNS name. If a machine is a browse server or
11955                 logon server this name (or the first component
11956                 of the hosts DNS name) will be the name that these services are
11957                 advertised under.</P
11958 ><P
11959 >See also <A
11960 HREF="#NETBIOSALIASES"
11961 ><TT
11962 CLASS="PARAMETER"
11963 ><I
11964 >netbios 
11965                 aliases</I
11966 ></TT
11967 ></A
11968 >.</P
11969 ><P
11970 >Default: <EM
11971 >machine DNS name</EM
11972 ></P
11973 ><P
11974 >Example: <B
11975 CLASS="COMMAND"
11976 >netbios name = MYNAME</B
11977 ></P
11978 ></DD
11979 ><DT
11980 ><A
11981 NAME="NETBIOSSCOPE"
11982 ></A
11983 >netbios scope (G)</DT
11984 ><DD
11985 ><P
11986 >This sets the NetBIOS scope that Samba will 
11987                 operate under. This should not be set unless every machine 
11988                 on your LAN also sets this value.</P
11989 ></DD
11990 ><DT
11991 ><A
11992 NAME="NISHOMEDIR"
11993 ></A
11994 >nis homedir (G)</DT
11995 ><DD
11996 ><P
11997 >Get the home share server from a NIS map. For 
11998                 UNIX systems that use an automounter, the user's home directory 
11999                 will often be mounted on a workstation on demand from a remote 
12000                 server. </P
12001 ><P
12002 >When the Samba logon server is not the actual home directory 
12003                 server, but is mounting the home directories via NFS then two 
12004                 network hops would be required to access the users home directory 
12005                 if the logon server told the client to use itself as the SMB server 
12006                 for home directories (one over SMB and one over NFS). This can 
12007                 be very slow.</P
12008 ><P
12009 >This option allows Samba to return the home share as 
12010                 being on a different server to the logon server and as 
12011                 long as a Samba daemon is running on the home directory server, 
12012                 it will be mounted on the Samba client directly from the directory 
12013                 server. When Samba is returning the home share to the client, it 
12014                 will consult the NIS map specified in <A
12015 HREF="#HOMEDIRMAP"
12016 >               <TT
12017 CLASS="PARAMETER"
12018 ><I
12019 >homedir map</I
12020 ></TT
12021 ></A
12022 > and return the server 
12023                 listed there.</P
12024 ><P
12025 >Note that for this option to work there must be a working 
12026                 NIS system and the Samba server with this option must also 
12027                 be a logon server.</P
12028 ><P
12029 >Default: <B
12030 CLASS="COMMAND"
12031 >nis homedir = no</B
12032 ></P
12033 ></DD
12034 ><DT
12035 ><A
12036 NAME="NONUNIXACCOUNTRANGE"
12037 ></A
12038 >non unix account range (G)</DT
12039 ><DD
12040 ><P
12041 >The non unix account range parameter specifies 
12042                 the range of 'user ids' that are allocated by the various 'non unix 
12043                 account' passdb backends.  These backends allow
12044                 the storage of passwords for users who don't exist in /etc/passwd.  
12045                 This is most often used for machine account creation. 
12046                 This range of ids should have no existing local or NIS users within 
12047                 it as strange conflicts can occur otherwise.</P
12048 ><P
12049 >NOTE: These userids never appear on the system and Samba will never
12050                 'become' these users. They are used only to ensure that the algorithmic 
12051                 RID mapping does not conflict with normal users.
12052                 </P
12053 ><P
12054 >Default: <B
12055 CLASS="COMMAND"
12056 >non unix account range = &#60;empty string&#62;
12057                 </B
12058 ></P
12059 ><P
12060 >Example: <B
12061 CLASS="COMMAND"
12062 >non unix account range = 10000-20000</B
12063 ></P
12064 ></DD
12065 ><DT
12066 ><A
12067 NAME="NTACLSUPPORT"
12068 ></A
12069 >nt acl support (S)</DT
12070 ><DD
12071 ><P
12072 >This boolean parameter controls whether 
12073                 <A
12074 HREF="smbd.8.html"
12075 TARGET="_top"
12076 >smbd(8)</A
12077 > will attempt to map 
12078                 UNIX permissions into Windows NT access control lists.
12079                 This parameter was formally a global parameter in releases
12080                 prior to 2.2.2.</P
12081 ><P
12082 >Default: <B
12083 CLASS="COMMAND"
12084 >nt acl support = yes</B
12085 ></P
12086 ></DD
12087 ><DT
12088 ><A
12089 NAME="NTPIPESUPPORT"
12090 ></A
12091 >nt pipe support (G)</DT
12092 ><DD
12093 ><P
12094 >This boolean parameter controls whether 
12095                 <A
12096 HREF="smbd.8.html"
12097 TARGET="_top"
12098 >smbd(8)</A
12099 > will allow Windows NT 
12100                 clients to connect to the NT SMB specific <TT
12101 CLASS="CONSTANT"
12102 >IPC$</TT
12103
12104                 pipes. This is a developer debugging option and can be left
12105                 alone.</P
12106 ><P
12107 >Default: <B
12108 CLASS="COMMAND"
12109 >nt pipe support = yes</B
12110 ></P
12111 ></DD
12112 ><DT
12113 ><A
12114 NAME="NTSTATUSSUPPORT"
12115 ></A
12116 >nt status support (G)</DT
12117 ><DD
12118 ><P
12119 >This boolean parameter controls whether <A
12120 HREF="smbd.8.html"
12121 TARGET="_top"
12122 >smbd(8)</A
12123 > will negotiate NT specific status
12124                 support with Windows NT/2k/XP clients. This is a developer
12125                 debugging option and should be left alone.
12126                 If this option is set to <TT
12127 CLASS="CONSTANT"
12128 >no</TT
12129 > then Samba offers
12130                 exactly the same DOS error codes that versions prior to Samba 2.2.3
12131                 reported.</P
12132 ><P
12133 >You should not need to ever disable this parameter.</P
12134 ><P
12135 >Default: <B
12136 CLASS="COMMAND"
12137 >nt status support = yes</B
12138 ></P
12139 ></DD
12140 ><DT
12141 ><A
12142 NAME="NULLPASSWORDS"
12143 ></A
12144 >null passwords (G)</DT
12145 ><DD
12146 ><P
12147 >Allow or disallow client access to accounts 
12148                 that have null passwords. </P
12149 ><P
12150 >See also <A
12151 HREF="smbpasswd.5.html"
12152 TARGET="_top"
12153 >smbpasswd (5)</A
12154 >.</P
12155 ><P
12156 >Default: <B
12157 CLASS="COMMAND"
12158 >null passwords = no</B
12159 ></P
12160 ></DD
12161 ><DT
12162 ><A
12163 NAME="OBEYPAMRESTRICTIONS"
12164 ></A
12165 >obey pam restrictions (G)</DT
12166 ><DD
12167 ><P
12168 >When Samba 2.2 is configured to enable PAM support
12169                 (i.e. --with-pam), this parameter will control whether or not Samba
12170                 should obey PAM's account and session management directives.  The 
12171                 default behavior is to use PAM for clear text authentication only
12172                 and to ignore any account or session management.  Note that Samba
12173                 always ignores PAM for authentication in the case of <A
12174 HREF="#ENCRYPTPASSWORDS"
12175 ><TT
12176 CLASS="PARAMETER"
12177 ><I
12178 >encrypt passwords = yes</I
12179 ></TT
12180 >
12181                 </A
12182 >.  The reason is that PAM modules cannot support the challenge/response
12183                 authentication mechanism needed in the presence of SMB password encryption.
12184                 </P
12185 ><P
12186 >Default: <B
12187 CLASS="COMMAND"
12188 >obey pam restrictions = no</B
12189 ></P
12190 ></DD
12191 ><DT
12192 ><A
12193 NAME="ONLYUSER"
12194 ></A
12195 >only user (S)</DT
12196 ><DD
12197 ><P
12198 >This is a boolean option that controls whether 
12199                 connections with usernames not in the <TT
12200 CLASS="PARAMETER"
12201 ><I
12202 >user</I
12203 ></TT
12204
12205                 list will be allowed. By default this option is disabled so that a 
12206                 client can supply a username to be used by the server.  Enabling
12207                 this parameter will force the server to only user the login 
12208                 names from the <TT
12209 CLASS="PARAMETER"
12210 ><I
12211 >user</I
12212 ></TT
12213 > list and is only really
12214                 useful in <A
12215 HREF="#SECURITYEQUALSSHARE"
12216 >shave level</A
12217 >
12218                 security.</P
12219 ><P
12220 >Note that this also means Samba won't try to deduce 
12221                 usernames from the service name. This can be annoying for 
12222                 the [homes] section. To get around this you could use <B
12223 CLASS="COMMAND"
12224 >user =
12225                 %S</B
12226 > which means your <TT
12227 CLASS="PARAMETER"
12228 ><I
12229 >user</I
12230 ></TT
12231 > list
12232                 will be just the service name, which for home directories is the 
12233                 name of the user.</P
12234 ><P
12235 >See also the <A
12236 HREF="#USER"
12237 ><TT
12238 CLASS="PARAMETER"
12239 ><I
12240 >user</I
12241 ></TT
12242 >
12243                 </A
12244 > parameter.</P
12245 ><P
12246 >Default: <B
12247 CLASS="COMMAND"
12248 >only user = no</B
12249 ></P
12250 ></DD
12251 ><DT
12252 ><A
12253 NAME="ONLYGUEST"
12254 ></A
12255 >only guest (S)</DT
12256 ><DD
12257 ><P
12258 >A synonym for <A
12259 HREF="#GUESTONLY"
12260 ><TT
12261 CLASS="PARAMETER"
12262 ><I
12263 >               guest only</I
12264 ></TT
12265 ></A
12266 >.</P
12267 ></DD
12268 ><DT
12269 ><A
12270 NAME="OPLOCKBREAKWAITTIME"
12271 ></A
12272 >oplock break wait time (G)</DT
12273 ><DD
12274 ><P
12275 >This is a tuning parameter added due to bugs in 
12276                 both Windows 9x and WinNT. If Samba responds to a client too 
12277                 quickly when that client issues an SMB that can cause an oplock 
12278                 break request, then the network client can fail and not respond 
12279                 to the break request. This tuning parameter (which is set in milliseconds) 
12280                 is the amount of time Samba will wait before sending an oplock break 
12281                 request to such (broken) clients.</P
12282 ><P
12283 ><EM
12284 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
12285                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</EM
12286 >.</P
12287 ><P
12288 >Default: <B
12289 CLASS="COMMAND"
12290 >oplock break wait time = 0</B
12291 ></P
12292 ></DD
12293 ><DT
12294 ><A
12295 NAME="OPLOCKCONTENTIONLIMIT"
12296 ></A
12297 >oplock contention limit (S)</DT
12298 ><DD
12299 ><P
12300 >This is a <EM
12301 >very</EM
12302 > advanced 
12303                 <A
12304 HREF="smbd.8.html"
12305 TARGET="_top"
12306 >smbd(8)</A
12307 > tuning option to 
12308                 improve the efficiency of the granting of oplocks under multiple 
12309                 client contention for the same file.</P
12310 ><P
12311 >In brief it specifies a number, which causes <A
12312 HREF="smbd.8.html"
12313 TARGET="_top"
12314 >smbd</A
12315 > not to 
12316                 grant an oplock even when requested if the approximate number of 
12317                 clients contending for an oplock on the same file goes over this 
12318                 limit. This causes <B
12319 CLASS="COMMAND"
12320 >smbd</B
12321 > to behave in a similar 
12322                 way to Windows NT.</P
12323 ><P
12324 ><EM
12325 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
12326                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</EM
12327 >.</P
12328 ><P
12329 >Default: <B
12330 CLASS="COMMAND"
12331 >oplock contention limit = 2</B
12332 ></P
12333 ></DD
12334 ><DT
12335 ><A
12336 NAME="OPLOCKS"
12337 ></A
12338 >oplocks (S)</DT
12339 ><DD
12340 ><P
12341 >This boolean option tells <B
12342 CLASS="COMMAND"
12343 >smbd</B
12344 > whether to 
12345                 issue oplocks (opportunistic locks) to file open requests on this 
12346                 share. The oplock code can dramatically (approx. 30% or more) improve 
12347                 the speed of access to files on Samba servers. It allows the clients 
12348                 to aggressively cache files locally and you may want to disable this 
12349                 option for unreliable network environments (it is turned on by 
12350                 default in Windows NT Servers).  For more information see the file 
12351                 <TT
12352 CLASS="FILENAME"
12353 >Speed.txt</TT
12354 > in the Samba <TT
12355 CLASS="FILENAME"
12356 >docs/</TT
12357
12358                 directory.</P
12359 ><P
12360 >Oplocks may be selectively turned off on certain files with a 
12361                 share. See the <A
12362 HREF="#VETOOPLOCKFILES"
12363 ><TT
12364 CLASS="PARAMETER"
12365 ><I
12366 >               veto oplock files</I
12367 ></TT
12368 ></A
12369 > parameter. On some systems 
12370                 oplocks are recognized by the underlying operating system. This 
12371                 allows data synchronization between all access to oplocked files, 
12372                 whether it be via Samba or NFS or a local UNIX process. See the 
12373                 <TT
12374 CLASS="PARAMETER"
12375 ><I
12376 >kernel oplocks</I
12377 ></TT
12378 > parameter for details.</P
12379 ><P
12380 >See also the <A
12381 HREF="#KERNELOPLOCKS"
12382 ><TT
12383 CLASS="PARAMETER"
12384 ><I
12385 >kernel 
12386                 oplocks</I
12387 ></TT
12388 ></A
12389 > and <A
12390 HREF="#LEVEL2OPLOCKS"
12391 ><TT
12392 CLASS="PARAMETER"
12393 ><I
12394 >               level2 oplocks</I
12395 ></TT
12396 ></A
12397 > parameters.</P
12398 ><P
12399 >Default: <B
12400 CLASS="COMMAND"
12401 >oplocks = yes</B
12402 ></P
12403 ></DD
12404 ><DT
12405 ><A
12406 NAME="OSLEVEL"
12407 ></A
12408 >os level (G)</DT
12409 ><DD
12410 ><P
12411 >This integer value controls what level Samba 
12412                 advertises itself as for browse elections. The value of this 
12413                 parameter determines whether <A
12414 HREF="nmbd.8.html"
12415 TARGET="_top"
12416 >nmbd(8)</A
12417
12418                 has a chance of becoming a local master browser for the <TT
12419 CLASS="PARAMETER"
12420 ><I
12421 >               WORKGROUP</I
12422 ></TT
12423 > in the local broadcast area.</P
12424 ><P
12425 ><EM
12426 >Note :</EM
12427 >By default, Samba will win 
12428                 a local master browsing election over all Microsoft operating 
12429                 systems except a Windows NT 4.0/2000 Domain Controller.  This 
12430                 means that a misconfigured Samba host can effectively isolate 
12431                 a subnet for browsing purposes.  See <TT
12432 CLASS="FILENAME"
12433 >BROWSING.txt
12434                 </TT
12435 > in the Samba <TT
12436 CLASS="FILENAME"
12437 >docs/</TT
12438 > directory 
12439                 for details.</P
12440 ><P
12441 >Default: <B
12442 CLASS="COMMAND"
12443 >os level = 20</B
12444 ></P
12445 ><P
12446 >Example: <B
12447 CLASS="COMMAND"
12448 >os level = 65 </B
12449 ></P
12450 ></DD
12451 ><DT
12452 ><A
12453 NAME="OS2DRIVERMAP"
12454 ></A
12455 >os2 driver map (G)</DT
12456 ><DD
12457 ><P
12458 >The parameter is used to define the absolute
12459                 path to a file containing a mapping of Windows NT printer driver
12460                 names to OS/2 printer driver names.  The format is:</P
12461 ><P
12462 >&#60;nt driver name&#62; = &#60;os2 driver 
12463                 name&#62;.&#60;device name&#62;</P
12464 ><P
12465 >For example, a valid entry using the HP LaserJet 5
12466                 printer driver would appear as <B
12467 CLASS="COMMAND"
12468 >HP LaserJet 5L = LASERJET.HP 
12469                 LaserJet 5L</B
12470 >.</P
12471 ><P
12472 >The need for the file is due to the printer driver namespace 
12473                 problem described in the <A
12474 HREF="printer_driver2.html"
12475 TARGET="_top"
12476 >Samba 
12477                 Printing HOWTO</A
12478 >.  For more details on OS/2 clients, please 
12479                 refer to the <A
12480 HREF="OS2-Client-HOWTO.html"
12481 TARGET="_top"
12482 >OS2-Client-HOWTO
12483                 </A
12484 > containing in the Samba documentation.</P
12485 ><P
12486 >Default: <B
12487 CLASS="COMMAND"
12488 >os2 driver map = &#60;empty string&#62;
12489                 </B
12490 ></P
12491 ></DD
12492 ><DT
12493 ><A
12494 NAME="PAMPASSWORDCHANGE"
12495 ></A
12496 >pam password change (G)</DT
12497 ><DD
12498 ><P
12499 >With the addition of better PAM support in Samba 2.2, 
12500                 this parameter, it is possible to use PAM's password change control 
12501                 flag for Samba.  If enabled, then PAM will be used for password
12502                 changes when requested by an SMB client instead of the program listed in 
12503                 <A
12504 HREF="#PASSWDPROGRAM"
12505 ><TT
12506 CLASS="PARAMETER"
12507 ><I
12508 >passwd program</I
12509 ></TT
12510 ></A
12511 >. 
12512                 It should be possible to enable this without changing your 
12513                 <A
12514 HREF="#PASSWDCHAT"
12515 ><TT
12516 CLASS="PARAMETER"
12517 ><I
12518 >passwd chat</I
12519 ></TT
12520 ></A
12521 >
12522                 parameter for most setups.
12523                 </P
12524 ><P
12525 >Default: <B
12526 CLASS="COMMAND"
12527 >pam password change = no</B
12528 ></P
12529 ></DD
12530 ><DT
12531 ><A
12532 NAME="PANICACTION"
12533 ></A
12534 >panic action (G)</DT
12535 ><DD
12536 ><P
12537 >This is a Samba developer option that allows a 
12538                 system command to be called when either <A
12539 HREF="smbd.8.html"
12540 TARGET="_top"
12541 >               smbd(8)</A
12542 > or <A
12543 HREF="nmbd.8.html"
12544 TARGET="_top"
12545 >nmbd(8)</A
12546
12547                 crashes. This is usually used to draw attention to the fact that 
12548                 a problem occurred.</P
12549 ><P
12550 >Default: <B
12551 CLASS="COMMAND"
12552 >panic action = &#60;empty string&#62;</B
12553 ></P
12554 ><P
12555 >Example: <B
12556 CLASS="COMMAND"
12557 >panic action = "/bin/sleep 90000"</B
12558 ></P
12559 ></DD
12560 ><DT
12561 ><A
12562 NAME="PASSDBBACKEND"
12563 ></A
12564 >passdb backend (G)</DT
12565 ><DD
12566 ><P
12567 >This option allows the administrator to chose which backends to retrieve and store passwords with. This allows (for example) both 
12568                 smbpasswd and tdbsam to be used without a recompile. 
12569                 Multiple backends can be specified, seperated by spaces. The backends will be searched in the order they are specified. New users are always added to the first backend specified.
12570                 Experimental backends must still be selected
12571                 (eg --with-tdbsam) at configure time.
12572                 </P
12573 ><P
12574 >This paramater is in two parts, the backend's name, and a 'location'
12575                 string that has meaning only to that particular backed.  These are separated
12576                 by a : character.</P
12577 ><P
12578 >Available backends can include:
12579                 <P
12580 ></P
12581 ><UL
12582 ><LI
12583 ><P
12584 ><B
12585 CLASS="COMMAND"
12586 >smbpasswd</B
12587 > - The default smbpasswd
12588                         backend.  Takes a path to the smbpasswd file as an optional argument.</P
12589 ></LI
12590 ><LI
12591 ><P
12592 ><B
12593 CLASS="COMMAND"
12594 >smbpasswd_nua</B
12595 > - The smbpasswd
12596                         backend, but with support for 'not unix accounts'.  
12597                         Takes a path to the smbpasswd file as an optional argument.</P
12598 ><P
12599 >See also <A
12600 HREF="#NONUNIXACCOUNTRANGE"
12601 >                        <TT
12602 CLASS="PARAMETER"
12603 ><I
12604 >non unix account range</I
12605 ></TT
12606 ></A
12607 ></P
12608 ></LI
12609 ><LI
12610 ><P
12611 ><B
12612 CLASS="COMMAND"
12613 >tdbsam</B
12614 > - The TDB based password storage
12615                         backend.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
12616                         in the <A
12617 HREF="#PRIVATEDIR"
12618 >                        <TT
12619 CLASS="PARAMETER"
12620 ><I
12621 >private dir</I
12622 ></TT
12623 ></A
12624 > directory.</P
12625 ></LI
12626 ><LI
12627 ><P
12628 ><B
12629 CLASS="COMMAND"
12630 >tdbsam_nua</B
12631 > - The TDB based password storage
12632                         backend, with non unix account support.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
12633                         in the <A
12634 HREF="#PRIVATEDIR"
12635 >                        <TT
12636 CLASS="PARAMETER"
12637 ><I
12638 >private dir</I
12639 ></TT
12640 ></A
12641 > directory.</P
12642 ><P
12643 >See also <A
12644 HREF="#NONUNIXACCOUNTRANGE"
12645 >                        <TT
12646 CLASS="PARAMETER"
12647 ><I
12648 >non unix account range</I
12649 ></TT
12650 ></A
12651 ></P
12652 ></LI
12653 ><LI
12654 ><P
12655 ><B
12656 CLASS="COMMAND"
12657 >ldapsam</B
12658 > - The LDAP based passdb 
12659                         backend.  Takes an LDAP URL as an optional argument (defaults to 
12660                         <B
12661 CLASS="COMMAND"
12662 >ldap://localhost</B
12663 >)</P
12664 ></LI
12665 ><LI
12666 ><P
12667 ><B
12668 CLASS="COMMAND"
12669 >ldapsam_nua</B
12670 > - The LDAP based passdb 
12671                         backend, with non unix account support.  Takes an LDAP URL as an optional argument (defaults to 
12672                         <B
12673 CLASS="COMMAND"
12674 >ldap://localhost</B
12675 >)</P
12676 ><P
12677 >See also <A
12678 HREF="#NONUNIXACCOUNTRANGE"
12679 >                        <TT
12680 CLASS="PARAMETER"
12681 ><I
12682 >non unix account range</I
12683 ></TT
12684 ></A
12685 ></P
12686 ></LI
12687 ><LI
12688 ><P
12689 ><B
12690 CLASS="COMMAND"
12691 >plugin</B
12692 > - Allows Samba to load an 
12693                         arbitary passdb backend from the .so specified as a compulsary argument.
12694                         </P
12695 ><P
12696 >Any characters after the (optional) second : are passed to the plugin
12697                         for its own processing</P
12698 ></LI
12699 ><LI
12700 ><P
12701 ><B
12702 CLASS="COMMAND"
12703 >unixsam</B
12704 > - Allows samba to map all (other) available unix users</P
12705 ><P
12706 >This backend uses the standard unix database for retrieving users. Users included 
12707                         in this pdb are NOT listed in samba user listings and users included in this pdb won't be 
12708                         able to login. The use of this backend is to always be able to display the owner of a file 
12709                         on the samba server - even when the user doesn't have a 'real' samba account in one of the 
12710                         other passdb backends.
12711                         </P
12712 ><P
12713 >This backend should always be the last backend listed, since it contains all users in 
12714                         the unix passdb and might 'override' mappings if specified earlier. It's meant to only return 
12715                         accounts for users that aren't covered by the previous backends.</P
12716 ></LI
12717 ></UL
12718 >
12719                 </P
12720 ><P
12721 >Default: <B
12722 CLASS="COMMAND"
12723 >passdb backend = smbpasswd unixsam</B
12724 ></P
12725 ><P
12726 >Example: <B
12727 CLASS="COMMAND"
12728 >passdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd unixsam</B
12729 ></P
12730 ><P
12731 >Example: <B
12732 CLASS="COMMAND"
12733 >passdb backend = ldapsam_nua:ldaps://ldap.example.com unixsam</B
12734 ></P
12735 ><P
12736 >Example: <B
12737 CLASS="COMMAND"
12738 >passdb backend = plugin:/usr/local/samba/lib/my_passdb.so:my_plugin_args tdbsam:/etc/samba/private/passdb.tdb</B
12739 ></P
12740 ></DD
12741 ><DT
12742 ><A
12743 NAME="PASSWDCHAT"
12744 ></A
12745 >passwd chat (G)</DT
12746 ><DD
12747 ><P
12748 >This string controls the <EM
12749 >"chat"</EM
12750
12751                 conversation that takes places between <A
12752 HREF="smbd.8.html"
12753 TARGET="_top"
12754 >smbd</A
12755 > and the local password changing
12756                 program to change the user's password. The string describes a 
12757                 sequence of response-receive pairs that <A
12758 HREF="smbd.8.html"
12759 TARGET="_top"
12760 >               smbd(8)</A
12761 > uses to determine what to send to the 
12762                 <A
12763 HREF="#PASSWDPROGRAM"
12764 ><TT
12765 CLASS="PARAMETER"
12766 ><I
12767 >passwd program</I
12768 ></TT
12769 >
12770                 </A
12771 > and what to expect back. If the expected output is not 
12772                 received then the password is not changed.</P
12773 ><P
12774 >This chat sequence is often quite site specific, depending 
12775                 on what local methods are used for password control (such as NIS 
12776                 etc).</P
12777 ><P
12778 >Note that this parameter only is only used if the <A
12779 HREF="#UNIXPASSWORDSYNC"
12780 ><TT
12781 CLASS="PARAMETER"
12782 ><I
12783 >unix 
12784                 password sync</I
12785 ></TT
12786 ></A
12787 > parameter is set to <TT
12788 CLASS="CONSTANT"
12789 >yes</TT
12790 >. This 
12791                 sequence is then called <EM
12792 >AS ROOT</EM
12793 > when the SMB password 
12794                 in the smbpasswd file is being changed, without access to the old 
12795                 password cleartext. This means that root must be able to reset the user's password
12796                 without knowing the text of the previous password. In the presence of NIS/YP, 
12797                 this means that the <A
12798 HREF="#PASSWDPROGRAM"
12799 >passwd program</A
12800 > must be 
12801                 executed on the NIS master.
12802                 </P
12803 ><P
12804 >The string can contain the macro <TT
12805 CLASS="PARAMETER"
12806 ><I
12807 >%n</I
12808 ></TT
12809 > which is substituted 
12810                 for the new password.  The chat sequence can also contain the standard 
12811                 macros <TT
12812 CLASS="CONSTANT"
12813 >\n</TT
12814 >, <TT
12815 CLASS="CONSTANT"
12816 >\r</TT
12817 >, <TT
12818 CLASS="CONSTANT"
12819 >               \t</TT
12820 > and <TT
12821 CLASS="CONSTANT"
12822 >\s</TT
12823 > to give line-feed, 
12824                 carriage-return, tab and space.  The chat sequence string can also contain 
12825                 a '*' which matches any sequence of characters.
12826                 Double quotes can be used to collect strings with spaces 
12827                 in them into a single string.</P
12828 ><P
12829 >If the send string in any part of the chat sequence 
12830                 is a full stop ".",  then no string is sent. Similarly, 
12831                 if the expect string is a full stop then no string is expected.</P
12832 ><P
12833 >If the <A
12834 HREF="#PAMPASSWORDCHANGE"
12835 ><TT
12836 CLASS="PARAMETER"
12837 ><I
12838 >pam
12839                 password change</I
12840 ></TT
12841 ></A
12842 > parameter is set to true, the chat pairs
12843                 may be matched in any order, and success is determined by the PAM result, 
12844                 not any particular output. The \n macro is ignored for PAM conversions.
12845                 </P
12846 ><P
12847 >See also <A
12848 HREF="#UNIXPASSWORDSYNC"
12849 ><TT
12850 CLASS="PARAMETER"
12851 ><I
12852 >unix password 
12853                 sync</I
12854 ></TT
12855 ></A
12856 >, <A
12857 HREF="#PASSWDPROGRAM"
12858 ><TT
12859 CLASS="PARAMETER"
12860 ><I
12861 >               passwd program</I
12862 ></TT
12863 ></A
12864 > ,<A
12865 HREF="#PASSWDCHATDEBUG"
12866 >               <TT
12867 CLASS="PARAMETER"
12868 ><I
12869 >passwd chat debug</I
12870 ></TT
12871 ></A
12872 > and <A
12873 HREF="#PAMPASSWORDCHANGE"
12874 >               <TT
12875 CLASS="PARAMETER"
12876 ><I
12877 >pam password change</I
12878 ></TT
12879 ></A
12880 >.</P
12881 ><P
12882 >Default: <B
12883 CLASS="COMMAND"
12884 >passwd chat = *new*password* %n\n 
12885                 *new*password* %n\n *changed*</B
12886 ></P
12887 ><P
12888 >Example: <B
12889 CLASS="COMMAND"
12890 >passwd chat = "*Enter OLD password*" %o\n 
12891                 "*Enter NEW password*" %n\n "*Reenter NEW password*" %n\n "*Password 
12892                 changed*"</B
12893 ></P
12894 ></DD
12895 ><DT
12896 ><A
12897 NAME="PASSWDCHATDEBUG"
12898 ></A
12899 >passwd chat debug (G)</DT
12900 ><DD
12901 ><P
12902 >This boolean specifies if the passwd chat script 
12903                 parameter is run in <EM
12904 >debug</EM
12905 > mode. In this mode the 
12906                 strings passed to and received from the passwd chat are printed 
12907                 in the <A
12908 HREF="smbd.8.html"
12909 TARGET="_top"
12910 >smbd(8)</A
12911 > log with a 
12912                 <A
12913 HREF="#DEBUGLEVEL"
12914 ><TT
12915 CLASS="PARAMETER"
12916 ><I
12917 >debug level</I
12918 ></TT
12919 ></A
12920
12921                 of 100. This is a dangerous option as it will allow plaintext passwords 
12922                 to be seen in the <B
12923 CLASS="COMMAND"
12924 >smbd</B
12925 > log. It is available to help 
12926                 Samba admins debug their <TT
12927 CLASS="PARAMETER"
12928 ><I
12929 >passwd chat</I
12930 ></TT
12931 > scripts 
12932                 when calling the <TT
12933 CLASS="PARAMETER"
12934 ><I
12935 >passwd program</I
12936 ></TT
12937 > and should 
12938                 be turned off after this has been done. This option has no effect if the 
12939                 <A
12940 HREF="#PAMPASSWORDCHANGE"
12941 ><TT
12942 CLASS="PARAMETER"
12943 ><I
12944 >pam password change</I
12945 ></TT
12946 ></A
12947 >
12948                 paramter is set. This parameter is off by default.</P
12949 ><P
12950 >See also <A
12951 HREF="#PASSWDCHAT"
12952 ><TT
12953 CLASS="PARAMETER"
12954 ><I
12955 >passwd chat</I
12956 ></TT
12957 >
12958                 </A
12959 >, <A
12960 HREF="#PAMPASSWORDCHANGE"
12961 ><TT
12962 CLASS="PARAMETER"
12963 ><I
12964 >pam password change</I
12965 ></TT
12966 >
12967                 </A
12968 >, <A
12969 HREF="#PASSWDPROGRAM"
12970 ><TT
12971 CLASS="PARAMETER"
12972 ><I
12973 >passwd program</I
12974 ></TT
12975 >
12976                 </A
12977 >.</P
12978 ><P
12979 >Default: <B
12980 CLASS="COMMAND"
12981 >passwd chat debug = no</B
12982 ></P
12983 ></DD
12984 ><DT
12985 ><A
12986 NAME="PASSWDPROGRAM"
12987 ></A
12988 >passwd program (G)</DT
12989 ><DD
12990 ><P
12991 >The name of a program that can be used to set 
12992                 UNIX user passwords.  Any occurrences of <TT
12993 CLASS="PARAMETER"
12994 ><I
12995 >%u</I
12996 ></TT
12997
12998                 will be replaced with the user name. The user name is checked for 
12999                 existence before calling the password changing program.</P
13000 ><P
13001 >Also note that many passwd programs insist in <EM
13002 >reasonable
13003                 </EM
13004 > passwords, such as a minimum length, or the inclusion 
13005                 of mixed case chars and digits. This can pose a problem as some clients 
13006                 (such as Windows for Workgroups) uppercase the password before sending 
13007                 it.</P
13008 ><P
13009 ><EM
13010 >Note</EM
13011 > that if the <TT
13012 CLASS="PARAMETER"
13013 ><I
13014 >unix 
13015                 password sync</I
13016 ></TT
13017 > parameter is set to <TT
13018 CLASS="CONSTANT"
13019 >true
13020                 </TT
13021 > then this program is called <EM
13022 >AS ROOT</EM
13023
13024                 before the SMB password in the <A
13025 HREF="smbpasswd.5.html"
13026 TARGET="_top"
13027 >smbpasswd(5)
13028                 </A
13029 > file is changed. If this UNIX password change fails, then 
13030                 <B
13031 CLASS="COMMAND"
13032 >smbd</B
13033 > will fail to change the SMB password also 
13034                 (this is by design).</P
13035 ><P
13036 >If the <TT
13037 CLASS="PARAMETER"
13038 ><I
13039 >unix password sync</I
13040 ></TT
13041 > parameter 
13042                 is set this parameter <EM
13043 >MUST USE ABSOLUTE PATHS</EM
13044
13045                 for <EM
13046 >ALL</EM
13047 > programs called, and must be examined 
13048                 for security implications. Note that by default <TT
13049 CLASS="PARAMETER"
13050 ><I
13051 >unix 
13052                 password sync</I
13053 ></TT
13054 > is set to <TT
13055 CLASS="CONSTANT"
13056 >false</TT
13057 >.</P
13058 ><P
13059 >See also <A
13060 HREF="#UNIXPASSWORDSYNC"
13061 ><TT
13062 CLASS="PARAMETER"
13063 ><I
13064 >unix 
13065                 password sync</I
13066 ></TT
13067 ></A
13068 >.</P
13069 ><P
13070 >Default: <B
13071 CLASS="COMMAND"
13072 >passwd program = /bin/passwd</B
13073 ></P
13074 ><P
13075 >Example: <B
13076 CLASS="COMMAND"
13077 >passwd program = /sbin/npasswd %u</B
13078 >
13079                 </P
13080 ></DD
13081 ><DT
13082 ><A
13083 NAME="PASSWORDLEVEL"
13084 ></A
13085 >password level (G)</DT
13086 ><DD
13087 ><P
13088 >Some client/server combinations have difficulty 
13089                 with mixed-case passwords.  One offending client is Windows for 
13090                 Workgroups, which for some reason forces passwords to upper 
13091                 case when using the LANMAN1 protocol, but leaves them alone when 
13092                 using COREPLUS!  Another problem child is the Windows 95/98
13093                 family of operating systems.  These clients upper case clear
13094                 text passwords even when NT LM 0.12 selected by the protocol
13095                 negotiation request/response.</P
13096 ><P
13097 >This parameter defines the maximum number of characters 
13098                 that may be upper case in passwords.</P
13099 ><P
13100 >For example, say the password given was "FRED". If <TT
13101 CLASS="PARAMETER"
13102 ><I
13103 >               password level</I
13104 ></TT
13105 > is set to 1, the following combinations 
13106                 would be tried if "FRED" failed:</P
13107 ><P
13108 >"Fred", "fred", "fRed", "frEd","freD"</P
13109 ><P
13110 >If <TT
13111 CLASS="PARAMETER"
13112 ><I
13113 >password level</I
13114 ></TT
13115 > was set to 2, 
13116                 the following combinations would also be tried: </P
13117 ><P
13118 >"FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..</P
13119 ><P
13120 >And so on.</P
13121 ><P
13122 >The higher value this parameter is set to the more likely 
13123                 it is that a mixed case password will be matched against a single 
13124                 case password. However, you should be aware that use of this 
13125                 parameter reduces security and increases the time taken to 
13126                 process a new connection.</P
13127 ><P
13128 >A value of zero will cause only two attempts to be 
13129                 made - the password as is and the password in all-lower case.</P
13130 ><P
13131 >Default: <B
13132 CLASS="COMMAND"
13133 >password level = 0</B
13134 ></P
13135 ><P
13136 >Example: <B
13137 CLASS="COMMAND"
13138 >password level = 4</B
13139 ></P
13140 ></DD
13141 ><DT
13142 ><A
13143 NAME="PASSWORDSERVER"
13144 ></A
13145 >password server (G)</DT
13146 ><DD
13147 ><P
13148 >By specifying the name of another SMB server (such 
13149                 as a WinNT box) with this option, and using <B
13150 CLASS="COMMAND"
13151 >security = domain
13152                 </B
13153 > or <B
13154 CLASS="COMMAND"
13155 >security = server</B
13156 > you can get Samba 
13157                 to do all its username/password validation via a remote server.</P
13158 ><P
13159 >This option sets the name of the password server to use. 
13160                 It must be a NetBIOS name, so if the machine's NetBIOS name is 
13161                 different from its Internet name then you may have to add its NetBIOS 
13162                 name to the lmhosts  file which is stored in the same directory 
13163                 as the <TT
13164 CLASS="FILENAME"
13165 >smb.conf</TT
13166 > file.</P
13167 ><P
13168 >The name of the password server is looked up using the 
13169                 parameter <A
13170 HREF="#NAMERESOLVEORDER"
13171 ><TT
13172 CLASS="PARAMETER"
13173 ><I
13174 >name 
13175                 resolve order</I
13176 ></TT
13177 ></A
13178 > and so may resolved
13179                 by any method and order described in that parameter.</P
13180 ><P
13181 >The password server much be a machine capable of using 
13182                 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in 
13183                 user level security mode.</P
13184 ><P
13185 ><EM
13186 >NOTE:</EM
13187 > Using a password server 
13188                 means your UNIX box (running Samba) is only as secure as your 
13189                 password server. <EM
13190 >DO NOT CHOOSE A PASSWORD SERVER THAT 
13191                 YOU DON'T COMPLETELY TRUST</EM
13192 >.</P
13193 ><P
13194 >Never point a Samba server at itself for password 
13195                 serving. This will cause a loop and could lock up your Samba 
13196                 server!</P
13197 ><P
13198 >The name of the password server takes the standard 
13199                 substitutions, but probably the only useful one is <TT
13200 CLASS="PARAMETER"
13201 ><I
13202 >%m
13203                 </I
13204 ></TT
13205 >, which means the Samba server will use the incoming 
13206                 client as the password server. If you use this then you better 
13207                 trust your clients, and you had better restrict them with hosts allow!</P
13208 ><P
13209 >If the <TT
13210 CLASS="PARAMETER"
13211 ><I
13212 >security</I
13213 ></TT
13214 > parameter is set to
13215                 <TT
13216 CLASS="CONSTANT"
13217 >domain</TT
13218 >, then the list of machines in this 
13219                 option must be a list of Primary or Backup Domain controllers for the
13220                 Domain or the character '*', as the Samba server is effectively
13221                 in that domain, and will use cryptographically authenticated RPC calls
13222                 to authenticate the user logging on. The advantage of using <B
13223 CLASS="COMMAND"
13224 >               security = domain</B
13225 > is that if you list several hosts in the 
13226                 <TT
13227 CLASS="PARAMETER"
13228 ><I
13229 >password server</I
13230 ></TT
13231 > option then <B
13232 CLASS="COMMAND"
13233 >smbd
13234                 </B
13235 > will try each in turn till it finds one that responds. This 
13236                 is useful in case your primary server goes down.</P
13237 ><P
13238 >If the <TT
13239 CLASS="PARAMETER"
13240 ><I
13241 >password server</I
13242 ></TT
13243 > option is set 
13244                 to the character '*', then Samba will attempt to auto-locate the 
13245                 Primary or Backup Domain controllers to authenticate against by 
13246                 doing a query for the name <TT
13247 CLASS="CONSTANT"
13248 >WORKGROUP&#60;1C&#62;</TT
13249
13250                 and then contacting each server returned in the list of IP 
13251                 addresses from the name resolution source. </P
13252 ><P
13253 >If the <TT
13254 CLASS="PARAMETER"
13255 ><I
13256 >security</I
13257 ></TT
13258 > parameter is 
13259                 set to <TT
13260 CLASS="CONSTANT"
13261 >server</TT
13262 >, then there are different
13263                 restrictions that <B
13264 CLASS="COMMAND"
13265 >security = domain</B
13266 > doesn't 
13267                 suffer from:</P
13268 ><P
13269 ></P
13270 ><UL
13271 ><LI
13272 ><P
13273 >You may list several password servers in 
13274                         the <TT
13275 CLASS="PARAMETER"
13276 ><I
13277 >password server</I
13278 ></TT
13279 > parameter, however if an 
13280                         <B
13281 CLASS="COMMAND"
13282 >smbd</B
13283 > makes a connection to a password server, 
13284                         and then the password server fails, no more users will be able 
13285                         to be authenticated from this <B
13286 CLASS="COMMAND"
13287 >smbd</B
13288 >.  This is a 
13289                         restriction of the SMB/CIFS protocol when in <B
13290 CLASS="COMMAND"
13291 >security = server
13292                         </B
13293 > mode and cannot be fixed in Samba.</P
13294 ></LI
13295 ><LI
13296 ><P
13297 >If you are using a Windows NT server as your 
13298                         password server then you will have to ensure that your users 
13299                         are able to login from the Samba server, as when in <B
13300 CLASS="COMMAND"
13301 >                       security = server</B
13302 >  mode the network logon will appear to 
13303                         come from there rather than from the users workstation.</P
13304 ></LI
13305 ></UL
13306 ><P
13307 >See also the <A
13308 HREF="#SECURITY"
13309 ><TT
13310 CLASS="PARAMETER"
13311 ><I
13312 >security
13313                 </I
13314 ></TT
13315 ></A
13316 > parameter.</P
13317 ><P
13318 >Default: <B
13319 CLASS="COMMAND"
13320 >password server = &#60;empty string&#62;</B
13321 >
13322                 </P
13323 ><P
13324 >Example: <B
13325 CLASS="COMMAND"
13326 >password server = NT-PDC, NT-BDC1, NT-BDC2
13327                 </B
13328 ></P
13329 ><P
13330 >Example: <B
13331 CLASS="COMMAND"
13332 >password server = *</B
13333 ></P
13334 ></DD
13335 ><DT
13336 ><A
13337 NAME="PATH"
13338 ></A
13339 >path (S)</DT
13340 ><DD
13341 ><P
13342 >This parameter specifies a directory to which 
13343                 the user of the service is to be given access. In the case of 
13344                 printable services, this is where print data will spool prior to 
13345                 being submitted to the host for printing.</P
13346 ><P
13347 >For a printable service offering guest access, the service 
13348                 should be readonly and the path should be world-writeable and 
13349                 have the sticky bit set. This is not mandatory of course, but 
13350                 you probably won't get the results you expect if you do 
13351                 otherwise.</P
13352 ><P
13353 >Any occurrences of <TT
13354 CLASS="PARAMETER"
13355 ><I
13356 >%u</I
13357 ></TT
13358 > in the path 
13359                 will be replaced with the UNIX username that the client is using 
13360                 on this connection. Any occurrences of <TT
13361 CLASS="PARAMETER"
13362 ><I
13363 >%m</I
13364 ></TT
13365
13366                 will be replaced by the NetBIOS name of the machine they are 
13367                 connecting from. These replacements are very useful for setting 
13368                 up pseudo home directories for users.</P
13369 ><P
13370 >Note that this path will be based on <A
13371 HREF="#ROOTDIR"
13372 >               <TT
13373 CLASS="PARAMETER"
13374 ><I
13375 >root dir</I
13376 ></TT
13377 ></A
13378 > if one was specified.</P
13379 ><P
13380 >Default: <EM
13381 >none</EM
13382 ></P
13383 ><P
13384 >Example: <B
13385 CLASS="COMMAND"
13386 >path = /home/fred</B
13387 ></P
13388 ></DD
13389 ><DT
13390 ><A
13391 NAME="PIDDIRECTORY"
13392 ></A
13393 >pid directory (G)</DT
13394 ><DD
13395 ><P
13396 >This option specifies the directory where pid 
13397                 files will be placed.  </P
13398 ><P
13399 >Default: <B
13400 CLASS="COMMAND"
13401 >pid directory = ${prefix}/var/locks</B
13402 ></P
13403 ><P
13404 >Example: <B
13405 CLASS="COMMAND"
13406 >pid directory = /var/run/</B
13407 >
13408                 </P
13409 ></DD
13410 ><DT
13411 ><A
13412 NAME="POSIXLOCKING"
13413 ></A
13414 >posix locking (S)</DT
13415 ><DD
13416 ><P
13417 >The <A
13418 HREF="smbd.8.html"
13419 TARGET="_top"
13420 ><B
13421 CLASS="COMMAND"
13422 >smbd(8)</B
13423 ></A
13424 >
13425                 daemon maintains an database of file locks obtained by SMB clients.
13426                 The default behavior is to map this internal database to POSIX
13427                 locks.  This means that file locks obtained by SMB clients are 
13428                 consistent with those seen by POSIX compliant applications accessing 
13429                 the files via a non-SMB method (e.g. NFS or local file access).  
13430                 You should never need to disable this parameter.</P
13431 ><P
13432 >Default: <B
13433 CLASS="COMMAND"
13434 >posix locking = yes</B
13435 ></P
13436 ></DD
13437 ><DT
13438 ><A
13439 NAME="POSTEXEC"
13440 ></A
13441 >postexec (S)</DT
13442 ><DD
13443 ><P
13444 >This option specifies a command to be run 
13445                 whenever the service is disconnected. It takes the usual 
13446                 substitutions. The command may be run as the root on some 
13447                 systems.</P
13448 ><P
13449 >An interesting example may be to unmount server 
13450                 resources:</P
13451 ><P
13452 ><B
13453 CLASS="COMMAND"
13454 >postexec = /etc/umount /cdrom</B
13455 ></P
13456 ><P
13457 >See also <A
13458 HREF="#PREEXEC"
13459 ><TT
13460 CLASS="PARAMETER"
13461 ><I
13462 >preexec</I
13463 ></TT
13464 >
13465                 </A
13466 >.</P
13467 ><P
13468 >Default: <EM
13469 >none (no command executed)</EM
13470 >
13471                 </P
13472 ><P
13473 >Example: <B
13474 CLASS="COMMAND"
13475 >postexec = echo \"%u disconnected from %S 
13476                 from %m (%I)\" &#62;&#62; /tmp/log</B
13477 ></P
13478 ></DD
13479 ><DT
13480 ><A
13481 NAME="POSTSCRIPT"
13482 ></A
13483 >postscript (S)</DT
13484 ><DD
13485 ><P
13486 >This parameter forces a printer to interpret 
13487                 the print files as PostScript. This is done by adding a <TT
13488 CLASS="CONSTANT"
13489 >%!
13490                 </TT
13491 > to the start of print output.</P
13492 ><P
13493 >This is most useful when you have lots of PCs that persist 
13494                 in putting a control-D at the start of print jobs, which then 
13495                 confuses your printer.</P
13496 ><P
13497 >Default: <B
13498 CLASS="COMMAND"
13499 >postscript = no</B
13500 ></P
13501 ></DD
13502 ><DT
13503 ><A
13504 NAME="PREEXEC"
13505 ></A
13506 >preexec (S)</DT
13507 ><DD
13508 ><P
13509 >This option specifies a command to be run whenever 
13510                 the service is connected to. It takes the usual substitutions.</P
13511 ><P
13512 >An interesting example is to send the users a welcome 
13513                 message every time they log in. Maybe a message of the day? Here 
13514                 is an example:</P
13515 ><P
13516 ><B
13517 CLASS="COMMAND"
13518 >preexec = csh -c 'echo \"Welcome to %S!\" |
13519                  /usr/local/samba/bin/smbclient -M %m -I %I' &#38; </B
13520 ></P
13521 ><P
13522 >Of course, this could get annoying after a while :-)</P
13523 ><P
13524 >See also <A
13525 HREF="#PREEXECCLOSE"
13526 ><TT
13527 CLASS="PARAMETER"
13528 ><I
13529 >preexec close
13530                 </I
13531 ></TT
13532 ></A
13533 > and <A
13534 HREF="#POSTEXEC"
13535 ><TT
13536 CLASS="PARAMETER"
13537 ><I
13538 >postexec
13539                 </I
13540 ></TT
13541 ></A
13542 >.</P
13543 ><P
13544 >Default: <EM
13545 >none (no command executed)</EM
13546 ></P
13547 ><P
13548 >Example: <B
13549 CLASS="COMMAND"
13550 >preexec = echo \"%u connected to %S from %m
13551                 (%I)\" &#62;&#62; /tmp/log</B
13552 ></P
13553 ></DD
13554 ><DT
13555 ><A
13556 NAME="PREEXECCLOSE"
13557 ></A
13558 >preexec close (S)</DT
13559 ><DD
13560 ><P
13561 >This boolean option controls whether a non-zero 
13562                 return code from <A
13563 HREF="#PREEXEC"
13564 ><TT
13565 CLASS="PARAMETER"
13566 ><I
13567 >preexec
13568                 </I
13569 ></TT
13570 ></A
13571 > should close the service being connected to.</P
13572 ><P
13573 >Default: <B
13574 CLASS="COMMAND"
13575 >preexec close = no</B
13576 ></P
13577 ></DD
13578 ><DT
13579 ><A
13580 NAME="PREFERREDMASTER"
13581 ></A
13582 >preferred master (G)</DT
13583 ><DD
13584 ><P
13585 >This boolean parameter controls if <A
13586 HREF="nmbd.8.html"
13587 TARGET="_top"
13588 >nmbd(8)</A
13589 > is a preferred master browser 
13590                 for its workgroup.</P
13591 ><P
13592 >If this is set to <TT
13593 CLASS="CONSTANT"
13594 >true</TT
13595 >, on startup, <B
13596 CLASS="COMMAND"
13597 >nmbd</B
13598
13599                 will force an election, and it will have a slight advantage in 
13600                 winning the election.  It is recommended that this parameter is 
13601                 used in conjunction with <B
13602 CLASS="COMMAND"
13603 ><A
13604 HREF="#DOMAINMASTER"
13605 ><TT
13606 CLASS="PARAMETER"
13607 ><I
13608 >               domain master</I
13609 ></TT
13610 ></A
13611 > = yes</B
13612 >, so that <B
13613 CLASS="COMMAND"
13614 >               nmbd</B
13615 > can guarantee becoming a domain master.</P
13616 ><P
13617 >Use this option with caution, because if there are several 
13618                 hosts (whether Samba servers, Windows 95 or NT) that are preferred 
13619                 master browsers on the same subnet, they will each periodically 
13620                 and continuously attempt to become the local master browser.  
13621                 This will result in unnecessary broadcast traffic and reduced browsing
13622                 capabilities.</P
13623 ><P
13624 >See also <A
13625 HREF="#OSLEVEL"
13626 ><TT
13627 CLASS="PARAMETER"
13628 ><I
13629 >os level</I
13630 ></TT
13631 >
13632                 </A
13633 >.</P
13634 ><P
13635 >Default: <B
13636 CLASS="COMMAND"
13637 >preferred master = auto</B
13638 ></P
13639 ></DD
13640 ><DT
13641 ><A
13642 NAME="PREFEREDMASTER"
13643 ></A
13644 >prefered master (G)</DT
13645 ><DD
13646 ><P
13647 >Synonym for <A
13648 HREF="#PREFERREDMASTER"
13649 ><TT
13650 CLASS="PARAMETER"
13651 ><I
13652 >               preferred master</I
13653 ></TT
13654 ></A
13655 > for people who cannot spell :-).</P
13656 ></DD
13657 ><DT
13658 ><A
13659 NAME="PRELOAD"
13660 ></A
13661 >preload</DT
13662 ><DD
13663 ><P
13664 >This is a list of services that you want to be 
13665                 automatically added to the browse lists. This is most useful 
13666                 for homes and printers services that would otherwise not be 
13667                 visible.</P
13668 ><P
13669 >Note that if you just want all printers in your 
13670                 printcap file loaded then the <A
13671 HREF="#LOADPRINTERS"
13672 >               <TT
13673 CLASS="PARAMETER"
13674 ><I
13675 >load printers</I
13676 ></TT
13677 ></A
13678 > option is easier.</P
13679 ><P
13680 >Default: <EM
13681 >no preloaded services</EM
13682 ></P
13683 ><P
13684 >Example: <B
13685 CLASS="COMMAND"
13686 >preload = fred lp colorlp</B
13687 ></P
13688 ></DD
13689 ><DT
13690 ><A
13691 NAME="PRESERVECASE"
13692 ></A
13693 >preserve case (S)</DT
13694 ><DD
13695 ><P
13696 > This controls if new filenames are created
13697                 with the case that the client passes, or if they are forced to 
13698                 be the <A
13699 HREF="#DEFAULTCASE"
13700 ><TT
13701 CLASS="PARAMETER"
13702 ><I
13703 >default case
13704                 </I
13705 ></TT
13706 ></A
13707 >.</P
13708 ><P
13709 >Default: <B
13710 CLASS="COMMAND"
13711 >preserve case = yes</B
13712 ></P
13713 ><P
13714 >See the section on <A
13715 HREF="#AEN203"
13716 >NAME 
13717                 MANGLING</A
13718 > for a fuller discussion.</P
13719 ></DD
13720 ><DT
13721 ><A
13722 NAME="PRINTCOMMAND"
13723 ></A
13724 >print command (S)</DT
13725 ><DD
13726 ><P
13727 >After a print job has finished spooling to 
13728                 a service, this command will be used via a <B
13729 CLASS="COMMAND"
13730 >system()</B
13731
13732                 call to process the spool file. Typically the command specified will 
13733                 submit the spool file to the host's printing subsystem, but there 
13734                 is no requirement that this be the case. The server will not remove 
13735                 the spool file, so whatever command you specify should remove the 
13736                 spool file when it has been processed, otherwise you will need to 
13737                 manually remove old spool files.</P
13738 ><P
13739 >The print command is simply a text string. It will be used 
13740                 verbatim after macro substitutions have been made:</P
13741 ><P
13742 >s, %p - the path to the spool
13743                 file name</P
13744 ><P
13745 >%p - the appropriate printer 
13746                 name</P
13747 ><P
13748 >%J - the job 
13749                 name as transmitted by the client.</P
13750 ><P
13751 >%c - The number of printed pages
13752                 of the spooled job (if known).</P
13753 ><P
13754 >%z - the size of the spooled
13755                 print job (in bytes)</P
13756 ><P
13757 >The print command <EM
13758 >MUST</EM
13759 > contain at least 
13760                 one occurrence of <TT
13761 CLASS="PARAMETER"
13762 ><I
13763 >%s</I
13764 ></TT
13765 > or <TT
13766 CLASS="PARAMETER"
13767 ><I
13768 >%f
13769                 </I
13770 ></TT
13771 > - the <TT
13772 CLASS="PARAMETER"
13773 ><I
13774 >%p</I
13775 ></TT
13776 > is optional. At the time 
13777                 a job is submitted, if no printer name is supplied the <TT
13778 CLASS="PARAMETER"
13779 ><I
13780 >%p
13781                 </I
13782 ></TT
13783 > will be silently removed from the printer command.</P
13784 ><P
13785 >If specified in the [global] section, the print command given 
13786                 will be used for any printable service that does not have its own 
13787                 print command specified.</P
13788 ><P
13789 >If there is neither a specified print command for a 
13790                 printable service nor a global print command, spool files will 
13791                 be created but not processed and (most importantly) not removed.</P
13792 ><P
13793 >Note that printing may fail on some UNIXes from the 
13794                 <TT
13795 CLASS="CONSTANT"
13796 >nobody</TT
13797 > account. If this happens then create 
13798                 an alternative guest account that can print and set the <A
13799 HREF="#GUESTACCOUNT"
13800 ><TT
13801 CLASS="PARAMETER"
13802 ><I
13803 >guest account</I
13804 ></TT
13805 ></A
13806
13807                 in the [global] section.</P
13808 ><P
13809 >You can form quite complex print commands by realizing 
13810                 that they are just passed to a shell. For example the following 
13811                 will log a print job, print the file, then remove it. Note that 
13812                 ';' is the usual separator for command in shell scripts.</P
13813 ><P
13814 ><B
13815 CLASS="COMMAND"
13816 >print command = echo Printing %s &#62;&#62; 
13817                 /tmp/print.log; lpr -P %p %s; rm %s</B
13818 ></P
13819 ><P
13820 >You may have to vary this command considerably depending 
13821                 on how you normally print files on your system. The default for 
13822                 the parameter varies depending on the setting of the <A
13823 HREF="#PRINTING"
13824 >               <TT
13825 CLASS="PARAMETER"
13826 ><I
13827 >printing</I
13828 ></TT
13829 ></A
13830 > parameter.</P
13831 ><P
13832 >Default: For <B
13833 CLASS="COMMAND"
13834 >printing = BSD, AIX, QNX, LPRNG 
13835                 or PLP :</B
13836 ></P
13837 ><P
13838 ><B
13839 CLASS="COMMAND"
13840 >print command = lpr -r -P%p %s</B
13841 ></P
13842 ><P
13843 >For <B
13844 CLASS="COMMAND"
13845 >printing = SYSV or HPUX :</B
13846 ></P
13847 ><P
13848 ><B
13849 CLASS="COMMAND"
13850 >print command = lp -c -d%p %s; rm %s</B
13851 ></P
13852 ><P
13853 >For <B
13854 CLASS="COMMAND"
13855 >printing = SOFTQ :</B
13856 ></P
13857 ><P
13858 ><B
13859 CLASS="COMMAND"
13860 >print command = lp -d%p -s %s; rm %s</B
13861 ></P
13862 ><P
13863 >For printing = CUPS :   If SAMBA is compiled against
13864                 libcups, then <A
13865 HREF="#PRINTING"
13866 >printcap = cups</A
13867
13868                 uses the CUPS API to
13869                 submit jobs, etc.  Otherwise it maps to the System V
13870                 commands with the -oraw option for printing, i.e. it
13871                 uses <B
13872 CLASS="COMMAND"
13873 >lp -c -d%p -oraw; rm %s</B
13874 >.   
13875                 With <B
13876 CLASS="COMMAND"
13877 >printing = cups</B
13878 >,
13879                 and if SAMBA is compiled against libcups, any manually 
13880                 set print command will be ignored.</P
13881 ><P
13882 >Example: <B
13883 CLASS="COMMAND"
13884 >print command = /usr/local/samba/bin/myprintscript
13885                 %p %s</B
13886 ></P
13887 ></DD
13888 ><DT
13889 ><A
13890 NAME="PRINTOK"
13891 ></A
13892 >print ok (S)</DT
13893 ><DD
13894 ><P
13895 >Synonym for <A
13896 HREF="#PRINTABLE"
13897 >               <TT
13898 CLASS="PARAMETER"
13899 ><I
13900 >printable</I
13901 ></TT
13902 ></A
13903 >.</P
13904 ></DD
13905 ><DT
13906 ><A
13907 NAME="PRINTABLE"
13908 ></A
13909 >printable (S)</DT
13910 ><DD
13911 ><P
13912 >If this parameter is <TT
13913 CLASS="CONSTANT"
13914 >yes</TT
13915 >, then 
13916                 clients may open, write to and submit spool files on the directory 
13917                 specified for the service. </P
13918 ><P
13919 >Note that a printable service will ALWAYS allow writing 
13920                 to the service path (user privileges permitting) via the spooling 
13921                 of print data. The <A
13922 HREF="#WRITEABLE"
13923 ><TT
13924 CLASS="PARAMETER"
13925 ><I
13926 >writeable
13927                 </I
13928 ></TT
13929 ></A
13930 > parameter controls only non-printing access to 
13931                 the resource.</P
13932 ><P
13933 >Default: <B
13934 CLASS="COMMAND"
13935 >printable = no</B
13936 ></P
13937 ></DD
13938 ><DT
13939 ><A
13940 NAME="PRINTCAP"
13941 ></A
13942 >printcap (G)</DT
13943 ><DD
13944 ><P
13945 >Synonym for    <A
13946 HREF="#PRINTCAPNAME"
13947 ><TT
13948 CLASS="PARAMETER"
13949 ><I
13950 >               printcap name</I
13951 ></TT
13952 ></A
13953 >.</P
13954 ></DD
13955 ><DT
13956 ><A
13957 NAME="PRINTCAPNAME"
13958 ></A
13959 >printcap name (G)</DT
13960 ><DD
13961 ><P
13962 >This parameter may be used to override the 
13963                 compiled-in default printcap name used by the server (usually <TT
13964 CLASS="FILENAME"
13965 >               /etc/printcap</TT
13966 >). See the discussion of the <A
13967 HREF="#AEN79"
13968 >[printers]</A
13969 > section above for reasons 
13970                 why you might want to do this.</P
13971 ><P
13972 >To use the CUPS printing interface set <B
13973 CLASS="COMMAND"
13974 >printcap name = cups
13975                 </B
13976 >. This should be supplemented by an addtional setting 
13977                 <A
13978 HREF="#PRINTING"
13979 >printing = cups</A
13980 > in the [global] 
13981                 section.  <B
13982 CLASS="COMMAND"
13983 >printcap name = cups</B
13984 > will use the  
13985                 "dummy" printcap created by CUPS, as specified in your CUPS
13986                 configuration file.
13987                 </P
13988 ><P
13989 >On System V systems that use <B
13990 CLASS="COMMAND"
13991 >lpstat</B
13992 > to 
13993                 list available printers you can use <B
13994 CLASS="COMMAND"
13995 >printcap name = lpstat
13996                 </B
13997 > to automatically obtain lists of available printers. This 
13998                 is the default for systems that define SYSV at configure time in 
13999                 Samba (this includes most System V based systems). If <TT
14000 CLASS="PARAMETER"
14001 ><I
14002 >               printcap name</I
14003 ></TT
14004 > is set to <B
14005 CLASS="COMMAND"
14006 >lpstat</B
14007 > on 
14008                 these systems then Samba will launch <B
14009 CLASS="COMMAND"
14010 >lpstat -v</B
14011 > and 
14012                 attempt to parse the output to obtain a printer list.</P
14013 ><P
14014 >A minimal printcap file would look something like this:</P
14015 ><P
14016 ><TABLE
14017 BORDER="0"
14018 BGCOLOR="#E0E0E0"
14019 WIDTH="90%"
14020 ><TR
14021 ><TD
14022 ><PRE
14023 CLASS="PROGRAMLISTING"
14024 >               print1|My Printer 1
14025                 print2|My Printer 2
14026                 print3|My Printer 3
14027                 print4|My Printer 4
14028                 print5|My Printer 5
14029                 </PRE
14030 ></TD
14031 ></TR
14032 ></TABLE
14033 ></P
14034 ><P
14035 >where the '|' separates aliases of a printer. The fact 
14036                 that the second alias has a space in it gives a hint to Samba 
14037                 that it's a comment.</P
14038 ><P
14039 ><EM
14040 >NOTE</EM
14041 >: Under AIX the default printcap 
14042                 name is <TT
14043 CLASS="FILENAME"
14044 >/etc/qconfig</TT
14045 >. Samba will assume the 
14046                 file is in AIX <TT
14047 CLASS="FILENAME"
14048 >qconfig</TT
14049 > format if the string
14050                 <TT
14051 CLASS="FILENAME"
14052 >qconfig</TT
14053 > appears in the printcap filename.</P
14054 ><P
14055 >Default: <B
14056 CLASS="COMMAND"
14057 >printcap name = /etc/printcap</B
14058 ></P
14059 ><P
14060 >Example: <B
14061 CLASS="COMMAND"
14062 >printcap name = /etc/myprintcap</B
14063 ></P
14064 ></DD
14065 ><DT
14066 ><A
14067 NAME="PRINTERADMIN"
14068 ></A
14069 >printer admin (S)</DT
14070 ><DD
14071 ><P
14072 >This is a list of users that can do anything to 
14073                 printers via the remote administration interfaces offered by MS-RPC 
14074                 (usually using a NT workstation). Note that the root user always 
14075                 has admin rights.</P
14076 ><P
14077 >Default: <B
14078 CLASS="COMMAND"
14079 >printer admin = &#60;empty string&#62;</B
14080 >
14081                 </P
14082 ><P
14083 >Example: <B
14084 CLASS="COMMAND"
14085 >printer admin = admin, @staff</B
14086 ></P
14087 ></DD
14088 ><DT
14089 ><A
14090 NAME="PRINTERDRIVER"
14091 ></A
14092 >printer driver (S)</DT
14093 ><DD
14094 ><P
14095 ><EM
14096 >Note :</EM
14097 >This is a deprecated 
14098                 parameter and will be removed in the next major release
14099                 following version 2.2.  Please see the instructions in
14100                 the <A
14101 HREF="printer_driver2.html"
14102 TARGET="_top"
14103 >Samba 2.2. Printing
14104                 HOWTO</A
14105 > for more information
14106                 on the new method of loading printer drivers onto a Samba server.
14107                 </P
14108 ><P
14109 >This option allows you to control the string 
14110                 that clients receive when they ask the server for the printer driver 
14111                 associated with a printer. If you are using Windows95 or Windows NT 
14112                 then you can use this to automate the setup of printers on your 
14113                 system.</P
14114 ><P
14115 >You need to set this parameter to the exact string (case 
14116                 sensitive) that describes the appropriate printer driver for your 
14117                 system. If you don't know the exact string to use then you should 
14118                 first try with no <A
14119 HREF="#PRINTERDRIVER"
14120 ><TT
14121 CLASS="PARAMETER"
14122 ><I
14123 >               printer driver</I
14124 ></TT
14125 ></A
14126 > option set and the client will 
14127                 give you a list of printer drivers. The appropriate strings are 
14128                 shown in a scroll box after you have chosen the printer manufacturer.</P
14129 ><P
14130 >See also <A
14131 HREF="#PRINTERDRIVERFILE"
14132 ><TT
14133 CLASS="PARAMETER"
14134 ><I
14135 >printer
14136                 driver file</I
14137 ></TT
14138 ></A
14139 >.</P
14140 ><P
14141 >Example: <B
14142 CLASS="COMMAND"
14143 >printer driver = HP LaserJet 4L</B
14144 ></P
14145 ></DD
14146 ><DT
14147 ><A
14148 NAME="PRINTERDRIVERFILE"
14149 ></A
14150 >printer driver file (G)</DT
14151 ><DD
14152 ><P
14153 ><EM
14154 >Note :</EM
14155 >This is a deprecated 
14156                 parameter and will be removed in the next major release
14157                 following version 2.2.  Please see the instructions in
14158                 the <A
14159 HREF="printer_driver2.html"
14160 TARGET="_top"
14161 >Samba 2.2. Printing
14162                 HOWTO</A
14163 > for more information
14164                 on the new method of loading printer drivers onto a Samba server.
14165                 </P
14166 ><P
14167 >This parameter tells Samba where the printer driver 
14168                 definition file, used when serving drivers to Windows 95 clients, is 
14169                 to be found. If this is not set, the default is :</P
14170 ><P
14171 ><TT
14172 CLASS="FILENAME"
14173 ><TT
14174 CLASS="REPLACEABLE"
14175 ><I
14176 >SAMBA_INSTALL_DIRECTORY</I
14177 ></TT
14178 >
14179                 /lib/printers.def</TT
14180 ></P
14181 ><P
14182 >This file is created from Windows 95 <TT
14183 CLASS="FILENAME"
14184 >msprint.inf
14185                 </TT
14186 > files found on the Windows 95 client system. For more 
14187                 details on setting up serving of printer drivers to Windows 95 
14188                 clients, see the outdated documentation file in the <TT
14189 CLASS="FILENAME"
14190 >docs/</TT
14191
14192                 directory, <TT
14193 CLASS="FILENAME"
14194 >PRINTER_DRIVER.txt</TT
14195 >.</P
14196 ><P
14197 >See also <A
14198 HREF="#PRINTERDRIVERLOCATION"
14199 ><TT
14200 CLASS="PARAMETER"
14201 ><I
14202 >               printer driver location</I
14203 ></TT
14204 ></A
14205 >.</P
14206 ><P
14207 >Default: <EM
14208 >None (set in compile).</EM
14209 ></P
14210 ><P
14211 >Example: <B
14212 CLASS="COMMAND"
14213 >printer driver file = 
14214                 /usr/local/samba/printers/drivers.def</B
14215 ></P
14216 ></DD
14217 ><DT
14218 ><A
14219 NAME="PRINTERDRIVERLOCATION"
14220 ></A
14221 >printer driver location (S)</DT
14222 ><DD
14223 ><P
14224 ><EM
14225 >Note :</EM
14226 >This is a deprecated 
14227                 parameter and will be removed in the next major release
14228                 following version 2.2.  Please see the instructions in
14229                 the <A
14230 HREF="printer_driver2.html"
14231 TARGET="_top"
14232 >Samba 2.2. Printing
14233                 HOWTO</A
14234 > for more information
14235                 on the new method of loading printer drivers onto a Samba server.
14236                 </P
14237 ><P
14238 >This parameter tells clients of a particular printer 
14239                 share where to find the printer driver files for the automatic 
14240                 installation of drivers for Windows 95 machines. If Samba is set up 
14241                 to serve printer drivers to Windows 95 machines, this should be set to</P
14242 ><P
14243 ><B
14244 CLASS="COMMAND"
14245 >\\MACHINE\PRINTER$</B
14246 ></P
14247 ><P
14248 >Where MACHINE is the NetBIOS name of your Samba server, 
14249                 and PRINTER$ is a share you set up for serving printer driver 
14250                 files. For more details on setting this up see the outdated documentation 
14251                 file in the <TT
14252 CLASS="FILENAME"
14253 >docs/</TT
14254 > directory, <TT
14255 CLASS="FILENAME"
14256 >               PRINTER_DRIVER.txt</TT
14257 >.</P
14258 ><P
14259 >See also <A
14260 HREF="#PRINTERDRIVERFILE"
14261 ><TT
14262 CLASS="PARAMETER"
14263 ><I
14264 >               printer driver file</I
14265 ></TT
14266 ></A
14267 >.</P
14268 ><P
14269 >Default: <B
14270 CLASS="COMMAND"
14271 >none</B
14272 ></P
14273 ><P
14274 >Example: <B
14275 CLASS="COMMAND"
14276 >printer driver location = \\MACHINE\PRINTER$
14277                 </B
14278 ></P
14279 ></DD
14280 ><DT
14281 ><A
14282 NAME="PRINTERNAME"
14283 ></A
14284 >printer name (S)</DT
14285 ><DD
14286 ><P
14287 >This parameter specifies the name of the printer 
14288                 to which print jobs spooled through a printable service will be sent.</P
14289 ><P
14290 >If specified in the [global] section, the printer
14291                 name given will be used for any printable service that does 
14292                 not have its own printer name specified.</P
14293 ><P
14294 >Default: <EM
14295 >none (but may be <TT
14296 CLASS="CONSTANT"
14297 >lp</TT
14298
14299                 on many systems)</EM
14300 ></P
14301 ><P
14302 >Example: <B
14303 CLASS="COMMAND"
14304 >printer name = laserwriter</B
14305 ></P
14306 ></DD
14307 ><DT
14308 ><A
14309 NAME="PRINTER"
14310 ></A
14311 >printer (S)</DT
14312 ><DD
14313 ><P
14314 >Synonym for <A
14315 HREF="#PRINTERNAME"
14316 ><TT
14317 CLASS="PARAMETER"
14318 ><I
14319 >               printer name</I
14320 ></TT
14321 ></A
14322 >.</P
14323 ></DD
14324 ><DT
14325 ><A
14326 NAME="PRINTING"
14327 ></A
14328 >printing (S)</DT
14329 ><DD
14330 ><P
14331 >This parameters controls how printer status 
14332                 information is interpreted on your system. It also affects the 
14333                 default values for the <TT
14334 CLASS="PARAMETER"
14335 ><I
14336 >print command</I
14337 ></TT
14338 >, 
14339                 <TT
14340 CLASS="PARAMETER"
14341 ><I
14342 >lpq command</I
14343 ></TT
14344 >, <TT
14345 CLASS="PARAMETER"
14346 ><I
14347 >lppause command
14348                 </I
14349 ></TT
14350 >, <TT
14351 CLASS="PARAMETER"
14352 ><I
14353 >lpresume command</I
14354 ></TT
14355 >, and 
14356                 <TT
14357 CLASS="PARAMETER"
14358 ><I
14359 >lprm command</I
14360 ></TT
14361 > if specified in the 
14362                 [global] section.</P
14363 ><P
14364 >Currently nine printing styles are supported. They are
14365                 <TT
14366 CLASS="CONSTANT"
14367 >BSD</TT
14368 >, <TT
14369 CLASS="CONSTANT"
14370 >AIX</TT
14371 >, 
14372                 <TT
14373 CLASS="CONSTANT"
14374 >LPRNG</TT
14375 >, <TT
14376 CLASS="CONSTANT"
14377 >PLP</TT
14378 >,
14379                 <TT
14380 CLASS="CONSTANT"
14381 >SYSV</TT
14382 >, <TT
14383 CLASS="CONSTANT"
14384 >HPUX</TT
14385 >,
14386                 <TT
14387 CLASS="CONSTANT"
14388 >QNX</TT
14389 >, <TT
14390 CLASS="CONSTANT"
14391 >SOFTQ</TT
14392 >,
14393                 and <TT
14394 CLASS="CONSTANT"
14395 >CUPS</TT
14396 >.</P
14397 ><P
14398 >To see what the defaults are for the other print 
14399                 commands when using the various options use the <A
14400 HREF="testparm.1.html"
14401 TARGET="_top"
14402 >testparm(1)</A
14403 > program.</P
14404 ><P
14405 >This option can be set on a per printer basis</P
14406 ><P
14407 >See also the discussion in the <A
14408 HREF="#AEN79"
14409 >               [printers]</A
14410 > section.</P
14411 ></DD
14412 ><DT
14413 ><A
14414 NAME="PRIVATEDIR"
14415 ></A
14416 >private dir (G)</DT
14417 ><DD
14418 ><P
14419 >This parameters defines the directory
14420                 smbd will use for storing such files as <TT
14421 CLASS="FILENAME"
14422 >smbpasswd</TT
14423 >
14424                 and <TT
14425 CLASS="FILENAME"
14426 >secrets.tdb</TT
14427 >.
14428                 </P
14429 ><P
14430 >Default :<B
14431 CLASS="COMMAND"
14432 >private dir = ${prefix}/private</B
14433 ></P
14434 ></DD
14435 ><DT
14436 ><A
14437 NAME="PROTOCOL"
14438 ></A
14439 >protocol (G)</DT
14440 ><DD
14441 ><P
14442 >Synonym for <A
14443 HREF="#MAXPROTOCOL"
14444 >               <TT
14445 CLASS="PARAMETER"
14446 ><I
14447 >max protocol</I
14448 ></TT
14449 ></A
14450 >.</P
14451 ></DD
14452 ><DT
14453 ><A
14454 NAME="PUBLIC"
14455 ></A
14456 >public (S)</DT
14457 ><DD
14458 ><P
14459 >Synonym for <A
14460 HREF="#GUESTOK"
14461 ><TT
14462 CLASS="PARAMETER"
14463 ><I
14464 >guest 
14465                 ok</I
14466 ></TT
14467 ></A
14468 >.</P
14469 ></DD
14470 ><DT
14471 ><A
14472 NAME="QUEUEPAUSECOMMAND"
14473 ></A
14474 >queuepause command (S)</DT
14475 ><DD
14476 ><P
14477 >This parameter specifies the command to be 
14478                 executed on the server host in order to pause the printer queue.</P
14479 ><P
14480 >This command should be a program or script which takes 
14481                 a printer name as its only parameter and stops the printer queue, 
14482                 such that no longer jobs are submitted to the printer.</P
14483 ><P
14484 >This command is not supported by Windows for Workgroups, 
14485                 but can be issued from the Printers window under Windows 95 
14486                 and NT.</P
14487 ><P
14488 >If a <TT
14489 CLASS="PARAMETER"
14490 ><I
14491 >%p</I
14492 ></TT
14493 > is given then the printer name 
14494                 is put in its place. Otherwise it is placed at the end of the command.
14495                 </P
14496 ><P
14497 >Note that it is good practice to include the absolute 
14498                 path in the command as the PATH may not be available to the 
14499                 server.</P
14500 ><P
14501 >Default: <EM
14502 >depends on the setting of <TT
14503 CLASS="PARAMETER"
14504 ><I
14505 >printing
14506                 </I
14507 ></TT
14508 ></EM
14509 ></P
14510 ><P
14511 >Example: <B
14512 CLASS="COMMAND"
14513 >queuepause command = disable %p</B
14514 ></P
14515 ></DD
14516 ><DT
14517 ><A
14518 NAME="QUEUERESUMECOMMAND"
14519 ></A
14520 >queueresume command (S)</DT
14521 ><DD
14522 ><P
14523 >This parameter specifies the command to be 
14524                 executed on the server host in order to resume the printer queue. It 
14525                 is the command to undo the behavior that is caused by the 
14526                 previous parameter (<A
14527 HREF="#QUEUEPAUSECOMMAND"
14528 ><TT
14529 CLASS="PARAMETER"
14530 ><I
14531 >               queuepause command</I
14532 ></TT
14533 ></A
14534 >).</P
14535 ><P
14536 >This command should be a program or script which takes 
14537                 a printer name as its only parameter and resumes the printer queue, 
14538                 such that queued jobs are resubmitted to the printer.</P
14539 ><P
14540 >This command is not supported by Windows for Workgroups, 
14541                 but can be issued from the Printers window under Windows 95 
14542                 and NT.</P
14543 ><P
14544 >If a <TT
14545 CLASS="PARAMETER"
14546 ><I
14547 >%p</I
14548 ></TT
14549 > is given then the printer name 
14550                 is put in its place. Otherwise it is placed at the end of the 
14551                 command.</P
14552 ><P
14553 >Note that it is good practice to include the absolute 
14554                 path in the command as the PATH may not be available to the 
14555                 server.</P
14556 ><P
14557 >Default: <EM
14558 >depends on the setting of <A
14559 HREF="#PRINTING"
14560 ><TT
14561 CLASS="PARAMETER"
14562 ><I
14563 >printing</I
14564 ></TT
14565 ></A
14566 ></EM
14567 >
14568                 </P
14569 ><P
14570 >Example: <B
14571 CLASS="COMMAND"
14572 >queuepause command = enable %p
14573                 </B
14574 ></P
14575 ></DD
14576 ><DT
14577 ><A
14578 NAME="READBMPX"
14579 ></A
14580 >read bmpx (G)</DT
14581 ><DD
14582 ><P
14583 >This boolean parameter controls whether <A
14584 HREF="smbd.8.html"
14585 TARGET="_top"
14586 >smbd(8)</A
14587 > will support the "Read 
14588                 Block Multiplex" SMB. This is now rarely used and defaults to 
14589                 <TT
14590 CLASS="CONSTANT"
14591 >no</TT
14592 >. You should never need to set this 
14593                 parameter.</P
14594 ><P
14595 >Default: <B
14596 CLASS="COMMAND"
14597 >read bmpx = no</B
14598 ></P
14599 ></DD
14600 ><DT
14601 ><A
14602 NAME="READLIST"
14603 ></A
14604 >read list (S)</DT
14605 ><DD
14606 ><P
14607 >This is a list of users that are given read-only 
14608                 access to a service. If the connecting user is in this list then 
14609                 they will not be given write access, no matter what the <A
14610 HREF="#WRITEABLE"
14611 ><TT
14612 CLASS="PARAMETER"
14613 ><I
14614 >writeable</I
14615 ></TT
14616 ></A
14617 >
14618                 option is set to. The list can include group names using the 
14619                 syntax described in the <A
14620 HREF="#INVALIDUSERS"
14621 ><TT
14622 CLASS="PARAMETER"
14623 ><I
14624 >               invalid users</I
14625 ></TT
14626 ></A
14627 > parameter.</P
14628 ><P
14629 >See also the <A
14630 HREF="#WRITELIST"
14631 ><TT
14632 CLASS="PARAMETER"
14633 ><I
14634 >               write list</I
14635 ></TT
14636 ></A
14637 > parameter and the <A
14638 HREF="#INVALIDUSERS"
14639 ><TT
14640 CLASS="PARAMETER"
14641 ><I
14642 >invalid users</I
14643 ></TT
14644 >
14645                 </A
14646 > parameter.</P
14647 ><P
14648 >Default: <B
14649 CLASS="COMMAND"
14650 >read list = &#60;empty string&#62;</B
14651 ></P
14652 ><P
14653 >Example: <B
14654 CLASS="COMMAND"
14655 >read list = mary, @students</B
14656 ></P
14657 ></DD
14658 ><DT
14659 ><A
14660 NAME="READONLY"
14661 ></A
14662 >read only (S)</DT
14663 ><DD
14664 ><P
14665 >Note that this is an inverted synonym for <A
14666 HREF="#WRITEABLE"
14667 ><TT
14668 CLASS="PARAMETER"
14669 ><I
14670 >writeable</I
14671 ></TT
14672 ></A
14673 >.</P
14674 ></DD
14675 ><DT
14676 ><A
14677 NAME="READRAW"
14678 ></A
14679 >read raw (G)</DT
14680 ><DD
14681 ><P
14682 >This parameter controls whether or not the server 
14683                 will support the raw read SMB requests when transferring data 
14684                 to clients.</P
14685 ><P
14686 >If enabled, raw reads allow reads of 65535 bytes in 
14687                 one packet. This typically provides a major performance benefit.
14688                 </P
14689 ><P
14690 >However, some clients either negotiate the allowable 
14691                 block size incorrectly or are incapable of supporting larger block 
14692                 sizes, and for these clients you may need to disable raw reads.</P
14693 ><P
14694 >In general this parameter should be viewed as a system tuning 
14695                 tool and left severely alone. See also <A
14696 HREF="#WRITERAW"
14697 >               <TT
14698 CLASS="PARAMETER"
14699 ><I
14700 >write raw</I
14701 ></TT
14702 ></A
14703 >.</P
14704 ><P
14705 >Default: <B
14706 CLASS="COMMAND"
14707 >read raw = yes</B
14708 ></P
14709 ></DD
14710 ><DT
14711 ><A
14712 NAME="READSIZE"
14713 ></A
14714 >read size (G)</DT
14715 ><DD
14716 ><P
14717 >The option <TT
14718 CLASS="PARAMETER"
14719 ><I
14720 >read size</I
14721 ></TT
14722
14723                 affects the overlap of disk reads/writes with network reads/writes. 
14724                 If the amount of data being transferred in several of the SMB 
14725                 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger 
14726                 than this value then the server begins writing the data before it 
14727                 has received the whole packet from the network, or in the case of 
14728                 SMBreadbraw, it begins writing to the network before all the data 
14729                 has been read from disk.</P
14730 ><P
14731 >This overlapping works best when the speeds of disk and 
14732                 network access are similar, having very little effect when the 
14733                 speed of one is much greater than the other.</P
14734 ><P
14735 >The default value is 16384, but very little experimentation 
14736                 has been done yet to determine the optimal value, and it is likely 
14737                 that the best value will vary greatly between systems anyway. 
14738                 A value over 65536 is pointless and will cause you to allocate 
14739                 memory unnecessarily.</P
14740 ><P
14741 >Default: <B
14742 CLASS="COMMAND"
14743 >read size = 16384</B
14744 ></P
14745 ><P
14746 >Example: <B
14747 CLASS="COMMAND"
14748 >read size = 8192</B
14749 ></P
14750 ></DD
14751 ><DT
14752 ><A
14753 NAME="REMOTEANNOUNCE"
14754 ></A
14755 >remote announce (G)</DT
14756 ><DD
14757 ><P
14758 >This option allows you to setup <A
14759 HREF="nmbd.8.html"
14760 TARGET="_top"
14761 >nmbd(8)</A
14762 > to periodically announce itself 
14763                 to arbitrary IP addresses with an arbitrary workgroup name.</P
14764 ><P
14765 >This is useful if you want your Samba server to appear 
14766                 in a remote workgroup for which the normal browse propagation 
14767                 rules don't work. The remote workgroup can be anywhere that you 
14768                 can send IP packets to.</P
14769 ><P
14770 >For example:</P
14771 ><P
14772 ><B
14773 CLASS="COMMAND"
14774 >remote announce = 192.168.2.255/SERVERS 
14775                 192.168.4.255/STAFF</B
14776 ></P
14777 ><P
14778 >the above line would cause <B
14779 CLASS="COMMAND"
14780 >nmbd</B
14781 > to announce itself 
14782                 to the two given IP addresses using the given workgroup names. 
14783                 If you leave out the workgroup name then the one given in 
14784                 the <A
14785 HREF="#WORKGROUP"
14786 ><TT
14787 CLASS="PARAMETER"
14788 ><I
14789 >workgroup</I
14790 ></TT
14791 ></A
14792
14793                 parameter is used instead.</P
14794 ><P
14795 >The IP addresses you choose would normally be the broadcast 
14796                 addresses of the remote networks, but can also be the IP addresses 
14797                 of known browse masters if your network config is that stable.</P
14798 ><P
14799 >See the documentation file <TT
14800 CLASS="FILENAME"
14801 >BROWSING.txt</TT
14802
14803                 in the <TT
14804 CLASS="FILENAME"
14805 >docs/</TT
14806 > directory.</P
14807 ><P
14808 >Default: <B
14809 CLASS="COMMAND"
14810 >remote announce = &#60;empty string&#62;
14811                 </B
14812 ></P
14813 ></DD
14814 ><DT
14815 ><A
14816 NAME="REMOTEBROWSESYNC"
14817 ></A
14818 >remote browse sync (G)</DT
14819 ><DD
14820 ><P
14821 >This option allows you to setup <A
14822 HREF="nmbd.8.html"
14823 TARGET="_top"
14824 >nmbd(8)</A
14825 > to periodically request 
14826                 synchronization of browse lists with the master browser of a Samba 
14827                 server that is on a remote segment. This option will allow you to 
14828                 gain browse lists for multiple workgroups across routed networks. This 
14829                 is done in a manner that does not work with any non-Samba servers.</P
14830 ><P
14831 >This is useful if you want your Samba server and all local 
14832                 clients to appear in a remote workgroup for which the normal browse 
14833                 propagation rules don't work. The remote workgroup can be anywhere 
14834                 that you can send IP packets to.</P
14835 ><P
14836 >For example:</P
14837 ><P
14838 ><B
14839 CLASS="COMMAND"
14840 >remote browse sync = 192.168.2.255 192.168.4.255
14841                 </B
14842 ></P
14843 ><P
14844 >the above line would cause <B
14845 CLASS="COMMAND"
14846 >nmbd</B
14847 > to request 
14848                 the master browser on the specified subnets or addresses to 
14849                 synchronize their browse lists with the local server.</P
14850 ><P
14851 >The IP addresses you choose would normally be the broadcast 
14852                 addresses of the remote networks, but can also be the IP addresses 
14853                 of known browse masters if your network config is that stable. If 
14854                 a machine IP address is given Samba makes NO attempt to validate 
14855                 that the remote machine is available, is listening, nor that it 
14856                 is in fact the browse master on its segment.</P
14857 ><P
14858 >Default: <B
14859 CLASS="COMMAND"
14860 >remote browse sync = &#60;empty string&#62;
14861                 </B
14862 ></P
14863 ></DD
14864 ><DT
14865 ><A
14866 NAME="RESTRICTANONYMOUS"
14867 ></A
14868 >restrict anonymous (G)</DT
14869 ><DD
14870 ><P
14871 >This is a boolean parameter.  If it is <TT
14872 CLASS="CONSTANT"
14873 >true</TT
14874 >, then 
14875                 anonymous access to the server will be restricted, namely in the 
14876                 case where the server is expecting the client to send a username, 
14877                 but it doesn't.  Setting it to <TT
14878 CLASS="CONSTANT"
14879 >true</TT
14880 > will force these anonymous 
14881                 connections to be denied, and the client will be required to always 
14882                 supply a username and password when connecting. Use of this parameter 
14883                 is only recommended for homogeneous NT client environments.</P
14884 ><P
14885 >This parameter makes the use of macro expansions that rely
14886                 on the username (%U, %G, etc) consistent.  NT 4.0 
14887                 likes to use anonymous connections when refreshing the share list, 
14888                 and this is a way to work around that.</P
14889 ><P
14890 >When restrict anonymous is <TT
14891 CLASS="CONSTANT"
14892 >true</TT
14893 >, all anonymous connections 
14894                 are denied no matter what they are for.  This can effect the ability 
14895                 of a machine to access the Samba Primary Domain Controller to revalidate 
14896                 its machine account after someone else has logged on the client 
14897                 interactively.  The NT client will display a message saying that 
14898                 the machine's account in  the domain doesn't exist or the password is 
14899                 bad.  The best way to deal  with this is to reboot NT client machines 
14900                 between interactive logons,  using "Shutdown and Restart", rather 
14901                 than "Close all programs and logon as a different user".</P
14902 ><P
14903 >Default: <B
14904 CLASS="COMMAND"
14905 >restrict anonymous = no</B
14906 ></P
14907 ></DD
14908 ><DT
14909 ><A
14910 NAME="ROOT"
14911 ></A
14912 >root (G)</DT
14913 ><DD
14914 ><P
14915 >Synonym for <A
14916 HREF="#ROOTDIRECTORY"
14917 >               <TT
14918 CLASS="PARAMETER"
14919 ><I
14920 >root directory"</I
14921 ></TT
14922 ></A
14923 >.</P
14924 ></DD
14925 ><DT
14926 ><A
14927 NAME="ROOTDIR"
14928 ></A
14929 >root dir (G)</DT
14930 ><DD
14931 ><P
14932 >Synonym for <A
14933 HREF="#ROOTDIRECTORY"
14934 >               <TT
14935 CLASS="PARAMETER"
14936 ><I
14937 >root directory"</I
14938 ></TT
14939 ></A
14940 >.</P
14941 ></DD
14942 ><DT
14943 ><A
14944 NAME="ROOTDIRECTORY"
14945 ></A
14946 >root directory (G)</DT
14947 ><DD
14948 ><P
14949 >The server will <B
14950 CLASS="COMMAND"
14951 >chroot()</B
14952 > (i.e. 
14953                 Change its root directory) to this directory on startup. This is 
14954                 not strictly necessary for secure operation. Even without it the 
14955                 server will deny access to files not in one of the service entries. 
14956                 It may also check for, and deny access to, soft links to other 
14957                 parts of the filesystem, or attempts to use ".." in file names 
14958                 to access other directories (depending on the setting of the <A
14959 HREF="#WIDELINKS"
14960 ><TT
14961 CLASS="PARAMETER"
14962 ><I
14963 >wide links</I
14964 ></TT
14965 ></A
14966
14967                 parameter).</P
14968 ><P
14969 >Adding a <TT
14970 CLASS="PARAMETER"
14971 ><I
14972 >root directory</I
14973 ></TT
14974 > entry other 
14975                 than "/" adds an extra level of security, but at a price. It 
14976                 absolutely ensures that no access is given to files not in the 
14977                 sub-tree specified in the <TT
14978 CLASS="PARAMETER"
14979 ><I
14980 >root directory</I
14981 ></TT
14982
14983                 option, <EM
14984 >including</EM
14985 > some files needed for 
14986                 complete operation of the server. To maintain full operability 
14987                 of the server you will need to mirror some system files 
14988                 into the <TT
14989 CLASS="PARAMETER"
14990 ><I
14991 >root directory</I
14992 ></TT
14993 > tree. In particular 
14994                 you will need to mirror <TT
14995 CLASS="FILENAME"
14996 >/etc/passwd</TT
14997 > (or a 
14998                 subset of it), and any binaries or configuration files needed for 
14999                 printing (if required). The set of files that must be mirrored is
15000                 operating system dependent.</P
15001 ><P
15002 >Default: <B
15003 CLASS="COMMAND"
15004 >root directory = /</B
15005 ></P
15006 ><P
15007 >Example: <B
15008 CLASS="COMMAND"
15009 >root directory = /homes/smb</B
15010 ></P
15011 ></DD
15012 ><DT
15013 ><A
15014 NAME="ROOTPOSTEXEC"
15015 ></A
15016 >root postexec (S)</DT
15017 ><DD
15018 ><P
15019 >This is the same as the <TT
15020 CLASS="PARAMETER"
15021 ><I
15022 >postexec</I
15023 ></TT
15024 >
15025                 parameter except that the command is run as root. This 
15026                 is useful for unmounting filesystems 
15027                 (such as CDROMs) after a connection is closed.</P
15028 ><P
15029 >See also <A
15030 HREF="#POSTEXEC"
15031 ><TT
15032 CLASS="PARAMETER"
15033 ><I
15034 >               postexec</I
15035 ></TT
15036 ></A
15037 >.</P
15038 ><P
15039 >Default: <B
15040 CLASS="COMMAND"
15041 >root postexec = &#60;empty string&#62;
15042                 </B
15043 ></P
15044 ></DD
15045 ><DT
15046 ><A
15047 NAME="ROOTPREEXEC"
15048 ></A
15049 >root preexec (S)</DT
15050 ><DD
15051 ><P
15052 >This is the same as the <TT
15053 CLASS="PARAMETER"
15054 ><I
15055 >preexec</I
15056 ></TT
15057 >
15058                 parameter except that the command is run as root. This 
15059                 is useful for mounting filesystems (such as CDROMs) when a 
15060                 connection is opened.</P
15061 ><P
15062 >See also <A
15063 HREF="#PREEXEC"
15064 ><TT
15065 CLASS="PARAMETER"
15066 ><I
15067 >               preexec</I
15068 ></TT
15069 ></A
15070 > and <A
15071 HREF="#PREEXECCLOSE"
15072 >               <TT
15073 CLASS="PARAMETER"
15074 ><I
15075 >preexec close</I
15076 ></TT
15077 ></A
15078 >.</P
15079 ><P
15080 >Default: <B
15081 CLASS="COMMAND"
15082 >root preexec = &#60;empty string&#62;
15083                 </B
15084 ></P
15085 ></DD
15086 ><DT
15087 ><A
15088 NAME="ROOTPREEXECCLOSE"
15089 ></A
15090 >root preexec close (S)</DT
15091 ><DD
15092 ><P
15093 >This is the same as the <TT
15094 CLASS="PARAMETER"
15095 ><I
15096 >preexec close
15097                 </I
15098 ></TT
15099 > parameter except that the command is run as root.</P
15100 ><P
15101 >See also <A
15102 HREF="#PREEXEC"
15103 ><TT
15104 CLASS="PARAMETER"
15105 ><I
15106 >               preexec</I
15107 ></TT
15108 ></A
15109 > and <A
15110 HREF="#PREEXECCLOSE"
15111 >               <TT
15112 CLASS="PARAMETER"
15113 ><I
15114 >preexec close</I
15115 ></TT
15116 ></A
15117 >.</P
15118 ><P
15119 >Default: <B
15120 CLASS="COMMAND"
15121 >root preexec close = no</B
15122 ></P
15123 ></DD
15124 ><DT
15125 ><A
15126 NAME="SECURITY"
15127 ></A
15128 >security (G)</DT
15129 ><DD
15130 ><P
15131 >This option affects how clients respond to 
15132                 Samba and is one of the most important settings in the <TT
15133 CLASS="FILENAME"
15134 >               smb.conf</TT
15135 > file.</P
15136 ><P
15137 >The option sets the "security mode bit" in replies to 
15138                 protocol negotiations with <A
15139 HREF="smbd.8.html"
15140 TARGET="_top"
15141 >smbd(8)
15142                 </A
15143 > to turn share level security on or off. Clients decide 
15144                 based on this bit whether (and how) to transfer user and password 
15145                 information to the server.</P
15146 ><P
15147 >The default is <B
15148 CLASS="COMMAND"
15149 >security = user</B
15150 >, as this is
15151                 the most common setting needed when talking to Windows 98 and 
15152                 Windows NT.</P
15153 ><P
15154 >The alternatives are <B
15155 CLASS="COMMAND"
15156 >security = share</B
15157 >,
15158                 <B
15159 CLASS="COMMAND"
15160 >security = server</B
15161 > or <B
15162 CLASS="COMMAND"
15163 >security = domain
15164                 </B
15165 >.</P
15166 ><P
15167 >In versions of Samba prior to 2.0.0, the default was 
15168                 <B
15169 CLASS="COMMAND"
15170 >security = share</B
15171 > mainly because that was
15172                 the only option at one stage.</P
15173 ><P
15174 >There is a bug in WfWg that has relevance to this 
15175                 setting. When in user or server level security a WfWg client 
15176                 will totally ignore the password you type in the "connect 
15177                 drive" dialog box. This makes it very difficult (if not impossible) 
15178                 to connect to a Samba service as anyone except the user that 
15179                 you are logged into WfWg as.</P
15180 ><P
15181 >If your PCs use usernames that are the same as their 
15182                 usernames on the UNIX machine then you will want to use 
15183                 <B
15184 CLASS="COMMAND"
15185 >security = user</B
15186 >. If you mostly use usernames 
15187                 that don't exist on the UNIX box then use <B
15188 CLASS="COMMAND"
15189 >security = 
15190                 share</B
15191 >.</P
15192 ><P
15193 >You should also use <B
15194 CLASS="COMMAND"
15195 >security = share</B
15196 > if you 
15197                 want to mainly setup shares without a password (guest shares). This 
15198                 is commonly used for a shared printer server. It is more difficult 
15199                 to setup guest shares with <B
15200 CLASS="COMMAND"
15201 >security = user</B
15202 >, see 
15203                 the <A
15204 HREF="#MAPTOGUEST"
15205 ><TT
15206 CLASS="PARAMETER"
15207 ><I
15208 >map to guest</I
15209 ></TT
15210 >
15211                 </A
15212 >parameter for details.</P
15213 ><P
15214 >It is possible to use <B
15215 CLASS="COMMAND"
15216 >smbd</B
15217 > in a <EM
15218 >               hybrid mode</EM
15219 > where it is offers both user and share 
15220                 level security under different <A
15221 HREF="#NETBIOSALIASES"
15222 >               <TT
15223 CLASS="PARAMETER"
15224 ><I
15225 >NetBIOS aliases</I
15226 ></TT
15227 ></A
15228 >. </P
15229 ><P
15230 >The different settings will now be explained.</P
15231 ><P
15232 ><A
15233 NAME="SECURITYEQUALSSHARE"
15234 ></A
15235 ><EM
15236 >SECURITY = SHARE
15237                 </EM
15238 ></P
15239 ><P
15240 >When clients connect to a share level security server they 
15241                 need not log onto the server with a valid username and password before 
15242                 attempting to connect to a shared resource (although modern clients 
15243                 such as Windows 95/98 and Windows NT will send a logon request with 
15244                 a username but no password when talking to a <B
15245 CLASS="COMMAND"
15246 >security = share
15247                 </B
15248 > server). Instead, the clients send authentication information 
15249                 (passwords) on a per-share basis, at the time they attempt to connect 
15250                 to that share.</P
15251 ><P
15252 >Note that <B
15253 CLASS="COMMAND"
15254 >smbd</B
15255 > <EM
15256 >ALWAYS</EM
15257
15258                 uses a valid UNIX user to act on behalf of the client, even in
15259                 <B
15260 CLASS="COMMAND"
15261 >security = share</B
15262 > level security.</P
15263 ><P
15264 >As clients are not required to send a username to the server
15265                 in share level security, <B
15266 CLASS="COMMAND"
15267 >smbd</B
15268 > uses several
15269                 techniques to determine the correct UNIX user to use on behalf
15270                 of the client.</P
15271 ><P
15272 >A list of possible UNIX usernames to match with the given
15273                 client password is constructed using the following methods :</P
15274 ><P
15275 ></P
15276 ><UL
15277 ><LI
15278 ><P
15279 >If the <A
15280 HREF="#GUESTONLY"
15281 ><TT
15282 CLASS="PARAMETER"
15283 ><I
15284 >guest 
15285                         only</I
15286 ></TT
15287 ></A
15288 > parameter is set, then all the other 
15289                         stages are missed and only the <A
15290 HREF="#GUESTACCOUNT"
15291 >                       <TT
15292 CLASS="PARAMETER"
15293 ><I
15294 >guest account</I
15295 ></TT
15296 ></A
15297 > username is checked.
15298                         </P
15299 ></LI
15300 ><LI
15301 ><P
15302 >Is a username is sent with the share connection 
15303                         request, then this username (after mapping - see <A
15304 HREF="#USERNAMEMAP"
15305 ><TT
15306 CLASS="PARAMETER"
15307 ><I
15308 >username map</I
15309 ></TT
15310 ></A
15311 >), 
15312                         is added as a potential username.</P
15313 ></LI
15314 ><LI
15315 ><P
15316 >If the client did a previous <EM
15317 >logon
15318                         </EM
15319 > request (the SessionSetup SMB call) then the 
15320                         username sent in this SMB will be added as a potential username.
15321                         </P
15322 ></LI
15323 ><LI
15324 ><P
15325 >The name of the service the client requested is 
15326                         added as a potential username.</P
15327 ></LI
15328 ><LI
15329 ><P
15330 >The NetBIOS name of the client is added to 
15331                         the list as a potential username.</P
15332 ></LI
15333 ><LI
15334 ><P
15335 >Any users on the <A
15336 HREF="#USER"
15337 ><TT
15338 CLASS="PARAMETER"
15339 ><I
15340 >                       user</I
15341 ></TT
15342 ></A
15343 > list are added as potential usernames.
15344                         </P
15345 ></LI
15346 ></UL
15347 ><P
15348 >If the <TT
15349 CLASS="PARAMETER"
15350 ><I
15351 >guest only</I
15352 ></TT
15353 > parameter is 
15354                 not set, then this list is then tried with the supplied password. 
15355                 The first user for whom the password matches will be used as the 
15356                 UNIX user.</P
15357 ><P
15358 >If the <TT
15359 CLASS="PARAMETER"
15360 ><I
15361 >guest only</I
15362 ></TT
15363 > parameter is 
15364                 set, or no username can be determined then if the share is marked 
15365                 as available to the <TT
15366 CLASS="PARAMETER"
15367 ><I
15368 >guest account</I
15369 ></TT
15370 >, then this 
15371                 guest user will be used, otherwise access is denied.</P
15372 ><P
15373 >Note that it can be <EM
15374 >very</EM
15375 > confusing 
15376                 in share-level security as to which UNIX username will eventually
15377                 be used in granting access.</P
15378 ><P
15379 >See also the section <A
15380 HREF="#AEN236"
15381 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15382 >.</P
15383 ><P
15384 ><A
15385 NAME="SECURITYEQUALSUSER"
15386 ></A
15387 ><EM
15388 >SECURITY = USER
15389                 </EM
15390 ></P
15391 ><P
15392 >This is the default security setting in Samba 2.2. 
15393                 With user-level security a client must first "log-on" with a 
15394                 valid username and password (which can be mapped using the <A
15395 HREF="#USERNAMEMAP"
15396 ><TT
15397 CLASS="PARAMETER"
15398 ><I
15399 >username map</I
15400 ></TT
15401 ></A
15402
15403                 parameter). Encrypted passwords (see the <A
15404 HREF="#ENCRYPTPASSWORDS"
15405 >               <TT
15406 CLASS="PARAMETER"
15407 ><I
15408 >encrypted passwords</I
15409 ></TT
15410 ></A
15411 > parameter) can also
15412                 be used in this security mode. Parameters such as <A
15413 HREF="#USER"
15414 >               <TT
15415 CLASS="PARAMETER"
15416 ><I
15417 >user</I
15418 ></TT
15419 ></A
15420 > and <A
15421 HREF="#GUESTONLY"
15422 >               <TT
15423 CLASS="PARAMETER"
15424 ><I
15425 >guest only</I
15426 ></TT
15427 ></A
15428 > if set        are then applied and 
15429                 may change the UNIX user to use on this connection, but only after 
15430                 the user has been successfully authenticated.</P
15431 ><P
15432 ><EM
15433 >Note</EM
15434 > that the name of the resource being 
15435                 requested is <EM
15436 >not</EM
15437 > sent to the server until after 
15438                 the server has successfully authenticated the client. This is why 
15439                 guest shares don't work in user level security without allowing 
15440                 the server to automatically map unknown users into the <A
15441 HREF="#GUESTACCOUNT"
15442 ><TT
15443 CLASS="PARAMETER"
15444 ><I
15445 >guest account</I
15446 ></TT
15447 ></A
15448 >. 
15449                 See the <A
15450 HREF="#MAPTOGUEST"
15451 ><TT
15452 CLASS="PARAMETER"
15453 ><I
15454 >map to guest</I
15455 ></TT
15456 >
15457                 </A
15458 > parameter for details on doing this.</P
15459 ><P
15460 >See also the section <A
15461 HREF="#AEN236"
15462 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15463 >.</P
15464 ><P
15465 ><A
15466 NAME="SECURITYEQUALSSERVER"
15467 ></A
15468 ><EM
15469 >SECURITY = SERVER
15470                 </EM
15471 ></P
15472 ><P
15473 >In this mode Samba will try to validate the username/password 
15474                 by passing it to another SMB server, such as an NT box. If this 
15475                 fails it will revert to <B
15476 CLASS="COMMAND"
15477 >security = user</B
15478 >, but note 
15479                 that if encrypted passwords have been negotiated then Samba cannot 
15480                 revert back to checking the UNIX password file, it must have a valid 
15481                 <TT
15482 CLASS="FILENAME"
15483 >smbpasswd</TT
15484 > file to check users against. See the 
15485                 documentation file in the <TT
15486 CLASS="FILENAME"
15487 >docs/</TT
15488 > directory 
15489                 <TT
15490 CLASS="FILENAME"
15491 >ENCRYPTION.txt</TT
15492 > for details on how to set this 
15493                 up.</P
15494 ><P
15495 ><EM
15496 >Note</EM
15497 > that from the client's point of 
15498                 view <B
15499 CLASS="COMMAND"
15500 >security = server</B
15501 > is the same as <B
15502 CLASS="COMMAND"
15503 >               security = user</B
15504 >.  It only affects how the server deals 
15505                 with the authentication, it does not in any way affect what the 
15506                 client sees.</P
15507 ><P
15508 ><EM
15509 >Note</EM
15510 > that the name of the resource being 
15511                 requested is <EM
15512 >not</EM
15513 > sent to the server until after 
15514                 the server has successfully authenticated the client. This is why 
15515                 guest shares don't work in user level security without allowing 
15516                 the server to automatically map unknown users into the <A
15517 HREF="#GUESTACCOUNT"
15518 ><TT
15519 CLASS="PARAMETER"
15520 ><I
15521 >guest account</I
15522 ></TT
15523 ></A
15524 >. 
15525                 See the <A
15526 HREF="#MAPTOGUEST"
15527 ><TT
15528 CLASS="PARAMETER"
15529 ><I
15530 >map to guest</I
15531 ></TT
15532 >
15533                 </A
15534 > parameter for details on doing this.</P
15535 ><P
15536 >See also the section <A
15537 HREF="#AEN236"
15538 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15539 >.</P
15540 ><P
15541 >See also the <A
15542 HREF="#PASSWORDSERVER"
15543 ><TT
15544 CLASS="PARAMETER"
15545 ><I
15546 >password 
15547                 server</I
15548 ></TT
15549 ></A
15550 > parameter and the <A
15551 HREF="#ENCRYPTPASSWORDS"
15552 ><TT
15553 CLASS="PARAMETER"
15554 ><I
15555 >encrypted passwords</I
15556 ></TT
15557 >
15558                 </A
15559 > parameter.</P
15560 ><P
15561 ><A
15562 NAME="SECURITYEQUALSDOMAIN"
15563 ></A
15564 ><EM
15565 >SECURITY = DOMAIN
15566                 </EM
15567 ></P
15568 ><P
15569 >This mode will only work correctly if <A
15570 HREF="smbpasswd.8.html"
15571 TARGET="_top"
15572 >smbpasswd(8)</A
15573 > has been used to add this 
15574                 machine into a Windows NT Domain. It expects the <A
15575 HREF="#ENCRYPTPASSWORDS"
15576 ><TT
15577 CLASS="PARAMETER"
15578 ><I
15579 >encrypted passwords</I
15580 ></TT
15581 >
15582                 </A
15583 > parameter to be set to <TT
15584 CLASS="CONSTANT"
15585 >true</TT
15586 >. In this 
15587                 mode Samba will try to validate the username/password by passing
15588                 it to a Windows NT Primary or Backup Domain Controller, in exactly 
15589                 the same way that a Windows NT Server would do.</P
15590 ><P
15591 ><EM
15592 >Note</EM
15593 > that a valid UNIX user must still 
15594                 exist as well as the account on the Domain Controller to allow 
15595                 Samba to have a valid UNIX account to map file access to.</P
15596 ><P
15597 ><EM
15598 >Note</EM
15599 > that from the client's point 
15600                 of view <B
15601 CLASS="COMMAND"
15602 >security = domain</B
15603 > is the same as <B
15604 CLASS="COMMAND"
15605 >security = user
15606                 </B
15607 >. It only affects how the server deals with the authentication, 
15608                 it does not in any way affect what the client sees.</P
15609 ><P
15610 ><EM
15611 >Note</EM
15612 > that the name of the resource being 
15613                 requested is <EM
15614 >not</EM
15615 > sent to the server until after 
15616                 the server has successfully authenticated the client. This is why 
15617                 guest shares don't work in user level security without allowing 
15618                 the server to automatically map unknown users into the <A
15619 HREF="#GUESTACCOUNT"
15620 ><TT
15621 CLASS="PARAMETER"
15622 ><I
15623 >guest account</I
15624 ></TT
15625 ></A
15626 >. 
15627                 See the <A
15628 HREF="#MAPTOGUEST"
15629 ><TT
15630 CLASS="PARAMETER"
15631 ><I
15632 >map to guest</I
15633 ></TT
15634 >
15635                 </A
15636 > parameter for details on doing this.</P
15637 ><P
15638 ><EM
15639 >BUG:</EM
15640 > There is currently a bug in the 
15641                 implementation of <B
15642 CLASS="COMMAND"
15643 >security = domain</B
15644 > with respect 
15645                 to multi-byte character set usernames. The communication with a 
15646                 Domain Controller must be done in UNICODE and Samba currently 
15647                 does not widen multi-byte user names to UNICODE correctly, thus 
15648                 a multi-byte username will not be recognized correctly at the 
15649                 Domain Controller. This issue will be addressed in a future release.</P
15650 ><P
15651 >See also the section <A
15652 HREF="#AEN236"
15653 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15654 >.</P
15655 ><P
15656 >See also the <A
15657 HREF="#PASSWORDSERVER"
15658 ><TT
15659 CLASS="PARAMETER"
15660 ><I
15661 >password 
15662                 server</I
15663 ></TT
15664 ></A
15665 > parameter and the <A
15666 HREF="#ENCRYPTPASSWORDS"
15667 ><TT
15668 CLASS="PARAMETER"
15669 ><I
15670 >encrypted passwords</I
15671 ></TT
15672 >
15673                 </A
15674 > parameter.</P
15675 ><P
15676 >Default: <B
15677 CLASS="COMMAND"
15678 >security = USER</B
15679 ></P
15680 ><P
15681 >Example: <B
15682 CLASS="COMMAND"
15683 >security = DOMAIN</B
15684 ></P
15685 ></DD
15686 ><DT
15687 ><A
15688 NAME="SECURITYMASK"
15689 ></A
15690 >security mask (S)</DT
15691 ><DD
15692 ><P
15693 >This parameter controls what UNIX permission 
15694                 bits can be modified when a Windows NT client is manipulating 
15695                 the UNIX permission on a file using the native NT security 
15696                 dialog box.</P
15697 ><P
15698 >This parameter is applied as a mask (AND'ed with) to 
15699                 the changed permission bits, thus preventing any bits not in 
15700                 this mask from being modified. Essentially, zero bits in this 
15701                 mask may be treated as a set of bits the user is not allowed 
15702                 to change.</P
15703 ><P
15704 >If not set explicitly this parameter is 0777, allowing
15705                 a user to modify all the user/group/world permissions on a file.
15706                 </P
15707 ><P
15708 ><EM
15709 >Note</EM
15710 > that users who can access the 
15711                 Samba server through other means can easily bypass this 
15712                 restriction, so it is primarily useful for standalone 
15713                 "appliance" systems.  Administrators of most normal systems will 
15714                 probably want to leave it set to <TT
15715 CLASS="CONSTANT"
15716 >0777</TT
15717 >.</P
15718 ><P
15719 >See also the <A
15720 HREF="#FORCEDIRECTORYSECURITYMODE"
15721 >               <TT
15722 CLASS="PARAMETER"
15723 ><I
15724 >force directory security mode</I
15725 ></TT
15726 ></A
15727 >, 
15728                 <A
15729 HREF="#DIRECTORYSECURITYMASK"
15730 ><TT
15731 CLASS="PARAMETER"
15732 ><I
15733 >directory 
15734                 security mask</I
15735 ></TT
15736 ></A
15737 >, <A
15738 HREF="#FORCESECURITYMODE"
15739 >               <TT
15740 CLASS="PARAMETER"
15741 ><I
15742 >force security mode</I
15743 ></TT
15744 ></A
15745 > parameters.</P
15746 ><P
15747 >Default: <B
15748 CLASS="COMMAND"
15749 >security mask = 0777</B
15750 ></P
15751 ><P
15752 >Example: <B
15753 CLASS="COMMAND"
15754 >security mask = 0770</B
15755 ></P
15756 ></DD
15757 ><DT
15758 ><A
15759 NAME="SERVERSTRING"
15760 ></A
15761 >server string (G)</DT
15762 ><DD
15763 ><P
15764 >This controls what string will show up in the 
15765                 printer comment box in print manager and next to the IPC connection 
15766                 in <B
15767 CLASS="COMMAND"
15768 >net view</B
15769 >. It can be any string that you wish 
15770                 to show to your users.</P
15771 ><P
15772 >It also sets what will appear in browse lists next 
15773                 to the machine name.</P
15774 ><P
15775 >A <TT
15776 CLASS="PARAMETER"
15777 ><I
15778 >%v</I
15779 ></TT
15780 > will be replaced with the Samba 
15781                 version number.</P
15782 ><P
15783 >A <TT
15784 CLASS="PARAMETER"
15785 ><I
15786 >%h</I
15787 ></TT
15788 > will be replaced with the 
15789                 hostname.</P
15790 ><P
15791 >Default: <B
15792 CLASS="COMMAND"
15793 >server string = Samba %v</B
15794 ></P
15795 ><P
15796 >Example: <B
15797 CLASS="COMMAND"
15798 >server string = University of GNUs Samba 
15799                 Server</B
15800 ></P
15801 ></DD
15802 ><DT
15803 ><A
15804 NAME="SETDIRECTORY"
15805 ></A
15806 >set directory (S)</DT
15807 ><DD
15808 ><P
15809 >If <B
15810 CLASS="COMMAND"
15811 >set directory = no</B
15812 >, then 
15813                 users of the service may not use the setdir command to change 
15814                 directory.</P
15815 ><P
15816 >The <B
15817 CLASS="COMMAND"
15818 >setdir</B
15819 > command is only implemented 
15820                 in the Digital Pathworks client. See the Pathworks documentation 
15821                 for details.</P
15822 ><P
15823 >Default: <B
15824 CLASS="COMMAND"
15825 >set directory = no</B
15826 ></P
15827 ></DD
15828 ><DT
15829 ><A
15830 NAME="SHAREMODES"
15831 ></A
15832 >share modes (S)</DT
15833 ><DD
15834 ><P
15835 >This enables or disables the honoring of 
15836                 the <TT
15837 CLASS="PARAMETER"
15838 ><I
15839 >share modes</I
15840 ></TT
15841 > during a file open. These 
15842                 modes are used by clients to gain exclusive read or write access 
15843                 to a file.</P
15844 ><P
15845 >These open modes are not directly supported by UNIX, so
15846                 they are simulated using shared memory, or lock files if your 
15847                 UNIX doesn't support shared memory (almost all do).</P
15848 ><P
15849 >The share modes that are enabled by this option are 
15850                 <TT
15851 CLASS="CONSTANT"
15852 >DENY_DOS</TT
15853 >, <TT
15854 CLASS="CONSTANT"
15855 >DENY_ALL</TT
15856 >,
15857                 <TT
15858 CLASS="CONSTANT"
15859 >DENY_READ</TT
15860 >, <TT
15861 CLASS="CONSTANT"
15862 >DENY_WRITE</TT
15863 >,
15864                 <TT
15865 CLASS="CONSTANT"
15866 >DENY_NONE</TT
15867 > and <TT
15868 CLASS="CONSTANT"
15869 >DENY_FCB</TT
15870 >.
15871                 </P
15872 ><P
15873 >This option gives full share compatibility and enabled 
15874                 by default.</P
15875 ><P
15876 >You should <EM
15877 >NEVER</EM
15878 > turn this parameter 
15879                 off as many Windows applications will break if you do so.</P
15880 ><P
15881 >Default: <B
15882 CLASS="COMMAND"
15883 >share modes = yes</B
15884 ></P
15885 ></DD
15886 ><DT
15887 ><A
15888 NAME="SHORTPRESERVECASE"
15889 ></A
15890 >short preserve case (S)</DT
15891 ><DD
15892 ><P
15893 >This boolean parameter controls if new files 
15894                 which conform to 8.3 syntax, that is all in upper case and of 
15895                 suitable length, are created upper case, or if they are forced 
15896                 to be the <A
15897 HREF="#DEFAULTCASE"
15898 ><TT
15899 CLASS="PARAMETER"
15900 ><I
15901 >default case
15902                 </I
15903 ></TT
15904 ></A
15905 >. This  option can be use with <A
15906 HREF="#PRESERVECASE"
15907 ><B
15908 CLASS="COMMAND"
15909 >preserve case = yes</B
15910 >
15911                 </A
15912 > to permit long filenames to retain their case, while short 
15913                 names are lowered. </P
15914 ><P
15915 >See the section on <A
15916 HREF="#AEN203"
15917 >               NAME MANGLING</A
15918 >.</P
15919 ><P
15920 >Default: <B
15921 CLASS="COMMAND"
15922 >short preserve case = yes</B
15923 ></P
15924 ></DD
15925 ><DT
15926 ><A
15927 NAME="SHOWADDPRINTERWIZARD"
15928 ></A
15929 >show add printer wizard (G)</DT
15930 ><DD
15931 ><P
15932 >With the introduction of MS-RPC based printing support
15933                 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will 
15934                 appear on Samba hosts in the share listing.  Normally this folder will 
15935                 contain an icon for the MS Add Printer Wizard (APW).  However, it is 
15936                 possible to disable this feature regardless of the level of privilege 
15937                 of the connected user.</P
15938 ><P
15939 >Under normal circumstances, the Windows NT/2000 client will 
15940                 open a handle on the printer server with OpenPrinterEx() asking for
15941                 Administrator privileges.  If the user does not have administrative
15942                 access on the print server (i.e is not root or a member of the 
15943                 <TT
15944 CLASS="PARAMETER"
15945 ><I
15946 >printer admin</I
15947 ></TT
15948 > group), the OpenPrinterEx() 
15949                 call fails and the client makes another open call with a request for 
15950                 a lower privilege level.  This should succeed, however the APW 
15951                 icon will not be displayed.</P
15952 ><P
15953 >Disabling the <TT
15954 CLASS="PARAMETER"
15955 ><I
15956 >show add printer wizard</I
15957 ></TT
15958 >
15959                 parameter will always cause the OpenPrinterEx() on the server
15960                 to fail.  Thus the APW icon will never be displayed. <EM
15961 >               Note :</EM
15962 >This does not prevent the same user from having 
15963                 administrative privilege on an individual printer.</P
15964 ><P
15965 >See also <A
15966 HREF="#ADDPRINTERCOMMAND"
15967 ><TT
15968 CLASS="PARAMETER"
15969 ><I
15970 >addprinter
15971                 command</I
15972 ></TT
15973 ></A
15974 >, <A
15975 HREF="#DELETEPRINTERCOMMAND"
15976 >               <TT
15977 CLASS="PARAMETER"
15978 ><I
15979 >deleteprinter command</I
15980 ></TT
15981 ></A
15982 >, <A
15983 HREF="#PRINTERADMIN"
15984 ><TT
15985 CLASS="PARAMETER"
15986 ><I
15987 >printer admin</I
15988 ></TT
15989 ></A
15990 ></P
15991 ><P
15992 >Default :<B
15993 CLASS="COMMAND"
15994 >show add printer wizard = yes</B
15995 ></P
15996 ></DD
15997 ><DT
15998 ><A
15999 NAME="SHUTDOWNSCRIPT"
16000 ></A
16001 >shutdown script (G)</DT
16002 ><DD
16003 ><P
16004 ><EM
16005 >This parameter only exists in the HEAD cvs branch</EM
16006 >
16007                 This a full path name to a script called by
16008                 <A
16009 HREF="smbd.8.html"
16010 TARGET="_top"
16011 ><B
16012 CLASS="COMMAND"
16013 >smbd(8)</B
16014 ></A
16015 > that
16016                 should start a shutdown procedure.</P
16017 ><P
16018 >This command will be run as the user connected to the
16019                 server.</P
16020 ><P
16021 >%m %t %r %f parameters are expanded</P
16022 ><P
16023 ><TT
16024 CLASS="PARAMETER"
16025 ><I
16026 >%m</I
16027 ></TT
16028 > will be substituted with the
16029                 shutdown message sent to the server.</P
16030 ><P
16031 ><TT
16032 CLASS="PARAMETER"
16033 ><I
16034 >%t</I
16035 ></TT
16036 > will be substituted with the
16037                 number of seconds to wait before effectively starting the
16038                 shutdown procedure.</P
16039 ><P
16040 ><TT
16041 CLASS="PARAMETER"
16042 ><I
16043 >%r</I
16044 ></TT
16045 > will be substituted with the
16046                 switch <EM
16047 >-r</EM
16048 >. It means reboot after shutdown
16049                 for NT.
16050                 </P
16051 ><P
16052 ><TT
16053 CLASS="PARAMETER"
16054 ><I
16055 >%f</I
16056 ></TT
16057 > will be substituted with the
16058                 switch <EM
16059 >-f</EM
16060 >. It means force the shutdown
16061                 even if applications do not respond for NT.</P
16062 ><P
16063 >Default: <EM
16064 >None</EM
16065 >.</P
16066 ><P
16067 >Example: <B
16068 CLASS="COMMAND"
16069 >abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</B
16070 ></P
16071 ><P
16072 >Shutdown script example:
16073                 <TABLE
16074 BORDER="0"
16075 BGCOLOR="#E0E0E0"
16076 WIDTH="90%"
16077 ><TR
16078 ><TD
16079 ><PRE
16080 CLASS="PROGRAMLISTING"
16081 >               #!/bin/bash
16082                 
16083                 $time=0
16084                 let "time/60"
16085                 let "time++"
16086
16087                 /sbin/shutdown $3 $4 +$time $1 &#38;
16088                 </PRE
16089 ></TD
16090 ></TR
16091 ></TABLE
16092 >
16093                 Shutdown does not return so we need to launch it in background.
16094                 </P
16095 ><P
16096 >See also <A
16097 HREF="#ABORTSHUTDOWNSCRIPT"
16098 ><TT
16099 CLASS="PARAMETER"
16100 ><I
16101 >abort shutdown script</I
16102 ></TT
16103 ></A
16104 >.</P
16105 ></DD
16106 ><DT
16107 ><A
16108 NAME="SMBPASSWDFILE"
16109 ></A
16110 >smb passwd file (G)</DT
16111 ><DD
16112 ><P
16113 >This option sets the path to the encrypted 
16114                 smbpasswd file.  By default the path to the smbpasswd file 
16115                 is compiled into Samba.</P
16116 ><P
16117 >Default: <B
16118 CLASS="COMMAND"
16119 >smb passwd file = ${prefix}/private/smbpasswd
16120                 </B
16121 ></P
16122 ><P
16123 >Example: <B
16124 CLASS="COMMAND"
16125 >smb passwd file = /etc/samba/smbpasswd
16126                 </B
16127 ></P
16128 ></DD
16129 ><DT
16130 ><A
16131 NAME="SOCKETADDRESS"
16132 ></A
16133 >socket address (G)</DT
16134 ><DD
16135 ><P
16136 >This option allows you to control what 
16137                 address Samba will listen for connections on. This is used to 
16138                 support multiple virtual interfaces on the one server, each 
16139                 with a different configuration.</P
16140 ><P
16141 >By default Samba will accept connections on any 
16142                 address.</P
16143 ><P
16144 >Example: <B
16145 CLASS="COMMAND"
16146 >socket address = 192.168.2.20</B
16147 >
16148                 </P
16149 ></DD
16150 ><DT
16151 ><A
16152 NAME="SOCKETOPTIONS"
16153 ></A
16154 >socket options (G)</DT
16155 ><DD
16156 ><P
16157 >This option allows you to set socket options 
16158                 to be used when talking with the client.</P
16159 ><P
16160 >Socket options are controls on the networking layer 
16161                 of the operating systems which allow the connection to be 
16162                 tuned.</P
16163 ><P
16164 >This option will typically be used to tune your Samba 
16165                 server for optimal performance for your local network. There is 
16166                 no way that Samba can know what the optimal parameters are for 
16167                 your net, so you must experiment and choose them yourself. We 
16168                 strongly suggest you read the appropriate documentation for your 
16169                 operating system first (perhaps <B
16170 CLASS="COMMAND"
16171 >man setsockopt</B
16172
16173                 will help).</P
16174 ><P
16175 >You may find that on some systems Samba will say 
16176                 "Unknown socket option" when you supply an option. This means you 
16177                 either incorrectly  typed it or you need to add an include file 
16178                 to includes.h for your OS.  If the latter is the case please 
16179                 send the patch to <A
16180 HREF="mailto:samba@samba.org"
16181 TARGET="_top"
16182 >               samba@samba.org</A
16183 >.</P
16184 ><P
16185 >Any of the supported socket options may be combined 
16186                 in any way you like, as long as your OS allows it.</P
16187 ><P
16188 >This is the list of socket options currently settable 
16189                 using this option:</P
16190 ><P
16191 ></P
16192 ><UL
16193 ><LI
16194 ><P
16195 >SO_KEEPALIVE</P
16196 ></LI
16197 ><LI
16198 ><P
16199 >SO_REUSEADDR</P
16200 ></LI
16201 ><LI
16202 ><P
16203 >SO_BROADCAST</P
16204 ></LI
16205 ><LI
16206 ><P
16207 >TCP_NODELAY</P
16208 ></LI
16209 ><LI
16210 ><P
16211 >IPTOS_LOWDELAY</P
16212 ></LI
16213 ><LI
16214 ><P
16215 >IPTOS_THROUGHPUT</P
16216 ></LI
16217 ><LI
16218 ><P
16219 >SO_SNDBUF *</P
16220 ></LI
16221 ><LI
16222 ><P
16223 >SO_RCVBUF *</P
16224 ></LI
16225 ><LI
16226 ><P
16227 >SO_SNDLOWAT *</P
16228 ></LI
16229 ><LI
16230 ><P
16231 >SO_RCVLOWAT *</P
16232 ></LI
16233 ></UL
16234 ><P
16235 >Those marked with a <EM
16236 >'*'</EM
16237 > take an integer 
16238                 argument. The others can optionally take a 1 or 0 argument to enable 
16239                 or disable the option, by default they will be enabled if you 
16240                 don't specify 1 or 0.</P
16241 ><P
16242 >To specify an argument use the syntax SOME_OPTION = VALUE 
16243                 for example <B
16244 CLASS="COMMAND"
16245 >SO_SNDBUF = 8192</B
16246 >. Note that you must 
16247                 not have any spaces before or after the = sign.</P
16248 ><P
16249 >If you are on a local network then a sensible option 
16250                 might be</P
16251 ><P
16252 ><B
16253 CLASS="COMMAND"
16254 >socket options = IPTOS_LOWDELAY</B
16255 ></P
16256 ><P
16257 >If you have a local network then you could try:</P
16258 ><P
16259 ><B
16260 CLASS="COMMAND"
16261 >socket options = IPTOS_LOWDELAY TCP_NODELAY</B
16262 ></P
16263 ><P
16264 >If you are on a wide area network then perhaps try 
16265                 setting IPTOS_THROUGHPUT. </P
16266 ><P
16267 >Note that several of the options may cause your Samba 
16268                 server to fail completely. Use these options with caution!</P
16269 ><P
16270 >Default: <B
16271 CLASS="COMMAND"
16272 >socket options = TCP_NODELAY</B
16273 ></P
16274 ><P
16275 >Example: <B
16276 CLASS="COMMAND"
16277 >socket options = IPTOS_LOWDELAY</B
16278 ></P
16279 ></DD
16280 ><DT
16281 ><A
16282 NAME="SOURCEENVIRONMENT"
16283 ></A
16284 >source environment (G)</DT
16285 ><DD
16286 ><P
16287 >This parameter causes Samba to set environment 
16288                 variables as per the content of the file named.</P
16289 ><P
16290 >If the value of this parameter starts with a "|" character 
16291                 then Samba will treat that value as a pipe command to open and 
16292                 will set the environment variables from the output of the pipe.</P
16293 ><P
16294 >The contents of the file or the output of the pipe should 
16295                 be formatted as the output of the standard Unix <B
16296 CLASS="COMMAND"
16297 >env(1)
16298                 </B
16299 > command. This is of the form :</P
16300 ><P
16301 >Example environment entry:</P
16302 ><P
16303 ><B
16304 CLASS="COMMAND"
16305 >SAMBA_NETBIOS_NAME = myhostname</B
16306 ></P
16307 ><P
16308 >Default: <EM
16309 >No default value</EM
16310 ></P
16311 ><P
16312 >Examples: <B
16313 CLASS="COMMAND"
16314 >source environment = |/etc/smb.conf.sh
16315                 </B
16316 ></P
16317 ><P
16318 >Example: <B
16319 CLASS="COMMAND"
16320 >source environment = 
16321                 /usr/local/smb_env_vars</B
16322 ></P
16323 ></DD
16324 ><DT
16325 ><A
16326 NAME="SPNEGO"
16327 ></A
16328 >use spnego (G)</DT
16329 ><DD
16330 ><P
16331 > This variable controls controls whether samba will try to use Simple and Protected NEGOciation (as specified by rfc2478) with WindowsXP and Windows2000sp2 clients to agree upon an authentication mechanism.  As of samba 3.0alpha it must be set to "no" for these clients to join a samba domain controller.  It can be set to "yes" to allow samba to participate in an AD domain controlled by a Windows2000 domain controller.</P
16332 ><P
16333 >Default:  <EM
16334 >use spnego = yes</EM
16335 ></P
16336 ></DD
16337 ><DT
16338 ><A
16339 NAME="STATCACHE"
16340 ></A
16341 >stat cache (G)</DT
16342 ><DD
16343 ><P
16344 >This parameter determines if <A
16345 HREF="smbd.8.html"
16346 TARGET="_top"
16347 >smbd(8)</A
16348 > will use a cache in order to 
16349                 speed up case insensitive name mappings. You should never need 
16350                 to change this parameter.</P
16351 ><P
16352 >Default: <B
16353 CLASS="COMMAND"
16354 >stat cache = yes</B
16355 ></P
16356 ></DD
16357 ><DT
16358 ><A
16359 NAME="STATCACHESIZE"
16360 ></A
16361 >stat cache size (G)</DT
16362 ><DD
16363 ><P
16364 >This parameter determines the number of 
16365                 entries in the <TT
16366 CLASS="PARAMETER"
16367 ><I
16368 >stat cache</I
16369 ></TT
16370 >.  You should 
16371                 never need to change this parameter.</P
16372 ><P
16373 >Default: <B
16374 CLASS="COMMAND"
16375 >stat cache size = 50</B
16376 ></P
16377 ></DD
16378 ><DT
16379 ><A
16380 NAME="STATUS"
16381 ></A
16382 >status (G)</DT
16383 ><DD
16384 ><P
16385 >This enables or disables logging of connections 
16386                 to a status file that <A
16387 HREF="smbstatus.1.html"
16388 TARGET="_top"
16389 >smbstatus(1)</A
16390 >
16391                 can read.</P
16392 ><P
16393 >With this disabled <B
16394 CLASS="COMMAND"
16395 >smbstatus</B
16396 > won't be able
16397                 to tell you what connections are active. You should never need to
16398                 change this parameter.</P
16399 ><P
16400 >Default: <B
16401 CLASS="COMMAND"
16402 >status = yes</B
16403 ></P
16404 ></DD
16405 ><DT
16406 ><A
16407 NAME="STRICTALLOCATE"
16408 ></A
16409 >strict allocate (S)</DT
16410 ><DD
16411 ><P
16412 >This is a boolean that controls the handling of 
16413                 disk space allocation in the server. When this is set to <TT
16414 CLASS="CONSTANT"
16415 >yes</TT
16416
16417                 the server will change from UNIX behaviour of not committing real
16418                 disk storage blocks when a file is extended to the Windows behaviour
16419                 of actually forcing the disk system to allocate real storage blocks
16420                 when a file is created or extended to be a given size. In UNIX
16421                 terminology this means that Samba will stop creating sparse files.
16422                 This can be slow on some systems.</P
16423 ><P
16424 >When strict allocate is <TT
16425 CLASS="CONSTANT"
16426 >no</TT
16427 > the server does sparse
16428                 disk block allocation when a file is extended.</P
16429 ><P
16430 >Setting this to <TT
16431 CLASS="CONSTANT"
16432 >yes</TT
16433 > can help Samba return
16434                 out of quota messages on systems that are restricting the disk quota
16435                 of users.</P
16436 ><P
16437 >Default: <B
16438 CLASS="COMMAND"
16439 >strict allocate = no</B
16440 ></P
16441 ></DD
16442 ><DT
16443 ><A
16444 NAME="STRICTLOCKING"
16445 ></A
16446 >strict locking (S)</DT
16447 ><DD
16448 ><P
16449 >This is a boolean that controls the handling of 
16450                 file locking in the server. When this is set to <TT
16451 CLASS="CONSTANT"
16452 >yes</TT
16453
16454                 the server will check every read and write access for file locks, and 
16455                 deny access if locks exist. This can be slow on some systems.</P
16456 ><P
16457 >When strict locking is <TT
16458 CLASS="CONSTANT"
16459 >no</TT
16460 > the server does file 
16461                 lock checks only when the client explicitly asks for them.</P
16462 ><P
16463 >Well-behaved clients always ask for lock checks when it 
16464                 is important, so in the vast majority of cases <B
16465 CLASS="COMMAND"
16466 >strict 
16467                 locking = no</B
16468 > is preferable.</P
16469 ><P
16470 >Default: <B
16471 CLASS="COMMAND"
16472 >strict locking = no</B
16473 ></P
16474 ></DD
16475 ><DT
16476 ><A
16477 NAME="STRICTSYNC"
16478 ></A
16479 >strict sync (S)</DT
16480 ><DD
16481 ><P
16482 >Many Windows applications (including the Windows 
16483                 98 explorer shell) seem to confuse flushing buffer contents to 
16484                 disk with doing a sync to disk. Under UNIX, a sync call forces 
16485                 the process to be suspended until the kernel has ensured that 
16486                 all outstanding data in kernel disk buffers has been safely stored 
16487                 onto stable storage. This is very slow and should only be done 
16488                 rarely. Setting this parameter to <TT
16489 CLASS="CONSTANT"
16490 >no</TT
16491 > (the 
16492                 default) means that <A
16493 HREF="smbd.8.html"
16494 TARGET="_top"
16495 >smbd</A
16496 > ignores the Windows applications requests for
16497                 a sync call. There is only a possibility of losing data if the
16498                 operating system itself that Samba is running on crashes, so there is
16499                 little danger in this default setting. In addition, this fixes many
16500                 performance problems that people have reported with the new Windows98
16501                 explorer shell file copies.</P
16502 ><P
16503 >See also the <A
16504 HREF="#SYNCALWAYS"
16505 ><TT
16506 CLASS="PARAMETER"
16507 ><I
16508 >sync 
16509                 always&#62;</I
16510 ></TT
16511 ></A
16512 > parameter.</P
16513 ><P
16514 >Default: <B
16515 CLASS="COMMAND"
16516 >strict sync = no</B
16517 ></P
16518 ></DD
16519 ><DT
16520 ><A
16521 NAME="STRIPDOT"
16522 ></A
16523 >strip dot (G)</DT
16524 ><DD
16525 ><P
16526 >This is a boolean that controls whether to 
16527                 strip trailing dots off UNIX filenames. This helps with some 
16528                 CDROMs that have filenames ending in a single dot.</P
16529 ><P
16530 >Default: <B
16531 CLASS="COMMAND"
16532 >strip dot = no</B
16533 ></P
16534 ></DD
16535 ><DT
16536 ><A
16537 NAME="SYNCALWAYS"
16538 ></A
16539 >sync always (S)</DT
16540 ><DD
16541 ><P
16542 >This is a boolean parameter that controls 
16543                 whether writes will always be written to stable storage before 
16544                 the write call returns. If this is <TT
16545 CLASS="CONSTANT"
16546 >false</TT
16547 > then the server will be 
16548                 guided by the client's request in each write call (clients can 
16549                 set a bit indicating that a particular write should be synchronous). 
16550                 If this is <TT
16551 CLASS="CONSTANT"
16552 >true</TT
16553 > then every write will be followed by a <B
16554 CLASS="COMMAND"
16555 >fsync()
16556                 </B
16557 > call to ensure the data is written to disk. Note that 
16558                 the <TT
16559 CLASS="PARAMETER"
16560 ><I
16561 >strict sync</I
16562 ></TT
16563 > parameter must be set to
16564                 <TT
16565 CLASS="CONSTANT"
16566 >yes</TT
16567 > in order for this parameter to have 
16568                 any affect.</P
16569 ><P
16570 >See also the <A
16571 HREF="#STRICTSYNC"
16572 ><TT
16573 CLASS="PARAMETER"
16574 ><I
16575 >strict 
16576                 sync</I
16577 ></TT
16578 ></A
16579 > parameter.</P
16580 ><P
16581 >Default: <B
16582 CLASS="COMMAND"
16583 >sync always = no</B
16584 ></P
16585 ></DD
16586 ><DT
16587 ><A
16588 NAME="SYSLOG"
16589 ></A
16590 >syslog (G)</DT
16591 ><DD
16592 ><P
16593 >This parameter maps how Samba debug messages 
16594                 are logged onto the system syslog logging levels. Samba debug 
16595                 level zero maps onto syslog <TT
16596 CLASS="CONSTANT"
16597 >LOG_ERR</TT
16598 >, debug 
16599                 level one maps onto <TT
16600 CLASS="CONSTANT"
16601 >LOG_WARNING</TT
16602 >, debug level 
16603                 two maps onto <TT
16604 CLASS="CONSTANT"
16605 >LOG_NOTICE</TT
16606 >, debug level three 
16607                 maps onto LOG_INFO. All higher levels are mapped to <TT
16608 CLASS="CONSTANT"
16609 >               LOG_DEBUG</TT
16610 >.</P
16611 ><P
16612 >This parameter sets the threshold for sending messages 
16613                 to syslog.  Only messages with debug level less than this value 
16614                 will be sent to syslog.</P
16615 ><P
16616 >Default: <B
16617 CLASS="COMMAND"
16618 >syslog = 1</B
16619 ></P
16620 ></DD
16621 ><DT
16622 ><A
16623 NAME="SYSLOGONLY"
16624 ></A
16625 >syslog only (G)</DT
16626 ><DD
16627 ><P
16628 >If this parameter is set then Samba debug 
16629                 messages are logged into the system syslog only, and not to 
16630                 the debug log files.</P
16631 ><P
16632 >Default: <B
16633 CLASS="COMMAND"
16634 >syslog only = no</B
16635 ></P
16636 ></DD
16637 ><DT
16638 ><A
16639 NAME="TEMPLATEHOMEDIR"
16640 ></A
16641 >template homedir (G)</DT
16642 ><DD
16643 ><P
16644 >When filling out the user information for a Windows NT 
16645                 user, the <A
16646 HREF="winbindd.8.html"
16647 TARGET="_top"
16648 >winbindd(8)</A
16649 > daemon 
16650                 uses this parameter to fill in the home directory for that user.  
16651                 If the string <TT
16652 CLASS="PARAMETER"
16653 ><I
16654 >%D</I
16655 ></TT
16656 > is present it is substituted 
16657                 with the user's Windows NT domain name.  If the string <TT
16658 CLASS="PARAMETER"
16659 ><I
16660 >%U
16661                 </I
16662 ></TT
16663 > is present it is substituted with the user's Windows 
16664                 NT user name.</P
16665 ><P
16666 >Default: <B
16667 CLASS="COMMAND"
16668 >template homedir = /home/%D/%U</B
16669 ></P
16670 ></DD
16671 ><DT
16672 ><A
16673 NAME="TEMPLATESHELL"
16674 ></A
16675 >template shell (G)</DT
16676 ><DD
16677 ><P
16678 >When filling out the user information for a Windows NT 
16679                 user, the <A
16680 HREF="winbindd.8.html"
16681 TARGET="_top"
16682 >winbindd(8)</A
16683 > daemon 
16684                 uses this parameter to fill in the login shell for that user.</P
16685 ><P
16686 >Default: <B
16687 CLASS="COMMAND"
16688 >template shell = /bin/false</B
16689 ></P
16690 ></DD
16691 ><DT
16692 ><A
16693 NAME="TIMEOFFSET"
16694 ></A
16695 >time offset (G)</DT
16696 ><DD
16697 ><P
16698 >This parameter is a setting in minutes to add 
16699                 to the normal GMT to local time conversion. This is useful if 
16700                 you are serving a lot of PCs that have incorrect daylight 
16701                 saving time handling.</P
16702 ><P
16703 >Default: <B
16704 CLASS="COMMAND"
16705 >time offset = 0</B
16706 ></P
16707 ><P
16708 >Example: <B
16709 CLASS="COMMAND"
16710 >time offset = 60</B
16711 ></P
16712 ></DD
16713 ><DT
16714 ><A
16715 NAME="TIMESERVER"
16716 ></A
16717 >time server (G)</DT
16718 ><DD
16719 ><P
16720 >This parameter determines if <A
16721 HREF="nmbd.8.html"
16722 TARGET="_top"
16723 >                       
16724                 nmbd(8)</A
16725 > advertises itself as a time server to Windows 
16726                 clients.</P
16727 ><P
16728 >Default: <B
16729 CLASS="COMMAND"
16730 >time server = no</B
16731 ></P
16732 ></DD
16733 ><DT
16734 ><A
16735 NAME="TIMESTAMPLOGS"
16736 ></A
16737 >timestamp logs (G)</DT
16738 ><DD
16739 ><P
16740 >Synonym for <A
16741 HREF="#DEBUGTIMESTAMP"
16742 ><TT
16743 CLASS="PARAMETER"
16744 ><I
16745 >               debug timestamp</I
16746 ></TT
16747 ></A
16748 >.</P
16749 ></DD
16750 ><DT
16751 ><A
16752 NAME="TOTALPRINTJOBS"
16753 ></A
16754 >total print jobs (G)</DT
16755 ><DD
16756 ><P
16757 >This parameter accepts an integer value which defines
16758                 a limit on the maximum number of print jobs that will be accepted 
16759                 system wide at any given time.  If a print job is submitted
16760                 by a client which will exceed this number, then <A
16761 HREF="smbd.8.html"
16762 TARGET="_top"
16763 >smbd</A
16764 > will return an 
16765                 error indicating that no space is available on the server.  The 
16766                 default value of 0 means that no such limit exists.  This parameter
16767                 can be used to prevent a server from exceeding its capacity and is
16768                 designed as a printing throttle.  See also 
16769                 <A
16770 HREF="#MAXPRINTJOBS"
16771 ><TT
16772 CLASS="PARAMETER"
16773 ><I
16774 >max print jobs</I
16775 ></TT
16776 ></A
16777 >.
16778                 </P
16779 ><P
16780 >Default: <B
16781 CLASS="COMMAND"
16782 >total print jobs = 0</B
16783 ></P
16784 ><P
16785 >Example: <B
16786 CLASS="COMMAND"
16787 >total print jobs = 5000</B
16788 ></P
16789 ></DD
16790 ><DT
16791 ><A
16792 NAME="UNIXEXTENSIONS"
16793 ></A
16794 >unix extensions(G)</DT
16795 ><DD
16796 ><P
16797 >This boolean parameter controls whether Samba 
16798                 implments the CIFS UNIX extensions, as defined by HP. 
16799                 These extensions enable Samba to better serve UNIX CIFS clients
16800                 by supporting features such as symbolic links, hard links, etc...
16801                 These extensions require a similarly enabled client, and are of
16802                 no current use to Windows clients.</P
16803 ><P
16804 >Default: <B
16805 CLASS="COMMAND"
16806 >unix extensions = no</B
16807 ></P
16808 ></DD
16809 ><DT
16810 ><A
16811 NAME="UNIXPASSWORDSYNC"
16812 ></A
16813 >unix password sync (G)</DT
16814 ><DD
16815 ><P
16816 >This boolean parameter controls whether Samba 
16817                 attempts to synchronize the UNIX password with the SMB password 
16818                 when the encrypted SMB password in the smbpasswd file is changed. 
16819                 If this is set to <TT
16820 CLASS="CONSTANT"
16821 >true</TT
16822 > the program specified in the <TT
16823 CLASS="PARAMETER"
16824 ><I
16825 >passwd
16826                 program</I
16827 ></TT
16828 >parameter is called <EM
16829 >AS ROOT</EM
16830 > - 
16831                 to allow the new UNIX password to be set without access to the 
16832                 old UNIX password (as the SMB password change code has no 
16833                 access to the old password cleartext, only the new).</P
16834 ><P
16835 >See also <A
16836 HREF="#PASSWDPROGRAM"
16837 ><TT
16838 CLASS="PARAMETER"
16839 ><I
16840 >passwd 
16841                 program</I
16842 ></TT
16843 ></A
16844 >, <A
16845 HREF="#PASSWDCHAT"
16846 ><TT
16847 CLASS="PARAMETER"
16848 ><I
16849 >               passwd chat</I
16850 ></TT
16851 ></A
16852 >.</P
16853 ><P
16854 >Default: <B
16855 CLASS="COMMAND"
16856 >unix password sync = no</B
16857 ></P
16858 ></DD
16859 ><DT
16860 ><A
16861 NAME="UPDATEENCRYPTED"
16862 ></A
16863 >update encrypted (G)</DT
16864 ><DD
16865 ><P
16866 >This boolean parameter allows a user logging 
16867                 on with a plaintext password to have their encrypted (hashed) 
16868                 password in the smbpasswd file to be updated automatically as 
16869                 they log on. This option allows a site to migrate from plaintext 
16870                 password authentication (users authenticate with plaintext 
16871                 password over the wire, and are checked against a UNIX account 
16872                 database) to encrypted password authentication (the SMB 
16873                 challenge/response authentication mechanism) without forcing
16874                 all users to re-enter their passwords via smbpasswd at the time the
16875                 change is made. This is a convenience option to allow the change over
16876                 to encrypted passwords to be made over a longer period. Once all users
16877                 have encrypted representations of their passwords in the smbpasswd
16878                 file this parameter should be set to <TT
16879 CLASS="CONSTANT"
16880 >no</TT
16881 >.</P
16882 ><P
16883 >In order for this parameter to work correctly the <A
16884 HREF="#ENCRYPTPASSWORDS"
16885 ><TT
16886 CLASS="PARAMETER"
16887 ><I
16888 >encrypt passwords</I
16889 ></TT
16890 >
16891                 </A
16892 > parameter must be set to <TT
16893 CLASS="CONSTANT"
16894 >no</TT
16895 > when
16896                 this parameter is set to <TT
16897 CLASS="CONSTANT"
16898 >yes</TT
16899 >.</P
16900 ><P
16901 >Note that even when this parameter is set a user 
16902                 authenticating to <B
16903 CLASS="COMMAND"
16904 >smbd</B
16905 > must still enter a valid 
16906                 password in order to connect correctly, and to update their hashed 
16907                 (smbpasswd) passwords.</P
16908 ><P
16909 >Default: <B
16910 CLASS="COMMAND"
16911 >update encrypted = no</B
16912 ></P
16913 ></DD
16914 ><DT
16915 ><A
16916 NAME="USECLIENTDRIVER"
16917 ></A
16918 >use client driver (S)</DT
16919 ><DD
16920 ><P
16921 >This parameter applies only to Windows NT/2000
16922                 clients.  It has no affect on Windows 95/98/ME clients.  When 
16923                 serving a printer to Windows NT/2000 clients without first installing
16924                 a valid printer driver on the Samba host, the client will be required
16925                 to install a local printer driver.  From this point on, the client
16926                 will treat the print as a local printer and not a network printer 
16927                 connection.  This is much the same behavior that will occur
16928                 when <B
16929 CLASS="COMMAND"
16930 >disable spoolss = yes</B
16931 >.  </P
16932 ><P
16933 >The differentiating 
16934                 factor is that under normal circumstances, the NT/2000 client will 
16935                 attempt to open the network printer using MS-RPC.  The problem is that
16936                 because the client considers the printer to be local, it will attempt
16937                 to issue the OpenPrinterEx() call requesting access rights associated 
16938                 with the logged on user. If the user possesses local administator rights
16939                 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
16940                 call will fail.  The result is that the client will now display an "Access
16941                 Denied; Unable to connect" message in the printer queue window (even though
16942                 jobs may successfully be printed).  </P
16943 ><P
16944 >If this parameter is enabled for a printer, then any attempt
16945                 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
16946                 to PRINTER_ACCESS_USE instead.  Thus allowing the OpenPrinterEx()
16947                 call to succeed.  <EM
16948 >This parameter MUST not be able enabled
16949                 on a print share which has valid print driver installed on the Samba 
16950                 server.</EM
16951 ></P
16952 ><P
16953 >See also <A
16954 HREF="#DISABLESPOOLSS"
16955 >disable spoolss</A
16956 >
16957                 </P
16958 ><P
16959 >Default: <B
16960 CLASS="COMMAND"
16961 >use client driver = no</B
16962 ></P
16963 ></DD
16964 ><DT
16965 ><A
16966 NAME="USEMMAP"
16967 ></A
16968 >use mmap (G)</DT
16969 ><DD
16970 ><P
16971 >This global parameter determines if the tdb internals of Samba can
16972                 depend on mmap working correctly on the running system. Samba requires a coherent
16973                 mmap/read-write system memory cache. Currently only HPUX does not have such a
16974                 coherent cache, and so this parameter is set to <TT
16975 CLASS="CONSTANT"
16976 >false</TT
16977 > by
16978                 default on HPUX. On all other systems this parameter should be left alone. This
16979                 parameter is provided to help the Samba developers track down problems with
16980                 the tdb internal code.
16981                 </P
16982 ><P
16983 >Default: <B
16984 CLASS="COMMAND"
16985 >use mmap = yes</B
16986 ></P
16987 ></DD
16988 ><DT
16989 ><A
16990 NAME="USERHOSTS"
16991 ></A
16992 >use rhosts (G)</DT
16993 ><DD
16994 ><P
16995 >If this global parameter is <TT
16996 CLASS="CONSTANT"
16997 >true</TT
16998 >, it specifies 
16999                 that the UNIX user's <TT
17000 CLASS="FILENAME"
17001 >.rhosts</TT
17002 > file in their home directory 
17003                 will be read to find the names of hosts and users who will be allowed 
17004                 access without specifying a password.</P
17005 ><P
17006 ><EM
17007 >NOTE:</EM
17008 > The use of <TT
17009 CLASS="PARAMETER"
17010 ><I
17011 >use rhosts
17012                 </I
17013 ></TT
17014 > can be a major security hole. This is because you are 
17015                 trusting the PC to supply the correct username. It is very easy to 
17016                 get a PC to supply a false username. I recommend that the <TT
17017 CLASS="PARAMETER"
17018 ><I
17019 >               use rhosts</I
17020 ></TT
17021 > option be only used if you really know what 
17022                 you are doing.</P
17023 ><P
17024 >Default: <B
17025 CLASS="COMMAND"
17026 >use rhosts = no</B
17027 ></P
17028 ></DD
17029 ><DT
17030 ><A
17031 NAME="USER"
17032 ></A
17033 >user (S)</DT
17034 ><DD
17035 ><P
17036 >Synonym for <A
17037 HREF="#USERNAME"
17038 ><TT
17039 CLASS="PARAMETER"
17040 ><I
17041 >               username</I
17042 ></TT
17043 ></A
17044 >.</P
17045 ></DD
17046 ><DT
17047 ><A
17048 NAME="USERS"
17049 ></A
17050 >users (S)</DT
17051 ><DD
17052 ><P
17053 >Synonym for <A
17054 HREF="#USERNAME"
17055 ><TT
17056 CLASS="PARAMETER"
17057 ><I
17058 >               username</I
17059 ></TT
17060 ></A
17061 >.</P
17062 ></DD
17063 ><DT
17064 ><A
17065 NAME="USERNAME"
17066 ></A
17067 >username (S)</DT
17068 ><DD
17069 ><P
17070 >Multiple users may be specified in a comma-delimited 
17071                 list, in which case the supplied password will be tested against 
17072                 each username in turn (left to right).</P
17073 ><P
17074 >The <TT
17075 CLASS="PARAMETER"
17076 ><I
17077 >username</I
17078 ></TT
17079 > line is needed only when 
17080                 the PC is unable to supply its own username. This is the case 
17081                 for the COREPLUS protocol or where your users have different WfWg 
17082                 usernames to UNIX usernames. In both these cases you may also be 
17083                 better using the \\server\share%user syntax instead.</P
17084 ><P
17085 >The <TT
17086 CLASS="PARAMETER"
17087 ><I
17088 >username</I
17089 ></TT
17090 > line is not a great 
17091                 solution in many cases as it means Samba will try to validate 
17092                 the supplied password against each of the usernames in the 
17093                 <TT
17094 CLASS="PARAMETER"
17095 ><I
17096 >username</I
17097 ></TT
17098 > line in turn. This is slow and 
17099                 a bad idea for lots of users in case of duplicate passwords. 
17100                 You may get timeouts or security breaches using this parameter 
17101                 unwisely.</P
17102 ><P
17103 >Samba relies on the underlying UNIX security. This 
17104                 parameter does not restrict who can login, it just offers hints 
17105                 to the Samba server as to what usernames might correspond to the 
17106                 supplied password. Users can login as whoever they please and 
17107                 they will be able to do no more damage than if they started a 
17108                 telnet session. The daemon runs as the user that they log in as, 
17109                 so they cannot do anything that user cannot do.</P
17110 ><P
17111 >To restrict a service to a particular set of users you 
17112                 can use the <A
17113 HREF="#VALIDUSERS"
17114 ><TT
17115 CLASS="PARAMETER"
17116 ><I
17117 >valid users
17118                 </I
17119 ></TT
17120 ></A
17121 > parameter.</P
17122 ><P
17123 >If any of the usernames begin with a '@' then the name 
17124                 will be looked up first in the NIS netgroups list (if Samba 
17125                 is compiled with netgroup support), followed by a lookup in 
17126                 the UNIX groups database and will expand to a list of all users 
17127                 in the group of that name.</P
17128 ><P
17129 >If any of the usernames begin with a '+' then the name 
17130                 will be looked up only in the UNIX groups database and will 
17131                 expand to a list of all users in the group of that name.</P
17132 ><P
17133 >If any of the usernames begin with a '&#38;'then the name 
17134                 will be looked up only in the NIS netgroups database (if Samba 
17135                 is compiled with netgroup support) and will expand to a list 
17136                 of all users in the netgroup group of that name.</P
17137 ><P
17138 >Note that searching though a groups database can take 
17139                 quite some time, and some clients may time out during the 
17140                 search.</P
17141 ><P
17142 >See the section <A
17143 HREF="#AEN236"
17144 >NOTE ABOUT 
17145                 USERNAME/PASSWORD VALIDATION</A
17146 > for more information on how 
17147                 this parameter determines access to the services.</P
17148 ><P
17149 >Default: <B
17150 CLASS="COMMAND"
17151 >The guest account if a guest service, 
17152                 else &#60;empty string&#62;.</B
17153 ></P
17154 ><P
17155 >Examples:<B
17156 CLASS="COMMAND"
17157 >username = fred, mary, jack, jane, 
17158                 @users, @pcgroup</B
17159 ></P
17160 ></DD
17161 ><DT
17162 ><A
17163 NAME="USERNAMELEVEL"
17164 ></A
17165 >username level (G)</DT
17166 ><DD
17167 ><P
17168 >This option helps Samba to try and 'guess' at 
17169                 the real UNIX username, as many DOS clients send an all-uppercase 
17170                 username. By default Samba tries all lowercase, followed by the 
17171                 username with the first letter capitalized, and fails if the 
17172                 username is not found on the UNIX machine.</P
17173 ><P
17174 >If this parameter is set to non-zero the behavior changes. 
17175                 This parameter is a number that specifies the number of uppercase
17176                 combinations to try while trying to determine the UNIX user name. The
17177                 higher the number the more combinations will be tried, but the slower
17178                 the discovery of usernames will be. Use this parameter when you have
17179                 strange usernames on your UNIX machine, such as <TT
17180 CLASS="CONSTANT"
17181 >AstrangeUser
17182                 </TT
17183 >.</P
17184 ><P
17185 >Default: <B
17186 CLASS="COMMAND"
17187 >username level = 0</B
17188 ></P
17189 ><P
17190 >Example: <B
17191 CLASS="COMMAND"
17192 >username level = 5</B
17193 ></P
17194 ></DD
17195 ><DT
17196 ><A
17197 NAME="USERNAMEMAP"
17198 ></A
17199 >username map (G)</DT
17200 ><DD
17201 ><P
17202 >This option allows you to specify a file containing 
17203                 a mapping of usernames from the clients to the server. This can be 
17204                 used for several purposes. The most common is to map usernames 
17205                 that users use on DOS or Windows machines to those that the UNIX 
17206                 box uses. The other is to map multiple users to a single username 
17207                 so that they can more easily share files.</P
17208 ><P
17209 >The map file is parsed line by line. Each line should 
17210                 contain a single UNIX username on the left then a '=' followed 
17211                 by a list of usernames on the right. The list of usernames on the 
17212                 right may contain names of the form @group in which case they 
17213                 will match any UNIX username in that group. The special client 
17214                 name '*' is a wildcard and matches any name. Each line of the 
17215                 map file may be up to 1023 characters long.</P
17216 ><P
17217 >The file is processed on each line by taking the 
17218                 supplied username and comparing it with each username on the right 
17219                 hand side of the '=' signs. If the supplied name matches any of 
17220                 the names on the right hand side then it is replaced with the name 
17221                 on the left. Processing then continues with the next line.</P
17222 ><P
17223 >If any line begins with a '#' or a ';' then it is 
17224                 ignored</P
17225 ><P
17226 >If any line begins with an '!' then the processing 
17227                 will stop after that line if a mapping was done by the line. 
17228                 Otherwise mapping continues with every line being processed. 
17229                 Using '!' is most useful when you have a wildcard mapping line 
17230                 later in the file.</P
17231 ><P
17232 >For example to map from the name <TT
17233 CLASS="CONSTANT"
17234 >admin</TT
17235
17236                 or <TT
17237 CLASS="CONSTANT"
17238 >administrator</TT
17239 > to the UNIX name <TT
17240 CLASS="CONSTANT"
17241 >               root</TT
17242 > you would use:</P
17243 ><P
17244 ><B
17245 CLASS="COMMAND"
17246 >root = admin administrator</B
17247 ></P
17248 ><P
17249 >Or to map anyone in the UNIX group <TT
17250 CLASS="CONSTANT"
17251 >system</TT
17252
17253                 to the UNIX name <TT
17254 CLASS="CONSTANT"
17255 >sys</TT
17256 > you would use:</P
17257 ><P
17258 ><B
17259 CLASS="COMMAND"
17260 >sys = @system</B
17261 ></P
17262 ><P
17263 >You can have as many mappings as you like in a username 
17264                 map file.</P
17265 ><P
17266 >If your system supports the NIS NETGROUP option then 
17267                 the netgroup database is checked before the <TT
17268 CLASS="FILENAME"
17269 >/etc/group
17270                 </TT
17271 > database for matching groups.</P
17272 ><P
17273 >You can map Windows usernames that have spaces in them
17274                  by using double quotes around the name. For example:</P
17275 ><P
17276 ><B
17277 CLASS="COMMAND"
17278 >tridge = "Andrew Tridgell"</B
17279 ></P
17280 ><P
17281 >would map the windows username "Andrew Tridgell" to the 
17282                 unix username "tridge".</P
17283 ><P
17284 >The following example would map mary and fred to the 
17285                 unix user sys, and map the rest to guest. Note the use of the 
17286                 '!' to tell Samba to stop processing if it gets a match on 
17287                 that line.</P
17288 ><P
17289 ><TABLE
17290 BORDER="0"
17291 BGCOLOR="#E0E0E0"
17292 WIDTH="90%"
17293 ><TR
17294 ><TD
17295 ><PRE
17296 CLASS="PROGRAMLISTING"
17297 >               !sys = mary fred
17298                 guest = *
17299                 </PRE
17300 ></TD
17301 ></TR
17302 ></TABLE
17303 ></P
17304 ><P
17305 >Note that the remapping is applied to all occurrences 
17306                 of usernames. Thus if you connect to \\server\fred and <TT
17307 CLASS="CONSTANT"
17308 >               fred</TT
17309 > is remapped to <TT
17310 CLASS="CONSTANT"
17311 >mary</TT
17312 > then you 
17313                 will actually be connecting to \\server\mary and will need to 
17314                 supply a password suitable for <TT
17315 CLASS="CONSTANT"
17316 >mary</TT
17317 > not 
17318                 <TT
17319 CLASS="CONSTANT"
17320 >fred</TT
17321 >. The only exception to this is the 
17322                 username passed to the <A
17323 HREF="#PASSWORDSERVER"
17324 ><TT
17325 CLASS="PARAMETER"
17326 ><I
17327 >               password server</I
17328 ></TT
17329 ></A
17330 > (if you have one). The password 
17331                 server will receive whatever username the client supplies without 
17332                 modification.</P
17333 ><P
17334 >Also note that no reverse mapping is done. The main effect 
17335                 this has is with printing. Users who have been mapped may have 
17336                 trouble deleting print jobs as PrintManager under WfWg will think 
17337                 they don't own the print job.</P
17338 ><P
17339 >Default: <EM
17340 >no username map</EM
17341 ></P
17342 ><P
17343 >Example: <B
17344 CLASS="COMMAND"
17345 >username map = /usr/local/samba/lib/users.map
17346                 </B
17347 ></P
17348 ></DD
17349 ><DT
17350 ><A
17351 NAME="UTMP"
17352 ></A
17353 >utmp (G)</DT
17354 ><DD
17355 ><P
17356 >This boolean parameter is only available if 
17357                 Samba has been configured and compiled  with the option <B
17358 CLASS="COMMAND"
17359 >               --with-utmp</B
17360 >. If set to <TT
17361 CLASS="CONSTANT"
17362 >true</TT
17363 > then Samba will attempt
17364                 to add utmp or utmpx records (depending on the UNIX system) whenever a
17365                 connection is made to a Samba server. Sites may use this to record the
17366                 user connecting to a Samba share.</P
17367 ><P
17368 >Due to the requirements of the utmp record, we
17369                 are required to create a unique identifier for the
17370                 incoming user.  Enabling this option creates an n^2
17371                 algorithm to find this number.  This may impede
17372                 performance on large installations. </P
17373 ><P
17374 >See also the <A
17375 HREF="#UTMPDIRECTORY"
17376 ><TT
17377 CLASS="PARAMETER"
17378 ><I
17379 >               utmp directory</I
17380 ></TT
17381 ></A
17382 > parameter.</P
17383 ><P
17384 >Default: <B
17385 CLASS="COMMAND"
17386 >utmp = no</B
17387 ></P
17388 ></DD
17389 ><DT
17390 ><A
17391 NAME="UTMPDIRECTORY"
17392 ></A
17393 >utmp directory(G)</DT
17394 ><DD
17395 ><P
17396 >This parameter is only available if Samba has 
17397                 been configured and compiled with the option <B
17398 CLASS="COMMAND"
17399 >               --with-utmp</B
17400 >. It specifies a directory pathname that is
17401                 used to store the utmp or utmpx files (depending on the UNIX system) that
17402                 record user connections to a Samba server. See also the <A
17403 HREF="#UTMP"
17404 >               <TT
17405 CLASS="PARAMETER"
17406 ><I
17407 >utmp</I
17408 ></TT
17409 ></A
17410 > parameter. By default this is 
17411                 not set, meaning the system will use whatever utmp file the 
17412                 native system is set to use (usually 
17413                 <TT
17414 CLASS="FILENAME"
17415 >/var/run/utmp</TT
17416 > on Linux).</P
17417 ><P
17418 >Default: <EM
17419 >no utmp directory</EM
17420 ></P
17421 ></DD
17422 ><DT
17423 ><A
17424 NAME="VALIDUSERS"
17425 ></A
17426 >valid users (S)</DT
17427 ><DD
17428 ><P
17429 >This is a list of users that should be allowed 
17430                 to login to this service. Names starting with '@', '+' and  '&#38;'
17431                 are interpreted using the same rules as described in the 
17432                 <TT
17433 CLASS="PARAMETER"
17434 ><I
17435 >invalid users</I
17436 ></TT
17437 > parameter.</P
17438 ><P
17439 >If this is empty (the default) then any user can login. 
17440                 If a username is in both this list and the <TT
17441 CLASS="PARAMETER"
17442 ><I
17443 >invalid 
17444                 users</I
17445 ></TT
17446 > list then access is denied for that user.</P
17447 ><P
17448 >The current servicename is substituted for <TT
17449 CLASS="PARAMETER"
17450 ><I
17451 >%S
17452                 </I
17453 ></TT
17454 >. This is useful in the [homes] section.</P
17455 ><P
17456 >See also <A
17457 HREF="#INVALIDUSERS"
17458 ><TT
17459 CLASS="PARAMETER"
17460 ><I
17461 >invalid users
17462                 </I
17463 ></TT
17464 ></A
17465 ></P
17466 ><P
17467 >Default: <EM
17468 >No valid users list (anyone can login)
17469                 </EM
17470 ></P
17471 ><P
17472 >Example: <B
17473 CLASS="COMMAND"
17474 >valid users = greg, @pcusers</B
17475 ></P
17476 ></DD
17477 ><DT
17478 ><A
17479 NAME="VETOFILES"
17480 ></A
17481 >veto files(S)</DT
17482 ><DD
17483 ><P
17484 >This is a list of files and directories that 
17485                 are neither visible nor accessible.  Each entry in the list must 
17486                 be separated by a '/', which allows spaces to be included 
17487                 in the entry. '*' and '?' can be used to specify multiple files 
17488                 or directories as in DOS wildcards.</P
17489 ><P
17490 >Each entry must be a unix path, not a DOS path and 
17491                 must <EM
17492 >not</EM
17493 > include the  unix directory 
17494                 separator '/'.</P
17495 ><P
17496 >Note that the <TT
17497 CLASS="PARAMETER"
17498 ><I
17499 >case sensitive</I
17500 ></TT
17501 > option 
17502                 is applicable in vetoing files.</P
17503 ><P
17504 >One feature of the veto files parameter that it
17505                 is important to be aware of is Samba's behaviour when
17506                 trying to delete a directory. If a directory that is
17507                 to be deleted contains nothing but veto files this
17508                 deletion will <EM
17509 >fail</EM
17510 > unless you also set
17511                 the <TT
17512 CLASS="PARAMETER"
17513 ><I
17514 >delete veto files</I
17515 ></TT
17516 > parameter to
17517                 <TT
17518 CLASS="PARAMETER"
17519 ><I
17520 >yes</I
17521 ></TT
17522 >.</P
17523 ><P
17524 >Setting this parameter will affect the performance 
17525                 of Samba, as it will be forced to check all files and directories 
17526                 for a match as they are scanned.</P
17527 ><P
17528 >See also <A
17529 HREF="#HIDEFILES"
17530 ><TT
17531 CLASS="PARAMETER"
17532 ><I
17533 >hide files
17534                 </I
17535 ></TT
17536 ></A
17537 > and <A
17538 HREF="#CASESENSITIVE"
17539 ><TT
17540 CLASS="PARAMETER"
17541 ><I
17542 >               case sensitive</I
17543 ></TT
17544 ></A
17545 >.</P
17546 ><P
17547 >Default: <EM
17548 >No files or directories are vetoed.
17549                 </EM
17550 ></P
17551 ><P
17552 >Examples:<TABLE
17553 BORDER="0"
17554 BGCOLOR="#E0E0E0"
17555 WIDTH="90%"
17556 ><TR
17557 ><TD
17558 ><PRE
17559 CLASS="PROGRAMLISTING"
17560 >; Veto any files containing the word Security, 
17561 ; any ending in .tmp, and any directory containing the
17562 ; word root.
17563 veto files = /*Security*/*.tmp/*root*/
17564
17565 ; Veto the Apple specific files that a NetAtalk server
17566 ; creates.
17567 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/</PRE
17568 ></TD
17569 ></TR
17570 ></TABLE
17571 ></P
17572 ></DD
17573 ><DT
17574 ><A
17575 NAME="VETOOPLOCKFILES"
17576 ></A
17577 >veto oplock files (S)</DT
17578 ><DD
17579 ><P
17580 >This parameter is only valid when the <A
17581 HREF="#OPLOCKS"
17582 ><TT
17583 CLASS="PARAMETER"
17584 ><I
17585 >oplocks</I
17586 ></TT
17587 ></A
17588 >
17589                 parameter is turned on for a share. It allows the Samba administrator
17590                 to selectively turn off the granting of oplocks on selected files that
17591                 match a wildcarded list, similar to the wildcarded list used in the
17592                 <A
17593 HREF="#VETOFILES"
17594 ><TT
17595 CLASS="PARAMETER"
17596 ><I
17597 >veto files</I
17598 ></TT
17599 ></A
17600
17601                 parameter.</P
17602 ><P
17603 >Default: <EM
17604 >No files are vetoed for oplock 
17605                 grants</EM
17606 ></P
17607 ><P
17608 >You might want to do this on files that you know will 
17609                 be heavily contended for by clients. A good example of this 
17610                 is in the NetBench SMB benchmark program, which causes heavy 
17611                 client contention for files ending in <TT
17612 CLASS="FILENAME"
17613 >.SEM</TT
17614 >. 
17615                 To cause Samba not to grant oplocks on these files you would use 
17616                 the line (either in the [global] section or in the section for 
17617                 the particular NetBench share :</P
17618 ><P
17619 >Example: <B
17620 CLASS="COMMAND"
17621 >veto oplock files = /*.SEM/
17622                 </B
17623 ></P
17624 ></DD
17625 ><DT
17626 ><A
17627 NAME="VFSOBJECT"
17628 ></A
17629 >vfs object (S)</DT
17630 ><DD
17631 ><P
17632 >This parameter specifies a shared object file that 
17633                 is used for Samba VFS I/O operations.  By default, normal 
17634                 disk I/O operations are used but these can be overloaded 
17635                 with a VFS object.  The Samba VFS layer is new to Samba 2.2 and 
17636                 must be enabled at compile time with --with-vfs.</P
17637 ><P
17638 >Default : <EM
17639 >no value</EM
17640 ></P
17641 ></DD
17642 ><DT
17643 ><A
17644 NAME="VFSOPTIONS"
17645 ></A
17646 >vfs options (S)</DT
17647 ><DD
17648 ><P
17649 >This parameter allows parameters to be passed 
17650                 to the vfs layer at initialization time.  The Samba VFS layer 
17651                 is new to Samba 2.2 and must be enabled at compile time 
17652                 with --with-vfs.  See also <A
17653 HREF="#VFSOBJECT"
17654 ><TT
17655 CLASS="PARAMETER"
17656 ><I
17657 >               vfs object</I
17658 ></TT
17659 ></A
17660 >.</P
17661 ><P
17662 >Default : <EM
17663 >no value</EM
17664 ></P
17665 ></DD
17666 ><DT
17667 ><A
17668 NAME="VOLUME"
17669 ></A
17670 >volume (S)</DT
17671 ><DD
17672 ><P
17673 > This allows you to override the volume label 
17674                 returned for a share. Useful for CDROMs with installation programs 
17675                 that insist on a particular volume label.</P
17676 ><P
17677 >Default: <EM
17678 >the name of the share</EM
17679 ></P
17680 ></DD
17681 ><DT
17682 ><A
17683 NAME="WIDELINKS"
17684 ></A
17685 >wide links (S)</DT
17686 ><DD
17687 ><P
17688 >This parameter controls whether or not links 
17689                 in the UNIX file system may be followed by the server. Links 
17690                 that point to areas within the directory tree exported by the 
17691                 server are always allowed; this parameter controls access only 
17692                 to areas that are outside the directory tree being exported.</P
17693 ><P
17694 >Note that setting this parameter can have a negative 
17695                 effect on your server performance due to the extra system calls 
17696                 that Samba has to  do in order to perform the link checks.</P
17697 ><P
17698 >Default: <B
17699 CLASS="COMMAND"
17700 >wide links = yes</B
17701 ></P
17702 ></DD
17703 ><DT
17704 ><A
17705 NAME="WINBINDCACHETIME"
17706 ></A
17707 >winbind cache time (G)</DT
17708 ><DD
17709 ><P
17710 >This parameter specifies the number of seconds the
17711                 <A
17712 HREF="winbindd.8.html"
17713 TARGET="_top"
17714 >winbindd(8)</A
17715 > daemon will cache 
17716                 user and group information before querying a Windows NT server 
17717                 again.</P
17718 ><P
17719 >Default: <B
17720 CLASS="COMMAND"
17721 >winbind cache type = 15</B
17722 ></P
17723 ></DD
17724 ><DT
17725 ><A
17726 NAME="WINBINDENUMUSERS"
17727 ></A
17728 >winbind enum users (G)</DT
17729 ><DD
17730 ><P
17731 >On large installations using
17732                 <A
17733 HREF="winbindd.8.html"
17734 TARGET="_top"
17735 >winbindd(8)</A
17736 > it may be
17737                 necessary to suppress the enumeration of users through the
17738                 <B
17739 CLASS="COMMAND"
17740 > setpwent()</B
17741 >,
17742                 <B
17743 CLASS="COMMAND"
17744 >getpwent()</B
17745 > and
17746                 <B
17747 CLASS="COMMAND"
17748 >endpwent()</B
17749 > group of system calls.  If
17750                 the <TT
17751 CLASS="PARAMETER"
17752 ><I
17753 >winbind enum users</I
17754 ></TT
17755 > parameter is
17756                 false, calls to the <B
17757 CLASS="COMMAND"
17758 >getpwent</B
17759 > system call
17760                 will not return any data. </P
17761 ><P
17762 ><EM
17763 >Warning:</EM
17764 > Turning off user
17765                 enumeration may cause some programs to behave oddly.  For
17766                 example, the finger program relies on having access to the
17767                 full user list when searching for matching
17768                 usernames. </P
17769 ><P
17770 >Default: <B
17771 CLASS="COMMAND"
17772 >winbind enum users = yes </B
17773 ></P
17774 ></DD
17775 ><DT
17776 ><A
17777 NAME="WINBINDENUMGROUPS"
17778 ></A
17779 >winbind enum groups (G)</DT
17780 ><DD
17781 ><P
17782 >On large installations using
17783                 <A
17784 HREF="winbindd.8.html"
17785 TARGET="_top"
17786 >winbindd(8)</A
17787 > it may be
17788                 necessary to suppress the enumeration of groups through the
17789                 <B
17790 CLASS="COMMAND"
17791 > setgrent()</B
17792 >,
17793                 <B
17794 CLASS="COMMAND"
17795 >getgrent()</B
17796 > and
17797                 <B
17798 CLASS="COMMAND"
17799 >endgrent()</B
17800 > group of system calls.  If
17801                 the <TT
17802 CLASS="PARAMETER"
17803 ><I
17804 >winbind enum groups</I
17805 ></TT
17806 > parameter is
17807                 false, calls to the <B
17808 CLASS="COMMAND"
17809 >getgrent()</B
17810 > system
17811                 call will not return any data. </P
17812 ><P
17813 ><EM
17814 >Warning:</EM
17815 > Turning off group
17816                 enumeration may cause some programs to behave oddly.
17817                 </P
17818 ><P
17819 >Default: <B
17820 CLASS="COMMAND"
17821 >winbind enum groups = yes </B
17822 >
17823                 </P
17824 ></DD
17825 ><DT
17826 ><A
17827 NAME="WINBINDGID"
17828 ></A
17829 >winbind gid (G)</DT
17830 ><DD
17831 ><P
17832 >The winbind gid parameter specifies the range of group 
17833                 ids that are allocated by the <A
17834 HREF="winbindd.8.html"
17835 TARGET="_top"
17836 >               winbindd(8)</A
17837 > daemon.  This range of group ids should have no 
17838                 existing local or NIS groups within it as strange conflicts can 
17839                 occur otherwise.</P
17840 ><P
17841 >Default: <B
17842 CLASS="COMMAND"
17843 >winbind gid = &#60;empty string&#62;
17844                 </B
17845 ></P
17846 ><P
17847 >Example: <B
17848 CLASS="COMMAND"
17849 >winbind gid = 10000-20000</B
17850 ></P
17851 ></DD
17852 ><DT
17853 ><A
17854 NAME="WINBINDSEPARATOR"
17855 ></A
17856 >winbind separator (G)</DT
17857 ><DD
17858 ><P
17859 >This parameter allows an admin to define the character 
17860                 used when listing a username of the form of <TT
17861 CLASS="REPLACEABLE"
17862 ><I
17863 >DOMAIN
17864                 </I
17865 ></TT
17866 >\<TT
17867 CLASS="REPLACEABLE"
17868 ><I
17869 >user</I
17870 ></TT
17871 >.  This parameter 
17872                 is only applicable when using the <TT
17873 CLASS="FILENAME"
17874 >pam_winbind.so</TT
17875 >
17876                 and <TT
17877 CLASS="FILENAME"
17878 >nss_winbind.so</TT
17879 > modules for UNIX services.
17880                 </P
17881 ><P
17882 >Please note that setting this parameter to + causes problems
17883                 with group membership at least on glibc systems, as the character +
17884                 is used as a special character for NIS in /etc/group.</P
17885 ><P
17886 >Default: <B
17887 CLASS="COMMAND"
17888 >winbind separator = '\'</B
17889 ></P
17890 ><P
17891 >Example: <B
17892 CLASS="COMMAND"
17893 >winbind separator = +</B
17894 ></P
17895 ></DD
17896 ><DT
17897 ><A
17898 NAME="WINBINDUID"
17899 ></A
17900 >winbind uid (G)</DT
17901 ><DD
17902 ><P
17903 >The winbind gid parameter specifies the range of group 
17904                 ids that are allocated by the <A
17905 HREF="winbindd.8.html"
17906 TARGET="_top"
17907 >               winbindd(8)</A
17908 > daemon.  This range of ids should have no 
17909                 existing local or NIS users within it as strange conflicts can 
17910                 occur otherwise.</P
17911 ><P
17912 >Default: <B
17913 CLASS="COMMAND"
17914 >winbind uid = &#60;empty string&#62;
17915                 </B
17916 ></P
17917 ><P
17918 >Example: <B
17919 CLASS="COMMAND"
17920 >winbind uid = 10000-20000</B
17921 ></P
17922 ></DD
17923 ><DT
17924 >winbind use default domain, <A
17925 NAME="WINBINDUSEDEFAULTDOMAIN"
17926 ></A
17927 >winbind use default domain</DT
17928 ><DD
17929 ><P
17930 >This parameter specifies whether the <A
17931 HREF="winbindd.8.html"
17932 TARGET="_top"
17933 >               winbindd(8)</A
17934 >
17935                 daemon should operate on users without domain component in their username.  
17936                 Users without a domain component are treated as is part of the winbindd server's 
17937                 own domain.  While this does not benifit Windows users, it makes SSH, FTP and e-mail 
17938                 function in a way much closer to the way they would in a native unix system.</P
17939 ><P
17940 >Default: <B
17941 CLASS="COMMAND"
17942 >winbind use default domain = &#60;falseg&#62; 
17943                 </B
17944 ></P
17945 ><P
17946 >Example: <B
17947 CLASS="COMMAND"
17948 >winbind use default domain = true</B
17949 ></P
17950 ></DD
17951 ><DT
17952 ><A
17953 NAME="WINSHOOK"
17954 ></A
17955 >wins hook (G)</DT
17956 ><DD
17957 ><P
17958 >When Samba is running as a WINS server this 
17959                 allows you to call an external program for all changes to the 
17960                 WINS database. The primary use for this option is to allow the 
17961                 dynamic update of external name resolution databases such as 
17962                 dynamic DNS.</P
17963 ><P
17964 >The wins hook parameter specifies the name of a script 
17965                 or executable that will be called as follows:</P
17966 ><P
17967 ><B
17968 CLASS="COMMAND"
17969 >wins_hook operation name nametype ttl IP_list
17970                 </B
17971 ></P
17972 ><P
17973 ></P
17974 ><UL
17975 ><LI
17976 ><P
17977 >The first argument is the operation and is one 
17978                         of "add", "delete", or "refresh". In most cases the operation can 
17979                         be ignored as the rest of the parameters provide sufficient 
17980                         information. Note that "refresh" may sometimes be called when the 
17981                         name has not previously been added, in that case it should be treated 
17982                         as an add.</P
17983 ></LI
17984 ><LI
17985 ><P
17986 >The second argument is the NetBIOS name. If the 
17987                         name is not a legal name then the wins hook is not called. 
17988                         Legal names contain only  letters, digits, hyphens, underscores 
17989                         and periods.</P
17990 ></LI
17991 ><LI
17992 ><P
17993 >The third argument is the NetBIOS name 
17994                         type as a 2 digit hexadecimal number. </P
17995 ></LI
17996 ><LI
17997 ><P
17998 >The fourth argument is the TTL (time to live) 
17999                         for the name in seconds.</P
18000 ></LI
18001 ><LI
18002 ><P
18003 >The fifth and subsequent arguments are the IP 
18004                         addresses currently registered for that name. If this list is 
18005                         empty then the name should be deleted.</P
18006 ></LI
18007 ></UL
18008 ><P
18009 >An example script that calls the BIND dynamic DNS update 
18010                 program <B
18011 CLASS="COMMAND"
18012 >nsupdate</B
18013 > is provided in the examples 
18014                 directory of the Samba source code. </P
18015 ></DD
18016 ><DT
18017 ><A
18018 NAME="WINSPROXY"
18019 ></A
18020 >wins proxy (G)</DT
18021 ><DD
18022 ><P
18023 >This is a boolean that controls if <A
18024 HREF="nmbd.8.html"
18025 TARGET="_top"
18026 >nmbd(8)</A
18027 > will respond to broadcast name 
18028                 queries on behalf of  other hosts. You may need to set this 
18029                 to <TT
18030 CLASS="CONSTANT"
18031 >yes</TT
18032 > for some older clients.</P
18033 ><P
18034 >Default: <B
18035 CLASS="COMMAND"
18036 >wins proxy = no</B
18037 ></P
18038 ></DD
18039 ><DT
18040 ><A
18041 NAME="WINSSERVER"
18042 ></A
18043 >wins server (G)</DT
18044 ><DD
18045 ><P
18046 >This specifies the IP address (or DNS name: IP 
18047                 address for preference) of the WINS server that <A
18048 HREF="nmbd.8.html"
18049 TARGET="_top"
18050 >               nmbd(8)</A
18051 > should register with. If you have a WINS server on 
18052                 your network then you should set this to the WINS server's IP.</P
18053 ><P
18054 >You should point this at your WINS server if you have a
18055                 multi-subnetted network.</P
18056 ><P
18057 ><EM
18058 >NOTE</EM
18059 >. You need to set up Samba to point 
18060                 to a WINS server if you have multiple subnets and wish cross-subnet 
18061                 browsing to work correctly.</P
18062 ><P
18063 >See the documentation file <TT
18064 CLASS="FILENAME"
18065 >BROWSING.txt</TT
18066
18067                 in the docs/ directory of your Samba source distribution.</P
18068 ><P
18069 >Default: <EM
18070 >not enabled</EM
18071 ></P
18072 ><P
18073 >Example: <B
18074 CLASS="COMMAND"
18075 >wins server = 192.9.200.1</B
18076 ></P
18077 ></DD
18078 ><DT
18079 ><A
18080 NAME="WINSSUPPORT"
18081 ></A
18082 >wins support (G)</DT
18083 ><DD
18084 ><P
18085 >This boolean controls if the <A
18086 HREF="nmbd.8.html"
18087 TARGET="_top"
18088 >               
18089                 nmbd(8)</A
18090 > process in Samba will act as a WINS server. You should 
18091                 not set this to <TT
18092 CLASS="CONSTANT"
18093 >true</TT
18094 > unless you have a multi-subnetted network and 
18095                 you wish a particular <B
18096 CLASS="COMMAND"
18097 >nmbd</B
18098 > to be your WINS server. 
18099                 Note that you should <EM
18100 >NEVER</EM
18101 > set this to <TT
18102 CLASS="CONSTANT"
18103 >true</TT
18104 >
18105                 on more than one machine in your network.</P
18106 ><P
18107 >Default: <B
18108 CLASS="COMMAND"
18109 >wins support = no</B
18110 ></P
18111 ></DD
18112 ><DT
18113 ><A
18114 NAME="WORKGROUP"
18115 ></A
18116 >workgroup (G)</DT
18117 ><DD
18118 ><P
18119 >This controls what workgroup your server will 
18120                 appear to be in when queried by clients. Note that this parameter 
18121                 also controls the Domain name used with the <A
18122 HREF="#SECURITYEQUALSDOMAIN"
18123 ><B
18124 CLASS="COMMAND"
18125 >security = domain</B
18126 ></A
18127 >
18128                 setting.</P
18129 ><P
18130 >Default: <EM
18131 >set at compile time to WORKGROUP</EM
18132 ></P
18133 ><P
18134 >Example: <B
18135 CLASS="COMMAND"
18136 >workgroup = MYGROUP</B
18137 ></P
18138 ></DD
18139 ><DT
18140 ><A
18141 NAME="WRITABLE"
18142 ></A
18143 >writable (S)</DT
18144 ><DD
18145 ><P
18146 >Synonym for <A
18147 HREF="#WRITEABLE"
18148 ><TT
18149 CLASS="PARAMETER"
18150 ><I
18151 >               writeable</I
18152 ></TT
18153 ></A
18154 > for people who can't spell :-).</P
18155 ></DD
18156 ><DT
18157 ><A
18158 NAME="WRITECACHESIZE"
18159 ></A
18160 >write cache size (S)</DT
18161 ><DD
18162 ><P
18163 >If this integer parameter is set to non-zero value,
18164                 Samba will create an in-memory cache for each oplocked file 
18165                 (it does <EM
18166 >not</EM
18167 > do this for 
18168                 non-oplocked files). All writes that the client does not request 
18169                 to be flushed directly to disk will be stored in this cache if possible. 
18170                 The cache is flushed onto disk when a write comes in whose offset 
18171                 would not fit into the cache or when the file is closed by the client. 
18172                 Reads for the file are also served from this cache if the data is stored 
18173                 within it.</P
18174 ><P
18175 >This cache allows Samba to batch client writes into a more 
18176                 efficient write size for RAID disks (i.e. writes may be tuned to 
18177                 be the RAID stripe size) and can improve performance on systems 
18178                 where the disk subsystem is a bottleneck but there is free 
18179                 memory for userspace programs.</P
18180 ><P
18181 >The integer parameter specifies the size of this cache 
18182                 (per oplocked file) in bytes.</P
18183 ><P
18184 >Default: <B
18185 CLASS="COMMAND"
18186 >write cache size = 0</B
18187 ></P
18188 ><P
18189 >Example: <B
18190 CLASS="COMMAND"
18191 >write cache size = 262144</B
18192 ></P
18193 ><P
18194 >for a 256k cache size per file.</P
18195 ></DD
18196 ><DT
18197 ><A
18198 NAME="WRITELIST"
18199 ></A
18200 >write list (S)</DT
18201 ><DD
18202 ><P
18203 >This is a list of users that are given read-write 
18204                 access to a service. If the connecting user is in this list then 
18205                 they will be given write access, no matter what the <A
18206 HREF="#WRITEABLE"
18207 ><TT
18208 CLASS="PARAMETER"
18209 ><I
18210 >writeable</I
18211 ></TT
18212 ></A
18213 >
18214                 option is set to. The list can include group names using the 
18215                 @group syntax.</P
18216 ><P
18217 >Note that if a user is in both the read list and the 
18218                 write list then they will be given write access.</P
18219 ><P
18220 >See also the <A
18221 HREF="#READLIST"
18222 ><TT
18223 CLASS="PARAMETER"
18224 ><I
18225 >read list
18226                 </I
18227 ></TT
18228 ></A
18229 > option.</P
18230 ><P
18231 >Default: <B
18232 CLASS="COMMAND"
18233 >write list = &#60;empty string&#62;
18234                 </B
18235 ></P
18236 ><P
18237 >Example: <B
18238 CLASS="COMMAND"
18239 >write list = admin, root, @staff
18240                 </B
18241 ></P
18242 ></DD
18243 ><DT
18244 ><A
18245 NAME="WRITEOK"
18246 ></A
18247 >write ok (S)</DT
18248 ><DD
18249 ><P
18250 >Synonym for <A
18251 HREF="#WRITEABLE"
18252 ><TT
18253 CLASS="PARAMETER"
18254 ><I
18255 >               writeable</I
18256 ></TT
18257 ></A
18258 >.</P
18259 ></DD
18260 ><DT
18261 ><A
18262 NAME="WRITERAW"
18263 ></A
18264 >write raw (G)</DT
18265 ><DD
18266 ><P
18267 >This parameter controls whether or not the server 
18268                 will support raw write SMB's when transferring data from clients. 
18269                 You should never need to change this parameter.</P
18270 ><P
18271 >Default: <B
18272 CLASS="COMMAND"
18273 >write raw = yes</B
18274 ></P
18275 ></DD
18276 ><DT
18277 ><A
18278 NAME="WRITEABLE"
18279 ></A
18280 >writeable (S)</DT
18281 ><DD
18282 ><P
18283 >An inverted synonym is <A
18284 HREF="#READONLY"
18285 >               <TT
18286 CLASS="PARAMETER"
18287 ><I
18288 >read only</I
18289 ></TT
18290 ></A
18291 >.</P
18292 ><P
18293 >If this parameter is <TT
18294 CLASS="CONSTANT"
18295 >no</TT
18296 >, then users 
18297                 of a service may not create or modify files in the service's 
18298                 directory.</P
18299 ><P
18300 >Note that a printable service (<B
18301 CLASS="COMMAND"
18302 >printable = yes</B
18303 >)
18304                 will <EM
18305 >ALWAYS</EM
18306 > allow writing to the directory 
18307                 (user privileges permitting), but only via spooling operations.</P
18308 ><P
18309 >Default: <B
18310 CLASS="COMMAND"
18311 >writeable = no</B
18312 ></P
18313 ></DD
18314 ></DL
18315 ></DIV
18316 ></DIV
18317 ><DIV
18318 CLASS="REFSECT1"
18319 ><A
18320 NAME="AEN5817"
18321 ></A
18322 ><H2
18323 >WARNINGS</H2
18324 ><P
18325 >Although the configuration file permits service names 
18326         to contain spaces, your client software may not. Spaces will 
18327         be ignored in comparisons anyway, so it shouldn't be a 
18328         problem - but be aware of the possibility.</P
18329 ><P
18330 >On a similar note, many clients - especially DOS clients - 
18331         limit service names to eight characters. <A
18332 HREF="smbd.8.html"
18333 TARGET="_top"
18334 >smbd(8)
18335         </A
18336 > has no such limitation, but attempts to connect from such 
18337         clients will fail if they truncate the service names.  For this reason 
18338         you should probably keep your service names down to eight characters 
18339         in length.</P
18340 ><P
18341 >Use of the [homes] and [printers] special sections make life 
18342         for an administrator easy, but the various combinations of default 
18343         attributes can be tricky. Take extreme care when designing these 
18344         sections. In particular, ensure that the permissions on spool 
18345         directories are correct.</P
18346 ></DIV
18347 ><DIV
18348 CLASS="REFSECT1"
18349 ><A
18350 NAME="AEN5823"
18351 ></A
18352 ><H2
18353 >VERSION</H2
18354 ><P
18355 >This man page is correct for version 2.2 of 
18356         the Samba suite.</P
18357 ></DIV
18358 ><DIV
18359 CLASS="REFSECT1"
18360 ><A
18361 NAME="AEN5826"
18362 ></A
18363 ><H2
18364 >SEE ALSO</H2
18365 ><P
18366 ><A
18367 HREF="samba.7.html"
18368 TARGET="_top"
18369 >samba(7)</A
18370 >,
18371         <A
18372 HREF="smbpasswd.8.html"
18373 TARGET="_top"
18374 ><B
18375 CLASS="COMMAND"
18376 >smbpasswd(8)</B
18377 ></A
18378 >,
18379         <A
18380 HREF="swat.8.html"
18381 TARGET="_top"
18382 ><B
18383 CLASS="COMMAND"
18384 >swat(8)</B
18385 ></A
18386 >,
18387         <A
18388 HREF="smbd.8.html"
18389 TARGET="_top"
18390 ><B
18391 CLASS="COMMAND"
18392 >smbd(8)</B
18393 ></A
18394 >, 
18395         <A
18396 HREF="nmbd.8.html"
18397 TARGET="_top"
18398 ><B
18399 CLASS="COMMAND"
18400 >nmbd(8)</B
18401 ></A
18402 >, 
18403         <A
18404 HREF="smbclient.1.html"
18405 TARGET="_top"
18406 ><B
18407 CLASS="COMMAND"
18408 >smbclient(1)</B
18409 ></A
18410 >, 
18411         <A
18412 HREF="nmblookup.1.html"
18413 TARGET="_top"
18414 ><B
18415 CLASS="COMMAND"
18416 >nmblookup(1)</B
18417 ></A
18418 >,
18419         <A
18420 HREF="testparm.1.html"
18421 TARGET="_top"
18422 ><B
18423 CLASS="COMMAND"
18424 >testparm(1)</B
18425 ></A
18426 >, 
18427         <A
18428 HREF="testprns.1.html"
18429 TARGET="_top"
18430 ><B
18431 CLASS="COMMAND"
18432 >testprns(1)</B
18433 ></A
18434 >
18435         </P
18436 ></DIV
18437 ><DIV
18438 CLASS="REFSECT1"
18439 ><A
18440 NAME="AEN5846"
18441 ></A
18442 ><H2
18443 >AUTHOR</H2
18444 ><P
18445 >The original Samba software and related utilities 
18446         were created by Andrew Tridgell. Samba is now developed
18447         by the Samba Team as an Open Source project similar 
18448         to the way the Linux kernel is developed.</P
18449 ><P
18450 >The original Samba man pages were written by Karl Auer. 
18451         The man page sources were converted to YODL format (another 
18452         excellent piece of Open Source software, available at
18453         <A
18454 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
18455 TARGET="_top"
18456 >       ftp://ftp.icce.rug.nl/pub/unix/</A
18457 >) and updated for the Samba 2.0 
18458         release by Jeremy Allison.  The conversion to DocBook for 
18459         Samba 2.2 was done by Gerald Carter</P
18460 ></DIV
18461 ></BODY
18462 ></HTML
18463 >