merging some changes from SAMBA_2_2
[kai/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="#LDAPPORT"
1469 ><TT
1470 CLASS="PARAMETER"
1471 ><I
1472 >ldap port</I
1473 ></TT
1474 ></A
1475 ></P
1476 ></LI
1477 ><LI
1478 ><P
1479 ><A
1480 HREF="#LDAPSERVER"
1481 ><TT
1482 CLASS="PARAMETER"
1483 ><I
1484 >ldap server</I
1485 ></TT
1486 ></A
1487 ></P
1488 ></LI
1489 ><LI
1490 ><P
1491 ><A
1492 HREF="#LDAPSSL"
1493 ><TT
1494 CLASS="PARAMETER"
1495 ><I
1496 >ldap ssl</I
1497 ></TT
1498 ></A
1499 ></P
1500 ></LI
1501 ><LI
1502 ><P
1503 ><A
1504 HREF="#LDAPSUFFIX"
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="#SSL"
2465 ><TT
2466 CLASS="PARAMETER"
2467 ><I
2468 >ssl</I
2469 ></TT
2470 ></A
2471 ></P
2472 ></LI
2473 ><LI
2474 ><P
2475 ><A
2476 HREF="#SSLCACERTDIR"
2477 ><TT
2478 CLASS="PARAMETER"
2479 ><I
2480 >ssl CA certDir</I
2481 ></TT
2482 ></A
2483 ></P
2484 ></LI
2485 ><LI
2486 ><P
2487 ><A
2488 HREF="#SSLCACERTFILE"
2489 ><TT
2490 CLASS="PARAMETER"
2491 ><I
2492 >ssl CA certFile</I
2493 ></TT
2494 ></A
2495 ></P
2496 ></LI
2497 ><LI
2498 ><P
2499 ><A
2500 HREF="#SSLCIPHERS"
2501 ><TT
2502 CLASS="PARAMETER"
2503 ><I
2504 >ssl ciphers</I
2505 ></TT
2506 ></A
2507 ></P
2508 ></LI
2509 ><LI
2510 ><P
2511 ><A
2512 HREF="#SSLCLIENTCERT"
2513 ><TT
2514 CLASS="PARAMETER"
2515 ><I
2516 >ssl client cert</I
2517 ></TT
2518 ></A
2519 ></P
2520 ></LI
2521 ><LI
2522 ><P
2523 ><A
2524 HREF="#SSLCLIENTKEY"
2525 ><TT
2526 CLASS="PARAMETER"
2527 ><I
2528 >ssl client key</I
2529 ></TT
2530 ></A
2531 ></P
2532 ></LI
2533 ><LI
2534 ><P
2535 ><A
2536 HREF="#SSLCOMPATIBILITY"
2537 ><TT
2538 CLASS="PARAMETER"
2539 ><I
2540 >ssl compatibility</I
2541 ></TT
2542 ></A
2543 ></P
2544 ></LI
2545 ><LI
2546 ><P
2547 ><A
2548 HREF="#SSLEGDSOCKET"
2549 ><TT
2550 CLASS="PARAMETER"
2551 ><I
2552 >ssl egd socket</I
2553 ></TT
2554 ></A
2555 ></P
2556 ></LI
2557 ><LI
2558 ><P
2559 ><A
2560 HREF="#SSLENTROPYBYTES"
2561 ><TT
2562 CLASS="PARAMETER"
2563 ><I
2564 >ssl entropy bytes</I
2565 ></TT
2566 ></A
2567 ></P
2568 ></LI
2569 ><LI
2570 ><P
2571 ><A
2572 HREF="#SSLENTROPYFILE"
2573 ><TT
2574 CLASS="PARAMETER"
2575 ><I
2576 >ssl entropy file</I
2577 ></TT
2578 ></A
2579 ></P
2580 ></LI
2581 ><LI
2582 ><P
2583 ><A
2584 HREF="#SSLHOSTS"
2585 ><TT
2586 CLASS="PARAMETER"
2587 ><I
2588 >ssl hosts</I
2589 ></TT
2590 ></A
2591 ></P
2592 ></LI
2593 ><LI
2594 ><P
2595 ><A
2596 HREF="#SSLHOSTSRESIGN"
2597 ><TT
2598 CLASS="PARAMETER"
2599 ><I
2600 >ssl hosts resign</I
2601 ></TT
2602 ></A
2603 ></P
2604 ></LI
2605 ><LI
2606 ><P
2607 ><A
2608 HREF="#SSLREQUIRECLIENTCERT"
2609 ><TT
2610 CLASS="PARAMETER"
2611 ><I
2612 >ssl require clientcert</I
2613 ></TT
2614 ></A
2615 ></P
2616 ></LI
2617 ><LI
2618 ><P
2619 ><A
2620 HREF="#SSLREQUIRESERVERCERT"
2621 ><TT
2622 CLASS="PARAMETER"
2623 ><I
2624 >ssl require servercert</I
2625 ></TT
2626 ></A
2627 ></P
2628 ></LI
2629 ><LI
2630 ><P
2631 ><A
2632 HREF="#SSLSERVERCERT"
2633 ><TT
2634 CLASS="PARAMETER"
2635 ><I
2636 >ssl server cert</I
2637 ></TT
2638 ></A
2639 ></P
2640 ></LI
2641 ><LI
2642 ><P
2643 ><A
2644 HREF="#SSLSERVERKEY"
2645 ><TT
2646 CLASS="PARAMETER"
2647 ><I
2648 >ssl server key</I
2649 ></TT
2650 ></A
2651 ></P
2652 ></LI
2653 ><LI
2654 ><P
2655 ><A
2656 HREF="#SSLVERSION"
2657 ><TT
2658 CLASS="PARAMETER"
2659 ><I
2660 >ssl version</I
2661 ></TT
2662 ></A
2663 ></P
2664 ></LI
2665 ><LI
2666 ><P
2667 ><A
2668 HREF="#STATCACHE"
2669 ><TT
2670 CLASS="PARAMETER"
2671 ><I
2672 >stat cache</I
2673 ></TT
2674 ></A
2675 ></P
2676 ></LI
2677 ><LI
2678 ><P
2679 ><A
2680 HREF="#STATCACHESIZE"
2681 ><TT
2682 CLASS="PARAMETER"
2683 ><I
2684 >stat cache size</I
2685 ></TT
2686 ></A
2687 ></P
2688 ></LI
2689 ><LI
2690 ><P
2691 ><A
2692 HREF="#STRIPDOT"
2693 ><TT
2694 CLASS="PARAMETER"
2695 ><I
2696 >strip dot</I
2697 ></TT
2698 ></A
2699 ></P
2700 ></LI
2701 ><LI
2702 ><P
2703 ><A
2704 HREF="#SYSLOG"
2705 ><TT
2706 CLASS="PARAMETER"
2707 ><I
2708 >syslog</I
2709 ></TT
2710 ></A
2711 ></P
2712 ></LI
2713 ><LI
2714 ><P
2715 ><A
2716 HREF="#SYSLOGONLY"
2717 ><TT
2718 CLASS="PARAMETER"
2719 ><I
2720 >syslog only</I
2721 ></TT
2722 ></A
2723 ></P
2724 ></LI
2725 ><LI
2726 ><P
2727 ><A
2728 HREF="#TEMPLATEHOMEDIR"
2729 ><TT
2730 CLASS="PARAMETER"
2731 ><I
2732 >template homedir</I
2733 ></TT
2734 ></A
2735 ></P
2736 ></LI
2737 ><LI
2738 ><P
2739 ><A
2740 HREF="#TEMPLATESHELL"
2741 ><TT
2742 CLASS="PARAMETER"
2743 ><I
2744 >template shell</I
2745 ></TT
2746 ></A
2747 ></P
2748 ></LI
2749 ><LI
2750 ><P
2751 ><A
2752 HREF="#TIMEOFFSET"
2753 ><TT
2754 CLASS="PARAMETER"
2755 ><I
2756 >time offset</I
2757 ></TT
2758 ></A
2759 ></P
2760 ></LI
2761 ><LI
2762 ><P
2763 ><A
2764 HREF="#TIMESERVER"
2765 ><TT
2766 CLASS="PARAMETER"
2767 ><I
2768 >time server</I
2769 ></TT
2770 ></A
2771 ></P
2772 ></LI
2773 ><LI
2774 ><P
2775 ><A
2776 HREF="#TIMESTAMPLOGS"
2777 ><TT
2778 CLASS="PARAMETER"
2779 ><I
2780 >timestamp logs</I
2781 ></TT
2782 ></A
2783 ></P
2784 ></LI
2785 ><LI
2786 ><P
2787 ><A
2788 HREF="#TOTALPRINTJOBS"
2789 ><TT
2790 CLASS="PARAMETER"
2791 ><I
2792 >total print jobs</I
2793 ></TT
2794 ></A
2795 ></P
2796 ></LI
2797 ><LI
2798 ><P
2799 ><A
2800 HREF="#UNIXEXTENSIONS"
2801 ><TT
2802 CLASS="PARAMETER"
2803 ><I
2804 >unix extensions</I
2805 ></TT
2806 ></A
2807 ></P
2808 ></LI
2809 ><LI
2810 ><P
2811 ><A
2812 HREF="#UNIXPASSWORDSYNC"
2813 ><TT
2814 CLASS="PARAMETER"
2815 ><I
2816 >unix password sync</I
2817 ></TT
2818 ></A
2819 ></P
2820 ></LI
2821 ><LI
2822 ><P
2823 ><A
2824 HREF="#UPDATEENCRYPTED"
2825 ><TT
2826 CLASS="PARAMETER"
2827 ><I
2828 >update encrypted</I
2829 ></TT
2830 ></A
2831 ></P
2832 ></LI
2833 ><LI
2834 ><P
2835 ><A
2836 HREF="#USEMMAP"
2837 ><TT
2838 CLASS="PARAMETER"
2839 ><I
2840 >use mmap</I
2841 ></TT
2842 ></A
2843 ></P
2844 ></LI
2845 ><LI
2846 ><P
2847 ><A
2848 HREF="#USERHOSTS"
2849 ><TT
2850 CLASS="PARAMETER"
2851 ><I
2852 >use rhosts</I
2853 ></TT
2854 ></A
2855 ></P
2856 ></LI
2857 ><LI
2858 ><P
2859 ><A
2860 HREF="#USERNAMELEVEL"
2861 ><TT
2862 CLASS="PARAMETER"
2863 ><I
2864 >username level</I
2865 ></TT
2866 ></A
2867 ></P
2868 ></LI
2869 ><LI
2870 ><P
2871 ><A
2872 HREF="#USERNAMEMAP"
2873 ><TT
2874 CLASS="PARAMETER"
2875 ><I
2876 >username map</I
2877 ></TT
2878 ></A
2879 ></P
2880 ></LI
2881 ><LI
2882 ><P
2883 ><A
2884 HREF="#UTMP"
2885 ><TT
2886 CLASS="PARAMETER"
2887 ><I
2888 >utmp</I
2889 ></TT
2890 ></A
2891 ></P
2892 ></LI
2893 ><LI
2894 ><P
2895 ><A
2896 HREF="#UTMPDIRECTORY"
2897 ><TT
2898 CLASS="PARAMETER"
2899 ><I
2900 >utmp directory</I
2901 ></TT
2902 ></A
2903 ></P
2904 ></LI
2905 ><LI
2906 ><P
2907 ><A
2908 HREF="#WINBINDCACHETIME"
2909 ><TT
2910 CLASS="PARAMETER"
2911 ><I
2912 >winbind cache time</I
2913 ></TT
2914 ></A
2915 ></P
2916 ></LI
2917 ><LI
2918 ><P
2919 ><A
2920 HREF="#WINBINDENUMUSERS"
2921 ><TT
2922 CLASS="PARAMETER"
2923 ><I
2924 >winbind enum users</I
2925 ></TT
2926 ></A
2927 ></P
2928 ></LI
2929 ><LI
2930 ><P
2931 ><A
2932 HREF="#WINBINDENUMGROUPS"
2933 ><TT
2934 CLASS="PARAMETER"
2935 ><I
2936 >winbind enum groups</I
2937 ></TT
2938 ></A
2939 ></P
2940 ></LI
2941 ><LI
2942 ><P
2943 ><A
2944 HREF="#WINBINDGID"
2945 ><TT
2946 CLASS="PARAMETER"
2947 ><I
2948 >winbind gid</I
2949 ></TT
2950 ></A
2951 ></P
2952 ></LI
2953 ><LI
2954 ><P
2955 ><A
2956 HREF="#WINBINDSEPARATOR"
2957 ><TT
2958 CLASS="PARAMETER"
2959 ><I
2960 >winbind separator</I
2961 ></TT
2962 ></A
2963 ></P
2964 ></LI
2965 ><LI
2966 ><P
2967 ><A
2968 HREF="#WINBINDUID"
2969 ><TT
2970 CLASS="PARAMETER"
2971 ><I
2972 >winbind uid</I
2973 ></TT
2974 ></A
2975 ></P
2976 ></LI
2977 ><LI
2978 ><P
2979 ><A
2980 HREF="#WINBINDUSEDEFAULTDOMAIN"
2981 ><TT
2982 CLASS="PARAMETER"
2983 ><I
2984 >winbind use default domain</I
2985 ></TT
2986 ></A
2987 ></P
2988 ></LI
2989 ><LI
2990 ><P
2991 ><A
2992 HREF="#WINSHOOK"
2993 ><TT
2994 CLASS="PARAMETER"
2995 ><I
2996 >wins hook</I
2997 ></TT
2998 ></A
2999 ></P
3000 ></LI
3001 ><LI
3002 ><P
3003 ><A
3004 HREF="#WINSPROXY"
3005 ><TT
3006 CLASS="PARAMETER"
3007 ><I
3008 >wins proxy</I
3009 ></TT
3010 ></A
3011 ></P
3012 ></LI
3013 ><LI
3014 ><P
3015 ><A
3016 HREF="#WINSSERVER"
3017 ><TT
3018 CLASS="PARAMETER"
3019 ><I
3020 >wins server</I
3021 ></TT
3022 ></A
3023 ></P
3024 ></LI
3025 ><LI
3026 ><P
3027 ><A
3028 HREF="#WINSSUPPORT"
3029 ><TT
3030 CLASS="PARAMETER"
3031 ><I
3032 >wins support</I
3033 ></TT
3034 ></A
3035 ></P
3036 ></LI
3037 ><LI
3038 ><P
3039 ><A
3040 HREF="#WORKGROUP"
3041 ><TT
3042 CLASS="PARAMETER"
3043 ><I
3044 >workgroup</I
3045 ></TT
3046 ></A
3047 ></P
3048 ></LI
3049 ><LI
3050 ><P
3051 ><A
3052 HREF="#WRITERAW"
3053 ><TT
3054 CLASS="PARAMETER"
3055 ><I
3056 >write raw</I
3057 ></TT
3058 ></A
3059 ></P
3060 ></LI
3061 ></UL
3062 ></DIV
3063 ><DIV
3064 CLASS="REFSECT1"
3065 ><A
3066 NAME="AEN991"
3067 ></A
3068 ><H2
3069 >COMPLETE LIST OF SERVICE PARAMETERS</H2
3070 ><P
3071 >Here is a list of all service parameters. See the section on 
3072         each parameter for details. Note that some are synonyms.</P
3073 ><P
3074 ></P
3075 ><UL
3076 ><LI
3077 ><P
3078 ><A
3079 HREF="#ADMINUSERS"
3080 ><TT
3081 CLASS="PARAMETER"
3082 ><I
3083 >admin users</I
3084 ></TT
3085 ></A
3086 ></P
3087 ></LI
3088 ><LI
3089 ><P
3090 ><A
3091 HREF="#ALLOWHOSTS"
3092 ><TT
3093 CLASS="PARAMETER"
3094 ><I
3095 >allow hosts</I
3096 ></TT
3097 ></A
3098 ></P
3099 ></LI
3100 ><LI
3101 ><P
3102 ><A
3103 HREF="#AVAILABLE"
3104 ><TT
3105 CLASS="PARAMETER"
3106 ><I
3107 >available</I
3108 ></TT
3109 ></A
3110 ></P
3111 ></LI
3112 ><LI
3113 ><P
3114 ><A
3115 HREF="#BLOCKINGLOCKS"
3116 ><TT
3117 CLASS="PARAMETER"
3118 ><I
3119 >blocking locks</I
3120 ></TT
3121 ></A
3122 ></P
3123 ></LI
3124 ><LI
3125 ><P
3126 ><A
3127 HREF="#BROWSABLE"
3128 ><TT
3129 CLASS="PARAMETER"
3130 ><I
3131 >browsable</I
3132 ></TT
3133 ></A
3134 ></P
3135 ></LI
3136 ><LI
3137 ><P
3138 ><A
3139 HREF="#BROWSEABLE"
3140 ><TT
3141 CLASS="PARAMETER"
3142 ><I
3143 >browseable</I
3144 ></TT
3145 ></A
3146 ></P
3147 ></LI
3148 ><LI
3149 ><P
3150 ><A
3151 HREF="#CASESENSITIVE"
3152 ><TT
3153 CLASS="PARAMETER"
3154 ><I
3155 >case sensitive</I
3156 ></TT
3157 ></A
3158 ></P
3159 ></LI
3160 ><LI
3161 ><P
3162 ><A
3163 HREF="#CASESIGNAMES"
3164 ><TT
3165 CLASS="PARAMETER"
3166 ><I
3167 >casesignames</I
3168 ></TT
3169 ></A
3170 ></P
3171 ></LI
3172 ><LI
3173 ><P
3174 ><A
3175 HREF="#COMMENT"
3176 ><TT
3177 CLASS="PARAMETER"
3178 ><I
3179 >comment</I
3180 ></TT
3181 ></A
3182 ></P
3183 ></LI
3184 ><LI
3185 ><P
3186 ><A
3187 HREF="#COPY"
3188 ><TT
3189 CLASS="PARAMETER"
3190 ><I
3191 >copy</I
3192 ></TT
3193 ></A
3194 ></P
3195 ></LI
3196 ><LI
3197 ><P
3198 ><A
3199 HREF="#CREATEMASK"
3200 ><TT
3201 CLASS="PARAMETER"
3202 ><I
3203 >create mask</I
3204 ></TT
3205 ></A
3206 ></P
3207 ></LI
3208 ><LI
3209 ><P
3210 ><A
3211 HREF="#CREATEMODE"
3212 ><TT
3213 CLASS="PARAMETER"
3214 ><I
3215 >create mode</I
3216 ></TT
3217 ></A
3218 ></P
3219 ></LI
3220 ><LI
3221 ><P
3222 ><A
3223 HREF="#CSCPOLICY"
3224 ><TT
3225 CLASS="PARAMETER"
3226 ><I
3227 >csc policy</I
3228 ></TT
3229 ></A
3230 ></P
3231 ></LI
3232 ><LI
3233 ><P
3234 ><A
3235 HREF="#DEFAULTCASE"
3236 ><TT
3237 CLASS="PARAMETER"
3238 ><I
3239 >default case</I
3240 ></TT
3241 ></A
3242 ></P
3243 ></LI
3244 ><LI
3245 ><P
3246 ><A
3247 HREF="#DEFAULTDEVMODE"
3248 ><TT
3249 CLASS="PARAMETER"
3250 ><I
3251 >default devmode</I
3252 ></TT
3253 ></A
3254 ></P
3255 ></LI
3256 ><LI
3257 ><P
3258 ><A
3259 HREF="#DELETEREADONLY"
3260 ><TT
3261 CLASS="PARAMETER"
3262 ><I
3263 >delete readonly</I
3264 ></TT
3265 ></A
3266 ></P
3267 ></LI
3268 ><LI
3269 ><P
3270 ><A
3271 HREF="#DELETEVETOFILES"
3272 ><TT
3273 CLASS="PARAMETER"
3274 ><I
3275 >delete veto files</I
3276 ></TT
3277 ></A
3278 ></P
3279 ></LI
3280 ><LI
3281 ><P
3282 ><A
3283 HREF="#DENYHOSTS"
3284 ><TT
3285 CLASS="PARAMETER"
3286 ><I
3287 >deny hosts</I
3288 ></TT
3289 ></A
3290 ></P
3291 ></LI
3292 ><LI
3293 ><P
3294 ><A
3295 HREF="#DIRECTORY"
3296 ><TT
3297 CLASS="PARAMETER"
3298 ><I
3299 >directory</I
3300 ></TT
3301 ></A
3302 ></P
3303 ></LI
3304 ><LI
3305 ><P
3306 ><A
3307 HREF="#DIRECTORYMASK"
3308 ><TT
3309 CLASS="PARAMETER"
3310 ><I
3311 >directory mask</I
3312 ></TT
3313 ></A
3314 ></P
3315 ></LI
3316 ><LI
3317 ><P
3318 ><A
3319 HREF="#DIRECTORYMODE"
3320 ><TT
3321 CLASS="PARAMETER"
3322 ><I
3323 >directory mode</I
3324 ></TT
3325 ></A
3326 ></P
3327 ></LI
3328 ><LI
3329 ><P
3330 ><A
3331 HREF="#DIRECTORYSECURITYMASK"
3332 ><TT
3333 CLASS="PARAMETER"
3334 ><I
3335 >directory security mask</I
3336 ></TT
3337 ></A
3338 ></P
3339 ></LI
3340 ><LI
3341 ><P
3342 ><A
3343 HREF="#DONTDESCEND"
3344 ><TT
3345 CLASS="PARAMETER"
3346 ><I
3347 >dont descend</I
3348 ></TT
3349 ></A
3350 ></P
3351 ></LI
3352 ><LI
3353 ><P
3354 ><A
3355 HREF="#DOSFILEMODE"
3356 ><TT
3357 CLASS="PARAMETER"
3358 ><I
3359 >dos filemode</I
3360 ></TT
3361 ></A
3362 ></P
3363 ></LI
3364 ><LI
3365 ><P
3366 ><A
3367 HREF="#DOSFILETIMERESOLUTION"
3368 ><TT
3369 CLASS="PARAMETER"
3370 ><I
3371 >dos filetime resolution</I
3372 ></TT
3373 ></A
3374 ></P
3375 ></LI
3376 ><LI
3377 ><P
3378 ><A
3379 HREF="#DOSFILETIMES"
3380 ><TT
3381 CLASS="PARAMETER"
3382 ><I
3383 >dos filetimes</I
3384 ></TT
3385 ></A
3386 ></P
3387 ></LI
3388 ><LI
3389 ><P
3390 ><A
3391 HREF="#EXEC"
3392 ><TT
3393 CLASS="PARAMETER"
3394 ><I
3395 >exec</I
3396 ></TT
3397 ></A
3398 ></P
3399 ></LI
3400 ><LI
3401 ><P
3402 ><A
3403 HREF="#FAKEDIRECTORYCREATETIMES"
3404 ><TT
3405 CLASS="PARAMETER"
3406 ><I
3407 >fake directory create times</I
3408 ></TT
3409 ></A
3410 ></P
3411 ></LI
3412 ><LI
3413 ><P
3414 ><A
3415 HREF="#FAKEOPLOCKS"
3416 ><TT
3417 CLASS="PARAMETER"
3418 ><I
3419 >fake oplocks</I
3420 ></TT
3421 ></A
3422 ></P
3423 ></LI
3424 ><LI
3425 ><P
3426 ><A
3427 HREF="#FOLLOWSYMLINKS"
3428 ><TT
3429 CLASS="PARAMETER"
3430 ><I
3431 >follow symlinks</I
3432 ></TT
3433 ></A
3434 ></P
3435 ></LI
3436 ><LI
3437 ><P
3438 ><A
3439 HREF="#FORCECREATEMODE"
3440 ><TT
3441 CLASS="PARAMETER"
3442 ><I
3443 >force create mode</I
3444 ></TT
3445 ></A
3446 ></P
3447 ></LI
3448 ><LI
3449 ><P
3450 ><A
3451 HREF="#FORCEDIRECTORYMODE"
3452 ><TT
3453 CLASS="PARAMETER"
3454 ><I
3455 >force directory mode</I
3456 ></TT
3457 ></A
3458 ></P
3459 ></LI
3460 ><LI
3461 ><P
3462 ><A
3463 HREF="#FORCEDIRECTORYSECURITYMODE"
3464 ><TT
3465 CLASS="PARAMETER"
3466 ><I
3467 >force directory security mode</I
3468 ></TT
3469 ></A
3470 ></P
3471 ></LI
3472 ><LI
3473 ><P
3474 ><A
3475 HREF="#FORCEGROUP"
3476 ><TT
3477 CLASS="PARAMETER"
3478 ><I
3479 >force group</I
3480 ></TT
3481 ></A
3482 ></P
3483 ></LI
3484 ><LI
3485 ><P
3486 ><A
3487 HREF="#FORCESECURITYMODE"
3488 ><TT
3489 CLASS="PARAMETER"
3490 ><I
3491 >force security mode</I
3492 ></TT
3493 ></A
3494 ></P
3495 ></LI
3496 ><LI
3497 ><P
3498 ><A
3499 HREF="#FORCEUSER"
3500 ><TT
3501 CLASS="PARAMETER"
3502 ><I
3503 >force user</I
3504 ></TT
3505 ></A
3506 ></P
3507 ></LI
3508 ><LI
3509 ><P
3510 ><A
3511 HREF="#FSTYPE"
3512 ><TT
3513 CLASS="PARAMETER"
3514 ><I
3515 >fstype</I
3516 ></TT
3517 ></A
3518 ></P
3519 ></LI
3520 ><LI
3521 ><P
3522 ><A
3523 HREF="#GROUP"
3524 ><TT
3525 CLASS="PARAMETER"
3526 ><I
3527 >group</I
3528 ></TT
3529 ></A
3530 ></P
3531 ></LI
3532 ><LI
3533 ><P
3534 ><A
3535 HREF="#GUESTACCOUNT"
3536 ><TT
3537 CLASS="PARAMETER"
3538 ><I
3539 >guest account</I
3540 ></TT
3541 ></A
3542 ></P
3543 ></LI
3544 ><LI
3545 ><P
3546 ><A
3547 HREF="#GUESTOK"
3548 ><TT
3549 CLASS="PARAMETER"
3550 ><I
3551 >guest ok</I
3552 ></TT
3553 ></A
3554 ></P
3555 ></LI
3556 ><LI
3557 ><P
3558 ><A
3559 HREF="#GUESTONLY"
3560 ><TT
3561 CLASS="PARAMETER"
3562 ><I
3563 >guest only</I
3564 ></TT
3565 ></A
3566 ></P
3567 ></LI
3568 ><LI
3569 ><P
3570 ><A
3571 HREF="#HIDEDOTFILES"
3572 ><TT
3573 CLASS="PARAMETER"
3574 ><I
3575 >hide dot files</I
3576 ></TT
3577 ></A
3578 ></P
3579 ></LI
3580 ><LI
3581 ><P
3582 ><A
3583 HREF="#HIDEFILES"
3584 ><TT
3585 CLASS="PARAMETER"
3586 ><I
3587 >hide files</I
3588 ></TT
3589 ></A
3590 ></P
3591 ></LI
3592 ><LI
3593 ><P
3594 ><A
3595 HREF="#HOSTSALLOW"
3596 ><TT
3597 CLASS="PARAMETER"
3598 ><I
3599 >hosts allow</I
3600 ></TT
3601 ></A
3602 ></P
3603 ></LI
3604 ><LI
3605 ><P
3606 ><A
3607 HREF="#HOSTSDENY"
3608 ><TT
3609 CLASS="PARAMETER"
3610 ><I
3611 >hosts deny</I
3612 ></TT
3613 ></A
3614 ></P
3615 ></LI
3616 ><LI
3617 ><P
3618 ><A
3619 HREF="#INCLUDE"
3620 ><TT
3621 CLASS="PARAMETER"
3622 ><I
3623 >include</I
3624 ></TT
3625 ></A
3626 ></P
3627 ></LI
3628 ><LI
3629 ><P
3630 ><A
3631 HREF="#INHERITACLS"
3632 ><TT
3633 CLASS="PARAMETER"
3634 ><I
3635 >inherit acls</I
3636 ></TT
3637 ></A
3638 ></P
3639 ></LI
3640 ><LI
3641 ><P
3642 ><A
3643 HREF="#INHERITPERMISSIONS"
3644 ><TT
3645 CLASS="PARAMETER"
3646 ><I
3647 >inherit permissions</I
3648 ></TT
3649 ></A
3650 ></P
3651 ></LI
3652 ><LI
3653 ><P
3654 ><A
3655 HREF="#INVALIDUSERS"
3656 ><TT
3657 CLASS="PARAMETER"
3658 ><I
3659 >invalid users</I
3660 ></TT
3661 ></A
3662 ></P
3663 ></LI
3664 ><LI
3665 ><P
3666 ><A
3667 HREF="#LEVEL2OPLOCKS"
3668 ><TT
3669 CLASS="PARAMETER"
3670 ><I
3671 >level2 oplocks</I
3672 ></TT
3673 ></A
3674 ></P
3675 ></LI
3676 ><LI
3677 ><P
3678 ><A
3679 HREF="#LOCKING"
3680 ><TT
3681 CLASS="PARAMETER"
3682 ><I
3683 >locking</I
3684 ></TT
3685 ></A
3686 ></P
3687 ></LI
3688 ><LI
3689 ><P
3690 ><A
3691 HREF="#LPPAUSECOMMAND"
3692 ><TT
3693 CLASS="PARAMETER"
3694 ><I
3695 >lppause command</I
3696 ></TT
3697 ></A
3698 ></P
3699 ></LI
3700 ><LI
3701 ><P
3702 ><A
3703 HREF="#LPQCOMMAND"
3704 ><TT
3705 CLASS="PARAMETER"
3706 ><I
3707 >lpq command</I
3708 ></TT
3709 ></A
3710 ></P
3711 ></LI
3712 ><LI
3713 ><P
3714 ><A
3715 HREF="#LPRESUMECOMMAND"
3716 ><TT
3717 CLASS="PARAMETER"
3718 ><I
3719 >lpresume command</I
3720 ></TT
3721 ></A
3722 ></P
3723 ></LI
3724 ><LI
3725 ><P
3726 ><A
3727 HREF="#LPRMCOMMAND"
3728 ><TT
3729 CLASS="PARAMETER"
3730 ><I
3731 >lprm command</I
3732 ></TT
3733 ></A
3734 ></P
3735 ></LI
3736 ><LI
3737 ><P
3738 ><A
3739 HREF="#MAGICOUTPUT"
3740 ><TT
3741 CLASS="PARAMETER"
3742 ><I
3743 >magic output</I
3744 ></TT
3745 ></A
3746 ></P
3747 ></LI
3748 ><LI
3749 ><P
3750 ><A
3751 HREF="#MAGICSCRIPT"
3752 ><TT
3753 CLASS="PARAMETER"
3754 ><I
3755 >magic script</I
3756 ></TT
3757 ></A
3758 ></P
3759 ></LI
3760 ><LI
3761 ><P
3762 ><A
3763 HREF="#MANGLECASE"
3764 ><TT
3765 CLASS="PARAMETER"
3766 ><I
3767 >mangle case</I
3768 ></TT
3769 ></A
3770 ></P
3771 ></LI
3772 ><LI
3773 ><P
3774 ><A
3775 HREF="#MANGLEDMAP"
3776 ><TT
3777 CLASS="PARAMETER"
3778 ><I
3779 >mangled map</I
3780 ></TT
3781 ></A
3782 ></P
3783 ></LI
3784 ><LI
3785 ><P
3786 ><A
3787 HREF="#MANGLEDNAMES"
3788 ><TT
3789 CLASS="PARAMETER"
3790 ><I
3791 >mangled names</I
3792 ></TT
3793 ></A
3794 ></P
3795 ></LI
3796 ><LI
3797 ><P
3798 ><A
3799 HREF="#MANGLINGCHAR"
3800 ><TT
3801 CLASS="PARAMETER"
3802 ><I
3803 >mangling char</I
3804 ></TT
3805 ></A
3806 ></P
3807 ></LI
3808 ><LI
3809 ><P
3810 ><A
3811 HREF="#MAPARCHIVE"
3812 ><TT
3813 CLASS="PARAMETER"
3814 ><I
3815 >map archive</I
3816 ></TT
3817 ></A
3818 ></P
3819 ></LI
3820 ><LI
3821 ><P
3822 ><A
3823 HREF="#MAPHIDDEN"
3824 ><TT
3825 CLASS="PARAMETER"
3826 ><I
3827 >map hidden</I
3828 ></TT
3829 ></A
3830 ></P
3831 ></LI
3832 ><LI
3833 ><P
3834 ><A
3835 HREF="#MAPSYSTEM"
3836 ><TT
3837 CLASS="PARAMETER"
3838 ><I
3839 >map system</I
3840 ></TT
3841 ></A
3842 ></P
3843 ></LI
3844 ><LI
3845 ><P
3846 ><A
3847 HREF="#MAXCONNECTIONS"
3848 ><TT
3849 CLASS="PARAMETER"
3850 ><I
3851 >max connections</I
3852 ></TT
3853 ></A
3854 ></P
3855 ></LI
3856 ><LI
3857 ><P
3858 ><A
3859 HREF="#MAXPRINTJOBS"
3860 ><TT
3861 CLASS="PARAMETER"
3862 ><I
3863 >max print jobs</I
3864 ></TT
3865 ></A
3866 ></P
3867 ></LI
3868 ><LI
3869 ><P
3870 ><A
3871 HREF="#MINPRINTSPACE"
3872 ><TT
3873 CLASS="PARAMETER"
3874 ><I
3875 >min print space</I
3876 ></TT
3877 ></A
3878 ></P
3879 ></LI
3880 ><LI
3881 ><P
3882 ><A
3883 HREF="#MSDFSROOT"
3884 ><TT
3885 CLASS="PARAMETER"
3886 ><I
3887 >msdfs root</I
3888 ></TT
3889 ></A
3890 ></P
3891 ></LI
3892 ><LI
3893 ><P
3894 ><A
3895 HREF="#NTACLSUPPORT"
3896 ><TT
3897 CLASS="PARAMETER"
3898 ><I
3899 >nt acl support</I
3900 ></TT
3901 ></A
3902 ></P
3903 ></LI
3904 ><LI
3905 ><P
3906 ><A
3907 HREF="#ONLYGUEST"
3908 ><TT
3909 CLASS="PARAMETER"
3910 ><I
3911 >only guest</I
3912 ></TT
3913 ></A
3914 ></P
3915 ></LI
3916 ><LI
3917 ><P
3918 ><A
3919 HREF="#ONLYUSER"
3920 ><TT
3921 CLASS="PARAMETER"
3922 ><I
3923 >only user</I
3924 ></TT
3925 ></A
3926 ></P
3927 ></LI
3928 ><LI
3929 ><P
3930 ><A
3931 HREF="#OPLOCKCONTENTIONLIMIT"
3932 ><TT
3933 CLASS="PARAMETER"
3934 ><I
3935 >oplock contention limit</I
3936 ></TT
3937 ></A
3938 ></P
3939 ></LI
3940 ><LI
3941 ><P
3942 ><A
3943 HREF="#OPLOCKS"
3944 ><TT
3945 CLASS="PARAMETER"
3946 ><I
3947 >oplocks</I
3948 ></TT
3949 ></A
3950 ></P
3951 ></LI
3952 ><LI
3953 ><P
3954 ><A
3955 HREF="#PATH"
3956 ><TT
3957 CLASS="PARAMETER"
3958 ><I
3959 >path</I
3960 ></TT
3961 ></A
3962 ></P
3963 ></LI
3964 ><LI
3965 ><P
3966 ><A
3967 HREF="#POSIXLOCKING"
3968 ><TT
3969 CLASS="PARAMETER"
3970 ><I
3971 >posix locking</I
3972 ></TT
3973 ></A
3974 ></P
3975 ></LI
3976 ><LI
3977 ><P
3978 ><A
3979 HREF="#POSTEXEC"
3980 ><TT
3981 CLASS="PARAMETER"
3982 ><I
3983 >postexec</I
3984 ></TT
3985 ></A
3986 ></P
3987 ></LI
3988 ><LI
3989 ><P
3990 ><A
3991 HREF="#POSTSCRIPT"
3992 ><TT
3993 CLASS="PARAMETER"
3994 ><I
3995 >postscript</I
3996 ></TT
3997 ></A
3998 ></P
3999 ></LI
4000 ><LI
4001 ><P
4002 ><A
4003 HREF="#PREEXEC"
4004 ><TT
4005 CLASS="PARAMETER"
4006 ><I
4007 >preexec</I
4008 ></TT
4009 ></A
4010 ></P
4011 ></LI
4012 ><LI
4013 ><P
4014 ><A
4015 HREF="#PREEXECCLOSE"
4016 ><TT
4017 CLASS="PARAMETER"
4018 ><I
4019 >preexec close</I
4020 ></TT
4021 ></A
4022 ></P
4023 ></LI
4024 ><LI
4025 ><P
4026 ><A
4027 HREF="#PRESERVECASE"
4028 ><TT
4029 CLASS="PARAMETER"
4030 ><I
4031 >preserve case</I
4032 ></TT
4033 ></A
4034 ></P
4035 ></LI
4036 ><LI
4037 ><P
4038 ><A
4039 HREF="#PRINTCOMMAND"
4040 ><TT
4041 CLASS="PARAMETER"
4042 ><I
4043 >print command</I
4044 ></TT
4045 ></A
4046 ></P
4047 ></LI
4048 ><LI
4049 ><P
4050 ><A
4051 HREF="#PRINTOK"
4052 ><TT
4053 CLASS="PARAMETER"
4054 ><I
4055 >print ok</I
4056 ></TT
4057 ></A
4058 ></P
4059 ></LI
4060 ><LI
4061 ><P
4062 ><A
4063 HREF="#PRINTABLE"
4064 ><TT
4065 CLASS="PARAMETER"
4066 ><I
4067 >printable</I
4068 ></TT
4069 ></A
4070 ></P
4071 ></LI
4072 ><LI
4073 ><P
4074 ><A
4075 HREF="#PRINTER"
4076 ><TT
4077 CLASS="PARAMETER"
4078 ><I
4079 >printer</I
4080 ></TT
4081 ></A
4082 ></P
4083 ></LI
4084 ><LI
4085 ><P
4086 ><A
4087 HREF="#PRINTERADMIN"
4088 ><TT
4089 CLASS="PARAMETER"
4090 ><I
4091 >printer admin</I
4092 ></TT
4093 ></A
4094 ></P
4095 ></LI
4096 ><LI
4097 ><P
4098 ><A
4099 HREF="#PRINTERDRIVER"
4100 ><TT
4101 CLASS="PARAMETER"
4102 ><I
4103 >printer driver</I
4104 ></TT
4105 ></A
4106 ></P
4107 ></LI
4108 ><LI
4109 ><P
4110 ><A
4111 HREF="#PRINTERDRIVERLOCATION"
4112 ><TT
4113 CLASS="PARAMETER"
4114 ><I
4115 >printer driver location</I
4116 ></TT
4117 ></A
4118 ></P
4119 ></LI
4120 ><LI
4121 ><P
4122 ><A
4123 HREF="#PRINTERNAME"
4124 ><TT
4125 CLASS="PARAMETER"
4126 ><I
4127 >printer name</I
4128 ></TT
4129 ></A
4130 ></P
4131 ></LI
4132 ><LI
4133 ><P
4134 ><A
4135 HREF="#PRINTING"
4136 ><TT
4137 CLASS="PARAMETER"
4138 ><I
4139 >printing</I
4140 ></TT
4141 ></A
4142 ></P
4143 ></LI
4144 ><LI
4145 ><P
4146 ><A
4147 HREF="#PUBLIC"
4148 ><TT
4149 CLASS="PARAMETER"
4150 ><I
4151 >public</I
4152 ></TT
4153 ></A
4154 ></P
4155 ></LI
4156 ><LI
4157 ><P
4158 ><A
4159 HREF="#QUEUEPAUSECOMMAND"
4160 ><TT
4161 CLASS="PARAMETER"
4162 ><I
4163 >queuepause command</I
4164 ></TT
4165 ></A
4166 ></P
4167 ></LI
4168 ><LI
4169 ><P
4170 ><A
4171 HREF="#QUEUERESUMECOMMAND"
4172 ><TT
4173 CLASS="PARAMETER"
4174 ><I
4175 >queueresume command</I
4176 ></TT
4177 ></A
4178 ></P
4179 ></LI
4180 ><LI
4181 ><P
4182 ><A
4183 HREF="#READLIST"
4184 ><TT
4185 CLASS="PARAMETER"
4186 ><I
4187 >read list</I
4188 ></TT
4189 ></A
4190 ></P
4191 ></LI
4192 ><LI
4193 ><P
4194 ><A
4195 HREF="#READONLY"
4196 ><TT
4197 CLASS="PARAMETER"
4198 ><I
4199 >read only</I
4200 ></TT
4201 ></A
4202 ></P
4203 ></LI
4204 ><LI
4205 ><P
4206 ><A
4207 HREF="#ROOTPOSTEXEC"
4208 ><TT
4209 CLASS="PARAMETER"
4210 ><I
4211 >root postexec</I
4212 ></TT
4213 ></A
4214 ></P
4215 ></LI
4216 ><LI
4217 ><P
4218 ><A
4219 HREF="#ROOTPREEXEC"
4220 ><TT
4221 CLASS="PARAMETER"
4222 ><I
4223 >root preexec</I
4224 ></TT
4225 ></A
4226 ></P
4227 ></LI
4228 ><LI
4229 ><P
4230 ><A
4231 HREF="#ROOTPREEXECCLOSE"
4232 ><TT
4233 CLASS="PARAMETER"
4234 ><I
4235 >root preexec close</I
4236 ></TT
4237 ></A
4238 ></P
4239 ></LI
4240 ><LI
4241 ><P
4242 ><A
4243 HREF="#SECURITYMASK"
4244 ><TT
4245 CLASS="PARAMETER"
4246 ><I
4247 >security mask</I
4248 ></TT
4249 ></A
4250 ></P
4251 ></LI
4252 ><LI
4253 ><P
4254 ><A
4255 HREF="#SETDIRECTORY"
4256 ><TT
4257 CLASS="PARAMETER"
4258 ><I
4259 >set directory</I
4260 ></TT
4261 ></A
4262 ></P
4263 ></LI
4264 ><LI
4265 ><P
4266 ><A
4267 HREF="#SHAREMODES"
4268 ><TT
4269 CLASS="PARAMETER"
4270 ><I
4271 >share modes</I
4272 ></TT
4273 ></A
4274 ></P
4275 ></LI
4276 ><LI
4277 ><P
4278 ><A
4279 HREF="#SHORTPRESERVECASE"
4280 ><TT
4281 CLASS="PARAMETER"
4282 ><I
4283 >short preserve case</I
4284 ></TT
4285 ></A
4286 ></P
4287 ></LI
4288 ><LI
4289 ><P
4290 ><A
4291 HREF="#STATUS"
4292 ><TT
4293 CLASS="PARAMETER"
4294 ><I
4295 >status</I
4296 ></TT
4297 ></A
4298 ></P
4299 ></LI
4300 ><LI
4301 ><P
4302 ><A
4303 HREF="#STRICTALLOCATE"
4304 ><TT
4305 CLASS="PARAMETER"
4306 ><I
4307 >strict allocate</I
4308 ></TT
4309 ></A
4310 ></P
4311 ></LI
4312 ><LI
4313 ><P
4314 ><A
4315 HREF="#STRICTLOCKING"
4316 ><TT
4317 CLASS="PARAMETER"
4318 ><I
4319 >strict locking</I
4320 ></TT
4321 ></A
4322 ></P
4323 ></LI
4324 ><LI
4325 ><P
4326 ><A
4327 HREF="#STRICTSYNC"
4328 ><TT
4329 CLASS="PARAMETER"
4330 ><I
4331 >strict sync</I
4332 ></TT
4333 ></A
4334 ></P
4335 ></LI
4336 ><LI
4337 ><P
4338 ><A
4339 HREF="#SYNCALWAYS"
4340 ><TT
4341 CLASS="PARAMETER"
4342 ><I
4343 >sync always</I
4344 ></TT
4345 ></A
4346 ></P
4347 ></LI
4348 ><LI
4349 ><P
4350 ><A
4351 HREF="#USECLIENTDRIVER"
4352 ><TT
4353 CLASS="PARAMETER"
4354 ><I
4355 >use client driver</I
4356 ></TT
4357 ></A
4358 ></P
4359 ></LI
4360 ><LI
4361 ><P
4362 ><A
4363 HREF="#USER"
4364 ><TT
4365 CLASS="PARAMETER"
4366 ><I
4367 >user</I
4368 ></TT
4369 ></A
4370 ></P
4371 ></LI
4372 ><LI
4373 ><P
4374 ><A
4375 HREF="#USERNAME"
4376 ><TT
4377 CLASS="PARAMETER"
4378 ><I
4379 >username</I
4380 ></TT
4381 ></A
4382 ></P
4383 ></LI
4384 ><LI
4385 ><P
4386 ><A
4387 HREF="#USERS"
4388 ><TT
4389 CLASS="PARAMETER"
4390 ><I
4391 >users</I
4392 ></TT
4393 ></A
4394 ></P
4395 ></LI
4396 ><LI
4397 ><P
4398 ><A
4399 HREF="#VALIDUSERS"
4400 ><TT
4401 CLASS="PARAMETER"
4402 ><I
4403 >valid users</I
4404 ></TT
4405 ></A
4406 ></P
4407 ></LI
4408 ><LI
4409 ><P
4410 ><A
4411 HREF="#VETOFILES"
4412 ><TT
4413 CLASS="PARAMETER"
4414 ><I
4415 >veto files</I
4416 ></TT
4417 ></A
4418 ></P
4419 ></LI
4420 ><LI
4421 ><P
4422 ><A
4423 HREF="#VETOOPLOCKFILES"
4424 ><TT
4425 CLASS="PARAMETER"
4426 ><I
4427 >veto oplock files</I
4428 ></TT
4429 ></A
4430 ></P
4431 ></LI
4432 ><LI
4433 ><P
4434 ><A
4435 HREF="#VFSOBJECT"
4436 ><TT
4437 CLASS="PARAMETER"
4438 ><I
4439 >vfs object</I
4440 ></TT
4441 ></A
4442 ></P
4443 ></LI
4444 ><LI
4445 ><P
4446 ><A
4447 HREF="#VFSOPTIONS"
4448 ><TT
4449 CLASS="PARAMETER"
4450 ><I
4451 >vfs options</I
4452 ></TT
4453 ></A
4454 ></P
4455 ></LI
4456 ><LI
4457 ><P
4458 ><A
4459 HREF="#VOLUME"
4460 ><TT
4461 CLASS="PARAMETER"
4462 ><I
4463 >volume</I
4464 ></TT
4465 ></A
4466 ></P
4467 ></LI
4468 ><LI
4469 ><P
4470 ><A
4471 HREF="#WIDELINKS"
4472 ><TT
4473 CLASS="PARAMETER"
4474 ><I
4475 >wide links</I
4476 ></TT
4477 ></A
4478 ></P
4479 ></LI
4480 ><LI
4481 ><P
4482 ><A
4483 HREF="#WRITABLE"
4484 ><TT
4485 CLASS="PARAMETER"
4486 ><I
4487 >writable</I
4488 ></TT
4489 ></A
4490 ></P
4491 ></LI
4492 ><LI
4493 ><P
4494 ><A
4495 HREF="#WRITECACHESIZE"
4496 ><TT
4497 CLASS="PARAMETER"
4498 ><I
4499 >write cache size</I
4500 ></TT
4501 ></A
4502 ></P
4503 ></LI
4504 ><LI
4505 ><P
4506 ><A
4507 HREF="#WRITELIST"
4508 ><TT
4509 CLASS="PARAMETER"
4510 ><I
4511 >write list</I
4512 ></TT
4513 ></A
4514 ></P
4515 ></LI
4516 ><LI
4517 ><P
4518 ><A
4519 HREF="#WRITEOK"
4520 ><TT
4521 CLASS="PARAMETER"
4522 ><I
4523 >write ok</I
4524 ></TT
4525 ></A
4526 ></P
4527 ></LI
4528 ><LI
4529 ><P
4530 ><A
4531 HREF="#WRITEABLE"
4532 ><TT
4533 CLASS="PARAMETER"
4534 ><I
4535 >writeable</I
4536 ></TT
4537 ></A
4538 ></P
4539 ></LI
4540 ></UL
4541 ></DIV
4542 ><DIV
4543 CLASS="REFSECT1"
4544 ><A
4545 NAME="AEN1483"
4546 ></A
4547 ><H2
4548 >EXPLANATION OF EACH PARAMETER</H2
4549 ><P
4550 ></P
4551 ><DIV
4552 CLASS="VARIABLELIST"
4553 ><DL
4554 ><DT
4555 ><A
4556 NAME="ABORTSHUTDOWNSCRIPT"
4557 ></A
4558 >abort shutdown script (G)</DT
4559 ><DD
4560 ><P
4561 ><EM
4562 >This parameter only exists in the HEAD cvs branch</EM
4563 >
4564                 This a full path name to a script called by
4565                 <A
4566 HREF="smbd.8.html"
4567 TARGET="_top"
4568 ><B
4569 CLASS="COMMAND"
4570 >smbd(8)</B
4571 ></A
4572 >  that
4573                 should stop a shutdown procedure issued by the <A
4574 HREF="#SHUTDOWNSCRIPT"
4575 ><TT
4576 CLASS="PARAMETER"
4577 ><I
4578 >shutdown script</I
4579 ></TT
4580 ></A
4581 >.</P
4582 ><P
4583 >This command will be run as user.</P
4584 ><P
4585 >Default: <EM
4586 >None</EM
4587 >.</P
4588 ><P
4589 >Example: <B
4590 CLASS="COMMAND"
4591 >abort shutdown script = /sbin/shutdown -c</B
4592 ></P
4593 ></DD
4594 ><DT
4595 ><A
4596 NAME="ADDPRINTERCOMMAND"
4597 ></A
4598 >add printer command (G)</DT
4599 ><DD
4600 ><P
4601 >With the introduction of MS-RPC based printing
4602                 support for Windows NT/2000 clients in Samba 2.2, The MS Add
4603                 Printer Wizard (APW) icon is now also available in the 
4604                 "Printers..." folder displayed a share listing.  The APW
4605                 allows for printers to be add remotely to a Samba or Windows 
4606                 NT/2000 print server.</P
4607 ><P
4608 >For a Samba host this means that the printer must be 
4609                 physically added to the underlying printing system.  The <TT
4610 CLASS="PARAMETER"
4611 ><I
4612 >add 
4613                 printer command</I
4614 ></TT
4615 > defines a script to be run which 
4616                 will perform the necessary operations for adding the printer
4617                 to the print system and to add the appropriate service definition 
4618                 to the  <TT
4619 CLASS="FILENAME"
4620 >smb.conf</TT
4621 > file in order that it can be 
4622                 shared by <A
4623 HREF="smbd.8.html"
4624 TARGET="_top"
4625 ><B
4626 CLASS="COMMAND"
4627 >smbd(8)</B
4628 >
4629                 </A
4630 >.</P
4631 ><P
4632 >The <TT
4633 CLASS="PARAMETER"
4634 ><I
4635 >add printer command</I
4636 ></TT
4637 > is
4638                 automatically invoked with the following parameter (in 
4639                 order:</P
4640 ><P
4641 ></P
4642 ><UL
4643 ><LI
4644 ><P
4645 ><TT
4646 CLASS="PARAMETER"
4647 ><I
4648 >printer name</I
4649 ></TT
4650 ></P
4651 ></LI
4652 ><LI
4653 ><P
4654 ><TT
4655 CLASS="PARAMETER"
4656 ><I
4657 >share name</I
4658 ></TT
4659 ></P
4660 ></LI
4661 ><LI
4662 ><P
4663 ><TT
4664 CLASS="PARAMETER"
4665 ><I
4666 >port name</I
4667 ></TT
4668 ></P
4669 ></LI
4670 ><LI
4671 ><P
4672 ><TT
4673 CLASS="PARAMETER"
4674 ><I
4675 >driver name</I
4676 ></TT
4677 ></P
4678 ></LI
4679 ><LI
4680 ><P
4681 ><TT
4682 CLASS="PARAMETER"
4683 ><I
4684 >location</I
4685 ></TT
4686 ></P
4687 ></LI
4688 ><LI
4689 ><P
4690 ><TT
4691 CLASS="PARAMETER"
4692 ><I
4693 >Windows 9x driver location</I
4694 ></TT
4695 >
4696                         </P
4697 ></LI
4698 ></UL
4699 ><P
4700 >All parameters are filled in from the PRINTER_INFO_2 structure sent 
4701                 by the Windows NT/2000 client with one exception.  The "Windows 9x
4702                 driver location" parameter is included for backwards compatibility
4703                 only.  The remaining fields in the structure are generated from answers
4704                 to the APW questions.</P
4705 ><P
4706 >Once the <TT
4707 CLASS="PARAMETER"
4708 ><I
4709 >add printer command</I
4710 ></TT
4711 > has 
4712                 been executed, <B
4713 CLASS="COMMAND"
4714 >smbd</B
4715 > will reparse the <TT
4716 CLASS="FILENAME"
4717 >               smb.conf</TT
4718 > to determine if the share defined by the APW
4719                 exists.  If the sharename is still invalid, then <B
4720 CLASS="COMMAND"
4721 >smbd
4722                 </B
4723 > will return an ACCESS_DENIED error to the client.</P
4724 ><P
4725 >See also <A
4726 HREF="#DELETEPRINTERCOMMAND"
4727 ><TT
4728 CLASS="PARAMETER"
4729 ><I
4730 >               delete printer command</I
4731 ></TT
4732 ></A
4733 >, <A
4734 HREF="#PRINTING"
4735 ><TT
4736 CLASS="PARAMETER"
4737 ><I
4738 >printing</I
4739 ></TT
4740 ></A
4741 >,
4742                 <A
4743 HREF="#SHOWADDPRINTERWIZARD"
4744 ><TT
4745 CLASS="PARAMETER"
4746 ><I
4747 >show add
4748                 printer wizard</I
4749 ></TT
4750 ></A
4751 ></P
4752 ><P
4753 >Default: <EM
4754 >none</EM
4755 ></P
4756 ><P
4757 >Example: <B
4758 CLASS="COMMAND"
4759 >addprinter command = /usr/bin/addprinter
4760                 </B
4761 ></P
4762 ></DD
4763 ><DT
4764 ><A
4765 NAME="ADDSHARECOMMAND"
4766 ></A
4767 >add share command (G)</DT
4768 ><DD
4769 ><P
4770 >Samba 2.2.0 introduced the ability to dynamically 
4771                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
4772                 <TT
4773 CLASS="PARAMETER"
4774 ><I
4775 >add share command</I
4776 ></TT
4777 > is used to define an 
4778                 external program or script which will add a new service definition 
4779                 to <TT
4780 CLASS="FILENAME"
4781 >smb.conf</TT
4782 >.  In order to successfully 
4783                 execute the <TT
4784 CLASS="PARAMETER"
4785 ><I
4786 >add share command</I
4787 ></TT
4788 >, <B
4789 CLASS="COMMAND"
4790 >smbd</B
4791 >
4792                 requires that the administrator be connected using a root account (i.e. 
4793                 uid == 0).
4794                 </P
4795 ><P
4796 >               When executed, <B
4797 CLASS="COMMAND"
4798 >smbd</B
4799 > will automatically invoke the 
4800                 <TT
4801 CLASS="PARAMETER"
4802 ><I
4803 >add share command</I
4804 ></TT
4805 > with four parameters.
4806                 </P
4807 ><P
4808 ></P
4809 ><UL
4810 ><LI
4811 ><P
4812 ><TT
4813 CLASS="PARAMETER"
4814 ><I
4815 >configFile</I
4816 ></TT
4817 > - the location 
4818                         of the global <TT
4819 CLASS="FILENAME"
4820 >smb.conf</TT
4821 > file. 
4822                         </P
4823 ></LI
4824 ><LI
4825 ><P
4826 ><TT
4827 CLASS="PARAMETER"
4828 ><I
4829 >shareName</I
4830 ></TT
4831 > - the name of the new 
4832                         share.
4833                         </P
4834 ></LI
4835 ><LI
4836 ><P
4837 ><TT
4838 CLASS="PARAMETER"
4839 ><I
4840 >pathName</I
4841 ></TT
4842 > - path to an **existing**
4843                         directory on disk.
4844                         </P
4845 ></LI
4846 ><LI
4847 ><P
4848 ><TT
4849 CLASS="PARAMETER"
4850 ><I
4851 >comment</I
4852 ></TT
4853 > - comment string to associate 
4854                         with the new share.
4855                         </P
4856 ></LI
4857 ></UL
4858 ><P
4859 >               This parameter is only used for add file shares.  To add printer shares, 
4860                 see the <A
4861 HREF="#ADDPRINTERCOMMAND"
4862 ><TT
4863 CLASS="PARAMETER"
4864 ><I
4865 >add printer 
4866                 command</I
4867 ></TT
4868 ></A
4869 >.
4870                 </P
4871 ><P
4872 >               See also <A
4873 HREF="#CHANGESHARECOMMAND"
4874 ><TT
4875 CLASS="PARAMETER"
4876 ><I
4877 >change share 
4878                 command</I
4879 ></TT
4880 ></A
4881 >, <A
4882 HREF="#DELETESHARECOMMAND"
4883 ><TT
4884 CLASS="PARAMETER"
4885 ><I
4886 >delete share
4887                 command</I
4888 ></TT
4889 ></A
4890 >.
4891                 </P
4892 ><P
4893 >Default: <EM
4894 >none</EM
4895 ></P
4896 ><P
4897 >Example: <B
4898 CLASS="COMMAND"
4899 >add share command = /usr/local/bin/addshare</B
4900 ></P
4901 ></DD
4902 ><DT
4903 ><A
4904 NAME="ADDMACHINESCRIPT"
4905 ></A
4906 >add machine script (G)</DT
4907 ><DD
4908 ><P
4909 >This is the full pathname to a script that will 
4910                 be run by <A
4911 HREF="smbd.8.html"
4912 TARGET="_top"
4913 >smbd(8)</A
4914 >  when a machine is added
4915                 to it's domain using the administrator username and password method. </P
4916 ><P
4917 >This option is only required when using sam back-ends tied to the
4918                 Unix uid method of RID calculation such as smbpasswd.  This option is only
4919                 available in Samba 3.0.</P
4920 ><P
4921 >Default: <B
4922 CLASS="COMMAND"
4923 >add machine script = &#60;empty string&#62;
4924                 </B
4925 ></P
4926 ><P
4927 >Example: <B
4928 CLASS="COMMAND"
4929 >add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
4930                 </B
4931 ></P
4932 ></DD
4933 ><DT
4934 ><A
4935 NAME="ADDUSERSCRIPT"
4936 ></A
4937 >add user script (G)</DT
4938 ><DD
4939 ><P
4940 >This is the full pathname to a script that will 
4941                 be run <EM
4942 >AS ROOT</EM
4943 > by <A
4944 HREF="smbd.8.html"
4945 TARGET="_top"
4946 >smbd(8)
4947                 </A
4948 > under special circumstances described below.</P
4949 ><P
4950 >Normally, a Samba server requires that UNIX users are 
4951                 created for all users accessing files on this server. For sites 
4952                 that use Windows NT account databases as their primary user database 
4953                 creating these users and keeping the user list in sync with the 
4954                 Windows NT PDC is an onerous task. This option allows <A
4955 HREF="smbd.8.html"
4956 TARGET="_top"
4957 >smbd</A
4958 > to create the required UNIX users 
4959                 <EM
4960 >ON DEMAND</EM
4961 > when a user accesses the Samba server.</P
4962 ><P
4963 >In order to use this option, <A
4964 HREF="smbd.8.html"
4965 TARGET="_top"
4966 >smbd</A
4967
4968                 must <EM
4969 >NOT</EM
4970 > be set to <TT
4971 CLASS="PARAMETER"
4972 ><I
4973 >security = share</I
4974 ></TT
4975 >
4976                 and <TT
4977 CLASS="PARAMETER"
4978 ><I
4979 >add user script</I
4980 ></TT
4981 >
4982                 must be set to a full pathname for a script that will create a UNIX 
4983                 user given one argument of <TT
4984 CLASS="PARAMETER"
4985 ><I
4986 >%u</I
4987 ></TT
4988 >, which expands into 
4989                 the UNIX user name to create.</P
4990 ><P
4991 >When the Windows user attempts to access the Samba server, 
4992                 at login (session setup in the SMB protocol) time, <A
4993 HREF="smbd.8.html"
4994 TARGET="_top"
4995 >               smbd</A
4996 > contacts the <TT
4997 CLASS="PARAMETER"
4998 ><I
4999 >password server</I
5000 ></TT
5001 > and 
5002                 attempts to authenticate the given user with the given password. If the 
5003                 authentication succeeds then <B
5004 CLASS="COMMAND"
5005 >smbd</B
5006
5007                 attempts to find a UNIX user in the UNIX password database to map the 
5008                 Windows user into. If this lookup fails, and <TT
5009 CLASS="PARAMETER"
5010 ><I
5011 >add user script
5012                 </I
5013 ></TT
5014 > is set then <B
5015 CLASS="COMMAND"
5016 >smbd</B
5017 > will
5018                 call the specified script <EM
5019 >AS ROOT</EM
5020 >, expanding 
5021                 any <TT
5022 CLASS="PARAMETER"
5023 ><I
5024 >%u</I
5025 ></TT
5026 > argument to be the user name to create.</P
5027 ><P
5028 >If this script successfully creates the user then <B
5029 CLASS="COMMAND"
5030 >smbd
5031                 </B
5032 > will continue on as though the UNIX user
5033                 already existed. In this way, UNIX users are dynamically created to
5034                 match existing Windows NT accounts.</P
5035 ><P
5036 >See also <A
5037 HREF="#SECURITY"
5038 ><TT
5039 CLASS="PARAMETER"
5040 ><I
5041 >               security</I
5042 ></TT
5043 ></A
5044 >, <A
5045 HREF="#PASSWORDSERVER"
5046 >               <TT
5047 CLASS="PARAMETER"
5048 ><I
5049 >password server</I
5050 ></TT
5051 ></A
5052 >, 
5053                 <A
5054 HREF="#DELETEUSERSCRIPT"
5055 ><TT
5056 CLASS="PARAMETER"
5057 ><I
5058 >delete user 
5059                 script</I
5060 ></TT
5061 ></A
5062 >.</P
5063 ><P
5064 >Default: <B
5065 CLASS="COMMAND"
5066 >add user script = &#60;empty string&#62;
5067                 </B
5068 ></P
5069 ><P
5070 >Example: <B
5071 CLASS="COMMAND"
5072 >add user script = /usr/local/samba/bin/add_user 
5073                 %u</B
5074 ></P
5075 ></DD
5076 ><DT
5077 ><A
5078 NAME="ADMINUSERS"
5079 ></A
5080 >admin users (S)</DT
5081 ><DD
5082 ><P
5083 >This is a list of users who will be granted 
5084                 administrative privileges on the share. This means that they 
5085                 will do all file operations as the super-user (root).</P
5086 ><P
5087 >You should use this option very carefully, as any user in 
5088                 this list will be able to do anything they like on the share, 
5089                 irrespective of file permissions.</P
5090 ><P
5091 >Default: <EM
5092 >no admin users</EM
5093 ></P
5094 ><P
5095 >Example: <B
5096 CLASS="COMMAND"
5097 >admin users = jason</B
5098 ></P
5099 ></DD
5100 ><DT
5101 ><A
5102 NAME="ALLOWHOSTS"
5103 ></A
5104 >allow hosts (S)</DT
5105 ><DD
5106 ><P
5107 >Synonym for <A
5108 HREF="#HOSTSALLOW"
5109 >               <TT
5110 CLASS="PARAMETER"
5111 ><I
5112 >hosts allow</I
5113 ></TT
5114 ></A
5115 >.</P
5116 ></DD
5117 ><DT
5118 ><A
5119 NAME="ALGORITHMICRIDBASE"
5120 ></A
5121 >algorithmic rid base (G)</DT
5122 ><DD
5123 ><P
5124 >This determines how Samba will use its
5125                 algorithmic mapping from uids/gid to the RIDs needed to construct
5126                 NT Security Identifiers.</P
5127 ><P
5128 >Setting this option to a larger value could be useful to sites
5129                 transitioning from WinNT and Win2k, as existing user and 
5130                 group rids would otherwise clash with sytem users etc. 
5131                 </P
5132 ><P
5133 >All UIDs and GIDs must be able to be resolved into SIDs for  
5134                 the correct operation of ACLs on the server.  As such the algorithmic
5135                 mapping can't be 'turned off', but pushing it 'out of the way' should
5136                 resolve the issues.  Users and groups can then be assigned 'low' RIDs
5137                 in arbitary-rid supporting backends. </P
5138 ><P
5139 >Default: <B
5140 CLASS="COMMAND"
5141 >algorithmic rid base = 1000</B
5142 ></P
5143 ><P
5144 >Example: <B
5145 CLASS="COMMAND"
5146 >algorithmic rid base = 100000</B
5147 ></P
5148 ></DD
5149 ><DT
5150 ><A
5151 NAME="ALLOWTRUSTEDDOMAINS"
5152 ></A
5153 >allow trusted domains (G)</DT
5154 ><DD
5155 ><P
5156 >This option only takes effect when the <A
5157 HREF="#SECURITY"
5158 ><TT
5159 CLASS="PARAMETER"
5160 ><I
5161 >security</I
5162 ></TT
5163 ></A
5164 > option is set to 
5165                 <TT
5166 CLASS="CONSTANT"
5167 >server</TT
5168 > or <TT
5169 CLASS="CONSTANT"
5170 >domain</TT
5171 >.  
5172                 If it is set to no, then attempts to connect to a resource from 
5173                 a domain or workgroup other than the one which <A
5174 HREF="smbd.8.html"
5175 TARGET="_top"
5176 >smbd</A
5177 > is running 
5178                 in will fail, even if that domain is trusted by the remote server 
5179                 doing the authentication.</P
5180 ><P
5181 >This is useful if you only want your Samba server to 
5182                 serve resources to users in the domain it is a member of. As 
5183                 an example, suppose that there are two domains DOMA and DOMB.  DOMB 
5184                 is trusted by DOMA, which contains the Samba server.  Under normal 
5185                 circumstances, a user with an account in DOMB can then access the 
5186                 resources of a UNIX account with the same account name on the 
5187                 Samba server even if they do not have an account in DOMA.  This 
5188                 can make implementing a security boundary difficult.</P
5189 ><P
5190 >Default: <B
5191 CLASS="COMMAND"
5192 >allow trusted domains = yes</B
5193 ></P
5194 ></DD
5195 ><DT
5196 ><A
5197 NAME="ANNOUNCEAS"
5198 ></A
5199 >announce as (G)</DT
5200 ><DD
5201 ><P
5202 >This specifies what type of server 
5203                 <A
5204 HREF="nmbd.8.html"
5205 TARGET="_top"
5206 ><B
5207 CLASS="COMMAND"
5208 >nmbd</B
5209 ></A
5210
5211                 will announce itself as, to a network neighborhood browse 
5212                 list. By default this is set to Windows NT. The valid options 
5213                 are : "NT Server" (which can also be written as "NT"), 
5214                 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, 
5215                 Windows NT Workstation, Windows 95 and Windows for Workgroups 
5216                 respectively. Do not change this parameter unless you have a 
5217                 specific need to stop Samba appearing as an NT server as this 
5218                 may prevent Samba servers from participating as browser servers 
5219                 correctly.</P
5220 ><P
5221 >Default: <B
5222 CLASS="COMMAND"
5223 >announce as = NT Server</B
5224 ></P
5225 ><P
5226 >Example: <B
5227 CLASS="COMMAND"
5228 >announce as = Win95</B
5229 ></P
5230 ></DD
5231 ><DT
5232 ><A
5233 NAME="ANNOUNCEVERSION"
5234 ></A
5235 >announce version (G)</DT
5236 ><DD
5237 ><P
5238 >This specifies the major and minor version numbers 
5239                 that nmbd will use when announcing itself as a server. The default 
5240                 is 4.2.  Do not change this parameter unless you have a specific 
5241                 need to set a Samba server to be a downlevel server.</P
5242 ><P
5243 >Default: <B
5244 CLASS="COMMAND"
5245 >announce version = 4.5</B
5246 ></P
5247 ><P
5248 >Example: <B
5249 CLASS="COMMAND"
5250 >announce version = 2.0</B
5251 ></P
5252 ></DD
5253 ><DT
5254 ><A
5255 NAME="AUTOSERVICES"
5256 ></A
5257 >auto services (G)</DT
5258 ><DD
5259 ><P
5260 >This is a synonym for the <A
5261 HREF="#PRELOAD"
5262 >               <TT
5263 CLASS="PARAMETER"
5264 ><I
5265 >preload</I
5266 ></TT
5267 ></A
5268 >.</P
5269 ></DD
5270 ><DT
5271 ><A
5272 NAME="AUTHMETHODS"
5273 ></A
5274 >auth methods (G)</DT
5275 ><DD
5276 ><P
5277 >This option allows the administrator to chose what
5278                 authentication methods <B
5279 CLASS="COMMAND"
5280 >smbd</B
5281 > will use when authenticating
5282                 a user.  This option defaults to sensible values based on <A
5283 HREF="#SECURITY"
5284 ><TT
5285 CLASS="PARAMETER"
5286 ><I
5287 >               security</I
5288 ></TT
5289 ></A
5290 >.
5291
5292                 Each entry in the list attempts to authenticate the user in turn, until
5293                 the user authenticates.  In practice only one method will ever actually 
5294                 be able to complete the authentication.
5295                 </P
5296 ><P
5297 >Default: <B
5298 CLASS="COMMAND"
5299 >auth methods = &#60;empty string&#62;</B
5300 ></P
5301 ><P
5302 >Example: <B
5303 CLASS="COMMAND"
5304 >auth methods = guest sam ntdomain</B
5305 ></P
5306 ></DD
5307 ><DT
5308 ><A
5309 NAME="AVAILABLE"
5310 ></A
5311 >available (S)</DT
5312 ><DD
5313 ><P
5314 >This parameter lets you "turn off" a service. If 
5315                 <TT
5316 CLASS="PARAMETER"
5317 ><I
5318 >available = no</I
5319 ></TT
5320 >, then <EM
5321 >ALL</EM
5322
5323                 attempts to connect to the service will fail. Such failures are 
5324                 logged.</P
5325 ><P
5326 >Default: <B
5327 CLASS="COMMAND"
5328 >available = yes</B
5329 ></P
5330 ></DD
5331 ><DT
5332 ><A
5333 NAME="BINDINTERFACESONLY"
5334 ></A
5335 >bind interfaces only (G)</DT
5336 ><DD
5337 ><P
5338 >This global parameter allows the Samba admin 
5339                 to limit what interfaces on a machine will serve SMB requests. If 
5340                 affects file service <A
5341 HREF="smbd.8.html"
5342 TARGET="_top"
5343 >smbd(8)</A
5344 > and 
5345                 name service <A
5346 HREF="nmbd.8.html"
5347 TARGET="_top"
5348 >nmbd(8)</A
5349 > in slightly 
5350                 different ways.</P
5351 ><P
5352 >For name service it causes <B
5353 CLASS="COMMAND"
5354 >nmbd</B
5355 > to bind 
5356                 to ports 137 and 138 on the interfaces listed in the <A
5357 HREF="#INTERFACES"
5358 >interfaces</A
5359 > parameter. <B
5360 CLASS="COMMAND"
5361 >nmbd
5362                 </B
5363 > also binds to the "all addresses" interface (0.0.0.0) 
5364                 on ports 137 and 138 for the purposes of reading broadcast messages. 
5365                 If this option is not set then <B
5366 CLASS="COMMAND"
5367 >nmbd</B
5368 > will service 
5369                 name requests on all of these sockets. If <TT
5370 CLASS="PARAMETER"
5371 ><I
5372 >bind interfaces
5373                 only</I
5374 ></TT
5375 > is set then <B
5376 CLASS="COMMAND"
5377 >nmbd</B
5378 > will check the 
5379                 source address of any packets coming in on the broadcast sockets 
5380                 and discard any that don't match the broadcast addresses of the 
5381                 interfaces in the <TT
5382 CLASS="PARAMETER"
5383 ><I
5384 >interfaces</I
5385 ></TT
5386 > parameter list. 
5387                 As unicast packets are received on the other sockets it allows 
5388                 <B
5389 CLASS="COMMAND"
5390 >nmbd</B
5391 > to refuse to serve names to machines that 
5392                 send packets that arrive through any interfaces not listed in the
5393                 <TT
5394 CLASS="PARAMETER"
5395 ><I
5396 >interfaces</I
5397 ></TT
5398 > list.  IP Source address spoofing
5399                 does defeat this simple check, however so it must not be used
5400                 seriously as a security feature for <B
5401 CLASS="COMMAND"
5402 >nmbd</B
5403 >.</P
5404 ><P
5405 >For file service it causes <A
5406 HREF="smbd.8.html"
5407 TARGET="_top"
5408 >smbd(8)</A
5409 >
5410                 to bind only to the interface list given in the <A
5411 HREF="#INTERFACES"
5412 >               interfaces</A
5413 > parameter. This restricts the networks that 
5414                 <B
5415 CLASS="COMMAND"
5416 >smbd</B
5417 > will serve to packets coming in those 
5418                 interfaces.  Note that you should not use this parameter for machines 
5419                 that are serving PPP or other intermittent or non-broadcast network 
5420                 interfaces as it will not cope with non-permanent interfaces.</P
5421 ><P
5422 >If <TT
5423 CLASS="PARAMETER"
5424 ><I
5425 >bind interfaces only</I
5426 ></TT
5427 > is set then 
5428                 unless the network address <EM
5429 >127.0.0.1</EM
5430 > is added 
5431                 to the <TT
5432 CLASS="PARAMETER"
5433 ><I
5434 >interfaces</I
5435 ></TT
5436 > parameter list <A
5437 HREF="smbpasswd.8.html"
5438 TARGET="_top"
5439 ><B
5440 CLASS="COMMAND"
5441 >smbpasswd(8)</B
5442 ></A
5443
5444                 and <A
5445 HREF="swat.8.html"
5446 TARGET="_top"
5447 ><B
5448 CLASS="COMMAND"
5449 >swat(8)</B
5450 ></A
5451 > may 
5452                 not work as expected due to the reasons covered below.</P
5453 ><P
5454 >To change a users SMB password, the <B
5455 CLASS="COMMAND"
5456 >smbpasswd</B
5457 >
5458                 by default connects to the <EM
5459 >localhost - 127.0.0.1</EM
5460
5461                 address as an SMB client to issue the password change request. If 
5462                 <TT
5463 CLASS="PARAMETER"
5464 ><I
5465 >bind interfaces only</I
5466 ></TT
5467 > is set then unless the 
5468                 network address <EM
5469 >127.0.0.1</EM
5470 > is added to the
5471                 <TT
5472 CLASS="PARAMETER"
5473 ><I
5474 >interfaces</I
5475 ></TT
5476 > parameter list then <B
5477 CLASS="COMMAND"
5478 >               smbpasswd</B
5479 > will fail to connect in it's default mode. 
5480                 <B
5481 CLASS="COMMAND"
5482 >smbpasswd</B
5483 > can be forced to use the primary IP interface 
5484                 of the local host by using its <A
5485 HREF="smbpasswd.8.html#minusr"
5486 TARGET="_top"
5487 >               <TT
5488 CLASS="PARAMETER"
5489 ><I
5490 >-r <TT
5491 CLASS="REPLACEABLE"
5492 ><I
5493 >remote machine</I
5494 ></TT
5495 ></I
5496 ></TT
5497 >
5498                 </A
5499 > parameter, with <TT
5500 CLASS="REPLACEABLE"
5501 ><I
5502 >remote machine</I
5503 ></TT
5504 > set 
5505                 to the IP name of the primary interface of the local host.</P
5506 ><P
5507 >The <B
5508 CLASS="COMMAND"
5509 >swat</B
5510 > status page tries to connect with
5511                 <B
5512 CLASS="COMMAND"
5513 >smbd</B
5514 > and <B
5515 CLASS="COMMAND"
5516 >nmbd</B
5517 > at the address 
5518                 <EM
5519 >127.0.0.1</EM
5520 > to determine if they are running.  
5521                 Not adding <EM
5522 >127.0.0.1</EM
5523 >  will cause <B
5524 CLASS="COMMAND"
5525 >               smbd</B
5526 > and <B
5527 CLASS="COMMAND"
5528 >nmbd</B
5529 > to always show
5530                 "not running" even if they really are.  This can prevent <B
5531 CLASS="COMMAND"
5532 >               swat</B
5533 > from starting/stopping/restarting <B
5534 CLASS="COMMAND"
5535 >smbd</B
5536 >
5537                 and <B
5538 CLASS="COMMAND"
5539 >nmbd</B
5540 >.</P
5541 ><P
5542 >Default: <B
5543 CLASS="COMMAND"
5544 >bind interfaces only = no</B
5545 ></P
5546 ></DD
5547 ><DT
5548 ><A
5549 NAME="BLOCKINGLOCKS"
5550 ></A
5551 >blocking locks (S)</DT
5552 ><DD
5553 ><P
5554 >This parameter controls the behavior of <A
5555 HREF="smbd.8.html"
5556 TARGET="_top"
5557 >smbd(8)</A
5558 > when given a request by a client 
5559                 to obtain a byte range lock on a region of an open file, and the 
5560                 request has a time limit associated with it.</P
5561 ><P
5562 >If this parameter is set and the lock range requested 
5563                 cannot be immediately satisfied, Samba 2.2 will internally 
5564                 queue the lock request, and periodically attempt to obtain 
5565                 the lock until the timeout period expires.</P
5566 ><P
5567 >If this parameter is set to <TT
5568 CLASS="CONSTANT"
5569 >false</TT
5570 >, then 
5571                 Samba 2.2 will behave as previous versions of Samba would and 
5572                 will fail the lock request immediately if the lock range 
5573                 cannot be obtained.</P
5574 ><P
5575 >Default: <B
5576 CLASS="COMMAND"
5577 >blocking locks = yes</B
5578 ></P
5579 ></DD
5580 ><DT
5581 ><A
5582 NAME="BROWSABLE"
5583 ></A
5584 >browsable (S)</DT
5585 ><DD
5586 ><P
5587 >See the <A
5588 HREF="#BROWSEABLE"
5589 ><TT
5590 CLASS="PARAMETER"
5591 ><I
5592 >               browseable</I
5593 ></TT
5594 ></A
5595 >.</P
5596 ></DD
5597 ><DT
5598 ><A
5599 NAME="BROWSELIST"
5600 ></A
5601 >browse list (G)</DT
5602 ><DD
5603 ><P
5604 >This controls whether <A
5605 HREF="smbd.8.html"
5606 TARGET="_top"
5607 >               <B
5608 CLASS="COMMAND"
5609 >smbd(8)</B
5610 ></A
5611 > will serve a browse list to 
5612                 a client doing a <B
5613 CLASS="COMMAND"
5614 >NetServerEnum</B
5615 > call. Normally 
5616                 set to <TT
5617 CLASS="CONSTANT"
5618 >true</TT
5619 >. You should never need to change 
5620                 this.</P
5621 ><P
5622 >Default: <B
5623 CLASS="COMMAND"
5624 >browse list = yes</B
5625 ></P
5626 ></DD
5627 ><DT
5628 ><A
5629 NAME="BROWSEABLE"
5630 ></A
5631 >browseable (S)</DT
5632 ><DD
5633 ><P
5634 >This controls whether this share is seen in 
5635                 the list of available shares in a net view and in the browse list.</P
5636 ><P
5637 >Default: <B
5638 CLASS="COMMAND"
5639 >browseable = yes</B
5640 ></P
5641 ></DD
5642 ><DT
5643 ><A
5644 NAME="CASESENSITIVE"
5645 ></A
5646 >case sensitive (S)</DT
5647 ><DD
5648 ><P
5649 >See the discussion in the section <A
5650 HREF="#AEN203"
5651 >NAME MANGLING</A
5652 >.</P
5653 ><P
5654 >Default: <B
5655 CLASS="COMMAND"
5656 >case sensitive = no</B
5657 ></P
5658 ></DD
5659 ><DT
5660 ><A
5661 NAME="CASESIGNAMES"
5662 ></A
5663 >casesignames (S)</DT
5664 ><DD
5665 ><P
5666 >Synonym for <A
5667 HREF="#CASESENSITIVE"
5668 >case 
5669                 sensitive</A
5670 >.</P
5671 ></DD
5672 ><DT
5673 ><A
5674 NAME="CHANGENOTIFYTIMEOUT"
5675 ></A
5676 >change notify timeout (G)</DT
5677 ><DD
5678 ><P
5679 >This SMB allows a client to tell a server to 
5680                 "watch" a particular directory for any changes and only reply to
5681                 the SMB request when a change has occurred. Such constant scanning of
5682                 a directory is expensive under UNIX, hence an <A
5683 HREF="smbd.8.html"
5684 TARGET="_top"
5685 >               <B
5686 CLASS="COMMAND"
5687 >smbd(8)</B
5688 ></A
5689 > daemon only performs such a scan 
5690                 on each requested directory once every <TT
5691 CLASS="PARAMETER"
5692 ><I
5693 >change notify 
5694                 timeout</I
5695 ></TT
5696 > seconds.</P
5697 ><P
5698 >Default: <B
5699 CLASS="COMMAND"
5700 >change notify timeout = 60</B
5701 ></P
5702 ><P
5703 >Example: <B
5704 CLASS="COMMAND"
5705 >change notify timeout = 300</B
5706 ></P
5707 ><P
5708 >Would change the scan time to every 5 minutes.</P
5709 ></DD
5710 ><DT
5711 ><A
5712 NAME="CHANGESHARECOMMAND"
5713 ></A
5714 >change share command (G)</DT
5715 ><DD
5716 ><P
5717 >Samba 2.2.0 introduced the ability to dynamically 
5718                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
5719                 <TT
5720 CLASS="PARAMETER"
5721 ><I
5722 >change share command</I
5723 ></TT
5724 > is used to define an 
5725                 external program or script which will modify an existing service definition 
5726                 in <TT
5727 CLASS="FILENAME"
5728 >smb.conf</TT
5729 >.  In order to successfully 
5730                 execute the <TT
5731 CLASS="PARAMETER"
5732 ><I
5733 >change share command</I
5734 ></TT
5735 >, <B
5736 CLASS="COMMAND"
5737 >smbd</B
5738 >
5739                 requires that the administrator be connected using a root account (i.e. 
5740                 uid == 0).
5741                 </P
5742 ><P
5743 >               When executed, <B
5744 CLASS="COMMAND"
5745 >smbd</B
5746 > will automatically invoke the 
5747                 <TT
5748 CLASS="PARAMETER"
5749 ><I
5750 >change share command</I
5751 ></TT
5752 > with four parameters.
5753                 </P
5754 ><P
5755 ></P
5756 ><UL
5757 ><LI
5758 ><P
5759 ><TT
5760 CLASS="PARAMETER"
5761 ><I
5762 >configFile</I
5763 ></TT
5764 > - the location 
5765                         of the global <TT
5766 CLASS="FILENAME"
5767 >smb.conf</TT
5768 > file. 
5769                         </P
5770 ></LI
5771 ><LI
5772 ><P
5773 ><TT
5774 CLASS="PARAMETER"
5775 ><I
5776 >shareName</I
5777 ></TT
5778 > - the name of the new 
5779                         share.
5780                         </P
5781 ></LI
5782 ><LI
5783 ><P
5784 ><TT
5785 CLASS="PARAMETER"
5786 ><I
5787 >pathName</I
5788 ></TT
5789 > - path to an **existing**
5790                         directory on disk.
5791                         </P
5792 ></LI
5793 ><LI
5794 ><P
5795 ><TT
5796 CLASS="PARAMETER"
5797 ><I
5798 >comment</I
5799 ></TT
5800 > - comment string to associate 
5801                         with the new share.
5802                         </P
5803 ></LI
5804 ></UL
5805 ><P
5806 >               This parameter is only used modify existing file shares definitions.  To modify 
5807                 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
5808                 </P
5809 ><P
5810 >               See also <A
5811 HREF="#ADDSHARECOMMAND"
5812 ><TT
5813 CLASS="PARAMETER"
5814 ><I
5815 >add share
5816                 command</I
5817 ></TT
5818 ></A
5819 >, <A
5820 HREF="#DELETESHARECOMMAND"
5821 ><TT
5822 CLASS="PARAMETER"
5823 ><I
5824 >delete 
5825                 share command</I
5826 ></TT
5827 ></A
5828 >.
5829                 </P
5830 ><P
5831 >Default: <EM
5832 >none</EM
5833 ></P
5834 ><P
5835 >Example: <B
5836 CLASS="COMMAND"
5837 >change share command = /usr/local/bin/addshare</B
5838 ></P
5839 ></DD
5840 ><DT
5841 ><A
5842 NAME="COMMENT"
5843 ></A
5844 >comment (S)</DT
5845 ><DD
5846 ><P
5847 >This is a text field that is seen next to a share 
5848                 when a client does a queries the server, either via the network 
5849                 neighborhood or via <B
5850 CLASS="COMMAND"
5851 >net view</B
5852 > to list what shares 
5853                 are available.</P
5854 ><P
5855 >If you want to set the string that is displayed next to the 
5856                 machine name then see the <A
5857 HREF="#SERVERSTRING"
5858 ><TT
5859 CLASS="PARAMETER"
5860 ><I
5861 >               server string</I
5862 ></TT
5863 ></A
5864 > parameter.</P
5865 ><P
5866 >Default: <EM
5867 >No comment string</EM
5868 ></P
5869 ><P
5870 >Example: <B
5871 CLASS="COMMAND"
5872 >comment = Fred's Files</B
5873 ></P
5874 ></DD
5875 ><DT
5876 ><A
5877 NAME="CONFIGFILE"
5878 ></A
5879 >config file (G)</DT
5880 ><DD
5881 ><P
5882 >This allows you to override the config file 
5883                 to use, instead of the default (usually <TT
5884 CLASS="FILENAME"
5885 >smb.conf</TT
5886 >). 
5887                 There is a chicken and egg problem here as this option is set 
5888                 in the config file!</P
5889 ><P
5890 >For this reason, if the name of the config file has changed 
5891                 when the parameters are loaded then it will reload them from 
5892                 the new config file.</P
5893 ><P
5894 >This option takes the usual substitutions, which can 
5895                 be very useful.</P
5896 ><P
5897 >If the config file doesn't exist then it won't be loaded 
5898                 (allowing you to special case the config files of just a few 
5899                 clients).</P
5900 ><P
5901 >Example: <B
5902 CLASS="COMMAND"
5903 >config file = /usr/local/samba/lib/smb.conf.%m
5904                 </B
5905 ></P
5906 ></DD
5907 ><DT
5908 ><A
5909 NAME="COPY"
5910 ></A
5911 >copy (S)</DT
5912 ><DD
5913 ><P
5914 >This parameter allows you to "clone" service 
5915                 entries. The specified service is simply duplicated under the 
5916                 current service's name. Any parameters specified in the current 
5917                 section will override those in the section being copied.</P
5918 ><P
5919 >This feature lets you set up a 'template' service and 
5920                 create similar services easily. Note that the service being 
5921                 copied must occur earlier in the configuration file than the 
5922                 service doing the copying.</P
5923 ><P
5924 >Default: <EM
5925 >no value</EM
5926 ></P
5927 ><P
5928 >Example: <B
5929 CLASS="COMMAND"
5930 >copy = otherservice</B
5931 ></P
5932 ></DD
5933 ><DT
5934 ><A
5935 NAME="CREATEMASK"
5936 ></A
5937 >create mask (S)</DT
5938 ><DD
5939 ><P
5940 >A synonym for this parameter is 
5941                 <A
5942 HREF="#CREATEMODE"
5943 ><TT
5944 CLASS="PARAMETER"
5945 ><I
5946 >create mode</I
5947 ></TT
5948 >
5949                 </A
5950 >.</P
5951 ><P
5952 >When a file is created, the necessary permissions are 
5953                 calculated according to the mapping from DOS modes to UNIX 
5954                 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed 
5955                 with this parameter. This parameter may be thought of as a bit-wise 
5956                 MASK for the UNIX modes of a file. Any bit <EM
5957 >not</EM
5958
5959                 set here will be removed from the modes set on a file when it is 
5960                 created.</P
5961 ><P
5962 >The default value of this parameter removes the 
5963                 'group' and 'other' write and execute bits from the UNIX modes.</P
5964 ><P
5965 >Following this Samba will bit-wise 'OR' the UNIX mode created 
5966                 from this parameter with the value of the <A
5967 HREF="#FORCECREATEMODE"
5968 ><TT
5969 CLASS="PARAMETER"
5970 ><I
5971 >force create mode</I
5972 ></TT
5973 ></A
5974 >
5975                 parameter which is set to 000 by default.</P
5976 ><P
5977 >This parameter does not affect directory modes. See the 
5978                 parameter <A
5979 HREF="#DIRECTORYMODE"
5980 ><TT
5981 CLASS="PARAMETER"
5982 ><I
5983 >directory mode
5984                 </I
5985 ></TT
5986 ></A
5987 > for details.</P
5988 ><P
5989 >See also the <A
5990 HREF="#FORCECREATEMODE"
5991 ><TT
5992 CLASS="PARAMETER"
5993 ><I
5994 >force 
5995                 create mode</I
5996 ></TT
5997 ></A
5998 > parameter for forcing particular mode 
5999                 bits to be set on created files. See also the <A
6000 HREF="#DIRECTORYMODE"
6001 >               <TT
6002 CLASS="PARAMETER"
6003 ><I
6004 >directory mode</I
6005 ></TT
6006 ></A
6007 > parameter for masking 
6008                 mode bits on created directories.  See also the <A
6009 HREF="#INHERITPERMISSIONS"
6010 >               <TT
6011 CLASS="PARAMETER"
6012 ><I
6013 >inherit permissions</I
6014 ></TT
6015 ></A
6016 > parameter.</P
6017 ><P
6018 >Note that this parameter does not apply to permissions
6019                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
6020                 a mask on access control lists also, they need to set the <A
6021 HREF="#SECURITYMASK"
6022 ><TT
6023 CLASS="PARAMETER"
6024 ><I
6025 >security mask</I
6026 ></TT
6027 ></A
6028 >.</P
6029 ><P
6030 >Default: <B
6031 CLASS="COMMAND"
6032 >create mask = 0744</B
6033 ></P
6034 ><P
6035 >Example: <B
6036 CLASS="COMMAND"
6037 >create mask = 0775</B
6038 ></P
6039 ></DD
6040 ><DT
6041 ><A
6042 NAME="CREATEMODE"
6043 ></A
6044 >create mode (S)</DT
6045 ><DD
6046 ><P
6047 >This is a synonym for <A
6048 HREF="#CREATEMASK"
6049 ><TT
6050 CLASS="PARAMETER"
6051 ><I
6052 >               create mask</I
6053 ></TT
6054 ></A
6055 >.</P
6056 ></DD
6057 ><DT
6058 ><A
6059 NAME="CSCPOLICY"
6060 ></A
6061 >csc policy (S)</DT
6062 ><DD
6063 ><P
6064 >This stands for <EM
6065 >client-side caching 
6066                 policy</EM
6067 >, and specifies how clients capable of offline
6068                 caching will cache the files in the share. The valid values
6069                 are: manual, documents, programs, disable.</P
6070 ><P
6071 >These values correspond to those used on Windows
6072                 servers.</P
6073 ><P
6074 >For example, shares containing roaming profiles can have
6075                 offline caching disabled using <B
6076 CLASS="COMMAND"
6077 >csc policy = disable
6078                 </B
6079 >.</P
6080 ><P
6081 >Default: <B
6082 CLASS="COMMAND"
6083 >csc policy = manual</B
6084 ></P
6085 ><P
6086 >Example: <B
6087 CLASS="COMMAND"
6088 >csc policy = programs</B
6089 ></P
6090 ></DD
6091 ><DT
6092 ><A
6093 NAME="DEADTIME"
6094 ></A
6095 >deadtime (G)</DT
6096 ><DD
6097 ><P
6098 >The value of the parameter (a decimal integer) 
6099                 represents the number of minutes of inactivity before a connection 
6100                 is considered dead, and it is disconnected. The deadtime only takes 
6101                 effect if the number of open files is zero.</P
6102 ><P
6103 >This is useful to stop a server's resources being 
6104                 exhausted by a large number of inactive connections.</P
6105 ><P
6106 >Most clients have an auto-reconnect feature when a 
6107                 connection is broken so in most cases this parameter should be 
6108                 transparent to users.</P
6109 ><P
6110 >Using this parameter with a timeout of a few minutes 
6111                 is recommended for most systems.</P
6112 ><P
6113 >A deadtime of zero indicates that no auto-disconnection 
6114                 should be performed.</P
6115 ><P
6116 >Default: <B
6117 CLASS="COMMAND"
6118 >deadtime = 0</B
6119 ></P
6120 ><P
6121 >Example: <B
6122 CLASS="COMMAND"
6123 >deadtime = 15</B
6124 ></P
6125 ></DD
6126 ><DT
6127 ><A
6128 NAME="DEBUGHIRESTIMESTAMP"
6129 ></A
6130 >debug hires timestamp (G)</DT
6131 ><DD
6132 ><P
6133 >Sometimes the timestamps in the log messages 
6134                 are needed with a resolution of higher that seconds, this 
6135                 boolean parameter adds microsecond resolution to the timestamp 
6136                 message header when turned on.</P
6137 ><P
6138 >Note that the parameter <A
6139 HREF="#DEBUGTIMESTAMP"
6140 ><TT
6141 CLASS="PARAMETER"
6142 ><I
6143 >               debug timestamp</I
6144 ></TT
6145 ></A
6146 > must be on for this to have an 
6147                 effect.</P
6148 ><P
6149 >Default: <B
6150 CLASS="COMMAND"
6151 >debug hires timestamp = no</B
6152 ></P
6153 ></DD
6154 ><DT
6155 ><A
6156 NAME="DEBUGPID"
6157 ></A
6158 >debug pid (G)</DT
6159 ><DD
6160 ><P
6161 >When using only one log file for more then one 
6162                 forked <A
6163 HREF="smbd.8.html"
6164 TARGET="_top"
6165 >smbd</A
6166 >-process there may be hard to follow which process 
6167                 outputs which message. This boolean parameter is adds the process-id 
6168                 to the timestamp message headers in the logfile when turned on.</P
6169 ><P
6170 >Note that the parameter <A
6171 HREF="#DEBUGTIMESTAMP"
6172 ><TT
6173 CLASS="PARAMETER"
6174 ><I
6175 >               debug timestamp</I
6176 ></TT
6177 ></A
6178 > must be on for this to have an 
6179                 effect.</P
6180 ><P
6181 >Default: <B
6182 CLASS="COMMAND"
6183 >debug pid = no</B
6184 ></P
6185 ></DD
6186 ><DT
6187 ><A
6188 NAME="DEBUGTIMESTAMP"
6189 ></A
6190 >debug timestamp (G)</DT
6191 ><DD
6192 ><P
6193 >Samba 2.2 debug log messages are timestamped 
6194                 by default. If you are running at a high <A
6195 HREF="#DEBUGLEVEL"
6196 >               <TT
6197 CLASS="PARAMETER"
6198 ><I
6199 >debug level</I
6200 ></TT
6201 ></A
6202 > these timestamps
6203                 can be distracting. This boolean parameter allows timestamping 
6204                 to be turned off.</P
6205 ><P
6206 >Default: <B
6207 CLASS="COMMAND"
6208 >debug timestamp = yes</B
6209 ></P
6210 ></DD
6211 ><DT
6212 ><A
6213 NAME="DEBUGUID"
6214 ></A
6215 >debug uid (G)</DT
6216 ><DD
6217 ><P
6218 >Samba is sometimes run as root and sometime 
6219                 run as the connected user, this boolean parameter inserts the 
6220                 current euid, egid, uid and gid to the timestamp message headers 
6221                 in the log file if turned on.</P
6222 ><P
6223 >Note that the parameter <A
6224 HREF="#DEBUGTIMESTAMP"
6225 ><TT
6226 CLASS="PARAMETER"
6227 ><I
6228 >               debug timestamp</I
6229 ></TT
6230 ></A
6231 > must be on for this to have an 
6232                 effect.</P
6233 ><P
6234 >Default: <B
6235 CLASS="COMMAND"
6236 >debug uid = no</B
6237 ></P
6238 ></DD
6239 ><DT
6240 ><A
6241 NAME="DEBUGLEVEL"
6242 ></A
6243 >debuglevel (G)</DT
6244 ><DD
6245 ><P
6246 >Synonym for <A
6247 HREF="#LOGLEVEL"
6248 ><TT
6249 CLASS="PARAMETER"
6250 ><I
6251 >               log level</I
6252 ></TT
6253 ></A
6254 >.</P
6255 ></DD
6256 ><DT
6257 ><A
6258 NAME="DEFAULT"
6259 ></A
6260 >default (G)</DT
6261 ><DD
6262 ><P
6263 >A synonym for <A
6264 HREF="#DEFAULTSERVICE"
6265 ><TT
6266 CLASS="PARAMETER"
6267 ><I
6268 >               default service</I
6269 ></TT
6270 ></A
6271 >.</P
6272 ></DD
6273 ><DT
6274 ><A
6275 NAME="DEFAULTCASE"
6276 ></A
6277 >default case (S)</DT
6278 ><DD
6279 ><P
6280 >See the section on <A
6281 HREF="#AEN203"
6282 >               NAME MANGLING</A
6283 >. Also note the <A
6284 HREF="#SHORTPRESERVECASE"
6285 >               <TT
6286 CLASS="PARAMETER"
6287 ><I
6288 >short preserve case</I
6289 ></TT
6290 ></A
6291 > parameter.</P
6292 ><P
6293 >Default: <B
6294 CLASS="COMMAND"
6295 >default case = lower</B
6296 ></P
6297 ></DD
6298 ><DT
6299 ><A
6300 NAME="DEFAULTDEVMODE"
6301 ></A
6302 >default devmode (S)</DT
6303 ><DD
6304 ><P
6305 >This parameter is only applicable to <A
6306 HREF="#PRINTOK"
6307 >printable</A
6308 > services.  When smbd is serving
6309                 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
6310                 server has a Device Mode which defines things such as paper size and
6311                 orientation and duplex settings.  The device mode can only correctly be
6312                 generated by the printer driver itself (which can only be executed on a
6313                 Win32 platform).  Because smbd is unable to execute the driver code
6314                 to generate the device mode, the default behavior is to set this field
6315                 to NULL.
6316                 </P
6317 ><P
6318 >Most problems with serving printer drivers to Windows NT/2k/XP clients
6319                 can be traced to a problem with the generated device mode.  Certain drivers
6320                 will do things such as crashing the client's Explorer.exe with a NULL devmode.
6321                 However, other printer drivers can cause the client's spooler service
6322                 (spoolsv.exe) to die if the devmode was not created by the driver itself
6323                 (i.e. smbd generates a default devmode).
6324                 </P
6325 ><P
6326 >This parameter should be used with care and tested with the printer
6327                 driver in question.  It is better to leave the device mode to NULL
6328                 and let the Windows client set the correct values.  Because drivers do not
6329                 do this all the time, setting <B
6330 CLASS="COMMAND"
6331 >default devmode = yes</B
6332 >
6333                 will instruct smbd to generate a default one.
6334                 </P
6335 ><P
6336 >For more information on Windows NT/2k printing and Device Modes,
6337                 see the <A
6338 HREF="http://msdn.microsoft.com/"
6339 TARGET="_top"
6340 >MSDN documentation</A
6341 >.
6342                 </P
6343 ><P
6344 >Default: <B
6345 CLASS="COMMAND"
6346 >default devmode = no</B
6347 ></P
6348 ></DD
6349 ><DT
6350 ><A
6351 NAME="DEFAULTSERVICE"
6352 ></A
6353 >default service (G)</DT
6354 ><DD
6355 ><P
6356 >This parameter specifies the name of a service
6357                 which will be connected to if the service actually requested cannot
6358                 be found. Note that the square brackets are <EM
6359 >NOT</EM
6360 >
6361                 given in the parameter value (see example below).</P
6362 ><P
6363 >There is no default value for this parameter. If this 
6364                 parameter is not given, attempting to connect to a nonexistent 
6365                 service results in an error.</P
6366 ><P
6367 >Typically the default service would be a <A
6368 HREF="#GUESTOK"
6369 >               <TT
6370 CLASS="PARAMETER"
6371 ><I
6372 >guest ok</I
6373 ></TT
6374 ></A
6375 >, <A
6376 HREF="#READONLY"
6377 >               <TT
6378 CLASS="PARAMETER"
6379 ><I
6380 >read-only</I
6381 ></TT
6382 ></A
6383 > service.</P
6384 ><P
6385 >Also note that the apparent service name will be changed 
6386                 to equal that of the requested service, this is very useful as it 
6387                 allows you to use macros like <TT
6388 CLASS="PARAMETER"
6389 ><I
6390 >%S</I
6391 ></TT
6392 > to make 
6393                 a wildcard service.</P
6394 ><P
6395 >Note also that any "_" characters in the name of the service 
6396                 used in the default service will get mapped to a "/". This allows for
6397                 interesting things.</P
6398 ><P
6399 >Example:</P
6400 ><P
6401 ><TABLE
6402 BORDER="0"
6403 BGCOLOR="#E0E0E0"
6404 WIDTH="90%"
6405 ><TR
6406 ><TD
6407 ><PRE
6408 CLASS="PROGRAMLISTING"
6409 >[global]
6410         default service = pub
6411         
6412 [pub]
6413         path = /%S
6414                 </PRE
6415 ></TD
6416 ></TR
6417 ></TABLE
6418 ></P
6419 ></DD
6420 ><DT
6421 ><A
6422 NAME="DELETEPRINTERCOMMAND"
6423 ></A
6424 >delete printer command (G)</DT
6425 ><DD
6426 ><P
6427 >With the introduction of MS-RPC based printer
6428                 support for Windows NT/2000 clients in Samba 2.2, it is now 
6429                 possible to delete printer at run time by issuing the 
6430                 DeletePrinter() RPC call.</P
6431 ><P
6432 >For a Samba host this means that the printer must be 
6433                 physically deleted from underlying printing system.  The <TT
6434 CLASS="PARAMETER"
6435 ><I
6436 >               deleteprinter command</I
6437 ></TT
6438 > defines a script to be run which 
6439                 will perform the necessary operations for removing the printer
6440                 from the print system and from <TT
6441 CLASS="FILENAME"
6442 >smb.conf</TT
6443 >.
6444                 </P
6445 ><P
6446 >The <TT
6447 CLASS="PARAMETER"
6448 ><I
6449 >delete printer command</I
6450 ></TT
6451 > is 
6452                 automatically called with only one parameter: <TT
6453 CLASS="PARAMETER"
6454 ><I
6455 >               "printer name"</I
6456 ></TT
6457 >.</P
6458 ><P
6459 >Once the <TT
6460 CLASS="PARAMETER"
6461 ><I
6462 >delete printer command</I
6463 ></TT
6464 > has 
6465                 been executed, <B
6466 CLASS="COMMAND"
6467 >smbd</B
6468 > will reparse the <TT
6469 CLASS="FILENAME"
6470 >               smb.conf</TT
6471 > to associated printer no longer exists.  
6472                 If the sharename is still valid, then <B
6473 CLASS="COMMAND"
6474 >smbd
6475                 </B
6476 > will return an ACCESS_DENIED error to the client.</P
6477 ><P
6478 >See also <A
6479 HREF="#ADDPRINTERCOMMAND"
6480 ><TT
6481 CLASS="PARAMETER"
6482 ><I
6483 >               add printer command</I
6484 ></TT
6485 ></A
6486 >, <A
6487 HREF="#PRINTING"
6488 ><TT
6489 CLASS="PARAMETER"
6490 ><I
6491 >printing</I
6492 ></TT
6493 ></A
6494 >,
6495                 <A
6496 HREF="#SHOWADDPRINTERWIZARD"
6497 ><TT
6498 CLASS="PARAMETER"
6499 ><I
6500 >show add
6501                 printer wizard</I
6502 ></TT
6503 ></A
6504 ></P
6505 ><P
6506 >Default: <EM
6507 >none</EM
6508 ></P
6509 ><P
6510 >Example: <B
6511 CLASS="COMMAND"
6512 >deleteprinter command = /usr/bin/removeprinter
6513                 </B
6514 ></P
6515 ></DD
6516 ><DT
6517 ><A
6518 NAME="DELETEREADONLY"
6519 ></A
6520 >delete readonly (S)</DT
6521 ><DD
6522 ><P
6523 >This parameter allows readonly files to be deleted.  
6524                 This is not normal DOS semantics, but is allowed by UNIX.</P
6525 ><P
6526 >This option may be useful for running applications such 
6527                 as rcs, where UNIX file ownership prevents changing file 
6528                 permissions, and DOS semantics prevent deletion of a read only file.</P
6529 ><P
6530 >Default: <B
6531 CLASS="COMMAND"
6532 >delete readonly = no</B
6533 ></P
6534 ></DD
6535 ><DT
6536 ><A
6537 NAME="DELETESHARECOMMAND"
6538 ></A
6539 >delete share command (G)</DT
6540 ><DD
6541 ><P
6542 >Samba 2.2.0 introduced the ability to dynamically 
6543                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6544                 <TT
6545 CLASS="PARAMETER"
6546 ><I
6547 >delete share command</I
6548 ></TT
6549 > is used to define an 
6550                 external program or script which will remove an existing service 
6551                 definition from <TT
6552 CLASS="FILENAME"
6553 >smb.conf</TT
6554 >.  In order to successfully 
6555                 execute the <TT
6556 CLASS="PARAMETER"
6557 ><I
6558 >delete share command</I
6559 ></TT
6560 >, <B
6561 CLASS="COMMAND"
6562 >smbd</B
6563 >
6564                 requires that the administrator be connected using a root account (i.e. 
6565                 uid == 0).
6566                 </P
6567 ><P
6568 >               When executed, <B
6569 CLASS="COMMAND"
6570 >smbd</B
6571 > will automatically invoke the 
6572                 <TT
6573 CLASS="PARAMETER"
6574 ><I
6575 >delete share command</I
6576 ></TT
6577 > with two parameters.
6578                 </P
6579 ><P
6580 ></P
6581 ><UL
6582 ><LI
6583 ><P
6584 ><TT
6585 CLASS="PARAMETER"
6586 ><I
6587 >configFile</I
6588 ></TT
6589 > - the location 
6590                         of the global <TT
6591 CLASS="FILENAME"
6592 >smb.conf</TT
6593 > file. 
6594                         </P
6595 ></LI
6596 ><LI
6597 ><P
6598 ><TT
6599 CLASS="PARAMETER"
6600 ><I
6601 >shareName</I
6602 ></TT
6603 > - the name of 
6604                         the existing service.
6605                         </P
6606 ></LI
6607 ></UL
6608 ><P
6609 >               This parameter is only used to remove file shares.  To delete printer shares, 
6610                 see the <A
6611 HREF="#DELETEPRINTERCOMMAND"
6612 ><TT
6613 CLASS="PARAMETER"
6614 ><I
6615 >delete printer 
6616                 command</I
6617 ></TT
6618 ></A
6619 >.
6620                 </P
6621 ><P
6622 >               See also <A
6623 HREF="#ADDSHARECOMMAND"
6624 ><TT
6625 CLASS="PARAMETER"
6626 ><I
6627 >add share
6628                 command</I
6629 ></TT
6630 ></A
6631 >, <A
6632 HREF="#CHANGESHARECOMMAND"
6633 ><TT
6634 CLASS="PARAMETER"
6635 ><I
6636 >change 
6637                 share command</I
6638 ></TT
6639 ></A
6640 >.
6641                 </P
6642 ><P
6643 >Default: <EM
6644 >none</EM
6645 ></P
6646 ><P
6647 >Example: <B
6648 CLASS="COMMAND"
6649 >delete share command = /usr/local/bin/delshare</B
6650 ></P
6651 ></DD
6652 ><DT
6653 ><A
6654 NAME="DELETEUSERSCRIPT"
6655 ></A
6656 >delete user script (G)</DT
6657 ><DD
6658 ><P
6659 >This is the full pathname to a script that will 
6660                 be run <EM
6661 >AS ROOT</EM
6662 > by <A
6663 HREF="smbd.8.html"
6664 TARGET="_top"
6665 >               <B
6666 CLASS="COMMAND"
6667 >smbd(8)</B
6668 ></A
6669 > under special circumstances 
6670                 described below.</P
6671 ><P
6672 >Normally, a Samba server requires that UNIX users are 
6673                 created for all users accessing files on this server. For sites 
6674                 that use Windows NT account databases as their primary user database 
6675                 creating these users and keeping the user list in sync with the 
6676                 Windows NT PDC is an onerous task. This option allows <B
6677 CLASS="COMMAND"
6678 >               smbd</B
6679 > to delete the required UNIX users <EM
6680 >ON 
6681                 DEMAND</EM
6682 > when a user accesses the Samba server and the 
6683                 Windows NT user no longer exists.</P
6684 ><P
6685 >In order to use this option, <B
6686 CLASS="COMMAND"
6687 >smbd</B
6688 > must be 
6689                 set to <TT
6690 CLASS="PARAMETER"
6691 ><I
6692 >security = domain</I
6693 ></TT
6694 > or <TT
6695 CLASS="PARAMETER"
6696 ><I
6697 >security =
6698                 user</I
6699 ></TT
6700 > and <TT
6701 CLASS="PARAMETER"
6702 ><I
6703 >delete user script</I
6704 ></TT
6705
6706                 must be set to a full pathname for a script 
6707                 that will delete a UNIX user given one argument of <TT
6708 CLASS="PARAMETER"
6709 ><I
6710 >%u</I
6711 ></TT
6712 >, 
6713                 which expands into the UNIX user name to delete.</P
6714 ><P
6715 >When the Windows user attempts to access the Samba server, 
6716                 at <EM
6717 >login</EM
6718 > (session setup in the SMB protocol) 
6719                 time, <B
6720 CLASS="COMMAND"
6721 >smbd</B
6722 > contacts the <A
6723 HREF="#PASSWORDSERVER"
6724 >               <TT
6725 CLASS="PARAMETER"
6726 ><I
6727 >password server</I
6728 ></TT
6729 ></A
6730 > and attempts to authenticate 
6731                 the given user with the given password. If the authentication fails 
6732                 with the specific Domain error code meaning that the user no longer 
6733                 exists then <B
6734 CLASS="COMMAND"
6735 >smbd</B
6736 > attempts to find a UNIX user in 
6737                 the UNIX password database that matches the Windows user account. If 
6738                 this lookup succeeds, and <TT
6739 CLASS="PARAMETER"
6740 ><I
6741 >delete user script</I
6742 ></TT
6743 > is 
6744                 set then <B
6745 CLASS="COMMAND"
6746 >smbd</B
6747 > will all the specified script 
6748                 <EM
6749 >AS ROOT</EM
6750 >, expanding any <TT
6751 CLASS="PARAMETER"
6752 ><I
6753 >%u</I
6754 ></TT
6755
6756                 argument to be the user name to delete.</P
6757 ><P
6758 >This script should delete the given UNIX username. In this way, 
6759                 UNIX users are dynamically deleted to match existing Windows NT 
6760                 accounts.</P
6761 ><P
6762 >See also <A
6763 HREF="#SECURITYEQUALSDOMAIN"
6764 >security = domain</A
6765 >,
6766                 <A
6767 HREF="#PASSWORDSERVER"
6768 ><TT
6769 CLASS="PARAMETER"
6770 ><I
6771 >password server</I
6772 ></TT
6773 >
6774                 </A
6775 >, <A
6776 HREF="#ADDUSERSCRIPT"
6777 ><TT
6778 CLASS="PARAMETER"
6779 ><I
6780 >add user script</I
6781 ></TT
6782 >
6783                 </A
6784 >.</P
6785 ><P
6786 >Default: <B
6787 CLASS="COMMAND"
6788 >delete user script = &#60;empty string&#62;
6789                 </B
6790 ></P
6791 ><P
6792 >Example: <B
6793 CLASS="COMMAND"
6794 >delete user script = /usr/local/samba/bin/del_user 
6795                 %u</B
6796 ></P
6797 ></DD
6798 ><DT
6799 ><A
6800 NAME="DELETEVETOFILES"
6801 ></A
6802 >delete veto files (S)</DT
6803 ><DD
6804 ><P
6805 >This option is used when Samba is attempting to 
6806                 delete a directory that contains one or more vetoed directories 
6807                 (see the <A
6808 HREF="#VETOFILES"
6809 ><TT
6810 CLASS="PARAMETER"
6811 ><I
6812 >veto files</I
6813 ></TT
6814 ></A
6815 >
6816                 option).  If this option is set to <TT
6817 CLASS="CONSTANT"
6818 >false</TT
6819 > (the default) then if a vetoed 
6820                 directory contains any non-vetoed files or directories then the 
6821                 directory delete will fail. This is usually what you want.</P
6822 ><P
6823 >If this option is set to <TT
6824 CLASS="CONSTANT"
6825 >true</TT
6826 >, then Samba 
6827                 will attempt to recursively delete any files and directories within 
6828                 the vetoed directory. This can be useful for integration with file 
6829                 serving systems such as NetAtalk which create meta-files within 
6830                 directories you might normally veto DOS/Windows users from seeing 
6831                 (e.g. <TT
6832 CLASS="FILENAME"
6833 >.AppleDouble</TT
6834 >)</P
6835 ><P
6836 >Setting <B
6837 CLASS="COMMAND"
6838 >delete veto files = yes</B
6839 > allows these 
6840                 directories to be  transparently deleted when the parent directory 
6841                 is deleted (so long as the user has permissions to do so).</P
6842 ><P
6843 >See also the <A
6844 HREF="#VETOFILES"
6845 ><TT
6846 CLASS="PARAMETER"
6847 ><I
6848 >veto 
6849                 files</I
6850 ></TT
6851 ></A
6852 > parameter.</P
6853 ><P
6854 >Default: <B
6855 CLASS="COMMAND"
6856 >delete veto files = no</B
6857 ></P
6858 ></DD
6859 ><DT
6860 ><A
6861 NAME="DENYHOSTS"
6862 ></A
6863 >deny hosts (S)</DT
6864 ><DD
6865 ><P
6866 >Synonym for <A
6867 HREF="#HOSTSDENY"
6868 ><TT
6869 CLASS="PARAMETER"
6870 ><I
6871 >hosts 
6872                 deny</I
6873 ></TT
6874 ></A
6875 >.</P
6876 ></DD
6877 ><DT
6878 ><A
6879 NAME="DFREECOMMAND"
6880 ></A
6881 >dfree command (G)</DT
6882 ><DD
6883 ><P
6884 >The <TT
6885 CLASS="PARAMETER"
6886 ><I
6887 >dfree command</I
6888 ></TT
6889 > setting should 
6890                 only be used on systems where a problem occurs with the internal 
6891                 disk space calculations. This has been known to happen with Ultrix, 
6892                 but may occur with other operating systems. The symptom that was 
6893                 seen was an error of "Abort Retry Ignore" at the end of each 
6894                 directory listing.</P
6895 ><P
6896 >This setting allows the replacement of the internal routines to
6897                 calculate the total disk space and amount available with an external
6898                 routine. The example below gives a possible script that might fulfill
6899                 this function.</P
6900 ><P
6901 >The external program will be passed a single parameter indicating 
6902                 a directory in the filesystem being queried. This will typically consist
6903                 of the string <TT
6904 CLASS="FILENAME"
6905 >./</TT
6906 >. The script should return two 
6907                 integers in ASCII. The first should be the total disk space in blocks, 
6908                 and the second should be the number of available blocks. An optional 
6909                 third return value can give the block size in bytes. The default 
6910                 blocksize is 1024 bytes.</P
6911 ><P
6912 >Note: Your script should <EM
6913 >NOT</EM
6914 > be setuid or 
6915                 setgid and should be owned by (and writeable only by) root!</P
6916 ><P
6917 >Default: <EM
6918 >By default internal routines for 
6919                 determining the disk capacity and remaining space will be used.
6920                 </EM
6921 ></P
6922 ><P
6923 >Example: <B
6924 CLASS="COMMAND"
6925 >dfree command = /usr/local/samba/bin/dfree
6926                 </B
6927 ></P
6928 ><P
6929 >Where the script dfree (which must be made executable) could be:</P
6930 ><P
6931 ><TABLE
6932 BORDER="0"
6933 BGCOLOR="#E0E0E0"
6934 WIDTH="90%"
6935 ><TR
6936 ><TD
6937 ><PRE
6938 CLASS="PROGRAMLISTING"
6939
6940                 #!/bin/sh
6941                 df $1 | tail -1 | awk '{print $2" "$4}'
6942                 </PRE
6943 ></TD
6944 ></TR
6945 ></TABLE
6946 ></P
6947 ><P
6948 >or perhaps (on Sys V based systems):</P
6949 ><P
6950 ><TABLE
6951 BORDER="0"
6952 BGCOLOR="#E0E0E0"
6953 WIDTH="90%"
6954 ><TR
6955 ><TD
6956 ><PRE
6957 CLASS="PROGRAMLISTING"
6958
6959                 #!/bin/sh
6960                 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
6961                 </PRE
6962 ></TD
6963 ></TR
6964 ></TABLE
6965 ></P
6966 ><P
6967 >Note that you may have to replace the command names 
6968                 with full path names on some systems.</P
6969 ></DD
6970 ><DT
6971 ><A
6972 NAME="DIRECTORY"
6973 ></A
6974 >directory (S)</DT
6975 ><DD
6976 ><P
6977 >Synonym for <A
6978 HREF="#PATH"
6979 ><TT
6980 CLASS="PARAMETER"
6981 ><I
6982 >path
6983                 </I
6984 ></TT
6985 ></A
6986 >.</P
6987 ></DD
6988 ><DT
6989 ><A
6990 NAME="DIRECTORYMASK"
6991 ></A
6992 >directory mask (S)</DT
6993 ><DD
6994 ><P
6995 >This parameter is the octal modes which are 
6996                 used when converting DOS modes to UNIX modes when creating UNIX 
6997                 directories.</P
6998 ><P
6999 >When a directory is created, the necessary permissions are 
7000                 calculated according to the mapping from DOS modes to UNIX permissions, 
7001                 and the resulting UNIX mode is then bit-wise 'AND'ed with this 
7002                 parameter. This parameter may be thought of as a bit-wise MASK for 
7003                 the UNIX modes of a directory. Any bit <EM
7004 >not</EM
7005 > set 
7006                 here will be removed from the modes set on a directory when it is 
7007                 created.</P
7008 ><P
7009 >The default value of this parameter removes the 'group' 
7010                 and 'other' write bits from the UNIX mode, allowing only the 
7011                 user who owns the directory to modify it.</P
7012 ><P
7013 >Following this Samba will bit-wise 'OR' the UNIX mode 
7014                 created from this parameter with the value of the <A
7015 HREF="#FORCEDIRECTORYMODE"
7016 ><TT
7017 CLASS="PARAMETER"
7018 ><I
7019 >force directory mode
7020                 </I
7021 ></TT
7022 ></A
7023 > parameter. This parameter is set to 000 by 
7024                 default (i.e. no extra mode bits are added).</P
7025 ><P
7026 >Note that this parameter does not apply to permissions
7027                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
7028                 a mask on access control lists also, they need to set the <A
7029 HREF="#DIRECTORYSECURITYMASK"
7030 ><TT
7031 CLASS="PARAMETER"
7032 ><I
7033 >directory security mask</I
7034 ></TT
7035 ></A
7036 >.</P
7037 ><P
7038 >See the <A
7039 HREF="#FORCEDIRECTORYMODE"
7040 ><TT
7041 CLASS="PARAMETER"
7042 ><I
7043 >force 
7044                 directory mode</I
7045 ></TT
7046 ></A
7047 > parameter to cause particular mode 
7048                 bits to always be set on created directories.</P
7049 ><P
7050 >See also the <A
7051 HREF="#CREATEMODE"
7052 ><TT
7053 CLASS="PARAMETER"
7054 ><I
7055 >create mode
7056                 </I
7057 ></TT
7058 ></A
7059 > parameter for masking mode bits on created files, 
7060                 and the <A
7061 HREF="#DIRECTORYSECURITYMASK"
7062 ><TT
7063 CLASS="PARAMETER"
7064 ><I
7065 >directory 
7066                 security mask</I
7067 ></TT
7068 ></A
7069 > parameter.</P
7070 ><P
7071 >Also refer to the <A
7072 HREF="#INHERITPERMISSIONS"
7073 ><TT
7074 CLASS="PARAMETER"
7075 ><I
7076 >               inherit permissions</I
7077 ></TT
7078 ></A
7079 > parameter.</P
7080 ><P
7081 >Default: <B
7082 CLASS="COMMAND"
7083 >directory mask = 0755</B
7084 ></P
7085 ><P
7086 >Example: <B
7087 CLASS="COMMAND"
7088 >directory mask = 0775</B
7089 ></P
7090 ></DD
7091 ><DT
7092 ><A
7093 NAME="DIRECTORYMODE"
7094 ></A
7095 >directory mode (S)</DT
7096 ><DD
7097 ><P
7098 >Synonym for <A
7099 HREF="#DIRECTORYMASK"
7100 ><TT
7101 CLASS="PARAMETER"
7102 ><I
7103 >               directory mask</I
7104 ></TT
7105 ></A
7106 ></P
7107 ></DD
7108 ><DT
7109 ><A
7110 NAME="DIRECTORYSECURITYMASK"
7111 ></A
7112 >directory security mask (S)</DT
7113 ><DD
7114 ><P
7115 >This parameter controls what UNIX permission bits 
7116                 can be modified when a Windows NT client is manipulating the UNIX 
7117                 permission on a directory using the native NT security dialog 
7118                 box.</P
7119 ><P
7120 >This parameter is applied as a mask (AND'ed with) to 
7121                 the changed permission bits, thus preventing any bits not in 
7122                 this mask from being modified. Essentially, zero bits in this 
7123                 mask may be treated as a set of bits the user is not allowed 
7124                 to change.</P
7125 ><P
7126 >If not set explicitly this parameter is set to 0777
7127                 meaning a user is allowed to modify all the user/group/world
7128                 permissions on a directory.</P
7129 ><P
7130 ><EM
7131 >Note</EM
7132 > that users who can access the 
7133                 Samba server through other means can easily bypass this restriction, 
7134                 so it is primarily useful for standalone "appliance" systems.  
7135                 Administrators of most normal systems will probably want to leave
7136                 it as the default of <TT
7137 CLASS="CONSTANT"
7138 >0777</TT
7139 >.</P
7140 ><P
7141 >See also the <A
7142 HREF="#FORCEDIRECTORYSECURITYMODE"
7143 ><TT
7144 CLASS="PARAMETER"
7145 ><I
7146 >               force directory security mode</I
7147 ></TT
7148 ></A
7149 >, <A
7150 HREF="#SECURITYMASK"
7151 ><TT
7152 CLASS="PARAMETER"
7153 ><I
7154 >security mask</I
7155 ></TT
7156 ></A
7157 >, 
7158                 <A
7159 HREF="#FORCESECURITYMODE"
7160 ><TT
7161 CLASS="PARAMETER"
7162 ><I
7163 >force security mode
7164                 </I
7165 ></TT
7166 ></A
7167 > parameters.</P
7168 ><P
7169 >Default: <B
7170 CLASS="COMMAND"
7171 >directory security mask = 0777</B
7172 ></P
7173 ><P
7174 >Example: <B
7175 CLASS="COMMAND"
7176 >directory security mask = 0700</B
7177 ></P
7178 ></DD
7179 ><DT
7180 ><A
7181 NAME="DISABLESPOOLSS"
7182 ></A
7183 >disable spoolss (G)</DT
7184 ><DD
7185 ><P
7186 >Enabling this parameter will disables Samba's support
7187                 for the SPOOLSS set of MS-RPC's and will yield identical behavior
7188                 as Samba 2.0.x.  Windows NT/2000 clients will downgrade to using
7189                 Lanman style printing commands. Windows 9x/ME will be uneffected by
7190                 the parameter. However, this will also disable the ability to upload
7191                 printer drivers to a Samba server via the Windows NT Add Printer
7192                 Wizard or by using the NT printer properties dialog window.  It will
7193                 also disable the capability of Windows NT/2000 clients to download
7194                 print drivers from the Samba host upon demand.
7195                 <EM
7196 >Be very careful about enabling this parameter.</EM
7197 >
7198                 </P
7199 ><P
7200 >See also <A
7201 HREF="#USECLIENTDRIVER"
7202 >use client driver</A
7203 >
7204                 </P
7205 ><P
7206 >Default : <B
7207 CLASS="COMMAND"
7208 >disable spoolss = no</B
7209 ></P
7210 ></DD
7211 ><DT
7212 ><A
7213 NAME="DNSPROXY"
7214 ></A
7215 >dns proxy (G)</DT
7216 ><DD
7217 ><P
7218 >Specifies that <A
7219 HREF="nmbd.8.html"
7220 TARGET="_top"
7221 >nmbd(8)</A
7222
7223                 when acting as a WINS server and finding that a NetBIOS name has not 
7224                 been registered, should treat the NetBIOS name word-for-word as a DNS 
7225                 name and do a lookup with the DNS server for that name on behalf of 
7226                 the name-querying client.</P
7227 ><P
7228 >Note that the maximum length for a NetBIOS name is 15 
7229                 characters, so the DNS name (or DNS alias) can likewise only be 
7230                 15 characters, maximum.</P
7231 ><P
7232 ><B
7233 CLASS="COMMAND"
7234 >nmbd</B
7235 > spawns a second copy of itself to do the
7236                 DNS name lookup requests, as doing a name lookup is a blocking 
7237                 action.</P
7238 ><P
7239 >See also the parameter <A
7240 HREF="#WINSSUPPORT"
7241 ><TT
7242 CLASS="PARAMETER"
7243 ><I
7244 >               wins support</I
7245 ></TT
7246 ></A
7247 >.</P
7248 ><P
7249 >Default: <B
7250 CLASS="COMMAND"
7251 >dns proxy = yes</B
7252 ></P
7253 ></DD
7254 ><DT
7255 ><A
7256 NAME="DOMAINADMINGROUP"
7257 ></A
7258 >domain admin group (G)</DT
7259 ><DD
7260 ><P
7261 >This parameter is intended as a temporary solution
7262                 to enable users to be a member of the "Domain Admins" group when 
7263                 a Samba host is acting as a PDC.  A complete solution will be provided
7264                 by a system for mapping Windows NT/2000 groups onto UNIX groups.
7265                 Please note that this parameter has a somewhat confusing name.  It 
7266                 accepts a list of usernames and of group names in standard 
7267                 <TT
7268 CLASS="FILENAME"
7269 >smb.conf</TT
7270 >       notation.
7271                 </P
7272 ><P
7273 >See also <A
7274 HREF="#DOMAINGUESTGROUP"
7275 ><TT
7276 CLASS="PARAMETER"
7277 ><I
7278 >domain
7279                 guest group</I
7280 ></TT
7281 ></A
7282 >, <A
7283 HREF="#DOMAINLOGONS"
7284 ><TT
7285 CLASS="PARAMETER"
7286 ><I
7287 >domain
7288                 logons</I
7289 ></TT
7290 ></A
7291 >
7292                 </P
7293 ><P
7294 >Default: <EM
7295 >no domain administrators</EM
7296 ></P
7297 ><P
7298 >Example: <B
7299 CLASS="COMMAND"
7300 >domain admin group = root @wheel</B
7301 ></P
7302 ></DD
7303 ><DT
7304 ><A
7305 NAME="DOMAINGUESTGROUP"
7306 ></A
7307 >domain guest group (G)</DT
7308 ><DD
7309 ><P
7310 >This parameter is intended as a temporary solution
7311                 to enable users to be a member of the "Domain Guests" group when 
7312                 a Samba host is acting as a PDC.  A complete solution will be provided
7313                 by a system for mapping Windows NT/2000 groups onto UNIX groups.
7314                 Please note that this parameter has a somewhat confusing name.  It 
7315                 accepts a list of usernames and of group names in standard 
7316                 <TT
7317 CLASS="FILENAME"
7318 >smb.conf</TT
7319 >       notation.
7320                 </P
7321 ><P
7322 >See also <A
7323 HREF="#DOMAINADMINGROUP"
7324 ><TT
7325 CLASS="PARAMETER"
7326 ><I
7327 >domain
7328                 admin group</I
7329 ></TT
7330 ></A
7331 >, <A
7332 HREF="#DOMAINLOGONS"
7333 ><TT
7334 CLASS="PARAMETER"
7335 ><I
7336 >domain
7337                 logons</I
7338 ></TT
7339 ></A
7340 >
7341                 </P
7342 ><P
7343 >Default: <EM
7344 >no domain guests</EM
7345 ></P
7346 ><P
7347 >Example: <B
7348 CLASS="COMMAND"
7349 >domain guest group = nobody @guest</B
7350 ></P
7351 ></DD
7352 ><DT
7353 ><A
7354 NAME="DOMAINLOGONS"
7355 ></A
7356 >domain logons (G)</DT
7357 ><DD
7358 ><P
7359 >If set to <TT
7360 CLASS="CONSTANT"
7361 >true</TT
7362 >, the Samba server will serve 
7363                 Windows 95/98 Domain logons for the <A
7364 HREF="#WORKGROUP"
7365 >               <TT
7366 CLASS="PARAMETER"
7367 ><I
7368 >workgroup</I
7369 ></TT
7370 ></A
7371 > it is in. Samba 2.2 also 
7372                 has limited capability to act as a domain controller for Windows 
7373                 NT 4 Domains.  For more details on setting up this feature see 
7374                 the Samba-PDC-HOWTO included in the <TT
7375 CLASS="FILENAME"
7376 >htmldocs/</TT
7377 >
7378                 directory shipped with the source code.</P
7379 ><P
7380 >Default: <B
7381 CLASS="COMMAND"
7382 >domain logons = no</B
7383 ></P
7384 ></DD
7385 ><DT
7386 ><A
7387 NAME="DOMAINMASTER"
7388 ></A
7389 >domain master (G)</DT
7390 ><DD
7391 ><P
7392 >Tell <A
7393 HREF="nmbd.8.html"
7394 TARGET="_top"
7395 ><B
7396 CLASS="COMMAND"
7397 >               nmbd(8)</B
7398 ></A
7399 > to enable WAN-wide browse list
7400                 collation. Setting this option causes <B
7401 CLASS="COMMAND"
7402 >nmbd</B
7403 > to
7404                 claim a special domain specific NetBIOS name that identifies 
7405                 it as a domain master browser for its given <A
7406 HREF="#WORKGROUP"
7407 >               <TT
7408 CLASS="PARAMETER"
7409 ><I
7410 >workgroup</I
7411 ></TT
7412 ></A
7413 >. Local master browsers 
7414                 in the same <TT
7415 CLASS="PARAMETER"
7416 ><I
7417 >workgroup</I
7418 ></TT
7419 > on broadcast-isolated 
7420                 subnets will give this <B
7421 CLASS="COMMAND"
7422 >nmbd</B
7423 > their local browse lists, 
7424                 and then ask <A
7425 HREF="smbd.8.html"
7426 TARGET="_top"
7427 ><B
7428 CLASS="COMMAND"
7429 >smbd(8)</B
7430 ></A
7431
7432                 for a complete copy of the browse list for the whole wide area 
7433                 network.  Browser clients will then contact their local master browser, 
7434                 and will receive the domain-wide browse list, instead of just the list 
7435                 for their broadcast-isolated subnet.</P
7436 ><P
7437 >Note that Windows NT Primary Domain Controllers expect to be 
7438                 able to claim this <TT
7439 CLASS="PARAMETER"
7440 ><I
7441 >workgroup</I
7442 ></TT
7443 > specific special 
7444                 NetBIOS name that identifies them as domain master browsers for 
7445                 that <TT
7446 CLASS="PARAMETER"
7447 ><I
7448 >workgroup</I
7449 ></TT
7450 > by default (i.e. there is no 
7451                 way to prevent a Windows NT PDC from attempting to do this). This 
7452                 means that if this parameter is set and <B
7453 CLASS="COMMAND"
7454 >nmbd</B
7455 > claims 
7456                 the special name for a <TT
7457 CLASS="PARAMETER"
7458 ><I
7459 >workgroup</I
7460 ></TT
7461 > before a Windows 
7462                 NT PDC is able to do so then cross subnet browsing will behave 
7463                 strangely and may fail.</P
7464 ><P
7465 >If <A
7466 HREF="#DOMAINLOGONS"
7467 ><B
7468 CLASS="COMMAND"
7469 >domain logons = yes</B
7470 >
7471                 </A
7472 >, then the default behavior is to enable the <TT
7473 CLASS="PARAMETER"
7474 ><I
7475 >domain 
7476                 master</I
7477 ></TT
7478 > parameter.  If <TT
7479 CLASS="PARAMETER"
7480 ><I
7481 >domain logons</I
7482 ></TT
7483 > is 
7484                 not enabled (the default setting), then neither will <TT
7485 CLASS="PARAMETER"
7486 ><I
7487 >domain 
7488                 master</I
7489 ></TT
7490 > be enabled by default.</P
7491 ><P
7492 >Default: <B
7493 CLASS="COMMAND"
7494 >domain master = auto</B
7495 ></P
7496 ></DD
7497 ><DT
7498 ><A
7499 NAME="DONTDESCEND"
7500 ></A
7501 >dont descend (S)</DT
7502 ><DD
7503 ><P
7504 >There are certain directories on some systems 
7505                 (e.g., the <TT
7506 CLASS="FILENAME"
7507 >/proc</TT
7508 > tree under Linux) that are either not 
7509                 of interest to clients or are infinitely deep (recursive). This 
7510                 parameter allows you to specify a comma-delimited list of directories 
7511                 that the server should always show as empty.</P
7512 ><P
7513 >Note that Samba can be very fussy about the exact format 
7514                 of the "dont descend" entries. For example you may need <TT
7515 CLASS="FILENAME"
7516 >               ./proc</TT
7517 > instead of just <TT
7518 CLASS="FILENAME"
7519 >/proc</TT
7520 >. 
7521                 Experimentation is the best policy :-)  </P
7522 ><P
7523 >Default: <EM
7524 >none (i.e., all directories are OK 
7525                 to descend)</EM
7526 ></P
7527 ><P
7528 >Example: <B
7529 CLASS="COMMAND"
7530 >dont descend = /proc,/dev</B
7531 ></P
7532 ></DD
7533 ><DT
7534 ><A
7535 NAME="DOSFILEMODE"
7536 ></A
7537 >dos filemode (S)</DT
7538 ><DD
7539 ><P
7540 > The default behavior in Samba is to provide 
7541                 UNIX-like behavior where only the owner of a file/directory is 
7542                 able to change the permissions on it.  However, this behavior
7543                 is often confusing to  DOS/Windows users.  Enabling this parameter 
7544                 allows a user who has write access to the file (by whatever 
7545                 means) to modify the permissions on it.  Note that a user
7546                 belonging to the group owning the file will not be allowed to
7547                 change permissions if the group is only granted read access.
7548                 Ownership of the file/directory is not changed, only the permissions 
7549                 are modified.</P
7550 ><P
7551 >Default: <B
7552 CLASS="COMMAND"
7553 >dos filemode = no</B
7554 ></P
7555 ></DD
7556 ><DT
7557 ><A
7558 NAME="DOSFILETIMERESOLUTION"
7559 ></A
7560 >dos filetime resolution (S)</DT
7561 ><DD
7562 ><P
7563 >Under the DOS and Windows FAT filesystem, the finest 
7564                 granularity on time resolution is two seconds. Setting this parameter 
7565                 for a share causes Samba to round the reported time down to the 
7566                 nearest two second boundary when a query call that requires one second 
7567                 resolution is made to <A
7568 HREF="smbd.8.html"
7569 TARGET="_top"
7570 ><B
7571 CLASS="COMMAND"
7572 >smbd(8)</B
7573 >
7574                 </A
7575 >.</P
7576 ><P
7577 >This option is mainly used as a compatibility option for Visual 
7578                 C++ when used against Samba shares. If oplocks are enabled on a 
7579                 share, Visual C++ uses two different time reading calls to check if a 
7580                 file has changed since it was last read. One of these calls uses a
7581                 one-second granularity, the other uses a two second granularity. As
7582                 the two second call rounds any odd second down, then if the file has a
7583                 timestamp of an odd number of seconds then the two timestamps will not
7584                 match and Visual C++ will keep reporting the file has changed. Setting
7585                 this option causes the two timestamps to match, and Visual C++ is
7586                 happy.</P
7587 ><P
7588 >Default: <B
7589 CLASS="COMMAND"
7590 >dos filetime resolution = no</B
7591 ></P
7592 ></DD
7593 ><DT
7594 ><A
7595 NAME="DOSFILETIMES"
7596 ></A
7597 >dos filetimes (S)</DT
7598 ><DD
7599 ><P
7600 >Under DOS and Windows, if a user can write to a 
7601                 file they can change the timestamp on it. Under POSIX semantics, 
7602                 only the owner of the file or root may change the timestamp. By 
7603                 default, Samba runs with POSIX semantics and refuses to change the 
7604                 timestamp on a file if the user <B
7605 CLASS="COMMAND"
7606 >smbd</B
7607 > is acting 
7608                 on behalf of is not the file owner. Setting this option to <TT
7609 CLASS="CONSTANT"
7610 >               true</TT
7611 > allows DOS semantics and <A
7612 HREF="smbd.8.html"
7613 TARGET="_top"
7614 >smbd</A
7615 > will change the file 
7616                 timestamp as DOS requires.</P
7617 ><P
7618 >Default: <B
7619 CLASS="COMMAND"
7620 >dos filetimes = no</B
7621 ></P
7622 ></DD
7623 ><DT
7624 ><A
7625 NAME="ENCRYPTPASSWORDS"
7626 ></A
7627 >encrypt passwords (G)</DT
7628 ><DD
7629 ><P
7630 >This boolean controls whether encrypted passwords 
7631                 will be negotiated with the client. Note that Windows NT 4.0 SP3 and 
7632                 above and also Windows 98 will by default expect encrypted passwords 
7633                 unless a registry entry is changed. To use encrypted passwords in 
7634                 Samba see the file ENCRYPTION.txt in the Samba documentation 
7635                 directory <TT
7636 CLASS="FILENAME"
7637 >docs/</TT
7638 > shipped with the source code.</P
7639 ><P
7640 >In order for encrypted passwords to work correctly
7641                 <A
7642 HREF="smbd.8.html"
7643 TARGET="_top"
7644 ><B
7645 CLASS="COMMAND"
7646 >smbd(8)</B
7647 ></A
7648 > must either 
7649                 have access to a local <A
7650 HREF="smbpasswd.5.html"
7651 TARGET="_top"
7652 ><TT
7653 CLASS="FILENAME"
7654 >smbpasswd(5)
7655                 </TT
7656 ></A
7657 > file (see the <A
7658 HREF="smbpasswd.8.html"
7659 TARGET="_top"
7660 ><B
7661 CLASS="COMMAND"
7662 >               smbpasswd(8)</B
7663 ></A
7664 > program for information on how to set up 
7665                 and maintain this file), or set the <A
7666 HREF="#SECURITY"
7667 >security = [server|domain|ads]</A
7668 > parameter which 
7669                 causes <B
7670 CLASS="COMMAND"
7671 >smbd</B
7672 > to authenticate against another 
7673                 server.</P
7674 ><P
7675 >Default: <B
7676 CLASS="COMMAND"
7677 >encrypt passwords = yes</B
7678 ></P
7679 ></DD
7680 ><DT
7681 ><A
7682 NAME="ENHANCEDBROWSING"
7683 ></A
7684 >enhanced browsing (G)</DT
7685 ><DD
7686 ><P
7687 >This option enables a couple of enhancements to 
7688                 cross-subnet browse propagation that have been added in Samba 
7689                 but which are not standard in Microsoft implementations.  
7690                 </P
7691 ><P
7692 >The first enhancement to browse propagation consists of a regular
7693                 wildcard query to a Samba WINS server for all Domain Master Browsers,
7694                 followed by a browse synchronization with each of the returned
7695                 DMBs. The second enhancement consists of a regular randomised browse
7696                 synchronization with all currently known DMBs.</P
7697 ><P
7698 >You may wish to disable this option if you have a problem with empty
7699                 workgroups not disappearing from browse lists. Due to the restrictions
7700                 of the browse protocols these enhancements can cause a empty workgroup
7701                 to stay around forever which can be annoying.</P
7702 ><P
7703 >In general you should leave this option enabled as it makes
7704                 cross-subnet browse propagation much more reliable.</P
7705 ><P
7706 >Default: <B
7707 CLASS="COMMAND"
7708 >enhanced browsing = yes</B
7709 ></P
7710 ></DD
7711 ><DT
7712 ><A
7713 NAME="ENUMPORTSCOMMAND"
7714 ></A
7715 >enumports command (G)</DT
7716 ><DD
7717 ><P
7718 >The concept of a "port" is fairly foreign
7719                 to UNIX hosts.  Under Windows NT/2000 print servers, a port
7720                 is associated with a port monitor and generally takes the form of
7721                 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
7722                 (i.e. LPD Port Monitor, etc...).  By default, Samba has only one
7723                 port defined--<TT
7724 CLASS="CONSTANT"
7725 >"Samba Printer Port"</TT
7726 >.  Under 
7727                 Windows NT/2000, all printers must have a valid port name.  
7728                 If you wish to have a list of ports displayed (<B
7729 CLASS="COMMAND"
7730 >smbd
7731                 </B
7732 > does not use a port name for anything) other than 
7733                 the default <TT
7734 CLASS="CONSTANT"
7735 >"Samba Printer Port"</TT
7736 >, you 
7737                 can define <TT
7738 CLASS="PARAMETER"
7739 ><I
7740 >enumports command</I
7741 ></TT
7742 > to point to
7743                 a program which should generate a list of ports, one per line,
7744                 to standard output.  This listing will then be used in response
7745                 to the level 1 and 2 EnumPorts() RPC.</P
7746 ><P
7747 >Default: <EM
7748 >no enumports command</EM
7749 ></P
7750 ><P
7751 >Example: <B
7752 CLASS="COMMAND"
7753 >enumports command = /usr/bin/listports
7754                 </B
7755 ></P
7756 ></DD
7757 ><DT
7758 ><A
7759 NAME="EXEC"
7760 ></A
7761 >exec (S)</DT
7762 ><DD
7763 ><P
7764 >This is a synonym for <A
7765 HREF="#PREEXEC"
7766 >               <TT
7767 CLASS="PARAMETER"
7768 ><I
7769 >preexec</I
7770 ></TT
7771 ></A
7772 >.</P
7773 ></DD
7774 ><DT
7775 ><A
7776 NAME="FAKEDIRECTORYCREATETIMES"
7777 ></A
7778 >fake directory create times (S)</DT
7779 ><DD
7780 ><P
7781 >NTFS and Windows VFAT file systems keep a create 
7782                 time for all files and directories. This is not the same as the 
7783                 ctime - status change time - that Unix keeps, so Samba by default 
7784                 reports the earliest of the various times Unix does keep. Setting 
7785                 this parameter for a share causes Samba to always report midnight 
7786                 1-1-1980 as the create time for directories.</P
7787 ><P
7788 >This option is mainly used as a compatibility option for 
7789                 Visual C++ when used against Samba shares. Visual C++ generated 
7790                 makefiles have the object directory as a dependency for each object 
7791                 file, and a make rule to create the directory. Also, when NMAKE 
7792                 compares timestamps it uses the creation time when examining a 
7793                 directory. Thus the object directory will be created if it does not 
7794                 exist, but once it does exist it will always have an earlier 
7795                 timestamp than the object files it contains.</P
7796 ><P
7797 >However, Unix time semantics mean that the create time 
7798                 reported by Samba will be updated whenever a file is created or 
7799                 or deleted in the directory.  NMAKE finds all object files in 
7800                 the object directory.  The timestamp of the last one built is then 
7801                 compared to the timestamp of the object directory.  If the 
7802                 directory's timestamp if newer, then all object files
7803                 will be rebuilt.  Enabling this option 
7804                 ensures directories always predate their contents and an NMAKE build 
7805                 will proceed as expected.</P
7806 ><P
7807 >Default: <B
7808 CLASS="COMMAND"
7809 >fake directory create times = no</B
7810 ></P
7811 ></DD
7812 ><DT
7813 ><A
7814 NAME="FAKEOPLOCKS"
7815 ></A
7816 >fake oplocks (S)</DT
7817 ><DD
7818 ><P
7819 >Oplocks are the way that SMB clients get permission 
7820                 from a server to locally cache file operations. If a server grants 
7821                 an oplock (opportunistic lock) then the client is free to assume 
7822                 that it is the only one accessing the file and it will aggressively 
7823                 cache file data. With some oplock types the client may even cache 
7824                 file open/close operations. This can give enormous performance benefits.
7825                 </P
7826 ><P
7827 >When you set <B
7828 CLASS="COMMAND"
7829 >fake oplocks = yes</B
7830 >, <A
7831 HREF="smbd.8.html"
7832 TARGET="_top"
7833 ><B
7834 CLASS="COMMAND"
7835 >smbd(8)</B
7836 ></A
7837 > will
7838                 always grant oplock requests no matter how many clients are using 
7839                 the file.</P
7840 ><P
7841 >It is generally much better to use the real <A
7842 HREF="#OPLOCKS"
7843 ><TT
7844 CLASS="PARAMETER"
7845 ><I
7846 >oplocks</I
7847 ></TT
7848 ></A
7849 > support rather 
7850                 than this parameter.</P
7851 ><P
7852 >If you enable this option on all read-only shares or 
7853                 shares that you know will only be accessed from one client at a 
7854                 time such as physically read-only media like CDROMs, you will see 
7855                 a big performance improvement on many operations. If you enable 
7856                 this option on shares where multiple clients may be accessing the 
7857                 files read-write at the same time you can get data corruption. Use 
7858                 this option carefully!</P
7859 ><P
7860 >Default: <B
7861 CLASS="COMMAND"
7862 >fake oplocks = no</B
7863 ></P
7864 ></DD
7865 ><DT
7866 ><A
7867 NAME="FOLLOWSYMLINKS"
7868 ></A
7869 >follow symlinks (S)</DT
7870 ><DD
7871 ><P
7872 >This parameter allows the Samba administrator 
7873                 to stop <A
7874 HREF="smbd.8.html"
7875 TARGET="_top"
7876 ><B
7877 CLASS="COMMAND"
7878 >smbd(8)</B
7879 ></A
7880
7881                 from following symbolic links in a particular share. Setting this 
7882                 parameter to <TT
7883 CLASS="CONSTANT"
7884 >no</TT
7885 > prevents any file or directory 
7886                 that is a symbolic link from being followed (the user will get an 
7887                 error).  This option is very useful to stop users from adding a 
7888                 symbolic link to <TT
7889 CLASS="FILENAME"
7890 >/etc/passwd</TT
7891 > in their home 
7892                 directory for instance.  However it will slow filename lookups 
7893                 down slightly.</P
7894 ><P
7895 >This option is enabled (i.e. <B
7896 CLASS="COMMAND"
7897 >smbd</B
7898 > will 
7899                 follow symbolic links) by default.</P
7900 ><P
7901 >Default: <B
7902 CLASS="COMMAND"
7903 >follow symlinks = yes</B
7904 ></P
7905 ></DD
7906 ><DT
7907 ><A
7908 NAME="FORCECREATEMODE"
7909 ></A
7910 >force create mode (S)</DT
7911 ><DD
7912 ><P
7913 >This parameter specifies a set of UNIX mode bit 
7914                 permissions that will <EM
7915 >always</EM
7916 > be set on a 
7917                 file created by Samba. This is done by bitwise 'OR'ing these bits onto 
7918                 the mode bits of a file that is being created or having its 
7919                 permissions changed. The default for this parameter is (in octal) 
7920                 000. The modes in this parameter are bitwise 'OR'ed onto the file 
7921                 mode after the mask set in the <TT
7922 CLASS="PARAMETER"
7923 ><I
7924 >create mask</I
7925 ></TT
7926
7927                 parameter is applied.</P
7928 ><P
7929 >See also the parameter <A
7930 HREF="#CREATEMASK"
7931 ><TT
7932 CLASS="PARAMETER"
7933 ><I
7934 >create 
7935                 mask</I
7936 ></TT
7937 ></A
7938 > for details on masking mode bits on files.</P
7939 ><P
7940 >See also the <A
7941 HREF="#INHERITPERMISSIONS"
7942 ><TT
7943 CLASS="PARAMETER"
7944 ><I
7945 >inherit 
7946                 permissions</I
7947 ></TT
7948 ></A
7949 > parameter.</P
7950 ><P
7951 >Default: <B
7952 CLASS="COMMAND"
7953 >force create mode = 000</B
7954 ></P
7955 ><P
7956 >Example: <B
7957 CLASS="COMMAND"
7958 >force create mode = 0755</B
7959 ></P
7960 ><P
7961 >would force all created files to have read and execute 
7962                 permissions set for 'group' and 'other' as well as the 
7963                 read/write/execute bits set for the 'user'.</P
7964 ></DD
7965 ><DT
7966 ><A
7967 NAME="FORCEDIRECTORYMODE"
7968 ></A
7969 >force directory mode (S)</DT
7970 ><DD
7971 ><P
7972 >This parameter specifies a set of UNIX mode bit 
7973                 permissions that will <EM
7974 >always</EM
7975 > be set on a directory 
7976                 created by Samba. This is done by bitwise 'OR'ing these bits onto the 
7977                 mode bits of a directory that is being created. The default for this 
7978                 parameter is (in octal) 0000 which will not add any extra permission 
7979                 bits to a created directory. This operation is done after the mode 
7980                 mask in the parameter <TT
7981 CLASS="PARAMETER"
7982 ><I
7983 >directory mask</I
7984 ></TT
7985 > is 
7986                 applied.</P
7987 ><P
7988 >See also the parameter <A
7989 HREF="#DIRECTORYMASK"
7990 ><TT
7991 CLASS="PARAMETER"
7992 ><I
7993 >               directory mask</I
7994 ></TT
7995 ></A
7996 > for details on masking mode bits 
7997                 on created directories.</P
7998 ><P
7999 >See also the <A
8000 HREF="#INHERITPERMISSIONS"
8001 ><TT
8002 CLASS="PARAMETER"
8003 ><I
8004 >               inherit permissions</I
8005 ></TT
8006 ></A
8007 > parameter.</P
8008 ><P
8009 >Default: <B
8010 CLASS="COMMAND"
8011 >force directory mode = 000</B
8012 ></P
8013 ><P
8014 >Example: <B
8015 CLASS="COMMAND"
8016 >force directory mode = 0755</B
8017 ></P
8018 ><P
8019 >would force all created directories to have read and execute
8020                 permissions set for 'group' and 'other' as well as the
8021                 read/write/execute bits set for the 'user'.</P
8022 ></DD
8023 ><DT
8024 ><A
8025 NAME="FORCEDIRECTORYSECURITYMODE"
8026 ></A
8027 >force directory 
8028                 security mode (S)</DT
8029 ><DD
8030 ><P
8031 >This parameter controls what UNIX permission bits 
8032                 can be modified when a Windows NT client is manipulating the UNIX 
8033                 permission on a directory using the native NT security dialog box.</P
8034 ><P
8035 >This parameter is applied as a mask (OR'ed with) to the 
8036                 changed permission bits, thus forcing any bits in this mask that 
8037                 the user may have modified to be on. Essentially, one bits in this 
8038                 mask may be treated as a set of bits that, when modifying security 
8039                 on a directory, the user has always set to be 'on'.</P
8040 ><P
8041 >If not set explicitly this parameter is 000, which 
8042                 allows a user to modify all the user/group/world permissions on a 
8043                 directory without restrictions.</P
8044 ><P
8045 ><EM
8046 >Note</EM
8047 > that users who can access the 
8048                 Samba server through other means can easily bypass this restriction, 
8049                 so it is primarily useful for standalone "appliance" systems.  
8050                 Administrators of most normal systems will probably want to leave
8051                 it set as 0000.</P
8052 ><P
8053 >See also the <A
8054 HREF="#DIRECTORYSECURITYMASK"
8055 ><TT
8056 CLASS="PARAMETER"
8057 ><I
8058 >               directory security mask</I
8059 ></TT
8060 ></A
8061 >, <A
8062 HREF="#SECURITYMASK"
8063 >               <TT
8064 CLASS="PARAMETER"
8065 ><I
8066 >security mask</I
8067 ></TT
8068 ></A
8069 >, 
8070                 <A
8071 HREF="#FORCESECURITYMODE"
8072 ><TT
8073 CLASS="PARAMETER"
8074 ><I
8075 >force security mode
8076                 </I
8077 ></TT
8078 ></A
8079 > parameters.</P
8080 ><P
8081 >Default: <B
8082 CLASS="COMMAND"
8083 >force directory security mode = 0</B
8084 ></P
8085 ><P
8086 >Example: <B
8087 CLASS="COMMAND"
8088 >force directory security mode = 700</B
8089 ></P
8090 ></DD
8091 ><DT
8092 ><A
8093 NAME="FORCEGROUP"
8094 ></A
8095 >force group (S)</DT
8096 ><DD
8097 ><P
8098 >This specifies a UNIX group name that will be 
8099                 assigned as the default primary group for all users connecting 
8100                 to this service. This is useful for sharing files by ensuring 
8101                 that all access to files on service will use the named group for 
8102                 their permissions checking. Thus, by assigning permissions for this 
8103                 group to the files and directories within this service the Samba 
8104                 administrator can restrict or allow sharing of these files.</P
8105 ><P
8106 >In Samba 2.0.5 and above this parameter has extended 
8107                 functionality in the following way. If the group name listed here 
8108                 has a '+' character prepended to it then the current user accessing 
8109                 the share only has the primary group default assigned to this group 
8110                 if they are already assigned as a member of that group. This allows 
8111                 an administrator to decide that only users who are already in a 
8112                 particular group will create files with group ownership set to that 
8113                 group. This gives a finer granularity of ownership assignment. For 
8114                 example, the setting <TT
8115 CLASS="FILENAME"
8116 >force group = +sys</TT
8117 > means 
8118                 that only users who are already in group sys will have their default
8119                 primary group assigned to sys when accessing this Samba share. All
8120                 other users will retain their ordinary primary group.</P
8121 ><P
8122 >If the <A
8123 HREF="#FORCEUSER"
8124 ><TT
8125 CLASS="PARAMETER"
8126 ><I
8127 >force user
8128                 </I
8129 ></TT
8130 ></A
8131 > parameter is also set the group specified in 
8132                 <TT
8133 CLASS="PARAMETER"
8134 ><I
8135 >force group</I
8136 ></TT
8137 > will override the primary group
8138                 set in <TT
8139 CLASS="PARAMETER"
8140 ><I
8141 >force user</I
8142 ></TT
8143 >.</P
8144 ><P
8145 >See also <A
8146 HREF="#FORCEUSER"
8147 ><TT
8148 CLASS="PARAMETER"
8149 ><I
8150 >force 
8151                 user</I
8152 ></TT
8153 ></A
8154 >.</P
8155 ><P
8156 >Default: <EM
8157 >no forced group</EM
8158 ></P
8159 ><P
8160 >Example: <B
8161 CLASS="COMMAND"
8162 >force group = agroup</B
8163 ></P
8164 ></DD
8165 ><DT
8166 ><A
8167 NAME="FORCESECURITYMODE"
8168 ></A
8169 >force security mode (S)</DT
8170 ><DD
8171 ><P
8172 >This parameter controls what UNIX permission 
8173                 bits can be modified when a Windows NT client is manipulating 
8174                 the UNIX permission on a file using the native NT security dialog 
8175                 box.</P
8176 ><P
8177 >This parameter is applied as a mask (OR'ed with) to the 
8178                 changed permission bits, thus forcing any bits in this mask that 
8179                 the user may have modified to be on. Essentially, one bits in this 
8180                 mask may be treated as a set of bits that, when modifying security 
8181                 on a file, the user has always set to be 'on'.</P
8182 ><P
8183 >If not set explicitly this parameter is set to 0,
8184                 and allows a user to modify all the user/group/world permissions on a file,
8185                 with no restrictions.</P
8186 ><P
8187 ><EM
8188 >Note</EM
8189 > that users who can access 
8190                 the Samba server through other means can easily bypass this restriction, 
8191                 so it is primarily useful for standalone "appliance" systems.  
8192                 Administrators of most normal systems will probably want to leave
8193                 this set to 0000.</P
8194 ><P
8195 >See also the <A
8196 HREF="#FORCEDIRECTORYSECURITYMODE"
8197 ><TT
8198 CLASS="PARAMETER"
8199 ><I
8200 >               force directory security mode</I
8201 ></TT
8202 ></A
8203 >,
8204                 <A
8205 HREF="#DIRECTORYSECURITYMASK"
8206 ><TT
8207 CLASS="PARAMETER"
8208 ><I
8209 >directory security
8210                 mask</I
8211 ></TT
8212 ></A
8213 >, <A
8214 HREF="#SECURITYMASK"
8215 ><TT
8216 CLASS="PARAMETER"
8217 ><I
8218 >               security mask</I
8219 ></TT
8220 ></A
8221 > parameters.</P
8222 ><P
8223 >Default: <B
8224 CLASS="COMMAND"
8225 >force security mode = 0</B
8226 ></P
8227 ><P
8228 >Example: <B
8229 CLASS="COMMAND"
8230 >force security mode = 700</B
8231 ></P
8232 ></DD
8233 ><DT
8234 ><A
8235 NAME="FORCEUSER"
8236 ></A
8237 >force user (S)</DT
8238 ><DD
8239 ><P
8240 >This specifies a UNIX user name that will be 
8241                 assigned as the default user for all users connecting to this service. 
8242                 This is useful for sharing files. You should also use it carefully 
8243                 as using it incorrectly can cause security problems.</P
8244 ><P
8245 >This user name only gets used once a connection is established. 
8246                 Thus clients still need to connect as a valid user and supply a 
8247                 valid password. Once connected, all file operations will be performed 
8248                 as the "forced user", no matter what username the client connected 
8249                 as.  This can be very useful.</P
8250 ><P
8251 >In Samba 2.0.5 and above this parameter also causes the 
8252                 primary group of the forced user to be used as the primary group 
8253                 for all file activity. Prior to 2.0.5 the primary group was left 
8254                 as the primary group of the connecting user (this was a bug).</P
8255 ><P
8256 >See also <A
8257 HREF="#FORCEGROUP"
8258 ><TT
8259 CLASS="PARAMETER"
8260 ><I
8261 >force group
8262                 </I
8263 ></TT
8264 ></A
8265 ></P
8266 ><P
8267 >Default: <EM
8268 >no forced user</EM
8269 ></P
8270 ><P
8271 >Example: <B
8272 CLASS="COMMAND"
8273 >force user = auser</B
8274 ></P
8275 ></DD
8276 ><DT
8277 ><A
8278 NAME="FSTYPE"
8279 ></A
8280 >fstype (S)</DT
8281 ><DD
8282 ><P
8283 >This parameter allows the administrator to 
8284                 configure the string that specifies the type of filesystem a share 
8285                 is using that is reported by <A
8286 HREF="smbd.8.html"
8287 TARGET="_top"
8288 ><B
8289 CLASS="COMMAND"
8290 >smbd(8)
8291                 </B
8292 ></A
8293 > when a client queries the filesystem type
8294                 for a share. The default type is <TT
8295 CLASS="CONSTANT"
8296 >NTFS</TT
8297 > for 
8298                 compatibility with Windows NT but this can be changed to other 
8299                 strings such as <TT
8300 CLASS="CONSTANT"
8301 >Samba</TT
8302 > or <TT
8303 CLASS="CONSTANT"
8304 >FAT
8305                 </TT
8306 > if required.</P
8307 ><P
8308 >Default: <B
8309 CLASS="COMMAND"
8310 >fstype = NTFS</B
8311 ></P
8312 ><P
8313 >Example: <B
8314 CLASS="COMMAND"
8315 >fstype = Samba</B
8316 ></P
8317 ></DD
8318 ><DT
8319 ><A
8320 NAME="GETWDCACHE"
8321 ></A
8322 >getwd cache (G)</DT
8323 ><DD
8324 ><P
8325 >This is a tuning option. When this is enabled a 
8326                 caching algorithm will be used to reduce the time taken for getwd() 
8327                 calls. This can have a significant impact on performance, especially 
8328                 when the <A
8329 HREF="#WIDELINKS"
8330 ><TT
8331 CLASS="PARAMETER"
8332 ><I
8333 >wide links</I
8334 ></TT
8335 >
8336                 </A
8337 >parameter is set to <TT
8338 CLASS="CONSTANT"
8339 >false</TT
8340 >.</P
8341 ><P
8342 >Default: <B
8343 CLASS="COMMAND"
8344 >getwd cache = yes</B
8345 ></P
8346 ></DD
8347 ><DT
8348 ><A
8349 NAME="GROUP"
8350 ></A
8351 >group (S)</DT
8352 ><DD
8353 ><P
8354 >Synonym for <A
8355 HREF="#FORCEGROUP"
8356 ><TT
8357 CLASS="PARAMETER"
8358 ><I
8359 >force 
8360                 group</I
8361 ></TT
8362 ></A
8363 >.</P
8364 ></DD
8365 ><DT
8366 ><A
8367 NAME="GUESTACCOUNT"
8368 ></A
8369 >guest account (S)</DT
8370 ><DD
8371 ><P
8372 >This is a username which will be used for access 
8373                 to services which are specified as <A
8374 HREF="#GUESTOK"
8375 ><TT
8376 CLASS="PARAMETER"
8377 ><I
8378 >               guest ok</I
8379 ></TT
8380 ></A
8381 > (see below). Whatever privileges this 
8382                 user has will be available to any client connecting to the guest service. 
8383                 Typically this user will exist in the password file, but will not
8384                 have a valid login. The user account "ftp" is often a good choice 
8385                 for this parameter. If a username is specified in a given service, 
8386                 the specified username overrides this one.</P
8387 ><P
8388 >One some systems the default guest account "nobody" may not 
8389                 be able to print. Use another account in this case. You should test 
8390                 this by trying to log in as your guest user (perhaps by using the 
8391                 <B
8392 CLASS="COMMAND"
8393 >su -</B
8394 > command) and trying to print using the 
8395                 system print command such as <B
8396 CLASS="COMMAND"
8397 >lpr(1)</B
8398 > or <B
8399 CLASS="COMMAND"
8400 >               lp(1)</B
8401 >.</P
8402 ><P
8403 >Default: <EM
8404 >specified at compile time, usually 
8405                 "nobody"</EM
8406 ></P
8407 ><P
8408 >Example: <B
8409 CLASS="COMMAND"
8410 >guest account = ftp</B
8411 ></P
8412 ></DD
8413 ><DT
8414 ><A
8415 NAME="GUESTOK"
8416 ></A
8417 >guest ok (S)</DT
8418 ><DD
8419 ><P
8420 >If this parameter is <TT
8421 CLASS="CONSTANT"
8422 >yes</TT
8423 > for 
8424                 a service, then no password is required to connect to the service. 
8425                 Privileges will be those of the <A
8426 HREF="#GUESTACCOUNT"
8427 ><TT
8428 CLASS="PARAMETER"
8429 ><I
8430 >               guest account</I
8431 ></TT
8432 ></A
8433 >.</P
8434 ><P
8435 >See the section below on <A
8436 HREF="#SECURITY"
8437 ><TT
8438 CLASS="PARAMETER"
8439 ><I
8440 >               security</I
8441 ></TT
8442 ></A
8443 > for more information about this option.
8444                 </P
8445 ><P
8446 >Default: <B
8447 CLASS="COMMAND"
8448 >guest ok = no</B
8449 ></P
8450 ></DD
8451 ><DT
8452 ><A
8453 NAME="GUESTONLY"
8454 ></A
8455 >guest only (S)</DT
8456 ><DD
8457 ><P
8458 >If this parameter is <TT
8459 CLASS="CONSTANT"
8460 >yes</TT
8461 > for 
8462                 a service, then only guest connections to the service are permitted. 
8463                 This parameter will have no effect if <A
8464 HREF="#GUESTOK"
8465 >               <TT
8466 CLASS="PARAMETER"
8467 ><I
8468 >guest ok</I
8469 ></TT
8470 ></A
8471 > is not set for the service.</P
8472 ><P
8473 >See the section below on <A
8474 HREF="#SECURITY"
8475 ><TT
8476 CLASS="PARAMETER"
8477 ><I
8478 >               security</I
8479 ></TT
8480 ></A
8481 > for more information about this option.
8482                 </P
8483 ><P
8484 >Default: <B
8485 CLASS="COMMAND"
8486 >guest only = no</B
8487 ></P
8488 ></DD
8489 ><DT
8490 ><A
8491 NAME="HIDEDOTFILES"
8492 ></A
8493 >hide dot files (S)</DT
8494 ><DD
8495 ><P
8496 >This is a boolean parameter that controls whether 
8497                 files starting with a dot appear as hidden files.</P
8498 ><P
8499 >Default: <B
8500 CLASS="COMMAND"
8501 >hide dot files = yes</B
8502 ></P
8503 ></DD
8504 ><DT
8505 ><A
8506 NAME="HIDEFILES"
8507 ></A
8508 >hide files(S)</DT
8509 ><DD
8510 ><P
8511 >This is a list of files or directories that are not 
8512                 visible but are accessible.  The DOS 'hidden' attribute is applied 
8513                 to any files or directories that match.</P
8514 ><P
8515 >Each entry in the list must be separated by a '/', 
8516                 which allows spaces to be included in the entry.  '*'
8517                 and '?' can be used to specify multiple files or directories 
8518                 as in DOS wildcards.</P
8519 ><P
8520 >Each entry must be a Unix path, not a DOS path and must 
8521                 not include the Unix directory separator '/'.</P
8522 ><P
8523 >Note that the case sensitivity option is applicable 
8524                 in hiding files.</P
8525 ><P
8526 >Setting this parameter will affect the performance of Samba, 
8527                 as it will be forced to check all files and directories for a match 
8528                 as they are scanned.</P
8529 ><P
8530 >See also <A
8531 HREF="#HIDEDOTFILES"
8532 ><TT
8533 CLASS="PARAMETER"
8534 ><I
8535 >hide 
8536                 dot files</I
8537 ></TT
8538 ></A
8539 >, <A
8540 HREF="#VETOFILES"
8541 ><TT
8542 CLASS="PARAMETER"
8543 ><I
8544 >               veto files</I
8545 ></TT
8546 ></A
8547 > and <A
8548 HREF="#CASESENSITIVE"
8549 >               <TT
8550 CLASS="PARAMETER"
8551 ><I
8552 >case sensitive</I
8553 ></TT
8554 ></A
8555 >.</P
8556 ><P
8557 >Default: <EM
8558 >no file are hidden</EM
8559 ></P
8560 ><P
8561 >Example: <B
8562 CLASS="COMMAND"
8563 >hide files =
8564                 /.*/DesktopFolderDB/TrashFor%m/resource.frk/</B
8565 ></P
8566 ><P
8567 >The above example is based on files that the Macintosh 
8568                 SMB client (DAVE) available from <A
8569 HREF="http://www.thursby.com"
8570 TARGET="_top"
8571
8572                 Thursby</A
8573 > creates for internal use, and also still hides 
8574                 all files beginning with a dot.</P
8575 ></DD
8576 ><DT
8577 ><A
8578 NAME="HIDELOCALUSERS"
8579 ></A
8580 >hide local users(G)</DT
8581 ><DD
8582 ><P
8583 >This parameter toggles the hiding of local UNIX 
8584                 users (root, wheel, floppy, etc) from remote clients.</P
8585 ><P
8586 >Default: <B
8587 CLASS="COMMAND"
8588 >hide local users = no</B
8589 ></P
8590 ></DD
8591 ><DT
8592 ><A
8593 NAME="HIDEUNREADABLE"
8594 ></A
8595 >hide unreadable (S)</DT
8596 ><DD
8597 ><P
8598 >This parameter prevents clients from seeing the
8599                 existance of files that cannot be read. Defaults to off.</P
8600 ><P
8601 >Default: <B
8602 CLASS="COMMAND"
8603 >hide unreadable = no</B
8604 ></P
8605 ></DD
8606 ><DT
8607 ><A
8608 NAME="HOMEDIRMAP"
8609 ></A
8610 >homedir map (G)</DT
8611 ><DD
8612 ><P
8613 >If<A
8614 HREF="#NISHOMEDIR"
8615 ><TT
8616 CLASS="PARAMETER"
8617 ><I
8618 >nis homedir
8619                 </I
8620 ></TT
8621 ></A
8622 > is <TT
8623 CLASS="CONSTANT"
8624 >true</TT
8625 >, and <A
8626 HREF="smbd.8.html"
8627 TARGET="_top"
8628 ><B
8629 CLASS="COMMAND"
8630 >smbd(8)</B
8631 ></A
8632 > is also acting 
8633                 as a Win95/98 <TT
8634 CLASS="PARAMETER"
8635 ><I
8636 >logon server</I
8637 ></TT
8638 > then this parameter 
8639                 specifies the NIS (or YP) map from which the server for the user's 
8640                 home directory should be extracted.  At present, only the Sun 
8641                 auto.home map format is understood. The form of the map is:</P
8642 ><P
8643 ><B
8644 CLASS="COMMAND"
8645 >username       server:/some/file/system</B
8646 ></P
8647 ><P
8648 >and the program will extract the servername from before 
8649                 the first ':'.  There should probably be a better parsing system 
8650                 that copes with different map formats and also Amd (another 
8651                 automounter) maps.</P
8652 ><P
8653 ><EM
8654 >NOTE :</EM
8655 >A working NIS client is required on 
8656                 the system for this option to work.</P
8657 ><P
8658 >See also <A
8659 HREF="#NISHOMEDIR"
8660 ><TT
8661 CLASS="PARAMETER"
8662 ><I
8663 >nis homedir</I
8664 ></TT
8665 >
8666                 </A
8667 >, <A
8668 HREF="#DOMAINLOGONS"
8669 ><TT
8670 CLASS="PARAMETER"
8671 ><I
8672 >domain logons</I
8673 ></TT
8674 >
8675                 </A
8676 >.</P
8677 ><P
8678 >Default: <B
8679 CLASS="COMMAND"
8680 >homedir map = &#60;empty string&#62;</B
8681 ></P
8682 ><P
8683 >Example: <B
8684 CLASS="COMMAND"
8685 >homedir map = amd.homedir</B
8686 ></P
8687 ></DD
8688 ><DT
8689 ><A
8690 NAME="HOSTMSDFS"
8691 ></A
8692 >host msdfs (G)</DT
8693 ><DD
8694 ><P
8695 >This boolean parameter is only available 
8696                 if Samba has been configured and compiled with the <B
8697 CLASS="COMMAND"
8698 >               --with-msdfs</B
8699 > option. If set to <TT
8700 CLASS="CONSTANT"
8701 >yes</TT
8702 >, 
8703                 Samba will act as a Dfs server, and  allow Dfs-aware clients 
8704                 to browse Dfs trees hosted on the server.</P
8705 ><P
8706 >See also the <A
8707 HREF="#MSDFSROOT"
8708 ><TT
8709 CLASS="PARAMETER"
8710 ><I
8711 >               msdfs root</I
8712 ></TT
8713 ></A
8714 > share  level  parameter.  For
8715                 more  information  on  setting  up a Dfs tree on Samba,
8716                 refer to <A
8717 HREF="msdfs_setup.html"
8718 TARGET="_top"
8719 >msdfs_setup.html</A
8720 >.
8721                 </P
8722 ><P
8723 >Default: <B
8724 CLASS="COMMAND"
8725 >host msdfs = no</B
8726 ></P
8727 ></DD
8728 ><DT
8729 ><A
8730 NAME="HOSTSALLOW"
8731 ></A
8732 >hosts allow (S)</DT
8733 ><DD
8734 ><P
8735 >A synonym for this parameter is <TT
8736 CLASS="PARAMETER"
8737 ><I
8738 >allow 
8739                 hosts</I
8740 ></TT
8741 >.</P
8742 ><P
8743 >This parameter is a comma, space, or tab delimited 
8744                 set of hosts which are permitted to access a service.</P
8745 ><P
8746 >If specified in the [global] section then it will
8747                 apply to all services, regardless of whether the individual 
8748                 service has a different setting.</P
8749 ><P
8750 >You can specify the hosts by name or IP number. For 
8751                 example, you could restrict access to only the hosts on a 
8752                 Class C subnet with something like <B
8753 CLASS="COMMAND"
8754 >allow hosts = 150.203.5.
8755                 </B
8756 >. The full syntax of the list is described in the man 
8757                 page <TT
8758 CLASS="FILENAME"
8759 >hosts_access(5)</TT
8760 >. Note that this man
8761                 page may not be present on your system, so a brief description will
8762                 be given here also.</P
8763 ><P
8764 >Note that the localhost address 127.0.0.1 will always 
8765                 be allowed access unless specifically denied by a <A
8766 HREF="#HOSTSDENY"
8767 ><TT
8768 CLASS="PARAMETER"
8769 ><I
8770 >hosts deny</I
8771 ></TT
8772 ></A
8773 > option.</P
8774 ><P
8775 >You can also specify hosts by network/netmask pairs and 
8776                 by netgroup names if your system supports netgroups. The 
8777                 <EM
8778 >EXCEPT</EM
8779 > keyword can also be used to limit a 
8780                 wildcard list. The following examples may provide some help:</P
8781 ><P
8782 >Example 1: allow all IPs in 150.203.*.*; except one</P
8783 ><P
8784 ><B
8785 CLASS="COMMAND"
8786 >hosts allow = 150.203. EXCEPT 150.203.6.66</B
8787 ></P
8788 ><P
8789 >Example 2: allow hosts that match the given network/netmask</P
8790 ><P
8791 ><B
8792 CLASS="COMMAND"
8793 >hosts allow = 150.203.15.0/255.255.255.0</B
8794 ></P
8795 ><P
8796 >Example 3: allow a couple of hosts</P
8797 ><P
8798 ><B
8799 CLASS="COMMAND"
8800 >hosts allow = lapland, arvidsjaur</B
8801 ></P
8802 ><P
8803 >Example 4: allow only hosts in NIS netgroup "foonet", but 
8804                 deny access from one particular host</P
8805 ><P
8806 ><B
8807 CLASS="COMMAND"
8808 >hosts allow = @foonet</B
8809 ></P
8810 ><P
8811 ><B
8812 CLASS="COMMAND"
8813 >hosts deny = pirate</B
8814 ></P
8815 ><P
8816 >Note that access still requires suitable user-level passwords.</P
8817 ><P
8818 >See <A
8819 HREF="testparm.1.html"
8820 TARGET="_top"
8821 ><B
8822 CLASS="COMMAND"
8823 >testparm(1)</B
8824 >
8825                 </A
8826 > for a way of testing your host access to see if it does 
8827                 what you expect.</P
8828 ><P
8829 >Default: <EM
8830 >none (i.e., all hosts permitted access)
8831                 </EM
8832 ></P
8833 ><P
8834 >Example: <B
8835 CLASS="COMMAND"
8836 >allow hosts = 150.203.5. myhost.mynet.edu.au
8837                 </B
8838 ></P
8839 ></DD
8840 ><DT
8841 ><A
8842 NAME="HOSTSDENY"
8843 ></A
8844 >hosts deny (S)</DT
8845 ><DD
8846 ><P
8847 >The opposite of <TT
8848 CLASS="PARAMETER"
8849 ><I
8850 >hosts allow</I
8851 ></TT
8852
8853                 - hosts listed here are <EM
8854 >NOT</EM
8855 > permitted access to 
8856                 services unless the specific services have their own lists to override 
8857                 this one. Where the lists conflict, the <TT
8858 CLASS="PARAMETER"
8859 ><I
8860 >allow</I
8861 ></TT
8862
8863                 list takes precedence.</P
8864 ><P
8865 >Default: <EM
8866 >none (i.e., no hosts specifically excluded)
8867                 </EM
8868 ></P
8869 ><P
8870 >Example: <B
8871 CLASS="COMMAND"
8872 >hosts deny = 150.203.4. badhost.mynet.edu.au
8873                 </B
8874 ></P
8875 ></DD
8876 ><DT
8877 ><A
8878 NAME="HOSTSEQUIV"
8879 ></A
8880 >hosts equiv (G)</DT
8881 ><DD
8882 ><P
8883 >If this global parameter is a non-null string, 
8884                 it specifies the name of a file to read for the names of hosts 
8885                 and users who will be allowed access without specifying a password.
8886                 </P
8887 ><P
8888 >This is not be confused with <A
8889 HREF="#HOSTSALLOW"
8890 >               <TT
8891 CLASS="PARAMETER"
8892 ><I
8893 >hosts allow</I
8894 ></TT
8895 ></A
8896 > which is about hosts 
8897                 access to services and is more useful for guest services. <TT
8898 CLASS="PARAMETER"
8899 ><I
8900 >               hosts equiv</I
8901 ></TT
8902 > may be useful for NT clients which will 
8903                 not supply passwords to Samba.</P
8904 ><P
8905 ><EM
8906 >NOTE :</EM
8907 > The use of <TT
8908 CLASS="PARAMETER"
8909 ><I
8910 >hosts equiv
8911                 </I
8912 ></TT
8913 > can be a major security hole. This is because you are 
8914                 trusting the PC to supply the correct username. It is very easy to 
8915                 get a PC to supply a false username. I recommend that the 
8916                 <TT
8917 CLASS="PARAMETER"
8918 ><I
8919 >hosts equiv</I
8920 ></TT
8921 > option be only used if you really 
8922                 know what you are doing, or perhaps on a home network where you trust 
8923                 your spouse and kids. And only if you <EM
8924 >really</EM
8925 > trust 
8926                 them :-).</P
8927 ><P
8928 >Default: <EM
8929 >no host equivalences</EM
8930 ></P
8931 ><P
8932 >Example: <B
8933 CLASS="COMMAND"
8934 >hosts equiv = /etc/hosts.equiv</B
8935 ></P
8936 ></DD
8937 ><DT
8938 ><A
8939 NAME="INCLUDE"
8940 ></A
8941 >include (G)</DT
8942 ><DD
8943 ><P
8944 >This allows you to include one config file 
8945                 inside another.  The file is included literally, as though typed 
8946                 in place.</P
8947 ><P
8948 >It takes the standard substitutions, except <TT
8949 CLASS="PARAMETER"
8950 ><I
8951 >%u
8952                 </I
8953 ></TT
8954 >, <TT
8955 CLASS="PARAMETER"
8956 ><I
8957 >%P</I
8958 ></TT
8959 > and <TT
8960 CLASS="PARAMETER"
8961 ><I
8962 >%S</I
8963 ></TT
8964 >.
8965                 </P
8966 ><P
8967 >Default: <EM
8968 >no file included</EM
8969 ></P
8970 ><P
8971 >Example: <B
8972 CLASS="COMMAND"
8973 >include = /usr/local/samba/lib/admin_smb.conf
8974                 </B
8975 ></P
8976 ></DD
8977 ><DT
8978 ><A
8979 NAME="INHERITACLS"
8980 ></A
8981 >inherit acls (S)</DT
8982 ><DD
8983 ><P
8984 >This parameter can be used to ensure
8985                 that if default acls exist on parent directories,
8986                 they are always honored when creating a subdirectory.
8987                 The default behavior is to use the mode specified
8988                 when creating the directory.  Enabling this option
8989                 sets the mode to 0777, thus guaranteeing that 
8990                 default directory acls are propagated.
8991                 </P
8992 ><P
8993 >Default: <B
8994 CLASS="COMMAND"
8995 >inherit acls = no</B
8996 >
8997                 </P
8998 ></DD
8999 ><DT
9000 ><A
9001 NAME="INHERITPERMISSIONS"
9002 ></A
9003 >inherit permissions (S)</DT
9004 ><DD
9005 ><P
9006 >The permissions on new files and directories 
9007                 are normally governed by <A
9008 HREF="#CREATEMASK"
9009 ><TT
9010 CLASS="PARAMETER"
9011 ><I
9012 >               create mask</I
9013 ></TT
9014 ></A
9015 >, <A
9016 HREF="#DIRECTORYMASK"
9017 >               <TT
9018 CLASS="PARAMETER"
9019 ><I
9020 >directory mask</I
9021 ></TT
9022 ></A
9023 >, <A
9024 HREF="#FORCECREATEMODE"
9025 ><TT
9026 CLASS="PARAMETER"
9027 ><I
9028 >force create mode</I
9029 ></TT
9030 >
9031                 </A
9032 > and <A
9033 HREF="#FORCEDIRECTORYMODE"
9034 ><TT
9035 CLASS="PARAMETER"
9036 ><I
9037 >force 
9038                 directory mode</I
9039 ></TT
9040 ></A
9041 > but the boolean inherit 
9042                 permissions parameter overrides this.</P
9043 ><P
9044 >New directories inherit the mode of the parent directory,
9045                 including bits such as setgid.</P
9046 ><P
9047 >New files inherit their read/write bits from the parent 
9048                 directory.  Their execute bits continue to be determined by
9049                 <A
9050 HREF="#MAPARCHIVE"
9051 ><TT
9052 CLASS="PARAMETER"
9053 ><I
9054 >map archive</I
9055 ></TT
9056 >
9057                 </A
9058 >, <A
9059 HREF="#MAPHIDDEN"
9060 ><TT
9061 CLASS="PARAMETER"
9062 ><I
9063 >map hidden</I
9064 ></TT
9065 >
9066                 </A
9067 > and <A
9068 HREF="#MAPSYSTEM"
9069 ><TT
9070 CLASS="PARAMETER"
9071 ><I
9072 >map system</I
9073 ></TT
9074 >
9075                 </A
9076 > as usual.</P
9077 ><P
9078 >Note that the setuid bit is <EM
9079 >never</EM
9080 > set via 
9081                 inheritance (the code explicitly prohibits this).</P
9082 ><P
9083 >This can be particularly useful on large systems with 
9084                 many users, perhaps several thousand, to allow a single [homes] 
9085                 share to be used flexibly by each user.</P
9086 ><P
9087 >See also <A
9088 HREF="#CREATEMASK"
9089 ><TT
9090 CLASS="PARAMETER"
9091 ><I
9092 >create mask
9093                 </I
9094 ></TT
9095 ></A
9096 >, <A
9097 HREF="#DIRECTORYMASK"
9098 ><TT
9099 CLASS="PARAMETER"
9100 ><I
9101 >               directory mask</I
9102 ></TT
9103 ></A
9104 >, <A
9105 HREF="#FORCECREATEMODE"
9106 >               <TT
9107 CLASS="PARAMETER"
9108 ><I
9109 >force create mode</I
9110 ></TT
9111 ></A
9112 > and <A
9113 HREF="#FORCEDIRECTORYMODE"
9114 ><TT
9115 CLASS="PARAMETER"
9116 ><I
9117 >force directory mode</I
9118 ></TT
9119 >
9120                 </A
9121 >.</P
9122 ><P
9123 >Default: <B
9124 CLASS="COMMAND"
9125 >inherit permissions = no</B
9126 ></P
9127 ></DD
9128 ><DT
9129 ><A
9130 NAME="INTERFACES"
9131 ></A
9132 >interfaces (G)</DT
9133 ><DD
9134 ><P
9135 >This option allows you to override the default 
9136                 network interfaces list that Samba will use for browsing, name 
9137                 registration and other NBT traffic. By default Samba will query 
9138                 the kernel for the list of all active interfaces and use any 
9139                 interfaces except 127.0.0.1 that are broadcast capable.</P
9140 ><P
9141 >The option takes a list of interface strings. Each string 
9142                 can be in any of the following forms:</P
9143 ><P
9144 ></P
9145 ><UL
9146 ><LI
9147 ><P
9148 >a network interface name (such as eth0). 
9149                         This may include shell-like wildcards so eth* will match 
9150                         any interface starting with the substring "eth"</P
9151 ></LI
9152 ><LI
9153 ><P
9154 >an IP address. In this case the netmask is 
9155                         determined from the list of interfaces obtained from the 
9156                         kernel</P
9157 ></LI
9158 ><LI
9159 ><P
9160 >an IP/mask pair. </P
9161 ></LI
9162 ><LI
9163 ><P
9164 >a broadcast/mask pair.</P
9165 ></LI
9166 ></UL
9167 ><P
9168 >The "mask" parameters can either be a bit length (such 
9169                 as 24 for a C class network) or a full netmask in dotted 
9170                 decimal form.</P
9171 ><P
9172 >The "IP" parameters above can either be a full dotted 
9173                 decimal IP address or a hostname which will be looked up via 
9174                 the OS's normal hostname resolution mechanisms.</P
9175 ><P
9176 >For example, the following line:</P
9177 ><P
9178 ><B
9179 CLASS="COMMAND"
9180 >interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
9181                 </B
9182 ></P
9183 ><P
9184 >would configure three network interfaces corresponding 
9185                 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. 
9186                 The netmasks of the latter two interfaces would be set to 255.255.255.0.</P
9187 ><P
9188 >See also <A
9189 HREF="#BINDINTERFACESONLY"
9190 ><TT
9191 CLASS="PARAMETER"
9192 ><I
9193 >bind 
9194                 interfaces only</I
9195 ></TT
9196 ></A
9197 >.</P
9198 ><P
9199 >Default: <EM
9200 >all active interfaces except 127.0.0.1 
9201                 that are broadcast capable</EM
9202 ></P
9203 ></DD
9204 ><DT
9205 ><A
9206 NAME="INVALIDUSERS"
9207 ></A
9208 >invalid users (S)</DT
9209 ><DD
9210 ><P
9211 >This is a list of users that should not be allowed 
9212                 to login to this service. This is really a <EM
9213 >paranoid</EM
9214
9215                 check to absolutely ensure an improper setting does not breach 
9216                 your security.</P
9217 ><P
9218 >A name starting with a '@' is interpreted as an NIS 
9219                 netgroup first (if your system supports NIS), and then as a UNIX 
9220                 group if the name was not found in the NIS netgroup database.</P
9221 ><P
9222 >A name starting with '+' is interpreted only 
9223                 by looking in the UNIX group database. A name starting with 
9224                 '&#38;' is interpreted only by looking in the NIS netgroup database 
9225                 (this requires NIS to be working on your system). The characters 
9226                 '+' and '&#38;' may be used at the start of the name in either order 
9227                 so the value <TT
9228 CLASS="PARAMETER"
9229 ><I
9230 >+&#38;group</I
9231 ></TT
9232 > means check the 
9233                 UNIX group database, followed by the NIS netgroup database, and 
9234                 the value <TT
9235 CLASS="PARAMETER"
9236 ><I
9237 >&#38;+group</I
9238 ></TT
9239 > means check the NIS
9240                 netgroup database, followed by the UNIX group database (the 
9241                 same as the '@' prefix).</P
9242 ><P
9243 >The current servicename is substituted for <TT
9244 CLASS="PARAMETER"
9245 ><I
9246 >%S</I
9247 ></TT
9248 >. 
9249                 This is useful in the [homes] section.</P
9250 ><P
9251 >See also <A
9252 HREF="#VALIDUSERS"
9253 ><TT
9254 CLASS="PARAMETER"
9255 ><I
9256 >valid users
9257                 </I
9258 ></TT
9259 ></A
9260 >.</P
9261 ><P
9262 >Default: <EM
9263 >no invalid users</EM
9264 ></P
9265 ><P
9266 >Example: <B
9267 CLASS="COMMAND"
9268 >invalid users = root fred admin @wheel
9269                 </B
9270 ></P
9271 ></DD
9272 ><DT
9273 ><A
9274 NAME="KEEPALIVE"
9275 ></A
9276 >keepalive (G)</DT
9277 ><DD
9278 ><P
9279 >The value of the parameter (an integer) represents 
9280                 the number of seconds between <TT
9281 CLASS="PARAMETER"
9282 ><I
9283 >keepalive</I
9284 ></TT
9285
9286                 packets. If this parameter is zero, no keepalive packets will be 
9287                 sent. Keepalive packets, if sent, allow the server to tell whether 
9288                 a client is still present and responding.</P
9289 ><P
9290 >Keepalives should, in general, not be needed if the socket 
9291                 being used has the SO_KEEPALIVE attribute set on it (see <A
9292 HREF="#SOCKETOPTIONS"
9293 ><TT
9294 CLASS="PARAMETER"
9295 ><I
9296 >socket options</I
9297 ></TT
9298 ></A
9299 >). 
9300                 Basically you should only use this option if you strike difficulties.</P
9301 ><P
9302 >Default: <B
9303 CLASS="COMMAND"
9304 >keepalive = 300</B
9305 ></P
9306 ><P
9307 >Example: <B
9308 CLASS="COMMAND"
9309 >keepalive = 600</B
9310 ></P
9311 ></DD
9312 ><DT
9313 ><A
9314 NAME="KERNELOPLOCKS"
9315 ></A
9316 >kernel oplocks (G)</DT
9317 ><DD
9318 ><P
9319 >For UNIXes that support kernel based <A
9320 HREF="#OPLOCKS"
9321 ><TT
9322 CLASS="PARAMETER"
9323 ><I
9324 >oplocks</I
9325 ></TT
9326 ></A
9327 >
9328                 (currently only IRIX and the Linux 2.4 kernel), this parameter 
9329                 allows the use of them to be turned on or off.</P
9330 ><P
9331 >Kernel oplocks support allows Samba <TT
9332 CLASS="PARAMETER"
9333 ><I
9334 >oplocks
9335                 </I
9336 ></TT
9337 > to be broken whenever a local UNIX process or NFS operation 
9338                 accesses a file that <A
9339 HREF="smbd.8.html"
9340 TARGET="_top"
9341 ><B
9342 CLASS="COMMAND"
9343 >smbd(8)</B
9344 >
9345                 </A
9346 > has oplocked. This allows complete data consistency between 
9347                 SMB/CIFS, NFS and local file access (and is a <EM
9348 >very</EM
9349
9350                 cool feature :-).</P
9351 ><P
9352 >This parameter defaults to <TT
9353 CLASS="CONSTANT"
9354 >on</TT
9355 >, but is translated
9356                 to a no-op on systems that no not have the necessary kernel support.
9357                 You should never need to touch this parameter.</P
9358 ><P
9359 >See also the <A
9360 HREF="#OPLOCKS"
9361 ><TT
9362 CLASS="PARAMETER"
9363 ><I
9364 >oplocks</I
9365 ></TT
9366 >
9367                 </A
9368 > and <A
9369 HREF="#LEVEL2OPLOCKS"
9370 ><TT
9371 CLASS="PARAMETER"
9372 ><I
9373 >level2 oplocks
9374                 </I
9375 ></TT
9376 ></A
9377 > parameters.</P
9378 ><P
9379 >Default: <B
9380 CLASS="COMMAND"
9381 >kernel oplocks = yes</B
9382 ></P
9383 ></DD
9384 ><DT
9385 ><A
9386 NAME="LANMANAUTH"
9387 ></A
9388 >lanman auth (G)</DT
9389 ><DD
9390 ><P
9391 >This parameter determines whether or not <A
9392 HREF="smbd.8.html"
9393 TARGET="_top"
9394 >smbd</A
9395 > will
9396                 attempt to authenticate users using the LANMAN password hash.
9397                 If disabled, only clients which support NT password hashes (e.g. Windows 
9398                 NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS 
9399                 network client) will be able to connect to the Samba host.</P
9400 ><P
9401 >Default : <B
9402 CLASS="COMMAND"
9403 >lanman auth = yes</B
9404 ></P
9405 ></DD
9406 ><DT
9407 ><A
9408 NAME="LARGEREADWRITE"
9409 ></A
9410 >large readwrite (G)</DT
9411 ><DD
9412 ><P
9413 >This parameter determines whether or not <A
9414 HREF="smbd.8.html"
9415 TARGET="_top"
9416 >smbd</A
9417 >
9418                 supports the new 64k streaming read and write varient SMB requests introduced
9419                 with Windows 2000. Note that due to Windows 2000 client redirector bugs
9420                 this requires Samba to be running on a 64-bit capable operating system such
9421                 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
9422                 Windows 2000 clients. Defaults to on. Not as tested as some other Samba
9423                 code paths.
9424                 </P
9425 ><P
9426 >Default : <B
9427 CLASS="COMMAND"
9428 >large readwrite = yes</B
9429 ></P
9430 ></DD
9431 ><DT
9432 ><A
9433 NAME="LDAPADMINDN"
9434 ></A
9435 >ldap admin dn (G)</DT
9436 ><DD
9437 ><P
9438 >This parameter is only available if Samba has been
9439                 configure to include the <B
9440 CLASS="COMMAND"
9441 >--with-ldapsam</B
9442 > option
9443                 at compile time. This option should be considered experimental and
9444                 under active development.
9445                 </P
9446 ><P
9447 >               The <TT
9448 CLASS="PARAMETER"
9449 ><I
9450 >ldap admin dn</I
9451 ></TT
9452 > defines the Distinguished 
9453                 Name (DN) name used by Samba to contact the <A
9454 HREF="#LDAPSERVER"
9455 >ldap
9456                 server</A
9457 > when retreiving user account information. The <TT
9458 CLASS="PARAMETER"
9459 ><I
9460 >ldap
9461                 admin dn</I
9462 ></TT
9463 > is used in conjunction with the admin dn password
9464                 stored in the <TT
9465 CLASS="FILENAME"
9466 >private/secrets.tdb</TT
9467 > file.  See the
9468                 <A
9469 HREF="smbpasswd.8.html"
9470 TARGET="_top"
9471 ><B
9472 CLASS="COMMAND"
9473 >smbpasswd(8)</B
9474 ></A
9475 > man
9476                 page for more information on how to accmplish this.
9477                 </P
9478 ><P
9479 >Default : <EM
9480 >none</EM
9481 ></P
9482 ></DD
9483 ><DT
9484 ><A
9485 NAME="LDAPFILTER"
9486 ></A
9487 >ldap filter (G)</DT
9488 ><DD
9489 ><P
9490 >This parameter is only available if Samba has been
9491                 configure to include the <B
9492 CLASS="COMMAND"
9493 >--with-ldapsam</B
9494 > option
9495                 at compile time. This option should be considered experimental and
9496                 under active development.
9497                 </P
9498 ><P
9499 >               This parameter specifies the RFC 2254 compliant LDAP search filter.
9500                 The default is to match the login name with the <TT
9501 CLASS="CONSTANT"
9502 >uid</TT
9503
9504                 attribute for all entries matching the <TT
9505 CLASS="CONSTANT"
9506 >sambaAccount</TT
9507 >               
9508                 objectclass.  Note that this filter should only return one entry.
9509                 </P
9510 ><P
9511 >Default : <B
9512 CLASS="COMMAND"
9513 >ldap filter = (&#38;(uid=%u)(objectclass=sambaAccount))</B
9514 ></P
9515 ></DD
9516 ><DT
9517 ><A
9518 NAME="LDAPPORT"
9519 ></A
9520 >ldap port (G)</DT
9521 ><DD
9522 ><P
9523 >This parameter is only available if Samba has been
9524                 configure to include the <B
9525 CLASS="COMMAND"
9526 >--with-ldapsam</B
9527 > option
9528                 at compile time. This option should be considered experimental and
9529                 under active development.
9530                 </P
9531 ><P
9532 >               This option is used to control the tcp port number used to contact
9533                 the <A
9534 HREF="#LDAPSERVER"
9535 ><TT
9536 CLASS="PARAMETER"
9537 ><I
9538 >ldap server</I
9539 ></TT
9540 ></A
9541 >.
9542                 The default is to use the stand LDAPS port 636.
9543                 </P
9544 ><P
9545 >See Also: <A
9546 HREF="#LDAPSSL"
9547 >ldap ssl</A
9548 >
9549                 </P
9550 ><P
9551 >Default : <B
9552 CLASS="COMMAND"
9553 >ldap port = 636</B
9554 ></P
9555 ></DD
9556 ><DT
9557 ><A
9558 NAME="LDAPSERVER"
9559 ></A
9560 >ldap server (G)</DT
9561 ><DD
9562 ><P
9563 >This parameter is only available if Samba has been
9564                 configure to include the <B
9565 CLASS="COMMAND"
9566 >--with-ldapsam</B
9567 > option
9568                 at compile time. This option should be considered experimental and
9569                 under active development.
9570                 </P
9571 ><P
9572 >               This parameter should contains the FQDN of the ldap directory 
9573                 server which should be queried to locate user account information.
9574                 </P
9575 ><P
9576 >Default : <B
9577 CLASS="COMMAND"
9578 >ldap server = localhost</B
9579 ></P
9580 ></DD
9581 ><DT
9582 ><A
9583 NAME="LDAPSSL"
9584 ></A
9585 >ldap ssl (G)</DT
9586 ><DD
9587 ><P
9588 >This parameter is only available if Samba has been
9589                 configure to include the <B
9590 CLASS="COMMAND"
9591 >--with-ldapsam</B
9592 > option
9593                 at compile time. This option should be considered experimental and
9594                 under active development.
9595                 </P
9596 ><P
9597 >               This option is used to define whether or not Samba should
9598                 use SSL when connecting to the <A
9599 HREF="#LDAPSERVER"
9600 ><TT
9601 CLASS="PARAMETER"
9602 ><I
9603 >ldap
9604                 server</I
9605 ></TT
9606 ></A
9607 >.  This is <EM
9608 >NOT</EM
9609 > related to
9610                 Samba SSL support which is enabled by specifying the 
9611                 <B
9612 CLASS="COMMAND"
9613 >--with-ssl</B
9614 > option to the <TT
9615 CLASS="FILENAME"
9616 >configure</TT
9617
9618                 script (see <A
9619 HREF="#SSL"
9620 ><TT
9621 CLASS="PARAMETER"
9622 ><I
9623 >ssl</I
9624 ></TT
9625 ></A
9626 >).
9627                 </P
9628 ><P
9629 >               The <TT
9630 CLASS="PARAMETER"
9631 ><I
9632 >ldap ssl</I
9633 ></TT
9634 > can be set to one of three values:
9635                 (a) <TT
9636 CLASS="CONSTANT"
9637 >on</TT
9638 > - Always use SSL when contacting the 
9639                 <TT
9640 CLASS="PARAMETER"
9641 ><I
9642 >ldap   server</I
9643 ></TT
9644 >, (b) <TT
9645 CLASS="CONSTANT"
9646 >off</TT
9647 > -
9648                 Never use SSL when querying the directory, or (c) <TT
9649 CLASS="CONSTANT"
9650 >start_tls</TT
9651
9652                 - Use the LDAPv3 StartTLS extended operation 
9653                 (RFC2830) for communicating with the directory server.
9654                 </P
9655 ><P
9656 >Default : <B
9657 CLASS="COMMAND"
9658 >ldap ssl = on</B
9659 ></P
9660 ></DD
9661 ><DT
9662 ><A
9663 NAME="LDAPSUFFIX"
9664 ></A
9665 >ldap suffix (G)</DT
9666 ><DD
9667 ><P
9668 >This parameter is only available if Samba has been
9669                 configure to include the <B
9670 CLASS="COMMAND"
9671 >--with-ldapsam</B
9672 > option
9673                 at compile time. This option should be considered experimental and
9674                 under active development.
9675                 </P
9676 ><P
9677 >Default : <EM
9678 >none</EM
9679 ></P
9680 ></DD
9681 ><DT
9682 ><A
9683 NAME="LEVEL2OPLOCKS"
9684 ></A
9685 >level2 oplocks (S)</DT
9686 ><DD
9687 ><P
9688 >This parameter controls whether Samba supports
9689                 level2 (read-only) oplocks on a share.</P
9690 ><P
9691 >Level2, or read-only oplocks allow Windows NT clients 
9692                 that have an oplock on a file to downgrade from a read-write oplock 
9693                 to a read-only oplock once a second client opens the file (instead 
9694                 of releasing all oplocks on a second open, as in traditional, 
9695                 exclusive oplocks). This allows all openers of the file that 
9696                 support level2 oplocks to cache the file for read-ahead only (ie. 
9697                 they may not cache writes or lock requests) and increases performance 
9698                 for many accesses of files that are not commonly written (such as 
9699                 application .EXE files).</P
9700 ><P
9701 >Once one of the clients which have a read-only oplock 
9702                 writes to the file all clients are notified (no reply is needed 
9703                 or waited for) and told to break their oplocks to "none" and 
9704                 delete any read-ahead caches.</P
9705 ><P
9706 >It is recommended that this parameter be turned on 
9707                 to speed access to shared executables.</P
9708 ><P
9709 >For more discussions on level2 oplocks see the CIFS spec.</P
9710 ><P
9711 >Currently, if <A
9712 HREF="#KERNELOPLOCKS"
9713 ><TT
9714 CLASS="PARAMETER"
9715 ><I
9716 >kernel 
9717                 oplocks</I
9718 ></TT
9719 ></A
9720 > are supported then level2 oplocks are 
9721                 not granted (even if this parameter is set to <TT
9722 CLASS="CONSTANT"
9723 >yes</TT
9724 >). 
9725                 Note also, the <A
9726 HREF="#OPLOCKS"
9727 ><TT
9728 CLASS="PARAMETER"
9729 ><I
9730 >oplocks</I
9731 ></TT
9732 >
9733                 </A
9734 > parameter must be set to <TT
9735 CLASS="CONSTANT"
9736 >true</TT
9737 > on this share in order for 
9738                 this parameter to have any effect.</P
9739 ><P
9740 >See also the <A
9741 HREF="#OPLOCKS"
9742 ><TT
9743 CLASS="PARAMETER"
9744 ><I
9745 >oplocks</I
9746 ></TT
9747 >
9748                 </A
9749 > and <A
9750 HREF="#OPLOCKS"
9751 ><TT
9752 CLASS="PARAMETER"
9753 ><I
9754 >kernel oplocks</I
9755 ></TT
9756 >
9757                 </A
9758 > parameters.</P
9759 ><P
9760 >Default: <B
9761 CLASS="COMMAND"
9762 >level2 oplocks = yes</B
9763 ></P
9764 ></DD
9765 ><DT
9766 ><A
9767 NAME="LMANNOUNCE"
9768 ></A
9769 >lm announce (G)</DT
9770 ><DD
9771 ><P
9772 >This parameter determines if <A
9773 HREF="nmbd.8.html"
9774 TARGET="_top"
9775 >               <B
9776 CLASS="COMMAND"
9777 >nmbd(8)</B
9778 ></A
9779 > will produce Lanman announce 
9780                 broadcasts that are needed by OS/2 clients in order for them to see 
9781                 the Samba server in their browse list. This parameter can have three 
9782                 values, <TT
9783 CLASS="CONSTANT"
9784 >true</TT
9785 >, <TT
9786 CLASS="CONSTANT"
9787 >false</TT
9788 >, or
9789                 <TT
9790 CLASS="CONSTANT"
9791 >auto</TT
9792 >. The default is <TT
9793 CLASS="CONSTANT"
9794 >auto</TT
9795 >.  
9796                 If set to <TT
9797 CLASS="CONSTANT"
9798 >false</TT
9799 > Samba will never produce these 
9800                 broadcasts. If set to <TT
9801 CLASS="CONSTANT"
9802 >true</TT
9803 > Samba will produce 
9804                 Lanman announce broadcasts at a frequency set by the parameter 
9805                 <TT
9806 CLASS="PARAMETER"
9807 ><I
9808 >lm interval</I
9809 ></TT
9810 >. If set to <TT
9811 CLASS="CONSTANT"
9812 >auto</TT
9813
9814                 Samba will not send Lanman announce broadcasts by default but will 
9815                 listen for them. If it hears such a broadcast on the wire it will 
9816                 then start sending them at a frequency set by the parameter 
9817                 <TT
9818 CLASS="PARAMETER"
9819 ><I
9820 >lm interval</I
9821 ></TT
9822 >.</P
9823 ><P
9824 >See also <A
9825 HREF="#LMINTERVAL"
9826 ><TT
9827 CLASS="PARAMETER"
9828 ><I
9829 >lm interval
9830                 </I
9831 ></TT
9832 ></A
9833 >.</P
9834 ><P
9835 >Default: <B
9836 CLASS="COMMAND"
9837 >lm announce = auto</B
9838 ></P
9839 ><P
9840 >Example: <B
9841 CLASS="COMMAND"
9842 >lm announce = yes</B
9843 ></P
9844 ></DD
9845 ><DT
9846 ><A
9847 NAME="LMINTERVAL"
9848 ></A
9849 >lm interval (G)</DT
9850 ><DD
9851 ><P
9852 >If Samba is set to produce Lanman announce 
9853                 broadcasts needed by OS/2 clients (see the <A
9854 HREF="#LMANNOUNCE"
9855 >               <TT
9856 CLASS="PARAMETER"
9857 ><I
9858 >lm announce</I
9859 ></TT
9860 ></A
9861 > parameter) then this 
9862                 parameter defines the frequency in seconds with which they will be 
9863                 made.  If this is set to zero then no Lanman announcements will be 
9864                 made despite the setting of the <TT
9865 CLASS="PARAMETER"
9866 ><I
9867 >lm announce</I
9868 ></TT
9869
9870                 parameter.</P
9871 ><P
9872 >See also <A
9873 HREF="#LMANNOUNCE"
9874 ><TT
9875 CLASS="PARAMETER"
9876 ><I
9877 >lm 
9878                 announce</I
9879 ></TT
9880 ></A
9881 >.</P
9882 ><P
9883 >Default: <B
9884 CLASS="COMMAND"
9885 >lm interval = 60</B
9886 ></P
9887 ><P
9888 >Example: <B
9889 CLASS="COMMAND"
9890 >lm interval = 120</B
9891 ></P
9892 ></DD
9893 ><DT
9894 ><A
9895 NAME="LOADPRINTERS"
9896 ></A
9897 >load printers (G)</DT
9898 ><DD
9899 ><P
9900 >A boolean variable that controls whether all 
9901                 printers in the printcap will be loaded for browsing by default. 
9902                 See the <A
9903 HREF="#AEN79"
9904 >printers</A
9905 > section for 
9906                 more details.</P
9907 ><P
9908 >Default: <B
9909 CLASS="COMMAND"
9910 >load printers = yes</B
9911 ></P
9912 ></DD
9913 ><DT
9914 ><A
9915 NAME="LOCALMASTER"
9916 ></A
9917 >local master (G)</DT
9918 ><DD
9919 ><P
9920 >This option allows <A
9921 HREF="nmbd.8.html"
9922 TARGET="_top"
9923 ><B
9924 CLASS="COMMAND"
9925 >               nmbd(8)</B
9926 ></A
9927 > to try and become a local master browser 
9928                 on a subnet. If set to <TT
9929 CLASS="CONSTANT"
9930 >false</TT
9931 > then <B
9932 CLASS="COMMAND"
9933 >               nmbd</B
9934 > will not attempt to become a local master browser 
9935                 on a subnet and will also lose in all browsing elections. By
9936                 default this value is set to <TT
9937 CLASS="CONSTANT"
9938 >true</TT
9939 >. Setting this value to <TT
9940 CLASS="CONSTANT"
9941 >true</TT
9942 > doesn't
9943                 mean that Samba will <EM
9944 >become</EM
9945 > the local master 
9946                 browser on a subnet, just that <B
9947 CLASS="COMMAND"
9948 >nmbd</B
9949 > will <EM
9950 >               participate</EM
9951 > in elections for local master browser.</P
9952 ><P
9953 >Setting this value to <TT
9954 CLASS="CONSTANT"
9955 >false</TT
9956 > will cause <B
9957 CLASS="COMMAND"
9958 >nmbd</B
9959 >
9960                 <EM
9961 >never</EM
9962 > to become a local master browser.</P
9963 ><P
9964 >Default: <B
9965 CLASS="COMMAND"
9966 >local master = yes</B
9967 ></P
9968 ></DD
9969 ><DT
9970 ><A
9971 NAME="LOCKDIR"
9972 ></A
9973 >lock dir (G)</DT
9974 ><DD
9975 ><P
9976 >Synonym for <A
9977 HREF="#LOCKDIRECTORY"
9978 ><TT
9979 CLASS="PARAMETER"
9980 ><I
9981 >               lock directory</I
9982 ></TT
9983 ></A
9984 >.</P
9985 ></DD
9986 ><DT
9987 ><A
9988 NAME="LOCKDIRECTORY"
9989 ></A
9990 >lock directory (G)</DT
9991 ><DD
9992 ><P
9993 >This option specifies the directory where lock 
9994                 files will be placed.  The lock files are used to implement the 
9995                 <A
9996 HREF="#MAXCONNECTIONS"
9997 ><TT
9998 CLASS="PARAMETER"
9999 ><I
10000 >max connections</I
10001 ></TT
10002 >
10003                 </A
10004 > option.</P
10005 ><P
10006 >Default: <B
10007 CLASS="COMMAND"
10008 >lock directory = ${prefix}/var/locks</B
10009 ></P
10010 ><P
10011 >Example: <B
10012 CLASS="COMMAND"
10013 >lock directory = /var/run/samba/locks</B
10014 >
10015                 </P
10016 ></DD
10017 ><DT
10018 ><A
10019 NAME="LOCKSPINCOUNT"
10020 ></A
10021 >lock spin count (G)</DT
10022 ><DD
10023 ><P
10024 >This parameter controls the number of times
10025                 that smbd should attempt to gain a byte range lock on the 
10026                 behalf of a client request.  Experiments have shown that
10027                 Windows 2k servers do not reply with a failure if the lock
10028                 could not be immediately granted, but try a few more times
10029                 in case the lock could later be aquired.  This behavior
10030                 is used to support PC database formats such as MS Access
10031                 and FoxPro.
10032                 </P
10033 ><P
10034 >Default: <B
10035 CLASS="COMMAND"
10036 >lock spin count = 2</B
10037 >
10038                 </P
10039 ></DD
10040 ><DT
10041 ><A
10042 NAME="LOCKSPINTIME"
10043 ></A
10044 >lock spin time (G)</DT
10045 ><DD
10046 ><P
10047 >The time in microseconds that smbd should 
10048                 pause before attempting to gain a failed lock.  See
10049                 <A
10050 HREF="#LOCKSPINCOUNT"
10051 ><TT
10052 CLASS="PARAMETER"
10053 ><I
10054 >lock spin 
10055                 count</I
10056 ></TT
10057 ></A
10058 > for more details.
10059                 </P
10060 ><P
10061 >Default: <B
10062 CLASS="COMMAND"
10063 >lock spin time = 10</B
10064 >
10065                 </P
10066 ></DD
10067 ><DT
10068 ><A
10069 NAME="LOCKING"
10070 ></A
10071 >locking (S)</DT
10072 ><DD
10073 ><P
10074 >This controls whether or not locking will be 
10075                 performed by the server in response to lock requests from the 
10076                 client.</P
10077 ><P
10078 >If <B
10079 CLASS="COMMAND"
10080 >locking = no</B
10081 >, all lock and unlock 
10082                 requests will appear to succeed and all lock queries will report 
10083                 that the file in question is available for locking.</P
10084 ><P
10085 >If <B
10086 CLASS="COMMAND"
10087 >locking = yes</B
10088 >, real locking will be performed 
10089                 by the server.</P
10090 ><P
10091 >This option <EM
10092 >may</EM
10093 > be useful for read-only 
10094                 filesystems which <EM
10095 >may</EM
10096 > not need locking (such as 
10097                 CDROM drives), although setting this parameter of <TT
10098 CLASS="CONSTANT"
10099 >no</TT
10100
10101                 is not really recommended even in this case.</P
10102 ><P
10103 >Be careful about disabling locking either globally or in a 
10104                 specific service, as lack of locking may result in data corruption. 
10105                 You should never need to set this parameter.</P
10106 ><P
10107 >Default: <B
10108 CLASS="COMMAND"
10109 >locking = yes</B
10110 ></P
10111 ></DD
10112 ><DT
10113 ><A
10114 NAME="LOGFILE"
10115 ></A
10116 >log file (G)</DT
10117 ><DD
10118 ><P
10119 >This option allows you to override the name 
10120                 of the Samba log file (also known as the debug file).</P
10121 ><P
10122 >This option takes the standard substitutions, allowing 
10123                 you to have separate log files for each user or machine.</P
10124 ><P
10125 >Example: <B
10126 CLASS="COMMAND"
10127 >log file = /usr/local/samba/var/log.%m
10128                 </B
10129 ></P
10130 ></DD
10131 ><DT
10132 ><A
10133 NAME="LOGLEVEL"
10134 ></A
10135 >log level (G)</DT
10136 ><DD
10137 ><P
10138 >The value of the parameter (an integer) allows 
10139                 the debug level (logging level) to be specified in the 
10140                 <TT
10141 CLASS="FILENAME"
10142 >smb.conf</TT
10143 > file. This is to give greater 
10144                 flexibility in the configuration of the system.</P
10145 ><P
10146 >The default will be the log level specified on 
10147                 the command line or level zero if none was specified.</P
10148 ><P
10149 >Example: <B
10150 CLASS="COMMAND"
10151 >log level = 3</B
10152 ></P
10153 ></DD
10154 ><DT
10155 ><A
10156 NAME="LOGONDRIVE"
10157 ></A
10158 >logon drive (G)</DT
10159 ><DD
10160 ><P
10161 >This parameter specifies the local path to 
10162                 which the home directory will be connected (see <A
10163 HREF="#LOGONHOME"
10164 ><TT
10165 CLASS="PARAMETER"
10166 ><I
10167 >logon home</I
10168 ></TT
10169 ></A
10170 >) 
10171                 and is only used by NT Workstations. </P
10172 ><P
10173 >Note that this option is only useful if Samba is set up as a
10174                 logon server.</P
10175 ><P
10176 >Default: <B
10177 CLASS="COMMAND"
10178 >logon drive = z:</B
10179 ></P
10180 ><P
10181 >Example: <B
10182 CLASS="COMMAND"
10183 >logon drive = h:</B
10184 ></P
10185 ></DD
10186 ><DT
10187 ><A
10188 NAME="LOGONHOME"
10189 ></A
10190 >logon home (G)</DT
10191 ><DD
10192 ><P
10193 >This parameter specifies the home directory 
10194                 location when a Win95/98 or NT Workstation logs into a Samba PDC.  
10195                 It allows you to do </P
10196 ><P
10197 ><TT
10198 CLASS="PROMPT"
10199 >C:\&#62; </TT
10200 ><TT
10201 CLASS="USERINPUT"
10202 ><B
10203 >NET USE H: /HOME</B
10204 ></TT
10205 >
10206                 </P
10207 ><P
10208 >from a command prompt, for example.</P
10209 ><P
10210 >This option takes the standard substitutions, allowing 
10211                 you to have separate logon scripts for each user or machine.</P
10212 ><P
10213 >This parameter can be used with Win9X workstations to ensure 
10214                 that roaming profiles are stored in a subdirectory of the user's 
10215                 home directory.  This is done in the following way:</P
10216 ><P
10217 ><B
10218 CLASS="COMMAND"
10219 >logon home = \\%N\%U\profile</B
10220 ></P
10221 ><P
10222 >This tells Samba to return the above string, with 
10223                 substitutions made when a client requests the info, generally 
10224                 in a NetUserGetInfo request.  Win9X clients truncate the info to
10225                 \\server\share when a user does <B
10226 CLASS="COMMAND"
10227 >net use /home</B
10228 >
10229                 but use the whole string when dealing with profiles.</P
10230 ><P
10231 >Note that in prior versions of Samba, the <A
10232 HREF="#LOGONPATH"
10233 >               <TT
10234 CLASS="PARAMETER"
10235 ><I
10236 >logon path</I
10237 ></TT
10238 ></A
10239 > was returned rather than 
10240                 <TT
10241 CLASS="PARAMETER"
10242 ><I
10243 >logon home</I
10244 ></TT
10245 >.  This broke <B
10246 CLASS="COMMAND"
10247 >net use 
10248                 /home</B
10249 > but allowed profiles outside the home directory.  
10250                 The current implementation is correct, and can be used for 
10251                 profiles if you use the above trick.</P
10252 ><P
10253 >This option is only useful if Samba is set up as a logon 
10254                 server.</P
10255 ><P
10256 >Default: <B
10257 CLASS="COMMAND"
10258 >logon home = "\\%N\%U"</B
10259 ></P
10260 ><P
10261 >Example: <B
10262 CLASS="COMMAND"
10263 >logon home = "\\remote_smb_server\%U"</B
10264 >
10265                 </P
10266 ></DD
10267 ><DT
10268 ><A
10269 NAME="LOGONPATH"
10270 ></A
10271 >logon path (G)</DT
10272 ><DD
10273 ><P
10274 >This parameter specifies the home directory 
10275                 where roaming profiles (NTuser.dat etc files for Windows NT) are 
10276                 stored.  Contrary to previous versions of these manual pages, it has 
10277                 nothing to do with Win 9X roaming profiles.  To find out how to 
10278                 handle roaming profiles for Win 9X system, see the <A
10279 HREF="#LOGONHOME"
10280 >               <TT
10281 CLASS="PARAMETER"
10282 ><I
10283 >logon home</I
10284 ></TT
10285 ></A
10286 > parameter.</P
10287 ><P
10288 >This option takes the standard substitutions, allowing you 
10289                 to have separate logon scripts for each user or machine.  It also 
10290                 specifies the directory from which the "Application Data", 
10291                 (<TT
10292 CLASS="FILENAME"
10293 >desktop</TT
10294 >, <TT
10295 CLASS="FILENAME"
10296 >start menu</TT
10297 >,
10298                 <TT
10299 CLASS="FILENAME"
10300 >network neighborhood</TT
10301 >, <TT
10302 CLASS="FILENAME"
10303 >programs</TT
10304
10305                 and other folders, and their contents, are loaded and displayed on 
10306                 your Windows NT client.</P
10307 ><P
10308 >The share and the path must be readable by the user for 
10309                 the preferences and directories to be loaded onto the Windows NT
10310                 client.  The share must be writeable when the user logs in for the first
10311                 time, in order that the Windows NT client can create the NTuser.dat
10312                 and other directories.</P
10313 ><P
10314 >Thereafter, the directories and any of the contents can, 
10315                 if required, be made read-only.  It is not advisable that the 
10316                 NTuser.dat file be made read-only - rename it to NTuser.man to 
10317                 achieve the desired effect (a <EM
10318 >MAN</EM
10319 >datory 
10320                 profile). </P
10321 ><P
10322 >Windows clients can sometimes maintain a connection to 
10323                 the [homes] share, even though there is no user logged in.  
10324                 Therefore, it is vital that the logon path does not include a 
10325                 reference to the homes share (i.e. setting this parameter to
10326                 \%N\%U\profile_path will cause problems).</P
10327 ><P
10328 >This option takes the standard substitutions, allowing 
10329                 you to have separate logon scripts for each user or machine.</P
10330 ><P
10331 >Note that this option is only useful if Samba is set up 
10332                 as a logon server.</P
10333 ><P
10334 >Default: <B
10335 CLASS="COMMAND"
10336 >logon path = \\%N\%U\profile</B
10337 ></P
10338 ><P
10339 >Example: <B
10340 CLASS="COMMAND"
10341 >logon path = \\PROFILESERVER\PROFILE\%U</B
10342 ></P
10343 ></DD
10344 ><DT
10345 ><A
10346 NAME="LOGONSCRIPT"
10347 ></A
10348 >logon script (G)</DT
10349 ><DD
10350 ><P
10351 >This parameter specifies the batch file (.bat) or 
10352                 NT command file (.cmd) to be downloaded and run on a machine when 
10353                 a user successfully logs in.  The file must contain the DOS 
10354                 style CR/LF line endings. Using a DOS-style editor to create the 
10355                 file is recommended.</P
10356 ><P
10357 >The script must be a relative path to the [netlogon] 
10358                 service.  If the [netlogon] service specifies a <A
10359 HREF="#PATH"
10360 >               <TT
10361 CLASS="PARAMETER"
10362 ><I
10363 >path</I
10364 ></TT
10365 ></A
10366 > of <TT
10367 CLASS="FILENAME"
10368 >/usr/local/samba/netlogon
10369                 </TT
10370 >, and <B
10371 CLASS="COMMAND"
10372 >logon script = STARTUP.BAT</B
10373 >, then 
10374                 the file that will be downloaded is:</P
10375 ><P
10376 ><TT
10377 CLASS="FILENAME"
10378 >/usr/local/samba/netlogon/STARTUP.BAT</TT
10379 ></P
10380 ><P
10381 >The contents of the batch file are entirely your choice.  A 
10382                 suggested command would be to add <B
10383 CLASS="COMMAND"
10384 >NET TIME \\SERVER /SET 
10385                 /YES</B
10386 >, to force every machine to synchronize clocks with 
10387                 the same time server.  Another use would be to add <B
10388 CLASS="COMMAND"
10389 >NET USE 
10390                 U: \\SERVER\UTILS</B
10391 > for commonly used utilities, or <B
10392 CLASS="COMMAND"
10393 >               NET USE Q: \\SERVER\ISO9001_QA</B
10394 > for example.</P
10395 ><P
10396 >Note that it is particularly important not to allow write 
10397                 access to the [netlogon] share, or to grant users write permission 
10398                 on the batch files in a secure environment, as this would allow 
10399                 the batch files to be arbitrarily modified and security to be 
10400                 breached.</P
10401 ><P
10402 >This option takes the standard substitutions, allowing you 
10403                 to have separate logon scripts for each user or machine.</P
10404 ><P
10405 >This option is only useful if Samba is set up as a logon 
10406                 server.</P
10407 ><P
10408 >Default: <EM
10409 >no logon script defined</EM
10410 ></P
10411 ><P
10412 >Example: <B
10413 CLASS="COMMAND"
10414 >logon script = scripts\%U.bat</B
10415 ></P
10416 ></DD
10417 ><DT
10418 ><A
10419 NAME="LPPAUSECOMMAND"
10420 ></A
10421 >lppause command (S)</DT
10422 ><DD
10423 ><P
10424 >This parameter specifies the command to be 
10425                 executed on the server host in order to stop printing or spooling 
10426                 a specific print job.</P
10427 ><P
10428 >This command should be a program or script which takes 
10429                 a printer name and job number to pause the print job. One way 
10430                 of implementing this is by using job priorities, where jobs 
10431                 having a too low priority won't be sent to the printer.</P
10432 ><P
10433 >If a <TT
10434 CLASS="PARAMETER"
10435 ><I
10436 >%p</I
10437 ></TT
10438 > is given then the printer name 
10439                 is put in its place. A <TT
10440 CLASS="PARAMETER"
10441 ><I
10442 >%j</I
10443 ></TT
10444 > is replaced with 
10445                 the job number (an integer).  On HPUX (see <TT
10446 CLASS="PARAMETER"
10447 ><I
10448 >printing=hpux
10449                 </I
10450 ></TT
10451 >), if the <TT
10452 CLASS="PARAMETER"
10453 ><I
10454 >-p%p</I
10455 ></TT
10456 > option is added 
10457                 to the lpq command, the job will show up with the correct status, i.e. 
10458                 if the job priority is lower than the set fence priority it will 
10459                 have the PAUSED status, whereas if  the priority is equal or higher it 
10460                 will have the SPOOLED or PRINTING status.</P
10461 ><P
10462 >Note that it is good practice to include the absolute path 
10463                 in the lppause command as the PATH may not be available to the server.</P
10464 ><P
10465 >See also the <A
10466 HREF="#PRINTING"
10467 ><TT
10468 CLASS="PARAMETER"
10469 ><I
10470 >printing
10471                 </I
10472 ></TT
10473 ></A
10474 > parameter.</P
10475 ><P
10476 >Default: Currently no default value is given to 
10477                 this string, unless the value of the <TT
10478 CLASS="PARAMETER"
10479 ><I
10480 >printing</I
10481 ></TT
10482
10483                 parameter is <TT
10484 CLASS="CONSTANT"
10485 >SYSV</TT
10486 >, in which case the default is :</P
10487 ><P
10488 ><B
10489 CLASS="COMMAND"
10490 >lp -i %p-%j -H hold</B
10491 ></P
10492 ><P
10493 >or if the value of the <TT
10494 CLASS="PARAMETER"
10495 ><I
10496 >printing</I
10497 ></TT
10498 > parameter 
10499                 is <TT
10500 CLASS="CONSTANT"
10501 >SOFTQ</TT
10502 >, then the default is:</P
10503 ><P
10504 ><B
10505 CLASS="COMMAND"
10506 >qstat -s -j%j -h</B
10507 ></P
10508 ><P
10509 >Example for HPUX: <B
10510 CLASS="COMMAND"
10511 >lppause command = /usr/bin/lpalt       
10512                 %p-%j -p0</B
10513 ></P
10514 ></DD
10515 ><DT
10516 ><A
10517 NAME="LPQCACHETIME"
10518 ></A
10519 >lpq cache time (G)</DT
10520 ><DD
10521 ><P
10522 >This controls how long lpq info will be cached 
10523                 for to prevent the <B
10524 CLASS="COMMAND"
10525 >lpq</B
10526 > command being called too 
10527                 often. A separate cache is kept for each variation of the <B
10528 CLASS="COMMAND"
10529 >               lpq</B
10530 > command used by the system, so if you use different 
10531                 <B
10532 CLASS="COMMAND"
10533 >lpq</B
10534 > commands for different users then they won't
10535                 share cache information.</P
10536 ><P
10537 >The cache files are stored in <TT
10538 CLASS="FILENAME"
10539 >/tmp/lpq.xxxx</TT
10540
10541                 where xxxx is a hash of the <B
10542 CLASS="COMMAND"
10543 >lpq</B
10544 > command in use.</P
10545 ><P
10546 >The default is 10 seconds, meaning that the cached results 
10547                 of a previous identical <B
10548 CLASS="COMMAND"
10549 >lpq</B
10550 > command will be used 
10551                 if the cached data is less than 10 seconds old. A large value may 
10552                 be advisable if your <B
10553 CLASS="COMMAND"
10554 >lpq</B
10555 > command is very slow.</P
10556 ><P
10557 >A value of 0 will disable caching completely.</P
10558 ><P
10559 >See also the <A
10560 HREF="#PRINTING"
10561 ><TT
10562 CLASS="PARAMETER"
10563 ><I
10564 >printing
10565                 </I
10566 ></TT
10567 ></A
10568 > parameter.</P
10569 ><P
10570 >Default: <B
10571 CLASS="COMMAND"
10572 >lpq cache time = 10</B
10573 ></P
10574 ><P
10575 >Example: <B
10576 CLASS="COMMAND"
10577 >lpq cache time = 30</B
10578 ></P
10579 ></DD
10580 ><DT
10581 ><A
10582 NAME="LPQCOMMAND"
10583 ></A
10584 >lpq command (S)</DT
10585 ><DD
10586 ><P
10587 >This parameter specifies the command to be 
10588                 executed on the server host in order to obtain <B
10589 CLASS="COMMAND"
10590 >lpq
10591                 </B
10592 >-style printer status information.</P
10593 ><P
10594 >This command should be a program or script which 
10595                 takes a printer name as its only parameter and outputs printer 
10596                 status information.</P
10597 ><P
10598 >Currently nine styles of printer status information 
10599                 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ. 
10600                 This covers most UNIX systems. You control which type is expected 
10601                 using the <TT
10602 CLASS="PARAMETER"
10603 ><I
10604 >printing =</I
10605 ></TT
10606 > option.</P
10607 ><P
10608 >Some clients (notably Windows for Workgroups) may not 
10609                 correctly send the connection number for the printer they are 
10610                 requesting status information about. To get around this, the 
10611                 server reports on the first printer service connected to by the 
10612                 client. This only happens if the connection number sent is invalid.</P
10613 ><P
10614 >If a <TT
10615 CLASS="PARAMETER"
10616 ><I
10617 >%p</I
10618 ></TT
10619 > is given then the printer name 
10620                 is put in its place. Otherwise it is placed at the end of the 
10621                 command.</P
10622 ><P
10623 >Note that it is good practice to include the absolute path 
10624                 in the <TT
10625 CLASS="PARAMETER"
10626 ><I
10627 >lpq command</I
10628 ></TT
10629 > as the <TT
10630 CLASS="ENVAR"
10631 >$PATH
10632                 </TT
10633 > may not be available to the server.  When compiled with
10634                 the CUPS libraries, no <TT
10635 CLASS="PARAMETER"
10636 ><I
10637 >lpq command</I
10638 ></TT
10639 > is
10640                 needed because smbd will make a library call to obtain the 
10641                 print queue listing.</P
10642 ><P
10643 >See also the <A
10644 HREF="#PRINTING"
10645 ><TT
10646 CLASS="PARAMETER"
10647 ><I
10648 >printing
10649                 </I
10650 ></TT
10651 ></A
10652 > parameter.</P
10653 ><P
10654 >Default: <EM
10655 >depends on the setting of <TT
10656 CLASS="PARAMETER"
10657 ><I
10658 >               printing</I
10659 ></TT
10660 ></EM
10661 ></P
10662 ><P
10663 >Example: <B
10664 CLASS="COMMAND"
10665 >lpq command = /usr/bin/lpq -P%p</B
10666 ></P
10667 ></DD
10668 ><DT
10669 ><A
10670 NAME="LPRESUMECOMMAND"
10671 ></A
10672 >lpresume command (S)</DT
10673 ><DD
10674 ><P
10675 >This parameter specifies the command to be 
10676                 executed on the server host in order to restart or continue 
10677                 printing or spooling a specific print job.</P
10678 ><P
10679 >This command should be a program or script which takes 
10680                 a printer name and job number to resume the print job. See 
10681                 also the <A
10682 HREF="#LPPAUSECOMMAND"
10683 ><TT
10684 CLASS="PARAMETER"
10685 ><I
10686 >lppause command
10687                 </I
10688 ></TT
10689 ></A
10690 > parameter.</P
10691 ><P
10692 >If a <TT
10693 CLASS="PARAMETER"
10694 ><I
10695 >%p</I
10696 ></TT
10697 > is given then the printer name 
10698                 is put in its place. A <TT
10699 CLASS="PARAMETER"
10700 ><I
10701 >%j</I
10702 ></TT
10703 > is replaced with 
10704                 the job number (an integer).</P
10705 ><P
10706 >Note that it is good practice to include the absolute path 
10707                 in the <TT
10708 CLASS="PARAMETER"
10709 ><I
10710 >lpresume command</I
10711 ></TT
10712 > as the PATH may not 
10713                 be available to the server.</P
10714 ><P
10715 >See also the <A
10716 HREF="#PRINTING"
10717 ><TT
10718 CLASS="PARAMETER"
10719 ><I
10720 >printing
10721                 </I
10722 ></TT
10723 ></A
10724 > parameter.</P
10725 ><P
10726 >Default: Currently no default value is given 
10727                 to this string, unless the value of the <TT
10728 CLASS="PARAMETER"
10729 ><I
10730 >printing</I
10731 ></TT
10732
10733                 parameter is <TT
10734 CLASS="CONSTANT"
10735 >SYSV</TT
10736 >, in which case the default is :</P
10737 ><P
10738 ><B
10739 CLASS="COMMAND"
10740 >lp -i %p-%j -H resume</B
10741 ></P
10742 ><P
10743 >or if the value of the <TT
10744 CLASS="PARAMETER"
10745 ><I
10746 >printing</I
10747 ></TT
10748 > parameter 
10749                 is <TT
10750 CLASS="CONSTANT"
10751 >SOFTQ</TT
10752 >, then the default is:</P
10753 ><P
10754 ><B
10755 CLASS="COMMAND"
10756 >qstat -s -j%j -r</B
10757 ></P
10758 ><P
10759 >Example for HPUX: <B
10760 CLASS="COMMAND"
10761 >lpresume command = /usr/bin/lpalt 
10762                 %p-%j -p2</B
10763 ></P
10764 ></DD
10765 ><DT
10766 ><A
10767 NAME="LPRMCOMMAND"
10768 ></A
10769 >lprm command (S)</DT
10770 ><DD
10771 ><P
10772 >This parameter specifies the command to be 
10773                 executed on the server host in order to delete a print job.</P
10774 ><P
10775 >This command should be a program or script which takes 
10776                 a printer name and job number, and deletes the print job.</P
10777 ><P
10778 >If a <TT
10779 CLASS="PARAMETER"
10780 ><I
10781 >%p</I
10782 ></TT
10783 > is given then the printer name 
10784                 is put in its place. A <TT
10785 CLASS="PARAMETER"
10786 ><I
10787 >%j</I
10788 ></TT
10789 > is replaced with 
10790                 the job number (an integer).</P
10791 ><P
10792 >Note that it is good practice to include the absolute 
10793                 path in the <TT
10794 CLASS="PARAMETER"
10795 ><I
10796 >lprm command</I
10797 ></TT
10798 > as the PATH may not be 
10799                 available to the server.</P
10800 ><P
10801 >See also the <A
10802 HREF="#PRINTING"
10803 ><TT
10804 CLASS="PARAMETER"
10805 ><I
10806 >printing
10807                 </I
10808 ></TT
10809 ></A
10810 > parameter.</P
10811 ><P
10812 >Default: <EM
10813 >depends on the setting of <TT
10814 CLASS="PARAMETER"
10815 ><I
10816 >printing
10817                 </I
10818 ></TT
10819 ></EM
10820 ></P
10821 ><P
10822 >Example 1: <B
10823 CLASS="COMMAND"
10824 >lprm command = /usr/bin/lprm -P%p %j
10825                 </B
10826 ></P
10827 ><P
10828 >Example 2: <B
10829 CLASS="COMMAND"
10830 >lprm command = /usr/bin/cancel %p-%j
10831                 </B
10832 ></P
10833 ></DD
10834 ><DT
10835 ><A
10836 NAME="MACHINEPASSWORDTIMEOUT"
10837 ></A
10838 >machine password timeout (G)</DT
10839 ><DD
10840 ><P
10841 >If a Samba server is a member of a Windows 
10842                 NT Domain (see the <A
10843 HREF="#SECURITYEQUALSDOMAIN"
10844 >security = domain</A
10845 >) 
10846                 parameter) then periodically a running <A
10847 HREF="smbd.8.html"
10848 TARGET="_top"
10849 >               smbd(8)</A
10850 > process will try and change the MACHINE ACCOUNT 
10851                 PASSWORD stored in the TDB called <TT
10852 CLASS="FILENAME"
10853 >private/secrets.tdb
10854                 </TT
10855 >.  This parameter specifies how often this password 
10856                 will be changed, in seconds. The default is one week (expressed in 
10857                 seconds), the same as a Windows NT Domain member server.</P
10858 ><P
10859 >See also <A
10860 HREF="smbpasswd.8.html"
10861 TARGET="_top"
10862 ><B
10863 CLASS="COMMAND"
10864 >smbpasswd(8)
10865                 </B
10866 ></A
10867 >, and the <A
10868 HREF="#SECURITYEQUALSDOMAIN"
10869 >               security = domain</A
10870 >) parameter.</P
10871 ><P
10872 >Default: <B
10873 CLASS="COMMAND"
10874 >machine password timeout = 604800</B
10875 ></P
10876 ></DD
10877 ><DT
10878 ><A
10879 NAME="MAGICOUTPUT"
10880 ></A
10881 >magic output (S)</DT
10882 ><DD
10883 ><P
10884 >This parameter specifies the name of a file 
10885                 which will contain output created by a magic script (see the 
10886                 <A
10887 HREF="#MAGICSCRIPT"
10888 ><TT
10889 CLASS="PARAMETER"
10890 ><I
10891 >magic script</I
10892 ></TT
10893 ></A
10894 >
10895                 parameter below).</P
10896 ><P
10897 >Warning: If two clients use the same <TT
10898 CLASS="PARAMETER"
10899 ><I
10900 >magic script
10901                 </I
10902 ></TT
10903 > in the same directory the output file content
10904                 is undefined.</P
10905 ><P
10906 >Default: <B
10907 CLASS="COMMAND"
10908 >magic output = &#60;magic script name&#62;.out
10909                 </B
10910 ></P
10911 ><P
10912 >Example: <B
10913 CLASS="COMMAND"
10914 >magic output = myfile.txt</B
10915 ></P
10916 ></DD
10917 ><DT
10918 ><A
10919 NAME="MAGICSCRIPT"
10920 ></A
10921 >magic script (S)</DT
10922 ><DD
10923 ><P
10924 >This parameter specifies the name of a file which, 
10925                 if opened, will be executed by the server when the file is closed. 
10926                 This allows a UNIX script to be sent to the Samba host and 
10927                 executed on behalf of the connected user.</P
10928 ><P
10929 >Scripts executed in this way will be deleted upon 
10930                 completion assuming that the user has the appropriate level 
10931                 of privilege and the file permissions allow the deletion.</P
10932 ><P
10933 >If the script generates output, output will be sent to 
10934                 the file specified by the <A
10935 HREF="#MAGICOUTPUT"
10936 ><TT
10937 CLASS="PARAMETER"
10938 ><I
10939 >               magic output</I
10940 ></TT
10941 ></A
10942 > parameter (see above).</P
10943 ><P
10944 >Note that some shells are unable to interpret scripts 
10945                 containing CR/LF instead of CR as 
10946                 the end-of-line marker. Magic scripts must be executable 
10947                 <EM
10948 >as is</EM
10949 > on the host, which for some hosts and 
10950                 some shells will require filtering at the DOS end.</P
10951 ><P
10952 >Magic scripts are <EM
10953 >EXPERIMENTAL</EM
10954 > and 
10955                 should <EM
10956 >NOT</EM
10957 > be relied upon.</P
10958 ><P
10959 >Default: <EM
10960 >None. Magic scripts disabled.</EM
10961 ></P
10962 ><P
10963 >Example: <B
10964 CLASS="COMMAND"
10965 >magic script = user.csh</B
10966 ></P
10967 ></DD
10968 ><DT
10969 ><A
10970 NAME="MANGLECASE"
10971 ></A
10972 >mangle case (S)</DT
10973 ><DD
10974 ><P
10975 >See the section on <A
10976 HREF="#AEN203"
10977 >               NAME MANGLING</A
10978 ></P
10979 ><P
10980 >Default: <B
10981 CLASS="COMMAND"
10982 >mangle case = no</B
10983 ></P
10984 ></DD
10985 ><DT
10986 ><A
10987 NAME="MANGLEDMAP"
10988 ></A
10989 >mangled map (S)</DT
10990 ><DD
10991 ><P
10992 >This is for those who want to directly map UNIX 
10993                 file names which cannot be represented on Windows/DOS.  The mangling 
10994                 of names is not always what is needed.  In particular you may have 
10995                 documents with file extensions that differ between DOS and UNIX. 
10996                 For example, under UNIX it is common to use <TT
10997 CLASS="FILENAME"
10998 >.html</TT
10999
11000                 for HTML files, whereas under Windows/DOS <TT
11001 CLASS="FILENAME"
11002 >.htm</TT
11003
11004                 is more commonly used.</P
11005 ><P
11006 >So to map <TT
11007 CLASS="FILENAME"
11008 >html</TT
11009 > to <TT
11010 CLASS="FILENAME"
11011 >htm</TT
11012
11013                 you would use:</P
11014 ><P
11015 ><B
11016 CLASS="COMMAND"
11017 >mangled map = (*.html *.htm)</B
11018 ></P
11019 ><P
11020 >One very useful case is to remove the annoying <TT
11021 CLASS="FILENAME"
11022 >;1
11023                 </TT
11024 > off the ends of filenames on some CDROMs (only visible 
11025                 under some UNIXes). To do this use a map of (*;1 *;).</P
11026 ><P
11027 >Default: <EM
11028 >no mangled map</EM
11029 ></P
11030 ><P
11031 >Example: <B
11032 CLASS="COMMAND"
11033 >mangled map = (*;1 *;)</B
11034 ></P
11035 ></DD
11036 ><DT
11037 ><A
11038 NAME="MANGLEDNAMES"
11039 ></A
11040 >mangled names (S)</DT
11041 ><DD
11042 ><P
11043 >This controls whether non-DOS names under UNIX 
11044                 should be mapped to DOS-compatible names ("mangled") and made visible, 
11045                 or whether non-DOS names should simply be ignored.</P
11046 ><P
11047 >See the section on <A
11048 HREF="#AEN203"
11049 >               NAME MANGLING</A
11050 > for details on how to control the mangling process.</P
11051 ><P
11052 >If mangling is used then the mangling algorithm is as follows:</P
11053 ><P
11054 ></P
11055 ><UL
11056 ><LI
11057 ><P
11058 >The first (up to) five alphanumeric characters 
11059                         before the rightmost dot of the filename are preserved, forced 
11060                         to upper case, and appear as the first (up to) five characters 
11061                         of the mangled name.</P
11062 ></LI
11063 ><LI
11064 ><P
11065 >A tilde "~" is appended to the first part of the mangled
11066                         name, followed by a two-character unique sequence, based on the
11067                         original root name (i.e., the original filename minus its final
11068                         extension). The final extension is included in the hash calculation
11069                         only if it contains any upper case characters or is longer than three
11070                         characters.</P
11071 ><P
11072 >Note that the character to use may be specified using 
11073                         the <A
11074 HREF="#MANGLINGCHAR"
11075 ><TT
11076 CLASS="PARAMETER"
11077 ><I
11078 >mangling char</I
11079 ></TT
11080 >
11081                         </A
11082 > option, if you don't like '~'.</P
11083 ></LI
11084 ><LI
11085 ><P
11086 >The first three alphanumeric characters of the final 
11087                         extension are preserved, forced to upper case and appear as the 
11088                         extension of the mangled name. The final extension is defined as that 
11089                         part of the original filename after the rightmost dot. If there are no 
11090                         dots in the filename, the mangled name will have no extension (except 
11091                         in the case of "hidden files" - see below).</P
11092 ></LI
11093 ><LI
11094 ><P
11095 >Files whose UNIX name begins with a dot will be 
11096                         presented as DOS hidden files. The mangled name will be created as 
11097                         for other filenames, but with the leading dot removed and "___" as 
11098                         its extension regardless of actual original extension (that's three 
11099                         underscores).</P
11100 ></LI
11101 ></UL
11102 ><P
11103 >The two-digit hash value consists of upper case 
11104                 alphanumeric characters.</P
11105 ><P
11106 >This algorithm can cause name collisions only if files 
11107                 in a directory share the same first five alphanumeric characters. 
11108                 The probability of such a clash is 1/1300.</P
11109 ><P
11110 >The name mangling (if enabled) allows a file to be 
11111                 copied between UNIX directories from Windows/DOS while retaining 
11112                 the long UNIX filename. UNIX files can be renamed to a new extension 
11113                 from Windows/DOS and will retain the same basename. Mangled names 
11114                 do not change between sessions.</P
11115 ><P
11116 >Default: <B
11117 CLASS="COMMAND"
11118 >mangled names = yes</B
11119 ></P
11120 ></DD
11121 ><DT
11122 ><A
11123 NAME="MANGLEDSTACK"
11124 ></A
11125 >mangled stack (G)</DT
11126 ><DD
11127 ><P
11128 >This parameter controls the number of mangled names 
11129                 that should be cached in the Samba server <A
11130 HREF="smbd.8.html"
11131 TARGET="_top"
11132 >               smbd(8)</A
11133 >.</P
11134 ><P
11135 >This stack is a list of recently mangled base names 
11136                 (extensions are only maintained if they are longer than 3 characters 
11137                 or contains upper case characters).</P
11138 ><P
11139 >The larger this value, the more likely it is that mangled 
11140                 names can be successfully converted to correct long UNIX names. 
11141                 However, large stack sizes will slow most directory accesses. Smaller 
11142                 stacks save memory in the server (each stack element costs 256 bytes).
11143                 </P
11144 ><P
11145 >It is not possible to absolutely guarantee correct long 
11146                 filenames, so be prepared for some surprises!</P
11147 ><P
11148 >Default: <B
11149 CLASS="COMMAND"
11150 >mangled stack = 50</B
11151 ></P
11152 ><P
11153 >Example: <B
11154 CLASS="COMMAND"
11155 >mangled stack = 100</B
11156 ></P
11157 ></DD
11158 ><DT
11159 ><A
11160 NAME="MANGLINGCHAR"
11161 ></A
11162 >mangling char (S)</DT
11163 ><DD
11164 ><P
11165 >This controls what character is used as 
11166                 the <EM
11167 >magic</EM
11168 > character in <A
11169 HREF="#AEN203"
11170 >name mangling</A
11171 >. The default is a '~'
11172                 but this may interfere with some software. Use this option to set 
11173                 it to whatever you prefer.</P
11174 ><P
11175 >Default: <B
11176 CLASS="COMMAND"
11177 >mangling char = ~</B
11178 ></P
11179 ><P
11180 >Example: <B
11181 CLASS="COMMAND"
11182 >mangling char = ^</B
11183 ></P
11184 ></DD
11185 ><DT
11186 ><A
11187 NAME="MAPARCHIVE"
11188 ></A
11189 >map archive (S)</DT
11190 ><DD
11191 ><P
11192 >This controls whether the DOS archive attribute 
11193                 should be mapped to the UNIX owner execute bit.  The DOS archive bit 
11194                 is set when a file has been modified since its last backup.  One 
11195                 motivation for this option it to keep Samba/your PC from making 
11196                 any file it touches from becoming executable under UNIX.  This can 
11197                 be quite annoying for shared source code, documents, etc...</P
11198 ><P
11199 >Note that this requires the <TT
11200 CLASS="PARAMETER"
11201 ><I
11202 >create mask</I
11203 ></TT
11204 >
11205                 parameter to be set such that owner execute bit is not masked out 
11206                 (i.e. it must include 100). See the parameter <A
11207 HREF="#CREATEMASK"
11208 >               <TT
11209 CLASS="PARAMETER"
11210 ><I
11211 >create mask</I
11212 ></TT
11213 ></A
11214 > for details.</P
11215 ><P
11216 >Default: <B
11217 CLASS="COMMAND"
11218 >map archive = yes</B
11219 ></P
11220 ></DD
11221 ><DT
11222 ><A
11223 NAME="MAPHIDDEN"
11224 ></A
11225 >map hidden (S)</DT
11226 ><DD
11227 ><P
11228 >This controls whether DOS style hidden files 
11229                 should be mapped to the UNIX world execute bit.</P
11230 ><P
11231 >Note that this requires the <TT
11232 CLASS="PARAMETER"
11233 ><I
11234 >create mask</I
11235 ></TT
11236
11237                 to be set such that the world execute bit is not masked out (i.e. 
11238                 it must include 001). See the parameter <A
11239 HREF="#CREATEMASK"
11240 >               <TT
11241 CLASS="PARAMETER"
11242 ><I
11243 >create mask</I
11244 ></TT
11245 ></A
11246 > for details.</P
11247 ><P
11248 >Default: <B
11249 CLASS="COMMAND"
11250 >map hidden = no</B
11251 ></P
11252 ></DD
11253 ><DT
11254 ><A
11255 NAME="MAPSYSTEM"
11256 ></A
11257 >map system (S)</DT
11258 ><DD
11259 ><P
11260 >This controls whether DOS style system files 
11261                 should be mapped to the UNIX group execute bit.</P
11262 ><P
11263 >Note that this requires the <TT
11264 CLASS="PARAMETER"
11265 ><I
11266 >create mask</I
11267 ></TT
11268
11269                 to be set such that the group execute bit is not masked out (i.e. 
11270                 it must include 010). See the parameter <A
11271 HREF="#CREATEMASK"
11272 >               <TT
11273 CLASS="PARAMETER"
11274 ><I
11275 >create mask</I
11276 ></TT
11277 ></A
11278 > for details.</P
11279 ><P
11280 >Default: <B
11281 CLASS="COMMAND"
11282 >map system = no</B
11283 ></P
11284 ></DD
11285 ><DT
11286 ><A
11287 NAME="MAPTOGUEST"
11288 ></A
11289 >map to guest (G)</DT
11290 ><DD
11291 ><P
11292 >This parameter is only useful in <A
11293 HREF="#SECURITY"
11294 >               security</A
11295 > modes other than <TT
11296 CLASS="PARAMETER"
11297 ><I
11298 >security = share</I
11299 ></TT
11300
11301                 - i.e. <TT
11302 CLASS="CONSTANT"
11303 >user</TT
11304 >, <TT
11305 CLASS="CONSTANT"
11306 >server</TT
11307 >, 
11308                 and <TT
11309 CLASS="CONSTANT"
11310 >domain</TT
11311 >.</P
11312 ><P
11313 >This parameter can take three different values, which tell
11314                 <A
11315 HREF="smbd.8.html"
11316 TARGET="_top"
11317 >smbd(8)</A
11318 > what to do with user 
11319                 login requests that don't match a valid UNIX user in some way.</P
11320 ><P
11321 >The three settings are :</P
11322 ><P
11323 ></P
11324 ><UL
11325 ><LI
11326 ><P
11327 ><TT
11328 CLASS="CONSTANT"
11329 >Never</TT
11330 > - Means user login 
11331                         requests with an invalid password are rejected. This is the 
11332                         default.</P
11333 ></LI
11334 ><LI
11335 ><P
11336 ><TT
11337 CLASS="CONSTANT"
11338 >Bad User</TT
11339 > - Means user
11340                         logins with an invalid password are rejected, unless the username 
11341                         does not exist, in which case it is treated as a guest login and 
11342                         mapped into the <A
11343 HREF="#GUESTACCOUNT"
11344 ><TT
11345 CLASS="PARAMETER"
11346 ><I
11347 >                       guest account</I
11348 ></TT
11349 ></A
11350 >.</P
11351 ></LI
11352 ><LI
11353 ><P
11354 ><TT
11355 CLASS="CONSTANT"
11356 >Bad Password</TT
11357 > - Means user logins 
11358                         with an invalid password are treated as a guest login and mapped 
11359                         into the <A
11360 HREF="#GUESTACCOUNT"
11361 >guest account</A
11362 >. Note that 
11363                         this can cause problems as it means that any user incorrectly typing 
11364                         their password will be silently logged on as "guest" - and 
11365                         will not know the reason they cannot access files they think
11366                         they should - there will have been no message given to them
11367                         that they got their password wrong. Helpdesk services will
11368                         <EM
11369 >hate</EM
11370 > you if you set the <TT
11371 CLASS="PARAMETER"
11372 ><I
11373 >map to 
11374                         guest</I
11375 ></TT
11376 > parameter this way :-).</P
11377 ></LI
11378 ></UL
11379 ><P
11380 >Note that this parameter is needed to set up "Guest" 
11381                 share services when using <TT
11382 CLASS="PARAMETER"
11383 ><I
11384 >security</I
11385 ></TT
11386 > modes other than 
11387                 share. This is because in these modes the name of the resource being
11388                 requested is <EM
11389 >not</EM
11390 > sent to the server until after 
11391                 the server has successfully authenticated the client so the server 
11392                 cannot make authentication decisions at the correct time (connection 
11393                 to the share) for "Guest" shares.</P
11394 ><P
11395 >For people familiar with the older Samba releases, this 
11396                 parameter maps to the old compile-time setting of the <TT
11397 CLASS="CONSTANT"
11398 >               GUEST_SESSSETUP</TT
11399 > value in local.h.</P
11400 ><P
11401 >Default: <B
11402 CLASS="COMMAND"
11403 >map to guest = Never</B
11404 ></P
11405 ><P
11406 >Example: <B
11407 CLASS="COMMAND"
11408 >map to guest = Bad User</B
11409 ></P
11410 ></DD
11411 ><DT
11412 ><A
11413 NAME="MAXCONNECTIONS"
11414 ></A
11415 >max connections (S)</DT
11416 ><DD
11417 ><P
11418 >This option allows the number of simultaneous 
11419                 connections to a service to be limited. If <TT
11420 CLASS="PARAMETER"
11421 ><I
11422 >max connections
11423                 </I
11424 ></TT
11425 > is greater than 0 then connections will be refused if 
11426                 this number of connections to the service are already open. A value 
11427                 of zero mean an unlimited number of connections may be made.</P
11428 ><P
11429 >Record lock files are used to implement this feature. The 
11430                 lock files will be stored in the directory specified by the <A
11431 HREF="#LOCKDIRECTORY"
11432 ><TT
11433 CLASS="PARAMETER"
11434 ><I
11435 >lock directory</I
11436 ></TT
11437 ></A
11438
11439                 option.</P
11440 ><P
11441 >Default: <B
11442 CLASS="COMMAND"
11443 >max connections = 0</B
11444 ></P
11445 ><P
11446 >Example: <B
11447 CLASS="COMMAND"
11448 >max connections = 10</B
11449 ></P
11450 ></DD
11451 ><DT
11452 ><A
11453 NAME="MAXDISKSIZE"
11454 ></A
11455 >max disk size (G)</DT
11456 ><DD
11457 ><P
11458 >This option allows you to put an upper limit 
11459                 on the apparent size of disks. If you set this option to 100 
11460                 then all shares will appear to be not larger than 100 MB in 
11461                 size.</P
11462 ><P
11463 >Note that this option does not limit the amount of 
11464                 data you can put on the disk. In the above case you could still 
11465                 store much more than 100 MB on the disk, but if a client ever asks 
11466                 for the amount of free disk space or the total disk size then the 
11467                 result will be bounded by the amount specified in <TT
11468 CLASS="PARAMETER"
11469 ><I
11470 >max 
11471                 disk size</I
11472 ></TT
11473 >.</P
11474 ><P
11475 >This option is primarily useful to work around bugs 
11476                 in some pieces of software that can't handle very large disks, 
11477                 particularly disks over 1GB in size.</P
11478 ><P
11479 >A <TT
11480 CLASS="PARAMETER"
11481 ><I
11482 >max disk size</I
11483 ></TT
11484 > of 0 means no limit.</P
11485 ><P
11486 >Default: <B
11487 CLASS="COMMAND"
11488 >max disk size = 0</B
11489 ></P
11490 ><P
11491 >Example: <B
11492 CLASS="COMMAND"
11493 >max disk size = 1000</B
11494 ></P
11495 ></DD
11496 ><DT
11497 ><A
11498 NAME="MAXLOGSIZE"
11499 ></A
11500 >max log size (G)</DT
11501 ><DD
11502 ><P
11503 >This option (an integer in kilobytes) specifies 
11504                 the max size the log file should grow to. Samba periodically checks 
11505                 the size and if it is exceeded it will rename the file, adding 
11506                 a <TT
11507 CLASS="FILENAME"
11508 >.old</TT
11509 > extension.</P
11510 ><P
11511 >A size of 0 means no limit.</P
11512 ><P
11513 >Default: <B
11514 CLASS="COMMAND"
11515 >max log size = 5000</B
11516 ></P
11517 ><P
11518 >Example: <B
11519 CLASS="COMMAND"
11520 >max log size = 1000</B
11521 ></P
11522 ></DD
11523 ><DT
11524 ><A
11525 NAME="MAXMUX"
11526 ></A
11527 >max mux (G)</DT
11528 ><DD
11529 ><P
11530 >This option controls the maximum number of 
11531                 outstanding simultaneous SMB operations that Samba tells the client 
11532                 it will allow. You should never need to set this parameter.</P
11533 ><P
11534 >Default: <B
11535 CLASS="COMMAND"
11536 >max mux = 50</B
11537 ></P
11538 ></DD
11539 ><DT
11540 ><A
11541 NAME="MAXOPENFILES"
11542 ></A
11543 >max open files (G)</DT
11544 ><DD
11545 ><P
11546 >This parameter limits the maximum number of 
11547                 open files that one <A
11548 HREF="smbd.8.html"
11549 TARGET="_top"
11550 >smbd(8)</A
11551 > file 
11552                 serving process may have open for a client at any one time. The 
11553                 default for this parameter is set very high (10,000) as Samba uses 
11554                 only one bit per unopened file.</P
11555 ><P
11556 >The limit of the number of open files is usually set 
11557                 by the UNIX per-process file descriptor limit rather than 
11558                 this parameter so you should never need to touch this parameter.</P
11559 ><P
11560 >Default: <B
11561 CLASS="COMMAND"
11562 >max open files = 10000</B
11563 ></P
11564 ></DD
11565 ><DT
11566 ><A
11567 NAME="MAXPRINTJOBS"
11568 ></A
11569 >max print jobs (S)</DT
11570 ><DD
11571 ><P
11572 >This parameter limits the maximum number of 
11573                 jobs allowable in a Samba printer queue at any given moment.
11574                 If this number is exceeded, <A
11575 HREF="smbd.8.html"
11576 TARGET="_top"
11577 ><B
11578 CLASS="COMMAND"
11579 >               smbd(8)</B
11580 ></A
11581 > will remote "Out of Space" to the client.
11582                 See all <A
11583 HREF="#TOTALPRINTJOBS"
11584 ><TT
11585 CLASS="PARAMETER"
11586 ><I
11587 >total
11588                 print jobs</I
11589 ></TT
11590 ></A
11591 >.
11592                 </P
11593 ><P
11594 >Default: <B
11595 CLASS="COMMAND"
11596 >max print jobs = 1000</B
11597 ></P
11598 ><P
11599 >Example: <B
11600 CLASS="COMMAND"
11601 >max print jobs = 5000</B
11602 ></P
11603 ></DD
11604 ><DT
11605 ><A
11606 NAME="MAXPROTOCOL"
11607 ></A
11608 >max protocol (G)</DT
11609 ><DD
11610 ><P
11611 >The value of the parameter (a string) is the highest 
11612                 protocol level that will be supported by the server.</P
11613 ><P
11614 >Possible values are :</P
11615 ><P
11616 ></P
11617 ><UL
11618 ><LI
11619 ><P
11620 ><TT
11621 CLASS="CONSTANT"
11622 >CORE</TT
11623 >: Earliest version. No 
11624                         concept of user names.</P
11625 ></LI
11626 ><LI
11627 ><P
11628 ><TT
11629 CLASS="CONSTANT"
11630 >COREPLUS</TT
11631 >: Slight improvements on 
11632                         CORE for efficiency.</P
11633 ></LI
11634 ><LI
11635 ><P
11636 ><TT
11637 CLASS="CONSTANT"
11638 >LANMAN1</TT
11639 >: First <EM
11640 >                       modern</EM
11641 > version of the protocol. Long filename
11642                         support.</P
11643 ></LI
11644 ><LI
11645 ><P
11646 ><TT
11647 CLASS="CONSTANT"
11648 >LANMAN2</TT
11649 >: Updates to Lanman1 protocol.
11650                         </P
11651 ></LI
11652 ><LI
11653 ><P
11654 ><TT
11655 CLASS="CONSTANT"
11656 >NT1</TT
11657 >: Current up to date version of 
11658                         the protocol. Used by Windows NT. Known as CIFS.</P
11659 ></LI
11660 ></UL
11661 ><P
11662 >Normally this option should not be set as the automatic 
11663                 negotiation phase in the SMB protocol takes care of choosing 
11664                 the appropriate protocol.</P
11665 ><P
11666 >See also <A
11667 HREF="#MINPROTOCOL"
11668 ><TT
11669 CLASS="PARAMETER"
11670 ><I
11671 >min
11672                 protocol</I
11673 ></TT
11674 ></A
11675 ></P
11676 ><P
11677 >Default: <B
11678 CLASS="COMMAND"
11679 >max protocol = NT1</B
11680 ></P
11681 ><P
11682 >Example: <B
11683 CLASS="COMMAND"
11684 >max protocol = LANMAN1</B
11685 ></P
11686 ></DD
11687 ><DT
11688 ><A
11689 NAME="MAXSMBDPROCESSES"
11690 ></A
11691 >max smbd processes (G)</DT
11692 ><DD
11693 ><P
11694 >This parameter limits the maximum number of 
11695                 <A
11696 HREF="smbd.8.html"
11697 TARGET="_top"
11698 ><B
11699 CLASS="COMMAND"
11700 >smbd(8)</B
11701 ></A
11702 >
11703                 processes concurrently running on a system and is intended
11704                 as a stopgap to prevent degrading service to clients in the event
11705                 that the server has insufficient resources to handle more than this
11706                 number of connections.  Remember that under normal operating
11707                 conditions, each user will have an <A
11708 HREF="smbd.8.html"
11709 TARGET="_top"
11710 >smbd</A
11711 > associated with him or her
11712                 to handle connections to all shares from a given host.
11713                 </P
11714 ><P
11715 >Default: <B
11716 CLASS="COMMAND"
11717 >max smbd processes = 0</B
11718 >   ## no limit</P
11719 ><P
11720 >Example: <B
11721 CLASS="COMMAND"
11722 >max smbd processes = 1000</B
11723 ></P
11724 ></DD
11725 ><DT
11726 ><A
11727 NAME="MAXTTL"
11728 ></A
11729 >max ttl (G)</DT
11730 ><DD
11731 ><P
11732 >This option tells <A
11733 HREF="nmbd.8.html"
11734 TARGET="_top"
11735 >nmbd(8)</A
11736 >
11737                 what the default 'time to live' of NetBIOS names should be (in seconds) 
11738                 when <B
11739 CLASS="COMMAND"
11740 >nmbd</B
11741 > is requesting a name using either a
11742                 broadcast packet or from a WINS server. You should never need to
11743                 change this parameter. The default is 3 days.</P
11744 ><P
11745 >Default: <B
11746 CLASS="COMMAND"
11747 >max ttl = 259200</B
11748 ></P
11749 ></DD
11750 ><DT
11751 ><A
11752 NAME="MAXWINSTTL"
11753 ></A
11754 >max wins ttl (G)</DT
11755 ><DD
11756 ><P
11757 >This option tells <A
11758 HREF="nmbd.8.html"
11759 TARGET="_top"
11760 >nmbd(8)
11761                 </A
11762 > when acting as a WINS server (<A
11763 HREF="#WINSSUPPORT"
11764 >               <TT
11765 CLASS="PARAMETER"
11766 ><I
11767 >wins support = yes</I
11768 ></TT
11769 ></A
11770 >) what the maximum
11771                 'time to live' of NetBIOS names that <B
11772 CLASS="COMMAND"
11773 >nmbd</B
11774
11775                 will grant will be (in seconds). You should never need to change this
11776                 parameter.  The default is 6 days (518400 seconds).</P
11777 ><P
11778 >See also the <A
11779 HREF="#MINWINSTTL"
11780 ><TT
11781 CLASS="PARAMETER"
11782 ><I
11783 >min 
11784                 wins ttl</I
11785 ></TT
11786 ></A
11787 > parameter.</P
11788 ><P
11789 >Default: <B
11790 CLASS="COMMAND"
11791 >max wins ttl = 518400</B
11792 ></P
11793 ></DD
11794 ><DT
11795 ><A
11796 NAME="MAXXMIT"
11797 ></A
11798 >max xmit (G)</DT
11799 ><DD
11800 ><P
11801 >This option controls the maximum packet size 
11802                 that will be negotiated by Samba. The default is 65535, which 
11803                 is the maximum. In some cases you may find you get better performance 
11804                 with a smaller value. A value below 2048 is likely to cause problems.
11805                 </P
11806 ><P
11807 >Default: <B
11808 CLASS="COMMAND"
11809 >max xmit = 65535</B
11810 ></P
11811 ><P
11812 >Example: <B
11813 CLASS="COMMAND"
11814 >max xmit = 8192</B
11815 ></P
11816 ></DD
11817 ><DT
11818 ><A
11819 NAME="MESSAGECOMMAND"
11820 ></A
11821 >message command (G)</DT
11822 ><DD
11823 ><P
11824 >This specifies what command to run when the 
11825                 server receives a WinPopup style message.</P
11826 ><P
11827 >This would normally be a command that would 
11828                 deliver the message somehow. How this is to be done is 
11829                 up to your imagination.</P
11830 ><P
11831 >An example is:</P
11832 ><P
11833 ><B
11834 CLASS="COMMAND"
11835 >message command = csh -c 'xedit %s;rm %s' &#38;</B
11836 >
11837                 </P
11838 ><P
11839 >This delivers the message using <B
11840 CLASS="COMMAND"
11841 >xedit</B
11842 >, then 
11843                 removes it afterwards. <EM
11844 >NOTE THAT IT IS VERY IMPORTANT 
11845                 THAT THIS COMMAND RETURN IMMEDIATELY</EM
11846 >. That's why I 
11847                 have the '&#38;' on the end. If it doesn't return immediately then 
11848                 your PCs may freeze when sending messages (they should recover 
11849                 after 30 seconds, hopefully).</P
11850 ><P
11851 >All messages are delivered as the global guest user. 
11852                 The command takes the standard substitutions, although <TT
11853 CLASS="PARAMETER"
11854 ><I
11855 >               %u</I
11856 ></TT
11857 > won't work (<TT
11858 CLASS="PARAMETER"
11859 ><I
11860 >%U</I
11861 ></TT
11862 > may be better 
11863                 in this case).</P
11864 ><P
11865 >Apart from the standard substitutions, some additional 
11866                 ones apply. In particular:</P
11867 ><P
11868 ></P
11869 ><UL
11870 ><LI
11871 ><P
11872 ><TT
11873 CLASS="PARAMETER"
11874 ><I
11875 >%s</I
11876 ></TT
11877 > = the filename containing 
11878                         the message.</P
11879 ></LI
11880 ><LI
11881 ><P
11882 ><TT
11883 CLASS="PARAMETER"
11884 ><I
11885 >%t</I
11886 ></TT
11887 > = the destination that 
11888                         the message was sent to (probably the server name).</P
11889 ></LI
11890 ><LI
11891 ><P
11892 ><TT
11893 CLASS="PARAMETER"
11894 ><I
11895 >%f</I
11896 ></TT
11897 > = who the message 
11898                         is from.</P
11899 ></LI
11900 ></UL
11901 ><P
11902 >You could make this command send mail, or whatever else 
11903                 takes your fancy. Please let us know of any really interesting 
11904                 ideas you have.</P
11905 ><P
11906 >Here's a way of sending the messages as mail to root:</P
11907 ><P
11908 ><B
11909 CLASS="COMMAND"
11910 >message command = /bin/mail -s 'message from %f on 
11911                 %m' root &#60; %s; rm %s</B
11912 ></P
11913 ><P
11914 >If you don't have a message command then the message 
11915                 won't be delivered and Samba will tell the sender there was 
11916                 an error. Unfortunately WfWg totally ignores the error code 
11917                 and carries on regardless, saying that the message was delivered.
11918                 </P
11919 ><P
11920 >If you want to silently delete it then try:</P
11921 ><P
11922 ><B
11923 CLASS="COMMAND"
11924 >message command = rm %s</B
11925 ></P
11926 ><P
11927 >Default: <EM
11928 >no message command</EM
11929 ></P
11930 ><P
11931 >Example: <B
11932 CLASS="COMMAND"
11933 >message command = csh -c 'xedit %s;
11934                 rm %s' &#38;</B
11935 ></P
11936 ></DD
11937 ><DT
11938 ><A
11939 NAME="MINPASSWDLENGTH"
11940 ></A
11941 >min passwd length (G)</DT
11942 ><DD
11943 ><P
11944 >Synonym for <A
11945 HREF="#MINPASSWORDLENGTH"
11946 >               <TT
11947 CLASS="PARAMETER"
11948 ><I
11949 >min password length</I
11950 ></TT
11951 ></A
11952 >.</P
11953 ></DD
11954 ><DT
11955 ><A
11956 NAME="MINPASSWORDLENGTH"
11957 ></A
11958 >min password length (G)</DT
11959 ><DD
11960 ><P
11961 >This option sets the minimum length in characters 
11962                 of a plaintext password that <B
11963 CLASS="COMMAND"
11964 >smbd</B
11965 > will accept when performing 
11966                 UNIX password changing.</P
11967 ><P
11968 >See also <A
11969 HREF="#UNIXPASSWORDSYNC"
11970 ><TT
11971 CLASS="PARAMETER"
11972 ><I
11973 >unix 
11974                 password sync</I
11975 ></TT
11976 ></A
11977 >, <A
11978 HREF="#PASSWDPROGRAM"
11979 >               <TT
11980 CLASS="PARAMETER"
11981 ><I
11982 >passwd program</I
11983 ></TT
11984 ></A
11985 > and <A
11986 HREF="#PASSWDCHATDEBUG"
11987 ><TT
11988 CLASS="PARAMETER"
11989 ><I
11990 >passwd chat debug</I
11991 ></TT
11992 >
11993                 </A
11994 >.</P
11995 ><P
11996 >Default: <B
11997 CLASS="COMMAND"
11998 >min password length = 5</B
11999 ></P
12000 ></DD
12001 ><DT
12002 ><A
12003 NAME="MINPRINTSPACE"
12004 ></A
12005 >min print space (S)</DT
12006 ><DD
12007 ><P
12008 >This sets the minimum amount of free disk 
12009                 space that must be available before a user will be able to spool 
12010                 a print job. It is specified in kilobytes. The default is 0, which 
12011                 means a user can always spool a print job.</P
12012 ><P
12013 >See also the <A
12014 HREF="#PRINTING"
12015 ><TT
12016 CLASS="PARAMETER"
12017 ><I
12018 >printing
12019                 </I
12020 ></TT
12021 ></A
12022 > parameter.</P
12023 ><P
12024 >Default: <B
12025 CLASS="COMMAND"
12026 >min print space = 0</B
12027 ></P
12028 ><P
12029 >Example: <B
12030 CLASS="COMMAND"
12031 >min print space = 2000</B
12032 ></P
12033 ></DD
12034 ><DT
12035 ><A
12036 NAME="MINPROTOCOL"
12037 ></A
12038 >min protocol (G)</DT
12039 ><DD
12040 ><P
12041 >The value of the parameter (a string) is the 
12042                 lowest SMB protocol dialect than Samba will support.  Please refer
12043                 to the <A
12044 HREF="#MAXPROTOCOL"
12045 ><TT
12046 CLASS="PARAMETER"
12047 ><I
12048 >max protocol</I
12049 ></TT
12050 ></A
12051 >
12052                 parameter for a list of valid protocol names and a brief description
12053                 of each.  You may also wish to refer to the C source code in
12054                 <TT
12055 CLASS="FILENAME"
12056 >source/smbd/negprot.c</TT
12057 > for a listing of known protocol
12058                 dialects supported by clients.</P
12059 ><P
12060 >If you are viewing this parameter as a security measure, you should
12061                 also refer to the <A
12062 HREF="#LANMANAUTH"
12063 ><TT
12064 CLASS="PARAMETER"
12065 ><I
12066 >lanman 
12067                 auth</I
12068 ></TT
12069 ></A
12070 > parameter.  Otherwise, you should never need 
12071                 to change this parameter.</P
12072 ><P
12073 >Default : <B
12074 CLASS="COMMAND"
12075 >min protocol = CORE</B
12076 ></P
12077 ><P
12078 >Example : <B
12079 CLASS="COMMAND"
12080 >min protocol = NT1</B
12081 >  # disable DOS 
12082                 clients</P
12083 ></DD
12084 ><DT
12085 ><A
12086 NAME="MINWINSTTL"
12087 ></A
12088 >min wins ttl (G)</DT
12089 ><DD
12090 ><P
12091 >This option tells <A
12092 HREF="nmbd.8.html"
12093 TARGET="_top"
12094 >nmbd(8)</A
12095 >
12096                 when acting as a WINS server (<A
12097 HREF="#WINSSUPPORT"
12098 ><TT
12099 CLASS="PARAMETER"
12100 ><I
12101 >               wins support = yes</I
12102 ></TT
12103 ></A
12104 >) what the minimum 'time to live' 
12105                 of NetBIOS names that <B
12106 CLASS="COMMAND"
12107 >nmbd</B
12108 > will grant will be (in 
12109                 seconds). You should never need to change this parameter.  The default 
12110                 is 6 hours (21600 seconds).</P
12111 ><P
12112 >Default: <B
12113 CLASS="COMMAND"
12114 >min wins ttl = 21600</B
12115 ></P
12116 ></DD
12117 ><DT
12118 ><A
12119 NAME="MSDFSROOT"
12120 ></A
12121 >msdfs root (S)</DT
12122 ><DD
12123 ><P
12124 >This boolean parameter is only available if 
12125                 Samba is configured  and  compiled with the <B
12126 CLASS="COMMAND"
12127 >               --with-msdfs</B
12128 > option.  If set to <TT
12129 CLASS="CONSTANT"
12130 >yes</TT
12131 >, 
12132                 Samba treats the share as a Dfs root and  allows clients to browse 
12133                 the distributed file system tree rooted at the share directory. 
12134                 Dfs links are specified  in  the share directory by symbolic 
12135                 links of the form <TT
12136 CLASS="FILENAME"
12137 >msdfs:serverA\shareA,serverB\shareB
12138                 </TT
12139 > and so on.  For more information on setting up a Dfs tree 
12140                 on Samba,  refer to <A
12141 HREF="msdfs_setup.html"
12142 TARGET="_top"
12143 >msdfs_setup.html
12144                 </A
12145 >.</P
12146 ><P
12147 >See also <A
12148 HREF="#HOSTMSDFS"
12149 ><TT
12150 CLASS="PARAMETER"
12151 ><I
12152 >host msdfs
12153                 </I
12154 ></TT
12155 ></A
12156 ></P
12157 ><P
12158 >Default: <B
12159 CLASS="COMMAND"
12160 >msdfs root = no</B
12161 ></P
12162 ></DD
12163 ><DT
12164 ><A
12165 NAME="NAMERESOLVEORDER"
12166 ></A
12167 >name resolve order (G)</DT
12168 ><DD
12169 ><P
12170 >This option is used by the programs in the Samba 
12171                 suite to determine what naming services to use and in what order 
12172                 to resolve host names to IP addresses. The option takes a space 
12173                 separated string of name resolution options.</P
12174 ><P
12175 >The options are :"lmhosts", "host", "wins" and "bcast". They 
12176                 cause names to be resolved as follows :</P
12177 ><P
12178 ></P
12179 ><UL
12180 ><LI
12181 ><P
12182 ><TT
12183 CLASS="CONSTANT"
12184 >lmhosts</TT
12185 > : Lookup an IP 
12186                         address in the Samba lmhosts file. If the line in lmhosts has 
12187                         no name type attached to the NetBIOS name (see the <A
12188 HREF="lmhosts.5.html"
12189 TARGET="_top"
12190 >lmhosts(5)</A
12191 > for details) then
12192                         any name type matches for lookup.</P
12193 ></LI
12194 ><LI
12195 ><P
12196 ><TT
12197 CLASS="CONSTANT"
12198 >host</TT
12199 > : Do a standard host 
12200                         name to IP address resolution, using the system <TT
12201 CLASS="FILENAME"
12202 >/etc/hosts
12203                         </TT
12204 >, NIS, or DNS lookups. This method of name resolution 
12205                         is operating system depended for instance on IRIX or Solaris this 
12206                         may be controlled by the <TT
12207 CLASS="FILENAME"
12208 >/etc/nsswitch.conf</TT
12209
12210                         file.  Note that this method is only used if the NetBIOS name 
12211                         type being queried is the 0x20 (server) name type, otherwise 
12212                         it is ignored.</P
12213 ></LI
12214 ><LI
12215 ><P
12216 ><TT
12217 CLASS="CONSTANT"
12218 >wins</TT
12219 > : Query a name with 
12220                         the IP address listed in the <A
12221 HREF="#WINSSERVER"
12222 ><TT
12223 CLASS="PARAMETER"
12224 ><I
12225 >                       wins server</I
12226 ></TT
12227 ></A
12228 > parameter.  If no WINS server has
12229                         been specified this method will be ignored.</P
12230 ></LI
12231 ><LI
12232 ><P
12233 ><TT
12234 CLASS="CONSTANT"
12235 >bcast</TT
12236 > : Do a broadcast on 
12237                         each of the known local interfaces listed in the <A
12238 HREF="#INTERFACES"
12239 ><TT
12240 CLASS="PARAMETER"
12241 ><I
12242 >interfaces</I
12243 ></TT
12244 ></A
12245
12246                         parameter. This is the least reliable of the name resolution 
12247                         methods as it depends on the target host being on a locally 
12248                         connected subnet.</P
12249 ></LI
12250 ></UL
12251 ><P
12252 >Default: <B
12253 CLASS="COMMAND"
12254 >name resolve order = lmhosts host wins bcast
12255                 </B
12256 ></P
12257 ><P
12258 >Example: <B
12259 CLASS="COMMAND"
12260 >name resolve order = lmhosts bcast host
12261                 </B
12262 ></P
12263 ><P
12264 >This will cause the local lmhosts file to be examined 
12265                 first, followed by a broadcast attempt, followed by a normal 
12266                 system hostname lookup.</P
12267 ></DD
12268 ><DT
12269 ><A
12270 NAME="NETBIOSALIASES"
12271 ></A
12272 >netbios aliases (G)</DT
12273 ><DD
12274 ><P
12275 >This is a list of NetBIOS names that <A
12276 HREF="nmbd.8.html"
12277 TARGET="_top"
12278 >nmbd(8)</A
12279 > will advertise as additional 
12280                 names by which the Samba server is known. This allows one machine 
12281                 to appear in browse lists under multiple names. If a machine is 
12282                 acting as a browse server or logon server none 
12283                 of these names will be advertised as either browse server or logon 
12284                 servers, only the primary name of the machine will be advertised 
12285                 with these capabilities.</P
12286 ><P
12287 >See also <A
12288 HREF="#NETBIOSNAME"
12289 ><TT
12290 CLASS="PARAMETER"
12291 ><I
12292 >netbios 
12293                 name</I
12294 ></TT
12295 ></A
12296 >.</P
12297 ><P
12298 >Default: <EM
12299 >empty string (no additional names)</EM
12300 ></P
12301 ><P
12302 >Example: <B
12303 CLASS="COMMAND"
12304 >netbios aliases = TEST TEST1 TEST2</B
12305 ></P
12306 ></DD
12307 ><DT
12308 ><A
12309 NAME="NETBIOSNAME"
12310 ></A
12311 >netbios name (G)</DT
12312 ><DD
12313 ><P
12314 >This sets the NetBIOS name by which a Samba 
12315                 server is known. By default it is the same as the first component 
12316                 of the host's DNS name. If a machine is a browse server or
12317                 logon server this name (or the first component
12318                 of the hosts DNS name) will be the name that these services are
12319                 advertised under.</P
12320 ><P
12321 >See also <A
12322 HREF="#NETBIOSALIASES"
12323 ><TT
12324 CLASS="PARAMETER"
12325 ><I
12326 >netbios 
12327                 aliases</I
12328 ></TT
12329 ></A
12330 >.</P
12331 ><P
12332 >Default: <EM
12333 >machine DNS name</EM
12334 ></P
12335 ><P
12336 >Example: <B
12337 CLASS="COMMAND"
12338 >netbios name = MYNAME</B
12339 ></P
12340 ></DD
12341 ><DT
12342 ><A
12343 NAME="NETBIOSSCOPE"
12344 ></A
12345 >netbios scope (G)</DT
12346 ><DD
12347 ><P
12348 >This sets the NetBIOS scope that Samba will 
12349                 operate under. This should not be set unless every machine 
12350                 on your LAN also sets this value.</P
12351 ></DD
12352 ><DT
12353 ><A
12354 NAME="NISHOMEDIR"
12355 ></A
12356 >nis homedir (G)</DT
12357 ><DD
12358 ><P
12359 >Get the home share server from a NIS map. For 
12360                 UNIX systems that use an automounter, the user's home directory 
12361                 will often be mounted on a workstation on demand from a remote 
12362                 server. </P
12363 ><P
12364 >When the Samba logon server is not the actual home directory 
12365                 server, but is mounting the home directories via NFS then two 
12366                 network hops would be required to access the users home directory 
12367                 if the logon server told the client to use itself as the SMB server 
12368                 for home directories (one over SMB and one over NFS). This can 
12369                 be very slow.</P
12370 ><P
12371 >This option allows Samba to return the home share as 
12372                 being on a different server to the logon server and as 
12373                 long as a Samba daemon is running on the home directory server, 
12374                 it will be mounted on the Samba client directly from the directory 
12375                 server. When Samba is returning the home share to the client, it 
12376                 will consult the NIS map specified in <A
12377 HREF="#HOMEDIRMAP"
12378 >               <TT
12379 CLASS="PARAMETER"
12380 ><I
12381 >homedir map</I
12382 ></TT
12383 ></A
12384 > and return the server 
12385                 listed there.</P
12386 ><P
12387 >Note that for this option to work there must be a working 
12388                 NIS system and the Samba server with this option must also 
12389                 be a logon server.</P
12390 ><P
12391 >Default: <B
12392 CLASS="COMMAND"
12393 >nis homedir = no</B
12394 ></P
12395 ></DD
12396 ><DT
12397 ><A
12398 NAME="NONUNIXACCOUNTRANGE"
12399 ></A
12400 >non unix account range (G)</DT
12401 ><DD
12402 ><P
12403 >The non unix account range parameter specifies 
12404                 the range of 'user ids' that are allocated by the various 'non unix 
12405                 account' passdb backends.  These backends allow
12406                 the storage of passwords for users who don't exist in /etc/passwd.  
12407                 This is most often used for machine account creation. 
12408                 This range of ids should have no existing local or NIS users within 
12409                 it as strange conflicts can occur otherwise.</P
12410 ><P
12411 >NOTE: These userids never appear on the system and Samba will never
12412                 'become' these users. They are used only to ensure that the algorithmic 
12413                 RID mapping does not conflict with normal users.
12414                 </P
12415 ><P
12416 >Default: <B
12417 CLASS="COMMAND"
12418 >non unix account range = &#60;empty string&#62;
12419                 </B
12420 ></P
12421 ><P
12422 >Example: <B
12423 CLASS="COMMAND"
12424 >non unix account range = 10000-20000</B
12425 ></P
12426 ></DD
12427 ><DT
12428 ><A
12429 NAME="NTACLSUPPORT"
12430 ></A
12431 >nt acl support (S)</DT
12432 ><DD
12433 ><P
12434 >This boolean parameter controls whether 
12435                 <A
12436 HREF="smbd.8.html"
12437 TARGET="_top"
12438 >smbd(8)</A
12439 > will attempt to map 
12440                 UNIX permissions into Windows NT access control lists.
12441                 This parameter was formally a global parameter in releases
12442                 prior to 2.2.2.</P
12443 ><P
12444 >Default: <B
12445 CLASS="COMMAND"
12446 >nt acl support = yes</B
12447 ></P
12448 ></DD
12449 ><DT
12450 ><A
12451 NAME="NTPIPESUPPORT"
12452 ></A
12453 >nt pipe support (G)</DT
12454 ><DD
12455 ><P
12456 >This boolean parameter controls whether 
12457                 <A
12458 HREF="smbd.8.html"
12459 TARGET="_top"
12460 >smbd(8)</A
12461 > will allow Windows NT 
12462                 clients to connect to the NT SMB specific <TT
12463 CLASS="CONSTANT"
12464 >IPC$</TT
12465
12466                 pipes. This is a developer debugging option and can be left
12467                 alone.</P
12468 ><P
12469 >Default: <B
12470 CLASS="COMMAND"
12471 >nt pipe support = yes</B
12472 ></P
12473 ></DD
12474 ><DT
12475 ><A
12476 NAME="NTSTATUSSUPPORT"
12477 ></A
12478 >nt status support (G)</DT
12479 ><DD
12480 ><P
12481 >This boolean parameter controls whether <A
12482 HREF="smbd.8.html"
12483 TARGET="_top"
12484 >smbd(8)</A
12485 > will negotiate NT specific status
12486                 support with Windows NT/2k/XP clients. This is a developer
12487                 debugging option and should be left alone.
12488                 If this option is set to <TT
12489 CLASS="CONSTANT"
12490 >no</TT
12491 > then Samba offers
12492                 exactly the same DOS error codes that versions prior to Samba 2.2.3
12493                 reported.</P
12494 ><P
12495 >You should not need to ever disable this parameter.</P
12496 ><P
12497 >Default: <B
12498 CLASS="COMMAND"
12499 >nt status support = yes</B
12500 ></P
12501 ></DD
12502 ><DT
12503 ><A
12504 NAME="NULLPASSWORDS"
12505 ></A
12506 >null passwords (G)</DT
12507 ><DD
12508 ><P
12509 >Allow or disallow client access to accounts 
12510                 that have null passwords. </P
12511 ><P
12512 >See also <A
12513 HREF="smbpasswd.5.html"
12514 TARGET="_top"
12515 >smbpasswd (5)</A
12516 >.</P
12517 ><P
12518 >Default: <B
12519 CLASS="COMMAND"
12520 >null passwords = no</B
12521 ></P
12522 ></DD
12523 ><DT
12524 ><A
12525 NAME="OBEYPAMRESTRICTIONS"
12526 ></A
12527 >obey pam restrictions (G)</DT
12528 ><DD
12529 ><P
12530 >When Samba 2.2 is configured to enable PAM support
12531                 (i.e. --with-pam), this parameter will control whether or not Samba
12532                 should obey PAM's account and session management directives.  The 
12533                 default behavior is to use PAM for clear text authentication only
12534                 and to ignore any account or session management.  Note that Samba
12535                 always ignores PAM for authentication in the case of <A
12536 HREF="#ENCRYPTPASSWORDS"
12537 ><TT
12538 CLASS="PARAMETER"
12539 ><I
12540 >encrypt passwords = yes</I
12541 ></TT
12542 >
12543                 </A
12544 >.  The reason is that PAM modules cannot support the challenge/response
12545                 authentication mechanism needed in the presence of SMB password encryption.
12546                 </P
12547 ><P
12548 >Default: <B
12549 CLASS="COMMAND"
12550 >obey pam restrictions = no</B
12551 ></P
12552 ></DD
12553 ><DT
12554 ><A
12555 NAME="ONLYUSER"
12556 ></A
12557 >only user (S)</DT
12558 ><DD
12559 ><P
12560 >This is a boolean option that controls whether 
12561                 connections with usernames not in the <TT
12562 CLASS="PARAMETER"
12563 ><I
12564 >user</I
12565 ></TT
12566
12567                 list will be allowed. By default this option is disabled so that a 
12568                 client can supply a username to be used by the server.  Enabling
12569                 this parameter will force the server to only user the login 
12570                 names from the <TT
12571 CLASS="PARAMETER"
12572 ><I
12573 >user</I
12574 ></TT
12575 > list and is only really
12576                 useful in <A
12577 HREF="#SECURITYEQUALSSHARE"
12578 >shave level</A
12579 >
12580                 security.</P
12581 ><P
12582 >Note that this also means Samba won't try to deduce 
12583                 usernames from the service name. This can be annoying for 
12584                 the [homes] section. To get around this you could use <B
12585 CLASS="COMMAND"
12586 >user =
12587                 %S</B
12588 > which means your <TT
12589 CLASS="PARAMETER"
12590 ><I
12591 >user</I
12592 ></TT
12593 > list
12594                 will be just the service name, which for home directories is the 
12595                 name of the user.</P
12596 ><P
12597 >See also the <A
12598 HREF="#USER"
12599 ><TT
12600 CLASS="PARAMETER"
12601 ><I
12602 >user</I
12603 ></TT
12604 >
12605                 </A
12606 > parameter.</P
12607 ><P
12608 >Default: <B
12609 CLASS="COMMAND"
12610 >only user = no</B
12611 ></P
12612 ></DD
12613 ><DT
12614 ><A
12615 NAME="ONLYGUEST"
12616 ></A
12617 >only guest (S)</DT
12618 ><DD
12619 ><P
12620 >A synonym for <A
12621 HREF="#GUESTONLY"
12622 ><TT
12623 CLASS="PARAMETER"
12624 ><I
12625 >               guest only</I
12626 ></TT
12627 ></A
12628 >.</P
12629 ></DD
12630 ><DT
12631 ><A
12632 NAME="OPLOCKBREAKWAITTIME"
12633 ></A
12634 >oplock break wait time (G)</DT
12635 ><DD
12636 ><P
12637 >This is a tuning parameter added due to bugs in 
12638                 both Windows 9x and WinNT. If Samba responds to a client too 
12639                 quickly when that client issues an SMB that can cause an oplock 
12640                 break request, then the network client can fail and not respond 
12641                 to the break request. This tuning parameter (which is set in milliseconds) 
12642                 is the amount of time Samba will wait before sending an oplock break 
12643                 request to such (broken) clients.</P
12644 ><P
12645 ><EM
12646 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
12647                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</EM
12648 >.</P
12649 ><P
12650 >Default: <B
12651 CLASS="COMMAND"
12652 >oplock break wait time = 0</B
12653 ></P
12654 ></DD
12655 ><DT
12656 ><A
12657 NAME="OPLOCKCONTENTIONLIMIT"
12658 ></A
12659 >oplock contention limit (S)</DT
12660 ><DD
12661 ><P
12662 >This is a <EM
12663 >very</EM
12664 > advanced 
12665                 <A
12666 HREF="smbd.8.html"
12667 TARGET="_top"
12668 >smbd(8)</A
12669 > tuning option to 
12670                 improve the efficiency of the granting of oplocks under multiple 
12671                 client contention for the same file.</P
12672 ><P
12673 >In brief it specifies a number, which causes <A
12674 HREF="smbd.8.html"
12675 TARGET="_top"
12676 >smbd</A
12677 > not to 
12678                 grant an oplock even when requested if the approximate number of 
12679                 clients contending for an oplock on the same file goes over this 
12680                 limit. This causes <B
12681 CLASS="COMMAND"
12682 >smbd</B
12683 > to behave in a similar 
12684                 way to Windows NT.</P
12685 ><P
12686 ><EM
12687 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
12688                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</EM
12689 >.</P
12690 ><P
12691 >Default: <B
12692 CLASS="COMMAND"
12693 >oplock contention limit = 2</B
12694 ></P
12695 ></DD
12696 ><DT
12697 ><A
12698 NAME="OPLOCKS"
12699 ></A
12700 >oplocks (S)</DT
12701 ><DD
12702 ><P
12703 >This boolean option tells <B
12704 CLASS="COMMAND"
12705 >smbd</B
12706 > whether to 
12707                 issue oplocks (opportunistic locks) to file open requests on this 
12708                 share. The oplock code can dramatically (approx. 30% or more) improve 
12709                 the speed of access to files on Samba servers. It allows the clients 
12710                 to aggressively cache files locally and you may want to disable this 
12711                 option for unreliable network environments (it is turned on by 
12712                 default in Windows NT Servers).  For more information see the file 
12713                 <TT
12714 CLASS="FILENAME"
12715 >Speed.txt</TT
12716 > in the Samba <TT
12717 CLASS="FILENAME"
12718 >docs/</TT
12719
12720                 directory.</P
12721 ><P
12722 >Oplocks may be selectively turned off on certain files with a 
12723                 share. See the <A
12724 HREF="#VETOOPLOCKFILES"
12725 ><TT
12726 CLASS="PARAMETER"
12727 ><I
12728 >               veto oplock files</I
12729 ></TT
12730 ></A
12731 > parameter. On some systems 
12732                 oplocks are recognized by the underlying operating system. This 
12733                 allows data synchronization between all access to oplocked files, 
12734                 whether it be via Samba or NFS or a local UNIX process. See the 
12735                 <TT
12736 CLASS="PARAMETER"
12737 ><I
12738 >kernel oplocks</I
12739 ></TT
12740 > parameter for details.</P
12741 ><P
12742 >See also the <A
12743 HREF="#KERNELOPLOCKS"
12744 ><TT
12745 CLASS="PARAMETER"
12746 ><I
12747 >kernel 
12748                 oplocks</I
12749 ></TT
12750 ></A
12751 > and <A
12752 HREF="#LEVEL2OPLOCKS"
12753 ><TT
12754 CLASS="PARAMETER"
12755 ><I
12756 >               level2 oplocks</I
12757 ></TT
12758 ></A
12759 > parameters.</P
12760 ><P
12761 >Default: <B
12762 CLASS="COMMAND"
12763 >oplocks = yes</B
12764 ></P
12765 ></DD
12766 ><DT
12767 ><A
12768 NAME="OSLEVEL"
12769 ></A
12770 >os level (G)</DT
12771 ><DD
12772 ><P
12773 >This integer value controls what level Samba 
12774                 advertises itself as for browse elections. The value of this 
12775                 parameter determines whether <A
12776 HREF="nmbd.8.html"
12777 TARGET="_top"
12778 >nmbd(8)</A
12779
12780                 has a chance of becoming a local master browser for the <TT
12781 CLASS="PARAMETER"
12782 ><I
12783 >               WORKGROUP</I
12784 ></TT
12785 > in the local broadcast area.</P
12786 ><P
12787 ><EM
12788 >Note :</EM
12789 >By default, Samba will win 
12790                 a local master browsing election over all Microsoft operating 
12791                 systems except a Windows NT 4.0/2000 Domain Controller.  This 
12792                 means that a misconfigured Samba host can effectively isolate 
12793                 a subnet for browsing purposes.  See <TT
12794 CLASS="FILENAME"
12795 >BROWSING.txt
12796                 </TT
12797 > in the Samba <TT
12798 CLASS="FILENAME"
12799 >docs/</TT
12800 > directory 
12801                 for details.</P
12802 ><P
12803 >Default: <B
12804 CLASS="COMMAND"
12805 >os level = 20</B
12806 ></P
12807 ><P
12808 >Example: <B
12809 CLASS="COMMAND"
12810 >os level = 65 </B
12811 ></P
12812 ></DD
12813 ><DT
12814 ><A
12815 NAME="OS2DRIVERMAP"
12816 ></A
12817 >os2 driver map (G)</DT
12818 ><DD
12819 ><P
12820 >The parameter is used to define the absolute
12821                 path to a file containing a mapping of Windows NT printer driver
12822                 names to OS/2 printer driver names.  The format is:</P
12823 ><P
12824 >&#60;nt driver name&#62; = &#60;os2 driver 
12825                 name&#62;.&#60;device name&#62;</P
12826 ><P
12827 >For example, a valid entry using the HP LaserJet 5
12828                 printer driver would appear as <B
12829 CLASS="COMMAND"
12830 >HP LaserJet 5L = LASERJET.HP 
12831                 LaserJet 5L</B
12832 >.</P
12833 ><P
12834 >The need for the file is due to the printer driver namespace 
12835                 problem described in the <A
12836 HREF="printer_driver2.html"
12837 TARGET="_top"
12838 >Samba 
12839                 Printing HOWTO</A
12840 >.  For more details on OS/2 clients, please 
12841                 refer to the <A
12842 HREF="OS2-Client-HOWTO.html"
12843 TARGET="_top"
12844 >OS2-Client-HOWTO
12845                 </A
12846 > containing in the Samba documentation.</P
12847 ><P
12848 >Default: <B
12849 CLASS="COMMAND"
12850 >os2 driver map = &#60;empty string&#62;
12851                 </B
12852 ></P
12853 ></DD
12854 ><DT
12855 ><A
12856 NAME="PAMPASSWORDCHANGE"
12857 ></A
12858 >pam password change (G)</DT
12859 ><DD
12860 ><P
12861 >With the addition of better PAM support in Samba 2.2, 
12862                 this parameter, it is possible to use PAM's password change control 
12863                 flag for Samba.  If enabled, then PAM will be used for password
12864                 changes when requested by an SMB client instead of the program listed in 
12865                 <A
12866 HREF="#PASSWDPROGRAM"
12867 ><TT
12868 CLASS="PARAMETER"
12869 ><I
12870 >passwd program</I
12871 ></TT
12872 ></A
12873 >. 
12874                 It should be possible to enable this without changing your 
12875                 <A
12876 HREF="#PASSWDCHAT"
12877 ><TT
12878 CLASS="PARAMETER"
12879 ><I
12880 >passwd chat</I
12881 ></TT
12882 ></A
12883 >
12884                 parameter for most setups.
12885                 </P
12886 ><P
12887 >Default: <B
12888 CLASS="COMMAND"
12889 >pam password change = no</B
12890 ></P
12891 ></DD
12892 ><DT
12893 ><A
12894 NAME="PANICACTION"
12895 ></A
12896 >panic action (G)</DT
12897 ><DD
12898 ><P
12899 >This is a Samba developer option that allows a 
12900                 system command to be called when either <A
12901 HREF="smbd.8.html"
12902 TARGET="_top"
12903 >               smbd(8)</A
12904 > or <A
12905 HREF="nmbd.8.html"
12906 TARGET="_top"
12907 >nmbd(8)</A
12908
12909                 crashes. This is usually used to draw attention to the fact that 
12910                 a problem occurred.</P
12911 ><P
12912 >Default: <B
12913 CLASS="COMMAND"
12914 >panic action = &#60;empty string&#62;</B
12915 ></P
12916 ><P
12917 >Example: <B
12918 CLASS="COMMAND"
12919 >panic action = "/bin/sleep 90000"</B
12920 ></P
12921 ></DD
12922 ><DT
12923 ><A
12924 NAME="PASSDBBACKEND"
12925 ></A
12926 >passdb backend (G)</DT
12927 ><DD
12928 ><P
12929 >This option allows the administrator to chose which backends to retrieve and store passwords with. This allows (for example) both 
12930                 smbpasswd and tdbsam to be used without a recompile. 
12931                 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.
12932                 Experimental backends must still be selected
12933                 (eg --with-tdbsam) at configure time.
12934                 </P
12935 ><P
12936 >This paramater is in two parts, the backend's name, and a 'location'
12937                 string that has meaning only to that particular backed.  These are separated
12938                 by a : character.</P
12939 ><P
12940 >Available backends can include:
12941                 <P
12942 ></P
12943 ><UL
12944 ><LI
12945 ><P
12946 ><B
12947 CLASS="COMMAND"
12948 >smbpasswd</B
12949 > - The default smbpasswd
12950                         backend.  Takes a path to the smbpasswd file as an optional argument.</P
12951 ></LI
12952 ><LI
12953 ><P
12954 ><B
12955 CLASS="COMMAND"
12956 >smbpasswd_nua</B
12957 > - The smbpasswd
12958                         backend, but with support for 'not unix accounts'.  
12959                         Takes a path to the smbpasswd file as an optional argument.</P
12960 ><P
12961 >See also <A
12962 HREF="#NONUNIXACCOUNTRANGE"
12963 >                        <TT
12964 CLASS="PARAMETER"
12965 ><I
12966 >non unix account range</I
12967 ></TT
12968 ></A
12969 ></P
12970 ></LI
12971 ><LI
12972 ><P
12973 ><B
12974 CLASS="COMMAND"
12975 >tdbsam</B
12976 > - The TDB based password storage
12977                         backend.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
12978                         in the <A
12979 HREF="#PRIVATEDIR"
12980 >                        <TT
12981 CLASS="PARAMETER"
12982 ><I
12983 >private dir</I
12984 ></TT
12985 ></A
12986 > directory.</P
12987 ></LI
12988 ><LI
12989 ><P
12990 ><B
12991 CLASS="COMMAND"
12992 >tdbsam_nua</B
12993 > - The TDB based password storage
12994                         backend, with non unix account support.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
12995                         in the <A
12996 HREF="#PRIVATEDIR"
12997 >                        <TT
12998 CLASS="PARAMETER"
12999 ><I
13000 >private dir</I
13001 ></TT
13002 ></A
13003 > directory.</P
13004 ><P
13005 >See also <A
13006 HREF="#NONUNIXACCOUNTRANGE"
13007 >                        <TT
13008 CLASS="PARAMETER"
13009 ><I
13010 >non unix account range</I
13011 ></TT
13012 ></A
13013 ></P
13014 ></LI
13015 ><LI
13016 ><P
13017 ><B
13018 CLASS="COMMAND"
13019 >ldapsam</B
13020 > - The LDAP based passdb 
13021                         backend.  Takes an LDAP URL as an optional argument (defaults to 
13022                         <B
13023 CLASS="COMMAND"
13024 >ldap://localhost</B
13025 >)</P
13026 ></LI
13027 ><LI
13028 ><P
13029 ><B
13030 CLASS="COMMAND"
13031 >ldapsam_nua</B
13032 > - The LDAP based passdb 
13033                         backend, with non unix account support.  Takes an LDAP URL as an optional argument (defaults to 
13034                         <B
13035 CLASS="COMMAND"
13036 >ldap://localhost</B
13037 >)</P
13038 ><P
13039 >See also <A
13040 HREF="#NONUNIXACCOUNTRANGE"
13041 >                        <TT
13042 CLASS="PARAMETER"
13043 ><I
13044 >non unix account range</I
13045 ></TT
13046 ></A
13047 ></P
13048 ></LI
13049 ><LI
13050 ><P
13051 ><B
13052 CLASS="COMMAND"
13053 >plugin</B
13054 > - Allows Samba to load an 
13055                         arbitary passdb backend from the .so specified as a compulsary argument.
13056                         </P
13057 ><P
13058 >Any characters after the (optional) second : are passed to the plugin
13059                         for its own processing</P
13060 ></LI
13061 ></UL
13062 >
13063                 </P
13064 ><P
13065 >Default: <B
13066 CLASS="COMMAND"
13067 >passdb backend = smbpasswd</B
13068 ></P
13069 ><P
13070 >Example: <B
13071 CLASS="COMMAND"
13072 >passdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd</B
13073 ></P
13074 ><P
13075 >Example: <B
13076 CLASS="COMMAND"
13077 >passdb backend = ldapsam_nua:ldaps://ldap.example.com</B
13078 ></P
13079 ><P
13080 >Example: <B
13081 CLASS="COMMAND"
13082 >passdb backend = plugin:/usr/local/samba/lib/my_passdb.so:my_plugin_args tdbsam:/etc/samba/private/passdb.tdb</B
13083 ></P
13084 ></DD
13085 ><DT
13086 ><A
13087 NAME="PASSWDCHAT"
13088 ></A
13089 >passwd chat (G)</DT
13090 ><DD
13091 ><P
13092 >This string controls the <EM
13093 >"chat"</EM
13094
13095                 conversation that takes places between <A
13096 HREF="smbd.8.html"
13097 TARGET="_top"
13098 >smbd</A
13099 > and the local password changing
13100                 program to change the user's password. The string describes a 
13101                 sequence of response-receive pairs that <A
13102 HREF="smbd.8.html"
13103 TARGET="_top"
13104 >               smbd(8)</A
13105 > uses to determine what to send to the 
13106                 <A
13107 HREF="#PASSWDPROGRAM"
13108 ><TT
13109 CLASS="PARAMETER"
13110 ><I
13111 >passwd program</I
13112 ></TT
13113 >
13114                 </A
13115 > and what to expect back. If the expected output is not 
13116                 received then the password is not changed.</P
13117 ><P
13118 >This chat sequence is often quite site specific, depending 
13119                 on what local methods are used for password control (such as NIS 
13120                 etc).</P
13121 ><P
13122 >Note that this parameter only is only used if the <A
13123 HREF="#UNIXPASSWORDSYNC"
13124 ><TT
13125 CLASS="PARAMETER"
13126 ><I
13127 >unix 
13128                 password sync</I
13129 ></TT
13130 ></A
13131 > parameter is set to <TT
13132 CLASS="CONSTANT"
13133 >yes</TT
13134 >. This 
13135                 sequence is then called <EM
13136 >AS ROOT</EM
13137 > when the SMB password 
13138                 in the smbpasswd file is being changed, without access to the old 
13139                 password cleartext. This means that root must be able to reset the user's password
13140                 without knowing the text of the previous password. In the presence of NIS/YP, 
13141                 this means that the <A
13142 HREF="#PASSWDPROGRAM"
13143 >passwd program</A
13144 > must be 
13145                 executed on the NIS master.
13146                 </P
13147 ><P
13148 >The string can contain the macro <TT
13149 CLASS="PARAMETER"
13150 ><I
13151 >%n</I
13152 ></TT
13153 > which is substituted 
13154                 for the new password.  The chat sequence can also contain the standard 
13155                 macros <TT
13156 CLASS="CONSTANT"
13157 >\n</TT
13158 >, <TT
13159 CLASS="CONSTANT"
13160 >\r</TT
13161 >, <TT
13162 CLASS="CONSTANT"
13163 >               \t</TT
13164 > and <TT
13165 CLASS="CONSTANT"
13166 >\s</TT
13167 > to give line-feed, 
13168                 carriage-return, tab and space.  The chat sequence string can also contain 
13169                 a '*' which matches any sequence of characters.
13170                 Double quotes can be used to collect strings with spaces 
13171                 in them into a single string.</P
13172 ><P
13173 >If the send string in any part of the chat sequence 
13174                 is a full stop ".",  then no string is sent. Similarly, 
13175                 if the expect string is a full stop then no string is expected.</P
13176 ><P
13177 >If the <A
13178 HREF="#PAMPASSWORDCHANGE"
13179 ><TT
13180 CLASS="PARAMETER"
13181 ><I
13182 >pam
13183                 password change</I
13184 ></TT
13185 ></A
13186 > parameter is set to true, the chat pairs
13187                 may be matched in any order, and success is determined by the PAM result, 
13188                 not any particular output. The \n macro is ignored for PAM conversions.
13189                 </P
13190 ><P
13191 >See also <A
13192 HREF="#UNIXPASSWORDSYNC"
13193 ><TT
13194 CLASS="PARAMETER"
13195 ><I
13196 >unix password 
13197                 sync</I
13198 ></TT
13199 ></A
13200 >, <A
13201 HREF="#PASSWDPROGRAM"
13202 ><TT
13203 CLASS="PARAMETER"
13204 ><I
13205 >               passwd program</I
13206 ></TT
13207 ></A
13208 > ,<A
13209 HREF="#PASSWDCHATDEBUG"
13210 >               <TT
13211 CLASS="PARAMETER"
13212 ><I
13213 >passwd chat debug</I
13214 ></TT
13215 ></A
13216 > and <A
13217 HREF="#PAMPASSWORDCHANGE"
13218 >               <TT
13219 CLASS="PARAMETER"
13220 ><I
13221 >pam password change</I
13222 ></TT
13223 ></A
13224 >.</P
13225 ><P
13226 >Default: <B
13227 CLASS="COMMAND"
13228 >passwd chat = *new*password* %n\n 
13229                 *new*password* %n\n *changed*</B
13230 ></P
13231 ><P
13232 >Example: <B
13233 CLASS="COMMAND"
13234 >passwd chat = "*Enter OLD password*" %o\n 
13235                 "*Enter NEW password*" %n\n "*Reenter NEW password*" %n\n "*Password 
13236                 changed*"</B
13237 ></P
13238 ></DD
13239 ><DT
13240 ><A
13241 NAME="PASSWDCHATDEBUG"
13242 ></A
13243 >passwd chat debug (G)</DT
13244 ><DD
13245 ><P
13246 >This boolean specifies if the passwd chat script 
13247                 parameter is run in <EM
13248 >debug</EM
13249 > mode. In this mode the 
13250                 strings passed to and received from the passwd chat are printed 
13251                 in the <A
13252 HREF="smbd.8.html"
13253 TARGET="_top"
13254 >smbd(8)</A
13255 > log with a 
13256                 <A
13257 HREF="#DEBUGLEVEL"
13258 ><TT
13259 CLASS="PARAMETER"
13260 ><I
13261 >debug level</I
13262 ></TT
13263 ></A
13264
13265                 of 100. This is a dangerous option as it will allow plaintext passwords 
13266                 to be seen in the <B
13267 CLASS="COMMAND"
13268 >smbd</B
13269 > log. It is available to help 
13270                 Samba admins debug their <TT
13271 CLASS="PARAMETER"
13272 ><I
13273 >passwd chat</I
13274 ></TT
13275 > scripts 
13276                 when calling the <TT
13277 CLASS="PARAMETER"
13278 ><I
13279 >passwd program</I
13280 ></TT
13281 > and should 
13282                 be turned off after this has been done. This option has no effect if the 
13283                 <A
13284 HREF="#PAMPASSWORDCHANGE"
13285 ><TT
13286 CLASS="PARAMETER"
13287 ><I
13288 >pam password change</I
13289 ></TT
13290 ></A
13291 >
13292                 paramter is set. This parameter is off by default.</P
13293 ><P
13294 >See also <A
13295 HREF="#PASSWDCHAT"
13296 ><TT
13297 CLASS="PARAMETER"
13298 ><I
13299 >passwd chat</I
13300 ></TT
13301 >
13302                 </A
13303 >, <A
13304 HREF="#PAMPASSWORDCHANGE"
13305 ><TT
13306 CLASS="PARAMETER"
13307 ><I
13308 >pam password change</I
13309 ></TT
13310 >
13311                 </A
13312 >, <A
13313 HREF="#PASSWDPROGRAM"
13314 ><TT
13315 CLASS="PARAMETER"
13316 ><I
13317 >passwd program</I
13318 ></TT
13319 >
13320                 </A
13321 >.</P
13322 ><P
13323 >Default: <B
13324 CLASS="COMMAND"
13325 >passwd chat debug = no</B
13326 ></P
13327 ></DD
13328 ><DT
13329 ><A
13330 NAME="PASSWDPROGRAM"
13331 ></A
13332 >passwd program (G)</DT
13333 ><DD
13334 ><P
13335 >The name of a program that can be used to set 
13336                 UNIX user passwords.  Any occurrences of <TT
13337 CLASS="PARAMETER"
13338 ><I
13339 >%u</I
13340 ></TT
13341
13342                 will be replaced with the user name. The user name is checked for 
13343                 existence before calling the password changing program.</P
13344 ><P
13345 >Also note that many passwd programs insist in <EM
13346 >reasonable
13347                 </EM
13348 > passwords, such as a minimum length, or the inclusion 
13349                 of mixed case chars and digits. This can pose a problem as some clients 
13350                 (such as Windows for Workgroups) uppercase the password before sending 
13351                 it.</P
13352 ><P
13353 ><EM
13354 >Note</EM
13355 > that if the <TT
13356 CLASS="PARAMETER"
13357 ><I
13358 >unix 
13359                 password sync</I
13360 ></TT
13361 > parameter is set to <TT
13362 CLASS="CONSTANT"
13363 >true
13364                 </TT
13365 > then this program is called <EM
13366 >AS ROOT</EM
13367
13368                 before the SMB password in the <A
13369 HREF="smbpasswd.5.html"
13370 TARGET="_top"
13371 >smbpasswd(5)
13372                 </A
13373 > file is changed. If this UNIX password change fails, then 
13374                 <B
13375 CLASS="COMMAND"
13376 >smbd</B
13377 > will fail to change the SMB password also 
13378                 (this is by design).</P
13379 ><P
13380 >If the <TT
13381 CLASS="PARAMETER"
13382 ><I
13383 >unix password sync</I
13384 ></TT
13385 > parameter 
13386                 is set this parameter <EM
13387 >MUST USE ABSOLUTE PATHS</EM
13388
13389                 for <EM
13390 >ALL</EM
13391 > programs called, and must be examined 
13392                 for security implications. Note that by default <TT
13393 CLASS="PARAMETER"
13394 ><I
13395 >unix 
13396                 password sync</I
13397 ></TT
13398 > is set to <TT
13399 CLASS="CONSTANT"
13400 >false</TT
13401 >.</P
13402 ><P
13403 >See also <A
13404 HREF="#UNIXPASSWORDSYNC"
13405 ><TT
13406 CLASS="PARAMETER"
13407 ><I
13408 >unix 
13409                 password sync</I
13410 ></TT
13411 ></A
13412 >.</P
13413 ><P
13414 >Default: <B
13415 CLASS="COMMAND"
13416 >passwd program = /bin/passwd</B
13417 ></P
13418 ><P
13419 >Example: <B
13420 CLASS="COMMAND"
13421 >passwd program = /sbin/npasswd %u</B
13422 >
13423                 </P
13424 ></DD
13425 ><DT
13426 ><A
13427 NAME="PASSWORDLEVEL"
13428 ></A
13429 >password level (G)</DT
13430 ><DD
13431 ><P
13432 >Some client/server combinations have difficulty 
13433                 with mixed-case passwords.  One offending client is Windows for 
13434                 Workgroups, which for some reason forces passwords to upper 
13435                 case when using the LANMAN1 protocol, but leaves them alone when 
13436                 using COREPLUS!  Another problem child is the Windows 95/98
13437                 family of operating systems.  These clients upper case clear
13438                 text passwords even when NT LM 0.12 selected by the protocol
13439                 negotiation request/response.</P
13440 ><P
13441 >This parameter defines the maximum number of characters 
13442                 that may be upper case in passwords.</P
13443 ><P
13444 >For example, say the password given was "FRED". If <TT
13445 CLASS="PARAMETER"
13446 ><I
13447 >               password level</I
13448 ></TT
13449 > is set to 1, the following combinations 
13450                 would be tried if "FRED" failed:</P
13451 ><P
13452 >"Fred", "fred", "fRed", "frEd","freD"</P
13453 ><P
13454 >If <TT
13455 CLASS="PARAMETER"
13456 ><I
13457 >password level</I
13458 ></TT
13459 > was set to 2, 
13460                 the following combinations would also be tried: </P
13461 ><P
13462 >"FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..</P
13463 ><P
13464 >And so on.</P
13465 ><P
13466 >The higher value this parameter is set to the more likely 
13467                 it is that a mixed case password will be matched against a single 
13468                 case password. However, you should be aware that use of this 
13469                 parameter reduces security and increases the time taken to 
13470                 process a new connection.</P
13471 ><P
13472 >A value of zero will cause only two attempts to be 
13473                 made - the password as is and the password in all-lower case.</P
13474 ><P
13475 >Default: <B
13476 CLASS="COMMAND"
13477 >password level = 0</B
13478 ></P
13479 ><P
13480 >Example: <B
13481 CLASS="COMMAND"
13482 >password level = 4</B
13483 ></P
13484 ></DD
13485 ><DT
13486 ><A
13487 NAME="PASSWORDSERVER"
13488 ></A
13489 >password server (G)</DT
13490 ><DD
13491 ><P
13492 >By specifying the name of another SMB server (such 
13493                 as a WinNT box) with this option, and using <B
13494 CLASS="COMMAND"
13495 >security = domain
13496                 </B
13497 > or <B
13498 CLASS="COMMAND"
13499 >security = server</B
13500 > you can get Samba 
13501                 to do all its username/password validation via a remote server.</P
13502 ><P
13503 >This option sets the name of the password server to use. 
13504                 It must be a NetBIOS name, so if the machine's NetBIOS name is 
13505                 different from its Internet name then you may have to add its NetBIOS 
13506                 name to the lmhosts  file which is stored in the same directory 
13507                 as the <TT
13508 CLASS="FILENAME"
13509 >smb.conf</TT
13510 > file.</P
13511 ><P
13512 >The name of the password server is looked up using the 
13513                 parameter <A
13514 HREF="#NAMERESOLVEORDER"
13515 ><TT
13516 CLASS="PARAMETER"
13517 ><I
13518 >name 
13519                 resolve order</I
13520 ></TT
13521 ></A
13522 > and so may resolved
13523                 by any method and order described in that parameter.</P
13524 ><P
13525 >The password server much be a machine capable of using 
13526                 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in 
13527                 user level security mode.</P
13528 ><P
13529 ><EM
13530 >NOTE:</EM
13531 > Using a password server 
13532                 means your UNIX box (running Samba) is only as secure as your 
13533                 password server. <EM
13534 >DO NOT CHOOSE A PASSWORD SERVER THAT 
13535                 YOU DON'T COMPLETELY TRUST</EM
13536 >.</P
13537 ><P
13538 >Never point a Samba server at itself for password 
13539                 serving. This will cause a loop and could lock up your Samba 
13540                 server!</P
13541 ><P
13542 >The name of the password server takes the standard 
13543                 substitutions, but probably the only useful one is <TT
13544 CLASS="PARAMETER"
13545 ><I
13546 >%m
13547                 </I
13548 ></TT
13549 >, which means the Samba server will use the incoming 
13550                 client as the password server. If you use this then you better 
13551                 trust your clients, and you had better restrict them with hosts allow!</P
13552 ><P
13553 >If the <TT
13554 CLASS="PARAMETER"
13555 ><I
13556 >security</I
13557 ></TT
13558 > parameter is set to
13559                 <TT
13560 CLASS="CONSTANT"
13561 >domain</TT
13562 >, then the list of machines in this 
13563                 option must be a list of Primary or Backup Domain controllers for the
13564                 Domain or the character '*', as the Samba server is effectively
13565                 in that domain, and will use cryptographically authenticated RPC calls
13566                 to authenticate the user logging on. The advantage of using <B
13567 CLASS="COMMAND"
13568 >               security = domain</B
13569 > is that if you list several hosts in the 
13570                 <TT
13571 CLASS="PARAMETER"
13572 ><I
13573 >password server</I
13574 ></TT
13575 > option then <B
13576 CLASS="COMMAND"
13577 >smbd
13578                 </B
13579 > will try each in turn till it finds one that responds. This 
13580                 is useful in case your primary server goes down.</P
13581 ><P
13582 >If the <TT
13583 CLASS="PARAMETER"
13584 ><I
13585 >password server</I
13586 ></TT
13587 > option is set 
13588                 to the character '*', then Samba will attempt to auto-locate the 
13589                 Primary or Backup Domain controllers to authenticate against by 
13590                 doing a query for the name <TT
13591 CLASS="CONSTANT"
13592 >WORKGROUP&#60;1C&#62;</TT
13593
13594                 and then contacting each server returned in the list of IP 
13595                 addresses from the name resolution source. </P
13596 ><P
13597 >If the <TT
13598 CLASS="PARAMETER"
13599 ><I
13600 >security</I
13601 ></TT
13602 > parameter is 
13603                 set to <TT
13604 CLASS="CONSTANT"
13605 >server</TT
13606 >, then there are different
13607                 restrictions that <B
13608 CLASS="COMMAND"
13609 >security = domain</B
13610 > doesn't 
13611                 suffer from:</P
13612 ><P
13613 ></P
13614 ><UL
13615 ><LI
13616 ><P
13617 >You may list several password servers in 
13618                         the <TT
13619 CLASS="PARAMETER"
13620 ><I
13621 >password server</I
13622 ></TT
13623 > parameter, however if an 
13624                         <B
13625 CLASS="COMMAND"
13626 >smbd</B
13627 > makes a connection to a password server, 
13628                         and then the password server fails, no more users will be able 
13629                         to be authenticated from this <B
13630 CLASS="COMMAND"
13631 >smbd</B
13632 >.  This is a 
13633                         restriction of the SMB/CIFS protocol when in <B
13634 CLASS="COMMAND"
13635 >security = server
13636                         </B
13637 > mode and cannot be fixed in Samba.</P
13638 ></LI
13639 ><LI
13640 ><P
13641 >If you are using a Windows NT server as your 
13642                         password server then you will have to ensure that your users 
13643                         are able to login from the Samba server, as when in <B
13644 CLASS="COMMAND"
13645 >                       security = server</B
13646 >  mode the network logon will appear to 
13647                         come from there rather than from the users workstation.</P
13648 ></LI
13649 ></UL
13650 ><P
13651 >See also the <A
13652 HREF="#SECURITY"
13653 ><TT
13654 CLASS="PARAMETER"
13655 ><I
13656 >security
13657                 </I
13658 ></TT
13659 ></A
13660 > parameter.</P
13661 ><P
13662 >Default: <B
13663 CLASS="COMMAND"
13664 >password server = &#60;empty string&#62;</B
13665 >
13666                 </P
13667 ><P
13668 >Example: <B
13669 CLASS="COMMAND"
13670 >password server = NT-PDC, NT-BDC1, NT-BDC2
13671                 </B
13672 ></P
13673 ><P
13674 >Example: <B
13675 CLASS="COMMAND"
13676 >password server = *</B
13677 ></P
13678 ></DD
13679 ><DT
13680 ><A
13681 NAME="PATH"
13682 ></A
13683 >path (S)</DT
13684 ><DD
13685 ><P
13686 >This parameter specifies a directory to which 
13687                 the user of the service is to be given access. In the case of 
13688                 printable services, this is where print data will spool prior to 
13689                 being submitted to the host for printing.</P
13690 ><P
13691 >For a printable service offering guest access, the service 
13692                 should be readonly and the path should be world-writeable and 
13693                 have the sticky bit set. This is not mandatory of course, but 
13694                 you probably won't get the results you expect if you do 
13695                 otherwise.</P
13696 ><P
13697 >Any occurrences of <TT
13698 CLASS="PARAMETER"
13699 ><I
13700 >%u</I
13701 ></TT
13702 > in the path 
13703                 will be replaced with the UNIX username that the client is using 
13704                 on this connection. Any occurrences of <TT
13705 CLASS="PARAMETER"
13706 ><I
13707 >%m</I
13708 ></TT
13709
13710                 will be replaced by the NetBIOS name of the machine they are 
13711                 connecting from. These replacements are very useful for setting 
13712                 up pseudo home directories for users.</P
13713 ><P
13714 >Note that this path will be based on <A
13715 HREF="#ROOTDIR"
13716 >               <TT
13717 CLASS="PARAMETER"
13718 ><I
13719 >root dir</I
13720 ></TT
13721 ></A
13722 > if one was specified.</P
13723 ><P
13724 >Default: <EM
13725 >none</EM
13726 ></P
13727 ><P
13728 >Example: <B
13729 CLASS="COMMAND"
13730 >path = /home/fred</B
13731 ></P
13732 ></DD
13733 ><DT
13734 ><A
13735 NAME="PIDDIRECTORY"
13736 ></A
13737 >pid directory (G)</DT
13738 ><DD
13739 ><P
13740 >This option specifies the directory where pid 
13741                 files will be placed.  </P
13742 ><P
13743 >Default: <B
13744 CLASS="COMMAND"
13745 >pid directory = ${prefix}/var/locks</B
13746 ></P
13747 ><P
13748 >Example: <B
13749 CLASS="COMMAND"
13750 >pid directory = /var/run/</B
13751 >
13752                 </P
13753 ></DD
13754 ><DT
13755 ><A
13756 NAME="POSIXLOCKING"
13757 ></A
13758 >posix locking (S)</DT
13759 ><DD
13760 ><P
13761 >The <A
13762 HREF="smbd.8.html"
13763 TARGET="_top"
13764 ><B
13765 CLASS="COMMAND"
13766 >smbd(8)</B
13767 ></A
13768 >
13769                 daemon maintains an database of file locks obtained by SMB clients.
13770                 The default behavior is to map this internal database to POSIX
13771                 locks.  This means that file locks obtained by SMB clients are 
13772                 consistent with those seen by POSIX compliant applications accessing 
13773                 the files via a non-SMB method (e.g. NFS or local file access).  
13774                 You should never need to disable this parameter.</P
13775 ><P
13776 >Default: <B
13777 CLASS="COMMAND"
13778 >posix locking = yes</B
13779 ></P
13780 ></DD
13781 ><DT
13782 ><A
13783 NAME="POSTEXEC"
13784 ></A
13785 >postexec (S)</DT
13786 ><DD
13787 ><P
13788 >This option specifies a command to be run 
13789                 whenever the service is disconnected. It takes the usual 
13790                 substitutions. The command may be run as the root on some 
13791                 systems.</P
13792 ><P
13793 >An interesting example may be to unmount server 
13794                 resources:</P
13795 ><P
13796 ><B
13797 CLASS="COMMAND"
13798 >postexec = /etc/umount /cdrom</B
13799 ></P
13800 ><P
13801 >See also <A
13802 HREF="#PREEXEC"
13803 ><TT
13804 CLASS="PARAMETER"
13805 ><I
13806 >preexec</I
13807 ></TT
13808 >
13809                 </A
13810 >.</P
13811 ><P
13812 >Default: <EM
13813 >none (no command executed)</EM
13814 >
13815                 </P
13816 ><P
13817 >Example: <B
13818 CLASS="COMMAND"
13819 >postexec = echo \"%u disconnected from %S 
13820                 from %m (%I)\" &#62;&#62; /tmp/log</B
13821 ></P
13822 ></DD
13823 ><DT
13824 ><A
13825 NAME="POSTSCRIPT"
13826 ></A
13827 >postscript (S)</DT
13828 ><DD
13829 ><P
13830 >This parameter forces a printer to interpret 
13831                 the print files as PostScript. This is done by adding a <TT
13832 CLASS="CONSTANT"
13833 >%!
13834                 </TT
13835 > to the start of print output.</P
13836 ><P
13837 >This is most useful when you have lots of PCs that persist 
13838                 in putting a control-D at the start of print jobs, which then 
13839                 confuses your printer.</P
13840 ><P
13841 >Default: <B
13842 CLASS="COMMAND"
13843 >postscript = no</B
13844 ></P
13845 ></DD
13846 ><DT
13847 ><A
13848 NAME="PREEXEC"
13849 ></A
13850 >preexec (S)</DT
13851 ><DD
13852 ><P
13853 >This option specifies a command to be run whenever 
13854                 the service is connected to. It takes the usual substitutions.</P
13855 ><P
13856 >An interesting example is to send the users a welcome 
13857                 message every time they log in. Maybe a message of the day? Here 
13858                 is an example:</P
13859 ><P
13860 ><B
13861 CLASS="COMMAND"
13862 >preexec = csh -c 'echo \"Welcome to %S!\" |
13863                  /usr/local/samba/bin/smbclient -M %m -I %I' &#38; </B
13864 ></P
13865 ><P
13866 >Of course, this could get annoying after a while :-)</P
13867 ><P
13868 >See also <A
13869 HREF="#PREEXECCLOSE"
13870 ><TT
13871 CLASS="PARAMETER"
13872 ><I
13873 >preexec close
13874                 </I
13875 ></TT
13876 ></A
13877 > and <A
13878 HREF="#POSTEXEC"
13879 ><TT
13880 CLASS="PARAMETER"
13881 ><I
13882 >postexec
13883                 </I
13884 ></TT
13885 ></A
13886 >.</P
13887 ><P
13888 >Default: <EM
13889 >none (no command executed)</EM
13890 ></P
13891 ><P
13892 >Example: <B
13893 CLASS="COMMAND"
13894 >preexec = echo \"%u connected to %S from %m
13895                 (%I)\" &#62;&#62; /tmp/log</B
13896 ></P
13897 ></DD
13898 ><DT
13899 ><A
13900 NAME="PREEXECCLOSE"
13901 ></A
13902 >preexec close (S)</DT
13903 ><DD
13904 ><P
13905 >This boolean option controls whether a non-zero 
13906                 return code from <A
13907 HREF="#PREEXEC"
13908 ><TT
13909 CLASS="PARAMETER"
13910 ><I
13911 >preexec
13912                 </I
13913 ></TT
13914 ></A
13915 > should close the service being connected to.</P
13916 ><P
13917 >Default: <B
13918 CLASS="COMMAND"
13919 >preexec close = no</B
13920 ></P
13921 ></DD
13922 ><DT
13923 ><A
13924 NAME="PREFERREDMASTER"
13925 ></A
13926 >preferred master (G)</DT
13927 ><DD
13928 ><P
13929 >This boolean parameter controls if <A
13930 HREF="nmbd.8.html"
13931 TARGET="_top"
13932 >nmbd(8)</A
13933 > is a preferred master browser 
13934                 for its workgroup.</P
13935 ><P
13936 >If this is set to <TT
13937 CLASS="CONSTANT"
13938 >true</TT
13939 >, on startup, <B
13940 CLASS="COMMAND"
13941 >nmbd</B
13942
13943                 will force an election, and it will have a slight advantage in 
13944                 winning the election.  It is recommended that this parameter is 
13945                 used in conjunction with <B
13946 CLASS="COMMAND"
13947 ><A
13948 HREF="#DOMAINMASTER"
13949 ><TT
13950 CLASS="PARAMETER"
13951 ><I
13952 >               domain master</I
13953 ></TT
13954 ></A
13955 > = yes</B
13956 >, so that <B
13957 CLASS="COMMAND"
13958 >               nmbd</B
13959 > can guarantee becoming a domain master.</P
13960 ><P
13961 >Use this option with caution, because if there are several 
13962                 hosts (whether Samba servers, Windows 95 or NT) that are preferred 
13963                 master browsers on the same subnet, they will each periodically 
13964                 and continuously attempt to become the local master browser.  
13965                 This will result in unnecessary broadcast traffic and reduced browsing
13966                 capabilities.</P
13967 ><P
13968 >See also <A
13969 HREF="#OSLEVEL"
13970 ><TT
13971 CLASS="PARAMETER"
13972 ><I
13973 >os level</I
13974 ></TT
13975 >
13976                 </A
13977 >.</P
13978 ><P
13979 >Default: <B
13980 CLASS="COMMAND"
13981 >preferred master = auto</B
13982 ></P
13983 ></DD
13984 ><DT
13985 ><A
13986 NAME="PREFEREDMASTER"
13987 ></A
13988 >prefered master (G)</DT
13989 ><DD
13990 ><P
13991 >Synonym for <A
13992 HREF="#PREFERREDMASTER"
13993 ><TT
13994 CLASS="PARAMETER"
13995 ><I
13996 >               preferred master</I
13997 ></TT
13998 ></A
13999 > for people who cannot spell :-).</P
14000 ></DD
14001 ><DT
14002 ><A
14003 NAME="PRELOAD"
14004 ></A
14005 >preload</DT
14006 ><DD
14007 ><P
14008 >This is a list of services that you want to be 
14009                 automatically added to the browse lists. This is most useful 
14010                 for homes and printers services that would otherwise not be 
14011                 visible.</P
14012 ><P
14013 >Note that if you just want all printers in your 
14014                 printcap file loaded then the <A
14015 HREF="#LOADPRINTERS"
14016 >               <TT
14017 CLASS="PARAMETER"
14018 ><I
14019 >load printers</I
14020 ></TT
14021 ></A
14022 > option is easier.</P
14023 ><P
14024 >Default: <EM
14025 >no preloaded services</EM
14026 ></P
14027 ><P
14028 >Example: <B
14029 CLASS="COMMAND"
14030 >preload = fred lp colorlp</B
14031 ></P
14032 ></DD
14033 ><DT
14034 ><A
14035 NAME="PRESERVECASE"
14036 ></A
14037 >preserve case (S)</DT
14038 ><DD
14039 ><P
14040 > This controls if new filenames are created
14041                 with the case that the client passes, or if they are forced to 
14042                 be the <A
14043 HREF="#DEFAULTCASE"
14044 ><TT
14045 CLASS="PARAMETER"
14046 ><I
14047 >default case
14048                 </I
14049 ></TT
14050 ></A
14051 >.</P
14052 ><P
14053 >Default: <B
14054 CLASS="COMMAND"
14055 >preserve case = yes</B
14056 ></P
14057 ><P
14058 >See the section on <A
14059 HREF="#AEN203"
14060 >NAME 
14061                 MANGLING</A
14062 > for a fuller discussion.</P
14063 ></DD
14064 ><DT
14065 ><A
14066 NAME="PRINTCOMMAND"
14067 ></A
14068 >print command (S)</DT
14069 ><DD
14070 ><P
14071 >After a print job has finished spooling to 
14072                 a service, this command will be used via a <B
14073 CLASS="COMMAND"
14074 >system()</B
14075
14076                 call to process the spool file. Typically the command specified will 
14077                 submit the spool file to the host's printing subsystem, but there 
14078                 is no requirement that this be the case. The server will not remove 
14079                 the spool file, so whatever command you specify should remove the 
14080                 spool file when it has been processed, otherwise you will need to 
14081                 manually remove old spool files.</P
14082 ><P
14083 >The print command is simply a text string. It will be used 
14084                 verbatim after macro substitutions have been made:</P
14085 ><P
14086 >s, %p - the path to the spool
14087                 file name</P
14088 ><P
14089 >%p - the appropriate printer 
14090                 name</P
14091 ><P
14092 >%J - the job 
14093                 name as transmitted by the client.</P
14094 ><P
14095 >%c - The number of printed pages
14096                 of the spooled job (if known).</P
14097 ><P
14098 >%z - the size of the spooled
14099                 print job (in bytes)</P
14100 ><P
14101 >The print command <EM
14102 >MUST</EM
14103 > contain at least 
14104                 one occurrence of <TT
14105 CLASS="PARAMETER"
14106 ><I
14107 >%s</I
14108 ></TT
14109 > or <TT
14110 CLASS="PARAMETER"
14111 ><I
14112 >%f
14113                 </I
14114 ></TT
14115 > - the <TT
14116 CLASS="PARAMETER"
14117 ><I
14118 >%p</I
14119 ></TT
14120 > is optional. At the time 
14121                 a job is submitted, if no printer name is supplied the <TT
14122 CLASS="PARAMETER"
14123 ><I
14124 >%p
14125                 </I
14126 ></TT
14127 > will be silently removed from the printer command.</P
14128 ><P
14129 >If specified in the [global] section, the print command given 
14130                 will be used for any printable service that does not have its own 
14131                 print command specified.</P
14132 ><P
14133 >If there is neither a specified print command for a 
14134                 printable service nor a global print command, spool files will 
14135                 be created but not processed and (most importantly) not removed.</P
14136 ><P
14137 >Note that printing may fail on some UNIXes from the 
14138                 <TT
14139 CLASS="CONSTANT"
14140 >nobody</TT
14141 > account. If this happens then create 
14142                 an alternative guest account that can print and set the <A
14143 HREF="#GUESTACCOUNT"
14144 ><TT
14145 CLASS="PARAMETER"
14146 ><I
14147 >guest account</I
14148 ></TT
14149 ></A
14150
14151                 in the [global] section.</P
14152 ><P
14153 >You can form quite complex print commands by realizing 
14154                 that they are just passed to a shell. For example the following 
14155                 will log a print job, print the file, then remove it. Note that 
14156                 ';' is the usual separator for command in shell scripts.</P
14157 ><P
14158 ><B
14159 CLASS="COMMAND"
14160 >print command = echo Printing %s &#62;&#62; 
14161                 /tmp/print.log; lpr -P %p %s; rm %s</B
14162 ></P
14163 ><P
14164 >You may have to vary this command considerably depending 
14165                 on how you normally print files on your system. The default for 
14166                 the parameter varies depending on the setting of the <A
14167 HREF="#PRINTING"
14168 >               <TT
14169 CLASS="PARAMETER"
14170 ><I
14171 >printing</I
14172 ></TT
14173 ></A
14174 > parameter.</P
14175 ><P
14176 >Default: For <B
14177 CLASS="COMMAND"
14178 >printing = BSD, AIX, QNX, LPRNG 
14179                 or PLP :</B
14180 ></P
14181 ><P
14182 ><B
14183 CLASS="COMMAND"
14184 >print command = lpr -r -P%p %s</B
14185 ></P
14186 ><P
14187 >For <B
14188 CLASS="COMMAND"
14189 >printing = SYSV or HPUX :</B
14190 ></P
14191 ><P
14192 ><B
14193 CLASS="COMMAND"
14194 >print command = lp -c -d%p %s; rm %s</B
14195 ></P
14196 ><P
14197 >For <B
14198 CLASS="COMMAND"
14199 >printing = SOFTQ :</B
14200 ></P
14201 ><P
14202 ><B
14203 CLASS="COMMAND"
14204 >print command = lp -d%p -s %s; rm %s</B
14205 ></P
14206 ><P
14207 >For printing = CUPS :   If SAMBA is compiled against
14208                 libcups, then <A
14209 HREF="#PRINTING"
14210 >printcap = cups</A
14211
14212                 uses the CUPS API to
14213                 submit jobs, etc.  Otherwise it maps to the System V
14214                 commands with the -oraw option for printing, i.e. it
14215                 uses <B
14216 CLASS="COMMAND"
14217 >lp -c -d%p -oraw; rm %s</B
14218 >.   
14219                 With <B
14220 CLASS="COMMAND"
14221 >printing = cups</B
14222 >,
14223                 and if SAMBA is compiled against libcups, any manually 
14224                 set print command will be ignored.</P
14225 ><P
14226 >Example: <B
14227 CLASS="COMMAND"
14228 >print command = /usr/local/samba/bin/myprintscript
14229                 %p %s</B
14230 ></P
14231 ></DD
14232 ><DT
14233 ><A
14234 NAME="PRINTOK"
14235 ></A
14236 >print ok (S)</DT
14237 ><DD
14238 ><P
14239 >Synonym for <A
14240 HREF="#PRINTABLE"
14241 >               <TT
14242 CLASS="PARAMETER"
14243 ><I
14244 >printable</I
14245 ></TT
14246 ></A
14247 >.</P
14248 ></DD
14249 ><DT
14250 ><A
14251 NAME="PRINTABLE"
14252 ></A
14253 >printable (S)</DT
14254 ><DD
14255 ><P
14256 >If this parameter is <TT
14257 CLASS="CONSTANT"
14258 >yes</TT
14259 >, then 
14260                 clients may open, write to and submit spool files on the directory 
14261                 specified for the service. </P
14262 ><P
14263 >Note that a printable service will ALWAYS allow writing 
14264                 to the service path (user privileges permitting) via the spooling 
14265                 of print data. The <A
14266 HREF="#WRITEABLE"
14267 ><TT
14268 CLASS="PARAMETER"
14269 ><I
14270 >writeable
14271                 </I
14272 ></TT
14273 ></A
14274 > parameter controls only non-printing access to 
14275                 the resource.</P
14276 ><P
14277 >Default: <B
14278 CLASS="COMMAND"
14279 >printable = no</B
14280 ></P
14281 ></DD
14282 ><DT
14283 ><A
14284 NAME="PRINTCAP"
14285 ></A
14286 >printcap (G)</DT
14287 ><DD
14288 ><P
14289 >Synonym for    <A
14290 HREF="#PRINTCAPNAME"
14291 ><TT
14292 CLASS="PARAMETER"
14293 ><I
14294 >               printcap name</I
14295 ></TT
14296 ></A
14297 >.</P
14298 ></DD
14299 ><DT
14300 ><A
14301 NAME="PRINTCAPNAME"
14302 ></A
14303 >printcap name (G)</DT
14304 ><DD
14305 ><P
14306 >This parameter may be used to override the 
14307                 compiled-in default printcap name used by the server (usually <TT
14308 CLASS="FILENAME"
14309 >               /etc/printcap</TT
14310 >). See the discussion of the <A
14311 HREF="#AEN79"
14312 >[printers]</A
14313 > section above for reasons 
14314                 why you might want to do this.</P
14315 ><P
14316 >To use the CUPS printing interface set <B
14317 CLASS="COMMAND"
14318 >printcap name = cups
14319                 </B
14320 >. This should be supplemented by an addtional setting 
14321                 <A
14322 HREF="#PRINTING"
14323 >printing = cups</A
14324 > in the [global] 
14325                 section.  <B
14326 CLASS="COMMAND"
14327 >printcap name = cups</B
14328 > will use the  
14329                 "dummy" printcap created by CUPS, as specified in your CUPS
14330                 configuration file.
14331                 </P
14332 ><P
14333 >On System V systems that use <B
14334 CLASS="COMMAND"
14335 >lpstat</B
14336 > to 
14337                 list available printers you can use <B
14338 CLASS="COMMAND"
14339 >printcap name = lpstat
14340                 </B
14341 > to automatically obtain lists of available printers. This 
14342                 is the default for systems that define SYSV at configure time in 
14343                 Samba (this includes most System V based systems). If <TT
14344 CLASS="PARAMETER"
14345 ><I
14346 >               printcap name</I
14347 ></TT
14348 > is set to <B
14349 CLASS="COMMAND"
14350 >lpstat</B
14351 > on 
14352                 these systems then Samba will launch <B
14353 CLASS="COMMAND"
14354 >lpstat -v</B
14355 > and 
14356                 attempt to parse the output to obtain a printer list.</P
14357 ><P
14358 >A minimal printcap file would look something like this:</P
14359 ><P
14360 ><TABLE
14361 BORDER="0"
14362 BGCOLOR="#E0E0E0"
14363 WIDTH="90%"
14364 ><TR
14365 ><TD
14366 ><PRE
14367 CLASS="PROGRAMLISTING"
14368 >               print1|My Printer 1
14369                 print2|My Printer 2
14370                 print3|My Printer 3
14371                 print4|My Printer 4
14372                 print5|My Printer 5
14373                 </PRE
14374 ></TD
14375 ></TR
14376 ></TABLE
14377 ></P
14378 ><P
14379 >where the '|' separates aliases of a printer. The fact 
14380                 that the second alias has a space in it gives a hint to Samba 
14381                 that it's a comment.</P
14382 ><P
14383 ><EM
14384 >NOTE</EM
14385 >: Under AIX the default printcap 
14386                 name is <TT
14387 CLASS="FILENAME"
14388 >/etc/qconfig</TT
14389 >. Samba will assume the 
14390                 file is in AIX <TT
14391 CLASS="FILENAME"
14392 >qconfig</TT
14393 > format if the string
14394                 <TT
14395 CLASS="FILENAME"
14396 >qconfig</TT
14397 > appears in the printcap filename.</P
14398 ><P
14399 >Default: <B
14400 CLASS="COMMAND"
14401 >printcap name = /etc/printcap</B
14402 ></P
14403 ><P
14404 >Example: <B
14405 CLASS="COMMAND"
14406 >printcap name = /etc/myprintcap</B
14407 ></P
14408 ></DD
14409 ><DT
14410 ><A
14411 NAME="PRINTERADMIN"
14412 ></A
14413 >printer admin (S)</DT
14414 ><DD
14415 ><P
14416 >This is a list of users that can do anything to 
14417                 printers via the remote administration interfaces offered by MS-RPC 
14418                 (usually using a NT workstation). Note that the root user always 
14419                 has admin rights.</P
14420 ><P
14421 >Default: <B
14422 CLASS="COMMAND"
14423 >printer admin = &#60;empty string&#62;</B
14424 >
14425                 </P
14426 ><P
14427 >Example: <B
14428 CLASS="COMMAND"
14429 >printer admin = admin, @staff</B
14430 ></P
14431 ></DD
14432 ><DT
14433 ><A
14434 NAME="PRINTERDRIVER"
14435 ></A
14436 >printer driver (S)</DT
14437 ><DD
14438 ><P
14439 ><EM
14440 >Note :</EM
14441 >This is a deprecated 
14442                 parameter and will be removed in the next major release
14443                 following version 2.2.  Please see the instructions in
14444                 the <A
14445 HREF="printer_driver2.html"
14446 TARGET="_top"
14447 >Samba 2.2. Printing
14448                 HOWTO</A
14449 > for more information
14450                 on the new method of loading printer drivers onto a Samba server.
14451                 </P
14452 ><P
14453 >This option allows you to control the string 
14454                 that clients receive when they ask the server for the printer driver 
14455                 associated with a printer. If you are using Windows95 or Windows NT 
14456                 then you can use this to automate the setup of printers on your 
14457                 system.</P
14458 ><P
14459 >You need to set this parameter to the exact string (case 
14460                 sensitive) that describes the appropriate printer driver for your 
14461                 system. If you don't know the exact string to use then you should 
14462                 first try with no <A
14463 HREF="#PRINTERDRIVER"
14464 ><TT
14465 CLASS="PARAMETER"
14466 ><I
14467 >               printer driver</I
14468 ></TT
14469 ></A
14470 > option set and the client will 
14471                 give you a list of printer drivers. The appropriate strings are 
14472                 shown in a scroll box after you have chosen the printer manufacturer.</P
14473 ><P
14474 >See also <A
14475 HREF="#PRINTERDRIVERFILE"
14476 ><TT
14477 CLASS="PARAMETER"
14478 ><I
14479 >printer
14480                 driver file</I
14481 ></TT
14482 ></A
14483 >.</P
14484 ><P
14485 >Example: <B
14486 CLASS="COMMAND"
14487 >printer driver = HP LaserJet 4L</B
14488 ></P
14489 ></DD
14490 ><DT
14491 ><A
14492 NAME="PRINTERDRIVERFILE"
14493 ></A
14494 >printer driver file (G)</DT
14495 ><DD
14496 ><P
14497 ><EM
14498 >Note :</EM
14499 >This is a deprecated 
14500                 parameter and will be removed in the next major release
14501                 following version 2.2.  Please see the instructions in
14502                 the <A
14503 HREF="printer_driver2.html"
14504 TARGET="_top"
14505 >Samba 2.2. Printing
14506                 HOWTO</A
14507 > for more information
14508                 on the new method of loading printer drivers onto a Samba server.
14509                 </P
14510 ><P
14511 >This parameter tells Samba where the printer driver 
14512                 definition file, used when serving drivers to Windows 95 clients, is 
14513                 to be found. If this is not set, the default is :</P
14514 ><P
14515 ><TT
14516 CLASS="FILENAME"
14517 ><TT
14518 CLASS="REPLACEABLE"
14519 ><I
14520 >SAMBA_INSTALL_DIRECTORY</I
14521 ></TT
14522 >
14523                 /lib/printers.def</TT
14524 ></P
14525 ><P
14526 >This file is created from Windows 95 <TT
14527 CLASS="FILENAME"
14528 >msprint.inf
14529                 </TT
14530 > files found on the Windows 95 client system. For more 
14531                 details on setting up serving of printer drivers to Windows 95 
14532                 clients, see the outdated documentation file in the <TT
14533 CLASS="FILENAME"
14534 >docs/</TT
14535
14536                 directory, <TT
14537 CLASS="FILENAME"
14538 >PRINTER_DRIVER.txt</TT
14539 >.</P
14540 ><P
14541 >See also <A
14542 HREF="#PRINTERDRIVERLOCATION"
14543 ><TT
14544 CLASS="PARAMETER"
14545 ><I
14546 >               printer driver location</I
14547 ></TT
14548 ></A
14549 >.</P
14550 ><P
14551 >Default: <EM
14552 >None (set in compile).</EM
14553 ></P
14554 ><P
14555 >Example: <B
14556 CLASS="COMMAND"
14557 >printer driver file = 
14558                 /usr/local/samba/printers/drivers.def</B
14559 ></P
14560 ></DD
14561 ><DT
14562 ><A
14563 NAME="PRINTERDRIVERLOCATION"
14564 ></A
14565 >printer driver location (S)</DT
14566 ><DD
14567 ><P
14568 ><EM
14569 >Note :</EM
14570 >This is a deprecated 
14571                 parameter and will be removed in the next major release
14572                 following version 2.2.  Please see the instructions in
14573                 the <A
14574 HREF="printer_driver2.html"
14575 TARGET="_top"
14576 >Samba 2.2. Printing
14577                 HOWTO</A
14578 > for more information
14579                 on the new method of loading printer drivers onto a Samba server.
14580                 </P
14581 ><P
14582 >This parameter tells clients of a particular printer 
14583                 share where to find the printer driver files for the automatic 
14584                 installation of drivers for Windows 95 machines. If Samba is set up 
14585                 to serve printer drivers to Windows 95 machines, this should be set to</P
14586 ><P
14587 ><B
14588 CLASS="COMMAND"
14589 >\\MACHINE\PRINTER$</B
14590 ></P
14591 ><P
14592 >Where MACHINE is the NetBIOS name of your Samba server, 
14593                 and PRINTER$ is a share you set up for serving printer driver 
14594                 files. For more details on setting this up see the outdated documentation 
14595                 file in the <TT
14596 CLASS="FILENAME"
14597 >docs/</TT
14598 > directory, <TT
14599 CLASS="FILENAME"
14600 >               PRINTER_DRIVER.txt</TT
14601 >.</P
14602 ><P
14603 >See also <A
14604 HREF="#PRINTERDRIVERFILE"
14605 ><TT
14606 CLASS="PARAMETER"
14607 ><I
14608 >               printer driver file</I
14609 ></TT
14610 ></A
14611 >.</P
14612 ><P
14613 >Default: <B
14614 CLASS="COMMAND"
14615 >none</B
14616 ></P
14617 ><P
14618 >Example: <B
14619 CLASS="COMMAND"
14620 >printer driver location = \\MACHINE\PRINTER$
14621                 </B
14622 ></P
14623 ></DD
14624 ><DT
14625 ><A
14626 NAME="PRINTERNAME"
14627 ></A
14628 >printer name (S)</DT
14629 ><DD
14630 ><P
14631 >This parameter specifies the name of the printer 
14632                 to which print jobs spooled through a printable service will be sent.</P
14633 ><P
14634 >If specified in the [global] section, the printer
14635                 name given will be used for any printable service that does 
14636                 not have its own printer name specified.</P
14637 ><P
14638 >Default: <EM
14639 >none (but may be <TT
14640 CLASS="CONSTANT"
14641 >lp</TT
14642
14643                 on many systems)</EM
14644 ></P
14645 ><P
14646 >Example: <B
14647 CLASS="COMMAND"
14648 >printer name = laserwriter</B
14649 ></P
14650 ></DD
14651 ><DT
14652 ><A
14653 NAME="PRINTER"
14654 ></A
14655 >printer (S)</DT
14656 ><DD
14657 ><P
14658 >Synonym for <A
14659 HREF="#PRINTERNAME"
14660 ><TT
14661 CLASS="PARAMETER"
14662 ><I
14663 >               printer name</I
14664 ></TT
14665 ></A
14666 >.</P
14667 ></DD
14668 ><DT
14669 ><A
14670 NAME="PRINTING"
14671 ></A
14672 >printing (S)</DT
14673 ><DD
14674 ><P
14675 >This parameters controls how printer status 
14676                 information is interpreted on your system. It also affects the 
14677                 default values for the <TT
14678 CLASS="PARAMETER"
14679 ><I
14680 >print command</I
14681 ></TT
14682 >, 
14683                 <TT
14684 CLASS="PARAMETER"
14685 ><I
14686 >lpq command</I
14687 ></TT
14688 >, <TT
14689 CLASS="PARAMETER"
14690 ><I
14691 >lppause command
14692                 </I
14693 ></TT
14694 >, <TT
14695 CLASS="PARAMETER"
14696 ><I
14697 >lpresume command</I
14698 ></TT
14699 >, and 
14700                 <TT
14701 CLASS="PARAMETER"
14702 ><I
14703 >lprm command</I
14704 ></TT
14705 > if specified in the 
14706                 [global] section.</P
14707 ><P
14708 >Currently nine printing styles are supported. They are
14709                 <TT
14710 CLASS="CONSTANT"
14711 >BSD</TT
14712 >, <TT
14713 CLASS="CONSTANT"
14714 >AIX</TT
14715 >, 
14716                 <TT
14717 CLASS="CONSTANT"
14718 >LPRNG</TT
14719 >, <TT
14720 CLASS="CONSTANT"
14721 >PLP</TT
14722 >,
14723                 <TT
14724 CLASS="CONSTANT"
14725 >SYSV</TT
14726 >, <TT
14727 CLASS="CONSTANT"
14728 >HPUX</TT
14729 >,
14730                 <TT
14731 CLASS="CONSTANT"
14732 >QNX</TT
14733 >, <TT
14734 CLASS="CONSTANT"
14735 >SOFTQ</TT
14736 >,
14737                 and <TT
14738 CLASS="CONSTANT"
14739 >CUPS</TT
14740 >.</P
14741 ><P
14742 >To see what the defaults are for the other print 
14743                 commands when using the various options use the <A
14744 HREF="testparm.1.html"
14745 TARGET="_top"
14746 >testparm(1)</A
14747 > program.</P
14748 ><P
14749 >This option can be set on a per printer basis</P
14750 ><P
14751 >See also the discussion in the <A
14752 HREF="#AEN79"
14753 >               [printers]</A
14754 > section.</P
14755 ></DD
14756 ><DT
14757 ><A
14758 NAME="PRIVATEDIR"
14759 ></A
14760 >private dir (G)</DT
14761 ><DD
14762 ><P
14763 >This parameters defines the directory
14764                 smbd will use for storing such files as <TT
14765 CLASS="FILENAME"
14766 >smbpasswd</TT
14767 >
14768                 and <TT
14769 CLASS="FILENAME"
14770 >secrets.tdb</TT
14771 >.
14772                 </P
14773 ><P
14774 >Default :<B
14775 CLASS="COMMAND"
14776 >private dir = ${prefix}/private</B
14777 ></P
14778 ></DD
14779 ><DT
14780 ><A
14781 NAME="PROTOCOL"
14782 ></A
14783 >protocol (G)</DT
14784 ><DD
14785 ><P
14786 >Synonym for <A
14787 HREF="#MAXPROTOCOL"
14788 >               <TT
14789 CLASS="PARAMETER"
14790 ><I
14791 >max protocol</I
14792 ></TT
14793 ></A
14794 >.</P
14795 ></DD
14796 ><DT
14797 ><A
14798 NAME="PUBLIC"
14799 ></A
14800 >public (S)</DT
14801 ><DD
14802 ><P
14803 >Synonym for <A
14804 HREF="#GUESTOK"
14805 ><TT
14806 CLASS="PARAMETER"
14807 ><I
14808 >guest 
14809                 ok</I
14810 ></TT
14811 ></A
14812 >.</P
14813 ></DD
14814 ><DT
14815 ><A
14816 NAME="QUEUEPAUSECOMMAND"
14817 ></A
14818 >queuepause command (S)</DT
14819 ><DD
14820 ><P
14821 >This parameter specifies the command to be 
14822                 executed on the server host in order to pause the printer queue.</P
14823 ><P
14824 >This command should be a program or script which takes 
14825                 a printer name as its only parameter and stops the printer queue, 
14826                 such that no longer jobs are submitted to the printer.</P
14827 ><P
14828 >This command is not supported by Windows for Workgroups, 
14829                 but can be issued from the Printers window under Windows 95 
14830                 and NT.</P
14831 ><P
14832 >If a <TT
14833 CLASS="PARAMETER"
14834 ><I
14835 >%p</I
14836 ></TT
14837 > is given then the printer name 
14838                 is put in its place. Otherwise it is placed at the end of the command.
14839                 </P
14840 ><P
14841 >Note that it is good practice to include the absolute 
14842                 path in the command as the PATH may not be available to the 
14843                 server.</P
14844 ><P
14845 >Default: <EM
14846 >depends on the setting of <TT
14847 CLASS="PARAMETER"
14848 ><I
14849 >printing
14850                 </I
14851 ></TT
14852 ></EM
14853 ></P
14854 ><P
14855 >Example: <B
14856 CLASS="COMMAND"
14857 >queuepause command = disable %p</B
14858 ></P
14859 ></DD
14860 ><DT
14861 ><A
14862 NAME="QUEUERESUMECOMMAND"
14863 ></A
14864 >queueresume command (S)</DT
14865 ><DD
14866 ><P
14867 >This parameter specifies the command to be 
14868                 executed on the server host in order to resume the printer queue. It 
14869                 is the command to undo the behavior that is caused by the 
14870                 previous parameter (<A
14871 HREF="#QUEUEPAUSECOMMAND"
14872 ><TT
14873 CLASS="PARAMETER"
14874 ><I
14875 >               queuepause command</I
14876 ></TT
14877 ></A
14878 >).</P
14879 ><P
14880 >This command should be a program or script which takes 
14881                 a printer name as its only parameter and resumes the printer queue, 
14882                 such that queued jobs are resubmitted to the printer.</P
14883 ><P
14884 >This command is not supported by Windows for Workgroups, 
14885                 but can be issued from the Printers window under Windows 95 
14886                 and NT.</P
14887 ><P
14888 >If a <TT
14889 CLASS="PARAMETER"
14890 ><I
14891 >%p</I
14892 ></TT
14893 > is given then the printer name 
14894                 is put in its place. Otherwise it is placed at the end of the 
14895                 command.</P
14896 ><P
14897 >Note that it is good practice to include the absolute 
14898                 path in the command as the PATH may not be available to the 
14899                 server.</P
14900 ><P
14901 >Default: <EM
14902 >depends on the setting of <A
14903 HREF="#PRINTING"
14904 ><TT
14905 CLASS="PARAMETER"
14906 ><I
14907 >printing</I
14908 ></TT
14909 ></A
14910 ></EM
14911 >
14912                 </P
14913 ><P
14914 >Example: <B
14915 CLASS="COMMAND"
14916 >queuepause command = enable %p
14917                 </B
14918 ></P
14919 ></DD
14920 ><DT
14921 ><A
14922 NAME="READBMPX"
14923 ></A
14924 >read bmpx (G)</DT
14925 ><DD
14926 ><P
14927 >This boolean parameter controls whether <A
14928 HREF="smbd.8.html"
14929 TARGET="_top"
14930 >smbd(8)</A
14931 > will support the "Read 
14932                 Block Multiplex" SMB. This is now rarely used and defaults to 
14933                 <TT
14934 CLASS="CONSTANT"
14935 >no</TT
14936 >. You should never need to set this 
14937                 parameter.</P
14938 ><P
14939 >Default: <B
14940 CLASS="COMMAND"
14941 >read bmpx = no</B
14942 ></P
14943 ></DD
14944 ><DT
14945 ><A
14946 NAME="READLIST"
14947 ></A
14948 >read list (S)</DT
14949 ><DD
14950 ><P
14951 >This is a list of users that are given read-only 
14952                 access to a service. If the connecting user is in this list then 
14953                 they will not be given write access, no matter what the <A
14954 HREF="#WRITEABLE"
14955 ><TT
14956 CLASS="PARAMETER"
14957 ><I
14958 >writeable</I
14959 ></TT
14960 ></A
14961 >
14962                 option is set to. The list can include group names using the 
14963                 syntax described in the <A
14964 HREF="#INVALIDUSERS"
14965 ><TT
14966 CLASS="PARAMETER"
14967 ><I
14968 >               invalid users</I
14969 ></TT
14970 ></A
14971 > parameter.</P
14972 ><P
14973 >See also the <A
14974 HREF="#WRITELIST"
14975 ><TT
14976 CLASS="PARAMETER"
14977 ><I
14978 >               write list</I
14979 ></TT
14980 ></A
14981 > parameter and the <A
14982 HREF="#INVALIDUSERS"
14983 ><TT
14984 CLASS="PARAMETER"
14985 ><I
14986 >invalid users</I
14987 ></TT
14988 >
14989                 </A
14990 > parameter.</P
14991 ><P
14992 >Default: <B
14993 CLASS="COMMAND"
14994 >read list = &#60;empty string&#62;</B
14995 ></P
14996 ><P
14997 >Example: <B
14998 CLASS="COMMAND"
14999 >read list = mary, @students</B
15000 ></P
15001 ></DD
15002 ><DT
15003 ><A
15004 NAME="READONLY"
15005 ></A
15006 >read only (S)</DT
15007 ><DD
15008 ><P
15009 >Note that this is an inverted synonym for <A
15010 HREF="#WRITEABLE"
15011 ><TT
15012 CLASS="PARAMETER"
15013 ><I
15014 >writeable</I
15015 ></TT
15016 ></A
15017 >.</P
15018 ></DD
15019 ><DT
15020 ><A
15021 NAME="READRAW"
15022 ></A
15023 >read raw (G)</DT
15024 ><DD
15025 ><P
15026 >This parameter controls whether or not the server 
15027                 will support the raw read SMB requests when transferring data 
15028                 to clients.</P
15029 ><P
15030 >If enabled, raw reads allow reads of 65535 bytes in 
15031                 one packet. This typically provides a major performance benefit.
15032                 </P
15033 ><P
15034 >However, some clients either negotiate the allowable 
15035                 block size incorrectly or are incapable of supporting larger block 
15036                 sizes, and for these clients you may need to disable raw reads.</P
15037 ><P
15038 >In general this parameter should be viewed as a system tuning 
15039                 tool and left severely alone. See also <A
15040 HREF="#WRITERAW"
15041 >               <TT
15042 CLASS="PARAMETER"
15043 ><I
15044 >write raw</I
15045 ></TT
15046 ></A
15047 >.</P
15048 ><P
15049 >Default: <B
15050 CLASS="COMMAND"
15051 >read raw = yes</B
15052 ></P
15053 ></DD
15054 ><DT
15055 ><A
15056 NAME="READSIZE"
15057 ></A
15058 >read size (G)</DT
15059 ><DD
15060 ><P
15061 >The option <TT
15062 CLASS="PARAMETER"
15063 ><I
15064 >read size</I
15065 ></TT
15066
15067                 affects the overlap of disk reads/writes with network reads/writes. 
15068                 If the amount of data being transferred in several of the SMB 
15069                 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger 
15070                 than this value then the server begins writing the data before it 
15071                 has received the whole packet from the network, or in the case of 
15072                 SMBreadbraw, it begins writing to the network before all the data 
15073                 has been read from disk.</P
15074 ><P
15075 >This overlapping works best when the speeds of disk and 
15076                 network access are similar, having very little effect when the 
15077                 speed of one is much greater than the other.</P
15078 ><P
15079 >The default value is 16384, but very little experimentation 
15080                 has been done yet to determine the optimal value, and it is likely 
15081                 that the best value will vary greatly between systems anyway. 
15082                 A value over 65536 is pointless and will cause you to allocate 
15083                 memory unnecessarily.</P
15084 ><P
15085 >Default: <B
15086 CLASS="COMMAND"
15087 >read size = 16384</B
15088 ></P
15089 ><P
15090 >Example: <B
15091 CLASS="COMMAND"
15092 >read size = 8192</B
15093 ></P
15094 ></DD
15095 ><DT
15096 ><A
15097 NAME="REMOTEANNOUNCE"
15098 ></A
15099 >remote announce (G)</DT
15100 ><DD
15101 ><P
15102 >This option allows you to setup <A
15103 HREF="nmbd.8.html"
15104 TARGET="_top"
15105 >nmbd(8)</A
15106 > to periodically announce itself 
15107                 to arbitrary IP addresses with an arbitrary workgroup name.</P
15108 ><P
15109 >This is useful if you want your Samba server to appear 
15110                 in a remote workgroup for which the normal browse propagation 
15111                 rules don't work. The remote workgroup can be anywhere that you 
15112                 can send IP packets to.</P
15113 ><P
15114 >For example:</P
15115 ><P
15116 ><B
15117 CLASS="COMMAND"
15118 >remote announce = 192.168.2.255/SERVERS 
15119                 192.168.4.255/STAFF</B
15120 ></P
15121 ><P
15122 >the above line would cause <B
15123 CLASS="COMMAND"
15124 >nmbd</B
15125 > to announce itself 
15126                 to the two given IP addresses using the given workgroup names. 
15127                 If you leave out the workgroup name then the one given in 
15128                 the <A
15129 HREF="#WORKGROUP"
15130 ><TT
15131 CLASS="PARAMETER"
15132 ><I
15133 >workgroup</I
15134 ></TT
15135 ></A
15136
15137                 parameter is used instead.</P
15138 ><P
15139 >The IP addresses you choose would normally be the broadcast 
15140                 addresses of the remote networks, but can also be the IP addresses 
15141                 of known browse masters if your network config is that stable.</P
15142 ><P
15143 >See the documentation file <TT
15144 CLASS="FILENAME"
15145 >BROWSING.txt</TT
15146
15147                 in the <TT
15148 CLASS="FILENAME"
15149 >docs/</TT
15150 > directory.</P
15151 ><P
15152 >Default: <B
15153 CLASS="COMMAND"
15154 >remote announce = &#60;empty string&#62;
15155                 </B
15156 ></P
15157 ></DD
15158 ><DT
15159 ><A
15160 NAME="REMOTEBROWSESYNC"
15161 ></A
15162 >remote browse sync (G)</DT
15163 ><DD
15164 ><P
15165 >This option allows you to setup <A
15166 HREF="nmbd.8.html"
15167 TARGET="_top"
15168 >nmbd(8)</A
15169 > to periodically request 
15170                 synchronization of browse lists with the master browser of a Samba 
15171                 server that is on a remote segment. This option will allow you to 
15172                 gain browse lists for multiple workgroups across routed networks. This 
15173                 is done in a manner that does not work with any non-Samba servers.</P
15174 ><P
15175 >This is useful if you want your Samba server and all local 
15176                 clients to appear in a remote workgroup for which the normal browse 
15177                 propagation rules don't work. The remote workgroup can be anywhere 
15178                 that you can send IP packets to.</P
15179 ><P
15180 >For example:</P
15181 ><P
15182 ><B
15183 CLASS="COMMAND"
15184 >remote browse sync = 192.168.2.255 192.168.4.255
15185                 </B
15186 ></P
15187 ><P
15188 >the above line would cause <B
15189 CLASS="COMMAND"
15190 >nmbd</B
15191 > to request 
15192                 the master browser on the specified subnets or addresses to 
15193                 synchronize their browse lists with the local server.</P
15194 ><P
15195 >The IP addresses you choose would normally be the broadcast 
15196                 addresses of the remote networks, but can also be the IP addresses 
15197                 of known browse masters if your network config is that stable. If 
15198                 a machine IP address is given Samba makes NO attempt to validate 
15199                 that the remote machine is available, is listening, nor that it 
15200                 is in fact the browse master on its segment.</P
15201 ><P
15202 >Default: <B
15203 CLASS="COMMAND"
15204 >remote browse sync = &#60;empty string&#62;
15205                 </B
15206 ></P
15207 ></DD
15208 ><DT
15209 ><A
15210 NAME="RESTRICTANONYMOUS"
15211 ></A
15212 >restrict anonymous (G)</DT
15213 ><DD
15214 ><P
15215 >This is a boolean parameter.  If it is <TT
15216 CLASS="CONSTANT"
15217 >true</TT
15218 >, then 
15219                 anonymous access to the server will be restricted, namely in the 
15220                 case where the server is expecting the client to send a username, 
15221                 but it doesn't.  Setting it to <TT
15222 CLASS="CONSTANT"
15223 >true</TT
15224 > will force these anonymous 
15225                 connections to be denied, and the client will be required to always 
15226                 supply a username and password when connecting. Use of this parameter 
15227                 is only recommended for homogeneous NT client environments.</P
15228 ><P
15229 >This parameter makes the use of macro expansions that rely
15230                 on the username (%U, %G, etc) consistent.  NT 4.0 
15231                 likes to use anonymous connections when refreshing the share list, 
15232                 and this is a way to work around that.</P
15233 ><P
15234 >When restrict anonymous is <TT
15235 CLASS="CONSTANT"
15236 >true</TT
15237 >, all anonymous connections 
15238                 are denied no matter what they are for.  This can effect the ability 
15239                 of a machine to access the Samba Primary Domain Controller to revalidate 
15240                 its machine account after someone else has logged on the client 
15241                 interactively.  The NT client will display a message saying that 
15242                 the machine's account in  the domain doesn't exist or the password is 
15243                 bad.  The best way to deal  with this is to reboot NT client machines 
15244                 between interactive logons,  using "Shutdown and Restart", rather 
15245                 than "Close all programs and logon as a different user".</P
15246 ><P
15247 >Default: <B
15248 CLASS="COMMAND"
15249 >restrict anonymous = no</B
15250 ></P
15251 ></DD
15252 ><DT
15253 ><A
15254 NAME="ROOT"
15255 ></A
15256 >root (G)</DT
15257 ><DD
15258 ><P
15259 >Synonym for <A
15260 HREF="#ROOTDIRECTORY"
15261 >               <TT
15262 CLASS="PARAMETER"
15263 ><I
15264 >root directory"</I
15265 ></TT
15266 ></A
15267 >.</P
15268 ></DD
15269 ><DT
15270 ><A
15271 NAME="ROOTDIR"
15272 ></A
15273 >root dir (G)</DT
15274 ><DD
15275 ><P
15276 >Synonym for <A
15277 HREF="#ROOTDIRECTORY"
15278 >               <TT
15279 CLASS="PARAMETER"
15280 ><I
15281 >root directory"</I
15282 ></TT
15283 ></A
15284 >.</P
15285 ></DD
15286 ><DT
15287 ><A
15288 NAME="ROOTDIRECTORY"
15289 ></A
15290 >root directory (G)</DT
15291 ><DD
15292 ><P
15293 >The server will <B
15294 CLASS="COMMAND"
15295 >chroot()</B
15296 > (i.e. 
15297                 Change its root directory) to this directory on startup. This is 
15298                 not strictly necessary for secure operation. Even without it the 
15299                 server will deny access to files not in one of the service entries. 
15300                 It may also check for, and deny access to, soft links to other 
15301                 parts of the filesystem, or attempts to use ".." in file names 
15302                 to access other directories (depending on the setting of the <A
15303 HREF="#WIDELINKS"
15304 ><TT
15305 CLASS="PARAMETER"
15306 ><I
15307 >wide links</I
15308 ></TT
15309 ></A
15310
15311                 parameter).</P
15312 ><P
15313 >Adding a <TT
15314 CLASS="PARAMETER"
15315 ><I
15316 >root directory</I
15317 ></TT
15318 > entry other 
15319                 than "/" adds an extra level of security, but at a price. It 
15320                 absolutely ensures that no access is given to files not in the 
15321                 sub-tree specified in the <TT
15322 CLASS="PARAMETER"
15323 ><I
15324 >root directory</I
15325 ></TT
15326
15327                 option, <EM
15328 >including</EM
15329 > some files needed for 
15330                 complete operation of the server. To maintain full operability 
15331                 of the server you will need to mirror some system files 
15332                 into the <TT
15333 CLASS="PARAMETER"
15334 ><I
15335 >root directory</I
15336 ></TT
15337 > tree. In particular 
15338                 you will need to mirror <TT
15339 CLASS="FILENAME"
15340 >/etc/passwd</TT
15341 > (or a 
15342                 subset of it), and any binaries or configuration files needed for 
15343                 printing (if required). The set of files that must be mirrored is
15344                 operating system dependent.</P
15345 ><P
15346 >Default: <B
15347 CLASS="COMMAND"
15348 >root directory = /</B
15349 ></P
15350 ><P
15351 >Example: <B
15352 CLASS="COMMAND"
15353 >root directory = /homes/smb</B
15354 ></P
15355 ></DD
15356 ><DT
15357 ><A
15358 NAME="ROOTPOSTEXEC"
15359 ></A
15360 >root postexec (S)</DT
15361 ><DD
15362 ><P
15363 >This is the same as the <TT
15364 CLASS="PARAMETER"
15365 ><I
15366 >postexec</I
15367 ></TT
15368 >
15369                 parameter except that the command is run as root. This 
15370                 is useful for unmounting filesystems 
15371                 (such as CDROMs) after a connection is closed.</P
15372 ><P
15373 >See also <A
15374 HREF="#POSTEXEC"
15375 ><TT
15376 CLASS="PARAMETER"
15377 ><I
15378 >               postexec</I
15379 ></TT
15380 ></A
15381 >.</P
15382 ><P
15383 >Default: <B
15384 CLASS="COMMAND"
15385 >root postexec = &#60;empty string&#62;
15386                 </B
15387 ></P
15388 ></DD
15389 ><DT
15390 ><A
15391 NAME="ROOTPREEXEC"
15392 ></A
15393 >root preexec (S)</DT
15394 ><DD
15395 ><P
15396 >This is the same as the <TT
15397 CLASS="PARAMETER"
15398 ><I
15399 >preexec</I
15400 ></TT
15401 >
15402                 parameter except that the command is run as root. This 
15403                 is useful for mounting filesystems (such as CDROMs) when a 
15404                 connection is opened.</P
15405 ><P
15406 >See also <A
15407 HREF="#PREEXEC"
15408 ><TT
15409 CLASS="PARAMETER"
15410 ><I
15411 >               preexec</I
15412 ></TT
15413 ></A
15414 > and <A
15415 HREF="#PREEXECCLOSE"
15416 >               <TT
15417 CLASS="PARAMETER"
15418 ><I
15419 >preexec close</I
15420 ></TT
15421 ></A
15422 >.</P
15423 ><P
15424 >Default: <B
15425 CLASS="COMMAND"
15426 >root preexec = &#60;empty string&#62;
15427                 </B
15428 ></P
15429 ></DD
15430 ><DT
15431 ><A
15432 NAME="ROOTPREEXECCLOSE"
15433 ></A
15434 >root preexec close (S)</DT
15435 ><DD
15436 ><P
15437 >This is the same as the <TT
15438 CLASS="PARAMETER"
15439 ><I
15440 >preexec close
15441                 </I
15442 ></TT
15443 > parameter except that the command is run as root.</P
15444 ><P
15445 >See also <A
15446 HREF="#PREEXEC"
15447 ><TT
15448 CLASS="PARAMETER"
15449 ><I
15450 >               preexec</I
15451 ></TT
15452 ></A
15453 > and <A
15454 HREF="#PREEXECCLOSE"
15455 >               <TT
15456 CLASS="PARAMETER"
15457 ><I
15458 >preexec close</I
15459 ></TT
15460 ></A
15461 >.</P
15462 ><P
15463 >Default: <B
15464 CLASS="COMMAND"
15465 >root preexec close = no</B
15466 ></P
15467 ></DD
15468 ><DT
15469 ><A
15470 NAME="SECURITY"
15471 ></A
15472 >security (G)</DT
15473 ><DD
15474 ><P
15475 >This option affects how clients respond to 
15476                 Samba and is one of the most important settings in the <TT
15477 CLASS="FILENAME"
15478 >               smb.conf</TT
15479 > file.</P
15480 ><P
15481 >The option sets the "security mode bit" in replies to 
15482                 protocol negotiations with <A
15483 HREF="smbd.8.html"
15484 TARGET="_top"
15485 >smbd(8)
15486                 </A
15487 > to turn share level security on or off. Clients decide 
15488                 based on this bit whether (and how) to transfer user and password 
15489                 information to the server.</P
15490 ><P
15491 >The default is <B
15492 CLASS="COMMAND"
15493 >security = user</B
15494 >, as this is
15495                 the most common setting needed when talking to Windows 98 and 
15496                 Windows NT.</P
15497 ><P
15498 >The alternatives are <B
15499 CLASS="COMMAND"
15500 >security = share</B
15501 >,
15502                 <B
15503 CLASS="COMMAND"
15504 >security = server</B
15505 > or <B
15506 CLASS="COMMAND"
15507 >security = domain
15508                 </B
15509 >.</P
15510 ><P
15511 >In versions of Samba prior to 2.0.0, the default was 
15512                 <B
15513 CLASS="COMMAND"
15514 >security = share</B
15515 > mainly because that was
15516                 the only option at one stage.</P
15517 ><P
15518 >There is a bug in WfWg that has relevance to this 
15519                 setting. When in user or server level security a WfWg client 
15520                 will totally ignore the password you type in the "connect 
15521                 drive" dialog box. This makes it very difficult (if not impossible) 
15522                 to connect to a Samba service as anyone except the user that 
15523                 you are logged into WfWg as.</P
15524 ><P
15525 >If your PCs use usernames that are the same as their 
15526                 usernames on the UNIX machine then you will want to use 
15527                 <B
15528 CLASS="COMMAND"
15529 >security = user</B
15530 >. If you mostly use usernames 
15531                 that don't exist on the UNIX box then use <B
15532 CLASS="COMMAND"
15533 >security = 
15534                 share</B
15535 >.</P
15536 ><P
15537 >You should also use <B
15538 CLASS="COMMAND"
15539 >security = share</B
15540 > if you 
15541                 want to mainly setup shares without a password (guest shares). This 
15542                 is commonly used for a shared printer server. It is more difficult 
15543                 to setup guest shares with <B
15544 CLASS="COMMAND"
15545 >security = user</B
15546 >, see 
15547                 the <A
15548 HREF="#MAPTOGUEST"
15549 ><TT
15550 CLASS="PARAMETER"
15551 ><I
15552 >map to guest</I
15553 ></TT
15554 >
15555                 </A
15556 >parameter for details.</P
15557 ><P
15558 >It is possible to use <B
15559 CLASS="COMMAND"
15560 >smbd</B
15561 > in a <EM
15562 >               hybrid mode</EM
15563 > where it is offers both user and share 
15564                 level security under different <A
15565 HREF="#NETBIOSALIASES"
15566 >               <TT
15567 CLASS="PARAMETER"
15568 ><I
15569 >NetBIOS aliases</I
15570 ></TT
15571 ></A
15572 >. </P
15573 ><P
15574 >The different settings will now be explained.</P
15575 ><P
15576 ><A
15577 NAME="SECURITYEQUALSSHARE"
15578 ></A
15579 ><EM
15580 >SECURITY = SHARE
15581                 </EM
15582 ></P
15583 ><P
15584 >When clients connect to a share level security server they 
15585                 need not log onto the server with a valid username and password before 
15586                 attempting to connect to a shared resource (although modern clients 
15587                 such as Windows 95/98 and Windows NT will send a logon request with 
15588                 a username but no password when talking to a <B
15589 CLASS="COMMAND"
15590 >security = share
15591                 </B
15592 > server). Instead, the clients send authentication information 
15593                 (passwords) on a per-share basis, at the time they attempt to connect 
15594                 to that share.</P
15595 ><P
15596 >Note that <B
15597 CLASS="COMMAND"
15598 >smbd</B
15599 > <EM
15600 >ALWAYS</EM
15601
15602                 uses a valid UNIX user to act on behalf of the client, even in
15603                 <B
15604 CLASS="COMMAND"
15605 >security = share</B
15606 > level security.</P
15607 ><P
15608 >As clients are not required to send a username to the server
15609                 in share level security, <B
15610 CLASS="COMMAND"
15611 >smbd</B
15612 > uses several
15613                 techniques to determine the correct UNIX user to use on behalf
15614                 of the client.</P
15615 ><P
15616 >A list of possible UNIX usernames to match with the given
15617                 client password is constructed using the following methods :</P
15618 ><P
15619 ></P
15620 ><UL
15621 ><LI
15622 ><P
15623 >If the <A
15624 HREF="#GUESTONLY"
15625 ><TT
15626 CLASS="PARAMETER"
15627 ><I
15628 >guest 
15629                         only</I
15630 ></TT
15631 ></A
15632 > parameter is set, then all the other 
15633                         stages are missed and only the <A
15634 HREF="#GUESTACCOUNT"
15635 >                       <TT
15636 CLASS="PARAMETER"
15637 ><I
15638 >guest account</I
15639 ></TT
15640 ></A
15641 > username is checked.
15642                         </P
15643 ></LI
15644 ><LI
15645 ><P
15646 >Is a username is sent with the share connection 
15647                         request, then this username (after mapping - see <A
15648 HREF="#USERNAMEMAP"
15649 ><TT
15650 CLASS="PARAMETER"
15651 ><I
15652 >username map</I
15653 ></TT
15654 ></A
15655 >), 
15656                         is added as a potential username.</P
15657 ></LI
15658 ><LI
15659 ><P
15660 >If the client did a previous <EM
15661 >logon
15662                         </EM
15663 > request (the SessionSetup SMB call) then the 
15664                         username sent in this SMB will be added as a potential username.
15665                         </P
15666 ></LI
15667 ><LI
15668 ><P
15669 >The name of the service the client requested is 
15670                         added as a potential username.</P
15671 ></LI
15672 ><LI
15673 ><P
15674 >The NetBIOS name of the client is added to 
15675                         the list as a potential username.</P
15676 ></LI
15677 ><LI
15678 ><P
15679 >Any users on the <A
15680 HREF="#USER"
15681 ><TT
15682 CLASS="PARAMETER"
15683 ><I
15684 >                       user</I
15685 ></TT
15686 ></A
15687 > list are added as potential usernames.
15688                         </P
15689 ></LI
15690 ></UL
15691 ><P
15692 >If the <TT
15693 CLASS="PARAMETER"
15694 ><I
15695 >guest only</I
15696 ></TT
15697 > parameter is 
15698                 not set, then this list is then tried with the supplied password. 
15699                 The first user for whom the password matches will be used as the 
15700                 UNIX user.</P
15701 ><P
15702 >If the <TT
15703 CLASS="PARAMETER"
15704 ><I
15705 >guest only</I
15706 ></TT
15707 > parameter is 
15708                 set, or no username can be determined then if the share is marked 
15709                 as available to the <TT
15710 CLASS="PARAMETER"
15711 ><I
15712 >guest account</I
15713 ></TT
15714 >, then this 
15715                 guest user will be used, otherwise access is denied.</P
15716 ><P
15717 >Note that it can be <EM
15718 >very</EM
15719 > confusing 
15720                 in share-level security as to which UNIX username will eventually
15721                 be used in granting access.</P
15722 ><P
15723 >See also the section <A
15724 HREF="#AEN236"
15725 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15726 >.</P
15727 ><P
15728 ><A
15729 NAME="SECURITYEQUALSUSER"
15730 ></A
15731 ><EM
15732 >SECURITY = USER
15733                 </EM
15734 ></P
15735 ><P
15736 >This is the default security setting in Samba 2.2. 
15737                 With user-level security a client must first "log-on" with a 
15738                 valid username and password (which can be mapped using the <A
15739 HREF="#USERNAMEMAP"
15740 ><TT
15741 CLASS="PARAMETER"
15742 ><I
15743 >username map</I
15744 ></TT
15745 ></A
15746
15747                 parameter). Encrypted passwords (see the <A
15748 HREF="#ENCRYPTPASSWORDS"
15749 >               <TT
15750 CLASS="PARAMETER"
15751 ><I
15752 >encrypted passwords</I
15753 ></TT
15754 ></A
15755 > parameter) can also
15756                 be used in this security mode. Parameters such as <A
15757 HREF="#USER"
15758 >               <TT
15759 CLASS="PARAMETER"
15760 ><I
15761 >user</I
15762 ></TT
15763 ></A
15764 > and <A
15765 HREF="#GUESTONLY"
15766 >               <TT
15767 CLASS="PARAMETER"
15768 ><I
15769 >guest only</I
15770 ></TT
15771 ></A
15772 > if set        are then applied and 
15773                 may change the UNIX user to use on this connection, but only after 
15774                 the user has been successfully authenticated.</P
15775 ><P
15776 ><EM
15777 >Note</EM
15778 > that the name of the resource being 
15779                 requested is <EM
15780 >not</EM
15781 > sent to the server until after 
15782                 the server has successfully authenticated the client. This is why 
15783                 guest shares don't work in user level security without allowing 
15784                 the server to automatically map unknown users into the <A
15785 HREF="#GUESTACCOUNT"
15786 ><TT
15787 CLASS="PARAMETER"
15788 ><I
15789 >guest account</I
15790 ></TT
15791 ></A
15792 >. 
15793                 See the <A
15794 HREF="#MAPTOGUEST"
15795 ><TT
15796 CLASS="PARAMETER"
15797 ><I
15798 >map to guest</I
15799 ></TT
15800 >
15801                 </A
15802 > parameter for details on doing this.</P
15803 ><P
15804 >See also the section <A
15805 HREF="#AEN236"
15806 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15807 >.</P
15808 ><P
15809 ><A
15810 NAME="SECURITYEQUALSSERVER"
15811 ></A
15812 ><EM
15813 >SECURITY = SERVER
15814                 </EM
15815 ></P
15816 ><P
15817 >In this mode Samba will try to validate the username/password 
15818                 by passing it to another SMB server, such as an NT box. If this 
15819                 fails it will revert to <B
15820 CLASS="COMMAND"
15821 >security = user</B
15822 >, but note 
15823                 that if encrypted passwords have been negotiated then Samba cannot 
15824                 revert back to checking the UNIX password file, it must have a valid 
15825                 <TT
15826 CLASS="FILENAME"
15827 >smbpasswd</TT
15828 > file to check users against. See the 
15829                 documentation file in the <TT
15830 CLASS="FILENAME"
15831 >docs/</TT
15832 > directory 
15833                 <TT
15834 CLASS="FILENAME"
15835 >ENCRYPTION.txt</TT
15836 > for details on how to set this 
15837                 up.</P
15838 ><P
15839 ><EM
15840 >Note</EM
15841 > that from the client's point of 
15842                 view <B
15843 CLASS="COMMAND"
15844 >security = server</B
15845 > is the same as <B
15846 CLASS="COMMAND"
15847 >               security = user</B
15848 >.  It only affects how the server deals 
15849                 with the authentication, it does not in any way affect what the 
15850                 client sees.</P
15851 ><P
15852 ><EM
15853 >Note</EM
15854 > that the name of the resource being 
15855                 requested is <EM
15856 >not</EM
15857 > sent to the server until after 
15858                 the server has successfully authenticated the client. This is why 
15859                 guest shares don't work in user level security without allowing 
15860                 the server to automatically map unknown users into the <A
15861 HREF="#GUESTACCOUNT"
15862 ><TT
15863 CLASS="PARAMETER"
15864 ><I
15865 >guest account</I
15866 ></TT
15867 ></A
15868 >. 
15869                 See the <A
15870 HREF="#MAPTOGUEST"
15871 ><TT
15872 CLASS="PARAMETER"
15873 ><I
15874 >map to guest</I
15875 ></TT
15876 >
15877                 </A
15878 > parameter for details on doing this.</P
15879 ><P
15880 >See also the section <A
15881 HREF="#AEN236"
15882 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15883 >.</P
15884 ><P
15885 >See also the <A
15886 HREF="#PASSWORDSERVER"
15887 ><TT
15888 CLASS="PARAMETER"
15889 ><I
15890 >password 
15891                 server</I
15892 ></TT
15893 ></A
15894 > parameter and the <A
15895 HREF="#ENCRYPTPASSWORDS"
15896 ><TT
15897 CLASS="PARAMETER"
15898 ><I
15899 >encrypted passwords</I
15900 ></TT
15901 >
15902                 </A
15903 > parameter.</P
15904 ><P
15905 ><A
15906 NAME="SECURITYEQUALSDOMAIN"
15907 ></A
15908 ><EM
15909 >SECURITY = DOMAIN
15910                 </EM
15911 ></P
15912 ><P
15913 >This mode will only work correctly if <A
15914 HREF="smbpasswd.8.html"
15915 TARGET="_top"
15916 >smbpasswd(8)</A
15917 > has been used to add this 
15918                 machine into a Windows NT Domain. It expects the <A
15919 HREF="#ENCRYPTPASSWORDS"
15920 ><TT
15921 CLASS="PARAMETER"
15922 ><I
15923 >encrypted passwords</I
15924 ></TT
15925 >
15926                 </A
15927 > parameter to be set to <TT
15928 CLASS="CONSTANT"
15929 >true</TT
15930 >. In this 
15931                 mode Samba will try to validate the username/password by passing
15932                 it to a Windows NT Primary or Backup Domain Controller, in exactly 
15933                 the same way that a Windows NT Server would do.</P
15934 ><P
15935 ><EM
15936 >Note</EM
15937 > that a valid UNIX user must still 
15938                 exist as well as the account on the Domain Controller to allow 
15939                 Samba to have a valid UNIX account to map file access to.</P
15940 ><P
15941 ><EM
15942 >Note</EM
15943 > that from the client's point 
15944                 of view <B
15945 CLASS="COMMAND"
15946 >security = domain</B
15947 > is the same as <B
15948 CLASS="COMMAND"
15949 >security = user
15950                 </B
15951 >. It only affects how the server deals with the authentication, 
15952                 it does not in any way affect what the client sees.</P
15953 ><P
15954 ><EM
15955 >Note</EM
15956 > that the name of the resource being 
15957                 requested is <EM
15958 >not</EM
15959 > sent to the server until after 
15960                 the server has successfully authenticated the client. This is why 
15961                 guest shares don't work in user level security without allowing 
15962                 the server to automatically map unknown users into the <A
15963 HREF="#GUESTACCOUNT"
15964 ><TT
15965 CLASS="PARAMETER"
15966 ><I
15967 >guest account</I
15968 ></TT
15969 ></A
15970 >. 
15971                 See the <A
15972 HREF="#MAPTOGUEST"
15973 ><TT
15974 CLASS="PARAMETER"
15975 ><I
15976 >map to guest</I
15977 ></TT
15978 >
15979                 </A
15980 > parameter for details on doing this.</P
15981 ><P
15982 ><EM
15983 >BUG:</EM
15984 > There is currently a bug in the 
15985                 implementation of <B
15986 CLASS="COMMAND"
15987 >security = domain</B
15988 > with respect 
15989                 to multi-byte character set usernames. The communication with a 
15990                 Domain Controller must be done in UNICODE and Samba currently 
15991                 does not widen multi-byte user names to UNICODE correctly, thus 
15992                 a multi-byte username will not be recognized correctly at the 
15993                 Domain Controller. This issue will be addressed in a future release.</P
15994 ><P
15995 >See also the section <A
15996 HREF="#AEN236"
15997 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
15998 >.</P
15999 ><P
16000 >See also the <A
16001 HREF="#PASSWORDSERVER"
16002 ><TT
16003 CLASS="PARAMETER"
16004 ><I
16005 >password 
16006                 server</I
16007 ></TT
16008 ></A
16009 > parameter and the <A
16010 HREF="#ENCRYPTPASSWORDS"
16011 ><TT
16012 CLASS="PARAMETER"
16013 ><I
16014 >encrypted passwords</I
16015 ></TT
16016 >
16017                 </A
16018 > parameter.</P
16019 ><P
16020 >Default: <B
16021 CLASS="COMMAND"
16022 >security = USER</B
16023 ></P
16024 ><P
16025 >Example: <B
16026 CLASS="COMMAND"
16027 >security = DOMAIN</B
16028 ></P
16029 ></DD
16030 ><DT
16031 ><A
16032 NAME="SECURITYMASK"
16033 ></A
16034 >security mask (S)</DT
16035 ><DD
16036 ><P
16037 >This parameter controls what UNIX permission 
16038                 bits can be modified when a Windows NT client is manipulating 
16039                 the UNIX permission on a file using the native NT security 
16040                 dialog box.</P
16041 ><P
16042 >This parameter is applied as a mask (AND'ed with) to 
16043                 the changed permission bits, thus preventing any bits not in 
16044                 this mask from being modified. Essentially, zero bits in this 
16045                 mask may be treated as a set of bits the user is not allowed 
16046                 to change.</P
16047 ><P
16048 >If not set explicitly this parameter is 0777, allowing
16049                 a user to modify all the user/group/world permissions on a file.
16050                 </P
16051 ><P
16052 ><EM
16053 >Note</EM
16054 > that users who can access the 
16055                 Samba server through other means can easily bypass this 
16056                 restriction, so it is primarily useful for standalone 
16057                 "appliance" systems.  Administrators of most normal systems will 
16058                 probably want to leave it set to <TT
16059 CLASS="CONSTANT"
16060 >0777</TT
16061 >.</P
16062 ><P
16063 >See also the <A
16064 HREF="#FORCEDIRECTORYSECURITYMODE"
16065 >               <TT
16066 CLASS="PARAMETER"
16067 ><I
16068 >force directory security mode</I
16069 ></TT
16070 ></A
16071 >, 
16072                 <A
16073 HREF="#DIRECTORYSECURITYMASK"
16074 ><TT
16075 CLASS="PARAMETER"
16076 ><I
16077 >directory 
16078                 security mask</I
16079 ></TT
16080 ></A
16081 >, <A
16082 HREF="#FORCESECURITYMODE"
16083 >               <TT
16084 CLASS="PARAMETER"
16085 ><I
16086 >force security mode</I
16087 ></TT
16088 ></A
16089 > parameters.</P
16090 ><P
16091 >Default: <B
16092 CLASS="COMMAND"
16093 >security mask = 0777</B
16094 ></P
16095 ><P
16096 >Example: <B
16097 CLASS="COMMAND"
16098 >security mask = 0770</B
16099 ></P
16100 ></DD
16101 ><DT
16102 ><A
16103 NAME="SERVERSTRING"
16104 ></A
16105 >server string (G)</DT
16106 ><DD
16107 ><P
16108 >This controls what string will show up in the 
16109                 printer comment box in print manager and next to the IPC connection 
16110                 in <B
16111 CLASS="COMMAND"
16112 >net view</B
16113 >. It can be any string that you wish 
16114                 to show to your users.</P
16115 ><P
16116 >It also sets what will appear in browse lists next 
16117                 to the machine name.</P
16118 ><P
16119 >A <TT
16120 CLASS="PARAMETER"
16121 ><I
16122 >%v</I
16123 ></TT
16124 > will be replaced with the Samba 
16125                 version number.</P
16126 ><P
16127 >A <TT
16128 CLASS="PARAMETER"
16129 ><I
16130 >%h</I
16131 ></TT
16132 > will be replaced with the 
16133                 hostname.</P
16134 ><P
16135 >Default: <B
16136 CLASS="COMMAND"
16137 >server string = Samba %v</B
16138 ></P
16139 ><P
16140 >Example: <B
16141 CLASS="COMMAND"
16142 >server string = University of GNUs Samba 
16143                 Server</B
16144 ></P
16145 ></DD
16146 ><DT
16147 ><A
16148 NAME="SETDIRECTORY"
16149 ></A
16150 >set directory (S)</DT
16151 ><DD
16152 ><P
16153 >If <B
16154 CLASS="COMMAND"
16155 >set directory = no</B
16156 >, then 
16157                 users of the service may not use the setdir command to change 
16158                 directory.</P
16159 ><P
16160 >The <B
16161 CLASS="COMMAND"
16162 >setdir</B
16163 > command is only implemented 
16164                 in the Digital Pathworks client. See the Pathworks documentation 
16165                 for details.</P
16166 ><P
16167 >Default: <B
16168 CLASS="COMMAND"
16169 >set directory = no</B
16170 ></P
16171 ></DD
16172 ><DT
16173 ><A
16174 NAME="SHAREMODES"
16175 ></A
16176 >share modes (S)</DT
16177 ><DD
16178 ><P
16179 >This enables or disables the honoring of 
16180                 the <TT
16181 CLASS="PARAMETER"
16182 ><I
16183 >share modes</I
16184 ></TT
16185 > during a file open. These 
16186                 modes are used by clients to gain exclusive read or write access 
16187                 to a file.</P
16188 ><P
16189 >These open modes are not directly supported by UNIX, so
16190                 they are simulated using shared memory, or lock files if your 
16191                 UNIX doesn't support shared memory (almost all do).</P
16192 ><P
16193 >The share modes that are enabled by this option are 
16194                 <TT
16195 CLASS="CONSTANT"
16196 >DENY_DOS</TT
16197 >, <TT
16198 CLASS="CONSTANT"
16199 >DENY_ALL</TT
16200 >,
16201                 <TT
16202 CLASS="CONSTANT"
16203 >DENY_READ</TT
16204 >, <TT
16205 CLASS="CONSTANT"
16206 >DENY_WRITE</TT
16207 >,
16208                 <TT
16209 CLASS="CONSTANT"
16210 >DENY_NONE</TT
16211 > and <TT
16212 CLASS="CONSTANT"
16213 >DENY_FCB</TT
16214 >.
16215                 </P
16216 ><P
16217 >This option gives full share compatibility and enabled 
16218                 by default.</P
16219 ><P
16220 >You should <EM
16221 >NEVER</EM
16222 > turn this parameter 
16223                 off as many Windows applications will break if you do so.</P
16224 ><P
16225 >Default: <B
16226 CLASS="COMMAND"
16227 >share modes = yes</B
16228 ></P
16229 ></DD
16230 ><DT
16231 ><A
16232 NAME="SHORTPRESERVECASE"
16233 ></A
16234 >short preserve case (S)</DT
16235 ><DD
16236 ><P
16237 >This boolean parameter controls if new files 
16238                 which conform to 8.3 syntax, that is all in upper case and of 
16239                 suitable length, are created upper case, or if they are forced 
16240                 to be the <A
16241 HREF="#DEFAULTCASE"
16242 ><TT
16243 CLASS="PARAMETER"
16244 ><I
16245 >default case
16246                 </I
16247 ></TT
16248 ></A
16249 >. This  option can be use with <A
16250 HREF="#PRESERVECASE"
16251 ><B
16252 CLASS="COMMAND"
16253 >preserve case = yes</B
16254 >
16255                 </A
16256 > to permit long filenames to retain their case, while short 
16257                 names are lowered. </P
16258 ><P
16259 >See the section on <A
16260 HREF="#AEN203"
16261 >               NAME MANGLING</A
16262 >.</P
16263 ><P
16264 >Default: <B
16265 CLASS="COMMAND"
16266 >short preserve case = yes</B
16267 ></P
16268 ></DD
16269 ><DT
16270 ><A
16271 NAME="SHOWADDPRINTERWIZARD"
16272 ></A
16273 >show add printer wizard (G)</DT
16274 ><DD
16275 ><P
16276 >With the introduction of MS-RPC based printing support
16277                 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will 
16278                 appear on Samba hosts in the share listing.  Normally this folder will 
16279                 contain an icon for the MS Add Printer Wizard (APW).  However, it is 
16280                 possible to disable this feature regardless of the level of privilege 
16281                 of the connected user.</P
16282 ><P
16283 >Under normal circumstances, the Windows NT/2000 client will 
16284                 open a handle on the printer server with OpenPrinterEx() asking for
16285                 Administrator privileges.  If the user does not have administrative
16286                 access on the print server (i.e is not root or a member of the 
16287                 <TT
16288 CLASS="PARAMETER"
16289 ><I
16290 >printer admin</I
16291 ></TT
16292 > group), the OpenPrinterEx() 
16293                 call fails and the client makes another open call with a request for 
16294                 a lower privilege level.  This should succeed, however the APW 
16295                 icon will not be displayed.</P
16296 ><P
16297 >Disabling the <TT
16298 CLASS="PARAMETER"
16299 ><I
16300 >show add printer wizard</I
16301 ></TT
16302 >
16303                 parameter will always cause the OpenPrinterEx() on the server
16304                 to fail.  Thus the APW icon will never be displayed. <EM
16305 >               Note :</EM
16306 >This does not prevent the same user from having 
16307                 administrative privilege on an individual printer.</P
16308 ><P
16309 >See also <A
16310 HREF="#ADDPRINTERCOMMAND"
16311 ><TT
16312 CLASS="PARAMETER"
16313 ><I
16314 >addprinter
16315                 command</I
16316 ></TT
16317 ></A
16318 >, <A
16319 HREF="#DELETEPRINTERCOMMAND"
16320 >               <TT
16321 CLASS="PARAMETER"
16322 ><I
16323 >deleteprinter command</I
16324 ></TT
16325 ></A
16326 >, <A
16327 HREF="#PRINTERADMIN"
16328 ><TT
16329 CLASS="PARAMETER"
16330 ><I
16331 >printer admin</I
16332 ></TT
16333 ></A
16334 ></P
16335 ><P
16336 >Default :<B
16337 CLASS="COMMAND"
16338 >show add printer wizard = yes</B
16339 ></P
16340 ></DD
16341 ><DT
16342 ><A
16343 NAME="SHUTDOWNSCRIPT"
16344 ></A
16345 >shutdown script (G)</DT
16346 ><DD
16347 ><P
16348 ><EM
16349 >This parameter only exists in the HEAD cvs branch</EM
16350 >
16351                 This a full path name to a script called by
16352                 <A
16353 HREF="smbd.8.html"
16354 TARGET="_top"
16355 ><B
16356 CLASS="COMMAND"
16357 >smbd(8)</B
16358 ></A
16359 > that
16360                 should start a shutdown procedure.</P
16361 ><P
16362 >This command will be run as the user connected to the
16363                 server.</P
16364 ><P
16365 >%m %t %r %f parameters are expanded</P
16366 ><P
16367 ><TT
16368 CLASS="PARAMETER"
16369 ><I
16370 >%m</I
16371 ></TT
16372 > will be substituted with the
16373                 shutdown message sent to the server.</P
16374 ><P
16375 ><TT
16376 CLASS="PARAMETER"
16377 ><I
16378 >%t</I
16379 ></TT
16380 > will be substituted with the
16381                 number of seconds to wait before effectively starting the
16382                 shutdown procedure.</P
16383 ><P
16384 ><TT
16385 CLASS="PARAMETER"
16386 ><I
16387 >%r</I
16388 ></TT
16389 > will be substituted with the
16390                 switch <EM
16391 >-r</EM
16392 >. It means reboot after shutdown
16393                 for NT.
16394                 </P
16395 ><P
16396 ><TT
16397 CLASS="PARAMETER"
16398 ><I
16399 >%f</I
16400 ></TT
16401 > will be substituted with the
16402                 switch <EM
16403 >-f</EM
16404 >. It means force the shutdown
16405                 even if applications do not respond for NT.</P
16406 ><P
16407 >Default: <EM
16408 >None</EM
16409 >.</P
16410 ><P
16411 >Example: <B
16412 CLASS="COMMAND"
16413 >abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</B
16414 ></P
16415 ><P
16416 >Shutdown script example:
16417                 <TABLE
16418 BORDER="0"
16419 BGCOLOR="#E0E0E0"
16420 WIDTH="90%"
16421 ><TR
16422 ><TD
16423 ><PRE
16424 CLASS="PROGRAMLISTING"
16425 >               #!/bin/bash
16426                 
16427                 $time=0
16428                 let "time/60"
16429                 let "time++"
16430
16431                 /sbin/shutdown $3 $4 +$time $1 &#38;
16432                 </PRE
16433 ></TD
16434 ></TR
16435 ></TABLE
16436 >
16437                 Shutdown does not return so we need to launch it in background.
16438                 </P
16439 ><P
16440 >See also <A
16441 HREF="#ABORTSHUTDOWNSCRIPT"
16442 ><TT
16443 CLASS="PARAMETER"
16444 ><I
16445 >abort shutdown script</I
16446 ></TT
16447 ></A
16448 >.</P
16449 ></DD
16450 ><DT
16451 ><A
16452 NAME="SMBPASSWDFILE"
16453 ></A
16454 >smb passwd file (G)</DT
16455 ><DD
16456 ><P
16457 >This option sets the path to the encrypted 
16458                 smbpasswd file.  By default the path to the smbpasswd file 
16459                 is compiled into Samba.</P
16460 ><P
16461 >Default: <B
16462 CLASS="COMMAND"
16463 >smb passwd file = ${prefix}/private/smbpasswd
16464                 </B
16465 ></P
16466 ><P
16467 >Example: <B
16468 CLASS="COMMAND"
16469 >smb passwd file = /etc/samba/smbpasswd
16470                 </B
16471 ></P
16472 ></DD
16473 ><DT
16474 ><A
16475 NAME="SOCKETADDRESS"
16476 ></A
16477 >socket address (G)</DT
16478 ><DD
16479 ><P
16480 >This option allows you to control what 
16481                 address Samba will listen for connections on. This is used to 
16482                 support multiple virtual interfaces on the one server, each 
16483                 with a different configuration.</P
16484 ><P
16485 >By default Samba will accept connections on any 
16486                 address.</P
16487 ><P
16488 >Example: <B
16489 CLASS="COMMAND"
16490 >socket address = 192.168.2.20</B
16491 >
16492                 </P
16493 ></DD
16494 ><DT
16495 ><A
16496 NAME="SOCKETOPTIONS"
16497 ></A
16498 >socket options (G)</DT
16499 ><DD
16500 ><P
16501 >This option allows you to set socket options 
16502                 to be used when talking with the client.</P
16503 ><P
16504 >Socket options are controls on the networking layer 
16505                 of the operating systems which allow the connection to be 
16506                 tuned.</P
16507 ><P
16508 >This option will typically be used to tune your Samba 
16509                 server for optimal performance for your local network. There is 
16510                 no way that Samba can know what the optimal parameters are for 
16511                 your net, so you must experiment and choose them yourself. We 
16512                 strongly suggest you read the appropriate documentation for your 
16513                 operating system first (perhaps <B
16514 CLASS="COMMAND"
16515 >man setsockopt</B
16516
16517                 will help).</P
16518 ><P
16519 >You may find that on some systems Samba will say 
16520                 "Unknown socket option" when you supply an option. This means you 
16521                 either incorrectly  typed it or you need to add an include file 
16522                 to includes.h for your OS.  If the latter is the case please 
16523                 send the patch to <A
16524 HREF="mailto:samba@samba.org"
16525 TARGET="_top"
16526 >               samba@samba.org</A
16527 >.</P
16528 ><P
16529 >Any of the supported socket options may be combined 
16530                 in any way you like, as long as your OS allows it.</P
16531 ><P
16532 >This is the list of socket options currently settable 
16533                 using this option:</P
16534 ><P
16535 ></P
16536 ><UL
16537 ><LI
16538 ><P
16539 >SO_KEEPALIVE</P
16540 ></LI
16541 ><LI
16542 ><P
16543 >SO_REUSEADDR</P
16544 ></LI
16545 ><LI
16546 ><P
16547 >SO_BROADCAST</P
16548 ></LI
16549 ><LI
16550 ><P
16551 >TCP_NODELAY</P
16552 ></LI
16553 ><LI
16554 ><P
16555 >IPTOS_LOWDELAY</P
16556 ></LI
16557 ><LI
16558 ><P
16559 >IPTOS_THROUGHPUT</P
16560 ></LI
16561 ><LI
16562 ><P
16563 >SO_SNDBUF *</P
16564 ></LI
16565 ><LI
16566 ><P
16567 >SO_RCVBUF *</P
16568 ></LI
16569 ><LI
16570 ><P
16571 >SO_SNDLOWAT *</P
16572 ></LI
16573 ><LI
16574 ><P
16575 >SO_RCVLOWAT *</P
16576 ></LI
16577 ></UL
16578 ><P
16579 >Those marked with a <EM
16580 >'*'</EM
16581 > take an integer 
16582                 argument. The others can optionally take a 1 or 0 argument to enable 
16583                 or disable the option, by default they will be enabled if you 
16584                 don't specify 1 or 0.</P
16585 ><P
16586 >To specify an argument use the syntax SOME_OPTION = VALUE 
16587                 for example <B
16588 CLASS="COMMAND"
16589 >SO_SNDBUF = 8192</B
16590 >. Note that you must 
16591                 not have any spaces before or after the = sign.</P
16592 ><P
16593 >If you are on a local network then a sensible option 
16594                 might be</P
16595 ><P
16596 ><B
16597 CLASS="COMMAND"
16598 >socket options = IPTOS_LOWDELAY</B
16599 ></P
16600 ><P
16601 >If you have a local network then you could try:</P
16602 ><P
16603 ><B
16604 CLASS="COMMAND"
16605 >socket options = IPTOS_LOWDELAY TCP_NODELAY</B
16606 ></P
16607 ><P
16608 >If you are on a wide area network then perhaps try 
16609                 setting IPTOS_THROUGHPUT. </P
16610 ><P
16611 >Note that several of the options may cause your Samba 
16612                 server to fail completely. Use these options with caution!</P
16613 ><P
16614 >Default: <B
16615 CLASS="COMMAND"
16616 >socket options = TCP_NODELAY</B
16617 ></P
16618 ><P
16619 >Example: <B
16620 CLASS="COMMAND"
16621 >socket options = IPTOS_LOWDELAY</B
16622 ></P
16623 ></DD
16624 ><DT
16625 ><A
16626 NAME="SOURCEENVIRONMENT"
16627 ></A
16628 >source environment (G)</DT
16629 ><DD
16630 ><P
16631 >This parameter causes Samba to set environment 
16632                 variables as per the content of the file named.</P
16633 ><P
16634 >If the value of this parameter starts with a "|" character 
16635                 then Samba will treat that value as a pipe command to open and 
16636                 will set the environment variables from the output of the pipe.</P
16637 ><P
16638 >The contents of the file or the output of the pipe should 
16639                 be formatted as the output of the standard Unix <B
16640 CLASS="COMMAND"
16641 >env(1)
16642                 </B
16643 > command. This is of the form :</P
16644 ><P
16645 >Example environment entry:</P
16646 ><P
16647 ><B
16648 CLASS="COMMAND"
16649 >SAMBA_NETBIOS_NAME = myhostname</B
16650 ></P
16651 ><P
16652 >Default: <EM
16653 >No default value</EM
16654 ></P
16655 ><P
16656 >Examples: <B
16657 CLASS="COMMAND"
16658 >source environment = |/etc/smb.conf.sh
16659                 </B
16660 ></P
16661 ><P
16662 >Example: <B
16663 CLASS="COMMAND"
16664 >source environment = 
16665                 /usr/local/smb_env_vars</B
16666 ></P
16667 ></DD
16668 ><DT
16669 ><A
16670 NAME="SSL"
16671 ></A
16672 >ssl (G)</DT
16673 ><DD
16674 ><P
16675 >This variable is part of SSL-enabled Samba. This 
16676                 is only available if the SSL libraries have been compiled on your 
16677                 system and the configure option <B
16678 CLASS="COMMAND"
16679 >--with-ssl</B
16680 > was 
16681                 given at configure time.</P
16682 ><P
16683 >This variable enables or disables the entire SSL mode. If 
16684                 it is set to <TT
16685 CLASS="CONSTANT"
16686 >no</TT
16687 >, the SSL-enabled Samba behaves 
16688                 exactly like the non-SSL Samba. If set to <TT
16689 CLASS="CONSTANT"
16690 >yes</TT
16691 >, 
16692                 it depends on the variables <A
16693 HREF="#SSLHOSTS"
16694 ><TT
16695 CLASS="PARAMETER"
16696 ><I
16697 >               ssl hosts</I
16698 ></TT
16699 ></A
16700 > and <A
16701 HREF="#SSLHOSTSRESIGN"
16702 >               <TT
16703 CLASS="PARAMETER"
16704 ><I
16705 >ssl hosts resign</I
16706 ></TT
16707 ></A
16708 > whether an SSL 
16709                 connection will be required.</P
16710 ><P
16711 >Default: <B
16712 CLASS="COMMAND"
16713 >ssl = no</B
16714 ></P
16715 ></DD
16716 ><DT
16717 ><A
16718 NAME="SSLCACERTDIR"
16719 ></A
16720 >ssl CA certDir (G)</DT
16721 ><DD
16722 ><P
16723 >This variable is part of SSL-enabled Samba. This 
16724                 is only available if the SSL libraries have been compiled on your 
16725                 system and the configure option <B
16726 CLASS="COMMAND"
16727 >--with-ssl</B
16728 > was 
16729                 given at configure time.</P
16730 ><P
16731 >This variable defines where to look up the Certification
16732                 Authorities. The given directory should contain one file for 
16733                 each CA that Samba will trust.  The file name must be the hash 
16734                 value over the "Distinguished Name" of the CA. How this directory 
16735                 is set up is explained later in this document. All files within the 
16736                 directory that don't fit into this naming scheme are ignored. You 
16737                 don't need this variable if you don't verify client certificates.</P
16738 ><P
16739 >Default: <B
16740 CLASS="COMMAND"
16741 >ssl CA certDir = /usr/local/ssl/certs
16742                 </B
16743 ></P
16744 ></DD
16745 ><DT
16746 ><A
16747 NAME="SSLCACERTFILE"
16748 ></A
16749 >ssl CA certFile (G)</DT
16750 ><DD
16751 ><P
16752 >This variable is part of SSL-enabled Samba. This 
16753                 is only available if the SSL libraries have been compiled on your 
16754                 system and the configure option <B
16755 CLASS="COMMAND"
16756 >--with-ssl</B
16757 > was 
16758                 given at configure time.</P
16759 ><P
16760 >This variable is a second way to define the trusted CAs. 
16761                 The certificates of the trusted CAs are collected in one big 
16762                 file and this variable points to the file. You will probably 
16763                 only use one of the two ways to define your CAs. The first choice is 
16764                 preferable if you have many CAs or want to be flexible, the second 
16765                 is preferable if you only have one CA and want to keep things 
16766                 simple (you won't need to create the hashed file names). You 
16767                 don't need this variable if you don't verify client certificates.</P
16768 ><P
16769 >Default: <B
16770 CLASS="COMMAND"
16771 >ssl CA certFile = /usr/local/ssl/certs/trustedCAs.pem
16772                 </B
16773 ></P
16774 ></DD
16775 ><DT
16776 ><A
16777 NAME="SSLCIPHERS"
16778 ></A
16779 >ssl ciphers (G)</DT
16780 ><DD
16781 ><P
16782 >This variable is part of SSL-enabled Samba. This 
16783                 is only available if the SSL libraries have been compiled on your 
16784                 system and the configure option <B
16785 CLASS="COMMAND"
16786 >--with-ssl</B
16787 > was 
16788                 given at configure time.</P
16789 ><P
16790 >This variable defines the ciphers that should be offered 
16791                 during SSL negotiation. You should not set this variable unless 
16792                 you know what you are doing.</P
16793 ></DD
16794 ><DT
16795 ><A
16796 NAME="SSLCLIENTCERT"
16797 ></A
16798 >ssl client cert (G)</DT
16799 ><DD
16800 ><P
16801 >This variable is part of SSL-enabled Samba. This 
16802                 is only available if the SSL libraries have been compiled on your 
16803                 system and the configure option <B
16804 CLASS="COMMAND"
16805 >--with-ssl</B
16806 > was 
16807                 given at configure time.</P
16808 ><P
16809 >The certificate in this file is used by <A
16810 HREF="smbclient.1.html"
16811 TARGET="_top"
16812 >               <B
16813 CLASS="COMMAND"
16814 >smbclient(1)</B
16815 ></A
16816 > if it exists. It's needed 
16817                 if the server requires a client certificate.</P
16818 ><P
16819 >Default: <B
16820 CLASS="COMMAND"
16821 >ssl client cert = /usr/local/ssl/certs/smbclient.pem
16822                 </B
16823 ></P
16824 ></DD
16825 ><DT
16826 ><A
16827 NAME="SSLCLIENTKEY"
16828 ></A
16829 >ssl client key (G)</DT
16830 ><DD
16831 ><P
16832 >This variable is part of SSL-enabled Samba. This 
16833                 is only available if the SSL libraries have been compiled on your 
16834                 system and the configure option <B
16835 CLASS="COMMAND"
16836 >--with-ssl</B
16837 > was 
16838                 given at configure time.</P
16839 ><P
16840 >This is the private key for <A
16841 HREF="smbclient.1.html"
16842 TARGET="_top"
16843 >               <B
16844 CLASS="COMMAND"
16845 >smbclient(1)</B
16846 ></A
16847 >. It's only needed if the 
16848                 client should have a certificate. </P
16849 ><P
16850 >Default: <B
16851 CLASS="COMMAND"
16852 >ssl client key = /usr/local/ssl/private/smbclient.pem
16853                 </B
16854 ></P
16855 ></DD
16856 ><DT
16857 ><A
16858 NAME="SSLCOMPATIBILITY"
16859 ></A
16860 >ssl compatibility (G)</DT
16861 ><DD
16862 ><P
16863 >This variable is part of SSL-enabled Samba. This 
16864                 is only available if the SSL libraries have been compiled on your 
16865                 system and the configure option <B
16866 CLASS="COMMAND"
16867 >--with-ssl</B
16868 > was 
16869                 given at configure time.</P
16870 ><P
16871 >This variable defines whether OpenSSL should be configured 
16872                 for bug compatibility with other SSL implementations. This is 
16873                 probably not desirable because currently no clients with SSL 
16874                 implementations other than OpenSSL exist.</P
16875 ><P
16876 >Default: <B
16877 CLASS="COMMAND"
16878 >ssl compatibility = no</B
16879 ></P
16880 ></DD
16881 ><DT
16882 ><A
16883 NAME="SSLEGDSOCKET"
16884 ></A
16885 >ssl egd socket (G)</DT
16886 ><DD
16887 ><P
16888 >This variable is part of SSL-enabled Samba. This 
16889                 is only available if the SSL libraries have been compiled on your 
16890                 system and the configure option <B
16891 CLASS="COMMAND"
16892 >--with-ssl</B
16893 > was 
16894                 given at configure time.</P
16895 ><P
16896 >               This option is used to define the location of the communiation socket of 
16897                 an EGD or PRNGD daemon, from which entropy can be retrieved. This option 
16898                 can be used instead of or together with the <A
16899 HREF="#SSLENTROPYFILE"
16900 ><TT
16901 CLASS="PARAMETER"
16902 ><I
16903 >ssl entropy file</I
16904 ></TT
16905 ></A
16906
16907                 directive. 255 bytes of entropy will be retrieved from the daemon.
16908                 </P
16909 ><P
16910 >Default: <EM
16911 >none</EM
16912 ></P
16913 ></DD
16914 ><DT
16915 ><A
16916 NAME="SSLENTROPYBYTES"
16917 ></A
16918 >ssl entropy bytes (G)</DT
16919 ><DD
16920 ><P
16921 >This variable is part of SSL-enabled Samba. This 
16922                 is only available if the SSL libraries have been compiled on your 
16923                 system and the configure option <B
16924 CLASS="COMMAND"
16925 >--with-ssl</B
16926 > was 
16927                 given at configure time.</P
16928 ><P
16929 >               This parameter is used to define the number of bytes which should 
16930                 be read from the <A
16931 HREF="#SSLENTROPYFILE"
16932 ><TT
16933 CLASS="PARAMETER"
16934 ><I
16935 >ssl entropy 
16936                 file</I
16937 ></TT
16938 ></A
16939 > If a -1 is specified, the entire file will
16940                 be read.
16941                 </P
16942 ><P
16943 >Default: <B
16944 CLASS="COMMAND"
16945 >ssl entropy bytes = 255</B
16946 ></P
16947 ></DD
16948 ><DT
16949 ><A
16950 NAME="SSLENTROPYFILE"
16951 ></A
16952 >ssl entropy file (G)</DT
16953 ><DD
16954 ><P
16955 >This variable is part of SSL-enabled Samba. This 
16956                 is only available if the SSL libraries have been compiled on your 
16957                 system and the configure option <B
16958 CLASS="COMMAND"
16959 >--with-ssl</B
16960 > was 
16961                 given at configure time.</P
16962 ><P
16963 >               This parameter is used to specify a file from which processes will 
16964                 read "random bytes" on startup.  In order to seed the internal pseudo 
16965                 random number generator, entropy must be provided. On system with a 
16966                 <TT
16967 CLASS="FILENAME"
16968 >/dev/urandom</TT
16969 > device file, the processes
16970                 will retrieve its entropy from the kernel. On systems without kernel
16971                 entropy support, a file can be supplied that will be read on startup
16972                 and that will be used to seed the PRNG.
16973                 </P
16974 ><P
16975 >Default: <EM
16976 >none</EM
16977 ></P
16978 ></DD
16979 ><DT
16980 ><A
16981 NAME="SSLHOSTS"
16982 ></A
16983 >ssl hosts (G)</DT
16984 ><DD
16985 ><P
16986 >See <A
16987 HREF="#SSLHOSTSRESIGN"
16988 ><TT
16989 CLASS="PARAMETER"
16990 ><I
16991 >               ssl hosts resign</I
16992 ></TT
16993 ></A
16994 >.</P
16995 ></DD
16996 ><DT
16997 ><A
16998 NAME="SSLHOSTSRESIGN"
16999 ></A
17000 >ssl hosts resign (G)</DT
17001 ><DD
17002 ><P
17003 >This variable is part of SSL-enabled Samba. This 
17004                 is only available if the SSL libraries have been compiled on your 
17005                 system and the configure option <B
17006 CLASS="COMMAND"
17007 >--with-ssl</B
17008 > was 
17009                 given at configure time.</P
17010 ><P
17011 >These two variables define whether Samba will go 
17012                 into SSL mode or not. If none of them is defined, Samba will 
17013                 allow only SSL connections. If the <A
17014 HREF="#SSLHOSTS"
17015 >               <TT
17016 CLASS="PARAMETER"
17017 ><I
17018 >ssl hosts</I
17019 ></TT
17020 ></A
17021 > variable lists
17022                 hosts (by IP-address, IP-address range, net group or name), 
17023                 only these hosts will be forced into SSL mode. If the <TT
17024 CLASS="PARAMETER"
17025 ><I
17026 >               ssl hosts resign</I
17027 ></TT
17028 > variable lists hosts, only these 
17029                 hosts will <EM
17030 >NOT</EM
17031 > be forced into SSL mode. The syntax for these two 
17032                 variables is the same as for the <A
17033 HREF="#HOSTSALLOW"
17034 ><TT
17035 CLASS="PARAMETER"
17036 ><I
17037 >               hosts allow</I
17038 ></TT
17039 ></A
17040 > and <A
17041 HREF="#HOSTSDENY"
17042 >               <TT
17043 CLASS="PARAMETER"
17044 ><I
17045 >hosts deny</I
17046 ></TT
17047 ></A
17048 > pair of variables, only 
17049                 that the subject of the decision is different: It's not the access 
17050                 right but whether SSL is used or not. </P
17051 ><P
17052 >The example below requires SSL connections from all hosts
17053                 outside the local net (which is 192.168.*.*).</P
17054 ><P
17055 >Default: <B
17056 CLASS="COMMAND"
17057 >ssl hosts = &#60;empty string&#62;</B
17058 ></P
17059 ><P
17060 ><B
17061 CLASS="COMMAND"
17062 >ssl hosts resign = &#60;empty string&#62;</B
17063 ></P
17064 ><P
17065 >Example: <B
17066 CLASS="COMMAND"
17067 >ssl hosts resign = 192.168.</B
17068 ></P
17069 ></DD
17070 ><DT
17071 ><A
17072 NAME="SSLREQUIRECLIENTCERT"
17073 ></A
17074 >ssl require clientcert (G)</DT
17075 ><DD
17076 ><P
17077 >This variable is part of SSL-enabled Samba. This 
17078                 is only available if the SSL libraries have been compiled on your 
17079                 system and the configure option <B
17080 CLASS="COMMAND"
17081 >--with-ssl</B
17082 > was 
17083                 given at configure time.</P
17084 ><P
17085 >If this variable is set to <TT
17086 CLASS="CONSTANT"
17087 >yes</TT
17088 >, the 
17089                 server will not tolerate connections from clients that don't 
17090                 have a valid certificate. The directory/file given in <A
17091 HREF="#SSLCACERTDIR"
17092 ><TT
17093 CLASS="PARAMETER"
17094 ><I
17095 >ssl CA certDir</I
17096 ></TT
17097 >
17098                 </A
17099 > and <A
17100 HREF="#SSLCACERTFILE"
17101 ><TT
17102 CLASS="PARAMETER"
17103 ><I
17104 >ssl CA certFile
17105                 </I
17106 ></TT
17107 ></A
17108 > will be used to look up the CAs that issued 
17109                 the client's certificate. If the certificate can't be verified 
17110                 positively, the connection will be terminated.  If this variable 
17111                 is set to <TT
17112 CLASS="CONSTANT"
17113 >no</TT
17114 >, clients don't need certificates. 
17115                 Contrary to web applications you really <EM
17116 >should</EM
17117
17118                 require client certificates. In the web environment the client's 
17119                 data is sensitive (credit card numbers) and the server must prove 
17120                 to be trustworthy. In a file server environment the server's data 
17121                 will be sensitive and the clients must prove to be trustworthy.</P
17122 ><P
17123 >Default: <B
17124 CLASS="COMMAND"
17125 >ssl require clientcert = no</B
17126 ></P
17127 ></DD
17128 ><DT
17129 ><A
17130 NAME="SSLREQUIRESERVERCERT"
17131 ></A
17132 >ssl require servercert (G)</DT
17133 ><DD
17134 ><P
17135 >This variable is part of SSL-enabled Samba. This 
17136                 is only available if the SSL libraries have been compiled on your 
17137                 system and the configure option <B
17138 CLASS="COMMAND"
17139 >--with-ssl</B
17140 > was 
17141                 given at configure time.</P
17142 ><P
17143 >If this variable is set to <TT
17144 CLASS="CONSTANT"
17145 >yes</TT
17146 >, the 
17147                 <A
17148 HREF="smbclient.1.html"
17149 TARGET="_top"
17150 ><B
17151 CLASS="COMMAND"
17152 >smbclient(1)</B
17153 >
17154                 </A
17155 > will request a certificate from the server. Same as 
17156                 <A
17157 HREF="#SSLREQUIRECLIENTCERT"
17158 ><TT
17159 CLASS="PARAMETER"
17160 ><I
17161 >ssl require 
17162                 clientcert</I
17163 ></TT
17164 ></A
17165 > for the server.</P
17166 ><P
17167 >Default: <B
17168 CLASS="COMMAND"
17169 >ssl require servercert = no</B
17170 >
17171                 </P
17172 ></DD
17173 ><DT
17174 ><A
17175 NAME="SSLSERVERCERT"
17176 ></A
17177 >ssl server cert (G)</DT
17178 ><DD
17179 ><P
17180 >This variable is part of SSL-enabled Samba. This 
17181                 is only available if the SSL libraries have been compiled on your 
17182                 system and the configure option <B
17183 CLASS="COMMAND"
17184 >--with-ssl</B
17185 > was 
17186                 given at configure time.</P
17187 ><P
17188 >This is the file containing the server's certificate. 
17189                 The server <EM
17190 >must</EM
17191 > have a certificate. The 
17192                 file may also contain the server's private key. See later for 
17193                 how certificates and private keys are created.</P
17194 ><P
17195 >Default: <B
17196 CLASS="COMMAND"
17197 >ssl server cert = &#60;empty string&#62;
17198                 </B
17199 ></P
17200 ></DD
17201 ><DT
17202 ><A
17203 NAME="SSLSERVERKEY"
17204 ></A
17205 >ssl server key (G)</DT
17206 ><DD
17207 ><P
17208 >This variable is part of SSL-enabled Samba. This 
17209                 is only available if the SSL libraries have been compiled on your 
17210                 system and the configure option <B
17211 CLASS="COMMAND"
17212 >--with-ssl</B
17213 > was 
17214                 given at configure time.</P
17215 ><P
17216 >This file contains the private key of the server. If 
17217                 this variable is not defined, the key is looked up in the 
17218                 certificate file (it may be appended to the certificate). 
17219                 The server <EM
17220 >must</EM
17221 > have a private key
17222                 and the certificate <EM
17223 >must</EM
17224
17225                 match this private key.</P
17226 ><P
17227 >Default: <B
17228 CLASS="COMMAND"
17229 >ssl server key = &#60;empty string&#62;
17230                 </B
17231 ></P
17232 ></DD
17233 ><DT
17234 ><A
17235 NAME="SSLVERSION"
17236 ></A
17237 >ssl version (G)</DT
17238 ><DD
17239 ><P
17240 >This variable is part of SSL-enabled Samba. This 
17241                 is only available if the SSL libraries have been compiled on your 
17242                 system and the configure option <B
17243 CLASS="COMMAND"
17244 >--with-ssl</B
17245 > was 
17246                 given at configure time.</P
17247 ><P
17248 >This enumeration variable defines the versions of the 
17249                 SSL protocol that will be used. <TT
17250 CLASS="CONSTANT"
17251 >ssl2or3</TT
17252 > allows 
17253                 dynamic negotiation of SSL v2 or v3, <TT
17254 CLASS="CONSTANT"
17255 >ssl2</TT
17256 > results 
17257                 in SSL v2, <TT
17258 CLASS="CONSTANT"
17259 >ssl3</TT
17260 > results in SSL v3 and
17261                 <TT
17262 CLASS="CONSTANT"
17263 >tls1</TT
17264 > results in TLS v1. TLS (Transport Layer 
17265                 Security) is the new standard for SSL.</P
17266 ><P
17267 >Default: <B
17268 CLASS="COMMAND"
17269 >ssl version = "ssl2or3"</B
17270 ></P
17271 ></DD
17272 ><DT
17273 ><A
17274 NAME="STATCACHE"
17275 ></A
17276 >stat cache (G)</DT
17277 ><DD
17278 ><P
17279 >This parameter determines if <A
17280 HREF="smbd.8.html"
17281 TARGET="_top"
17282 >smbd(8)</A
17283 > will use a cache in order to 
17284                 speed up case insensitive name mappings. You should never need 
17285                 to change this parameter.</P
17286 ><P
17287 >Default: <B
17288 CLASS="COMMAND"
17289 >stat cache = yes</B
17290 ></P
17291 ></DD
17292 ><DT
17293 ><A
17294 NAME="STATCACHESIZE"
17295 ></A
17296 >stat cache size (G)</DT
17297 ><DD
17298 ><P
17299 >This parameter determines the number of 
17300                 entries in the <TT
17301 CLASS="PARAMETER"
17302 ><I
17303 >stat cache</I
17304 ></TT
17305 >.  You should 
17306                 never need to change this parameter.</P
17307 ><P
17308 >Default: <B
17309 CLASS="COMMAND"
17310 >stat cache size = 50</B
17311 ></P
17312 ></DD
17313 ><DT
17314 ><A
17315 NAME="STATUS"
17316 ></A
17317 >status (G)</DT
17318 ><DD
17319 ><P
17320 >This enables or disables logging of connections 
17321                 to a status file that <A
17322 HREF="smbstatus.1.html"
17323 TARGET="_top"
17324 >smbstatus(1)</A
17325 >
17326                 can read.</P
17327 ><P
17328 >With this disabled <B
17329 CLASS="COMMAND"
17330 >smbstatus</B
17331 > won't be able
17332                 to tell you what connections are active. You should never need to
17333                 change this parameter.</P
17334 ><P
17335 >Default: <B
17336 CLASS="COMMAND"
17337 >status = yes</B
17338 ></P
17339 ></DD
17340 ><DT
17341 ><A
17342 NAME="STRICTALLOCATE"
17343 ></A
17344 >strict allocate (S)</DT
17345 ><DD
17346 ><P
17347 >This is a boolean that controls the handling of 
17348                 disk space allocation in the server. When this is set to <TT
17349 CLASS="CONSTANT"
17350 >yes</TT
17351
17352                 the server will change from UNIX behaviour of not committing real
17353                 disk storage blocks when a file is extended to the Windows behaviour
17354                 of actually forcing the disk system to allocate real storage blocks
17355                 when a file is created or extended to be a given size. In UNIX
17356                 terminology this means that Samba will stop creating sparse files.
17357                 This can be slow on some systems.</P
17358 ><P
17359 >When strict allocate is <TT
17360 CLASS="CONSTANT"
17361 >no</TT
17362 > the server does sparse
17363                 disk block allocation when a file is extended.</P
17364 ><P
17365 >Setting this to <TT
17366 CLASS="CONSTANT"
17367 >yes</TT
17368 > can help Samba return
17369                 out of quota messages on systems that are restricting the disk quota
17370                 of users.</P
17371 ><P
17372 >Default: <B
17373 CLASS="COMMAND"
17374 >strict allocate = no</B
17375 ></P
17376 ></DD
17377 ><DT
17378 ><A
17379 NAME="STRICTLOCKING"
17380 ></A
17381 >strict locking (S)</DT
17382 ><DD
17383 ><P
17384 >This is a boolean that controls the handling of 
17385                 file locking in the server. When this is set to <TT
17386 CLASS="CONSTANT"
17387 >yes</TT
17388
17389                 the server will check every read and write access for file locks, and 
17390                 deny access if locks exist. This can be slow on some systems.</P
17391 ><P
17392 >When strict locking is <TT
17393 CLASS="CONSTANT"
17394 >no</TT
17395 > the server does file 
17396                 lock checks only when the client explicitly asks for them.</P
17397 ><P
17398 >Well-behaved clients always ask for lock checks when it 
17399                 is important, so in the vast majority of cases <B
17400 CLASS="COMMAND"
17401 >strict 
17402                 locking = no</B
17403 > is preferable.</P
17404 ><P
17405 >Default: <B
17406 CLASS="COMMAND"
17407 >strict locking = no</B
17408 ></P
17409 ></DD
17410 ><DT
17411 ><A
17412 NAME="STRICTSYNC"
17413 ></A
17414 >strict sync (S)</DT
17415 ><DD
17416 ><P
17417 >Many Windows applications (including the Windows 
17418                 98 explorer shell) seem to confuse flushing buffer contents to 
17419                 disk with doing a sync to disk. Under UNIX, a sync call forces 
17420                 the process to be suspended until the kernel has ensured that 
17421                 all outstanding data in kernel disk buffers has been safely stored 
17422                 onto stable storage. This is very slow and should only be done 
17423                 rarely. Setting this parameter to <TT
17424 CLASS="CONSTANT"
17425 >no</TT
17426 > (the 
17427                 default) means that <A
17428 HREF="smbd.8.html"
17429 TARGET="_top"
17430 >smbd</A
17431 > ignores the Windows applications requests for
17432                 a sync call. There is only a possibility of losing data if the
17433                 operating system itself that Samba is running on crashes, so there is
17434                 little danger in this default setting. In addition, this fixes many
17435                 performance problems that people have reported with the new Windows98
17436                 explorer shell file copies.</P
17437 ><P
17438 >See also the <A
17439 HREF="#SYNCALWAYS"
17440 ><TT
17441 CLASS="PARAMETER"
17442 ><I
17443 >sync 
17444                 always&#62;</I
17445 ></TT
17446 ></A
17447 > parameter.</P
17448 ><P
17449 >Default: <B
17450 CLASS="COMMAND"
17451 >strict sync = no</B
17452 ></P
17453 ></DD
17454 ><DT
17455 ><A
17456 NAME="STRIPDOT"
17457 ></A
17458 >strip dot (G)</DT
17459 ><DD
17460 ><P
17461 >This is a boolean that controls whether to 
17462                 strip trailing dots off UNIX filenames. This helps with some 
17463                 CDROMs that have filenames ending in a single dot.</P
17464 ><P
17465 >Default: <B
17466 CLASS="COMMAND"
17467 >strip dot = no</B
17468 ></P
17469 ></DD
17470 ><DT
17471 ><A
17472 NAME="SYNCALWAYS"
17473 ></A
17474 >sync always (S)</DT
17475 ><DD
17476 ><P
17477 >This is a boolean parameter that controls 
17478                 whether writes will always be written to stable storage before 
17479                 the write call returns. If this is <TT
17480 CLASS="CONSTANT"
17481 >false</TT
17482 > then the server will be 
17483                 guided by the client's request in each write call (clients can 
17484                 set a bit indicating that a particular write should be synchronous). 
17485                 If this is <TT
17486 CLASS="CONSTANT"
17487 >true</TT
17488 > then every write will be followed by a <B
17489 CLASS="COMMAND"
17490 >fsync()
17491                 </B
17492 > call to ensure the data is written to disk. Note that 
17493                 the <TT
17494 CLASS="PARAMETER"
17495 ><I
17496 >strict sync</I
17497 ></TT
17498 > parameter must be set to
17499                 <TT
17500 CLASS="CONSTANT"
17501 >yes</TT
17502 > in order for this parameter to have 
17503                 any affect.</P
17504 ><P
17505 >See also the <A
17506 HREF="#STRICTSYNC"
17507 ><TT
17508 CLASS="PARAMETER"
17509 ><I
17510 >strict 
17511                 sync</I
17512 ></TT
17513 ></A
17514 > parameter.</P
17515 ><P
17516 >Default: <B
17517 CLASS="COMMAND"
17518 >sync always = no</B
17519 ></P
17520 ></DD
17521 ><DT
17522 ><A
17523 NAME="SYSLOG"
17524 ></A
17525 >syslog (G)</DT
17526 ><DD
17527 ><P
17528 >This parameter maps how Samba debug messages 
17529                 are logged onto the system syslog logging levels. Samba debug 
17530                 level zero maps onto syslog <TT
17531 CLASS="CONSTANT"
17532 >LOG_ERR</TT
17533 >, debug 
17534                 level one maps onto <TT
17535 CLASS="CONSTANT"
17536 >LOG_WARNING</TT
17537 >, debug level 
17538                 two maps onto <TT
17539 CLASS="CONSTANT"
17540 >LOG_NOTICE</TT
17541 >, debug level three 
17542                 maps onto LOG_INFO. All higher levels are mapped to <TT
17543 CLASS="CONSTANT"
17544 >               LOG_DEBUG</TT
17545 >.</P
17546 ><P
17547 >This parameter sets the threshold for sending messages 
17548                 to syslog.  Only messages with debug level less than this value 
17549                 will be sent to syslog.</P
17550 ><P
17551 >Default: <B
17552 CLASS="COMMAND"
17553 >syslog = 1</B
17554 ></P
17555 ></DD
17556 ><DT
17557 ><A
17558 NAME="SYSLOGONLY"
17559 ></A
17560 >syslog only (G)</DT
17561 ><DD
17562 ><P
17563 >If this parameter is set then Samba debug 
17564                 messages are logged into the system syslog only, and not to 
17565                 the debug log files.</P
17566 ><P
17567 >Default: <B
17568 CLASS="COMMAND"
17569 >syslog only = no</B
17570 ></P
17571 ></DD
17572 ><DT
17573 ><A
17574 NAME="TEMPLATEHOMEDIR"
17575 ></A
17576 >template homedir (G)</DT
17577 ><DD
17578 ><P
17579 >When filling out the user information for a Windows NT 
17580                 user, the <A
17581 HREF="winbindd.8.html"
17582 TARGET="_top"
17583 >winbindd(8)</A
17584 > daemon 
17585                 uses this parameter to fill in the home directory for that user.  
17586                 If the string <TT
17587 CLASS="PARAMETER"
17588 ><I
17589 >%D</I
17590 ></TT
17591 > is present it is substituted 
17592                 with the user's Windows NT domain name.  If the string <TT
17593 CLASS="PARAMETER"
17594 ><I
17595 >%U
17596                 </I
17597 ></TT
17598 > is present it is substituted with the user's Windows 
17599                 NT user name.</P
17600 ><P
17601 >Default: <B
17602 CLASS="COMMAND"
17603 >template homedir = /home/%D/%U</B
17604 ></P
17605 ></DD
17606 ><DT
17607 ><A
17608 NAME="TEMPLATESHELL"
17609 ></A
17610 >template shell (G)</DT
17611 ><DD
17612 ><P
17613 >When filling out the user information for a Windows NT 
17614                 user, the <A
17615 HREF="winbindd.8.html"
17616 TARGET="_top"
17617 >winbindd(8)</A
17618 > daemon 
17619                 uses this parameter to fill in the login shell for that user.</P
17620 ><P
17621 >Default: <B
17622 CLASS="COMMAND"
17623 >template shell = /bin/false</B
17624 ></P
17625 ></DD
17626 ><DT
17627 ><A
17628 NAME="TIMEOFFSET"
17629 ></A
17630 >time offset (G)</DT
17631 ><DD
17632 ><P
17633 >This parameter is a setting in minutes to add 
17634                 to the normal GMT to local time conversion. This is useful if 
17635                 you are serving a lot of PCs that have incorrect daylight 
17636                 saving time handling.</P
17637 ><P
17638 >Default: <B
17639 CLASS="COMMAND"
17640 >time offset = 0</B
17641 ></P
17642 ><P
17643 >Example: <B
17644 CLASS="COMMAND"
17645 >time offset = 60</B
17646 ></P
17647 ></DD
17648 ><DT
17649 ><A
17650 NAME="TIMESERVER"
17651 ></A
17652 >time server (G)</DT
17653 ><DD
17654 ><P
17655 >This parameter determines if <A
17656 HREF="nmbd.8.html"
17657 TARGET="_top"
17658 >                       
17659                 nmbd(8)</A
17660 > advertises itself as a time server to Windows 
17661                 clients.</P
17662 ><P
17663 >Default: <B
17664 CLASS="COMMAND"
17665 >time server = no</B
17666 ></P
17667 ></DD
17668 ><DT
17669 ><A
17670 NAME="TIMESTAMPLOGS"
17671 ></A
17672 >timestamp logs (G)</DT
17673 ><DD
17674 ><P
17675 >Synonym for <A
17676 HREF="#DEBUGTIMESTAMP"
17677 ><TT
17678 CLASS="PARAMETER"
17679 ><I
17680 >               debug timestamp</I
17681 ></TT
17682 ></A
17683 >.</P
17684 ></DD
17685 ><DT
17686 ><A
17687 NAME="TOTALPRINTJOBS"
17688 ></A
17689 >total print jobs (G)</DT
17690 ><DD
17691 ><P
17692 >This parameter accepts an integer value which defines
17693                 a limit on the maximum number of print jobs that will be accepted 
17694                 system wide at any given time.  If a print job is submitted
17695                 by a client which will exceed this number, then <A
17696 HREF="smbd.8.html"
17697 TARGET="_top"
17698 >smbd</A
17699 > will return an 
17700                 error indicating that no space is available on the server.  The 
17701                 default value of 0 means that no such limit exists.  This parameter
17702                 can be used to prevent a server from exceeding its capacity and is
17703                 designed as a printing throttle.  See also 
17704                 <A
17705 HREF="#MAXPRINTJOBS"
17706 ><TT
17707 CLASS="PARAMETER"
17708 ><I
17709 >max print jobs</I
17710 ></TT
17711 ></A
17712 >.
17713                 </P
17714 ><P
17715 >Default: <B
17716 CLASS="COMMAND"
17717 >total print jobs = 0</B
17718 ></P
17719 ><P
17720 >Example: <B
17721 CLASS="COMMAND"
17722 >total print jobs = 5000</B
17723 ></P
17724 ></DD
17725 ><DT
17726 ><A
17727 NAME="UNIXEXTENSIONS"
17728 ></A
17729 >unix extensions(G)</DT
17730 ><DD
17731 ><P
17732 >This boolean parameter controls whether Samba 
17733                 implments the CIFS UNIX extensions, as defined by HP. These
17734                 extensions enable CIFS to server UNIX clients to UNIX servers
17735                 better, and allow such things as symbolic links, hard links etc.
17736                 These extensions require a similarly enabled client, and are of
17737                 no current use to Windows clients.</P
17738 ><P
17739 >Default: <B
17740 CLASS="COMMAND"
17741 >unix extensions = no</B
17742 ></P
17743 ></DD
17744 ><DT
17745 ><A
17746 NAME="UNIXPASSWORDSYNC"
17747 ></A
17748 >unix password sync (G)</DT
17749 ><DD
17750 ><P
17751 >This boolean parameter controls whether Samba 
17752                 attempts to synchronize the UNIX password with the SMB password 
17753                 when the encrypted SMB password in the smbpasswd file is changed. 
17754                 If this is set to <TT
17755 CLASS="CONSTANT"
17756 >true</TT
17757 > the program specified in the <TT
17758 CLASS="PARAMETER"
17759 ><I
17760 >passwd
17761                 program</I
17762 ></TT
17763 >parameter is called <EM
17764 >AS ROOT</EM
17765 > - 
17766                 to allow the new UNIX password to be set without access to the 
17767                 old UNIX password (as the SMB password change code has no 
17768                 access to the old password cleartext, only the new).</P
17769 ><P
17770 >See also <A
17771 HREF="#PASSWDPROGRAM"
17772 ><TT
17773 CLASS="PARAMETER"
17774 ><I
17775 >passwd 
17776                 program</I
17777 ></TT
17778 ></A
17779 >, <A
17780 HREF="#PASSWDCHAT"
17781 ><TT
17782 CLASS="PARAMETER"
17783 ><I
17784 >               passwd chat</I
17785 ></TT
17786 ></A
17787 >.</P
17788 ><P
17789 >Default: <B
17790 CLASS="COMMAND"
17791 >unix password sync = no</B
17792 ></P
17793 ></DD
17794 ><DT
17795 ><A
17796 NAME="UPDATEENCRYPTED"
17797 ></A
17798 >update encrypted (G)</DT
17799 ><DD
17800 ><P
17801 >This boolean parameter allows a user logging 
17802                 on with a plaintext password to have their encrypted (hashed) 
17803                 password in the smbpasswd file to be updated automatically as 
17804                 they log on. This option allows a site to migrate from plaintext 
17805                 password authentication (users authenticate with plaintext 
17806                 password over the wire, and are checked against a UNIX account 
17807                 database) to encrypted password authentication (the SMB 
17808                 challenge/response authentication mechanism) without forcing
17809                 all users to re-enter their passwords via smbpasswd at the time the
17810                 change is made. This is a convenience option to allow the change over
17811                 to encrypted passwords to be made over a longer period. Once all users
17812                 have encrypted representations of their passwords in the smbpasswd
17813                 file this parameter should be set to <TT
17814 CLASS="CONSTANT"
17815 >no</TT
17816 >.</P
17817 ><P
17818 >In order for this parameter to work correctly the <A
17819 HREF="#ENCRYPTPASSWORDS"
17820 ><TT
17821 CLASS="PARAMETER"
17822 ><I
17823 >encrypt passwords</I
17824 ></TT
17825 >
17826                 </A
17827 > parameter must be set to <TT
17828 CLASS="CONSTANT"
17829 >no</TT
17830 > when
17831                 this parameter is set to <TT
17832 CLASS="CONSTANT"
17833 >yes</TT
17834 >.</P
17835 ><P
17836 >Note that even when this parameter is set a user 
17837                 authenticating to <B
17838 CLASS="COMMAND"
17839 >smbd</B
17840 > must still enter a valid 
17841                 password in order to connect correctly, and to update their hashed 
17842                 (smbpasswd) passwords.</P
17843 ><P
17844 >Default: <B
17845 CLASS="COMMAND"
17846 >update encrypted = no</B
17847 ></P
17848 ></DD
17849 ><DT
17850 ><A
17851 NAME="USECLIENTDRIVER"
17852 ></A
17853 >use client driver (S)</DT
17854 ><DD
17855 ><P
17856 >This parameter applies only to Windows NT/2000
17857                 clients.  It has no affect on Windows 95/98/ME clients.  When 
17858                 serving a printer to Windows NT/2000 clients without first installing
17859                 a valid printer driver on the Samba host, the client will be required
17860                 to install a local printer driver.  From this point on, the client
17861                 will treat the print as a local printer and not a network printer 
17862                 connection.  This is much the same behavior that will occur
17863                 when <B
17864 CLASS="COMMAND"
17865 >disable spoolss = yes</B
17866 >.  </P
17867 ><P
17868 >The differentiating 
17869                 factor is that under normal circumstances, the NT/2000 client will 
17870                 attempt to open the network printer using MS-RPC.  The problem is that
17871                 because the client considers the printer to be local, it will attempt
17872                 to issue the OpenPrinterEx() call requesting access rights associated 
17873                 with the logged on user. If the user possesses local administator rights
17874                 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
17875                 call will fail.  The result is that the client will now display an "Access
17876                 Denied; Unable to connect" message in the printer queue window (even though
17877                 jobs may successfully be printed).  </P
17878 ><P
17879 >If this parameter is enabled for a printer, then any attempt
17880                 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
17881                 to PRINTER_ACCESS_USE instead.  Thus allowing the OpenPrinterEx()
17882                 call to succeed.  <EM
17883 >This parameter MUST not be able enabled
17884                 on a print share which has valid print driver installed on the Samba 
17885                 server.</EM
17886 ></P
17887 ><P
17888 >See also <A
17889 HREF="#DISABLESPOOLSS"
17890 >disable spoolss</A
17891 >
17892                 </P
17893 ><P
17894 >Default: <B
17895 CLASS="COMMAND"
17896 >use client driver = no</B
17897 ></P
17898 ></DD
17899 ><DT
17900 ><A
17901 NAME="USEMMAP"
17902 ></A
17903 >use mmap (G)</DT
17904 ><DD
17905 ><P
17906 >This global parameter determines if the tdb internals of Samba can
17907                 depend on mmap working correctly on the running system. Samba requires a coherent
17908                 mmap/read-write system memory cache. Currently only HPUX does not have such a
17909                 coherent cache, and so this parameter is set to <TT
17910 CLASS="CONSTANT"
17911 >false</TT
17912 > by
17913                 default on HPUX. On all other systems this parameter should be left alone. This
17914                 parameter is provided to help the Samba developers track down problems with
17915                 the tdb internal code.
17916                 </P
17917 ><P
17918 >Default: <B
17919 CLASS="COMMAND"
17920 >use mmap = yes</B
17921 ></P
17922 ></DD
17923 ><DT
17924 ><A
17925 NAME="USERHOSTS"
17926 ></A
17927 >use rhosts (G)</DT
17928 ><DD
17929 ><P
17930 >If this global parameter is <TT
17931 CLASS="CONSTANT"
17932 >true</TT
17933 >, it specifies 
17934                 that the UNIX user's <TT
17935 CLASS="FILENAME"
17936 >.rhosts</TT
17937 > file in their home directory 
17938                 will be read to find the names of hosts and users who will be allowed 
17939                 access without specifying a password.</P
17940 ><P
17941 ><EM
17942 >NOTE:</EM
17943 > The use of <TT
17944 CLASS="PARAMETER"
17945 ><I
17946 >use rhosts
17947                 </I
17948 ></TT
17949 > can be a major security hole. This is because you are 
17950                 trusting the PC to supply the correct username. It is very easy to 
17951                 get a PC to supply a false username. I recommend that the <TT
17952 CLASS="PARAMETER"
17953 ><I
17954 >               use rhosts</I
17955 ></TT
17956 > option be only used if you really know what 
17957                 you are doing.</P
17958 ><P
17959 >Default: <B
17960 CLASS="COMMAND"
17961 >use rhosts = no</B
17962 ></P
17963 ></DD
17964 ><DT
17965 ><A
17966 NAME="USER"
17967 ></A
17968 >user (S)</DT
17969 ><DD
17970 ><P
17971 >Synonym for <A
17972 HREF="#USERNAME"
17973 ><TT
17974 CLASS="PARAMETER"
17975 ><I
17976 >               username</I
17977 ></TT
17978 ></A
17979 >.</P
17980 ></DD
17981 ><DT
17982 ><A
17983 NAME="USERS"
17984 ></A
17985 >users (S)</DT
17986 ><DD
17987 ><P
17988 >Synonym for <A
17989 HREF="#USERNAME"
17990 ><TT
17991 CLASS="PARAMETER"
17992 ><I
17993 >               username</I
17994 ></TT
17995 ></A
17996 >.</P
17997 ></DD
17998 ><DT
17999 ><A
18000 NAME="USERNAME"
18001 ></A
18002 >username (S)</DT
18003 ><DD
18004 ><P
18005 >Multiple users may be specified in a comma-delimited 
18006                 list, in which case the supplied password will be tested against 
18007                 each username in turn (left to right).</P
18008 ><P
18009 >The <TT
18010 CLASS="PARAMETER"
18011 ><I
18012 >username</I
18013 ></TT
18014 > line is needed only when 
18015                 the PC is unable to supply its own username. This is the case 
18016                 for the COREPLUS protocol or where your users have different WfWg 
18017                 usernames to UNIX usernames. In both these cases you may also be 
18018                 better using the \\server\share%user syntax instead.</P
18019 ><P
18020 >The <TT
18021 CLASS="PARAMETER"
18022 ><I
18023 >username</I
18024 ></TT
18025 > line is not a great 
18026                 solution in many cases as it means Samba will try to validate 
18027                 the supplied password against each of the usernames in the 
18028                 <TT
18029 CLASS="PARAMETER"
18030 ><I
18031 >username</I
18032 ></TT
18033 > line in turn. This is slow and 
18034                 a bad idea for lots of users in case of duplicate passwords. 
18035                 You may get timeouts or security breaches using this parameter 
18036                 unwisely.</P
18037 ><P
18038 >Samba relies on the underlying UNIX security. This 
18039                 parameter does not restrict who can login, it just offers hints 
18040                 to the Samba server as to what usernames might correspond to the 
18041                 supplied password. Users can login as whoever they please and 
18042                 they will be able to do no more damage than if they started a 
18043                 telnet session. The daemon runs as the user that they log in as, 
18044                 so they cannot do anything that user cannot do.</P
18045 ><P
18046 >To restrict a service to a particular set of users you 
18047                 can use the <A
18048 HREF="#VALIDUSERS"
18049 ><TT
18050 CLASS="PARAMETER"
18051 ><I
18052 >valid users
18053                 </I
18054 ></TT
18055 ></A
18056 > parameter.</P
18057 ><P
18058 >If any of the usernames begin with a '@' then the name 
18059                 will be looked up first in the NIS netgroups list (if Samba 
18060                 is compiled with netgroup support), followed by a lookup in 
18061                 the UNIX groups database and will expand to a list of all users 
18062                 in the group of that name.</P
18063 ><P
18064 >If any of the usernames begin with a '+' then the name 
18065                 will be looked up only in the UNIX groups database and will 
18066                 expand to a list of all users in the group of that name.</P
18067 ><P
18068 >If any of the usernames begin with a '&#38;'then the name 
18069                 will be looked up only in the NIS netgroups database (if Samba 
18070                 is compiled with netgroup support) and will expand to a list 
18071                 of all users in the netgroup group of that name.</P
18072 ><P
18073 >Note that searching though a groups database can take 
18074                 quite some time, and some clients may time out during the 
18075                 search.</P
18076 ><P
18077 >See the section <A
18078 HREF="#AEN236"
18079 >NOTE ABOUT 
18080                 USERNAME/PASSWORD VALIDATION</A
18081 > for more information on how 
18082                 this parameter determines access to the services.</P
18083 ><P
18084 >Default: <B
18085 CLASS="COMMAND"
18086 >The guest account if a guest service, 
18087                 else &#60;empty string&#62;.</B
18088 ></P
18089 ><P
18090 >Examples:<B
18091 CLASS="COMMAND"
18092 >username = fred, mary, jack, jane, 
18093                 @users, @pcgroup</B
18094 ></P
18095 ></DD
18096 ><DT
18097 ><A
18098 NAME="USERNAMELEVEL"
18099 ></A
18100 >username level (G)</DT
18101 ><DD
18102 ><P
18103 >This option helps Samba to try and 'guess' at 
18104                 the real UNIX username, as many DOS clients send an all-uppercase 
18105                 username. By default Samba tries all lowercase, followed by the 
18106                 username with the first letter capitalized, and fails if the 
18107                 username is not found on the UNIX machine.</P
18108 ><P
18109 >If this parameter is set to non-zero the behavior changes. 
18110                 This parameter is a number that specifies the number of uppercase
18111                 combinations to try while trying to determine the UNIX user name. The
18112                 higher the number the more combinations will be tried, but the slower
18113                 the discovery of usernames will be. Use this parameter when you have
18114                 strange usernames on your UNIX machine, such as <TT
18115 CLASS="CONSTANT"
18116 >AstrangeUser
18117                 </TT
18118 >.</P
18119 ><P
18120 >Default: <B
18121 CLASS="COMMAND"
18122 >username level = 0</B
18123 ></P
18124 ><P
18125 >Example: <B
18126 CLASS="COMMAND"
18127 >username level = 5</B
18128 ></P
18129 ></DD
18130 ><DT
18131 ><A
18132 NAME="USERNAMEMAP"
18133 ></A
18134 >username map (G)</DT
18135 ><DD
18136 ><P
18137 >This option allows you to specify a file containing 
18138                 a mapping of usernames from the clients to the server. This can be 
18139                 used for several purposes. The most common is to map usernames 
18140                 that users use on DOS or Windows machines to those that the UNIX 
18141                 box uses. The other is to map multiple users to a single username 
18142                 so that they can more easily share files.</P
18143 ><P
18144 >The map file is parsed line by line. Each line should 
18145                 contain a single UNIX username on the left then a '=' followed 
18146                 by a list of usernames on the right. The list of usernames on the 
18147                 right may contain names of the form @group in which case they 
18148                 will match any UNIX username in that group. The special client 
18149                 name '*' is a wildcard and matches any name. Each line of the 
18150                 map file may be up to 1023 characters long.</P
18151 ><P
18152 >The file is processed on each line by taking the 
18153                 supplied username and comparing it with each username on the right 
18154                 hand side of the '=' signs. If the supplied name matches any of 
18155                 the names on the right hand side then it is replaced with the name 
18156                 on the left. Processing then continues with the next line.</P
18157 ><P
18158 >If any line begins with a '#' or a ';' then it is 
18159                 ignored</P
18160 ><P
18161 >If any line begins with an '!' then the processing 
18162                 will stop after that line if a mapping was done by the line. 
18163                 Otherwise mapping continues with every line being processed. 
18164                 Using '!' is most useful when you have a wildcard mapping line 
18165                 later in the file.</P
18166 ><P
18167 >For example to map from the name <TT
18168 CLASS="CONSTANT"
18169 >admin</TT
18170
18171                 or <TT
18172 CLASS="CONSTANT"
18173 >administrator</TT
18174 > to the UNIX name <TT
18175 CLASS="CONSTANT"
18176 >               root</TT
18177 > you would use:</P
18178 ><P
18179 ><B
18180 CLASS="COMMAND"
18181 >root = admin administrator</B
18182 ></P
18183 ><P
18184 >Or to map anyone in the UNIX group <TT
18185 CLASS="CONSTANT"
18186 >system</TT
18187
18188                 to the UNIX name <TT
18189 CLASS="CONSTANT"
18190 >sys</TT
18191 > you would use:</P
18192 ><P
18193 ><B
18194 CLASS="COMMAND"
18195 >sys = @system</B
18196 ></P
18197 ><P
18198 >You can have as many mappings as you like in a username 
18199                 map file.</P
18200 ><P
18201 >If your system supports the NIS NETGROUP option then 
18202                 the netgroup database is checked before the <TT
18203 CLASS="FILENAME"
18204 >/etc/group
18205                 </TT
18206 > database for matching groups.</P
18207 ><P
18208 >You can map Windows usernames that have spaces in them
18209                  by using double quotes around the name. For example:</P
18210 ><P
18211 ><B
18212 CLASS="COMMAND"
18213 >tridge = "Andrew Tridgell"</B
18214 ></P
18215 ><P
18216 >would map the windows username "Andrew Tridgell" to the 
18217                 unix username "tridge".</P
18218 ><P
18219 >The following example would map mary and fred to the 
18220                 unix user sys, and map the rest to guest. Note the use of the 
18221                 '!' to tell Samba to stop processing if it gets a match on 
18222                 that line.</P
18223 ><P
18224 ><TABLE
18225 BORDER="0"
18226 BGCOLOR="#E0E0E0"
18227 WIDTH="90%"
18228 ><TR
18229 ><TD
18230 ><PRE
18231 CLASS="PROGRAMLISTING"
18232 >               !sys = mary fred
18233                 guest = *
18234                 </PRE
18235 ></TD
18236 ></TR
18237 ></TABLE
18238 ></P
18239 ><P
18240 >Note that the remapping is applied to all occurrences 
18241                 of usernames. Thus if you connect to \\server\fred and <TT
18242 CLASS="CONSTANT"
18243 >               fred</TT
18244 > is remapped to <TT
18245 CLASS="CONSTANT"
18246 >mary</TT
18247 > then you 
18248                 will actually be connecting to \\server\mary and will need to 
18249                 supply a password suitable for <TT
18250 CLASS="CONSTANT"
18251 >mary</TT
18252 > not 
18253                 <TT
18254 CLASS="CONSTANT"
18255 >fred</TT
18256 >. The only exception to this is the 
18257                 username passed to the <A
18258 HREF="#PASSWORDSERVER"
18259 ><TT
18260 CLASS="PARAMETER"
18261 ><I
18262 >               password server</I
18263 ></TT
18264 ></A
18265 > (if you have one). The password 
18266                 server will receive whatever username the client supplies without 
18267                 modification.</P
18268 ><P
18269 >Also note that no reverse mapping is done. The main effect 
18270                 this has is with printing. Users who have been mapped may have 
18271                 trouble deleting print jobs as PrintManager under WfWg will think 
18272                 they don't own the print job.</P
18273 ><P
18274 >Default: <EM
18275 >no username map</EM
18276 ></P
18277 ><P
18278 >Example: <B
18279 CLASS="COMMAND"
18280 >username map = /usr/local/samba/lib/users.map
18281                 </B
18282 ></P
18283 ></DD
18284 ><DT
18285 ><A
18286 NAME="UTMP"
18287 ></A
18288 >utmp (G)</DT
18289 ><DD
18290 ><P
18291 >This boolean parameter is only available if 
18292                 Samba has been configured and compiled  with the option <B
18293 CLASS="COMMAND"
18294 >               --with-utmp</B
18295 >. If set to <TT
18296 CLASS="CONSTANT"
18297 >true</TT
18298 > then Samba will attempt
18299                 to add utmp or utmpx records (depending on the UNIX system) whenever a
18300                 connection is made to a Samba server. Sites may use this to record the
18301                 user connecting to a Samba share.</P
18302 ><P
18303 >See also the <A
18304 HREF="#UTMPDIRECTORY"
18305 ><TT
18306 CLASS="PARAMETER"
18307 ><I
18308 >               utmp directory</I
18309 ></TT
18310 ></A
18311 > parameter.</P
18312 ><P
18313 >Default: <B
18314 CLASS="COMMAND"
18315 >utmp = no</B
18316 ></P
18317 ></DD
18318 ><DT
18319 ><A
18320 NAME="UTMPDIRECTORY"
18321 ></A
18322 >utmp directory(G)</DT
18323 ><DD
18324 ><P
18325 >This parameter is only available if Samba has 
18326                 been configured and compiled with the option <B
18327 CLASS="COMMAND"
18328 >               --with-utmp</B
18329 >. It specifies a directory pathname that is
18330                 used to store the utmp or utmpx files (depending on the UNIX system) that
18331                 record user connections to a Samba server. See also the <A
18332 HREF="#UTMP"
18333 >               <TT
18334 CLASS="PARAMETER"
18335 ><I
18336 >utmp</I
18337 ></TT
18338 ></A
18339 > parameter. By default this is 
18340                 not set, meaning the system will use whatever utmp file the 
18341                 native system is set to use (usually 
18342                 <TT
18343 CLASS="FILENAME"
18344 >/var/run/utmp</TT
18345 > on Linux).</P
18346 ><P
18347 >Default: <EM
18348 >no utmp directory</EM
18349 ></P
18350 ></DD
18351 ><DT
18352 ><A
18353 NAME="VALIDUSERS"
18354 ></A
18355 >valid users (S)</DT
18356 ><DD
18357 ><P
18358 >This is a list of users that should be allowed 
18359                 to login to this service. Names starting with '@', '+' and  '&#38;'
18360                 are interpreted using the same rules as described in the 
18361                 <TT
18362 CLASS="PARAMETER"
18363 ><I
18364 >invalid users</I
18365 ></TT
18366 > parameter.</P
18367 ><P
18368 >If this is empty (the default) then any user can login. 
18369                 If a username is in both this list and the <TT
18370 CLASS="PARAMETER"
18371 ><I
18372 >invalid 
18373                 users</I
18374 ></TT
18375 > list then access is denied for that user.</P
18376 ><P
18377 >The current servicename is substituted for <TT
18378 CLASS="PARAMETER"
18379 ><I
18380 >%S
18381                 </I
18382 ></TT
18383 >. This is useful in the [homes] section.</P
18384 ><P
18385 >See also <A
18386 HREF="#INVALIDUSERS"
18387 ><TT
18388 CLASS="PARAMETER"
18389 ><I
18390 >invalid users
18391                 </I
18392 ></TT
18393 ></A
18394 ></P
18395 ><P
18396 >Default: <EM
18397 >No valid users list (anyone can login)
18398                 </EM
18399 ></P
18400 ><P
18401 >Example: <B
18402 CLASS="COMMAND"
18403 >valid users = greg, @pcusers</B
18404 ></P
18405 ></DD
18406 ><DT
18407 ><A
18408 NAME="VETOFILES"
18409 ></A
18410 >veto files(S)</DT
18411 ><DD
18412 ><P
18413 >This is a list of files and directories that 
18414                 are neither visible nor accessible.  Each entry in the list must 
18415                 be separated by a '/', which allows spaces to be included 
18416                 in the entry. '*' and '?' can be used to specify multiple files 
18417                 or directories as in DOS wildcards.</P
18418 ><P
18419 >Each entry must be a unix path, not a DOS path and 
18420                 must <EM
18421 >not</EM
18422 > include the  unix directory 
18423                 separator '/'.</P
18424 ><P
18425 >Note that the <TT
18426 CLASS="PARAMETER"
18427 ><I
18428 >case sensitive</I
18429 ></TT
18430 > option 
18431                 is applicable in vetoing files.</P
18432 ><P
18433 >One feature of the veto files parameter that it
18434                 is important to be aware of is Samba's behaviour when
18435                 trying to delete a directory. If a directory that is
18436                 to be deleted contains nothing but veto files this
18437                 deletion will <EM
18438 >fail</EM
18439 > unless you also set
18440                 the <TT
18441 CLASS="PARAMETER"
18442 ><I
18443 >delete veto files</I
18444 ></TT
18445 > parameter to
18446                 <TT
18447 CLASS="PARAMETER"
18448 ><I
18449 >yes</I
18450 ></TT
18451 >.</P
18452 ><P
18453 >Setting this parameter will affect the performance 
18454                 of Samba, as it will be forced to check all files and directories 
18455                 for a match as they are scanned.</P
18456 ><P
18457 >See also <A
18458 HREF="#HIDEFILES"
18459 ><TT
18460 CLASS="PARAMETER"
18461 ><I
18462 >hide files
18463                 </I
18464 ></TT
18465 ></A
18466 > and <A
18467 HREF="#CASESENSITIVE"
18468 ><TT
18469 CLASS="PARAMETER"
18470 ><I
18471 >               case sensitive</I
18472 ></TT
18473 ></A
18474 >.</P
18475 ><P
18476 >Default: <EM
18477 >No files or directories are vetoed.
18478                 </EM
18479 ></P
18480 ><P
18481 >Examples:<TABLE
18482 BORDER="0"
18483 BGCOLOR="#E0E0E0"
18484 WIDTH="90%"
18485 ><TR
18486 ><TD
18487 ><PRE
18488 CLASS="PROGRAMLISTING"
18489 >; Veto any files containing the word Security, 
18490 ; any ending in .tmp, and any directory containing the
18491 ; word root.
18492 veto files = /*Security*/*.tmp/*root*/
18493
18494 ; Veto the Apple specific files that a NetAtalk server
18495 ; creates.
18496 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/</PRE
18497 ></TD
18498 ></TR
18499 ></TABLE
18500 ></P
18501 ></DD
18502 ><DT
18503 ><A
18504 NAME="VETOOPLOCKFILES"
18505 ></A
18506 >veto oplock files (S)</DT
18507 ><DD
18508 ><P
18509 >This parameter is only valid when the <A
18510 HREF="#OPLOCKS"
18511 ><TT
18512 CLASS="PARAMETER"
18513 ><I
18514 >oplocks</I
18515 ></TT
18516 ></A
18517 >
18518                 parameter is turned on for a share. It allows the Samba administrator
18519                 to selectively turn off the granting of oplocks on selected files that
18520                 match a wildcarded list, similar to the wildcarded list used in the
18521                 <A
18522 HREF="#VETOFILES"
18523 ><TT
18524 CLASS="PARAMETER"
18525 ><I
18526 >veto files</I
18527 ></TT
18528 ></A
18529
18530                 parameter.</P
18531 ><P
18532 >Default: <EM
18533 >No files are vetoed for oplock 
18534                 grants</EM
18535 ></P
18536 ><P
18537 >You might want to do this on files that you know will 
18538                 be heavily contended for by clients. A good example of this 
18539                 is in the NetBench SMB benchmark program, which causes heavy 
18540                 client contention for files ending in <TT
18541 CLASS="FILENAME"
18542 >.SEM</TT
18543 >. 
18544                 To cause Samba not to grant oplocks on these files you would use 
18545                 the line (either in the [global] section or in the section for 
18546                 the particular NetBench share :</P
18547 ><P
18548 >Example: <B
18549 CLASS="COMMAND"
18550 >veto oplock files = /*.SEM/
18551                 </B
18552 ></P
18553 ></DD
18554 ><DT
18555 ><A
18556 NAME="VFSOBJECT"
18557 ></A
18558 >vfs object (S)</DT
18559 ><DD
18560 ><P
18561 >This parameter specifies a shared object file that 
18562                 is used for Samba VFS I/O operations.  By default, normal 
18563                 disk I/O operations are used but these can be overloaded 
18564                 with a VFS object.  The Samba VFS layer is new to Samba 2.2 and 
18565                 must be enabled at compile time with --with-vfs.</P
18566 ><P
18567 >Default : <EM
18568 >no value</EM
18569 ></P
18570 ></DD
18571 ><DT
18572 ><A
18573 NAME="VFSOPTIONS"
18574 ></A
18575 >vfs options (S)</DT
18576 ><DD
18577 ><P
18578 >This parameter allows parameters to be passed 
18579                 to the vfs layer at initialization time.  The Samba VFS layer 
18580                 is new to Samba 2.2 and must be enabled at compile time 
18581                 with --with-vfs.  See also <A
18582 HREF="#VFSOBJECT"
18583 ><TT
18584 CLASS="PARAMETER"
18585 ><I
18586 >               vfs object</I
18587 ></TT
18588 ></A
18589 >.</P
18590 ><P
18591 >Default : <EM
18592 >no value</EM
18593 ></P
18594 ></DD
18595 ><DT
18596 ><A
18597 NAME="VOLUME"
18598 ></A
18599 >volume (S)</DT
18600 ><DD
18601 ><P
18602 > This allows you to override the volume label 
18603                 returned for a share. Useful for CDROMs with installation programs 
18604                 that insist on a particular volume label.</P
18605 ><P
18606 >Default: <EM
18607 >the name of the share</EM
18608 ></P
18609 ></DD
18610 ><DT
18611 ><A
18612 NAME="WIDELINKS"
18613 ></A
18614 >wide links (S)</DT
18615 ><DD
18616 ><P
18617 >This parameter controls whether or not links 
18618                 in the UNIX file system may be followed by the server. Links 
18619                 that point to areas within the directory tree exported by the 
18620                 server are always allowed; this parameter controls access only 
18621                 to areas that are outside the directory tree being exported.</P
18622 ><P
18623 >Note that setting this parameter can have a negative 
18624                 effect on your server performance due to the extra system calls 
18625                 that Samba has to  do in order to perform the link checks.</P
18626 ><P
18627 >Default: <B
18628 CLASS="COMMAND"
18629 >wide links = yes</B
18630 ></P
18631 ></DD
18632 ><DT
18633 ><A
18634 NAME="WINBINDCACHETIME"
18635 ></A
18636 >winbind cache time (G)</DT
18637 ><DD
18638 ><P
18639 >This parameter specifies the number of seconds the
18640                 <A
18641 HREF="winbindd.8.html"
18642 TARGET="_top"
18643 >winbindd(8)</A
18644 > daemon will cache 
18645                 user and group information before querying a Windows NT server 
18646                 again.</P
18647 ><P
18648 >Default: <B
18649 CLASS="COMMAND"
18650 >winbind cache type = 15</B
18651 ></P
18652 ></DD
18653 ><DT
18654 ><A
18655 NAME="WINBINDENUMUSERS"
18656 ></A
18657 >winbind enum users (G)</DT
18658 ><DD
18659 ><P
18660 >On large installations using
18661                 <A
18662 HREF="winbindd.8.html"
18663 TARGET="_top"
18664 >winbindd(8)</A
18665 > it may be
18666                 necessary to suppress the enumeration of users through the
18667                 <B
18668 CLASS="COMMAND"
18669 > setpwent()</B
18670 >,
18671                 <B
18672 CLASS="COMMAND"
18673 >getpwent()</B
18674 > and
18675                 <B
18676 CLASS="COMMAND"
18677 >endpwent()</B
18678 > group of system calls.  If
18679                 the <TT
18680 CLASS="PARAMETER"
18681 ><I
18682 >winbind enum users</I
18683 ></TT
18684 > parameter is
18685                 false, calls to the <B
18686 CLASS="COMMAND"
18687 >getpwent</B
18688 > system call
18689                 will not return any data. </P
18690 ><P
18691 ><EM
18692 >Warning:</EM
18693 > Turning off user
18694                 enumeration may cause some programs to behave oddly.  For
18695                 example, the finger program relies on having access to the
18696                 full user list when searching for matching
18697                 usernames. </P
18698 ><P
18699 >Default: <B
18700 CLASS="COMMAND"
18701 >winbind enum users = yes </B
18702 ></P
18703 ></DD
18704 ><DT
18705 ><A
18706 NAME="WINBINDENUMGROUPS"
18707 ></A
18708 >winbind enum groups (G)</DT
18709 ><DD
18710 ><P
18711 >On large installations using
18712                 <A
18713 HREF="winbindd.8.html"
18714 TARGET="_top"
18715 >winbindd(8)</A
18716 > it may be
18717                 necessary to suppress the enumeration of groups through the
18718                 <B
18719 CLASS="COMMAND"
18720 > setgrent()</B
18721 >,
18722                 <B
18723 CLASS="COMMAND"
18724 >getgrent()</B
18725 > and
18726                 <B
18727 CLASS="COMMAND"
18728 >endgrent()</B
18729 > group of system calls.  If
18730                 the <TT
18731 CLASS="PARAMETER"
18732 ><I
18733 >winbind enum groups</I
18734 ></TT
18735 > parameter is
18736                 false, calls to the <B
18737 CLASS="COMMAND"
18738 >getgrent()</B
18739 > system
18740                 call will not return any data. </P
18741 ><P
18742 ><EM
18743 >Warning:</EM
18744 > Turning off group
18745                 enumeration may cause some programs to behave oddly.
18746                 </P
18747 ><P
18748 >Default: <B
18749 CLASS="COMMAND"
18750 >winbind enum groups = yes </B
18751 >
18752                 </P
18753 ></DD
18754 ><DT
18755 ><A
18756 NAME="WINBINDGID"
18757 ></A
18758 >winbind gid (G)</DT
18759 ><DD
18760 ><P
18761 >The winbind gid parameter specifies the range of group 
18762                 ids that are allocated by the <A
18763 HREF="winbindd.8.html"
18764 TARGET="_top"
18765 >               winbindd(8)</A
18766 > daemon.  This range of group ids should have no 
18767                 existing local or NIS groups within it as strange conflicts can 
18768                 occur otherwise.</P
18769 ><P
18770 >Default: <B
18771 CLASS="COMMAND"
18772 >winbind gid = &#60;empty string&#62;
18773                 </B
18774 ></P
18775 ><P
18776 >Example: <B
18777 CLASS="COMMAND"
18778 >winbind gid = 10000-20000</B
18779 ></P
18780 ></DD
18781 ><DT
18782 ><A
18783 NAME="WINBINDSEPARATOR"
18784 ></A
18785 >winbind separator (G)</DT
18786 ><DD
18787 ><P
18788 >This parameter allows an admin to define the character 
18789                 used when listing a username of the form of <TT
18790 CLASS="REPLACEABLE"
18791 ><I
18792 >DOMAIN
18793                 </I
18794 ></TT
18795 >\<TT
18796 CLASS="REPLACEABLE"
18797 ><I
18798 >user</I
18799 ></TT
18800 >.  This parameter 
18801                 is only applicable when using the <TT
18802 CLASS="FILENAME"
18803 >pam_winbind.so</TT
18804 >
18805                 and <TT
18806 CLASS="FILENAME"
18807 >nss_winbind.so</TT
18808 > modules for UNIX services.
18809                 </P
18810 ><P
18811 >Please note that setting this parameter to + causes problems
18812                 with group membership at least on glibc systems, as the character +
18813                 is used as a special character for NIS in /etc/group.</P
18814 ><P
18815 >Default: <B
18816 CLASS="COMMAND"
18817 >winbind separator = '\'</B
18818 ></P
18819 ><P
18820 >Example: <B
18821 CLASS="COMMAND"
18822 >winbind separator = +</B
18823 ></P
18824 ></DD
18825 ><DT
18826 ><A
18827 NAME="WINBINDUID"
18828 ></A
18829 >winbind uid (G)</DT
18830 ><DD
18831 ><P
18832 >The winbind gid parameter specifies the range of group 
18833                 ids that are allocated by the <A
18834 HREF="winbindd.8.html"
18835 TARGET="_top"
18836 >               winbindd(8)</A
18837 > daemon.  This range of ids should have no 
18838                 existing local or NIS users within it as strange conflicts can 
18839                 occur otherwise.</P
18840 ><P
18841 >Default: <B
18842 CLASS="COMMAND"
18843 >winbind uid = &#60;empty string&#62;
18844                 </B
18845 ></P
18846 ><P
18847 >Example: <B
18848 CLASS="COMMAND"
18849 >winbind uid = 10000-20000</B
18850 ></P
18851 ></DD
18852 ><DT
18853 >winbind use default domain, <A
18854 NAME="WINBINDUSEDEFAULTDOMAIN"
18855 ></A
18856 >winbind use default domain</DT
18857 ><DD
18858 ><P
18859 >This parameter specifies whether the <A
18860 HREF="winbindd.8.html"
18861 TARGET="_top"
18862 >               winbindd(8)</A
18863 >
18864                 daemon should operate on users without domain component in their username.  
18865                 Users without a domain component are treated as is part of the winbindd server's 
18866                 own domain.  While this does not benifit Windows users, it makes SSH, FTP and e-mail 
18867                 function in a way much closer to the way they would in a native unix system.</P
18868 ><P
18869 >Default: <B
18870 CLASS="COMMAND"
18871 >winbind use default domain = &#60;falseg&#62; 
18872                 </B
18873 ></P
18874 ><P
18875 >Example: <B
18876 CLASS="COMMAND"
18877 >winbind use default domain = true</B
18878 ></P
18879 ></DD
18880 ><DT
18881 ><A
18882 NAME="WINSHOOK"
18883 ></A
18884 >wins hook (G)</DT
18885 ><DD
18886 ><P
18887 >When Samba is running as a WINS server this 
18888                 allows you to call an external program for all changes to the 
18889                 WINS database. The primary use for this option is to allow the 
18890                 dynamic update of external name resolution databases such as 
18891                 dynamic DNS.</P
18892 ><P
18893 >The wins hook parameter specifies the name of a script 
18894                 or executable that will be called as follows:</P
18895 ><P
18896 ><B
18897 CLASS="COMMAND"
18898 >wins_hook operation name nametype ttl IP_list
18899                 </B
18900 ></P
18901 ><P
18902 ></P
18903 ><UL
18904 ><LI
18905 ><P
18906 >The first argument is the operation and is one 
18907                         of "add", "delete", or "refresh". In most cases the operation can 
18908                         be ignored as the rest of the parameters provide sufficient 
18909                         information. Note that "refresh" may sometimes be called when the 
18910                         name has not previously been added, in that case it should be treated 
18911                         as an add.</P
18912 ></LI
18913 ><LI
18914 ><P
18915 >The second argument is the NetBIOS name. If the 
18916                         name is not a legal name then the wins hook is not called. 
18917                         Legal names contain only  letters, digits, hyphens, underscores 
18918                         and periods.</P
18919 ></LI
18920 ><LI
18921 ><P
18922 >The third argument is the NetBIOS name 
18923                         type as a 2 digit hexadecimal number. </P
18924 ></LI
18925 ><LI
18926 ><P
18927 >The fourth argument is the TTL (time to live) 
18928                         for the name in seconds.</P
18929 ></LI
18930 ><LI
18931 ><P
18932 >The fifth and subsequent arguments are the IP 
18933                         addresses currently registered for that name. If this list is 
18934                         empty then the name should be deleted.</P
18935 ></LI
18936 ></UL
18937 ><P
18938 >An example script that calls the BIND dynamic DNS update 
18939                 program <B
18940 CLASS="COMMAND"
18941 >nsupdate</B
18942 > is provided in the examples 
18943                 directory of the Samba source code. </P
18944 ></DD
18945 ><DT
18946 ><A
18947 NAME="WINSPROXY"
18948 ></A
18949 >wins proxy (G)</DT
18950 ><DD
18951 ><P
18952 >This is a boolean that controls if <A
18953 HREF="nmbd.8.html"
18954 TARGET="_top"
18955 >nmbd(8)</A
18956 > will respond to broadcast name 
18957                 queries on behalf of  other hosts. You may need to set this 
18958                 to <TT
18959 CLASS="CONSTANT"
18960 >yes</TT
18961 > for some older clients.</P
18962 ><P
18963 >Default: <B
18964 CLASS="COMMAND"
18965 >wins proxy = no</B
18966 ></P
18967 ></DD
18968 ><DT
18969 ><A
18970 NAME="WINSSERVER"
18971 ></A
18972 >wins server (G)</DT
18973 ><DD
18974 ><P
18975 >This specifies the IP address (or DNS name: IP 
18976                 address for preference) of the WINS server that <A
18977 HREF="nmbd.8.html"
18978 TARGET="_top"
18979 >               nmbd(8)</A
18980 > should register with. If you have a WINS server on 
18981                 your network then you should set this to the WINS server's IP.</P
18982 ><P
18983 >You should point this at your WINS server if you have a
18984                 multi-subnetted network.</P
18985 ><P
18986 ><EM
18987 >NOTE</EM
18988 >. You need to set up Samba to point 
18989                 to a WINS server if you have multiple subnets and wish cross-subnet 
18990                 browsing to work correctly.</P
18991 ><P
18992 >See the documentation file <TT
18993 CLASS="FILENAME"
18994 >BROWSING.txt</TT
18995
18996                 in the docs/ directory of your Samba source distribution.</P
18997 ><P
18998 >Default: <EM
18999 >not enabled</EM
19000 ></P
19001 ><P
19002 >Example: <B
19003 CLASS="COMMAND"
19004 >wins server = 192.9.200.1</B
19005 ></P
19006 ></DD
19007 ><DT
19008 ><A
19009 NAME="WINSSUPPORT"
19010 ></A
19011 >wins support (G)</DT
19012 ><DD
19013 ><P
19014 >This boolean controls if the <A
19015 HREF="nmbd.8.html"
19016 TARGET="_top"
19017 >               
19018                 nmbd(8)</A
19019 > process in Samba will act as a WINS server. You should 
19020                 not set this to <TT
19021 CLASS="CONSTANT"
19022 >true</TT
19023 > unless you have a multi-subnetted network and 
19024                 you wish a particular <B
19025 CLASS="COMMAND"
19026 >nmbd</B
19027 > to be your WINS server. 
19028                 Note that you should <EM
19029 >NEVER</EM
19030 > set this to <TT
19031 CLASS="CONSTANT"
19032 >true</TT
19033 >
19034                 on more than one machine in your network.</P
19035 ><P
19036 >Default: <B
19037 CLASS="COMMAND"
19038 >wins support = no</B
19039 ></P
19040 ></DD
19041 ><DT
19042 ><A
19043 NAME="WORKGROUP"
19044 ></A
19045 >workgroup (G)</DT
19046 ><DD
19047 ><P
19048 >This controls what workgroup your server will 
19049                 appear to be in when queried by clients. Note that this parameter 
19050                 also controls the Domain name used with the <A
19051 HREF="#SECURITYEQUALSDOMAIN"
19052 ><B
19053 CLASS="COMMAND"
19054 >security = domain</B
19055 ></A
19056 >
19057                 setting.</P
19058 ><P
19059 >Default: <EM
19060 >set at compile time to WORKGROUP</EM
19061 ></P
19062 ><P
19063 >Example: <B
19064 CLASS="COMMAND"
19065 >workgroup = MYGROUP</B
19066 ></P
19067 ></DD
19068 ><DT
19069 ><A
19070 NAME="WRITABLE"
19071 ></A
19072 >writable (S)</DT
19073 ><DD
19074 ><P
19075 >Synonym for <A
19076 HREF="#WRITEABLE"
19077 ><TT
19078 CLASS="PARAMETER"
19079 ><I
19080 >               writeable</I
19081 ></TT
19082 ></A
19083 > for people who can't spell :-).</P
19084 ></DD
19085 ><DT
19086 ><A
19087 NAME="WRITECACHESIZE"
19088 ></A
19089 >write cache size (S)</DT
19090 ><DD
19091 ><P
19092 >If this integer parameter is set to non-zero value,
19093                 Samba will create an in-memory cache for each oplocked file 
19094                 (it does <EM
19095 >not</EM
19096 > do this for 
19097                 non-oplocked files). All writes that the client does not request 
19098                 to be flushed directly to disk will be stored in this cache if possible. 
19099                 The cache is flushed onto disk when a write comes in whose offset 
19100                 would not fit into the cache or when the file is closed by the client. 
19101                 Reads for the file are also served from this cache if the data is stored 
19102                 within it.</P
19103 ><P
19104 >This cache allows Samba to batch client writes into a more 
19105                 efficient write size for RAID disks (i.e. writes may be tuned to 
19106                 be the RAID stripe size) and can improve performance on systems 
19107                 where the disk subsystem is a bottleneck but there is free 
19108                 memory for userspace programs.</P
19109 ><P
19110 >The integer parameter specifies the size of this cache 
19111                 (per oplocked file) in bytes.</P
19112 ><P
19113 >Default: <B
19114 CLASS="COMMAND"
19115 >write cache size = 0</B
19116 ></P
19117 ><P
19118 >Example: <B
19119 CLASS="COMMAND"
19120 >write cache size = 262144</B
19121 ></P
19122 ><P
19123 >for a 256k cache size per file.</P
19124 ></DD
19125 ><DT
19126 ><A
19127 NAME="WRITELIST"
19128 ></A
19129 >write list (S)</DT
19130 ><DD
19131 ><P
19132 >This is a list of users that are given read-write 
19133                 access to a service. If the connecting user is in this list then 
19134                 they will be given write access, no matter what the <A
19135 HREF="#WRITEABLE"
19136 ><TT
19137 CLASS="PARAMETER"
19138 ><I
19139 >writeable</I
19140 ></TT
19141 ></A
19142 >
19143                 option is set to. The list can include group names using the 
19144                 @group syntax.</P
19145 ><P
19146 >Note that if a user is in both the read list and the 
19147                 write list then they will be given write access.</P
19148 ><P
19149 >See also the <A
19150 HREF="#READLIST"
19151 ><TT
19152 CLASS="PARAMETER"
19153 ><I
19154 >read list
19155                 </I
19156 ></TT
19157 ></A
19158 > option.</P
19159 ><P
19160 >Default: <B
19161 CLASS="COMMAND"
19162 >write list = &#60;empty string&#62;
19163                 </B
19164 ></P
19165 ><P
19166 >Example: <B
19167 CLASS="COMMAND"
19168 >write list = admin, root, @staff
19169                 </B
19170 ></P
19171 ></DD
19172 ><DT
19173 ><A
19174 NAME="WRITEOK"
19175 ></A
19176 >write ok (S)</DT
19177 ><DD
19178 ><P
19179 >Synonym for <A
19180 HREF="#WRITEABLE"
19181 ><TT
19182 CLASS="PARAMETER"
19183 ><I
19184 >               writeable</I
19185 ></TT
19186 ></A
19187 >.</P
19188 ></DD
19189 ><DT
19190 ><A
19191 NAME="WRITERAW"
19192 ></A
19193 >write raw (G)</DT
19194 ><DD
19195 ><P
19196 >This parameter controls whether or not the server 
19197                 will support raw write SMB's when transferring data from clients. 
19198                 You should never need to change this parameter.</P
19199 ><P
19200 >Default: <B
19201 CLASS="COMMAND"
19202 >write raw = yes</B
19203 ></P
19204 ></DD
19205 ><DT
19206 ><A
19207 NAME="WRITEABLE"
19208 ></A
19209 >writeable (S)</DT
19210 ><DD
19211 ><P
19212 >An inverted synonym is <A
19213 HREF="#READONLY"
19214 >               <TT
19215 CLASS="PARAMETER"
19216 ><I
19217 >read only</I
19218 ></TT
19219 ></A
19220 >.</P
19221 ><P
19222 >If this parameter is <TT
19223 CLASS="CONSTANT"
19224 >no</TT
19225 >, then users 
19226                 of a service may not create or modify files in the service's 
19227                 directory.</P
19228 ><P
19229 >Note that a printable service (<B
19230 CLASS="COMMAND"
19231 >printable = yes</B
19232 >)
19233                 will <EM
19234 >ALWAYS</EM
19235 > allow writing to the directory 
19236                 (user privileges permitting), but only via spooling operations.</P
19237 ><P
19238 >Default: <B
19239 CLASS="COMMAND"
19240 >writeable = no</B
19241 ></P
19242 ></DD
19243 ></DL
19244 ></DIV
19245 ></DIV
19246 ><DIV
19247 CLASS="REFSECT1"
19248 ><A
19249 NAME="AEN6101"
19250 ></A
19251 ><H2
19252 >WARNINGS</H2
19253 ><P
19254 >Although the configuration file permits service names 
19255         to contain spaces, your client software may not. Spaces will 
19256         be ignored in comparisons anyway, so it shouldn't be a 
19257         problem - but be aware of the possibility.</P
19258 ><P
19259 >On a similar note, many clients - especially DOS clients - 
19260         limit service names to eight characters. <A
19261 HREF="smbd.8.html"
19262 TARGET="_top"
19263 >smbd(8)
19264         </A
19265 > has no such limitation, but attempts to connect from such 
19266         clients will fail if they truncate the service names.  For this reason 
19267         you should probably keep your service names down to eight characters 
19268         in length.</P
19269 ><P
19270 >Use of the [homes] and [printers] special sections make life 
19271         for an administrator easy, but the various combinations of default 
19272         attributes can be tricky. Take extreme care when designing these 
19273         sections. In particular, ensure that the permissions on spool 
19274         directories are correct.</P
19275 ></DIV
19276 ><DIV
19277 CLASS="REFSECT1"
19278 ><A
19279 NAME="AEN6107"
19280 ></A
19281 ><H2
19282 >VERSION</H2
19283 ><P
19284 >This man page is correct for version 2.2 of 
19285         the Samba suite.</P
19286 ></DIV
19287 ><DIV
19288 CLASS="REFSECT1"
19289 ><A
19290 NAME="AEN6110"
19291 ></A
19292 ><H2
19293 >SEE ALSO</H2
19294 ><P
19295 ><A
19296 HREF="samba.7.html"
19297 TARGET="_top"
19298 >samba(7)</A
19299 >,
19300         <A
19301 HREF="smbpasswd.8.html"
19302 TARGET="_top"
19303 ><B
19304 CLASS="COMMAND"
19305 >smbpasswd(8)</B
19306 ></A
19307 >,
19308         <A
19309 HREF="swat.8.html"
19310 TARGET="_top"
19311 ><B
19312 CLASS="COMMAND"
19313 >swat(8)</B
19314 ></A
19315 >,
19316         <A
19317 HREF="smbd.8.html"
19318 TARGET="_top"
19319 ><B
19320 CLASS="COMMAND"
19321 >smbd(8)</B
19322 ></A
19323 >, 
19324         <A
19325 HREF="nmbd.8.html"
19326 TARGET="_top"
19327 ><B
19328 CLASS="COMMAND"
19329 >nmbd(8)</B
19330 ></A
19331 >, 
19332         <A
19333 HREF="smbclient.1.html"
19334 TARGET="_top"
19335 ><B
19336 CLASS="COMMAND"
19337 >smbclient(1)</B
19338 ></A
19339 >, 
19340         <A
19341 HREF="nmblookup.1.html"
19342 TARGET="_top"
19343 ><B
19344 CLASS="COMMAND"
19345 >nmblookup(1)</B
19346 ></A
19347 >,
19348         <A
19349 HREF="testparm.1.html"
19350 TARGET="_top"
19351 ><B
19352 CLASS="COMMAND"
19353 >testparm(1)</B
19354 ></A
19355 >, 
19356         <A
19357 HREF="testprns.1.html"
19358 TARGET="_top"
19359 ><B
19360 CLASS="COMMAND"
19361 >testprns(1)</B
19362 ></A
19363 >
19364         </P
19365 ></DIV
19366 ><DIV
19367 CLASS="REFSECT1"
19368 ><A
19369 NAME="AEN6130"
19370 ></A
19371 ><H2
19372 >AUTHOR</H2
19373 ><P
19374 >The original Samba software and related utilities 
19375         were created by Andrew Tridgell. Samba is now developed
19376         by the Samba Team as an Open Source project similar 
19377         to the way the Linux kernel is developed.</P
19378 ><P
19379 >The original Samba man pages were written by Karl Auer. 
19380         The man page sources were converted to YODL format (another 
19381         excellent piece of Open Source software, available at
19382         <A
19383 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
19384 TARGET="_top"
19385 >       ftp://ftp.icce.rug.nl/pub/unix/</A
19386 >) and updated for the Samba 2.0 
19387         release by Jeremy Allison.  The conversion to DocBook for 
19388         Samba 2.2 was done by Gerald Carter</P
19389 ></DIV
19390 ></BODY
19391 ></HTML
19392 >