This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[sfrench/samba-autobuild/.git] / docs / htmldocs / smb.conf.5.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >smb.conf</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
9 "></HEAD
10 ><BODY
11 CLASS="REFENTRY"
12 BGCOLOR="#FFFFFF"
13 TEXT="#000000"
14 LINK="#0000FF"
15 VLINK="#840084"
16 ALINK="#0000FF"
17 ><H1
18 ><A
19 NAME="SMB.CONF">smb.conf</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 <SPAN
127 CLASS="emphasis"
128 ><I
129 CLASS="EMPHASIS"
130 >special sections</I
131 ></SPAN
132 >. The
133         following notes apply to ordinary section descriptions.</P
134 ><P
135 >A share consists of a directory to which access is being 
136         given plus a description of the access rights which are granted 
137         to the user of the service. Some housekeeping options are 
138         also specifiable.</P
139 ><P
140 >Sections are either file share services (used by the 
141         client as an extension of their native file systems) or 
142         printable services (used by the client to access print services 
143         on the host running the server).</P
144 ><P
145 >Sections may be designated <SPAN
146 CLASS="emphasis"
147 ><I
148 CLASS="EMPHASIS"
149 >guest</I
150 ></SPAN
151 > services,
152         in which case no password is required to access them. A specified 
153         UNIX <SPAN
154 CLASS="emphasis"
155 ><I
156 CLASS="EMPHASIS"
157 >guest account</I
158 ></SPAN
159 > is used to define access
160         privileges in this case.</P
161 ><P
162 >Sections other than guest services will require a password 
163         to access them. The client provides the username. As older clients 
164         only provide passwords and not usernames, you may specify a list 
165         of usernames to check against the password using the "user =" 
166         option in the share definition. For modern clients such as 
167         Windows 95/98/ME/NT/2000, this should not be necessary.</P
168 ><P
169 >Note that the access rights granted by the server are 
170         masked by the access rights granted to the specified or guest 
171         UNIX user by the host system. The server does not grant more
172         access than the host system grants.</P
173 ><P
174 >The following sample section defines a file space share. 
175         The user has write access to the path <TT
176 CLASS="FILENAME"
177 >/home/bar</TT
178 >. 
179         The share is accessed via the share name "foo":</P
180 ><PRE
181 CLASS="SCREEN"
182 >       <TT
183 CLASS="COMPUTEROUTPUT"
184 >       [foo]
185                 path = /home/bar
186                 writeable = true
187         </TT
188 >
189         </PRE
190 ><P
191 >The following sample section defines a printable share. 
192         The share is readonly, but printable. That is, the only write 
193         access permitted is via calls to open, write to and close a 
194         spool file. The <SPAN
195 CLASS="emphasis"
196 ><I
197 CLASS="EMPHASIS"
198 >guest ok</I
199 ></SPAN
200 > parameter means 
201         access will be permitted as the default guest user (specified 
202         elsewhere):</P
203 ><PRE
204 CLASS="SCREEN"
205 >       <TT
206 CLASS="COMPUTEROUTPUT"
207 >       [aprinter]
208                 path = /usr/spool/public
209                 writeable = false
210                 printable = true
211                 guest ok = true
212         </TT
213 >
214         </PRE
215 ></DIV
216 ><DIV
217 CLASS="REFSECT1"
218 ><A
219 NAME="AEN48"
220 ></A
221 ><H2
222 >SPECIAL SECTIONS</H2
223 ><DIV
224 CLASS="REFSECT2"
225 ><A
226 NAME="AEN50"
227 ></A
228 ><H3
229 >The [global] section</H3
230 ><P
231 >parameters in this section apply to the server 
232                 as a whole, or are defaults for sections which do not 
233                 specifically define certain items. See the notes
234                 under PARAMETERS for more information.</P
235 ></DIV
236 ><DIV
237 CLASS="REFSECT2"
238 ><A
239 NAME="AEN53"
240 ></A
241 ><H3
242 >The [homes] section</H3
243 ><P
244 >If a section called homes is included in the 
245                 configuration file, services connecting clients to their 
246                 home directories can be created on the fly by the server.</P
247 ><P
248 >When the connection request is made, the existing 
249                 sections are scanned. If a match is found, it is used. If no 
250                 match is found, the requested section name is treated as a 
251                 user name and looked up in the local password file. If the 
252                 name exists and the correct password has been given, a share is 
253                 created by cloning the [homes] section.</P
254 ><P
255 >Some modifications are then made to the newly 
256                 created share:</P
257 ><P
258 ></P
259 ><UL
260 ><LI
261 ><P
262 >The share name is changed from homes to 
263                 the located username.</P
264 ></LI
265 ><LI
266 ><P
267 >If no path was given, the path is set to
268                 the user's home directory.</P
269 ></LI
270 ></UL
271 ><P
272 >If you decide to use a <SPAN
273 CLASS="emphasis"
274 ><I
275 CLASS="EMPHASIS"
276 >path =</I
277 ></SPAN
278 > line 
279                 in your [homes] section then you may find it useful 
280                 to use the %S macro. For example :</P
281 ><P
282 ><TT
283 CLASS="USERINPUT"
284 ><B
285 >path = /data/pchome/%S</B
286 ></TT
287 ></P
288 ><P
289 >would be useful if you have different home directories 
290                 for your PCs than for UNIX access.</P
291 ><P
292 >This is a fast and simple way to give a large number 
293                 of clients access to their home directories with a minimum 
294                 of fuss.</P
295 ><P
296 >A similar process occurs if the requested section 
297                 name is "homes", except that the share name is not 
298                 changed to that of the requesting user. This method of using
299                 the [homes] section works well if different users share 
300                 a client PC.</P
301 ><P
302 >The [homes] section can specify all the parameters 
303                 a normal service section can specify, though some make more sense 
304                 than others. The following is a typical and suitable [homes]
305                 section:</P
306 ><PRE
307 CLASS="SCREEN"
308 >               <TT
309 CLASS="COMPUTEROUTPUT"
310 >               [homes]
311                         writeable = yes
312                 </TT
313 >
314                 </PRE
315 ><P
316 >An important point is that if guest access is specified 
317                 in the [homes] section, all home directories will be 
318                 visible to all clients <SPAN
319 CLASS="emphasis"
320 ><I
321 CLASS="EMPHASIS"
322 >without a password</I
323 ></SPAN
324 >. 
325                 In the very unlikely event that this is actually desirable, it 
326                 would be wise to also specify <SPAN
327 CLASS="emphasis"
328 ><I
329 CLASS="EMPHASIS"
330 >read only
331                 access</I
332 ></SPAN
333 >.</P
334 ><P
335 >Note that the <SPAN
336 CLASS="emphasis"
337 ><I
338 CLASS="EMPHASIS"
339 >browseable</I
340 ></SPAN
341 > flag for 
342                 auto home directories will be inherited from the global browseable 
343                 flag, not the [homes] browseable flag. This is useful as 
344                 it means setting <SPAN
345 CLASS="emphasis"
346 ><I
347 CLASS="EMPHASIS"
348 >browseable = no</I
349 ></SPAN
350 > in
351                 the [homes] section will hide the [homes] share but make
352                 any auto home directories visible.</P
353 ></DIV
354 ><DIV
355 CLASS="REFSECT2"
356 ><A
357 NAME="AEN79"
358 ></A
359 ><H3
360 >The [printers] section</H3
361 ><P
362 >This section works like [homes], 
363                 but for printers.</P
364 ><P
365 >If a [printers] section occurs in the 
366                 configuration file, users are able to connect to any printer 
367                 specified in the local host's printcap file.</P
368 ><P
369 >When a connection request is made, the existing sections 
370                 are scanned. If a match is found, it is used. If no match is found, 
371                 but a [homes] section exists, it is used as described
372                 above. Otherwise, the requested section name is treated as a
373                 printer name and the appropriate printcap file is scanned to see 
374                 if the requested section name is a valid printer share name. If 
375                 a match is found, a new printer share is created by cloning 
376                 the [printers] section.</P
377 ><P
378 >A few modifications are then made to the newly created 
379                 share:</P
380 ><P
381 ></P
382 ><UL
383 ><LI
384 ><P
385 >The share name is set to the located printer 
386                 name</P
387 ></LI
388 ><LI
389 ><P
390 >If no printer name was given, the printer name 
391                 is set to the located printer name</P
392 ></LI
393 ><LI
394 ><P
395 >If the share does not permit guest access and 
396                 no username was given, the username is set to the located 
397                 printer name.</P
398 ></LI
399 ></UL
400 ><P
401 >Note that the [printers] service MUST be 
402                 printable - if you specify otherwise, the server will refuse 
403                 to load the configuration file.</P
404 ><P
405 >Typically the path specified would be that of a 
406                 world-writeable spool directory with the sticky bit set on 
407                 it. A typical [printers] entry would look like 
408                 this:</P
409 ><PRE
410 CLASS="SCREEN"
411 ><TT
412 CLASS="COMPUTEROUTPUT"
413 >               [printers]
414                         path = /usr/spool/public
415                         guest ok = yes
416                         printable = yes 
417                 </TT
418 ></PRE
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 ><PRE
426 CLASS="SCREEN"
427 >               <TT
428 CLASS="COMPUTEROUTPUT"
429 >               alias|alias|alias|alias...    
430                 </TT
431 >
432                 </PRE
433 ><P
434 >Each alias should be an acceptable printer name for 
435                 your printing subsystem. In the [global] section, specify 
436                 the new file as your printcap.  The server will then only recognize 
437                 names found in your pseudo-printcap, which of course can contain 
438                 whatever aliases you like. The same technique could be used 
439                 simply to limit access to a subset of your local printers.</P
440 ><P
441 >An alias, by the way, is defined as any component of the 
442                 first entry of a printcap record. Records are separated by newlines,
443                 components (if there are more than one) are separated by vertical 
444                 bar symbols ('|').</P
445 ><P
446 >NOTE: On SYSV systems which use lpstat to determine what 
447                 printers are defined on the system you may be able to use
448                 "printcap name = lpstat" to automatically obtain a list 
449                 of printers. See the "printcap name" option 
450                 for more details.</P
451 ></DIV
452 ></DIV
453 ><DIV
454 CLASS="REFSECT1"
455 ><A
456 NAME="AEN102"
457 ></A
458 ><H2
459 >PARAMETERS</H2
460 ><P
461 >parameters define the specific attributes of sections.</P
462 ><P
463 >Some parameters are specific to the [global] section
464         (e.g., <SPAN
465 CLASS="emphasis"
466 ><I
467 CLASS="EMPHASIS"
468 >security</I
469 ></SPAN
470 >).  Some parameters are usable 
471         in all sections (e.g., <SPAN
472 CLASS="emphasis"
473 ><I
474 CLASS="EMPHASIS"
475 >create mode</I
476 ></SPAN
477 >). All others 
478         are permissible only in normal sections. For the purposes of the 
479         following descriptions the [homes] and [printers]
480         sections will be considered normal.  The letter <SPAN
481 CLASS="emphasis"
482 ><I
483 CLASS="EMPHASIS"
484 >G</I
485 ></SPAN
486
487         in parentheses indicates that a parameter is specific to the
488         [global] section. The letter <SPAN
489 CLASS="emphasis"
490 ><I
491 CLASS="EMPHASIS"
492 >S</I
493 ></SPAN
494 >
495         indicates that a parameter can be specified in a service specific
496         section. Note that all <SPAN
497 CLASS="emphasis"
498 ><I
499 CLASS="EMPHASIS"
500 >S</I
501 ></SPAN
502 > parameters can also be specified in 
503         the [global] section - in which case they will define
504         the default behavior for all services.</P
505 ><P
506 >parameters are arranged here in alphabetical order - this may 
507         not create best bedfellows, but at least you can find them! Where
508         there are synonyms, the preferred synonym is described, others refer 
509         to the preferred synonym.</P
510 ></DIV
511 ><DIV
512 CLASS="REFSECT1"
513 ><A
514 NAME="AEN112"
515 ></A
516 ><H2
517 >VARIABLE SUBSTITUTIONS</H2
518 ><P
519 >Many of the strings that are settable in the config file 
520         can take substitutions. For example the option "path =
521         /tmp/%u" would be interpreted as "path = 
522         /tmp/john" if the user connected with the username john.</P
523 ><P
524 >These substitutions are mostly noted in the descriptions below, 
525         but there are some general substitutions which apply whenever they 
526         might be relevant. These are:</P
527 ><P
528 ></P
529 ><DIV
530 CLASS="VARIABLELIST"
531 ><DL
532 ><DT
533 >%S</DT
534 ><DD
535 ><P
536 >the name of the current service, if any.</P
537 ></DD
538 ><DT
539 >%P</DT
540 ><DD
541 ><P
542 >the root directory of the current service, 
543                 if any.</P
544 ></DD
545 ><DT
546 >%u</DT
547 ><DD
548 ><P
549 >user name of the current service, if any.</P
550 ></DD
551 ><DT
552 >%g</DT
553 ><DD
554 ><P
555 >primary group name of %u.</P
556 ></DD
557 ><DT
558 >%U</DT
559 ><DD
560 ><P
561 >session user name (the user name that the client 
562                 wanted, not necessarily the same as the one they got).</P
563 ></DD
564 ><DT
565 >%G</DT
566 ><DD
567 ><P
568 >primary group name of %U.</P
569 ></DD
570 ><DT
571 >%H</DT
572 ><DD
573 ><P
574 >the home directory of the user given 
575                 by %u.</P
576 ></DD
577 ><DT
578 >%v</DT
579 ><DD
580 ><P
581 >the Samba version.</P
582 ></DD
583 ><DT
584 >%h</DT
585 ><DD
586 ><P
587 >the Internet hostname that Samba is running 
588                 on.</P
589 ></DD
590 ><DT
591 >%m</DT
592 ><DD
593 ><P
594 >the NetBIOS name of the client machine 
595                 (very useful).</P
596 ></DD
597 ><DT
598 >%L</DT
599 ><DD
600 ><P
601 >the NetBIOS name of the server. This allows you 
602                 to change your config based on what the client calls you. Your 
603                 server can have a "dual personality".</P
604 ><P
605 >Note that this parameter is not available when Samba listens
606                 on port 445, as clients no longer send this information </P
607 ></DD
608 ><DT
609 >%M</DT
610 ><DD
611 ><P
612 >the Internet name of the client machine.
613                 </P
614 ></DD
615 ><DT
616 >%N</DT
617 ><DD
618 ><P
619 >the name of your NIS home directory server.  
620                 This is obtained from your NIS auto.map entry.  If you have 
621                 not compiled Samba with the <SPAN
622 CLASS="emphasis"
623 ><I
624 CLASS="EMPHASIS"
625 >--with-automount</I
626 ></SPAN
627
628                 option then this value will be the same as %L.</P
629 ></DD
630 ><DT
631 >%p</DT
632 ><DD
633 ><P
634 >the path of the service's home directory, 
635                 obtained from your NIS auto.map entry. The NIS auto.map entry 
636                 is split up as "%N:%p".</P
637 ></DD
638 ><DT
639 >%R</DT
640 ><DD
641 ><P
642 >the selected protocol level after 
643                 protocol negotiation. It can be one of CORE, COREPLUS, 
644                 LANMAN1, LANMAN2 or NT1.</P
645 ></DD
646 ><DT
647 >%d</DT
648 ><DD
649 ><P
650 >The process id of the current server
651                 process.</P
652 ></DD
653 ><DT
654 >%a</DT
655 ><DD
656 ><P
657 >the architecture of the remote
658                 machine. Only some are recognized, and those may not be 
659                 100% reliable. It currently recognizes Samba, WfWg, Win95,
660                 WinNT and Win2k. Anything else will be known as 
661                 "UNKNOWN". If it gets it wrong then sending a level 
662                 3 log to <A
663 HREF="mailto:samba@samba.org"
664 TARGET="_top"
665 >samba@samba.org
666                 </A
667 > should allow it to be fixed.</P
668 ></DD
669 ><DT
670 >%I</DT
671 ><DD
672 ><P
673 >The IP address of the client machine.</P
674 ></DD
675 ><DT
676 >%T</DT
677 ><DD
678 ><P
679 >the current date and time.</P
680 ></DD
681 ><DT
682 >%$(<TT
683 CLASS="REPLACEABLE"
684 ><I
685 >envvar</I
686 ></TT
687 >)</DT
688 ><DD
689 ><P
690 >The value of the environment variable
691                 <TT
692 CLASS="REPLACEABLE"
693 ><I
694 >envar</I
695 ></TT
696 >.</P
697 ></DD
698 ></DL
699 ></DIV
700 ><P
701 >There are some quite creative things that can be done 
702         with these substitutions and other smb.conf options.</P
703 ></DIV
704 ><DIV
705 CLASS="REFSECT1"
706 ><A
707 NAME="AEN203"
708 ></A
709 ><H2
710 >NAME MANGLING</H2
711 ><P
712 >Samba supports "name mangling" so that DOS and 
713         Windows clients can use files that don't conform to the 8.3 format. 
714         It can also be set to adjust the case of 8.3 format filenames.</P
715 ><P
716 >There are several options that control the way mangling is 
717         performed, and they are grouped here rather than listed separately. 
718         For the defaults look at the output of the testparm program. </P
719 ><P
720 >All of these options can be set separately for each service 
721         (or globally, of course). </P
722 ><P
723 >The options are: </P
724 ><P
725 ></P
726 ><DIV
727 CLASS="VARIABLELIST"
728 ><DL
729 ><DT
730 >mangle case = yes/no</DT
731 ><DD
732 ><P
733 > controls if names that have characters that 
734                 aren't of the "default" case are mangled. For example, 
735                 if this is yes then a name like "Mail" would be mangled. 
736                 Default <SPAN
737 CLASS="emphasis"
738 ><I
739 CLASS="EMPHASIS"
740 >no</I
741 ></SPAN
742 >.</P
743 ></DD
744 ><DT
745 >case sensitive = yes/no</DT
746 ><DD
747 ><P
748 >controls whether filenames are case sensitive. If 
749                 they aren't then Samba must do a filename search and match on passed 
750                 names. Default <SPAN
751 CLASS="emphasis"
752 ><I
753 CLASS="EMPHASIS"
754 >no</I
755 ></SPAN
756 >.</P
757 ></DD
758 ><DT
759 >default case = upper/lower</DT
760 ><DD
761 ><P
762 >controls what the default case is for new 
763                 filenames. Default <SPAN
764 CLASS="emphasis"
765 ><I
766 CLASS="EMPHASIS"
767 >lower</I
768 ></SPAN
769 >.</P
770 ></DD
771 ><DT
772 >preserve case = yes/no</DT
773 ><DD
774 ><P
775 >controls if new files are created with the 
776                 case that the client passes, or if they are forced to be the 
777                 "default" case. Default <SPAN
778 CLASS="emphasis"
779 ><I
780 CLASS="EMPHASIS"
781 >yes</I
782 ></SPAN
783 >.
784                 </P
785 ></DD
786 ><DT
787 >short preserve case = yes/no</DT
788 ><DD
789 ><P
790 >controls if new files which conform to 8.3 syntax,
791                 that is all in upper case and of suitable length, are created 
792                 upper case, or if they are forced to be the "default" 
793                 case. This option can be use with "preserve case = yes" 
794                 to permit long filenames to retain their case, while short names 
795                 are lowercased. Default <SPAN
796 CLASS="emphasis"
797 ><I
798 CLASS="EMPHASIS"
799 >yes</I
800 ></SPAN
801 >.</P
802 ></DD
803 ></DL
804 ></DIV
805 ><P
806 >By default, Samba 2.2 has the same semantics as a Windows 
807         NT server, in that it is case insensitive but case preserving.</P
808 ></DIV
809 ><DIV
810 CLASS="REFSECT1"
811 ><A
812 NAME="AEN236"
813 ></A
814 ><H2
815 >NOTE ABOUT USERNAME/PASSWORD VALIDATION</H2
816 ><P
817 >There are a number of ways in which a user can connect 
818         to a service. The server uses the following steps in determining 
819         if it will allow a connection to a specified service. If all the 
820         steps fail, then the connection request is rejected.  However, if one of the 
821         steps succeeds, then the following steps are not checked.</P
822 ><P
823 >If the service is marked "guest only = yes" and the
824         server is running with share-level security ("security = share")
825         then steps 1 to 5 are skipped.</P
826 ><P
827 ></P
828 ><OL
829 TYPE="1"
830 ><LI
831 ><P
832 >If the client has passed a username/password 
833                 pair and that username/password pair is validated by the UNIX 
834                 system's password programs then the connection is made as that 
835                 username. Note that this includes the 
836                 \\server\service%<TT
837 CLASS="REPLACEABLE"
838 ><I
839 >username</I
840 ></TT
841 > method of passing 
842                 a username.</P
843 ></LI
844 ><LI
845 ><P
846 >If the client has previously registered a username 
847                 with the system and now supplies a correct password for that 
848                 username then the connection is allowed.</P
849 ></LI
850 ><LI
851 ><P
852 >The client's NetBIOS name and any previously 
853                 used user names are checked against the supplied password, if 
854                 they match then the connection is allowed as the corresponding 
855                 user.</P
856 ></LI
857 ><LI
858 ><P
859 >If the client has previously validated a
860                 username/password pair with the server and the client has passed 
861                 the validation token then that username is used. </P
862 ></LI
863 ><LI
864 ><P
865 >If a "user = " field is given in the
866                 <TT
867 CLASS="FILENAME"
868 >smb.conf</TT
869 > file for the service and the client 
870                 has supplied a password, and that password matches (according to 
871                 the UNIX system's password checking) with one of the usernames 
872                 from the "user =" field then the connection is made as 
873                 the username in the "user =" line. If one 
874                 of the username in the "user =" list begins with a
875                 '@' then that name expands to a list of names in 
876                 the group of the same name.</P
877 ></LI
878 ><LI
879 ><P
880 >If the service is a guest service then a 
881                 connection is made as the username given in the "guest 
882                 account =" for the service, irrespective of the 
883                 supplied password.</P
884 ></LI
885 ></OL
886 ></DIV
887 ><DIV
888 CLASS="REFSECT1"
889 ><A
890 NAME="AEN255"
891 ></A
892 ><H2
893 >COMPLETE LIST OF GLOBAL PARAMETERS</H2
894 ><P
895 >Here is a list of all global parameters. See the section of 
896         each parameter for details.  Note that some are synonyms.</P
897 ><P
898 ></P
899 ><UL
900 ><LI
901 ><P
902 ><A
903 HREF="index.html#ABORTSHUTDOWNSCRIPT"
904 ><TT
905 CLASS="PARAMETER"
906 ><I
907 >abort shutdown script</I
908 ></TT
909 ></A
910 ></P
911 ></LI
912 ><LI
913 ><P
914 ><A
915 HREF="index.html#ADDGROUPSCRIPT"
916 ><TT
917 CLASS="PARAMETER"
918 ><I
919 >add group script</I
920 ></TT
921 ></A
922 ></P
923 ></LI
924 ><LI
925 ><P
926 ><A
927 HREF="index.html#ADDPRINTERCOMMAND"
928 ><TT
929 CLASS="PARAMETER"
930 ><I
931 >addprinter command</I
932 ></TT
933 ></A
934 ></P
935 ></LI
936 ><LI
937 ><P
938 ><A
939 HREF="index.html#ADDSHARECOMMAND"
940 ><TT
941 CLASS="PARAMETER"
942 ><I
943 >add share command</I
944 ></TT
945 ></A
946 ></P
947 ></LI
948 ><LI
949 ><P
950 ><A
951 HREF="index.html#ADDUSERSCRIPT"
952 ><TT
953 CLASS="PARAMETER"
954 ><I
955 >add user script</I
956 ></TT
957 ></A
958 ></P
959 ></LI
960 ><LI
961 ><P
962 ><A
963 HREF="index.html#ADDUSERTOGROUPSCRIPT"
964 ><TT
965 CLASS="PARAMETER"
966 ><I
967 >add user to group script</I
968 ></TT
969 ></A
970 ></P
971 ></LI
972 ><LI
973 ><P
974 ><A
975 HREF="index.html#ADDMACHINESCRIPT"
976 ><TT
977 CLASS="PARAMETER"
978 ><I
979 >add machine script</I
980 ></TT
981 ></A
982 ></P
983 ></LI
984 ><LI
985 ><P
986 ><A
987 HREF="index.html#DELETEGROUPSCRIPT"
988 ><TT
989 CLASS="PARAMETER"
990 ><I
991 >delete group script</I
992 ></TT
993 ></A
994 ></P
995 ></LI
996 ><LI
997 ><P
998 ><A
999 HREF="index.html#ADSSERVER"
1000 ><TT
1001 CLASS="PARAMETER"
1002 ><I
1003 >ads server</I
1004 ></TT
1005 ></A
1006 ></P
1007 ></LI
1008 ><LI
1009 ><P
1010 ><A
1011 HREF="index.html#ALGORITHMICRIDBASE"
1012 ><TT
1013 CLASS="PARAMETER"
1014 ><I
1015 >algorithmic rid base</I
1016 ></TT
1017 ></A
1018 ></P
1019 ></LI
1020 ><LI
1021 ><P
1022 ><A
1023 HREF="index.html#ALLOWTRUSTEDDOMAINS"
1024 ><TT
1025 CLASS="PARAMETER"
1026 ><I
1027 >allow trusted domains</I
1028 ></TT
1029 ></A
1030 ></P
1031 ></LI
1032 ><LI
1033 ><P
1034 ><A
1035 HREF="index.html#ANNOUNCEAS"
1036 ><TT
1037 CLASS="PARAMETER"
1038 ><I
1039 >announce as</I
1040 ></TT
1041 ></A
1042 ></P
1043 ></LI
1044 ><LI
1045 ><P
1046 ><A
1047 HREF="index.html#ANNOUNCEVERSION"
1048 ><TT
1049 CLASS="PARAMETER"
1050 ><I
1051 >announce version</I
1052 ></TT
1053 ></A
1054 ></P
1055 ></LI
1056 ><LI
1057 ><P
1058 ><A
1059 HREF="index.html#AUTHMETHODS"
1060 ><TT
1061 CLASS="PARAMETER"
1062 ><I
1063 >auth methods</I
1064 ></TT
1065 ></A
1066 ></P
1067 ></LI
1068 ><LI
1069 ><P
1070 ><A
1071 HREF="index.html#AUTOSERVICES"
1072 ><TT
1073 CLASS="PARAMETER"
1074 ><I
1075 >auto services</I
1076 ></TT
1077 ></A
1078 ></P
1079 ></LI
1080 ><LI
1081 ><P
1082 ><A
1083 HREF="index.html#BINDINTERFACESONLY"
1084 ><TT
1085 CLASS="PARAMETER"
1086 ><I
1087 >bind interfaces only</I
1088 ></TT
1089 ></A
1090 ></P
1091 ></LI
1092 ><LI
1093 ><P
1094 ><A
1095 HREF="index.html#BROWSELIST"
1096 ><TT
1097 CLASS="PARAMETER"
1098 ><I
1099 >browse list</I
1100 ></TT
1101 ></A
1102 ></P
1103 ></LI
1104 ><LI
1105 ><P
1106 ><A
1107 HREF="index.html#CHANGENOTIFYTIMEOUT"
1108 ><TT
1109 CLASS="PARAMETER"
1110 ><I
1111 >change notify timeout</I
1112 ></TT
1113 ></A
1114 ></P
1115 ></LI
1116 ><LI
1117 ><P
1118 ><A
1119 HREF="index.html#CHANGESHARECOMMAND"
1120 ><TT
1121 CLASS="PARAMETER"
1122 ><I
1123 >change share command</I
1124 ></TT
1125 ></A
1126 ></P
1127 ></LI
1128 ><LI
1129 ><P
1130 ><A
1131 HREF="index.html#CONFIGFILE"
1132 ><TT
1133 CLASS="PARAMETER"
1134 ><I
1135 >config file</I
1136 ></TT
1137 ></A
1138 ></P
1139 ></LI
1140 ><LI
1141 ><P
1142 ><A
1143 HREF="index.html#DEADTIME"
1144 ><TT
1145 CLASS="PARAMETER"
1146 ><I
1147 >deadtime</I
1148 ></TT
1149 ></A
1150 ></P
1151 ></LI
1152 ><LI
1153 ><P
1154 ><A
1155 HREF="index.html#DEBUGHIRESTIMESTAMP"
1156 ><TT
1157 CLASS="PARAMETER"
1158 ><I
1159 >debug hires timestamp</I
1160 ></TT
1161 ></A
1162 ></P
1163 ></LI
1164 ><LI
1165 ><P
1166 ><A
1167 HREF="index.html#DEBUGPID"
1168 ><TT
1169 CLASS="PARAMETER"
1170 ><I
1171 >debug pid</I
1172 ></TT
1173 ></A
1174 ></P
1175 ></LI
1176 ><LI
1177 ><P
1178 ><A
1179 HREF="index.html#DEBUGTIMESTAMP"
1180 ><TT
1181 CLASS="PARAMETER"
1182 ><I
1183 >debug timestamp</I
1184 ></TT
1185 ></A
1186 ></P
1187 ></LI
1188 ><LI
1189 ><P
1190 ><A
1191 HREF="index.html#DEBUGUID"
1192 ><TT
1193 CLASS="PARAMETER"
1194 ><I
1195 >debug uid</I
1196 ></TT
1197 ></A
1198 ></P
1199 ></LI
1200 ><LI
1201 ><P
1202 ><A
1203 HREF="index.html#DEBUGLEVEL"
1204 ><TT
1205 CLASS="PARAMETER"
1206 ><I
1207 >debuglevel</I
1208 ></TT
1209 ></A
1210 ></P
1211 ></LI
1212 ><LI
1213 ><P
1214 ><A
1215 HREF="index.html#DEFAULT"
1216 ><TT
1217 CLASS="PARAMETER"
1218 ><I
1219 >default</I
1220 ></TT
1221 ></A
1222 ></P
1223 ></LI
1224 ><LI
1225 ><P
1226 ><A
1227 HREF="index.html#DEFAULTSERVICE"
1228 ><TT
1229 CLASS="PARAMETER"
1230 ><I
1231 >default service</I
1232 ></TT
1233 ></A
1234 ></P
1235 ></LI
1236 ><LI
1237 ><P
1238 ><A
1239 HREF="index.html#DELETEPRINTERCOMMAND"
1240 ><TT
1241 CLASS="PARAMETER"
1242 ><I
1243 >deleteprinter command</I
1244 ></TT
1245 ></A
1246 ></P
1247 ></LI
1248 ><LI
1249 ><P
1250 ><A
1251 HREF="index.html#DELETESHARECOMMAND"
1252 ><TT
1253 CLASS="PARAMETER"
1254 ><I
1255 >delete share command</I
1256 ></TT
1257 ></A
1258 ></P
1259 ></LI
1260 ><LI
1261 ><P
1262 ><A
1263 HREF="index.html#DELETEUSERSCRIPT"
1264 ><TT
1265 CLASS="PARAMETER"
1266 ><I
1267 >delete user script</I
1268 ></TT
1269 ></A
1270 ></P
1271 ></LI
1272 ><LI
1273 ><P
1274 ><A
1275 HREF="index.html#DELETEUSERFROMGROUPSCRIPT"
1276 ><TT
1277 CLASS="PARAMETER"
1278 ><I
1279 >delete user from group script</I
1280 ></TT
1281 ></A
1282 ></P
1283 ></LI
1284 ><LI
1285 ><P
1286 ><A
1287 HREF="index.html#DFREECOMMAND"
1288 ><TT
1289 CLASS="PARAMETER"
1290 ><I
1291 >dfree command</I
1292 ></TT
1293 ></A
1294 ></P
1295 ></LI
1296 ><LI
1297 ><P
1298 ><A
1299 HREF="index.html#DISABLENETBIOS"
1300 ><TT
1301 CLASS="PARAMETER"
1302 ><I
1303 >disable netbios</I
1304 ></TT
1305 ></A
1306 ></P
1307 ></LI
1308 ><LI
1309 ><P
1310 ><A
1311 HREF="index.html#DISABLESPOOLSS"
1312 ><TT
1313 CLASS="PARAMETER"
1314 ><I
1315 >disable spoolss</I
1316 ></TT
1317 ></A
1318 ></P
1319 ></LI
1320 ><LI
1321 ><P
1322 ><A
1323 HREF="index.html#DISPLAYCHARSET"
1324 ><TT
1325 CLASS="PARAMETER"
1326 ><I
1327 >display charset</I
1328 ></TT
1329 ></A
1330 ></P
1331 ></LI
1332 ><LI
1333 ><P
1334 ><A
1335 HREF="index.html#DNSPROXY"
1336 ><TT
1337 CLASS="PARAMETER"
1338 ><I
1339 >dns proxy</I
1340 ></TT
1341 ></A
1342 ></P
1343 ></LI
1344 ><LI
1345 ><P
1346 ><A
1347 HREF="index.html#DOMAINADMINGROUP"
1348 ><TT
1349 CLASS="PARAMETER"
1350 ><I
1351 >domain admin group</I
1352 ></TT
1353 ></A
1354 ></P
1355 ></LI
1356 ><LI
1357 ><P
1358 ><A
1359 HREF="index.html#DOMAINGUESTGROUP"
1360 ><TT
1361 CLASS="PARAMETER"
1362 ><I
1363 >domain guest group</I
1364 ></TT
1365 ></A
1366 ></P
1367 ></LI
1368 ><LI
1369 ><P
1370 ><A
1371 HREF="index.html#DOMAINLOGONS"
1372 ><TT
1373 CLASS="PARAMETER"
1374 ><I
1375 >domain logons</I
1376 ></TT
1377 ></A
1378 ></P
1379 ></LI
1380 ><LI
1381 ><P
1382 ><A
1383 HREF="index.html#DOMAINMASTER"
1384 ><TT
1385 CLASS="PARAMETER"
1386 ><I
1387 >domain master</I
1388 ></TT
1389 ></A
1390 ></P
1391 ></LI
1392 ><LI
1393 ><P
1394 ><A
1395 HREF="index.html#DOSCHARSET"
1396 ><TT
1397 CLASS="PARAMETER"
1398 ><I
1399 >dos charset</I
1400 ></TT
1401 ></A
1402 ></P
1403 ></LI
1404 ><LI
1405 ><P
1406 ><A
1407 HREF="index.html#ENCRYPTPASSWORDS"
1408 ><TT
1409 CLASS="PARAMETER"
1410 ><I
1411 >encrypt passwords</I
1412 ></TT
1413 ></A
1414 ></P
1415 ></LI
1416 ><LI
1417 ><P
1418 ><A
1419 HREF="index.html#ENHANCEDBROWSING"
1420 ><TT
1421 CLASS="PARAMETER"
1422 ><I
1423 >enhanced browsing</I
1424 ></TT
1425 ></A
1426 ></P
1427 ></LI
1428 ><LI
1429 ><P
1430 ><A
1431 HREF="index.html#ENUMPORTSCOMMAND"
1432 ><TT
1433 CLASS="PARAMETER"
1434 ><I
1435 >enumports command</I
1436 ></TT
1437 ></A
1438 ></P
1439 ></LI
1440 ><LI
1441 ><P
1442 ><A
1443 HREF="index.html#GETWDCACHE"
1444 ><TT
1445 CLASS="PARAMETER"
1446 ><I
1447 >getwd cache</I
1448 ></TT
1449 ></A
1450 ></P
1451 ></LI
1452 ><LI
1453 ><P
1454 ><A
1455 HREF="index.html#HIDELOCALUSERS"
1456 ><TT
1457 CLASS="PARAMETER"
1458 ><I
1459 >hide local users</I
1460 ></TT
1461 ></A
1462 ></P
1463 ></LI
1464 ><LI
1465 ><P
1466 ><A
1467 HREF="index.html#HIDEUNREADABLE"
1468 ><TT
1469 CLASS="PARAMETER"
1470 ><I
1471 >hide unreadable</I
1472 ></TT
1473 ></A
1474 ></P
1475 ></LI
1476 ><LI
1477 ><P
1478 ><A
1479 HREF="index.html#HIDEUNWRITEABLEFILES"
1480 ><TT
1481 CLASS="PARAMETER"
1482 ><I
1483 >hide unwriteable files</I
1484 ></TT
1485 ></A
1486 ></P
1487 ></LI
1488 ><LI
1489 ><P
1490 ><A
1491 HREF="index.html#HOMEDIRMAP"
1492 ><TT
1493 CLASS="PARAMETER"
1494 ><I
1495 >homedir map</I
1496 ></TT
1497 ></A
1498 ></P
1499 ></LI
1500 ><LI
1501 ><P
1502 ><A
1503 HREF="index.html#HOSTMSDFS"
1504 ><TT
1505 CLASS="PARAMETER"
1506 ><I
1507 >host msdfs</I
1508 ></TT
1509 ></A
1510 ></P
1511 ></LI
1512 ><LI
1513 ><P
1514 ><A
1515 HREF="index.html#HOSTNAMELOOKUPS"
1516 ><TT
1517 CLASS="PARAMETER"
1518 ><I
1519 >hostname lookups</I
1520 ></TT
1521 ></A
1522 ></P
1523 ></LI
1524 ><LI
1525 ><P
1526 ><A
1527 HREF="index.html#HOSTSEQUIV"
1528 ><TT
1529 CLASS="PARAMETER"
1530 ><I
1531 >hosts equiv</I
1532 ></TT
1533 ></A
1534 ></P
1535 ></LI
1536 ><LI
1537 ><P
1538 ><A
1539 HREF="index.html#INTERFACES"
1540 ><TT
1541 CLASS="PARAMETER"
1542 ><I
1543 >interfaces</I
1544 ></TT
1545 ></A
1546 ></P
1547 ></LI
1548 ><LI
1549 ><P
1550 ><A
1551 HREF="index.html#KEEPALIVE"
1552 ><TT
1553 CLASS="PARAMETER"
1554 ><I
1555 >keepalive</I
1556 ></TT
1557 ></A
1558 ></P
1559 ></LI
1560 ><LI
1561 ><P
1562 ><A
1563 HREF="index.html#KERNELOPLOCKS"
1564 ><TT
1565 CLASS="PARAMETER"
1566 ><I
1567 >kernel oplocks</I
1568 ></TT
1569 ></A
1570 ></P
1571 ></LI
1572 ><LI
1573 ><P
1574 ><A
1575 HREF="index.html#LANMANAUTH"
1576 ><TT
1577 CLASS="PARAMETER"
1578 ><I
1579 >lanman auth</I
1580 ></TT
1581 ></A
1582 ></P
1583 ></LI
1584 ><LI
1585 ><P
1586 ><A
1587 HREF="index.html#LARGEREADWRITE"
1588 ><TT
1589 CLASS="PARAMETER"
1590 ><I
1591 >large readwrite</I
1592 ></TT
1593 ></A
1594 ></P
1595 ></LI
1596 ><LI
1597 ><P
1598 ><A
1599 HREF="index.html#LDAPADMINDN"
1600 ><TT
1601 CLASS="PARAMETER"
1602 ><I
1603 >ldap admin dn</I
1604 ></TT
1605 ></A
1606 ></P
1607 ></LI
1608 ><LI
1609 ><P
1610 ><A
1611 HREF="index.html#LDAPFILTER"
1612 ><TT
1613 CLASS="PARAMETER"
1614 ><I
1615 >ldap filter</I
1616 ></TT
1617 ></A
1618 ></P
1619 ></LI
1620 ><LI
1621 ><P
1622 ><A
1623 HREF="index.html#LDAPSSL"
1624 ><TT
1625 CLASS="PARAMETER"
1626 ><I
1627 >ldap ssl</I
1628 ></TT
1629 ></A
1630 ></P
1631 ></LI
1632 ><LI
1633 ><P
1634 ><A
1635 HREF="index.html#LDAPSUFFIX"
1636 ><TT
1637 CLASS="PARAMETER"
1638 ><I
1639 >ldap suffix</I
1640 ></TT
1641 ></A
1642 ></P
1643 ></LI
1644 ><LI
1645 ><P
1646 ><A
1647 HREF="index.html#LDAPUSERSUFFIX"
1648 ><TT
1649 CLASS="PARAMETER"
1650 ><I
1651 >ldap suffix</I
1652 ></TT
1653 ></A
1654 ></P
1655 ></LI
1656 ><LI
1657 ><P
1658 ><A
1659 HREF="index.html#LDAPMACHINESUFFIX"
1660 ><TT
1661 CLASS="PARAMETER"
1662 ><I
1663 >ldap suffix</I
1664 ></TT
1665 ></A
1666 ></P
1667 ></LI
1668 ><LI
1669 ><P
1670 ><A
1671 HREF="index.html#LMANNOUNCE"
1672 ><TT
1673 CLASS="PARAMETER"
1674 ><I
1675 >lm announce</I
1676 ></TT
1677 ></A
1678 ></P
1679 ></LI
1680 ><LI
1681 ><P
1682 ><A
1683 HREF="index.html#LMINTERVAL"
1684 ><TT
1685 CLASS="PARAMETER"
1686 ><I
1687 >lm interval</I
1688 ></TT
1689 ></A
1690 ></P
1691 ></LI
1692 ><LI
1693 ><P
1694 ><A
1695 HREF="index.html#LOADPRINTERS"
1696 ><TT
1697 CLASS="PARAMETER"
1698 ><I
1699 >load printers</I
1700 ></TT
1701 ></A
1702 ></P
1703 ></LI
1704 ><LI
1705 ><P
1706 ><A
1707 HREF="index.html#LOCALMASTER"
1708 ><TT
1709 CLASS="PARAMETER"
1710 ><I
1711 >local master</I
1712 ></TT
1713 ></A
1714 ></P
1715 ></LI
1716 ><LI
1717 ><P
1718 ><A
1719 HREF="index.html#LOCKDIR"
1720 ><TT
1721 CLASS="PARAMETER"
1722 ><I
1723 >lock dir</I
1724 ></TT
1725 ></A
1726 ></P
1727 ></LI
1728 ><LI
1729 ><P
1730 ><A
1731 HREF="index.html#LOCKDIRECTORY"
1732 ><TT
1733 CLASS="PARAMETER"
1734 ><I
1735 >lock directory</I
1736 ></TT
1737 ></A
1738 ></P
1739 ></LI
1740 ><LI
1741 ><P
1742 ><A
1743 HREF="index.html#LOCKSPINCOUNT"
1744 ><TT
1745 CLASS="PARAMETER"
1746 ><I
1747 >lock spin count</I
1748 ></TT
1749 ></A
1750 ></P
1751 ></LI
1752 ><LI
1753 ><P
1754 ><A
1755 HREF="index.html#LOCKSPINTIME"
1756 ><TT
1757 CLASS="PARAMETER"
1758 ><I
1759 >lock spin time</I
1760 ></TT
1761 ></A
1762 ></P
1763 ></LI
1764 ><LI
1765 ><P
1766 ><A
1767 HREF="index.html#PIDDIRECTORY"
1768 ><TT
1769 CLASS="PARAMETER"
1770 ><I
1771 >pid directory</I
1772 ></TT
1773 ></A
1774 ></P
1775 ></LI
1776 ><LI
1777 ><P
1778 ><A
1779 HREF="index.html#LOGFILE"
1780 ><TT
1781 CLASS="PARAMETER"
1782 ><I
1783 >log file</I
1784 ></TT
1785 ></A
1786 ></P
1787 ></LI
1788 ><LI
1789 ><P
1790 ><A
1791 HREF="index.html#LOGLEVEL"
1792 ><TT
1793 CLASS="PARAMETER"
1794 ><I
1795 >log level</I
1796 ></TT
1797 ></A
1798 ></P
1799 ></LI
1800 ><LI
1801 ><P
1802 ><A
1803 HREF="index.html#LOGONDRIVE"
1804 ><TT
1805 CLASS="PARAMETER"
1806 ><I
1807 >logon drive</I
1808 ></TT
1809 ></A
1810 ></P
1811 ></LI
1812 ><LI
1813 ><P
1814 ><A
1815 HREF="index.html#LOGONHOME"
1816 ><TT
1817 CLASS="PARAMETER"
1818 ><I
1819 >logon home</I
1820 ></TT
1821 ></A
1822 ></P
1823 ></LI
1824 ><LI
1825 ><P
1826 ><A
1827 HREF="index.html#LOGONPATH"
1828 ><TT
1829 CLASS="PARAMETER"
1830 ><I
1831 >logon path</I
1832 ></TT
1833 ></A
1834 ></P
1835 ></LI
1836 ><LI
1837 ><P
1838 ><A
1839 HREF="index.html#LOGONSCRIPT"
1840 ><TT
1841 CLASS="PARAMETER"
1842 ><I
1843 >logon script</I
1844 ></TT
1845 ></A
1846 ></P
1847 ></LI
1848 ><LI
1849 ><P
1850 ><A
1851 HREF="index.html#LPQCACHETIME"
1852 ><TT
1853 CLASS="PARAMETER"
1854 ><I
1855 >lpq cache time</I
1856 ></TT
1857 ></A
1858 ></P
1859 ></LI
1860 ><LI
1861 ><P
1862 ><A
1863 HREF="index.html#MACHINEPASSWORDTIMEOUT"
1864 ><TT
1865 CLASS="PARAMETER"
1866 ><I
1867 >machine password timeout</I
1868 ></TT
1869 ></A
1870 ></P
1871 ></LI
1872 ><LI
1873 ><P
1874 ><A
1875 HREF="index.html#MANGLEDSTACK"
1876 ><TT
1877 CLASS="PARAMETER"
1878 ><I
1879 >mangled stack</I
1880 ></TT
1881 ></A
1882 ></P
1883 ></LI
1884 ><LI
1885 ><P
1886 ><A
1887 HREF="index.html#MAPTOGUEST"
1888 ><TT
1889 CLASS="PARAMETER"
1890 ><I
1891 >map to guest</I
1892 ></TT
1893 ></A
1894 ></P
1895 ></LI
1896 ><LI
1897 ><P
1898 ><A
1899 HREF="index.html#MAXDISKSIZE"
1900 ><TT
1901 CLASS="PARAMETER"
1902 ><I
1903 >max disk size</I
1904 ></TT
1905 ></A
1906 ></P
1907 ></LI
1908 ><LI
1909 ><P
1910 ><A
1911 HREF="index.html#MAXLOGSIZE"
1912 ><TT
1913 CLASS="PARAMETER"
1914 ><I
1915 >max log size</I
1916 ></TT
1917 ></A
1918 ></P
1919 ></LI
1920 ><LI
1921 ><P
1922 ><A
1923 HREF="index.html#MAXMUX"
1924 ><TT
1925 CLASS="PARAMETER"
1926 ><I
1927 >max mux</I
1928 ></TT
1929 ></A
1930 ></P
1931 ></LI
1932 ><LI
1933 ><P
1934 ><A
1935 HREF="index.html#MAXOPENFILES"
1936 ><TT
1937 CLASS="PARAMETER"
1938 ><I
1939 >max open files</I
1940 ></TT
1941 ></A
1942 ></P
1943 ></LI
1944 ><LI
1945 ><P
1946 ><A
1947 HREF="index.html#MAXPROTOCOL"
1948 ><TT
1949 CLASS="PARAMETER"
1950 ><I
1951 >max protocol</I
1952 ></TT
1953 ></A
1954 ></P
1955 ></LI
1956 ><LI
1957 ><P
1958 ><A
1959 HREF="index.html#MAXSMBDPROCESSES"
1960 ><TT
1961 CLASS="PARAMETER"
1962 ><I
1963 >max smbd processes</I
1964 ></TT
1965 ></A
1966 ></P
1967 ></LI
1968 ><LI
1969 ><P
1970 ><A
1971 HREF="index.html#MAXTTL"
1972 ><TT
1973 CLASS="PARAMETER"
1974 ><I
1975 >max ttl</I
1976 ></TT
1977 ></A
1978 ></P
1979 ></LI
1980 ><LI
1981 ><P
1982 ><A
1983 HREF="index.html#MAXWINSTTL"
1984 ><TT
1985 CLASS="PARAMETER"
1986 ><I
1987 >max wins ttl</I
1988 ></TT
1989 ></A
1990 ></P
1991 ></LI
1992 ><LI
1993 ><P
1994 ><A
1995 HREF="index.html#MAXXMIT"
1996 ><TT
1997 CLASS="PARAMETER"
1998 ><I
1999 >max xmit</I
2000 ></TT
2001 ></A
2002 ></P
2003 ></LI
2004 ><LI
2005 ><P
2006 ><A
2007 HREF="index.html#MESSAGECOMMAND"
2008 ><TT
2009 CLASS="PARAMETER"
2010 ><I
2011 >message command</I
2012 ></TT
2013 ></A
2014 ></P
2015 ></LI
2016 ><LI
2017 ><P
2018 ><A
2019 HREF="index.html#MINPASSWDLENGTH"
2020 ><TT
2021 CLASS="PARAMETER"
2022 ><I
2023 >min passwd length</I
2024 ></TT
2025 ></A
2026 ></P
2027 ></LI
2028 ><LI
2029 ><P
2030 ><A
2031 HREF="index.html#MINPASSWORDLENGTH"
2032 ><TT
2033 CLASS="PARAMETER"
2034 ><I
2035 >min password length</I
2036 ></TT
2037 ></A
2038 ></P
2039 ></LI
2040 ><LI
2041 ><P
2042 ><A
2043 HREF="index.html#MINPROTOCOL"
2044 ><TT
2045 CLASS="PARAMETER"
2046 ><I
2047 >min protocol</I
2048 ></TT
2049 ></A
2050 ></P
2051 ></LI
2052 ><LI
2053 ><P
2054 ><A
2055 HREF="index.html#MINWINSTTL"
2056 ><TT
2057 CLASS="PARAMETER"
2058 ><I
2059 >min wins ttl</I
2060 ></TT
2061 ></A
2062 ></P
2063 ></LI
2064 ><LI
2065 ><P
2066 ><A
2067 HREF="index.html#NAMECACHETIMEOUT"
2068 ><TT
2069 CLASS="PARAMETER"
2070 ><I
2071 >name cache timeout</I
2072 ></TT
2073 ></A
2074 ></P
2075 ></LI
2076 ><LI
2077 ><P
2078 ><A
2079 HREF="index.html#NAMERESOLVEORDER"
2080 ><TT
2081 CLASS="PARAMETER"
2082 ><I
2083 >name resolve order</I
2084 ></TT
2085 ></A
2086 ></P
2087 ></LI
2088 ><LI
2089 ><P
2090 ><A
2091 HREF="index.html#NETBIOSALIASES"
2092 ><TT
2093 CLASS="PARAMETER"
2094 ><I
2095 >netbios aliases</I
2096 ></TT
2097 ></A
2098 ></P
2099 ></LI
2100 ><LI
2101 ><P
2102 ><A
2103 HREF="index.html#NETBIOSNAME"
2104 ><TT
2105 CLASS="PARAMETER"
2106 ><I
2107 >netbios name</I
2108 ></TT
2109 ></A
2110 ></P
2111 ></LI
2112 ><LI
2113 ><P
2114 ><A
2115 HREF="index.html#NETBIOSSCOPE"
2116 ><TT
2117 CLASS="PARAMETER"
2118 ><I
2119 >netbios scope</I
2120 ></TT
2121 ></A
2122 ></P
2123 ></LI
2124 ><LI
2125 ><P
2126 ><A
2127 HREF="index.html#NISHOMEDIR"
2128 ><TT
2129 CLASS="PARAMETER"
2130 ><I
2131 >nis homedir</I
2132 ></TT
2133 ></A
2134 ></P
2135 ></LI
2136 ><LI
2137 ><P
2138 ><A
2139 HREF="index.html#NTLMAUTH"
2140 ><TT
2141 CLASS="PARAMETER"
2142 ><I
2143 >ntlm auth</I
2144 ></TT
2145 ></A
2146 ></P
2147 ></LI
2148 ><LI
2149 ><P
2150 ><A
2151 HREF="index.html#NONUNIXACCOUNTRANGE"
2152 ><TT
2153 CLASS="PARAMETER"
2154 ><I
2155 >non unix account range</I
2156 ></TT
2157 ></A
2158 ></P
2159 ></LI
2160 ><LI
2161 ><P
2162 ><A
2163 HREF="index.html#NTPIPESUPPORT"
2164 ><TT
2165 CLASS="PARAMETER"
2166 ><I
2167 >nt pipe support</I
2168 ></TT
2169 ></A
2170 ></P
2171 ></LI
2172 ><LI
2173 ><P
2174 ><A
2175 HREF="index.html#NTSTATUSSUPPORT"
2176 ><TT
2177 CLASS="PARAMETER"
2178 ><I
2179 >nt status support</I
2180 ></TT
2181 ></A
2182 ></P
2183 ></LI
2184 ><LI
2185 ><P
2186 ><A
2187 HREF="index.html#NULLPASSWORDS"
2188 ><TT
2189 CLASS="PARAMETER"
2190 ><I
2191 >null passwords</I
2192 ></TT
2193 ></A
2194 ></P
2195 ></LI
2196 ><LI
2197 ><P
2198 ><A
2199 HREF="index.html#OBEYPAMRESTRICTIONS"
2200 ><TT
2201 CLASS="PARAMETER"
2202 ><I
2203 >obey pam restrictions</I
2204 ></TT
2205 ></A
2206 ></P
2207 ></LI
2208 ><LI
2209 ><P
2210 ><A
2211 HREF="index.html#OPLOCKBREAKWAITTIME"
2212 ><TT
2213 CLASS="PARAMETER"
2214 ><I
2215 >oplock break wait time</I
2216 ></TT
2217 ></A
2218 ></P
2219 ></LI
2220 ><LI
2221 ><P
2222 ><A
2223 HREF="index.html#OSLEVEL"
2224 ><TT
2225 CLASS="PARAMETER"
2226 ><I
2227 >os level</I
2228 ></TT
2229 ></A
2230 ></P
2231 ></LI
2232 ><LI
2233 ><P
2234 ><A
2235 HREF="index.html#OS2DRIVERMAP"
2236 ><TT
2237 CLASS="PARAMETER"
2238 ><I
2239 >os2 driver map</I
2240 ></TT
2241 ></A
2242 ></P
2243 ></LI
2244 ><LI
2245 ><P
2246 ><A
2247 HREF="index.html#PAMPASSWORDCHANGE"
2248 ><TT
2249 CLASS="PARAMETER"
2250 ><I
2251 >pam password change</I
2252 ></TT
2253 ></A
2254 ></P
2255 ></LI
2256 ><LI
2257 ><P
2258 ><A
2259 HREF="index.html#PANICACTION"
2260 ><TT
2261 CLASS="PARAMETER"
2262 ><I
2263 >panic action</I
2264 ></TT
2265 ></A
2266 ></P
2267 ></LI
2268 ><LI
2269 ><P
2270 ><A
2271 HREF="index.html#PARANOIDSERVERSECURITY"
2272 ><TT
2273 CLASS="PARAMETER"
2274 ><I
2275 >paranoid server security</I
2276 ></TT
2277 ></A
2278 ></P
2279 ></LI
2280 ><LI
2281 ><P
2282 ><A
2283 HREF="index.html#PASSDBBACKEND"
2284 ><TT
2285 CLASS="PARAMETER"
2286 ><I
2287 >passdb backend</I
2288 ></TT
2289 ></A
2290 ></P
2291 ></LI
2292 ><LI
2293 ><P
2294 ><A
2295 HREF="index.html#PASSWDCHAT"
2296 ><TT
2297 CLASS="PARAMETER"
2298 ><I
2299 >passwd chat</I
2300 ></TT
2301 ></A
2302 ></P
2303 ></LI
2304 ><LI
2305 ><P
2306 ><A
2307 HREF="index.html#PASSWDCHATDEBUG"
2308 ><TT
2309 CLASS="PARAMETER"
2310 ><I
2311 >passwd chat debug</I
2312 ></TT
2313 ></A
2314 ></P
2315 ></LI
2316 ><LI
2317 ><P
2318 ><A
2319 HREF="index.html#PASSWDPROGRAM"
2320 ><TT
2321 CLASS="PARAMETER"
2322 ><I
2323 >passwd program</I
2324 ></TT
2325 ></A
2326 ></P
2327 ></LI
2328 ><LI
2329 ><P
2330 ><A
2331 HREF="index.html#PASSWORDLEVEL"
2332 ><TT
2333 CLASS="PARAMETER"
2334 ><I
2335 >password level</I
2336 ></TT
2337 ></A
2338 ></P
2339 ></LI
2340 ><LI
2341 ><P
2342 ><A
2343 HREF="index.html#PASSWORDSERVER"
2344 ><TT
2345 CLASS="PARAMETER"
2346 ><I
2347 >password server</I
2348 ></TT
2349 ></A
2350 ></P
2351 ></LI
2352 ><LI
2353 ><P
2354 ><A
2355 HREF="index.html#PREFEREDMASTER"
2356 ><TT
2357 CLASS="PARAMETER"
2358 ><I
2359 >prefered master</I
2360 ></TT
2361 ></A
2362 ></P
2363 ></LI
2364 ><LI
2365 ><P
2366 ><A
2367 HREF="index.html#PREFERREDMASTER"
2368 ><TT
2369 CLASS="PARAMETER"
2370 ><I
2371 >preferred master</I
2372 ></TT
2373 ></A
2374 ></P
2375 ></LI
2376 ><LI
2377 ><P
2378 ><A
2379 HREF="index.html#PRELOAD"
2380 ><TT
2381 CLASS="PARAMETER"
2382 ><I
2383 >preload</I
2384 ></TT
2385 ></A
2386 ></P
2387 ></LI
2388 ><LI
2389 ><P
2390 ><A
2391 HREF="index.html#PRINTCAP"
2392 ><TT
2393 CLASS="PARAMETER"
2394 ><I
2395 >printcap</I
2396 ></TT
2397 ></A
2398 ></P
2399 ></LI
2400 ><LI
2401 ><P
2402 ><A
2403 HREF="index.html#PRINTCAPNAME"
2404 ><TT
2405 CLASS="PARAMETER"
2406 ><I
2407 >printcap name</I
2408 ></TT
2409 ></A
2410 ></P
2411 ></LI
2412 ><LI
2413 ><P
2414 ><A
2415 HREF="index.html#PRINTERDRIVERFILE"
2416 ><TT
2417 CLASS="PARAMETER"
2418 ><I
2419 >printer driver file</I
2420 ></TT
2421 ></A
2422 ></P
2423 ></LI
2424 ><LI
2425 ><P
2426 ><A
2427 HREF="index.html#PRIVATEDIR"
2428 ><TT
2429 CLASS="PARAMETER"
2430 ><I
2431 >private dir</I
2432 ></TT
2433 ></A
2434 ></P
2435 ></LI
2436 ><LI
2437 ><P
2438 ><A
2439 HREF="index.html#PROTOCOL"
2440 ><TT
2441 CLASS="PARAMETER"
2442 ><I
2443 >protocol</I
2444 ></TT
2445 ></A
2446 ></P
2447 ></LI
2448 ><LI
2449 ><P
2450 ><A
2451 HREF="index.html#READBMPX"
2452 ><TT
2453 CLASS="PARAMETER"
2454 ><I
2455 >read bmpx</I
2456 ></TT
2457 ></A
2458 ></P
2459 ></LI
2460 ><LI
2461 ><P
2462 ><A
2463 HREF="index.html#READRAW"
2464 ><TT
2465 CLASS="PARAMETER"
2466 ><I
2467 >read raw</I
2468 ></TT
2469 ></A
2470 ></P
2471 ></LI
2472 ><LI
2473 ><P
2474 ><A
2475 HREF="index.html#READSIZE"
2476 ><TT
2477 CLASS="PARAMETER"
2478 ><I
2479 >read size</I
2480 ></TT
2481 ></A
2482 ></P
2483 ></LI
2484 ><LI
2485 ><P
2486 ><A
2487 HREF="index.html#REALM"
2488 ><TT
2489 CLASS="PARAMETER"
2490 ><I
2491 >realm</I
2492 ></TT
2493 ></A
2494 ></P
2495 ></LI
2496 ><LI
2497 ><P
2498 ><A
2499 HREF="index.html#REMOTEANNOUNCE"
2500 ><TT
2501 CLASS="PARAMETER"
2502 ><I
2503 >remote announce</I
2504 ></TT
2505 ></A
2506 ></P
2507 ></LI
2508 ><LI
2509 ><P
2510 ><A
2511 HREF="index.html#REMOTEBROWSESYNC"
2512 ><TT
2513 CLASS="PARAMETER"
2514 ><I
2515 >remote browse sync</I
2516 ></TT
2517 ></A
2518 ></P
2519 ></LI
2520 ><LI
2521 ><P
2522 ><A
2523 HREF="index.html#RESTRICTANONYMOUS"
2524 ><TT
2525 CLASS="PARAMETER"
2526 ><I
2527 >restrict anonymous</I
2528 ></TT
2529 ></A
2530 ></P
2531 ></LI
2532 ><LI
2533 ><P
2534 ><A
2535 HREF="index.html#ROOT"
2536 ><TT
2537 CLASS="PARAMETER"
2538 ><I
2539 >root</I
2540 ></TT
2541 ></A
2542 ></P
2543 ></LI
2544 ><LI
2545 ><P
2546 ><A
2547 HREF="index.html#ROOTDIR"
2548 ><TT
2549 CLASS="PARAMETER"
2550 ><I
2551 >root dir</I
2552 ></TT
2553 ></A
2554 ></P
2555 ></LI
2556 ><LI
2557 ><P
2558 ><A
2559 HREF="index.html#ROOTDIRECTORY"
2560 ><TT
2561 CLASS="PARAMETER"
2562 ><I
2563 >root directory</I
2564 ></TT
2565 ></A
2566 ></P
2567 ></LI
2568 ><LI
2569 ><P
2570 ><A
2571 HREF="index.html#SECURITY"
2572 ><TT
2573 CLASS="PARAMETER"
2574 ><I
2575 >security</I
2576 ></TT
2577 ></A
2578 ></P
2579 ></LI
2580 ><LI
2581 ><P
2582 ><A
2583 HREF="index.html#SERVERSTRING"
2584 ><TT
2585 CLASS="PARAMETER"
2586 ><I
2587 >server string</I
2588 ></TT
2589 ></A
2590 ></P
2591 ></LI
2592 ><LI
2593 ><P
2594 ><A
2595 HREF="index.html#SHOWADDPRINTERWIZARD"
2596 ><TT
2597 CLASS="PARAMETER"
2598 ><I
2599 >show add printer wizard</I
2600 ></TT
2601 ></A
2602 ></P
2603 ></LI
2604 ><LI
2605 ><P
2606 ><A
2607 HREF="index.html#SHUTDOWNSCRIPT"
2608 ><TT
2609 CLASS="PARAMETER"
2610 ><I
2611 >shutdown script</I
2612 ></TT
2613 ></A
2614 ></P
2615 ></LI
2616 ><LI
2617 ><P
2618 ><A
2619 HREF="index.html#SMBPASSWDFILE"
2620 ><TT
2621 CLASS="PARAMETER"
2622 ><I
2623 >smb passwd file</I
2624 ></TT
2625 ></A
2626 ></P
2627 ></LI
2628 ><LI
2629 ><P
2630 ><A
2631 HREF="index.html#SMBPORTS"
2632 ><TT
2633 CLASS="PARAMETER"
2634 ><I
2635 >smb ports</I
2636 ></TT
2637 ></A
2638 ></P
2639 ></LI
2640 ><LI
2641 ><P
2642 ><A
2643 HREF="index.html#SOCKETADDRESS"
2644 ><TT
2645 CLASS="PARAMETER"
2646 ><I
2647 >socket address</I
2648 ></TT
2649 ></A
2650 ></P
2651 ></LI
2652 ><LI
2653 ><P
2654 ><A
2655 HREF="index.html#SOCKETOPTIONS"
2656 ><TT
2657 CLASS="PARAMETER"
2658 ><I
2659 >socket options</I
2660 ></TT
2661 ></A
2662 ></P
2663 ></LI
2664 ><LI
2665 ><P
2666 ><A
2667 HREF="index.html#SOURCEENVIRONMENT"
2668 ><TT
2669 CLASS="PARAMETER"
2670 ><I
2671 >source environment</I
2672 ></TT
2673 ></A
2674 ></P
2675 ></LI
2676 ><LI
2677 ><P
2678 ><A
2679 HREF="index.html#SPNEGO"
2680 ><TT
2681 CLASS="PARAMETER"
2682 ><I
2683 >use spnego</I
2684 ></TT
2685 ></A
2686 ></P
2687 ></LI
2688 ><LI
2689 ><P
2690 ><A
2691 HREF="index.html#STATCACHE"
2692 ><TT
2693 CLASS="PARAMETER"
2694 ><I
2695 >stat cache</I
2696 ></TT
2697 ></A
2698 ></P
2699 ></LI
2700 ><LI
2701 ><P
2702 ><A
2703 HREF="index.html#STATCACHESIZE"
2704 ><TT
2705 CLASS="PARAMETER"
2706 ><I
2707 >stat cache size</I
2708 ></TT
2709 ></A
2710 ></P
2711 ></LI
2712 ><LI
2713 ><P
2714 ><A
2715 HREF="index.html#STRIPDOT"
2716 ><TT
2717 CLASS="PARAMETER"
2718 ><I
2719 >strip dot</I
2720 ></TT
2721 ></A
2722 ></P
2723 ></LI
2724 ><LI
2725 ><P
2726 ><A
2727 HREF="index.html#SYSLOG"
2728 ><TT
2729 CLASS="PARAMETER"
2730 ><I
2731 >syslog</I
2732 ></TT
2733 ></A
2734 ></P
2735 ></LI
2736 ><LI
2737 ><P
2738 ><A
2739 HREF="index.html#SYSLOGONLY"
2740 ><TT
2741 CLASS="PARAMETER"
2742 ><I
2743 >syslog only</I
2744 ></TT
2745 ></A
2746 ></P
2747 ></LI
2748 ><LI
2749 ><P
2750 ><A
2751 HREF="index.html#TEMPLATEHOMEDIR"
2752 ><TT
2753 CLASS="PARAMETER"
2754 ><I
2755 >template homedir</I
2756 ></TT
2757 ></A
2758 ></P
2759 ></LI
2760 ><LI
2761 ><P
2762 ><A
2763 HREF="index.html#TEMPLATESHELL"
2764 ><TT
2765 CLASS="PARAMETER"
2766 ><I
2767 >template shell</I
2768 ></TT
2769 ></A
2770 ></P
2771 ></LI
2772 ><LI
2773 ><P
2774 ><A
2775 HREF="index.html#TIMEOFFSET"
2776 ><TT
2777 CLASS="PARAMETER"
2778 ><I
2779 >time offset</I
2780 ></TT
2781 ></A
2782 ></P
2783 ></LI
2784 ><LI
2785 ><P
2786 ><A
2787 HREF="index.html#TIMESERVER"
2788 ><TT
2789 CLASS="PARAMETER"
2790 ><I
2791 >time server</I
2792 ></TT
2793 ></A
2794 ></P
2795 ></LI
2796 ><LI
2797 ><P
2798 ><A
2799 HREF="index.html#TIMESTAMPLOGS"
2800 ><TT
2801 CLASS="PARAMETER"
2802 ><I
2803 >timestamp logs</I
2804 ></TT
2805 ></A
2806 ></P
2807 ></LI
2808 ><LI
2809 ><P
2810 ><A
2811 HREF="index.html#TOTALPRINTJOBS"
2812 ><TT
2813 CLASS="PARAMETER"
2814 ><I
2815 >total print jobs</I
2816 ></TT
2817 ></A
2818 ></P
2819 ></LI
2820 ><LI
2821 ><P
2822 ><A
2823 HREF="index.html#UNICODE"
2824 ><TT
2825 CLASS="PARAMETER"
2826 ><I
2827 >unicode</I
2828 ></TT
2829 ></A
2830 ></P
2831 ></LI
2832 ><LI
2833 ><P
2834 ><A
2835 HREF="index.html#UNIXCHARSET"
2836 ><TT
2837 CLASS="PARAMETER"
2838 ><I
2839 >unix charset</I
2840 ></TT
2841 ></A
2842 ></P
2843 ></LI
2844 ><LI
2845 ><P
2846 ><A
2847 HREF="index.html#UNIXEXTENSIONS"
2848 ><TT
2849 CLASS="PARAMETER"
2850 ><I
2851 >unix extensions</I
2852 ></TT
2853 ></A
2854 ></P
2855 ></LI
2856 ><LI
2857 ><P
2858 ><A
2859 HREF="index.html#UNIXPASSWORDSYNC"
2860 ><TT
2861 CLASS="PARAMETER"
2862 ><I
2863 >unix password sync</I
2864 ></TT
2865 ></A
2866 ></P
2867 ></LI
2868 ><LI
2869 ><P
2870 ><A
2871 HREF="index.html#UPDATEENCRYPTED"
2872 ><TT
2873 CLASS="PARAMETER"
2874 ><I
2875 >update encrypted</I
2876 ></TT
2877 ></A
2878 ></P
2879 ></LI
2880 ><LI
2881 ><P
2882 ><A
2883 HREF="index.html#USEMMAP"
2884 ><TT
2885 CLASS="PARAMETER"
2886 ><I
2887 >use mmap</I
2888 ></TT
2889 ></A
2890 ></P
2891 ></LI
2892 ><LI
2893 ><P
2894 ><A
2895 HREF="index.html#USERHOSTS"
2896 ><TT
2897 CLASS="PARAMETER"
2898 ><I
2899 >use rhosts</I
2900 ></TT
2901 ></A
2902 ></P
2903 ></LI
2904 ><LI
2905 ><P
2906 ><A
2907 HREF="index.html#USERNAMELEVEL"
2908 ><TT
2909 CLASS="PARAMETER"
2910 ><I
2911 >username level</I
2912 ></TT
2913 ></A
2914 ></P
2915 ></LI
2916 ><LI
2917 ><P
2918 ><A
2919 HREF="index.html#USERNAMEMAP"
2920 ><TT
2921 CLASS="PARAMETER"
2922 ><I
2923 >username map</I
2924 ></TT
2925 ></A
2926 ></P
2927 ></LI
2928 ><LI
2929 ><P
2930 ><A
2931 HREF="index.html#UTMP"
2932 ><TT
2933 CLASS="PARAMETER"
2934 ><I
2935 >utmp</I
2936 ></TT
2937 ></A
2938 ></P
2939 ></LI
2940 ><LI
2941 ><P
2942 ><A
2943 HREF="index.html#UTMPDIRECTORY"
2944 ><TT
2945 CLASS="PARAMETER"
2946 ><I
2947 >utmp directory</I
2948 ></TT
2949 ></A
2950 ></P
2951 ></LI
2952 ><LI
2953 ><P
2954 ><A
2955 HREF="index.html#WTMPDIRECTORY"
2956 ><TT
2957 CLASS="PARAMETER"
2958 ><I
2959 >wtmp directory</I
2960 ></TT
2961 ></A
2962 ></P
2963 ></LI
2964 ><LI
2965 ><P
2966 ><A
2967 HREF="index.html#WINBINDCACHETIME"
2968 ><TT
2969 CLASS="PARAMETER"
2970 ><I
2971 >winbind cache time</I
2972 ></TT
2973 ></A
2974 ></P
2975 ></LI
2976 ><LI
2977 ><P
2978 ><A
2979 HREF="index.html#WINBINDENUMUSERS"
2980 ><TT
2981 CLASS="PARAMETER"
2982 ><I
2983 >winbind enum users</I
2984 ></TT
2985 ></A
2986 ></P
2987 ></LI
2988 ><LI
2989 ><P
2990 ><A
2991 HREF="index.html#WINBINDENUMGROUPS"
2992 ><TT
2993 CLASS="PARAMETER"
2994 ><I
2995 >winbind enum groups</I
2996 ></TT
2997 ></A
2998 ></P
2999 ></LI
3000 ><LI
3001 ><P
3002 ><A
3003 HREF="index.html#WINBINDGID"
3004 ><TT
3005 CLASS="PARAMETER"
3006 ><I
3007 >winbind gid</I
3008 ></TT
3009 ></A
3010 ></P
3011 ></LI
3012 ><LI
3013 ><P
3014 ><A
3015 HREF="index.html#WINBINDSEPARATOR"
3016 ><TT
3017 CLASS="PARAMETER"
3018 ><I
3019 >winbind separator</I
3020 ></TT
3021 ></A
3022 ></P
3023 ></LI
3024 ><LI
3025 ><P
3026 ><A
3027 HREF="index.html#WINBINDUID"
3028 ><TT
3029 CLASS="PARAMETER"
3030 ><I
3031 >winbind uid</I
3032 ></TT
3033 ></A
3034 ></P
3035 ></LI
3036 ><LI
3037 ><P
3038 ><A
3039 HREF="index.html#WINBINDUSEDEFAULTDOMAIN"
3040 ><TT
3041 CLASS="PARAMETER"
3042 ><I
3043 >winbind use default domain</I
3044 ></TT
3045 ></A
3046 ></P
3047 ></LI
3048 ><LI
3049 ><P
3050 ><A
3051 HREF="index.html#WINSHOOK"
3052 ><TT
3053 CLASS="PARAMETER"
3054 ><I
3055 >wins hook</I
3056 ></TT
3057 ></A
3058 ></P
3059 ></LI
3060 ><LI
3061 ><P
3062 ><A
3063 HREF="index.html#WINSPARTNERS"
3064 ><TT
3065 CLASS="PARAMETER"
3066 ><I
3067 >wins partners</I
3068 ></TT
3069 ></A
3070 ></P
3071 ></LI
3072 ><LI
3073 ><P
3074 ><A
3075 HREF="index.html#WINSPROXY"
3076 ><TT
3077 CLASS="PARAMETER"
3078 ><I
3079 >wins proxy</I
3080 ></TT
3081 ></A
3082 ></P
3083 ></LI
3084 ><LI
3085 ><P
3086 ><A
3087 HREF="index.html#WINSSERVER"
3088 ><TT
3089 CLASS="PARAMETER"
3090 ><I
3091 >wins server</I
3092 ></TT
3093 ></A
3094 ></P
3095 ></LI
3096 ><LI
3097 ><P
3098 ><A
3099 HREF="index.html#WINSSUPPORT"
3100 ><TT
3101 CLASS="PARAMETER"
3102 ><I
3103 >wins support</I
3104 ></TT
3105 ></A
3106 ></P
3107 ></LI
3108 ><LI
3109 ><P
3110 ><A
3111 HREF="index.html#WORKGROUP"
3112 ><TT
3113 CLASS="PARAMETER"
3114 ><I
3115 >workgroup</I
3116 ></TT
3117 ></A
3118 ></P
3119 ></LI
3120 ><LI
3121 ><P
3122 ><A
3123 HREF="index.html#WRITERAW"
3124 ><TT
3125 CLASS="PARAMETER"
3126 ><I
3127 >write raw</I
3128 ></TT
3129 ></A
3130 ></P
3131 ></LI
3132 ></UL
3133 ></DIV
3134 ><DIV
3135 CLASS="REFSECT1"
3136 ><A
3137 NAME="AEN1003"
3138 ></A
3139 ><H2
3140 >COMPLETE LIST OF SERVICE PARAMETERS</H2
3141 ><P
3142 >Here is a list of all service parameters. See the section on 
3143         each parameter for details. Note that some are synonyms.</P
3144 ><P
3145 ></P
3146 ><UL
3147 ><LI
3148 ><P
3149 ><A
3150 HREF="index.html#ADMINUSERS"
3151 ><TT
3152 CLASS="PARAMETER"
3153 ><I
3154 >admin users</I
3155 ></TT
3156 ></A
3157 ></P
3158 ></LI
3159 ><LI
3160 ><P
3161 ><A
3162 HREF="index.html#ALLOWHOSTS"
3163 ><TT
3164 CLASS="PARAMETER"
3165 ><I
3166 >allow hosts</I
3167 ></TT
3168 ></A
3169 ></P
3170 ></LI
3171 ><LI
3172 ><P
3173 ><A
3174 HREF="index.html#AVAILABLE"
3175 ><TT
3176 CLASS="PARAMETER"
3177 ><I
3178 >available</I
3179 ></TT
3180 ></A
3181 ></P
3182 ></LI
3183 ><LI
3184 ><P
3185 ><A
3186 HREF="index.html#BLOCKINGLOCKS"
3187 ><TT
3188 CLASS="PARAMETER"
3189 ><I
3190 >blocking locks</I
3191 ></TT
3192 ></A
3193 ></P
3194 ></LI
3195 ><LI
3196 ><P
3197 ><A
3198 HREF="index.html#BLOCKSIZE"
3199 ><TT
3200 CLASS="PARAMETER"
3201 ><I
3202 >block size</I
3203 ></TT
3204 ></A
3205 ></P
3206 ></LI
3207 ><LI
3208 ><P
3209 ><A
3210 HREF="index.html#BROWSABLE"
3211 ><TT
3212 CLASS="PARAMETER"
3213 ><I
3214 >browsable</I
3215 ></TT
3216 ></A
3217 ></P
3218 ></LI
3219 ><LI
3220 ><P
3221 ><A
3222 HREF="index.html#BROWSEABLE"
3223 ><TT
3224 CLASS="PARAMETER"
3225 ><I
3226 >browseable</I
3227 ></TT
3228 ></A
3229 ></P
3230 ></LI
3231 ><LI
3232 ><P
3233 ><A
3234 HREF="index.html#CASESENSITIVE"
3235 ><TT
3236 CLASS="PARAMETER"
3237 ><I
3238 >case sensitive</I
3239 ></TT
3240 ></A
3241 ></P
3242 ></LI
3243 ><LI
3244 ><P
3245 ><A
3246 HREF="index.html#CASESIGNAMES"
3247 ><TT
3248 CLASS="PARAMETER"
3249 ><I
3250 >casesignames</I
3251 ></TT
3252 ></A
3253 ></P
3254 ></LI
3255 ><LI
3256 ><P
3257 ><A
3258 HREF="index.html#COMMENT"
3259 ><TT
3260 CLASS="PARAMETER"
3261 ><I
3262 >comment</I
3263 ></TT
3264 ></A
3265 ></P
3266 ></LI
3267 ><LI
3268 ><P
3269 ><A
3270 HREF="index.html#COPY"
3271 ><TT
3272 CLASS="PARAMETER"
3273 ><I
3274 >copy</I
3275 ></TT
3276 ></A
3277 ></P
3278 ></LI
3279 ><LI
3280 ><P
3281 ><A
3282 HREF="index.html#CREATEMASK"
3283 ><TT
3284 CLASS="PARAMETER"
3285 ><I
3286 >create mask</I
3287 ></TT
3288 ></A
3289 ></P
3290 ></LI
3291 ><LI
3292 ><P
3293 ><A
3294 HREF="index.html#CREATEMODE"
3295 ><TT
3296 CLASS="PARAMETER"
3297 ><I
3298 >create mode</I
3299 ></TT
3300 ></A
3301 ></P
3302 ></LI
3303 ><LI
3304 ><P
3305 ><A
3306 HREF="index.html#CSCPOLICY"
3307 ><TT
3308 CLASS="PARAMETER"
3309 ><I
3310 >csc policy</I
3311 ></TT
3312 ></A
3313 ></P
3314 ></LI
3315 ><LI
3316 ><P
3317 ><A
3318 HREF="index.html#DEFAULTCASE"
3319 ><TT
3320 CLASS="PARAMETER"
3321 ><I
3322 >default case</I
3323 ></TT
3324 ></A
3325 ></P
3326 ></LI
3327 ><LI
3328 ><P
3329 ><A
3330 HREF="index.html#DEFAULTDEVMODE"
3331 ><TT
3332 CLASS="PARAMETER"
3333 ><I
3334 >default devmode</I
3335 ></TT
3336 ></A
3337 ></P
3338 ></LI
3339 ><LI
3340 ><P
3341 ><A
3342 HREF="index.html#DELETEREADONLY"
3343 ><TT
3344 CLASS="PARAMETER"
3345 ><I
3346 >delete readonly</I
3347 ></TT
3348 ></A
3349 ></P
3350 ></LI
3351 ><LI
3352 ><P
3353 ><A
3354 HREF="index.html#DELETEVETOFILES"
3355 ><TT
3356 CLASS="PARAMETER"
3357 ><I
3358 >delete veto files</I
3359 ></TT
3360 ></A
3361 ></P
3362 ></LI
3363 ><LI
3364 ><P
3365 ><A
3366 HREF="index.html#DENYHOSTS"
3367 ><TT
3368 CLASS="PARAMETER"
3369 ><I
3370 >deny hosts</I
3371 ></TT
3372 ></A
3373 ></P
3374 ></LI
3375 ><LI
3376 ><P
3377 ><A
3378 HREF="index.html#DIRECTORY"
3379 ><TT
3380 CLASS="PARAMETER"
3381 ><I
3382 >directory</I
3383 ></TT
3384 ></A
3385 ></P
3386 ></LI
3387 ><LI
3388 ><P
3389 ><A
3390 HREF="index.html#DIRECTORYMASK"
3391 ><TT
3392 CLASS="PARAMETER"
3393 ><I
3394 >directory mask</I
3395 ></TT
3396 ></A
3397 ></P
3398 ></LI
3399 ><LI
3400 ><P
3401 ><A
3402 HREF="index.html#DIRECTORYMODE"
3403 ><TT
3404 CLASS="PARAMETER"
3405 ><I
3406 >directory mode</I
3407 ></TT
3408 ></A
3409 ></P
3410 ></LI
3411 ><LI
3412 ><P
3413 ><A
3414 HREF="index.html#DIRECTORYSECURITYMASK"
3415 ><TT
3416 CLASS="PARAMETER"
3417 ><I
3418 >directory security mask</I
3419 ></TT
3420 ></A
3421 ></P
3422 ></LI
3423 ><LI
3424 ><P
3425 ><A
3426 HREF="index.html#DONTDESCEND"
3427 ><TT
3428 CLASS="PARAMETER"
3429 ><I
3430 >dont descend</I
3431 ></TT
3432 ></A
3433 ></P
3434 ></LI
3435 ><LI
3436 ><P
3437 ><A
3438 HREF="index.html#DOSFILEMODE"
3439 ><TT
3440 CLASS="PARAMETER"
3441 ><I
3442 >dos filemode</I
3443 ></TT
3444 ></A
3445 ></P
3446 ></LI
3447 ><LI
3448 ><P
3449 ><A
3450 HREF="index.html#DOSFILETIMERESOLUTION"
3451 ><TT
3452 CLASS="PARAMETER"
3453 ><I
3454 >dos filetime resolution</I
3455 ></TT
3456 ></A
3457 ></P
3458 ></LI
3459 ><LI
3460 ><P
3461 ><A
3462 HREF="index.html#DOSFILETIMES"
3463 ><TT
3464 CLASS="PARAMETER"
3465 ><I
3466 >dos filetimes</I
3467 ></TT
3468 ></A
3469 ></P
3470 ></LI
3471 ><LI
3472 ><P
3473 ><A
3474 HREF="index.html#EXEC"
3475 ><TT
3476 CLASS="PARAMETER"
3477 ><I
3478 >exec</I
3479 ></TT
3480 ></A
3481 ></P
3482 ></LI
3483 ><LI
3484 ><P
3485 ><A
3486 HREF="index.html#FAKEDIRECTORYCREATETIMES"
3487 ><TT
3488 CLASS="PARAMETER"
3489 ><I
3490 >fake directory create times</I
3491 ></TT
3492 ></A
3493 ></P
3494 ></LI
3495 ><LI
3496 ><P
3497 ><A
3498 HREF="index.html#FAKEOPLOCKS"
3499 ><TT
3500 CLASS="PARAMETER"
3501 ><I
3502 >fake oplocks</I
3503 ></TT
3504 ></A
3505 ></P
3506 ></LI
3507 ><LI
3508 ><P
3509 ><A
3510 HREF="index.html#FOLLOWSYMLINKS"
3511 ><TT
3512 CLASS="PARAMETER"
3513 ><I
3514 >follow symlinks</I
3515 ></TT
3516 ></A
3517 ></P
3518 ></LI
3519 ><LI
3520 ><P
3521 ><A
3522 HREF="index.html#FORCECREATEMODE"
3523 ><TT
3524 CLASS="PARAMETER"
3525 ><I
3526 >force create mode</I
3527 ></TT
3528 ></A
3529 ></P
3530 ></LI
3531 ><LI
3532 ><P
3533 ><A
3534 HREF="index.html#FORCEDIRECTORYMODE"
3535 ><TT
3536 CLASS="PARAMETER"
3537 ><I
3538 >force directory mode</I
3539 ></TT
3540 ></A
3541 ></P
3542 ></LI
3543 ><LI
3544 ><P
3545 ><A
3546 HREF="index.html#FORCEDIRECTORYSECURITYMODE"
3547 ><TT
3548 CLASS="PARAMETER"
3549 ><I
3550 >force directory security mode</I
3551 ></TT
3552 ></A
3553 ></P
3554 ></LI
3555 ><LI
3556 ><P
3557 ><A
3558 HREF="index.html#FORCEGROUP"
3559 ><TT
3560 CLASS="PARAMETER"
3561 ><I
3562 >force group</I
3563 ></TT
3564 ></A
3565 ></P
3566 ></LI
3567 ><LI
3568 ><P
3569 ><A
3570 HREF="index.html#FORCESECURITYMODE"
3571 ><TT
3572 CLASS="PARAMETER"
3573 ><I
3574 >force security mode</I
3575 ></TT
3576 ></A
3577 ></P
3578 ></LI
3579 ><LI
3580 ><P
3581 ><A
3582 HREF="index.html#FORCEUSER"
3583 ><TT
3584 CLASS="PARAMETER"
3585 ><I
3586 >force user</I
3587 ></TT
3588 ></A
3589 ></P
3590 ></LI
3591 ><LI
3592 ><P
3593 ><A
3594 HREF="index.html#FSTYPE"
3595 ><TT
3596 CLASS="PARAMETER"
3597 ><I
3598 >fstype</I
3599 ></TT
3600 ></A
3601 ></P
3602 ></LI
3603 ><LI
3604 ><P
3605 ><A
3606 HREF="index.html#GROUP"
3607 ><TT
3608 CLASS="PARAMETER"
3609 ><I
3610 >group</I
3611 ></TT
3612 ></A
3613 ></P
3614 ></LI
3615 ><LI
3616 ><P
3617 ><A
3618 HREF="index.html#GUESTACCOUNT"
3619 ><TT
3620 CLASS="PARAMETER"
3621 ><I
3622 >guest account</I
3623 ></TT
3624 ></A
3625 ></P
3626 ></LI
3627 ><LI
3628 ><P
3629 ><A
3630 HREF="index.html#GUESTOK"
3631 ><TT
3632 CLASS="PARAMETER"
3633 ><I
3634 >guest ok</I
3635 ></TT
3636 ></A
3637 ></P
3638 ></LI
3639 ><LI
3640 ><P
3641 ><A
3642 HREF="index.html#GUESTONLY"
3643 ><TT
3644 CLASS="PARAMETER"
3645 ><I
3646 >guest only</I
3647 ></TT
3648 ></A
3649 ></P
3650 ></LI
3651 ><LI
3652 ><P
3653 ><A
3654 HREF="index.html#HIDEDOTFILES"
3655 ><TT
3656 CLASS="PARAMETER"
3657 ><I
3658 >hide dot files</I
3659 ></TT
3660 ></A
3661 ></P
3662 ></LI
3663 ><LI
3664 ><P
3665 ><A
3666 HREF="index.html#HIDEFILES"
3667 ><TT
3668 CLASS="PARAMETER"
3669 ><I
3670 >hide files</I
3671 ></TT
3672 ></A
3673 ></P
3674 ></LI
3675 ><LI
3676 ><P
3677 ><A
3678 HREF="index.html#HOSTSALLOW"
3679 ><TT
3680 CLASS="PARAMETER"
3681 ><I
3682 >hosts allow</I
3683 ></TT
3684 ></A
3685 ></P
3686 ></LI
3687 ><LI
3688 ><P
3689 ><A
3690 HREF="index.html#HOSTSDENY"
3691 ><TT
3692 CLASS="PARAMETER"
3693 ><I
3694 >hosts deny</I
3695 ></TT
3696 ></A
3697 ></P
3698 ></LI
3699 ><LI
3700 ><P
3701 ><A
3702 HREF="index.html#INCLUDE"
3703 ><TT
3704 CLASS="PARAMETER"
3705 ><I
3706 >include</I
3707 ></TT
3708 ></A
3709 ></P
3710 ></LI
3711 ><LI
3712 ><P
3713 ><A
3714 HREF="index.html#INHERITACLS"
3715 ><TT
3716 CLASS="PARAMETER"
3717 ><I
3718 >inherit acls</I
3719 ></TT
3720 ></A
3721 ></P
3722 ></LI
3723 ><LI
3724 ><P
3725 ><A
3726 HREF="index.html#INHERITPERMISSIONS"
3727 ><TT
3728 CLASS="PARAMETER"
3729 ><I
3730 >inherit permissions</I
3731 ></TT
3732 ></A
3733 ></P
3734 ></LI
3735 ><LI
3736 ><P
3737 ><A
3738 HREF="index.html#INVALIDUSERS"
3739 ><TT
3740 CLASS="PARAMETER"
3741 ><I
3742 >invalid users</I
3743 ></TT
3744 ></A
3745 ></P
3746 ></LI
3747 ><LI
3748 ><P
3749 ><A
3750 HREF="index.html#LEVEL2OPLOCKS"
3751 ><TT
3752 CLASS="PARAMETER"
3753 ><I
3754 >level2 oplocks</I
3755 ></TT
3756 ></A
3757 ></P
3758 ></LI
3759 ><LI
3760 ><P
3761 ><A
3762 HREF="index.html#LOCKING"
3763 ><TT
3764 CLASS="PARAMETER"
3765 ><I
3766 >locking</I
3767 ></TT
3768 ></A
3769 ></P
3770 ></LI
3771 ><LI
3772 ><P
3773 ><A
3774 HREF="index.html#LPPAUSECOMMAND"
3775 ><TT
3776 CLASS="PARAMETER"
3777 ><I
3778 >lppause command</I
3779 ></TT
3780 ></A
3781 ></P
3782 ></LI
3783 ><LI
3784 ><P
3785 ><A
3786 HREF="index.html#LPQCOMMAND"
3787 ><TT
3788 CLASS="PARAMETER"
3789 ><I
3790 >lpq command</I
3791 ></TT
3792 ></A
3793 ></P
3794 ></LI
3795 ><LI
3796 ><P
3797 ><A
3798 HREF="index.html#LPRESUMECOMMAND"
3799 ><TT
3800 CLASS="PARAMETER"
3801 ><I
3802 >lpresume command</I
3803 ></TT
3804 ></A
3805 ></P
3806 ></LI
3807 ><LI
3808 ><P
3809 ><A
3810 HREF="index.html#LPRMCOMMAND"
3811 ><TT
3812 CLASS="PARAMETER"
3813 ><I
3814 >lprm command</I
3815 ></TT
3816 ></A
3817 ></P
3818 ></LI
3819 ><LI
3820 ><P
3821 ><A
3822 HREF="index.html#MAGICOUTPUT"
3823 ><TT
3824 CLASS="PARAMETER"
3825 ><I
3826 >magic output</I
3827 ></TT
3828 ></A
3829 ></P
3830 ></LI
3831 ><LI
3832 ><P
3833 ><A
3834 HREF="index.html#MAGICSCRIPT"
3835 ><TT
3836 CLASS="PARAMETER"
3837 ><I
3838 >magic script</I
3839 ></TT
3840 ></A
3841 ></P
3842 ></LI
3843 ><LI
3844 ><P
3845 ><A
3846 HREF="index.html#MANGLECASE"
3847 ><TT
3848 CLASS="PARAMETER"
3849 ><I
3850 >mangle case</I
3851 ></TT
3852 ></A
3853 ></P
3854 ></LI
3855 ><LI
3856 ><P
3857 ><A
3858 HREF="index.html#MANGLEDMAP"
3859 ><TT
3860 CLASS="PARAMETER"
3861 ><I
3862 >mangled map</I
3863 ></TT
3864 ></A
3865 ></P
3866 ></LI
3867 ><LI
3868 ><P
3869 ><A
3870 HREF="index.html#MANGLEDNAMES"
3871 ><TT
3872 CLASS="PARAMETER"
3873 ><I
3874 >mangled names</I
3875 ></TT
3876 ></A
3877 ></P
3878 ></LI
3879 ><LI
3880 ><P
3881 ><A
3882 HREF="index.html#MANGLINGCHAR"
3883 ><TT
3884 CLASS="PARAMETER"
3885 ><I
3886 >mangling char</I
3887 ></TT
3888 ></A
3889 ></P
3890 ></LI
3891 ><LI
3892 ><P
3893 ><A
3894 HREF="index.html#MANGLINGMETHOD"
3895 ><TT
3896 CLASS="PARAMETER"
3897 ><I
3898 >mangling method</I
3899 ></TT
3900 ></A
3901 ></P
3902 ></LI
3903 ><LI
3904 ><P
3905 ><A
3906 HREF="index.html#MAPARCHIVE"
3907 ><TT
3908 CLASS="PARAMETER"
3909 ><I
3910 >map archive</I
3911 ></TT
3912 ></A
3913 ></P
3914 ></LI
3915 ><LI
3916 ><P
3917 ><A
3918 HREF="index.html#MAPHIDDEN"
3919 ><TT
3920 CLASS="PARAMETER"
3921 ><I
3922 >map hidden</I
3923 ></TT
3924 ></A
3925 ></P
3926 ></LI
3927 ><LI
3928 ><P
3929 ><A
3930 HREF="index.html#MAPSYSTEM"
3931 ><TT
3932 CLASS="PARAMETER"
3933 ><I
3934 >map system</I
3935 ></TT
3936 ></A
3937 ></P
3938 ></LI
3939 ><LI
3940 ><P
3941 ><A
3942 HREF="index.html#MAXCONNECTIONS"
3943 ><TT
3944 CLASS="PARAMETER"
3945 ><I
3946 >max connections</I
3947 ></TT
3948 ></A
3949 ></P
3950 ></LI
3951 ><LI
3952 ><P
3953 ><A
3954 HREF="index.html#MAXPRINTJOBS"
3955 ><TT
3956 CLASS="PARAMETER"
3957 ><I
3958 >max print jobs</I
3959 ></TT
3960 ></A
3961 ></P
3962 ></LI
3963 ><LI
3964 ><P
3965 ><A
3966 HREF="index.html#MINPRINTSPACE"
3967 ><TT
3968 CLASS="PARAMETER"
3969 ><I
3970 >min print space</I
3971 ></TT
3972 ></A
3973 ></P
3974 ></LI
3975 ><LI
3976 ><P
3977 ><A
3978 HREF="index.html#MSDFSROOT"
3979 ><TT
3980 CLASS="PARAMETER"
3981 ><I
3982 >msdfs root</I
3983 ></TT
3984 ></A
3985 ></P
3986 ></LI
3987 ><LI
3988 ><P
3989 ><A
3990 HREF="index.html#NTACLSUPPORT"
3991 ><TT
3992 CLASS="PARAMETER"
3993 ><I
3994 >nt acl support</I
3995 ></TT
3996 ></A
3997 ></P
3998 ></LI
3999 ><LI
4000 ><P
4001 ><A
4002 HREF="index.html#ONLYGUEST"
4003 ><TT
4004 CLASS="PARAMETER"
4005 ><I
4006 >only guest</I
4007 ></TT
4008 ></A
4009 ></P
4010 ></LI
4011 ><LI
4012 ><P
4013 ><A
4014 HREF="index.html#ONLYUSER"
4015 ><TT
4016 CLASS="PARAMETER"
4017 ><I
4018 >only user</I
4019 ></TT
4020 ></A
4021 ></P
4022 ></LI
4023 ><LI
4024 ><P
4025 ><A
4026 HREF="index.html#OPLOCKCONTENTIONLIMIT"
4027 ><TT
4028 CLASS="PARAMETER"
4029 ><I
4030 >oplock contention limit</I
4031 ></TT
4032 ></A
4033 ></P
4034 ></LI
4035 ><LI
4036 ><P
4037 ><A
4038 HREF="index.html#OPLOCKS"
4039 ><TT
4040 CLASS="PARAMETER"
4041 ><I
4042 >oplocks</I
4043 ></TT
4044 ></A
4045 ></P
4046 ></LI
4047 ><LI
4048 ><P
4049 ><A
4050 HREF="index.html#PATH"
4051 ><TT
4052 CLASS="PARAMETER"
4053 ><I
4054 >path</I
4055 ></TT
4056 ></A
4057 ></P
4058 ></LI
4059 ><LI
4060 ><P
4061 ><A
4062 HREF="index.html#POSIXLOCKING"
4063 ><TT
4064 CLASS="PARAMETER"
4065 ><I
4066 >posix locking</I
4067 ></TT
4068 ></A
4069 ></P
4070 ></LI
4071 ><LI
4072 ><P
4073 ><A
4074 HREF="index.html#POSTEXEC"
4075 ><TT
4076 CLASS="PARAMETER"
4077 ><I
4078 >postexec</I
4079 ></TT
4080 ></A
4081 ></P
4082 ></LI
4083 ><LI
4084 ><P
4085 ><A
4086 HREF="index.html#POSTSCRIPT"
4087 ><TT
4088 CLASS="PARAMETER"
4089 ><I
4090 >postscript</I
4091 ></TT
4092 ></A
4093 ></P
4094 ></LI
4095 ><LI
4096 ><P
4097 ><A
4098 HREF="index.html#PREEXEC"
4099 ><TT
4100 CLASS="PARAMETER"
4101 ><I
4102 >preexec</I
4103 ></TT
4104 ></A
4105 ></P
4106 ></LI
4107 ><LI
4108 ><P
4109 ><A
4110 HREF="index.html#PREEXECCLOSE"
4111 ><TT
4112 CLASS="PARAMETER"
4113 ><I
4114 >preexec close</I
4115 ></TT
4116 ></A
4117 ></P
4118 ></LI
4119 ><LI
4120 ><P
4121 ><A
4122 HREF="index.html#PRESERVECASE"
4123 ><TT
4124 CLASS="PARAMETER"
4125 ><I
4126 >preserve case</I
4127 ></TT
4128 ></A
4129 ></P
4130 ></LI
4131 ><LI
4132 ><P
4133 ><A
4134 HREF="index.html#PRINTCOMMAND"
4135 ><TT
4136 CLASS="PARAMETER"
4137 ><I
4138 >print command</I
4139 ></TT
4140 ></A
4141 ></P
4142 ></LI
4143 ><LI
4144 ><P
4145 ><A
4146 HREF="index.html#PRINTOK"
4147 ><TT
4148 CLASS="PARAMETER"
4149 ><I
4150 >print ok</I
4151 ></TT
4152 ></A
4153 ></P
4154 ></LI
4155 ><LI
4156 ><P
4157 ><A
4158 HREF="index.html#PRINTABLE"
4159 ><TT
4160 CLASS="PARAMETER"
4161 ><I
4162 >printable</I
4163 ></TT
4164 ></A
4165 ></P
4166 ></LI
4167 ><LI
4168 ><P
4169 ><A
4170 HREF="index.html#PRINTER"
4171 ><TT
4172 CLASS="PARAMETER"
4173 ><I
4174 >printer</I
4175 ></TT
4176 ></A
4177 ></P
4178 ></LI
4179 ><LI
4180 ><P
4181 ><A
4182 HREF="index.html#PRINTERADMIN"
4183 ><TT
4184 CLASS="PARAMETER"
4185 ><I
4186 >printer admin</I
4187 ></TT
4188 ></A
4189 ></P
4190 ></LI
4191 ><LI
4192 ><P
4193 ><A
4194 HREF="index.html#PRINTERDRIVER"
4195 ><TT
4196 CLASS="PARAMETER"
4197 ><I
4198 >printer driver</I
4199 ></TT
4200 ></A
4201 ></P
4202 ></LI
4203 ><LI
4204 ><P
4205 ><A
4206 HREF="index.html#PRINTERDRIVERLOCATION"
4207 ><TT
4208 CLASS="PARAMETER"
4209 ><I
4210 >printer driver location</I
4211 ></TT
4212 ></A
4213 ></P
4214 ></LI
4215 ><LI
4216 ><P
4217 ><A
4218 HREF="index.html#PRINTERNAME"
4219 ><TT
4220 CLASS="PARAMETER"
4221 ><I
4222 >printer name</I
4223 ></TT
4224 ></A
4225 ></P
4226 ></LI
4227 ><LI
4228 ><P
4229 ><A
4230 HREF="index.html#PRINTING"
4231 ><TT
4232 CLASS="PARAMETER"
4233 ><I
4234 >printing</I
4235 ></TT
4236 ></A
4237 ></P
4238 ></LI
4239 ><LI
4240 ><P
4241 ><A
4242 HREF="index.html#PUBLIC"
4243 ><TT
4244 CLASS="PARAMETER"
4245 ><I
4246 >public</I
4247 ></TT
4248 ></A
4249 ></P
4250 ></LI
4251 ><LI
4252 ><P
4253 ><A
4254 HREF="index.html#QUEUEPAUSECOMMAND"
4255 ><TT
4256 CLASS="PARAMETER"
4257 ><I
4258 >queuepause command</I
4259 ></TT
4260 ></A
4261 ></P
4262 ></LI
4263 ><LI
4264 ><P
4265 ><A
4266 HREF="index.html#QUEUERESUMECOMMAND"
4267 ><TT
4268 CLASS="PARAMETER"
4269 ><I
4270 >queueresume command</I
4271 ></TT
4272 ></A
4273 ></P
4274 ></LI
4275 ><LI
4276 ><P
4277 ><A
4278 HREF="index.html#READLIST"
4279 ><TT
4280 CLASS="PARAMETER"
4281 ><I
4282 >read list</I
4283 ></TT
4284 ></A
4285 ></P
4286 ></LI
4287 ><LI
4288 ><P
4289 ><A
4290 HREF="index.html#READONLY"
4291 ><TT
4292 CLASS="PARAMETER"
4293 ><I
4294 >read only</I
4295 ></TT
4296 ></A
4297 ></P
4298 ></LI
4299 ><LI
4300 ><P
4301 ><A
4302 HREF="index.html#ROOTPOSTEXEC"
4303 ><TT
4304 CLASS="PARAMETER"
4305 ><I
4306 >root postexec</I
4307 ></TT
4308 ></A
4309 ></P
4310 ></LI
4311 ><LI
4312 ><P
4313 ><A
4314 HREF="index.html#ROOTPREEXEC"
4315 ><TT
4316 CLASS="PARAMETER"
4317 ><I
4318 >root preexec</I
4319 ></TT
4320 ></A
4321 ></P
4322 ></LI
4323 ><LI
4324 ><P
4325 ><A
4326 HREF="index.html#ROOTPREEXECCLOSE"
4327 ><TT
4328 CLASS="PARAMETER"
4329 ><I
4330 >root preexec close</I
4331 ></TT
4332 ></A
4333 ></P
4334 ></LI
4335 ><LI
4336 ><P
4337 ><A
4338 HREF="index.html#SECURITYMASK"
4339 ><TT
4340 CLASS="PARAMETER"
4341 ><I
4342 >security mask</I
4343 ></TT
4344 ></A
4345 ></P
4346 ></LI
4347 ><LI
4348 ><P
4349 ><A
4350 HREF="index.html#SETDIRECTORY"
4351 ><TT
4352 CLASS="PARAMETER"
4353 ><I
4354 >set directory</I
4355 ></TT
4356 ></A
4357 ></P
4358 ></LI
4359 ><LI
4360 ><P
4361 ><A
4362 HREF="index.html#SHAREMODES"
4363 ><TT
4364 CLASS="PARAMETER"
4365 ><I
4366 >share modes</I
4367 ></TT
4368 ></A
4369 ></P
4370 ></LI
4371 ><LI
4372 ><P
4373 ><A
4374 HREF="index.html#SHORTPRESERVECASE"
4375 ><TT
4376 CLASS="PARAMETER"
4377 ><I
4378 >short preserve case</I
4379 ></TT
4380 ></A
4381 ></P
4382 ></LI
4383 ><LI
4384 ><P
4385 ><A
4386 HREF="index.html#STATUS"
4387 ><TT
4388 CLASS="PARAMETER"
4389 ><I
4390 >status</I
4391 ></TT
4392 ></A
4393 ></P
4394 ></LI
4395 ><LI
4396 ><P
4397 ><A
4398 HREF="index.html#STRICTALLOCATE"
4399 ><TT
4400 CLASS="PARAMETER"
4401 ><I
4402 >strict allocate</I
4403 ></TT
4404 ></A
4405 ></P
4406 ></LI
4407 ><LI
4408 ><P
4409 ><A
4410 HREF="index.html#STRICTLOCKING"
4411 ><TT
4412 CLASS="PARAMETER"
4413 ><I
4414 >strict locking</I
4415 ></TT
4416 ></A
4417 ></P
4418 ></LI
4419 ><LI
4420 ><P
4421 ><A
4422 HREF="index.html#STRICTSYNC"
4423 ><TT
4424 CLASS="PARAMETER"
4425 ><I
4426 >strict sync</I
4427 ></TT
4428 ></A
4429 ></P
4430 ></LI
4431 ><LI
4432 ><P
4433 ><A
4434 HREF="index.html#SYNCALWAYS"
4435 ><TT
4436 CLASS="PARAMETER"
4437 ><I
4438 >sync always</I
4439 ></TT
4440 ></A
4441 ></P
4442 ></LI
4443 ><LI
4444 ><P
4445 ><A
4446 HREF="index.html#USECLIENTDRIVER"
4447 ><TT
4448 CLASS="PARAMETER"
4449 ><I
4450 >use client driver</I
4451 ></TT
4452 ></A
4453 ></P
4454 ></LI
4455 ><LI
4456 ><P
4457 ><A
4458 HREF="index.html#USER"
4459 ><TT
4460 CLASS="PARAMETER"
4461 ><I
4462 >user</I
4463 ></TT
4464 ></A
4465 ></P
4466 ></LI
4467 ><LI
4468 ><P
4469 ><A
4470 HREF="index.html#USERNAME"
4471 ><TT
4472 CLASS="PARAMETER"
4473 ><I
4474 >username</I
4475 ></TT
4476 ></A
4477 ></P
4478 ></LI
4479 ><LI
4480 ><P
4481 ><A
4482 HREF="index.html#USERS"
4483 ><TT
4484 CLASS="PARAMETER"
4485 ><I
4486 >users</I
4487 ></TT
4488 ></A
4489 ></P
4490 ></LI
4491 ><LI
4492 ><P
4493 ><A
4494 HREF="index.html#VALIDUSERS"
4495 ><TT
4496 CLASS="PARAMETER"
4497 ><I
4498 >valid users</I
4499 ></TT
4500 ></A
4501 ></P
4502 ></LI
4503 ><LI
4504 ><P
4505 ><A
4506 HREF="index.html#VETOFILES"
4507 ><TT
4508 CLASS="PARAMETER"
4509 ><I
4510 >veto files</I
4511 ></TT
4512 ></A
4513 ></P
4514 ></LI
4515 ><LI
4516 ><P
4517 ><A
4518 HREF="index.html#VETOOPLOCKFILES"
4519 ><TT
4520 CLASS="PARAMETER"
4521 ><I
4522 >veto oplock files</I
4523 ></TT
4524 ></A
4525 ></P
4526 ></LI
4527 ><LI
4528 ><P
4529 ><A
4530 HREF="index.html#VFSPATH"
4531 ><TT
4532 CLASS="PARAMETER"
4533 ><I
4534 >vfs path</I
4535 ></TT
4536 ></A
4537 ></P
4538 ></LI
4539 ><LI
4540 ><P
4541 ><A
4542 HREF="index.html#VFSOBJECT"
4543 ><TT
4544 CLASS="PARAMETER"
4545 ><I
4546 >vfs object</I
4547 ></TT
4548 ></A
4549 ></P
4550 ></LI
4551 ><LI
4552 ><P
4553 ><A
4554 HREF="index.html#VFSOPTIONS"
4555 ><TT
4556 CLASS="PARAMETER"
4557 ><I
4558 >vfs options</I
4559 ></TT
4560 ></A
4561 ></P
4562 ></LI
4563 ><LI
4564 ><P
4565 ><A
4566 HREF="index.html#VOLUME"
4567 ><TT
4568 CLASS="PARAMETER"
4569 ><I
4570 >volume</I
4571 ></TT
4572 ></A
4573 ></P
4574 ></LI
4575 ><LI
4576 ><P
4577 ><A
4578 HREF="index.html#WIDELINKS"
4579 ><TT
4580 CLASS="PARAMETER"
4581 ><I
4582 >wide links</I
4583 ></TT
4584 ></A
4585 ></P
4586 ></LI
4587 ><LI
4588 ><P
4589 ><A
4590 HREF="index.html#WRITABLE"
4591 ><TT
4592 CLASS="PARAMETER"
4593 ><I
4594 >writable</I
4595 ></TT
4596 ></A
4597 ></P
4598 ></LI
4599 ><LI
4600 ><P
4601 ><A
4602 HREF="index.html#WRITECACHESIZE"
4603 ><TT
4604 CLASS="PARAMETER"
4605 ><I
4606 >write cache size</I
4607 ></TT
4608 ></A
4609 ></P
4610 ></LI
4611 ><LI
4612 ><P
4613 ><A
4614 HREF="index.html#WRITELIST"
4615 ><TT
4616 CLASS="PARAMETER"
4617 ><I
4618 >write list</I
4619 ></TT
4620 ></A
4621 ></P
4622 ></LI
4623 ><LI
4624 ><P
4625 ><A
4626 HREF="index.html#WRITEOK"
4627 ><TT
4628 CLASS="PARAMETER"
4629 ><I
4630 >write ok</I
4631 ></TT
4632 ></A
4633 ></P
4634 ></LI
4635 ><LI
4636 ><P
4637 ><A
4638 HREF="index.html#WRITEABLE"
4639 ><TT
4640 CLASS="PARAMETER"
4641 ><I
4642 >writeable</I
4643 ></TT
4644 ></A
4645 ></P
4646 ></LI
4647 ></UL
4648 ></DIV
4649 ><DIV
4650 CLASS="REFSECT1"
4651 ><A
4652 NAME="AEN1507"
4653 ></A
4654 ><H2
4655 >EXPLANATION OF EACH PARAMETER</H2
4656 ><P
4657 ></P
4658 ><DIV
4659 CLASS="VARIABLELIST"
4660 ><DL
4661 ><DT
4662 ><A
4663 NAME="ABORTSHUTDOWNSCRIPT"
4664 ></A
4665 >abort shutdown script (G)</DT
4666 ><DD
4667 ><P
4668 ><SPAN
4669 CLASS="emphasis"
4670 ><I
4671 CLASS="EMPHASIS"
4672 >This parameter only exists in the HEAD cvs branch</I
4673 ></SPAN
4674 >
4675                 This a full path name to a script called by
4676                 <A
4677 HREF="smbd.8.html"
4678 TARGET="_top"
4679 ><B
4680 CLASS="COMMAND"
4681 >smbd(8)</B
4682 ></A
4683 >  that
4684                 should stop a shutdown procedure issued by the <A
4685 HREF="index.html#SHUTDOWNSCRIPT"
4686 ><TT
4687 CLASS="PARAMETER"
4688 ><I
4689 >shutdown script</I
4690 ></TT
4691 ></A
4692 >.</P
4693 ><P
4694 >This command will be run as user.</P
4695 ><P
4696 >Default: <SPAN
4697 CLASS="emphasis"
4698 ><I
4699 CLASS="EMPHASIS"
4700 >None</I
4701 ></SPAN
4702 >.</P
4703 ><P
4704 >Example: <B
4705 CLASS="COMMAND"
4706 >abort shutdown script = /sbin/shutdown -c</B
4707 ></P
4708 ></DD
4709 ><DT
4710 ><A
4711 NAME="ADDPRINTERCOMMAND"
4712 ></A
4713 >addprinter command (G)</DT
4714 ><DD
4715 ><P
4716 >With the introduction of MS-RPC based printing
4717                 support for Windows NT/2000 clients in Samba 2.2, The MS Add
4718                 Printer Wizard (APW) icon is now also available in the 
4719                 "Printers..." folder displayed a share listing.  The APW
4720                 allows for printers to be add remotely to a Samba or Windows 
4721                 NT/2000 print server.</P
4722 ><P
4723 >For a Samba host this means that the printer must be 
4724                 physically added to the underlying printing system.  The <TT
4725 CLASS="PARAMETER"
4726 ><I
4727 >add 
4728                 printer command</I
4729 ></TT
4730 > defines a script to be run which 
4731                 will perform the necessary operations for adding the printer
4732                 to the print system and to add the appropriate service definition 
4733                 to the  <TT
4734 CLASS="FILENAME"
4735 >smb.conf</TT
4736 > file in order that it can be 
4737                 shared by <A
4738 HREF="smbd.8.html"
4739 TARGET="_top"
4740 ><B
4741 CLASS="COMMAND"
4742 >smbd(8)</B
4743 >
4744                 </A
4745 >.</P
4746 ><P
4747 >The <TT
4748 CLASS="PARAMETER"
4749 ><I
4750 >addprinter command</I
4751 ></TT
4752 > is
4753                 automatically invoked with the following parameter (in 
4754                 order:</P
4755 ><P
4756 ></P
4757 ><UL
4758 ><LI
4759 ><P
4760 ><TT
4761 CLASS="PARAMETER"
4762 ><I
4763 >printer name</I
4764 ></TT
4765 ></P
4766 ></LI
4767 ><LI
4768 ><P
4769 ><TT
4770 CLASS="PARAMETER"
4771 ><I
4772 >share name</I
4773 ></TT
4774 ></P
4775 ></LI
4776 ><LI
4777 ><P
4778 ><TT
4779 CLASS="PARAMETER"
4780 ><I
4781 >port name</I
4782 ></TT
4783 ></P
4784 ></LI
4785 ><LI
4786 ><P
4787 ><TT
4788 CLASS="PARAMETER"
4789 ><I
4790 >driver name</I
4791 ></TT
4792 ></P
4793 ></LI
4794 ><LI
4795 ><P
4796 ><TT
4797 CLASS="PARAMETER"
4798 ><I
4799 >location</I
4800 ></TT
4801 ></P
4802 ></LI
4803 ><LI
4804 ><P
4805 ><TT
4806 CLASS="PARAMETER"
4807 ><I
4808 >Windows 9x driver location</I
4809 ></TT
4810 >
4811                         </P
4812 ></LI
4813 ></UL
4814 ><P
4815 >All parameters are filled in from the PRINTER_INFO_2 structure sent 
4816                 by the Windows NT/2000 client with one exception.  The "Windows 9x
4817                 driver location" parameter is included for backwards compatibility
4818                 only.  The remaining fields in the structure are generated from answers
4819                 to the APW questions.</P
4820 ><P
4821 >Once the <TT
4822 CLASS="PARAMETER"
4823 ><I
4824 >addprinter command</I
4825 ></TT
4826 > has 
4827                 been executed, <B
4828 CLASS="COMMAND"
4829 >smbd</B
4830 > will reparse the <TT
4831 CLASS="FILENAME"
4832 >               smb.conf</TT
4833 > to determine if the share defined by the APW
4834                 exists.  If the sharename is still invalid, then <B
4835 CLASS="COMMAND"
4836 >smbd
4837                 </B
4838 > will return an ACCESS_DENIED error to the client.</P
4839 ><P
4840 >See also <A
4841 HREF="index.html#DELETEPRINTERCOMMAND"
4842 ><TT
4843 CLASS="PARAMETER"
4844 ><I
4845 >               deleteprinter command</I
4846 ></TT
4847 ></A
4848 >, <A
4849 HREF="index.html#PRINTING"
4850 ><TT
4851 CLASS="PARAMETER"
4852 ><I
4853 >printing</I
4854 ></TT
4855 ></A
4856 >,
4857                 <A
4858 HREF="index.html#SHOWADDPRINTERWIZARD"
4859 ><TT
4860 CLASS="PARAMETER"
4861 ><I
4862 >show add
4863                 printer wizard</I
4864 ></TT
4865 ></A
4866 ></P
4867 ><P
4868 >Default: <SPAN
4869 CLASS="emphasis"
4870 ><I
4871 CLASS="EMPHASIS"
4872 >none</I
4873 ></SPAN
4874 ></P
4875 ><P
4876 >Example: <B
4877 CLASS="COMMAND"
4878 >addprinter command = /usr/bin/addprinter
4879                 </B
4880 ></P
4881 ></DD
4882 ><DT
4883 ><A
4884 NAME="ADDSHARECOMMAND"
4885 ></A
4886 >add share command (G)</DT
4887 ><DD
4888 ><P
4889 >Samba 2.2.0 introduced the ability to dynamically 
4890                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
4891                 <TT
4892 CLASS="PARAMETER"
4893 ><I
4894 >add share command</I
4895 ></TT
4896 > is used to define an 
4897                 external program or script which will add a new service definition 
4898                 to <TT
4899 CLASS="FILENAME"
4900 >smb.conf</TT
4901 >.  In order to successfully 
4902                 execute the <TT
4903 CLASS="PARAMETER"
4904 ><I
4905 >add share command</I
4906 ></TT
4907 >, <B
4908 CLASS="COMMAND"
4909 >smbd</B
4910 >
4911                 requires that the administrator be connected using a root account (i.e. 
4912                 uid == 0).
4913                 </P
4914 ><P
4915 >               When executed, <B
4916 CLASS="COMMAND"
4917 >smbd</B
4918 > will automatically invoke the 
4919                 <TT
4920 CLASS="PARAMETER"
4921 ><I
4922 >add share command</I
4923 ></TT
4924 > with four parameters.
4925                 </P
4926 ><P
4927 ></P
4928 ><UL
4929 ><LI
4930 ><P
4931 ><TT
4932 CLASS="PARAMETER"
4933 ><I
4934 >configFile</I
4935 ></TT
4936 > - the location 
4937                         of the global <TT
4938 CLASS="FILENAME"
4939 >smb.conf</TT
4940 > file. 
4941                         </P
4942 ></LI
4943 ><LI
4944 ><P
4945 ><TT
4946 CLASS="PARAMETER"
4947 ><I
4948 >shareName</I
4949 ></TT
4950 > - the name of the new 
4951                         share.
4952                         </P
4953 ></LI
4954 ><LI
4955 ><P
4956 ><TT
4957 CLASS="PARAMETER"
4958 ><I
4959 >pathName</I
4960 ></TT
4961 > - path to an **existing**
4962                         directory on disk.
4963                         </P
4964 ></LI
4965 ><LI
4966 ><P
4967 ><TT
4968 CLASS="PARAMETER"
4969 ><I
4970 >comment</I
4971 ></TT
4972 > - comment string to associate 
4973                         with the new share.
4974                         </P
4975 ></LI
4976 ></UL
4977 ><P
4978 >               This parameter is only used for add file shares.  To add printer shares, 
4979                 see the <A
4980 HREF="index.html#ADDPRINTERCOMMAND"
4981 ><TT
4982 CLASS="PARAMETER"
4983 ><I
4984 >addprinter 
4985                 command</I
4986 ></TT
4987 ></A
4988 >.
4989                 </P
4990 ><P
4991 >               See also <A
4992 HREF="index.html#CHANGESHARECOMMAND"
4993 ><TT
4994 CLASS="PARAMETER"
4995 ><I
4996 >change share 
4997                 command</I
4998 ></TT
4999 ></A
5000 >, <A
5001 HREF="index.html#DELETESHARECOMMAND"
5002 ><TT
5003 CLASS="PARAMETER"
5004 ><I
5005 >delete share
5006                 command</I
5007 ></TT
5008 ></A
5009 >.
5010                 </P
5011 ><P
5012 >Default: <SPAN
5013 CLASS="emphasis"
5014 ><I
5015 CLASS="EMPHASIS"
5016 >none</I
5017 ></SPAN
5018 ></P
5019 ><P
5020 >Example: <B
5021 CLASS="COMMAND"
5022 >add share command = /usr/local/bin/addshare</B
5023 ></P
5024 ></DD
5025 ><DT
5026 ><A
5027 NAME="ADDMACHINESCRIPT"
5028 ></A
5029 >add machine script (G)</DT
5030 ><DD
5031 ><P
5032 >This is the full pathname to a script that will 
5033                 be run by <A
5034 HREF="smbd.8.html"
5035 TARGET="_top"
5036 >smbd(8)</A
5037 >  when a machine is added
5038                 to it's domain using the administrator username and password method. </P
5039 ><P
5040 >This option is only required when using sam back-ends tied to the
5041                 Unix uid method of RID calculation such as smbpasswd.  This option is only
5042                 available in Samba 3.0.</P
5043 ><P
5044 >Default: <B
5045 CLASS="COMMAND"
5046 >add machine script = &lt;empty string&gt;
5047                 </B
5048 ></P
5049 ><P
5050 >Example: <B
5051 CLASS="COMMAND"
5052 >add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
5053                 </B
5054 ></P
5055 ></DD
5056 ><DT
5057 ><A
5058 NAME="ADSSERVER"
5059 ></A
5060 >ads server (G)</DT
5061 ><DD
5062 ><P
5063 >If this option is specified, samba does 
5064                 not try to figure out what ads server to use itself, but 
5065                 uses the specified ads server. Either one DNS name or IP 
5066                 address can be used.</P
5067 ><P
5068 >Default: <B
5069 CLASS="COMMAND"
5070 >ads server = </B
5071 ></P
5072 ><P
5073 >Example: <B
5074 CLASS="COMMAND"
5075 >ads server = 192.168.1.2</B
5076 ></P
5077 ></DD
5078 ><DT
5079 ><A
5080 NAME="ADDUSERSCRIPT"
5081 ></A
5082 >add user script (G)</DT
5083 ><DD
5084 ><P
5085 >This is the full pathname to a script that will 
5086                 be run <SPAN
5087 CLASS="emphasis"
5088 ><I
5089 CLASS="EMPHASIS"
5090 >AS ROOT</I
5091 ></SPAN
5092 > by <A
5093 HREF="smbd.8.html"
5094 TARGET="_top"
5095 >smbd(8)
5096                 </A
5097 > under special circumstances described below.</P
5098 ><P
5099 >Normally, a Samba server requires that UNIX users are 
5100                 created for all users accessing files on this server. For sites 
5101                 that use Windows NT account databases as their primary user database 
5102                 creating these users and keeping the user list in sync with the 
5103                 Windows NT PDC is an onerous task. This option allows <A
5104 HREF="smbd.8.html"
5105 TARGET="_top"
5106 >smbd</A
5107 > to create the required UNIX users 
5108                 <SPAN
5109 CLASS="emphasis"
5110 ><I
5111 CLASS="EMPHASIS"
5112 >ON DEMAND</I
5113 ></SPAN
5114 > when a user accesses the Samba server.</P
5115 ><P
5116 >In order to use this option, <A
5117 HREF="smbd.8.html"
5118 TARGET="_top"
5119 >smbd</A
5120
5121                 must <SPAN
5122 CLASS="emphasis"
5123 ><I
5124 CLASS="EMPHASIS"
5125 >NOT</I
5126 ></SPAN
5127 > be set to <TT
5128 CLASS="PARAMETER"
5129 ><I
5130 >security = share</I
5131 ></TT
5132 >
5133                 and <TT
5134 CLASS="PARAMETER"
5135 ><I
5136 >add user script</I
5137 ></TT
5138 >
5139                 must be set to a full pathname for a script that will create a UNIX 
5140                 user given one argument of <TT
5141 CLASS="PARAMETER"
5142 ><I
5143 >%u</I
5144 ></TT
5145 >, which expands into 
5146                 the UNIX user name to create.</P
5147 ><P
5148 >When the Windows user attempts to access the Samba server, 
5149                 at login (session setup in the SMB protocol) time, <A
5150 HREF="smbd.8.html"
5151 TARGET="_top"
5152 >               smbd</A
5153 > contacts the <TT
5154 CLASS="PARAMETER"
5155 ><I
5156 >password server</I
5157 ></TT
5158 > and 
5159                 attempts to authenticate the given user with the given password. If the 
5160                 authentication succeeds then <B
5161 CLASS="COMMAND"
5162 >smbd</B
5163
5164                 attempts to find a UNIX user in the UNIX password database to map the 
5165                 Windows user into. If this lookup fails, and <TT
5166 CLASS="PARAMETER"
5167 ><I
5168 >add user script
5169                 </I
5170 ></TT
5171 > is set then <B
5172 CLASS="COMMAND"
5173 >smbd</B
5174 > will
5175                 call the specified script <SPAN
5176 CLASS="emphasis"
5177 ><I
5178 CLASS="EMPHASIS"
5179 >AS ROOT</I
5180 ></SPAN
5181 >, expanding 
5182                 any <TT
5183 CLASS="PARAMETER"
5184 ><I
5185 >%u</I
5186 ></TT
5187 > argument to be the user name to create.</P
5188 ><P
5189 >If this script successfully creates the user then <B
5190 CLASS="COMMAND"
5191 >smbd
5192                 </B
5193 > will continue on as though the UNIX user
5194                 already existed. In this way, UNIX users are dynamically created to
5195                 match existing Windows NT accounts.</P
5196 ><P
5197 >See also <A
5198 HREF="index.html#SECURITY"
5199 ><TT
5200 CLASS="PARAMETER"
5201 ><I
5202 >               security</I
5203 ></TT
5204 ></A
5205 >, <A
5206 HREF="index.html#PASSWORDSERVER"
5207 >               <TT
5208 CLASS="PARAMETER"
5209 ><I
5210 >password server</I
5211 ></TT
5212 ></A
5213 >, 
5214                 <A
5215 HREF="index.html#DELETEUSERSCRIPT"
5216 ><TT
5217 CLASS="PARAMETER"
5218 ><I
5219 >delete user 
5220                 script</I
5221 ></TT
5222 ></A
5223 >.</P
5224 ><P
5225 >Default: <B
5226 CLASS="COMMAND"
5227 >add user script = &lt;empty string&gt;
5228                 </B
5229 ></P
5230 ><P
5231 >Example: <B
5232 CLASS="COMMAND"
5233 >add user script = /usr/local/samba/bin/add_user 
5234                 %u</B
5235 ></P
5236 ></DD
5237 ><DT
5238 ><A
5239 NAME="ADDGROUPSCRIPT"
5240 ></A
5241 >add group script (G)</DT
5242 ><DD
5243 ><P
5244 >This is the full pathname to a script that will 
5245                 be run <SPAN
5246 CLASS="emphasis"
5247 ><I
5248 CLASS="EMPHASIS"
5249 >AS ROOT</I
5250 ></SPAN
5251 > by <A
5252 HREF="smbd.8.html"
5253 TARGET="_top"
5254 >smbd(8)</A
5255 > when a new group is requested. It will expand any <TT
5256 CLASS="PARAMETER"
5257 ><I
5258 >%g</I
5259 ></TT
5260 > to the group name passed.  This script is only useful for installations using the Windows NT domain administration tools.
5261                 </P
5262 ></DD
5263 ><DT
5264 ><A
5265 NAME="ADMINUSERS"
5266 ></A
5267 >admin users (S)</DT
5268 ><DD
5269 ><P
5270 >This is a list of users who will be granted 
5271                 administrative privileges on the share. This means that they 
5272                 will do all file operations as the super-user (root).</P
5273 ><P
5274 >You should use this option very carefully, as any user in 
5275                 this list will be able to do anything they like on the share, 
5276                 irrespective of file permissions.</P
5277 ><P
5278 >Default: <SPAN
5279 CLASS="emphasis"
5280 ><I
5281 CLASS="EMPHASIS"
5282 >no admin users</I
5283 ></SPAN
5284 ></P
5285 ><P
5286 >Example: <B
5287 CLASS="COMMAND"
5288 >admin users = jason</B
5289 ></P
5290 ></DD
5291 ><DT
5292 ><A
5293 NAME="ADDUSERTOGROUPSCRIPT"
5294 ></A
5295 >add user to group script (G)</DT
5296 ><DD
5297 ><P
5298 >Full path to the script that will be called when 
5299                 a user is added to a group using the Windows NT domain administration 
5300                 tools. It will be run by <A
5301 HREF="smbd.8.html"
5302 TARGET="_top"
5303 >smbd(8)</A
5304
5305                 <SPAN
5306 CLASS="emphasis"
5307 ><I
5308 CLASS="EMPHASIS"
5309 >AS ROOT</I
5310 ></SPAN
5311 >. Any <TT
5312 CLASS="PARAMETER"
5313 ><I
5314 >%g</I
5315 ></TT
5316 > will be 
5317                 replaced with the group name and any <TT
5318 CLASS="PARAMETER"
5319 ><I
5320 >%u</I
5321 ></TT
5322 > will 
5323                 be replaced with the user name.
5324                 </P
5325 ><P
5326 >Default: <B
5327 CLASS="COMMAND"
5328 >add user to group script = </B
5329 ></P
5330 ><P
5331 >Example: <B
5332 CLASS="COMMAND"
5333 >add user to group script = /usr/sbin/adduser %u %g</B
5334 ></P
5335 ></DD
5336 ><DT
5337 ><A
5338 NAME="ALLOWHOSTS"
5339 ></A
5340 >allow hosts (S)</DT
5341 ><DD
5342 ><P
5343 >Synonym for <A
5344 HREF="index.html#HOSTSALLOW"
5345 >               <TT
5346 CLASS="PARAMETER"
5347 ><I
5348 >hosts allow</I
5349 ></TT
5350 ></A
5351 >.</P
5352 ></DD
5353 ><DT
5354 ><A
5355 NAME="ALGORITHMICRIDBASE"
5356 ></A
5357 >algorithmic rid base (G)</DT
5358 ><DD
5359 ><P
5360 >This determines how Samba will use its
5361                 algorithmic mapping from uids/gid to the RIDs needed to construct
5362                 NT Security Identifiers.</P
5363 ><P
5364 >Setting this option to a larger value could be useful to sites
5365                 transitioning from WinNT and Win2k, as existing user and 
5366                 group rids would otherwise clash with sytem users etc. 
5367                 </P
5368 ><P
5369 >All UIDs and GIDs must be able to be resolved into SIDs for  
5370                 the correct operation of ACLs on the server.  As such the algorithmic
5371                 mapping can't be 'turned off', but pushing it 'out of the way' should
5372                 resolve the issues.  Users and groups can then be assigned 'low' RIDs
5373                 in arbitary-rid supporting backends. </P
5374 ><P
5375 >Default: <B
5376 CLASS="COMMAND"
5377 >algorithmic rid base = 1000</B
5378 ></P
5379 ><P
5380 >Example: <B
5381 CLASS="COMMAND"
5382 >algorithmic rid base = 100000</B
5383 ></P
5384 ></DD
5385 ><DT
5386 ><A
5387 NAME="ALLOWTRUSTEDDOMAINS"
5388 ></A
5389 >allow trusted domains (G)</DT
5390 ><DD
5391 ><P
5392 >This option only takes effect when the <A
5393 HREF="index.html#SECURITY"
5394 ><TT
5395 CLASS="PARAMETER"
5396 ><I
5397 >security</I
5398 ></TT
5399 ></A
5400 > option is set to 
5401                 <TT
5402 CLASS="CONSTANT"
5403 >server</TT
5404 > or <TT
5405 CLASS="CONSTANT"
5406 >domain</TT
5407 >.  
5408                 If it is set to no, then attempts to connect to a resource from 
5409                 a domain or workgroup other than the one which <A
5410 HREF="smbd.8.html"
5411 TARGET="_top"
5412 >smbd</A
5413 > is running 
5414                 in will fail, even if that domain is trusted by the remote server 
5415                 doing the authentication.</P
5416 ><P
5417 >This is useful if you only want your Samba server to 
5418                 serve resources to users in the domain it is a member of. As 
5419                 an example, suppose that there are two domains DOMA and DOMB.  DOMB 
5420                 is trusted by DOMA, which contains the Samba server.  Under normal 
5421                 circumstances, a user with an account in DOMB can then access the 
5422                 resources of a UNIX account with the same account name on the 
5423                 Samba server even if they do not have an account in DOMA.  This 
5424                 can make implementing a security boundary difficult.</P
5425 ><P
5426 >Default: <B
5427 CLASS="COMMAND"
5428 >allow trusted domains = yes</B
5429 ></P
5430 ></DD
5431 ><DT
5432 ><A
5433 NAME="ANNOUNCEAS"
5434 ></A
5435 >announce as (G)</DT
5436 ><DD
5437 ><P
5438 >This specifies what type of server 
5439                 <A
5440 HREF="nmbd.8.html"
5441 TARGET="_top"
5442 ><B
5443 CLASS="COMMAND"
5444 >nmbd</B
5445 ></A
5446
5447                 will announce itself as, to a network neighborhood browse 
5448                 list. By default this is set to Windows NT. The valid options 
5449                 are : "NT Server" (which can also be written as "NT"), 
5450                 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, 
5451                 Windows NT Workstation, Windows 95 and Windows for Workgroups 
5452                 respectively. Do not change this parameter unless you have a 
5453                 specific need to stop Samba appearing as an NT server as this 
5454                 may prevent Samba servers from participating as browser servers 
5455                 correctly.</P
5456 ><P
5457 >Default: <B
5458 CLASS="COMMAND"
5459 >announce as = NT Server</B
5460 ></P
5461 ><P
5462 >Example: <B
5463 CLASS="COMMAND"
5464 >announce as = Win95</B
5465 ></P
5466 ></DD
5467 ><DT
5468 ><A
5469 NAME="ANNOUNCEVERSION"
5470 ></A
5471 >announce version (G)</DT
5472 ><DD
5473 ><P
5474 >This specifies the major and minor version numbers 
5475                 that nmbd will use when announcing itself as a server. The default 
5476                 is 4.2.  Do not change this parameter unless you have a specific 
5477                 need to set a Samba server to be a downlevel server.</P
5478 ><P
5479 >Default: <B
5480 CLASS="COMMAND"
5481 >announce version = 4.5</B
5482 ></P
5483 ><P
5484 >Example: <B
5485 CLASS="COMMAND"
5486 >announce version = 2.0</B
5487 ></P
5488 ></DD
5489 ><DT
5490 ><A
5491 NAME="AUTOSERVICES"
5492 ></A
5493 >auto services (G)</DT
5494 ><DD
5495 ><P
5496 >This is a synonym for the <A
5497 HREF="index.html#PRELOAD"
5498 >               <TT
5499 CLASS="PARAMETER"
5500 ><I
5501 >preload</I
5502 ></TT
5503 ></A
5504 >.</P
5505 ></DD
5506 ><DT
5507 ><A
5508 NAME="AUTHMETHODS"
5509 ></A
5510 >auth methods (G)</DT
5511 ><DD
5512 ><P
5513 >This option allows the administrator to chose what
5514                 authentication methods <B
5515 CLASS="COMMAND"
5516 >smbd</B
5517 > will use when authenticating
5518                 a user.  This option defaults to sensible values based on <A
5519 HREF="index.html#SECURITY"
5520 ><TT
5521 CLASS="PARAMETER"
5522 ><I
5523 >               security</I
5524 ></TT
5525 ></A
5526 >.
5527
5528                 Each entry in the list attempts to authenticate the user in turn, until
5529                 the user authenticates.  In practice only one method will ever actually 
5530                 be able to complete the authentication.
5531                 </P
5532 ><P
5533 >Default: <B
5534 CLASS="COMMAND"
5535 >auth methods = &lt;empty string&gt;</B
5536 ></P
5537 ><P
5538 >Example: <B
5539 CLASS="COMMAND"
5540 >auth methods = guest sam ntdomain</B
5541 ></P
5542 ></DD
5543 ><DT
5544 ><A
5545 NAME="AVAILABLE"
5546 ></A
5547 >available (S)</DT
5548 ><DD
5549 ><P
5550 >This parameter lets you "turn off" a service. If 
5551                 <TT
5552 CLASS="PARAMETER"
5553 ><I
5554 >available = no</I
5555 ></TT
5556 >, then <SPAN
5557 CLASS="emphasis"
5558 ><I
5559 CLASS="EMPHASIS"
5560 >ALL</I
5561 ></SPAN
5562
5563                 attempts to connect to the service will fail. Such failures are 
5564                 logged.</P
5565 ><P
5566 >Default: <B
5567 CLASS="COMMAND"
5568 >available = yes</B
5569 ></P
5570 ></DD
5571 ><DT
5572 ><A
5573 NAME="BINDINTERFACESONLY"
5574 ></A
5575 >bind interfaces only (G)</DT
5576 ><DD
5577 ><P
5578 >This global parameter allows the Samba admin 
5579                 to limit what interfaces on a machine will serve SMB requests. If 
5580                 affects file service <A
5581 HREF="smbd.8.html"
5582 TARGET="_top"
5583 >smbd(8)</A
5584 > and 
5585                 name service <A
5586 HREF="nmbd.8.html"
5587 TARGET="_top"
5588 >nmbd(8)</A
5589 > in slightly 
5590                 different ways.</P
5591 ><P
5592 >For name service it causes <B
5593 CLASS="COMMAND"
5594 >nmbd</B
5595 > to bind 
5596                 to ports 137 and 138 on the interfaces listed in the <A
5597 HREF="index.html#INTERFACES"
5598 >interfaces</A
5599 > parameter. <B
5600 CLASS="COMMAND"
5601 >nmbd
5602                 </B
5603 > also binds to the "all addresses" interface (0.0.0.0) 
5604                 on ports 137 and 138 for the purposes of reading broadcast messages. 
5605                 If this option is not set then <B
5606 CLASS="COMMAND"
5607 >nmbd</B
5608 > will service 
5609                 name requests on all of these sockets. If <TT
5610 CLASS="PARAMETER"
5611 ><I
5612 >bind interfaces
5613                 only</I
5614 ></TT
5615 > is set then <B
5616 CLASS="COMMAND"
5617 >nmbd</B
5618 > will check the 
5619                 source address of any packets coming in on the broadcast sockets 
5620                 and discard any that don't match the broadcast addresses of the 
5621                 interfaces in the <TT
5622 CLASS="PARAMETER"
5623 ><I
5624 >interfaces</I
5625 ></TT
5626 > parameter list. 
5627                 As unicast packets are received on the other sockets it allows 
5628                 <B
5629 CLASS="COMMAND"
5630 >nmbd</B
5631 > to refuse to serve names to machines that 
5632                 send packets that arrive through any interfaces not listed in the
5633                 <TT
5634 CLASS="PARAMETER"
5635 ><I
5636 >interfaces</I
5637 ></TT
5638 > list.  IP Source address spoofing
5639                 does defeat this simple check, however so it must not be used
5640                 seriously as a security feature for <B
5641 CLASS="COMMAND"
5642 >nmbd</B
5643 >.</P
5644 ><P
5645 >For file service it causes <A
5646 HREF="smbd.8.html"
5647 TARGET="_top"
5648 >smbd(8)</A
5649 >
5650                 to bind only to the interface list given in the <A
5651 HREF="index.html#INTERFACES"
5652 >               interfaces</A
5653 > parameter. This restricts the networks that 
5654                 <B
5655 CLASS="COMMAND"
5656 >smbd</B
5657 > will serve to packets coming in those 
5658                 interfaces.  Note that you should not use this parameter for machines 
5659                 that are serving PPP or other intermittent or non-broadcast network 
5660                 interfaces as it will not cope with non-permanent interfaces.</P
5661 ><P
5662 >If <TT
5663 CLASS="PARAMETER"
5664 ><I
5665 >bind interfaces only</I
5666 ></TT
5667 > is set then 
5668                 unless the network address <SPAN
5669 CLASS="emphasis"
5670 ><I
5671 CLASS="EMPHASIS"
5672 >127.0.0.1</I
5673 ></SPAN
5674 > is added 
5675                 to the <TT
5676 CLASS="PARAMETER"
5677 ><I
5678 >interfaces</I
5679 ></TT
5680 > parameter list <A
5681 HREF="smbpasswd.8.html"
5682 TARGET="_top"
5683 ><B
5684 CLASS="COMMAND"
5685 >smbpasswd(8)</B
5686 ></A
5687
5688                 and <A
5689 HREF="swat.8.html"
5690 TARGET="_top"
5691 ><B
5692 CLASS="COMMAND"
5693 >swat(8)</B
5694 ></A
5695 > may 
5696                 not work as expected due to the reasons covered below.</P
5697 ><P
5698 >To change a users SMB password, the <B
5699 CLASS="COMMAND"
5700 >smbpasswd</B
5701 >
5702                 by default connects to the <SPAN
5703 CLASS="emphasis"
5704 ><I
5705 CLASS="EMPHASIS"
5706 >localhost - 127.0.0.1</I
5707 ></SPAN
5708
5709                 address as an SMB client to issue the password change request. If 
5710                 <TT
5711 CLASS="PARAMETER"
5712 ><I
5713 >bind interfaces only</I
5714 ></TT
5715 > is set then unless the 
5716                 network address <SPAN
5717 CLASS="emphasis"
5718 ><I
5719 CLASS="EMPHASIS"
5720 >127.0.0.1</I
5721 ></SPAN
5722 > is added to the
5723                 <TT
5724 CLASS="PARAMETER"
5725 ><I
5726 >interfaces</I
5727 ></TT
5728 > parameter list then <B
5729 CLASS="COMMAND"
5730 >               smbpasswd</B
5731 > will fail to connect in it's default mode. 
5732                 <B
5733 CLASS="COMMAND"
5734 >smbpasswd</B
5735 > can be forced to use the primary IP interface 
5736                 of the local host by using its <A
5737 HREF="smbpasswd.8.html#minusr"
5738 TARGET="_top"
5739 >               <TT
5740 CLASS="PARAMETER"
5741 ><I
5742 >-r <TT
5743 CLASS="REPLACEABLE"
5744 ><I
5745 >remote machine</I
5746 ></TT
5747 ></I
5748 ></TT
5749 >
5750                 </A
5751 > parameter, with <TT
5752 CLASS="REPLACEABLE"
5753 ><I
5754 >remote machine</I
5755 ></TT
5756 > set 
5757                 to the IP name of the primary interface of the local host.</P
5758 ><P
5759 >The <B
5760 CLASS="COMMAND"
5761 >swat</B
5762 > status page tries to connect with
5763                 <B
5764 CLASS="COMMAND"
5765 >smbd</B
5766 > and <B
5767 CLASS="COMMAND"
5768 >nmbd</B
5769 > at the address 
5770                 <SPAN
5771 CLASS="emphasis"
5772 ><I
5773 CLASS="EMPHASIS"
5774 >127.0.0.1</I
5775 ></SPAN
5776 > to determine if they are running.  
5777                 Not adding <SPAN
5778 CLASS="emphasis"
5779 ><I
5780 CLASS="EMPHASIS"
5781 >127.0.0.1</I
5782 ></SPAN
5783 >  will cause <B
5784 CLASS="COMMAND"
5785 >               smbd</B
5786 > and <B
5787 CLASS="COMMAND"
5788 >nmbd</B
5789 > to always show
5790                 "not running" even if they really are.  This can prevent <B
5791 CLASS="COMMAND"
5792 >               swat</B
5793 > from starting/stopping/restarting <B
5794 CLASS="COMMAND"
5795 >smbd</B
5796 >
5797                 and <B
5798 CLASS="COMMAND"
5799 >nmbd</B
5800 >.</P
5801 ><P
5802 >Default: <B
5803 CLASS="COMMAND"
5804 >bind interfaces only = no</B
5805 ></P
5806 ></DD
5807 ><DT
5808 ><A
5809 NAME="BLOCKINGLOCKS"
5810 ></A
5811 >blocking locks (S)</DT
5812 ><DD
5813 ><P
5814 >This parameter controls the behavior of <A
5815 HREF="smbd.8.html"
5816 TARGET="_top"
5817 >smbd(8)</A
5818 > when given a request by a client 
5819                 to obtain a byte range lock on a region of an open file, and the 
5820                 request has a time limit associated with it.</P
5821 ><P
5822 >If this parameter is set and the lock range requested 
5823                 cannot be immediately satisfied, Samba 2.2 will internally 
5824                 queue the lock request, and periodically attempt to obtain 
5825                 the lock until the timeout period expires.</P
5826 ><P
5827 >If this parameter is set to <TT
5828 CLASS="CONSTANT"
5829 >false</TT
5830 >, then 
5831                 Samba 2.2 will behave as previous versions of Samba would and 
5832                 will fail the lock request immediately if the lock range 
5833                 cannot be obtained.</P
5834 ><P
5835 >Default: <B
5836 CLASS="COMMAND"
5837 >blocking locks = yes</B
5838 ></P
5839 ></DD
5840 ><DT
5841 ><A
5842 NAME="BLOCKSIZE"
5843 ></A
5844 >block size (S)</DT
5845 ><DD
5846 ><P
5847 >This parameter controls the behavior of 
5848                 <A
5849 HREF="smbd.8.html"
5850 TARGET="_top"
5851 >smbd(8)</A
5852 > when reporting disk free 
5853                 sizes. By default, this reports a disk block size of 1024 bytes.
5854                 </P
5855 ><P
5856 >Changing this parameter may have some effect on the
5857                 efficiency of client writes, this is not yet confirmed. This
5858                 parameter was added to allow advanced administrators to change
5859                 it (usually to a higher value) and test the effect it has on
5860                 client write performance without re-compiling the code. As this
5861                 is an experimental option it may be removed in a future release.
5862                 </P
5863 ><P
5864 >Changing this option does not change the disk free reporting
5865                 size, just the block size unit reported to the client.</P
5866 ><P
5867 >Default: <B
5868 CLASS="COMMAND"
5869 >block size = 1024</B
5870 ></P
5871 ><P
5872 >Example: <B
5873 CLASS="COMMAND"
5874 >block size = 65536</B
5875 ></P
5876 ></DD
5877 ><DT
5878 ><A
5879 NAME="BROWSABLE"
5880 ></A
5881 >browsable (S)</DT
5882 ><DD
5883 ><P
5884 >See the <A
5885 HREF="index.html#BROWSEABLE"
5886 ><TT
5887 CLASS="PARAMETER"
5888 ><I
5889 >               browseable</I
5890 ></TT
5891 ></A
5892 >.</P
5893 ></DD
5894 ><DT
5895 ><A
5896 NAME="BROWSELIST"
5897 ></A
5898 >browse list (G)</DT
5899 ><DD
5900 ><P
5901 >This controls whether <A
5902 HREF="smbd.8.html"
5903 TARGET="_top"
5904 >               <B
5905 CLASS="COMMAND"
5906 >smbd(8)</B
5907 ></A
5908 > will serve a browse list to 
5909                 a client doing a <B
5910 CLASS="COMMAND"
5911 >NetServerEnum</B
5912 > call. Normally 
5913                 set to <TT
5914 CLASS="CONSTANT"
5915 >true</TT
5916 >. You should never need to change 
5917                 this.</P
5918 ><P
5919 >Default: <B
5920 CLASS="COMMAND"
5921 >browse list = yes</B
5922 ></P
5923 ></DD
5924 ><DT
5925 ><A
5926 NAME="BROWSEABLE"
5927 ></A
5928 >browseable (S)</DT
5929 ><DD
5930 ><P
5931 >This controls whether this share is seen in 
5932                 the list of available shares in a net view and in the browse list.</P
5933 ><P
5934 >Default: <B
5935 CLASS="COMMAND"
5936 >browseable = yes</B
5937 ></P
5938 ></DD
5939 ><DT
5940 ><A
5941 NAME="CASESENSITIVE"
5942 ></A
5943 >case sensitive (S)</DT
5944 ><DD
5945 ><P
5946 >See the discussion in the section <A
5947 HREF="index.html#AEN203"
5948 >NAME MANGLING</A
5949 >.</P
5950 ><P
5951 >Default: <B
5952 CLASS="COMMAND"
5953 >case sensitive = no</B
5954 ></P
5955 ></DD
5956 ><DT
5957 ><A
5958 NAME="CASESIGNAMES"
5959 ></A
5960 >casesignames (S)</DT
5961 ><DD
5962 ><P
5963 >Synonym for <A
5964 HREF="index.html#CASESENSITIVE"
5965 >case 
5966                 sensitive</A
5967 >.</P
5968 ></DD
5969 ><DT
5970 ><A
5971 NAME="CHANGENOTIFYTIMEOUT"
5972 ></A
5973 >change notify timeout (G)</DT
5974 ><DD
5975 ><P
5976 >This SMB allows a client to tell a server to 
5977                 "watch" a particular directory for any changes and only reply to
5978                 the SMB request when a change has occurred. Such constant scanning of
5979                 a directory is expensive under UNIX, hence an <A
5980 HREF="smbd.8.html"
5981 TARGET="_top"
5982 >               <B
5983 CLASS="COMMAND"
5984 >smbd(8)</B
5985 ></A
5986 > daemon only performs such a scan 
5987                 on each requested directory once every <TT
5988 CLASS="PARAMETER"
5989 ><I
5990 >change notify 
5991                 timeout</I
5992 ></TT
5993 > seconds.</P
5994 ><P
5995 >Default: <B
5996 CLASS="COMMAND"
5997 >change notify timeout = 60</B
5998 ></P
5999 ><P
6000 >Example: <B
6001 CLASS="COMMAND"
6002 >change notify timeout = 300</B
6003 ></P
6004 ><P
6005 >Would change the scan time to every 5 minutes.</P
6006 ></DD
6007 ><DT
6008 ><A
6009 NAME="CHANGESHARECOMMAND"
6010 ></A
6011 >change share command (G)</DT
6012 ><DD
6013 ><P
6014 >Samba 2.2.0 introduced the ability to dynamically 
6015                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6016                 <TT
6017 CLASS="PARAMETER"
6018 ><I
6019 >change share command</I
6020 ></TT
6021 > is used to define an 
6022                 external program or script which will modify an existing service definition 
6023                 in <TT
6024 CLASS="FILENAME"
6025 >smb.conf</TT
6026 >.  In order to successfully 
6027                 execute the <TT
6028 CLASS="PARAMETER"
6029 ><I
6030 >change share command</I
6031 ></TT
6032 >, <B
6033 CLASS="COMMAND"
6034 >smbd</B
6035 >
6036                 requires that the administrator be connected using a root account (i.e. 
6037                 uid == 0).
6038                 </P
6039 ><P
6040 >               When executed, <B
6041 CLASS="COMMAND"
6042 >smbd</B
6043 > will automatically invoke the 
6044                 <TT
6045 CLASS="PARAMETER"
6046 ><I
6047 >change share command</I
6048 ></TT
6049 > with four parameters.
6050                 </P
6051 ><P
6052 ></P
6053 ><UL
6054 ><LI
6055 ><P
6056 ><TT
6057 CLASS="PARAMETER"
6058 ><I
6059 >configFile</I
6060 ></TT
6061 > - the location 
6062                         of the global <TT
6063 CLASS="FILENAME"
6064 >smb.conf</TT
6065 > file. 
6066                         </P
6067 ></LI
6068 ><LI
6069 ><P
6070 ><TT
6071 CLASS="PARAMETER"
6072 ><I
6073 >shareName</I
6074 ></TT
6075 > - the name of the new 
6076                         share.
6077                         </P
6078 ></LI
6079 ><LI
6080 ><P
6081 ><TT
6082 CLASS="PARAMETER"
6083 ><I
6084 >pathName</I
6085 ></TT
6086 > - path to an **existing**
6087                         directory on disk.
6088                         </P
6089 ></LI
6090 ><LI
6091 ><P
6092 ><TT
6093 CLASS="PARAMETER"
6094 ><I
6095 >comment</I
6096 ></TT
6097 > - comment string to associate 
6098                         with the new share.
6099                         </P
6100 ></LI
6101 ></UL
6102 ><P
6103 >               This parameter is only used modify existing file shares definitions.  To modify 
6104                 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
6105                 </P
6106 ><P
6107 >               See also <A
6108 HREF="index.html#ADDSHARECOMMAND"
6109 ><TT
6110 CLASS="PARAMETER"
6111 ><I
6112 >add share
6113                 command</I
6114 ></TT
6115 ></A
6116 >, <A
6117 HREF="index.html#DELETESHARECOMMAND"
6118 ><TT
6119 CLASS="PARAMETER"
6120 ><I
6121 >delete 
6122                 share command</I
6123 ></TT
6124 ></A
6125 >.
6126                 </P
6127 ><P
6128 >Default: <SPAN
6129 CLASS="emphasis"
6130 ><I
6131 CLASS="EMPHASIS"
6132 >none</I
6133 ></SPAN
6134 ></P
6135 ><P
6136 >Example: <B
6137 CLASS="COMMAND"
6138 >change share command = /usr/local/bin/addshare</B
6139 ></P
6140 ></DD
6141 ><DT
6142 ><A
6143 NAME="COMMENT"
6144 ></A
6145 >comment (S)</DT
6146 ><DD
6147 ><P
6148 >This is a text field that is seen next to a share 
6149                 when a client does a queries the server, either via the network 
6150                 neighborhood or via <B
6151 CLASS="COMMAND"
6152 >net view</B
6153 > to list what shares 
6154                 are available.</P
6155 ><P
6156 >If you want to set the string that is displayed next to the 
6157                 machine name then see the <A
6158 HREF="index.html#SERVERSTRING"
6159 ><TT
6160 CLASS="PARAMETER"
6161 ><I
6162 >               server string</I
6163 ></TT
6164 ></A
6165 > parameter.</P
6166 ><P
6167 >Default: <SPAN
6168 CLASS="emphasis"
6169 ><I
6170 CLASS="EMPHASIS"
6171 >No comment string</I
6172 ></SPAN
6173 ></P
6174 ><P
6175 >Example: <B
6176 CLASS="COMMAND"
6177 >comment = Fred's Files</B
6178 ></P
6179 ></DD
6180 ><DT
6181 ><A
6182 NAME="CONFIGFILE"
6183 ></A
6184 >config file (G)</DT
6185 ><DD
6186 ><P
6187 >This allows you to override the config file 
6188                 to use, instead of the default (usually <TT
6189 CLASS="FILENAME"
6190 >smb.conf</TT
6191 >). 
6192                 There is a chicken and egg problem here as this option is set 
6193                 in the config file!</P
6194 ><P
6195 >For this reason, if the name of the config file has changed 
6196                 when the parameters are loaded then it will reload them from 
6197                 the new config file.</P
6198 ><P
6199 >This option takes the usual substitutions, which can 
6200                 be very useful.</P
6201 ><P
6202 >If the config file doesn't exist then it won't be loaded 
6203                 (allowing you to special case the config files of just a few 
6204                 clients).</P
6205 ><P
6206 >Example: <B
6207 CLASS="COMMAND"
6208 >config file = /usr/local/samba/lib/smb.conf.%m
6209                 </B
6210 ></P
6211 ></DD
6212 ><DT
6213 ><A
6214 NAME="COPY"
6215 ></A
6216 >copy (S)</DT
6217 ><DD
6218 ><P
6219 >This parameter allows you to "clone" service 
6220                 entries. The specified service is simply duplicated under the 
6221                 current service's name. Any parameters specified in the current 
6222                 section will override those in the section being copied.</P
6223 ><P
6224 >This feature lets you set up a 'template' service and 
6225                 create similar services easily. Note that the service being 
6226                 copied must occur earlier in the configuration file than the 
6227                 service doing the copying.</P
6228 ><P
6229 >Default: <SPAN
6230 CLASS="emphasis"
6231 ><I
6232 CLASS="EMPHASIS"
6233 >no value</I
6234 ></SPAN
6235 ></P
6236 ><P
6237 >Example: <B
6238 CLASS="COMMAND"
6239 >copy = otherservice</B
6240 ></P
6241 ></DD
6242 ><DT
6243 ><A
6244 NAME="CREATEMASK"
6245 ></A
6246 >create mask (S)</DT
6247 ><DD
6248 ><P
6249 >A synonym for this parameter is 
6250                 <A
6251 HREF="index.html#CREATEMODE"
6252 ><TT
6253 CLASS="PARAMETER"
6254 ><I
6255 >create mode</I
6256 ></TT
6257 >
6258                 </A
6259 >.</P
6260 ><P
6261 >When a file is created, the necessary permissions are 
6262                 calculated according to the mapping from DOS modes to UNIX 
6263                 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed 
6264                 with this parameter. This parameter may be thought of as a bit-wise 
6265                 MASK for the UNIX modes of a file. Any bit <SPAN
6266 CLASS="emphasis"
6267 ><I
6268 CLASS="EMPHASIS"
6269 >not</I
6270 ></SPAN
6271
6272                 set here will be removed from the modes set on a file when it is 
6273                 created.</P
6274 ><P
6275 >The default value of this parameter removes the 
6276                 'group' and 'other' write and execute bits from the UNIX modes.</P
6277 ><P
6278 >Following this Samba will bit-wise 'OR' the UNIX mode created 
6279                 from this parameter with the value of the <A
6280 HREF="index.html#FORCECREATEMODE"
6281 ><TT
6282 CLASS="PARAMETER"
6283 ><I
6284 >force create mode</I
6285 ></TT
6286 ></A
6287 >
6288                 parameter which is set to 000 by default.</P
6289 ><P
6290 >This parameter does not affect directory modes. See the 
6291                 parameter <A
6292 HREF="index.html#DIRECTORYMODE"
6293 ><TT
6294 CLASS="PARAMETER"
6295 ><I
6296 >directory mode
6297                 </I
6298 ></TT
6299 ></A
6300 > for details.</P
6301 ><P
6302 >See also the <A
6303 HREF="index.html#FORCECREATEMODE"
6304 ><TT
6305 CLASS="PARAMETER"
6306 ><I
6307 >force 
6308                 create mode</I
6309 ></TT
6310 ></A
6311 > parameter for forcing particular mode 
6312                 bits to be set on created files. See also the <A
6313 HREF="index.html#DIRECTORYMODE"
6314 >               <TT
6315 CLASS="PARAMETER"
6316 ><I
6317 >directory mode</I
6318 ></TT
6319 ></A
6320 > parameter for masking 
6321                 mode bits on created directories.  See also the <A
6322 HREF="index.html#INHERITPERMISSIONS"
6323 >               <TT
6324 CLASS="PARAMETER"
6325 ><I
6326 >inherit permissions</I
6327 ></TT
6328 ></A
6329 > parameter.</P
6330 ><P
6331 >Note that this parameter does not apply to permissions
6332                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
6333                 a mask on access control lists also, they need to set the <A
6334 HREF="index.html#SECURITYMASK"
6335 ><TT
6336 CLASS="PARAMETER"
6337 ><I
6338 >security mask</I
6339 ></TT
6340 ></A
6341 >.</P
6342 ><P
6343 >Default: <B
6344 CLASS="COMMAND"
6345 >create mask = 0744</B
6346 ></P
6347 ><P
6348 >Example: <B
6349 CLASS="COMMAND"
6350 >create mask = 0775</B
6351 ></P
6352 ></DD
6353 ><DT
6354 ><A
6355 NAME="CREATEMODE"
6356 ></A
6357 >create mode (S)</DT
6358 ><DD
6359 ><P
6360 >This is a synonym for <A
6361 HREF="index.html#CREATEMASK"
6362 ><TT
6363 CLASS="PARAMETER"
6364 ><I
6365 >               create mask</I
6366 ></TT
6367 ></A
6368 >.</P
6369 ></DD
6370 ><DT
6371 ><A
6372 NAME="CSCPOLICY"
6373 ></A
6374 >csc policy (S)</DT
6375 ><DD
6376 ><P
6377 >This stands for <SPAN
6378 CLASS="emphasis"
6379 ><I
6380 CLASS="EMPHASIS"
6381 >client-side caching 
6382                 policy</I
6383 ></SPAN
6384 >, and specifies how clients capable of offline
6385                 caching will cache the files in the share. The valid values
6386                 are: manual, documents, programs, disable.</P
6387 ><P
6388 >These values correspond to those used on Windows
6389                 servers.</P
6390 ><P
6391 >For example, shares containing roaming profiles can have
6392                 offline caching disabled using <B
6393 CLASS="COMMAND"
6394 >csc policy = disable
6395                 </B
6396 >.</P
6397 ><P
6398 >Default: <B
6399 CLASS="COMMAND"
6400 >csc policy = manual</B
6401 ></P
6402 ><P
6403 >Example: <B
6404 CLASS="COMMAND"
6405 >csc policy = programs</B
6406 ></P
6407 ></DD
6408 ><DT
6409 ><A
6410 NAME="DEADTIME"
6411 ></A
6412 >deadtime (G)</DT
6413 ><DD
6414 ><P
6415 >The value of the parameter (a decimal integer) 
6416                 represents the number of minutes of inactivity before a connection 
6417                 is considered dead, and it is disconnected. The deadtime only takes 
6418                 effect if the number of open files is zero.</P
6419 ><P
6420 >This is useful to stop a server's resources being 
6421                 exhausted by a large number of inactive connections.</P
6422 ><P
6423 >Most clients have an auto-reconnect feature when a 
6424                 connection is broken so in most cases this parameter should be 
6425                 transparent to users.</P
6426 ><P
6427 >Using this parameter with a timeout of a few minutes 
6428                 is recommended for most systems.</P
6429 ><P
6430 >A deadtime of zero indicates that no auto-disconnection 
6431                 should be performed.</P
6432 ><P
6433 >Default: <B
6434 CLASS="COMMAND"
6435 >deadtime = 0</B
6436 ></P
6437 ><P
6438 >Example: <B
6439 CLASS="COMMAND"
6440 >deadtime = 15</B
6441 ></P
6442 ></DD
6443 ><DT
6444 ><A
6445 NAME="DEBUGHIRESTIMESTAMP"
6446 ></A
6447 >debug hires timestamp (G)</DT
6448 ><DD
6449 ><P
6450 >Sometimes the timestamps in the log messages 
6451                 are needed with a resolution of higher that seconds, this 
6452                 boolean parameter adds microsecond resolution to the timestamp 
6453                 message header when turned on.</P
6454 ><P
6455 >Note that the parameter <A
6456 HREF="index.html#DEBUGTIMESTAMP"
6457 ><TT
6458 CLASS="PARAMETER"
6459 ><I
6460 >               debug timestamp</I
6461 ></TT
6462 ></A
6463 > must be on for this to have an 
6464                 effect.</P
6465 ><P
6466 >Default: <B
6467 CLASS="COMMAND"
6468 >debug hires timestamp = no</B
6469 ></P
6470 ></DD
6471 ><DT
6472 ><A
6473 NAME="DEBUGPID"
6474 ></A
6475 >debug pid (G)</DT
6476 ><DD
6477 ><P
6478 >When using only one log file for more then one 
6479                 forked <A
6480 HREF="smbd.8.html"
6481 TARGET="_top"
6482 >smbd</A
6483 >-process there may be hard to follow which process 
6484                 outputs which message. This boolean parameter is adds the process-id 
6485                 to the timestamp message headers in the logfile when turned on.</P
6486 ><P
6487 >Note that the parameter <A
6488 HREF="index.html#DEBUGTIMESTAMP"
6489 ><TT
6490 CLASS="PARAMETER"
6491 ><I
6492 >               debug timestamp</I
6493 ></TT
6494 ></A
6495 > must be on for this to have an 
6496                 effect.</P
6497 ><P
6498 >Default: <B
6499 CLASS="COMMAND"
6500 >debug pid = no</B
6501 ></P
6502 ></DD
6503 ><DT
6504 ><A
6505 NAME="DEBUGTIMESTAMP"
6506 ></A
6507 >debug timestamp (G)</DT
6508 ><DD
6509 ><P
6510 >Samba 2.2 debug log messages are timestamped 
6511                 by default. If you are running at a high <A
6512 HREF="index.html#DEBUGLEVEL"
6513 >               <TT
6514 CLASS="PARAMETER"
6515 ><I
6516 >debug level</I
6517 ></TT
6518 ></A
6519 > these timestamps
6520                 can be distracting. This boolean parameter allows timestamping 
6521                 to be turned off.</P
6522 ><P
6523 >Default: <B
6524 CLASS="COMMAND"
6525 >debug timestamp = yes</B
6526 ></P
6527 ></DD
6528 ><DT
6529 ><A
6530 NAME="DEBUGUID"
6531 ></A
6532 >debug uid (G)</DT
6533 ><DD
6534 ><P
6535 >Samba is sometimes run as root and sometime 
6536                 run as the connected user, this boolean parameter inserts the 
6537                 current euid, egid, uid and gid to the timestamp message headers 
6538                 in the log file if turned on.</P
6539 ><P
6540 >Note that the parameter <A
6541 HREF="index.html#DEBUGTIMESTAMP"
6542 ><TT
6543 CLASS="PARAMETER"
6544 ><I
6545 >               debug timestamp</I
6546 ></TT
6547 ></A
6548 > must be on for this to have an 
6549                 effect.</P
6550 ><P
6551 >Default: <B
6552 CLASS="COMMAND"
6553 >debug uid = no</B
6554 ></P
6555 ></DD
6556 ><DT
6557 ><A
6558 NAME="DEBUGLEVEL"
6559 ></A
6560 >debuglevel (G)</DT
6561 ><DD
6562 ><P
6563 >Synonym for <A
6564 HREF="index.html#LOGLEVEL"
6565 ><TT
6566 CLASS="PARAMETER"
6567 ><I
6568 >               log level</I
6569 ></TT
6570 ></A
6571 >.</P
6572 ></DD
6573 ><DT
6574 ><A
6575 NAME="DEFAULT"
6576 ></A
6577 >default (G)</DT
6578 ><DD
6579 ><P
6580 >A synonym for <A
6581 HREF="index.html#DEFAULTSERVICE"
6582 ><TT
6583 CLASS="PARAMETER"
6584 ><I
6585 >               default service</I
6586 ></TT
6587 ></A
6588 >.</P
6589 ></DD
6590 ><DT
6591 ><A
6592 NAME="DEFAULTCASE"
6593 ></A
6594 >default case (S)</DT
6595 ><DD
6596 ><P
6597 >See the section on <A
6598 HREF="index.html#AEN203"
6599 >               NAME MANGLING</A
6600 >. Also note the <A
6601 HREF="index.html#SHORTPRESERVECASE"
6602 >               <TT
6603 CLASS="PARAMETER"
6604 ><I
6605 >short preserve case</I
6606 ></TT
6607 ></A
6608 > parameter.</P
6609 ><P
6610 >Default: <B
6611 CLASS="COMMAND"
6612 >default case = lower</B
6613 ></P
6614 ></DD
6615 ><DT
6616 ><A
6617 NAME="DEFAULTDEVMODE"
6618 ></A
6619 >default devmode (S)</DT
6620 ><DD
6621 ><P
6622 >This parameter is only applicable to <A
6623 HREF="index.html#PRINTOK"
6624 >printable</A
6625 > services.  When smbd is serving
6626                 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
6627                 server has a Device Mode which defines things such as paper size and
6628                 orientation and duplex settings.  The device mode can only correctly be
6629                 generated by the printer driver itself (which can only be executed on a
6630                 Win32 platform).  Because smbd is unable to execute the driver code
6631                 to generate the device mode, the default behavior is to set this field
6632                 to NULL.
6633                 </P
6634 ><P
6635 >Most problems with serving printer drivers to Windows NT/2k/XP clients
6636                 can be traced to a problem with the generated device mode.  Certain drivers
6637                 will do things such as crashing the client's Explorer.exe with a NULL devmode.
6638                 However, other printer drivers can cause the client's spooler service
6639                 (spoolsv.exe) to die if the devmode was not created by the driver itself
6640                 (i.e. smbd generates a default devmode).
6641                 </P
6642 ><P
6643 >This parameter should be used with care and tested with the printer
6644                 driver in question.  It is better to leave the device mode to NULL
6645                 and let the Windows client set the correct values.  Because drivers do not
6646                 do this all the time, setting <B
6647 CLASS="COMMAND"
6648 >default devmode = yes</B
6649 >
6650                 will instruct smbd to generate a default one.
6651                 </P
6652 ><P
6653 >For more information on Windows NT/2k printing and Device Modes,
6654                 see the <A
6655 HREF="http://msdn.microsoft.com/"
6656 TARGET="_top"
6657 >MSDN documentation</A
6658 >.
6659                 </P
6660 ><P
6661 >Default: <B
6662 CLASS="COMMAND"
6663 >default devmode = no</B
6664 ></P
6665 ></DD
6666 ><DT
6667 ><A
6668 NAME="DEFAULTSERVICE"
6669 ></A
6670 >default service (G)</DT
6671 ><DD
6672 ><P
6673 >This parameter specifies the name of a service
6674                 which will be connected to if the service actually requested cannot
6675                 be found. Note that the square brackets are <SPAN
6676 CLASS="emphasis"
6677 ><I
6678 CLASS="EMPHASIS"
6679 >NOT</I
6680 ></SPAN
6681 >
6682                 given in the parameter value (see example below).</P
6683 ><P
6684 >There is no default value for this parameter. If this 
6685                 parameter is not given, attempting to connect to a nonexistent 
6686                 service results in an error.</P
6687 ><P
6688 >Typically the default service would be a <A
6689 HREF="index.html#GUESTOK"
6690 >               <TT
6691 CLASS="PARAMETER"
6692 ><I
6693 >guest ok</I
6694 ></TT
6695 ></A
6696 >, <A
6697 HREF="index.html#READONLY"
6698 >               <TT
6699 CLASS="PARAMETER"
6700 ><I
6701 >read-only</I
6702 ></TT
6703 ></A
6704 > service.</P
6705 ><P
6706 >Also note that the apparent service name will be changed 
6707                 to equal that of the requested service, this is very useful as it 
6708                 allows you to use macros like <TT
6709 CLASS="PARAMETER"
6710 ><I
6711 >%S</I
6712 ></TT
6713 > to make 
6714                 a wildcard service.</P
6715 ><P
6716 >Note also that any "_" characters in the name of the service 
6717                 used in the default service will get mapped to a "/". This allows for
6718                 interesting things.</P
6719 ><P
6720 >Example:</P
6721 ><P
6722 ><PRE
6723 CLASS="PROGRAMLISTING"
6724 >[global]
6725         default service = pub
6726         
6727 [pub]
6728         path = /%S
6729                 </PRE
6730 ></P
6731 ></DD
6732 ><DT
6733 ><A
6734 NAME="DELETEGROUPSCRIPT"
6735 ></A
6736 >delete group script (G)</DT
6737 ><DD
6738 ><P
6739 >This is the full pathname to a script that will 
6740                 be run <SPAN
6741 CLASS="emphasis"
6742 ><I
6743 CLASS="EMPHASIS"
6744 >AS ROOT</I
6745 ></SPAN
6746 > by <A
6747 HREF="smbd.8.html"
6748 TARGET="_top"
6749 >smbd(8)</A
6750 > when a group is requested to be deleted. It will expand any <TT
6751 CLASS="PARAMETER"
6752 ><I
6753 >%g</I
6754 ></TT
6755 > to the group name passed.  This script is only useful for installations using the Windows NT domain administration tools.
6756                 </P
6757 ></DD
6758 ><DT
6759 ><A
6760 NAME="DELETEPRINTERCOMMAND"
6761 ></A
6762 >deleteprinter command (G)</DT
6763 ><DD
6764 ><P
6765 >With the introduction of MS-RPC based printer
6766                 support for Windows NT/2000 clients in Samba 2.2, it is now 
6767                 possible to delete printer at run time by issuing the 
6768                 DeletePrinter() RPC call.</P
6769 ><P
6770 >For a Samba host this means that the printer must be 
6771                 physically deleted from underlying printing system.  The <TT
6772 CLASS="PARAMETER"
6773 ><I
6774 >               deleteprinter command</I
6775 ></TT
6776 > defines a script to be run which 
6777                 will perform the necessary operations for removing the printer
6778                 from the print system and from <TT
6779 CLASS="FILENAME"
6780 >smb.conf</TT
6781 >.
6782                 </P
6783 ><P
6784 >The <TT
6785 CLASS="PARAMETER"
6786 ><I
6787 >deleteprinter command</I
6788 ></TT
6789 > is 
6790                 automatically called with only one parameter: <TT
6791 CLASS="PARAMETER"
6792 ><I
6793 >               "printer name"</I
6794 ></TT
6795 >.</P
6796 ><P
6797 >Once the <TT
6798 CLASS="PARAMETER"
6799 ><I
6800 >deleteprinter command</I
6801 ></TT
6802 > has 
6803                 been executed, <B
6804 CLASS="COMMAND"
6805 >smbd</B
6806 > will reparse the <TT
6807 CLASS="FILENAME"
6808 >               smb.conf</TT
6809 > to associated printer no longer exists.  
6810                 If the sharename is still valid, then <B
6811 CLASS="COMMAND"
6812 >smbd
6813                 </B
6814 > will return an ACCESS_DENIED error to the client.</P
6815 ><P
6816 >See also <A
6817 HREF="index.html#ADDPRINTERCOMMAND"
6818 ><TT
6819 CLASS="PARAMETER"
6820 ><I
6821 >               addprinter command</I
6822 ></TT
6823 ></A
6824 >, <A
6825 HREF="index.html#PRINTING"
6826 ><TT
6827 CLASS="PARAMETER"
6828 ><I
6829 >printing</I
6830 ></TT
6831 ></A
6832 >,
6833                 <A
6834 HREF="index.html#SHOWADDPRINTERWIZARD"
6835 ><TT
6836 CLASS="PARAMETER"
6837 ><I
6838 >show add
6839                 printer wizard</I
6840 ></TT
6841 ></A
6842 ></P
6843 ><P
6844 >Default: <SPAN
6845 CLASS="emphasis"
6846 ><I
6847 CLASS="EMPHASIS"
6848 >none</I
6849 ></SPAN
6850 ></P
6851 ><P
6852 >Example: <B
6853 CLASS="COMMAND"
6854 >deleteprinter command = /usr/bin/removeprinter
6855                 </B
6856 ></P
6857 ></DD
6858 ><DT
6859 ><A
6860 NAME="DELETEREADONLY"
6861 ></A
6862 >delete readonly (S)</DT
6863 ><DD
6864 ><P
6865 >This parameter allows readonly files to be deleted.  
6866                 This is not normal DOS semantics, but is allowed by UNIX.</P
6867 ><P
6868 >This option may be useful for running applications such 
6869                 as rcs, where UNIX file ownership prevents changing file 
6870                 permissions, and DOS semantics prevent deletion of a read only file.</P
6871 ><P
6872 >Default: <B
6873 CLASS="COMMAND"
6874 >delete readonly = no</B
6875 ></P
6876 ></DD
6877 ><DT
6878 ><A
6879 NAME="DELETESHARECOMMAND"
6880 ></A
6881 >delete share command (G)</DT
6882 ><DD
6883 ><P
6884 >Samba 2.2.0 introduced the ability to dynamically 
6885                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6886                 <TT
6887 CLASS="PARAMETER"
6888 ><I
6889 >delete share command</I
6890 ></TT
6891 > is used to define an 
6892                 external program or script which will remove an existing service 
6893                 definition from <TT
6894 CLASS="FILENAME"
6895 >smb.conf</TT
6896 >.  In order to successfully 
6897                 execute the <TT
6898 CLASS="PARAMETER"
6899 ><I
6900 >delete share command</I
6901 ></TT
6902 >, <B
6903 CLASS="COMMAND"
6904 >smbd</B
6905 >
6906                 requires that the administrator be connected using a root account (i.e. 
6907                 uid == 0).
6908                 </P
6909 ><P
6910 >               When executed, <B
6911 CLASS="COMMAND"
6912 >smbd</B
6913 > will automatically invoke the 
6914                 <TT
6915 CLASS="PARAMETER"
6916 ><I
6917 >delete share command</I
6918 ></TT
6919 > with two parameters.
6920                 </P
6921 ><P
6922 ></P
6923 ><UL
6924 ><LI
6925 ><P
6926 ><TT
6927 CLASS="PARAMETER"
6928 ><I
6929 >configFile</I
6930 ></TT
6931 > - the location 
6932                         of the global <TT
6933 CLASS="FILENAME"
6934 >smb.conf</TT
6935 > file. 
6936                         </P
6937 ></LI
6938 ><LI
6939 ><P
6940 ><TT
6941 CLASS="PARAMETER"
6942 ><I
6943 >shareName</I
6944 ></TT
6945 > - the name of 
6946                         the existing service.
6947                         </P
6948 ></LI
6949 ></UL
6950 ><P
6951 >               This parameter is only used to remove file shares.  To delete printer shares, 
6952                 see the <A
6953 HREF="index.html#DELETEPRINTERCOMMAND"
6954 ><TT
6955 CLASS="PARAMETER"
6956 ><I
6957 >deleteprinter 
6958                 command</I
6959 ></TT
6960 ></A
6961 >.
6962                 </P
6963 ><P
6964 >               See also <A
6965 HREF="index.html#ADDSHARECOMMAND"
6966 ><TT
6967 CLASS="PARAMETER"
6968 ><I
6969 >add share
6970                 command</I
6971 ></TT
6972 ></A
6973 >, <A
6974 HREF="index.html#CHANGESHARECOMMAND"
6975 ><TT
6976 CLASS="PARAMETER"
6977 ><I
6978 >change 
6979                 share command</I
6980 ></TT
6981 ></A
6982 >.
6983                 </P
6984 ><P
6985 >Default: <SPAN
6986 CLASS="emphasis"
6987 ><I
6988 CLASS="EMPHASIS"
6989 >none</I
6990 ></SPAN
6991 ></P
6992 ><P
6993 >Example: <B
6994 CLASS="COMMAND"
6995 >delete share command = /usr/local/bin/delshare</B
6996 ></P
6997 ></DD
6998 ><DT
6999 ><A
7000 NAME="DELETEUSERSCRIPT"
7001 ></A
7002 >delete user script (G)</DT
7003 ><DD
7004 ><P
7005 >This is the full pathname to a script that will 
7006                 be run by <A
7007 HREF="smbd.8.html"
7008 TARGET="_top"
7009 ><B
7010 CLASS="COMMAND"
7011 >smbd(8)</B
7012 ></A
7013 >
7014                 when managing user's with remote RPC (NT) tools.
7015                 </P
7016 ><P
7017 >This script is called when a remote client removes a user
7018                 from the server, normally using 'User Manager for Domains' or
7019                 <B
7020 CLASS="COMMAND"
7021 >rpcclient</B
7022 >.
7023                 </P
7024 ><P
7025 >This script should delete the given UNIX username. 
7026                 </P
7027 ><P
7028 >Default: <B
7029 CLASS="COMMAND"
7030 >delete user script = &lt;empty string&gt;
7031                 </B
7032 ></P
7033 ><P
7034 >Example: <B
7035 CLASS="COMMAND"
7036 >delete user script = /usr/local/samba/bin/del_user 
7037                 %u</B
7038 ></P
7039 ></DD
7040 ><DT
7041 ><A
7042 NAME="DELETEUSERFROMGROUPSCRIPT"
7043 ></A
7044 >delete user from group script (G)</DT
7045 ><DD
7046 ><P
7047 >Full path to the script that will be called when 
7048                 a user is removed from a group using the Windows NT domain administration 
7049                 tools. It will be run by <A
7050 HREF="smbd.8.html"
7051 TARGET="_top"
7052 >smbd(8)</A
7053
7054                 <SPAN
7055 CLASS="emphasis"
7056 ><I
7057 CLASS="EMPHASIS"
7058 >AS ROOT</I
7059 ></SPAN
7060 >. Any <TT
7061 CLASS="PARAMETER"
7062 ><I
7063 >%g</I
7064 ></TT
7065 > will be 
7066                 replaced with the group name and any <TT
7067 CLASS="PARAMETER"
7068 ><I
7069 >%u</I
7070 ></TT
7071 > will 
7072                 be replaced with the user name.
7073                 </P
7074 ><P
7075 >Default: <B
7076 CLASS="COMMAND"
7077 >delete user from group script = </B
7078 ></P
7079 ><P
7080 >Example: <B
7081 CLASS="COMMAND"
7082 >delete user from group script = /usr/sbin/deluser %u %g</B
7083 ></P
7084 ></DD
7085 ><DT
7086 ><A
7087 NAME="DELETEVETOFILES"
7088 ></A
7089 >delete veto files (S)</DT
7090 ><DD
7091 ><P
7092 >This option is used when Samba is attempting to 
7093                 delete a directory that contains one or more vetoed directories 
7094                 (see the <A
7095 HREF="index.html#VETOFILES"
7096 ><TT
7097 CLASS="PARAMETER"
7098 ><I
7099 >veto files</I
7100 ></TT
7101 ></A
7102 >
7103                 option).  If this option is set to <TT
7104 CLASS="CONSTANT"
7105 >false</TT
7106 > (the default) then if a vetoed 
7107                 directory contains any non-vetoed files or directories then the 
7108                 directory delete will fail. This is usually what you want.</P
7109 ><P
7110 >If this option is set to <TT
7111 CLASS="CONSTANT"
7112 >true</TT
7113 >, then Samba 
7114                 will attempt to recursively delete any files and directories within 
7115                 the vetoed directory. This can be useful for integration with file 
7116                 serving systems such as NetAtalk which create meta-files within 
7117                 directories you might normally veto DOS/Windows users from seeing 
7118                 (e.g. <TT
7119 CLASS="FILENAME"
7120 >.AppleDouble</TT
7121 >)</P
7122 ><P
7123 >Setting <B
7124 CLASS="COMMAND"
7125 >delete veto files = yes</B
7126 > allows these 
7127                 directories to be  transparently deleted when the parent directory 
7128                 is deleted (so long as the user has permissions to do so).</P
7129 ><P
7130 >See also the <A
7131 HREF="index.html#VETOFILES"
7132 ><TT
7133 CLASS="PARAMETER"
7134 ><I
7135 >veto 
7136                 files</I
7137 ></TT
7138 ></A
7139 > parameter.</P
7140 ><P
7141 >Default: <B
7142 CLASS="COMMAND"
7143 >delete veto files = no</B
7144 ></P
7145 ></DD
7146 ><DT
7147 ><A
7148 NAME="DENYHOSTS"
7149 ></A
7150 >deny hosts (S)</DT
7151 ><DD
7152 ><P
7153 >Synonym for <A
7154 HREF="index.html#HOSTSDENY"
7155 ><TT
7156 CLASS="PARAMETER"
7157 ><I
7158 >hosts 
7159                 deny</I
7160 ></TT
7161 ></A
7162 >.</P
7163 ></DD
7164 ><DT
7165 ><A
7166 NAME="DFREECOMMAND"
7167 ></A
7168 >dfree command (G)</DT
7169 ><DD
7170 ><P
7171 >The <TT
7172 CLASS="PARAMETER"
7173 ><I
7174 >dfree command</I
7175 ></TT
7176 > setting should 
7177                 only be used on systems where a problem occurs with the internal 
7178                 disk space calculations. This has been known to happen with Ultrix, 
7179                 but may occur with other operating systems. The symptom that was 
7180                 seen was an error of "Abort Retry Ignore" at the end of each 
7181                 directory listing.</P
7182 ><P
7183 >This setting allows the replacement of the internal routines to
7184                 calculate the total disk space and amount available with an external
7185                 routine. The example below gives a possible script that might fulfill
7186                 this function.</P
7187 ><P
7188 >The external program will be passed a single parameter indicating 
7189                 a directory in the filesystem being queried. This will typically consist
7190                 of the string <TT
7191 CLASS="FILENAME"
7192 >./</TT
7193 >. The script should return two 
7194                 integers in ASCII. The first should be the total disk space in blocks, 
7195                 and the second should be the number of available blocks. An optional 
7196                 third return value can give the block size in bytes. The default 
7197                 blocksize is 1024 bytes.</P
7198 ><P
7199 >Note: Your script should <SPAN
7200 CLASS="emphasis"
7201 ><I
7202 CLASS="EMPHASIS"
7203 >NOT</I
7204 ></SPAN
7205 > be setuid or 
7206                 setgid and should be owned by (and writeable only by) root!</P
7207 ><P
7208 >Default: <SPAN
7209 CLASS="emphasis"
7210 ><I
7211 CLASS="EMPHASIS"
7212 >By default internal routines for 
7213                 determining the disk capacity and remaining space will be used.
7214                 </I
7215 ></SPAN
7216 ></P
7217 ><P
7218 >Example: <B
7219 CLASS="COMMAND"
7220 >dfree command = /usr/local/samba/bin/dfree
7221                 </B
7222 ></P
7223 ><P
7224 >Where the script dfree (which must be made executable) could be:</P
7225 ><P
7226 ><PRE
7227 CLASS="PROGRAMLISTING"
7228
7229                 #!/bin/sh
7230                 df $1 | tail -1 | awk '{print $2" "$4}'
7231                 </PRE
7232 ></P
7233 ><P
7234 >or perhaps (on Sys V based systems):</P
7235 ><P
7236 ><PRE
7237 CLASS="PROGRAMLISTING"
7238
7239                 #!/bin/sh
7240                 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
7241                 </PRE
7242 ></P
7243 ><P
7244 >Note that you may have to replace the command names 
7245                 with full path names on some systems.</P
7246 ></DD
7247 ><DT
7248 ><A
7249 NAME="DIRECTORY"
7250 ></A
7251 >directory (S)</DT
7252 ><DD
7253 ><P
7254 >Synonym for <A
7255 HREF="index.html#PATH"
7256 ><TT
7257 CLASS="PARAMETER"
7258 ><I
7259 >path
7260                 </I
7261 ></TT
7262 ></A
7263 >.</P
7264 ></DD
7265 ><DT
7266 ><A
7267 NAME="DIRECTORYMASK"
7268 ></A
7269 >directory mask (S)</DT
7270 ><DD
7271 ><P
7272 >This parameter is the octal modes which are 
7273                 used when converting DOS modes to UNIX modes when creating UNIX 
7274                 directories.</P
7275 ><P
7276 >When a directory is created, the necessary permissions are 
7277                 calculated according to the mapping from DOS modes to UNIX permissions, 
7278                 and the resulting UNIX mode is then bit-wise 'AND'ed with this 
7279                 parameter. This parameter may be thought of as a bit-wise MASK for 
7280                 the UNIX modes of a directory. Any bit <SPAN
7281 CLASS="emphasis"
7282 ><I
7283 CLASS="EMPHASIS"
7284 >not</I
7285 ></SPAN
7286 > set 
7287                 here will be removed from the modes set on a directory when it is 
7288                 created.</P
7289 ><P
7290 >The default value of this parameter removes the 'group' 
7291                 and 'other' write bits from the UNIX mode, allowing only the 
7292                 user who owns the directory to modify it.</P
7293 ><P
7294 >Following this Samba will bit-wise 'OR' the UNIX mode 
7295                 created from this parameter with the value of the <A
7296 HREF="index.html#FORCEDIRECTORYMODE"
7297 ><TT
7298 CLASS="PARAMETER"
7299 ><I
7300 >force directory mode
7301                 </I
7302 ></TT
7303 ></A
7304 > parameter. This parameter is set to 000 by 
7305                 default (i.e. no extra mode bits are added).</P
7306 ><P
7307 >Note that this parameter does not apply to permissions
7308                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
7309                 a mask on access control lists also, they need to set the <A
7310 HREF="index.html#DIRECTORYSECURITYMASK"
7311 ><TT
7312 CLASS="PARAMETER"
7313 ><I
7314 >directory security mask</I
7315 ></TT
7316 ></A
7317 >.</P
7318 ><P
7319 >See the <A
7320 HREF="index.html#FORCEDIRECTORYMODE"
7321 ><TT
7322 CLASS="PARAMETER"
7323 ><I
7324 >force 
7325                 directory mode</I
7326 ></TT
7327 ></A
7328 > parameter to cause particular mode 
7329                 bits to always be set on created directories.</P
7330 ><P
7331 >See also the <A
7332 HREF="index.html#CREATEMODE"
7333 ><TT
7334 CLASS="PARAMETER"
7335 ><I
7336 >create mode
7337                 </I
7338 ></TT
7339 ></A
7340 > parameter for masking mode bits on created files, 
7341                 and the <A
7342 HREF="index.html#DIRECTORYSECURITYMASK"
7343 ><TT
7344 CLASS="PARAMETER"
7345 ><I
7346 >directory 
7347                 security mask</I
7348 ></TT
7349 ></A
7350 > parameter.</P
7351 ><P
7352 >Also refer to the <A
7353 HREF="index.html#INHERITPERMISSIONS"
7354 ><TT
7355 CLASS="PARAMETER"
7356 ><I
7357 >               inherit permissions</I
7358 ></TT
7359 ></A
7360 > parameter.</P
7361 ><P
7362 >Default: <B
7363 CLASS="COMMAND"
7364 >directory mask = 0755</B
7365 ></P
7366 ><P
7367 >Example: <B
7368 CLASS="COMMAND"
7369 >directory mask = 0775</B
7370 ></P
7371 ></DD
7372 ><DT
7373 ><A
7374 NAME="DIRECTORYMODE"
7375 ></A
7376 >directory mode (S)</DT
7377 ><DD
7378 ><P
7379 >Synonym for <A
7380 HREF="index.html#DIRECTORYMASK"
7381 ><TT
7382 CLASS="PARAMETER"
7383 ><I
7384 >               directory mask</I
7385 ></TT
7386 ></A
7387 ></P
7388 ></DD
7389 ><DT
7390 ><A
7391 NAME="DIRECTORYSECURITYMASK"
7392 ></A
7393 >directory security mask (S)</DT
7394 ><DD
7395 ><P
7396 >This parameter controls what UNIX permission bits 
7397                 can be modified when a Windows NT client is manipulating the UNIX 
7398                 permission on a directory using the native NT security dialog 
7399                 box.</P
7400 ><P
7401 >This parameter is applied as a mask (AND'ed with) to 
7402                 the changed permission bits, thus preventing any bits not in 
7403                 this mask from being modified. Essentially, zero bits in this 
7404                 mask may be treated as a set of bits the user is not allowed 
7405                 to change.</P
7406 ><P
7407 >If not set explicitly this parameter is set to 0777
7408                 meaning a user is allowed to modify all the user/group/world
7409                 permissions on a directory.</P
7410 ><P
7411 ><SPAN
7412 CLASS="emphasis"
7413 ><I
7414 CLASS="EMPHASIS"
7415 >Note</I
7416 ></SPAN
7417 > that users who can access the 
7418                 Samba server through other means can easily bypass this restriction, 
7419                 so it is primarily useful for standalone "appliance" systems.  
7420                 Administrators of most normal systems will probably want to leave
7421                 it as the default of <TT
7422 CLASS="CONSTANT"
7423 >0777</TT
7424 >.</P
7425 ><P
7426 >See also the <A
7427 HREF="index.html#FORCEDIRECTORYSECURITYMODE"
7428 ><TT
7429 CLASS="PARAMETER"
7430 ><I
7431 >               force directory security mode</I
7432 ></TT
7433 ></A
7434 >, <A
7435 HREF="index.html#SECURITYMASK"
7436 ><TT
7437 CLASS="PARAMETER"
7438 ><I
7439 >security mask</I
7440 ></TT
7441 ></A
7442 >, 
7443                 <A
7444 HREF="index.html#FORCESECURITYMODE"
7445 ><TT
7446 CLASS="PARAMETER"
7447 ><I
7448 >force security mode
7449                 </I
7450 ></TT
7451 ></A
7452 > parameters.</P
7453 ><P
7454 >Default: <B
7455 CLASS="COMMAND"
7456 >directory security mask = 0777</B
7457 ></P
7458 ><P
7459 >Example: <B
7460 CLASS="COMMAND"
7461 >directory security mask = 0700</B
7462 ></P
7463 ></DD
7464 ><DT
7465 ><A
7466 NAME="DISABLENETBIOS"
7467 ></A
7468 >disable netbios (G)</DT
7469 ><DD
7470 ><P
7471 >Enabling this parameter will disable netbios support
7472                 in Samba. Netbios is the only available form of browsing in 
7473                 all windows versions except for 2000 and XP. </P
7474 ><P
7475 >Note that clients that only support netbios won't be able to 
7476                 see your samba server when netbios support is disabled.
7477                 </P
7478 ><P
7479 >Default: <B
7480 CLASS="COMMAND"
7481 >disable netbios = no</B
7482 ></P
7483 ><P
7484 >Example: <B
7485 CLASS="COMMAND"
7486 >disable netbios = yes</B
7487 ></P
7488 ></DD
7489 ><DT
7490 ><A
7491 NAME="DISABLESPOOLSS"
7492 ></A
7493 >disable spoolss (G)</DT
7494 ><DD
7495 ><P
7496 >Enabling this parameter will disable Samba's support
7497                 for the SPOOLSS set of MS-RPC's and will yield identical behavior
7498                 as Samba 2.0.x.  Windows NT/2000 clients will downgrade to using
7499                 Lanman style printing commands. Windows 9x/ME will be uneffected by
7500                 the parameter. However, this will also disable the ability to upload
7501                 printer drivers to a Samba server via the Windows NT Add Printer
7502                 Wizard or by using the NT printer properties dialog window.  It will
7503                 also disable the capability of Windows NT/2000 clients to download
7504                 print drivers from the Samba host upon demand.
7505                 <SPAN
7506 CLASS="emphasis"
7507 ><I
7508 CLASS="EMPHASIS"
7509 >Be very careful about enabling this parameter.</I
7510 ></SPAN
7511 >
7512                 </P
7513 ><P
7514 >See also <A
7515 HREF="index.html#USECLIENTDRIVER"
7516 >use client driver</A
7517 >
7518                 </P
7519 ><P
7520 >Default : <B
7521 CLASS="COMMAND"
7522 >disable spoolss = no</B
7523 ></P
7524 ></DD
7525 ><DT
7526 ><A
7527 NAME="DISPLAYCHARSET"
7528 ></A
7529 >display charset (G)</DT
7530 ><DD
7531 ><P
7532 >Specifies the charset that samba will use 
7533                 to print messages to stdout and stderr and SWAT will use. 
7534                 Should generally be the same as the <B
7535 CLASS="COMMAND"
7536 >unix charset</B
7537 >.
7538                 </P
7539 ><P
7540 >Default: <B
7541 CLASS="COMMAND"
7542 >display charset = ASCII</B
7543 ></P
7544 ><P
7545 >Example: <B
7546 CLASS="COMMAND"
7547 >display charset = UTF8</B
7548 ></P
7549 ></DD
7550 ><DT
7551 ><A
7552 NAME="DNSPROXY"
7553 ></A
7554 >dns proxy (G)</DT
7555 ><DD
7556 ><P
7557 >Specifies that <A
7558 HREF="nmbd.8.html"
7559 TARGET="_top"
7560 >nmbd(8)</A
7561
7562                 when acting as a WINS server and finding that a NetBIOS name has not 
7563                 been registered, should treat the NetBIOS name word-for-word as a DNS 
7564                 name and do a lookup with the DNS server for that name on behalf of 
7565                 the name-querying client.</P
7566 ><P
7567 >Note that the maximum length for a NetBIOS name is 15 
7568                 characters, so the DNS name (or DNS alias) can likewise only be 
7569                 15 characters, maximum.</P
7570 ><P
7571 ><B
7572 CLASS="COMMAND"
7573 >nmbd</B
7574 > spawns a second copy of itself to do the
7575                 DNS name lookup requests, as doing a name lookup is a blocking 
7576                 action.</P
7577 ><P
7578 >See also the parameter <A
7579 HREF="index.html#WINSSUPPORT"
7580 ><TT
7581 CLASS="PARAMETER"
7582 ><I
7583 >               wins support</I
7584 ></TT
7585 ></A
7586 >.</P
7587 ><P
7588 >Default: <B
7589 CLASS="COMMAND"
7590 >dns proxy = yes</B
7591 ></P
7592 ></DD
7593 ><DT
7594 ><A
7595 NAME="DOMAINADMINGROUP"
7596 ></A
7597 >domain admin group (G)</DT
7598 ><DD
7599 ><P
7600 >This parameter is intended as a temporary solution
7601                 to enable users to be a member of the "Domain Admins" group when 
7602                 a Samba host is acting as a PDC.  A complete solution will be provided
7603                 by a system for mapping Windows NT/2000 groups onto UNIX groups.
7604                 Please note that this parameter has a somewhat confusing name.  It 
7605                 accepts a list of usernames and of group names in standard 
7606                 <TT
7607 CLASS="FILENAME"
7608 >smb.conf</TT
7609 >       notation.
7610                 </P
7611 ><P
7612 >See also <A
7613 HREF="index.html#DOMAINGUESTGROUP"
7614 ><TT
7615 CLASS="PARAMETER"
7616 ><I
7617 >domain
7618                 guest group</I
7619 ></TT
7620 ></A
7621 >, <A
7622 HREF="index.html#DOMAINLOGONS"
7623 ><TT
7624 CLASS="PARAMETER"
7625 ><I
7626 >domain
7627                 logons</I
7628 ></TT
7629 ></A
7630 >
7631                 </P
7632 ><P
7633 >Default: <SPAN
7634 CLASS="emphasis"
7635 ><I
7636 CLASS="EMPHASIS"
7637 >no domain administrators</I
7638 ></SPAN
7639 ></P
7640 ><P
7641 >Example: <B
7642 CLASS="COMMAND"
7643 >domain admin group = root @wheel</B
7644 ></P
7645 ></DD
7646 ><DT
7647 ><A
7648 NAME="DOMAINGUESTGROUP"
7649 ></A
7650 >domain guest group (G)</DT
7651 ><DD
7652 ><P
7653 >This parameter is intended as a temporary solution
7654                 to enable users to be a member of the "Domain Guests" group when 
7655                 a Samba host is acting as a PDC.  A complete solution will be provided
7656                 by a system for mapping Windows NT/2000 groups onto UNIX groups.
7657                 Please note that this parameter has a somewhat confusing name.  It 
7658                 accepts a list of usernames and of group names in standard 
7659                 <TT
7660 CLASS="FILENAME"
7661 >smb.conf</TT
7662 >       notation.
7663                 </P
7664 ><P
7665 >See also <A
7666 HREF="index.html#DOMAINADMINGROUP"
7667 ><TT
7668 CLASS="PARAMETER"
7669 ><I
7670 >domain
7671                 admin group</I
7672 ></TT
7673 ></A
7674 >, <A
7675 HREF="index.html#DOMAINLOGONS"
7676 ><TT
7677 CLASS="PARAMETER"
7678 ><I
7679 >domain
7680                 logons</I
7681 ></TT
7682 ></A
7683 >
7684                 </P
7685 ><P
7686 >Default: <SPAN
7687 CLASS="emphasis"
7688 ><I
7689 CLASS="EMPHASIS"
7690 >no domain guests</I
7691 ></SPAN
7692 ></P
7693 ><P
7694 >Example: <B
7695 CLASS="COMMAND"
7696 >domain guest group = nobody @guest</B
7697 ></P
7698 ></DD
7699 ><DT
7700 ><A
7701 NAME="DOMAINLOGONS"
7702 ></A
7703 >domain logons (G)</DT
7704 ><DD
7705 ><P
7706 >If set to <TT
7707 CLASS="CONSTANT"
7708 >true</TT
7709 >, the Samba server will serve 
7710                 Windows 95/98 Domain logons for the <A
7711 HREF="index.html#WORKGROUP"
7712 >               <TT
7713 CLASS="PARAMETER"
7714 ><I
7715 >workgroup</I
7716 ></TT
7717 ></A
7718 > it is in. Samba 2.2 also 
7719                 has limited capability to act as a domain controller for Windows 
7720                 NT 4 Domains.  For more details on setting up this feature see 
7721                 the Samba-PDC-HOWTO included in the <TT
7722 CLASS="FILENAME"
7723 >htmldocs/</TT
7724 >
7725                 directory shipped with the source code.</P
7726 ><P
7727 >Default: <B
7728 CLASS="COMMAND"
7729 >domain logons = no</B
7730 ></P
7731 ></DD
7732 ><DT
7733 ><A
7734 NAME="DOMAINMASTER"
7735 ></A
7736 >domain master (G)</DT
7737 ><DD
7738 ><P
7739 >Tell <A
7740 HREF="nmbd.8.html"
7741 TARGET="_top"
7742 ><B
7743 CLASS="COMMAND"
7744 >               nmbd(8)</B
7745 ></A
7746 > to enable WAN-wide browse list
7747                 collation. Setting this option causes <B
7748 CLASS="COMMAND"
7749 >nmbd</B
7750 > to
7751                 claim a special domain specific NetBIOS name that identifies 
7752                 it as a domain master browser for its given <A
7753 HREF="index.html#WORKGROUP"
7754 >               <TT
7755 CLASS="PARAMETER"
7756 ><I
7757 >workgroup</I
7758 ></TT
7759 ></A
7760 >. Local master browsers 
7761                 in the same <TT
7762 CLASS="PARAMETER"
7763 ><I
7764 >workgroup</I
7765 ></TT
7766 > on broadcast-isolated 
7767                 subnets will give this <B
7768 CLASS="COMMAND"
7769 >nmbd</B
7770 > their local browse lists, 
7771                 and then ask <A
7772 HREF="smbd.8.html"
7773 TARGET="_top"
7774 ><B
7775 CLASS="COMMAND"
7776 >smbd(8)</B
7777 ></A
7778
7779                 for a complete copy of the browse list for the whole wide area 
7780                 network.  Browser clients will then contact their local master browser, 
7781                 and will receive the domain-wide browse list, instead of just the list 
7782                 for their broadcast-isolated subnet.</P
7783 ><P
7784 >Note that Windows NT Primary Domain Controllers expect to be 
7785                 able to claim this <TT
7786 CLASS="PARAMETER"
7787 ><I
7788 >workgroup</I
7789 ></TT
7790 > specific special 
7791                 NetBIOS name that identifies them as domain master browsers for 
7792                 that <TT
7793 CLASS="PARAMETER"
7794 ><I
7795 >workgroup</I
7796 ></TT
7797 > by default (i.e. there is no 
7798                 way to prevent a Windows NT PDC from attempting to do this). This 
7799                 means that if this parameter is set and <B
7800 CLASS="COMMAND"
7801 >nmbd</B
7802 > claims 
7803                 the special name for a <TT
7804 CLASS="PARAMETER"
7805 ><I
7806 >workgroup</I
7807 ></TT
7808 > before a Windows 
7809                 NT PDC is able to do so then cross subnet browsing will behave 
7810                 strangely and may fail.</P
7811 ><P
7812 >If <A
7813 HREF="index.html#DOMAINLOGONS"
7814 ><B
7815 CLASS="COMMAND"
7816 >domain logons = yes</B
7817 >
7818                 </A
7819 >, then the default behavior is to enable the <TT
7820 CLASS="PARAMETER"
7821 ><I
7822 >domain 
7823                 master</I
7824 ></TT
7825 > parameter.  If <TT
7826 CLASS="PARAMETER"
7827 ><I
7828 >domain logons</I
7829 ></TT
7830 > is 
7831                 not enabled (the default setting), then neither will <TT
7832 CLASS="PARAMETER"
7833 ><I
7834 >domain 
7835                 master</I
7836 ></TT
7837 > be enabled by default.</P
7838 ><P
7839 >Default: <B
7840 CLASS="COMMAND"
7841 >domain master = auto</B
7842 ></P
7843 ></DD
7844 ><DT
7845 ><A
7846 NAME="DONTDESCEND"
7847 ></A
7848 >dont descend (S)</DT
7849 ><DD
7850 ><P
7851 >There are certain directories on some systems 
7852                 (e.g., the <TT
7853 CLASS="FILENAME"
7854 >/proc</TT
7855 > tree under Linux) that are either not 
7856                 of interest to clients or are infinitely deep (recursive). This 
7857                 parameter allows you to specify a comma-delimited list of directories 
7858                 that the server should always show as empty.</P
7859 ><P
7860 >Note that Samba can be very fussy about the exact format 
7861                 of the "dont descend" entries. For example you may need <TT
7862 CLASS="FILENAME"
7863 >               ./proc</TT
7864 > instead of just <TT
7865 CLASS="FILENAME"
7866 >/proc</TT
7867 >. 
7868                 Experimentation is the best policy :-)  </P
7869 ><P
7870 >Default: <SPAN
7871 CLASS="emphasis"
7872 ><I
7873 CLASS="EMPHASIS"
7874 >none (i.e., all directories are OK 
7875                 to descend)</I
7876 ></SPAN
7877 ></P
7878 ><P
7879 >Example: <B
7880 CLASS="COMMAND"
7881 >dont descend = /proc,/dev</B
7882 ></P
7883 ></DD
7884 ><DT
7885 ><A
7886 NAME="DOSCHARSET"
7887 ></A
7888 >dos charset (G)</DT
7889 ><DD
7890 ><P
7891 >DOS SMB clients assume the server has 
7892                 the same charset as they do. This option specifies which 
7893                 charset Samba should talk to DOS clients.
7894                 </P
7895 ><P
7896 >The default depends on which charsets you have instaled. 
7897                 Samba tries to use charset 850 but falls back to ASCII in 
7898                 case it is not available. Run <A
7899 HREF="testparm.1.html"
7900 TARGET="_top"
7901 >testparm(1)
7902                 </A
7903 > to check the default on your system.
7904                 </P
7905 ></DD
7906 ><DT
7907 ><A
7908 NAME="DOSFILEMODE"
7909 ></A
7910 >dos filemode (S)</DT
7911 ><DD
7912 ><P
7913 > The default behavior in Samba is to provide 
7914                 UNIX-like behavior where only the owner of a file/directory is 
7915                 able to change the permissions on it.  However, this behavior
7916                 is often confusing to  DOS/Windows users.  Enabling this parameter 
7917                 allows a user who has write access to the file (by whatever 
7918                 means) to modify the permissions on it.  Note that a user
7919                 belonging to the group owning the file will not be allowed to
7920                 change permissions if the group is only granted read access.
7921                 Ownership of the file/directory is not changed, only the permissions 
7922                 are modified.</P
7923 ><P
7924 >Default: <B
7925 CLASS="COMMAND"
7926 >dos filemode = no</B
7927 ></P
7928 ></DD
7929 ><DT
7930 ><A
7931 NAME="DOSFILETIMERESOLUTION"
7932 ></A
7933 >dos filetime resolution (S)</DT
7934 ><DD
7935 ><P
7936 >Under the DOS and Windows FAT filesystem, the finest 
7937                 granularity on time resolution is two seconds. Setting this parameter 
7938                 for a share causes Samba to round the reported time down to the 
7939                 nearest two second boundary when a query call that requires one second 
7940                 resolution is made to <A
7941 HREF="smbd.8.html"
7942 TARGET="_top"
7943 ><B
7944 CLASS="COMMAND"
7945 >smbd(8)</B
7946 >
7947                 </A
7948 >.</P
7949 ><P
7950 >This option is mainly used as a compatibility option for Visual 
7951                 C++ when used against Samba shares. If oplocks are enabled on a 
7952                 share, Visual C++ uses two different time reading calls to check if a 
7953                 file has changed since it was last read. One of these calls uses a
7954                 one-second granularity, the other uses a two second granularity. As
7955                 the two second call rounds any odd second down, then if the file has a
7956                 timestamp of an odd number of seconds then the two timestamps will not
7957                 match and Visual C++ will keep reporting the file has changed. Setting
7958                 this option causes the two timestamps to match, and Visual C++ is
7959                 happy.</P
7960 ><P
7961 >Default: <B
7962 CLASS="COMMAND"
7963 >dos filetime resolution = no</B
7964 ></P
7965 ></DD
7966 ><DT
7967 ><A
7968 NAME="DOSFILETIMES"
7969 ></A
7970 >dos filetimes (S)</DT
7971 ><DD
7972 ><P
7973 >Under DOS and Windows, if a user can write to a 
7974                 file they can change the timestamp on it. Under POSIX semantics, 
7975                 only the owner of the file or root may change the timestamp. By 
7976                 default, Samba runs with POSIX semantics and refuses to change the 
7977                 timestamp on a file if the user <B
7978 CLASS="COMMAND"
7979 >smbd</B
7980 > is acting 
7981                 on behalf of is not the file owner. Setting this option to <TT
7982 CLASS="CONSTANT"
7983 >               true</TT
7984 > allows DOS semantics and <A
7985 HREF="smbd.8.html"
7986 TARGET="_top"
7987 >smbd</A
7988 > will change the file 
7989                 timestamp as DOS requires.</P
7990 ><P
7991 >Default: <B
7992 CLASS="COMMAND"
7993 >dos filetimes = no</B
7994 ></P
7995 ></DD
7996 ><DT
7997 ><A
7998 NAME="ENCRYPTPASSWORDS"
7999 ></A
8000 >encrypt passwords (G)</DT
8001 ><DD
8002 ><P
8003 >This boolean controls whether encrypted passwords 
8004                 will be negotiated with the client. Note that Windows NT 4.0 SP3 and 
8005                 above and also Windows 98 will by default expect encrypted passwords 
8006                 unless a registry entry is changed. To use encrypted passwords in 
8007                 Samba see the file ENCRYPTION.txt in the Samba documentation 
8008                 directory <TT
8009 CLASS="FILENAME"
8010 >docs/</TT
8011 > shipped with the source code.</P
8012 ><P
8013 >In order for encrypted passwords to work correctly
8014                 <A
8015 HREF="smbd.8.html"
8016 TARGET="_top"
8017 ><B
8018 CLASS="COMMAND"
8019 >smbd(8)</B
8020 ></A
8021 > must either 
8022                 have access to a local <A
8023 HREF="smbpasswd.5.html"
8024 TARGET="_top"
8025 ><TT
8026 CLASS="FILENAME"
8027 >smbpasswd(5)
8028                 </TT
8029 ></A
8030 > file (see the <A
8031 HREF="smbpasswd.8.html"
8032 TARGET="_top"
8033 ><B
8034 CLASS="COMMAND"
8035 >               smbpasswd(8)</B
8036 ></A
8037 > program for information on how to set up 
8038                 and maintain this file), or set the <A
8039 HREF="index.html#SECURITY"
8040 >security = [server|domain|ads]</A
8041 > parameter which 
8042                 causes <B
8043 CLASS="COMMAND"
8044 >smbd</B
8045 > to authenticate against another 
8046                 server.</P
8047 ><P
8048 >Default: <B
8049 CLASS="COMMAND"
8050 >encrypt passwords = yes</B
8051 ></P
8052 ></DD
8053 ><DT
8054 ><A
8055 NAME="ENHANCEDBROWSING"
8056 ></A
8057 >enhanced browsing (G)</DT
8058 ><DD
8059 ><P
8060 >This option enables a couple of enhancements to 
8061                 cross-subnet browse propagation that have been added in Samba 
8062                 but which are not standard in Microsoft implementations.  
8063                 </P
8064 ><P
8065 >The first enhancement to browse propagation consists of a regular
8066                 wildcard query to a Samba WINS server for all Domain Master Browsers,
8067                 followed by a browse synchronization with each of the returned
8068                 DMBs. The second enhancement consists of a regular randomised browse
8069                 synchronization with all currently known DMBs.</P
8070 ><P
8071 >You may wish to disable this option if you have a problem with empty
8072                 workgroups not disappearing from browse lists. Due to the restrictions
8073                 of the browse protocols these enhancements can cause a empty workgroup
8074                 to stay around forever which can be annoying.</P
8075 ><P
8076 >In general you should leave this option enabled as it makes
8077                 cross-subnet browse propagation much more reliable.</P
8078 ><P
8079 >Default: <B
8080 CLASS="COMMAND"
8081 >enhanced browsing = yes</B
8082 ></P
8083 ></DD
8084 ><DT
8085 ><A
8086 NAME="ENUMPORTSCOMMAND"
8087 ></A
8088 >enumports command (G)</DT
8089 ><DD
8090 ><P
8091 >The concept of a "port" is fairly foreign
8092                 to UNIX hosts.  Under Windows NT/2000 print servers, a port
8093                 is associated with a port monitor and generally takes the form of
8094                 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
8095                 (i.e. LPD Port Monitor, etc...).  By default, Samba has only one
8096                 port defined--<TT
8097 CLASS="CONSTANT"
8098 >"Samba Printer Port"</TT
8099 >.  Under 
8100                 Windows NT/2000, all printers must have a valid port name.  
8101                 If you wish to have a list of ports displayed (<B
8102 CLASS="COMMAND"
8103 >smbd
8104                 </B
8105 > does not use a port name for anything) other than 
8106                 the default <TT
8107 CLASS="CONSTANT"
8108 >"Samba Printer Port"</TT
8109 >, you 
8110                 can define <TT
8111 CLASS="PARAMETER"
8112 ><I
8113 >enumports command</I
8114 ></TT
8115 > to point to
8116                 a program which should generate a list of ports, one per line,
8117                 to standard output.  This listing will then be used in response
8118                 to the level 1 and 2 EnumPorts() RPC.</P
8119 ><P
8120 >Default: <SPAN
8121 CLASS="emphasis"
8122 ><I
8123 CLASS="EMPHASIS"
8124 >no enumports command</I
8125 ></SPAN
8126 ></P
8127 ><P
8128 >Example: <B
8129 CLASS="COMMAND"
8130 >enumports command = /usr/bin/listports
8131                 </B
8132 ></P
8133 ></DD
8134 ><DT
8135 ><A
8136 NAME="EXEC"
8137 ></A
8138 >exec (S)</DT
8139 ><DD
8140 ><P
8141 >This is a synonym for <A
8142 HREF="index.html#PREEXEC"
8143 >               <TT
8144 CLASS="PARAMETER"
8145 ><I
8146 >preexec</I
8147 ></TT
8148 ></A
8149 >.</P
8150 ></DD
8151 ><DT
8152 ><A
8153 NAME="FAKEDIRECTORYCREATETIMES"
8154 ></A
8155 >fake directory create times (S)</DT
8156 ><DD
8157 ><P
8158 >NTFS and Windows VFAT file systems keep a create 
8159                 time for all files and directories. This is not the same as the 
8160                 ctime - status change time - that Unix keeps, so Samba by default 
8161                 reports the earliest of the various times Unix does keep. Setting 
8162                 this parameter for a share causes Samba to always report midnight 
8163                 1-1-1980 as the create time for directories.</P
8164 ><P
8165 >This option is mainly used as a compatibility option for 
8166                 Visual C++ when used against Samba shares. Visual C++ generated 
8167                 makefiles have the object directory as a dependency for each object 
8168                 file, and a make rule to create the directory. Also, when NMAKE 
8169                 compares timestamps it uses the creation time when examining a 
8170                 directory. Thus the object directory will be created if it does not 
8171                 exist, but once it does exist it will always have an earlier 
8172                 timestamp than the object files it contains.</P
8173 ><P
8174 >However, Unix time semantics mean that the create time 
8175                 reported by Samba will be updated whenever a file is created or 
8176                 or deleted in the directory.  NMAKE finds all object files in 
8177                 the object directory.  The timestamp of the last one built is then 
8178                 compared to the timestamp of the object directory.  If the 
8179                 directory's timestamp if newer, then all object files
8180                 will be rebuilt.  Enabling this option 
8181                 ensures directories always predate their contents and an NMAKE build 
8182                 will proceed as expected.</P
8183 ><P
8184 >Default: <B
8185 CLASS="COMMAND"
8186 >fake directory create times = no</B
8187 ></P
8188 ></DD
8189 ><DT
8190 ><A
8191 NAME="FAKEOPLOCKS"
8192 ></A
8193 >fake oplocks (S)</DT
8194 ><DD
8195 ><P
8196 >Oplocks are the way that SMB clients get permission 
8197                 from a server to locally cache file operations. If a server grants 
8198                 an oplock (opportunistic lock) then the client is free to assume 
8199                 that it is the only one accessing the file and it will aggressively 
8200                 cache file data. With some oplock types the client may even cache 
8201                 file open/close operations. This can give enormous performance benefits.
8202                 </P
8203 ><P
8204 >When you set <B
8205 CLASS="COMMAND"
8206 >fake oplocks = yes</B
8207 >, <A
8208 HREF="smbd.8.html"
8209 TARGET="_top"
8210 ><B
8211 CLASS="COMMAND"
8212 >smbd(8)</B
8213 ></A
8214 > will
8215                 always grant oplock requests no matter how many clients are using 
8216                 the file.</P
8217 ><P
8218 >It is generally much better to use the real <A
8219 HREF="index.html#OPLOCKS"
8220 ><TT
8221 CLASS="PARAMETER"
8222 ><I
8223 >oplocks</I
8224 ></TT
8225 ></A
8226 > support rather 
8227                 than this parameter.</P
8228 ><P
8229 >If you enable this option on all read-only shares or 
8230                 shares that you know will only be accessed from one client at a 
8231                 time such as physically read-only media like CDROMs, you will see 
8232                 a big performance improvement on many operations. If you enable 
8233                 this option on shares where multiple clients may be accessing the 
8234                 files read-write at the same time you can get data corruption. Use 
8235                 this option carefully!</P
8236 ><P
8237 >Default: <B
8238 CLASS="COMMAND"
8239 >fake oplocks = no</B
8240 ></P
8241 ></DD
8242 ><DT
8243 ><A
8244 NAME="FOLLOWSYMLINKS"
8245 ></A
8246 >follow symlinks (S)</DT
8247 ><DD
8248 ><P
8249 >This parameter allows the Samba administrator 
8250                 to stop <A
8251 HREF="smbd.8.html"
8252 TARGET="_top"
8253 ><B
8254 CLASS="COMMAND"
8255 >smbd(8)</B
8256 ></A
8257
8258                 from following symbolic links in a particular share. Setting this 
8259                 parameter to <TT
8260 CLASS="CONSTANT"
8261 >no</TT
8262 > prevents any file or directory 
8263                 that is a symbolic link from being followed (the user will get an 
8264                 error).  This option is very useful to stop users from adding a 
8265                 symbolic link to <TT
8266 CLASS="FILENAME"
8267 >/etc/passwd</TT
8268 > in their home 
8269                 directory for instance.  However it will slow filename lookups 
8270                 down slightly.</P
8271 ><P
8272 >This option is enabled (i.e. <B
8273 CLASS="COMMAND"
8274 >smbd</B
8275 > will 
8276                 follow symbolic links) by default.</P
8277 ><P
8278 >Default: <B
8279 CLASS="COMMAND"
8280 >follow symlinks = yes</B
8281 ></P
8282 ></DD
8283 ><DT
8284 ><A
8285 NAME="FORCECREATEMODE"
8286 ></A
8287 >force create mode (S)</DT
8288 ><DD
8289 ><P
8290 >This parameter specifies a set of UNIX mode bit 
8291                 permissions that will <SPAN
8292 CLASS="emphasis"
8293 ><I
8294 CLASS="EMPHASIS"
8295 >always</I
8296 ></SPAN
8297 > be set on a 
8298                 file created by Samba. This is done by bitwise 'OR'ing these bits onto 
8299                 the mode bits of a file that is being created or having its 
8300                 permissions changed. The default for this parameter is (in octal) 
8301                 000. The modes in this parameter are bitwise 'OR'ed onto the file 
8302                 mode after the mask set in the <TT
8303 CLASS="PARAMETER"
8304 ><I
8305 >create mask</I
8306 ></TT
8307
8308                 parameter is applied.</P
8309 ><P
8310 >See also the parameter <A
8311 HREF="index.html#CREATEMASK"
8312 ><TT
8313 CLASS="PARAMETER"
8314 ><I
8315 >create 
8316                 mask</I
8317 ></TT
8318 ></A
8319 > for details on masking mode bits on files.</P
8320 ><P
8321 >See also the <A
8322 HREF="index.html#INHERITPERMISSIONS"
8323 ><TT
8324 CLASS="PARAMETER"
8325 ><I
8326 >inherit 
8327                 permissions</I
8328 ></TT
8329 ></A
8330 > parameter.</P
8331 ><P
8332 >Default: <B
8333 CLASS="COMMAND"
8334 >force create mode = 000</B
8335 ></P
8336 ><P
8337 >Example: <B
8338 CLASS="COMMAND"
8339 >force create mode = 0755</B
8340 ></P
8341 ><P
8342 >would force all created files to have read and execute 
8343                 permissions set for 'group' and 'other' as well as the 
8344                 read/write/execute bits set for the 'user'.</P
8345 ></DD
8346 ><DT
8347 ><A
8348 NAME="FORCEDIRECTORYMODE"
8349 ></A
8350 >force directory mode (S)</DT
8351 ><DD
8352 ><P
8353 >This parameter specifies a set of UNIX mode bit 
8354                 permissions that will <SPAN
8355 CLASS="emphasis"
8356 ><I
8357 CLASS="EMPHASIS"
8358 >always</I
8359 ></SPAN
8360 > be set on a directory 
8361                 created by Samba. This is done by bitwise 'OR'ing these bits onto the 
8362                 mode bits of a directory that is being created. The default for this 
8363                 parameter is (in octal) 0000 which will not add any extra permission 
8364                 bits to a created directory. This operation is done after the mode 
8365                 mask in the parameter <TT
8366 CLASS="PARAMETER"
8367 ><I
8368 >directory mask</I
8369 ></TT
8370 > is 
8371                 applied.</P
8372 ><P
8373 >See also the parameter <A
8374 HREF="index.html#DIRECTORYMASK"
8375 ><TT
8376 CLASS="PARAMETER"
8377 ><I
8378 >               directory mask</I
8379 ></TT
8380 ></A
8381 > for details on masking mode bits 
8382                 on created directories.</P
8383 ><P
8384 >See also the <A
8385 HREF="index.html#INHERITPERMISSIONS"
8386 ><TT
8387 CLASS="PARAMETER"
8388 ><I
8389 >               inherit permissions</I
8390 ></TT
8391 ></A
8392 > parameter.</P
8393 ><P
8394 >Default: <B
8395 CLASS="COMMAND"
8396 >force directory mode = 000</B
8397 ></P
8398 ><P
8399 >Example: <B
8400 CLASS="COMMAND"
8401 >force directory mode = 0755</B
8402 ></P
8403 ><P
8404 >would force all created directories to have read and execute
8405                 permissions set for 'group' and 'other' as well as the
8406                 read/write/execute bits set for the 'user'.</P
8407 ></DD
8408 ><DT
8409 ><A
8410 NAME="FORCEDIRECTORYSECURITYMODE"
8411 ></A
8412 >force directory security mode (S)</DT
8413 ><DD
8414 ><P
8415 >This parameter controls what UNIX permission bits 
8416                 can be modified when a Windows NT client is manipulating the UNIX 
8417                 permission on a directory using the native NT security dialog box.</P
8418 ><P
8419 >This parameter is applied as a mask (OR'ed with) to the 
8420                 changed permission bits, thus forcing any bits in this mask that 
8421                 the user may have modified to be on. Essentially, one bits in this 
8422                 mask may be treated as a set of bits that, when modifying security 
8423                 on a directory, the user has always set to be 'on'.</P
8424 ><P
8425 >If not set explicitly this parameter is 000, which 
8426                 allows a user to modify all the user/group/world permissions on a 
8427                 directory without restrictions.</P
8428 ><P
8429 ><SPAN
8430 CLASS="emphasis"
8431 ><I
8432 CLASS="EMPHASIS"
8433 >Note</I
8434 ></SPAN
8435 > that users who can access the 
8436                 Samba server through other means can easily bypass this restriction, 
8437                 so it is primarily useful for standalone "appliance" systems.  
8438                 Administrators of most normal systems will probably want to leave
8439                 it set as 0000.</P
8440 ><P
8441 >See also the <A
8442 HREF="index.html#DIRECTORYSECURITYMASK"
8443 ><TT
8444 CLASS="PARAMETER"
8445 ><I
8446 >               directory security mask</I
8447 ></TT
8448 ></A
8449 >, <A
8450 HREF="index.html#SECURITYMASK"
8451 >               <TT
8452 CLASS="PARAMETER"
8453 ><I
8454 >security mask</I
8455 ></TT
8456 ></A
8457 >, 
8458                 <A
8459 HREF="index.html#FORCESECURITYMODE"
8460 ><TT
8461 CLASS="PARAMETER"
8462 ><I
8463 >force security mode
8464                 </I
8465 ></TT
8466 ></A
8467 > parameters.</P
8468 ><P
8469 >Default: <B
8470 CLASS="COMMAND"
8471 >force directory security mode = 0</B
8472 ></P
8473 ><P
8474 >Example: <B
8475 CLASS="COMMAND"
8476 >force directory security mode = 700</B
8477 ></P
8478 ></DD
8479 ><DT
8480 ><A
8481 NAME="FORCEGROUP"
8482 ></A
8483 >force group (S)</DT
8484 ><DD
8485 ><P
8486 >This specifies a UNIX group name that will be 
8487                 assigned as the default primary group for all users connecting 
8488                 to this service. This is useful for sharing files by ensuring 
8489                 that all access to files on service will use the named group for 
8490                 their permissions checking. Thus, by assigning permissions for this 
8491                 group to the files and directories within this service the Samba 
8492                 administrator can restrict or allow sharing of these files.</P
8493 ><P
8494 >In Samba 2.0.5 and above this parameter has extended 
8495                 functionality in the following way. If the group name listed here 
8496                 has a '+' character prepended to it then the current user accessing 
8497                 the share only has the primary group default assigned to this group 
8498                 if they are already assigned as a member of that group. This allows 
8499                 an administrator to decide that only users who are already in a 
8500                 particular group will create files with group ownership set to that 
8501                 group. This gives a finer granularity of ownership assignment. For 
8502                 example, the setting <TT
8503 CLASS="FILENAME"
8504 >force group = +sys</TT
8505 > means 
8506                 that only users who are already in group sys will have their default
8507                 primary group assigned to sys when accessing this Samba share. All
8508                 other users will retain their ordinary primary group.</P
8509 ><P
8510 >If the <A
8511 HREF="index.html#FORCEUSER"
8512 ><TT
8513 CLASS="PARAMETER"
8514 ><I
8515 >force user
8516                 </I
8517 ></TT
8518 ></A
8519 > parameter is also set the group specified in 
8520                 <TT
8521 CLASS="PARAMETER"
8522 ><I
8523 >force group</I
8524 ></TT
8525 > will override the primary group
8526                 set in <TT
8527 CLASS="PARAMETER"
8528 ><I
8529 >force user</I
8530 ></TT
8531 >.</P
8532 ><P
8533 >See also <A
8534 HREF="index.html#FORCEUSER"
8535 ><TT
8536 CLASS="PARAMETER"
8537 ><I
8538 >force 
8539                 user</I
8540 ></TT
8541 ></A
8542 >.</P
8543 ><P
8544 >Default: <SPAN
8545 CLASS="emphasis"
8546 ><I
8547 CLASS="EMPHASIS"
8548 >no forced group</I
8549 ></SPAN
8550 ></P
8551 ><P
8552 >Example: <B
8553 CLASS="COMMAND"
8554 >force group = agroup</B
8555 ></P
8556 ></DD
8557 ><DT
8558 ><A
8559 NAME="FORCESECURITYMODE"
8560 ></A
8561 >force security mode (S)</DT
8562 ><DD
8563 ><P
8564 >This parameter controls what UNIX permission 
8565                 bits can be modified when a Windows NT client is manipulating 
8566                 the UNIX permission on a file using the native NT security dialog 
8567                 box.</P
8568 ><P
8569 >This parameter is applied as a mask (OR'ed with) to the 
8570                 changed permission bits, thus forcing any bits in this mask that 
8571                 the user may have modified to be on. Essentially, one bits in this 
8572                 mask may be treated as a set of bits that, when modifying security 
8573                 on a file, the user has always set to be 'on'.</P
8574 ><P
8575 >If not set explicitly this parameter is set to 0,
8576                 and allows a user to modify all the user/group/world permissions on a file,
8577                 with no restrictions.</P
8578 ><P
8579 ><SPAN
8580 CLASS="emphasis"
8581 ><I
8582 CLASS="EMPHASIS"
8583 >Note</I
8584 ></SPAN
8585 > that users who can access 
8586                 the Samba server through other means can easily bypass this restriction, 
8587                 so it is primarily useful for standalone "appliance" systems.  
8588                 Administrators of most normal systems will probably want to leave
8589                 this set to 0000.</P
8590 ><P
8591 >See also the <A
8592 HREF="index.html#FORCEDIRECTORYSECURITYMODE"
8593 ><TT
8594 CLASS="PARAMETER"
8595 ><I
8596 >               force directory security mode</I
8597 ></TT
8598 ></A
8599 >,
8600                 <A
8601 HREF="index.html#DIRECTORYSECURITYMASK"
8602 ><TT
8603 CLASS="PARAMETER"
8604 ><I
8605 >directory security
8606                 mask</I
8607 ></TT
8608 ></A
8609 >, <A
8610 HREF="index.html#SECURITYMASK"
8611 ><TT
8612 CLASS="PARAMETER"
8613 ><I
8614 >               security mask</I
8615 ></TT
8616 ></A
8617 > parameters.</P
8618 ><P
8619 >Default: <B
8620 CLASS="COMMAND"
8621 >force security mode = 0</B
8622 ></P
8623 ><P
8624 >Example: <B
8625 CLASS="COMMAND"
8626 >force security mode = 700</B
8627 ></P
8628 ></DD
8629 ><DT
8630 ><A
8631 NAME="FORCEUSER"
8632 ></A
8633 >force user (S)</DT
8634 ><DD
8635 ><P
8636 >This specifies a UNIX user name that will be 
8637                 assigned as the default user for all users connecting to this service. 
8638                 This is useful for sharing files. You should also use it carefully 
8639                 as using it incorrectly can cause security problems.</P
8640 ><P
8641 >This user name only gets used once a connection is established. 
8642                 Thus clients still need to connect as a valid user and supply a 
8643                 valid password. Once connected, all file operations will be performed 
8644                 as the "forced user", no matter what username the client connected 
8645                 as.  This can be very useful.</P
8646 ><P
8647 >In Samba 2.0.5 and above this parameter also causes the 
8648                 primary group of the forced user to be used as the primary group 
8649                 for all file activity. Prior to 2.0.5 the primary group was left 
8650                 as the primary group of the connecting user (this was a bug).</P
8651 ><P
8652 >See also <A
8653 HREF="index.html#FORCEGROUP"
8654 ><TT
8655 CLASS="PARAMETER"
8656 ><I
8657 >force group
8658                 </I
8659 ></TT
8660 ></A
8661 ></P
8662 ><P
8663 >Default: <SPAN
8664 CLASS="emphasis"
8665 ><I
8666 CLASS="EMPHASIS"
8667 >no forced user</I
8668 ></SPAN
8669 ></P
8670 ><P
8671 >Example: <B
8672 CLASS="COMMAND"
8673 >force user = auser</B
8674 ></P
8675 ></DD
8676 ><DT
8677 ><A
8678 NAME="FSTYPE"
8679 ></A
8680 >fstype (S)</DT
8681 ><DD
8682 ><P
8683 >This parameter allows the administrator to 
8684                 configure the string that specifies the type of filesystem a share 
8685                 is using that is reported by <A
8686 HREF="smbd.8.html"
8687 TARGET="_top"
8688 ><B
8689 CLASS="COMMAND"
8690 >smbd(8)
8691                 </B
8692 ></A
8693 > when a client queries the filesystem type
8694                 for a share. The default type is <TT
8695 CLASS="CONSTANT"
8696 >NTFS</TT
8697 > for 
8698                 compatibility with Windows NT but this can be changed to other 
8699                 strings such as <TT
8700 CLASS="CONSTANT"
8701 >Samba</TT
8702 > or <TT
8703 CLASS="CONSTANT"
8704 >FAT
8705                 </TT
8706 > if required.</P
8707 ><P
8708 >Default: <B
8709 CLASS="COMMAND"
8710 >fstype = NTFS</B
8711 ></P
8712 ><P
8713 >Example: <B
8714 CLASS="COMMAND"
8715 >fstype = Samba</B
8716 ></P
8717 ></DD
8718 ><DT
8719 ><A
8720 NAME="GETWDCACHE"
8721 ></A
8722 >getwd cache (G)</DT
8723 ><DD
8724 ><P
8725 >This is a tuning option. When this is enabled a 
8726                 caching algorithm will be used to reduce the time taken for getwd() 
8727                 calls. This can have a significant impact on performance, especially 
8728                 when the <A
8729 HREF="index.html#WIDELINKS"
8730 ><TT
8731 CLASS="PARAMETER"
8732 ><I
8733 >wide links</I
8734 ></TT
8735 >
8736                 </A
8737 >parameter is set to <TT
8738 CLASS="CONSTANT"
8739 >false</TT
8740 >.</P
8741 ><P
8742 >Default: <B
8743 CLASS="COMMAND"
8744 >getwd cache = yes</B
8745 ></P
8746 ></DD
8747 ><DT
8748 ><A
8749 NAME="GROUP"
8750 ></A
8751 >group (S)</DT
8752 ><DD
8753 ><P
8754 >Synonym for <A
8755 HREF="index.html#FORCEGROUP"
8756 ><TT
8757 CLASS="PARAMETER"
8758 ><I
8759 >force 
8760                 group</I
8761 ></TT
8762 ></A
8763 >.</P
8764 ></DD
8765 ><DT
8766 ><A
8767 NAME="GUESTACCOUNT"
8768 ></A
8769 >guest account (S)</DT
8770 ><DD
8771 ><P
8772 >This is a username which will be used for access 
8773                 to services which are specified as <A
8774 HREF="index.html#GUESTOK"
8775 ><TT
8776 CLASS="PARAMETER"
8777 ><I
8778 >               guest ok</I
8779 ></TT
8780 ></A
8781 > (see below). Whatever privileges this 
8782                 user has will be available to any client connecting to the guest service. 
8783                 Typically this user will exist in the password file, but will not
8784                 have a valid login. The user account "ftp" is often a good choice 
8785                 for this parameter. If a username is specified in a given service, 
8786                 the specified username overrides this one.</P
8787 ><P
8788 >One some systems the default guest account "nobody" may not 
8789                 be able to print. Use another account in this case. You should test 
8790                 this by trying to log in as your guest user (perhaps by using the 
8791                 <B
8792 CLASS="COMMAND"
8793 >su -</B
8794 > command) and trying to print using the 
8795                 system print command such as <B
8796 CLASS="COMMAND"
8797 >lpr(1)</B
8798 > or <B
8799 CLASS="COMMAND"
8800 >               lp(1)</B
8801 >.</P
8802 ><P
8803 >This paramater does not accept % marcos, becouse
8804                 many parts of the system require this value to be
8805                 constant for correct operation</P
8806 ><P
8807 >Default: <SPAN
8808 CLASS="emphasis"
8809 ><I
8810 CLASS="EMPHASIS"
8811 >specified at compile time, usually 
8812                 "nobody"</I
8813 ></SPAN
8814 ></P
8815 ><P
8816 >Example: <B
8817 CLASS="COMMAND"
8818 >guest account = ftp</B
8819 ></P
8820 ></DD
8821 ><DT
8822 ><A
8823 NAME="GUESTOK"
8824 ></A
8825 >guest ok (S)</DT
8826 ><DD
8827 ><P
8828 >If this parameter is <TT
8829 CLASS="CONSTANT"
8830 >yes</TT
8831 > for 
8832                 a service, then no password is required to connect to the service. 
8833                 Privileges will be those of the <A
8834 HREF="index.html#GUESTACCOUNT"
8835 ><TT
8836 CLASS="PARAMETER"
8837 ><I
8838 >               guest account</I
8839 ></TT
8840 ></A
8841 >.</P
8842 ><P
8843 >See the section below on <A
8844 HREF="index.html#SECURITY"
8845 ><TT
8846 CLASS="PARAMETER"
8847 ><I
8848 >               security</I
8849 ></TT
8850 ></A
8851 > for more information about this option.
8852                 </P
8853 ><P
8854 >Default: <B
8855 CLASS="COMMAND"
8856 >guest ok = no</B
8857 ></P
8858 ></DD
8859 ><DT
8860 ><A
8861 NAME="GUESTONLY"
8862 ></A
8863 >guest only (S)</DT
8864 ><DD
8865 ><P
8866 >If this parameter is <TT
8867 CLASS="CONSTANT"
8868 >yes</TT
8869 > for 
8870                 a service, then only guest connections to the service are permitted. 
8871                 This parameter will have no effect if <A
8872 HREF="index.html#GUESTOK"
8873 >               <TT
8874 CLASS="PARAMETER"
8875 ><I
8876 >guest ok</I
8877 ></TT
8878 ></A
8879 > is not set for the service.</P
8880 ><P
8881 >See the section below on <A
8882 HREF="index.html#SECURITY"
8883 ><TT
8884 CLASS="PARAMETER"
8885 ><I
8886 >               security</I
8887 ></TT
8888 ></A
8889 > for more information about this option.
8890                 </P
8891 ><P
8892 >Default: <B
8893 CLASS="COMMAND"
8894 >guest only = no</B
8895 ></P
8896 ></DD
8897 ><DT
8898 ><A
8899 NAME="HIDEDOTFILES"
8900 ></A
8901 >hide dot files (S)</DT
8902 ><DD
8903 ><P
8904 >This is a boolean parameter that controls whether 
8905                 files starting with a dot appear as hidden files.</P
8906 ><P
8907 >Default: <B
8908 CLASS="COMMAND"
8909 >hide dot files = yes</B
8910 ></P
8911 ></DD
8912 ><DT
8913 ><A
8914 NAME="HIDEFILES"
8915 ></A
8916 >hide files(S)</DT
8917 ><DD
8918 ><P
8919 >This is a list of files or directories that are not 
8920                 visible but are accessible.  The DOS 'hidden' attribute is applied 
8921                 to any files or directories that match.</P
8922 ><P
8923 >Each entry in the list must be separated by a '/', 
8924                 which allows spaces to be included in the entry.  '*'
8925                 and '?' can be used to specify multiple files or directories 
8926                 as in DOS wildcards.</P
8927 ><P
8928 >Each entry must be a Unix path, not a DOS path and must 
8929                 not include the Unix directory separator '/'.</P
8930 ><P
8931 >Note that the case sensitivity option is applicable 
8932                 in hiding files.</P
8933 ><P
8934 >Setting this parameter will affect the performance of Samba, 
8935                 as it will be forced to check all files and directories for a match 
8936                 as they are scanned.</P
8937 ><P
8938 >See also <A
8939 HREF="index.html#HIDEDOTFILES"
8940 ><TT
8941 CLASS="PARAMETER"
8942 ><I
8943 >hide 
8944                 dot files</I
8945 ></TT
8946 ></A
8947 >, <A
8948 HREF="index.html#VETOFILES"
8949 ><TT
8950 CLASS="PARAMETER"
8951 ><I
8952 >               veto files</I
8953 ></TT
8954 ></A
8955 > and <A
8956 HREF="index.html#CASESENSITIVE"
8957 >               <TT
8958 CLASS="PARAMETER"
8959 ><I
8960 >case sensitive</I
8961 ></TT
8962 ></A
8963 >.</P
8964 ><P
8965 >Default: <SPAN
8966 CLASS="emphasis"
8967 ><I
8968 CLASS="EMPHASIS"
8969 >no file are hidden</I
8970 ></SPAN
8971 ></P
8972 ><P
8973 >Example: <B
8974 CLASS="COMMAND"
8975 >hide files =
8976                 /.*/DesktopFolderDB/TrashFor%m/resource.frk/</B
8977 ></P
8978 ><P
8979 >The above example is based on files that the Macintosh 
8980                 SMB client (DAVE) available from <A
8981 HREF="http://www.thursby.com"
8982 TARGET="_top"
8983
8984                 Thursby</A
8985 > creates for internal use, and also still hides 
8986                 all files beginning with a dot.</P
8987 ></DD
8988 ><DT
8989 ><A
8990 NAME="HIDELOCALUSERS"
8991 ></A
8992 >hide local users(G)</DT
8993 ><DD
8994 ><P
8995 >This parameter toggles the hiding of local UNIX 
8996                 users (root, wheel, floppy, etc) from remote clients.</P
8997 ><P
8998 >Default: <B
8999 CLASS="COMMAND"
9000 >hide local users = no</B
9001 ></P
9002 ></DD
9003 ><DT
9004 ><A
9005 NAME="HIDEUNREADABLE"
9006 ></A
9007 >hide unreadable (G)</DT
9008 ><DD
9009 ><P
9010 >This parameter prevents clients from seeing the
9011                 existance of files that cannot be read. Defaults to off.</P
9012 ><P
9013 >Default: <B
9014 CLASS="COMMAND"
9015 >hide unreadable = no</B
9016 ></P
9017 ></DD
9018 ><DT
9019 ><A
9020 NAME="HIDEUNWRITEABLEFILES"
9021 ></A
9022 >hide unwriteable files (G)</DT
9023 ><DD
9024 ><P
9025 >This parameter prevents clients from seeing
9026                 the existance of files that cannot be written to. Defaults to off.
9027                 Note that unwriteable directories are shown as usual.
9028                 </P
9029 ><P
9030 >Default: <B
9031 CLASS="COMMAND"
9032 >hide unwriteable = no</B
9033 ></P
9034 ></DD
9035 ><DT
9036 ><A
9037 NAME="HOMEDIRMAP"
9038 ></A
9039 >homedir map (G)</DT
9040 ><DD
9041 ><P
9042 >If<A
9043 HREF="index.html#NISHOMEDIR"
9044 ><TT
9045 CLASS="PARAMETER"
9046 ><I
9047 >nis homedir
9048                 </I
9049 ></TT
9050 ></A
9051 > is <TT
9052 CLASS="CONSTANT"
9053 >true</TT
9054 >, and <A
9055 HREF="smbd.8.html"
9056 TARGET="_top"
9057 ><B
9058 CLASS="COMMAND"
9059 >smbd(8)</B
9060 ></A
9061 > is also acting 
9062                 as a Win95/98 <TT
9063 CLASS="PARAMETER"
9064 ><I
9065 >logon server</I
9066 ></TT
9067 > then this parameter 
9068                 specifies the NIS (or YP) map from which the server for the user's 
9069                 home directory should be extracted.  At present, only the Sun 
9070                 auto.home map format is understood. The form of the map is:</P
9071 ><P
9072 ><B
9073 CLASS="COMMAND"
9074 >username       server:/some/file/system</B
9075 ></P
9076 ><P
9077 >and the program will extract the servername from before 
9078                 the first ':'.  There should probably be a better parsing system 
9079                 that copes with different map formats and also Amd (another 
9080                 automounter) maps.</P
9081 ><P
9082 ><SPAN
9083 CLASS="emphasis"
9084 ><I
9085 CLASS="EMPHASIS"
9086 >NOTE :</I
9087 ></SPAN
9088 >A working NIS client is required on 
9089                 the system for this option to work.</P
9090 ><P
9091 >See also <A
9092 HREF="index.html#NISHOMEDIR"
9093 ><TT
9094 CLASS="PARAMETER"
9095 ><I
9096 >nis homedir</I
9097 ></TT
9098 >
9099                 </A
9100 >, <A
9101 HREF="index.html#DOMAINLOGONS"
9102 ><TT
9103 CLASS="PARAMETER"
9104 ><I
9105 >domain logons</I
9106 ></TT
9107 >
9108                 </A
9109 >.</P
9110 ><P
9111 >Default: <B
9112 CLASS="COMMAND"
9113 >homedir map = &lt;empty string&gt;</B
9114 ></P
9115 ><P
9116 >Example: <B
9117 CLASS="COMMAND"
9118 >homedir map = amd.homedir</B
9119 ></P
9120 ></DD
9121 ><DT
9122 ><A
9123 NAME="HOSTMSDFS"
9124 ></A
9125 >host msdfs (G)</DT
9126 ><DD
9127 ><P
9128 >This boolean parameter is only available 
9129                 if Samba has been configured and compiled with the <B
9130 CLASS="COMMAND"
9131 >               --with-msdfs</B
9132 > option. If set to <TT
9133 CLASS="CONSTANT"
9134 >yes</TT
9135 >, 
9136                 Samba will act as a Dfs server, and  allow Dfs-aware clients 
9137                 to browse Dfs trees hosted on the server.</P
9138 ><P
9139 >See also the <A
9140 HREF="index.html#MSDFSROOT"
9141 ><TT
9142 CLASS="PARAMETER"
9143 ><I
9144 >               msdfs root</I
9145 ></TT
9146 ></A
9147 > share  level  parameter.  For
9148                 more  information  on  setting  up a Dfs tree on Samba,
9149                 refer to <A
9150 HREF="msdfs_setup.html"
9151 TARGET="_top"
9152 >msdfs_setup.html</A
9153 >.
9154                 </P
9155 ><P
9156 >Default: <B
9157 CLASS="COMMAND"
9158 >host msdfs = no</B
9159 ></P
9160 ></DD
9161 ><DT
9162 ><A
9163 NAME="HOSTNAMELOOKUPS"
9164 ></A
9165 >hostname lookups (G)</DT
9166 ><DD
9167 ><P
9168 >Specifies whether samba should use (expensive)
9169                 hostname lookups or use the ip addresses instead. An example place
9170                 where hostname lookups are currently used is when checking 
9171                 the <B
9172 CLASS="COMMAND"
9173 >hosts deny</B
9174 > and <B
9175 CLASS="COMMAND"
9176 >hosts allow</B
9177 >.
9178                 </P
9179 ><P
9180 >Default: <B
9181 CLASS="COMMAND"
9182 >hostname lookups = yes</B
9183 ></P
9184 ><P
9185 >Example: <B
9186 CLASS="COMMAND"
9187 >hostname lookups = no</B
9188 ></P
9189 ></DD
9190 ><DT
9191 ><A
9192 NAME="HOSTSALLOW"
9193 ></A
9194 >hosts allow (S)</DT
9195 ><DD
9196 ><P
9197 >A synonym for this parameter is <TT
9198 CLASS="PARAMETER"
9199 ><I
9200 >allow 
9201                 hosts</I
9202 ></TT
9203 >.</P
9204 ><P
9205 >This parameter is a comma, space, or tab delimited 
9206                 set of hosts which are permitted to access a service.</P
9207 ><P
9208 >If specified in the [global] section then it will
9209                 apply to all services, regardless of whether the individual 
9210                 service has a different setting.</P
9211 ><P
9212 >You can specify the hosts by name or IP number. For 
9213                 example, you could restrict access to only the hosts on a 
9214                 Class C subnet with something like <B
9215 CLASS="COMMAND"
9216 >allow hosts = 150.203.5.
9217                 </B
9218 >. The full syntax of the list is described in the man 
9219                 page <TT
9220 CLASS="FILENAME"
9221 >hosts_access(5)</TT
9222 >. Note that this man
9223                 page may not be present on your system, so a brief description will
9224                 be given here also.</P
9225 ><P
9226 >Note that the localhost address 127.0.0.1 will always 
9227                 be allowed access unless specifically denied by a <A
9228 HREF="index.html#HOSTSDENY"
9229 ><TT
9230 CLASS="PARAMETER"
9231 ><I
9232 >hosts deny</I
9233 ></TT
9234 ></A
9235 > option.</P
9236 ><P
9237 >You can also specify hosts by network/netmask pairs and 
9238                 by netgroup names if your system supports netgroups. The 
9239                 <SPAN
9240 CLASS="emphasis"
9241 ><I
9242 CLASS="EMPHASIS"
9243 >EXCEPT</I
9244 ></SPAN
9245 > keyword can also be used to limit a 
9246                 wildcard list. The following examples may provide some help:</P
9247 ><P
9248 >Example 1: allow all IPs in 150.203.*.*; except one</P
9249 ><P
9250 ><B
9251 CLASS="COMMAND"
9252 >hosts allow = 150.203. EXCEPT 150.203.6.66</B
9253 ></P
9254 ><P
9255 >Example 2: allow hosts that match the given network/netmask</P
9256 ><P
9257 ><B
9258 CLASS="COMMAND"
9259 >hosts allow = 150.203.15.0/255.255.255.0</B
9260 ></P
9261 ><P
9262 >Example 3: allow a couple of hosts</P
9263 ><P
9264 ><B
9265 CLASS="COMMAND"
9266 >hosts allow = lapland, arvidsjaur</B
9267 ></P
9268 ><P
9269 >Example 4: allow only hosts in NIS netgroup "foonet", but 
9270                 deny access from one particular host</P
9271 ><P
9272 ><B
9273 CLASS="COMMAND"
9274 >hosts allow = @foonet</B
9275 ></P
9276 ><P
9277 ><B
9278 CLASS="COMMAND"
9279 >hosts deny = pirate</B
9280 ></P
9281 ><P
9282 >Note that access still requires suitable user-level passwords.</P
9283 ><P
9284 >See <A
9285 HREF="testparm.1.html"
9286 TARGET="_top"
9287 ><B
9288 CLASS="COMMAND"
9289 >testparm(1)</B
9290 >
9291                 </A
9292 > for a way of testing your host access to see if it does 
9293                 what you expect.</P
9294 ><P
9295 >Default: <SPAN
9296 CLASS="emphasis"
9297 ><I
9298 CLASS="EMPHASIS"
9299 >none (i.e., all hosts permitted access)
9300                 </I
9301 ></SPAN
9302 ></P
9303 ><P
9304 >Example: <B
9305 CLASS="COMMAND"
9306 >allow hosts = 150.203.5. myhost.mynet.edu.au
9307                 </B
9308 ></P
9309 ></DD
9310 ><DT
9311 ><A
9312 NAME="HOSTSDENY"
9313 ></A
9314 >hosts deny (S)</DT
9315 ><DD
9316 ><P
9317 >The opposite of <TT
9318 CLASS="PARAMETER"
9319 ><I
9320 >hosts allow</I
9321 ></TT
9322
9323                 - hosts listed here are <SPAN
9324 CLASS="emphasis"
9325 ><I
9326 CLASS="EMPHASIS"
9327 >NOT</I
9328 ></SPAN
9329 > permitted access to 
9330                 services unless the specific services have their own lists to override 
9331                 this one. Where the lists conflict, the <TT
9332 CLASS="PARAMETER"
9333 ><I
9334 >allow</I
9335 ></TT
9336
9337                 list takes precedence.</P
9338 ><P
9339 >Default: <SPAN
9340 CLASS="emphasis"
9341 ><I
9342 CLASS="EMPHASIS"
9343 >none (i.e., no hosts specifically excluded)
9344                 </I
9345 ></SPAN
9346 ></P
9347 ><P
9348 >Example: <B
9349 CLASS="COMMAND"
9350 >hosts deny = 150.203.4. badhost.mynet.edu.au
9351                 </B
9352 ></P
9353 ></DD
9354 ><DT
9355 ><A
9356 NAME="HOSTSEQUIV"
9357 ></A
9358 >hosts equiv (G)</DT
9359 ><DD
9360 ><P
9361 >If this global parameter is a non-null string, 
9362                 it specifies the name of a file to read for the names of hosts 
9363                 and users who will be allowed access without specifying a password.
9364                 </P
9365 ><P
9366 >This is not be confused with <A
9367 HREF="index.html#HOSTSALLOW"
9368 >               <TT
9369 CLASS="PARAMETER"
9370 ><I
9371 >hosts allow</I
9372 ></TT
9373 ></A
9374 > which is about hosts 
9375                 access to services and is more useful for guest services. <TT
9376 CLASS="PARAMETER"
9377 ><I
9378 >               hosts equiv</I
9379 ></TT
9380 > may be useful for NT clients which will 
9381                 not supply passwords to Samba.</P
9382 ><P
9383 ><SPAN
9384 CLASS="emphasis"
9385 ><I
9386 CLASS="EMPHASIS"
9387 >NOTE :</I
9388 ></SPAN
9389 > The use of <TT
9390 CLASS="PARAMETER"
9391 ><I
9392 >hosts equiv
9393                 </I
9394 ></TT
9395 > can be a major security hole. This is because you are 
9396                 trusting the PC to supply the correct username. It is very easy to 
9397                 get a PC to supply a false username. I recommend that the 
9398                 <TT
9399 CLASS="PARAMETER"
9400 ><I
9401 >hosts equiv</I
9402 ></TT
9403 > option be only used if you really 
9404                 know what you are doing, or perhaps on a home network where you trust 
9405                 your spouse and kids. And only if you <SPAN
9406 CLASS="emphasis"
9407 ><I
9408 CLASS="EMPHASIS"
9409 >really</I
9410 ></SPAN
9411 > trust 
9412                 them :-).</P
9413 ><P
9414 >Default: <SPAN
9415 CLASS="emphasis"
9416 ><I
9417 CLASS="EMPHASIS"
9418 >no host equivalences</I
9419 ></SPAN
9420 ></P
9421 ><P
9422 >Example: <B
9423 CLASS="COMMAND"
9424 >hosts equiv = /etc/hosts.equiv</B
9425 ></P
9426 ></DD
9427 ><DT
9428 ><A
9429 NAME="INCLUDE"
9430 ></A
9431 >include (G)</DT
9432 ><DD
9433 ><P
9434 >This allows you to include one config file 
9435                 inside another.  The file is included literally, as though typed 
9436                 in place.</P
9437 ><P
9438 >It takes the standard substitutions, except <TT
9439 CLASS="PARAMETER"
9440 ><I
9441 >%u
9442                 </I
9443 ></TT
9444 >, <TT
9445 CLASS="PARAMETER"
9446 ><I
9447 >%P</I
9448 ></TT
9449 > and <TT
9450 CLASS="PARAMETER"
9451 ><I
9452 >%S</I
9453 ></TT
9454 >.
9455                 </P
9456 ><P
9457 >Default: <SPAN
9458 CLASS="emphasis"
9459 ><I
9460 CLASS="EMPHASIS"
9461 >no file included</I
9462 ></SPAN
9463 ></P
9464 ><P
9465 >Example: <B
9466 CLASS="COMMAND"
9467 >include = /usr/local/samba/lib/admin_smb.conf
9468                 </B
9469 ></P
9470 ></DD
9471 ><DT
9472 ><A
9473 NAME="INHERITACLS"
9474 ></A
9475 >inherit acls (S)</DT
9476 ><DD
9477 ><P
9478 >This parameter can be used to ensure
9479                 that if default acls exist on parent directories,
9480                 they are always honored when creating a subdirectory.
9481                 The default behavior is to use the mode specified
9482                 when creating the directory.  Enabling this option
9483                 sets the mode to 0777, thus guaranteeing that 
9484                 default directory acls are propagated.
9485                 </P
9486 ><P
9487 >Default: <B
9488 CLASS="COMMAND"
9489 >inherit acls = no</B
9490 >
9491                 </P
9492 ></DD
9493 ><DT
9494 ><A
9495 NAME="INHERITPERMISSIONS"
9496 ></A
9497 >inherit permissions (S)</DT
9498 ><DD
9499 ><P
9500 >The permissions on new files and directories 
9501                 are normally governed by <A
9502 HREF="index.html#CREATEMASK"
9503 ><TT
9504 CLASS="PARAMETER"
9505 ><I
9506 >               create mask</I
9507 ></TT
9508 ></A
9509 >, <A
9510 HREF="index.html#DIRECTORYMASK"
9511 >               <TT
9512 CLASS="PARAMETER"
9513 ><I
9514 >directory mask</I
9515 ></TT
9516 ></A
9517 >, <A
9518 HREF="index.html#FORCECREATEMODE"
9519 ><TT
9520 CLASS="PARAMETER"
9521 ><I
9522 >force create mode</I
9523 ></TT
9524 >
9525                 </A
9526 > and <A
9527 HREF="index.html#FORCEDIRECTORYMODE"
9528 ><TT
9529 CLASS="PARAMETER"
9530 ><I
9531 >force 
9532                 directory mode</I
9533 ></TT
9534 ></A
9535 > but the boolean inherit 
9536                 permissions parameter overrides this.</P
9537 ><P
9538 >New directories inherit the mode of the parent directory,
9539                 including bits such as setgid.</P
9540 ><P
9541 >New files inherit their read/write bits from the parent 
9542                 directory.  Their execute bits continue to be determined by
9543                 <A
9544 HREF="index.html#MAPARCHIVE"
9545 ><TT
9546 CLASS="PARAMETER"
9547 ><I
9548 >map archive</I
9549 ></TT
9550 >
9551                 </A
9552 >, <A
9553 HREF="index.html#MAPHIDDEN"
9554 ><TT
9555 CLASS="PARAMETER"
9556 ><I
9557 >map hidden</I
9558 ></TT
9559 >
9560                 </A
9561 > and <A
9562 HREF="index.html#MAPSYSTEM"
9563 ><TT
9564 CLASS="PARAMETER"
9565 ><I
9566 >map system</I
9567 ></TT
9568 >
9569                 </A
9570 > as usual.</P
9571 ><P
9572 >Note that the setuid bit is <SPAN
9573 CLASS="emphasis"
9574 ><I
9575 CLASS="EMPHASIS"
9576 >never</I
9577 ></SPAN
9578 > set via 
9579                 inheritance (the code explicitly prohibits this).</P
9580 ><P
9581 >This can be particularly useful on large systems with 
9582                 many users, perhaps several thousand, to allow a single [homes] 
9583                 share to be used flexibly by each user.</P
9584 ><P
9585 >See also <A
9586 HREF="index.html#CREATEMASK"
9587 ><TT
9588 CLASS="PARAMETER"
9589 ><I
9590 >create mask
9591                 </I
9592 ></TT
9593 ></A
9594 >, <A
9595 HREF="index.html#DIRECTORYMASK"
9596 ><TT
9597 CLASS="PARAMETER"
9598 ><I
9599 >               directory mask</I
9600 ></TT
9601 ></A
9602 >, <A
9603 HREF="index.html#FORCECREATEMODE"
9604 >               <TT
9605 CLASS="PARAMETER"
9606 ><I
9607 >force create mode</I
9608 ></TT
9609 ></A
9610 > and <A
9611 HREF="index.html#FORCEDIRECTORYMODE"
9612 ><TT
9613 CLASS="PARAMETER"
9614 ><I
9615 >force directory mode</I
9616 ></TT
9617 >
9618                 </A
9619 >.</P
9620 ><P
9621 >Default: <B
9622 CLASS="COMMAND"
9623 >inherit permissions = no</B
9624 ></P
9625 ></DD
9626 ><DT
9627 ><A
9628 NAME="INTERFACES"
9629 ></A
9630 >interfaces (G)</DT
9631 ><DD
9632 ><P
9633 >This option allows you to override the default 
9634                 network interfaces list that Samba will use for browsing, name 
9635                 registration and other NBT traffic. By default Samba will query 
9636                 the kernel for the list of all active interfaces and use any 
9637                 interfaces except 127.0.0.1 that are broadcast capable.</P
9638 ><P
9639 >The option takes a list of interface strings. Each string 
9640                 can be in any of the following forms:</P
9641 ><P
9642 ></P
9643 ><UL
9644 ><LI
9645 ><P
9646 >a network interface name (such as eth0). 
9647                         This may include shell-like wildcards so eth* will match 
9648                         any interface starting with the substring "eth"</P
9649 ></LI
9650 ><LI
9651 ><P
9652 >an IP address. In this case the netmask is 
9653                         determined from the list of interfaces obtained from the 
9654                         kernel</P
9655 ></LI
9656 ><LI
9657 ><P
9658 >an IP/mask pair. </P
9659 ></LI
9660 ><LI
9661 ><P
9662 >a broadcast/mask pair.</P
9663 ></LI
9664 ></UL
9665 ><P
9666 >The "mask" parameters can either be a bit length (such 
9667                 as 24 for a C class network) or a full netmask in dotted 
9668                 decimal form.</P
9669 ><P
9670 >The "IP" parameters above can either be a full dotted 
9671                 decimal IP address or a hostname which will be looked up via 
9672                 the OS's normal hostname resolution mechanisms.</P
9673 ><P
9674 >For example, the following line:</P
9675 ><P
9676 ><B
9677 CLASS="COMMAND"
9678 >interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
9679                 </B
9680 ></P
9681 ><P
9682 >would configure three network interfaces corresponding 
9683                 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. 
9684                 The netmasks of the latter two interfaces would be set to 255.255.255.0.</P
9685 ><P
9686 >See also <A
9687 HREF="index.html#BINDINTERFACESONLY"
9688 ><TT
9689 CLASS="PARAMETER"
9690 ><I
9691 >bind 
9692                 interfaces only</I
9693 ></TT
9694 ></A
9695 >.</P
9696 ><P
9697 >Default: <SPAN
9698 CLASS="emphasis"
9699 ><I
9700 CLASS="EMPHASIS"
9701 >all active interfaces except 127.0.0.1 
9702                 that are broadcast capable</I
9703 ></SPAN
9704 ></P
9705 ></DD
9706 ><DT
9707 ><A
9708 NAME="INVALIDUSERS"
9709 ></A
9710 >invalid users (S)</DT
9711 ><DD
9712 ><P
9713 >This is a list of users that should not be allowed 
9714                 to login to this service. This is really a <SPAN
9715 CLASS="emphasis"
9716 ><I
9717 CLASS="EMPHASIS"
9718 >paranoid</I
9719 ></SPAN
9720
9721                 check to absolutely ensure an improper setting does not breach 
9722                 your security.</P
9723 ><P
9724 >A name starting with a '@' is interpreted as an NIS 
9725                 netgroup first (if your system supports NIS), and then as a UNIX 
9726                 group if the name was not found in the NIS netgroup database.</P
9727 ><P
9728 >A name starting with '+' is interpreted only 
9729                 by looking in the UNIX group database. A name starting with 
9730                 '&#38;' is interpreted only by looking in the NIS netgroup database 
9731                 (this requires NIS to be working on your system). The characters 
9732                 '+' and '&#38;' may be used at the start of the name in either order 
9733                 so the value <TT
9734 CLASS="PARAMETER"
9735 ><I
9736 >+&amp;group</I
9737 ></TT
9738 > means check the 
9739                 UNIX group database, followed by the NIS netgroup database, and 
9740                 the value <TT
9741 CLASS="PARAMETER"
9742 ><I
9743 >&#38;+group</I
9744 ></TT
9745 > means check the NIS
9746                 netgroup database, followed by the UNIX group database (the 
9747                 same as the '@' prefix).</P
9748 ><P
9749 >The current servicename is substituted for <TT
9750 CLASS="PARAMETER"
9751 ><I
9752 >%S</I
9753 ></TT
9754 >. 
9755                 This is useful in the [homes] section.</P
9756 ><P
9757 >See also <A
9758 HREF="index.html#VALIDUSERS"
9759 ><TT
9760 CLASS="PARAMETER"
9761 ><I
9762 >valid users
9763                 </I
9764 ></TT
9765 ></A
9766 >.</P
9767 ><P
9768 >Default: <SPAN
9769 CLASS="emphasis"
9770 ><I
9771 CLASS="EMPHASIS"
9772 >no invalid users</I
9773 ></SPAN
9774 ></P
9775 ><P
9776 >Example: <B
9777 CLASS="COMMAND"
9778 >invalid users = root fred admin @wheel
9779                 </B
9780 ></P
9781 ></DD
9782 ><DT
9783 ><A
9784 NAME="KEEPALIVE"
9785 ></A
9786 >keepalive (G)</DT
9787 ><DD
9788 ><P
9789 >The value of the parameter (an integer) represents 
9790                 the number of seconds between <TT
9791 CLASS="PARAMETER"
9792 ><I
9793 >keepalive</I
9794 ></TT
9795
9796                 packets. If this parameter is zero, no keepalive packets will be 
9797                 sent. Keepalive packets, if sent, allow the server to tell whether 
9798                 a client is still present and responding.</P
9799 ><P
9800 >Keepalives should, in general, not be needed if the socket 
9801                 being used has the SO_KEEPALIVE attribute set on it (see <A
9802 HREF="index.html#SOCKETOPTIONS"
9803 ><TT
9804 CLASS="PARAMETER"
9805 ><I
9806 >socket options</I
9807 ></TT
9808 ></A
9809 >). 
9810                 Basically you should only use this option if you strike difficulties.</P
9811 ><P
9812 >Default: <B
9813 CLASS="COMMAND"
9814 >keepalive = 300</B
9815 ></P
9816 ><P
9817 >Example: <B
9818 CLASS="COMMAND"
9819 >keepalive = 600</B
9820 ></P
9821 ></DD
9822 ><DT
9823 ><A
9824 NAME="KERNELOPLOCKS"
9825 ></A
9826 >kernel oplocks (G)</DT
9827 ><DD
9828 ><P
9829 >For UNIXes that support kernel based <A
9830 HREF="index.html#OPLOCKS"
9831 ><TT
9832 CLASS="PARAMETER"
9833 ><I
9834 >oplocks</I
9835 ></TT
9836 ></A
9837 >
9838                 (currently only IRIX and the Linux 2.4 kernel), this parameter 
9839                 allows the use of them to be turned on or off.</P
9840 ><P
9841 >Kernel oplocks support allows Samba <TT
9842 CLASS="PARAMETER"
9843 ><I
9844 >oplocks
9845                 </I
9846 ></TT
9847 > to be broken whenever a local UNIX process or NFS operation 
9848                 accesses a file that <A
9849 HREF="smbd.8.html"
9850 TARGET="_top"
9851 ><B
9852 CLASS="COMMAND"
9853 >smbd(8)</B
9854 >
9855                 </A
9856 > has oplocked. This allows complete data consistency between 
9857                 SMB/CIFS, NFS and local file access (and is a <SPAN
9858 CLASS="emphasis"
9859 ><I
9860 CLASS="EMPHASIS"
9861 >very</I
9862 ></SPAN
9863
9864                 cool feature :-).</P
9865 ><P
9866 >This parameter defaults to <TT
9867 CLASS="CONSTANT"
9868 >on</TT
9869 >, but is translated
9870                 to a no-op on systems that no not have the necessary kernel support.
9871                 You should never need to touch this parameter.</P
9872 ><P
9873 >See also the <A
9874 HREF="index.html#OPLOCKS"
9875 ><TT
9876 CLASS="PARAMETER"
9877 ><I
9878 >oplocks</I
9879 ></TT
9880 >
9881                 </A
9882 > and <A
9883 HREF="index.html#LEVEL2OPLOCKS"
9884 ><TT
9885 CLASS="PARAMETER"
9886 ><I
9887 >level2 oplocks
9888                 </I
9889 ></TT
9890 ></A
9891 > parameters.</P
9892 ><P
9893 >Default: <B
9894 CLASS="COMMAND"
9895 >kernel oplocks = yes</B
9896 ></P
9897 ></DD
9898 ><DT
9899 ><A
9900 NAME="LANMANAUTH"
9901 ></A
9902 >lanman auth (G)</DT
9903 ><DD
9904 ><P
9905 >This parameter determines whether or not <A
9906 HREF="smbd.8.html"
9907 TARGET="_top"
9908 >smbd</A
9909 > will
9910                 attempt to authenticate users using the LANMAN password hash.
9911                 If disabled, only clients which support NT password hashes (e.g. Windows 
9912                 NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS 
9913                 network client) will be able to connect to the Samba host.</P
9914 ><P
9915 >Default : <B
9916 CLASS="COMMAND"
9917 >lanman auth = yes</B
9918 ></P
9919 ></DD
9920 ><DT
9921 ><A
9922 NAME="LARGEREADWRITE"
9923 ></A
9924 >large readwrite (G)</DT
9925 ><DD
9926 ><P
9927 >This parameter determines whether or not <A
9928 HREF="smbd.8.html"
9929 TARGET="_top"
9930 >smbd</A
9931 >
9932                 supports the new 64k streaming read and write varient SMB requests introduced
9933                 with Windows 2000. Note that due to Windows 2000 client redirector bugs
9934                 this requires Samba to be running on a 64-bit capable operating system such
9935                 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
9936                 Windows 2000 clients. Defaults to on. Not as tested as some other Samba
9937                 code paths.
9938                 </P
9939 ><P
9940 >Default : <B
9941 CLASS="COMMAND"
9942 >large readwrite = yes</B
9943 ></P
9944 ></DD
9945 ><DT
9946 ><A
9947 NAME="LDAPADMINDN"
9948 ></A
9949 >ldap admin dn (G)</DT
9950 ><DD
9951 ><P
9952 > The <TT
9953 CLASS="PARAMETER"
9954 ><I
9955 >ldap admin dn</I
9956 ></TT
9957 > defines the Distinguished 
9958                 Name (DN) name used by Samba to contact the ldap server when retreiving 
9959                 user account information. The <TT
9960 CLASS="PARAMETER"
9961 ><I
9962 >ldap
9963                 admin dn</I
9964 ></TT
9965 > is used in conjunction with the admin dn password
9966                 stored in the <TT
9967 CLASS="FILENAME"
9968 >private/secrets.tdb</TT
9969 > file.  See the
9970                 <A
9971 HREF="smbpasswd.8.html"
9972 TARGET="_top"
9973 ><B
9974 CLASS="COMMAND"
9975 >smbpasswd(8)</B
9976 ></A
9977 > man
9978                 page for more information on how to accmplish this.
9979                 </P
9980 ><P
9981 >Default : <SPAN
9982 CLASS="emphasis"
9983 ><I
9984 CLASS="EMPHASIS"
9985 >none</I
9986 ></SPAN
9987 ></P
9988 ></DD
9989 ><DT
9990 ><A
9991 NAME="LDAPFILTER"
9992 ></A
9993 >ldap filter (G)</DT
9994 ><DD
9995 ><P
9996 >This parameter specifies the RFC 2254 compliant LDAP search filter.
9997                 The default is to match the login name with the <TT
9998 CLASS="CONSTANT"
9999 >uid</TT
10000
10001                 attribute for all entries matching the <TT
10002 CLASS="CONSTANT"
10003 >sambaAccount</TT
10004 >               
10005                 objectclass.  Note that this filter should only return one entry.
10006                 </P
10007 ><P
10008 >Default : <B
10009 CLASS="COMMAND"
10010 >ldap filter = (&amp;(uid=%u)(objectclass=sambaAccount))</B
10011 ></P
10012 ></DD
10013 ><DT
10014 ><A
10015 NAME="LDAPSSL"
10016 ></A
10017 >ldap ssl (G)</DT
10018 ><DD
10019 ><P
10020 >This option is used to define whether or not Samba should
10021                 use SSL when connecting to the ldap server
10022                 This is <SPAN
10023 CLASS="emphasis"
10024 ><I
10025 CLASS="EMPHASIS"
10026 >NOT</I
10027 ></SPAN
10028 > related to
10029                 Samba's previous SSL support which was enabled by specifying the 
10030                 <B
10031 CLASS="COMMAND"
10032 >--with-ssl</B
10033 > option to the <TT
10034 CLASS="FILENAME"
10035 >configure</TT
10036
10037                 script.
10038                 </P
10039 ><P
10040 >               The <TT
10041 CLASS="PARAMETER"
10042 ><I
10043 >ldap ssl</I
10044 ></TT
10045 > can be set to one of three values:
10046                 (a) <TT
10047 CLASS="CONSTANT"
10048 >on</TT
10049 > - Always use SSL when contacting the 
10050                 <TT
10051 CLASS="PARAMETER"
10052 ><I
10053 >ldap   server</I
10054 ></TT
10055 >, (b) <TT
10056 CLASS="CONSTANT"
10057 >off</TT
10058 > -
10059                 Never use SSL when querying the directory, or (c) <TT
10060 CLASS="CONSTANT"
10061 >start_tls</TT
10062
10063                 - Use the LDAPv3 StartTLS extended operation 
10064                 (RFC2830) for communicating with the directory server.
10065                 </P
10066 ><P
10067 >Default : <B
10068 CLASS="COMMAND"
10069 >ldap ssl = on</B
10070 ></P
10071 ></DD
10072 ><DT
10073 ><A
10074 NAME="LDAPSUFFIX"
10075 ></A
10076 >ldap suffix (G)</DT
10077 ><DD
10078 ><P
10079 >Default : <SPAN
10080 CLASS="emphasis"
10081 ><I
10082 CLASS="EMPHASIS"
10083 >none</I
10084 ></SPAN
10085 ></P
10086 ></DD
10087 ><DT
10088 ><A
10089 NAME="LDAPUSERSUFFIX"
10090 ></A
10091 >ldap user suffix (G)</DT
10092 ><DD
10093 ><P
10094 >It specifies where users are added to the tree.
10095                 </P
10096 ><P
10097 >Default : <SPAN
10098 CLASS="emphasis"
10099 ><I
10100 CLASS="EMPHASIS"
10101 >none</I
10102 ></SPAN
10103 ></P
10104 ></DD
10105 ><DT
10106 ><A
10107 NAME="LDAPMACHINESUFFIX"
10108 ></A
10109 >ldap machine suffix (G)</DT
10110 ><DD
10111 ><P
10112 >It specifies where machines should be 
10113                 added to the ldap tree.
10114                 </P
10115 ><P
10116 >Default : <SPAN
10117 CLASS="emphasis"
10118 ><I
10119 CLASS="EMPHASIS"
10120 >none</I
10121 ></SPAN
10122 ></P
10123 ></DD
10124 ><DT
10125 ><A
10126 NAME="LEVEL2OPLOCKS"
10127 ></A
10128 >level2 oplocks (S)</DT
10129 ><DD
10130 ><P
10131 >This parameter controls whether Samba supports
10132                 level2 (read-only) oplocks on a share.</P
10133 ><P
10134 >Level2, or read-only oplocks allow Windows NT clients 
10135                 that have an oplock on a file to downgrade from a read-write oplock 
10136                 to a read-only oplock once a second client opens the file (instead 
10137                 of releasing all oplocks on a second open, as in traditional, 
10138                 exclusive oplocks). This allows all openers of the file that 
10139                 support level2 oplocks to cache the file for read-ahead only (ie. 
10140                 they may not cache writes or lock requests) and increases performance 
10141                 for many accesses of files that are not commonly written (such as 
10142                 application .EXE files).</P
10143 ><P
10144 >Once one of the clients which have a read-only oplock 
10145                 writes to the file all clients are notified (no reply is needed 
10146                 or waited for) and told to break their oplocks to "none" and 
10147                 delete any read-ahead caches.</P
10148 ><P
10149 >It is recommended that this parameter be turned on 
10150                 to speed access to shared executables.</P
10151 ><P
10152 >For more discussions on level2 oplocks see the CIFS spec.</P
10153 ><P
10154 >Currently, if <A
10155 HREF="index.html#KERNELOPLOCKS"
10156 ><TT
10157 CLASS="PARAMETER"
10158 ><I
10159 >kernel 
10160                 oplocks</I
10161 ></TT
10162 ></A
10163 > are supported then level2 oplocks are 
10164                 not granted (even if this parameter is set to <TT
10165 CLASS="CONSTANT"
10166 >yes</TT
10167 >). 
10168                 Note also, the <A
10169 HREF="index.html#OPLOCKS"
10170 ><TT
10171 CLASS="PARAMETER"
10172 ><I
10173 >oplocks</I
10174 ></TT
10175 >
10176                 </A
10177 > parameter must be set to <TT
10178 CLASS="CONSTANT"
10179 >true</TT
10180 > on this share in order for 
10181                 this parameter to have any effect.</P
10182 ><P
10183 >See also the <A
10184 HREF="index.html#OPLOCKS"
10185 ><TT
10186 CLASS="PARAMETER"
10187 ><I
10188 >oplocks</I
10189 ></TT
10190 >
10191                 </A
10192 > and <A
10193 HREF="index.html#OPLOCKS"
10194 ><TT
10195 CLASS="PARAMETER"
10196 ><I
10197 >kernel oplocks</I
10198 ></TT
10199 >
10200                 </A
10201 > parameters.</P
10202 ><P
10203 >Default: <B
10204 CLASS="COMMAND"
10205 >level2 oplocks = yes</B
10206 ></P
10207 ></DD
10208 ><DT
10209 ><A
10210 NAME="LMANNOUNCE"
10211 ></A
10212 >lm announce (G)</DT
10213 ><DD
10214 ><P
10215 >This parameter determines if <A
10216 HREF="nmbd.8.html"
10217 TARGET="_top"
10218 >               <B
10219 CLASS="COMMAND"
10220 >nmbd(8)</B
10221 ></A
10222 > will produce Lanman announce 
10223                 broadcasts that are needed by OS/2 clients in order for them to see 
10224                 the Samba server in their browse list. This parameter can have three 
10225                 values, <TT
10226 CLASS="CONSTANT"
10227 >true</TT
10228 >, <TT
10229 CLASS="CONSTANT"
10230 >false</TT
10231 >, or
10232                 <TT
10233 CLASS="CONSTANT"
10234 >auto</TT
10235 >. The default is <TT
10236 CLASS="CONSTANT"
10237 >auto</TT
10238 >.  
10239                 If set to <TT
10240 CLASS="CONSTANT"
10241 >false</TT
10242 > Samba will never produce these 
10243                 broadcasts. If set to <TT
10244 CLASS="CONSTANT"
10245 >true</TT
10246 > Samba will produce 
10247                 Lanman announce broadcasts at a frequency set by the parameter 
10248                 <TT
10249 CLASS="PARAMETER"
10250 ><I
10251 >lm interval</I
10252 ></TT
10253 >. If set to <TT
10254 CLASS="CONSTANT"
10255 >auto</TT
10256
10257                 Samba will not send Lanman announce broadcasts by default but will 
10258                 listen for them. If it hears such a broadcast on the wire it will 
10259                 then start sending them at a frequency set by the parameter 
10260                 <TT
10261 CLASS="PARAMETER"
10262 ><I
10263 >lm interval</I
10264 ></TT
10265 >.</P
10266 ><P
10267 >See also <A
10268 HREF="index.html#LMINTERVAL"
10269 ><TT
10270 CLASS="PARAMETER"
10271 ><I
10272 >lm interval
10273                 </I
10274 ></TT
10275 ></A
10276 >.</P
10277 ><P
10278 >Default: <B
10279 CLASS="COMMAND"
10280 >lm announce = auto</B
10281 ></P
10282 ><P
10283 >Example: <B
10284 CLASS="COMMAND"
10285 >lm announce = yes</B
10286 ></P
10287 ></DD
10288 ><DT
10289 ><A
10290 NAME="LMINTERVAL"
10291 ></A
10292 >lm interval (G)</DT
10293 ><DD
10294 ><P
10295 >If Samba is set to produce Lanman announce 
10296                 broadcasts needed by OS/2 clients (see the <A
10297 HREF="index.html#LMANNOUNCE"
10298 >               <TT
10299 CLASS="PARAMETER"
10300 ><I
10301 >lm announce</I
10302 ></TT
10303 ></A
10304 > parameter) then this 
10305                 parameter defines the frequency in seconds with which they will be 
10306                 made.  If this is set to zero then no Lanman announcements will be 
10307                 made despite the setting of the <TT
10308 CLASS="PARAMETER"
10309 ><I
10310 >lm announce</I
10311 ></TT
10312
10313                 parameter.</P
10314 ><P
10315 >See also <A
10316 HREF="index.html#LMANNOUNCE"
10317 ><TT
10318 CLASS="PARAMETER"
10319 ><I
10320 >lm 
10321                 announce</I
10322 ></TT
10323 ></A
10324 >.</P
10325 ><P
10326 >Default: <B
10327 CLASS="COMMAND"
10328 >lm interval = 60</B
10329 ></P
10330 ><P
10331 >Example: <B
10332 CLASS="COMMAND"
10333 >lm interval = 120</B
10334 ></P
10335 ></DD
10336 ><DT
10337 ><A
10338 NAME="LOADPRINTERS"
10339 ></A
10340 >load printers (G)</DT
10341 ><DD
10342 ><P
10343 >A boolean variable that controls whether all 
10344                 printers in the printcap will be loaded for browsing by default. 
10345                 See the <A
10346 HREF="index.html#AEN79"
10347 >printers</A
10348 > section for 
10349                 more details.</P
10350 ><P
10351 >Default: <B
10352 CLASS="COMMAND"
10353 >load printers = yes</B
10354 ></P
10355 ></DD
10356 ><DT
10357 ><A
10358 NAME="LOCALMASTER"
10359 ></A
10360 >local master (G)</DT
10361 ><DD
10362 ><P
10363 >This option allows <A
10364 HREF="nmbd.8.html"
10365 TARGET="_top"
10366 ><B
10367 CLASS="COMMAND"
10368 >               nmbd(8)</B
10369 ></A
10370 > to try and become a local master browser 
10371                 on a subnet. If set to <TT
10372 CLASS="CONSTANT"
10373 >false</TT
10374 > then <B
10375 CLASS="COMMAND"
10376 >               nmbd</B
10377 > will not attempt to become a local master browser 
10378                 on a subnet and will also lose in all browsing elections. By
10379                 default this value is set to <TT
10380 CLASS="CONSTANT"
10381 >true</TT
10382 >. Setting this value to <TT
10383 CLASS="CONSTANT"
10384 >true</TT
10385 > doesn't
10386                 mean that Samba will <SPAN
10387 CLASS="emphasis"
10388 ><I
10389 CLASS="EMPHASIS"
10390 >become</I
10391 ></SPAN
10392 > the local master 
10393                 browser on a subnet, just that <B
10394 CLASS="COMMAND"
10395 >nmbd</B
10396 > will <SPAN
10397 CLASS="emphasis"
10398 ><I
10399 CLASS="EMPHASIS"
10400 >               participate</I
10401 ></SPAN
10402 > in elections for local master browser.</P
10403 ><P
10404 >Setting this value to <TT
10405 CLASS="CONSTANT"
10406 >false</TT
10407 > will cause <B
10408 CLASS="COMMAND"
10409 >nmbd</B
10410 >
10411                 <SPAN
10412 CLASS="emphasis"
10413 ><I
10414 CLASS="EMPHASIS"
10415 >never</I
10416 ></SPAN
10417 > to become a local master browser.</P
10418 ><P
10419 >Default: <B
10420 CLASS="COMMAND"
10421 >local master = yes</B
10422 ></P
10423 ></DD
10424 ><DT
10425 ><A
10426 NAME="LOCKDIR"
10427 ></A
10428 >lock dir (G)</DT
10429 ><DD
10430 ><P
10431 >Synonym for <A
10432 HREF="index.html#LOCKDIRECTORY"
10433 ><TT
10434 CLASS="PARAMETER"
10435 ><I
10436 >               lock directory</I
10437 ></TT
10438 ></A
10439 >.</P
10440 ></DD
10441 ><DT
10442 ><A
10443 NAME="LOCKDIRECTORY"
10444 ></A
10445 >lock directory (G)</DT
10446 ><DD
10447 ><P
10448 >This option specifies the directory where lock 
10449                 files will be placed.  The lock files are used to implement the 
10450                 <A
10451 HREF="index.html#MAXCONNECTIONS"
10452 ><TT
10453 CLASS="PARAMETER"
10454 ><I
10455 >max connections</I
10456 ></TT
10457 >
10458                 </A
10459 > option.</P
10460 ><P
10461 >Default: <B
10462 CLASS="COMMAND"
10463 >lock directory = ${prefix}/var/locks</B
10464 ></P
10465 ><P
10466 >Example: <B
10467 CLASS="COMMAND"
10468 >lock directory = /var/run/samba/locks</B
10469 >
10470                 </P
10471 ></DD
10472 ><DT
10473 ><A
10474 NAME="LOCKSPINCOUNT"
10475 ></A
10476 >lock spin count (G)</DT
10477 ><DD
10478 ><P
10479 >This parameter controls the number of times
10480                 that smbd should attempt to gain a byte range lock on the 
10481                 behalf of a client request.  Experiments have shown that
10482                 Windows 2k servers do not reply with a failure if the lock
10483                 could not be immediately granted, but try a few more times
10484                 in case the lock could later be aquired.  This behavior
10485                 is used to support PC database formats such as MS Access
10486                 and FoxPro.
10487                 </P
10488 ><P
10489 >Default: <B
10490 CLASS="COMMAND"
10491 >lock spin count = 2</B
10492 >
10493                 </P
10494 ></DD
10495 ><DT
10496 ><A
10497 NAME="LOCKSPINTIME"
10498 ></A
10499 >lock spin time (G)</DT
10500 ><DD
10501 ><P
10502 >The time in microseconds that smbd should 
10503                 pause before attempting to gain a failed lock.  See
10504                 <A
10505 HREF="index.html#LOCKSPINCOUNT"
10506 ><TT
10507 CLASS="PARAMETER"
10508 ><I
10509 >lock spin 
10510                 count</I
10511 ></TT
10512 ></A
10513 > for more details.
10514                 </P
10515 ><P
10516 >Default: <B
10517 CLASS="COMMAND"
10518 >lock spin time = 10</B
10519 >
10520                 </P
10521 ></DD
10522 ><DT
10523 ><A
10524 NAME="LOCKING"
10525 ></A
10526 >locking (S)</DT
10527 ><DD
10528 ><P
10529 >This controls whether or not locking will be 
10530                 performed by the server in response to lock requests from the 
10531                 client.</P
10532 ><P
10533 >If <B
10534 CLASS="COMMAND"
10535 >locking = no</B
10536 >, all lock and unlock 
10537                 requests will appear to succeed and all lock queries will report 
10538                 that the file in question is available for locking.</P
10539 ><P
10540 >If <B
10541 CLASS="COMMAND"
10542 >locking = yes</B
10543 >, real locking will be performed 
10544                 by the server.</P
10545 ><P
10546 >This option <SPAN
10547 CLASS="emphasis"
10548 ><I
10549 CLASS="EMPHASIS"
10550 >may</I
10551 ></SPAN
10552 > be useful for read-only 
10553                 filesystems which <SPAN
10554 CLASS="emphasis"
10555 ><I
10556 CLASS="EMPHASIS"
10557 >may</I
10558 ></SPAN
10559 > not need locking (such as 
10560                 CDROM drives), although setting this parameter of <TT
10561 CLASS="CONSTANT"
10562 >no</TT
10563
10564                 is not really recommended even in this case.</P
10565 ><P
10566 >Be careful about disabling locking either globally or in a 
10567                 specific service, as lack of locking may result in data corruption. 
10568                 You should never need to set this parameter.</P
10569 ><P
10570 >Default: <B
10571 CLASS="COMMAND"
10572 >locking = yes</B
10573 ></P
10574 ></DD
10575 ><DT
10576 ><A
10577 NAME="LOGFILE"
10578 ></A
10579 >log file (G)</DT
10580 ><DD
10581 ><P
10582 >This option allows you to override the name 
10583                 of the Samba log file (also known as the debug file).</P
10584 ><P
10585 >This option takes the standard substitutions, allowing 
10586                 you to have separate log files for each user or machine.</P
10587 ><P
10588 >Example: <B
10589 CLASS="COMMAND"
10590 >log file = /usr/local/samba/var/log.%m
10591                 </B
10592 ></P
10593 ></DD
10594 ><DT
10595 ><A
10596 NAME="LOGLEVEL"
10597 ></A
10598 >log level (G)</DT
10599 ><DD
10600 ><P
10601 >The value of the parameter (a astring) allows 
10602                 the debug level (logging level) to be specified in the 
10603                 <TT
10604 CLASS="FILENAME"
10605 >smb.conf</TT
10606 > file. This parameter has been
10607                 extended since 2.2.x series, now it allow to specify the debug
10608                 level for multiple debug classes. This is to give greater 
10609                 flexibility in the configuration of the system.</P
10610 ><P
10611 >The default will be the log level specified on 
10612                 the command line or level zero if none was specified.</P
10613 ><P
10614 >Example: <B
10615 CLASS="COMMAND"
10616 >log level = 3 passdb:5 auth:10 winbind:2
10617                 </B
10618 ></P
10619 ></DD
10620 ><DT
10621 ><A
10622 NAME="LOGONDRIVE"
10623 ></A
10624 >logon drive (G)</DT
10625 ><DD
10626 ><P
10627 >This parameter specifies the local path to 
10628                 which the home directory will be connected (see <A
10629 HREF="index.html#LOGONHOME"
10630 ><TT
10631 CLASS="PARAMETER"
10632 ><I
10633 >logon home</I
10634 ></TT
10635 ></A
10636 >) 
10637                 and is only used by NT Workstations. </P
10638 ><P
10639 >Note that this option is only useful if Samba is set up as a
10640                 logon server.</P
10641 ><P
10642 >Default: <B
10643 CLASS="COMMAND"
10644 >logon drive = z:</B
10645 ></P
10646 ><P
10647 >Example: <B
10648 CLASS="COMMAND"
10649 >logon drive = h:</B
10650 ></P
10651 ></DD
10652 ><DT
10653 ><A
10654 NAME="LOGONHOME"
10655 ></A
10656 >logon home (G)</DT
10657 ><DD
10658 ><P
10659 >This parameter specifies the home directory 
10660                 location when a Win95/98 or NT Workstation logs into a Samba PDC.  
10661                 It allows you to do </P
10662 ><P
10663 ><TT
10664 CLASS="PROMPT"
10665 >C:\&#62; </TT
10666 ><TT
10667 CLASS="USERINPUT"
10668 ><B
10669 >NET USE H: /HOME</B
10670 ></TT
10671 >
10672                 </P
10673 ><P
10674 >from a command prompt, for example.</P
10675 ><P
10676 >This option takes the standard substitutions, allowing 
10677                 you to have separate logon scripts for each user or machine.</P
10678 ><P
10679 >This parameter can be used with Win9X workstations to ensure 
10680                 that roaming profiles are stored in a subdirectory of the user's 
10681                 home directory.  This is done in the following way:</P
10682 ><P
10683 ><B
10684 CLASS="COMMAND"
10685 >logon home = \\%N\%U\profile</B
10686 ></P
10687 ><P
10688 >This tells Samba to return the above string, with 
10689                 substitutions made when a client requests the info, generally 
10690                 in a NetUserGetInfo request.  Win9X clients truncate the info to
10691                 \\server\share when a user does <B
10692 CLASS="COMMAND"
10693 >net use /home</B
10694 >
10695                 but use the whole string when dealing with profiles.</P
10696 ><P
10697 >Note that in prior versions of Samba, the <A
10698 HREF="index.html#LOGONPATH"
10699 >               <TT
10700 CLASS="PARAMETER"
10701 ><I
10702 >logon path</I
10703 ></TT
10704 ></A
10705 > was returned rather than 
10706                 <TT
10707 CLASS="PARAMETER"
10708 ><I
10709 >logon home</I
10710 ></TT
10711 >.  This broke <B
10712 CLASS="COMMAND"
10713 >net use 
10714                 /home</B
10715 > but allowed profiles outside the home directory.  
10716                 The current implementation is correct, and can be used for 
10717                 profiles if you use the above trick.</P
10718 ><P
10719 >This option is only useful if Samba is set up as a logon 
10720                 server.</P
10721 ><P
10722 >Default: <B
10723 CLASS="COMMAND"
10724 >logon home = "\\%N\%U"</B
10725 ></P
10726 ><P
10727 >Example: <B
10728 CLASS="COMMAND"
10729 >logon home = "\\remote_smb_server\%U"</B
10730 >
10731                 </P
10732 ></DD
10733 ><DT
10734 ><A
10735 NAME="LOGONPATH"
10736 ></A
10737 >logon path (G)</DT
10738 ><DD
10739 ><P
10740 >This parameter specifies the home directory 
10741                 where roaming profiles (NTuser.dat etc files for Windows NT) are 
10742                 stored.  Contrary to previous versions of these manual pages, it has 
10743                 nothing to do with Win 9X roaming profiles.  To find out how to 
10744                 handle roaming profiles for Win 9X system, see the <A
10745 HREF="index.html#LOGONHOME"
10746 >               <TT
10747 CLASS="PARAMETER"
10748 ><I
10749 >logon home</I
10750 ></TT
10751 ></A
10752 > parameter.</P
10753 ><P
10754 >This option takes the standard substitutions, allowing you 
10755                 to have separate logon scripts for each user or machine.  It also 
10756                 specifies the directory from which the "Application Data", 
10757                 (<TT
10758 CLASS="FILENAME"
10759 >desktop</TT
10760 >, <TT
10761 CLASS="FILENAME"
10762 >start menu</TT
10763 >,
10764                 <TT
10765 CLASS="FILENAME"
10766 >network neighborhood</TT
10767 >, <TT
10768 CLASS="FILENAME"
10769 >programs</TT
10770
10771                 and other folders, and their contents, are loaded and displayed on 
10772                 your Windows NT client.</P
10773 ><P
10774 >The share and the path must be readable by the user for 
10775                 the preferences and directories to be loaded onto the Windows NT
10776                 client.  The share must be writeable when the user logs in for the first
10777                 time, in order that the Windows NT client can create the NTuser.dat
10778                 and other directories.</P
10779 ><P
10780 >Thereafter, the directories and any of the contents can, 
10781                 if required, be made read-only.  It is not advisable that the 
10782                 NTuser.dat file be made read-only - rename it to NTuser.man to 
10783                 achieve the desired effect (a <SPAN
10784 CLASS="emphasis"
10785 ><I
10786 CLASS="EMPHASIS"
10787 >MAN</I
10788 ></SPAN
10789 >datory 
10790                 profile). </P
10791 ><P
10792 >Windows clients can sometimes maintain a connection to 
10793                 the [homes] share, even though there is no user logged in.  
10794                 Therefore, it is vital that the logon path does not include a 
10795                 reference to the homes share (i.e. setting this parameter to
10796                 \%N\%U\profile_path will cause problems).</P
10797 ><P
10798 >This option takes the standard substitutions, allowing 
10799                 you to have separate logon scripts for each user or machine.</P
10800 ><P
10801 >Note that this option is only useful if Samba is set up 
10802                 as a logon server.</P
10803 ><P
10804 >Default: <B
10805 CLASS="COMMAND"
10806 >logon path = \\%N\%U\profile</B
10807 ></P
10808 ><P
10809 >Example: <B
10810 CLASS="COMMAND"
10811 >logon path = \\PROFILESERVER\PROFILE\%U</B
10812 ></P
10813 ></DD
10814 ><DT
10815 ><A
10816 NAME="LOGONSCRIPT"
10817 ></A
10818 >logon script (G)</DT
10819 ><DD
10820 ><P
10821 >This parameter specifies the batch file (.bat) or 
10822                 NT command file (.cmd) to be downloaded and run on a machine when 
10823                 a user successfully logs in.  The file must contain the DOS 
10824                 style CR/LF line endings. Using a DOS-style editor to create the 
10825                 file is recommended.</P
10826 ><P
10827 >The script must be a relative path to the [netlogon] 
10828                 service.  If the [netlogon] service specifies a <A
10829 HREF="index.html#PATH"
10830 >               <TT
10831 CLASS="PARAMETER"
10832 ><I
10833 >path</I
10834 ></TT
10835 ></A
10836 > of <TT
10837 CLASS="FILENAME"
10838 >/usr/local/samba/netlogon
10839                 </TT
10840 >, and <B
10841 CLASS="COMMAND"
10842 >logon script = STARTUP.BAT</B
10843 >, then 
10844                 the file that will be downloaded is:</P
10845 ><P
10846 ><TT
10847 CLASS="FILENAME"
10848 >/usr/local/samba/netlogon/STARTUP.BAT</TT
10849 ></P
10850 ><P
10851 >The contents of the batch file are entirely your choice.  A 
10852                 suggested command would be to add <B
10853 CLASS="COMMAND"
10854 >NET TIME \\SERVER /SET 
10855                 /YES</B
10856 >, to force every machine to synchronize clocks with 
10857                 the same time server.  Another use would be to add <B
10858 CLASS="COMMAND"
10859 >NET USE 
10860                 U: \\SERVER\UTILS</B
10861 > for commonly used utilities, or <B
10862 CLASS="COMMAND"
10863 >               NET USE Q: \\SERVER\ISO9001_QA</B
10864 > for example.</P
10865 ><P
10866 >Note that it is particularly important not to allow write 
10867                 access to the [netlogon] share, or to grant users write permission 
10868                 on the batch files in a secure environment, as this would allow 
10869                 the batch files to be arbitrarily modified and security to be 
10870                 breached.</P
10871 ><P
10872 >This option takes the standard substitutions, allowing you 
10873                 to have separate logon scripts for each user or machine.</P
10874 ><P
10875 >This option is only useful if Samba is set up as a logon 
10876                 server.</P
10877 ><P
10878 >Default: <SPAN
10879 CLASS="emphasis"
10880 ><I
10881 CLASS="EMPHASIS"
10882 >no logon script defined</I
10883 ></SPAN
10884 ></P
10885 ><P
10886 >Example: <B
10887 CLASS="COMMAND"
10888 >logon script = scripts\%U.bat</B
10889 ></P
10890 ></DD
10891 ><DT
10892 ><A
10893 NAME="LPPAUSECOMMAND"
10894 ></A
10895 >lppause command (S)</DT
10896 ><DD
10897 ><P
10898 >This parameter specifies the command to be 
10899                 executed on the server host in order to stop printing or spooling 
10900                 a specific print job.</P
10901 ><P
10902 >This command should be a program or script which takes 
10903                 a printer name and job number to pause the print job. One way 
10904                 of implementing this is by using job priorities, where jobs 
10905                 having a too low priority won't be sent to the printer.</P
10906 ><P
10907 >If a <TT
10908 CLASS="PARAMETER"
10909 ><I
10910 >%p</I
10911 ></TT
10912 > is given then the printer name 
10913                 is put in its place. A <TT
10914 CLASS="PARAMETER"
10915 ><I
10916 >%j</I
10917 ></TT
10918 > is replaced with 
10919                 the job number (an integer).  On HPUX (see <TT
10920 CLASS="PARAMETER"
10921 ><I
10922 >printing=hpux
10923                 </I
10924 ></TT
10925 >), if the <TT
10926 CLASS="PARAMETER"
10927 ><I
10928 >-p%p</I
10929 ></TT
10930 > option is added 
10931                 to the lpq command, the job will show up with the correct status, i.e. 
10932                 if the job priority is lower than the set fence priority it will 
10933                 have the PAUSED status, whereas if  the priority is equal or higher it 
10934                 will have the SPOOLED or PRINTING status.</P
10935 ><P
10936 >Note that it is good practice to include the absolute path 
10937                 in the lppause command as the PATH may not be available to the server.</P
10938 ><P
10939 >See also the <A
10940 HREF="index.html#PRINTING"
10941 ><TT
10942 CLASS="PARAMETER"
10943 ><I
10944 >printing
10945                 </I
10946 ></TT
10947 ></A
10948 > parameter.</P
10949 ><P
10950 >Default: Currently no default value is given to 
10951                 this string, unless the value of the <TT
10952 CLASS="PARAMETER"
10953 ><I
10954 >printing</I
10955 ></TT
10956
10957                 parameter is <TT
10958 CLASS="CONSTANT"
10959 >SYSV</TT
10960 >, in which case the default is :</P
10961 ><P
10962 ><B
10963 CLASS="COMMAND"
10964 >lp -i %p-%j -H hold</B
10965 ></P
10966 ><P
10967 >or if the value of the <TT
10968 CLASS="PARAMETER"
10969 ><I
10970 >printing</I
10971 ></TT
10972 > parameter 
10973                 is <TT
10974 CLASS="CONSTANT"
10975 >SOFTQ</TT
10976 >, then the default is:</P
10977 ><P
10978 ><B
10979 CLASS="COMMAND"
10980 >qstat -s -j%j -h</B
10981 ></P
10982 ><P
10983 >Example for HPUX: <B
10984 CLASS="COMMAND"
10985 >lppause command = /usr/bin/lpalt       
10986                 %p-%j -p0</B
10987 ></P
10988 ></DD
10989 ><DT
10990 ><A
10991 NAME="LPQCACHETIME"
10992 ></A
10993 >lpq cache time (G)</DT
10994 ><DD
10995 ><P
10996 >This controls how long lpq info will be cached 
10997                 for to prevent the <B
10998 CLASS="COMMAND"
10999 >lpq</B
11000 > command being called too 
11001                 often. A separate cache is kept for each variation of the <B
11002 CLASS="COMMAND"
11003 >               lpq</B
11004 > command used by the system, so if you use different 
11005                 <B
11006 CLASS="COMMAND"
11007 >lpq</B
11008 > commands for different users then they won't
11009                 share cache information.</P
11010 ><P
11011 >The cache files are stored in <TT
11012 CLASS="FILENAME"
11013 >/tmp/lpq.xxxx</TT
11014
11015                 where xxxx is a hash of the <B
11016 CLASS="COMMAND"
11017 >lpq</B
11018 > command in use.</P
11019 ><P
11020 >The default is 10 seconds, meaning that the cached results 
11021                 of a previous identical <B
11022 CLASS="COMMAND"
11023 >lpq</B
11024 > command will be used 
11025                 if the cached data is less than 10 seconds old. A large value may 
11026                 be advisable if your <B
11027 CLASS="COMMAND"
11028 >lpq</B
11029 > command is very slow.</P
11030 ><P
11031 >A value of 0 will disable caching completely.</P
11032 ><P
11033 >See also the <A
11034 HREF="index.html#PRINTING"
11035 ><TT
11036 CLASS="PARAMETER"
11037 ><I
11038 >printing
11039                 </I
11040 ></TT
11041 ></A
11042 > parameter.</P
11043 ><P
11044 >Default: <B
11045 CLASS="COMMAND"
11046 >lpq cache time = 10</B
11047 ></P
11048 ><P
11049 >Example: <B
11050 CLASS="COMMAND"
11051 >lpq cache time = 30</B
11052 ></P
11053 ></DD
11054 ><DT
11055 ><A
11056 NAME="LPQCOMMAND"
11057 ></A
11058 >lpq command (S)</DT
11059 ><DD
11060 ><P
11061 >This parameter specifies the command to be 
11062                 executed on the server host in order to obtain <B
11063 CLASS="COMMAND"
11064 >lpq
11065                 </B
11066 >-style printer status information.</P
11067 ><P
11068 >This command should be a program or script which 
11069                 takes a printer name as its only parameter and outputs printer 
11070                 status information.</P
11071 ><P
11072 >Currently nine styles of printer status information 
11073                 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ. 
11074                 This covers most UNIX systems. You control which type is expected 
11075                 using the <TT
11076 CLASS="PARAMETER"
11077 ><I
11078 >printing =</I
11079 ></TT
11080 > option.</P
11081 ><P
11082 >Some clients (notably Windows for Workgroups) may not 
11083                 correctly send the connection number for the printer they are 
11084                 requesting status information about. To get around this, the 
11085                 server reports on the first printer service connected to by the 
11086                 client. This only happens if the connection number sent is invalid.</P
11087 ><P
11088 >If a <TT
11089 CLASS="PARAMETER"
11090 ><I
11091 >%p</I
11092 ></TT
11093 > is given then the printer name 
11094                 is put in its place. Otherwise it is placed at the end of the 
11095                 command.</P
11096 ><P
11097 >Note that it is good practice to include the absolute path 
11098                 in the <TT
11099 CLASS="PARAMETER"
11100 ><I
11101 >lpq command</I
11102 ></TT
11103 > as the <TT
11104 CLASS="ENVAR"
11105 >$PATH
11106                 </TT
11107 > may not be available to the server.  When compiled with
11108                 the CUPS libraries, no <TT
11109 CLASS="PARAMETER"
11110 ><I
11111 >lpq command</I
11112 ></TT
11113 > is
11114                 needed because smbd will make a library call to obtain the 
11115                 print queue listing.</P
11116 ><P
11117 >See also the <A
11118 HREF="index.html#PRINTING"
11119 ><TT
11120 CLASS="PARAMETER"
11121 ><I
11122 >printing
11123                 </I
11124 ></TT
11125 ></A
11126 > parameter.</P
11127 ><P
11128 >Default: <SPAN
11129 CLASS="emphasis"
11130 ><I
11131 CLASS="EMPHASIS"
11132 >depends on the setting of <TT
11133 CLASS="PARAMETER"
11134 ><I
11135 >               printing</I
11136 ></TT
11137 ></I
11138 ></SPAN
11139 ></P
11140 ><P
11141 >Example: <B
11142 CLASS="COMMAND"
11143 >lpq command = /usr/bin/lpq -P%p</B
11144 ></P
11145 ></DD
11146 ><DT
11147 ><A
11148 NAME="LPRESUMECOMMAND"
11149 ></A
11150 >lpresume command (S)</DT
11151 ><DD
11152 ><P
11153 >This parameter specifies the command to be 
11154                 executed on the server host in order to restart or continue 
11155                 printing or spooling a specific print job.</P
11156 ><P
11157 >This command should be a program or script which takes 
11158                 a printer name and job number to resume the print job. See 
11159                 also the <A
11160 HREF="index.html#LPPAUSECOMMAND"
11161 ><TT
11162 CLASS="PARAMETER"
11163 ><I
11164 >lppause command
11165                 </I
11166 ></TT
11167 ></A
11168 > parameter.</P
11169 ><P
11170 >If a <TT
11171 CLASS="PARAMETER"
11172 ><I
11173 >%p</I
11174 ></TT
11175 > is given then the printer name 
11176                 is put in its place. A <TT
11177 CLASS="PARAMETER"
11178 ><I
11179 >%j</I
11180 ></TT
11181 > is replaced with 
11182                 the job number (an integer).</P
11183 ><P
11184 >Note that it is good practice to include the absolute path 
11185                 in the <TT
11186 CLASS="PARAMETER"
11187 ><I
11188 >lpresume command</I
11189 ></TT
11190 > as the PATH may not 
11191                 be available to the server.</P
11192 ><P
11193 >See also the <A
11194 HREF="index.html#PRINTING"
11195 ><TT
11196 CLASS="PARAMETER"
11197 ><I
11198 >printing
11199                 </I
11200 ></TT
11201 ></A
11202 > parameter.</P
11203 ><P
11204 >Default: Currently no default value is given 
11205                 to this string, unless the value of the <TT
11206 CLASS="PARAMETER"
11207 ><I
11208 >printing</I
11209 ></TT
11210
11211                 parameter is <TT
11212 CLASS="CONSTANT"
11213 >SYSV</TT
11214 >, in which case the default is :</P
11215 ><P
11216 ><B
11217 CLASS="COMMAND"
11218 >lp -i %p-%j -H resume</B
11219 ></P
11220 ><P
11221 >or if the value of the <TT
11222 CLASS="PARAMETER"
11223 ><I
11224 >printing</I
11225 ></TT
11226 > parameter 
11227                 is <TT
11228 CLASS="CONSTANT"
11229 >SOFTQ</TT
11230 >, then the default is:</P
11231 ><P
11232 ><B
11233 CLASS="COMMAND"
11234 >qstat -s -j%j -r</B
11235 ></P
11236 ><P
11237 >Example for HPUX: <B
11238 CLASS="COMMAND"
11239 >lpresume command = /usr/bin/lpalt 
11240                 %p-%j -p2</B
11241 ></P
11242 ></DD
11243 ><DT
11244 ><A
11245 NAME="LPRMCOMMAND"
11246 ></A
11247 >lprm command (S)</DT
11248 ><DD
11249 ><P
11250 >This parameter specifies the command to be 
11251                 executed on the server host in order to delete a print job.</P
11252 ><P
11253 >This command should be a program or script which takes 
11254                 a printer name and job number, and deletes the print job.</P
11255 ><P
11256 >If a <TT
11257 CLASS="PARAMETER"
11258 ><I
11259 >%p</I
11260 ></TT
11261 > is given then the printer name 
11262                 is put in its place. A <TT
11263 CLASS="PARAMETER"
11264 ><I
11265 >%j</I
11266 ></TT
11267 > is replaced with 
11268                 the job number (an integer).</P
11269 ><P
11270 >Note that it is good practice to include the absolute 
11271                 path in the <TT
11272 CLASS="PARAMETER"
11273 ><I
11274 >lprm command</I
11275 ></TT
11276 > as the PATH may not be 
11277                 available to the server.</P
11278 ><P
11279 >See also the <A
11280 HREF="index.html#PRINTING"
11281 ><TT
11282 CLASS="PARAMETER"
11283 ><I
11284 >printing
11285                 </I
11286 ></TT
11287 ></A
11288 > parameter.</P
11289 ><P
11290 >Default: <SPAN
11291 CLASS="emphasis"
11292 ><I
11293 CLASS="EMPHASIS"
11294 >depends on the setting of <TT
11295 CLASS="PARAMETER"
11296 ><I
11297 >printing
11298                 </I
11299 ></TT
11300 ></I
11301 ></SPAN
11302 ></P
11303 ><P
11304 >Example 1: <B
11305 CLASS="COMMAND"
11306 >lprm command = /usr/bin/lprm -P%p %j
11307                 </B
11308 ></P
11309 ><P
11310 >Example 2: <B
11311 CLASS="COMMAND"
11312 >lprm command = /usr/bin/cancel %p-%j
11313                 </B
11314 ></P
11315 ></DD
11316 ><DT
11317 ><A
11318 NAME="MACHINEPASSWORDTIMEOUT"
11319 ></A
11320 >machine password timeout (G)</DT
11321 ><DD
11322 ><P
11323 >If a Samba server is a member of a Windows 
11324                 NT Domain (see the <A
11325 HREF="index.html#SECURITYEQUALSDOMAIN"
11326 >security = domain</A
11327 >) 
11328                 parameter) then periodically a running <A
11329 HREF="smbd.8.html"
11330 TARGET="_top"
11331 >               smbd(8)</A
11332 > process will try and change the MACHINE ACCOUNT 
11333                 PASSWORD stored in the TDB called <TT
11334 CLASS="FILENAME"
11335 >private/secrets.tdb
11336                 </TT
11337 >.  This parameter specifies how often this password 
11338                 will be changed, in seconds. The default is one week (expressed in 
11339                 seconds), the same as a Windows NT Domain member server.</P
11340 ><P
11341 >See also <A
11342 HREF="smbpasswd.8.html"
11343 TARGET="_top"
11344 ><B
11345 CLASS="COMMAND"
11346 >smbpasswd(8)
11347                 </B
11348 ></A
11349 >, and the <A
11350 HREF="index.html#SECURITYEQUALSDOMAIN"
11351 >               security = domain</A
11352 >) parameter.</P
11353 ><P
11354 >Default: <B
11355 CLASS="COMMAND"
11356 >machine password timeout = 604800</B
11357 ></P
11358 ></DD
11359 ><DT
11360 ><A
11361 NAME="MAGICOUTPUT"
11362 ></A
11363 >magic output (S)</DT
11364 ><DD
11365 ><P
11366 >This parameter specifies the name of a file 
11367                 which will contain output created by a magic script (see the 
11368                 <A
11369 HREF="index.html#MAGICSCRIPT"
11370 ><TT
11371 CLASS="PARAMETER"
11372 ><I
11373 >magic script</I
11374 ></TT
11375 ></A
11376 >
11377                 parameter below).</P
11378 ><P
11379 >Warning: If two clients use the same <TT
11380 CLASS="PARAMETER"
11381 ><I
11382 >magic script
11383                 </I
11384 ></TT
11385 > in the same directory the output file content
11386                 is undefined.</P
11387 ><P
11388 >Default: <B
11389 CLASS="COMMAND"
11390 >magic output = &lt;magic script name&gt;.out
11391                 </B
11392 ></P
11393 ><P
11394 >Example: <B
11395 CLASS="COMMAND"
11396 >magic output = myfile.txt</B
11397 ></P
11398 ></DD
11399 ><DT
11400 ><A
11401 NAME="MAGICSCRIPT"
11402 ></A
11403 >magic script (S)</DT
11404 ><DD
11405 ><P
11406 >This parameter specifies the name of a file which, 
11407                 if opened, will be executed by the server when the file is closed. 
11408                 This allows a UNIX script to be sent to the Samba host and 
11409                 executed on behalf of the connected user.</P
11410 ><P
11411 >Scripts executed in this way will be deleted upon 
11412                 completion assuming that the user has the appropriate level 
11413                 of privilege and the file permissions allow the deletion.</P
11414 ><P
11415 >If the script generates output, output will be sent to 
11416                 the file specified by the <A
11417 HREF="index.html#MAGICOUTPUT"
11418 ><TT
11419 CLASS="PARAMETER"
11420 ><I
11421 >               magic output</I
11422 ></TT
11423 ></A
11424 > parameter (see above).</P
11425 ><P
11426 >Note that some shells are unable to interpret scripts 
11427                 containing CR/LF instead of CR as 
11428                 the end-of-line marker. Magic scripts must be executable 
11429                 <SPAN
11430 CLASS="emphasis"
11431 ><I
11432 CLASS="EMPHASIS"
11433 >as is</I
11434 ></SPAN
11435 > on the host, which for some hosts and 
11436                 some shells will require filtering at the DOS end.</P
11437 ><P
11438 >Magic scripts are <SPAN
11439 CLASS="emphasis"
11440 ><I
11441 CLASS="EMPHASIS"
11442 >EXPERIMENTAL</I
11443 ></SPAN
11444 > and 
11445                 should <SPAN
11446 CLASS="emphasis"
11447 ><I
11448 CLASS="EMPHASIS"
11449 >NOT</I
11450 ></SPAN
11451 > be relied upon.</P
11452 ><P
11453 >Default: <SPAN
11454 CLASS="emphasis"
11455 ><I
11456 CLASS="EMPHASIS"
11457 >None. Magic scripts disabled.</I
11458 ></SPAN
11459 ></P
11460 ><P
11461 >Example: <B
11462 CLASS="COMMAND"
11463 >magic script = user.csh</B
11464 ></P
11465 ></DD
11466 ><DT
11467 ><A
11468 NAME="MANGLECASE"
11469 ></A
11470 >mangle case (S)</DT
11471 ><DD
11472 ><P
11473 >See the section on <A
11474 HREF="index.html#AEN203"
11475 >               NAME MANGLING</A
11476 ></P
11477 ><P
11478 >Default: <B
11479 CLASS="COMMAND"
11480 >mangle case = no</B
11481 ></P
11482 ></DD
11483 ><DT
11484 ><A
11485 NAME="MANGLEDMAP"
11486 ></A
11487 >mangled map (S)</DT
11488 ><DD
11489 ><P
11490 >This is for those who want to directly map UNIX 
11491                 file names which cannot be represented on Windows/DOS.  The mangling 
11492                 of names is not always what is needed.  In particular you may have 
11493                 documents with file extensions that differ between DOS and UNIX. 
11494                 For example, under UNIX it is common to use <TT
11495 CLASS="FILENAME"
11496 >.html</TT
11497
11498                 for HTML files, whereas under Windows/DOS <TT
11499 CLASS="FILENAME"
11500 >.htm</TT
11501
11502                 is more commonly used.</P
11503 ><P
11504 >So to map <TT
11505 CLASS="FILENAME"
11506 >html</TT
11507 > to <TT
11508 CLASS="FILENAME"
11509 >htm</TT
11510
11511                 you would use:</P
11512 ><P
11513 ><B
11514 CLASS="COMMAND"
11515 >mangled map = (*.html *.htm)</B
11516 ></P
11517 ><P
11518 >One very useful case is to remove the annoying <TT
11519 CLASS="FILENAME"
11520 >;1
11521                 </TT
11522 > off the ends of filenames on some CDROMs (only visible 
11523                 under some UNIXes). To do this use a map of (*;1 *;).</P
11524 ><P
11525 >Default: <SPAN
11526 CLASS="emphasis"
11527 ><I
11528 CLASS="EMPHASIS"
11529 >no mangled map</I
11530 ></SPAN
11531 ></P
11532 ><P
11533 >Example: <B
11534 CLASS="COMMAND"
11535 >mangled map = (*;1 *;)</B
11536 ></P
11537 ></DD
11538 ><DT
11539 ><A
11540 NAME="MANGLEDNAMES"
11541 ></A
11542 >mangled names (S)</DT
11543 ><DD
11544 ><P
11545 >This controls whether non-DOS names under UNIX 
11546                 should be mapped to DOS-compatible names ("mangled") and made visible, 
11547                 or whether non-DOS names should simply be ignored.</P
11548 ><P
11549 >See the section on <A
11550 HREF="index.html#AEN203"
11551 >               NAME MANGLING</A
11552 > for details on how to control the mangling process.</P
11553 ><P
11554 >If mangling is used then the mangling algorithm is as follows:</P
11555 ><P
11556 ></P
11557 ><UL
11558 ><LI
11559 ><P
11560 >The first (up to) five alphanumeric characters 
11561                         before the rightmost dot of the filename are preserved, forced 
11562                         to upper case, and appear as the first (up to) five characters 
11563                         of the mangled name.</P
11564 ></LI
11565 ><LI
11566 ><P
11567 >A tilde "~" is appended to the first part of the mangled
11568                         name, followed by a two-character unique sequence, based on the
11569                         original root name (i.e., the original filename minus its final
11570                         extension). The final extension is included in the hash calculation
11571                         only if it contains any upper case characters or is longer than three
11572                         characters.</P
11573 ><P
11574 >Note that the character to use may be specified using 
11575                         the <A
11576 HREF="index.html#MANGLINGCHAR"
11577 ><TT
11578 CLASS="PARAMETER"
11579 ><I
11580 >mangling char</I
11581 ></TT
11582 >
11583                         </A
11584 > option, if you don't like '~'.</P
11585 ></LI
11586 ><LI
11587 ><P
11588 >The first three alphanumeric characters of the final 
11589                         extension are preserved, forced to upper case and appear as the 
11590                         extension of the mangled name. The final extension is defined as that 
11591                         part of the original filename after the rightmost dot. If there are no 
11592                         dots in the filename, the mangled name will have no extension (except 
11593                         in the case of "hidden files" - see below).</P
11594 ></LI
11595 ><LI
11596 ><P
11597 >Files whose UNIX name begins with a dot will be 
11598                         presented as DOS hidden files. The mangled name will be created as 
11599                         for other filenames, but with the leading dot removed and "___" as 
11600                         its extension regardless of actual original extension (that's three 
11601                         underscores).</P
11602 ></LI
11603 ></UL
11604 ><P
11605 >The two-digit hash value consists of upper case 
11606                 alphanumeric characters.</P
11607 ><P
11608 >This algorithm can cause name collisions only if files 
11609                 in a directory share the same first five alphanumeric characters. 
11610                 The probability of such a clash is 1/1300.</P
11611 ><P
11612 >The name mangling (if enabled) allows a file to be 
11613                 copied between UNIX directories from Windows/DOS while retaining 
11614                 the long UNIX filename. UNIX files can be renamed to a new extension 
11615                 from Windows/DOS and will retain the same basename. Mangled names 
11616                 do not change between sessions.</P
11617 ><P
11618 >Default: <B
11619 CLASS="COMMAND"
11620 >mangled names = yes</B
11621 ></P
11622 ></DD
11623 ><DT
11624 ><A
11625 NAME="MANGLINGMETHOD"
11626 ></A
11627 >mangling method (G)</DT
11628 ><DD
11629 ><P
11630 > controls the algorithm used for the generating
11631                 the mangled names. Can take two different values, "hash" and
11632                 "hash2". "hash" is  the default and is the algorithm that has been
11633                 used in Samba for many years. "hash2" is a newer and considered
11634                 a better algorithm (generates less collisions) in the names.
11635                 However, many Win32 applications store the mangled names and so
11636                 changing to the new algorithm must not be done
11637                 lightly as these applications may break unless reinstalled.
11638                 New installations of Samba may set the default to hash2.</P
11639 ><P
11640 >Default: <B
11641 CLASS="COMMAND"
11642 >mangling method = hash</B
11643 ></P
11644 ><P
11645 >Example: <B
11646 CLASS="COMMAND"
11647 >mangling method = hash2</B
11648 ></P
11649 ></DD
11650 ><DT
11651 ><A
11652 NAME="MANGLEDSTACK"
11653 ></A
11654 >mangled stack (G)</DT
11655 ><DD
11656 ><P
11657 >This parameter controls the number of mangled names 
11658                 that should be cached in the Samba server <A
11659 HREF="smbd.8.html"
11660 TARGET="_top"
11661 >               smbd(8)</A
11662 >.</P
11663 ><P
11664 >This stack is a list of recently mangled base names 
11665                 (extensions are only maintained if they are longer than 3 characters 
11666                 or contains upper case characters).</P
11667 ><P
11668 >The larger this value, the more likely it is that mangled 
11669                 names can be successfully converted to correct long UNIX names. 
11670                 However, large stack sizes will slow most directory accesses. Smaller 
11671                 stacks save memory in the server (each stack element costs 256 bytes).
11672                 </P
11673 ><P
11674 >It is not possible to absolutely guarantee correct long 
11675                 filenames, so be prepared for some surprises!</P
11676 ><P
11677 >Default: <B
11678 CLASS="COMMAND"
11679 >mangled stack = 50</B
11680 ></P
11681 ><P
11682 >Example: <B
11683 CLASS="COMMAND"
11684 >mangled stack = 100</B
11685 ></P
11686 ></DD
11687 ><DT
11688 ><A
11689 NAME="MANGLINGCHAR"
11690 ></A
11691 >mangling char (S)</DT
11692 ><DD
11693 ><P
11694 >This controls what character is used as 
11695                 the <SPAN
11696 CLASS="emphasis"
11697 ><I
11698 CLASS="EMPHASIS"
11699 >magic</I
11700 ></SPAN
11701 > character in <A
11702 HREF="index.html#AEN203"
11703 >name mangling</A
11704 >. The default is a '~'
11705                 but this may interfere with some software. Use this option to set 
11706                 it to whatever you prefer.</P
11707 ><P
11708 >Default: <B
11709 CLASS="COMMAND"
11710 >mangling char = ~</B
11711 ></P
11712 ><P
11713 >Example: <B
11714 CLASS="COMMAND"
11715 >mangling char = ^</B
11716 ></P
11717 ></DD
11718 ><DT
11719 ><A
11720 NAME="MAPARCHIVE"
11721 ></A
11722 >map archive (S)</DT
11723 ><DD
11724 ><P
11725 >This controls whether the DOS archive attribute 
11726                 should be mapped to the UNIX owner execute bit.  The DOS archive bit 
11727                 is set when a file has been modified since its last backup.  One 
11728                 motivation for this option it to keep Samba/your PC from making 
11729                 any file it touches from becoming executable under UNIX.  This can 
11730                 be quite annoying for shared source code, documents, etc...</P
11731 ><P
11732 >Note that this requires the <TT
11733 CLASS="PARAMETER"
11734 ><I
11735 >create mask</I
11736 ></TT
11737 >
11738                 parameter to be set such that owner execute bit is not masked out 
11739                 (i.e. it must include 100). See the parameter <A
11740 HREF="index.html#CREATEMASK"
11741 >               <TT
11742 CLASS="PARAMETER"
11743 ><I
11744 >create mask</I
11745 ></TT
11746 ></A
11747 > for details.</P
11748 ><P
11749 >Default: <B
11750 CLASS="COMMAND"
11751 >map archive = yes</B
11752 ></P
11753 ></DD
11754 ><DT
11755 ><A
11756 NAME="MAPHIDDEN"
11757 ></A
11758 >map hidden (S)</DT
11759 ><DD
11760 ><P
11761 >This controls whether DOS style hidden files 
11762                 should be mapped to the UNIX world execute bit.</P
11763 ><P
11764 >Note that this requires the <TT
11765 CLASS="PARAMETER"
11766 ><I
11767 >create mask</I
11768 ></TT
11769
11770                 to be set such that the world execute bit is not masked out (i.e. 
11771                 it must include 001). See the parameter <A
11772 HREF="index.html#CREATEMASK"
11773 >               <TT
11774 CLASS="PARAMETER"
11775 ><I
11776 >create mask</I
11777 ></TT
11778 ></A
11779 > for details.</P
11780 ><P
11781 >Default: <B
11782 CLASS="COMMAND"
11783 >map hidden = no</B
11784 ></P
11785 ></DD
11786 ><DT
11787 ><A
11788 NAME="MAPSYSTEM"
11789 ></A
11790 >map system (S)</DT
11791 ><DD
11792 ><P
11793 >This controls whether DOS style system files 
11794                 should be mapped to the UNIX group execute bit.</P
11795 ><P
11796 >Note that this requires the <TT
11797 CLASS="PARAMETER"
11798 ><I
11799 >create mask</I
11800 ></TT
11801
11802                 to be set such that the group execute bit is not masked out (i.e. 
11803                 it must include 010). See the parameter <A
11804 HREF="index.html#CREATEMASK"
11805 >               <TT
11806 CLASS="PARAMETER"
11807 ><I
11808 >create mask</I
11809 ></TT
11810 ></A
11811 > for details.</P
11812 ><P
11813 >Default: <B
11814 CLASS="COMMAND"
11815 >map system = no</B
11816 ></P
11817 ></DD
11818 ><DT
11819 ><A
11820 NAME="MAPTOGUEST"
11821 ></A
11822 >map to guest (G)</DT
11823 ><DD
11824 ><P
11825 >This parameter is only useful in <A
11826 HREF="index.html#SECURITY"
11827 >               security</A
11828 > modes other than <TT
11829 CLASS="PARAMETER"
11830 ><I
11831 >security = share</I
11832 ></TT
11833
11834                 - i.e. <TT
11835 CLASS="CONSTANT"
11836 >user</TT
11837 >, <TT
11838 CLASS="CONSTANT"
11839 >server</TT
11840 >, 
11841                 and <TT
11842 CLASS="CONSTANT"
11843 >domain</TT
11844 >.</P
11845 ><P
11846 >This parameter can take three different values, which tell
11847                 <A
11848 HREF="smbd.8.html"
11849 TARGET="_top"
11850 >smbd(8)</A
11851 > what to do with user 
11852                 login requests that don't match a valid UNIX user in some way.</P
11853 ><P
11854 >The three settings are :</P
11855 ><P
11856 ></P
11857 ><UL
11858 ><LI
11859 ><P
11860 ><TT
11861 CLASS="CONSTANT"
11862 >Never</TT
11863 > - Means user login 
11864                         requests with an invalid password are rejected. This is the 
11865                         default.</P
11866 ></LI
11867 ><LI
11868 ><P
11869 ><TT
11870 CLASS="CONSTANT"
11871 >Bad User</TT
11872 > - Means user
11873                         logins with an invalid password are rejected, unless the username 
11874                         does not exist, in which case it is treated as a guest login and 
11875                         mapped into the <A
11876 HREF="index.html#GUESTACCOUNT"
11877 ><TT
11878 CLASS="PARAMETER"
11879 ><I
11880 >                       guest account</I
11881 ></TT
11882 ></A
11883 >.</P
11884 ></LI
11885 ><LI
11886 ><P
11887 ><TT
11888 CLASS="CONSTANT"
11889 >Bad Password</TT
11890 > - Means user logins 
11891                         with an invalid password are treated as a guest login and mapped 
11892                         into the <A
11893 HREF="index.html#GUESTACCOUNT"
11894 >guest account</A
11895 >. Note that 
11896                         this can cause problems as it means that any user incorrectly typing 
11897                         their password will be silently logged on as "guest" - and 
11898                         will not know the reason they cannot access files they think
11899                         they should - there will have been no message given to them
11900                         that they got their password wrong. Helpdesk services will
11901                         <SPAN
11902 CLASS="emphasis"
11903 ><I
11904 CLASS="EMPHASIS"
11905 >hate</I
11906 ></SPAN
11907 > you if you set the <TT
11908 CLASS="PARAMETER"
11909 ><I
11910 >map to 
11911                         guest</I
11912 ></TT
11913 > parameter this way :-).</P
11914 ></LI
11915 ></UL
11916 ><P
11917 >Note that this parameter is needed to set up "Guest" 
11918                 share services when using <TT
11919 CLASS="PARAMETER"
11920 ><I
11921 >security</I
11922 ></TT
11923 > modes other than 
11924                 share. This is because in these modes the name of the resource being
11925                 requested is <SPAN
11926 CLASS="emphasis"
11927 ><I
11928 CLASS="EMPHASIS"
11929 >not</I
11930 ></SPAN
11931 > sent to the server until after 
11932                 the server has successfully authenticated the client so the server 
11933                 cannot make authentication decisions at the correct time (connection 
11934                 to the share) for "Guest" shares.</P
11935 ><P
11936 >For people familiar with the older Samba releases, this 
11937                 parameter maps to the old compile-time setting of the <TT
11938 CLASS="CONSTANT"
11939 >               GUEST_SESSSETUP</TT
11940 > value in local.h.</P
11941 ><P
11942 >Default: <B
11943 CLASS="COMMAND"
11944 >map to guest = Never</B
11945 ></P
11946 ><P
11947 >Example: <B
11948 CLASS="COMMAND"
11949 >map to guest = Bad User</B
11950 ></P
11951 ></DD
11952 ><DT
11953 ><A
11954 NAME="MAXCONNECTIONS"
11955 ></A
11956 >max connections (S)</DT
11957 ><DD
11958 ><P
11959 >This option allows the number of simultaneous 
11960                 connections to a service to be limited. If <TT
11961 CLASS="PARAMETER"
11962 ><I
11963 >max connections
11964                 </I
11965 ></TT
11966 > is greater than 0 then connections will be refused if 
11967                 this number of connections to the service are already open. A value 
11968                 of zero mean an unlimited number of connections may be made.</P
11969 ><P
11970 >Record lock files are used to implement this feature. The 
11971                 lock files will be stored in the directory specified by the <A
11972 HREF="index.html#LOCKDIRECTORY"
11973 ><TT
11974 CLASS="PARAMETER"
11975 ><I
11976 >lock directory</I
11977 ></TT
11978 ></A
11979
11980                 option.</P
11981 ><P
11982 >Default: <B
11983 CLASS="COMMAND"
11984 >max connections = 0</B
11985 ></P
11986 ><P
11987 >Example: <B
11988 CLASS="COMMAND"
11989 >max connections = 10</B
11990 ></P
11991 ></DD
11992 ><DT
11993 ><A
11994 NAME="MAXDISKSIZE"
11995 ></A
11996 >max disk size (G)</DT
11997 ><DD
11998 ><P
11999 >This option allows you to put an upper limit 
12000                 on the apparent size of disks. If you set this option to 100 
12001                 then all shares will appear to be not larger than 100 MB in 
12002                 size.</P
12003 ><P
12004 >Note that this option does not limit the amount of 
12005                 data you can put on the disk. In the above case you could still 
12006                 store much more than 100 MB on the disk, but if a client ever asks 
12007                 for the amount of free disk space or the total disk size then the 
12008                 result will be bounded by the amount specified in <TT
12009 CLASS="PARAMETER"
12010 ><I
12011 >max 
12012                 disk size</I
12013 ></TT
12014 >.</P
12015 ><P
12016 >This option is primarily useful to work around bugs 
12017                 in some pieces of software that can't handle very large disks, 
12018                 particularly disks over 1GB in size.</P
12019 ><P
12020 >A <TT
12021 CLASS="PARAMETER"
12022 ><I
12023 >max disk size</I
12024 ></TT
12025 > of 0 means no limit.</P
12026 ><P
12027 >Default: <B
12028 CLASS="COMMAND"
12029 >max disk size = 0</B
12030 ></P
12031 ><P
12032 >Example: <B
12033 CLASS="COMMAND"
12034 >max disk size = 1000</B
12035 ></P
12036 ></DD
12037 ><DT
12038 ><A
12039 NAME="MAXLOGSIZE"
12040 ></A
12041 >max log size (G)</DT
12042 ><DD
12043 ><P
12044 >This option (an integer in kilobytes) specifies 
12045                 the max size the log file should grow to. Samba periodically checks 
12046                 the size and if it is exceeded it will rename the file, adding 
12047                 a <TT
12048 CLASS="FILENAME"
12049 >.old</TT
12050 > extension.</P
12051 ><P
12052 >A size of 0 means no limit.</P
12053 ><P
12054 >Default: <B
12055 CLASS="COMMAND"
12056 >max log size = 5000</B
12057 ></P
12058 ><P
12059 >Example: <B
12060 CLASS="COMMAND"
12061 >max log size = 1000</B
12062 ></P
12063 ></DD
12064 ><DT
12065 ><A
12066 NAME="MAXMUX"
12067 ></A
12068 >max mux (G)</DT
12069 ><DD
12070 ><P
12071 >This option controls the maximum number of 
12072                 outstanding simultaneous SMB operations that Samba tells the client 
12073                 it will allow. You should never need to set this parameter.</P
12074 ><P
12075 >Default: <B
12076 CLASS="COMMAND"
12077 >max mux = 50</B
12078 ></P
12079 ></DD
12080 ><DT
12081 ><A
12082 NAME="MAXOPENFILES"
12083 ></A
12084 >max open files (G)</DT
12085 ><DD
12086 ><P
12087 >This parameter limits the maximum number of 
12088                 open files that one <A
12089 HREF="smbd.8.html"
12090 TARGET="_top"
12091 >smbd(8)</A
12092 > file 
12093                 serving process may have open for a client at any one time. The 
12094                 default for this parameter is set very high (10,000) as Samba uses 
12095                 only one bit per unopened file.</P
12096 ><P
12097 >The limit of the number of open files is usually set 
12098                 by the UNIX per-process file descriptor limit rather than 
12099                 this parameter so you should never need to touch this parameter.</P
12100 ><P
12101 >Default: <B
12102 CLASS="COMMAND"
12103 >max open files = 10000</B
12104 ></P
12105 ></DD
12106 ><DT
12107 ><A
12108 NAME="MAXPRINTJOBS"
12109 ></A
12110 >max print jobs (S)</DT
12111 ><DD
12112 ><P
12113 >This parameter limits the maximum number of 
12114                 jobs allowable in a Samba printer queue at any given moment.
12115                 If this number is exceeded, <A
12116 HREF="smbd.8.html"
12117 TARGET="_top"
12118 ><B
12119 CLASS="COMMAND"
12120 >               smbd(8)</B
12121 ></A
12122 > will remote "Out of Space" to the client.
12123                 See all <A
12124 HREF="index.html#TOTALPRINTJOBS"
12125 ><TT
12126 CLASS="PARAMETER"
12127 ><I
12128 >total
12129                 print jobs</I
12130 ></TT
12131 ></A
12132 >.
12133                 </P
12134 ><P
12135 >Default: <B
12136 CLASS="COMMAND"
12137 >max print jobs = 1000</B
12138 ></P
12139 ><P
12140 >Example: <B
12141 CLASS="COMMAND"
12142 >max print jobs = 5000</B
12143 ></P
12144 ></DD
12145 ><DT
12146 ><A
12147 NAME="MAXPROTOCOL"
12148 ></A
12149 >max protocol (G)</DT
12150 ><DD
12151 ><P
12152 >The value of the parameter (a string) is the highest 
12153                 protocol level that will be supported by the server.</P
12154 ><P
12155 >Possible values are :</P
12156 ><P
12157 ></P
12158 ><UL
12159 ><LI
12160 ><P
12161 ><TT
12162 CLASS="CONSTANT"
12163 >CORE</TT
12164 >: Earliest version. No 
12165                         concept of user names.</P
12166 ></LI
12167 ><LI
12168 ><P
12169 ><TT
12170 CLASS="CONSTANT"
12171 >COREPLUS</TT
12172 >: Slight improvements on 
12173                         CORE for efficiency.</P
12174 ></LI
12175 ><LI
12176 ><P
12177 ><TT
12178 CLASS="CONSTANT"
12179 >LANMAN1</TT
12180 >: First <SPAN
12181 CLASS="emphasis"
12182 ><I
12183 CLASS="EMPHASIS"
12184 >                       modern</I
12185 ></SPAN
12186 > version of the protocol. Long filename
12187                         support.</P
12188 ></LI
12189 ><LI
12190 ><P
12191 ><TT
12192 CLASS="CONSTANT"
12193 >LANMAN2</TT
12194 >: Updates to Lanman1 protocol.
12195                         </P
12196 ></LI
12197 ><LI
12198 ><P
12199 ><TT
12200 CLASS="CONSTANT"
12201 >NT1</TT
12202 >: Current up to date version of 
12203                         the protocol. Used by Windows NT. Known as CIFS.</P
12204 ></LI
12205 ></UL
12206 ><P
12207 >Normally this option should not be set as the automatic 
12208                 negotiation phase in the SMB protocol takes care of choosing 
12209                 the appropriate protocol.</P
12210 ><P
12211 >See also <A
12212 HREF="index.html#MINPROTOCOL"
12213 ><TT
12214 CLASS="PARAMETER"
12215 ><I
12216 >min
12217                 protocol</I
12218 ></TT
12219 ></A
12220 ></P
12221 ><P
12222 >Default: <B
12223 CLASS="COMMAND"
12224 >max protocol = NT1</B
12225 ></P
12226 ><P
12227 >Example: <B
12228 CLASS="COMMAND"
12229 >max protocol = LANMAN1</B
12230 ></P
12231 ></DD
12232 ><DT
12233 ><A
12234 NAME="MAXSMBDPROCESSES"
12235 ></A
12236 >max smbd processes (G)</DT
12237 ><DD
12238 ><P
12239 >This parameter limits the maximum number of 
12240                 <A
12241 HREF="smbd.8.html"
12242 TARGET="_top"
12243 ><B
12244 CLASS="COMMAND"
12245 >smbd(8)</B
12246 ></A
12247 >
12248                 processes concurrently running on a system and is intended
12249                 as a stopgap to prevent degrading service to clients in the event
12250                 that the server has insufficient resources to handle more than this
12251                 number of connections.  Remember that under normal operating
12252                 conditions, each user will have an <A
12253 HREF="smbd.8.html"
12254 TARGET="_top"
12255 >smbd</A
12256 > associated with him or her
12257                 to handle connections to all shares from a given host.
12258                 </P
12259 ><P
12260 >Default: <B
12261 CLASS="COMMAND"
12262 >max smbd processes = 0</B
12263 >   ## no limit</P
12264 ><P
12265 >Example: <B
12266 CLASS="COMMAND"
12267 >max smbd processes = 1000</B
12268 ></P
12269 ></DD
12270 ><DT
12271 ><A
12272 NAME="MAXTTL"
12273 ></A
12274 >max ttl (G)</DT
12275 ><DD
12276 ><P
12277 >This option tells <A
12278 HREF="nmbd.8.html"
12279 TARGET="_top"
12280 >nmbd(8)</A
12281 >
12282                 what the default 'time to live' of NetBIOS names should be (in seconds) 
12283                 when <B
12284 CLASS="COMMAND"
12285 >nmbd</B
12286 > is requesting a name using either a
12287                 broadcast packet or from a WINS server. You should never need to
12288                 change this parameter. The default is 3 days.</P
12289 ><P
12290 >Default: <B
12291 CLASS="COMMAND"
12292 >max ttl = 259200</B
12293 ></P
12294 ></DD
12295 ><DT
12296 ><A
12297 NAME="MAXWINSTTL"
12298 ></A
12299 >max wins ttl (G)</DT
12300 ><DD
12301 ><P
12302 >This option tells <A
12303 HREF="nmbd.8.html"
12304 TARGET="_top"
12305 >nmbd(8)
12306                 </A
12307 > when acting as a WINS server (<A
12308 HREF="index.html#WINSSUPPORT"
12309 >               <TT
12310 CLASS="PARAMETER"
12311 ><I
12312 >wins support = yes</I
12313 ></TT
12314 ></A
12315 >) what the maximum
12316                 'time to live' of NetBIOS names that <B
12317 CLASS="COMMAND"
12318 >nmbd</B
12319
12320                 will grant will be (in seconds). You should never need to change this
12321                 parameter.  The default is 6 days (518400 seconds).</P
12322 ><P
12323 >See also the <A
12324 HREF="index.html#MINWINSTTL"
12325 ><TT
12326 CLASS="PARAMETER"
12327 ><I
12328 >min 
12329                 wins ttl</I
12330 ></TT
12331 ></A
12332 > parameter.</P
12333 ><P
12334 >Default: <B
12335 CLASS="COMMAND"
12336 >max wins ttl = 518400</B
12337 ></P
12338 ></DD
12339 ><DT
12340 ><A
12341 NAME="MAXXMIT"
12342 ></A
12343 >max xmit (G)</DT
12344 ><DD
12345 ><P
12346 >This option controls the maximum packet size 
12347                 that will be negotiated by Samba. The default is 65535, which 
12348                 is the maximum. In some cases you may find you get better performance 
12349                 with a smaller value. A value below 2048 is likely to cause problems.
12350                 </P
12351 ><P
12352 >Default: <B
12353 CLASS="COMMAND"
12354 >max xmit = 65535</B
12355 ></P
12356 ><P
12357 >Example: <B
12358 CLASS="COMMAND"
12359 >max xmit = 8192</B
12360 ></P
12361 ></DD
12362 ><DT
12363 ><A
12364 NAME="MESSAGECOMMAND"
12365 ></A
12366 >message command (G)</DT
12367 ><DD
12368 ><P
12369 >This specifies what command to run when the 
12370                 server receives a WinPopup style message.</P
12371 ><P
12372 >This would normally be a command that would 
12373                 deliver the message somehow. How this is to be done is 
12374                 up to your imagination.</P
12375 ><P
12376 >An example is:</P
12377 ><P
12378 ><B
12379 CLASS="COMMAND"
12380 >message command = csh -c 'xedit %s;rm %s' &#38;</B
12381 >
12382                 </P
12383 ><P
12384 >This delivers the message using <B
12385 CLASS="COMMAND"
12386 >xedit</B
12387 >, then 
12388                 removes it afterwards. <SPAN
12389 CLASS="emphasis"
12390 ><I
12391 CLASS="EMPHASIS"
12392 >NOTE THAT IT IS VERY IMPORTANT 
12393                 THAT THIS COMMAND RETURN IMMEDIATELY</I
12394 ></SPAN
12395 >. That's why I 
12396                 have the '&#38;' on the end. If it doesn't return immediately then 
12397                 your PCs may freeze when sending messages (they should recover 
12398                 after 30 seconds, hopefully).</P
12399 ><P
12400 >All messages are delivered as the global guest user. 
12401                 The command takes the standard substitutions, although <TT
12402 CLASS="PARAMETER"
12403 ><I
12404 >               %u</I
12405 ></TT
12406 > won't work (<TT
12407 CLASS="PARAMETER"
12408 ><I
12409 >%U</I
12410 ></TT
12411 > may be better 
12412                 in this case).</P
12413 ><P
12414 >Apart from the standard substitutions, some additional 
12415                 ones apply. In particular:</P
12416 ><P
12417 ></P
12418 ><UL
12419 ><LI
12420 ><P
12421 ><TT
12422 CLASS="PARAMETER"
12423 ><I
12424 >%s</I
12425 ></TT
12426 > = the filename containing 
12427                         the message.</P
12428 ></LI
12429 ><LI
12430 ><P
12431 ><TT
12432 CLASS="PARAMETER"
12433 ><I
12434 >%t</I
12435 ></TT
12436 > = the destination that 
12437                         the message was sent to (probably the server name).</P
12438 ></LI
12439 ><LI
12440 ><P
12441 ><TT
12442 CLASS="PARAMETER"
12443 ><I
12444 >%f</I
12445 ></TT
12446 > = who the message 
12447                         is from.</P
12448 ></LI
12449 ></UL
12450 ><P
12451 >You could make this command send mail, or whatever else 
12452                 takes your fancy. Please let us know of any really interesting 
12453                 ideas you have.</P
12454 ><P
12455 >Here's a way of sending the messages as mail to root:</P
12456 ><P
12457 ><B
12458 CLASS="COMMAND"
12459 >message command = /bin/mail -s 'message from %f on 
12460                 %m' root &lt; %s; rm %s</B
12461 ></P
12462 ><P
12463 >If you don't have a message command then the message 
12464                 won't be delivered and Samba will tell the sender there was 
12465                 an error. Unfortunately WfWg totally ignores the error code 
12466                 and carries on regardless, saying that the message was delivered.
12467                 </P
12468 ><P
12469 >If you want to silently delete it then try:</P
12470 ><P
12471 ><B
12472 CLASS="COMMAND"
12473 >message command = rm %s</B
12474 ></P
12475 ><P
12476 >Default: <SPAN
12477 CLASS="emphasis"
12478 ><I
12479 CLASS="EMPHASIS"
12480 >no message command</I
12481 ></SPAN
12482 ></P
12483 ><P
12484 >Example: <B
12485 CLASS="COMMAND"
12486 >message command = csh -c 'xedit %s;
12487                 rm %s' &#38;</B
12488 ></P
12489 ></DD
12490 ><DT
12491 ><A
12492 NAME="MINPASSWDLENGTH"
12493 ></A
12494 >min passwd length (G)</DT
12495 ><DD
12496 ><P
12497 >Synonym for <A
12498 HREF="index.html#MINPASSWORDLENGTH"
12499 >               <TT
12500 CLASS="PARAMETER"
12501 ><I
12502 >min password length</I
12503 ></TT
12504 ></A
12505 >.</P
12506 ></DD
12507 ><DT
12508 ><A
12509 NAME="MINPASSWORDLENGTH"
12510 ></A
12511 >min password length (G)</DT
12512 ><DD
12513 ><P
12514 >This option sets the minimum length in characters 
12515                 of a plaintext password that <B
12516 CLASS="COMMAND"
12517 >smbd</B
12518 > will accept when performing 
12519                 UNIX password changing.</P
12520 ><P
12521 >See also <A
12522 HREF="index.html#UNIXPASSWORDSYNC"
12523 ><TT
12524 CLASS="PARAMETER"
12525 ><I
12526 >unix 
12527                 password sync</I
12528 ></TT
12529 ></A
12530 >, <A
12531 HREF="index.html#PASSWDPROGRAM"
12532 >               <TT
12533 CLASS="PARAMETER"
12534 ><I
12535 >passwd program</I
12536 ></TT
12537 ></A
12538 > and <A
12539 HREF="index.html#PASSWDCHATDEBUG"
12540 ><TT
12541 CLASS="PARAMETER"
12542 ><I
12543 >passwd chat debug</I
12544 ></TT
12545 >
12546                 </A
12547 >.</P
12548 ><P
12549 >Default: <B
12550 CLASS="COMMAND"
12551 >min password length = 5</B
12552 ></P
12553 ></DD
12554 ><DT
12555 ><A
12556 NAME="MINPRINTSPACE"
12557 ></A
12558 >min print space (S)</DT
12559 ><DD
12560 ><P
12561 >This sets the minimum amount of free disk 
12562                 space that must be available before a user will be able to spool 
12563                 a print job. It is specified in kilobytes. The default is 0, which 
12564                 means a user can always spool a print job.</P
12565 ><P
12566 >See also the <A
12567 HREF="index.html#PRINTING"
12568 ><TT
12569 CLASS="PARAMETER"
12570 ><I
12571 >printing
12572                 </I
12573 ></TT
12574 ></A
12575 > parameter.</P
12576 ><P
12577 >Default: <B
12578 CLASS="COMMAND"
12579 >min print space = 0</B
12580 ></P
12581 ><P
12582 >Example: <B
12583 CLASS="COMMAND"
12584 >min print space = 2000</B
12585 ></P
12586 ></DD
12587 ><DT
12588 ><A
12589 NAME="MINPROTOCOL"
12590 ></A
12591 >min protocol (G)</DT
12592 ><DD
12593 ><P
12594 >The value of the parameter (a string) is the 
12595                 lowest SMB protocol dialect than Samba will support.  Please refer
12596                 to the <A
12597 HREF="index.html#MAXPROTOCOL"
12598 ><TT
12599 CLASS="PARAMETER"
12600 ><I
12601 >max protocol</I
12602 ></TT
12603 ></A
12604 >
12605                 parameter for a list of valid protocol names and a brief description
12606                 of each.  You may also wish to refer to the C source code in
12607                 <TT
12608 CLASS="FILENAME"
12609 >source/smbd/negprot.c</TT
12610 > for a listing of known protocol
12611                 dialects supported by clients.</P
12612 ><P
12613 >If you are viewing this parameter as a security measure, you should
12614                 also refer to the <A
12615 HREF="index.html#LANMANAUTH"
12616 ><TT
12617 CLASS="PARAMETER"
12618 ><I
12619 >lanman 
12620                 auth</I
12621 ></TT
12622 ></A
12623 > parameter.  Otherwise, you should never need 
12624                 to change this parameter.</P
12625 ><P
12626 >Default : <B
12627 CLASS="COMMAND"
12628 >min protocol = CORE</B
12629 ></P
12630 ><P
12631 >Example : <B
12632 CLASS="COMMAND"
12633 >min protocol = NT1</B
12634 >  # disable DOS 
12635                 clients</P
12636 ></DD
12637 ><DT
12638 ><A
12639 NAME="MINWINSTTL"
12640 ></A
12641 >min wins ttl (G)</DT
12642 ><DD
12643 ><P
12644 >This option tells <A
12645 HREF="nmbd.8.html"
12646 TARGET="_top"
12647 >nmbd(8)</A
12648 >
12649                 when acting as a WINS server (<A
12650 HREF="index.html#WINSSUPPORT"
12651 ><TT
12652 CLASS="PARAMETER"
12653 ><I
12654 >               wins support = yes</I
12655 ></TT
12656 ></A
12657 >) what the minimum 'time to live' 
12658                 of NetBIOS names that <B
12659 CLASS="COMMAND"
12660 >nmbd</B
12661 > will grant will be (in 
12662                 seconds). You should never need to change this parameter.  The default 
12663                 is 6 hours (21600 seconds).</P
12664 ><P
12665 >Default: <B
12666 CLASS="COMMAND"
12667 >min wins ttl = 21600</B
12668 ></P
12669 ></DD
12670 ><DT
12671 ><A
12672 NAME="MSDFSROOT"
12673 ></A
12674 >msdfs root (S)</DT
12675 ><DD
12676 ><P
12677 >This boolean parameter is only available if 
12678                 Samba is configured  and  compiled with the <B
12679 CLASS="COMMAND"
12680 >               --with-msdfs</B
12681 > option.  If set to <TT
12682 CLASS="CONSTANT"
12683 >yes</TT
12684 >, 
12685                 Samba treats the share as a Dfs root and  allows clients to browse 
12686                 the distributed file system tree rooted at the share directory. 
12687                 Dfs links are specified  in  the share directory by symbolic 
12688                 links of the form <TT
12689 CLASS="FILENAME"
12690 >msdfs:serverA\shareA,serverB\shareB
12691                 </TT
12692 > and so on.  For more information on setting up a Dfs tree 
12693                 on Samba,  refer to <A
12694 HREF="msdfs_setup.html"
12695 TARGET="_top"
12696 >msdfs_setup.html
12697                 </A
12698 >.</P
12699 ><P
12700 >See also <A
12701 HREF="index.html#HOSTMSDFS"
12702 ><TT
12703 CLASS="PARAMETER"
12704 ><I
12705 >host msdfs
12706                 </I
12707 ></TT
12708 ></A
12709 ></P
12710 ><P
12711 >Default: <B
12712 CLASS="COMMAND"
12713 >msdfs root = no</B
12714 ></P
12715 ></DD
12716 ><DT
12717 ><A
12718 NAME="NAMECACHETIMEOUT"
12719 ></A
12720 >name cache timeout (G)</DT
12721 ><DD
12722 ><P
12723 >Specifies the number of seconds it takes before 
12724                 entries in samba's hostname resolve cache time out. If 
12725                 the timeout is set to 0. the caching is disabled.
12726                 </P
12727 ><P
12728 >Default: <B
12729 CLASS="COMMAND"
12730 >name cache timeout = 660</B
12731 ></P
12732 ><P
12733 >Example: <B
12734 CLASS="COMMAND"
12735 >name cache timeout = 0</B
12736 ></P
12737 ></DD
12738 ><DT
12739 ><A
12740 NAME="NAMERESOLVEORDER"
12741 ></A
12742 >name resolve order (G)</DT
12743 ><DD
12744 ><P
12745 >This option is used by the programs in the Samba 
12746                 suite to determine what naming services to use and in what order 
12747                 to resolve host names to IP addresses. The option takes a space 
12748                 separated string of name resolution options.</P
12749 ><P
12750 >The options are :"lmhosts", "host", "wins" and "bcast". They 
12751                 cause names to be resolved as follows :</P
12752 ><P
12753 ></P
12754 ><UL
12755 ><LI
12756 ><P
12757 ><TT
12758 CLASS="CONSTANT"
12759 >lmhosts</TT
12760 > : Lookup an IP 
12761                         address in the Samba lmhosts file. If the line in lmhosts has 
12762                         no name type attached to the NetBIOS name (see the <A
12763 HREF="lmhosts.5.html"
12764 TARGET="_top"
12765 >lmhosts(5)</A
12766 > for details) then
12767                         any name type matches for lookup.</P
12768 ></LI
12769 ><LI
12770 ><P
12771 ><TT
12772 CLASS="CONSTANT"
12773 >host</TT
12774 > : Do a standard host 
12775                         name to IP address resolution, using the system <TT
12776 CLASS="FILENAME"
12777 >/etc/hosts
12778                         </TT
12779 >, NIS, or DNS lookups. This method of name resolution 
12780                         is operating system depended for instance on IRIX or Solaris this 
12781                         may be controlled by the <TT
12782 CLASS="FILENAME"
12783 >/etc/nsswitch.conf</TT
12784
12785                         file.  Note that this method is only used if the NetBIOS name 
12786                         type being queried is the 0x20 (server) name type, otherwise 
12787                         it is ignored.</P
12788 ></LI
12789 ><LI
12790 ><P
12791 ><TT
12792 CLASS="CONSTANT"
12793 >wins</TT
12794 > : Query a name with 
12795                         the IP address listed in the <A
12796 HREF="index.html#WINSSERVER"
12797 ><TT
12798 CLASS="PARAMETER"
12799 ><I
12800 >                       wins server</I
12801 ></TT
12802 ></A
12803 > parameter.  If no WINS server has
12804                         been specified this method will be ignored.</P
12805 ></LI
12806 ><LI
12807 ><P
12808 ><TT
12809 CLASS="CONSTANT"
12810 >bcast</TT
12811 > : Do a broadcast on 
12812                         each of the known local interfaces listed in the <A
12813 HREF="index.html#INTERFACES"
12814 ><TT
12815 CLASS="PARAMETER"
12816 ><I
12817 >interfaces</I
12818 ></TT
12819 ></A
12820
12821                         parameter. This is the least reliable of the name resolution 
12822                         methods as it depends on the target host being on a locally 
12823                         connected subnet.</P
12824 ></LI
12825 ></UL
12826 ><P
12827 >Default: <B
12828 CLASS="COMMAND"
12829 >name resolve order = lmhosts host wins bcast
12830                 </B
12831 ></P
12832 ><P
12833 >Example: <B
12834 CLASS="COMMAND"
12835 >name resolve order = lmhosts bcast host
12836                 </B
12837 ></P
12838 ><P
12839 >This will cause the local lmhosts file to be examined 
12840                 first, followed by a broadcast attempt, followed by a normal 
12841                 system hostname lookup.</P
12842 ></DD
12843 ><DT
12844 ><A
12845 NAME="NETBIOSALIASES"
12846 ></A
12847 >netbios aliases (G)</DT
12848 ><DD
12849 ><P
12850 >This is a list of NetBIOS names that <A
12851 HREF="nmbd.8.html"
12852 TARGET="_top"
12853 >nmbd(8)</A
12854 > will advertise as additional 
12855                 names by which the Samba server is known. This allows one machine 
12856                 to appear in browse lists under multiple names. If a machine is 
12857                 acting as a browse server or logon server none 
12858                 of these names will be advertised as either browse server or logon 
12859                 servers, only the primary name of the machine will be advertised 
12860                 with these capabilities.</P
12861 ><P
12862 >See also <A
12863 HREF="index.html#NETBIOSNAME"
12864 ><TT
12865 CLASS="PARAMETER"
12866 ><I
12867 >netbios 
12868                 name</I
12869 ></TT
12870 ></A
12871 >.</P
12872 ><P
12873 >Default: <SPAN
12874 CLASS="emphasis"
12875 ><I
12876 CLASS="EMPHASIS"
12877 >empty string (no additional names)</I
12878 ></SPAN
12879 ></P
12880 ><P
12881 >Example: <B
12882 CLASS="COMMAND"
12883 >netbios aliases = TEST TEST1 TEST2</B
12884 ></P
12885 ></DD
12886 ><DT
12887 ><A
12888 NAME="NETBIOSNAME"
12889 ></A
12890 >netbios name (G)</DT
12891 ><DD
12892 ><P
12893 >This sets the NetBIOS name by which a Samba 
12894                 server is known. By default it is the same as the first component 
12895                 of the host's DNS name. If a machine is a browse server or
12896                 logon server this name (or the first component
12897                 of the hosts DNS name) will be the name that these services are
12898                 advertised under.</P
12899 ><P
12900 >See also <A
12901 HREF="index.html#NETBIOSALIASES"
12902 ><TT
12903 CLASS="PARAMETER"
12904 ><I
12905 >netbios 
12906                 aliases</I
12907 ></TT
12908 ></A
12909 >.</P
12910 ><P
12911 >Default: <SPAN
12912 CLASS="emphasis"
12913 ><I
12914 CLASS="EMPHASIS"
12915 >machine DNS name</I
12916 ></SPAN
12917 ></P
12918 ><P
12919 >Example: <B
12920 CLASS="COMMAND"
12921 >netbios name = MYNAME</B
12922 ></P
12923 ></DD
12924 ><DT
12925 ><A
12926 NAME="NETBIOSSCOPE"
12927 ></A
12928 >netbios scope (G)</DT
12929 ><DD
12930 ><P
12931 >This sets the NetBIOS scope that Samba will 
12932                 operate under. This should not be set unless every machine 
12933                 on your LAN also sets this value.</P
12934 ></DD
12935 ><DT
12936 ><A
12937 NAME="NISHOMEDIR"
12938 ></A
12939 >nis homedir (G)</DT
12940 ><DD
12941 ><P
12942 >Get the home share server from a NIS map. For 
12943                 UNIX systems that use an automounter, the user's home directory 
12944                 will often be mounted on a workstation on demand from a remote 
12945                 server. </P
12946 ><P
12947 >When the Samba logon server is not the actual home directory 
12948                 server, but is mounting the home directories via NFS then two 
12949                 network hops would be required to access the users home directory 
12950                 if the logon server told the client to use itself as the SMB server 
12951                 for home directories (one over SMB and one over NFS). This can 
12952                 be very slow.</P
12953 ><P
12954 >This option allows Samba to return the home share as 
12955                 being on a different server to the logon server and as 
12956                 long as a Samba daemon is running on the home directory server, 
12957                 it will be mounted on the Samba client directly from the directory 
12958                 server. When Samba is returning the home share to the client, it 
12959                 will consult the NIS map specified in <A
12960 HREF="index.html#HOMEDIRMAP"
12961 >               <TT
12962 CLASS="PARAMETER"
12963 ><I
12964 >homedir map</I
12965 ></TT
12966 ></A
12967 > and return the server 
12968                 listed there.</P
12969 ><P
12970 >Note that for this option to work there must be a working 
12971                 NIS system and the Samba server with this option must also 
12972                 be a logon server.</P
12973 ><P
12974 >Default: <B
12975 CLASS="COMMAND"
12976 >nis homedir = no</B
12977 ></P
12978 ></DD
12979 ><DT
12980 ><A
12981 NAME="NONUNIXACCOUNTRANGE"
12982 ></A
12983 >non unix account range (G)</DT
12984 ><DD
12985 ><P
12986 >The non unix account range parameter specifies 
12987                 the range of 'user ids' that are allocated by the various 'non unix 
12988                 account' passdb backends.  These backends allow
12989                 the storage of passwords for users who don't exist in /etc/passwd.  
12990                 This is most often used for machine account creation. 
12991                 This range of ids should have no existing local or NIS users within 
12992                 it as strange conflicts can occur otherwise.</P
12993 ><P
12994 >NOTE: These userids never appear on the system and Samba will never
12995                 'become' these users. They are used only to ensure that the algorithmic 
12996                 RID mapping does not conflict with normal users.
12997                 </P
12998 ><P
12999 >Default: <B
13000 CLASS="COMMAND"
13001 >non unix account range = &lt;empty string&gt;
13002                 </B
13003 ></P
13004 ><P
13005 >Example: <B
13006 CLASS="COMMAND"
13007 >non unix account range = 10000-20000</B
13008 ></P
13009 ></DD
13010 ><DT
13011 ><A
13012 NAME="NTACLSUPPORT"
13013 ></A
13014 >nt acl support (S)</DT
13015 ><DD
13016 ><P
13017 >This boolean parameter controls whether 
13018                 <A
13019 HREF="smbd.8.html"
13020 TARGET="_top"
13021 >smbd(8)</A
13022 > will attempt to map 
13023                 UNIX permissions into Windows NT access control lists.
13024                 This parameter was formally a global parameter in releases
13025                 prior to 2.2.2.</P
13026 ><P
13027 >Default: <B
13028 CLASS="COMMAND"
13029 >nt acl support = yes</B
13030 ></P
13031 ></DD
13032 ><DT
13033 ><A
13034 NAME="NTPIPESUPPORT"
13035 ></A
13036 >nt pipe support (G)</DT
13037 ><DD
13038 ><P
13039 >This boolean parameter controls whether 
13040                 <A
13041 HREF="smbd.8.html"
13042 TARGET="_top"
13043 >smbd(8)</A
13044 > will allow Windows NT 
13045                 clients to connect to the NT SMB specific <TT
13046 CLASS="CONSTANT"
13047 >IPC$</TT
13048
13049                 pipes. This is a developer debugging option and can be left
13050                 alone.</P
13051 ><P
13052 >Default: <B
13053 CLASS="COMMAND"
13054 >nt pipe support = yes</B
13055 ></P
13056 ></DD
13057 ><DT
13058 ><A
13059 NAME="NTSTATUSSUPPORT"
13060 ></A
13061 >nt status support (G)</DT
13062 ><DD
13063 ><P
13064 >This boolean parameter controls whether <A
13065 HREF="smbd.8.html"
13066 TARGET="_top"
13067 >smbd(8)</A
13068 > will negotiate NT specific status
13069                 support with Windows NT/2k/XP clients. This is a developer
13070                 debugging option and should be left alone.
13071                 If this option is set to <TT
13072 CLASS="CONSTANT"
13073 >no</TT
13074 > then Samba offers
13075                 exactly the same DOS error codes that versions prior to Samba 2.2.3
13076                 reported.</P
13077 ><P
13078 >You should not need to ever disable this parameter.</P
13079 ><P
13080 >Default: <B
13081 CLASS="COMMAND"
13082 >nt status support = yes</B
13083 ></P
13084 ></DD
13085 ><DT
13086 ><A
13087 NAME="NULLPASSWORDS"
13088 ></A
13089 >null passwords (G)</DT
13090 ><DD
13091 ><P
13092 >Allow or disallow client access to accounts 
13093                 that have null passwords. </P
13094 ><P
13095 >See also <A
13096 HREF="smbpasswd.5.html"
13097 TARGET="_top"
13098 >smbpasswd (5)</A
13099 >.</P
13100 ><P
13101 >Default: <B
13102 CLASS="COMMAND"
13103 >null passwords = no</B
13104 ></P
13105 ></DD
13106 ><DT
13107 ><A
13108 NAME="OBEYPAMRESTRICTIONS"
13109 ></A
13110 >obey pam restrictions (G)</DT
13111 ><DD
13112 ><P
13113 >When Samba 2.2 is configured to enable PAM support
13114                 (i.e. --with-pam), this parameter will control whether or not Samba
13115                 should obey PAM's account and session management directives.  The 
13116                 default behavior is to use PAM for clear text authentication only
13117                 and to ignore any account or session management.  Note that Samba
13118                 always ignores PAM for authentication in the case of <A
13119 HREF="index.html#ENCRYPTPASSWORDS"
13120 ><TT
13121 CLASS="PARAMETER"
13122 ><I
13123 >encrypt passwords = yes</I
13124 ></TT
13125 >
13126                 </A
13127 >.  The reason is that PAM modules cannot support the challenge/response
13128                 authentication mechanism needed in the presence of SMB password encryption.
13129                 </P
13130 ><P
13131 >Default: <B
13132 CLASS="COMMAND"
13133 >obey pam restrictions = no</B
13134 ></P
13135 ></DD
13136 ><DT
13137 ><A
13138 NAME="ONLYUSER"
13139 ></A
13140 >only user (S)</DT
13141 ><DD
13142 ><P
13143 >This is a boolean option that controls whether 
13144                 connections with usernames not in the <TT
13145 CLASS="PARAMETER"
13146 ><I
13147 >user</I
13148 ></TT
13149
13150                 list will be allowed. By default this option is disabled so that a 
13151                 client can supply a username to be used by the server.  Enabling
13152                 this parameter will force the server to only user the login 
13153                 names from the <TT
13154 CLASS="PARAMETER"
13155 ><I
13156 >user</I
13157 ></TT
13158 > list and is only really
13159                 useful in <A
13160 HREF="index.html#SECURITYEQUALSSHARE"
13161 >shave level</A
13162 >
13163                 security.</P
13164 ><P
13165 >Note that this also means Samba won't try to deduce 
13166                 usernames from the service name. This can be annoying for 
13167                 the [homes] section. To get around this you could use <B
13168 CLASS="COMMAND"
13169 >user =
13170                 %S</B
13171 > which means your <TT
13172 CLASS="PARAMETER"
13173 ><I
13174 >user</I
13175 ></TT
13176 > list
13177                 will be just the service name, which for home directories is the 
13178                 name of the user.</P
13179 ><P
13180 >See also the <A
13181 HREF="index.html#USER"
13182 ><TT
13183 CLASS="PARAMETER"
13184 ><I
13185 >user</I
13186 ></TT
13187 >
13188                 </A
13189 > parameter.</P
13190 ><P
13191 >Default: <B
13192 CLASS="COMMAND"
13193 >only user = no</B
13194 ></P
13195 ></DD
13196 ><DT
13197 ><A
13198 NAME="ONLYGUEST"
13199 ></A
13200 >only guest (S)</DT
13201 ><DD
13202 ><P
13203 >A synonym for <A
13204 HREF="index.html#GUESTONLY"
13205 ><TT
13206 CLASS="PARAMETER"
13207 ><I
13208 >               guest only</I
13209 ></TT
13210 ></A
13211 >.</P
13212 ></DD
13213 ><DT
13214 ><A
13215 NAME="OPLOCKBREAKWAITTIME"
13216 ></A
13217 >oplock break wait time (G)</DT
13218 ><DD
13219 ><P
13220 >This is a tuning parameter added due to bugs in 
13221                 both Windows 9x and WinNT. If Samba responds to a client too 
13222                 quickly when that client issues an SMB that can cause an oplock 
13223                 break request, then the network client can fail and not respond 
13224                 to the break request. This tuning parameter (which is set in milliseconds) 
13225                 is the amount of time Samba will wait before sending an oplock break 
13226                 request to such (broken) clients.</P
13227 ><P
13228 ><SPAN
13229 CLASS="emphasis"
13230 ><I
13231 CLASS="EMPHASIS"
13232 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
13233                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</I
13234 ></SPAN
13235 >.</P
13236 ><P
13237 >Default: <B
13238 CLASS="COMMAND"
13239 >oplock break wait time = 0</B
13240 ></P
13241 ></DD
13242 ><DT
13243 ><A
13244 NAME="OPLOCKCONTENTIONLIMIT"
13245 ></A
13246 >oplock contention limit (S)</DT
13247 ><DD
13248 ><P
13249 >This is a <SPAN
13250 CLASS="emphasis"
13251 ><I
13252 CLASS="EMPHASIS"
13253 >very</I
13254 ></SPAN
13255 > advanced 
13256                 <A
13257 HREF="smbd.8.html"
13258 TARGET="_top"
13259 >smbd(8)</A
13260 > tuning option to 
13261                 improve the efficiency of the granting of oplocks under multiple 
13262                 client contention for the same file.</P
13263 ><P
13264 >In brief it specifies a number, which causes <A
13265 HREF="smbd.8.html"
13266 TARGET="_top"
13267 >smbd</A
13268 > not to 
13269                 grant an oplock even when requested if the approximate number of 
13270                 clients contending for an oplock on the same file goes over this 
13271                 limit. This causes <B
13272 CLASS="COMMAND"
13273 >smbd</B
13274 > to behave in a similar 
13275                 way to Windows NT.</P
13276 ><P
13277 ><SPAN
13278 CLASS="emphasis"
13279 ><I
13280 CLASS="EMPHASIS"
13281 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
13282                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</I
13283 ></SPAN
13284 >.</P
13285 ><P
13286 >Default: <B
13287 CLASS="COMMAND"
13288 >oplock contention limit = 2</B
13289 ></P
13290 ></DD
13291 ><DT
13292 ><A
13293 NAME="OPLOCKS"
13294 ></A
13295 >oplocks (S)</DT
13296 ><DD
13297 ><P
13298 >This boolean option tells <B
13299 CLASS="COMMAND"
13300 >smbd</B
13301 > whether to 
13302                 issue oplocks (opportunistic locks) to file open requests on this 
13303                 share. The oplock code can dramatically (approx. 30% or more) improve 
13304                 the speed of access to files on Samba servers. It allows the clients 
13305                 to aggressively cache files locally and you may want to disable this 
13306                 option for unreliable network environments (it is turned on by 
13307                 default in Windows NT Servers).  For more information see the file 
13308                 <TT
13309 CLASS="FILENAME"
13310 >Speed.txt</TT
13311 > in the Samba <TT
13312 CLASS="FILENAME"
13313 >docs/</TT
13314
13315                 directory.</P
13316 ><P
13317 >Oplocks may be selectively turned off on certain files with a 
13318                 share. See the <A
13319 HREF="index.html#VETOOPLOCKFILES"
13320 ><TT
13321 CLASS="PARAMETER"
13322 ><I
13323 >               veto oplock files</I
13324 ></TT
13325 ></A
13326 > parameter. On some systems 
13327                 oplocks are recognized by the underlying operating system. This 
13328                 allows data synchronization between all access to oplocked files, 
13329                 whether it be via Samba or NFS or a local UNIX process. See the 
13330                 <TT
13331 CLASS="PARAMETER"
13332 ><I
13333 >kernel oplocks</I
13334 ></TT
13335 > parameter for details.</P
13336 ><P
13337 >See also the <A
13338 HREF="index.html#KERNELOPLOCKS"
13339 ><TT
13340 CLASS="PARAMETER"
13341 ><I
13342 >kernel 
13343                 oplocks</I
13344 ></TT
13345 ></A
13346 > and <A
13347 HREF="index.html#LEVEL2OPLOCKS"
13348 ><TT
13349 CLASS="PARAMETER"
13350 ><I
13351 >               level2 oplocks</I
13352 ></TT
13353 ></A
13354 > parameters.</P
13355 ><P
13356 >Default: <B
13357 CLASS="COMMAND"
13358 >oplocks = yes</B
13359 ></P
13360 ></DD
13361 ><DT
13362 ><A
13363 NAME="NTLMAUTH"
13364 ></A
13365 >ntlm auth (G)</DT
13366 ><DD
13367 ><P
13368 >This parameter determines whether or not <A
13369 HREF="smbd.8.html"
13370 TARGET="_top"
13371 >smbd</A
13372 > will
13373                 attempt to authenticate users using the NTLM password hash.
13374                 If disabled, only the lanman password hashes will be used. 
13375                 </P
13376 ><P
13377 >Please note that at least this option or <B
13378 CLASS="COMMAND"
13379 >lanman auth</B
13380 > should be enabled in order to be able to log in.
13381                 </P
13382 ><P
13383 >Default : <B
13384 CLASS="COMMAND"
13385 >ntlm auth = yes</B
13386 ></P
13387 ></DD
13388 ><DT
13389 ><A
13390 NAME="OSLEVEL"
13391 ></A
13392 >os level (G)</DT
13393 ><DD
13394 ><P
13395 >This integer value controls what level Samba 
13396                 advertises itself as for browse elections. The value of this 
13397                 parameter determines whether <A
13398 HREF="nmbd.8.html"
13399 TARGET="_top"
13400 >nmbd(8)</A
13401
13402                 has a chance of becoming a local master browser for the <TT
13403 CLASS="PARAMETER"
13404 ><I
13405 >               WORKGROUP</I
13406 ></TT
13407 > in the local broadcast area.</P
13408 ><P
13409 ><SPAN
13410 CLASS="emphasis"
13411 ><I
13412 CLASS="EMPHASIS"
13413 >Note :</I
13414 ></SPAN
13415 >By default, Samba will win 
13416                 a local master browsing election over all Microsoft operating 
13417                 systems except a Windows NT 4.0/2000 Domain Controller.  This 
13418                 means that a misconfigured Samba host can effectively isolate 
13419                 a subnet for browsing purposes.  See <TT
13420 CLASS="FILENAME"
13421 >BROWSING.txt
13422                 </TT
13423 > in the Samba <TT
13424 CLASS="FILENAME"
13425 >docs/</TT
13426 > directory 
13427                 for details.</P
13428 ><P
13429 >Default: <B
13430 CLASS="COMMAND"
13431 >os level = 20</B
13432 ></P
13433 ><P
13434 >Example: <B
13435 CLASS="COMMAND"
13436 >os level = 65 </B
13437 ></P
13438 ></DD
13439 ><DT
13440 ><A
13441 NAME="OS2DRIVERMAP"
13442 ></A
13443 >os2 driver map (G)</DT
13444 ><DD
13445 ><P
13446 >The parameter is used to define the absolute
13447                 path to a file containing a mapping of Windows NT printer driver
13448                 names to OS/2 printer driver names.  The format is:</P
13449 ><P
13450 >&lt;nt driver name&gt; = &lt;os2 driver 
13451                 name&gt;.&lt;device name&gt;</P
13452 ><P
13453 >For example, a valid entry using the HP LaserJet 5
13454                 printer driver would appear as <B
13455 CLASS="COMMAND"
13456 >HP LaserJet 5L = LASERJET.HP 
13457                 LaserJet 5L</B
13458 >.</P
13459 ><P
13460 >The need for the file is due to the printer driver namespace 
13461                 problem described in the <A
13462 HREF="printer_driver2.html"
13463 TARGET="_top"
13464 >Samba 
13465                 Printing HOWTO</A
13466 >.  For more details on OS/2 clients, please 
13467                 refer to the <A
13468 HREF="OS2-Client-HOWTO.html"
13469 TARGET="_top"
13470 >OS2-Client-HOWTO
13471                 </A
13472 > containing in the Samba documentation.</P
13473 ><P
13474 >Default: <B
13475 CLASS="COMMAND"
13476 >os2 driver map = &lt;empty string&gt;
13477                 </B
13478 ></P
13479 ></DD
13480 ><DT
13481 ><A
13482 NAME="PAMPASSWORDCHANGE"
13483 ></A
13484 >pam password change (G)</DT
13485 ><DD
13486 ><P
13487 >With the addition of better PAM support in Samba 2.2, 
13488                 this parameter, it is possible to use PAM's password change control 
13489                 flag for Samba.  If enabled, then PAM will be used for password
13490                 changes when requested by an SMB client instead of the program listed in 
13491                 <A
13492 HREF="index.html#PASSWDPROGRAM"
13493 ><TT
13494 CLASS="PARAMETER"
13495 ><I
13496 >passwd program</I
13497 ></TT
13498 ></A
13499 >. 
13500                 It should be possible to enable this without changing your 
13501                 <A
13502 HREF="index.html#PASSWDCHAT"
13503 ><TT
13504 CLASS="PARAMETER"
13505 ><I
13506 >passwd chat</I
13507 ></TT
13508 ></A
13509 >
13510                 parameter for most setups.
13511                 </P
13512 ><P
13513 >Default: <B
13514 CLASS="COMMAND"
13515 >pam password change = no</B
13516 ></P
13517 ></DD
13518 ><DT
13519 ><A
13520 NAME="PANICACTION"
13521 ></A
13522 >panic action (G)</DT
13523 ><DD
13524 ><P
13525 >This is a Samba developer option that allows a 
13526                 system command to be called when either <A
13527 HREF="smbd.8.html"
13528 TARGET="_top"
13529 >               smbd(8)</A
13530 > or <A
13531 HREF="nmbd.8.html"
13532 TARGET="_top"
13533 >nmbd(8)</A
13534
13535                 crashes. This is usually used to draw attention to the fact that 
13536                 a problem occurred.</P
13537 ><P
13538 >Default: <B
13539 CLASS="COMMAND"
13540 >panic action = &lt;empty string&gt;</B
13541 ></P
13542 ><P
13543 >Example: <B
13544 CLASS="COMMAND"
13545 >panic action = "/bin/sleep 90000"</B
13546 ></P
13547 ></DD
13548 ><DT
13549 ><A
13550 NAME="PARANOIDSERVERSECURITY"
13551 ></A
13552 >paranoid server security (G)</DT
13553 ><DD
13554 ><P
13555 >Some version of NT 4.x allow non-guest 
13556                 users with a bad passowrd. When this option is enabled, samba will not 
13557                 use a broken NT 4.x server as password server, but instead complain
13558                 to the logs and exit.
13559                 </P
13560 ><P
13561 >Default: <B
13562 CLASS="COMMAND"
13563 >paranoid server security = yes</B
13564 ></P
13565 ></DD
13566 ><DT
13567 ><A
13568 NAME="PASSDBBACKEND"
13569 ></A
13570 >passdb backend (G)</DT
13571 ><DD
13572 ><P
13573 >This option allows the administrator to chose which backends to retrieve and store passwords with. This allows (for example) both 
13574                 smbpasswd and tdbsam to be used without a recompile. 
13575                 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.
13576                 Experimental backends must still be selected
13577                 (eg --with-tdbsam) at configure time.
13578                 </P
13579 ><P
13580 >This parameter is in two parts, the backend's name, and a 'location'
13581                 string that has meaning only to that particular backed.  These are separated
13582                 by a : character.</P
13583 ><P
13584 >Available backends can include:
13585                 <P
13586 ></P
13587 ><UL
13588 ><LI
13589 ><P
13590 ><B
13591 CLASS="COMMAND"
13592 >smbpasswd</B
13593 > - The default smbpasswd
13594                         backend.  Takes a path to the smbpasswd file as an optional argument.</P
13595 ></LI
13596 ><LI
13597 ><P
13598 ><B
13599 CLASS="COMMAND"
13600 >smbpasswd_nua</B
13601 > - The smbpasswd
13602                         backend, but with support for 'not unix accounts'.  
13603                         Takes a path to the smbpasswd file as an optional argument.</P
13604 ><P
13605 >See also <A
13606 HREF="index.html#NONUNIXACCOUNTRANGE"
13607 >                        <TT
13608 CLASS="PARAMETER"
13609 ><I
13610 >non unix account range</I
13611 ></TT
13612 ></A
13613 ></P
13614 ></LI
13615 ><LI
13616 ><P
13617 ><B
13618 CLASS="COMMAND"
13619 >tdbsam</B
13620 > - The TDB based password storage
13621                         backend.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
13622                         in the <A
13623 HREF="index.html#PRIVATEDIR"
13624 >                        <TT
13625 CLASS="PARAMETER"
13626 ><I
13627 >private dir</I
13628 ></TT
13629 ></A
13630 > directory.</P
13631 ></LI
13632 ><LI
13633 ><P
13634 ><B
13635 CLASS="COMMAND"
13636 >tdbsam_nua</B
13637 > - The TDB based password storage
13638                         backend, with non unix account support.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
13639                         in the <A
13640 HREF="index.html#PRIVATEDIR"
13641 >                        <TT
13642 CLASS="PARAMETER"
13643 ><I
13644 >private dir</I
13645 ></TT
13646 ></A
13647 > directory.</P
13648 ><P
13649 >See also <A
13650 HREF="index.html#NONUNIXACCOUNTRANGE"
13651 >                        <TT
13652 CLASS="PARAMETER"
13653 ><I
13654 >non unix account range</I
13655 ></TT
13656 ></A
13657 ></P
13658 ></LI
13659 ><LI
13660 ><P
13661 ><B
13662 CLASS="COMMAND"
13663 >ldapsam</B
13664 > - The LDAP based passdb 
13665                         backend.  Takes an LDAP URL as an optional argument (defaults to 
13666                         <B
13667 CLASS="COMMAND"
13668 >ldap://localhost</B
13669 >)</P
13670 ></LI
13671 ><LI
13672 ><P
13673 ><B
13674 CLASS="COMMAND"
13675 >ldapsam_nua</B
13676 > - The LDAP based passdb 
13677                         backend, with non unix account support.  Takes an LDAP URL as an optional argument (defaults to 
13678                         <B
13679 CLASS="COMMAND"
13680 >ldap://localhost</B
13681 >)</P
13682 ><P
13683 >See also <A
13684 HREF="index.html#NONUNIXACCOUNTRANGE"
13685 >                        <TT
13686 CLASS="PARAMETER"
13687 ><I
13688 >non unix account range</I
13689 ></TT
13690 ></A
13691 ></P
13692 ></LI
13693 ><LI
13694 ><P
13695 ><B
13696 CLASS="COMMAND"
13697 >nisplussam</B
13698 > - The NIS+ based passdb backend. Takes name NIS domain as an optional argument. Only works with sun NIS+ servers. </P
13699 ></LI
13700 ><LI
13701 ><P
13702 ><B
13703 CLASS="COMMAND"
13704 >plugin</B
13705 > - Allows Samba to load an 
13706                         arbitary passdb backend from the .so specified as a compulsary argument.
13707                         </P
13708 ><P
13709 >Any characters after the (optional) second : are passed to the plugin
13710                         for its own processing</P
13711 ></LI
13712 ><LI
13713 ><P
13714 ><B
13715 CLASS="COMMAND"
13716 >unixsam</B
13717 > - Allows samba to map all (other) available unix users</P
13718 ><P
13719 >This backend uses the standard unix database for retrieving users. Users included 
13720                         in this pdb are NOT listed in samba user listings and users included in this pdb won't be 
13721                         able to login. The use of this backend is to always be able to display the owner of a file 
13722                         on the samba server - even when the user doesn't have a 'real' samba account in one of the 
13723                         other passdb backends.
13724                         </P
13725 ><P
13726 >This backend should always be the last backend listed, since it contains all users in 
13727                         the unix passdb and might 'override' mappings if specified earlier. It's meant to only return 
13728                         accounts for users that aren't covered by the previous backends.</P
13729 ></LI
13730 ></UL
13731 >
13732                 </P
13733 ><P
13734 >Default: <B
13735 CLASS="COMMAND"
13736 >passdb backend = smbpasswd unixsam</B
13737 ></P
13738 ><P
13739 >Example: <B
13740 CLASS="COMMAND"
13741 >passdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd unixsam</B
13742 ></P
13743 ><P
13744 >Example: <B
13745 CLASS="COMMAND"
13746 >passdb backend = ldapsam_nua:ldaps://ldap.example.com unixsam</B
13747 ></P
13748 ><P
13749 >Example: <B
13750 CLASS="COMMAND"
13751 >passdb backend = plugin:/usr/local/samba/lib/my_passdb.so:my_plugin_args tdbsam:/etc/samba/private/passdb.tdb</B
13752 ></P
13753 ></DD
13754 ><DT
13755 ><A
13756 NAME="PASSWDCHAT"
13757 ></A
13758 >passwd chat (G)</DT
13759 ><DD
13760 ><P
13761 >This string controls the <SPAN
13762 CLASS="emphasis"
13763 ><I
13764 CLASS="EMPHASIS"
13765 >"chat"</I
13766 ></SPAN
13767
13768                 conversation that takes places between <A
13769 HREF="smbd.8.html"
13770 TARGET="_top"
13771 >smbd</A
13772 > and the local password changing
13773                 program to change the user's password. The string describes a 
13774                 sequence of response-receive pairs that <A
13775 HREF="smbd.8.html"
13776 TARGET="_top"
13777 >               smbd(8)</A
13778 > uses to determine what to send to the 
13779                 <A
13780 HREF="index.html#PASSWDPROGRAM"
13781 ><TT
13782 CLASS="PARAMETER"
13783 ><I
13784 >passwd program</I
13785 ></TT
13786 >
13787                 </A
13788 > and what to expect back. If the expected output is not 
13789                 received then the password is not changed.</P
13790 ><P
13791 >This chat sequence is often quite site specific, depending 
13792                 on what local methods are used for password control (such as NIS 
13793                 etc).</P
13794 ><P
13795 >Note that this parameter only is only used if the <A
13796 HREF="index.html#UNIXPASSWORDSYNC"
13797 ><TT
13798 CLASS="PARAMETER"
13799 ><I
13800 >unix 
13801                 password sync</I
13802 ></TT
13803 ></A
13804 > parameter is set to <TT
13805 CLASS="CONSTANT"
13806 >yes</TT
13807 >. This 
13808                 sequence is then called <SPAN
13809 CLASS="emphasis"
13810 ><I
13811 CLASS="EMPHASIS"
13812 >AS ROOT</I
13813 ></SPAN
13814 > when the SMB password 
13815                 in the smbpasswd file is being changed, without access to the old 
13816                 password cleartext. This means that root must be able to reset the user's password
13817                 without knowing the text of the previous password. In the presence of NIS/YP, 
13818                 this means that the <A
13819 HREF="index.html#PASSWDPROGRAM"
13820 >passwd program</A
13821 > must be 
13822                 executed on the NIS master.
13823                 </P
13824 ><P
13825 >The string can contain the macro <TT
13826 CLASS="PARAMETER"
13827 ><I
13828 >%n</I
13829 ></TT
13830 > which is substituted 
13831                 for the new password.  The chat sequence can also contain the standard 
13832                 macros <TT
13833 CLASS="CONSTANT"
13834 >\n</TT
13835 >, <TT
13836 CLASS="CONSTANT"
13837 >\r</TT
13838 >, <TT
13839 CLASS="CONSTANT"
13840 >               \t</TT
13841 > and <TT
13842 CLASS="CONSTANT"
13843 >\s</TT
13844 > to give line-feed, 
13845                 carriage-return, tab and space.  The chat sequence string can also contain 
13846                 a '*' which matches any sequence of characters.
13847                 Double quotes can be used to collect strings with spaces 
13848                 in them into a single string.</P
13849 ><P
13850 >If the send string in any part of the chat sequence 
13851                 is a full stop ".",  then no string is sent. Similarly, 
13852                 if the expect string is a full stop then no string is expected.</P
13853 ><P
13854 >If the <A
13855 HREF="index.html#PAMPASSWORDCHANGE"
13856 ><TT
13857 CLASS="PARAMETER"
13858 ><I
13859 >pam
13860                 password change</I
13861 ></TT
13862 ></A
13863 > parameter is set to true, the chat pairs
13864                 may be matched in any order, and success is determined by the PAM result, 
13865                 not any particular output. The \n macro is ignored for PAM conversions.
13866                 </P
13867 ><P
13868 >See also <A
13869 HREF="index.html#UNIXPASSWORDSYNC"
13870 ><TT
13871 CLASS="PARAMETER"
13872 ><I
13873 >unix password 
13874                 sync</I
13875 ></TT
13876 ></A
13877 >, <A
13878 HREF="index.html#PASSWDPROGRAM"
13879 ><TT
13880 CLASS="PARAMETER"
13881 ><I
13882 >               passwd program</I
13883 ></TT
13884 ></A
13885 > ,<A
13886 HREF="index.html#PASSWDCHATDEBUG"
13887 >               <TT
13888 CLASS="PARAMETER"
13889 ><I
13890 >passwd chat debug</I
13891 ></TT
13892 ></A
13893 > and <A
13894 HREF="index.html#PAMPASSWORDCHANGE"
13895 >               <TT
13896 CLASS="PARAMETER"
13897 ><I
13898 >pam password change</I
13899 ></TT
13900 ></A
13901 >.</P
13902 ><P
13903 >Default: <B
13904 CLASS="COMMAND"
13905 >passwd chat = *new*password* %n\n 
13906                 *new*password* %n\n *changed*</B
13907 ></P
13908 ><P
13909 >Example: <B
13910 CLASS="COMMAND"
13911 >passwd chat = "*Enter OLD password*" %o\n 
13912                 "*Enter NEW password*" %n\n "*Reenter NEW password*" %n\n "*Password 
13913                 changed*"</B
13914 ></P
13915 ></DD
13916 ><DT
13917 ><A
13918 NAME="PASSWDCHATDEBUG"
13919 ></A
13920 >passwd chat debug (G)</DT
13921 ><DD
13922 ><P
13923 >This boolean specifies if the passwd chat script 
13924                 parameter is run in <SPAN
13925 CLASS="emphasis"
13926 ><I
13927 CLASS="EMPHASIS"
13928 >debug</I
13929 ></SPAN
13930 > mode. In this mode the 
13931                 strings passed to and received from the passwd chat are printed 
13932                 in the <A
13933 HREF="smbd.8.html"
13934 TARGET="_top"
13935 >smbd(8)</A
13936 > log with a 
13937                 <A
13938 HREF="index.html#DEBUGLEVEL"
13939 ><TT
13940 CLASS="PARAMETER"
13941 ><I
13942 >debug level</I
13943 ></TT
13944 ></A
13945
13946                 of 100. This is a dangerous option as it will allow plaintext passwords 
13947                 to be seen in the <B
13948 CLASS="COMMAND"
13949 >smbd</B
13950 > log. It is available to help 
13951                 Samba admins debug their <TT
13952 CLASS="PARAMETER"
13953 ><I
13954 >passwd chat</I
13955 ></TT
13956 > scripts 
13957                 when calling the <TT
13958 CLASS="PARAMETER"
13959 ><I
13960 >passwd program</I
13961 ></TT
13962 > and should 
13963                 be turned off after this has been done. This option has no effect if the 
13964                 <A
13965 HREF="index.html#PAMPASSWORDCHANGE"
13966 ><TT
13967 CLASS="PARAMETER"
13968 ><I
13969 >pam password change</I
13970 ></TT
13971 ></A
13972 >
13973                 paramter is set. This parameter is off by default.</P
13974 ><P
13975 >See also <A
13976 HREF="index.html#PASSWDCHAT"
13977 ><TT
13978 CLASS="PARAMETER"
13979 ><I
13980 >passwd chat</I
13981 ></TT
13982 >
13983                 </A
13984 >, <A
13985 HREF="index.html#PAMPASSWORDCHANGE"
13986 ><TT
13987 CLASS="PARAMETER"
13988 ><I
13989 >pam password change</I
13990 ></TT
13991 >
13992                 </A
13993 >, <A
13994 HREF="index.html#PASSWDPROGRAM"
13995 ><TT
13996 CLASS="PARAMETER"
13997 ><I
13998 >passwd program</I
13999 ></TT
14000 >
14001                 </A
14002 >.</P
14003 ><P
14004 >Default: <B
14005 CLASS="COMMAND"
14006 >passwd chat debug = no</B
14007 ></P
14008 ></DD
14009 ><DT
14010 ><A
14011 NAME="PASSWDPROGRAM"
14012 ></A
14013 >passwd program (G)</DT
14014 ><DD
14015 ><P
14016 >The name of a program that can be used to set 
14017                 UNIX user passwords.  Any occurrences of <TT
14018 CLASS="PARAMETER"
14019 ><I
14020 >%u</I
14021 ></TT
14022
14023                 will be replaced with the user name. The user name is checked for 
14024                 existence before calling the password changing program.</P
14025 ><P
14026 >Also note that many passwd programs insist in <SPAN
14027 CLASS="emphasis"
14028 ><I
14029 CLASS="EMPHASIS"
14030 >reasonable
14031                 </I
14032 ></SPAN
14033 > passwords, such as a minimum length, or the inclusion 
14034                 of mixed case chars and digits. This can pose a problem as some clients 
14035                 (such as Windows for Workgroups) uppercase the password before sending 
14036                 it.</P
14037 ><P
14038 ><SPAN
14039 CLASS="emphasis"
14040 ><I
14041 CLASS="EMPHASIS"
14042 >Note</I
14043 ></SPAN
14044 > that if the <TT
14045 CLASS="PARAMETER"
14046 ><I
14047 >unix 
14048                 password sync</I
14049 ></TT
14050 > parameter is set to <TT
14051 CLASS="CONSTANT"
14052 >true
14053                 </TT
14054 > then this program is called <SPAN
14055 CLASS="emphasis"
14056 ><I
14057 CLASS="EMPHASIS"
14058 >AS ROOT</I
14059 ></SPAN
14060
14061                 before the SMB password in the <A
14062 HREF="smbpasswd.5.html"
14063 TARGET="_top"
14064 >smbpasswd(5)
14065                 </A
14066 > file is changed. If this UNIX password change fails, then 
14067                 <B
14068 CLASS="COMMAND"
14069 >smbd</B
14070 > will fail to change the SMB password also 
14071                 (this is by design).</P
14072 ><P
14073 >If the <TT
14074 CLASS="PARAMETER"
14075 ><I
14076 >unix password sync</I
14077 ></TT
14078 > parameter 
14079                 is set this parameter <SPAN
14080 CLASS="emphasis"
14081 ><I
14082 CLASS="EMPHASIS"
14083 >MUST USE ABSOLUTE PATHS</I
14084 ></SPAN
14085
14086                 for <SPAN
14087 CLASS="emphasis"
14088 ><I
14089 CLASS="EMPHASIS"
14090 >ALL</I
14091 ></SPAN
14092 > programs called, and must be examined 
14093                 for security implications. Note that by default <TT
14094 CLASS="PARAMETER"
14095 ><I
14096 >unix 
14097                 password sync</I
14098 ></TT
14099 > is set to <TT
14100 CLASS="CONSTANT"
14101 >false</TT
14102 >.</P
14103 ><P
14104 >See also <A
14105 HREF="index.html#UNIXPASSWORDSYNC"
14106 ><TT
14107 CLASS="PARAMETER"
14108 ><I
14109 >unix 
14110                 password sync</I
14111 ></TT
14112 ></A
14113 >.</P
14114 ><P
14115 >Default: <B
14116 CLASS="COMMAND"
14117 >passwd program = /bin/passwd</B
14118 ></P
14119 ><P
14120 >Example: <B
14121 CLASS="COMMAND"
14122 >passwd program = /sbin/npasswd %u</B
14123 >
14124                 </P
14125 ></DD
14126 ><DT
14127 ><A
14128 NAME="PASSWORDLEVEL"
14129 ></A
14130 >password level (G)</DT
14131 ><DD
14132 ><P
14133 >Some client/server combinations have difficulty 
14134                 with mixed-case passwords.  One offending client is Windows for 
14135                 Workgroups, which for some reason forces passwords to upper 
14136                 case when using the LANMAN1 protocol, but leaves them alone when 
14137                 using COREPLUS!  Another problem child is the Windows 95/98
14138                 family of operating systems.  These clients upper case clear
14139                 text passwords even when NT LM 0.12 selected by the protocol
14140                 negotiation request/response.</P
14141 ><P
14142 >This parameter defines the maximum number of characters 
14143                 that may be upper case in passwords.</P
14144 ><P
14145 >For example, say the password given was "FRED". If <TT
14146 CLASS="PARAMETER"
14147 ><I
14148 >               password level</I
14149 ></TT
14150 > is set to 1, the following combinations 
14151                 would be tried if "FRED" failed:</P
14152 ><P
14153 >"Fred", "fred", "fRed", "frEd","freD"</P
14154 ><P
14155 >If <TT
14156 CLASS="PARAMETER"
14157 ><I
14158 >password level</I
14159 ></TT
14160 > was set to 2, 
14161                 the following combinations would also be tried: </P
14162 ><P
14163 >"FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..</P
14164 ><P
14165 >And so on.</P
14166 ><P
14167 >The higher value this parameter is set to the more likely 
14168                 it is that a mixed case password will be matched against a single 
14169                 case password. However, you should be aware that use of this 
14170                 parameter reduces security and increases the time taken to 
14171                 process a new connection.</P
14172 ><P
14173 >A value of zero will cause only two attempts to be 
14174                 made - the password as is and the password in all-lower case.</P
14175 ><P
14176 >Default: <B
14177 CLASS="COMMAND"
14178 >password level = 0</B
14179 ></P
14180 ><P
14181 >Example: <B
14182 CLASS="COMMAND"
14183 >password level = 4</B
14184 ></P
14185 ></DD
14186 ><DT
14187 ><A
14188 NAME="PASSWORDSERVER"
14189 ></A
14190 >password server (G)</DT
14191 ><DD
14192 ><P
14193 >By specifying the name of another SMB server (such 
14194                 as a WinNT box) with this option, and using <B
14195 CLASS="COMMAND"
14196 >security = domain
14197                 </B
14198 > or <B
14199 CLASS="COMMAND"
14200 >security = server</B
14201 > you can get Samba 
14202                 to do all its username/password validation via a remote server.</P
14203 ><P
14204 >This option sets the name of the password server to use. 
14205                 It must be a NetBIOS name, so if the machine's NetBIOS name is 
14206                 different from its Internet name then you may have to add its NetBIOS 
14207                 name to the lmhosts  file which is stored in the same directory 
14208                 as the <TT
14209 CLASS="FILENAME"
14210 >smb.conf</TT
14211 > file.</P
14212 ><P
14213 >The name of the password server is looked up using the 
14214                 parameter <A
14215 HREF="index.html#NAMERESOLVEORDER"
14216 ><TT
14217 CLASS="PARAMETER"
14218 ><I
14219 >name 
14220                 resolve order</I
14221 ></TT
14222 ></A
14223 > and so may resolved
14224                 by any method and order described in that parameter.</P
14225 ><P
14226 >The password server much be a machine capable of using 
14227                 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in 
14228                 user level security mode.</P
14229 ><P
14230 ><SPAN
14231 CLASS="emphasis"
14232 ><I
14233 CLASS="EMPHASIS"
14234 >NOTE:</I
14235 ></SPAN
14236 > Using a password server 
14237                 means your UNIX box (running Samba) is only as secure as your 
14238                 password server. <SPAN
14239 CLASS="emphasis"
14240 ><I
14241 CLASS="EMPHASIS"
14242 >DO NOT CHOOSE A PASSWORD SERVER THAT 
14243                 YOU DON'T COMPLETELY TRUST</I
14244 ></SPAN
14245 >.</P
14246 ><P
14247 >Never point a Samba server at itself for password 
14248                 serving. This will cause a loop and could lock up your Samba 
14249                 server!</P
14250 ><P
14251 >The name of the password server takes the standard 
14252                 substitutions, but probably the only useful one is <TT
14253 CLASS="PARAMETER"
14254 ><I
14255 >%m
14256                 </I
14257 ></TT
14258 >, which means the Samba server will use the incoming 
14259                 client as the password server. If you use this then you better 
14260                 trust your clients, and you had better restrict them with hosts allow!</P
14261 ><P
14262 >If the <TT
14263 CLASS="PARAMETER"
14264 ><I
14265 >security</I
14266 ></TT
14267 > parameter is set to
14268                 <TT
14269 CLASS="CONSTANT"
14270 >domain</TT
14271 >, then the list of machines in this 
14272                 option must be a list of Primary or Backup Domain controllers for the
14273                 Domain or the character '*', as the Samba server is effectively
14274                 in that domain, and will use cryptographically authenticated RPC calls
14275                 to authenticate the user logging on. The advantage of using <B
14276 CLASS="COMMAND"
14277 >               security = domain</B
14278 > is that if you list several hosts in the 
14279                 <TT
14280 CLASS="PARAMETER"
14281 ><I
14282 >password server</I
14283 ></TT
14284 > option then <B
14285 CLASS="COMMAND"
14286 >smbd
14287                 </B
14288 > will try each in turn till it finds one that responds. This 
14289                 is useful in case your primary server goes down.</P
14290 ><P
14291 >If the <TT
14292 CLASS="PARAMETER"
14293 ><I
14294 >password server</I
14295 ></TT
14296 > option is set 
14297                 to the character '*', then Samba will attempt to auto-locate the 
14298                 Primary or Backup Domain controllers to authenticate against by 
14299                 doing a query for the name <TT
14300 CLASS="CONSTANT"
14301 >WORKGROUP&lt;1C&gt;</TT
14302
14303                 and then contacting each server returned in the list of IP 
14304                 addresses from the name resolution source. </P
14305 ><P
14306 >If the <TT
14307 CLASS="PARAMETER"
14308 ><I
14309 >security</I
14310 ></TT
14311 > parameter is 
14312                 set to <TT
14313 CLASS="CONSTANT"
14314 >server</TT
14315 >, then there are different
14316                 restrictions that <B
14317 CLASS="COMMAND"
14318 >security = domain</B
14319 > doesn't 
14320                 suffer from:</P
14321 ><P
14322 ></P
14323 ><UL
14324 ><LI
14325 ><P
14326 >You may list several password servers in 
14327                         the <TT
14328 CLASS="PARAMETER"
14329 ><I
14330 >password server</I
14331 ></TT
14332 > parameter, however if an 
14333                         <B
14334 CLASS="COMMAND"
14335 >smbd</B
14336 > makes a connection to a password server, 
14337                         and then the password server fails, no more users will be able 
14338                         to be authenticated from this <B
14339 CLASS="COMMAND"
14340 >smbd</B
14341 >.  This is a 
14342                         restriction of the SMB/CIFS protocol when in <B
14343 CLASS="COMMAND"
14344 >security = server
14345                         </B
14346 > mode and cannot be fixed in Samba.</P
14347 ></LI
14348 ><LI
14349 ><P
14350 >If you are using a Windows NT server as your 
14351                         password server then you will have to ensure that your users 
14352                         are able to login from the Samba server, as when in <B
14353 CLASS="COMMAND"
14354 >                       security = server</B
14355 >  mode the network logon will appear to 
14356                         come from there rather than from the users workstation.</P
14357 ></LI
14358 ></UL
14359 ><P
14360 >See also the <A
14361 HREF="index.html#SECURITY"
14362 ><TT
14363 CLASS="PARAMETER"
14364 ><I
14365 >security
14366                 </I
14367 ></TT
14368 ></A
14369 > parameter.</P
14370 ><P
14371 >Default: <B
14372 CLASS="COMMAND"
14373 >password server = &lt;empty string&gt;</B
14374 >
14375                 </P
14376 ><P
14377 >Example: <B
14378 CLASS="COMMAND"
14379 >password server = NT-PDC, NT-BDC1, NT-BDC2
14380                 </B
14381 ></P
14382 ><P
14383 >Example: <B
14384 CLASS="COMMAND"
14385 >password server = *</B
14386 ></P
14387 ></DD
14388 ><DT
14389 ><A
14390 NAME="PATH"
14391 ></A
14392 >path (S)</DT
14393 ><DD
14394 ><P
14395 >This parameter specifies a directory to which 
14396                 the user of the service is to be given access. In the case of 
14397                 printable services, this is where print data will spool prior to 
14398                 being submitted to the host for printing.</P
14399 ><P
14400 >For a printable service offering guest access, the service 
14401                 should be readonly and the path should be world-writeable and 
14402                 have the sticky bit set. This is not mandatory of course, but 
14403                 you probably won't get the results you expect if you do 
14404                 otherwise.</P
14405 ><P
14406 >Any occurrences of <TT
14407 CLASS="PARAMETER"
14408 ><I
14409 >%u</I
14410 ></TT
14411 > in the path 
14412                 will be replaced with the UNIX username that the client is using 
14413                 on this connection. Any occurrences of <TT
14414 CLASS="PARAMETER"
14415 ><I
14416 >%m</I
14417 ></TT
14418
14419                 will be replaced by the NetBIOS name of the machine they are 
14420                 connecting from. These replacements are very useful for setting 
14421                 up pseudo home directories for users.</P
14422 ><P
14423 >Note that this path will be based on <A
14424 HREF="index.html#ROOTDIR"
14425 >               <TT
14426 CLASS="PARAMETER"
14427 ><I
14428 >root dir</I
14429 ></TT
14430 ></A
14431 > if one was specified.</P
14432 ><P
14433 >Default: <SPAN
14434 CLASS="emphasis"
14435 ><I
14436 CLASS="EMPHASIS"
14437 >none</I
14438 ></SPAN
14439 ></P
14440 ><P
14441 >Example: <B
14442 CLASS="COMMAND"
14443 >path = /home/fred</B
14444 ></P
14445 ></DD
14446 ><DT
14447 ><A
14448 NAME="PIDDIRECTORY"
14449 ></A
14450 >pid directory (G)</DT
14451 ><DD
14452 ><P
14453 >This option specifies the directory where pid 
14454                 files will be placed.  </P
14455 ><P
14456 >Default: <B
14457 CLASS="COMMAND"
14458 >pid directory = ${prefix}/var/locks</B
14459 ></P
14460 ><P
14461 >Example: <B
14462 CLASS="COMMAND"
14463 >pid directory = /var/run/</B
14464 >
14465                 </P
14466 ></DD
14467 ><DT
14468 ><A
14469 NAME="POSIXLOCKING"
14470 ></A
14471 >posix locking (S)</DT
14472 ><DD
14473 ><P
14474 >The <A
14475 HREF="smbd.8.html"
14476 TARGET="_top"
14477 ><B
14478 CLASS="COMMAND"
14479 >smbd(8)</B
14480 ></A
14481 >
14482                 daemon maintains an database of file locks obtained by SMB clients.
14483                 The default behavior is to map this internal database to POSIX
14484                 locks.  This means that file locks obtained by SMB clients are 
14485                 consistent with those seen by POSIX compliant applications accessing 
14486                 the files via a non-SMB method (e.g. NFS or local file access).  
14487                 You should never need to disable this parameter.</P
14488 ><P
14489 >Default: <B
14490 CLASS="COMMAND"
14491 >posix locking = yes</B
14492 ></P
14493 ></DD
14494 ><DT
14495 ><A
14496 NAME="POSTEXEC"
14497 ></A
14498 >postexec (S)</DT
14499 ><DD
14500 ><P
14501 >This option specifies a command to be run 
14502                 whenever the service is disconnected. It takes the usual 
14503                 substitutions. The command may be run as the root on some 
14504                 systems.</P
14505 ><P
14506 >An interesting example may be to unmount server 
14507                 resources:</P
14508 ><P
14509 ><B
14510 CLASS="COMMAND"
14511 >postexec = /etc/umount /cdrom</B
14512 ></P
14513 ><P
14514 >See also <A
14515 HREF="index.html#PREEXEC"
14516 ><TT
14517 CLASS="PARAMETER"
14518 ><I
14519 >preexec</I
14520 ></TT
14521 >
14522                 </A
14523 >.</P
14524 ><P
14525 >Default: <SPAN
14526 CLASS="emphasis"
14527 ><I
14528 CLASS="EMPHASIS"
14529 >none (no command executed)</I
14530 ></SPAN
14531 >
14532                 </P
14533 ><P
14534 >Example: <B
14535 CLASS="COMMAND"
14536 >postexec = echo \"%u disconnected from %S 
14537                 from %m (%I)\" &gt;&gt; /tmp/log</B
14538 ></P
14539 ></DD
14540 ><DT
14541 ><A
14542 NAME="POSTSCRIPT"
14543 ></A
14544 >postscript (S)</DT
14545 ><DD
14546 ><P
14547 >This parameter forces a printer to interpret 
14548                 the print files as PostScript. This is done by adding a <TT
14549 CLASS="CONSTANT"
14550 >%!
14551                 </TT
14552 > to the start of print output.</P
14553 ><P
14554 >This is most useful when you have lots of PCs that persist 
14555                 in putting a control-D at the start of print jobs, which then 
14556                 confuses your printer.</P
14557 ><P
14558 >Default: <B
14559 CLASS="COMMAND"
14560 >postscript = no</B
14561 ></P
14562 ></DD
14563 ><DT
14564 ><A
14565 NAME="PREEXEC"
14566 ></A
14567 >preexec (S)</DT
14568 ><DD
14569 ><P
14570 >This option specifies a command to be run whenever 
14571                 the service is connected to. It takes the usual substitutions.</P
14572 ><P
14573 >An interesting example is to send the users a welcome 
14574                 message every time they log in. Maybe a message of the day? Here 
14575                 is an example:</P
14576 ><P
14577 ><B
14578 CLASS="COMMAND"
14579 >preexec = csh -c 'echo \"Welcome to %S!\" |
14580                  /usr/local/samba/bin/smbclient -M %m -I %I' &#38; </B
14581 ></P
14582 ><P
14583 >Of course, this could get annoying after a while :-)</P
14584 ><P
14585 >See also <A
14586 HREF="index.html#PREEXECCLOSE"
14587 ><TT
14588 CLASS="PARAMETER"
14589 ><I
14590 >preexec close
14591                 </I
14592 ></TT
14593 ></A
14594 > and <A
14595 HREF="index.html#POSTEXEC"
14596 ><TT
14597 CLASS="PARAMETER"
14598 ><I
14599 >postexec
14600                 </I
14601 ></TT
14602 ></A
14603 >.</P
14604 ><P
14605 >Default: <SPAN
14606 CLASS="emphasis"
14607 ><I
14608 CLASS="EMPHASIS"
14609 >none (no command executed)</I
14610 ></SPAN
14611 ></P
14612 ><P
14613 >Example: <B
14614 CLASS="COMMAND"
14615 >preexec = echo \"%u connected to %S from %m
14616                 (%I)\" &gt;&gt; /tmp/log</B
14617 ></P
14618 ></DD
14619 ><DT
14620 ><A
14621 NAME="PREEXECCLOSE"
14622 ></A
14623 >preexec close (S)</DT
14624 ><DD
14625 ><P
14626 >This boolean option controls whether a non-zero 
14627                 return code from <A
14628 HREF="index.html#PREEXEC"
14629 ><TT
14630 CLASS="PARAMETER"
14631 ><I
14632 >preexec
14633                 </I
14634 ></TT
14635 ></A
14636 > should close the service being connected to.</P
14637 ><P
14638 >Default: <B
14639 CLASS="COMMAND"
14640 >preexec close = no</B
14641 ></P
14642 ></DD
14643 ><DT
14644 ><A
14645 NAME="PREFERREDMASTER"
14646 ></A
14647 >preferred master (G)</DT
14648 ><DD
14649 ><P
14650 >This boolean parameter controls if <A
14651 HREF="nmbd.8.html"
14652 TARGET="_top"
14653 >nmbd(8)</A
14654 > is a preferred master browser 
14655                 for its workgroup.</P
14656 ><P
14657 >If this is set to <TT
14658 CLASS="CONSTANT"
14659 >true</TT
14660 >, on startup, <B
14661 CLASS="COMMAND"
14662 >nmbd</B
14663
14664                 will force an election, and it will have a slight advantage in 
14665                 winning the election.  It is recommended that this parameter is 
14666                 used in conjunction with <B
14667 CLASS="COMMAND"
14668 ><A
14669 HREF="index.html#DOMAINMASTER"
14670 ><TT
14671 CLASS="PARAMETER"
14672 ><I
14673 >               domain master</I
14674 ></TT
14675 ></A
14676 > = yes</B
14677 >, so that <B
14678 CLASS="COMMAND"
14679 >               nmbd</B
14680 > can guarantee becoming a domain master.</P
14681 ><P
14682 >Use this option with caution, because if there are several 
14683                 hosts (whether Samba servers, Windows 95 or NT) that are preferred 
14684                 master browsers on the same subnet, they will each periodically 
14685                 and continuously attempt to become the local master browser.  
14686                 This will result in unnecessary broadcast traffic and reduced browsing
14687                 capabilities.</P
14688 ><P
14689 >See also <A
14690 HREF="index.html#OSLEVEL"
14691 ><TT
14692 CLASS="PARAMETER"
14693 ><I
14694 >os level</I
14695 ></TT
14696 >
14697                 </A
14698 >.</P
14699 ><P
14700 >Default: <B
14701 CLASS="COMMAND"
14702 >preferred master = auto</B
14703 ></P
14704 ></DD
14705 ><DT
14706 ><A
14707 NAME="PREFEREDMASTER"
14708 ></A
14709 >prefered master (G)</DT
14710 ><DD
14711 ><P
14712 >Synonym for <A
14713 HREF="index.html#PREFERREDMASTER"
14714 ><TT
14715 CLASS="PARAMETER"
14716 ><I
14717 >               preferred master</I
14718 ></TT
14719 ></A
14720 > for people who cannot spell :-).</P
14721 ></DD
14722 ><DT
14723 ><A
14724 NAME="PRELOAD"
14725 ></A
14726 >preload</DT
14727 ><DD
14728 ><P
14729 >This is a list of services that you want to be 
14730                 automatically added to the browse lists. This is most useful 
14731                 for homes and printers services that would otherwise not be 
14732                 visible.</P
14733 ><P
14734 >Note that if you just want all printers in your 
14735                 printcap file loaded then the <A
14736 HREF="index.html#LOADPRINTERS"
14737 >               <TT
14738 CLASS="PARAMETER"
14739 ><I
14740 >load printers</I
14741 ></TT
14742 ></A
14743 > option is easier.</P
14744 ><P
14745 >Default: <SPAN
14746 CLASS="emphasis"
14747 ><I
14748 CLASS="EMPHASIS"
14749 >no preloaded services</I
14750 ></SPAN
14751 ></P
14752 ><P
14753 >Example: <B
14754 CLASS="COMMAND"
14755 >preload = fred lp colorlp</B
14756 ></P
14757 ></DD
14758 ><DT
14759 ><A
14760 NAME="PRESERVECASE"
14761 ></A
14762 >preserve case (S)</DT
14763 ><DD
14764 ><P
14765 > This controls if new filenames are created
14766                 with the case that the client passes, or if they are forced to 
14767                 be the <A
14768 HREF="index.html#DEFAULTCASE"
14769 ><TT
14770 CLASS="PARAMETER"
14771 ><I
14772 >default case
14773                 </I
14774 ></TT
14775 ></A
14776 >.</P
14777 ><P
14778 >Default: <B
14779 CLASS="COMMAND"
14780 >preserve case = yes</B
14781 ></P
14782 ><P
14783 >See the section on <A
14784 HREF="index.html#AEN203"
14785 >NAME 
14786                 MANGLING</A
14787 > for a fuller discussion.</P
14788 ></DD
14789 ><DT
14790 ><A
14791 NAME="PRINTCOMMAND"
14792 ></A
14793 >print command (S)</DT
14794 ><DD
14795 ><P
14796 >After a print job has finished spooling to 
14797                 a service, this command will be used via a <B
14798 CLASS="COMMAND"
14799 >system()</B
14800
14801                 call to process the spool file. Typically the command specified will 
14802                 submit the spool file to the host's printing subsystem, but there 
14803                 is no requirement that this be the case. The server will not remove 
14804                 the spool file, so whatever command you specify should remove the 
14805                 spool file when it has been processed, otherwise you will need to 
14806                 manually remove old spool files.</P
14807 ><P
14808 >The print command is simply a text string. It will be used 
14809                 verbatim after macro substitutions have been made:</P
14810 ><P
14811 >s, %p - the path to the spool
14812                 file name</P
14813 ><P
14814 >%p - the appropriate printer 
14815                 name</P
14816 ><P
14817 >%J - the job 
14818                 name as transmitted by the client.</P
14819 ><P
14820 >%c - The number of printed pages
14821                 of the spooled job (if known).</P
14822 ><P
14823 >%z - the size of the spooled
14824                 print job (in bytes)</P
14825 ><P
14826 >The print command <SPAN
14827 CLASS="emphasis"
14828 ><I
14829 CLASS="EMPHASIS"
14830 >MUST</I
14831 ></SPAN
14832 > contain at least 
14833                 one occurrence of <TT
14834 CLASS="PARAMETER"
14835 ><I
14836 >%s</I
14837 ></TT
14838 > or <TT
14839 CLASS="PARAMETER"
14840 ><I
14841 >%f
14842                 </I
14843 ></TT
14844 > - the <TT
14845 CLASS="PARAMETER"
14846 ><I
14847 >%p</I
14848 ></TT
14849 > is optional. At the time 
14850                 a job is submitted, if no printer name is supplied the <TT
14851 CLASS="PARAMETER"
14852 ><I
14853 >%p
14854                 </I
14855 ></TT
14856 > will be silently removed from the printer command.</P
14857 ><P
14858 >If specified in the [global] section, the print command given 
14859                 will be used for any printable service that does not have its own 
14860                 print command specified.</P
14861 ><P
14862 >If there is neither a specified print command for a 
14863                 printable service nor a global print command, spool files will 
14864                 be created but not processed and (most importantly) not removed.</P
14865 ><P
14866 >Note that printing may fail on some UNIXes from the 
14867                 <TT
14868 CLASS="CONSTANT"
14869 >nobody</TT
14870 > account. If this happens then create 
14871                 an alternative guest account that can print and set the <A
14872 HREF="index.html#GUESTACCOUNT"
14873 ><TT
14874 CLASS="PARAMETER"
14875 ><I
14876 >guest account</I
14877 ></TT
14878 ></A
14879
14880                 in the [global] section.</P
14881 ><P
14882 >You can form quite complex print commands by realizing 
14883                 that they are just passed to a shell. For example the following 
14884                 will log a print job, print the file, then remove it. Note that 
14885                 ';' is the usual separator for command in shell scripts.</P
14886 ><P
14887 ><B
14888 CLASS="COMMAND"
14889 >print command = echo Printing %s &gt;&gt; 
14890                 /tmp/print.log; lpr -P %p %s; rm %s</B
14891 ></P
14892 ><P
14893 >You may have to vary this command considerably depending 
14894                 on how you normally print files on your system. The default for 
14895                 the parameter varies depending on the setting of the <A
14896 HREF="index.html#PRINTING"
14897 >               <TT
14898 CLASS="PARAMETER"
14899 ><I
14900 >printing</I
14901 ></TT
14902 ></A
14903 > parameter.</P
14904 ><P
14905 >Default: For <B
14906 CLASS="COMMAND"
14907 >printing = BSD, AIX, QNX, LPRNG 
14908                 or PLP :</B
14909 ></P
14910 ><P
14911 ><B
14912 CLASS="COMMAND"
14913 >print command = lpr -r -P%p %s</B
14914 ></P
14915 ><P
14916 >For <B
14917 CLASS="COMMAND"
14918 >printing = SYSV or HPUX :</B
14919 ></P
14920 ><P
14921 ><B
14922 CLASS="COMMAND"
14923 >print command = lp -c -d%p %s; rm %s</B
14924 ></P
14925 ><P
14926 >For <B
14927 CLASS="COMMAND"
14928 >printing = SOFTQ :</B
14929 ></P
14930 ><P
14931 ><B
14932 CLASS="COMMAND"
14933 >print command = lp -d%p -s %s; rm %s</B
14934 ></P
14935 ><P
14936 >For printing = CUPS :   If SAMBA is compiled against
14937                 libcups, then <A
14938 HREF="index.html#PRINTING"
14939 >printcap = cups</A
14940
14941                 uses the CUPS API to
14942                 submit jobs, etc.  Otherwise it maps to the System V
14943                 commands with the -oraw option for printing, i.e. it
14944                 uses <B
14945 CLASS="COMMAND"
14946 >lp -c -d%p -oraw; rm %s</B
14947 >.   
14948                 With <B
14949 CLASS="COMMAND"
14950 >printing = cups</B
14951 >,
14952                 and if SAMBA is compiled against libcups, any manually 
14953                 set print command will be ignored.</P
14954 ><P
14955 >Example: <B
14956 CLASS="COMMAND"
14957 >print command = /usr/local/samba/bin/myprintscript
14958                 %p %s</B
14959 ></P
14960 ></DD
14961 ><DT
14962 ><A
14963 NAME="PRINTOK"
14964 ></A
14965 >print ok (S)</DT
14966 ><DD
14967 ><P
14968 >Synonym for <A
14969 HREF="index.html#PRINTABLE"
14970 >               <TT
14971 CLASS="PARAMETER"
14972 ><I
14973 >printable</I
14974 ></TT
14975 ></A
14976 >.</P
14977 ></DD
14978 ><DT
14979 ><A
14980 NAME="PRINTABLE"
14981 ></A
14982 >printable (S)</DT
14983 ><DD
14984 ><P
14985 >If this parameter is <TT
14986 CLASS="CONSTANT"
14987 >yes</TT
14988 >, then 
14989                 clients may open, write to and submit spool files on the directory 
14990                 specified for the service. </P
14991 ><P
14992 >Note that a printable service will ALWAYS allow writing 
14993                 to the service path (user privileges permitting) via the spooling 
14994                 of print data. The <A
14995 HREF="index.html#WRITEABLE"
14996 ><TT
14997 CLASS="PARAMETER"
14998 ><I
14999 >writeable
15000                 </I
15001 ></TT
15002 ></A
15003 > parameter controls only non-printing access to 
15004                 the resource.</P
15005 ><P
15006 >Default: <B
15007 CLASS="COMMAND"
15008 >printable = no</B
15009 ></P
15010 ></DD
15011 ><DT
15012 ><A
15013 NAME="PRINTCAP"
15014 ></A
15015 >printcap (G)</DT
15016 ><DD
15017 ><P
15018 >Synonym for    <A
15019 HREF="index.html#PRINTCAPNAME"
15020 ><TT
15021 CLASS="PARAMETER"
15022 ><I
15023 >               printcap name</I
15024 ></TT
15025 ></A
15026 >.</P
15027 ></DD
15028 ><DT
15029 ><A
15030 NAME="PRINTCAPNAME"
15031 ></A
15032 >printcap name (G)</DT
15033 ><DD
15034 ><P
15035 >This parameter may be used to override the 
15036                 compiled-in default printcap name used by the server (usually <TT
15037 CLASS="FILENAME"
15038 >               /etc/printcap</TT
15039 >). See the discussion of the <A
15040 HREF="index.html#AEN79"
15041 >[printers]</A
15042 > section above for reasons 
15043                 why you might want to do this.</P
15044 ><P
15045 >To use the CUPS printing interface set <B
15046 CLASS="COMMAND"
15047 >printcap name = cups
15048                 </B
15049 >. This should be supplemented by an addtional setting 
15050                 <A
15051 HREF="index.html#PRINTING"
15052 >printing = cups</A
15053 > in the [global] 
15054                 section.  <B
15055 CLASS="COMMAND"
15056 >printcap name = cups</B
15057 > will use the  
15058                 "dummy" printcap created by CUPS, as specified in your CUPS
15059                 configuration file.
15060                 </P
15061 ><P
15062 >On System V systems that use <B
15063 CLASS="COMMAND"
15064 >lpstat</B
15065 > to 
15066                 list available printers you can use <B
15067 CLASS="COMMAND"
15068 >printcap name = lpstat
15069                 </B
15070 > to automatically obtain lists of available printers. This 
15071                 is the default for systems that define SYSV at configure time in 
15072                 Samba (this includes most System V based systems). If <TT
15073 CLASS="PARAMETER"
15074 ><I
15075 >               printcap name</I
15076 ></TT
15077 > is set to <B
15078 CLASS="COMMAND"
15079 >lpstat</B
15080 > on 
15081                 these systems then Samba will launch <B
15082 CLASS="COMMAND"
15083 >lpstat -v</B
15084 > and 
15085                 attempt to parse the output to obtain a printer list.</P
15086 ><P
15087 >A minimal printcap file would look something like this:</P
15088 ><P
15089 ><PRE
15090 CLASS="PROGRAMLISTING"
15091 >               print1|My Printer 1
15092                 print2|My Printer 2
15093                 print3|My Printer 3
15094                 print4|My Printer 4
15095                 print5|My Printer 5
15096                 </PRE
15097 ></P
15098 ><P
15099 >where the '|' separates aliases of a printer. The fact 
15100                 that the second alias has a space in it gives a hint to Samba 
15101                 that it's a comment.</P
15102 ><P
15103 ><SPAN
15104 CLASS="emphasis"
15105 ><I
15106 CLASS="EMPHASIS"
15107 >NOTE</I
15108 ></SPAN
15109 >: Under AIX the default printcap 
15110                 name is <TT
15111 CLASS="FILENAME"
15112 >/etc/qconfig</TT
15113 >. Samba will assume the 
15114                 file is in AIX <TT
15115 CLASS="FILENAME"
15116 >qconfig</TT
15117 > format if the string
15118                 <TT
15119 CLASS="FILENAME"
15120 >qconfig</TT
15121 > appears in the printcap filename.</P
15122 ><P
15123 >Default: <B
15124 CLASS="COMMAND"
15125 >printcap name = /etc/printcap</B
15126 ></P
15127 ><P
15128 >Example: <B
15129 CLASS="COMMAND"
15130 >printcap name = /etc/myprintcap</B
15131 ></P
15132 ></DD
15133 ><DT
15134 ><A
15135 NAME="PRINTERADMIN"
15136 ></A
15137 >printer admin (S)</DT
15138 ><DD
15139 ><P
15140 >This is a list of users that can do anything to 
15141                 printers via the remote administration interfaces offered by MS-RPC 
15142                 (usually using a NT workstation). Note that the root user always 
15143                 has admin rights.</P
15144 ><P
15145 >Default: <B
15146 CLASS="COMMAND"
15147 >printer admin = &lt;empty string&gt;</B
15148 >
15149                 </P
15150 ><P
15151 >Example: <B
15152 CLASS="COMMAND"
15153 >printer admin = admin, @staff</B
15154 ></P
15155 ></DD
15156 ><DT
15157 ><A
15158 NAME="PRINTERDRIVER"
15159 ></A
15160 >printer driver (S)</DT
15161 ><DD
15162 ><P
15163 ><SPAN
15164 CLASS="emphasis"
15165 ><I
15166 CLASS="EMPHASIS"
15167 >Note :</I
15168 ></SPAN
15169 >This is a deprecated 
15170                 parameter and will be removed in the next major release
15171                 following version 2.2.  Please see the instructions in
15172                 the <A
15173 HREF="printer_driver2.html"
15174 TARGET="_top"
15175 >Samba 2.2. Printing
15176                 HOWTO</A
15177 > for more information
15178                 on the new method of loading printer drivers onto a Samba server.
15179                 </P
15180 ><P
15181 >This option allows you to control the string 
15182                 that clients receive when they ask the server for the printer driver 
15183                 associated with a printer. If you are using Windows95 or Windows NT 
15184                 then you can use this to automate the setup of printers on your 
15185                 system.</P
15186 ><P
15187 >You need to set this parameter to the exact string (case 
15188                 sensitive) that describes the appropriate printer driver for your 
15189                 system. If you don't know the exact string to use then you should 
15190                 first try with no <A
15191 HREF="index.html#PRINTERDRIVER"
15192 ><TT
15193 CLASS="PARAMETER"
15194 ><I
15195 >               printer driver</I
15196 ></TT
15197 ></A
15198 > option set and the client will 
15199                 give you a list of printer drivers. The appropriate strings are 
15200                 shown in a scroll box after you have chosen the printer manufacturer.</P
15201 ><P
15202 >See also <A
15203 HREF="index.html#PRINTERDRIVERFILE"
15204 ><TT
15205 CLASS="PARAMETER"
15206 ><I
15207 >printer
15208                 driver file</I
15209 ></TT
15210 ></A
15211 >.</P
15212 ><P
15213 >Example: <B
15214 CLASS="COMMAND"
15215 >printer driver = HP LaserJet 4L</B
15216 ></P
15217 ></DD
15218 ><DT
15219 ><A
15220 NAME="PRINTERDRIVERFILE"
15221 ></A
15222 >printer driver file (G)</DT
15223 ><DD
15224 ><P
15225 ><SPAN
15226 CLASS="emphasis"
15227 ><I
15228 CLASS="EMPHASIS"
15229 >Note :</I
15230 ></SPAN
15231 >This is a deprecated 
15232                 parameter and will be removed in the next major release
15233                 following version 2.2.  Please see the instructions in
15234                 the <A
15235 HREF="printer_driver2.html"
15236 TARGET="_top"
15237 >Samba 2.2. Printing
15238                 HOWTO</A
15239 > for more information
15240                 on the new method of loading printer drivers onto a Samba server.
15241                 </P
15242 ><P
15243 >This parameter tells Samba where the printer driver 
15244                 definition file, used when serving drivers to Windows 95 clients, is 
15245                 to be found. If this is not set, the default is :</P
15246 ><P
15247 ><TT
15248 CLASS="FILENAME"
15249 ><TT
15250 CLASS="REPLACEABLE"
15251 ><I
15252 >SAMBA_INSTALL_DIRECTORY</I
15253 ></TT
15254 >
15255                 /lib/printers.def</TT
15256 ></P
15257 ><P
15258 >This file is created from Windows 95 <TT
15259 CLASS="FILENAME"
15260 >msprint.inf
15261                 </TT
15262 > files found on the Windows 95 client system. For more 
15263                 details on setting up serving of printer drivers to Windows 95 
15264                 clients, see the outdated documentation file in the <TT
15265 CLASS="FILENAME"
15266 >docs/</TT
15267
15268                 directory, <TT
15269 CLASS="FILENAME"
15270 >PRINTER_DRIVER.txt</TT
15271 >.</P
15272 ><P
15273 >See also <A
15274 HREF="index.html#PRINTERDRIVERLOCATION"
15275 ><TT
15276 CLASS="PARAMETER"
15277 ><I
15278 >               printer driver location</I
15279 ></TT
15280 ></A
15281 >.</P
15282 ><P
15283 >Default: <SPAN
15284 CLASS="emphasis"
15285 ><I
15286 CLASS="EMPHASIS"
15287 >None (set in compile).</I
15288 ></SPAN
15289 ></P
15290 ><P
15291 >Example: <B
15292 CLASS="COMMAND"
15293 >printer driver file = 
15294                 /usr/local/samba/printers/drivers.def</B
15295 ></P
15296 ></DD
15297 ><DT
15298 ><A
15299 NAME="PRINTERDRIVERLOCATION"
15300 ></A
15301 >printer driver location (S)</DT
15302 ><DD
15303 ><P
15304 ><SPAN
15305 CLASS="emphasis"
15306 ><I
15307 CLASS="EMPHASIS"
15308 >Note :</I
15309 ></SPAN
15310 >This is a deprecated 
15311                 parameter and will be removed in the next major release
15312                 following version 2.2.  Please see the instructions in
15313                 the <A
15314 HREF="printer_driver2.html"
15315 TARGET="_top"
15316 >Samba 2.2. Printing
15317                 HOWTO</A
15318 > for more information
15319                 on the new method of loading printer drivers onto a Samba server.
15320                 </P
15321 ><P
15322 >This parameter tells clients of a particular printer 
15323                 share where to find the printer driver files for the automatic 
15324                 installation of drivers for Windows 95 machines. If Samba is set up 
15325                 to serve printer drivers to Windows 95 machines, this should be set to</P
15326 ><P
15327 ><B
15328 CLASS="COMMAND"
15329 >\\MACHINE\PRINTER$</B
15330 ></P
15331 ><P
15332 >Where MACHINE is the NetBIOS name of your Samba server, 
15333                 and PRINTER$ is a share you set up for serving printer driver 
15334                 files. For more details on setting this up see the outdated documentation 
15335                 file in the <TT
15336 CLASS="FILENAME"
15337 >docs/</TT
15338 > directory, <TT
15339 CLASS="FILENAME"
15340 >               PRINTER_DRIVER.txt</TT
15341 >.</P
15342 ><P
15343 >See also <A
15344 HREF="index.html#PRINTERDRIVERFILE"
15345 ><TT
15346 CLASS="PARAMETER"
15347 ><I
15348 >               printer driver file</I
15349 ></TT
15350 ></A
15351 >.</P
15352 ><P
15353 >Default: <B
15354 CLASS="COMMAND"
15355 >none</B
15356 ></P
15357 ><P
15358 >Example: <B
15359 CLASS="COMMAND"
15360 >printer driver location = \\MACHINE\PRINTER$
15361                 </B
15362 ></P
15363 ></DD
15364 ><DT
15365 ><A
15366 NAME="PRINTERNAME"
15367 ></A
15368 >printer name (S)</DT
15369 ><DD
15370 ><P
15371 >This parameter specifies the name of the printer 
15372                 to which print jobs spooled through a printable service will be sent.</P
15373 ><P
15374 >If specified in the [global] section, the printer
15375                 name given will be used for any printable service that does 
15376                 not have its own printer name specified.</P
15377 ><P
15378 >Default: <SPAN
15379 CLASS="emphasis"
15380 ><I
15381 CLASS="EMPHASIS"
15382 >none (but may be <TT
15383 CLASS="CONSTANT"
15384 >lp</TT
15385
15386                 on many systems)</I
15387 ></SPAN
15388 ></P
15389 ><P
15390 >Example: <B
15391 CLASS="COMMAND"
15392 >printer name = laserwriter</B
15393 ></P
15394 ></DD
15395 ><DT
15396 ><A
15397 NAME="PRINTER"
15398 ></A
15399 >printer (S)</DT
15400 ><DD
15401 ><P
15402 >Synonym for <A
15403 HREF="index.html#PRINTERNAME"
15404 ><TT
15405 CLASS="PARAMETER"
15406 ><I
15407 >               printer name</I
15408 ></TT
15409 ></A
15410 >.</P
15411 ></DD
15412 ><DT
15413 ><A
15414 NAME="PRINTING"
15415 ></A
15416 >printing (S)</DT
15417 ><DD
15418 ><P
15419 >This parameters controls how printer status 
15420                 information is interpreted on your system. It also affects the 
15421                 default values for the <TT
15422 CLASS="PARAMETER"
15423 ><I
15424 >print command</I
15425 ></TT
15426 >, 
15427                 <TT
15428 CLASS="PARAMETER"
15429 ><I
15430 >lpq command</I
15431 ></TT
15432 >, <TT
15433 CLASS="PARAMETER"
15434 ><I
15435 >lppause command
15436                 </I
15437 ></TT
15438 >, <TT
15439 CLASS="PARAMETER"
15440 ><I
15441 >lpresume command</I
15442 ></TT
15443 >, and 
15444                 <TT
15445 CLASS="PARAMETER"
15446 ><I
15447 >lprm command</I
15448 ></TT
15449 > if specified in the 
15450                 [global] section.</P
15451 ><P
15452 >Currently nine printing styles are supported. They are
15453                 <TT
15454 CLASS="CONSTANT"
15455 >BSD</TT
15456 >, <TT
15457 CLASS="CONSTANT"
15458 >AIX</TT
15459 >, 
15460                 <TT
15461 CLASS="CONSTANT"
15462 >LPRNG</TT
15463 >, <TT
15464 CLASS="CONSTANT"
15465 >PLP</TT
15466 >,
15467                 <TT
15468 CLASS="CONSTANT"
15469 >SYSV</TT
15470 >, <TT
15471 CLASS="CONSTANT"
15472 >HPUX</TT
15473 >,
15474                 <TT
15475 CLASS="CONSTANT"
15476 >QNX</TT
15477 >, <TT
15478 CLASS="CONSTANT"
15479 >SOFTQ</TT
15480 >,
15481                 and <TT
15482 CLASS="CONSTANT"
15483 >CUPS</TT
15484 >.</P
15485 ><P
15486 >To see what the defaults are for the other print 
15487                 commands when using the various options use the <A
15488 HREF="testparm.1.html"
15489 TARGET="_top"
15490 >testparm(1)</A
15491 > program.</P
15492 ><P
15493 >This option can be set on a per printer basis</P
15494 ><P
15495 >See also the discussion in the <A
15496 HREF="index.html#AEN79"
15497 >               [printers]</A
15498 > section.</P
15499 ></DD
15500 ><DT
15501 ><A
15502 NAME="PRIVATEDIR"
15503 ></A
15504 >private dir (G)</DT
15505 ><DD
15506 ><P
15507 >This parameters defines the directory
15508                 smbd will use for storing such files as <TT
15509 CLASS="FILENAME"
15510 >smbpasswd</TT
15511 >
15512                 and <TT
15513 CLASS="FILENAME"
15514 >secrets.tdb</TT
15515 >.
15516                 </P
15517 ><P
15518 >Default :<B
15519 CLASS="COMMAND"
15520 >private dir = ${prefix}/private</B
15521 ></P
15522 ></DD
15523 ><DT
15524 ><A
15525 NAME="PROTOCOL"
15526 ></A
15527 >protocol (G)</DT
15528 ><DD
15529 ><P
15530 >Synonym for <A
15531 HREF="index.html#MAXPROTOCOL"
15532 >               <TT
15533 CLASS="PARAMETER"
15534 ><I
15535 >max protocol</I
15536 ></TT
15537 ></A
15538 >.</P
15539 ></DD
15540 ><DT
15541 ><A
15542 NAME="PUBLIC"
15543 ></A
15544 >public (S)</DT
15545 ><DD
15546 ><P
15547 >Synonym for <A
15548 HREF="index.html#GUESTOK"
15549 ><TT
15550 CLASS="PARAMETER"
15551 ><I
15552 >guest 
15553                 ok</I
15554 ></TT
15555 ></A
15556 >.</P
15557 ></DD
15558 ><DT
15559 ><A
15560 NAME="QUEUEPAUSECOMMAND"
15561 ></A
15562 >queuepause command (S)</DT
15563 ><DD
15564 ><P
15565 >This parameter specifies the command to be 
15566                 executed on the server host in order to pause the printer queue.</P
15567 ><P
15568 >This command should be a program or script which takes 
15569                 a printer name as its only parameter and stops the printer queue, 
15570                 such that no longer jobs are submitted to the printer.</P
15571 ><P
15572 >This command is not supported by Windows for Workgroups, 
15573                 but can be issued from the Printers window under Windows 95 
15574                 and NT.</P
15575 ><P
15576 >If a <TT
15577 CLASS="PARAMETER"
15578 ><I
15579 >%p</I
15580 ></TT
15581 > is given then the printer name 
15582                 is put in its place. Otherwise it is placed at the end of the command.
15583                 </P
15584 ><P
15585 >Note that it is good practice to include the absolute 
15586                 path in the command as the PATH may not be available to the 
15587                 server.</P
15588 ><P
15589 >Default: <SPAN
15590 CLASS="emphasis"
15591 ><I
15592 CLASS="EMPHASIS"
15593 >depends on the setting of <TT
15594 CLASS="PARAMETER"
15595 ><I
15596 >printing
15597                 </I
15598 ></TT
15599 ></I
15600 ></SPAN
15601 ></P
15602 ><P
15603 >Example: <B
15604 CLASS="COMMAND"
15605 >queuepause command = disable %p</B
15606 ></P
15607 ></DD
15608 ><DT
15609 ><A
15610 NAME="QUEUERESUMECOMMAND"
15611 ></A
15612 >queueresume command (S)</DT
15613 ><DD
15614 ><P
15615 >This parameter specifies the command to be 
15616                 executed on the server host in order to resume the printer queue. It 
15617                 is the command to undo the behavior that is caused by the 
15618                 previous parameter (<A
15619 HREF="index.html#QUEUEPAUSECOMMAND"
15620 ><TT
15621 CLASS="PARAMETER"
15622 ><I
15623 >               queuepause command</I
15624 ></TT
15625 ></A
15626 >).</P
15627 ><P
15628 >This command should be a program or script which takes 
15629                 a printer name as its only parameter and resumes the printer queue, 
15630                 such that queued jobs are resubmitted to the printer.</P
15631 ><P
15632 >This command is not supported by Windows for Workgroups, 
15633                 but can be issued from the Printers window under Windows 95 
15634                 and NT.</P
15635 ><P
15636 >If a <TT
15637 CLASS="PARAMETER"
15638 ><I
15639 >%p</I
15640 ></TT
15641 > is given then the printer name 
15642                 is put in its place. Otherwise it is placed at the end of the 
15643                 command.</P
15644 ><P
15645 >Note that it is good practice to include the absolute 
15646                 path in the command as the PATH may not be available to the 
15647                 server.</P
15648 ><P
15649 >Default: <SPAN
15650 CLASS="emphasis"
15651 ><I
15652 CLASS="EMPHASIS"
15653 >depends on the setting of <A
15654 HREF="index.html#PRINTING"
15655 ><TT
15656 CLASS="PARAMETER"
15657 ><I
15658 >printing</I
15659 ></TT
15660 ></A
15661 ></I
15662 ></SPAN
15663 >
15664                 </P
15665 ><P
15666 >Example: <B
15667 CLASS="COMMAND"
15668 >queuepause command = enable %p
15669                 </B
15670 ></P
15671 ></DD
15672 ><DT
15673 ><A
15674 NAME="READBMPX"
15675 ></A
15676 >read bmpx (G)</DT
15677 ><DD
15678 ><P
15679 >This boolean parameter controls whether <A
15680 HREF="smbd.8.html"
15681 TARGET="_top"
15682 >smbd(8)</A
15683 > will support the "Read 
15684                 Block Multiplex" SMB. This is now rarely used and defaults to 
15685                 <TT
15686 CLASS="CONSTANT"
15687 >no</TT
15688 >. You should never need to set this 
15689                 parameter.</P
15690 ><P
15691 >Default: <B
15692 CLASS="COMMAND"
15693 >read bmpx = no</B
15694 ></P
15695 ></DD
15696 ><DT
15697 ><A
15698 NAME="READLIST"
15699 ></A
15700 >read list (S)</DT
15701 ><DD
15702 ><P
15703 >This is a list of users that are given read-only 
15704                 access to a service. If the connecting user is in this list then 
15705                 they will not be given write access, no matter what the <A
15706 HREF="index.html#WRITEABLE"
15707 ><TT
15708 CLASS="PARAMETER"
15709 ><I
15710 >writeable</I
15711 ></TT
15712 ></A
15713 >
15714                 option is set to. The list can include group names using the 
15715                 syntax described in the <A
15716 HREF="index.html#INVALIDUSERS"
15717 ><TT
15718 CLASS="PARAMETER"
15719 ><I
15720 >               invalid users</I
15721 ></TT
15722 ></A
15723 > parameter.</P
15724 ><P
15725 >See also the <A
15726 HREF="index.html#WRITELIST"
15727 ><TT
15728 CLASS="PARAMETER"
15729 ><I
15730 >               write list</I
15731 ></TT
15732 ></A
15733 > parameter and the <A
15734 HREF="index.html#INVALIDUSERS"
15735 ><TT
15736 CLASS="PARAMETER"
15737 ><I
15738 >invalid users</I
15739 ></TT
15740 >
15741                 </A
15742 > parameter.</P
15743 ><P
15744 >Default: <B
15745 CLASS="COMMAND"
15746 >read list = &lt;empty string&gt;</B
15747 ></P
15748 ><P
15749 >Example: <B
15750 CLASS="COMMAND"
15751 >read list = mary, @students</B
15752 ></P
15753 ></DD
15754 ><DT
15755 ><A
15756 NAME="READONLY"
15757 ></A
15758 >read only (S)</DT
15759 ><DD
15760 ><P
15761 >Note that this is an inverted synonym for <A
15762 HREF="index.html#WRITEABLE"
15763 ><TT
15764 CLASS="PARAMETER"
15765 ><I
15766 >writeable</I
15767 ></TT
15768 ></A
15769 >.</P
15770 ></DD
15771 ><DT
15772 ><A
15773 NAME="READRAW"
15774 ></A
15775 >read raw (G)</DT
15776 ><DD
15777 ><P
15778 >This parameter controls whether or not the server 
15779                 will support the raw read SMB requests when transferring data 
15780                 to clients.</P
15781 ><P
15782 >If enabled, raw reads allow reads of 65535 bytes in 
15783                 one packet. This typically provides a major performance benefit.
15784                 </P
15785 ><P
15786 >However, some clients either negotiate the allowable 
15787                 block size incorrectly or are incapable of supporting larger block 
15788                 sizes, and for these clients you may need to disable raw reads.</P
15789 ><P
15790 >In general this parameter should be viewed as a system tuning 
15791                 tool and left severely alone. See also <A
15792 HREF="index.html#WRITERAW"
15793 >               <TT
15794 CLASS="PARAMETER"
15795 ><I
15796 >write raw</I
15797 ></TT
15798 ></A
15799 >.</P
15800 ><P
15801 >Default: <B
15802 CLASS="COMMAND"
15803 >read raw = yes</B
15804 ></P
15805 ></DD
15806 ><DT
15807 ><A
15808 NAME="READSIZE"
15809 ></A
15810 >read size (G)</DT
15811 ><DD
15812 ><P
15813 >The option <TT
15814 CLASS="PARAMETER"
15815 ><I
15816 >read size</I
15817 ></TT
15818
15819                 affects the overlap of disk reads/writes with network reads/writes. 
15820                 If the amount of data being transferred in several of the SMB 
15821                 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger 
15822                 than this value then the server begins writing the data before it 
15823                 has received the whole packet from the network, or in the case of 
15824                 SMBreadbraw, it begins writing to the network before all the data 
15825                 has been read from disk.</P
15826 ><P
15827 >This overlapping works best when the speeds of disk and 
15828                 network access are similar, having very little effect when the 
15829                 speed of one is much greater than the other.</P
15830 ><P
15831 >The default value is 16384, but very little experimentation 
15832                 has been done yet to determine the optimal value, and it is likely 
15833                 that the best value will vary greatly between systems anyway. 
15834                 A value over 65536 is pointless and will cause you to allocate 
15835                 memory unnecessarily.</P
15836 ><P
15837 >Default: <B
15838 CLASS="COMMAND"
15839 >read size = 16384</B
15840 ></P
15841 ><P
15842 >Example: <B
15843 CLASS="COMMAND"
15844 >read size = 8192</B
15845 ></P
15846 ></DD
15847 ><DT
15848 ><A
15849 NAME="REALM"
15850 ></A
15851 >realm (G)</DT
15852 ><DD
15853 ><P
15854 >               This option specifies the kerberos realm to use. The realm is 
15855                 used as the ADS equivalent of the NT4<B
15856 CLASS="COMMAND"
15857 >domain</B
15858 >. It
15859                 is usually set to the DNS name of the kerberos server.
15860                 </P
15861 ><P
15862 >Default: <B
15863 CLASS="COMMAND"
15864 >realm = </B
15865 ></P
15866 ><P
15867 >Example: <B
15868 CLASS="COMMAND"
15869 >realm = mysambabox.mycompany.com</B
15870 ></P
15871 ></DD
15872 ><DT
15873 ><A
15874 NAME="REMOTEANNOUNCE"
15875 ></A
15876 >remote announce (G)</DT
15877 ><DD
15878 ><P
15879 >This option allows you to setup <A
15880 HREF="nmbd.8.html"
15881 TARGET="_top"
15882 >nmbd(8)</A
15883 > to periodically announce itself 
15884                 to arbitrary IP addresses with an arbitrary workgroup name.</P
15885 ><P
15886 >This is useful if you want your Samba server to appear 
15887                 in a remote workgroup for which the normal browse propagation 
15888                 rules don't work. The remote workgroup can be anywhere that you 
15889                 can send IP packets to.</P
15890 ><P
15891 >For example:</P
15892 ><P
15893 ><B
15894 CLASS="COMMAND"
15895 >remote announce = 192.168.2.255/SERVERS 
15896                 192.168.4.255/STAFF</B
15897 ></P
15898 ><P
15899 >the above line would cause <B
15900 CLASS="COMMAND"
15901 >nmbd</B
15902 > to announce itself 
15903                 to the two given IP addresses using the given workgroup names. 
15904                 If you leave out the workgroup name then the one given in 
15905                 the <A
15906 HREF="index.html#WORKGROUP"
15907 ><TT
15908 CLASS="PARAMETER"
15909 ><I
15910 >workgroup</I
15911 ></TT
15912 ></A
15913
15914                 parameter is used instead.</P
15915 ><P
15916 >The IP addresses you choose would normally be the broadcast 
15917                 addresses of the remote networks, but can also be the IP addresses 
15918                 of known browse masters if your network config is that stable.</P
15919 ><P
15920 >See the documentation file <TT
15921 CLASS="FILENAME"
15922 >BROWSING.txt</TT
15923
15924                 in the <TT
15925 CLASS="FILENAME"
15926 >docs/</TT
15927 > directory.</P
15928 ><P
15929 >Default: <B
15930 CLASS="COMMAND"
15931 >remote announce = &lt;empty string&gt;
15932                 </B
15933 ></P
15934 ></DD
15935 ><DT
15936 ><A
15937 NAME="REMOTEBROWSESYNC"
15938 ></A
15939 >remote browse sync (G)</DT
15940 ><DD
15941 ><P
15942 >This option allows you to setup <A
15943 HREF="nmbd.8.html"
15944 TARGET="_top"
15945 >nmbd(8)</A
15946 > to periodically request 
15947                 synchronization of browse lists with the master browser of a Samba 
15948                 server that is on a remote segment. This option will allow you to 
15949                 gain browse lists for multiple workgroups across routed networks. This 
15950                 is done in a manner that does not work with any non-Samba servers.</P
15951 ><P
15952 >This is useful if you want your Samba server and all local 
15953                 clients to appear in a remote workgroup for which the normal browse 
15954                 propagation rules don't work. The remote workgroup can be anywhere 
15955                 that you can send IP packets to.</P
15956 ><P
15957 >For example:</P
15958 ><P
15959 ><B
15960 CLASS="COMMAND"
15961 >remote browse sync = 192.168.2.255 192.168.4.255
15962                 </B
15963 ></P
15964 ><P
15965 >the above line would cause <B
15966 CLASS="COMMAND"
15967 >nmbd</B
15968 > to request 
15969                 the master browser on the specified subnets or addresses to 
15970                 synchronize their browse lists with the local server.</P
15971 ><P
15972 >The IP addresses you choose would normally be the broadcast 
15973                 addresses of the remote networks, but can also be the IP addresses 
15974                 of known browse masters if your network config is that stable. If 
15975                 a machine IP address is given Samba makes NO attempt to validate 
15976                 that the remote machine is available, is listening, nor that it 
15977                 is in fact the browse master on its segment.</P
15978 ><P
15979 >Default: <B
15980 CLASS="COMMAND"
15981 >remote browse sync = &lt;empty string&gt;
15982                 </B
15983 ></P
15984 ></DD
15985 ><DT
15986 ><A
15987 NAME="RESTRICTANONYMOUS"
15988 ></A
15989 >restrict anonymous (G)</DT
15990 ><DD
15991 ><P
15992 >This is a boolean parameter.  If it is <TT
15993 CLASS="CONSTANT"
15994 >true</TT
15995 >, then 
15996                 anonymous access to the server will be restricted, namely in the 
15997                 case where the server is expecting the client to send a username, 
15998                 but it doesn't.  Setting it to <TT
15999 CLASS="CONSTANT"
16000 >true</TT
16001 > will force these anonymous 
16002                 connections to be denied, and the client will be required to always 
16003                 supply a username and password when connecting. Use of this parameter 
16004                 is only recommended for homogeneous NT client environments.</P
16005 ><P
16006 >This parameter makes the use of macro expansions that rely
16007                 on the username (%U, %G, etc) consistent.  NT 4.0 
16008                 likes to use anonymous connections when refreshing the share list, 
16009                 and this is a way to work around that.</P
16010 ><P
16011 >When restrict anonymous is <TT
16012 CLASS="CONSTANT"
16013 >true</TT
16014 >, all anonymous connections 
16015                 are denied no matter what they are for.  This can effect the ability 
16016                 of a machine to access the Samba Primary Domain Controller to revalidate 
16017                 its machine account after someone else has logged on the client 
16018                 interactively.  The NT client will display a message saying that 
16019                 the machine's account in  the domain doesn't exist or the password is 
16020                 bad.  The best way to deal  with this is to reboot NT client machines 
16021                 between interactive logons,  using "Shutdown and Restart", rather 
16022                 than "Close all programs and logon as a different user".</P
16023 ><P
16024 >Default: <B
16025 CLASS="COMMAND"
16026 >restrict anonymous = no</B
16027 ></P
16028 ></DD
16029 ><DT
16030 ><A
16031 NAME="ROOT"
16032 ></A
16033 >root (G)</DT
16034 ><DD
16035 ><P
16036 >Synonym for <A
16037 HREF="index.html#ROOTDIRECTORY"
16038 >               <TT
16039 CLASS="PARAMETER"
16040 ><I
16041 >root directory"</I
16042 ></TT
16043 ></A
16044 >.</P
16045 ></DD
16046 ><DT
16047 ><A
16048 NAME="ROOTDIR"
16049 ></A
16050 >root dir (G)</DT
16051 ><DD
16052 ><P
16053 >Synonym for <A
16054 HREF="index.html#ROOTDIRECTORY"
16055 >               <TT
16056 CLASS="PARAMETER"
16057 ><I
16058 >root directory"</I
16059 ></TT
16060 ></A
16061 >.</P
16062 ></DD
16063 ><DT
16064 ><A
16065 NAME="ROOTDIRECTORY"
16066 ></A
16067 >root directory (G)</DT
16068 ><DD
16069 ><P
16070 >The server will <B
16071 CLASS="COMMAND"
16072 >chroot()</B
16073 > (i.e. 
16074                 Change its root directory) to this directory on startup. This is 
16075                 not strictly necessary for secure operation. Even without it the 
16076                 server will deny access to files not in one of the service entries. 
16077                 It may also check for, and deny access to, soft links to other 
16078                 parts of the filesystem, or attempts to use ".." in file names 
16079                 to access other directories (depending on the setting of the <A
16080 HREF="index.html#WIDELINKS"
16081 ><TT
16082 CLASS="PARAMETER"
16083 ><I
16084 >wide links</I
16085 ></TT
16086 ></A
16087
16088                 parameter).</P
16089 ><P
16090 >Adding a <TT
16091 CLASS="PARAMETER"
16092 ><I
16093 >root directory</I
16094 ></TT
16095 > entry other 
16096                 than "/" adds an extra level of security, but at a price. It 
16097                 absolutely ensures that no access is given to files not in the 
16098                 sub-tree specified in the <TT
16099 CLASS="PARAMETER"
16100 ><I
16101 >root directory</I
16102 ></TT
16103
16104                 option, <SPAN
16105 CLASS="emphasis"
16106 ><I
16107 CLASS="EMPHASIS"
16108 >including</I
16109 ></SPAN
16110 > some files needed for 
16111                 complete operation of the server. To maintain full operability 
16112                 of the server you will need to mirror some system files 
16113                 into the <TT
16114 CLASS="PARAMETER"
16115 ><I
16116 >root directory</I
16117 ></TT
16118 > tree. In particular 
16119                 you will need to mirror <TT
16120 CLASS="FILENAME"
16121 >/etc/passwd</TT
16122 > (or a 
16123                 subset of it), and any binaries or configuration files needed for 
16124                 printing (if required). The set of files that must be mirrored is
16125                 operating system dependent.</P
16126 ><P
16127 >Default: <B
16128 CLASS="COMMAND"
16129 >root directory = /</B
16130 ></P
16131 ><P
16132 >Example: <B
16133 CLASS="COMMAND"
16134 >root directory = /homes/smb</B
16135 ></P
16136 ></DD
16137 ><DT
16138 ><A
16139 NAME="ROOTPOSTEXEC"
16140 ></A
16141 >root postexec (S)</DT
16142 ><DD
16143 ><P
16144 >This is the same as the <TT
16145 CLASS="PARAMETER"
16146 ><I
16147 >postexec</I
16148 ></TT
16149 >
16150                 parameter except that the command is run as root. This 
16151                 is useful for unmounting filesystems 
16152                 (such as CDROMs) after a connection is closed.</P
16153 ><P
16154 >See also <A
16155 HREF="index.html#POSTEXEC"
16156 ><TT
16157 CLASS="PARAMETER"
16158 ><I
16159 >               postexec</I
16160 ></TT
16161 ></A
16162 >.</P
16163 ><P
16164 >Default: <B
16165 CLASS="COMMAND"
16166 >root postexec = &lt;empty string&gt;
16167                 </B
16168 ></P
16169 ></DD
16170 ><DT
16171 ><A
16172 NAME="ROOTPREEXEC"
16173 ></A
16174 >root preexec (S)</DT
16175 ><DD
16176 ><P
16177 >This is the same as the <TT
16178 CLASS="PARAMETER"
16179 ><I
16180 >preexec</I
16181 ></TT
16182 >
16183                 parameter except that the command is run as root. This 
16184                 is useful for mounting filesystems (such as CDROMs) when a 
16185                 connection is opened.</P
16186 ><P
16187 >See also <A
16188 HREF="index.html#PREEXEC"
16189 ><TT
16190 CLASS="PARAMETER"
16191 ><I
16192 >               preexec</I
16193 ></TT
16194 ></A
16195 > and <A
16196 HREF="index.html#PREEXECCLOSE"
16197 >               <TT
16198 CLASS="PARAMETER"
16199 ><I
16200 >preexec close</I
16201 ></TT
16202 ></A
16203 >.</P
16204 ><P
16205 >Default: <B
16206 CLASS="COMMAND"
16207 >root preexec = &lt;empty string&gt;
16208                 </B
16209 ></P
16210 ></DD
16211 ><DT
16212 ><A
16213 NAME="ROOTPREEXECCLOSE"
16214 ></A
16215 >root preexec close (S)</DT
16216 ><DD
16217 ><P
16218 >This is the same as the <TT
16219 CLASS="PARAMETER"
16220 ><I
16221 >preexec close
16222                 </I
16223 ></TT
16224 > parameter except that the command is run as root.</P
16225 ><P
16226 >See also <A
16227 HREF="index.html#PREEXEC"
16228 ><TT
16229 CLASS="PARAMETER"
16230 ><I
16231 >               preexec</I
16232 ></TT
16233 ></A
16234 > and <A
16235 HREF="index.html#PREEXECCLOSE"
16236 >               <TT
16237 CLASS="PARAMETER"
16238 ><I
16239 >preexec close</I
16240 ></TT
16241 ></A
16242 >.</P
16243 ><P
16244 >Default: <B
16245 CLASS="COMMAND"
16246 >root preexec close = no</B
16247 ></P
16248 ></DD
16249 ><DT
16250 ><A
16251 NAME="SECURITY"
16252 ></A
16253 >security (G)</DT
16254 ><DD
16255 ><P
16256 >This option affects how clients respond to 
16257                 Samba and is one of the most important settings in the <TT
16258 CLASS="FILENAME"
16259 >               smb.conf</TT
16260 > file.</P
16261 ><P
16262 >The option sets the "security mode bit" in replies to 
16263                 protocol negotiations with <A
16264 HREF="smbd.8.html"
16265 TARGET="_top"
16266 >smbd(8)
16267                 </A
16268 > to turn share level security on or off. Clients decide 
16269                 based on this bit whether (and how) to transfer user and password 
16270                 information to the server.</P
16271 ><P
16272 >The default is <B
16273 CLASS="COMMAND"
16274 >security = user</B
16275 >, as this is
16276                 the most common setting needed when talking to Windows 98 and 
16277                 Windows NT.</P
16278 ><P
16279 >The alternatives are <B
16280 CLASS="COMMAND"
16281 >security = share</B
16282 >,
16283                 <B
16284 CLASS="COMMAND"
16285 >security = server</B
16286 > or <B
16287 CLASS="COMMAND"
16288 >security = domain
16289                 </B
16290 >.</P
16291 ><P
16292 >In versions of Samba prior to 2.0.0, the default was 
16293                 <B
16294 CLASS="COMMAND"
16295 >security = share</B
16296 > mainly because that was
16297                 the only option at one stage.</P
16298 ><P
16299 >There is a bug in WfWg that has relevance to this 
16300                 setting. When in user or server level security a WfWg client 
16301                 will totally ignore the password you type in the "connect 
16302                 drive" dialog box. This makes it very difficult (if not impossible) 
16303                 to connect to a Samba service as anyone except the user that 
16304                 you are logged into WfWg as.</P
16305 ><P
16306 >If your PCs use usernames that are the same as their 
16307                 usernames on the UNIX machine then you will want to use 
16308                 <B
16309 CLASS="COMMAND"
16310 >security = user</B
16311 >. If you mostly use usernames 
16312                 that don't exist on the UNIX box then use <B
16313 CLASS="COMMAND"
16314 >security = 
16315                 share</B
16316 >.</P
16317 ><P
16318 >You should also use <B
16319 CLASS="COMMAND"
16320 >security = share</B
16321 > if you 
16322                 want to mainly setup shares without a password (guest shares). This 
16323                 is commonly used for a shared printer server. It is more difficult 
16324                 to setup guest shares with <B
16325 CLASS="COMMAND"
16326 >security = user</B
16327 >, see 
16328                 the <A
16329 HREF="index.html#MAPTOGUEST"
16330 ><TT
16331 CLASS="PARAMETER"
16332 ><I
16333 >map to guest</I
16334 ></TT
16335 >
16336                 </A
16337 >parameter for details.</P
16338 ><P
16339 >It is possible to use <B
16340 CLASS="COMMAND"
16341 >smbd</B
16342 > in a <SPAN
16343 CLASS="emphasis"
16344 ><I
16345 CLASS="EMPHASIS"
16346 >               hybrid mode</I
16347 ></SPAN
16348 > where it is offers both user and share 
16349                 level security under different <A
16350 HREF="index.html#NETBIOSALIASES"
16351 >               <TT
16352 CLASS="PARAMETER"
16353 ><I
16354 >NetBIOS aliases</I
16355 ></TT
16356 ></A
16357 >. </P
16358 ><P
16359 >The different settings will now be explained.</P
16360 ><P
16361 ><A
16362 NAME="SECURITYEQUALSSHARE"
16363 ></A
16364 ><SPAN
16365 CLASS="emphasis"
16366 ><I
16367 CLASS="EMPHASIS"
16368 >SECURITY = SHARE
16369                 </I
16370 ></SPAN
16371 ></P
16372 ><P
16373 >When clients connect to a share level security server they 
16374                 need not log onto the server with a valid username and password before 
16375                 attempting to connect to a shared resource (although modern clients 
16376                 such as Windows 95/98 and Windows NT will send a logon request with 
16377                 a username but no password when talking to a <B
16378 CLASS="COMMAND"
16379 >security = share
16380                 </B
16381 > server). Instead, the clients send authentication information 
16382                 (passwords) on a per-share basis, at the time they attempt to connect 
16383                 to that share.</P
16384 ><P
16385 >Note that <B
16386 CLASS="COMMAND"
16387 >smbd</B
16388 > <SPAN
16389 CLASS="emphasis"
16390 ><I
16391 CLASS="EMPHASIS"
16392 >ALWAYS</I
16393 ></SPAN
16394
16395                 uses a valid UNIX user to act on behalf of the client, even in
16396                 <B
16397 CLASS="COMMAND"
16398 >security = share</B
16399 > level security.</P
16400 ><P
16401 >As clients are not required to send a username to the server
16402                 in share level security, <B
16403 CLASS="COMMAND"
16404 >smbd</B
16405 > uses several
16406                 techniques to determine the correct UNIX user to use on behalf
16407                 of the client.</P
16408 ><P
16409 >A list of possible UNIX usernames to match with the given
16410                 client password is constructed using the following methods :</P
16411 ><P
16412 ></P
16413 ><UL
16414 ><LI
16415 ><P
16416 >If the <A
16417 HREF="index.html#GUESTONLY"
16418 ><TT
16419 CLASS="PARAMETER"
16420 ><I
16421 >guest 
16422                         only</I
16423 ></TT
16424 ></A
16425 > parameter is set, then all the other 
16426                         stages are missed and only the <A
16427 HREF="index.html#GUESTACCOUNT"
16428 >                       <TT
16429 CLASS="PARAMETER"
16430 ><I
16431 >guest account</I
16432 ></TT
16433 ></A
16434 > username is checked.
16435                         </P
16436 ></LI
16437 ><LI
16438 ><P
16439 >Is a username is sent with the share connection 
16440                         request, then this username (after mapping - see <A
16441 HREF="index.html#USERNAMEMAP"
16442 ><TT
16443 CLASS="PARAMETER"
16444 ><I
16445 >username map</I
16446 ></TT
16447 ></A
16448 >), 
16449                         is added as a potential username.</P
16450 ></LI
16451 ><LI
16452 ><P
16453 >If the client did a previous <SPAN
16454 CLASS="emphasis"
16455 ><I
16456 CLASS="EMPHASIS"
16457 >logon
16458                         </I
16459 ></SPAN
16460 > request (the SessionSetup SMB call) then the 
16461                         username sent in this SMB will be added as a potential username.
16462                         </P
16463 ></LI
16464 ><LI
16465 ><P
16466 >The name of the service the client requested is 
16467                         added as a potential username.</P
16468 ></LI
16469 ><LI
16470 ><P
16471 >The NetBIOS name of the client is added to 
16472                         the list as a potential username.</P
16473 ></LI
16474 ><LI
16475 ><P
16476 >Any users on the <A
16477 HREF="index.html#USER"
16478 ><TT
16479 CLASS="PARAMETER"
16480 ><I
16481 >                       user</I
16482 ></TT
16483 ></A
16484 > list are added as potential usernames.
16485                         </P
16486 ></LI
16487 ></UL
16488 ><P
16489 >If the <TT
16490 CLASS="PARAMETER"
16491 ><I
16492 >guest only</I
16493 ></TT
16494 > parameter is 
16495                 not set, then this list is then tried with the supplied password. 
16496                 The first user for whom the password matches will be used as the 
16497                 UNIX user.</P
16498 ><P
16499 >If the <TT
16500 CLASS="PARAMETER"
16501 ><I
16502 >guest only</I
16503 ></TT
16504 > parameter is 
16505                 set, or no username can be determined then if the share is marked 
16506                 as available to the <TT
16507 CLASS="PARAMETER"
16508 ><I
16509 >guest account</I
16510 ></TT
16511 >, then this 
16512                 guest user will be used, otherwise access is denied.</P
16513 ><P
16514 >Note that it can be <SPAN
16515 CLASS="emphasis"
16516 ><I
16517 CLASS="EMPHASIS"
16518 >very</I
16519 ></SPAN
16520 > confusing 
16521                 in share-level security as to which UNIX username will eventually
16522                 be used in granting access.</P
16523 ><P
16524 >See also the section <A
16525 HREF="index.html#AEN236"
16526 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16527 >.</P
16528 ><P
16529 ><A
16530 NAME="SECURITYEQUALSUSER"
16531 ></A
16532 ><SPAN
16533 CLASS="emphasis"
16534 ><I
16535 CLASS="EMPHASIS"
16536 >SECURITY = USER
16537                 </I
16538 ></SPAN
16539 ></P
16540 ><P
16541 >This is the default security setting in Samba 2.2. 
16542                 With user-level security a client must first "log-on" with a 
16543                 valid username and password (which can be mapped using the <A
16544 HREF="index.html#USERNAMEMAP"
16545 ><TT
16546 CLASS="PARAMETER"
16547 ><I
16548 >username map</I
16549 ></TT
16550 ></A
16551
16552                 parameter). Encrypted passwords (see the <A
16553 HREF="index.html#ENCRYPTPASSWORDS"
16554 >               <TT
16555 CLASS="PARAMETER"
16556 ><I
16557 >encrypted passwords</I
16558 ></TT
16559 ></A
16560 > parameter) can also
16561                 be used in this security mode. Parameters such as <A
16562 HREF="index.html#USER"
16563 >               <TT
16564 CLASS="PARAMETER"
16565 ><I
16566 >user</I
16567 ></TT
16568 ></A
16569 > and <A
16570 HREF="index.html#GUESTONLY"
16571 >               <TT
16572 CLASS="PARAMETER"
16573 ><I
16574 >guest only</I
16575 ></TT
16576 ></A
16577 > if set        are then applied and 
16578                 may change the UNIX user to use on this connection, but only after 
16579                 the user has been successfully authenticated.</P
16580 ><P
16581 ><SPAN
16582 CLASS="emphasis"
16583 ><I
16584 CLASS="EMPHASIS"
16585 >Note</I
16586 ></SPAN
16587 > that the name of the resource being 
16588                 requested is <SPAN
16589 CLASS="emphasis"
16590 ><I
16591 CLASS="EMPHASIS"
16592 >not</I
16593 ></SPAN
16594 > sent to the server until after 
16595                 the server has successfully authenticated the client. This is why 
16596                 guest shares don't work in user level security without allowing 
16597                 the server to automatically map unknown users into the <A
16598 HREF="index.html#GUESTACCOUNT"
16599 ><TT
16600 CLASS="PARAMETER"
16601 ><I
16602 >guest account</I
16603 ></TT
16604 ></A
16605 >. 
16606                 See the <A
16607 HREF="index.html#MAPTOGUEST"
16608 ><TT
16609 CLASS="PARAMETER"
16610 ><I
16611 >map to guest</I
16612 ></TT
16613 >
16614                 </A
16615 > parameter for details on doing this.</P
16616 ><P
16617 >See also the section <A
16618 HREF="index.html#AEN236"
16619 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16620 >.</P
16621 ><P
16622 ><A
16623 NAME="SECURITYEQUALSSERVER"
16624 ></A
16625 ><SPAN
16626 CLASS="emphasis"
16627 ><I
16628 CLASS="EMPHASIS"
16629 >SECURITY = SERVER
16630                 </I
16631 ></SPAN
16632 ></P
16633 ><P
16634 >In this mode Samba will try to validate the username/password 
16635                 by passing it to another SMB server, such as an NT box. If this 
16636                 fails it will revert to <B
16637 CLASS="COMMAND"
16638 >security = user</B
16639 >, but note 
16640                 that if encrypted passwords have been negotiated then Samba cannot 
16641                 revert back to checking the UNIX password file, it must have a valid 
16642                 <TT
16643 CLASS="FILENAME"
16644 >smbpasswd</TT
16645 > file to check users against. See the 
16646                 documentation file in the <TT
16647 CLASS="FILENAME"
16648 >docs/</TT
16649 > directory 
16650                 <TT
16651 CLASS="FILENAME"
16652 >ENCRYPTION.txt</TT
16653 > for details on how to set this 
16654                 up.</P
16655 ><P
16656 ><SPAN
16657 CLASS="emphasis"
16658 ><I
16659 CLASS="EMPHASIS"
16660 >Note</I
16661 ></SPAN
16662 > that from the client's point of 
16663                 view <B
16664 CLASS="COMMAND"
16665 >security = server</B
16666 > is the same as <B
16667 CLASS="COMMAND"
16668 >               security = user</B
16669 >.  It only affects how the server deals 
16670                 with the authentication, it does not in any way affect what the 
16671                 client sees.</P
16672 ><P
16673 ><SPAN
16674 CLASS="emphasis"
16675 ><I
16676 CLASS="EMPHASIS"
16677 >Note</I
16678 ></SPAN
16679 > that the name of the resource being 
16680                 requested is <SPAN
16681 CLASS="emphasis"
16682 ><I
16683 CLASS="EMPHASIS"
16684 >not</I
16685 ></SPAN
16686 > sent to the server until after 
16687                 the server has successfully authenticated the client. This is why 
16688                 guest shares don't work in user level security without allowing 
16689                 the server to automatically map unknown users into the <A
16690 HREF="index.html#GUESTACCOUNT"
16691 ><TT
16692 CLASS="PARAMETER"
16693 ><I
16694 >guest account</I
16695 ></TT
16696 ></A
16697 >. 
16698                 See the <A
16699 HREF="index.html#MAPTOGUEST"
16700 ><TT
16701 CLASS="PARAMETER"
16702 ><I
16703 >map to guest</I
16704 ></TT
16705 >
16706                 </A
16707 > parameter for details on doing this.</P
16708 ><P
16709 >See also the section <A
16710 HREF="index.html#AEN236"
16711 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16712 >.</P
16713 ><P
16714 >See also the <A
16715 HREF="index.html#PASSWORDSERVER"
16716 ><TT
16717 CLASS="PARAMETER"
16718 ><I
16719 >password 
16720                 server</I
16721 ></TT
16722 ></A
16723 > parameter and the <A
16724 HREF="index.html#ENCRYPTPASSWORDS"
16725 ><TT
16726 CLASS="PARAMETER"
16727 ><I
16728 >encrypted passwords</I
16729 ></TT
16730 >
16731                 </A
16732 > parameter.</P
16733 ><P
16734 ><A
16735 NAME="SECURITYEQUALSDOMAIN"
16736 ></A
16737 ><SPAN
16738 CLASS="emphasis"
16739 ><I
16740 CLASS="EMPHASIS"
16741 >SECURITY = DOMAIN
16742                 </I
16743 ></SPAN
16744 ></P
16745 ><P
16746 >This mode will only work correctly if <A
16747 HREF="smbpasswd.8.html"
16748 TARGET="_top"
16749 >smbpasswd(8)</A
16750 > has been used to add this 
16751                 machine into a Windows NT Domain. It expects the <A
16752 HREF="index.html#ENCRYPTPASSWORDS"
16753 ><TT
16754 CLASS="PARAMETER"
16755 ><I
16756 >encrypted passwords</I
16757 ></TT
16758 >
16759                 </A
16760 > parameter to be set to <TT
16761 CLASS="CONSTANT"
16762 >true</TT
16763 >. In this 
16764                 mode Samba will try to validate the username/password by passing
16765                 it to a Windows NT Primary or Backup Domain Controller, in exactly 
16766                 the same way that a Windows NT Server would do.</P
16767 ><P
16768 ><SPAN
16769 CLASS="emphasis"
16770 ><I
16771 CLASS="EMPHASIS"
16772 >Note</I
16773 ></SPAN
16774 > that a valid UNIX user must still 
16775                 exist as well as the account on the Domain Controller to allow 
16776                 Samba to have a valid UNIX account to map file access to.</P
16777 ><P
16778 ><SPAN
16779 CLASS="emphasis"
16780 ><I
16781 CLASS="EMPHASIS"
16782 >Note</I
16783 ></SPAN
16784 > that from the client's point 
16785                 of view <B
16786 CLASS="COMMAND"
16787 >security = domain</B
16788 > is the same as <B
16789 CLASS="COMMAND"
16790 >security = user
16791                 </B
16792 >. It only affects how the server deals with the authentication, 
16793                 it does not in any way affect what the client sees.</P
16794 ><P
16795 ><SPAN
16796 CLASS="emphasis"
16797 ><I
16798 CLASS="EMPHASIS"
16799 >Note</I
16800 ></SPAN
16801 > that the name of the resource being 
16802                 requested is <SPAN
16803 CLASS="emphasis"
16804 ><I
16805 CLASS="EMPHASIS"
16806 >not</I
16807 ></SPAN
16808 > sent to the server until after 
16809                 the server has successfully authenticated the client. This is why 
16810                 guest shares don't work in user level security without allowing 
16811                 the server to automatically map unknown users into the <A
16812 HREF="index.html#GUESTACCOUNT"
16813 ><TT
16814 CLASS="PARAMETER"
16815 ><I
16816 >guest account</I
16817 ></TT
16818 ></A
16819 >. 
16820                 See the <A
16821 HREF="index.html#MAPTOGUEST"
16822 ><TT
16823 CLASS="PARAMETER"
16824 ><I
16825 >map to guest</I
16826 ></TT
16827 >
16828                 </A
16829 > parameter for details on doing this.</P
16830 ><P
16831 ><SPAN
16832 CLASS="emphasis"
16833 ><I
16834 CLASS="EMPHASIS"
16835 >BUG:</I
16836 ></SPAN
16837 > There is currently a bug in the 
16838                 implementation of <B
16839 CLASS="COMMAND"
16840 >security = domain</B
16841 > with respect 
16842                 to multi-byte character set usernames. The communication with a 
16843                 Domain Controller must be done in UNICODE and Samba currently 
16844                 does not widen multi-byte user names to UNICODE correctly, thus 
16845                 a multi-byte username will not be recognized correctly at the 
16846                 Domain Controller. This issue will be addressed in a future release.</P
16847 ><P
16848 >See also the section <A
16849 HREF="index.html#AEN236"
16850 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16851 >.</P
16852 ><P
16853 >See also the <A
16854 HREF="index.html#PASSWORDSERVER"
16855 ><TT
16856 CLASS="PARAMETER"
16857 ><I
16858 >password 
16859                 server</I
16860 ></TT
16861 ></A
16862 > parameter and the <A
16863 HREF="index.html#ENCRYPTPASSWORDS"
16864 ><TT
16865 CLASS="PARAMETER"
16866 ><I
16867 >encrypted passwords</I
16868 ></TT
16869 >
16870                 </A
16871 > parameter.</P
16872 ><P
16873 >Default: <B
16874 CLASS="COMMAND"
16875 >security = USER</B
16876 ></P
16877 ><P
16878 >Example: <B
16879 CLASS="COMMAND"
16880 >security = DOMAIN</B
16881 ></P
16882 ></DD
16883 ><DT
16884 ><A
16885 NAME="SECURITYMASK"
16886 ></A
16887 >security mask (S)</DT
16888 ><DD
16889 ><P
16890 >This parameter controls what UNIX permission 
16891                 bits can be modified when a Windows NT client is manipulating 
16892                 the UNIX permission on a file using the native NT security 
16893                 dialog box.</P
16894 ><P
16895 >This parameter is applied as a mask (AND'ed with) to 
16896                 the changed permission bits, thus preventing any bits not in 
16897                 this mask from being modified. Essentially, zero bits in this 
16898                 mask may be treated as a set of bits the user is not allowed 
16899                 to change.</P
16900 ><P
16901 >If not set explicitly this parameter is 0777, allowing
16902                 a user to modify all the user/group/world permissions on a file.
16903                 </P
16904 ><P
16905 ><SPAN
16906 CLASS="emphasis"
16907 ><I
16908 CLASS="EMPHASIS"
16909 >Note</I
16910 ></SPAN
16911 > that users who can access the 
16912                 Samba server through other means can easily bypass this 
16913                 restriction, so it is primarily useful for standalone 
16914                 "appliance" systems.  Administrators of most normal systems will 
16915                 probably want to leave it set to <TT
16916 CLASS="CONSTANT"
16917 >0777</TT
16918 >.</P
16919 ><P
16920 >See also the <A
16921 HREF="index.html#FORCEDIRECTORYSECURITYMODE"
16922 >               <TT
16923 CLASS="PARAMETER"
16924 ><I
16925 >force directory security mode</I
16926 ></TT
16927 ></A
16928 >, 
16929                 <A
16930 HREF="index.html#DIRECTORYSECURITYMASK"
16931 ><TT
16932 CLASS="PARAMETER"
16933 ><I
16934 >directory 
16935                 security mask</I
16936 ></TT
16937 ></A
16938 >, <A
16939 HREF="index.html#FORCESECURITYMODE"
16940 >               <TT
16941 CLASS="PARAMETER"
16942 ><I
16943 >force security mode</I
16944 ></TT
16945 ></A
16946 > parameters.</P
16947 ><P
16948 >Default: <B
16949 CLASS="COMMAND"
16950 >security mask = 0777</B
16951 ></P
16952 ><P
16953 >Example: <B
16954 CLASS="COMMAND"
16955 >security mask = 0770</B
16956 ></P
16957 ></DD
16958 ><DT
16959 ><A
16960 NAME="SERVERSTRING"
16961 ></A
16962 >server string (G)</DT
16963 ><DD
16964 ><P
16965 >This controls what string will show up in the 
16966                 printer comment box in print manager and next to the IPC connection 
16967                 in <B
16968 CLASS="COMMAND"
16969 >net view</B
16970 >. It can be any string that you wish 
16971                 to show to your users.</P
16972 ><P
16973 >It also sets what will appear in browse lists next 
16974                 to the machine name.</P
16975 ><P
16976 >A <TT
16977 CLASS="PARAMETER"
16978 ><I
16979 >%v</I
16980 ></TT
16981 > will be replaced with the Samba 
16982                 version number.</P
16983 ><P
16984 >A <TT
16985 CLASS="PARAMETER"
16986 ><I
16987 >%h</I
16988 ></TT
16989 > will be replaced with the 
16990                 hostname.</P
16991 ><P
16992 >Default: <B
16993 CLASS="COMMAND"
16994 >server string = Samba %v</B
16995 ></P
16996 ><P
16997 >Example: <B
16998 CLASS="COMMAND"
16999 >server string = University of GNUs Samba 
17000                 Server</B
17001 ></P
17002 ></DD
17003 ><DT
17004 ><A
17005 NAME="SETDIRECTORY"
17006 ></A
17007 >set directory (S)</DT
17008 ><DD
17009 ><P
17010 >If <B
17011 CLASS="COMMAND"
17012 >set directory = no</B
17013 >, then 
17014                 users of the service may not use the setdir command to change 
17015                 directory.</P
17016 ><P
17017 >The <B
17018 CLASS="COMMAND"
17019 >setdir</B
17020 > command is only implemented 
17021                 in the Digital Pathworks client. See the Pathworks documentation 
17022                 for details.</P
17023 ><P
17024 >Default: <B
17025 CLASS="COMMAND"
17026 >set directory = no</B
17027 ></P
17028 ></DD
17029 ><DT
17030 ><A
17031 NAME="SHAREMODES"
17032 ></A
17033 >share modes (S)</DT
17034 ><DD
17035 ><P
17036 >This enables or disables the honoring of 
17037                 the <TT
17038 CLASS="PARAMETER"
17039 ><I
17040 >share modes</I
17041 ></TT
17042 > during a file open. These 
17043                 modes are used by clients to gain exclusive read or write access 
17044                 to a file.</P
17045 ><P
17046 >These open modes are not directly supported by UNIX, so
17047                 they are simulated using shared memory, or lock files if your 
17048                 UNIX doesn't support shared memory (almost all do).</P
17049 ><P
17050 >The share modes that are enabled by this option are 
17051                 <TT
17052 CLASS="CONSTANT"
17053 >DENY_DOS</TT
17054 >, <TT
17055 CLASS="CONSTANT"
17056 >DENY_ALL</TT
17057 >,
17058                 <TT
17059 CLASS="CONSTANT"
17060 >DENY_READ</TT
17061 >, <TT
17062 CLASS="CONSTANT"
17063 >DENY_WRITE</TT
17064 >,
17065                 <TT
17066 CLASS="CONSTANT"
17067 >DENY_NONE</TT
17068 > and <TT
17069 CLASS="CONSTANT"
17070 >DENY_FCB</TT
17071 >.
17072                 </P
17073 ><P
17074 >This option gives full share compatibility and enabled 
17075                 by default.</P
17076 ><P
17077 >You should <SPAN
17078 CLASS="emphasis"
17079 ><I
17080 CLASS="EMPHASIS"
17081 >NEVER</I
17082 ></SPAN
17083 > turn this parameter 
17084                 off as many Windows applications will break if you do so.</P
17085 ><P
17086 >Default: <B
17087 CLASS="COMMAND"
17088 >share modes = yes</B
17089 ></P
17090 ></DD
17091 ><DT
17092 ><A
17093 NAME="SHORTPRESERVECASE"
17094 ></A
17095 >short preserve case (S)</DT
17096 ><DD
17097 ><P
17098 >This boolean parameter controls if new files 
17099                 which conform to 8.3 syntax, that is all in upper case and of 
17100                 suitable length, are created upper case, or if they are forced 
17101                 to be the <A
17102 HREF="index.html#DEFAULTCASE"
17103 ><TT
17104 CLASS="PARAMETER"
17105 ><I
17106 >default case
17107                 </I
17108 ></TT
17109 ></A
17110 >. This  option can be use with <A
17111 HREF="index.html#PRESERVECASE"
17112 ><B
17113 CLASS="COMMAND"
17114 >preserve case = yes</B
17115 >
17116                 </A
17117 > to permit long filenames to retain their case, while short 
17118                 names are lowered. </P
17119 ><P
17120 >See the section on <A
17121 HREF="index.html#AEN203"
17122 >               NAME MANGLING</A
17123 >.</P
17124 ><P
17125 >Default: <B
17126 CLASS="COMMAND"
17127 >short preserve case = yes</B
17128 ></P
17129 ></DD
17130 ><DT
17131 ><A
17132 NAME="SHOWADDPRINTERWIZARD"
17133 ></A
17134 >show add printer wizard (G)</DT
17135 ><DD
17136 ><P
17137 >With the introduction of MS-RPC based printing support
17138                 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will 
17139                 appear on Samba hosts in the share listing.  Normally this folder will 
17140                 contain an icon for the MS Add Printer Wizard (APW).  However, it is 
17141                 possible to disable this feature regardless of the level of privilege 
17142                 of the connected user.</P
17143 ><P
17144 >Under normal circumstances, the Windows NT/2000 client will 
17145                 open a handle on the printer server with OpenPrinterEx() asking for
17146                 Administrator privileges.  If the user does not have administrative
17147                 access on the print server (i.e is not root or a member of the 
17148                 <TT
17149 CLASS="PARAMETER"
17150 ><I
17151 >printer admin</I
17152 ></TT
17153 > group), the OpenPrinterEx() 
17154                 call fails and the client makes another open call with a request for 
17155                 a lower privilege level.  This should succeed, however the APW 
17156                 icon will not be displayed.</P
17157 ><P
17158 >Disabling the <TT
17159 CLASS="PARAMETER"
17160 ><I
17161 >show add printer wizard</I
17162 ></TT
17163 >
17164                 parameter will always cause the OpenPrinterEx() on the server
17165                 to fail.  Thus the APW icon will never be displayed. <SPAN
17166 CLASS="emphasis"
17167 ><I
17168 CLASS="EMPHASIS"
17169 >               Note :</I
17170 ></SPAN
17171 >This does not prevent the same user from having 
17172                 administrative privilege on an individual printer.</P
17173 ><P
17174 >See also <A
17175 HREF="index.html#ADDPRINTERCOMMAND"
17176 ><TT
17177 CLASS="PARAMETER"
17178 ><I
17179 >addprinter
17180                 command</I
17181 ></TT
17182 ></A
17183 >, <A
17184 HREF="index.html#DELETEPRINTERCOMMAND"
17185 >               <TT
17186 CLASS="PARAMETER"
17187 ><I
17188 >deleteprinter command</I
17189 ></TT
17190 ></A
17191 >, <A
17192 HREF="index.html#PRINTERADMIN"
17193 ><TT
17194 CLASS="PARAMETER"
17195 ><I
17196 >printer admin</I
17197 ></TT
17198 ></A
17199 ></P
17200 ><P
17201 >Default :<B
17202 CLASS="COMMAND"
17203 >show add printer wizard = yes</B
17204 ></P
17205 ></DD
17206 ><DT
17207 ><A
17208 NAME="SHUTDOWNSCRIPT"
17209 ></A
17210 >shutdown script (G)</DT
17211 ><DD
17212 ><P
17213 ><SPAN
17214 CLASS="emphasis"
17215 ><I
17216 CLASS="EMPHASIS"
17217 >This parameter only exists in the HEAD cvs branch</I
17218 ></SPAN
17219 >
17220                 This a full path name to a script called by
17221                 <A
17222 HREF="smbd.8.html"
17223 TARGET="_top"
17224 ><B
17225 CLASS="COMMAND"
17226 >smbd(8)</B
17227 ></A
17228 > that
17229                 should start a shutdown procedure.</P
17230 ><P
17231 >This command will be run as the user connected to the
17232                 server.</P
17233 ><P
17234 >%m %t %r %f parameters are expanded</P
17235 ><P
17236 ><TT
17237 CLASS="PARAMETER"
17238 ><I
17239 >%m</I
17240 ></TT
17241 > will be substituted with the
17242                 shutdown message sent to the server.</P
17243 ><P
17244 ><TT
17245 CLASS="PARAMETER"
17246 ><I
17247 >%t</I
17248 ></TT
17249 > will be substituted with the
17250                 number of seconds to wait before effectively starting the
17251                 shutdown procedure.</P
17252 ><P
17253 ><TT
17254 CLASS="PARAMETER"
17255 ><I
17256 >%r</I
17257 ></TT
17258 > will be substituted with the
17259                 switch <SPAN
17260 CLASS="emphasis"
17261 ><I
17262 CLASS="EMPHASIS"
17263 >-r</I
17264 ></SPAN
17265 >. It means reboot after shutdown
17266                 for NT.
17267                 </P
17268 ><P
17269 ><TT
17270 CLASS="PARAMETER"
17271 ><I
17272 >%f</I
17273 ></TT
17274 > will be substituted with the
17275                 switch <SPAN
17276 CLASS="emphasis"
17277 ><I
17278 CLASS="EMPHASIS"
17279 >-f</I
17280 ></SPAN
17281 >. It means force the shutdown
17282                 even if applications do not respond for NT.</P
17283 ><P
17284 >Default: <SPAN
17285 CLASS="emphasis"
17286 ><I
17287 CLASS="EMPHASIS"
17288 >None</I
17289 ></SPAN
17290 >.</P
17291 ><P
17292 >Example: <B
17293 CLASS="COMMAND"
17294 >abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</B
17295 ></P
17296 ><P
17297 >Shutdown script example:
17298                 <PRE
17299 CLASS="PROGRAMLISTING"
17300 >               #!/bin/bash
17301                 
17302                 $time=0
17303                 let "time/60"
17304                 let "time++"
17305
17306                 /sbin/shutdown $3 $4 +$time $1 &#38;
17307                 </PRE
17308 >
17309                 Shutdown does not return so we need to launch it in background.
17310                 </P
17311 ><P
17312 >See also <A
17313 HREF="index.html#ABORTSHUTDOWNSCRIPT"
17314 ><TT
17315 CLASS="PARAMETER"
17316 ><I
17317 >abort shutdown script</I
17318 ></TT
17319 ></A
17320 >.</P
17321 ></DD
17322 ><DT
17323 ><A
17324 NAME="SMBPASSWDFILE"
17325 ></A
17326 >smb passwd file (G)</DT
17327 ><DD
17328 ><P
17329 >This option sets the path to the encrypted 
17330                 smbpasswd file.  By default the path to the smbpasswd file 
17331                 is compiled into Samba.</P
17332 ><P
17333 >Default: <B
17334 CLASS="COMMAND"
17335 >smb passwd file = ${prefix}/private/smbpasswd
17336                 </B
17337 ></P
17338 ><P
17339 >Example: <B
17340 CLASS="COMMAND"
17341 >smb passwd file = /etc/samba/smbpasswd
17342                 </B
17343 ></P
17344 ></DD
17345 ><DT
17346 ><A
17347 NAME="SMBPORTS"
17348 ></A
17349 >smb ports (G)</DT
17350 ><DD
17351 ><P
17352 >Specifies which ports the server should listen on
17353                 for SMB traffic.
17354                 </P
17355 ><P
17356 >Default: <B
17357 CLASS="COMMAND"
17358 >smb ports = 445 139</B
17359 ></P
17360 ></DD
17361 ><DT
17362 ><A
17363 NAME="SOCKETADDRESS"
17364 ></A
17365 >socket address (G)</DT
17366 ><DD
17367 ><P
17368 >This option allows you to control what 
17369                 address Samba will listen for connections on. This is used to 
17370                 support multiple virtual interfaces on the one server, each 
17371                 with a different configuration.</P
17372 ><P
17373 >By default Samba will accept connections on any 
17374                 address.</P
17375 ><P
17376 >Example: <B
17377 CLASS="COMMAND"
17378 >socket address = 192.168.2.20</B
17379 >
17380                 </P
17381 ></DD
17382 ><DT
17383 ><A
17384 NAME="SOCKETOPTIONS"
17385 ></A
17386 >socket options (G)</DT
17387 ><DD
17388 ><P
17389 >This option allows you to set socket options 
17390                 to be used when talking with the client.</P
17391 ><P
17392 >Socket options are controls on the networking layer 
17393                 of the operating systems which allow the connection to be 
17394                 tuned.</P
17395 ><P
17396 >This option will typically be used to tune your Samba 
17397                 server for optimal performance for your local network. There is 
17398                 no way that Samba can know what the optimal parameters are for 
17399                 your net, so you must experiment and choose them yourself. We 
17400                 strongly suggest you read the appropriate documentation for your 
17401                 operating system first (perhaps <B
17402 CLASS="COMMAND"
17403 >man setsockopt</B
17404
17405                 will help).</P
17406 ><P
17407 >You may find that on some systems Samba will say 
17408                 "Unknown socket option" when you supply an option. This means you 
17409                 either incorrectly  typed it or you need to add an include file 
17410                 to includes.h for your OS.  If the latter is the case please 
17411                 send the patch to <A
17412 HREF="mailto:samba@samba.org"
17413 TARGET="_top"
17414 >               samba@samba.org</A
17415 >.</P
17416 ><P
17417 >Any of the supported socket options may be combined 
17418                 in any way you like, as long as your OS allows it.</P
17419 ><P
17420 >This is the list of socket options currently settable 
17421                 using this option:</P
17422 ><P
17423 ></P
17424 ><UL
17425 ><LI
17426 ><P
17427 >SO_KEEPALIVE</P
17428 ></LI
17429 ><LI
17430 ><P
17431 >SO_REUSEADDR</P
17432 ></LI
17433 ><LI
17434 ><P
17435 >SO_BROADCAST</P
17436 ></LI
17437 ><LI
17438 ><P
17439 >TCP_NODELAY</P
17440 ></LI
17441 ><LI
17442 ><P
17443 >IPTOS_LOWDELAY</P
17444 ></LI
17445 ><LI
17446 ><P
17447 >IPTOS_THROUGHPUT</P
17448 ></LI
17449 ><LI
17450 ><P
17451 >SO_SNDBUF *</P
17452 ></LI
17453 ><LI
17454 ><P
17455 >SO_RCVBUF *</P
17456 ></LI
17457 ><LI
17458 ><P
17459 >SO_SNDLOWAT *</P
17460 ></LI
17461 ><LI
17462 ><P
17463 >SO_RCVLOWAT *</P
17464 ></LI
17465 ></UL
17466 ><P
17467 >Those marked with a <SPAN
17468 CLASS="emphasis"
17469 ><I
17470 CLASS="EMPHASIS"
17471 >'*'</I
17472 ></SPAN
17473 > take an integer 
17474                 argument. The others can optionally take a 1 or 0 argument to enable 
17475                 or disable the option, by default they will be enabled if you 
17476                 don't specify 1 or 0.</P
17477 ><P
17478 >To specify an argument use the syntax SOME_OPTION = VALUE 
17479                 for example <B
17480 CLASS="COMMAND"
17481 >SO_SNDBUF = 8192</B
17482 >. Note that you must 
17483                 not have any spaces before or after the = sign.</P
17484 ><P
17485 >If you are on a local network then a sensible option 
17486                 might be</P
17487 ><P
17488 ><B
17489 CLASS="COMMAND"
17490 >socket options = IPTOS_LOWDELAY</B
17491 ></P
17492 ><P
17493 >If you have a local network then you could try:</P
17494 ><P
17495 ><B
17496 CLASS="COMMAND"
17497 >socket options = IPTOS_LOWDELAY TCP_NODELAY</B
17498 ></P
17499 ><P
17500 >If you are on a wide area network then perhaps try 
17501                 setting IPTOS_THROUGHPUT. </P
17502 ><P
17503 >Note that several of the options may cause your Samba 
17504                 server to fail completely. Use these options with caution!</P
17505 ><P
17506 >Default: <B
17507 CLASS="COMMAND"
17508 >socket options = TCP_NODELAY</B
17509 ></P
17510 ><P
17511 >Example: <B
17512 CLASS="COMMAND"
17513 >socket options = IPTOS_LOWDELAY</B
17514 ></P
17515 ></DD
17516 ><DT
17517 ><A
17518 NAME="SOURCEENVIRONMENT"
17519 ></A
17520 >source environment (G)</DT
17521 ><DD
17522 ><P
17523 >This parameter causes Samba to set environment 
17524                 variables as per the content of the file named.</P
17525 ><P
17526 >If the value of this parameter starts with a "|" character 
17527                 then Samba will treat that value as a pipe command to open and 
17528                 will set the environment variables from the output of the pipe.</P
17529 ><P
17530 >The contents of the file or the output of the pipe should 
17531                 be formatted as the output of the standard Unix <B
17532 CLASS="COMMAND"
17533 >env(1)
17534                 </B
17535 > command. This is of the form :</P
17536 ><P
17537 >Example environment entry:</P
17538 ><P
17539 ><B
17540 CLASS="COMMAND"
17541 >SAMBA_NETBIOS_NAME = myhostname</B
17542 ></P
17543 ><P
17544 >Default: <SPAN
17545 CLASS="emphasis"
17546 ><I
17547 CLASS="EMPHASIS"
17548 >No default value</I
17549 ></SPAN
17550 ></P
17551 ><P
17552 >Examples: <B
17553 CLASS="COMMAND"
17554 >source environment = |/etc/smb.conf.sh
17555                 </B
17556 ></P
17557 ><P
17558 >Example: <B
17559 CLASS="COMMAND"
17560 >source environment = 
17561                 /usr/local/smb_env_vars</B
17562 ></P
17563 ></DD
17564 ><DT
17565 ><A
17566 NAME="SPNEGO"
17567 ></A
17568 >use spnego (G)</DT
17569 ><DD
17570 ><P
17571 > This variable controls controls whether samba will try to use Simple and Protected NEGOciation (as specified by rfc2478) with WindowsXP and Windows2000sp2 clients to agree upon an authentication mechanism.  As of samba 3.0alpha it must be set to "no" for these clients to join a samba domain controller.  It can be set to "yes" to allow samba to participate in an AD domain controlled by a Windows2000 domain controller.</P
17572 ><P
17573 >Default:  <SPAN
17574 CLASS="emphasis"
17575 ><I
17576 CLASS="EMPHASIS"
17577 >use spnego = yes</I
17578 ></SPAN
17579 ></P
17580 ></DD
17581 ><DT
17582 ><A
17583 NAME="STATCACHE"
17584 ></A
17585 >stat cache (G)</DT
17586 ><DD
17587 ><P
17588 >This parameter determines if <A
17589 HREF="smbd.8.html"
17590 TARGET="_top"
17591 >smbd(8)</A
17592 > will use a cache in order to 
17593                 speed up case insensitive name mappings. You should never need 
17594                 to change this parameter.</P
17595 ><P
17596 >Default: <B
17597 CLASS="COMMAND"
17598 >stat cache = yes</B
17599 ></P
17600 ></DD
17601 ><DT
17602 ><A
17603 NAME="STATCACHESIZE"
17604 ></A
17605 >stat cache size (G)</DT
17606 ><DD
17607 ><P
17608 >This parameter determines the number of 
17609                 entries in the <TT
17610 CLASS="PARAMETER"
17611 ><I
17612 >stat cache</I
17613 ></TT
17614 >.  You should 
17615                 never need to change this parameter.</P
17616 ><P
17617 >Default: <B
17618 CLASS="COMMAND"
17619 >stat cache size = 50</B
17620 ></P
17621 ></DD
17622 ><DT
17623 ><A
17624 NAME="STATUS"
17625 ></A
17626 >status (G)</DT
17627 ><DD
17628 ><P
17629 >This enables or disables logging of connections 
17630                 to a status file that <A
17631 HREF="smbstatus.1.html"
17632 TARGET="_top"
17633 >smbstatus(1)</A
17634 >
17635                 can read.</P
17636 ><P
17637 >With this disabled <B
17638 CLASS="COMMAND"
17639 >smbstatus</B
17640 > won't be able
17641                 to tell you what connections are active. You should never need to
17642                 change this parameter.</P
17643 ><P
17644 >Default: <B
17645 CLASS="COMMAND"
17646 >status = yes</B
17647 ></P
17648 ></DD
17649 ><DT
17650 ><A
17651 NAME="STRICTALLOCATE"
17652 ></A
17653 >strict allocate (S)</DT
17654 ><DD
17655 ><P
17656 >This is a boolean that controls the handling of 
17657                 disk space allocation in the server. When this is set to <TT
17658 CLASS="CONSTANT"
17659 >yes</TT
17660
17661                 the server will change from UNIX behaviour of not committing real
17662                 disk storage blocks when a file is extended to the Windows behaviour
17663                 of actually forcing the disk system to allocate real storage blocks
17664                 when a file is created or extended to be a given size. In UNIX
17665                 terminology this means that Samba will stop creating sparse files.
17666                 This can be slow on some systems.</P
17667 ><P
17668 >When strict allocate is <TT
17669 CLASS="CONSTANT"
17670 >no</TT
17671 > the server does sparse
17672                 disk block allocation when a file is extended.</P
17673 ><P
17674 >Setting this to <TT
17675 CLASS="CONSTANT"
17676 >yes</TT
17677 > can help Samba return
17678                 out of quota messages on systems that are restricting the disk quota
17679                 of users.</P
17680 ><P
17681 >Default: <B
17682 CLASS="COMMAND"
17683 >strict allocate = no</B
17684 ></P
17685 ></DD
17686 ><DT
17687 ><A
17688 NAME="STRICTLOCKING"
17689 ></A
17690 >strict locking (S)</DT
17691 ><DD
17692 ><P
17693 >This is a boolean that controls the handling of 
17694                 file locking in the server. When this is set to <TT
17695 CLASS="CONSTANT"
17696 >yes</TT
17697
17698                 the server will check every read and write access for file locks, and 
17699                 deny access if locks exist. This can be slow on some systems.</P
17700 ><P
17701 >When strict locking is <TT
17702 CLASS="CONSTANT"
17703 >no</TT
17704 > the server does file 
17705                 lock checks only when the client explicitly asks for them.</P
17706 ><P
17707 >Well-behaved clients always ask for lock checks when it 
17708                 is important, so in the vast majority of cases <B
17709 CLASS="COMMAND"
17710 >strict 
17711                 locking = no</B
17712 > is preferable.</P
17713 ><P
17714 >Default: <B
17715 CLASS="COMMAND"
17716 >strict locking = no</B
17717 ></P
17718 ></DD
17719 ><DT
17720 ><A
17721 NAME="STRICTSYNC"
17722 ></A
17723 >strict sync (S)</DT
17724 ><DD
17725 ><P
17726 >Many Windows applications (including the Windows 
17727                 98 explorer shell) seem to confuse flushing buffer contents to 
17728                 disk with doing a sync to disk. Under UNIX, a sync call forces 
17729                 the process to be suspended until the kernel has ensured that 
17730                 all outstanding data in kernel disk buffers has been safely stored 
17731                 onto stable storage. This is very slow and should only be done 
17732                 rarely. Setting this parameter to <TT
17733 CLASS="CONSTANT"
17734 >no</TT
17735 > (the 
17736                 default) means that <A
17737 HREF="smbd.8.html"
17738 TARGET="_top"
17739 >smbd</A
17740 > ignores the Windows applications requests for
17741                 a sync call. There is only a possibility of losing data if the
17742                 operating system itself that Samba is running on crashes, so there is
17743                 little danger in this default setting. In addition, this fixes many
17744                 performance problems that people have reported with the new Windows98
17745                 explorer shell file copies.</P
17746 ><P
17747 >See also the <A
17748 HREF="index.html#SYNCALWAYS"
17749 ><TT
17750 CLASS="PARAMETER"
17751 ><I
17752 >sync 
17753                 always&#62;</I
17754 ></TT
17755 ></A
17756 > parameter.</P
17757 ><P
17758 >Default: <B
17759 CLASS="COMMAND"
17760 >strict sync = no</B
17761 ></P
17762 ></DD
17763 ><DT
17764 ><A
17765 NAME="STRIPDOT"
17766 ></A
17767 >strip dot (G)</DT
17768 ><DD
17769 ><P
17770 >This is a boolean that controls whether to 
17771                 strip trailing dots off UNIX filenames. This helps with some 
17772                 CDROMs that have filenames ending in a single dot.</P
17773 ><P
17774 >Default: <B
17775 CLASS="COMMAND"
17776 >strip dot = no</B
17777 ></P
17778 ></DD
17779 ><DT
17780 ><A
17781 NAME="SYNCALWAYS"
17782 ></A
17783 >sync always (S)</DT
17784 ><DD
17785 ><P
17786 >This is a boolean parameter that controls 
17787                 whether writes will always be written to stable storage before 
17788                 the write call returns. If this is <TT
17789 CLASS="CONSTANT"
17790 >false</TT
17791 > then the server will be 
17792                 guided by the client's request in each write call (clients can 
17793                 set a bit indicating that a particular write should be synchronous). 
17794                 If this is <TT
17795 CLASS="CONSTANT"
17796 >true</TT
17797 > then every write will be followed by a <B
17798 CLASS="COMMAND"
17799 >fsync()
17800                 </B
17801 > call to ensure the data is written to disk. Note that 
17802                 the <TT
17803 CLASS="PARAMETER"
17804 ><I
17805 >strict sync</I
17806 ></TT
17807 > parameter must be set to
17808                 <TT
17809 CLASS="CONSTANT"
17810 >yes</TT
17811 > in order for this parameter to have 
17812                 any affect.</P
17813 ><P
17814 >See also the <A
17815 HREF="index.html#STRICTSYNC"
17816 ><TT
17817 CLASS="PARAMETER"
17818 ><I
17819 >strict 
17820                 sync</I
17821 ></TT
17822 ></A
17823 > parameter.</P
17824 ><P
17825 >Default: <B
17826 CLASS="COMMAND"
17827 >sync always = no</B
17828 ></P
17829 ></DD
17830 ><DT
17831 ><A
17832 NAME="SYSLOG"
17833 ></A
17834 >syslog (G)</DT
17835 ><DD
17836 ><P
17837 >This parameter maps how Samba debug messages 
17838                 are logged onto the system syslog logging levels. Samba debug 
17839                 level zero maps onto syslog <TT
17840 CLASS="CONSTANT"
17841 >LOG_ERR</TT
17842 >, debug 
17843                 level one maps onto <TT
17844 CLASS="CONSTANT"
17845 >LOG_WARNING</TT
17846 >, debug level 
17847                 two maps onto <TT
17848 CLASS="CONSTANT"
17849 >LOG_NOTICE</TT
17850 >, debug level three 
17851                 maps onto LOG_INFO. All higher levels are mapped to <TT
17852 CLASS="CONSTANT"
17853 >               LOG_DEBUG</TT
17854 >.</P
17855 ><P
17856 >This parameter sets the threshold for sending messages 
17857                 to syslog.  Only messages with debug level less than this value 
17858                 will be sent to syslog.</P
17859 ><P
17860 >Default: <B
17861 CLASS="COMMAND"
17862 >syslog = 1</B
17863 ></P
17864 ></DD
17865 ><DT
17866 ><A
17867 NAME="SYSLOGONLY"
17868 ></A
17869 >syslog only (G)</DT
17870 ><DD
17871 ><P
17872 >If this parameter is set then Samba debug 
17873                 messages are logged into the system syslog only, and not to 
17874                 the debug log files.</P
17875 ><P
17876 >Default: <B
17877 CLASS="COMMAND"
17878 >syslog only = no</B
17879 ></P
17880 ></DD
17881 ><DT
17882 ><A
17883 NAME="TEMPLATEHOMEDIR"
17884 ></A
17885 >template homedir (G)</DT
17886 ><DD
17887 ><P
17888 >When filling out the user information for a Windows NT 
17889                 user, the <A
17890 HREF="winbindd.8.html"
17891 TARGET="_top"
17892 >winbindd(8)</A
17893 > daemon 
17894                 uses this parameter to fill in the home directory for that user.  
17895                 If the string <TT
17896 CLASS="PARAMETER"
17897 ><I
17898 >%D</I
17899 ></TT
17900 > is present it is substituted 
17901                 with the user's Windows NT domain name.  If the string <TT
17902 CLASS="PARAMETER"
17903 ><I
17904 >%U
17905                 </I
17906 ></TT
17907 > is present it is substituted with the user's Windows 
17908                 NT user name.</P
17909 ><P
17910 >Default: <B
17911 CLASS="COMMAND"
17912 >template homedir = /home/%D/%U</B
17913 ></P
17914 ></DD
17915 ><DT
17916 ><A
17917 NAME="TEMPLATESHELL"
17918 ></A
17919 >template shell (G)</DT
17920 ><DD
17921 ><P
17922 >When filling out the user information for a Windows NT 
17923                 user, the <A
17924 HREF="winbindd.8.html"
17925 TARGET="_top"
17926 >winbindd(8)</A
17927 > daemon 
17928                 uses this parameter to fill in the login shell for that user.</P
17929 ><P
17930 >Default: <B
17931 CLASS="COMMAND"
17932 >template shell = /bin/false</B
17933 ></P
17934 ></DD
17935 ><DT
17936 ><A
17937 NAME="TIMEOFFSET"
17938 ></A
17939 >time offset (G)</DT
17940 ><DD
17941 ><P
17942 >This parameter is a setting in minutes to add 
17943                 to the normal GMT to local time conversion. This is useful if 
17944                 you are serving a lot of PCs that have incorrect daylight 
17945                 saving time handling.</P
17946 ><P
17947 >Default: <B
17948 CLASS="COMMAND"
17949 >time offset = 0</B
17950 ></P
17951 ><P
17952 >Example: <B
17953 CLASS="COMMAND"
17954 >time offset = 60</B
17955 ></P
17956 ></DD
17957 ><DT
17958 ><A
17959 NAME="TIMESERVER"
17960 ></A
17961 >time server (G)</DT
17962 ><DD
17963 ><P
17964 >This parameter determines if <A
17965 HREF="nmbd.8.html"
17966 TARGET="_top"
17967 >                       
17968                 nmbd(8)</A
17969 > advertises itself as a time server to Windows 
17970                 clients.</P
17971 ><P
17972 >Default: <B
17973 CLASS="COMMAND"
17974 >time server = no</B
17975 ></P
17976 ></DD
17977 ><DT
17978 ><A
17979 NAME="TIMESTAMPLOGS"
17980 ></A
17981 >timestamp logs (G)</DT
17982 ><DD
17983 ><P
17984 >Synonym for <A
17985 HREF="index.html#DEBUGTIMESTAMP"
17986 ><TT
17987 CLASS="PARAMETER"
17988 ><I
17989 >               debug timestamp</I
17990 ></TT
17991 ></A
17992 >.</P
17993 ></DD
17994 ><DT
17995 ><A
17996 NAME="TOTALPRINTJOBS"
17997 ></A
17998 >total print jobs (G)</DT
17999 ><DD
18000 ><P
18001 >This parameter accepts an integer value which defines
18002                 a limit on the maximum number of print jobs that will be accepted 
18003                 system wide at any given time.  If a print job is submitted
18004                 by a client which will exceed this number, then <A
18005 HREF="smbd.8.html"
18006 TARGET="_top"
18007 >smbd</A
18008 > will return an 
18009                 error indicating that no space is available on the server.  The 
18010                 default value of 0 means that no such limit exists.  This parameter
18011                 can be used to prevent a server from exceeding its capacity and is
18012                 designed as a printing throttle.  See also 
18013                 <A
18014 HREF="index.html#MAXPRINTJOBS"
18015 ><TT
18016 CLASS="PARAMETER"
18017 ><I
18018 >max print jobs</I
18019 ></TT
18020 ></A
18021 >.
18022                 </P
18023 ><P
18024 >Default: <B
18025 CLASS="COMMAND"
18026 >total print jobs = 0</B
18027 ></P
18028 ><P
18029 >Example: <B
18030 CLASS="COMMAND"
18031 >total print jobs = 5000</B
18032 ></P
18033 ></DD
18034 ><DT
18035 ><A
18036 NAME="UNICODE"
18037 ></A
18038 >unicode (G)</DT
18039 ><DD
18040 ><P
18041 >Specifies whether Samba should try 
18042                 to use unicode on the wire by default. 
18043                 </P
18044 ><P
18045 >Default: <B
18046 CLASS="COMMAND"
18047 >unicode = yes</B
18048 ></P
18049 ></DD
18050 ><DT
18051 ><A
18052 NAME="UNIXCHARSET"
18053 ></A
18054 >unix charset (G)</DT
18055 ><DD
18056 ><P
18057 >Specifies the charset the unix machine 
18058                 Samba runs on uses. Samba needs to know this in order to be able to 
18059                 convert text to the charsets other SMB clients use.
18060                 </P
18061 ><P
18062 >Default: <B
18063 CLASS="COMMAND"
18064 >unix charset = ASCII</B
18065 ></P
18066 ></DD
18067 ><DT
18068 ><A
18069 NAME="UNIXEXTENSIONS"
18070 ></A
18071 >unix extensions(G)</DT
18072 ><DD
18073 ><P
18074 >This boolean parameter controls whether Samba 
18075                 implments the CIFS UNIX extensions, as defined by HP. 
18076                 These extensions enable Samba to better serve UNIX CIFS clients
18077                 by supporting features such as symbolic links, hard links, etc...
18078                 These extensions require a similarly enabled client, and are of
18079                 no current use to Windows clients.</P
18080 ><P
18081 >Default: <B
18082 CLASS="COMMAND"
18083 >unix extensions = no</B
18084 ></P
18085 ></DD
18086 ><DT
18087 ><A
18088 NAME="UNIXPASSWORDSYNC"
18089 ></A
18090 >unix password sync (G)</DT
18091 ><DD
18092 ><P
18093 >This boolean parameter controls whether Samba 
18094                 attempts to synchronize the UNIX password with the SMB password 
18095                 when the encrypted SMB password in the smbpasswd file is changed. 
18096                 If this is set to <TT
18097 CLASS="CONSTANT"
18098 >true</TT
18099 > the program specified in the <TT
18100 CLASS="PARAMETER"
18101 ><I
18102 >passwd
18103                 program</I
18104 ></TT
18105 >parameter is called <SPAN
18106 CLASS="emphasis"
18107 ><I
18108 CLASS="EMPHASIS"
18109 >AS ROOT</I
18110 ></SPAN
18111 > - 
18112                 to allow the new UNIX password to be set without access to the 
18113                 old UNIX password (as the SMB password change code has no 
18114                 access to the old password cleartext, only the new).</P
18115 ><P
18116 >See also <A
18117 HREF="index.html#PASSWDPROGRAM"
18118 ><TT
18119 CLASS="PARAMETER"
18120 ><I
18121 >passwd 
18122                 program</I
18123 ></TT
18124 ></A
18125 >, <A
18126 HREF="index.html#PASSWDCHAT"
18127 ><TT
18128 CLASS="PARAMETER"
18129 ><I
18130 >               passwd chat</I
18131 ></TT
18132 ></A
18133 >.</P
18134 ><P
18135 >Default: <B
18136 CLASS="COMMAND"
18137 >unix password sync = no</B
18138 ></P
18139 ></DD
18140 ><DT
18141 ><A
18142 NAME="UPDATEENCRYPTED"
18143 ></A
18144 >update encrypted (G)</DT
18145 ><DD
18146 ><P
18147 >This boolean parameter allows a user logging 
18148                 on with a plaintext password to have their encrypted (hashed) 
18149                 password in the smbpasswd file to be updated automatically as 
18150                 they log on. This option allows a site to migrate from plaintext 
18151                 password authentication (users authenticate with plaintext 
18152                 password over the wire, and are checked against a UNIX account 
18153                 database) to encrypted password authentication (the SMB 
18154                 challenge/response authentication mechanism) without forcing
18155                 all users to re-enter their passwords via smbpasswd at the time the
18156                 change is made. This is a convenience option to allow the change over
18157                 to encrypted passwords to be made over a longer period. Once all users
18158                 have encrypted representations of their passwords in the smbpasswd
18159                 file this parameter should be set to <TT
18160 CLASS="CONSTANT"
18161 >no</TT
18162 >.</P
18163 ><P
18164 >In order for this parameter to work correctly the <A
18165 HREF="index.html#ENCRYPTPASSWORDS"
18166 ><TT
18167 CLASS="PARAMETER"
18168 ><I
18169 >encrypt passwords</I
18170 ></TT
18171 >
18172                 </A
18173 > parameter must be set to <TT
18174 CLASS="CONSTANT"
18175 >no</TT
18176 > when
18177                 this parameter is set to <TT
18178 CLASS="CONSTANT"
18179 >yes</TT
18180 >.</P
18181 ><P
18182 >Note that even when this parameter is set a user 
18183                 authenticating to <B
18184 CLASS="COMMAND"
18185 >smbd</B
18186 > must still enter a valid 
18187                 password in order to connect correctly, and to update their hashed 
18188                 (smbpasswd) passwords.</P
18189 ><P
18190 >Default: <B
18191 CLASS="COMMAND"
18192 >update encrypted = no</B
18193 ></P
18194 ></DD
18195 ><DT
18196 ><A
18197 NAME="USECLIENTDRIVER"
18198 ></A
18199 >use client driver (S)</DT
18200 ><DD
18201 ><P
18202 >This parameter applies only to Windows NT/2000
18203                 clients.  It has no affect on Windows 95/98/ME clients.  When 
18204                 serving a printer to Windows NT/2000 clients without first installing
18205                 a valid printer driver on the Samba host, the client will be required
18206                 to install a local printer driver.  From this point on, the client
18207                 will treat the print as a local printer and not a network printer 
18208                 connection.  This is much the same behavior that will occur
18209                 when <B
18210 CLASS="COMMAND"
18211 >disable spoolss = yes</B
18212 >.  </P
18213 ><P
18214 >The differentiating 
18215                 factor is that under normal circumstances, the NT/2000 client will 
18216                 attempt to open the network printer using MS-RPC.  The problem is that
18217                 because the client considers the printer to be local, it will attempt
18218                 to issue the OpenPrinterEx() call requesting access rights associated 
18219                 with the logged on user. If the user possesses local administator rights
18220                 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
18221                 call will fail.  The result is that the client will now display an "Access
18222                 Denied; Unable to connect" message in the printer queue window (even though
18223                 jobs may successfully be printed).  </P
18224 ><P
18225 >If this parameter is enabled for a printer, then any attempt
18226                 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
18227                 to PRINTER_ACCESS_USE instead.  Thus allowing the OpenPrinterEx()
18228                 call to succeed.  <SPAN
18229 CLASS="emphasis"
18230 ><I
18231 CLASS="EMPHASIS"
18232 >This parameter MUST not be able enabled
18233                 on a print share which has valid print driver installed on the Samba 
18234                 server.</I
18235 ></SPAN
18236 ></P
18237 ><P
18238 >See also <A
18239 HREF="index.html#DISABLESPOOLSS"
18240 >disable spoolss</A
18241 >
18242                 </P
18243 ><P
18244 >Default: <B
18245 CLASS="COMMAND"
18246 >use client driver = no</B
18247 ></P
18248 ></DD
18249 ><DT
18250 ><A
18251 NAME="USEMMAP"
18252 ></A
18253 >use mmap (G)</DT
18254 ><DD
18255 ><P
18256 >This global parameter determines if the tdb internals of Samba can
18257                 depend on mmap working correctly on the running system. Samba requires a coherent
18258                 mmap/read-write system memory cache. Currently only HPUX does not have such a
18259                 coherent cache, and so this parameter is set to <TT
18260 CLASS="CONSTANT"
18261 >false</TT
18262 > by
18263                 default on HPUX. On all other systems this parameter should be left alone. This
18264                 parameter is provided to help the Samba developers track down problems with
18265                 the tdb internal code.
18266                 </P
18267 ><P
18268 >Default: <B
18269 CLASS="COMMAND"
18270 >use mmap = yes</B
18271 ></P
18272 ></DD
18273 ><DT
18274 ><A
18275 NAME="USERHOSTS"
18276 ></A
18277 >use rhosts (G)</DT
18278 ><DD
18279 ><P
18280 >If this global parameter is <TT
18281 CLASS="CONSTANT"
18282 >true</TT
18283 >, it specifies 
18284                 that the UNIX user's <TT
18285 CLASS="FILENAME"
18286 >.rhosts</TT
18287 > file in their home directory 
18288                 will be read to find the names of hosts and users who will be allowed 
18289                 access without specifying a password.</P
18290 ><P
18291 ><SPAN
18292 CLASS="emphasis"
18293 ><I
18294 CLASS="EMPHASIS"
18295 >NOTE:</I
18296 ></SPAN
18297 > The use of <TT
18298 CLASS="PARAMETER"
18299 ><I
18300 >use rhosts
18301                 </I
18302 ></TT
18303 > can be a major security hole. This is because you are 
18304                 trusting the PC to supply the correct username. It is very easy to 
18305                 get a PC to supply a false username. I recommend that the <TT
18306 CLASS="PARAMETER"
18307 ><I
18308 >               use rhosts</I
18309 ></TT
18310 > option be only used if you really know what 
18311                 you are doing.</P
18312 ><P
18313 >Default: <B
18314 CLASS="COMMAND"
18315 >use rhosts = no</B
18316 ></P
18317 ></DD
18318 ><DT
18319 ><A
18320 NAME="USER"
18321 ></A
18322 >user (S)</DT
18323 ><DD
18324 ><P
18325 >Synonym for <A
18326 HREF="index.html#USERNAME"
18327 ><TT
18328 CLASS="PARAMETER"
18329 ><I
18330 >               username</I
18331 ></TT
18332 ></A
18333 >.</P
18334 ></DD
18335 ><DT
18336 ><A
18337 NAME="USERS"
18338 ></A
18339 >users (S)</DT
18340 ><DD
18341 ><P
18342 >Synonym for <A
18343 HREF="index.html#USERNAME"
18344 ><TT
18345 CLASS="PARAMETER"
18346 ><I
18347 >               username</I
18348 ></TT
18349 ></A
18350 >.</P
18351 ></DD
18352 ><DT
18353 ><A
18354 NAME="USERNAME"
18355 ></A
18356 >username (S)</DT
18357 ><DD
18358 ><P
18359 >Multiple users may be specified in a comma-delimited 
18360                 list, in which case the supplied password will be tested against 
18361                 each username in turn (left to right).</P
18362 ><P
18363 >The <TT
18364 CLASS="PARAMETER"
18365 ><I
18366 >username</I
18367 ></TT
18368 > line is needed only when 
18369                 the PC is unable to supply its own username. This is the case 
18370                 for the COREPLUS protocol or where your users have different WfWg 
18371                 usernames to UNIX usernames. In both these cases you may also be 
18372                 better using the \\server\share%user syntax instead.</P
18373 ><P
18374 >The <TT
18375 CLASS="PARAMETER"
18376 ><I
18377 >username</I
18378 ></TT
18379 > line is not a great 
18380                 solution in many cases as it means Samba will try to validate 
18381                 the supplied password against each of the usernames in the 
18382                 <TT
18383 CLASS="PARAMETER"
18384 ><I
18385 >username</I
18386 ></TT
18387 > line in turn. This is slow and 
18388                 a bad idea for lots of users in case of duplicate passwords. 
18389                 You may get timeouts or security breaches using this parameter 
18390                 unwisely.</P
18391 ><P
18392 >Samba relies on the underlying UNIX security. This 
18393                 parameter does not restrict who can login, it just offers hints 
18394                 to the Samba server as to what usernames might correspond to the 
18395                 supplied password. Users can login as whoever they please and 
18396                 they will be able to do no more damage than if they started a 
18397                 telnet session. The daemon runs as the user that they log in as, 
18398                 so they cannot do anything that user cannot do.</P
18399 ><P
18400 >To restrict a service to a particular set of users you 
18401                 can use the <A
18402 HREF="index.html#VALIDUSERS"
18403 ><TT
18404 CLASS="PARAMETER"
18405 ><I
18406 >valid users
18407                 </I
18408 ></TT
18409 ></A
18410 > parameter.</P
18411 ><P
18412 >If any of the usernames begin with a '@' then the name 
18413                 will be looked up first in the NIS netgroups list (if Samba 
18414                 is compiled with netgroup support), followed by a lookup in 
18415                 the UNIX groups database and will expand to a list of all users 
18416                 in the group of that name.</P
18417 ><P
18418 >If any of the usernames begin with a '+' then the name 
18419                 will be looked up only in the UNIX groups database and will 
18420                 expand to a list of all users in the group of that name.</P
18421 ><P
18422 >If any of the usernames begin with a '&#38;'then the name 
18423                 will be looked up only in the NIS netgroups database (if Samba 
18424                 is compiled with netgroup support) and will expand to a list 
18425                 of all users in the netgroup group of that name.</P
18426 ><P
18427 >Note that searching though a groups database can take 
18428                 quite some time, and some clients may time out during the 
18429                 search.</P
18430 ><P
18431 >See the section <A
18432 HREF="index.html#AEN236"
18433 >NOTE ABOUT 
18434                 USERNAME/PASSWORD VALIDATION</A
18435 > for more information on how 
18436                 this parameter determines access to the services.</P
18437 ><P
18438 >Default: <B
18439 CLASS="COMMAND"
18440 >The guest account if a guest service, 
18441                 else &lt;empty string&gt;.</B
18442 ></P
18443 ><P
18444 >Examples:<B
18445 CLASS="COMMAND"
18446 >username = fred, mary, jack, jane, 
18447                 @users, @pcgroup</B
18448 ></P
18449 ></DD
18450 ><DT
18451 ><A
18452 NAME="USERNAMELEVEL"
18453 ></A
18454 >username level (G)</DT
18455 ><DD
18456 ><P
18457 >This option helps Samba to try and 'guess' at 
18458                 the real UNIX username, as many DOS clients send an all-uppercase 
18459                 username. By default Samba tries all lowercase, followed by the 
18460                 username with the first letter capitalized, and fails if the 
18461                 username is not found on the UNIX machine.</P
18462 ><P
18463 >If this parameter is set to non-zero the behavior changes. 
18464                 This parameter is a number that specifies the number of uppercase
18465                 combinations to try while trying to determine the UNIX user name. The
18466                 higher the number the more combinations will be tried, but the slower
18467                 the discovery of usernames will be. Use this parameter when you have
18468                 strange usernames on your UNIX machine, such as <TT
18469 CLASS="CONSTANT"
18470 >AstrangeUser
18471                 </TT
18472 >.</P
18473 ><P
18474 >Default: <B
18475 CLASS="COMMAND"
18476 >username level = 0</B
18477 ></P
18478 ><P
18479 >Example: <B
18480 CLASS="COMMAND"
18481 >username level = 5</B
18482 ></P
18483 ></DD
18484 ><DT
18485 ><A
18486 NAME="USERNAMEMAP"
18487 ></A
18488 >username map (G)</DT
18489 ><DD
18490 ><P
18491 >This option allows you to specify a file containing 
18492                 a mapping of usernames from the clients to the server. This can be 
18493                 used for several purposes. The most common is to map usernames 
18494                 that users use on DOS or Windows machines to those that the UNIX 
18495                 box uses. The other is to map multiple users to a single username 
18496                 so that they can more easily share files.</P
18497 ><P
18498 >The map file is parsed line by line. Each line should 
18499                 contain a single UNIX username on the left then a '=' followed 
18500                 by a list of usernames on the right. The list of usernames on the 
18501                 right may contain names of the form @group in which case they 
18502                 will match any UNIX username in that group. The special client 
18503                 name '*' is a wildcard and matches any name. Each line of the 
18504                 map file may be up to 1023 characters long.</P
18505 ><P
18506 >The file is processed on each line by taking the 
18507                 supplied username and comparing it with each username on the right 
18508                 hand side of the '=' signs. If the supplied name matches any of 
18509                 the names on the right hand side then it is replaced with the name 
18510                 on the left. Processing then continues with the next line.</P
18511 ><P
18512 >If any line begins with a '#' or a ';' then it is 
18513                 ignored</P
18514 ><P
18515 >If any line begins with an '!' then the processing 
18516                 will stop after that line if a mapping was done by the line. 
18517                 Otherwise mapping continues with every line being processed. 
18518                 Using '!' is most useful when you have a wildcard mapping line 
18519                 later in the file.</P
18520 ><P
18521 >For example to map from the name <TT
18522 CLASS="CONSTANT"
18523 >admin</TT
18524
18525                 or <TT
18526 CLASS="CONSTANT"
18527 >administrator</TT
18528 > to the UNIX name <TT
18529 CLASS="CONSTANT"
18530 >               root</TT
18531 > you would use:</P
18532 ><P
18533 ><B
18534 CLASS="COMMAND"
18535 >root = admin administrator</B
18536 ></P
18537 ><P
18538 >Or to map anyone in the UNIX group <TT
18539 CLASS="CONSTANT"
18540 >system</TT
18541
18542                 to the UNIX name <TT
18543 CLASS="CONSTANT"
18544 >sys</TT
18545 > you would use:</P
18546 ><P
18547 ><B
18548 CLASS="COMMAND"
18549 >sys = @system</B
18550 ></P
18551 ><P
18552 >You can have as many mappings as you like in a username 
18553                 map file.</P
18554 ><P
18555 >If your system supports the NIS NETGROUP option then 
18556                 the netgroup database is checked before the <TT
18557 CLASS="FILENAME"
18558 >/etc/group
18559                 </TT
18560 > database for matching groups.</P
18561 ><P
18562 >You can map Windows usernames that have spaces in them
18563                  by using double quotes around the name. For example:</P
18564 ><P
18565 ><B
18566 CLASS="COMMAND"
18567 >tridge = "Andrew Tridgell"</B
18568 ></P
18569 ><P
18570 >would map the windows username "Andrew Tridgell" to the 
18571                 unix username "tridge".</P
18572 ><P
18573 >The following example would map mary and fred to the 
18574                 unix user sys, and map the rest to guest. Note the use of the 
18575                 '!' to tell Samba to stop processing if it gets a match on 
18576                 that line.</P
18577 ><P
18578 ><PRE
18579 CLASS="PROGRAMLISTING"
18580 >               !sys = mary fred
18581                 guest = *
18582                 </PRE
18583 ></P
18584 ><P
18585 >Note that the remapping is applied to all occurrences 
18586                 of usernames. Thus if you connect to \\server\fred and <TT
18587 CLASS="CONSTANT"
18588 >               fred</TT
18589 > is remapped to <TT
18590 CLASS="CONSTANT"
18591 >mary</TT
18592 > then you 
18593                 will actually be connecting to \\server\mary and will need to 
18594                 supply a password suitable for <TT
18595 CLASS="CONSTANT"
18596 >mary</TT
18597 > not 
18598                 <TT
18599 CLASS="CONSTANT"
18600 >fred</TT
18601 >. The only exception to this is the 
18602                 username passed to the <A
18603 HREF="index.html#PASSWORDSERVER"
18604 ><TT
18605 CLASS="PARAMETER"
18606 ><I
18607 >               password server</I
18608 ></TT
18609 ></A
18610 > (if you have one). The password 
18611                 server will receive whatever username the client supplies without 
18612                 modification.</P
18613 ><P
18614 >Also note that no reverse mapping is done. The main effect 
18615                 this has is with printing. Users who have been mapped may have 
18616                 trouble deleting print jobs as PrintManager under WfWg will think 
18617                 they don't own the print job.</P
18618 ><P
18619 >Default: <SPAN
18620 CLASS="emphasis"
18621 ><I
18622 CLASS="EMPHASIS"
18623 >no username map</I
18624 ></SPAN
18625 ></P
18626 ><P
18627 >Example: <B
18628 CLASS="COMMAND"
18629 >username map = /usr/local/samba/lib/users.map
18630                 </B
18631 ></P
18632 ></DD
18633 ><DT
18634 ><A
18635 NAME="UTMP"
18636 ></A
18637 >utmp (G)</DT
18638 ><DD
18639 ><P
18640 >This boolean parameter is only available if 
18641                 Samba has been configured and compiled  with the option <B
18642 CLASS="COMMAND"
18643 >               --with-utmp</B
18644 >. If set to <TT
18645 CLASS="CONSTANT"
18646 >true</TT
18647 > then Samba will attempt
18648                 to add utmp or utmpx records (depending on the UNIX system) whenever a
18649                 connection is made to a Samba server. Sites may use this to record the
18650                 user connecting to a Samba share.</P
18651 ><P
18652 >Due to the requirements of the utmp record, we
18653                 are required to create a unique identifier for the
18654                 incoming user.  Enabling this option creates an n^2
18655                 algorithm to find this number.  This may impede
18656                 performance on large installations. </P
18657 ><P
18658 >See also the <A
18659 HREF="index.html#UTMPDIRECTORY"
18660 ><TT
18661 CLASS="PARAMETER"
18662 ><I
18663 >               utmp directory</I
18664 ></TT
18665 ></A
18666 > parameter.</P
18667 ><P
18668 >Default: <B
18669 CLASS="COMMAND"
18670 >utmp = no</B
18671 ></P
18672 ></DD
18673 ><DT
18674 ><A
18675 NAME="UTMPDIRECTORY"
18676 ></A
18677 >utmp directory(G)</DT
18678 ><DD
18679 ><P
18680 >This parameter is only available if Samba has 
18681                 been configured and compiled with the option <B
18682 CLASS="COMMAND"
18683 >               --with-utmp</B
18684 >. It specifies a directory pathname that is
18685                 used to store the utmp or utmpx files (depending on the UNIX system) that
18686                 record user connections to a Samba server. See also the <A
18687 HREF="index.html#UTMP"
18688 >               <TT
18689 CLASS="PARAMETER"
18690 ><I
18691 >utmp</I
18692 ></TT
18693 ></A
18694 > parameter. By default this is 
18695                 not set, meaning the system will use whatever utmp file the 
18696                 native system is set to use (usually 
18697                 <TT
18698 CLASS="FILENAME"
18699 >/var/run/utmp</TT
18700 > on Linux).</P
18701 ><P
18702 >Default: <SPAN
18703 CLASS="emphasis"
18704 ><I
18705 CLASS="EMPHASIS"
18706 >no utmp directory</I
18707 ></SPAN
18708 ></P
18709 ><P
18710 >Example: <B
18711 CLASS="COMMAND"
18712 >utmp directory = /var/run/utmp</B
18713 ></P
18714 ></DD
18715 ><DT
18716 ><A
18717 NAME="WTMPDIRECTORY"
18718 ></A
18719 >wtmp directory(G)</DT
18720 ><DD
18721 ><P
18722 >This parameter is only available if Samba has 
18723                 been configured and compiled with the option <B
18724 CLASS="COMMAND"
18725 >               --with-utmp</B
18726 >. It specifies a directory pathname that is
18727                 used to store the wtmp or wtmpx files (depending on the UNIX system) that
18728                 record user connections to a Samba server. The difference with
18729                 the utmp directory is the fact that user info is kept after a user 
18730                 has logged out.
18731                 
18732                 See also the <A
18733 HREF="index.html#UTMP"
18734 >               <TT
18735 CLASS="PARAMETER"
18736 ><I
18737 >utmp</I
18738 ></TT
18739 ></A
18740 > parameter. By default this is 
18741                 not set, meaning the system will use whatever utmp file the 
18742                 native system is set to use (usually 
18743                 <TT
18744 CLASS="FILENAME"
18745 >/var/run/wtmp</TT
18746 > on Linux).</P
18747 ><P
18748 >Default: <SPAN
18749 CLASS="emphasis"
18750 ><I
18751 CLASS="EMPHASIS"
18752 >no wtmp directory</I
18753 ></SPAN
18754 ></P
18755 ><P
18756 >Example: <B
18757 CLASS="COMMAND"
18758 >wtmp directory = /var/log/wtmp</B
18759 ></P
18760 ></DD
18761 ><DT
18762 ><A
18763 NAME="VALIDUSERS"
18764 ></A
18765 >valid users (S)</DT
18766 ><DD
18767 ><P
18768 >This is a list of users that should be allowed 
18769                 to login to this service. Names starting with '@', '+' and  '&#38;'
18770                 are interpreted using the same rules as described in the 
18771                 <TT
18772 CLASS="PARAMETER"
18773 ><I
18774 >invalid users</I
18775 ></TT
18776 > parameter.</P
18777 ><P
18778 >If this is empty (the default) then any user can login. 
18779                 If a username is in both this list and the <TT
18780 CLASS="PARAMETER"
18781 ><I
18782 >invalid 
18783                 users</I
18784 ></TT
18785 > list then access is denied for that user.</P
18786 ><P
18787 >The current servicename is substituted for <TT
18788 CLASS="PARAMETER"
18789 ><I
18790 >%S
18791                 </I
18792 ></TT
18793 >. This is useful in the [homes] section.</P
18794 ><P
18795 >See also <A
18796 HREF="index.html#INVALIDUSERS"
18797 ><TT
18798 CLASS="PARAMETER"
18799 ><I
18800 >invalid users
18801                 </I
18802 ></TT
18803 ></A
18804 ></P
18805 ><P
18806 >Default: <SPAN
18807 CLASS="emphasis"
18808 ><I
18809 CLASS="EMPHASIS"
18810 >No valid users list (anyone can login)
18811                 </I
18812 ></SPAN
18813 ></P
18814 ><P
18815 >Example: <B
18816 CLASS="COMMAND"
18817 >valid users = greg, @pcusers</B
18818 ></P
18819 ></DD
18820 ><DT
18821 ><A
18822 NAME="VETOFILES"
18823 ></A
18824 >veto files(S)</DT
18825 ><DD
18826 ><P
18827 >This is a list of files and directories that 
18828                 are neither visible nor accessible.  Each entry in the list must 
18829                 be separated by a '/', which allows spaces to be included 
18830                 in the entry. '*' and '?' can be used to specify multiple files 
18831                 or directories as in DOS wildcards.</P
18832 ><P
18833 >Each entry must be a unix path, not a DOS path and 
18834                 must <SPAN
18835 CLASS="emphasis"
18836 ><I
18837 CLASS="EMPHASIS"
18838 >not</I
18839 ></SPAN
18840 > include the  unix directory 
18841                 separator '/'.</P
18842 ><P
18843 >Note that the <TT
18844 CLASS="PARAMETER"
18845 ><I
18846 >case sensitive</I
18847 ></TT
18848 > option 
18849                 is applicable in vetoing files.</P
18850 ><P
18851 >One feature of the veto files parameter that it
18852                 is important to be aware of is Samba's behaviour when
18853                 trying to delete a directory. If a directory that is
18854                 to be deleted contains nothing but veto files this
18855                 deletion will <SPAN
18856 CLASS="emphasis"
18857 ><I
18858 CLASS="EMPHASIS"
18859 >fail</I
18860 ></SPAN
18861 > unless you also set
18862                 the <TT
18863 CLASS="PARAMETER"
18864 ><I
18865 >delete veto files</I
18866 ></TT
18867 > parameter to
18868                 <TT
18869 CLASS="PARAMETER"
18870 ><I
18871 >yes</I
18872 ></TT
18873 >.</P
18874 ><P
18875 >Setting this parameter will affect the performance 
18876                 of Samba, as it will be forced to check all files and directories 
18877                 for a match as they are scanned.</P
18878 ><P
18879 >See also <A
18880 HREF="index.html#HIDEFILES"
18881 ><TT
18882 CLASS="PARAMETER"
18883 ><I
18884 >hide files
18885                 </I
18886 ></TT
18887 ></A
18888 > and <A
18889 HREF="index.html#CASESENSITIVE"
18890 ><TT
18891 CLASS="PARAMETER"
18892 ><I
18893 >               case sensitive</I
18894 ></TT
18895 ></A
18896 >.</P
18897 ><P
18898 >Default: <SPAN
18899 CLASS="emphasis"
18900 ><I
18901 CLASS="EMPHASIS"
18902 >No files or directories are vetoed.
18903                 </I
18904 ></SPAN
18905 ></P
18906 ><P
18907 >Examples:<PRE
18908 CLASS="PROGRAMLISTING"
18909 >; Veto any files containing the word Security, 
18910 ; any ending in .tmp, and any directory containing the
18911 ; word root.
18912 veto files = /*Security*/*.tmp/*root*/
18913
18914 ; Veto the Apple specific files that a NetAtalk server
18915 ; creates.
18916 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/</PRE
18917 ></P
18918 ></DD
18919 ><DT
18920 ><A
18921 NAME="VETOOPLOCKFILES"
18922 ></A
18923 >veto oplock files (S)</DT
18924 ><DD
18925 ><P
18926 >This parameter is only valid when the <A
18927 HREF="index.html#OPLOCKS"
18928 ><TT
18929 CLASS="PARAMETER"
18930 ><I
18931 >oplocks</I
18932 ></TT
18933 ></A
18934 >
18935                 parameter is turned on for a share. It allows the Samba administrator
18936                 to selectively turn off the granting of oplocks on selected files that
18937                 match a wildcarded list, similar to the wildcarded list used in the
18938                 <A
18939 HREF="index.html#VETOFILES"
18940 ><TT
18941 CLASS="PARAMETER"
18942 ><I
18943 >veto files</I
18944 ></TT
18945 ></A
18946
18947                 parameter.</P
18948 ><P
18949 >Default: <SPAN
18950 CLASS="emphasis"
18951 ><I
18952 CLASS="EMPHASIS"
18953 >No files are vetoed for oplock 
18954                 grants</I
18955 ></SPAN
18956 ></P
18957 ><P
18958 >You might want to do this on files that you know will 
18959                 be heavily contended for by clients. A good example of this 
18960                 is in the NetBench SMB benchmark program, which causes heavy 
18961                 client contention for files ending in <TT
18962 CLASS="FILENAME"
18963 >.SEM</TT
18964 >. 
18965                 To cause Samba not to grant oplocks on these files you would use 
18966                 the line (either in the [global] section or in the section for 
18967                 the particular NetBench share :</P
18968 ><P
18969 >Example: <B
18970 CLASS="COMMAND"
18971 >veto oplock files = /*.SEM/
18972                 </B
18973 ></P
18974 ></DD
18975 ><DT
18976 ><A
18977 NAME="VFSPATH"
18978 ></A
18979 >vfs path (S)</DT
18980 ><DD
18981 ><P
18982 >This parameter specifies the directory
18983                 to look in for vfs modules. The name of every <B
18984 CLASS="COMMAND"
18985 >vfs object
18986                 </B
18987 > will be prepended by this directory
18988                 </P
18989 ><P
18990 >Default: <B
18991 CLASS="COMMAND"
18992 >vfs path = </B
18993 ></P
18994 ><P
18995 >Example: <B
18996 CLASS="COMMAND"
18997 >vfs path = /usr/lib/samba/vfs</B
18998 ></P
18999 ></DD
19000 ><DT
19001 ><A
19002 NAME="VFSOBJECT"
19003 ></A
19004 >vfs object (S)</DT
19005 ><DD
19006 ><P
19007 >This parameter specifies a shared object file that 
19008                 is used for Samba VFS I/O operations.  By default, normal 
19009                 disk I/O operations are used but these can be overloaded 
19010                 with a VFS object.  The Samba VFS layer is new to Samba 2.2 and 
19011                 must be enabled at compile time with --with-vfs.</P
19012 ><P
19013 >Default : <SPAN
19014 CLASS="emphasis"
19015 ><I
19016 CLASS="EMPHASIS"
19017 >no value</I
19018 ></SPAN
19019 ></P
19020 ></DD
19021 ><DT
19022 ><A
19023 NAME="VFSOPTIONS"
19024 ></A
19025 >vfs options (S)</DT
19026 ><DD
19027 ><P
19028 >This parameter allows parameters to be passed 
19029                 to the vfs layer at initialization time.  The Samba VFS layer 
19030                 is new to Samba 2.2 and must be enabled at compile time 
19031                 with --with-vfs.  See also <A
19032 HREF="index.html#VFSOBJECT"
19033 ><TT
19034 CLASS="PARAMETER"
19035 ><I
19036 >               vfs object</I
19037 ></TT
19038 ></A
19039 >.</P
19040 ><P
19041 >Default : <SPAN
19042 CLASS="emphasis"
19043 ><I
19044 CLASS="EMPHASIS"
19045 >no value</I
19046 ></SPAN
19047 ></P
19048 ></DD
19049 ><DT
19050 ><A
19051 NAME="VOLUME"
19052 ></A
19053 >volume (S)</DT
19054 ><DD
19055 ><P
19056 > This allows you to override the volume label 
19057                 returned for a share. Useful for CDROMs with installation programs 
19058                 that insist on a particular volume label.</P
19059 ><P
19060 >Default: <SPAN
19061 CLASS="emphasis"
19062 ><I
19063 CLASS="EMPHASIS"
19064 >the name of the share</I
19065 ></SPAN
19066 ></P
19067 ></DD
19068 ><DT
19069 ><A
19070 NAME="WIDELINKS"
19071 ></A
19072 >wide links (S)</DT
19073 ><DD
19074 ><P
19075 >This parameter controls whether or not links 
19076                 in the UNIX file system may be followed by the server. Links 
19077                 that point to areas within the directory tree exported by the 
19078                 server are always allowed; this parameter controls access only 
19079                 to areas that are outside the directory tree being exported.</P
19080 ><P
19081 >Note that setting this parameter can have a negative 
19082                 effect on your server performance due to the extra system calls 
19083                 that Samba has to  do in order to perform the link checks.</P
19084 ><P
19085 >Default: <B
19086 CLASS="COMMAND"
19087 >wide links = yes</B
19088 ></P
19089 ></DD
19090 ><DT
19091 ><A
19092 NAME="WINBINDCACHETIME"
19093 ></A
19094 >winbind cache time (G)</DT
19095 ><DD
19096 ><P
19097 >This parameter specifies the number of seconds the
19098                 <A
19099 HREF="winbindd.8.html"
19100 TARGET="_top"
19101 >winbindd(8)</A
19102 > daemon will cache 
19103                 user and group information before querying a Windows NT server 
19104                 again.</P
19105 ><P
19106 >Default: <B
19107 CLASS="COMMAND"
19108 >winbind cache type = 15</B
19109 ></P
19110 ></DD
19111 ><DT
19112 ><A
19113 NAME="WINBINDENUMUSERS"
19114 ></A
19115 >winbind enum users (G)</DT
19116 ><DD
19117 ><P
19118 >On large installations using
19119                 <A
19120 HREF="winbindd.8.html"
19121 TARGET="_top"
19122 >winbindd(8)</A
19123 > it may be
19124                 necessary to suppress the enumeration of users through the
19125                 <B
19126 CLASS="COMMAND"
19127 > setpwent()</B
19128 >,
19129                 <B
19130 CLASS="COMMAND"
19131 >getpwent()</B
19132 > and
19133                 <B
19134 CLASS="COMMAND"
19135 >endpwent()</B
19136 > group of system calls.  If
19137                 the <TT
19138 CLASS="PARAMETER"
19139 ><I
19140 >winbind enum users</I
19141 ></TT
19142 > parameter is
19143                 false, calls to the <B
19144 CLASS="COMMAND"
19145 >getpwent</B
19146 > system call
19147                 will not return any data. </P
19148 ><P
19149 ><SPAN
19150 CLASS="emphasis"
19151 ><I
19152 CLASS="EMPHASIS"
19153 >Warning:</I
19154 ></SPAN
19155 > Turning off user
19156                 enumeration may cause some programs to behave oddly.  For
19157                 example, the finger program relies on having access to the
19158                 full user list when searching for matching
19159                 usernames. </P
19160 ><P
19161 >Default: <B
19162 CLASS="COMMAND"
19163 >winbind enum users = yes </B
19164 ></P
19165 ></DD
19166 ><DT
19167 ><A
19168 NAME="WINBINDENUMGROUPS"
19169 ></A
19170 >winbind enum groups (G)</DT
19171 ><DD
19172 ><P
19173 >On large installations using
19174                 <A
19175 HREF="winbindd.8.html"
19176 TARGET="_top"
19177 >winbindd(8)</A
19178 > it may be
19179                 necessary to suppress the enumeration of groups through the
19180                 <B
19181 CLASS="COMMAND"
19182 > setgrent()</B
19183 >,
19184                 <B
19185 CLASS="COMMAND"
19186 >getgrent()</B
19187 > and
19188                 <B
19189 CLASS="COMMAND"
19190 >endgrent()</B
19191 > group of system calls.  If
19192                 the <TT
19193 CLASS="PARAMETER"
19194 ><I
19195 >winbind enum groups</I
19196 ></TT
19197 > parameter is
19198                 false, calls to the <B
19199 CLASS="COMMAND"
19200 >getgrent()</B
19201 > system
19202                 call will not return any data. </P
19203 ><P
19204 ><SPAN
19205 CLASS="emphasis"
19206 ><I
19207 CLASS="EMPHASIS"
19208 >Warning:</I
19209 ></SPAN
19210 > Turning off group
19211                 enumeration may cause some programs to behave oddly.
19212                 </P
19213 ><P
19214 >Default: <B
19215 CLASS="COMMAND"
19216 >winbind enum groups = yes </B
19217 >
19218                 </P
19219 ></DD
19220 ><DT
19221 ><A
19222 NAME="WINBINDGID"
19223 ></A
19224 >winbind gid (G)</DT
19225 ><DD
19226 ><P
19227 >The winbind gid parameter specifies the range of group 
19228                 ids that are allocated by the <A
19229 HREF="winbindd.8.html"
19230 TARGET="_top"
19231 >               winbindd(8)</A
19232 > daemon.  This range of group ids should have no 
19233                 existing local or NIS groups within it as strange conflicts can 
19234                 occur otherwise.</P
19235 ><P
19236 >Default: <B
19237 CLASS="COMMAND"
19238 >winbind gid = &lt;empty string&gt;
19239                 </B
19240 ></P
19241 ><P
19242 >Example: <B
19243 CLASS="COMMAND"
19244 >winbind gid = 10000-20000</B
19245 ></P
19246 ></DD
19247 ><DT
19248 ><A
19249 NAME="WINBINDSEPARATOR"
19250 ></A
19251 >winbind separator (G)</DT
19252 ><DD
19253 ><P
19254 >This parameter allows an admin to define the character 
19255                 used when listing a username of the form of <TT
19256 CLASS="REPLACEABLE"
19257 ><I
19258 >DOMAIN
19259                 </I
19260 ></TT
19261 >\<TT
19262 CLASS="REPLACEABLE"
19263 ><I
19264 >user</I
19265 ></TT
19266 >.  This parameter 
19267                 is only applicable when using the <TT
19268 CLASS="FILENAME"
19269 >pam_winbind.so</TT
19270 >
19271                 and <TT
19272 CLASS="FILENAME"
19273 >nss_winbind.so</TT
19274 > modules for UNIX services.
19275                 </P
19276 ><P
19277 >Please note that setting this parameter to + causes problems
19278                 with group membership at least on glibc systems, as the character +
19279                 is used as a special character for NIS in /etc/group.</P
19280 ><P
19281 >Default: <B
19282 CLASS="COMMAND"
19283 >winbind separator = '\'</B
19284 ></P
19285 ><P
19286 >Example: <B
19287 CLASS="COMMAND"
19288 >winbind separator = +</B
19289 ></P
19290 ></DD
19291 ><DT
19292 ><A
19293 NAME="WINBINDUID"
19294 ></A
19295 >winbind uid (G)</DT
19296 ><DD
19297 ><P
19298 >The winbind gid parameter specifies the range of group 
19299                 ids that are allocated by the <A
19300 HREF="winbindd.8.html"
19301 TARGET="_top"
19302 >               winbindd(8)</A
19303 > daemon.  This range of ids should have no 
19304                 existing local or NIS users within it as strange conflicts can 
19305                 occur otherwise.</P
19306 ><P
19307 >Default: <B
19308 CLASS="COMMAND"
19309 >winbind uid = &lt;empty string&gt;
19310                 </B
19311 ></P
19312 ><P
19313 >Example: <B
19314 CLASS="COMMAND"
19315 >winbind uid = 10000-20000</B
19316 ></P
19317 ></DD
19318 ><DT
19319 >winbind use default domain, <A
19320 NAME="WINBINDUSEDEFAULTDOMAIN"
19321 ></A
19322 >winbind use default domain</DT
19323 ><DD
19324 ><P
19325 >This parameter specifies whether the <A
19326 HREF="winbindd.8.html"
19327 TARGET="_top"
19328 >               winbindd(8)</A
19329 >
19330                 daemon should operate on users without domain component in their username.  
19331                 Users without a domain component are treated as is part of the winbindd server's 
19332                 own domain.  While this does not benifit Windows users, it makes SSH, FTP and e-mail 
19333                 function in a way much closer to the way they would in a native unix system.</P
19334 ><P
19335 >Default: <B
19336 CLASS="COMMAND"
19337 >winbind use default domain = &lt;falseg&gt; 
19338                 </B
19339 ></P
19340 ><P
19341 >Example: <B
19342 CLASS="COMMAND"
19343 >winbind use default domain = true</B
19344 ></P
19345 ></DD
19346 ><DT
19347 ><A
19348 NAME="WINSHOOK"
19349 ></A
19350 >wins hook (G)</DT
19351 ><DD
19352 ><P
19353 >When Samba is running as a WINS server this 
19354                 allows you to call an external program for all changes to the 
19355                 WINS database. The primary use for this option is to allow the 
19356                 dynamic update of external name resolution databases such as 
19357                 dynamic DNS.</P
19358 ><P
19359 >The wins hook parameter specifies the name of a script 
19360                 or executable that will be called as follows:</P
19361 ><P
19362 ><B
19363 CLASS="COMMAND"
19364 >wins_hook operation name nametype ttl IP_list
19365                 </B
19366 ></P
19367 ><P
19368 ></P
19369 ><UL
19370 ><LI
19371 ><P
19372 >The first argument is the operation and is one 
19373                         of "add", "delete", or "refresh". In most cases the operation can 
19374                         be ignored as the rest of the parameters provide sufficient 
19375                         information. Note that "refresh" may sometimes be called when the 
19376                         name has not previously been added, in that case it should be treated 
19377                         as an add.</P
19378 ></LI
19379 ><LI
19380 ><P
19381 >The second argument is the NetBIOS name. If the 
19382                         name is not a legal name then the wins hook is not called. 
19383                         Legal names contain only  letters, digits, hyphens, underscores 
19384                         and periods.</P
19385 ></LI
19386 ><LI
19387 ><P
19388 >The third argument is the NetBIOS name 
19389                         type as a 2 digit hexadecimal number. </P
19390 ></LI
19391 ><LI
19392 ><P
19393 >The fourth argument is the TTL (time to live) 
19394                         for the name in seconds.</P
19395 ></LI
19396 ><LI
19397 ><P
19398 >The fifth and subsequent arguments are the IP 
19399                         addresses currently registered for that name. If this list is 
19400                         empty then the name should be deleted.</P
19401 ></LI
19402 ></UL
19403 ><P
19404 >An example script that calls the BIND dynamic DNS update 
19405                 program <B
19406 CLASS="COMMAND"
19407 >nsupdate</B
19408 > is provided in the examples 
19409                 directory of the Samba source code. </P
19410 ></DD
19411 ><DT
19412 ><A
19413 NAME="WINSPROXY"
19414 ></A
19415 >wins proxy (G)</DT
19416 ><DD
19417 ><P
19418 >This is a boolean that controls if <A
19419 HREF="nmbd.8.html"
19420 TARGET="_top"
19421 >nmbd(8)</A
19422 > will respond to broadcast name 
19423                 queries on behalf of  other hosts. You may need to set this 
19424                 to <TT
19425 CLASS="CONSTANT"
19426 >yes</TT
19427 > for some older clients.</P
19428 ><P
19429 >Default: <B
19430 CLASS="COMMAND"
19431 >wins proxy = no</B
19432 ></P
19433 ></DD
19434 ><DT
19435 ><A
19436 NAME="WINSSERVER"
19437 ></A
19438 >wins server (G)</DT
19439 ><DD
19440 ><P
19441 >This specifies the IP address (or DNS name: IP 
19442                 address for preference) of the WINS server that <A
19443 HREF="nmbd.8.html"
19444 TARGET="_top"
19445 >               nmbd(8)</A
19446 > should register with. If you have a WINS server on 
19447                 your network then you should set this to the WINS server's IP.</P
19448 ><P
19449 >You should point this at your WINS server if you have a
19450                 multi-subnetted network.</P
19451 ><P
19452 ><SPAN
19453 CLASS="emphasis"
19454 ><I
19455 CLASS="EMPHASIS"
19456 >NOTE</I
19457 ></SPAN
19458 >. You need to set up Samba to point 
19459                 to a WINS server if you have multiple subnets and wish cross-subnet 
19460                 browsing to work correctly.</P
19461 ><P
19462 >See the documentation file <TT
19463 CLASS="FILENAME"
19464 >BROWSING.txt</TT
19465
19466                 in the docs/ directory of your Samba source distribution.</P
19467 ><P
19468 >Default: <SPAN
19469 CLASS="emphasis"
19470 ><I
19471 CLASS="EMPHASIS"
19472 >not enabled</I
19473 ></SPAN
19474 ></P
19475 ><P
19476 >Example: <B
19477 CLASS="COMMAND"
19478 >wins server = 192.9.200.1</B
19479 ></P
19480 ></DD
19481 ><DT
19482 ><A
19483 NAME="WINSSUPPORT"
19484 ></A
19485 >wins support (G)</DT
19486 ><DD
19487 ><P
19488 >This boolean controls if the <A
19489 HREF="nmbd.8.html"
19490 TARGET="_top"
19491 >               
19492                 nmbd(8)</A
19493 > process in Samba will act as a WINS server. You should 
19494                 not set this to <TT
19495 CLASS="CONSTANT"
19496 >true</TT
19497 > unless you have a multi-subnetted network and 
19498                 you wish a particular <B
19499 CLASS="COMMAND"
19500 >nmbd</B
19501 > to be your WINS server. 
19502                 Note that you should <SPAN
19503 CLASS="emphasis"
19504 ><I
19505 CLASS="EMPHASIS"
19506 >NEVER</I
19507 ></SPAN
19508 > set this to <TT
19509 CLASS="CONSTANT"
19510 >true</TT
19511 >
19512                 on more than one machine in your network.</P
19513 ><P
19514 >Default: <B
19515 CLASS="COMMAND"
19516 >wins support = no</B
19517 ></P
19518 ></DD
19519 ><DT
19520 ><A
19521 NAME="WORKGROUP"
19522 ></A
19523 >workgroup (G)</DT
19524 ><DD
19525 ><P
19526 >This controls what workgroup your server will 
19527                 appear to be in when queried by clients. Note that this parameter 
19528                 also controls the Domain name used with the <A
19529 HREF="index.html#SECURITYEQUALSDOMAIN"
19530 ><B
19531 CLASS="COMMAND"
19532 >security = domain</B
19533 ></A
19534 >
19535                 setting.</P
19536 ><P
19537 >Default: <SPAN
19538 CLASS="emphasis"
19539 ><I
19540 CLASS="EMPHASIS"
19541 >set at compile time to WORKGROUP</I
19542 ></SPAN
19543 ></P
19544 ><P
19545 >Example: <B
19546 CLASS="COMMAND"
19547 >workgroup = MYGROUP</B
19548 ></P
19549 ></DD
19550 ><DT
19551 ><A
19552 NAME="WRITABLE"
19553 ></A
19554 >writable (S)</DT
19555 ><DD
19556 ><P
19557 >Synonym for <A
19558 HREF="index.html#WRITEABLE"
19559 ><TT
19560 CLASS="PARAMETER"
19561 ><I
19562 >               writeable</I
19563 ></TT
19564 ></A
19565 > for people who can't spell :-).</P
19566 ></DD
19567 ><DT
19568 ><A
19569 NAME="WRITECACHESIZE"
19570 ></A
19571 >write cache size (S)</DT
19572 ><DD
19573 ><P
19574 >If this integer parameter is set to non-zero value,
19575                 Samba will create an in-memory cache for each oplocked file 
19576                 (it does <SPAN
19577 CLASS="emphasis"
19578 ><I
19579 CLASS="EMPHASIS"
19580 >not</I
19581 ></SPAN
19582 > do this for 
19583                 non-oplocked files). All writes that the client does not request 
19584                 to be flushed directly to disk will be stored in this cache if possible. 
19585                 The cache is flushed onto disk when a write comes in whose offset 
19586                 would not fit into the cache or when the file is closed by the client. 
19587                 Reads for the file are also served from this cache if the data is stored 
19588                 within it.</P
19589 ><P
19590 >This cache allows Samba to batch client writes into a more 
19591                 efficient write size for RAID disks (i.e. writes may be tuned to 
19592                 be the RAID stripe size) and can improve performance on systems 
19593                 where the disk subsystem is a bottleneck but there is free 
19594                 memory for userspace programs.</P
19595 ><P
19596 >The integer parameter specifies the size of this cache 
19597                 (per oplocked file) in bytes.</P
19598 ><P
19599 >Default: <B
19600 CLASS="COMMAND"
19601 >write cache size = 0</B
19602 ></P
19603 ><P
19604 >Example: <B
19605 CLASS="COMMAND"
19606 >write cache size = 262144</B
19607 ></P
19608 ><P
19609 >for a 256k cache size per file.</P
19610 ></DD
19611 ><DT
19612 ><A
19613 NAME="WRITELIST"
19614 ></A
19615 >write list (S)</DT
19616 ><DD
19617 ><P
19618 >This is a list of users that are given read-write 
19619                 access to a service. If the connecting user is in this list then 
19620                 they will be given write access, no matter what the <A
19621 HREF="index.html#WRITEABLE"
19622 ><TT
19623 CLASS="PARAMETER"
19624 ><I
19625 >writeable</I
19626 ></TT
19627 ></A
19628 >
19629                 option is set to. The list can include group names using the 
19630                 @group syntax.</P
19631 ><P
19632 >Note that if a user is in both the read list and the 
19633                 write list then they will be given write access.</P
19634 ><P
19635 >See also the <A
19636 HREF="index.html#READLIST"
19637 ><TT
19638 CLASS="PARAMETER"
19639 ><I
19640 >read list
19641                 </I
19642 ></TT
19643 ></A
19644 > option.</P
19645 ><P
19646 >Default: <B
19647 CLASS="COMMAND"
19648 >write list = &lt;empty string&gt;
19649                 </B
19650 ></P
19651 ><P
19652 >Example: <B
19653 CLASS="COMMAND"
19654 >write list = admin, root, @staff
19655                 </B
19656 ></P
19657 ></DD
19658 ><DT
19659 ><A
19660 NAME="WINSPARTNERS"
19661 ></A
19662 >wins partners (G)</DT
19663 ><DD
19664 ><P
19665 >A space separated list of partners' IP addresses for 
19666                 WINS replication. WINS partners are always defined as push/pull 
19667                 partners as defining only one way WINS replication is unreliable. 
19668                 WINS replication is currently experimental and unreliable between 
19669                 samba servers.
19670                 </P
19671 ><P
19672 >Default: <B
19673 CLASS="COMMAND"
19674 >wins partners = </B
19675 ></P
19676 ><P
19677 >Example: <B
19678 CLASS="COMMAND"
19679 >wins partners = 192.168.0.1 172.16.1.2</B
19680 ></P
19681 ></DD
19682 ><DT
19683 ><A
19684 NAME="WRITEOK"
19685 ></A
19686 >write ok (S)</DT
19687 ><DD
19688 ><P
19689 >Synonym for <A
19690 HREF="index.html#WRITEABLE"
19691 ><TT
19692 CLASS="PARAMETER"
19693 ><I
19694 >               writeable</I
19695 ></TT
19696 ></A
19697 >.</P
19698 ></DD
19699 ><DT
19700 ><A
19701 NAME="WRITERAW"
19702 ></A
19703 >write raw (G)</DT
19704 ><DD
19705 ><P
19706 >This parameter controls whether or not the server 
19707                 will support raw write SMB's when transferring data from clients. 
19708                 You should never need to change this parameter.</P
19709 ><P
19710 >Default: <B
19711 CLASS="COMMAND"
19712 >write raw = yes</B
19713 ></P
19714 ></DD
19715 ><DT
19716 ><A
19717 NAME="WRITEABLE"
19718 ></A
19719 >writeable (S)</DT
19720 ><DD
19721 ><P
19722 >An inverted synonym is <A
19723 HREF="index.html#READONLY"
19724 >               <TT
19725 CLASS="PARAMETER"
19726 ><I
19727 >read only</I
19728 ></TT
19729 ></A
19730 >.</P
19731 ><P
19732 >If this parameter is <TT
19733 CLASS="CONSTANT"
19734 >no</TT
19735 >, then users 
19736                 of a service may not create or modify files in the service's 
19737                 directory.</P
19738 ><P
19739 >Note that a printable service (<B
19740 CLASS="COMMAND"
19741 >printable = yes</B
19742 >)
19743                 will <SPAN
19744 CLASS="emphasis"
19745 ><I
19746 CLASS="EMPHASIS"
19747 >ALWAYS</I
19748 ></SPAN
19749 > allow writing to the directory 
19750                 (user privileges permitting), but only via spooling operations.</P
19751 ><P
19752 >Default: <B
19753 CLASS="COMMAND"
19754 >writeable = no</B
19755 ></P
19756 ></DD
19757 ></DL
19758 ></DIV
19759 ></DIV
19760 ><DIV
19761 CLASS="REFSECT1"
19762 ><A
19763 NAME="AEN6109"
19764 ></A
19765 ><H2
19766 >WARNINGS</H2
19767 ><P
19768 >Although the configuration file permits service names 
19769         to contain spaces, your client software may not. Spaces will 
19770         be ignored in comparisons anyway, so it shouldn't be a 
19771         problem - but be aware of the possibility.</P
19772 ><P
19773 >On a similar note, many clients - especially DOS clients - 
19774         limit service names to eight characters. <A
19775 HREF="smbd.8.html"
19776 TARGET="_top"
19777 >smbd(8)
19778         </A
19779 > has no such limitation, but attempts to connect from such 
19780         clients will fail if they truncate the service names.  For this reason 
19781         you should probably keep your service names down to eight characters 
19782         in length.</P
19783 ><P
19784 >Use of the [homes] and [printers] special sections make life 
19785         for an administrator easy, but the various combinations of default 
19786         attributes can be tricky. Take extreme care when designing these 
19787         sections. In particular, ensure that the permissions on spool 
19788         directories are correct.</P
19789 ></DIV
19790 ><DIV
19791 CLASS="REFSECT1"
19792 ><A
19793 NAME="AEN6115"
19794 ></A
19795 ><H2
19796 >VERSION</H2
19797 ><P
19798 >This man page is correct for version 2.2 of 
19799         the Samba suite.</P
19800 ></DIV
19801 ><DIV
19802 CLASS="REFSECT1"
19803 ><A
19804 NAME="AEN6118"
19805 ></A
19806 ><H2
19807 >SEE ALSO</H2
19808 ><P
19809 ><A
19810 HREF="samba.7.html"
19811 TARGET="_top"
19812 >samba(7)</A
19813 >,
19814         <A
19815 HREF="smbpasswd.8.html"
19816 TARGET="_top"
19817 ><B
19818 CLASS="COMMAND"
19819 >smbpasswd(8)</B
19820 ></A
19821 >,
19822         <A
19823 HREF="swat.8.html"
19824 TARGET="_top"
19825 ><B
19826 CLASS="COMMAND"
19827 >swat(8)</B
19828 ></A
19829 >,
19830         <A
19831 HREF="smbd.8.html"
19832 TARGET="_top"
19833 ><B
19834 CLASS="COMMAND"
19835 >smbd(8)</B
19836 ></A
19837 >, 
19838         <A
19839 HREF="nmbd.8.html"
19840 TARGET="_top"
19841 ><B
19842 CLASS="COMMAND"
19843 >nmbd(8)</B
19844 ></A
19845 >, 
19846         <A
19847 HREF="smbclient.1.html"
19848 TARGET="_top"
19849 ><B
19850 CLASS="COMMAND"
19851 >smbclient(1)</B
19852 ></A
19853 >, 
19854         <A
19855 HREF="nmblookup.1.html"
19856 TARGET="_top"
19857 ><B
19858 CLASS="COMMAND"
19859 >nmblookup(1)</B
19860 ></A
19861 >,
19862         <A
19863 HREF="testparm.1.html"
19864 TARGET="_top"
19865 ><B
19866 CLASS="COMMAND"
19867 >testparm(1)</B
19868 ></A
19869 >, 
19870         <A
19871 HREF="testprns.1.html"
19872 TARGET="_top"
19873 ><B
19874 CLASS="COMMAND"
19875 >testprns(1)</B
19876 ></A
19877 >
19878         </P
19879 ></DIV
19880 ><DIV
19881 CLASS="REFSECT1"
19882 ><A
19883 NAME="AEN6138"
19884 ></A
19885 ><H2
19886 >AUTHOR</H2
19887 ><P
19888 >The original Samba software and related utilities 
19889         were created by Andrew Tridgell. Samba is now developed
19890         by the Samba Team as an Open Source project similar 
19891         to the way the Linux kernel is developed.</P
19892 ><P
19893 >The original Samba man pages were written by Karl Auer. 
19894         The man page sources were converted to YODL format (another 
19895         excellent piece of Open Source software, available at
19896         <A
19897 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
19898 TARGET="_top"
19899 >       ftp://ftp.icce.rug.nl/pub/unix/</A
19900 >) and updated for the Samba 2.0 
19901         release by Jeremy Allison.  The conversion to DocBook for 
19902         Samba 2.2 was done by Gerald Carter</P
19903 ></DIV
19904 ></BODY
19905 ></HTML
19906 >