This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[ira/wip.git] / docs / htmldocs / smb.conf.5.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//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 <I
127 CLASS="EMPHASIS"
128 >special sections</I
129 >. The
130         following notes apply to ordinary section descriptions.</P
131 ><P
132 >A share consists of a directory to which access is being 
133         given plus a description of the access rights which are granted 
134         to the user of the service. Some housekeeping options are 
135         also specifiable.</P
136 ><P
137 >Sections are either file share services (used by the 
138         client as an extension of their native file systems) or 
139         printable services (used by the client to access print services 
140         on the host running the server).</P
141 ><P
142 >Sections may be designated <I
143 CLASS="EMPHASIS"
144 >guest</I
145 > services,
146         in which case no password is required to access them. A specified 
147         UNIX <I
148 CLASS="EMPHASIS"
149 >guest account</I
150 > is used to define access
151         privileges in this case.</P
152 ><P
153 >Sections other than guest services will require a password 
154         to access them. The client provides the username. As older clients 
155         only provide passwords and not usernames, you may specify a list 
156         of usernames to check against the password using the "user =" 
157         option in the share definition. For modern clients such as 
158         Windows 95/98/ME/NT/2000, this should not be necessary.</P
159 ><P
160 >Note that the access rights granted by the server are 
161         masked by the access rights granted to the specified or guest 
162         UNIX user by the host system. The server does not grant more
163         access than the host system grants.</P
164 ><P
165 >The following sample section defines a file space share. 
166         The user has write access to the path <TT
167 CLASS="FILENAME"
168 >/home/bar</TT
169 >. 
170         The share is accessed via the share name "foo":</P
171 ><TABLE
172 BORDER="0"
173 BGCOLOR="#E0E0E0"
174 WIDTH="100%"
175 ><TR
176 ><TD
177 ><PRE
178 CLASS="SCREEN"
179 >       <TT
180 CLASS="COMPUTEROUTPUT"
181 >       [foo]
182                 path = /home/bar
183                 read only = no
184         </TT
185 >
186         </PRE
187 ></TD
188 ></TR
189 ></TABLE
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 <I
195 CLASS="EMPHASIS"
196 >guest ok</I
197 > parameter means 
198         access will be permitted as the default guest user (specified 
199         elsewhere):</P
200 ><TABLE
201 BORDER="0"
202 BGCOLOR="#E0E0E0"
203 WIDTH="100%"
204 ><TR
205 ><TD
206 ><PRE
207 CLASS="SCREEN"
208 >       <TT
209 CLASS="COMPUTEROUTPUT"
210 >       [aprinter]
211                 path = /usr/spool/public
212                 read only = yes
213                 printable = yes
214                 guest ok = yes
215         </TT
216 >
217         </PRE
218 ></TD
219 ></TR
220 ></TABLE
221 ></DIV
222 ><DIV
223 CLASS="REFSECT1"
224 ><A
225 NAME="AEN48"
226 ></A
227 ><H2
228 >SPECIAL SECTIONS</H2
229 ><DIV
230 CLASS="REFSECT2"
231 ><A
232 NAME="AEN50"
233 ></A
234 ><H3
235 >The [global] section</H3
236 ><P
237 >parameters in this section apply to the server 
238                 as a whole, or are defaults for sections which do not 
239                 specifically define certain items. See the notes
240                 under PARAMETERS for more information.</P
241 ></DIV
242 ><DIV
243 CLASS="REFSECT2"
244 ><A
245 NAME="AEN53"
246 ></A
247 ><H3
248 >The [homes] section</H3
249 ><P
250 >If a section called homes is included in the 
251                 configuration file, services connecting clients to their 
252                 home directories can be created on the fly by the server.</P
253 ><P
254 >When the connection request is made, the existing 
255                 sections are scanned. If a match is found, it is used. If no 
256                 match is found, the requested section name is treated as a 
257                 user name and looked up in the local password file. If the 
258                 name exists and the correct password has been given, a share is 
259                 created by cloning the [homes] section.</P
260 ><P
261 >Some modifications are then made to the newly 
262                 created share:</P
263 ><P
264 ></P
265 ><UL
266 ><LI
267 ><P
268 >The share name is changed from homes to 
269                 the located username.</P
270 ></LI
271 ><LI
272 ><P
273 >If no path was given, the path is set to
274                 the user's home directory.</P
275 ></LI
276 ></UL
277 ><P
278 >If you decide to use a <I
279 CLASS="EMPHASIS"
280 >path =</I
281 > line 
282                 in your [homes] section then you may find it useful 
283                 to use the %S macro. For example :</P
284 ><P
285 ><TT
286 CLASS="USERINPUT"
287 ><B
288 >path = /data/pchome/%S</B
289 ></TT
290 ></P
291 ><P
292 >would be useful if you have different home directories 
293                 for your PCs than for UNIX access.</P
294 ><P
295 >This is a fast and simple way to give a large number 
296                 of clients access to their home directories with a minimum 
297                 of fuss.</P
298 ><P
299 >A similar process occurs if the requested section 
300                 name is "homes", except that the share name is not 
301                 changed to that of the requesting user. This method of using
302                 the [homes] section works well if different users share 
303                 a client PC.</P
304 ><P
305 >The [homes] section can specify all the parameters 
306                 a normal service section can specify, though some make more sense 
307                 than others. The following is a typical and suitable [homes]
308                 section:</P
309 ><TABLE
310 BORDER="0"
311 BGCOLOR="#E0E0E0"
312 WIDTH="100%"
313 ><TR
314 ><TD
315 ><PRE
316 CLASS="SCREEN"
317 >               <TT
318 CLASS="COMPUTEROUTPUT"
319 >               [homes]
320                         read only = no
321                 </TT
322 >
323                 </PRE
324 ></TD
325 ></TR
326 ></TABLE
327 ><P
328 >An important point is that if guest access is specified 
329                 in the [homes] section, all home directories will be 
330                 visible to all clients <I
331 CLASS="EMPHASIS"
332 >without a password</I
333 >. 
334                 In the very unlikely event that this is actually desirable, it 
335                 would be wise to also specify <I
336 CLASS="EMPHASIS"
337 >read only
338                 access</I
339 >.</P
340 ><P
341 >Note that the <I
342 CLASS="EMPHASIS"
343 >browseable</I
344 > flag for 
345                 auto home directories will be inherited from the global browseable 
346                 flag, not the [homes] browseable flag. This is useful as 
347                 it means setting <I
348 CLASS="EMPHASIS"
349 >browseable = no</I
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 ><TABLE
410 BORDER="0"
411 BGCOLOR="#E0E0E0"
412 WIDTH="100%"
413 ><TR
414 ><TD
415 ><PRE
416 CLASS="SCREEN"
417 ><TT
418 CLASS="COMPUTEROUTPUT"
419 >               [printers]
420                         path = /usr/spool/public
421                         guest ok = yes
422                         printable = yes 
423                 </TT
424 ></PRE
425 ></TD
426 ></TR
427 ></TABLE
428 ><P
429 >All aliases given for a printer in the printcap file 
430                 are legitimate printer names as far as the server is concerned. 
431                 If your printing subsystem doesn't work like that, you will have 
432                 to set up a pseudo-printcap. This is a file consisting of one or 
433                 more lines like this:</P
434 ><TABLE
435 BORDER="0"
436 BGCOLOR="#E0E0E0"
437 WIDTH="100%"
438 ><TR
439 ><TD
440 ><PRE
441 CLASS="SCREEN"
442 >               <TT
443 CLASS="COMPUTEROUTPUT"
444 >               alias|alias|alias|alias...    
445                 </TT
446 >
447                 </PRE
448 ></TD
449 ></TR
450 ></TABLE
451 ><P
452 >Each alias should be an acceptable printer name for 
453                 your printing subsystem. In the [global] section, specify 
454                 the new file as your printcap.  The server will then only recognize 
455                 names found in your pseudo-printcap, which of course can contain 
456                 whatever aliases you like. The same technique could be used 
457                 simply to limit access to a subset of your local printers.</P
458 ><P
459 >An alias, by the way, is defined as any component of the 
460                 first entry of a printcap record. Records are separated by newlines,
461                 components (if there are more than one) are separated by vertical 
462                 bar symbols ('|').</P
463 ><P
464 >NOTE: On SYSV systems which use lpstat to determine what 
465                 printers are defined on the system you may be able to use
466                 "printcap name = lpstat" to automatically obtain a list 
467                 of printers. See the "printcap name" option 
468                 for more details.</P
469 ></DIV
470 ></DIV
471 ><DIV
472 CLASS="REFSECT1"
473 ><A
474 NAME="AEN102"
475 ></A
476 ><H2
477 >PARAMETERS</H2
478 ><P
479 >parameters define the specific attributes of sections.</P
480 ><P
481 >Some parameters are specific to the [global] section
482         (e.g., <I
483 CLASS="EMPHASIS"
484 >security</I
485 >).  Some parameters are usable 
486         in all sections (e.g., <I
487 CLASS="EMPHASIS"
488 >create mode</I
489 >). All others 
490         are permissible only in normal sections. For the purposes of the 
491         following descriptions the [homes] and [printers]
492         sections will be considered normal.  The letter <I
493 CLASS="EMPHASIS"
494 >G</I
495
496         in parentheses indicates that a parameter is specific to the
497         [global] section. The letter <I
498 CLASS="EMPHASIS"
499 >S</I
500 >
501         indicates that a parameter can be specified in a service specific
502         section. Note that all <I
503 CLASS="EMPHASIS"
504 >S</I
505 > parameters can also be specified in 
506         the [global] section - in which case they will define
507         the default behavior for all services.</P
508 ><P
509 >parameters are arranged here in alphabetical order - this may 
510         not create best bedfellows, but at least you can find them! Where
511         there are synonyms, the preferred synonym is described, others refer 
512         to the preferred synonym.</P
513 ></DIV
514 ><DIV
515 CLASS="REFSECT1"
516 ><A
517 NAME="AEN112"
518 ></A
519 ><H2
520 >VARIABLE SUBSTITUTIONS</H2
521 ><P
522 >Many of the strings that are settable in the config file 
523         can take substitutions. For example the option "path =
524         /tmp/%u" would be interpreted as "path = 
525         /tmp/john" if the user connected with the username john.</P
526 ><P
527 >These substitutions are mostly noted in the descriptions below, 
528         but there are some general substitutions which apply whenever they 
529         might be relevant. These are:</P
530 ><P
531 ></P
532 ><DIV
533 CLASS="VARIABLELIST"
534 ><DL
535 ><DT
536 >%U</DT
537 ><DD
538 ><P
539 >session user name (the user name that the client 
540                 wanted, not necessarily the same as the one they got).</P
541 ></DD
542 ><DT
543 >%G</DT
544 ><DD
545 ><P
546 >primary group name of %U.</P
547 ></DD
548 ><DT
549 >%h</DT
550 ><DD
551 ><P
552 >the Internet hostname that Samba is running 
553                 on.</P
554 ></DD
555 ><DT
556 >%m</DT
557 ><DD
558 ><P
559 >the NetBIOS name of the client machine 
560                 (very useful).</P
561 ></DD
562 ><DT
563 >%L</DT
564 ><DD
565 ><P
566 >the NetBIOS name of the server. This allows you 
567                 to change your config based on what the client calls you. Your 
568                 server can have a "dual personality".</P
569 ><P
570 >Note that this parameter is not available when Samba listens
571                 on port 445, as clients no longer send this information </P
572 ></DD
573 ><DT
574 >%M</DT
575 ><DD
576 ><P
577 >the Internet name of the client machine.
578                 </P
579 ></DD
580 ><DT
581 >%R</DT
582 ><DD
583 ><P
584 >the selected protocol level after 
585                 protocol negotiation. It can be one of CORE, COREPLUS, 
586                 LANMAN1, LANMAN2 or NT1.</P
587 ></DD
588 ><DT
589 >%d</DT
590 ><DD
591 ><P
592 >The process id of the current server
593                 process.</P
594 ></DD
595 ><DT
596 >%a</DT
597 ><DD
598 ><P
599 >the architecture of the remote
600                 machine. Only some are recognized, and those may not be 
601                 100% reliable. It currently recognizes Samba, WfWg, Win95,
602                 WinNT and Win2k. Anything else will be known as 
603                 "UNKNOWN". If it gets it wrong then sending a level 
604                 3 log to <A
605 HREF="mailto:samba@samba.org"
606 TARGET="_top"
607 >samba@samba.org
608                 </A
609 > should allow it to be fixed.</P
610 ></DD
611 ><DT
612 >%I</DT
613 ><DD
614 ><P
615 >The IP address of the client machine.</P
616 ></DD
617 ><DT
618 >%T</DT
619 ><DD
620 ><P
621 >the current date and time.</P
622 ></DD
623 ><DT
624 >%D</DT
625 ><DD
626 ><P
627 >Name of the domain or workgroup of the current user.</P
628 ></DD
629 ><DT
630 >%$(<TT
631 CLASS="REPLACEABLE"
632 ><I
633 >envvar</I
634 ></TT
635 >)</DT
636 ><DD
637 ><P
638 >The value of the environment variable
639                 <TT
640 CLASS="REPLACEABLE"
641 ><I
642 >envar</I
643 ></TT
644 >.</P
645 ></DD
646 ></DL
647 ></DIV
648 ><P
649 >The following substitutes apply only to some configuration options(only those 
650         that are used when a connection has been established):</P
651 ><P
652 ></P
653 ><DIV
654 CLASS="VARIABLELIST"
655 ><DL
656 ><DT
657 >%S</DT
658 ><DD
659 ><P
660 >the name of the current service, if any.</P
661 ></DD
662 ><DT
663 >%P</DT
664 ><DD
665 ><P
666 >the root directory of the current service, 
667                 if any.</P
668 ></DD
669 ><DT
670 >%u</DT
671 ><DD
672 ><P
673 >user name of the current service, if any.</P
674 ></DD
675 ><DT
676 >%g</DT
677 ><DD
678 ><P
679 >primary group name of %u.</P
680 ></DD
681 ><DT
682 >%H</DT
683 ><DD
684 ><P
685 >the home directory of the user given 
686                 by %u.</P
687 ></DD
688 ><DT
689 >%N</DT
690 ><DD
691 ><P
692 >the name of your NIS home directory server.  
693                 This is obtained from your NIS auto.map entry.  If you have 
694                 not compiled Samba with the <I
695 CLASS="EMPHASIS"
696 >--with-automount</I
697
698                 option then this value will be the same as %L.</P
699 ></DD
700 ><DT
701 >%p</DT
702 ><DD
703 ><P
704 >the path of the service's home directory, 
705                 obtained from your NIS auto.map entry. The NIS auto.map entry 
706                 is split up as "%N:%p".</P
707 ></DD
708 ></DL
709 ></DIV
710 ><P
711 >There are some quite creative things that can be done 
712         with these substitutions and other smb.conf options.</P
713 ></DIV
714 ><DIV
715 CLASS="REFSECT1"
716 ><A
717 NAME="AEN205"
718 ></A
719 ><H2
720 >NAME MANGLING</H2
721 ><P
722 >Samba supports "name mangling" so that DOS and 
723         Windows clients can use files that don't conform to the 8.3 format. 
724         It can also be set to adjust the case of 8.3 format filenames.</P
725 ><P
726 >There are several options that control the way mangling is 
727         performed, and they are grouped here rather than listed separately. 
728         For the defaults look at the output of the testparm program. </P
729 ><P
730 >All of these options can be set separately for each service 
731         (or globally, of course). </P
732 ><P
733 >The options are: </P
734 ><P
735 ></P
736 ><DIV
737 CLASS="VARIABLELIST"
738 ><DL
739 ><DT
740 >mangle case = yes/no</DT
741 ><DD
742 ><P
743 > controls if names that have characters that 
744                 aren't of the "default" case are mangled. For example, 
745                 if this is yes then a name like "Mail" would be mangled. 
746                 Default <I
747 CLASS="EMPHASIS"
748 >no</I
749 >.</P
750 ></DD
751 ><DT
752 >case sensitive = yes/no</DT
753 ><DD
754 ><P
755 >controls whether filenames are case sensitive. If 
756                 they aren't then Samba must do a filename search and match on passed 
757                 names. Default <I
758 CLASS="EMPHASIS"
759 >no</I
760 >.</P
761 ></DD
762 ><DT
763 >default case = upper/lower</DT
764 ><DD
765 ><P
766 >controls what the default case is for new 
767                 filenames. Default <I
768 CLASS="EMPHASIS"
769 >lower</I
770 >.</P
771 ></DD
772 ><DT
773 >preserve case = yes/no</DT
774 ><DD
775 ><P
776 >controls if new files are created with the 
777                 case that the client passes, or if they are forced to be the 
778                 "default" case. Default <I
779 CLASS="EMPHASIS"
780 >yes</I
781 >.
782                 </P
783 ></DD
784 ><DT
785 >short preserve case = yes/no</DT
786 ><DD
787 ><P
788 >controls if new files which conform to 8.3 syntax,
789                 that is all in upper case and of suitable length, are created 
790                 upper case, or if they are forced to be the "default" 
791                 case. This option can be use with "preserve case = yes" 
792                 to permit long filenames to retain their case, while short names 
793                 are lowercased. Default <I
794 CLASS="EMPHASIS"
795 >yes</I
796 >.</P
797 ></DD
798 ></DL
799 ></DIV
800 ><P
801 >By default, Samba 3.0 has the same semantics as a Windows 
802         NT server, in that it is case insensitive but case preserving.</P
803 ></DIV
804 ><DIV
805 CLASS="REFSECT1"
806 ><A
807 NAME="AEN238"
808 ></A
809 ><H2
810 >NOTE ABOUT USERNAME/PASSWORD VALIDATION</H2
811 ><P
812 >There are a number of ways in which a user can connect 
813         to a service. The server uses the following steps in determining 
814         if it will allow a connection to a specified service. If all the 
815         steps fail, then the connection request is rejected.  However, if one of the 
816         steps succeeds, then the following steps are not checked.</P
817 ><P
818 >If the service is marked "guest only = yes" and the
819         server is running with share-level security ("security = share")
820         then steps 1 to 5 are skipped.</P
821 ><P
822 ></P
823 ><OL
824 TYPE="1"
825 ><LI
826 ><P
827 >If the client has passed a username/password 
828                 pair and that username/password pair is validated by the UNIX 
829                 system's password programs then the connection is made as that 
830                 username. Note that this includes the 
831                 \\server\service%<TT
832 CLASS="REPLACEABLE"
833 ><I
834 >username</I
835 ></TT
836 > method of passing 
837                 a username.</P
838 ></LI
839 ><LI
840 ><P
841 >If the client has previously registered a username 
842                 with the system and now supplies a correct password for that 
843                 username then the connection is allowed.</P
844 ></LI
845 ><LI
846 ><P
847 >The client's NetBIOS name and any previously 
848                 used user names are checked against the supplied password, if 
849                 they match then the connection is allowed as the corresponding 
850                 user.</P
851 ></LI
852 ><LI
853 ><P
854 >If the client has previously validated a
855                 username/password pair with the server and the client has passed 
856                 the validation token then that username is used. </P
857 ></LI
858 ><LI
859 ><P
860 >If a "user = " field is given in the
861                 <TT
862 CLASS="FILENAME"
863 >smb.conf</TT
864 > file for the service and the client 
865                 has supplied a password, and that password matches (according to 
866                 the UNIX system's password checking) with one of the usernames 
867                 from the "user =" field then the connection is made as 
868                 the username in the "user =" line. If one 
869                 of the username in the "user =" list begins with a
870                 '@' then that name expands to a list of names in 
871                 the group of the same name.</P
872 ></LI
873 ><LI
874 ><P
875 >If the service is a guest service then a 
876                 connection is made as the username given in the "guest 
877                 account =" for the service, irrespective of the 
878                 supplied password.</P
879 ></LI
880 ></OL
881 ></DIV
882 ><DIV
883 CLASS="REFSECT1"
884 ><A
885 NAME="AEN257"
886 ></A
887 ><H2
888 >COMPLETE LIST OF GLOBAL PARAMETERS</H2
889 ><P
890 >Here is a list of all global parameters. See the section of 
891         each parameter for details.  Note that some are synonyms.</P
892 ><P
893 ></P
894 ><UL
895 ><LI
896 ><P
897 ><A
898 HREF="#ABORTSHUTDOWNSCRIPT"
899 ><TT
900 CLASS="PARAMETER"
901 ><I
902 >abort shutdown script</I
903 ></TT
904 ></A
905 ></P
906 ></LI
907 ><LI
908 ><P
909 ><A
910 HREF="#ADDGROUPSCRIPT"
911 ><TT
912 CLASS="PARAMETER"
913 ><I
914 >add group script</I
915 ></TT
916 ></A
917 ></P
918 ></LI
919 ><LI
920 ><P
921 ><A
922 HREF="#ADDPRINTERCOMMAND"
923 ><TT
924 CLASS="PARAMETER"
925 ><I
926 >addprinter command</I
927 ></TT
928 ></A
929 ></P
930 ></LI
931 ><LI
932 ><P
933 ><A
934 HREF="#ADDSHARECOMMAND"
935 ><TT
936 CLASS="PARAMETER"
937 ><I
938 >add share command</I
939 ></TT
940 ></A
941 ></P
942 ></LI
943 ><LI
944 ><P
945 ><A
946 HREF="#ADDUSERSCRIPT"
947 ><TT
948 CLASS="PARAMETER"
949 ><I
950 >add user script</I
951 ></TT
952 ></A
953 ></P
954 ></LI
955 ><LI
956 ><P
957 ><A
958 HREF="#ADDUSERTOGROUPSCRIPT"
959 ><TT
960 CLASS="PARAMETER"
961 ><I
962 >add user to group script</I
963 ></TT
964 ></A
965 ></P
966 ></LI
967 ><LI
968 ><P
969 ><A
970 HREF="#ADDMACHINESCRIPT"
971 ><TT
972 CLASS="PARAMETER"
973 ><I
974 >add machine script</I
975 ></TT
976 ></A
977 ></P
978 ></LI
979 ><LI
980 ><P
981 ><A
982 HREF="#DELETEGROUPSCRIPT"
983 ><TT
984 CLASS="PARAMETER"
985 ><I
986 >delete group script</I
987 ></TT
988 ></A
989 ></P
990 ></LI
991 ><LI
992 ><P
993 ><A
994 HREF="#ADSSERVER"
995 ><TT
996 CLASS="PARAMETER"
997 ><I
998 >ads server</I
999 ></TT
1000 ></A
1001 ></P
1002 ></LI
1003 ><LI
1004 ><P
1005 ><A
1006 HREF="#ALGORITHMICRIDBASE"
1007 ><TT
1008 CLASS="PARAMETER"
1009 ><I
1010 >algorithmic rid base</I
1011 ></TT
1012 ></A
1013 ></P
1014 ></LI
1015 ><LI
1016 ><P
1017 ><A
1018 HREF="#ALLOWTRUSTEDDOMAINS"
1019 ><TT
1020 CLASS="PARAMETER"
1021 ><I
1022 >allow trusted domains</I
1023 ></TT
1024 ></A
1025 ></P
1026 ></LI
1027 ><LI
1028 ><P
1029 ><A
1030 HREF="#ANNOUNCEAS"
1031 ><TT
1032 CLASS="PARAMETER"
1033 ><I
1034 >announce as</I
1035 ></TT
1036 ></A
1037 ></P
1038 ></LI
1039 ><LI
1040 ><P
1041 ><A
1042 HREF="#ANNOUNCEVERSION"
1043 ><TT
1044 CLASS="PARAMETER"
1045 ><I
1046 >announce version</I
1047 ></TT
1048 ></A
1049 ></P
1050 ></LI
1051 ><LI
1052 ><P
1053 ><A
1054 HREF="#AUTHMETHODS"
1055 ><TT
1056 CLASS="PARAMETER"
1057 ><I
1058 >auth methods</I
1059 ></TT
1060 ></A
1061 ></P
1062 ></LI
1063 ><LI
1064 ><P
1065 ><A
1066 HREF="#AUTOSERVICES"
1067 ><TT
1068 CLASS="PARAMETER"
1069 ><I
1070 >auto services</I
1071 ></TT
1072 ></A
1073 ></P
1074 ></LI
1075 ><LI
1076 ><P
1077 ><A
1078 HREF="#BINDINTERFACESONLY"
1079 ><TT
1080 CLASS="PARAMETER"
1081 ><I
1082 >bind interfaces only</I
1083 ></TT
1084 ></A
1085 ></P
1086 ></LI
1087 ><LI
1088 ><P
1089 ><A
1090 HREF="#BROWSELIST"
1091 ><TT
1092 CLASS="PARAMETER"
1093 ><I
1094 >browse list</I
1095 ></TT
1096 ></A
1097 ></P
1098 ></LI
1099 ><LI
1100 ><P
1101 ><A
1102 HREF="#CHANGENOTIFYTIMEOUT"
1103 ><TT
1104 CLASS="PARAMETER"
1105 ><I
1106 >change notify timeout</I
1107 ></TT
1108 ></A
1109 ></P
1110 ></LI
1111 ><LI
1112 ><P
1113 ><A
1114 HREF="#CHANGESHARECOMMAND"
1115 ><TT
1116 CLASS="PARAMETER"
1117 ><I
1118 >change share command</I
1119 ></TT
1120 ></A
1121 ></P
1122 ></LI
1123 ><LI
1124 ><P
1125 ><A
1126 HREF="#CONFIGFILE"
1127 ><TT
1128 CLASS="PARAMETER"
1129 ><I
1130 >config file</I
1131 ></TT
1132 ></A
1133 ></P
1134 ></LI
1135 ><LI
1136 ><P
1137 ><A
1138 HREF="#DEADTIME"
1139 ><TT
1140 CLASS="PARAMETER"
1141 ><I
1142 >deadtime</I
1143 ></TT
1144 ></A
1145 ></P
1146 ></LI
1147 ><LI
1148 ><P
1149 ><A
1150 HREF="#DEBUGHIRESTIMESTAMP"
1151 ><TT
1152 CLASS="PARAMETER"
1153 ><I
1154 >debug hires timestamp</I
1155 ></TT
1156 ></A
1157 ></P
1158 ></LI
1159 ><LI
1160 ><P
1161 ><A
1162 HREF="#DEBUGPID"
1163 ><TT
1164 CLASS="PARAMETER"
1165 ><I
1166 >debug pid</I
1167 ></TT
1168 ></A
1169 ></P
1170 ></LI
1171 ><LI
1172 ><P
1173 ><A
1174 HREF="#DEBUGTIMESTAMP"
1175 ><TT
1176 CLASS="PARAMETER"
1177 ><I
1178 >debug timestamp</I
1179 ></TT
1180 ></A
1181 ></P
1182 ></LI
1183 ><LI
1184 ><P
1185 ><A
1186 HREF="#DEBUGUID"
1187 ><TT
1188 CLASS="PARAMETER"
1189 ><I
1190 >debug uid</I
1191 ></TT
1192 ></A
1193 ></P
1194 ></LI
1195 ><LI
1196 ><P
1197 ><A
1198 HREF="#DEBUGLEVEL"
1199 ><TT
1200 CLASS="PARAMETER"
1201 ><I
1202 >debuglevel</I
1203 ></TT
1204 ></A
1205 ></P
1206 ></LI
1207 ><LI
1208 ><P
1209 ><A
1210 HREF="#DEFAULT"
1211 ><TT
1212 CLASS="PARAMETER"
1213 ><I
1214 >default</I
1215 ></TT
1216 ></A
1217 ></P
1218 ></LI
1219 ><LI
1220 ><P
1221 ><A
1222 HREF="#DEFAULTSERVICE"
1223 ><TT
1224 CLASS="PARAMETER"
1225 ><I
1226 >default service</I
1227 ></TT
1228 ></A
1229 ></P
1230 ></LI
1231 ><LI
1232 ><P
1233 ><A
1234 HREF="#DELETEPRINTERCOMMAND"
1235 ><TT
1236 CLASS="PARAMETER"
1237 ><I
1238 >deleteprinter command</I
1239 ></TT
1240 ></A
1241 ></P
1242 ></LI
1243 ><LI
1244 ><P
1245 ><A
1246 HREF="#DELETESHARECOMMAND"
1247 ><TT
1248 CLASS="PARAMETER"
1249 ><I
1250 >delete share command</I
1251 ></TT
1252 ></A
1253 ></P
1254 ></LI
1255 ><LI
1256 ><P
1257 ><A
1258 HREF="#DELETEUSERSCRIPT"
1259 ><TT
1260 CLASS="PARAMETER"
1261 ><I
1262 >delete user script</I
1263 ></TT
1264 ></A
1265 ></P
1266 ></LI
1267 ><LI
1268 ><P
1269 ><A
1270 HREF="#DELETEUSERFROMGROUPSCRIPT"
1271 ><TT
1272 CLASS="PARAMETER"
1273 ><I
1274 >delete user from group script</I
1275 ></TT
1276 ></A
1277 ></P
1278 ></LI
1279 ><LI
1280 ><P
1281 ><A
1282 HREF="#DFREECOMMAND"
1283 ><TT
1284 CLASS="PARAMETER"
1285 ><I
1286 >dfree command</I
1287 ></TT
1288 ></A
1289 ></P
1290 ></LI
1291 ><LI
1292 ><P
1293 ><A
1294 HREF="#DISABLENETBIOS"
1295 ><TT
1296 CLASS="PARAMETER"
1297 ><I
1298 >disable netbios</I
1299 ></TT
1300 ></A
1301 ></P
1302 ></LI
1303 ><LI
1304 ><P
1305 ><A
1306 HREF="#DISABLESPOOLSS"
1307 ><TT
1308 CLASS="PARAMETER"
1309 ><I
1310 >disable spoolss</I
1311 ></TT
1312 ></A
1313 ></P
1314 ></LI
1315 ><LI
1316 ><P
1317 ><A
1318 HREF="#DISPLAYCHARSET"
1319 ><TT
1320 CLASS="PARAMETER"
1321 ><I
1322 >display charset</I
1323 ></TT
1324 ></A
1325 ></P
1326 ></LI
1327 ><LI
1328 ><P
1329 ><A
1330 HREF="#DNSPROXY"
1331 ><TT
1332 CLASS="PARAMETER"
1333 ><I
1334 >dns proxy</I
1335 ></TT
1336 ></A
1337 ></P
1338 ></LI
1339 ><LI
1340 ><P
1341 ><A
1342 HREF="#DOMAINLOGONS"
1343 ><TT
1344 CLASS="PARAMETER"
1345 ><I
1346 >domain logons</I
1347 ></TT
1348 ></A
1349 ></P
1350 ></LI
1351 ><LI
1352 ><P
1353 ><A
1354 HREF="#DOMAINMASTER"
1355 ><TT
1356 CLASS="PARAMETER"
1357 ><I
1358 >domain master</I
1359 ></TT
1360 ></A
1361 ></P
1362 ></LI
1363 ><LI
1364 ><P
1365 ><A
1366 HREF="#DOSCHARSET"
1367 ><TT
1368 CLASS="PARAMETER"
1369 ><I
1370 >dos charset</I
1371 ></TT
1372 ></A
1373 ></P
1374 ></LI
1375 ><LI
1376 ><P
1377 ><A
1378 HREF="#ENCRYPTPASSWORDS"
1379 ><TT
1380 CLASS="PARAMETER"
1381 ><I
1382 >encrypt passwords</I
1383 ></TT
1384 ></A
1385 ></P
1386 ></LI
1387 ><LI
1388 ><P
1389 ><A
1390 HREF="#ENHANCEDBROWSING"
1391 ><TT
1392 CLASS="PARAMETER"
1393 ><I
1394 >enhanced browsing</I
1395 ></TT
1396 ></A
1397 ></P
1398 ></LI
1399 ><LI
1400 ><P
1401 ><A
1402 HREF="#ENUMPORTSCOMMAND"
1403 ><TT
1404 CLASS="PARAMETER"
1405 ><I
1406 >enumports command</I
1407 ></TT
1408 ></A
1409 ></P
1410 ></LI
1411 ><LI
1412 ><P
1413 ><A
1414 HREF="#GETWDCACHE"
1415 ><TT
1416 CLASS="PARAMETER"
1417 ><I
1418 >getwd cache</I
1419 ></TT
1420 ></A
1421 ></P
1422 ></LI
1423 ><LI
1424 ><P
1425 ><A
1426 HREF="#HIDELOCALUSERS"
1427 ><TT
1428 CLASS="PARAMETER"
1429 ><I
1430 >hide local users</I
1431 ></TT
1432 ></A
1433 ></P
1434 ></LI
1435 ><LI
1436 ><P
1437 ><A
1438 HREF="#HIDEUNREADABLE"
1439 ><TT
1440 CLASS="PARAMETER"
1441 ><I
1442 >hide unreadable</I
1443 ></TT
1444 ></A
1445 ></P
1446 ></LI
1447 ><LI
1448 ><P
1449 ><A
1450 HREF="#HIDEUNWRITEABLEFILES"
1451 ><TT
1452 CLASS="PARAMETER"
1453 ><I
1454 >hide unwriteable files</I
1455 ></TT
1456 ></A
1457 ></P
1458 ></LI
1459 ><LI
1460 ><P
1461 ><A
1462 HREF="#HIDESPECIALFILES"
1463 ><TT
1464 CLASS="PARAMETER"
1465 ><I
1466 >hide special files</I
1467 ></TT
1468 ></A
1469 ></P
1470 ></LI
1471 ><LI
1472 ><P
1473 ><A
1474 HREF="#HOMEDIRMAP"
1475 ><TT
1476 CLASS="PARAMETER"
1477 ><I
1478 >homedir map</I
1479 ></TT
1480 ></A
1481 ></P
1482 ></LI
1483 ><LI
1484 ><P
1485 ><A
1486 HREF="#HOSTMSDFS"
1487 ><TT
1488 CLASS="PARAMETER"
1489 ><I
1490 >host msdfs</I
1491 ></TT
1492 ></A
1493 ></P
1494 ></LI
1495 ><LI
1496 ><P
1497 ><A
1498 HREF="#HOSTNAMELOOKUPS"
1499 ><TT
1500 CLASS="PARAMETER"
1501 ><I
1502 >hostname lookups</I
1503 ></TT
1504 ></A
1505 ></P
1506 ></LI
1507 ><LI
1508 ><P
1509 ><A
1510 HREF="#HOSTSEQUIV"
1511 ><TT
1512 CLASS="PARAMETER"
1513 ><I
1514 >hosts equiv</I
1515 ></TT
1516 ></A
1517 ></P
1518 ></LI
1519 ><LI
1520 ><P
1521 ><A
1522 HREF="#INTERFACES"
1523 ><TT
1524 CLASS="PARAMETER"
1525 ><I
1526 >interfaces</I
1527 ></TT
1528 ></A
1529 ></P
1530 ></LI
1531 ><LI
1532 ><P
1533 ><A
1534 HREF="#KEEPALIVE"
1535 ><TT
1536 CLASS="PARAMETER"
1537 ><I
1538 >keepalive</I
1539 ></TT
1540 ></A
1541 ></P
1542 ></LI
1543 ><LI
1544 ><P
1545 ><A
1546 HREF="#KERNELOPLOCKS"
1547 ><TT
1548 CLASS="PARAMETER"
1549 ><I
1550 >kernel oplocks</I
1551 ></TT
1552 ></A
1553 ></P
1554 ></LI
1555 ><LI
1556 ><P
1557 ><A
1558 HREF="#LANMANAUTH"
1559 ><TT
1560 CLASS="PARAMETER"
1561 ><I
1562 >lanman auth</I
1563 ></TT
1564 ></A
1565 ></P
1566 ></LI
1567 ><LI
1568 ><P
1569 ><A
1570 HREF="#LARGEREADWRITE"
1571 ><TT
1572 CLASS="PARAMETER"
1573 ><I
1574 >large readwrite</I
1575 ></TT
1576 ></A
1577 ></P
1578 ></LI
1579 ><LI
1580 ><P
1581 ><A
1582 HREF="#LDAPADMINDN"
1583 ><TT
1584 CLASS="PARAMETER"
1585 ><I
1586 >ldap admin dn</I
1587 ></TT
1588 ></A
1589 ></P
1590 ></LI
1591 ><LI
1592 ><P
1593 ><A
1594 HREF="#LDAPDELETEDN"
1595 ><TT
1596 CLASS="PARAMETER"
1597 ><I
1598 >ldap delete dn</I
1599 ></TT
1600 ></A
1601 ></P
1602 ></LI
1603 ><LI
1604 ><P
1605 ><A
1606 HREF="#LDAPDELONLYSAMATTR"
1607 ><TT
1608 CLASS="PARAMETER"
1609 ><I
1610 >ldap del only sam attr</I
1611 ></TT
1612 ></A
1613 ></P
1614 ></LI
1615 ><LI
1616 ><P
1617 ><A
1618 HREF="#LDAPFILTER"
1619 ><TT
1620 CLASS="PARAMETER"
1621 ><I
1622 >ldap filter</I
1623 ></TT
1624 ></A
1625 ></P
1626 ></LI
1627 ><LI
1628 ><P
1629 ><A
1630 HREF="#LDAPPORT"
1631 ><TT
1632 CLASS="PARAMETER"
1633 ><I
1634 >ldap port</I
1635 ></TT
1636 ></A
1637 ></P
1638 ></LI
1639 ><LI
1640 ><P
1641 ><A
1642 HREF="#LDAPSERVER"
1643 ><TT
1644 CLASS="PARAMETER"
1645 ><I
1646 >ldap server</I
1647 ></TT
1648 ></A
1649 ></P
1650 ></LI
1651 ><LI
1652 ><P
1653 ><A
1654 HREF="#LDAPSSL"
1655 ><TT
1656 CLASS="PARAMETER"
1657 ><I
1658 >ldap ssl</I
1659 ></TT
1660 ></A
1661 ></P
1662 ></LI
1663 ><LI
1664 ><P
1665 ><A
1666 HREF="#LDAPSUFFIX"
1667 ><TT
1668 CLASS="PARAMETER"
1669 ><I
1670 >ldap suffix</I
1671 ></TT
1672 ></A
1673 ></P
1674 ></LI
1675 ><LI
1676 ><P
1677 ><A
1678 HREF="#LDAPUSERSUFFIX"
1679 ><TT
1680 CLASS="PARAMETER"
1681 ><I
1682 >ldap user suffix</I
1683 ></TT
1684 ></A
1685 ></P
1686 ></LI
1687 ><LI
1688 ><P
1689 ><A
1690 HREF="#LDAPMACHINESUFFIX"
1691 ><TT
1692 CLASS="PARAMETER"
1693 ><I
1694 >ldap machine suffix</I
1695 ></TT
1696 ></A
1697 ></P
1698 ></LI
1699 ><LI
1700 ><P
1701 ><A
1702 HREF="#LDAPPASSWDSYNC"
1703 ><TT
1704 CLASS="PARAMETER"
1705 ><I
1706 >ldap passwd sync</I
1707 ></TT
1708 ></A
1709 ></P
1710 ></LI
1711 ><LI
1712 ><P
1713 ><A
1714 HREF="#LDAPTRUSTIDS"
1715 ><TT
1716 CLASS="PARAMETER"
1717 ><I
1718 >ldap trust ids</I
1719 ></TT
1720 ></A
1721 ></P
1722 ></LI
1723 ><LI
1724 ><P
1725 ><A
1726 HREF="#LMANNOUNCE"
1727 ><TT
1728 CLASS="PARAMETER"
1729 ><I
1730 >lm announce</I
1731 ></TT
1732 ></A
1733 ></P
1734 ></LI
1735 ><LI
1736 ><P
1737 ><A
1738 HREF="#LMINTERVAL"
1739 ><TT
1740 CLASS="PARAMETER"
1741 ><I
1742 >lm interval</I
1743 ></TT
1744 ></A
1745 ></P
1746 ></LI
1747 ><LI
1748 ><P
1749 ><A
1750 HREF="#LOADPRINTERS"
1751 ><TT
1752 CLASS="PARAMETER"
1753 ><I
1754 >load printers</I
1755 ></TT
1756 ></A
1757 ></P
1758 ></LI
1759 ><LI
1760 ><P
1761 ><A
1762 HREF="#LOCALMASTER"
1763 ><TT
1764 CLASS="PARAMETER"
1765 ><I
1766 >local master</I
1767 ></TT
1768 ></A
1769 ></P
1770 ></LI
1771 ><LI
1772 ><P
1773 ><A
1774 HREF="#LOCKDIR"
1775 ><TT
1776 CLASS="PARAMETER"
1777 ><I
1778 >lock dir</I
1779 ></TT
1780 ></A
1781 ></P
1782 ></LI
1783 ><LI
1784 ><P
1785 ><A
1786 HREF="#LOCKDIRECTORY"
1787 ><TT
1788 CLASS="PARAMETER"
1789 ><I
1790 >lock directory</I
1791 ></TT
1792 ></A
1793 ></P
1794 ></LI
1795 ><LI
1796 ><P
1797 ><A
1798 HREF="#LOCKSPINCOUNT"
1799 ><TT
1800 CLASS="PARAMETER"
1801 ><I
1802 >lock spin count</I
1803 ></TT
1804 ></A
1805 ></P
1806 ></LI
1807 ><LI
1808 ><P
1809 ><A
1810 HREF="#LOCKSPINTIME"
1811 ><TT
1812 CLASS="PARAMETER"
1813 ><I
1814 >lock spin time</I
1815 ></TT
1816 ></A
1817 ></P
1818 ></LI
1819 ><LI
1820 ><P
1821 ><A
1822 HREF="#PIDDIRECTORY"
1823 ><TT
1824 CLASS="PARAMETER"
1825 ><I
1826 >pid directory</I
1827 ></TT
1828 ></A
1829 ></P
1830 ></LI
1831 ><LI
1832 ><P
1833 ><A
1834 HREF="#LOGFILE"
1835 ><TT
1836 CLASS="PARAMETER"
1837 ><I
1838 >log file</I
1839 ></TT
1840 ></A
1841 ></P
1842 ></LI
1843 ><LI
1844 ><P
1845 ><A
1846 HREF="#LOGLEVEL"
1847 ><TT
1848 CLASS="PARAMETER"
1849 ><I
1850 >log level</I
1851 ></TT
1852 ></A
1853 ></P
1854 ></LI
1855 ><LI
1856 ><P
1857 ><A
1858 HREF="#LOGONDRIVE"
1859 ><TT
1860 CLASS="PARAMETER"
1861 ><I
1862 >logon drive</I
1863 ></TT
1864 ></A
1865 ></P
1866 ></LI
1867 ><LI
1868 ><P
1869 ><A
1870 HREF="#LOGONHOME"
1871 ><TT
1872 CLASS="PARAMETER"
1873 ><I
1874 >logon home</I
1875 ></TT
1876 ></A
1877 ></P
1878 ></LI
1879 ><LI
1880 ><P
1881 ><A
1882 HREF="#LOGONPATH"
1883 ><TT
1884 CLASS="PARAMETER"
1885 ><I
1886 >logon path</I
1887 ></TT
1888 ></A
1889 ></P
1890 ></LI
1891 ><LI
1892 ><P
1893 ><A
1894 HREF="#LOGONSCRIPT"
1895 ><TT
1896 CLASS="PARAMETER"
1897 ><I
1898 >logon script</I
1899 ></TT
1900 ></A
1901 ></P
1902 ></LI
1903 ><LI
1904 ><P
1905 ><A
1906 HREF="#LPQCACHETIME"
1907 ><TT
1908 CLASS="PARAMETER"
1909 ><I
1910 >lpq cache time</I
1911 ></TT
1912 ></A
1913 ></P
1914 ></LI
1915 ><LI
1916 ><P
1917 ><A
1918 HREF="#MACHINEPASSWORDTIMEOUT"
1919 ><TT
1920 CLASS="PARAMETER"
1921 ><I
1922 >machine password timeout</I
1923 ></TT
1924 ></A
1925 ></P
1926 ></LI
1927 ><LI
1928 ><P
1929 ><A
1930 HREF="#MANGLEDSTACK"
1931 ><TT
1932 CLASS="PARAMETER"
1933 ><I
1934 >mangled stack</I
1935 ></TT
1936 ></A
1937 ></P
1938 ></LI
1939 ><LI
1940 ><P
1941 ><A
1942 HREF="#MAPTOGUEST"
1943 ><TT
1944 CLASS="PARAMETER"
1945 ><I
1946 >map to guest</I
1947 ></TT
1948 ></A
1949 ></P
1950 ></LI
1951 ><LI
1952 ><P
1953 ><A
1954 HREF="#MAXDISKSIZE"
1955 ><TT
1956 CLASS="PARAMETER"
1957 ><I
1958 >max disk size</I
1959 ></TT
1960 ></A
1961 ></P
1962 ></LI
1963 ><LI
1964 ><P
1965 ><A
1966 HREF="#MAXLOGSIZE"
1967 ><TT
1968 CLASS="PARAMETER"
1969 ><I
1970 >max log size</I
1971 ></TT
1972 ></A
1973 ></P
1974 ></LI
1975 ><LI
1976 ><P
1977 ><A
1978 HREF="#MAXMUX"
1979 ><TT
1980 CLASS="PARAMETER"
1981 ><I
1982 >max mux</I
1983 ></TT
1984 ></A
1985 ></P
1986 ></LI
1987 ><LI
1988 ><P
1989 ><A
1990 HREF="#MAXOPENFILES"
1991 ><TT
1992 CLASS="PARAMETER"
1993 ><I
1994 >max open files</I
1995 ></TT
1996 ></A
1997 ></P
1998 ></LI
1999 ><LI
2000 ><P
2001 ><A
2002 HREF="#MAXPROTOCOL"
2003 ><TT
2004 CLASS="PARAMETER"
2005 ><I
2006 >max protocol</I
2007 ></TT
2008 ></A
2009 ></P
2010 ></LI
2011 ><LI
2012 ><P
2013 ><A
2014 HREF="#MAXSMBDPROCESSES"
2015 ><TT
2016 CLASS="PARAMETER"
2017 ><I
2018 >max smbd processes</I
2019 ></TT
2020 ></A
2021 ></P
2022 ></LI
2023 ><LI
2024 ><P
2025 ><A
2026 HREF="#MAXTTL"
2027 ><TT
2028 CLASS="PARAMETER"
2029 ><I
2030 >max ttl</I
2031 ></TT
2032 ></A
2033 ></P
2034 ></LI
2035 ><LI
2036 ><P
2037 ><A
2038 HREF="#MAXWINSTTL"
2039 ><TT
2040 CLASS="PARAMETER"
2041 ><I
2042 >max wins ttl</I
2043 ></TT
2044 ></A
2045 ></P
2046 ></LI
2047 ><LI
2048 ><P
2049 ><A
2050 HREF="#MAXXMIT"
2051 ><TT
2052 CLASS="PARAMETER"
2053 ><I
2054 >max xmit</I
2055 ></TT
2056 ></A
2057 ></P
2058 ></LI
2059 ><LI
2060 ><P
2061 ><A
2062 HREF="#MESSAGECOMMAND"
2063 ><TT
2064 CLASS="PARAMETER"
2065 ><I
2066 >message command</I
2067 ></TT
2068 ></A
2069 ></P
2070 ></LI
2071 ><LI
2072 ><P
2073 ><A
2074 HREF="#MINPASSWDLENGTH"
2075 ><TT
2076 CLASS="PARAMETER"
2077 ><I
2078 >min passwd length</I
2079 ></TT
2080 ></A
2081 ></P
2082 ></LI
2083 ><LI
2084 ><P
2085 ><A
2086 HREF="#MINPASSWORDLENGTH"
2087 ><TT
2088 CLASS="PARAMETER"
2089 ><I
2090 >min password length</I
2091 ></TT
2092 ></A
2093 ></P
2094 ></LI
2095 ><LI
2096 ><P
2097 ><A
2098 HREF="#MINPROTOCOL"
2099 ><TT
2100 CLASS="PARAMETER"
2101 ><I
2102 >min protocol</I
2103 ></TT
2104 ></A
2105 ></P
2106 ></LI
2107 ><LI
2108 ><P
2109 ><A
2110 HREF="#MINWINSTTL"
2111 ><TT
2112 CLASS="PARAMETER"
2113 ><I
2114 >min wins ttl</I
2115 ></TT
2116 ></A
2117 ></P
2118 ></LI
2119 ><LI
2120 ><P
2121 ><A
2122 HREF="#NAMECACHETIMEOUT"
2123 ><TT
2124 CLASS="PARAMETER"
2125 ><I
2126 >name cache timeout</I
2127 ></TT
2128 ></A
2129 ></P
2130 ></LI
2131 ><LI
2132 ><P
2133 ><A
2134 HREF="#NAMERESOLVEORDER"
2135 ><TT
2136 CLASS="PARAMETER"
2137 ><I
2138 >name resolve order</I
2139 ></TT
2140 ></A
2141 ></P
2142 ></LI
2143 ><LI
2144 ><P
2145 ><A
2146 HREF="#NETBIOSALIASES"
2147 ><TT
2148 CLASS="PARAMETER"
2149 ><I
2150 >netbios aliases</I
2151 ></TT
2152 ></A
2153 ></P
2154 ></LI
2155 ><LI
2156 ><P
2157 ><A
2158 HREF="#NETBIOSNAME"
2159 ><TT
2160 CLASS="PARAMETER"
2161 ><I
2162 >netbios name</I
2163 ></TT
2164 ></A
2165 ></P
2166 ></LI
2167 ><LI
2168 ><P
2169 ><A
2170 HREF="#NETBIOSSCOPE"
2171 ><TT
2172 CLASS="PARAMETER"
2173 ><I
2174 >netbios scope</I
2175 ></TT
2176 ></A
2177 ></P
2178 ></LI
2179 ><LI
2180 ><P
2181 ><A
2182 HREF="#NISHOMEDIR"
2183 ><TT
2184 CLASS="PARAMETER"
2185 ><I
2186 >nis homedir</I
2187 ></TT
2188 ></A
2189 ></P
2190 ></LI
2191 ><LI
2192 ><P
2193 ><A
2194 HREF="#NTLMAUTH"
2195 ><TT
2196 CLASS="PARAMETER"
2197 ><I
2198 >ntlm auth</I
2199 ></TT
2200 ></A
2201 ></P
2202 ></LI
2203 ><LI
2204 ><P
2205 ><A
2206 HREF="#NONUNIXACCOUNTRANGE"
2207 ><TT
2208 CLASS="PARAMETER"
2209 ><I
2210 >non unix account range</I
2211 ></TT
2212 ></A
2213 ></P
2214 ></LI
2215 ><LI
2216 ><P
2217 ><A
2218 HREF="#NTPIPESUPPORT"
2219 ><TT
2220 CLASS="PARAMETER"
2221 ><I
2222 >nt pipe support</I
2223 ></TT
2224 ></A
2225 ></P
2226 ></LI
2227 ><LI
2228 ><P
2229 ><A
2230 HREF="#NTSTATUSSUPPORT"
2231 ><TT
2232 CLASS="PARAMETER"
2233 ><I
2234 >nt status support</I
2235 ></TT
2236 ></A
2237 ></P
2238 ></LI
2239 ><LI
2240 ><P
2241 ><A
2242 HREF="#NULLPASSWORDS"
2243 ><TT
2244 CLASS="PARAMETER"
2245 ><I
2246 >null passwords</I
2247 ></TT
2248 ></A
2249 ></P
2250 ></LI
2251 ><LI
2252 ><P
2253 ><A
2254 HREF="#OBEYPAMRESTRICTIONS"
2255 ><TT
2256 CLASS="PARAMETER"
2257 ><I
2258 >obey pam restrictions</I
2259 ></TT
2260 ></A
2261 ></P
2262 ></LI
2263 ><LI
2264 ><P
2265 ><A
2266 HREF="#OPLOCKBREAKWAITTIME"
2267 ><TT
2268 CLASS="PARAMETER"
2269 ><I
2270 >oplock break wait time</I
2271 ></TT
2272 ></A
2273 ></P
2274 ></LI
2275 ><LI
2276 ><P
2277 ><A
2278 HREF="#OSLEVEL"
2279 ><TT
2280 CLASS="PARAMETER"
2281 ><I
2282 >os level</I
2283 ></TT
2284 ></A
2285 ></P
2286 ></LI
2287 ><LI
2288 ><P
2289 ><A
2290 HREF="#OS2DRIVERMAP"
2291 ><TT
2292 CLASS="PARAMETER"
2293 ><I
2294 >os2 driver map</I
2295 ></TT
2296 ></A
2297 ></P
2298 ></LI
2299 ><LI
2300 ><P
2301 ><A
2302 HREF="#PAMPASSWORDCHANGE"
2303 ><TT
2304 CLASS="PARAMETER"
2305 ><I
2306 >pam password change</I
2307 ></TT
2308 ></A
2309 ></P
2310 ></LI
2311 ><LI
2312 ><P
2313 ><A
2314 HREF="#PANICACTION"
2315 ><TT
2316 CLASS="PARAMETER"
2317 ><I
2318 >panic action</I
2319 ></TT
2320 ></A
2321 ></P
2322 ></LI
2323 ><LI
2324 ><P
2325 ><A
2326 HREF="#PARANOIDSERVERSECURITY"
2327 ><TT
2328 CLASS="PARAMETER"
2329 ><I
2330 >paranoid server security</I
2331 ></TT
2332 ></A
2333 ></P
2334 ></LI
2335 ><LI
2336 ><P
2337 ><A
2338 HREF="#PASSDBBACKEND"
2339 ><TT
2340 CLASS="PARAMETER"
2341 ><I
2342 >passdb backend</I
2343 ></TT
2344 ></A
2345 ></P
2346 ></LI
2347 ><LI
2348 ><P
2349 ><A
2350 HREF="#PASSWDCHAT"
2351 ><TT
2352 CLASS="PARAMETER"
2353 ><I
2354 >passwd chat</I
2355 ></TT
2356 ></A
2357 ></P
2358 ></LI
2359 ><LI
2360 ><P
2361 ><A
2362 HREF="#PASSWDCHATDEBUG"
2363 ><TT
2364 CLASS="PARAMETER"
2365 ><I
2366 >passwd chat debug</I
2367 ></TT
2368 ></A
2369 ></P
2370 ></LI
2371 ><LI
2372 ><P
2373 ><A
2374 HREF="#PASSWDPROGRAM"
2375 ><TT
2376 CLASS="PARAMETER"
2377 ><I
2378 >passwd program</I
2379 ></TT
2380 ></A
2381 ></P
2382 ></LI
2383 ><LI
2384 ><P
2385 ><A
2386 HREF="#PASSWORDLEVEL"
2387 ><TT
2388 CLASS="PARAMETER"
2389 ><I
2390 >password level</I
2391 ></TT
2392 ></A
2393 ></P
2394 ></LI
2395 ><LI
2396 ><P
2397 ><A
2398 HREF="#PASSWORDSERVER"
2399 ><TT
2400 CLASS="PARAMETER"
2401 ><I
2402 >password server</I
2403 ></TT
2404 ></A
2405 ></P
2406 ></LI
2407 ><LI
2408 ><P
2409 ><A
2410 HREF="#PREFEREDMASTER"
2411 ><TT
2412 CLASS="PARAMETER"
2413 ><I
2414 >prefered master</I
2415 ></TT
2416 ></A
2417 ></P
2418 ></LI
2419 ><LI
2420 ><P
2421 ><A
2422 HREF="#PREFERREDMASTER"
2423 ><TT
2424 CLASS="PARAMETER"
2425 ><I
2426 >preferred master</I
2427 ></TT
2428 ></A
2429 ></P
2430 ></LI
2431 ><LI
2432 ><P
2433 ><A
2434 HREF="#PRELOAD"
2435 ><TT
2436 CLASS="PARAMETER"
2437 ><I
2438 >preload</I
2439 ></TT
2440 ></A
2441 ></P
2442 ></LI
2443 ><LI
2444 ><P
2445 ><A
2446 HREF="#PRINTCAP"
2447 ><TT
2448 CLASS="PARAMETER"
2449 ><I
2450 >printcap</I
2451 ></TT
2452 ></A
2453 ></P
2454 ></LI
2455 ><LI
2456 ><P
2457 ><A
2458 HREF="#PRINTCAPNAME"
2459 ><TT
2460 CLASS="PARAMETER"
2461 ><I
2462 >printcap name</I
2463 ></TT
2464 ></A
2465 ></P
2466 ></LI
2467 ><LI
2468 ><P
2469 ><A
2470 HREF="#PRINTERDRIVERFILE"
2471 ><TT
2472 CLASS="PARAMETER"
2473 ><I
2474 >printer driver file</I
2475 ></TT
2476 ></A
2477 ></P
2478 ></LI
2479 ><LI
2480 ><P
2481 ><A
2482 HREF="#PRIVATEDIR"
2483 ><TT
2484 CLASS="PARAMETER"
2485 ><I
2486 >private dir</I
2487 ></TT
2488 ></A
2489 ></P
2490 ></LI
2491 ><LI
2492 ><P
2493 ><A
2494 HREF="#PROTOCOL"
2495 ><TT
2496 CLASS="PARAMETER"
2497 ><I
2498 >protocol</I
2499 ></TT
2500 ></A
2501 ></P
2502 ></LI
2503 ><LI
2504 ><P
2505 ><A
2506 HREF="#READBMPX"
2507 ><TT
2508 CLASS="PARAMETER"
2509 ><I
2510 >read bmpx</I
2511 ></TT
2512 ></A
2513 ></P
2514 ></LI
2515 ><LI
2516 ><P
2517 ><A
2518 HREF="#READRAW"
2519 ><TT
2520 CLASS="PARAMETER"
2521 ><I
2522 >read raw</I
2523 ></TT
2524 ></A
2525 ></P
2526 ></LI
2527 ><LI
2528 ><P
2529 ><A
2530 HREF="#READSIZE"
2531 ><TT
2532 CLASS="PARAMETER"
2533 ><I
2534 >read size</I
2535 ></TT
2536 ></A
2537 ></P
2538 ></LI
2539 ><LI
2540 ><P
2541 ><A
2542 HREF="#REALM"
2543 ><TT
2544 CLASS="PARAMETER"
2545 ><I
2546 >realm</I
2547 ></TT
2548 ></A
2549 ></P
2550 ></LI
2551 ><LI
2552 ><P
2553 ><A
2554 HREF="#REMOTEANNOUNCE"
2555 ><TT
2556 CLASS="PARAMETER"
2557 ><I
2558 >remote announce</I
2559 ></TT
2560 ></A
2561 ></P
2562 ></LI
2563 ><LI
2564 ><P
2565 ><A
2566 HREF="#REMOTEBROWSESYNC"
2567 ><TT
2568 CLASS="PARAMETER"
2569 ><I
2570 >remote browse sync</I
2571 ></TT
2572 ></A
2573 ></P
2574 ></LI
2575 ><LI
2576 ><P
2577 ><A
2578 HREF="#RESTRICTANONYMOUS"
2579 ><TT
2580 CLASS="PARAMETER"
2581 ><I
2582 >restrict anonymous</I
2583 ></TT
2584 ></A
2585 ></P
2586 ></LI
2587 ><LI
2588 ><P
2589 ><A
2590 HREF="#ROOT"
2591 ><TT
2592 CLASS="PARAMETER"
2593 ><I
2594 >root</I
2595 ></TT
2596 ></A
2597 ></P
2598 ></LI
2599 ><LI
2600 ><P
2601 ><A
2602 HREF="#ROOTDIR"
2603 ><TT
2604 CLASS="PARAMETER"
2605 ><I
2606 >root dir</I
2607 ></TT
2608 ></A
2609 ></P
2610 ></LI
2611 ><LI
2612 ><P
2613 ><A
2614 HREF="#ROOTDIRECTORY"
2615 ><TT
2616 CLASS="PARAMETER"
2617 ><I
2618 >root directory</I
2619 ></TT
2620 ></A
2621 ></P
2622 ></LI
2623 ><LI
2624 ><P
2625 ><A
2626 HREF="#SECURITY"
2627 ><TT
2628 CLASS="PARAMETER"
2629 ><I
2630 >security</I
2631 ></TT
2632 ></A
2633 ></P
2634 ></LI
2635 ><LI
2636 ><P
2637 ><A
2638 HREF="#SERVERSTRING"
2639 ><TT
2640 CLASS="PARAMETER"
2641 ><I
2642 >server string</I
2643 ></TT
2644 ></A
2645 ></P
2646 ></LI
2647 ><LI
2648 ><P
2649 ><A
2650 HREF="#SHOWADDPRINTERWIZARD"
2651 ><TT
2652 CLASS="PARAMETER"
2653 ><I
2654 >show add printer wizard</I
2655 ></TT
2656 ></A
2657 ></P
2658 ></LI
2659 ><LI
2660 ><P
2661 ><A
2662 HREF="#SHUTDOWNSCRIPT"
2663 ><TT
2664 CLASS="PARAMETER"
2665 ><I
2666 >shutdown script</I
2667 ></TT
2668 ></A
2669 ></P
2670 ></LI
2671 ><LI
2672 ><P
2673 ><A
2674 HREF="#SMBPASSWDFILE"
2675 ><TT
2676 CLASS="PARAMETER"
2677 ><I
2678 >smb passwd file</I
2679 ></TT
2680 ></A
2681 ></P
2682 ></LI
2683 ><LI
2684 ><P
2685 ><A
2686 HREF="#SMBPORTS"
2687 ><TT
2688 CLASS="PARAMETER"
2689 ><I
2690 >smb ports</I
2691 ></TT
2692 ></A
2693 ></P
2694 ></LI
2695 ><LI
2696 ><P
2697 ><A
2698 HREF="#SOCKETADDRESS"
2699 ><TT
2700 CLASS="PARAMETER"
2701 ><I
2702 >socket address</I
2703 ></TT
2704 ></A
2705 ></P
2706 ></LI
2707 ><LI
2708 ><P
2709 ><A
2710 HREF="#SOCKETOPTIONS"
2711 ><TT
2712 CLASS="PARAMETER"
2713 ><I
2714 >socket options</I
2715 ></TT
2716 ></A
2717 ></P
2718 ></LI
2719 ><LI
2720 ><P
2721 ><A
2722 HREF="#SOURCEENVIRONMENT"
2723 ><TT
2724 CLASS="PARAMETER"
2725 ><I
2726 >source environment</I
2727 ></TT
2728 ></A
2729 ></P
2730 ></LI
2731 ><LI
2732 ><P
2733 ><A
2734 HREF="#SPNEGO"
2735 ><TT
2736 CLASS="PARAMETER"
2737 ><I
2738 >use spnego</I
2739 ></TT
2740 ></A
2741 ></P
2742 ></LI
2743 ><LI
2744 ><P
2745 ><A
2746 HREF="#STATCACHE"
2747 ><TT
2748 CLASS="PARAMETER"
2749 ><I
2750 >stat cache</I
2751 ></TT
2752 ></A
2753 ></P
2754 ></LI
2755 ><LI
2756 ><P
2757 ><A
2758 HREF="#STATCACHESIZE"
2759 ><TT
2760 CLASS="PARAMETER"
2761 ><I
2762 >stat cache size</I
2763 ></TT
2764 ></A
2765 ></P
2766 ></LI
2767 ><LI
2768 ><P
2769 ><A
2770 HREF="#STRIPDOT"
2771 ><TT
2772 CLASS="PARAMETER"
2773 ><I
2774 >strip dot</I
2775 ></TT
2776 ></A
2777 ></P
2778 ></LI
2779 ><LI
2780 ><P
2781 ><A
2782 HREF="#SYSLOG"
2783 ><TT
2784 CLASS="PARAMETER"
2785 ><I
2786 >syslog</I
2787 ></TT
2788 ></A
2789 ></P
2790 ></LI
2791 ><LI
2792 ><P
2793 ><A
2794 HREF="#SYSLOGONLY"
2795 ><TT
2796 CLASS="PARAMETER"
2797 ><I
2798 >syslog only</I
2799 ></TT
2800 ></A
2801 ></P
2802 ></LI
2803 ><LI
2804 ><P
2805 ><A
2806 HREF="#TEMPLATEHOMEDIR"
2807 ><TT
2808 CLASS="PARAMETER"
2809 ><I
2810 >template homedir</I
2811 ></TT
2812 ></A
2813 ></P
2814 ></LI
2815 ><LI
2816 ><P
2817 ><A
2818 HREF="#TEMPLATESHELL"
2819 ><TT
2820 CLASS="PARAMETER"
2821 ><I
2822 >template shell</I
2823 ></TT
2824 ></A
2825 ></P
2826 ></LI
2827 ><LI
2828 ><P
2829 ><A
2830 HREF="#TIMEOFFSET"
2831 ><TT
2832 CLASS="PARAMETER"
2833 ><I
2834 >time offset</I
2835 ></TT
2836 ></A
2837 ></P
2838 ></LI
2839 ><LI
2840 ><P
2841 ><A
2842 HREF="#TIMESERVER"
2843 ><TT
2844 CLASS="PARAMETER"
2845 ><I
2846 >time server</I
2847 ></TT
2848 ></A
2849 ></P
2850 ></LI
2851 ><LI
2852 ><P
2853 ><A
2854 HREF="#TIMESTAMPLOGS"
2855 ><TT
2856 CLASS="PARAMETER"
2857 ><I
2858 >timestamp logs</I
2859 ></TT
2860 ></A
2861 ></P
2862 ></LI
2863 ><LI
2864 ><P
2865 ><A
2866 HREF="#TOTALPRINTJOBS"
2867 ><TT
2868 CLASS="PARAMETER"
2869 ><I
2870 >total print jobs</I
2871 ></TT
2872 ></A
2873 ></P
2874 ></LI
2875 ><LI
2876 ><P
2877 ><A
2878 HREF="#UNICODE"
2879 ><TT
2880 CLASS="PARAMETER"
2881 ><I
2882 >unicode</I
2883 ></TT
2884 ></A
2885 ></P
2886 ></LI
2887 ><LI
2888 ><P
2889 ><A
2890 HREF="#UNIXCHARSET"
2891 ><TT
2892 CLASS="PARAMETER"
2893 ><I
2894 >unix charset</I
2895 ></TT
2896 ></A
2897 ></P
2898 ></LI
2899 ><LI
2900 ><P
2901 ><A
2902 HREF="#UNIXEXTENSIONS"
2903 ><TT
2904 CLASS="PARAMETER"
2905 ><I
2906 >unix extensions</I
2907 ></TT
2908 ></A
2909 ></P
2910 ></LI
2911 ><LI
2912 ><P
2913 ><A
2914 HREF="#UNIXPASSWORDSYNC"
2915 ><TT
2916 CLASS="PARAMETER"
2917 ><I
2918 >unix password sync</I
2919 ></TT
2920 ></A
2921 ></P
2922 ></LI
2923 ><LI
2924 ><P
2925 ><A
2926 HREF="#UPDATEENCRYPTED"
2927 ><TT
2928 CLASS="PARAMETER"
2929 ><I
2930 >update encrypted</I
2931 ></TT
2932 ></A
2933 ></P
2934 ></LI
2935 ><LI
2936 ><P
2937 ><A
2938 HREF="#USEMMAP"
2939 ><TT
2940 CLASS="PARAMETER"
2941 ><I
2942 >use mmap</I
2943 ></TT
2944 ></A
2945 ></P
2946 ></LI
2947 ><LI
2948 ><P
2949 ><A
2950 HREF="#USERHOSTS"
2951 ><TT
2952 CLASS="PARAMETER"
2953 ><I
2954 >use rhosts</I
2955 ></TT
2956 ></A
2957 ></P
2958 ></LI
2959 ><LI
2960 ><P
2961 ><A
2962 HREF="#USESENDFILE"
2963 ><TT
2964 CLASS="PARAMETER"
2965 ><I
2966 >use sendfile</I
2967 ></TT
2968 ></A
2969 ></P
2970 ></LI
2971 ><LI
2972 ><P
2973 ><A
2974 HREF="#USERNAMELEVEL"
2975 ><TT
2976 CLASS="PARAMETER"
2977 ><I
2978 >username level</I
2979 ></TT
2980 ></A
2981 ></P
2982 ></LI
2983 ><LI
2984 ><P
2985 ><A
2986 HREF="#USERNAMEMAP"
2987 ><TT
2988 CLASS="PARAMETER"
2989 ><I
2990 >username map</I
2991 ></TT
2992 ></A
2993 ></P
2994 ></LI
2995 ><LI
2996 ><P
2997 ><A
2998 HREF="#UTMP"
2999 ><TT
3000 CLASS="PARAMETER"
3001 ><I
3002 >utmp</I
3003 ></TT
3004 ></A
3005 ></P
3006 ></LI
3007 ><LI
3008 ><P
3009 ><A
3010 HREF="#UTMPDIRECTORY"
3011 ><TT
3012 CLASS="PARAMETER"
3013 ><I
3014 >utmp directory</I
3015 ></TT
3016 ></A
3017 ></P
3018 ></LI
3019 ><LI
3020 ><P
3021 ><A
3022 HREF="#WTMPDIRECTORY"
3023 ><TT
3024 CLASS="PARAMETER"
3025 ><I
3026 >wtmp directory</I
3027 ></TT
3028 ></A
3029 ></P
3030 ></LI
3031 ><LI
3032 ><P
3033 ><A
3034 HREF="#WINBINDCACHETIME"
3035 ><TT
3036 CLASS="PARAMETER"
3037 ><I
3038 >winbind cache time</I
3039 ></TT
3040 ></A
3041 ></P
3042 ></LI
3043 ><LI
3044 ><P
3045 ><A
3046 HREF="#WINBINDENUMUSERS"
3047 ><TT
3048 CLASS="PARAMETER"
3049 ><I
3050 >winbind enum users</I
3051 ></TT
3052 ></A
3053 ></P
3054 ></LI
3055 ><LI
3056 ><P
3057 ><A
3058 HREF="#WINBINDENUMGROUPS"
3059 ><TT
3060 CLASS="PARAMETER"
3061 ><I
3062 >winbind enum groups</I
3063 ></TT
3064 ></A
3065 ></P
3066 ></LI
3067 ><LI
3068 ><P
3069 ><A
3070 HREF="#WINBINDGID"
3071 ><TT
3072 CLASS="PARAMETER"
3073 ><I
3074 >winbind gid</I
3075 ></TT
3076 ></A
3077 ></P
3078 ></LI
3079 ><LI
3080 ><P
3081 ><A
3082 HREF="#WINBINDSEPARATOR"
3083 ><TT
3084 CLASS="PARAMETER"
3085 ><I
3086 >winbind separator</I
3087 ></TT
3088 ></A
3089 ></P
3090 ></LI
3091 ><LI
3092 ><P
3093 ><A
3094 HREF="#WINBINDUID"
3095 ><TT
3096 CLASS="PARAMETER"
3097 ><I
3098 >winbind uid</I
3099 ></TT
3100 ></A
3101 ></P
3102 ></LI
3103 ><LI
3104 ><P
3105 ><A
3106 HREF="#WINBINDUSEDEFAULTDOMAIN"
3107 ><TT
3108 CLASS="PARAMETER"
3109 ><I
3110 >winbind use default domain</I
3111 ></TT
3112 ></A
3113 ></P
3114 ></LI
3115 ><LI
3116 ><P
3117 ><A
3118 HREF="#WINSHOOK"
3119 ><TT
3120 CLASS="PARAMETER"
3121 ><I
3122 >wins hook</I
3123 ></TT
3124 ></A
3125 ></P
3126 ></LI
3127 ><LI
3128 ><P
3129 ><A
3130 HREF="#WINSPARTNERS"
3131 ><TT
3132 CLASS="PARAMETER"
3133 ><I
3134 >wins partners</I
3135 ></TT
3136 ></A
3137 ></P
3138 ></LI
3139 ><LI
3140 ><P
3141 ><A
3142 HREF="#WINSPROXY"
3143 ><TT
3144 CLASS="PARAMETER"
3145 ><I
3146 >wins proxy</I
3147 ></TT
3148 ></A
3149 ></P
3150 ></LI
3151 ><LI
3152 ><P
3153 ><A
3154 HREF="#WINSSERVER"
3155 ><TT
3156 CLASS="PARAMETER"
3157 ><I
3158 >wins server</I
3159 ></TT
3160 ></A
3161 ></P
3162 ></LI
3163 ><LI
3164 ><P
3165 ><A
3166 HREF="#WINSSUPPORT"
3167 ><TT
3168 CLASS="PARAMETER"
3169 ><I
3170 >wins support</I
3171 ></TT
3172 ></A
3173 ></P
3174 ></LI
3175 ><LI
3176 ><P
3177 ><A
3178 HREF="#WORKGROUP"
3179 ><TT
3180 CLASS="PARAMETER"
3181 ><I
3182 >workgroup</I
3183 ></TT
3184 ></A
3185 ></P
3186 ></LI
3187 ><LI
3188 ><P
3189 ><A
3190 HREF="#WRITERAW"
3191 ><TT
3192 CLASS="PARAMETER"
3193 ><I
3194 >write raw</I
3195 ></TT
3196 ></A
3197 ></P
3198 ></LI
3199 ></UL
3200 ></DIV
3201 ><DIV
3202 CLASS="REFSECT1"
3203 ><A
3204 NAME="AEN1029"
3205 ></A
3206 ><H2
3207 >COMPLETE LIST OF SERVICE PARAMETERS</H2
3208 ><P
3209 >Here is a list of all service parameters. See the section on 
3210         each parameter for details. Note that some are synonyms.</P
3211 ><P
3212 ></P
3213 ><UL
3214 ><LI
3215 ><P
3216 ><A
3217 HREF="#ADMINUSERS"
3218 ><TT
3219 CLASS="PARAMETER"
3220 ><I
3221 >admin users</I
3222 ></TT
3223 ></A
3224 ></P
3225 ></LI
3226 ><LI
3227 ><P
3228 ><A
3229 HREF="#ALLOWHOSTS"
3230 ><TT
3231 CLASS="PARAMETER"
3232 ><I
3233 >allow hosts</I
3234 ></TT
3235 ></A
3236 ></P
3237 ></LI
3238 ><LI
3239 ><P
3240 ><A
3241 HREF="#AVAILABLE"
3242 ><TT
3243 CLASS="PARAMETER"
3244 ><I
3245 >available</I
3246 ></TT
3247 ></A
3248 ></P
3249 ></LI
3250 ><LI
3251 ><P
3252 ><A
3253 HREF="#BLOCKINGLOCKS"
3254 ><TT
3255 CLASS="PARAMETER"
3256 ><I
3257 >blocking locks</I
3258 ></TT
3259 ></A
3260 ></P
3261 ></LI
3262 ><LI
3263 ><P
3264 ><A
3265 HREF="#BLOCKSIZE"
3266 ><TT
3267 CLASS="PARAMETER"
3268 ><I
3269 >block size</I
3270 ></TT
3271 ></A
3272 ></P
3273 ></LI
3274 ><LI
3275 ><P
3276 ><A
3277 HREF="#BROWSABLE"
3278 ><TT
3279 CLASS="PARAMETER"
3280 ><I
3281 >browsable</I
3282 ></TT
3283 ></A
3284 ></P
3285 ></LI
3286 ><LI
3287 ><P
3288 ><A
3289 HREF="#BROWSEABLE"
3290 ><TT
3291 CLASS="PARAMETER"
3292 ><I
3293 >browseable</I
3294 ></TT
3295 ></A
3296 ></P
3297 ></LI
3298 ><LI
3299 ><P
3300 ><A
3301 HREF="#CASESENSITIVE"
3302 ><TT
3303 CLASS="PARAMETER"
3304 ><I
3305 >case sensitive</I
3306 ></TT
3307 ></A
3308 ></P
3309 ></LI
3310 ><LI
3311 ><P
3312 ><A
3313 HREF="#CASESIGNAMES"
3314 ><TT
3315 CLASS="PARAMETER"
3316 ><I
3317 >casesignames</I
3318 ></TT
3319 ></A
3320 ></P
3321 ></LI
3322 ><LI
3323 ><P
3324 ><A
3325 HREF="#COMMENT"
3326 ><TT
3327 CLASS="PARAMETER"
3328 ><I
3329 >comment</I
3330 ></TT
3331 ></A
3332 ></P
3333 ></LI
3334 ><LI
3335 ><P
3336 ><A
3337 HREF="#COPY"
3338 ><TT
3339 CLASS="PARAMETER"
3340 ><I
3341 >copy</I
3342 ></TT
3343 ></A
3344 ></P
3345 ></LI
3346 ><LI
3347 ><P
3348 ><A
3349 HREF="#CREATEMASK"
3350 ><TT
3351 CLASS="PARAMETER"
3352 ><I
3353 >create mask</I
3354 ></TT
3355 ></A
3356 ></P
3357 ></LI
3358 ><LI
3359 ><P
3360 ><A
3361 HREF="#CREATEMODE"
3362 ><TT
3363 CLASS="PARAMETER"
3364 ><I
3365 >create mode</I
3366 ></TT
3367 ></A
3368 ></P
3369 ></LI
3370 ><LI
3371 ><P
3372 ><A
3373 HREF="#CSCPOLICY"
3374 ><TT
3375 CLASS="PARAMETER"
3376 ><I
3377 >csc policy</I
3378 ></TT
3379 ></A
3380 ></P
3381 ></LI
3382 ><LI
3383 ><P
3384 ><A
3385 HREF="#DEFAULTCASE"
3386 ><TT
3387 CLASS="PARAMETER"
3388 ><I
3389 >default case</I
3390 ></TT
3391 ></A
3392 ></P
3393 ></LI
3394 ><LI
3395 ><P
3396 ><A
3397 HREF="#DEFAULTDEVMODE"
3398 ><TT
3399 CLASS="PARAMETER"
3400 ><I
3401 >default devmode</I
3402 ></TT
3403 ></A
3404 ></P
3405 ></LI
3406 ><LI
3407 ><P
3408 ><A
3409 HREF="#DELETEREADONLY"
3410 ><TT
3411 CLASS="PARAMETER"
3412 ><I
3413 >delete readonly</I
3414 ></TT
3415 ></A
3416 ></P
3417 ></LI
3418 ><LI
3419 ><P
3420 ><A
3421 HREF="#DELETEVETOFILES"
3422 ><TT
3423 CLASS="PARAMETER"
3424 ><I
3425 >delete veto files</I
3426 ></TT
3427 ></A
3428 ></P
3429 ></LI
3430 ><LI
3431 ><P
3432 ><A
3433 HREF="#DENYHOSTS"
3434 ><TT
3435 CLASS="PARAMETER"
3436 ><I
3437 >deny hosts</I
3438 ></TT
3439 ></A
3440 ></P
3441 ></LI
3442 ><LI
3443 ><P
3444 ><A
3445 HREF="#DIRECTORY"
3446 ><TT
3447 CLASS="PARAMETER"
3448 ><I
3449 >directory</I
3450 ></TT
3451 ></A
3452 ></P
3453 ></LI
3454 ><LI
3455 ><P
3456 ><A
3457 HREF="#DIRECTORYMASK"
3458 ><TT
3459 CLASS="PARAMETER"
3460 ><I
3461 >directory mask</I
3462 ></TT
3463 ></A
3464 ></P
3465 ></LI
3466 ><LI
3467 ><P
3468 ><A
3469 HREF="#DIRECTORYMODE"
3470 ><TT
3471 CLASS="PARAMETER"
3472 ><I
3473 >directory mode</I
3474 ></TT
3475 ></A
3476 ></P
3477 ></LI
3478 ><LI
3479 ><P
3480 ><A
3481 HREF="#DIRECTORYSECURITYMASK"
3482 ><TT
3483 CLASS="PARAMETER"
3484 ><I
3485 >directory security mask</I
3486 ></TT
3487 ></A
3488 ></P
3489 ></LI
3490 ><LI
3491 ><P
3492 ><A
3493 HREF="#DONTDESCEND"
3494 ><TT
3495 CLASS="PARAMETER"
3496 ><I
3497 >dont descend</I
3498 ></TT
3499 ></A
3500 ></P
3501 ></LI
3502 ><LI
3503 ><P
3504 ><A
3505 HREF="#DOSFILEMODE"
3506 ><TT
3507 CLASS="PARAMETER"
3508 ><I
3509 >dos filemode</I
3510 ></TT
3511 ></A
3512 ></P
3513 ></LI
3514 ><LI
3515 ><P
3516 ><A
3517 HREF="#DOSFILETIMERESOLUTION"
3518 ><TT
3519 CLASS="PARAMETER"
3520 ><I
3521 >dos filetime resolution</I
3522 ></TT
3523 ></A
3524 ></P
3525 ></LI
3526 ><LI
3527 ><P
3528 ><A
3529 HREF="#DOSFILETIMES"
3530 ><TT
3531 CLASS="PARAMETER"
3532 ><I
3533 >dos filetimes</I
3534 ></TT
3535 ></A
3536 ></P
3537 ></LI
3538 ><LI
3539 ><P
3540 ><A
3541 HREF="#EXEC"
3542 ><TT
3543 CLASS="PARAMETER"
3544 ><I
3545 >exec</I
3546 ></TT
3547 ></A
3548 ></P
3549 ></LI
3550 ><LI
3551 ><P
3552 ><A
3553 HREF="#FAKEDIRECTORYCREATETIMES"
3554 ><TT
3555 CLASS="PARAMETER"
3556 ><I
3557 >fake directory create times</I
3558 ></TT
3559 ></A
3560 ></P
3561 ></LI
3562 ><LI
3563 ><P
3564 ><A
3565 HREF="#FAKEOPLOCKS"
3566 ><TT
3567 CLASS="PARAMETER"
3568 ><I
3569 >fake oplocks</I
3570 ></TT
3571 ></A
3572 ></P
3573 ></LI
3574 ><LI
3575 ><P
3576 ><A
3577 HREF="#FOLLOWSYMLINKS"
3578 ><TT
3579 CLASS="PARAMETER"
3580 ><I
3581 >follow symlinks</I
3582 ></TT
3583 ></A
3584 ></P
3585 ></LI
3586 ><LI
3587 ><P
3588 ><A
3589 HREF="#FORCECREATEMODE"
3590 ><TT
3591 CLASS="PARAMETER"
3592 ><I
3593 >force create mode</I
3594 ></TT
3595 ></A
3596 ></P
3597 ></LI
3598 ><LI
3599 ><P
3600 ><A
3601 HREF="#FORCEDIRECTORYMODE"
3602 ><TT
3603 CLASS="PARAMETER"
3604 ><I
3605 >force directory mode</I
3606 ></TT
3607 ></A
3608 ></P
3609 ></LI
3610 ><LI
3611 ><P
3612 ><A
3613 HREF="#FORCEDIRECTORYSECURITYMODE"
3614 ><TT
3615 CLASS="PARAMETER"
3616 ><I
3617 >force directory security mode</I
3618 ></TT
3619 ></A
3620 ></P
3621 ></LI
3622 ><LI
3623 ><P
3624 ><A
3625 HREF="#FORCEGROUP"
3626 ><TT
3627 CLASS="PARAMETER"
3628 ><I
3629 >force group</I
3630 ></TT
3631 ></A
3632 ></P
3633 ></LI
3634 ><LI
3635 ><P
3636 ><A
3637 HREF="#FORCESECURITYMODE"
3638 ><TT
3639 CLASS="PARAMETER"
3640 ><I
3641 >force security mode</I
3642 ></TT
3643 ></A
3644 ></P
3645 ></LI
3646 ><LI
3647 ><P
3648 ><A
3649 HREF="#FORCEUSER"
3650 ><TT
3651 CLASS="PARAMETER"
3652 ><I
3653 >force user</I
3654 ></TT
3655 ></A
3656 ></P
3657 ></LI
3658 ><LI
3659 ><P
3660 ><A
3661 HREF="#FSTYPE"
3662 ><TT
3663 CLASS="PARAMETER"
3664 ><I
3665 >fstype</I
3666 ></TT
3667 ></A
3668 ></P
3669 ></LI
3670 ><LI
3671 ><P
3672 ><A
3673 HREF="#GROUP"
3674 ><TT
3675 CLASS="PARAMETER"
3676 ><I
3677 >group</I
3678 ></TT
3679 ></A
3680 ></P
3681 ></LI
3682 ><LI
3683 ><P
3684 ><A
3685 HREF="#GUESTACCOUNT"
3686 ><TT
3687 CLASS="PARAMETER"
3688 ><I
3689 >guest account</I
3690 ></TT
3691 ></A
3692 ></P
3693 ></LI
3694 ><LI
3695 ><P
3696 ><A
3697 HREF="#GUESTOK"
3698 ><TT
3699 CLASS="PARAMETER"
3700 ><I
3701 >guest ok</I
3702 ></TT
3703 ></A
3704 ></P
3705 ></LI
3706 ><LI
3707 ><P
3708 ><A
3709 HREF="#GUESTONLY"
3710 ><TT
3711 CLASS="PARAMETER"
3712 ><I
3713 >guest only</I
3714 ></TT
3715 ></A
3716 ></P
3717 ></LI
3718 ><LI
3719 ><P
3720 ><A
3721 HREF="#HIDEDOTFILES"
3722 ><TT
3723 CLASS="PARAMETER"
3724 ><I
3725 >hide dot files</I
3726 ></TT
3727 ></A
3728 ></P
3729 ></LI
3730 ><LI
3731 ><P
3732 ><A
3733 HREF="#HIDEFILES"
3734 ><TT
3735 CLASS="PARAMETER"
3736 ><I
3737 >hide files</I
3738 ></TT
3739 ></A
3740 ></P
3741 ></LI
3742 ><LI
3743 ><P
3744 ><A
3745 HREF="#HOSTSALLOW"
3746 ><TT
3747 CLASS="PARAMETER"
3748 ><I
3749 >hosts allow</I
3750 ></TT
3751 ></A
3752 ></P
3753 ></LI
3754 ><LI
3755 ><P
3756 ><A
3757 HREF="#HOSTSDENY"
3758 ><TT
3759 CLASS="PARAMETER"
3760 ><I
3761 >hosts deny</I
3762 ></TT
3763 ></A
3764 ></P
3765 ></LI
3766 ><LI
3767 ><P
3768 ><A
3769 HREF="#INCLUDE"
3770 ><TT
3771 CLASS="PARAMETER"
3772 ><I
3773 >include</I
3774 ></TT
3775 ></A
3776 ></P
3777 ></LI
3778 ><LI
3779 ><P
3780 ><A
3781 HREF="#INHERITACLS"
3782 ><TT
3783 CLASS="PARAMETER"
3784 ><I
3785 >inherit acls</I
3786 ></TT
3787 ></A
3788 ></P
3789 ></LI
3790 ><LI
3791 ><P
3792 ><A
3793 HREF="#INHERITPERMISSIONS"
3794 ><TT
3795 CLASS="PARAMETER"
3796 ><I
3797 >inherit permissions</I
3798 ></TT
3799 ></A
3800 ></P
3801 ></LI
3802 ><LI
3803 ><P
3804 ><A
3805 HREF="#INVALIDUSERS"
3806 ><TT
3807 CLASS="PARAMETER"
3808 ><I
3809 >invalid users</I
3810 ></TT
3811 ></A
3812 ></P
3813 ></LI
3814 ><LI
3815 ><P
3816 ><A
3817 HREF="#LEVEL2OPLOCKS"
3818 ><TT
3819 CLASS="PARAMETER"
3820 ><I
3821 >level2 oplocks</I
3822 ></TT
3823 ></A
3824 ></P
3825 ></LI
3826 ><LI
3827 ><P
3828 ><A
3829 HREF="#LOCKING"
3830 ><TT
3831 CLASS="PARAMETER"
3832 ><I
3833 >locking</I
3834 ></TT
3835 ></A
3836 ></P
3837 ></LI
3838 ><LI
3839 ><P
3840 ><A
3841 HREF="#LPPAUSECOMMAND"
3842 ><TT
3843 CLASS="PARAMETER"
3844 ><I
3845 >lppause command</I
3846 ></TT
3847 ></A
3848 ></P
3849 ></LI
3850 ><LI
3851 ><P
3852 ><A
3853 HREF="#LPQCOMMAND"
3854 ><TT
3855 CLASS="PARAMETER"
3856 ><I
3857 >lpq command</I
3858 ></TT
3859 ></A
3860 ></P
3861 ></LI
3862 ><LI
3863 ><P
3864 ><A
3865 HREF="#LPRESUMECOMMAND"
3866 ><TT
3867 CLASS="PARAMETER"
3868 ><I
3869 >lpresume command</I
3870 ></TT
3871 ></A
3872 ></P
3873 ></LI
3874 ><LI
3875 ><P
3876 ><A
3877 HREF="#LPRMCOMMAND"
3878 ><TT
3879 CLASS="PARAMETER"
3880 ><I
3881 >lprm command</I
3882 ></TT
3883 ></A
3884 ></P
3885 ></LI
3886 ><LI
3887 ><P
3888 ><A
3889 HREF="#MAGICOUTPUT"
3890 ><TT
3891 CLASS="PARAMETER"
3892 ><I
3893 >magic output</I
3894 ></TT
3895 ></A
3896 ></P
3897 ></LI
3898 ><LI
3899 ><P
3900 ><A
3901 HREF="#MAGICSCRIPT"
3902 ><TT
3903 CLASS="PARAMETER"
3904 ><I
3905 >magic script</I
3906 ></TT
3907 ></A
3908 ></P
3909 ></LI
3910 ><LI
3911 ><P
3912 ><A
3913 HREF="#MANGLECASE"
3914 ><TT
3915 CLASS="PARAMETER"
3916 ><I
3917 >mangle case</I
3918 ></TT
3919 ></A
3920 ></P
3921 ></LI
3922 ><LI
3923 ><P
3924 ><A
3925 HREF="#MANGLEDMAP"
3926 ><TT
3927 CLASS="PARAMETER"
3928 ><I
3929 >mangled map</I
3930 ></TT
3931 ></A
3932 ></P
3933 ></LI
3934 ><LI
3935 ><P
3936 ><A
3937 HREF="#MANGLEDNAMES"
3938 ><TT
3939 CLASS="PARAMETER"
3940 ><I
3941 >mangled names</I
3942 ></TT
3943 ></A
3944 ></P
3945 ></LI
3946 ><LI
3947 ><P
3948 ><A
3949 HREF="#MANGLINGCHAR"
3950 ><TT
3951 CLASS="PARAMETER"
3952 ><I
3953 >mangling char</I
3954 ></TT
3955 ></A
3956 ></P
3957 ></LI
3958 ><LI
3959 ><P
3960 ><A
3961 HREF="#MANGLINGMETHOD"
3962 ><TT
3963 CLASS="PARAMETER"
3964 ><I
3965 >mangling method</I
3966 ></TT
3967 ></A
3968 ></P
3969 ></LI
3970 ><LI
3971 ><P
3972 ><A
3973 HREF="#MAPARCHIVE"
3974 ><TT
3975 CLASS="PARAMETER"
3976 ><I
3977 >map archive</I
3978 ></TT
3979 ></A
3980 ></P
3981 ></LI
3982 ><LI
3983 ><P
3984 ><A
3985 HREF="#MAPHIDDEN"
3986 ><TT
3987 CLASS="PARAMETER"
3988 ><I
3989 >map hidden</I
3990 ></TT
3991 ></A
3992 ></P
3993 ></LI
3994 ><LI
3995 ><P
3996 ><A
3997 HREF="#MAPSYSTEM"
3998 ><TT
3999 CLASS="PARAMETER"
4000 ><I
4001 >map system</I
4002 ></TT
4003 ></A
4004 ></P
4005 ></LI
4006 ><LI
4007 ><P
4008 ><A
4009 HREF="#MAXCONNECTIONS"
4010 ><TT
4011 CLASS="PARAMETER"
4012 ><I
4013 >max connections</I
4014 ></TT
4015 ></A
4016 ></P
4017 ></LI
4018 ><LI
4019 ><P
4020 ><A
4021 HREF="#MAXPRINTJOBS"
4022 ><TT
4023 CLASS="PARAMETER"
4024 ><I
4025 >max print jobs</I
4026 ></TT
4027 ></A
4028 ></P
4029 ></LI
4030 ><LI
4031 ><P
4032 ><A
4033 HREF="#MINPRINTSPACE"
4034 ><TT
4035 CLASS="PARAMETER"
4036 ><I
4037 >min print space</I
4038 ></TT
4039 ></A
4040 ></P
4041 ></LI
4042 ><LI
4043 ><P
4044 ><A
4045 HREF="#MSDFSPROXY"
4046 ><TT
4047 CLASS="PARAMETER"
4048 ><I
4049 >msdfs proxy</I
4050 ></TT
4051 ></A
4052 ></P
4053 ></LI
4054 ><LI
4055 ><P
4056 ><A
4057 HREF="#MSDFSROOT"
4058 ><TT
4059 CLASS="PARAMETER"
4060 ><I
4061 >msdfs root</I
4062 ></TT
4063 ></A
4064 ></P
4065 ></LI
4066 ><LI
4067 ><P
4068 ><A
4069 HREF="#NTACLSUPPORT"
4070 ><TT
4071 CLASS="PARAMETER"
4072 ><I
4073 >nt acl support</I
4074 ></TT
4075 ></A
4076 ></P
4077 ></LI
4078 ><LI
4079 ><P
4080 ><A
4081 HREF="#ONLYGUEST"
4082 ><TT
4083 CLASS="PARAMETER"
4084 ><I
4085 >only guest</I
4086 ></TT
4087 ></A
4088 ></P
4089 ></LI
4090 ><LI
4091 ><P
4092 ><A
4093 HREF="#ONLYUSER"
4094 ><TT
4095 CLASS="PARAMETER"
4096 ><I
4097 >only user</I
4098 ></TT
4099 ></A
4100 ></P
4101 ></LI
4102 ><LI
4103 ><P
4104 ><A
4105 HREF="#OPLOCKCONTENTIONLIMIT"
4106 ><TT
4107 CLASS="PARAMETER"
4108 ><I
4109 >oplock contention limit</I
4110 ></TT
4111 ></A
4112 ></P
4113 ></LI
4114 ><LI
4115 ><P
4116 ><A
4117 HREF="#OPLOCKS"
4118 ><TT
4119 CLASS="PARAMETER"
4120 ><I
4121 >oplocks</I
4122 ></TT
4123 ></A
4124 ></P
4125 ></LI
4126 ><LI
4127 ><P
4128 ><A
4129 HREF="#PATH"
4130 ><TT
4131 CLASS="PARAMETER"
4132 ><I
4133 >path</I
4134 ></TT
4135 ></A
4136 ></P
4137 ></LI
4138 ><LI
4139 ><P
4140 ><A
4141 HREF="#POSIXLOCKING"
4142 ><TT
4143 CLASS="PARAMETER"
4144 ><I
4145 >posix locking</I
4146 ></TT
4147 ></A
4148 ></P
4149 ></LI
4150 ><LI
4151 ><P
4152 ><A
4153 HREF="#POSTEXEC"
4154 ><TT
4155 CLASS="PARAMETER"
4156 ><I
4157 >postexec</I
4158 ></TT
4159 ></A
4160 ></P
4161 ></LI
4162 ><LI
4163 ><P
4164 ><A
4165 HREF="#POSTSCRIPT"
4166 ><TT
4167 CLASS="PARAMETER"
4168 ><I
4169 >postscript</I
4170 ></TT
4171 ></A
4172 ></P
4173 ></LI
4174 ><LI
4175 ><P
4176 ><A
4177 HREF="#PREEXEC"
4178 ><TT
4179 CLASS="PARAMETER"
4180 ><I
4181 >preexec</I
4182 ></TT
4183 ></A
4184 ></P
4185 ></LI
4186 ><LI
4187 ><P
4188 ><A
4189 HREF="#PREEXECCLOSE"
4190 ><TT
4191 CLASS="PARAMETER"
4192 ><I
4193 >preexec close</I
4194 ></TT
4195 ></A
4196 ></P
4197 ></LI
4198 ><LI
4199 ><P
4200 ><A
4201 HREF="#PRESERVECASE"
4202 ><TT
4203 CLASS="PARAMETER"
4204 ><I
4205 >preserve case</I
4206 ></TT
4207 ></A
4208 ></P
4209 ></LI
4210 ><LI
4211 ><P
4212 ><A
4213 HREF="#PRINTCOMMAND"
4214 ><TT
4215 CLASS="PARAMETER"
4216 ><I
4217 >print command</I
4218 ></TT
4219 ></A
4220 ></P
4221 ></LI
4222 ><LI
4223 ><P
4224 ><A
4225 HREF="#PRINTOK"
4226 ><TT
4227 CLASS="PARAMETER"
4228 ><I
4229 >print ok</I
4230 ></TT
4231 ></A
4232 ></P
4233 ></LI
4234 ><LI
4235 ><P
4236 ><A
4237 HREF="#PRINTABLE"
4238 ><TT
4239 CLASS="PARAMETER"
4240 ><I
4241 >printable</I
4242 ></TT
4243 ></A
4244 ></P
4245 ></LI
4246 ><LI
4247 ><P
4248 ><A
4249 HREF="#PRINTER"
4250 ><TT
4251 CLASS="PARAMETER"
4252 ><I
4253 >printer</I
4254 ></TT
4255 ></A
4256 ></P
4257 ></LI
4258 ><LI
4259 ><P
4260 ><A
4261 HREF="#PRINTERADMIN"
4262 ><TT
4263 CLASS="PARAMETER"
4264 ><I
4265 >printer admin</I
4266 ></TT
4267 ></A
4268 ></P
4269 ></LI
4270 ><LI
4271 ><P
4272 ><A
4273 HREF="#PRINTERDRIVER"
4274 ><TT
4275 CLASS="PARAMETER"
4276 ><I
4277 >printer driver</I
4278 ></TT
4279 ></A
4280 ></P
4281 ></LI
4282 ><LI
4283 ><P
4284 ><A
4285 HREF="#PRINTERDRIVERLOCATION"
4286 ><TT
4287 CLASS="PARAMETER"
4288 ><I
4289 >printer driver location</I
4290 ></TT
4291 ></A
4292 ></P
4293 ></LI
4294 ><LI
4295 ><P
4296 ><A
4297 HREF="#PRINTERNAME"
4298 ><TT
4299 CLASS="PARAMETER"
4300 ><I
4301 >printer name</I
4302 ></TT
4303 ></A
4304 ></P
4305 ></LI
4306 ><LI
4307 ><P
4308 ><A
4309 HREF="#PRINTING"
4310 ><TT
4311 CLASS="PARAMETER"
4312 ><I
4313 >printing</I
4314 ></TT
4315 ></A
4316 ></P
4317 ></LI
4318 ><LI
4319 ><P
4320 ><A
4321 HREF="#PUBLIC"
4322 ><TT
4323 CLASS="PARAMETER"
4324 ><I
4325 >public</I
4326 ></TT
4327 ></A
4328 ></P
4329 ></LI
4330 ><LI
4331 ><P
4332 ><A
4333 HREF="#QUEUEPAUSECOMMAND"
4334 ><TT
4335 CLASS="PARAMETER"
4336 ><I
4337 >queuepause command</I
4338 ></TT
4339 ></A
4340 ></P
4341 ></LI
4342 ><LI
4343 ><P
4344 ><A
4345 HREF="#QUEUERESUMECOMMAND"
4346 ><TT
4347 CLASS="PARAMETER"
4348 ><I
4349 >queueresume command</I
4350 ></TT
4351 ></A
4352 ></P
4353 ></LI
4354 ><LI
4355 ><P
4356 ><A
4357 HREF="#READLIST"
4358 ><TT
4359 CLASS="PARAMETER"
4360 ><I
4361 >read list</I
4362 ></TT
4363 ></A
4364 ></P
4365 ></LI
4366 ><LI
4367 ><P
4368 ><A
4369 HREF="#READONLY"
4370 ><TT
4371 CLASS="PARAMETER"
4372 ><I
4373 >read only</I
4374 ></TT
4375 ></A
4376 ></P
4377 ></LI
4378 ><LI
4379 ><P
4380 ><A
4381 HREF="#ROOTPOSTEXEC"
4382 ><TT
4383 CLASS="PARAMETER"
4384 ><I
4385 >root postexec</I
4386 ></TT
4387 ></A
4388 ></P
4389 ></LI
4390 ><LI
4391 ><P
4392 ><A
4393 HREF="#ROOTPREEXEC"
4394 ><TT
4395 CLASS="PARAMETER"
4396 ><I
4397 >root preexec</I
4398 ></TT
4399 ></A
4400 ></P
4401 ></LI
4402 ><LI
4403 ><P
4404 ><A
4405 HREF="#ROOTPREEXECCLOSE"
4406 ><TT
4407 CLASS="PARAMETER"
4408 ><I
4409 >root preexec close</I
4410 ></TT
4411 ></A
4412 ></P
4413 ></LI
4414 ><LI
4415 ><P
4416 ><A
4417 HREF="#SECURITYMASK"
4418 ><TT
4419 CLASS="PARAMETER"
4420 ><I
4421 >security mask</I
4422 ></TT
4423 ></A
4424 ></P
4425 ></LI
4426 ><LI
4427 ><P
4428 ><A
4429 HREF="#SETDIRECTORY"
4430 ><TT
4431 CLASS="PARAMETER"
4432 ><I
4433 >set directory</I
4434 ></TT
4435 ></A
4436 ></P
4437 ></LI
4438 ><LI
4439 ><P
4440 ><A
4441 HREF="#SHAREMODES"
4442 ><TT
4443 CLASS="PARAMETER"
4444 ><I
4445 >share modes</I
4446 ></TT
4447 ></A
4448 ></P
4449 ></LI
4450 ><LI
4451 ><P
4452 ><A
4453 HREF="#SHORTPRESERVECASE"
4454 ><TT
4455 CLASS="PARAMETER"
4456 ><I
4457 >short preserve case</I
4458 ></TT
4459 ></A
4460 ></P
4461 ></LI
4462 ><LI
4463 ><P
4464 ><A
4465 HREF="#STRICTALLOCATE"
4466 ><TT
4467 CLASS="PARAMETER"
4468 ><I
4469 >strict allocate</I
4470 ></TT
4471 ></A
4472 ></P
4473 ></LI
4474 ><LI
4475 ><P
4476 ><A
4477 HREF="#STRICTLOCKING"
4478 ><TT
4479 CLASS="PARAMETER"
4480 ><I
4481 >strict locking</I
4482 ></TT
4483 ></A
4484 ></P
4485 ></LI
4486 ><LI
4487 ><P
4488 ><A
4489 HREF="#STRICTSYNC"
4490 ><TT
4491 CLASS="PARAMETER"
4492 ><I
4493 >strict sync</I
4494 ></TT
4495 ></A
4496 ></P
4497 ></LI
4498 ><LI
4499 ><P
4500 ><A
4501 HREF="#SYNCALWAYS"
4502 ><TT
4503 CLASS="PARAMETER"
4504 ><I
4505 >sync always</I
4506 ></TT
4507 ></A
4508 ></P
4509 ></LI
4510 ><LI
4511 ><P
4512 ><A
4513 HREF="#USECLIENTDRIVER"
4514 ><TT
4515 CLASS="PARAMETER"
4516 ><I
4517 >use client driver</I
4518 ></TT
4519 ></A
4520 ></P
4521 ></LI
4522 ><LI
4523 ><P
4524 ><A
4525 HREF="#USER"
4526 ><TT
4527 CLASS="PARAMETER"
4528 ><I
4529 >user</I
4530 ></TT
4531 ></A
4532 ></P
4533 ></LI
4534 ><LI
4535 ><P
4536 ><A
4537 HREF="#USERNAME"
4538 ><TT
4539 CLASS="PARAMETER"
4540 ><I
4541 >username</I
4542 ></TT
4543 ></A
4544 ></P
4545 ></LI
4546 ><LI
4547 ><P
4548 ><A
4549 HREF="#USERS"
4550 ><TT
4551 CLASS="PARAMETER"
4552 ><I
4553 >users</I
4554 ></TT
4555 ></A
4556 ></P
4557 ></LI
4558 ><LI
4559 ><P
4560 ><A
4561 HREF="#VALIDUSERS"
4562 ><TT
4563 CLASS="PARAMETER"
4564 ><I
4565 >valid users</I
4566 ></TT
4567 ></A
4568 ></P
4569 ></LI
4570 ><LI
4571 ><P
4572 ><A
4573 HREF="#VETOFILES"
4574 ><TT
4575 CLASS="PARAMETER"
4576 ><I
4577 >veto files</I
4578 ></TT
4579 ></A
4580 ></P
4581 ></LI
4582 ><LI
4583 ><P
4584 ><A
4585 HREF="#VETOOPLOCKFILES"
4586 ><TT
4587 CLASS="PARAMETER"
4588 ><I
4589 >veto oplock files</I
4590 ></TT
4591 ></A
4592 ></P
4593 ></LI
4594 ><LI
4595 ><P
4596 ><A
4597 HREF="#VFSPATH"
4598 ><TT
4599 CLASS="PARAMETER"
4600 ><I
4601 >vfs path</I
4602 ></TT
4603 ></A
4604 ></P
4605 ></LI
4606 ><LI
4607 ><P
4608 ><A
4609 HREF="#VFSOBJECT"
4610 ><TT
4611 CLASS="PARAMETER"
4612 ><I
4613 >vfs object</I
4614 ></TT
4615 ></A
4616 ></P
4617 ></LI
4618 ><LI
4619 ><P
4620 ><A
4621 HREF="#VFSOPTIONS"
4622 ><TT
4623 CLASS="PARAMETER"
4624 ><I
4625 >vfs options</I
4626 ></TT
4627 ></A
4628 ></P
4629 ></LI
4630 ><LI
4631 ><P
4632 ><A
4633 HREF="#VOLUME"
4634 ><TT
4635 CLASS="PARAMETER"
4636 ><I
4637 >volume</I
4638 ></TT
4639 ></A
4640 ></P
4641 ></LI
4642 ><LI
4643 ><P
4644 ><A
4645 HREF="#WIDELINKS"
4646 ><TT
4647 CLASS="PARAMETER"
4648 ><I
4649 >wide links</I
4650 ></TT
4651 ></A
4652 ></P
4653 ></LI
4654 ><LI
4655 ><P
4656 ><A
4657 HREF="#WRITABLE"
4658 ><TT
4659 CLASS="PARAMETER"
4660 ><I
4661 >writable</I
4662 ></TT
4663 ></A
4664 ></P
4665 ></LI
4666 ><LI
4667 ><P
4668 ><A
4669 HREF="#WRITECACHESIZE"
4670 ><TT
4671 CLASS="PARAMETER"
4672 ><I
4673 >write cache size</I
4674 ></TT
4675 ></A
4676 ></P
4677 ></LI
4678 ><LI
4679 ><P
4680 ><A
4681 HREF="#WRITELIST"
4682 ><TT
4683 CLASS="PARAMETER"
4684 ><I
4685 >write list</I
4686 ></TT
4687 ></A
4688 ></P
4689 ></LI
4690 ><LI
4691 ><P
4692 ><A
4693 HREF="#WRITEOK"
4694 ><TT
4695 CLASS="PARAMETER"
4696 ><I
4697 >write ok</I
4698 ></TT
4699 ></A
4700 ></P
4701 ></LI
4702 ><LI
4703 ><P
4704 ><A
4705 HREF="#WRITEABLE"
4706 ><TT
4707 CLASS="PARAMETER"
4708 ><I
4709 >writeable</I
4710 ></TT
4711 ></A
4712 ></P
4713 ></LI
4714 ></UL
4715 ></DIV
4716 ><DIV
4717 CLASS="REFSECT1"
4718 ><A
4719 NAME="AEN1533"
4720 ></A
4721 ><H2
4722 >EXPLANATION OF EACH PARAMETER</H2
4723 ><P
4724 ></P
4725 ><DIV
4726 CLASS="VARIABLELIST"
4727 ><DL
4728 ><DT
4729 ><A
4730 NAME="ABORTSHUTDOWNSCRIPT"
4731 ></A
4732 >abort shutdown script (G)</DT
4733 ><DD
4734 ><P
4735 ><I
4736 CLASS="EMPHASIS"
4737 >This parameter only exists in the HEAD cvs branch</I
4738 >
4739                 This a full path name to a script called by
4740                 <A
4741 HREF="smbd.8.html"
4742 TARGET="_top"
4743 ><B
4744 CLASS="COMMAND"
4745 >smbd(8)</B
4746 ></A
4747 >  that
4748                 should stop a shutdown procedure issued by the <A
4749 HREF="#SHUTDOWNSCRIPT"
4750 ><TT
4751 CLASS="PARAMETER"
4752 ><I
4753 >shutdown script</I
4754 ></TT
4755 ></A
4756 >.</P
4757 ><P
4758 >This command will be run as user.</P
4759 ><P
4760 >Default: <I
4761 CLASS="EMPHASIS"
4762 >None</I
4763 >.</P
4764 ><P
4765 >Example: <B
4766 CLASS="COMMAND"
4767 >abort shutdown script = /sbin/shutdown -c</B
4768 ></P
4769 ></DD
4770 ><DT
4771 ><A
4772 NAME="ADDPRINTERCOMMAND"
4773 ></A
4774 >addprinter command (G)</DT
4775 ><DD
4776 ><P
4777 >With the introduction of MS-RPC based printing
4778                 support for Windows NT/2000 clients in Samba 2.2, The MS Add
4779                 Printer Wizard (APW) icon is now also available in the 
4780                 "Printers..." folder displayed a share listing.  The APW
4781                 allows for printers to be add remotely to a Samba or Windows 
4782                 NT/2000 print server.</P
4783 ><P
4784 >For a Samba host this means that the printer must be 
4785                 physically added to the underlying printing system.  The <TT
4786 CLASS="PARAMETER"
4787 ><I
4788 >add 
4789                 printer command</I
4790 ></TT
4791 > defines a script to be run which 
4792                 will perform the necessary operations for adding the printer
4793                 to the print system and to add the appropriate service definition 
4794                 to the  <TT
4795 CLASS="FILENAME"
4796 >smb.conf</TT
4797 > file in order that it can be 
4798                 shared by <A
4799 HREF="smbd.8.html"
4800 TARGET="_top"
4801 ><B
4802 CLASS="COMMAND"
4803 >smbd(8)</B
4804 >
4805                 </A
4806 >.</P
4807 ><P
4808 >The <TT
4809 CLASS="PARAMETER"
4810 ><I
4811 >addprinter command</I
4812 ></TT
4813 > is
4814                 automatically invoked with the following parameter (in 
4815                 order:</P
4816 ><P
4817 ></P
4818 ><UL
4819 ><LI
4820 ><P
4821 ><TT
4822 CLASS="PARAMETER"
4823 ><I
4824 >printer name</I
4825 ></TT
4826 ></P
4827 ></LI
4828 ><LI
4829 ><P
4830 ><TT
4831 CLASS="PARAMETER"
4832 ><I
4833 >share name</I
4834 ></TT
4835 ></P
4836 ></LI
4837 ><LI
4838 ><P
4839 ><TT
4840 CLASS="PARAMETER"
4841 ><I
4842 >port name</I
4843 ></TT
4844 ></P
4845 ></LI
4846 ><LI
4847 ><P
4848 ><TT
4849 CLASS="PARAMETER"
4850 ><I
4851 >driver name</I
4852 ></TT
4853 ></P
4854 ></LI
4855 ><LI
4856 ><P
4857 ><TT
4858 CLASS="PARAMETER"
4859 ><I
4860 >location</I
4861 ></TT
4862 ></P
4863 ></LI
4864 ><LI
4865 ><P
4866 ><TT
4867 CLASS="PARAMETER"
4868 ><I
4869 >Windows 9x driver location</I
4870 ></TT
4871 >
4872                         </P
4873 ></LI
4874 ></UL
4875 ><P
4876 >All parameters are filled in from the PRINTER_INFO_2 structure sent 
4877                 by the Windows NT/2000 client with one exception.  The "Windows 9x
4878                 driver location" parameter is included for backwards compatibility
4879                 only.  The remaining fields in the structure are generated from answers
4880                 to the APW questions.</P
4881 ><P
4882 >Once the <TT
4883 CLASS="PARAMETER"
4884 ><I
4885 >addprinter command</I
4886 ></TT
4887 > has 
4888                 been executed, <B
4889 CLASS="COMMAND"
4890 >smbd</B
4891 > will reparse the <TT
4892 CLASS="FILENAME"
4893 >               smb.conf</TT
4894 > to determine if the share defined by the APW
4895                 exists.  If the sharename is still invalid, then <B
4896 CLASS="COMMAND"
4897 >smbd
4898                 </B
4899 > will return an ACCESS_DENIED error to the client.</P
4900 ><P
4901 >See also <A
4902 HREF="#DELETEPRINTERCOMMAND"
4903 ><TT
4904 CLASS="PARAMETER"
4905 ><I
4906 >               deleteprinter command</I
4907 ></TT
4908 ></A
4909 >, <A
4910 HREF="#PRINTING"
4911 ><TT
4912 CLASS="PARAMETER"
4913 ><I
4914 >printing</I
4915 ></TT
4916 ></A
4917 >,
4918                 <A
4919 HREF="#SHOWADDPRINTERWIZARD"
4920 ><TT
4921 CLASS="PARAMETER"
4922 ><I
4923 >show add
4924                 printer wizard</I
4925 ></TT
4926 ></A
4927 ></P
4928 ><P
4929 >Default: <I
4930 CLASS="EMPHASIS"
4931 >none</I
4932 ></P
4933 ><P
4934 >Example: <B
4935 CLASS="COMMAND"
4936 >addprinter command = /usr/bin/addprinter
4937                 </B
4938 ></P
4939 ></DD
4940 ><DT
4941 ><A
4942 NAME="ADDSHARECOMMAND"
4943 ></A
4944 >add share command (G)</DT
4945 ><DD
4946 ><P
4947 >Samba 2.2.0 introduced the ability to dynamically 
4948                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
4949                 <TT
4950 CLASS="PARAMETER"
4951 ><I
4952 >add share command</I
4953 ></TT
4954 > is used to define an 
4955                 external program or script which will add a new service definition 
4956                 to <TT
4957 CLASS="FILENAME"
4958 >smb.conf</TT
4959 >.  In order to successfully 
4960                 execute the <TT
4961 CLASS="PARAMETER"
4962 ><I
4963 >add share command</I
4964 ></TT
4965 >, <B
4966 CLASS="COMMAND"
4967 >smbd</B
4968 >
4969                 requires that the administrator be connected using a root account (i.e. 
4970                 uid == 0).
4971                 </P
4972 ><P
4973 >               When executed, <B
4974 CLASS="COMMAND"
4975 >smbd</B
4976 > will automatically invoke the 
4977                 <TT
4978 CLASS="PARAMETER"
4979 ><I
4980 >add share command</I
4981 ></TT
4982 > with four parameters.
4983                 </P
4984 ><P
4985 ></P
4986 ><UL
4987 ><LI
4988 ><P
4989 ><TT
4990 CLASS="PARAMETER"
4991 ><I
4992 >configFile</I
4993 ></TT
4994 > - the location 
4995                         of the global <TT
4996 CLASS="FILENAME"
4997 >smb.conf</TT
4998 > file. 
4999                         </P
5000 ></LI
5001 ><LI
5002 ><P
5003 ><TT
5004 CLASS="PARAMETER"
5005 ><I
5006 >shareName</I
5007 ></TT
5008 > - the name of the new 
5009                         share.
5010                         </P
5011 ></LI
5012 ><LI
5013 ><P
5014 ><TT
5015 CLASS="PARAMETER"
5016 ><I
5017 >pathName</I
5018 ></TT
5019 > - path to an **existing**
5020                         directory on disk.
5021                         </P
5022 ></LI
5023 ><LI
5024 ><P
5025 ><TT
5026 CLASS="PARAMETER"
5027 ><I
5028 >comment</I
5029 ></TT
5030 > - comment string to associate 
5031                         with the new share.
5032                         </P
5033 ></LI
5034 ></UL
5035 ><P
5036 >               This parameter is only used for add file shares.  To add printer shares, 
5037                 see the <A
5038 HREF="#ADDPRINTERCOMMAND"
5039 ><TT
5040 CLASS="PARAMETER"
5041 ><I
5042 >addprinter 
5043                 command</I
5044 ></TT
5045 ></A
5046 >.
5047                 </P
5048 ><P
5049 >               See also <A
5050 HREF="#CHANGESHARECOMMAND"
5051 ><TT
5052 CLASS="PARAMETER"
5053 ><I
5054 >change share 
5055                 command</I
5056 ></TT
5057 ></A
5058 >, <A
5059 HREF="#DELETESHARECOMMAND"
5060 ><TT
5061 CLASS="PARAMETER"
5062 ><I
5063 >delete share
5064                 command</I
5065 ></TT
5066 ></A
5067 >.
5068                 </P
5069 ><P
5070 >Default: <I
5071 CLASS="EMPHASIS"
5072 >none</I
5073 ></P
5074 ><P
5075 >Example: <B
5076 CLASS="COMMAND"
5077 >add share command = /usr/local/bin/addshare</B
5078 ></P
5079 ></DD
5080 ><DT
5081 ><A
5082 NAME="ADDMACHINESCRIPT"
5083 ></A
5084 >add machine script (G)</DT
5085 ><DD
5086 ><P
5087 >This is the full pathname to a script that will 
5088                 be run by <A
5089 HREF="smbd.8.html"
5090 TARGET="_top"
5091 >smbd(8)</A
5092 >  when a machine is added
5093                 to it's domain using the administrator username and password method. </P
5094 ><P
5095 >This option is only required when using sam back-ends tied to the
5096                 Unix uid method of RID calculation such as smbpasswd.  This option is only
5097                 available in Samba 3.0.</P
5098 ><P
5099 >Default: <B
5100 CLASS="COMMAND"
5101 >add machine script = &#60;empty string&#62;
5102                 </B
5103 ></P
5104 ><P
5105 >Example: <B
5106 CLASS="COMMAND"
5107 >add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
5108                 </B
5109 ></P
5110 ></DD
5111 ><DT
5112 ><A
5113 NAME="ADSSERVER"
5114 ></A
5115 >ads server (G)</DT
5116 ><DD
5117 ><P
5118 >If this option is specified, samba does 
5119                 not try to figure out what ads server to use itself, but 
5120                 uses the specified ads server. Either one DNS name or IP 
5121                 address can be used.</P
5122 ><P
5123 >Default: <B
5124 CLASS="COMMAND"
5125 >ads server = </B
5126 ></P
5127 ><P
5128 >Example: <B
5129 CLASS="COMMAND"
5130 >ads server = 192.168.1.2</B
5131 ></P
5132 ></DD
5133 ><DT
5134 ><A
5135 NAME="ADDUSERSCRIPT"
5136 ></A
5137 >add user script (G)</DT
5138 ><DD
5139 ><P
5140 >This is the full pathname to a script that will 
5141                 be run <I
5142 CLASS="EMPHASIS"
5143 >AS ROOT</I
5144 > by <A
5145 HREF="smbd.8.html"
5146 TARGET="_top"
5147 >smbd(8)
5148                 </A
5149 > under special circumstances described below.</P
5150 ><P
5151 >Normally, a Samba server requires that UNIX users are 
5152                 created for all users accessing files on this server. For sites 
5153                 that use Windows NT account databases as their primary user database 
5154                 creating these users and keeping the user list in sync with the 
5155                 Windows NT PDC is an onerous task. This option allows <A
5156 HREF="smbd.8.html"
5157 TARGET="_top"
5158 >smbd</A
5159 > to create the required UNIX users 
5160                 <I
5161 CLASS="EMPHASIS"
5162 >ON DEMAND</I
5163 > when a user accesses the Samba server.</P
5164 ><P
5165 >In order to use this option, <A
5166 HREF="smbd.8.html"
5167 TARGET="_top"
5168 >smbd</A
5169
5170                 must <I
5171 CLASS="EMPHASIS"
5172 >NOT</I
5173 > be set to <TT
5174 CLASS="PARAMETER"
5175 ><I
5176 >security = share</I
5177 ></TT
5178 >
5179                 and <TT
5180 CLASS="PARAMETER"
5181 ><I
5182 >add user script</I
5183 ></TT
5184 >
5185                 must be set to a full pathname for a script that will create a UNIX 
5186                 user given one argument of <TT
5187 CLASS="PARAMETER"
5188 ><I
5189 >%u</I
5190 ></TT
5191 >, which expands into 
5192                 the UNIX user name to create.</P
5193 ><P
5194 >When the Windows user attempts to access the Samba server, 
5195                 at login (session setup in the SMB protocol) time, <A
5196 HREF="smbd.8.html"
5197 TARGET="_top"
5198 >               smbd</A
5199 > contacts the <TT
5200 CLASS="PARAMETER"
5201 ><I
5202 >password server</I
5203 ></TT
5204 > and 
5205                 attempts to authenticate the given user with the given password. If the 
5206                 authentication succeeds then <B
5207 CLASS="COMMAND"
5208 >smbd</B
5209
5210                 attempts to find a UNIX user in the UNIX password database to map the 
5211                 Windows user into. If this lookup fails, and <TT
5212 CLASS="PARAMETER"
5213 ><I
5214 >add user script
5215                 </I
5216 ></TT
5217 > is set then <B
5218 CLASS="COMMAND"
5219 >smbd</B
5220 > will
5221                 call the specified script <I
5222 CLASS="EMPHASIS"
5223 >AS ROOT</I
5224 >, expanding 
5225                 any <TT
5226 CLASS="PARAMETER"
5227 ><I
5228 >%u</I
5229 ></TT
5230 > argument to be the user name to create.</P
5231 ><P
5232 >If this script successfully creates the user then <B
5233 CLASS="COMMAND"
5234 >smbd
5235                 </B
5236 > will continue on as though the UNIX user
5237                 already existed. In this way, UNIX users are dynamically created to
5238                 match existing Windows NT accounts.</P
5239 ><P
5240 >See also <A
5241 HREF="#SECURITY"
5242 ><TT
5243 CLASS="PARAMETER"
5244 ><I
5245 >               security</I
5246 ></TT
5247 ></A
5248 >, <A
5249 HREF="#PASSWORDSERVER"
5250 >               <TT
5251 CLASS="PARAMETER"
5252 ><I
5253 >password server</I
5254 ></TT
5255 ></A
5256 >, 
5257                 <A
5258 HREF="#DELETEUSERSCRIPT"
5259 ><TT
5260 CLASS="PARAMETER"
5261 ><I
5262 >delete user 
5263                 script</I
5264 ></TT
5265 ></A
5266 >.</P
5267 ><P
5268 >Default: <B
5269 CLASS="COMMAND"
5270 >add user script = &#60;empty string&#62;
5271                 </B
5272 ></P
5273 ><P
5274 >Example: <B
5275 CLASS="COMMAND"
5276 >add user script = /usr/local/samba/bin/add_user 
5277                 %u</B
5278 ></P
5279 ></DD
5280 ><DT
5281 ><A
5282 NAME="ADDGROUPSCRIPT"
5283 ></A
5284 >add group script (G)</DT
5285 ><DD
5286 ><P
5287 >This is the full pathname to a script that will 
5288                 be run <I
5289 CLASS="EMPHASIS"
5290 >AS ROOT</I
5291 > by <A
5292 HREF="smbd.8.html"
5293 TARGET="_top"
5294 >smbd(8)</A
5295 > when a new group is
5296                 requested. It will expand any
5297                 <TT
5298 CLASS="PARAMETER"
5299 ><I
5300 >%g</I
5301 ></TT
5302 > to the group name passed.
5303                 This script is only useful for installations using the
5304                 Windows NT domain administration tools. The script is
5305                 free to create a group with an arbitrary name to
5306                 circumvent unix group name restrictions. In that case
5307                 the script must print the numeric gid of the created
5308                 group on stdout.
5309                 </P
5310 ></DD
5311 ><DT
5312 ><A
5313 NAME="ADMINUSERS"
5314 ></A
5315 >admin users (S)</DT
5316 ><DD
5317 ><P
5318 >This is a list of users who will be granted 
5319                 administrative privileges on the share. This means that they 
5320                 will do all file operations as the super-user (root).</P
5321 ><P
5322 >You should use this option very carefully, as any user in 
5323                 this list will be able to do anything they like on the share, 
5324                 irrespective of file permissions.</P
5325 ><P
5326 >Default: <I
5327 CLASS="EMPHASIS"
5328 >no admin users</I
5329 ></P
5330 ><P
5331 >Example: <B
5332 CLASS="COMMAND"
5333 >admin users = jason</B
5334 ></P
5335 ></DD
5336 ><DT
5337 ><A
5338 NAME="ADDUSERTOGROUPSCRIPT"
5339 ></A
5340 >add user to group script (G)</DT
5341 ><DD
5342 ><P
5343 >Full path to the script that will be called when 
5344                 a user is added to a group using the Windows NT domain administration 
5345                 tools. It will be run by <A
5346 HREF="smbd.8.html"
5347 TARGET="_top"
5348 >smbd(8)</A
5349
5350                 <I
5351 CLASS="EMPHASIS"
5352 >AS ROOT</I
5353 >. Any <TT
5354 CLASS="PARAMETER"
5355 ><I
5356 >%g</I
5357 ></TT
5358 > will be 
5359                 replaced with the group name and any <TT
5360 CLASS="PARAMETER"
5361 ><I
5362 >%u</I
5363 ></TT
5364 > will 
5365                 be replaced with the user name.
5366                 </P
5367 ><P
5368 >Default: <B
5369 CLASS="COMMAND"
5370 >add user to group script = </B
5371 ></P
5372 ><P
5373 >Example: <B
5374 CLASS="COMMAND"
5375 >add user to group script = /usr/sbin/adduser %u %g</B
5376 ></P
5377 ></DD
5378 ><DT
5379 ><A
5380 NAME="ALLOWHOSTS"
5381 ></A
5382 >allow hosts (S)</DT
5383 ><DD
5384 ><P
5385 >Synonym for <A
5386 HREF="#HOSTSALLOW"
5387 >               <TT
5388 CLASS="PARAMETER"
5389 ><I
5390 >hosts allow</I
5391 ></TT
5392 ></A
5393 >.</P
5394 ></DD
5395 ><DT
5396 ><A
5397 NAME="ALGORITHMICRIDBASE"
5398 ></A
5399 >algorithmic rid base (G)</DT
5400 ><DD
5401 ><P
5402 >This determines how Samba will use its
5403                 algorithmic mapping from uids/gid to the RIDs needed to construct
5404                 NT Security Identifiers.</P
5405 ><P
5406 >Setting this option to a larger value could be useful to sites
5407                 transitioning from WinNT and Win2k, as existing user and 
5408                 group rids would otherwise clash with sytem users etc. 
5409                 </P
5410 ><P
5411 >All UIDs and GIDs must be able to be resolved into SIDs for  
5412                 the correct operation of ACLs on the server.  As such the algorithmic
5413                 mapping can't be 'turned off', but pushing it 'out of the way' should
5414                 resolve the issues.  Users and groups can then be assigned 'low' RIDs
5415                 in arbitary-rid supporting backends. </P
5416 ><P
5417 >Default: <B
5418 CLASS="COMMAND"
5419 >algorithmic rid base = 1000</B
5420 ></P
5421 ><P
5422 >Example: <B
5423 CLASS="COMMAND"
5424 >algorithmic rid base = 100000</B
5425 ></P
5426 ></DD
5427 ><DT
5428 ><A
5429 NAME="ALLOWTRUSTEDDOMAINS"
5430 ></A
5431 >allow trusted domains (G)</DT
5432 ><DD
5433 ><P
5434 >This option only takes effect when the <A
5435 HREF="#SECURITY"
5436 ><TT
5437 CLASS="PARAMETER"
5438 ><I
5439 >security</I
5440 ></TT
5441 ></A
5442 > option is set to 
5443                 <TT
5444 CLASS="CONSTANT"
5445 >server</TT
5446 > or <TT
5447 CLASS="CONSTANT"
5448 >domain</TT
5449 >.  
5450                 If it is set to no, then attempts to connect to a resource from 
5451                 a domain or workgroup other than the one which <A
5452 HREF="smbd.8.html"
5453 TARGET="_top"
5454 >smbd</A
5455 > is running 
5456                 in will fail, even if that domain is trusted by the remote server 
5457                 doing the authentication.</P
5458 ><P
5459 >This is useful if you only want your Samba server to 
5460                 serve resources to users in the domain it is a member of. As 
5461                 an example, suppose that there are two domains DOMA and DOMB.  DOMB 
5462                 is trusted by DOMA, which contains the Samba server.  Under normal 
5463                 circumstances, a user with an account in DOMB can then access the 
5464                 resources of a UNIX account with the same account name on the 
5465                 Samba server even if they do not have an account in DOMA.  This 
5466                 can make implementing a security boundary difficult.</P
5467 ><P
5468 >Default: <B
5469 CLASS="COMMAND"
5470 >allow trusted domains = yes</B
5471 ></P
5472 ></DD
5473 ><DT
5474 ><A
5475 NAME="ANNOUNCEAS"
5476 ></A
5477 >announce as (G)</DT
5478 ><DD
5479 ><P
5480 >This specifies what type of server 
5481                 <A
5482 HREF="nmbd.8.html"
5483 TARGET="_top"
5484 ><B
5485 CLASS="COMMAND"
5486 >nmbd</B
5487 ></A
5488
5489                 will announce itself as, to a network neighborhood browse 
5490                 list. By default this is set to Windows NT. The valid options 
5491                 are : "NT Server" (which can also be written as "NT"), 
5492                 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, 
5493                 Windows NT Workstation, Windows 95 and Windows for Workgroups 
5494                 respectively. Do not change this parameter unless you have a 
5495                 specific need to stop Samba appearing as an NT server as this 
5496                 may prevent Samba servers from participating as browser servers 
5497                 correctly.</P
5498 ><P
5499 >Default: <B
5500 CLASS="COMMAND"
5501 >announce as = NT Server</B
5502 ></P
5503 ><P
5504 >Example: <B
5505 CLASS="COMMAND"
5506 >announce as = Win95</B
5507 ></P
5508 ></DD
5509 ><DT
5510 ><A
5511 NAME="ANNOUNCEVERSION"
5512 ></A
5513 >announce version (G)</DT
5514 ><DD
5515 ><P
5516 >This specifies the major and minor version numbers 
5517                 that nmbd will use when announcing itself as a server. The default 
5518                 is 4.9.  Do not change this parameter unless you have a specific 
5519                 need to set a Samba server to be a downlevel server.</P
5520 ><P
5521 >Default: <B
5522 CLASS="COMMAND"
5523 >announce version = 4.9</B
5524 ></P
5525 ><P
5526 >Example: <B
5527 CLASS="COMMAND"
5528 >announce version = 2.0</B
5529 ></P
5530 ></DD
5531 ><DT
5532 ><A
5533 NAME="AUTOSERVICES"
5534 ></A
5535 >auto services (G)</DT
5536 ><DD
5537 ><P
5538 >This is a synonym for the <A
5539 HREF="#PRELOAD"
5540 >               <TT
5541 CLASS="PARAMETER"
5542 ><I
5543 >preload</I
5544 ></TT
5545 ></A
5546 >.</P
5547 ></DD
5548 ><DT
5549 ><A
5550 NAME="AUTHMETHODS"
5551 ></A
5552 >auth methods (G)</DT
5553 ><DD
5554 ><P
5555 >This option allows the administrator to chose what
5556                 authentication methods <B
5557 CLASS="COMMAND"
5558 >smbd</B
5559 > will use when authenticating
5560                 a user.  This option defaults to sensible values based on <A
5561 HREF="#SECURITY"
5562 ><TT
5563 CLASS="PARAMETER"
5564 ><I
5565 >               security</I
5566 ></TT
5567 ></A
5568 >.
5569
5570                 Each entry in the list attempts to authenticate the user in turn, until
5571                 the user authenticates.  In practice only one method will ever actually 
5572                 be able to complete the authentication.
5573                 </P
5574 ><P
5575 >Default: <B
5576 CLASS="COMMAND"
5577 >auth methods = &#60;empty string&#62;</B
5578 ></P
5579 ><P
5580 >Example: <B
5581 CLASS="COMMAND"
5582 >auth methods = guest sam ntdomain</B
5583 ></P
5584 ></DD
5585 ><DT
5586 ><A
5587 NAME="AVAILABLE"
5588 ></A
5589 >available (S)</DT
5590 ><DD
5591 ><P
5592 >This parameter lets you "turn off" a service. If 
5593                 <TT
5594 CLASS="PARAMETER"
5595 ><I
5596 >available = no</I
5597 ></TT
5598 >, then <I
5599 CLASS="EMPHASIS"
5600 >ALL</I
5601
5602                 attempts to connect to the service will fail. Such failures are 
5603                 logged.</P
5604 ><P
5605 >Default: <B
5606 CLASS="COMMAND"
5607 >available = yes</B
5608 ></P
5609 ></DD
5610 ><DT
5611 ><A
5612 NAME="BINDINTERFACESONLY"
5613 ></A
5614 >bind interfaces only (G)</DT
5615 ><DD
5616 ><P
5617 >This global parameter allows the Samba admin 
5618                 to limit what interfaces on a machine will serve SMB requests. It 
5619                 affects file service <A
5620 HREF="smbd.8.html"
5621 TARGET="_top"
5622 >smbd(8)</A
5623 > and 
5624                 name service <A
5625 HREF="nmbd.8.html"
5626 TARGET="_top"
5627 >nmbd(8)</A
5628 > in slightly 
5629                 different ways.</P
5630 ><P
5631 >For name service it causes <B
5632 CLASS="COMMAND"
5633 >nmbd</B
5634 > to bind 
5635                 to ports 137 and 138 on the interfaces listed in the <A
5636 HREF="#INTERFACES"
5637 >interfaces</A
5638 > parameter. <B
5639 CLASS="COMMAND"
5640 >nmbd
5641                 </B
5642 > also binds to the "all addresses" interface (0.0.0.0) 
5643                 on ports 137 and 138 for the purposes of reading broadcast messages. 
5644                 If this option is not set then <B
5645 CLASS="COMMAND"
5646 >nmbd</B
5647 > will service 
5648                 name requests on all of these sockets. If <TT
5649 CLASS="PARAMETER"
5650 ><I
5651 >bind interfaces
5652                 only</I
5653 ></TT
5654 > is set then <B
5655 CLASS="COMMAND"
5656 >nmbd</B
5657 > will check the 
5658                 source address of any packets coming in on the broadcast sockets 
5659                 and discard any that don't match the broadcast addresses of the 
5660                 interfaces in the <TT
5661 CLASS="PARAMETER"
5662 ><I
5663 >interfaces</I
5664 ></TT
5665 > parameter list. 
5666                 As unicast packets are received on the other sockets it allows 
5667                 <B
5668 CLASS="COMMAND"
5669 >nmbd</B
5670 > to refuse to serve names to machines that 
5671                 send packets that arrive through any interfaces not listed in the
5672                 <TT
5673 CLASS="PARAMETER"
5674 ><I
5675 >interfaces</I
5676 ></TT
5677 > list.  IP Source address spoofing
5678                 does defeat this simple check, however, so it must not be used
5679                 seriously as a security feature for <B
5680 CLASS="COMMAND"
5681 >nmbd</B
5682 >.</P
5683 ><P
5684 >For file service it causes <A
5685 HREF="smbd.8.html"
5686 TARGET="_top"
5687 >smbd(8)</A
5688 >
5689                 to bind only to the interface list given in the <A
5690 HREF="#INTERFACES"
5691 >               interfaces</A
5692 > parameter. This restricts the networks that 
5693                 <B
5694 CLASS="COMMAND"
5695 >smbd</B
5696 > will serve to packets coming in those 
5697                 interfaces.  Note that you should not use this parameter for machines 
5698                 that are serving PPP or other intermittent or non-broadcast network 
5699                 interfaces as it will not cope with non-permanent interfaces.</P
5700 ><P
5701 >If <TT
5702 CLASS="PARAMETER"
5703 ><I
5704 >bind interfaces only</I
5705 ></TT
5706 > is set then 
5707                 unless the network address <I
5708 CLASS="EMPHASIS"
5709 >127.0.0.1</I
5710 > is added 
5711                 to the <TT
5712 CLASS="PARAMETER"
5713 ><I
5714 >interfaces</I
5715 ></TT
5716 > parameter list <A
5717 HREF="smbpasswd.8.html"
5718 TARGET="_top"
5719 ><B
5720 CLASS="COMMAND"
5721 >smbpasswd(8)</B
5722 ></A
5723
5724                 and <A
5725 HREF="swat.8.html"
5726 TARGET="_top"
5727 ><B
5728 CLASS="COMMAND"
5729 >swat(8)</B
5730 ></A
5731 > may 
5732                 not work as expected due to the reasons covered below.</P
5733 ><P
5734 >To change a users SMB password, the <B
5735 CLASS="COMMAND"
5736 >smbpasswd</B
5737 >
5738                 by default connects to the <I
5739 CLASS="EMPHASIS"
5740 >localhost - 127.0.0.1</I
5741
5742                 address as an SMB client to issue the password change request. If 
5743                 <TT
5744 CLASS="PARAMETER"
5745 ><I
5746 >bind interfaces only</I
5747 ></TT
5748 > is set then unless the 
5749                 network address <I
5750 CLASS="EMPHASIS"
5751 >127.0.0.1</I
5752 > is added to the
5753                 <TT
5754 CLASS="PARAMETER"
5755 ><I
5756 >interfaces</I
5757 ></TT
5758 > parameter list then <B
5759 CLASS="COMMAND"
5760 >               smbpasswd</B
5761 > will fail to connect in it's default mode. 
5762                 <B
5763 CLASS="COMMAND"
5764 >smbpasswd</B
5765 > can be forced to use the primary IP interface 
5766                 of the local host by using its <A
5767 HREF="smbpasswd.8.html#minusr"
5768 TARGET="_top"
5769 >               <TT
5770 CLASS="PARAMETER"
5771 ><I
5772 >-r <TT
5773 CLASS="REPLACEABLE"
5774 ><I
5775 >remote machine</I
5776 ></TT
5777 ></I
5778 ></TT
5779 >
5780                 </A
5781 > parameter, with <TT
5782 CLASS="REPLACEABLE"
5783 ><I
5784 >remote machine</I
5785 ></TT
5786 > set 
5787                 to the IP name of the primary interface of the local host.</P
5788 ><P
5789 >The <B
5790 CLASS="COMMAND"
5791 >swat</B
5792 > status page tries to connect with
5793                 <B
5794 CLASS="COMMAND"
5795 >smbd</B
5796 > and <B
5797 CLASS="COMMAND"
5798 >nmbd</B
5799 > at the address 
5800                 <I
5801 CLASS="EMPHASIS"
5802 >127.0.0.1</I
5803 > to determine if they are running.  
5804                 Not adding <I
5805 CLASS="EMPHASIS"
5806 >127.0.0.1</I
5807 >  will cause <B
5808 CLASS="COMMAND"
5809 >               smbd</B
5810 > and <B
5811 CLASS="COMMAND"
5812 >nmbd</B
5813 > to always show
5814                 "not running" even if they really are.  This can prevent <B
5815 CLASS="COMMAND"
5816 >               swat</B
5817 > from starting/stopping/restarting <B
5818 CLASS="COMMAND"
5819 >smbd</B
5820 >
5821                 and <B
5822 CLASS="COMMAND"
5823 >nmbd</B
5824 >.</P
5825 ><P
5826 >Default: <B
5827 CLASS="COMMAND"
5828 >bind interfaces only = no</B
5829 ></P
5830 ></DD
5831 ><DT
5832 ><A
5833 NAME="BLOCKINGLOCKS"
5834 ></A
5835 >blocking locks (S)</DT
5836 ><DD
5837 ><P
5838 >This parameter controls the behavior of <A
5839 HREF="smbd.8.html"
5840 TARGET="_top"
5841 >smbd(8)</A
5842 > when given a request by a client 
5843                 to obtain a byte range lock on a region of an open file, and the 
5844                 request has a time limit associated with it.</P
5845 ><P
5846 >If this parameter is set and the lock range requested 
5847                 cannot be immediately satisfied, samba will internally 
5848                 queue the lock request, and periodically attempt to obtain 
5849                 the lock until the timeout period expires.</P
5850 ><P
5851 >If this parameter is set to <TT
5852 CLASS="CONSTANT"
5853 >no</TT
5854 >, then 
5855                 samba will behave as previous versions of Samba would and 
5856                 will fail the lock request immediately if the lock range 
5857                 cannot be obtained.</P
5858 ><P
5859 >Default: <B
5860 CLASS="COMMAND"
5861 >blocking locks = yes</B
5862 ></P
5863 ></DD
5864 ><DT
5865 ><A
5866 NAME="BLOCKSIZE"
5867 ></A
5868 >block size (S)</DT
5869 ><DD
5870 ><P
5871 >This parameter controls the behavior of 
5872                 <A
5873 HREF="smbd.8.html"
5874 TARGET="_top"
5875 >smbd(8)</A
5876 > when reporting disk free 
5877                 sizes. By default, this reports a disk block size of 1024 bytes.
5878                 </P
5879 ><P
5880 >Changing this parameter may have some effect on the
5881                 efficiency of client writes, this is not yet confirmed. This
5882                 parameter was added to allow advanced administrators to change
5883                 it (usually to a higher value) and test the effect it has on
5884                 client write performance without re-compiling the code. As this
5885                 is an experimental option it may be removed in a future release.
5886                 </P
5887 ><P
5888 >Changing this option does not change the disk free reporting
5889                 size, just the block size unit reported to the client.</P
5890 ><P
5891 >Default: <B
5892 CLASS="COMMAND"
5893 >block size = 1024</B
5894 ></P
5895 ><P
5896 >Example: <B
5897 CLASS="COMMAND"
5898 >block size = 65536</B
5899 ></P
5900 ></DD
5901 ><DT
5902 ><A
5903 NAME="BROWSABLE"
5904 ></A
5905 >browsable (S)</DT
5906 ><DD
5907 ><P
5908 >See the <A
5909 HREF="#BROWSEABLE"
5910 ><TT
5911 CLASS="PARAMETER"
5912 ><I
5913 >               browseable</I
5914 ></TT
5915 ></A
5916 >.</P
5917 ></DD
5918 ><DT
5919 ><A
5920 NAME="BROWSELIST"
5921 ></A
5922 >browse list (G)</DT
5923 ><DD
5924 ><P
5925 >This controls whether <A
5926 HREF="smbd.8.html"
5927 TARGET="_top"
5928 >               <B
5929 CLASS="COMMAND"
5930 >smbd(8)</B
5931 ></A
5932 > will serve a browse list to 
5933                 a client doing a <B
5934 CLASS="COMMAND"
5935 >NetServerEnum</B
5936 > call. Normally 
5937                 set to <TT
5938 CLASS="CONSTANT"
5939 >yes</TT
5940 >. You should never need to change 
5941                 this.</P
5942 ><P
5943 >Default: <B
5944 CLASS="COMMAND"
5945 >browse list = yes</B
5946 ></P
5947 ></DD
5948 ><DT
5949 ><A
5950 NAME="BROWSEABLE"
5951 ></A
5952 >browseable (S)</DT
5953 ><DD
5954 ><P
5955 >This controls whether this share is seen in 
5956                 the list of available shares in a net view and in the browse list.</P
5957 ><P
5958 >Default: <B
5959 CLASS="COMMAND"
5960 >browseable = yes</B
5961 ></P
5962 ></DD
5963 ><DT
5964 ><A
5965 NAME="CASESENSITIVE"
5966 ></A
5967 >case sensitive (S)</DT
5968 ><DD
5969 ><P
5970 >See the discussion in the section <A
5971 HREF="#AEN205"
5972 >NAME MANGLING</A
5973 >.</P
5974 ><P
5975 >Default: <B
5976 CLASS="COMMAND"
5977 >case sensitive = no</B
5978 ></P
5979 ></DD
5980 ><DT
5981 ><A
5982 NAME="CASESIGNAMES"
5983 ></A
5984 >casesignames (S)</DT
5985 ><DD
5986 ><P
5987 >Synonym for <A
5988 HREF="#CASESENSITIVE"
5989 >case 
5990                 sensitive</A
5991 >.</P
5992 ></DD
5993 ><DT
5994 ><A
5995 NAME="CHANGENOTIFYTIMEOUT"
5996 ></A
5997 >change notify timeout (G)</DT
5998 ><DD
5999 ><P
6000 >This SMB allows a client to tell a server to 
6001                 "watch" a particular directory for any changes and only reply to
6002                 the SMB request when a change has occurred. Such constant scanning of
6003                 a directory is expensive under UNIX, hence an <A
6004 HREF="smbd.8.html"
6005 TARGET="_top"
6006 >               <B
6007 CLASS="COMMAND"
6008 >smbd(8)</B
6009 ></A
6010 > daemon only performs such a scan 
6011                 on each requested directory once every <TT
6012 CLASS="PARAMETER"
6013 ><I
6014 >change notify 
6015                 timeout</I
6016 ></TT
6017 > seconds.</P
6018 ><P
6019 >Default: <B
6020 CLASS="COMMAND"
6021 >change notify timeout = 60</B
6022 ></P
6023 ><P
6024 >Example: <B
6025 CLASS="COMMAND"
6026 >change notify timeout = 300</B
6027 ></P
6028 ><P
6029 >Would change the scan time to every 5 minutes.</P
6030 ></DD
6031 ><DT
6032 ><A
6033 NAME="CHANGESHARECOMMAND"
6034 ></A
6035 >change share command (G)</DT
6036 ><DD
6037 ><P
6038 >Samba 2.2.0 introduced the ability to dynamically 
6039                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6040                 <TT
6041 CLASS="PARAMETER"
6042 ><I
6043 >change share command</I
6044 ></TT
6045 > is used to define an 
6046                 external program or script which will modify an existing service definition 
6047                 in <TT
6048 CLASS="FILENAME"
6049 >smb.conf</TT
6050 >.  In order to successfully 
6051                 execute the <TT
6052 CLASS="PARAMETER"
6053 ><I
6054 >change share command</I
6055 ></TT
6056 >, <B
6057 CLASS="COMMAND"
6058 >smbd</B
6059 >
6060                 requires that the administrator be connected using a root account (i.e. 
6061                 uid == 0).
6062                 </P
6063 ><P
6064 >               When executed, <B
6065 CLASS="COMMAND"
6066 >smbd</B
6067 > will automatically invoke the 
6068                 <TT
6069 CLASS="PARAMETER"
6070 ><I
6071 >change share command</I
6072 ></TT
6073 > with four parameters.
6074                 </P
6075 ><P
6076 ></P
6077 ><UL
6078 ><LI
6079 ><P
6080 ><TT
6081 CLASS="PARAMETER"
6082 ><I
6083 >configFile</I
6084 ></TT
6085 > - the location 
6086                         of the global <TT
6087 CLASS="FILENAME"
6088 >smb.conf</TT
6089 > file. 
6090                         </P
6091 ></LI
6092 ><LI
6093 ><P
6094 ><TT
6095 CLASS="PARAMETER"
6096 ><I
6097 >shareName</I
6098 ></TT
6099 > - the name of the new 
6100                         share.
6101                         </P
6102 ></LI
6103 ><LI
6104 ><P
6105 ><TT
6106 CLASS="PARAMETER"
6107 ><I
6108 >pathName</I
6109 ></TT
6110 > - path to an **existing**
6111                         directory on disk.
6112                         </P
6113 ></LI
6114 ><LI
6115 ><P
6116 ><TT
6117 CLASS="PARAMETER"
6118 ><I
6119 >comment</I
6120 ></TT
6121 > - comment string to associate 
6122                         with the new share.
6123                         </P
6124 ></LI
6125 ></UL
6126 ><P
6127 >               This parameter is only used modify existing file shares definitions.  To modify 
6128                 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
6129                 </P
6130 ><P
6131 >               See also <A
6132 HREF="#ADDSHARECOMMAND"
6133 ><TT
6134 CLASS="PARAMETER"
6135 ><I
6136 >add share
6137                 command</I
6138 ></TT
6139 ></A
6140 >, <A
6141 HREF="#DELETESHARECOMMAND"
6142 ><TT
6143 CLASS="PARAMETER"
6144 ><I
6145 >delete 
6146                 share command</I
6147 ></TT
6148 ></A
6149 >.
6150                 </P
6151 ><P
6152 >Default: <I
6153 CLASS="EMPHASIS"
6154 >none</I
6155 ></P
6156 ><P
6157 >Example: <B
6158 CLASS="COMMAND"
6159 >change share command = /usr/local/bin/addshare</B
6160 ></P
6161 ></DD
6162 ><DT
6163 ><A
6164 NAME="COMMENT"
6165 ></A
6166 >comment (S)</DT
6167 ><DD
6168 ><P
6169 >This is a text field that is seen next to a share 
6170                 when a client does a queries the server, either via the network 
6171                 neighborhood or via <B
6172 CLASS="COMMAND"
6173 >net view</B
6174 > to list what shares 
6175                 are available.</P
6176 ><P
6177 >If you want to set the string that is displayed next to the 
6178                 machine name then see the <A
6179 HREF="#SERVERSTRING"
6180 ><TT
6181 CLASS="PARAMETER"
6182 ><I
6183 >               server string</I
6184 ></TT
6185 ></A
6186 > parameter.</P
6187 ><P
6188 >Default: <I
6189 CLASS="EMPHASIS"
6190 >No comment string</I
6191 ></P
6192 ><P
6193 >Example: <B
6194 CLASS="COMMAND"
6195 >comment = Fred's Files</B
6196 ></P
6197 ></DD
6198 ><DT
6199 ><A
6200 NAME="CONFIGFILE"
6201 ></A
6202 >config file (G)</DT
6203 ><DD
6204 ><P
6205 >This allows you to override the config file 
6206                 to use, instead of the default (usually <TT
6207 CLASS="FILENAME"
6208 >smb.conf</TT
6209 >). 
6210                 There is a chicken and egg problem here as this option is set 
6211                 in the config file!</P
6212 ><P
6213 >For this reason, if the name of the config file has changed 
6214                 when the parameters are loaded then it will reload them from 
6215                 the new config file.</P
6216 ><P
6217 >This option takes the usual substitutions, which can 
6218                 be very useful.</P
6219 ><P
6220 >If the config file doesn't exist then it won't be loaded 
6221                 (allowing you to special case the config files of just a few 
6222                 clients).</P
6223 ><P
6224 >Example: <B
6225 CLASS="COMMAND"
6226 >config file = /usr/local/samba/lib/smb.conf.%m
6227                 </B
6228 ></P
6229 ></DD
6230 ><DT
6231 ><A
6232 NAME="COPY"
6233 ></A
6234 >copy (S)</DT
6235 ><DD
6236 ><P
6237 >This parameter allows you to "clone" service 
6238                 entries. The specified service is simply duplicated under the 
6239                 current service's name. Any parameters specified in the current 
6240                 section will override those in the section being copied.</P
6241 ><P
6242 >This feature lets you set up a 'template' service and 
6243                 create similar services easily. Note that the service being 
6244                 copied must occur earlier in the configuration file than the 
6245                 service doing the copying.</P
6246 ><P
6247 >Default: <I
6248 CLASS="EMPHASIS"
6249 >no value</I
6250 ></P
6251 ><P
6252 >Example: <B
6253 CLASS="COMMAND"
6254 >copy = otherservice</B
6255 ></P
6256 ></DD
6257 ><DT
6258 ><A
6259 NAME="CREATEMASK"
6260 ></A
6261 >create mask (S)</DT
6262 ><DD
6263 ><P
6264 >A synonym for this parameter is 
6265                 <A
6266 HREF="#CREATEMODE"
6267 ><TT
6268 CLASS="PARAMETER"
6269 ><I
6270 >create mode</I
6271 ></TT
6272 >
6273                 </A
6274 >.</P
6275 ><P
6276 >When a file is created, the necessary permissions are 
6277                 calculated according to the mapping from DOS modes to UNIX 
6278                 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed 
6279                 with this parameter. This parameter may be thought of as a bit-wise 
6280                 MASK for the UNIX modes of a file. Any bit <I
6281 CLASS="EMPHASIS"
6282 >not</I
6283
6284                 set here will be removed from the modes set on a file when it is 
6285                 created.</P
6286 ><P
6287 >The default value of this parameter removes the 
6288                 'group' and 'other' write and execute bits from the UNIX modes.</P
6289 ><P
6290 >Following this Samba will bit-wise 'OR' the UNIX mode created 
6291                 from this parameter with the value of the <A
6292 HREF="#FORCECREATEMODE"
6293 ><TT
6294 CLASS="PARAMETER"
6295 ><I
6296 >force create mode</I
6297 ></TT
6298 ></A
6299 >
6300                 parameter which is set to 000 by default.</P
6301 ><P
6302 >This parameter does not affect directory modes. See the 
6303                 parameter <A
6304 HREF="#DIRECTORYMODE"
6305 ><TT
6306 CLASS="PARAMETER"
6307 ><I
6308 >directory mode
6309                 </I
6310 ></TT
6311 ></A
6312 > for details.</P
6313 ><P
6314 >See also the <A
6315 HREF="#FORCECREATEMODE"
6316 ><TT
6317 CLASS="PARAMETER"
6318 ><I
6319 >force 
6320                 create mode</I
6321 ></TT
6322 ></A
6323 > parameter for forcing particular mode 
6324                 bits to be set on created files. See also the <A
6325 HREF="#DIRECTORYMODE"
6326 >               <TT
6327 CLASS="PARAMETER"
6328 ><I
6329 >directory mode</I
6330 ></TT
6331 ></A
6332 > parameter for masking 
6333                 mode bits on created directories.  See also the <A
6334 HREF="#INHERITPERMISSIONS"
6335 >               <TT
6336 CLASS="PARAMETER"
6337 ><I
6338 >inherit permissions</I
6339 ></TT
6340 ></A
6341 > parameter.</P
6342 ><P
6343 >Note that this parameter does not apply to permissions
6344                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
6345                 a mask on access control lists also, they need to set the <A
6346 HREF="#SECURITYMASK"
6347 ><TT
6348 CLASS="PARAMETER"
6349 ><I
6350 >security mask</I
6351 ></TT
6352 ></A
6353 >.</P
6354 ><P
6355 >Default: <B
6356 CLASS="COMMAND"
6357 >create mask = 0744</B
6358 ></P
6359 ><P
6360 >Example: <B
6361 CLASS="COMMAND"
6362 >create mask = 0775</B
6363 ></P
6364 ></DD
6365 ><DT
6366 ><A
6367 NAME="CREATEMODE"
6368 ></A
6369 >create mode (S)</DT
6370 ><DD
6371 ><P
6372 >This is a synonym for <A
6373 HREF="#CREATEMASK"
6374 ><TT
6375 CLASS="PARAMETER"
6376 ><I
6377 >               create mask</I
6378 ></TT
6379 ></A
6380 >.</P
6381 ></DD
6382 ><DT
6383 ><A
6384 NAME="CSCPOLICY"
6385 ></A
6386 >csc policy (S)</DT
6387 ><DD
6388 ><P
6389 >This stands for <I
6390 CLASS="EMPHASIS"
6391 >client-side caching 
6392                 policy</I
6393 >, and specifies how clients capable of offline
6394                 caching will cache the files in the share. The valid values
6395                 are: manual, documents, programs, disable.</P
6396 ><P
6397 >These values correspond to those used on Windows
6398                 servers.</P
6399 ><P
6400 >For example, shares containing roaming profiles can have
6401                 offline caching disabled using <B
6402 CLASS="COMMAND"
6403 >csc policy = disable
6404                 </B
6405 >.</P
6406 ><P
6407 >Default: <B
6408 CLASS="COMMAND"
6409 >csc policy = manual</B
6410 ></P
6411 ><P
6412 >Example: <B
6413 CLASS="COMMAND"
6414 >csc policy = programs</B
6415 ></P
6416 ></DD
6417 ><DT
6418 ><A
6419 NAME="DEADTIME"
6420 ></A
6421 >deadtime (G)</DT
6422 ><DD
6423 ><P
6424 >The value of the parameter (a decimal integer) 
6425                 represents the number of minutes of inactivity before a connection 
6426                 is considered dead, and it is disconnected. The deadtime only takes 
6427                 effect if the number of open files is zero.</P
6428 ><P
6429 >This is useful to stop a server's resources being 
6430                 exhausted by a large number of inactive connections.</P
6431 ><P
6432 >Most clients have an auto-reconnect feature when a 
6433                 connection is broken so in most cases this parameter should be 
6434                 transparent to users.</P
6435 ><P
6436 >Using this parameter with a timeout of a few minutes 
6437                 is recommended for most systems.</P
6438 ><P
6439 >A deadtime of zero indicates that no auto-disconnection 
6440                 should be performed.</P
6441 ><P
6442 >Default: <B
6443 CLASS="COMMAND"
6444 >deadtime = 0</B
6445 ></P
6446 ><P
6447 >Example: <B
6448 CLASS="COMMAND"
6449 >deadtime = 15</B
6450 ></P
6451 ></DD
6452 ><DT
6453 ><A
6454 NAME="DEBUGHIRESTIMESTAMP"
6455 ></A
6456 >debug hires timestamp (G)</DT
6457 ><DD
6458 ><P
6459 >Sometimes the timestamps in the log messages 
6460                 are needed with a resolution of higher that seconds, this 
6461                 boolean parameter adds microsecond resolution to the timestamp 
6462                 message header when turned on.</P
6463 ><P
6464 >Note that the parameter <A
6465 HREF="#DEBUGTIMESTAMP"
6466 ><TT
6467 CLASS="PARAMETER"
6468 ><I
6469 >               debug timestamp</I
6470 ></TT
6471 ></A
6472 > must be on for this to have an 
6473                 effect.</P
6474 ><P
6475 >Default: <B
6476 CLASS="COMMAND"
6477 >debug hires timestamp = no</B
6478 ></P
6479 ></DD
6480 ><DT
6481 ><A
6482 NAME="DEBUGPID"
6483 ></A
6484 >debug pid (G)</DT
6485 ><DD
6486 ><P
6487 >When using only one log file for more then one 
6488                 forked <A
6489 HREF="smbd.8.html"
6490 TARGET="_top"
6491 >smbd</A
6492 >-process there may be hard to follow which process 
6493                 outputs which message. This boolean parameter is adds the process-id 
6494                 to the timestamp message headers in the logfile when turned on.</P
6495 ><P
6496 >Note that the parameter <A
6497 HREF="#DEBUGTIMESTAMP"
6498 ><TT
6499 CLASS="PARAMETER"
6500 ><I
6501 >               debug timestamp</I
6502 ></TT
6503 ></A
6504 > must be on for this to have an 
6505                 effect.</P
6506 ><P
6507 >Default: <B
6508 CLASS="COMMAND"
6509 >debug pid = no</B
6510 ></P
6511 ></DD
6512 ><DT
6513 ><A
6514 NAME="DEBUGTIMESTAMP"
6515 ></A
6516 >debug timestamp (G)</DT
6517 ><DD
6518 ><P
6519 >Samba debug log messages are timestamped 
6520                 by default. If you are running at a high <A
6521 HREF="#DEBUGLEVEL"
6522 >               <TT
6523 CLASS="PARAMETER"
6524 ><I
6525 >debug level</I
6526 ></TT
6527 ></A
6528 > these timestamps
6529                 can be distracting. This boolean parameter allows timestamping 
6530                 to be turned off.</P
6531 ><P
6532 >Default: <B
6533 CLASS="COMMAND"
6534 >debug timestamp = yes</B
6535 ></P
6536 ></DD
6537 ><DT
6538 ><A
6539 NAME="DEBUGUID"
6540 ></A
6541 >debug uid (G)</DT
6542 ><DD
6543 ><P
6544 >Samba is sometimes run as root and sometime 
6545                 run as the connected user, this boolean parameter inserts the 
6546                 current euid, egid, uid and gid to the timestamp message headers 
6547                 in the log file if turned on.</P
6548 ><P
6549 >Note that the parameter <A
6550 HREF="#DEBUGTIMESTAMP"
6551 ><TT
6552 CLASS="PARAMETER"
6553 ><I
6554 >               debug timestamp</I
6555 ></TT
6556 ></A
6557 > must be on for this to have an 
6558                 effect.</P
6559 ><P
6560 >Default: <B
6561 CLASS="COMMAND"
6562 >debug uid = no</B
6563 ></P
6564 ></DD
6565 ><DT
6566 ><A
6567 NAME="DEBUGLEVEL"
6568 ></A
6569 >debuglevel (G)</DT
6570 ><DD
6571 ><P
6572 >Synonym for <A
6573 HREF="#LOGLEVEL"
6574 ><TT
6575 CLASS="PARAMETER"
6576 ><I
6577 >               log level</I
6578 ></TT
6579 ></A
6580 >.</P
6581 ></DD
6582 ><DT
6583 ><A
6584 NAME="DEFAULT"
6585 ></A
6586 >default (G)</DT
6587 ><DD
6588 ><P
6589 >A synonym for <A
6590 HREF="#DEFAULTSERVICE"
6591 ><TT
6592 CLASS="PARAMETER"
6593 ><I
6594 >               default service</I
6595 ></TT
6596 ></A
6597 >.</P
6598 ></DD
6599 ><DT
6600 ><A
6601 NAME="DEFAULTCASE"
6602 ></A
6603 >default case (S)</DT
6604 ><DD
6605 ><P
6606 >See the section on <A
6607 HREF="#AEN205"
6608 >               NAME MANGLING</A
6609 >. Also note the <A
6610 HREF="#SHORTPRESERVECASE"
6611 >               <TT
6612 CLASS="PARAMETER"
6613 ><I
6614 >short preserve case</I
6615 ></TT
6616 ></A
6617 > parameter.</P
6618 ><P
6619 >Default: <B
6620 CLASS="COMMAND"
6621 >default case = lower</B
6622 ></P
6623 ></DD
6624 ><DT
6625 ><A
6626 NAME="DEFAULTDEVMODE"
6627 ></A
6628 >default devmode (S)</DT
6629 ><DD
6630 ><P
6631 >This parameter is only applicable to <A
6632 HREF="#PRINTOK"
6633 >printable</A
6634 > services.  When smbd is serving
6635                 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
6636                 server has a Device Mode which defines things such as paper size and
6637                 orientation and duplex settings.  The device mode can only correctly be
6638                 generated by the printer driver itself (which can only be executed on a
6639                 Win32 platform).  Because smbd is unable to execute the driver code
6640                 to generate the device mode, the default behavior is to set this field
6641                 to NULL.
6642                 </P
6643 ><P
6644 >Most problems with serving printer drivers to Windows NT/2k/XP clients
6645                 can be traced to a problem with the generated device mode.  Certain drivers
6646                 will do things such as crashing the client's Explorer.exe with a NULL devmode.
6647                 However, other printer drivers can cause the client's spooler service
6648                 (spoolsv.exe) to die if the devmode was not created by the driver itself
6649                 (i.e. smbd generates a default devmode).
6650                 </P
6651 ><P
6652 >This parameter should be used with care and tested with the printer
6653                 driver in question.  It is better to leave the device mode to NULL
6654                 and let the Windows client set the correct values.  Because drivers do not
6655                 do this all the time, setting <B
6656 CLASS="COMMAND"
6657 >default devmode = yes</B
6658 >
6659                 will instruct smbd to generate a default one.
6660                 </P
6661 ><P
6662 >For more information on Windows NT/2k printing and Device Modes,
6663                 see the <A
6664 HREF="http://msdn.microsoft.com/"
6665 TARGET="_top"
6666 >MSDN documentation</A
6667 >.
6668                 </P
6669 ><P
6670 >Default: <B
6671 CLASS="COMMAND"
6672 >default devmode = no</B
6673 ></P
6674 ></DD
6675 ><DT
6676 ><A
6677 NAME="DEFAULTSERVICE"
6678 ></A
6679 >default service (G)</DT
6680 ><DD
6681 ><P
6682 >This parameter specifies the name of a service
6683                 which will be connected to if the service actually requested cannot
6684                 be found. Note that the square brackets are <I
6685 CLASS="EMPHASIS"
6686 >NOT</I
6687 >
6688                 given in the parameter value (see example below).</P
6689 ><P
6690 >There is no default value for this parameter. If this 
6691                 parameter is not given, attempting to connect to a nonexistent 
6692                 service results in an error.</P
6693 ><P
6694 >Typically the default service would be a <A
6695 HREF="#GUESTOK"
6696 >               <TT
6697 CLASS="PARAMETER"
6698 ><I
6699 >guest ok</I
6700 ></TT
6701 ></A
6702 >, <A
6703 HREF="#READONLY"
6704 >               <TT
6705 CLASS="PARAMETER"
6706 ><I
6707 >read-only</I
6708 ></TT
6709 ></A
6710 > service.</P
6711 ><P
6712 >Also note that the apparent service name will be changed 
6713                 to equal that of the requested service, this is very useful as it 
6714                 allows you to use macros like <TT
6715 CLASS="PARAMETER"
6716 ><I
6717 >%S</I
6718 ></TT
6719 > to make 
6720                 a wildcard service.</P
6721 ><P
6722 >Note also that any "_" characters in the name of the service 
6723                 used in the default service will get mapped to a "/". This allows for
6724                 interesting things.</P
6725 ><P
6726 >Example:</P
6727 ><P
6728 ><TABLE
6729 BORDER="0"
6730 BGCOLOR="#E0E0E0"
6731 WIDTH="90%"
6732 ><TR
6733 ><TD
6734 ><PRE
6735 CLASS="PROGRAMLISTING"
6736 >[global]
6737         default service = pub
6738         
6739 [pub]
6740         path = /%S
6741                 </PRE
6742 ></TD
6743 ></TR
6744 ></TABLE
6745 ></P
6746 ></DD
6747 ><DT
6748 ><A
6749 NAME="DELETEGROUPSCRIPT"
6750 ></A
6751 >delete group script (G)</DT
6752 ><DD
6753 ><P
6754 >This is the full pathname to a script that will 
6755                 be run <I
6756 CLASS="EMPHASIS"
6757 >AS ROOT</I
6758 > by <A
6759 HREF="smbd.8.html"
6760 TARGET="_top"
6761 >smbd(8)</A
6762 > when a group is requested to be deleted. It will expand any <TT
6763 CLASS="PARAMETER"
6764 ><I
6765 >%g</I
6766 ></TT
6767 > to the group name passed.  This script is only useful for installations using the Windows NT domain administration tools.
6768                 </P
6769 ></DD
6770 ><DT
6771 ><A
6772 NAME="DELETEPRINTERCOMMAND"
6773 ></A
6774 >deleteprinter command (G)</DT
6775 ><DD
6776 ><P
6777 >With the introduction of MS-RPC based printer
6778                 support for Windows NT/2000 clients in Samba 2.2, it is now 
6779                 possible to delete printer at run time by issuing the 
6780                 DeletePrinter() RPC call.</P
6781 ><P
6782 >For a Samba host this means that the printer must be 
6783                 physically deleted from underlying printing system.  The <TT
6784 CLASS="PARAMETER"
6785 ><I
6786 >               deleteprinter command</I
6787 ></TT
6788 > defines a script to be run which 
6789                 will perform the necessary operations for removing the printer
6790                 from the print system and from <TT
6791 CLASS="FILENAME"
6792 >smb.conf</TT
6793 >.
6794                 </P
6795 ><P
6796 >The <TT
6797 CLASS="PARAMETER"
6798 ><I
6799 >deleteprinter command</I
6800 ></TT
6801 > is 
6802                 automatically called with only one parameter: <TT
6803 CLASS="PARAMETER"
6804 ><I
6805 >               "printer name"</I
6806 ></TT
6807 >.</P
6808 ><P
6809 >Once the <TT
6810 CLASS="PARAMETER"
6811 ><I
6812 >deleteprinter command</I
6813 ></TT
6814 > has 
6815                 been executed, <B
6816 CLASS="COMMAND"
6817 >smbd</B
6818 > will reparse the <TT
6819 CLASS="FILENAME"
6820 >               smb.conf</TT
6821 > to associated printer no longer exists.  
6822                 If the sharename is still valid, then <B
6823 CLASS="COMMAND"
6824 >smbd
6825                 </B
6826 > will return an ACCESS_DENIED error to the client.</P
6827 ><P
6828 >See also <A
6829 HREF="#ADDPRINTERCOMMAND"
6830 ><TT
6831 CLASS="PARAMETER"
6832 ><I
6833 >               addprinter command</I
6834 ></TT
6835 ></A
6836 >, <A
6837 HREF="#PRINTING"
6838 ><TT
6839 CLASS="PARAMETER"
6840 ><I
6841 >printing</I
6842 ></TT
6843 ></A
6844 >,
6845                 <A
6846 HREF="#SHOWADDPRINTERWIZARD"
6847 ><TT
6848 CLASS="PARAMETER"
6849 ><I
6850 >show add
6851                 printer wizard</I
6852 ></TT
6853 ></A
6854 ></P
6855 ><P
6856 >Default: <I
6857 CLASS="EMPHASIS"
6858 >none</I
6859 ></P
6860 ><P
6861 >Example: <B
6862 CLASS="COMMAND"
6863 >deleteprinter command = /usr/bin/removeprinter
6864                 </B
6865 ></P
6866 ></DD
6867 ><DT
6868 ><A
6869 NAME="DELETEREADONLY"
6870 ></A
6871 >delete readonly (S)</DT
6872 ><DD
6873 ><P
6874 >This parameter allows readonly files to be deleted.  
6875                 This is not normal DOS semantics, but is allowed by UNIX.</P
6876 ><P
6877 >This option may be useful for running applications such 
6878                 as rcs, where UNIX file ownership prevents changing file 
6879                 permissions, and DOS semantics prevent deletion of a read only file.</P
6880 ><P
6881 >Default: <B
6882 CLASS="COMMAND"
6883 >delete readonly = no</B
6884 ></P
6885 ></DD
6886 ><DT
6887 ><A
6888 NAME="DELETESHARECOMMAND"
6889 ></A
6890 >delete share command (G)</DT
6891 ><DD
6892 ><P
6893 >Samba 2.2.0 introduced the ability to dynamically 
6894                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6895                 <TT
6896 CLASS="PARAMETER"
6897 ><I
6898 >delete share command</I
6899 ></TT
6900 > is used to define an 
6901                 external program or script which will remove an existing service 
6902                 definition from <TT
6903 CLASS="FILENAME"
6904 >smb.conf</TT
6905 >.  In order to successfully 
6906                 execute the <TT
6907 CLASS="PARAMETER"
6908 ><I
6909 >delete share command</I
6910 ></TT
6911 >, <B
6912 CLASS="COMMAND"
6913 >smbd</B
6914 >
6915                 requires that the administrator be connected using a root account (i.e. 
6916                 uid == 0).
6917                 </P
6918 ><P
6919 >               When executed, <B
6920 CLASS="COMMAND"
6921 >smbd</B
6922 > will automatically invoke the 
6923                 <TT
6924 CLASS="PARAMETER"
6925 ><I
6926 >delete share command</I
6927 ></TT
6928 > with two parameters.
6929                 </P
6930 ><P
6931 ></P
6932 ><UL
6933 ><LI
6934 ><P
6935 ><TT
6936 CLASS="PARAMETER"
6937 ><I
6938 >configFile</I
6939 ></TT
6940 > - the location 
6941                         of the global <TT
6942 CLASS="FILENAME"
6943 >smb.conf</TT
6944 > file. 
6945                         </P
6946 ></LI
6947 ><LI
6948 ><P
6949 ><TT
6950 CLASS="PARAMETER"
6951 ><I
6952 >shareName</I
6953 ></TT
6954 > - the name of 
6955                         the existing service.
6956                         </P
6957 ></LI
6958 ></UL
6959 ><P
6960 >               This parameter is only used to remove file shares.  To delete printer shares, 
6961                 see the <A
6962 HREF="#DELETEPRINTERCOMMAND"
6963 ><TT
6964 CLASS="PARAMETER"
6965 ><I
6966 >deleteprinter 
6967                 command</I
6968 ></TT
6969 ></A
6970 >.
6971                 </P
6972 ><P
6973 >               See also <A
6974 HREF="#ADDSHARECOMMAND"
6975 ><TT
6976 CLASS="PARAMETER"
6977 ><I
6978 >add share
6979                 command</I
6980 ></TT
6981 ></A
6982 >, <A
6983 HREF="#CHANGESHARECOMMAND"
6984 ><TT
6985 CLASS="PARAMETER"
6986 ><I
6987 >change 
6988                 share command</I
6989 ></TT
6990 ></A
6991 >.
6992                 </P
6993 ><P
6994 >Default: <I
6995 CLASS="EMPHASIS"
6996 >none</I
6997 ></P
6998 ><P
6999 >Example: <B
7000 CLASS="COMMAND"
7001 >delete share command = /usr/local/bin/delshare</B
7002 ></P
7003 ></DD
7004 ><DT
7005 ><A
7006 NAME="DELETEUSERSCRIPT"
7007 ></A
7008 >delete user script (G)</DT
7009 ><DD
7010 ><P
7011 >This is the full pathname to a script that will 
7012                 be run by <A
7013 HREF="smbd.8.html"
7014 TARGET="_top"
7015 ><B
7016 CLASS="COMMAND"
7017 >smbd(8)</B
7018 ></A
7019 >
7020                 when managing user's with remote RPC (NT) tools.
7021                 </P
7022 ><P
7023 >This script is called when a remote client removes a user
7024                 from the server, normally using 'User Manager for Domains' or
7025                 <B
7026 CLASS="COMMAND"
7027 >rpcclient</B
7028 >.
7029                 </P
7030 ><P
7031 >This script should delete the given UNIX username. 
7032                 </P
7033 ><P
7034 >Default: <B
7035 CLASS="COMMAND"
7036 >delete user script = &#60;empty string&#62;
7037                 </B
7038 ></P
7039 ><P
7040 >Example: <B
7041 CLASS="COMMAND"
7042 >delete user script = /usr/local/samba/bin/del_user 
7043                 %u</B
7044 ></P
7045 ></DD
7046 ><DT
7047 ><A
7048 NAME="DELETEUSERFROMGROUPSCRIPT"
7049 ></A
7050 >delete user from group script (G)</DT
7051 ><DD
7052 ><P
7053 >Full path to the script that will be called when 
7054                 a user is removed from a group using the Windows NT domain administration 
7055                 tools. It will be run by <A
7056 HREF="smbd.8.html"
7057 TARGET="_top"
7058 >smbd(8)</A
7059
7060                 <I
7061 CLASS="EMPHASIS"
7062 >AS ROOT</I
7063 >. Any <TT
7064 CLASS="PARAMETER"
7065 ><I
7066 >%g</I
7067 ></TT
7068 > will be 
7069                 replaced with the group name and any <TT
7070 CLASS="PARAMETER"
7071 ><I
7072 >%u</I
7073 ></TT
7074 > will 
7075                 be replaced with the user name.
7076                 </P
7077 ><P
7078 >Default: <B
7079 CLASS="COMMAND"
7080 >delete user from group script = </B
7081 ></P
7082 ><P
7083 >Example: <B
7084 CLASS="COMMAND"
7085 >delete user from group script = /usr/sbin/deluser %u %g</B
7086 ></P
7087 ></DD
7088 ><DT
7089 ><A
7090 NAME="DELETEVETOFILES"
7091 ></A
7092 >delete veto files (S)</DT
7093 ><DD
7094 ><P
7095 >This option is used when Samba is attempting to 
7096                 delete a directory that contains one or more vetoed directories 
7097                 (see the <A
7098 HREF="#VETOFILES"
7099 ><TT
7100 CLASS="PARAMETER"
7101 ><I
7102 >veto files</I
7103 ></TT
7104 ></A
7105 >
7106                 option).  If this option is set to <TT
7107 CLASS="CONSTANT"
7108 >no</TT
7109 > (the default) then if a vetoed 
7110                 directory contains any non-vetoed files or directories then the 
7111                 directory delete will fail. This is usually what you want.</P
7112 ><P
7113 >If this option is set to <TT
7114 CLASS="CONSTANT"
7115 >yes</TT
7116 >, then Samba 
7117                 will attempt to recursively delete any files and directories within 
7118                 the vetoed directory. This can be useful for integration with file 
7119                 serving systems such as NetAtalk which create meta-files within 
7120                 directories you might normally veto DOS/Windows users from seeing 
7121                 (e.g. <TT
7122 CLASS="FILENAME"
7123 >.AppleDouble</TT
7124 >)</P
7125 ><P
7126 >Setting <B
7127 CLASS="COMMAND"
7128 >delete veto files = yes</B
7129 > allows these 
7130                 directories to be  transparently deleted when the parent directory 
7131                 is deleted (so long as the user has permissions to do so).</P
7132 ><P
7133 >See also the <A
7134 HREF="#VETOFILES"
7135 ><TT
7136 CLASS="PARAMETER"
7137 ><I
7138 >veto 
7139                 files</I
7140 ></TT
7141 ></A
7142 > parameter.</P
7143 ><P
7144 >Default: <B
7145 CLASS="COMMAND"
7146 >delete veto files = no</B
7147 ></P
7148 ></DD
7149 ><DT
7150 ><A
7151 NAME="DENYHOSTS"
7152 ></A
7153 >deny hosts (S)</DT
7154 ><DD
7155 ><P
7156 >Synonym for <A
7157 HREF="#HOSTSDENY"
7158 ><TT
7159 CLASS="PARAMETER"
7160 ><I
7161 >hosts 
7162                 deny</I
7163 ></TT
7164 ></A
7165 >.</P
7166 ></DD
7167 ><DT
7168 ><A
7169 NAME="DFREECOMMAND"
7170 ></A
7171 >dfree command (G)</DT
7172 ><DD
7173 ><P
7174 >The <TT
7175 CLASS="PARAMETER"
7176 ><I
7177 >dfree command</I
7178 ></TT
7179 > setting should 
7180                 only be used on systems where a problem occurs with the internal 
7181                 disk space calculations. This has been known to happen with Ultrix, 
7182                 but may occur with other operating systems. The symptom that was 
7183                 seen was an error of "Abort Retry Ignore" at the end of each 
7184                 directory listing.</P
7185 ><P
7186 >This setting allows the replacement of the internal routines to
7187                 calculate the total disk space and amount available with an external
7188                 routine. The example below gives a possible script that might fulfill
7189                 this function.</P
7190 ><P
7191 >The external program will be passed a single parameter indicating 
7192                 a directory in the filesystem being queried. This will typically consist
7193                 of the string <TT
7194 CLASS="FILENAME"
7195 >./</TT
7196 >. The script should return two 
7197                 integers in ASCII. The first should be the total disk space in blocks, 
7198                 and the second should be the number of available blocks. An optional 
7199                 third return value can give the block size in bytes. The default 
7200                 blocksize is 1024 bytes.</P
7201 ><P
7202 >Note: Your script should <I
7203 CLASS="EMPHASIS"
7204 >NOT</I
7205 > be setuid or 
7206                 setgid and should be owned by (and writeable only by) root!</P
7207 ><P
7208 >Default: <I
7209 CLASS="EMPHASIS"
7210 >By default internal routines for 
7211                 determining the disk capacity and remaining space will be used.
7212                 </I
7213 ></P
7214 ><P
7215 >Example: <B
7216 CLASS="COMMAND"
7217 >dfree command = /usr/local/samba/bin/dfree
7218                 </B
7219 ></P
7220 ><P
7221 >Where the script dfree (which must be made executable) could be:</P
7222 ><P
7223 ><TABLE
7224 BORDER="0"
7225 BGCOLOR="#E0E0E0"
7226 WIDTH="90%"
7227 ><TR
7228 ><TD
7229 ><PRE
7230 CLASS="PROGRAMLISTING"
7231
7232                 #!/bin/sh
7233                 df $1 | tail -1 | awk '{print $2" "$4}'
7234                 </PRE
7235 ></TD
7236 ></TR
7237 ></TABLE
7238 ></P
7239 ><P
7240 >or perhaps (on Sys V based systems):</P
7241 ><P
7242 ><TABLE
7243 BORDER="0"
7244 BGCOLOR="#E0E0E0"
7245 WIDTH="90%"
7246 ><TR
7247 ><TD
7248 ><PRE
7249 CLASS="PROGRAMLISTING"
7250
7251                 #!/bin/sh
7252                 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
7253                 </PRE
7254 ></TD
7255 ></TR
7256 ></TABLE
7257 ></P
7258 ><P
7259 >Note that you may have to replace the command names 
7260                 with full path names on some systems.</P
7261 ></DD
7262 ><DT
7263 ><A
7264 NAME="DIRECTORY"
7265 ></A
7266 >directory (S)</DT
7267 ><DD
7268 ><P
7269 >Synonym for <A
7270 HREF="#PATH"
7271 ><TT
7272 CLASS="PARAMETER"
7273 ><I
7274 >path
7275                 </I
7276 ></TT
7277 ></A
7278 >.</P
7279 ></DD
7280 ><DT
7281 ><A
7282 NAME="DIRECTORYMASK"
7283 ></A
7284 >directory mask (S)</DT
7285 ><DD
7286 ><P
7287 >This parameter is the octal modes which are 
7288                 used when converting DOS modes to UNIX modes when creating UNIX 
7289                 directories.</P
7290 ><P
7291 >When a directory is created, the necessary permissions are 
7292                 calculated according to the mapping from DOS modes to UNIX permissions, 
7293                 and the resulting UNIX mode is then bit-wise 'AND'ed with this 
7294                 parameter. This parameter may be thought of as a bit-wise MASK for 
7295                 the UNIX modes of a directory. Any bit <I
7296 CLASS="EMPHASIS"
7297 >not</I
7298 > set 
7299                 here will be removed from the modes set on a directory when it is 
7300                 created.</P
7301 ><P
7302 >The default value of this parameter removes the 'group' 
7303                 and 'other' write bits from the UNIX mode, allowing only the 
7304                 user who owns the directory to modify it.</P
7305 ><P
7306 >Following this Samba will bit-wise 'OR' the UNIX mode 
7307                 created from this parameter with the value of the <A
7308 HREF="#FORCEDIRECTORYMODE"
7309 ><TT
7310 CLASS="PARAMETER"
7311 ><I
7312 >force directory mode
7313                 </I
7314 ></TT
7315 ></A
7316 > parameter. This parameter is set to 000 by 
7317                 default (i.e. no extra mode bits are added).</P
7318 ><P
7319 >Note that this parameter does not apply to permissions
7320                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
7321                 a mask on access control lists also, they need to set the <A
7322 HREF="#DIRECTORYSECURITYMASK"
7323 ><TT
7324 CLASS="PARAMETER"
7325 ><I
7326 >directory security mask</I
7327 ></TT
7328 ></A
7329 >.</P
7330 ><P
7331 >See the <A
7332 HREF="#FORCEDIRECTORYMODE"
7333 ><TT
7334 CLASS="PARAMETER"
7335 ><I
7336 >force 
7337                 directory mode</I
7338 ></TT
7339 ></A
7340 > parameter to cause particular mode 
7341                 bits to always be set on created directories.</P
7342 ><P
7343 >See also the <A
7344 HREF="#CREATEMODE"
7345 ><TT
7346 CLASS="PARAMETER"
7347 ><I
7348 >create mode
7349                 </I
7350 ></TT
7351 ></A
7352 > parameter for masking mode bits on created files, 
7353                 and the <A
7354 HREF="#DIRECTORYSECURITYMASK"
7355 ><TT
7356 CLASS="PARAMETER"
7357 ><I
7358 >directory 
7359                 security mask</I
7360 ></TT
7361 ></A
7362 > parameter.</P
7363 ><P
7364 >Also refer to the <A
7365 HREF="#INHERITPERMISSIONS"
7366 ><TT
7367 CLASS="PARAMETER"
7368 ><I
7369 >               inherit permissions</I
7370 ></TT
7371 ></A
7372 > parameter.</P
7373 ><P
7374 >Default: <B
7375 CLASS="COMMAND"
7376 >directory mask = 0755</B
7377 ></P
7378 ><P
7379 >Example: <B
7380 CLASS="COMMAND"
7381 >directory mask = 0775</B
7382 ></P
7383 ></DD
7384 ><DT
7385 ><A
7386 NAME="DIRECTORYMODE"
7387 ></A
7388 >directory mode (S)</DT
7389 ><DD
7390 ><P
7391 >Synonym for <A
7392 HREF="#DIRECTORYMASK"
7393 ><TT
7394 CLASS="PARAMETER"
7395 ><I
7396 >               directory mask</I
7397 ></TT
7398 ></A
7399 ></P
7400 ></DD
7401 ><DT
7402 ><A
7403 NAME="DIRECTORYSECURITYMASK"
7404 ></A
7405 >directory security mask (S)</DT
7406 ><DD
7407 ><P
7408 >This parameter controls what UNIX permission bits 
7409                 can be modified when a Windows NT client is manipulating the UNIX 
7410                 permission on a directory using the native NT security dialog 
7411                 box.</P
7412 ><P
7413 >This parameter is applied as a mask (AND'ed with) to 
7414                 the changed permission bits, thus preventing any bits not in 
7415                 this mask from being modified. Essentially, zero bits in this 
7416                 mask may be treated as a set of bits the user is not allowed 
7417                 to change.</P
7418 ><P
7419 >If not set explicitly this parameter is set to 0777
7420                 meaning a user is allowed to modify all the user/group/world
7421                 permissions on a directory.</P
7422 ><P
7423 ><I
7424 CLASS="EMPHASIS"
7425 >Note</I
7426 > that users who can access the 
7427                 Samba server through other means can easily bypass this restriction, 
7428                 so it is primarily useful for standalone "appliance" systems.  
7429                 Administrators of most normal systems will probably want to leave
7430                 it as the default of <TT
7431 CLASS="CONSTANT"
7432 >0777</TT
7433 >.</P
7434 ><P
7435 >See also the <A
7436 HREF="#FORCEDIRECTORYSECURITYMODE"
7437 ><TT
7438 CLASS="PARAMETER"
7439 ><I
7440 >               force directory security mode</I
7441 ></TT
7442 ></A
7443 >, <A
7444 HREF="#SECURITYMASK"
7445 ><TT
7446 CLASS="PARAMETER"
7447 ><I
7448 >security mask</I
7449 ></TT
7450 ></A
7451 >, 
7452                 <A
7453 HREF="#FORCESECURITYMODE"
7454 ><TT
7455 CLASS="PARAMETER"
7456 ><I
7457 >force security mode
7458                 </I
7459 ></TT
7460 ></A
7461 > parameters.</P
7462 ><P
7463 >Default: <B
7464 CLASS="COMMAND"
7465 >directory security mask = 0777</B
7466 ></P
7467 ><P
7468 >Example: <B
7469 CLASS="COMMAND"
7470 >directory security mask = 0700</B
7471 ></P
7472 ></DD
7473 ><DT
7474 ><A
7475 NAME="DISABLENETBIOS"
7476 ></A
7477 >disable netbios (G)</DT
7478 ><DD
7479 ><P
7480 >Enabling this parameter will disable netbios support
7481                 in Samba. Netbios is the only available form of browsing in 
7482                 all windows versions except for 2000 and XP. </P
7483 ><P
7484 >Note that clients that only support netbios won't be able to 
7485                 see your samba server when netbios support is disabled.
7486                 </P
7487 ><P
7488 >Default: <B
7489 CLASS="COMMAND"
7490 >disable netbios = no</B
7491 ></P
7492 ><P
7493 >Example: <B
7494 CLASS="COMMAND"
7495 >disable netbios = yes</B
7496 ></P
7497 ></DD
7498 ><DT
7499 ><A
7500 NAME="DISABLESPOOLSS"
7501 ></A
7502 >disable spoolss (G)</DT
7503 ><DD
7504 ><P
7505 >Enabling this parameter will disable Samba's support
7506                 for the SPOOLSS set of MS-RPC's and will yield identical behavior
7507                 as Samba 2.0.x.  Windows NT/2000 clients will downgrade to using
7508                 Lanman style printing commands. Windows 9x/ME will be uneffected by
7509                 the parameter. However, this will also disable the ability to upload
7510                 printer drivers to a Samba server via the Windows NT Add Printer
7511                 Wizard or by using the NT printer properties dialog window.  It will
7512                 also disable the capability of Windows NT/2000 clients to download
7513                 print drivers from the Samba host upon demand.
7514                 <I
7515 CLASS="EMPHASIS"
7516 >Be very careful about enabling this parameter.</I
7517 >
7518                 </P
7519 ><P
7520 >See also <A
7521 HREF="#USECLIENTDRIVER"
7522 >use client driver</A
7523 >
7524                 </P
7525 ><P
7526 >Default : <B
7527 CLASS="COMMAND"
7528 >disable spoolss = no</B
7529 ></P
7530 ></DD
7531 ><DT
7532 ><A
7533 NAME="DISPLAYCHARSET"
7534 ></A
7535 >display charset (G)</DT
7536 ><DD
7537 ><P
7538 >Specifies the charset that samba will use 
7539                 to print messages to stdout and stderr and SWAT will use. 
7540                 Should generally be the same as the <B
7541 CLASS="COMMAND"
7542 >unix charset</B
7543 >.
7544                 </P
7545 ><P
7546 >Default: <B
7547 CLASS="COMMAND"
7548 >display charset = ASCII</B
7549 ></P
7550 ><P
7551 >Example: <B
7552 CLASS="COMMAND"
7553 >display charset = UTF8</B
7554 ></P
7555 ></DD
7556 ><DT
7557 ><A
7558 NAME="DNSPROXY"
7559 ></A
7560 >dns proxy (G)</DT
7561 ><DD
7562 ><P
7563 >Specifies that <A
7564 HREF="nmbd.8.html"
7565 TARGET="_top"
7566 >nmbd(8)</A
7567
7568                 when acting as a WINS server and finding that a NetBIOS name has not 
7569                 been registered, should treat the NetBIOS name word-for-word as a DNS 
7570                 name and do a lookup with the DNS server for that name on behalf of 
7571                 the name-querying client.</P
7572 ><P
7573 >Note that the maximum length for a NetBIOS name is 15 
7574                 characters, so the DNS name (or DNS alias) can likewise only be 
7575                 15 characters, maximum.</P
7576 ><P
7577 ><B
7578 CLASS="COMMAND"
7579 >nmbd</B
7580 > spawns a second copy of itself to do the
7581                 DNS name lookup requests, as doing a name lookup is a blocking 
7582                 action.</P
7583 ><P
7584 >See also the parameter <A
7585 HREF="#WINSSUPPORT"
7586 ><TT
7587 CLASS="PARAMETER"
7588 ><I
7589 >               wins support</I
7590 ></TT
7591 ></A
7592 >.</P
7593 ><P
7594 >Default: <B
7595 CLASS="COMMAND"
7596 >dns proxy = yes</B
7597 ></P
7598 ></DD
7599 ><DT
7600 ><A
7601 NAME="DOMAINLOGONS"
7602 ></A
7603 >domain logons (G)</DT
7604 ><DD
7605 ><P
7606 >If set to <TT
7607 CLASS="CONSTANT"
7608 >yes</TT
7609 >, the Samba server will serve 
7610                 Windows 95/98 Domain logons for the <A
7611 HREF="#WORKGROUP"
7612 >               <TT
7613 CLASS="PARAMETER"
7614 ><I
7615 >workgroup</I
7616 ></TT
7617 ></A
7618 > it is in. Samba 2.2
7619                 has limited capability to act as a domain controller for Windows 
7620                 NT 4 Domains.  For more details on setting up this feature see 
7621                 the Samba-PDC-HOWTO included in the <TT
7622 CLASS="FILENAME"
7623 >htmldocs/</TT
7624 >
7625                 directory shipped with the source code.</P
7626 ><P
7627 >Default: <B
7628 CLASS="COMMAND"
7629 >domain logons = no</B
7630 ></P
7631 ></DD
7632 ><DT
7633 ><A
7634 NAME="DOMAINMASTER"
7635 ></A
7636 >domain master (G)</DT
7637 ><DD
7638 ><P
7639 >Tell <A
7640 HREF="nmbd.8.html"
7641 TARGET="_top"
7642 ><B
7643 CLASS="COMMAND"
7644 >               nmbd(8)</B
7645 ></A
7646 > to enable WAN-wide browse list
7647                 collation. Setting this option causes <B
7648 CLASS="COMMAND"
7649 >nmbd</B
7650 > to
7651                 claim a special domain specific NetBIOS name that identifies 
7652                 it as a domain master browser for its given <A
7653 HREF="#WORKGROUP"
7654 >               <TT
7655 CLASS="PARAMETER"
7656 ><I
7657 >workgroup</I
7658 ></TT
7659 ></A
7660 >. Local master browsers 
7661                 in the same <TT
7662 CLASS="PARAMETER"
7663 ><I
7664 >workgroup</I
7665 ></TT
7666 > on broadcast-isolated 
7667                 subnets will give this <B
7668 CLASS="COMMAND"
7669 >nmbd</B
7670 > their local browse lists, 
7671                 and then ask <A
7672 HREF="smbd.8.html"
7673 TARGET="_top"
7674 ><B
7675 CLASS="COMMAND"
7676 >smbd(8)</B
7677 ></A
7678
7679                 for a complete copy of the browse list for the whole wide area 
7680                 network.  Browser clients will then contact their local master browser, 
7681                 and will receive the domain-wide browse list, instead of just the list 
7682                 for their broadcast-isolated subnet.</P
7683 ><P
7684 >Note that Windows NT Primary Domain Controllers expect to be 
7685                 able to claim this <TT
7686 CLASS="PARAMETER"
7687 ><I
7688 >workgroup</I
7689 ></TT
7690 > specific special 
7691                 NetBIOS name that identifies them as domain master browsers for 
7692                 that <TT
7693 CLASS="PARAMETER"
7694 ><I
7695 >workgroup</I
7696 ></TT
7697 > by default (i.e. there is no 
7698                 way to prevent a Windows NT PDC from attempting to do this). This 
7699                 means that if this parameter is set and <B
7700 CLASS="COMMAND"
7701 >nmbd</B
7702 > claims 
7703                 the special name for a <TT
7704 CLASS="PARAMETER"
7705 ><I
7706 >workgroup</I
7707 ></TT
7708 > before a Windows 
7709                 NT PDC is able to do so then cross subnet browsing will behave 
7710                 strangely and may fail.</P
7711 ><P
7712 >If <A
7713 HREF="#DOMAINLOGONS"
7714 ><B
7715 CLASS="COMMAND"
7716 >domain logons = yes</B
7717 >
7718                 </A
7719 >, then the default behavior is to enable the <TT
7720 CLASS="PARAMETER"
7721 ><I
7722 >domain 
7723                 master</I
7724 ></TT
7725 > parameter.  If <TT
7726 CLASS="PARAMETER"
7727 ><I
7728 >domain logons</I
7729 ></TT
7730 > is 
7731                 not enabled (the default setting), then neither will <TT
7732 CLASS="PARAMETER"
7733 ><I
7734 >domain 
7735                 master</I
7736 ></TT
7737 > be enabled by default.</P
7738 ><P
7739 >Default: <B
7740 CLASS="COMMAND"
7741 >domain master = auto</B
7742 ></P
7743 ></DD
7744 ><DT
7745 ><A
7746 NAME="DONTDESCEND"
7747 ></A
7748 >dont descend (S)</DT
7749 ><DD
7750 ><P
7751 >There are certain directories on some systems 
7752                 (e.g., the <TT
7753 CLASS="FILENAME"
7754 >/proc</TT
7755 > tree under Linux) that are either not 
7756                 of interest to clients or are infinitely deep (recursive). This 
7757                 parameter allows you to specify a comma-delimited list of directories 
7758                 that the server should always show as empty.</P
7759 ><P
7760 >Note that Samba can be very fussy about the exact format 
7761                 of the "dont descend" entries. For example you may need <TT
7762 CLASS="FILENAME"
7763 >               ./proc</TT
7764 > instead of just <TT
7765 CLASS="FILENAME"
7766 >/proc</TT
7767 >. 
7768                 Experimentation is the best policy :-)  </P
7769 ><P
7770 >Default: <I
7771 CLASS="EMPHASIS"
7772 >none (i.e., all directories are OK 
7773                 to descend)</I
7774 ></P
7775 ><P
7776 >Example: <B
7777 CLASS="COMMAND"
7778 >dont descend = /proc,/dev</B
7779 ></P
7780 ></DD
7781 ><DT
7782 ><A
7783 NAME="DOSCHARSET"
7784 ></A
7785 >dos charset (G)</DT
7786 ><DD
7787 ><P
7788 >DOS SMB clients assume the server has 
7789                 the same charset as they do. This option specifies which 
7790                 charset Samba should talk to DOS clients.
7791                 </P
7792 ><P
7793 >The default depends on which charsets you have instaled. 
7794                 Samba tries to use charset 850 but falls back to ASCII in 
7795                 case it is not available. Run <A
7796 HREF="testparm.1.html"
7797 TARGET="_top"
7798 >testparm(1)
7799                 </A
7800 > to check the default on your system.
7801                 </P
7802 ></DD
7803 ><DT
7804 ><A
7805 NAME="DOSFILEMODE"
7806 ></A
7807 >dos filemode (S)</DT
7808 ><DD
7809 ><P
7810 > The default behavior in Samba is to provide 
7811                 UNIX-like behavior where only the owner of a file/directory is 
7812                 able to change the permissions on it.  However, this behavior
7813                 is often confusing to  DOS/Windows users.  Enabling this parameter 
7814                 allows a user who has write access to the file (by whatever 
7815                 means) to modify the permissions on it.  Note that a user
7816                 belonging to the group owning the file will not be allowed to
7817                 change permissions if the group is only granted read access.
7818                 Ownership of the file/directory is not changed, only the permissions 
7819                 are modified.</P
7820 ><P
7821 >Default: <B
7822 CLASS="COMMAND"
7823 >dos filemode = no</B
7824 ></P
7825 ></DD
7826 ><DT
7827 ><A
7828 NAME="DOSFILETIMERESOLUTION"
7829 ></A
7830 >dos filetime resolution (S)</DT
7831 ><DD
7832 ><P
7833 >Under the DOS and Windows FAT filesystem, the finest 
7834                 granularity on time resolution is two seconds. Setting this parameter 
7835                 for a share causes Samba to round the reported time down to the 
7836                 nearest two second boundary when a query call that requires one second 
7837                 resolution is made to <A
7838 HREF="smbd.8.html"
7839 TARGET="_top"
7840 ><B
7841 CLASS="COMMAND"
7842 >smbd(8)</B
7843 >
7844                 </A
7845 >.</P
7846 ><P
7847 >This option is mainly used as a compatibility option for Visual 
7848                 C++ when used against Samba shares. If oplocks are enabled on a 
7849                 share, Visual C++ uses two different time reading calls to check if a 
7850                 file has changed since it was last read. One of these calls uses a
7851                 one-second granularity, the other uses a two second granularity. As
7852                 the two second call rounds any odd second down, then if the file has a
7853                 timestamp of an odd number of seconds then the two timestamps will not
7854                 match and Visual C++ will keep reporting the file has changed. Setting
7855                 this option causes the two timestamps to match, and Visual C++ is
7856                 happy.</P
7857 ><P
7858 >Default: <B
7859 CLASS="COMMAND"
7860 >dos filetime resolution = no</B
7861 ></P
7862 ></DD
7863 ><DT
7864 ><A
7865 NAME="DOSFILETIMES"
7866 ></A
7867 >dos filetimes (S)</DT
7868 ><DD
7869 ><P
7870 >Under DOS and Windows, if a user can write to a 
7871                 file they can change the timestamp on it. Under POSIX semantics, 
7872                 only the owner of the file or root may change the timestamp. By 
7873                 default, Samba runs with POSIX semantics and refuses to change the 
7874                 timestamp on a file if the user <B
7875 CLASS="COMMAND"
7876 >smbd</B
7877 > is acting 
7878                 on behalf of is not the file owner. Setting this option to <TT
7879 CLASS="CONSTANT"
7880 >               yes</TT
7881 > allows DOS semantics and <A
7882 HREF="smbd.8.html"
7883 TARGET="_top"
7884 >smbd</A
7885 > will change the file 
7886                 timestamp as DOS requires.</P
7887 ><P
7888 >Default: <B
7889 CLASS="COMMAND"
7890 >dos filetimes = no</B
7891 ></P
7892 ></DD
7893 ><DT
7894 ><A
7895 NAME="ENCRYPTPASSWORDS"
7896 ></A
7897 >encrypt passwords (G)</DT
7898 ><DD
7899 ><P
7900 >This boolean controls whether encrypted passwords 
7901                 will be negotiated with the client. Note that Windows NT 4.0 SP3 and 
7902                 above and also Windows 98 will by default expect encrypted passwords 
7903                 unless a registry entry is changed. To use encrypted passwords in 
7904                 Samba see the file ENCRYPTION.txt in the Samba documentation 
7905                 directory <TT
7906 CLASS="FILENAME"
7907 >docs/</TT
7908 > shipped with the source code.</P
7909 ><P
7910 >In order for encrypted passwords to work correctly
7911                 <A
7912 HREF="smbd.8.html"
7913 TARGET="_top"
7914 ><B
7915 CLASS="COMMAND"
7916 >smbd(8)</B
7917 ></A
7918 > must either 
7919                 have access to a local <A
7920 HREF="smbpasswd.5.html"
7921 TARGET="_top"
7922 ><TT
7923 CLASS="FILENAME"
7924 >smbpasswd(5)
7925                 </TT
7926 ></A
7927 > file (see the <A
7928 HREF="smbpasswd.8.html"
7929 TARGET="_top"
7930 ><B
7931 CLASS="COMMAND"
7932 >               smbpasswd(8)</B
7933 ></A
7934 > program for information on how to set up 
7935                 and maintain this file), or set the <A
7936 HREF="#SECURITY"
7937 >security = [server|domain|ads]</A
7938 > parameter which 
7939                 causes <B
7940 CLASS="COMMAND"
7941 >smbd</B
7942 > to authenticate against another 
7943                 server.</P
7944 ><P
7945 >Default: <B
7946 CLASS="COMMAND"
7947 >encrypt passwords = yes</B
7948 ></P
7949 ></DD
7950 ><DT
7951 ><A
7952 NAME="ENHANCEDBROWSING"
7953 ></A
7954 >enhanced browsing (G)</DT
7955 ><DD
7956 ><P
7957 >This option enables a couple of enhancements to 
7958                 cross-subnet browse propagation that have been added in Samba 
7959                 but which are not standard in Microsoft implementations.  
7960                 </P
7961 ><P
7962 >The first enhancement to browse propagation consists of a regular
7963                 wildcard query to a Samba WINS server for all Domain Master Browsers,
7964                 followed by a browse synchronization with each of the returned
7965                 DMBs. The second enhancement consists of a regular randomised browse
7966                 synchronization with all currently known DMBs.</P
7967 ><P
7968 >You may wish to disable this option if you have a problem with empty
7969                 workgroups not disappearing from browse lists. Due to the restrictions
7970                 of the browse protocols these enhancements can cause a empty workgroup
7971                 to stay around forever which can be annoying.</P
7972 ><P
7973 >In general you should leave this option enabled as it makes
7974                 cross-subnet browse propagation much more reliable.</P
7975 ><P
7976 >Default: <B
7977 CLASS="COMMAND"
7978 >enhanced browsing = yes</B
7979 ></P
7980 ></DD
7981 ><DT
7982 ><A
7983 NAME="ENUMPORTSCOMMAND"
7984 ></A
7985 >enumports command (G)</DT
7986 ><DD
7987 ><P
7988 >The concept of a "port" is fairly foreign
7989                 to UNIX hosts.  Under Windows NT/2000 print servers, a port
7990                 is associated with a port monitor and generally takes the form of
7991                 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
7992                 (i.e. LPD Port Monitor, etc...).  By default, Samba has only one
7993                 port defined--<TT
7994 CLASS="CONSTANT"
7995 >"Samba Printer Port"</TT
7996 >.  Under 
7997                 Windows NT/2000, all printers must have a valid port name.  
7998                 If you wish to have a list of ports displayed (<B
7999 CLASS="COMMAND"
8000 >smbd
8001                 </B
8002 > does not use a port name for anything) other than 
8003                 the default <TT
8004 CLASS="CONSTANT"
8005 >"Samba Printer Port"</TT
8006 >, you 
8007                 can define <TT
8008 CLASS="PARAMETER"
8009 ><I
8010 >enumports command</I
8011 ></TT
8012 > to point to
8013                 a program which should generate a list of ports, one per line,
8014                 to standard output.  This listing will then be used in response
8015                 to the level 1 and 2 EnumPorts() RPC.</P
8016 ><P
8017 >Default: <I
8018 CLASS="EMPHASIS"
8019 >no enumports command</I
8020 ></P
8021 ><P
8022 >Example: <B
8023 CLASS="COMMAND"
8024 >enumports command = /usr/bin/listports
8025                 </B
8026 ></P
8027 ></DD
8028 ><DT
8029 ><A
8030 NAME="EXEC"
8031 ></A
8032 >exec (S)</DT
8033 ><DD
8034 ><P
8035 >This is a synonym for <A
8036 HREF="#PREEXEC"
8037 >               <TT
8038 CLASS="PARAMETER"
8039 ><I
8040 >preexec</I
8041 ></TT
8042 ></A
8043 >.</P
8044 ></DD
8045 ><DT
8046 ><A
8047 NAME="FAKEDIRECTORYCREATETIMES"
8048 ></A
8049 >fake directory create times (S)</DT
8050 ><DD
8051 ><P
8052 >NTFS and Windows VFAT file systems keep a create 
8053                 time for all files and directories. This is not the same as the 
8054                 ctime - status change time - that Unix keeps, so Samba by default 
8055                 reports the earliest of the various times Unix does keep. Setting 
8056                 this parameter for a share causes Samba to always report midnight 
8057                 1-1-1980 as the create time for directories.</P
8058 ><P
8059 >This option is mainly used as a compatibility option for 
8060                 Visual C++ when used against Samba shares. Visual C++ generated 
8061                 makefiles have the object directory as a dependency for each object 
8062                 file, and a make rule to create the directory. Also, when NMAKE 
8063                 compares timestamps it uses the creation time when examining a 
8064                 directory. Thus the object directory will be created if it does not 
8065                 exist, but once it does exist it will always have an earlier 
8066                 timestamp than the object files it contains.</P
8067 ><P
8068 >However, Unix time semantics mean that the create time 
8069                 reported by Samba will be updated whenever a file is created or 
8070                 or deleted in the directory.  NMAKE finds all object files in 
8071                 the object directory.  The timestamp of the last one built is then 
8072                 compared to the timestamp of the object directory.  If the 
8073                 directory's timestamp if newer, then all object files
8074                 will be rebuilt.  Enabling this option 
8075                 ensures directories always predate their contents and an NMAKE build 
8076                 will proceed as expected.</P
8077 ><P
8078 >Default: <B
8079 CLASS="COMMAND"
8080 >fake directory create times = no</B
8081 ></P
8082 ></DD
8083 ><DT
8084 ><A
8085 NAME="FAKEOPLOCKS"
8086 ></A
8087 >fake oplocks (S)</DT
8088 ><DD
8089 ><P
8090 >Oplocks are the way that SMB clients get permission 
8091                 from a server to locally cache file operations. If a server grants 
8092                 an oplock (opportunistic lock) then the client is free to assume 
8093                 that it is the only one accessing the file and it will aggressively 
8094                 cache file data. With some oplock types the client may even cache 
8095                 file open/close operations. This can give enormous performance benefits.
8096                 </P
8097 ><P
8098 >When you set <B
8099 CLASS="COMMAND"
8100 >fake oplocks = yes</B
8101 >, <A
8102 HREF="smbd.8.html"
8103 TARGET="_top"
8104 ><B
8105 CLASS="COMMAND"
8106 >smbd(8)</B
8107 ></A
8108 > will
8109                 always grant oplock requests no matter how many clients are using 
8110                 the file.</P
8111 ><P
8112 >It is generally much better to use the real <A
8113 HREF="#OPLOCKS"
8114 ><TT
8115 CLASS="PARAMETER"
8116 ><I
8117 >oplocks</I
8118 ></TT
8119 ></A
8120 > support rather 
8121                 than this parameter.</P
8122 ><P
8123 >If you enable this option on all read-only shares or 
8124                 shares that you know will only be accessed from one client at a 
8125                 time such as physically read-only media like CDROMs, you will see 
8126                 a big performance improvement on many operations. If you enable 
8127                 this option on shares where multiple clients may be accessing the 
8128                 files read-write at the same time you can get data corruption. Use 
8129                 this option carefully!</P
8130 ><P
8131 >Default: <B
8132 CLASS="COMMAND"
8133 >fake oplocks = no</B
8134 ></P
8135 ></DD
8136 ><DT
8137 ><A
8138 NAME="FOLLOWSYMLINKS"
8139 ></A
8140 >follow symlinks (S)</DT
8141 ><DD
8142 ><P
8143 >This parameter allows the Samba administrator 
8144                 to stop <A
8145 HREF="smbd.8.html"
8146 TARGET="_top"
8147 ><B
8148 CLASS="COMMAND"
8149 >smbd(8)</B
8150 ></A
8151
8152                 from following symbolic links in a particular share. Setting this 
8153                 parameter to <TT
8154 CLASS="CONSTANT"
8155 >no</TT
8156 > prevents any file or directory 
8157                 that is a symbolic link from being followed (the user will get an 
8158                 error).  This option is very useful to stop users from adding a 
8159                 symbolic link to <TT
8160 CLASS="FILENAME"
8161 >/etc/passwd</TT
8162 > in their home 
8163                 directory for instance.  However it will slow filename lookups 
8164                 down slightly.</P
8165 ><P
8166 >This option is enabled (i.e. <B
8167 CLASS="COMMAND"
8168 >smbd</B
8169 > will 
8170                 follow symbolic links) by default.</P
8171 ><P
8172 >Default: <B
8173 CLASS="COMMAND"
8174 >follow symlinks = yes</B
8175 ></P
8176 ></DD
8177 ><DT
8178 ><A
8179 NAME="FORCECREATEMODE"
8180 ></A
8181 >force create mode (S)</DT
8182 ><DD
8183 ><P
8184 >This parameter specifies a set of UNIX mode bit 
8185                 permissions that will <I
8186 CLASS="EMPHASIS"
8187 >always</I
8188 > be set on a 
8189                 file created by Samba. This is done by bitwise 'OR'ing these bits onto 
8190                 the mode bits of a file that is being created or having its 
8191                 permissions changed. The default for this parameter is (in octal) 
8192                 000. The modes in this parameter are bitwise 'OR'ed onto the file 
8193                 mode after the mask set in the <TT
8194 CLASS="PARAMETER"
8195 ><I
8196 >create mask</I
8197 ></TT
8198
8199                 parameter is applied.</P
8200 ><P
8201 >See also the parameter <A
8202 HREF="#CREATEMASK"
8203 ><TT
8204 CLASS="PARAMETER"
8205 ><I
8206 >create 
8207                 mask</I
8208 ></TT
8209 ></A
8210 > for details on masking mode bits on files.</P
8211 ><P
8212 >See also the <A
8213 HREF="#INHERITPERMISSIONS"
8214 ><TT
8215 CLASS="PARAMETER"
8216 ><I
8217 >inherit 
8218                 permissions</I
8219 ></TT
8220 ></A
8221 > parameter.</P
8222 ><P
8223 >Default: <B
8224 CLASS="COMMAND"
8225 >force create mode = 000</B
8226 ></P
8227 ><P
8228 >Example: <B
8229 CLASS="COMMAND"
8230 >force create mode = 0755</B
8231 ></P
8232 ><P
8233 >would force all created files to have read and execute 
8234                 permissions set for 'group' and 'other' as well as the 
8235                 read/write/execute bits set for the 'user'.</P
8236 ></DD
8237 ><DT
8238 ><A
8239 NAME="FORCEDIRECTORYMODE"
8240 ></A
8241 >force directory mode (S)</DT
8242 ><DD
8243 ><P
8244 >This parameter specifies a set of UNIX mode bit 
8245                 permissions that will <I
8246 CLASS="EMPHASIS"
8247 >always</I
8248 > be set on a directory 
8249                 created by Samba. This is done by bitwise 'OR'ing these bits onto the 
8250                 mode bits of a directory that is being created. The default for this 
8251                 parameter is (in octal) 0000 which will not add any extra permission 
8252                 bits to a created directory. This operation is done after the mode 
8253                 mask in the parameter <TT
8254 CLASS="PARAMETER"
8255 ><I
8256 >directory mask</I
8257 ></TT
8258 > is 
8259                 applied.</P
8260 ><P
8261 >See also the parameter <A
8262 HREF="#DIRECTORYMASK"
8263 ><TT
8264 CLASS="PARAMETER"
8265 ><I
8266 >               directory mask</I
8267 ></TT
8268 ></A
8269 > for details on masking mode bits 
8270                 on created directories.</P
8271 ><P
8272 >See also the <A
8273 HREF="#INHERITPERMISSIONS"
8274 ><TT
8275 CLASS="PARAMETER"
8276 ><I
8277 >               inherit permissions</I
8278 ></TT
8279 ></A
8280 > parameter.</P
8281 ><P
8282 >Default: <B
8283 CLASS="COMMAND"
8284 >force directory mode = 000</B
8285 ></P
8286 ><P
8287 >Example: <B
8288 CLASS="COMMAND"
8289 >force directory mode = 0755</B
8290 ></P
8291 ><P
8292 >would force all created directories to have read and execute
8293                 permissions set for 'group' and 'other' as well as the
8294                 read/write/execute bits set for the 'user'.</P
8295 ></DD
8296 ><DT
8297 ><A
8298 NAME="FORCEDIRECTORYSECURITYMODE"
8299 ></A
8300 >force directory security mode (S)</DT
8301 ><DD
8302 ><P
8303 >This parameter controls what UNIX permission bits 
8304                 can be modified when a Windows NT client is manipulating the UNIX 
8305                 permission on a directory using the native NT security dialog box.</P
8306 ><P
8307 >This parameter is applied as a mask (OR'ed with) to the 
8308                 changed permission bits, thus forcing any bits in this mask that 
8309                 the user may have modified to be on. Essentially, one bits in this 
8310                 mask may be treated as a set of bits that, when modifying security 
8311                 on a directory, the user has always set to be 'on'.</P
8312 ><P
8313 >If not set explicitly this parameter is 000, which 
8314                 allows a user to modify all the user/group/world permissions on a 
8315                 directory without restrictions.</P
8316 ><P
8317 ><I
8318 CLASS="EMPHASIS"
8319 >Note</I
8320 > that users who can access the 
8321                 Samba server through other means can easily bypass this restriction, 
8322                 so it is primarily useful for standalone "appliance" systems.  
8323                 Administrators of most normal systems will probably want to leave
8324                 it set as 0000.</P
8325 ><P
8326 >See also the <A
8327 HREF="#DIRECTORYSECURITYMASK"
8328 ><TT
8329 CLASS="PARAMETER"
8330 ><I
8331 >               directory security mask</I
8332 ></TT
8333 ></A
8334 >, <A
8335 HREF="#SECURITYMASK"
8336 >               <TT
8337 CLASS="PARAMETER"
8338 ><I
8339 >security mask</I
8340 ></TT
8341 ></A
8342 >, 
8343                 <A
8344 HREF="#FORCESECURITYMODE"
8345 ><TT
8346 CLASS="PARAMETER"
8347 ><I
8348 >force security mode
8349                 </I
8350 ></TT
8351 ></A
8352 > parameters.</P
8353 ><P
8354 >Default: <B
8355 CLASS="COMMAND"
8356 >force directory security mode = 0</B
8357 ></P
8358 ><P
8359 >Example: <B
8360 CLASS="COMMAND"
8361 >force directory security mode = 700</B
8362 ></P
8363 ></DD
8364 ><DT
8365 ><A
8366 NAME="FORCEGROUP"
8367 ></A
8368 >force group (S)</DT
8369 ><DD
8370 ><P
8371 >This specifies a UNIX group name that will be 
8372                 assigned as the default primary group for all users connecting 
8373                 to this service. This is useful for sharing files by ensuring 
8374                 that all access to files on service will use the named group for 
8375                 their permissions checking. Thus, by assigning permissions for this 
8376                 group to the files and directories within this service the Samba 
8377                 administrator can restrict or allow sharing of these files.</P
8378 ><P
8379 >In Samba 2.0.5 and above this parameter has extended 
8380                 functionality in the following way. If the group name listed here 
8381                 has a '+' character prepended to it then the current user accessing 
8382                 the share only has the primary group default assigned to this group 
8383                 if they are already assigned as a member of that group. This allows 
8384                 an administrator to decide that only users who are already in a 
8385                 particular group will create files with group ownership set to that 
8386                 group. This gives a finer granularity of ownership assignment. For 
8387                 example, the setting <TT
8388 CLASS="FILENAME"
8389 >force group = +sys</TT
8390 > means 
8391                 that only users who are already in group sys will have their default
8392                 primary group assigned to sys when accessing this Samba share. All
8393                 other users will retain their ordinary primary group.</P
8394 ><P
8395 >If the <A
8396 HREF="#FORCEUSER"
8397 ><TT
8398 CLASS="PARAMETER"
8399 ><I
8400 >force user
8401                 </I
8402 ></TT
8403 ></A
8404 > parameter is also set the group specified in 
8405                 <TT
8406 CLASS="PARAMETER"
8407 ><I
8408 >force group</I
8409 ></TT
8410 > will override the primary group
8411                 set in <TT
8412 CLASS="PARAMETER"
8413 ><I
8414 >force user</I
8415 ></TT
8416 >.</P
8417 ><P
8418 >See also <A
8419 HREF="#FORCEUSER"
8420 ><TT
8421 CLASS="PARAMETER"
8422 ><I
8423 >force 
8424                 user</I
8425 ></TT
8426 ></A
8427 >.</P
8428 ><P
8429 >Default: <I
8430 CLASS="EMPHASIS"
8431 >no forced group</I
8432 ></P
8433 ><P
8434 >Example: <B
8435 CLASS="COMMAND"
8436 >force group = agroup</B
8437 ></P
8438 ></DD
8439 ><DT
8440 ><A
8441 NAME="FORCESECURITYMODE"
8442 ></A
8443 >force security mode (S)</DT
8444 ><DD
8445 ><P
8446 >This parameter controls what UNIX permission 
8447                 bits can be modified when a Windows NT client is manipulating 
8448                 the UNIX permission on a file using the native NT security dialog 
8449                 box.</P
8450 ><P
8451 >This parameter is applied as a mask (OR'ed with) to the 
8452                 changed permission bits, thus forcing any bits in this mask that 
8453                 the user may have modified to be on. Essentially, one bits in this 
8454                 mask may be treated as a set of bits that, when modifying security 
8455                 on a file, the user has always set to be 'on'.</P
8456 ><P
8457 >If not set explicitly this parameter is set to 0,
8458                 and allows a user to modify all the user/group/world permissions on a file,
8459                 with no restrictions.</P
8460 ><P
8461 ><I
8462 CLASS="EMPHASIS"
8463 >Note</I
8464 > that users who can access 
8465                 the Samba server through other means can easily bypass this restriction, 
8466                 so it is primarily useful for standalone "appliance" systems.  
8467                 Administrators of most normal systems will probably want to leave
8468                 this set to 0000.</P
8469 ><P
8470 >See also the <A
8471 HREF="#FORCEDIRECTORYSECURITYMODE"
8472 ><TT
8473 CLASS="PARAMETER"
8474 ><I
8475 >               force directory security mode</I
8476 ></TT
8477 ></A
8478 >,
8479                 <A
8480 HREF="#DIRECTORYSECURITYMASK"
8481 ><TT
8482 CLASS="PARAMETER"
8483 ><I
8484 >directory security
8485                 mask</I
8486 ></TT
8487 ></A
8488 >, <A
8489 HREF="#SECURITYMASK"
8490 ><TT
8491 CLASS="PARAMETER"
8492 ><I
8493 >               security mask</I
8494 ></TT
8495 ></A
8496 > parameters.</P
8497 ><P
8498 >Default: <B
8499 CLASS="COMMAND"
8500 >force security mode = 0</B
8501 ></P
8502 ><P
8503 >Example: <B
8504 CLASS="COMMAND"
8505 >force security mode = 700</B
8506 ></P
8507 ></DD
8508 ><DT
8509 ><A
8510 NAME="FORCEUSER"
8511 ></A
8512 >force user (S)</DT
8513 ><DD
8514 ><P
8515 >This specifies a UNIX user name that will be 
8516                 assigned as the default user for all users connecting to this service. 
8517                 This is useful for sharing files. You should also use it carefully 
8518                 as using it incorrectly can cause security problems.</P
8519 ><P
8520 >This user name only gets used once a connection is established. 
8521                 Thus clients still need to connect as a valid user and supply a 
8522                 valid password. Once connected, all file operations will be performed 
8523                 as the "forced user", no matter what username the client connected 
8524                 as.  This can be very useful.</P
8525 ><P
8526 >In Samba 2.0.5 and above this parameter also causes the 
8527                 primary group of the forced user to be used as the primary group 
8528                 for all file activity. Prior to 2.0.5 the primary group was left 
8529                 as the primary group of the connecting user (this was a bug).</P
8530 ><P
8531 >See also <A
8532 HREF="#FORCEGROUP"
8533 ><TT
8534 CLASS="PARAMETER"
8535 ><I
8536 >force group
8537                 </I
8538 ></TT
8539 ></A
8540 ></P
8541 ><P
8542 >Default: <I
8543 CLASS="EMPHASIS"
8544 >no forced user</I
8545 ></P
8546 ><P
8547 >Example: <B
8548 CLASS="COMMAND"
8549 >force user = auser</B
8550 ></P
8551 ></DD
8552 ><DT
8553 ><A
8554 NAME="FSTYPE"
8555 ></A
8556 >fstype (S)</DT
8557 ><DD
8558 ><P
8559 >This parameter allows the administrator to 
8560                 configure the string that specifies the type of filesystem a share 
8561                 is using that is reported by <A
8562 HREF="smbd.8.html"
8563 TARGET="_top"
8564 ><B
8565 CLASS="COMMAND"
8566 >smbd(8)
8567                 </B
8568 ></A
8569 > when a client queries the filesystem type
8570                 for a share. The default type is <TT
8571 CLASS="CONSTANT"
8572 >NTFS</TT
8573 > for 
8574                 compatibility with Windows NT but this can be changed to other 
8575                 strings such as <TT
8576 CLASS="CONSTANT"
8577 >Samba</TT
8578 > or <TT
8579 CLASS="CONSTANT"
8580 >FAT
8581                 </TT
8582 > if required.</P
8583 ><P
8584 >Default: <B
8585 CLASS="COMMAND"
8586 >fstype = NTFS</B
8587 ></P
8588 ><P
8589 >Example: <B
8590 CLASS="COMMAND"
8591 >fstype = Samba</B
8592 ></P
8593 ></DD
8594 ><DT
8595 ><A
8596 NAME="GETWDCACHE"
8597 ></A
8598 >getwd cache (G)</DT
8599 ><DD
8600 ><P
8601 >This is a tuning option. When this is enabled a 
8602                 caching algorithm will be used to reduce the time taken for getwd() 
8603                 calls. This can have a significant impact on performance, especially 
8604                 when the <A
8605 HREF="#WIDELINKS"
8606 ><TT
8607 CLASS="PARAMETER"
8608 ><I
8609 >wide links</I
8610 ></TT
8611 >
8612                 </A
8613 >parameter is set to <TT
8614 CLASS="CONSTANT"
8615 >no</TT
8616 >.</P
8617 ><P
8618 >Default: <B
8619 CLASS="COMMAND"
8620 >getwd cache = yes</B
8621 ></P
8622 ></DD
8623 ><DT
8624 ><A
8625 NAME="GROUP"
8626 ></A
8627 >group (S)</DT
8628 ><DD
8629 ><P
8630 >Synonym for <A
8631 HREF="#FORCEGROUP"
8632 ><TT
8633 CLASS="PARAMETER"
8634 ><I
8635 >force 
8636                 group</I
8637 ></TT
8638 ></A
8639 >.</P
8640 ></DD
8641 ><DT
8642 ><A
8643 NAME="GUESTACCOUNT"
8644 ></A
8645 >guest account (S)</DT
8646 ><DD
8647 ><P
8648 >This is a username which will be used for access 
8649                 to services which are specified as <A
8650 HREF="#GUESTOK"
8651 ><TT
8652 CLASS="PARAMETER"
8653 ><I
8654 >               guest ok</I
8655 ></TT
8656 ></A
8657 > (see below). Whatever privileges this 
8658                 user has will be available to any client connecting to the guest service. 
8659                 Typically this user will exist in the password file, but will not
8660                 have a valid login. The user account "ftp" is often a good choice 
8661                 for this parameter. If a username is specified in a given service, 
8662                 the specified username overrides this one.</P
8663 ><P
8664 >One some systems the default guest account "nobody" may not 
8665                 be able to print. Use another account in this case. You should test 
8666                 this by trying to log in as your guest user (perhaps by using the 
8667                 <B
8668 CLASS="COMMAND"
8669 >su -</B
8670 > command) and trying to print using the 
8671                 system print command such as <B
8672 CLASS="COMMAND"
8673 >lpr(1)</B
8674 > or <B
8675 CLASS="COMMAND"
8676 >               lp(1)</B
8677 >.</P
8678 ><P
8679 >This parameter does not accept % macros, because
8680                 many parts of the system require this value to be
8681                 constant for correct operation.</P
8682 ><P
8683 >Default: <I
8684 CLASS="EMPHASIS"
8685 >specified at compile time, usually 
8686                 "nobody"</I
8687 ></P
8688 ><P
8689 >Example: <B
8690 CLASS="COMMAND"
8691 >guest account = ftp</B
8692 ></P
8693 ></DD
8694 ><DT
8695 ><A
8696 NAME="GUESTOK"
8697 ></A
8698 >guest ok (S)</DT
8699 ><DD
8700 ><P
8701 >If this parameter is <TT
8702 CLASS="CONSTANT"
8703 >yes</TT
8704 > for 
8705                 a service, then no password is required to connect to the service. 
8706                 Privileges will be those of the <A
8707 HREF="#GUESTACCOUNT"
8708 ><TT
8709 CLASS="PARAMETER"
8710 ><I
8711 >               guest account</I
8712 ></TT
8713 ></A
8714 >.</P
8715 ><P
8716 >See the section below on <A
8717 HREF="#SECURITY"
8718 ><TT
8719 CLASS="PARAMETER"
8720 ><I
8721 >               security</I
8722 ></TT
8723 ></A
8724 > for more information about this option.
8725                 </P
8726 ><P
8727 >Default: <B
8728 CLASS="COMMAND"
8729 >guest ok = no</B
8730 ></P
8731 ></DD
8732 ><DT
8733 ><A
8734 NAME="GUESTONLY"
8735 ></A
8736 >guest only (S)</DT
8737 ><DD
8738 ><P
8739 >If this parameter is <TT
8740 CLASS="CONSTANT"
8741 >yes</TT
8742 > for 
8743                 a service, then only guest connections to the service are permitted. 
8744                 This parameter will have no effect if <A
8745 HREF="#GUESTOK"
8746 >               <TT
8747 CLASS="PARAMETER"
8748 ><I
8749 >guest ok</I
8750 ></TT
8751 ></A
8752 > is not set for the service.</P
8753 ><P
8754 >See the section below on <A
8755 HREF="#SECURITY"
8756 ><TT
8757 CLASS="PARAMETER"
8758 ><I
8759 >               security</I
8760 ></TT
8761 ></A
8762 > for more information about this option.
8763                 </P
8764 ><P
8765 >Default: <B
8766 CLASS="COMMAND"
8767 >guest only = no</B
8768 ></P
8769 ></DD
8770 ><DT
8771 ><A
8772 NAME="HIDEDOTFILES"
8773 ></A
8774 >hide dot files (S)</DT
8775 ><DD
8776 ><P
8777 >This is a boolean parameter that controls whether 
8778                 files starting with a dot appear as hidden files.</P
8779 ><P
8780 >Default: <B
8781 CLASS="COMMAND"
8782 >hide dot files = yes</B
8783 ></P
8784 ></DD
8785 ><DT
8786 ><A
8787 NAME="HIDEFILES"
8788 ></A
8789 >hide files(S)</DT
8790 ><DD
8791 ><P
8792 >This is a list of files or directories that are not 
8793                 visible but are accessible.  The DOS 'hidden' attribute is applied 
8794                 to any files or directories that match.</P
8795 ><P
8796 >Each entry in the list must be separated by a '/', 
8797                 which allows spaces to be included in the entry.  '*'
8798                 and '?' can be used to specify multiple files or directories 
8799                 as in DOS wildcards.</P
8800 ><P
8801 >Each entry must be a Unix path, not a DOS path and must 
8802                 not include the Unix directory separator '/'.</P
8803 ><P
8804 >Note that the case sensitivity option is applicable 
8805                 in hiding files.</P
8806 ><P
8807 >Setting this parameter will affect the performance of Samba, 
8808                 as it will be forced to check all files and directories for a match 
8809                 as they are scanned.</P
8810 ><P
8811 >See also <A
8812 HREF="#HIDEDOTFILES"
8813 ><TT
8814 CLASS="PARAMETER"
8815 ><I
8816 >hide 
8817                 dot files</I
8818 ></TT
8819 ></A
8820 >, <A
8821 HREF="#VETOFILES"
8822 ><TT
8823 CLASS="PARAMETER"
8824 ><I
8825 >               veto files</I
8826 ></TT
8827 ></A
8828 > and <A
8829 HREF="#CASESENSITIVE"
8830 >               <TT
8831 CLASS="PARAMETER"
8832 ><I
8833 >case sensitive</I
8834 ></TT
8835 ></A
8836 >.</P
8837 ><P
8838 >Default: <I
8839 CLASS="EMPHASIS"
8840 >no file are hidden</I
8841 ></P
8842 ><P
8843 >Example: <B
8844 CLASS="COMMAND"
8845 >hide files =
8846                 /.*/DesktopFolderDB/TrashFor%m/resource.frk/</B
8847 ></P
8848 ><P
8849 >The above example is based on files that the Macintosh 
8850                 SMB client (DAVE) available from <A
8851 HREF="http://www.thursby.com"
8852 TARGET="_top"
8853
8854                 Thursby</A
8855 > creates for internal use, and also still hides 
8856                 all files beginning with a dot.</P
8857 ></DD
8858 ><DT
8859 ><A
8860 NAME="HIDELOCALUSERS"
8861 ></A
8862 >hide local users(G)</DT
8863 ><DD
8864 ><P
8865 >This parameter toggles the hiding of local UNIX 
8866                 users (root, wheel, floppy, etc) from remote clients.</P
8867 ><P
8868 >Default: <B
8869 CLASS="COMMAND"
8870 >hide local users = no</B
8871 ></P
8872 ></DD
8873 ><DT
8874 ><A
8875 NAME="HIDEUNREADABLE"
8876 ></A
8877 >hide unreadable (G)</DT
8878 ><DD
8879 ><P
8880 >This parameter prevents clients from seeing the
8881                 existance of files that cannot be read. Defaults to off.</P
8882 ><P
8883 >Default: <B
8884 CLASS="COMMAND"
8885 >hide unreadable = no</B
8886 ></P
8887 ></DD
8888 ><DT
8889 ><A
8890 NAME="HIDEUNWRITEABLEFILES"
8891 ></A
8892 >hide unwriteable files (G)</DT
8893 ><DD
8894 ><P
8895 >This parameter prevents clients from seeing
8896                 the existance of files that cannot be written to. Defaults to off.
8897                 Note that unwriteable directories are shown as usual.
8898                 </P
8899 ><P
8900 >Default: <B
8901 CLASS="COMMAND"
8902 >hide unwriteable = no</B
8903 ></P
8904 ></DD
8905 ><DT
8906 ><A
8907 NAME="HIDESPECIALFILES"
8908 ></A
8909 >hide special files (G)</DT
8910 ><DD
8911 ><P
8912 >This parameter prevents clients from seeing
8913                 special files such as sockets, devices and fifo's in directory 
8914                 listings.
8915                 </P
8916 ><P
8917 >Default: <B
8918 CLASS="COMMAND"
8919 >hide special files = no</B
8920 ></P
8921 ></DD
8922 ><DT
8923 ><A
8924 NAME="HOMEDIRMAP"
8925 ></A
8926 >homedir map (G)</DT
8927 ><DD
8928 ><P
8929 >If<A
8930 HREF="#NISHOMEDIR"
8931 ><TT
8932 CLASS="PARAMETER"
8933 ><I
8934 >nis homedir
8935                 </I
8936 ></TT
8937 ></A
8938 > is <TT
8939 CLASS="CONSTANT"
8940 >yes</TT
8941 >, and <A
8942 HREF="smbd.8.html"
8943 TARGET="_top"
8944 ><B
8945 CLASS="COMMAND"
8946 >smbd(8)</B
8947 ></A
8948 > is also acting 
8949                 as a Win95/98 <TT
8950 CLASS="PARAMETER"
8951 ><I
8952 >logon server</I
8953 ></TT
8954 > then this parameter 
8955                 specifies the NIS (or YP) map from which the server for the user's 
8956                 home directory should be extracted.  At present, only the Sun 
8957                 auto.home map format is understood. The form of the map is:</P
8958 ><P
8959 ><B
8960 CLASS="COMMAND"
8961 >username       server:/some/file/system</B
8962 ></P
8963 ><P
8964 >and the program will extract the servername from before 
8965                 the first ':'.  There should probably be a better parsing system 
8966                 that copes with different map formats and also Amd (another 
8967                 automounter) maps.</P
8968 ><P
8969 ><I
8970 CLASS="EMPHASIS"
8971 >NOTE :</I
8972 >A working NIS client is required on 
8973                 the system for this option to work.</P
8974 ><P
8975 >See also <A
8976 HREF="#NISHOMEDIR"
8977 ><TT
8978 CLASS="PARAMETER"
8979 ><I
8980 >nis homedir</I
8981 ></TT
8982 >
8983                 </A
8984 >, <A
8985 HREF="#DOMAINLOGONS"
8986 ><TT
8987 CLASS="PARAMETER"
8988 ><I
8989 >domain logons</I
8990 ></TT
8991 >
8992                 </A
8993 >.</P
8994 ><P
8995 >Default: <B
8996 CLASS="COMMAND"
8997 >homedir map = &#60;empty string&#62;</B
8998 ></P
8999 ><P
9000 >Example: <B
9001 CLASS="COMMAND"
9002 >homedir map = amd.homedir</B
9003 ></P
9004 ></DD
9005 ><DT
9006 ><A
9007 NAME="HOSTMSDFS"
9008 ></A
9009 >host msdfs (G)</DT
9010 ><DD
9011 ><P
9012 >This boolean parameter is only available 
9013                 if Samba has been configured and compiled with the <B
9014 CLASS="COMMAND"
9015 >               --with-msdfs</B
9016 > option. If set to <TT
9017 CLASS="CONSTANT"
9018 >yes</TT
9019 >, 
9020                 Samba will act as a Dfs server, and  allow Dfs-aware clients 
9021                 to browse Dfs trees hosted on the server.</P
9022 ><P
9023 >See also the <A
9024 HREF="#MSDFSROOT"
9025 ><TT
9026 CLASS="PARAMETER"
9027 ><I
9028 >               msdfs root</I
9029 ></TT
9030 ></A
9031 > share  level  parameter.  For
9032                 more  information  on  setting  up a Dfs tree on Samba,
9033                 refer to <A
9034 HREF="msdfs_setup.html"
9035 TARGET="_top"
9036 >msdfs_setup.html</A
9037 >.
9038                 </P
9039 ><P
9040 >Default: <B
9041 CLASS="COMMAND"
9042 >host msdfs = no</B
9043 ></P
9044 ></DD
9045 ><DT
9046 ><A
9047 NAME="HOSTNAMELOOKUPS"
9048 ></A
9049 >hostname lookups (G)</DT
9050 ><DD
9051 ><P
9052 >Specifies whether samba should use (expensive)
9053                 hostname lookups or use the ip addresses instead. An example place
9054                 where hostname lookups are currently used is when checking 
9055                 the <B
9056 CLASS="COMMAND"
9057 >hosts deny</B
9058 > and <B
9059 CLASS="COMMAND"
9060 >hosts allow</B
9061 >.
9062                 </P
9063 ><P
9064 >Default: <B
9065 CLASS="COMMAND"
9066 >hostname lookups = yes</B
9067 ></P
9068 ><P
9069 >Example: <B
9070 CLASS="COMMAND"
9071 >hostname lookups = no</B
9072 ></P
9073 ></DD
9074 ><DT
9075 ><A
9076 NAME="HOSTSALLOW"
9077 ></A
9078 >hosts allow (S)</DT
9079 ><DD
9080 ><P
9081 >A synonym for this parameter is <TT
9082 CLASS="PARAMETER"
9083 ><I
9084 >allow 
9085                 hosts</I
9086 ></TT
9087 >.</P
9088 ><P
9089 >This parameter is a comma, space, or tab delimited 
9090                 set of hosts which are permitted to access a service.</P
9091 ><P
9092 >If specified in the [global] section then it will
9093                 apply to all services, regardless of whether the individual 
9094                 service has a different setting.</P
9095 ><P
9096 >You can specify the hosts by name or IP number. For 
9097                 example, you could restrict access to only the hosts on a 
9098                 Class C subnet with something like <B
9099 CLASS="COMMAND"
9100 >allow hosts = 150.203.5.
9101                 </B
9102 >. The full syntax of the list is described in the man 
9103                 page <TT
9104 CLASS="FILENAME"
9105 >hosts_access(5)</TT
9106 >. Note that this man
9107                 page may not be present on your system, so a brief description will
9108                 be given here also.</P
9109 ><P
9110 >Note that the localhost address 127.0.0.1 will always 
9111                 be allowed access unless specifically denied by a <A
9112 HREF="#HOSTSDENY"
9113 ><TT
9114 CLASS="PARAMETER"
9115 ><I
9116 >hosts deny</I
9117 ></TT
9118 ></A
9119 > option.</P
9120 ><P
9121 >You can also specify hosts by network/netmask pairs and 
9122                 by netgroup names if your system supports netgroups. The 
9123                 <I
9124 CLASS="EMPHASIS"
9125 >EXCEPT</I
9126 > keyword can also be used to limit a 
9127                 wildcard list. The following examples may provide some help:</P
9128 ><P
9129 >Example 1: allow all IPs in 150.203.*.*; except one</P
9130 ><P
9131 ><B
9132 CLASS="COMMAND"
9133 >hosts allow = 150.203. EXCEPT 150.203.6.66</B
9134 ></P
9135 ><P
9136 >Example 2: allow hosts that match the given network/netmask</P
9137 ><P
9138 ><B
9139 CLASS="COMMAND"
9140 >hosts allow = 150.203.15.0/255.255.255.0</B
9141 ></P
9142 ><P
9143 >Example 3: allow a couple of hosts</P
9144 ><P
9145 ><B
9146 CLASS="COMMAND"
9147 >hosts allow = lapland, arvidsjaur</B
9148 ></P
9149 ><P
9150 >Example 4: allow only hosts in NIS netgroup "foonet", but 
9151                 deny access from one particular host</P
9152 ><P
9153 ><B
9154 CLASS="COMMAND"
9155 >hosts allow = @foonet</B
9156 ></P
9157 ><P
9158 ><B
9159 CLASS="COMMAND"
9160 >hosts deny = pirate</B
9161 ></P
9162 ><P
9163 >Note that access still requires suitable user-level passwords.</P
9164 ><P
9165 >See <A
9166 HREF="testparm.1.html"
9167 TARGET="_top"
9168 ><B
9169 CLASS="COMMAND"
9170 >testparm(1)</B
9171 >
9172                 </A
9173 > for a way of testing your host access to see if it does 
9174                 what you expect.</P
9175 ><P
9176 >Default: <I
9177 CLASS="EMPHASIS"
9178 >none (i.e., all hosts permitted access)
9179                 </I
9180 ></P
9181 ><P
9182 >Example: <B
9183 CLASS="COMMAND"
9184 >allow hosts = 150.203.5. myhost.mynet.edu.au
9185                 </B
9186 ></P
9187 ></DD
9188 ><DT
9189 ><A
9190 NAME="HOSTSDENY"
9191 ></A
9192 >hosts deny (S)</DT
9193 ><DD
9194 ><P
9195 >The opposite of <TT
9196 CLASS="PARAMETER"
9197 ><I
9198 >hosts allow</I
9199 ></TT
9200
9201                 - hosts listed here are <I
9202 CLASS="EMPHASIS"
9203 >NOT</I
9204 > permitted access to 
9205                 services unless the specific services have their own lists to override 
9206                 this one. Where the lists conflict, the <TT
9207 CLASS="PARAMETER"
9208 ><I
9209 >allow</I
9210 ></TT
9211
9212                 list takes precedence.</P
9213 ><P
9214 >Default: <I
9215 CLASS="EMPHASIS"
9216 >none (i.e., no hosts specifically excluded)
9217                 </I
9218 ></P
9219 ><P
9220 >Example: <B
9221 CLASS="COMMAND"
9222 >hosts deny = 150.203.4. badhost.mynet.edu.au
9223                 </B
9224 ></P
9225 ></DD
9226 ><DT
9227 ><A
9228 NAME="HOSTSEQUIV"
9229 ></A
9230 >hosts equiv (G)</DT
9231 ><DD
9232 ><P
9233 >If this global parameter is a non-null string, 
9234                 it specifies the name of a file to read for the names of hosts 
9235                 and users who will be allowed access without specifying a password.
9236                 </P
9237 ><P
9238 >This is not be confused with <A
9239 HREF="#HOSTSALLOW"
9240 >               <TT
9241 CLASS="PARAMETER"
9242 ><I
9243 >hosts allow</I
9244 ></TT
9245 ></A
9246 > which is about hosts 
9247                 access to services and is more useful for guest services. <TT
9248 CLASS="PARAMETER"
9249 ><I
9250 >               hosts equiv</I
9251 ></TT
9252 > may be useful for NT clients which will 
9253                 not supply passwords to Samba.</P
9254 ><P
9255 ><I
9256 CLASS="EMPHASIS"
9257 >NOTE :</I
9258 > The use of <TT
9259 CLASS="PARAMETER"
9260 ><I
9261 >hosts equiv
9262                 </I
9263 ></TT
9264 > can be a major security hole. This is because you are 
9265                 trusting the PC to supply the correct username. It is very easy to 
9266                 get a PC to supply a false username. I recommend that the 
9267                 <TT
9268 CLASS="PARAMETER"
9269 ><I
9270 >hosts equiv</I
9271 ></TT
9272 > option be only used if you really 
9273                 know what you are doing, or perhaps on a home network where you trust 
9274                 your spouse and kids. And only if you <I
9275 CLASS="EMPHASIS"
9276 >really</I
9277 > trust 
9278                 them :-).</P
9279 ><P
9280 >Default: <I
9281 CLASS="EMPHASIS"
9282 >no host equivalences</I
9283 ></P
9284 ><P
9285 >Example: <B
9286 CLASS="COMMAND"
9287 >hosts equiv = /etc/hosts.equiv</B
9288 ></P
9289 ></DD
9290 ><DT
9291 ><A
9292 NAME="INCLUDE"
9293 ></A
9294 >include (G)</DT
9295 ><DD
9296 ><P
9297 >This allows you to include one config file 
9298                 inside another.  The file is included literally, as though typed 
9299                 in place.</P
9300 ><P
9301 >It takes the standard substitutions, except <TT
9302 CLASS="PARAMETER"
9303 ><I
9304 >%u
9305                 </I
9306 ></TT
9307 >, <TT
9308 CLASS="PARAMETER"
9309 ><I
9310 >%P</I
9311 ></TT
9312 > and <TT
9313 CLASS="PARAMETER"
9314 ><I
9315 >%S</I
9316 ></TT
9317 >.
9318                 </P
9319 ><P
9320 >Default: <I
9321 CLASS="EMPHASIS"
9322 >no file included</I
9323 ></P
9324 ><P
9325 >Example: <B
9326 CLASS="COMMAND"
9327 >include = /usr/local/samba/lib/admin_smb.conf
9328                 </B
9329 ></P
9330 ></DD
9331 ><DT
9332 ><A
9333 NAME="INHERITACLS"
9334 ></A
9335 >inherit acls (S)</DT
9336 ><DD
9337 ><P
9338 >This parameter can be used to ensure
9339                 that if default acls exist on parent directories,
9340                 they are always honored when creating a subdirectory.
9341                 The default behavior is to use the mode specified
9342                 when creating the directory.  Enabling this option
9343                 sets the mode to 0777, thus guaranteeing that 
9344                 default directory acls are propagated.
9345                 </P
9346 ><P
9347 >Default: <B
9348 CLASS="COMMAND"
9349 >inherit acls = no</B
9350 >
9351                 </P
9352 ></DD
9353 ><DT
9354 ><A
9355 NAME="INHERITPERMISSIONS"
9356 ></A
9357 >inherit permissions (S)</DT
9358 ><DD
9359 ><P
9360 >The permissions on new files and directories 
9361                 are normally governed by <A
9362 HREF="#CREATEMASK"
9363 ><TT
9364 CLASS="PARAMETER"
9365 ><I
9366 >               create mask</I
9367 ></TT
9368 ></A
9369 >, <A
9370 HREF="#DIRECTORYMASK"
9371 >               <TT
9372 CLASS="PARAMETER"
9373 ><I
9374 >directory mask</I
9375 ></TT
9376 ></A
9377 >, <A
9378 HREF="#FORCECREATEMODE"
9379 ><TT
9380 CLASS="PARAMETER"
9381 ><I
9382 >force create mode</I
9383 ></TT
9384 >
9385                 </A
9386 > and <A
9387 HREF="#FORCEDIRECTORYMODE"
9388 ><TT
9389 CLASS="PARAMETER"
9390 ><I
9391 >force 
9392                 directory mode</I
9393 ></TT
9394 ></A
9395 > but the boolean inherit 
9396                 permissions parameter overrides this.</P
9397 ><P
9398 >New directories inherit the mode of the parent directory,
9399                 including bits such as setgid.</P
9400 ><P
9401 >New files inherit their read/write bits from the parent 
9402                 directory.  Their execute bits continue to be determined by
9403                 <A
9404 HREF="#MAPARCHIVE"
9405 ><TT
9406 CLASS="PARAMETER"
9407 ><I
9408 >map archive</I
9409 ></TT
9410 >
9411                 </A
9412 >, <A
9413 HREF="#MAPHIDDEN"
9414 ><TT
9415 CLASS="PARAMETER"
9416 ><I
9417 >map hidden</I
9418 ></TT
9419 >
9420                 </A
9421 > and <A
9422 HREF="#MAPSYSTEM"
9423 ><TT
9424 CLASS="PARAMETER"
9425 ><I
9426 >map system</I
9427 ></TT
9428 >
9429                 </A
9430 > as usual.</P
9431 ><P
9432 >Note that the setuid bit is <I
9433 CLASS="EMPHASIS"
9434 >never</I
9435 > set via 
9436                 inheritance (the code explicitly prohibits this).</P
9437 ><P
9438 >This can be particularly useful on large systems with 
9439                 many users, perhaps several thousand, to allow a single [homes] 
9440                 share to be used flexibly by each user.</P
9441 ><P
9442 >See also <A
9443 HREF="#CREATEMASK"
9444 ><TT
9445 CLASS="PARAMETER"
9446 ><I
9447 >create mask
9448                 </I
9449 ></TT
9450 ></A
9451 >, <A
9452 HREF="#DIRECTORYMASK"
9453 ><TT
9454 CLASS="PARAMETER"
9455 ><I
9456 >               directory mask</I
9457 ></TT
9458 ></A
9459 >, <A
9460 HREF="#FORCECREATEMODE"
9461 >               <TT
9462 CLASS="PARAMETER"
9463 ><I
9464 >force create mode</I
9465 ></TT
9466 ></A
9467 > and <A
9468 HREF="#FORCEDIRECTORYMODE"
9469 ><TT
9470 CLASS="PARAMETER"
9471 ><I
9472 >force directory mode</I
9473 ></TT
9474 >
9475                 </A
9476 >.</P
9477 ><P
9478 >Default: <B
9479 CLASS="COMMAND"
9480 >inherit permissions = no</B
9481 ></P
9482 ></DD
9483 ><DT
9484 ><A
9485 NAME="INTERFACES"
9486 ></A
9487 >interfaces (G)</DT
9488 ><DD
9489 ><P
9490 >This option allows you to override the default 
9491                 network interfaces list that Samba will use for browsing, name 
9492                 registration and other NBT traffic. By default Samba will query 
9493                 the kernel for the list of all active interfaces and use any 
9494                 interfaces except 127.0.0.1 that are broadcast capable.</P
9495 ><P
9496 >The option takes a list of interface strings. Each string 
9497                 can be in any of the following forms:</P
9498 ><P
9499 ></P
9500 ><UL
9501 ><LI
9502 ><P
9503 >a network interface name (such as eth0). 
9504                         This may include shell-like wildcards so eth* will match 
9505                         any interface starting with the substring "eth"</P
9506 ></LI
9507 ><LI
9508 ><P
9509 >an IP address. In this case the netmask is 
9510                         determined from the list of interfaces obtained from the 
9511                         kernel</P
9512 ></LI
9513 ><LI
9514 ><P
9515 >an IP/mask pair. </P
9516 ></LI
9517 ><LI
9518 ><P
9519 >a broadcast/mask pair.</P
9520 ></LI
9521 ></UL
9522 ><P
9523 >The "mask" parameters can either be a bit length (such 
9524                 as 24 for a C class network) or a full netmask in dotted 
9525                 decimal form.</P
9526 ><P
9527 >The "IP" parameters above can either be a full dotted 
9528                 decimal IP address or a hostname which will be looked up via 
9529                 the OS's normal hostname resolution mechanisms.</P
9530 ><P
9531 >For example, the following line:</P
9532 ><P
9533 ><B
9534 CLASS="COMMAND"
9535 >interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
9536                 </B
9537 ></P
9538 ><P
9539 >would configure three network interfaces corresponding 
9540                 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. 
9541                 The netmasks of the latter two interfaces would be set to 255.255.255.0.</P
9542 ><P
9543 >See also <A
9544 HREF="#BINDINTERFACESONLY"
9545 ><TT
9546 CLASS="PARAMETER"
9547 ><I
9548 >bind 
9549                 interfaces only</I
9550 ></TT
9551 ></A
9552 >.</P
9553 ><P
9554 >Default: <I
9555 CLASS="EMPHASIS"
9556 >all active interfaces except 127.0.0.1 
9557                 that are broadcast capable</I
9558 ></P
9559 ></DD
9560 ><DT
9561 ><A
9562 NAME="INVALIDUSERS"
9563 ></A
9564 >invalid users (S)</DT
9565 ><DD
9566 ><P
9567 >This is a list of users that should not be allowed 
9568                 to login to this service. This is really a <I
9569 CLASS="EMPHASIS"
9570 >paranoid</I
9571
9572                 check to absolutely ensure an improper setting does not breach 
9573                 your security.</P
9574 ><P
9575 >A name starting with a '@' is interpreted as an NIS 
9576                 netgroup first (if your system supports NIS), and then as a UNIX 
9577                 group if the name was not found in the NIS netgroup database.</P
9578 ><P
9579 >A name starting with '+' is interpreted only 
9580                 by looking in the UNIX group database. A name starting with 
9581                 '&#38;' is interpreted only by looking in the NIS netgroup database 
9582                 (this requires NIS to be working on your system). The characters 
9583                 '+' and '&#38;' may be used at the start of the name in either order 
9584                 so the value <TT
9585 CLASS="PARAMETER"
9586 ><I
9587 >+&#38;group</I
9588 ></TT
9589 > means check the 
9590                 UNIX group database, followed by the NIS netgroup database, and 
9591                 the value <TT
9592 CLASS="PARAMETER"
9593 ><I
9594 >&#38;+group</I
9595 ></TT
9596 > means check the NIS
9597                 netgroup database, followed by the UNIX group database (the 
9598                 same as the '@' prefix).</P
9599 ><P
9600 >The current servicename is substituted for <TT
9601 CLASS="PARAMETER"
9602 ><I
9603 >%S</I
9604 ></TT
9605 >. 
9606                 This is useful in the [homes] section.</P
9607 ><P
9608 >See also <A
9609 HREF="#VALIDUSERS"
9610 ><TT
9611 CLASS="PARAMETER"
9612 ><I
9613 >valid users
9614                 </I
9615 ></TT
9616 ></A
9617 >.</P
9618 ><P
9619 >Default: <I
9620 CLASS="EMPHASIS"
9621 >no invalid users</I
9622 ></P
9623 ><P
9624 >Example: <B
9625 CLASS="COMMAND"
9626 >invalid users = root fred admin @wheel
9627                 </B
9628 ></P
9629 ></DD
9630 ><DT
9631 ><A
9632 NAME="KEEPALIVE"
9633 ></A
9634 >keepalive (G)</DT
9635 ><DD
9636 ><P
9637 >The value of the parameter (an integer) represents 
9638                 the number of seconds between <TT
9639 CLASS="PARAMETER"
9640 ><I
9641 >keepalive</I
9642 ></TT
9643
9644                 packets. If this parameter is zero, no keepalive packets will be 
9645                 sent. Keepalive packets, if sent, allow the server to tell whether 
9646                 a client is still present and responding.</P
9647 ><P
9648 >Keepalives should, in general, not be needed if the socket 
9649                 being used has the SO_KEEPALIVE attribute set on it (see <A
9650 HREF="#SOCKETOPTIONS"
9651 ><TT
9652 CLASS="PARAMETER"
9653 ><I
9654 >socket options</I
9655 ></TT
9656 ></A
9657 >). 
9658                 Basically you should only use this option if you strike difficulties.</P
9659 ><P
9660 >Default: <B
9661 CLASS="COMMAND"
9662 >keepalive = 300</B
9663 ></P
9664 ><P
9665 >Example: <B
9666 CLASS="COMMAND"
9667 >keepalive = 600</B
9668 ></P
9669 ></DD
9670 ><DT
9671 ><A
9672 NAME="KERNELOPLOCKS"
9673 ></A
9674 >kernel oplocks (G)</DT
9675 ><DD
9676 ><P
9677 >For UNIXes that support kernel based <A
9678 HREF="#OPLOCKS"
9679 ><TT
9680 CLASS="PARAMETER"
9681 ><I
9682 >oplocks</I
9683 ></TT
9684 ></A
9685 >
9686                 (currently only IRIX and the Linux 2.4 kernel), this parameter 
9687                 allows the use of them to be turned on or off.</P
9688 ><P
9689 >Kernel oplocks support allows Samba <TT
9690 CLASS="PARAMETER"
9691 ><I
9692 >oplocks
9693                 </I
9694 ></TT
9695 > to be broken whenever a local UNIX process or NFS operation 
9696                 accesses a file that <A
9697 HREF="smbd.8.html"
9698 TARGET="_top"
9699 ><B
9700 CLASS="COMMAND"
9701 >smbd(8)</B
9702 >
9703                 </A
9704 > has oplocked. This allows complete data consistency between 
9705                 SMB/CIFS, NFS and local file access (and is a <I
9706 CLASS="EMPHASIS"
9707 >very</I
9708
9709                 cool feature :-).</P
9710 ><P
9711 >This parameter defaults to <TT
9712 CLASS="CONSTANT"
9713 >on</TT
9714 >, but is translated
9715                 to a no-op on systems that no not have the necessary kernel support.
9716                 You should never need to touch this parameter.</P
9717 ><P
9718 >See also the <A
9719 HREF="#OPLOCKS"
9720 ><TT
9721 CLASS="PARAMETER"
9722 ><I
9723 >oplocks</I
9724 ></TT
9725 >
9726                 </A
9727 > and <A
9728 HREF="#LEVEL2OPLOCKS"
9729 ><TT
9730 CLASS="PARAMETER"
9731 ><I
9732 >level2 oplocks
9733                 </I
9734 ></TT
9735 ></A
9736 > parameters.</P
9737 ><P
9738 >Default: <B
9739 CLASS="COMMAND"
9740 >kernel oplocks = yes</B
9741 ></P
9742 ></DD
9743 ><DT
9744 ><A
9745 NAME="LANMANAUTH"
9746 ></A
9747 >lanman auth (G)</DT
9748 ><DD
9749 ><P
9750 >This parameter determines whether or not <A
9751 HREF="smbd.8.html"
9752 TARGET="_top"
9753 >smbd</A
9754 > will
9755                 attempt to authenticate users using the LANMAN password hash.
9756                 If disabled, only clients which support NT password hashes (e.g. Windows 
9757                 NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS 
9758                 network client) will be able to connect to the Samba host.</P
9759 ><P
9760 >Default : <B
9761 CLASS="COMMAND"
9762 >lanman auth = yes</B
9763 ></P
9764 ></DD
9765 ><DT
9766 ><A
9767 NAME="LARGEREADWRITE"
9768 ></A
9769 >large readwrite (G)</DT
9770 ><DD
9771 ><P
9772 >This parameter determines whether or not <A
9773 HREF="smbd.8.html"
9774 TARGET="_top"
9775 >smbd</A
9776 >
9777                 supports the new 64k streaming read and write varient SMB requests introduced
9778                 with Windows 2000. Note that due to Windows 2000 client redirector bugs
9779                 this requires Samba to be running on a 64-bit capable operating system such
9780                 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
9781                 Windows 2000 clients. Defaults to on. Not as tested as some other Samba
9782                 code paths.
9783                 </P
9784 ><P
9785 >Default : <B
9786 CLASS="COMMAND"
9787 >large readwrite = yes</B
9788 ></P
9789 ></DD
9790 ><DT
9791 ><A
9792 NAME="LDAPADMINDN"
9793 ></A
9794 >ldap admin dn (G)</DT
9795 ><DD
9796 ><P
9797 >The <TT
9798 CLASS="PARAMETER"
9799 ><I
9800 >ldap admin dn</I
9801 ></TT
9802 > defines the Distinguished 
9803                 Name (DN) name used by Samba to contact the ldap server when retreiving 
9804                 user account information. The <TT
9805 CLASS="PARAMETER"
9806 ><I
9807 >ldap
9808                 admin dn</I
9809 ></TT
9810 > is used in conjunction with the admin dn password
9811                 stored in the <TT
9812 CLASS="FILENAME"
9813 >private/secrets.tdb</TT
9814 > file.  See the
9815                 <A
9816 HREF="smbpasswd.8.html"
9817 TARGET="_top"
9818 ><B
9819 CLASS="COMMAND"
9820 >smbpasswd(8)</B
9821 ></A
9822 > man
9823                 page for more information on how to accomplish this.
9824                 </P
9825 ></DD
9826 ><DT
9827 ><A
9828 NAME="LDAPDELETEDN"
9829 ></A
9830 >&#62;ldap del only sam attr (G)</DT
9831 ><DD
9832 ><P
9833 > This parameter specifies whether a delete
9834                 operation in the ldapsam deletes the complete entry or only the attributes
9835                 specific to Samba.
9836                 </P
9837 ><P
9838 >Default : <I
9839 CLASS="EMPHASIS"
9840 >ldap delete dn = no</I
9841 ></P
9842 ></DD
9843 ><DT
9844 ><A
9845 NAME="LDAPDELONLYSAMATTR"
9846 ></A
9847 >&#62;ldap del only sam attr (G)</DT
9848 ><DD
9849 ><P
9850 > Inverted synonym for <A
9851 HREF="#LDAPDELETEDN"
9852 ><TT
9853 CLASS="PARAMETER"
9854 ><I
9855 >               ldap delete dn</I
9856 ></TT
9857 ></A
9858 >.
9859                 </P
9860 ></DD
9861 ><DT
9862 ><A
9863 NAME="LDAPFILTER"
9864 ></A
9865 >ldap filter (G)</DT
9866 ><DD
9867 ><P
9868 >This parameter specifies the RFC 2254 compliant LDAP search filter.
9869                 The default is to match the login name with the <TT
9870 CLASS="CONSTANT"
9871 >uid</TT
9872
9873                 attribute for all entries matching the <TT
9874 CLASS="CONSTANT"
9875 >sambaAccount</TT
9876 >               
9877                 objectclass.  Note that this filter should only return one entry.
9878                 </P
9879 ><P
9880 >Default : <B
9881 CLASS="COMMAND"
9882 >ldap filter = (&#38;(uid=%u)(objectclass=sambaAccount))</B
9883 ></P
9884 ></DD
9885 ><DT
9886 ><A
9887 NAME="LDAPPORT"
9888 ></A
9889 >ldap port (G)</DT
9890 ><DD
9891 ><P
9892 >This parameter is only available if Samba has been
9893                 configure to include the <B
9894 CLASS="COMMAND"
9895 >--with-ldapsam</B
9896 > option
9897                 at compile time.
9898                 </P
9899 ><P
9900 >                This option is used to control the tcp port number used to contact
9901                 the <A
9902 HREF="#LDAPSERVER"
9903 ><TT
9904 CLASS="PARAMETER"
9905 ><I
9906 >ldap server</I
9907 ></TT
9908 ></A
9909 >.
9910                 The default is to use the stand LDAPS port 636.
9911                 </P
9912 ><P
9913 >See Also: <A
9914 HREF="#LDAPSSL"
9915 >ldap ssl</A
9916 >
9917                 </P
9918 ><P
9919 >Default : <B
9920 CLASS="COMMAND"
9921 >ldap port = 636 ; if ldap ssl = on</B
9922 ></P
9923 ><P
9924 >Default : <B
9925 CLASS="COMMAND"
9926 >ldap port = 389 ; if ldap ssl = off</B
9927 ></P
9928 ></DD
9929 ><DT
9930 ><A
9931 NAME="LDAPSERVER"
9932 ></A
9933 >ldap server (G)</DT
9934 ><DD
9935 ><P
9936 >This parameter is only available if Samba has been
9937                 configure to include the <B
9938 CLASS="COMMAND"
9939 >--with-ldapsam</B
9940 > option
9941                 at compile time.
9942                 </P
9943 ><P
9944 >                This parameter should contain the FQDN of the ldap directory
9945                 server which should be queried to locate user account information.
9946                 </P
9947 ><P
9948 >Default : <B
9949 CLASS="COMMAND"
9950 >ldap server = localhost</B
9951 ></P
9952 ></DD
9953 ><DT
9954 ><A
9955 NAME="LDAPSSL"
9956 ></A
9957 >ldap ssl (G)</DT
9958 ><DD
9959 ><P
9960 >This option is used to define whether or not Samba should
9961                 use SSL when connecting to the ldap server
9962                 This is <I
9963 CLASS="EMPHASIS"
9964 >NOT</I
9965 > related to
9966                 Samba's previous SSL support which was enabled by specifying the 
9967                 <B
9968 CLASS="COMMAND"
9969 >--with-ssl</B
9970 > option to the <TT
9971 CLASS="FILENAME"
9972 >configure</TT
9973
9974                 script.
9975                 </P
9976 ><P
9977 >               The <TT
9978 CLASS="PARAMETER"
9979 ><I
9980 >ldap ssl</I
9981 ></TT
9982 > can be set to one of three values:
9983                 </P
9984 ><P
9985 ></P
9986 ><UL
9987 ><LI
9988 ><P
9989 ><TT
9990 CLASS="PARAMETER"
9991 ><I
9992 >Off</I
9993 ></TT
9994 > = Never use SSL when querying the directory.</P
9995 ></LI
9996 ><LI
9997 ><P
9998 ><TT
9999 CLASS="PARAMETER"
10000 ><I
10001 >Start_tls</I
10002 ></TT
10003 > = Use the LDAPv3 StartTLS extended operation 
10004                         (RFC2830) for communicating with the directory server.</P
10005 ></LI
10006 ><LI
10007 ><P
10008 ><TT
10009 CLASS="PARAMETER"
10010 ><I
10011 >On</I
10012 ></TT
10013 >  =
10014                         Use SSL on the ldaps port when contacting the 
10015                         <TT
10016 CLASS="PARAMETER"
10017 ><I
10018 >ldap   server</I
10019 ></TT
10020 >.  Only
10021                         available when the backwards-compatiblity <B
10022 CLASS="COMMAND"
10023 >                       --with-ldapsam</B
10024 > option is specified
10025                         to configure.  See <A
10026 HREF="#PASSDBBACKEND"
10027 ><TT
10028 CLASS="PARAMETER"
10029 ><I
10030 >passdb backend</I
10031 ></TT
10032 ></A
10033 ></P
10034 ></LI
10035 ></UL
10036 ><P
10037 >Default : <B
10038 CLASS="COMMAND"
10039 >ldap ssl = start_tls</B
10040 ></P
10041 ></DD
10042 ><DT
10043 ><A
10044 NAME="LDAPSUFFIX"
10045 ></A
10046 >ldap suffix (G)</DT
10047 ><DD
10048 ><P
10049 >Specifies where user and machine accounts are added to the tree. Can be overriden by <B
10050 CLASS="COMMAND"
10051 >ldap user suffix</B
10052 > and <B
10053 CLASS="COMMAND"
10054 >ldap machine suffix</B
10055 >. It also used as the base dn for all ldap searches. </P
10056 ><P
10057 >Default : <I
10058 CLASS="EMPHASIS"
10059 >none</I
10060 ></P
10061 ></DD
10062 ><DT
10063 ><A
10064 NAME="LDAPUSERSUFFIX"
10065 ></A
10066 >ldap user suffix (G)</DT
10067 ><DD
10068 ><P
10069 >It specifies where users are added to the tree.
10070                 </P
10071 ><P
10072 >Default : <I
10073 CLASS="EMPHASIS"
10074 >none</I
10075 ></P
10076 ></DD
10077 ><DT
10078 ><A
10079 NAME="LDAPMACHINESUFFIX"
10080 ></A
10081 >ldap machine suffix (G)</DT
10082 ><DD
10083 ><P
10084 >It specifies where machines should be 
10085                 added to the ldap tree.
10086                 </P
10087 ><P
10088 >Default : <I
10089 CLASS="EMPHASIS"
10090 >none</I
10091 ></P
10092 ></DD
10093 ><DT
10094 ><A
10095 NAME="LDAPPASSWDSYNC"
10096 ></A
10097 >ldap passwd sync (G)</DT
10098 ><DD
10099 ><P
10100 >This option is used to define whether
10101                 or not Samba should sync the LDAP password with the NT
10102                 and LM hashes for normal accounts (NOT for
10103                 workstation, server or domain trusts) on a password
10104                 change via SAMBA.  
10105                 </P
10106 ><P
10107 >               The <TT
10108 CLASS="PARAMETER"
10109 ><I
10110 >ldap passwd sync</I
10111 ></TT
10112 > can be set to one of three values:
10113                 </P
10114 ><P
10115 ></P
10116 ><UL
10117 ><LI
10118 ><P
10119 ><TT
10120 CLASS="PARAMETER"
10121 ><I
10122 >Yes</I
10123 ></TT
10124 >  =  Try to update the LDAP, NT and LM passwords and update the pwdLastSet time.</P
10125 ></LI
10126 ><LI
10127 ><P
10128 ><TT
10129 CLASS="PARAMETER"
10130 ><I
10131 >No</I
10132 ></TT
10133 > = Update NT and LM passwords and update the pwdLastSet time.</P
10134 ></LI
10135 ><LI
10136 ><P
10137 ><TT
10138 CLASS="PARAMETER"
10139 ><I
10140 >Only</I
10141 ></TT
10142 > = Only update the LDAP password and let the LDAP server do the rest.</P
10143 ></LI
10144 ></UL
10145 ><P
10146 >Default : <B
10147 CLASS="COMMAND"
10148 >ldap passwd sync = no</B
10149 ></P
10150 ></DD
10151 ><DT
10152 ><A
10153 NAME="LDAPTRUSTIDS"
10154 ></A
10155 >ldap trust ids (G)</DT
10156 ><DD
10157 ><P
10158 >Normally, Samba validates each entry
10159                 in the LDAP server against getpwnam().  This allows
10160                 LDAP to be used for Samba with the unix system using
10161                 NIS (for example) and also ensures that Samba does not
10162                 present accounts that do not otherwise exist.  </P
10163 ><P
10164 >This option is used to disable this functionality, and
10165                 instead to rely on the presence of the appropriate
10166                 attributes in LDAP directly, which can result in a
10167                 significant performance boost in some situations.  
10168                 Setting this option to yes effectivly assumes
10169                 that the local machine is running <B
10170 CLASS="COMMAND"
10171 >nss_ldap</B
10172 > against the
10173                 same LDAP server.</P
10174 ><P
10175 >Default: <B
10176 CLASS="COMMAND"
10177 >ldap trust ids = No</B
10178 ></P
10179 ></DD
10180 ><DT
10181 ><A
10182 NAME="LEVEL2OPLOCKS"
10183 ></A
10184 >level2 oplocks (S)</DT
10185 ><DD
10186 ><P
10187 >This parameter controls whether Samba supports
10188                 level2 (read-only) oplocks on a share.</P
10189 ><P
10190 >Level2, or read-only oplocks allow Windows NT clients 
10191                 that have an oplock on a file to downgrade from a read-write oplock 
10192                 to a read-only oplock once a second client opens the file (instead 
10193                 of releasing all oplocks on a second open, as in traditional, 
10194                 exclusive oplocks). This allows all openers of the file that 
10195                 support level2 oplocks to cache the file for read-ahead only (ie. 
10196                 they may not cache writes or lock requests) and increases performance 
10197                 for many accesses of files that are not commonly written (such as 
10198                 application .EXE files).</P
10199 ><P
10200 >Once one of the clients which have a read-only oplock 
10201                 writes to the file all clients are notified (no reply is needed 
10202                 or waited for) and told to break their oplocks to "none" and 
10203                 delete any read-ahead caches.</P
10204 ><P
10205 >It is recommended that this parameter be turned on 
10206                 to speed access to shared executables.</P
10207 ><P
10208 >For more discussions on level2 oplocks see the CIFS spec.</P
10209 ><P
10210 >Currently, if <A
10211 HREF="#KERNELOPLOCKS"
10212 ><TT
10213 CLASS="PARAMETER"
10214 ><I
10215 >kernel 
10216                 oplocks</I
10217 ></TT
10218 ></A
10219 > are supported then level2 oplocks are 
10220                 not granted (even if this parameter is set to <TT
10221 CLASS="CONSTANT"
10222 >yes</TT
10223 >). 
10224                 Note also, the <A
10225 HREF="#OPLOCKS"
10226 ><TT
10227 CLASS="PARAMETER"
10228 ><I
10229 >oplocks</I
10230 ></TT
10231 >
10232                 </A
10233 > parameter must be set to <TT
10234 CLASS="CONSTANT"
10235 >yes</TT
10236 > on this share in order for 
10237                 this parameter to have any effect.</P
10238 ><P
10239 >See also the <A
10240 HREF="#OPLOCKS"
10241 ><TT
10242 CLASS="PARAMETER"
10243 ><I
10244 >oplocks</I
10245 ></TT
10246 >
10247                 </A
10248 > and <A
10249 HREF="#OPLOCKS"
10250 ><TT
10251 CLASS="PARAMETER"
10252 ><I
10253 >kernel oplocks</I
10254 ></TT
10255 >
10256                 </A
10257 > parameters.</P
10258 ><P
10259 >Default: <B
10260 CLASS="COMMAND"
10261 >level2 oplocks = yes</B
10262 ></P
10263 ></DD
10264 ><DT
10265 ><A
10266 NAME="LMANNOUNCE"
10267 ></A
10268 >lm announce (G)</DT
10269 ><DD
10270 ><P
10271 >This parameter determines if <A
10272 HREF="nmbd.8.html"
10273 TARGET="_top"
10274 >               <B
10275 CLASS="COMMAND"
10276 >nmbd(8)</B
10277 ></A
10278 > will produce Lanman announce 
10279                 broadcasts that are needed by OS/2 clients in order for them to see 
10280                 the Samba server in their browse list. This parameter can have three 
10281                 values, <TT
10282 CLASS="CONSTANT"
10283 >yes</TT
10284 >, <TT
10285 CLASS="CONSTANT"
10286 >no</TT
10287 >, or
10288                 <TT
10289 CLASS="CONSTANT"
10290 >auto</TT
10291 >. The default is <TT
10292 CLASS="CONSTANT"
10293 >auto</TT
10294 >.  
10295                 If set to <TT
10296 CLASS="CONSTANT"
10297 >no</TT
10298 > Samba will never produce these 
10299                 broadcasts. If set to <TT
10300 CLASS="CONSTANT"
10301 >yes</TT
10302 > Samba will produce 
10303                 Lanman announce broadcasts at a frequency set by the parameter 
10304                 <TT
10305 CLASS="PARAMETER"
10306 ><I
10307 >lm interval</I
10308 ></TT
10309 >. If set to <TT
10310 CLASS="CONSTANT"
10311 >auto</TT
10312
10313                 Samba will not send Lanman announce broadcasts by default but will 
10314                 listen for them. If it hears such a broadcast on the wire it will 
10315                 then start sending them at a frequency set by the parameter 
10316                 <TT
10317 CLASS="PARAMETER"
10318 ><I
10319 >lm interval</I
10320 ></TT
10321 >.</P
10322 ><P
10323 >See also <A
10324 HREF="#LMINTERVAL"
10325 ><TT
10326 CLASS="PARAMETER"
10327 ><I
10328 >lm interval
10329                 </I
10330 ></TT
10331 ></A
10332 >.</P
10333 ><P
10334 >Default: <B
10335 CLASS="COMMAND"
10336 >lm announce = auto</B
10337 ></P
10338 ><P
10339 >Example: <B
10340 CLASS="COMMAND"
10341 >lm announce = yes</B
10342 ></P
10343 ></DD
10344 ><DT
10345 ><A
10346 NAME="LMINTERVAL"
10347 ></A
10348 >lm interval (G)</DT
10349 ><DD
10350 ><P
10351 >If Samba is set to produce Lanman announce 
10352                 broadcasts needed by OS/2 clients (see the <A
10353 HREF="#LMANNOUNCE"
10354 >               <TT
10355 CLASS="PARAMETER"
10356 ><I
10357 >lm announce</I
10358 ></TT
10359 ></A
10360 > parameter) then this 
10361                 parameter defines the frequency in seconds with which they will be 
10362                 made.  If this is set to zero then no Lanman announcements will be 
10363                 made despite the setting of the <TT
10364 CLASS="PARAMETER"
10365 ><I
10366 >lm announce</I
10367 ></TT
10368
10369                 parameter.</P
10370 ><P
10371 >See also <A
10372 HREF="#LMANNOUNCE"
10373 ><TT
10374 CLASS="PARAMETER"
10375 ><I
10376 >lm 
10377                 announce</I
10378 ></TT
10379 ></A
10380 >.</P
10381 ><P
10382 >Default: <B
10383 CLASS="COMMAND"
10384 >lm interval = 60</B
10385 ></P
10386 ><P
10387 >Example: <B
10388 CLASS="COMMAND"
10389 >lm interval = 120</B
10390 ></P
10391 ></DD
10392 ><DT
10393 ><A
10394 NAME="LOADPRINTERS"
10395 ></A
10396 >load printers (G)</DT
10397 ><DD
10398 ><P
10399 >A boolean variable that controls whether all 
10400                 printers in the printcap will be loaded for browsing by default. 
10401                 See the <A
10402 HREF="#AEN79"
10403 >printers</A
10404 > section for 
10405                 more details.</P
10406 ><P
10407 >Default: <B
10408 CLASS="COMMAND"
10409 >load printers = yes</B
10410 ></P
10411 ></DD
10412 ><DT
10413 ><A
10414 NAME="LOCALMASTER"
10415 ></A
10416 >local master (G)</DT
10417 ><DD
10418 ><P
10419 >This option allows <A
10420 HREF="nmbd.8.html"
10421 TARGET="_top"
10422 ><B
10423 CLASS="COMMAND"
10424 >               nmbd(8)</B
10425 ></A
10426 > to try and become a local master browser 
10427                 on a subnet. If set to <TT
10428 CLASS="CONSTANT"
10429 >no</TT
10430 > then <B
10431 CLASS="COMMAND"
10432 >               nmbd</B
10433 > will not attempt to become a local master browser 
10434                 on a subnet and will also lose in all browsing elections. By
10435                 default this value is set to <TT
10436 CLASS="CONSTANT"
10437 >yes</TT
10438 >. Setting this value to <TT
10439 CLASS="CONSTANT"
10440 >yes</TT
10441 > doesn't
10442                 mean that Samba will <I
10443 CLASS="EMPHASIS"
10444 >become</I
10445 > the local master 
10446                 browser on a subnet, just that <B
10447 CLASS="COMMAND"
10448 >nmbd</B
10449 > will <I
10450 CLASS="EMPHASIS"
10451 >               participate</I
10452 > in elections for local master browser.</P
10453 ><P
10454 >Setting this value to <TT
10455 CLASS="CONSTANT"
10456 >no</TT
10457 > will cause <B
10458 CLASS="COMMAND"
10459 >nmbd</B
10460 >
10461                 <I
10462 CLASS="EMPHASIS"
10463 >never</I
10464 > to become a local master browser.</P
10465 ><P
10466 >Default: <B
10467 CLASS="COMMAND"
10468 >local master = yes</B
10469 ></P
10470 ></DD
10471 ><DT
10472 ><A
10473 NAME="LOCKDIR"
10474 ></A
10475 >lock dir (G)</DT
10476 ><DD
10477 ><P
10478 >Synonym for <A
10479 HREF="#LOCKDIRECTORY"
10480 ><TT
10481 CLASS="PARAMETER"
10482 ><I
10483 >               lock directory</I
10484 ></TT
10485 ></A
10486 >.</P
10487 ></DD
10488 ><DT
10489 ><A
10490 NAME="LOCKDIRECTORY"
10491 ></A
10492 >lock directory (G)</DT
10493 ><DD
10494 ><P
10495 >This option specifies the directory where lock 
10496                 files will be placed.  The lock files are used to implement the 
10497                 <A
10498 HREF="#MAXCONNECTIONS"
10499 ><TT
10500 CLASS="PARAMETER"
10501 ><I
10502 >max connections</I
10503 ></TT
10504 >
10505                 </A
10506 > option.</P
10507 ><P
10508 >Default: <B
10509 CLASS="COMMAND"
10510 >lock directory = ${prefix}/var/locks</B
10511 ></P
10512 ><P
10513 >Example: <B
10514 CLASS="COMMAND"
10515 >lock directory = /var/run/samba/locks</B
10516 >
10517                 </P
10518 ></DD
10519 ><DT
10520 ><A
10521 NAME="LOCKSPINCOUNT"
10522 ></A
10523 >lock spin count (G)</DT
10524 ><DD
10525 ><P
10526 >This parameter controls the number of times
10527                 that smbd should attempt to gain a byte range lock on the 
10528                 behalf of a client request.  Experiments have shown that
10529                 Windows 2k servers do not reply with a failure if the lock
10530                 could not be immediately granted, but try a few more times
10531                 in case the lock could later be aquired.  This behavior
10532                 is used to support PC database formats such as MS Access
10533                 and FoxPro.
10534                 </P
10535 ><P
10536 >Default: <B
10537 CLASS="COMMAND"
10538 >lock spin count = 2</B
10539 >
10540                 </P
10541 ></DD
10542 ><DT
10543 ><A
10544 NAME="LOCKSPINTIME"
10545 ></A
10546 >lock spin time (G)</DT
10547 ><DD
10548 ><P
10549 >The time in microseconds that smbd should 
10550                 pause before attempting to gain a failed lock.  See
10551                 <A
10552 HREF="#LOCKSPINCOUNT"
10553 ><TT
10554 CLASS="PARAMETER"
10555 ><I
10556 >lock spin 
10557                 count</I
10558 ></TT
10559 ></A
10560 > for more details.
10561                 </P
10562 ><P
10563 >Default: <B
10564 CLASS="COMMAND"
10565 >lock spin time = 10</B
10566 >
10567                 </P
10568 ></DD
10569 ><DT
10570 ><A
10571 NAME="LOCKING"
10572 ></A
10573 >locking (S)</DT
10574 ><DD
10575 ><P
10576 >This controls whether or not locking will be 
10577                 performed by the server in response to lock requests from the 
10578                 client.</P
10579 ><P
10580 >If <B
10581 CLASS="COMMAND"
10582 >locking = no</B
10583 >, all lock and unlock 
10584                 requests will appear to succeed and all lock queries will report 
10585                 that the file in question is available for locking.</P
10586 ><P
10587 >If <B
10588 CLASS="COMMAND"
10589 >locking = yes</B
10590 >, real locking will be performed 
10591                 by the server.</P
10592 ><P
10593 >This option <I
10594 CLASS="EMPHASIS"
10595 >may</I
10596 > be useful for read-only 
10597                 filesystems which <I
10598 CLASS="EMPHASIS"
10599 >may</I
10600 > not need locking (such as 
10601                 CDROM drives), although setting this parameter of <TT
10602 CLASS="CONSTANT"
10603 >no</TT
10604
10605                 is not really recommended even in this case.</P
10606 ><P
10607 >Be careful about disabling locking either globally or in a 
10608                 specific service, as lack of locking may result in data corruption. 
10609                 You should never need to set this parameter.</P
10610 ><P
10611 >Default: <B
10612 CLASS="COMMAND"
10613 >locking = yes</B
10614 ></P
10615 ></DD
10616 ><DT
10617 ><A
10618 NAME="LOGFILE"
10619 ></A
10620 >log file (G)</DT
10621 ><DD
10622 ><P
10623 >This option allows you to override the name 
10624                 of the Samba log file (also known as the debug file).</P
10625 ><P
10626 >This option takes the standard substitutions, allowing 
10627                 you to have separate log files for each user or machine.</P
10628 ><P
10629 >Example: <B
10630 CLASS="COMMAND"
10631 >log file = /usr/local/samba/var/log.%m
10632                 </B
10633 ></P
10634 ></DD
10635 ><DT
10636 ><A
10637 NAME="LOGLEVEL"
10638 ></A
10639 >log level (G)</DT
10640 ><DD
10641 ><P
10642 >The value of the parameter (a astring) allows 
10643                 the debug level (logging level) to be specified in the 
10644                 <TT
10645 CLASS="FILENAME"
10646 >smb.conf</TT
10647 > file. This parameter has been
10648                 extended since the 2.2.x series, now it allow to specify the debug
10649                 level for multiple debug classes. This is to give greater 
10650                 flexibility in the configuration of the system.</P
10651 ><P
10652 >The default will be the log level specified on 
10653                 the command line or level zero if none was specified.</P
10654 ><P
10655 >Example: <B
10656 CLASS="COMMAND"
10657 >log level = 3 passdb:5 auth:10 winbind:2
10658                 </B
10659 ></P
10660 ></DD
10661 ><DT
10662 ><A
10663 NAME="LOGONDRIVE"
10664 ></A
10665 >logon drive (G)</DT
10666 ><DD
10667 ><P
10668 >This parameter specifies the local path to 
10669                 which the home directory will be connected (see <A
10670 HREF="#LOGONHOME"
10671 ><TT
10672 CLASS="PARAMETER"
10673 ><I
10674 >logon home</I
10675 ></TT
10676 ></A
10677 >) 
10678                 and is only used by NT Workstations. </P
10679 ><P
10680 >Note that this option is only useful if Samba is set up as a
10681                 logon server.</P
10682 ><P
10683 >Default: <B
10684 CLASS="COMMAND"
10685 >logon drive = z:</B
10686 ></P
10687 ><P
10688 >Example: <B
10689 CLASS="COMMAND"
10690 >logon drive = h:</B
10691 ></P
10692 ></DD
10693 ><DT
10694 ><A
10695 NAME="LOGONHOME"
10696 ></A
10697 >logon home (G)</DT
10698 ><DD
10699 ><P
10700 >This parameter specifies the home directory 
10701                 location when a Win95/98 or NT Workstation logs into a Samba PDC.  
10702                 It allows you to do </P
10703 ><P
10704 ><TT
10705 CLASS="PROMPT"
10706 >C:\&#62; </TT
10707 ><TT
10708 CLASS="USERINPUT"
10709 ><B
10710 >NET USE H: /HOME</B
10711 ></TT
10712 >
10713                 </P
10714 ><P
10715 >from a command prompt, for example.</P
10716 ><P
10717 >This option takes the standard substitutions, allowing 
10718                 you to have separate logon scripts for each user or machine.</P
10719 ><P
10720 >This parameter can be used with Win9X workstations to ensure 
10721                 that roaming profiles are stored in a subdirectory of the user's 
10722                 home directory.  This is done in the following way:</P
10723 ><P
10724 ><B
10725 CLASS="COMMAND"
10726 >logon home = \\%N\%U\profile</B
10727 ></P
10728 ><P
10729 >This tells Samba to return the above string, with 
10730                 substitutions made when a client requests the info, generally 
10731                 in a NetUserGetInfo request.  Win9X clients truncate the info to
10732                 \\server\share when a user does <B
10733 CLASS="COMMAND"
10734 >net use /home</B
10735 >
10736                 but use the whole string when dealing with profiles.</P
10737 ><P
10738 >Note that in prior versions of Samba, the <A
10739 HREF="#LOGONPATH"
10740 >               <TT
10741 CLASS="PARAMETER"
10742 ><I
10743 >logon path</I
10744 ></TT
10745 ></A
10746 > was returned rather than 
10747                 <TT
10748 CLASS="PARAMETER"
10749 ><I
10750 >logon home</I
10751 ></TT
10752 >.  This broke <B
10753 CLASS="COMMAND"
10754 >net use 
10755                 /home</B
10756 > but allowed profiles outside the home directory.  
10757                 The current implementation is correct, and can be used for 
10758                 profiles if you use the above trick.</P
10759 ><P
10760 >This option is only useful if Samba is set up as a logon 
10761                 server.</P
10762 ><P
10763 >Default: <B
10764 CLASS="COMMAND"
10765 >logon home = "\\%N\%U"</B
10766 ></P
10767 ><P
10768 >Example: <B
10769 CLASS="COMMAND"
10770 >logon home = "\\remote_smb_server\%U"</B
10771 >
10772                 </P
10773 ></DD
10774 ><DT
10775 ><A
10776 NAME="LOGONPATH"
10777 ></A
10778 >logon path (G)</DT
10779 ><DD
10780 ><P
10781 >This parameter specifies the home directory 
10782                 where roaming profiles (NTuser.dat etc files for Windows NT) are 
10783                 stored.  Contrary to previous versions of these manual pages, it has 
10784                 nothing to do with Win 9X roaming profiles.  To find out how to 
10785                 handle roaming profiles for Win 9X system, see the <A
10786 HREF="#LOGONHOME"
10787 >               <TT
10788 CLASS="PARAMETER"
10789 ><I
10790 >logon home</I
10791 ></TT
10792 ></A
10793 > parameter.</P
10794 ><P
10795 >This option takes the standard substitutions, allowing you 
10796                 to have separate logon scripts for each user or machine.  It also 
10797                 specifies the directory from which the "Application Data", 
10798                 (<TT
10799 CLASS="FILENAME"
10800 >desktop</TT
10801 >, <TT
10802 CLASS="FILENAME"
10803 >start menu</TT
10804 >,
10805                 <TT
10806 CLASS="FILENAME"
10807 >network neighborhood</TT
10808 >, <TT
10809 CLASS="FILENAME"
10810 >programs</TT
10811
10812                 and other folders, and their contents, are loaded and displayed on 
10813                 your Windows NT client.</P
10814 ><P
10815 >The share and the path must be readable by the user for 
10816                 the preferences and directories to be loaded onto the Windows NT
10817                 client.  The share must be writeable when the user logs in for the first
10818                 time, in order that the Windows NT client can create the NTuser.dat
10819                 and other directories.</P
10820 ><P
10821 >Thereafter, the directories and any of the contents can, 
10822                 if required, be made read-only.  It is not advisable that the 
10823                 NTuser.dat file be made read-only - rename it to NTuser.man to 
10824                 achieve the desired effect (a <I
10825 CLASS="EMPHASIS"
10826 >MAN</I
10827 >datory 
10828                 profile). </P
10829 ><P
10830 >Windows clients can sometimes maintain a connection to 
10831                 the [homes] share, even though there is no user logged in.  
10832                 Therefore, it is vital that the logon path does not include a 
10833                 reference to the homes share (i.e. setting this parameter to
10834                 \%N\%U\profile_path will cause problems).</P
10835 ><P
10836 >This option takes the standard substitutions, allowing 
10837                 you to have separate logon scripts for each user or machine.</P
10838 ><P
10839 >Note that this option is only useful if Samba is set up 
10840                 as a logon server.</P
10841 ><P
10842 >Default: <B
10843 CLASS="COMMAND"
10844 >logon path = \\%N\%U\profile</B
10845 ></P
10846 ><P
10847 >Example: <B
10848 CLASS="COMMAND"
10849 >logon path = \\PROFILESERVER\PROFILE\%U</B
10850 ></P
10851 ></DD
10852 ><DT
10853 ><A
10854 NAME="LOGONSCRIPT"
10855 ></A
10856 >logon script (G)</DT
10857 ><DD
10858 ><P
10859 >This parameter specifies the batch file (.bat) or 
10860                 NT command file (.cmd) to be downloaded and run on a machine when 
10861                 a user successfully logs in.  The file must contain the DOS 
10862                 style CR/LF line endings. Using a DOS-style editor to create the 
10863                 file is recommended.</P
10864 ><P
10865 >The script must be a relative path to the [netlogon] 
10866                 service.  If the [netlogon] service specifies a <A
10867 HREF="#PATH"
10868 >               <TT
10869 CLASS="PARAMETER"
10870 ><I
10871 >path</I
10872 ></TT
10873 ></A
10874 > of <TT
10875 CLASS="FILENAME"
10876 >/usr/local/samba/netlogon
10877                 </TT
10878 >, and <B
10879 CLASS="COMMAND"
10880 >logon script = STARTUP.BAT</B
10881 >, then 
10882                 the file that will be downloaded is:</P
10883 ><P
10884 ><TT
10885 CLASS="FILENAME"
10886 >/usr/local/samba/netlogon/STARTUP.BAT</TT
10887 ></P
10888 ><P
10889 >The contents of the batch file are entirely your choice.  A 
10890                 suggested command would be to add <B
10891 CLASS="COMMAND"
10892 >NET TIME \\SERVER /SET 
10893                 /YES</B
10894 >, to force every machine to synchronize clocks with 
10895                 the same time server.  Another use would be to add <B
10896 CLASS="COMMAND"
10897 >NET USE 
10898                 U: \\SERVER\UTILS</B
10899 > for commonly used utilities, or <B
10900 CLASS="COMMAND"
10901 >               NET USE Q: \\SERVER\ISO9001_QA</B
10902 > for example.</P
10903 ><P
10904 >Note that it is particularly important not to allow write 
10905                 access to the [netlogon] share, or to grant users write permission 
10906                 on the batch files in a secure environment, as this would allow 
10907                 the batch files to be arbitrarily modified and security to be 
10908                 breached.</P
10909 ><P
10910 >This option takes the standard substitutions, allowing you 
10911                 to have separate logon scripts for each user or machine.</P
10912 ><P
10913 >This option is only useful if Samba is set up as a logon 
10914                 server.</P
10915 ><P
10916 >Default: <I
10917 CLASS="EMPHASIS"
10918 >no logon script defined</I
10919 ></P
10920 ><P
10921 >Example: <B
10922 CLASS="COMMAND"
10923 >logon script = scripts\%U.bat</B
10924 ></P
10925 ></DD
10926 ><DT
10927 ><A
10928 NAME="LPPAUSECOMMAND"
10929 ></A
10930 >lppause command (S)</DT
10931 ><DD
10932 ><P
10933 >This parameter specifies the command to be 
10934                 executed on the server host in order to stop printing or spooling 
10935                 a specific print job.</P
10936 ><P
10937 >This command should be a program or script which takes 
10938                 a printer name and job number to pause the print job. One way 
10939                 of implementing this is by using job priorities, where jobs 
10940                 having a too low priority won't be sent to the printer.</P
10941 ><P
10942 >If a <TT
10943 CLASS="PARAMETER"
10944 ><I
10945 >%p</I
10946 ></TT
10947 > is given then the printer name 
10948                 is put in its place. A <TT
10949 CLASS="PARAMETER"
10950 ><I
10951 >%j</I
10952 ></TT
10953 > is replaced with 
10954                 the job number (an integer).  On HPUX (see <TT
10955 CLASS="PARAMETER"
10956 ><I
10957 >printing=hpux
10958                 </I
10959 ></TT
10960 >), if the <TT
10961 CLASS="PARAMETER"
10962 ><I
10963 >-p%p</I
10964 ></TT
10965 > option is added 
10966                 to the lpq command, the job will show up with the correct status, i.e. 
10967                 if the job priority is lower than the set fence priority it will 
10968                 have the PAUSED status, whereas if  the priority is equal or higher it 
10969                 will have the SPOOLED or PRINTING status.</P
10970 ><P
10971 >Note that it is good practice to include the absolute path 
10972                 in the lppause command as the PATH may not be available to the server.</P
10973 ><P
10974 >See also the <A
10975 HREF="#PRINTING"
10976 ><TT
10977 CLASS="PARAMETER"
10978 ><I
10979 >printing
10980                 </I
10981 ></TT
10982 ></A
10983 > parameter.</P
10984 ><P
10985 >Default: Currently no default value is given to 
10986                 this string, unless the value of the <TT
10987 CLASS="PARAMETER"
10988 ><I
10989 >printing</I
10990 ></TT
10991
10992                 parameter is <TT
10993 CLASS="CONSTANT"
10994 >SYSV</TT
10995 >, in which case the default is :</P
10996 ><P
10997 ><B
10998 CLASS="COMMAND"
10999 >lp -i %p-%j -H hold</B
11000 ></P
11001 ><P
11002 >or if the value of the <TT
11003 CLASS="PARAMETER"
11004 ><I
11005 >printing</I
11006 ></TT
11007 > parameter 
11008                 is <TT
11009 CLASS="CONSTANT"
11010 >SOFTQ</TT
11011 >, then the default is:</P
11012 ><P
11013 ><B
11014 CLASS="COMMAND"
11015 >qstat -s -j%j -h</B
11016 ></P
11017 ><P
11018 >Example for HPUX: <B
11019 CLASS="COMMAND"
11020 >lppause command = /usr/bin/lpalt       
11021                 %p-%j -p0</B
11022 ></P
11023 ></DD
11024 ><DT
11025 ><A
11026 NAME="LPQCACHETIME"
11027 ></A
11028 >lpq cache time (G)</DT
11029 ><DD
11030 ><P
11031 >This controls how long lpq info will be cached 
11032                 for to prevent the <B
11033 CLASS="COMMAND"
11034 >lpq</B
11035 > command being called too 
11036                 often. A separate cache is kept for each variation of the <B
11037 CLASS="COMMAND"
11038 >               lpq</B
11039 > command used by the system, so if you use different 
11040                 <B
11041 CLASS="COMMAND"
11042 >lpq</B
11043 > commands for different users then they won't
11044                 share cache information.</P
11045 ><P
11046 >The cache files are stored in <TT
11047 CLASS="FILENAME"
11048 >/tmp/lpq.xxxx</TT
11049
11050                 where xxxx is a hash of the <B
11051 CLASS="COMMAND"
11052 >lpq</B
11053 > command in use.</P
11054 ><P
11055 >The default is 10 seconds, meaning that the cached results 
11056                 of a previous identical <B
11057 CLASS="COMMAND"
11058 >lpq</B
11059 > command will be used 
11060                 if the cached data is less than 10 seconds old. A large value may 
11061                 be advisable if your <B
11062 CLASS="COMMAND"
11063 >lpq</B
11064 > command is very slow.</P
11065 ><P
11066 >A value of 0 will disable caching completely.</P
11067 ><P
11068 >See also the <A
11069 HREF="#PRINTING"
11070 ><TT
11071 CLASS="PARAMETER"
11072 ><I
11073 >printing
11074                 </I
11075 ></TT
11076 ></A
11077 > parameter.</P
11078 ><P
11079 >Default: <B
11080 CLASS="COMMAND"
11081 >lpq cache time = 10</B
11082 ></P
11083 ><P
11084 >Example: <B
11085 CLASS="COMMAND"
11086 >lpq cache time = 30</B
11087 ></P
11088 ></DD
11089 ><DT
11090 ><A
11091 NAME="LPQCOMMAND"
11092 ></A
11093 >lpq command (S)</DT
11094 ><DD
11095 ><P
11096 >This parameter specifies the command to be 
11097                 executed on the server host in order to obtain <B
11098 CLASS="COMMAND"
11099 >lpq
11100                 </B
11101 >-style printer status information.</P
11102 ><P
11103 >This command should be a program or script which 
11104                 takes a printer name as its only parameter and outputs printer 
11105                 status information.</P
11106 ><P
11107 >Currently nine styles of printer status information 
11108                 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ. 
11109                 This covers most UNIX systems. You control which type is expected 
11110                 using the <TT
11111 CLASS="PARAMETER"
11112 ><I
11113 >printing =</I
11114 ></TT
11115 > option.</P
11116 ><P
11117 >Some clients (notably Windows for Workgroups) may not 
11118                 correctly send the connection number for the printer they are 
11119                 requesting status information about. To get around this, the 
11120                 server reports on the first printer service connected to by the 
11121                 client. This only happens if the connection number sent is invalid.</P
11122 ><P
11123 >If a <TT
11124 CLASS="PARAMETER"
11125 ><I
11126 >%p</I
11127 ></TT
11128 > is given then the printer name 
11129                 is put in its place. Otherwise it is placed at the end of the 
11130                 command.</P
11131 ><P
11132 >Note that it is good practice to include the absolute path 
11133                 in the <TT
11134 CLASS="PARAMETER"
11135 ><I
11136 >lpq command</I
11137 ></TT
11138 > as the <TT
11139 CLASS="ENVAR"
11140 >$PATH
11141                 </TT
11142 > may not be available to the server.  When compiled with
11143                 the CUPS libraries, no <TT
11144 CLASS="PARAMETER"
11145 ><I
11146 >lpq command</I
11147 ></TT
11148 > is
11149                 needed because smbd will make a library call to obtain the 
11150                 print queue listing.</P
11151 ><P
11152 >See also the <A
11153 HREF="#PRINTING"
11154 ><TT
11155 CLASS="PARAMETER"
11156 ><I
11157 >printing
11158                 </I
11159 ></TT
11160 ></A
11161 > parameter.</P
11162 ><P
11163 >Default: <I
11164 CLASS="EMPHASIS"
11165 >depends on the setting of <TT
11166 CLASS="PARAMETER"
11167 ><I
11168 >               printing</I
11169 ></TT
11170 ></I
11171 ></P
11172 ><P
11173 >Example: <B
11174 CLASS="COMMAND"
11175 >lpq command = /usr/bin/lpq -P%p</B
11176 ></P
11177 ></DD
11178 ><DT
11179 ><A
11180 NAME="LPRESUMECOMMAND"
11181 ></A
11182 >lpresume command (S)</DT
11183 ><DD
11184 ><P
11185 >This parameter specifies the command to be 
11186                 executed on the server host in order to restart or continue 
11187                 printing or spooling a specific print job.</P
11188 ><P
11189 >This command should be a program or script which takes 
11190                 a printer name and job number to resume the print job. See 
11191                 also the <A
11192 HREF="#LPPAUSECOMMAND"
11193 ><TT
11194 CLASS="PARAMETER"
11195 ><I
11196 >lppause command
11197                 </I
11198 ></TT
11199 ></A
11200 > parameter.</P
11201 ><P
11202 >If a <TT
11203 CLASS="PARAMETER"
11204 ><I
11205 >%p</I
11206 ></TT
11207 > is given then the printer name 
11208                 is put in its place. A <TT
11209 CLASS="PARAMETER"
11210 ><I
11211 >%j</I
11212 ></TT
11213 > is replaced with 
11214                 the job number (an integer).</P
11215 ><P
11216 >Note that it is good practice to include the absolute path 
11217                 in the <TT
11218 CLASS="PARAMETER"
11219 ><I
11220 >lpresume command</I
11221 ></TT
11222 > as the PATH may not 
11223                 be available to the server.</P
11224 ><P
11225 >See also the <A
11226 HREF="#PRINTING"
11227 ><TT
11228 CLASS="PARAMETER"
11229 ><I
11230 >printing
11231                 </I
11232 ></TT
11233 ></A
11234 > parameter.</P
11235 ><P
11236 >Default: Currently no default value is given 
11237                 to this string, unless the value of the <TT
11238 CLASS="PARAMETER"
11239 ><I
11240 >printing</I
11241 ></TT
11242
11243                 parameter is <TT
11244 CLASS="CONSTANT"
11245 >SYSV</TT
11246 >, in which case the default is :</P
11247 ><P
11248 ><B
11249 CLASS="COMMAND"
11250 >lp -i %p-%j -H resume</B
11251 ></P
11252 ><P
11253 >or if the value of the <TT
11254 CLASS="PARAMETER"
11255 ><I
11256 >printing</I
11257 ></TT
11258 > parameter 
11259                 is <TT
11260 CLASS="CONSTANT"
11261 >SOFTQ</TT
11262 >, then the default is:</P
11263 ><P
11264 ><B
11265 CLASS="COMMAND"
11266 >qstat -s -j%j -r</B
11267 ></P
11268 ><P
11269 >Example for HPUX: <B
11270 CLASS="COMMAND"
11271 >lpresume command = /usr/bin/lpalt 
11272                 %p-%j -p2</B
11273 ></P
11274 ></DD
11275 ><DT
11276 ><A
11277 NAME="LPRMCOMMAND"
11278 ></A
11279 >lprm command (S)</DT
11280 ><DD
11281 ><P
11282 >This parameter specifies the command to be 
11283                 executed on the server host in order to delete a print job.</P
11284 ><P
11285 >This command should be a program or script which takes 
11286                 a printer name and job number, and deletes the print job.</P
11287 ><P
11288 >If a <TT
11289 CLASS="PARAMETER"
11290 ><I
11291 >%p</I
11292 ></TT
11293 > is given then the printer name 
11294                 is put in its place. A <TT
11295 CLASS="PARAMETER"
11296 ><I
11297 >%j</I
11298 ></TT
11299 > is replaced with 
11300                 the job number (an integer).</P
11301 ><P
11302 >Note that it is good practice to include the absolute 
11303                 path in the <TT
11304 CLASS="PARAMETER"
11305 ><I
11306 >lprm command</I
11307 ></TT
11308 > as the PATH may not be 
11309                 available to the server.</P
11310 ><P
11311 >See also the <A
11312 HREF="#PRINTING"
11313 ><TT
11314 CLASS="PARAMETER"
11315 ><I
11316 >printing
11317                 </I
11318 ></TT
11319 ></A
11320 > parameter.</P
11321 ><P
11322 >Default: <I
11323 CLASS="EMPHASIS"
11324 >depends on the setting of <TT
11325 CLASS="PARAMETER"
11326 ><I
11327 >printing
11328                 </I
11329 ></TT
11330 ></I
11331 ></P
11332 ><P
11333 >Example 1: <B
11334 CLASS="COMMAND"
11335 >lprm command = /usr/bin/lprm -P%p %j
11336                 </B
11337 ></P
11338 ><P
11339 >Example 2: <B
11340 CLASS="COMMAND"
11341 >lprm command = /usr/bin/cancel %p-%j
11342                 </B
11343 ></P
11344 ></DD
11345 ><DT
11346 ><A
11347 NAME="MACHINEPASSWORDTIMEOUT"
11348 ></A
11349 >machine password timeout (G)</DT
11350 ><DD
11351 ><P
11352 >If a Samba server is a member of a Windows 
11353                 NT Domain (see the <A
11354 HREF="#SECURITYEQUALSDOMAIN"
11355 >security = domain</A
11356 >) 
11357                 parameter) then periodically a running <A
11358 HREF="smbd.8.html"
11359 TARGET="_top"
11360 >               smbd(8)</A
11361 > process will try and change the MACHINE ACCOUNT 
11362                 PASSWORD stored in the TDB called <TT
11363 CLASS="FILENAME"
11364 >private/secrets.tdb
11365                 </TT
11366 >.  This parameter specifies how often this password 
11367                 will be changed, in seconds. The default is one week (expressed in 
11368                 seconds), the same as a Windows NT Domain member server.</P
11369 ><P
11370 >See also <A
11371 HREF="smbpasswd.8.html"
11372 TARGET="_top"
11373 ><B
11374 CLASS="COMMAND"
11375 >smbpasswd(8)
11376                 </B
11377 ></A
11378 >, and the <A
11379 HREF="#SECURITYEQUALSDOMAIN"
11380 >               security = domain</A
11381 >) parameter.</P
11382 ><P
11383 >Default: <B
11384 CLASS="COMMAND"
11385 >machine password timeout = 604800</B
11386 ></P
11387 ></DD
11388 ><DT
11389 ><A
11390 NAME="MAGICOUTPUT"
11391 ></A
11392 >magic output (S)</DT
11393 ><DD
11394 ><P
11395 >This parameter specifies the name of a file 
11396                 which will contain output created by a magic script (see the 
11397                 <A
11398 HREF="#MAGICSCRIPT"
11399 ><TT
11400 CLASS="PARAMETER"
11401 ><I
11402 >magic script</I
11403 ></TT
11404 ></A
11405 >
11406                 parameter below).</P
11407 ><P
11408 >Warning: If two clients use the same <TT
11409 CLASS="PARAMETER"
11410 ><I
11411 >magic script
11412                 </I
11413 ></TT
11414 > in the same directory the output file content
11415                 is undefined.</P
11416 ><P
11417 >Default: <B
11418 CLASS="COMMAND"
11419 >magic output = &#60;magic script name&#62;.out
11420                 </B
11421 ></P
11422 ><P
11423 >Example: <B
11424 CLASS="COMMAND"
11425 >magic output = myfile.txt</B
11426 ></P
11427 ></DD
11428 ><DT
11429 ><A
11430 NAME="MAGICSCRIPT"
11431 ></A
11432 >magic script (S)</DT
11433 ><DD
11434 ><P
11435 >This parameter specifies the name of a file which, 
11436                 if opened, will be executed by the server when the file is closed. 
11437                 This allows a UNIX script to be sent to the Samba host and 
11438                 executed on behalf of the connected user.</P
11439 ><P
11440 >Scripts executed in this way will be deleted upon 
11441                 completion assuming that the user has the appropriate level 
11442                 of privilege and the file permissions allow the deletion.</P
11443 ><P
11444 >If the script generates output, output will be sent to 
11445                 the file specified by the <A
11446 HREF="#MAGICOUTPUT"
11447 ><TT
11448 CLASS="PARAMETER"
11449 ><I
11450 >               magic output</I
11451 ></TT
11452 ></A
11453 > parameter (see above).</P
11454 ><P
11455 >Note that some shells are unable to interpret scripts 
11456                 containing CR/LF instead of CR as 
11457                 the end-of-line marker. Magic scripts must be executable 
11458                 <I
11459 CLASS="EMPHASIS"
11460 >as is</I
11461 > on the host, which for some hosts and 
11462                 some shells will require filtering at the DOS end.</P
11463 ><P
11464 >Magic scripts are <I
11465 CLASS="EMPHASIS"
11466 >EXPERIMENTAL</I
11467 > and 
11468                 should <I
11469 CLASS="EMPHASIS"
11470 >NOT</I
11471 > be relied upon.</P
11472 ><P
11473 >Default: <I
11474 CLASS="EMPHASIS"
11475 >None. Magic scripts disabled.</I
11476 ></P
11477 ><P
11478 >Example: <B
11479 CLASS="COMMAND"
11480 >magic script = user.csh</B
11481 ></P
11482 ></DD
11483 ><DT
11484 ><A
11485 NAME="MANGLECASE"
11486 ></A
11487 >mangle case (S)</DT
11488 ><DD
11489 ><P
11490 >See the section on <A
11491 HREF="#AEN205"
11492 >               NAME MANGLING</A
11493 ></P
11494 ><P
11495 >Default: <B
11496 CLASS="COMMAND"
11497 >mangle case = no</B
11498 ></P
11499 ></DD
11500 ><DT
11501 ><A
11502 NAME="MANGLEDMAP"
11503 ></A
11504 >mangled map (S)</DT
11505 ><DD
11506 ><P
11507 >This is for those who want to directly map UNIX 
11508                 file names which cannot be represented on Windows/DOS.  The mangling 
11509                 of names is not always what is needed.  In particular you may have 
11510                 documents with file extensions that differ between DOS and UNIX. 
11511                 For example, under UNIX it is common to use <TT
11512 CLASS="FILENAME"
11513 >.html</TT
11514
11515                 for HTML files, whereas under Windows/DOS <TT
11516 CLASS="FILENAME"
11517 >.htm</TT
11518
11519                 is more commonly used.</P
11520 ><P
11521 >So to map <TT
11522 CLASS="FILENAME"
11523 >html</TT
11524 > to <TT
11525 CLASS="FILENAME"
11526 >htm</TT
11527
11528                 you would use:</P
11529 ><P
11530 ><B
11531 CLASS="COMMAND"
11532 >mangled map = (*.html *.htm)</B
11533 ></P
11534 ><P
11535 >One very useful case is to remove the annoying <TT
11536 CLASS="FILENAME"
11537 >;1
11538                 </TT
11539 > off the ends of filenames on some CDROMs (only visible 
11540                 under some UNIXes). To do this use a map of (*;1 *;).</P
11541 ><P
11542 >Default: <I
11543 CLASS="EMPHASIS"
11544 >no mangled map</I
11545 ></P
11546 ><P
11547 >Example: <B
11548 CLASS="COMMAND"
11549 >mangled map = (*;1 *;)</B
11550 ></P
11551 ></DD
11552 ><DT
11553 ><A
11554 NAME="MANGLEDNAMES"
11555 ></A
11556 >mangled names (S)</DT
11557 ><DD
11558 ><P
11559 >This controls whether non-DOS names under UNIX 
11560                 should be mapped to DOS-compatible names ("mangled") and made visible, 
11561                 or whether non-DOS names should simply be ignored.</P
11562 ><P
11563 >See the section on <A
11564 HREF="#AEN205"
11565 >               NAME MANGLING</A
11566 > for details on how to control the mangling process.</P
11567 ><P
11568 >If mangling is used then the mangling algorithm is as follows:</P
11569 ><P
11570 ></P
11571 ><UL
11572 ><LI
11573 ><P
11574 >The first (up to) five alphanumeric characters 
11575                         before the rightmost dot of the filename are preserved, forced 
11576                         to upper case, and appear as the first (up to) five characters 
11577                         of the mangled name.</P
11578 ></LI
11579 ><LI
11580 ><P
11581 >A tilde "~" is appended to the first part of the mangled
11582                         name, followed by a two-character unique sequence, based on the
11583                         original root name (i.e., the original filename minus its final
11584                         extension). The final extension is included in the hash calculation
11585                         only if it contains any upper case characters or is longer than three
11586                         characters.</P
11587 ><P
11588 >Note that the character to use may be specified using 
11589                         the <A
11590 HREF="#MANGLINGCHAR"
11591 ><TT
11592 CLASS="PARAMETER"
11593 ><I
11594 >mangling char</I
11595 ></TT
11596 >
11597                         </A
11598 > option, if you don't like '~'.</P
11599 ></LI
11600 ><LI
11601 ><P
11602 >The first three alphanumeric characters of the final 
11603                         extension are preserved, forced to upper case and appear as the 
11604                         extension of the mangled name. The final extension is defined as that 
11605                         part of the original filename after the rightmost dot. If there are no 
11606                         dots in the filename, the mangled name will have no extension (except 
11607                         in the case of "hidden files" - see below).</P
11608 ></LI
11609 ><LI
11610 ><P
11611 >Files whose UNIX name begins with a dot will be 
11612                         presented as DOS hidden files. The mangled name will be created as 
11613                         for other filenames, but with the leading dot removed and "___" as 
11614                         its extension regardless of actual original extension (that's three 
11615                         underscores).</P
11616 ></LI
11617 ></UL
11618 ><P
11619 >The two-digit hash value consists of upper case 
11620                 alphanumeric characters.</P
11621 ><P
11622 >This algorithm can cause name collisions only if files 
11623                 in a directory share the same first five alphanumeric characters. 
11624                 The probability of such a clash is 1/1300.</P
11625 ><P
11626 >The name mangling (if enabled) allows a file to be 
11627                 copied between UNIX directories from Windows/DOS while retaining 
11628                 the long UNIX filename. UNIX files can be renamed to a new extension 
11629                 from Windows/DOS and will retain the same basename. Mangled names 
11630                 do not change between sessions.</P
11631 ><P
11632 >Default: <B
11633 CLASS="COMMAND"
11634 >mangled names = yes</B
11635 ></P
11636 ></DD
11637 ><DT
11638 ><A
11639 NAME="MANGLINGMETHOD"
11640 ></A
11641 >mangling method (G)</DT
11642 ><DD
11643 ><P
11644 > controls the algorithm used for the generating
11645                 the mangled names. Can take two different values, "hash" and
11646                 "hash2". "hash" is  the default and is the algorithm that has been
11647                 used in Samba for many years. "hash2" is a newer and considered
11648                 a better algorithm (generates less collisions) in the names.
11649                 However, many Win32 applications store the mangled names and so
11650                 changing to the new algorithm must not be done
11651                 lightly as these applications may break unless reinstalled.</P
11652 ><P
11653 >Default: <B
11654 CLASS="COMMAND"
11655 >mangling method = hash2</B
11656 ></P
11657 ><P
11658 >Example: <B
11659 CLASS="COMMAND"
11660 >mangling method = hash</B
11661 ></P
11662 ></DD
11663 ><DT
11664 ><A
11665 NAME="MANGLEPREFIX"
11666 ></A
11667 >mangle prefix (G)</DT
11668 ><DD
11669 ><P
11670 > controls the number of prefix
11671                 characters from the original name used when generating
11672                 the mangled names. A larger value will give a weaker
11673                 hash and therefore more name collisions. The minimum
11674                 value is 1 and the maximum value is 6.</P
11675 ><P
11676 >Default: <B
11677 CLASS="COMMAND"
11678 >mangle prefix = 1</B
11679 ></P
11680 ><P
11681 >Example: <B
11682 CLASS="COMMAND"
11683 >mangle prefix = 4</B
11684 ></P
11685 ></DD
11686 ><DT
11687 ><A
11688 NAME="MANGLEDSTACK"
11689 ></A
11690 >mangled stack (G)</DT
11691 ><DD
11692 ><P
11693 >This parameter controls the number of mangled names 
11694                 that should be cached in the Samba server <A
11695 HREF="smbd.8.html"
11696 TARGET="_top"
11697 >               smbd(8)</A
11698 >.</P
11699 ><P
11700 >This stack is a list of recently mangled base names 
11701                 (extensions are only maintained if they are longer than 3 characters 
11702                 or contains upper case characters).</P
11703 ><P
11704 >The larger this value, the more likely it is that mangled 
11705                 names can be successfully converted to correct long UNIX names. 
11706                 However, large stack sizes will slow most directory accesses. Smaller 
11707                 stacks save memory in the server (each stack element costs 256 bytes).
11708                 </P
11709 ><P
11710 >It is not possible to absolutely guarantee correct long 
11711                 filenames, so be prepared for some surprises!</P
11712 ><P
11713 >Default: <B
11714 CLASS="COMMAND"
11715 >mangled stack = 50</B
11716 ></P
11717 ><P
11718 >Example: <B
11719 CLASS="COMMAND"
11720 >mangled stack = 100</B
11721 ></P
11722 ></DD
11723 ><DT
11724 ><A
11725 NAME="MANGLINGCHAR"
11726 ></A
11727 >mangling char (S)</DT
11728 ><DD
11729 ><P
11730 >This controls what character is used as 
11731                 the <I
11732 CLASS="EMPHASIS"
11733 >magic</I
11734 > character in <A
11735 HREF="#AEN205"
11736 >name mangling</A
11737 >. The default is a '~'
11738                 but this may interfere with some software. Use this option to set 
11739                 it to whatever you prefer.</P
11740 ><P
11741 >Default: <B
11742 CLASS="COMMAND"
11743 >mangling char = ~</B
11744 ></P
11745 ><P
11746 >Example: <B
11747 CLASS="COMMAND"
11748 >mangling char = ^</B
11749 ></P
11750 ></DD
11751 ><DT
11752 ><A
11753 NAME="MAPARCHIVE"
11754 ></A
11755 >map archive (S)</DT
11756 ><DD
11757 ><P
11758 >This controls whether the DOS archive attribute 
11759                 should be mapped to the UNIX owner execute bit.  The DOS archive bit 
11760                 is set when a file has been modified since its last backup.  One 
11761                 motivation for this option it to keep Samba/your PC from making 
11762                 any file it touches from becoming executable under UNIX.  This can 
11763                 be quite annoying for shared source code, documents, etc...</P
11764 ><P
11765 >Note that this requires the <TT
11766 CLASS="PARAMETER"
11767 ><I
11768 >create mask</I
11769 ></TT
11770 >
11771                 parameter to be set such that owner execute bit is not masked out 
11772                 (i.e. it must include 100). See the parameter <A
11773 HREF="#CREATEMASK"
11774 >               <TT
11775 CLASS="PARAMETER"
11776 ><I
11777 >create mask</I
11778 ></TT
11779 ></A
11780 > for details.</P
11781 ><P
11782 >Default: <B
11783 CLASS="COMMAND"
11784 >map archive = yes</B
11785 ></P
11786 ></DD
11787 ><DT
11788 ><A
11789 NAME="MAPHIDDEN"
11790 ></A
11791 >map hidden (S)</DT
11792 ><DD
11793 ><P
11794 >This controls whether DOS style hidden files 
11795                 should be mapped to the UNIX world execute bit.</P
11796 ><P
11797 >Note that this requires the <TT
11798 CLASS="PARAMETER"
11799 ><I
11800 >create mask</I
11801 ></TT
11802
11803                 to be set such that the world execute bit is not masked out (i.e. 
11804                 it must include 001). See the parameter <A
11805 HREF="#CREATEMASK"
11806 >               <TT
11807 CLASS="PARAMETER"
11808 ><I
11809 >create mask</I
11810 ></TT
11811 ></A
11812 > for details.</P
11813 ><P
11814 >Default: <B
11815 CLASS="COMMAND"
11816 >map hidden = no</B
11817 ></P
11818 ></DD
11819 ><DT
11820 ><A
11821 NAME="MAPSYSTEM"
11822 ></A
11823 >map system (S)</DT
11824 ><DD
11825 ><P
11826 >This controls whether DOS style system files 
11827                 should be mapped to the UNIX group execute bit.</P
11828 ><P
11829 >Note that this requires the <TT
11830 CLASS="PARAMETER"
11831 ><I
11832 >create mask</I
11833 ></TT
11834
11835                 to be set such that the group execute bit is not masked out (i.e. 
11836                 it must include 010). See the parameter <A
11837 HREF="#CREATEMASK"
11838 >               <TT
11839 CLASS="PARAMETER"
11840 ><I
11841 >create mask</I
11842 ></TT
11843 ></A
11844 > for details.</P
11845 ><P
11846 >Default: <B
11847 CLASS="COMMAND"
11848 >map system = no</B
11849 ></P
11850 ></DD
11851 ><DT
11852 ><A
11853 NAME="MAPTOGUEST"
11854 ></A
11855 >map to guest (G)</DT
11856 ><DD
11857 ><P
11858 >This parameter is only useful in <A
11859 HREF="#SECURITY"
11860 >               security</A
11861 > modes other than <TT
11862 CLASS="PARAMETER"
11863 ><I
11864 >security = share</I
11865 ></TT
11866
11867                 - i.e. <TT
11868 CLASS="CONSTANT"
11869 >user</TT
11870 >, <TT
11871 CLASS="CONSTANT"
11872 >server</TT
11873 >, 
11874                 and <TT
11875 CLASS="CONSTANT"
11876 >domain</TT
11877 >.</P
11878 ><P
11879 >This parameter can take three different values, which tell
11880                 <A
11881 HREF="smbd.8.html"
11882 TARGET="_top"
11883 >smbd(8)</A
11884 > what to do with user 
11885                 login requests that don't match a valid UNIX user in some way.</P
11886 ><P
11887 >The three settings are :</P
11888 ><P
11889 ></P
11890 ><UL
11891 ><LI
11892 ><P
11893 ><TT
11894 CLASS="CONSTANT"
11895 >Never</TT
11896 > - Means user login 
11897                         requests with an invalid password are rejected. This is the 
11898                         default.</P
11899 ></LI
11900 ><LI
11901 ><P
11902 ><TT
11903 CLASS="CONSTANT"
11904 >Bad User</TT
11905 > - Means user
11906                         logins with an invalid password are rejected, unless the username 
11907                         does not exist, in which case it is treated as a guest login and 
11908                         mapped into the <A
11909 HREF="#GUESTACCOUNT"
11910 ><TT
11911 CLASS="PARAMETER"
11912 ><I
11913 >                       guest account</I
11914 ></TT
11915 ></A
11916 >.</P
11917 ></LI
11918 ><LI
11919 ><P
11920 ><TT
11921 CLASS="CONSTANT"
11922 >Bad Password</TT
11923 > - Means user logins 
11924                         with an invalid password are treated as a guest login and mapped 
11925                         into the <A
11926 HREF="#GUESTACCOUNT"
11927 >guest account</A
11928 >. Note that 
11929                         this can cause problems as it means that any user incorrectly typing 
11930                         their password will be silently logged on as "guest" - and 
11931                         will not know the reason they cannot access files they think
11932                         they should - there will have been no message given to them
11933                         that they got their password wrong. Helpdesk services will
11934                         <I
11935 CLASS="EMPHASIS"
11936 >hate</I
11937 > you if you set the <TT
11938 CLASS="PARAMETER"
11939 ><I
11940 >map to 
11941                         guest</I
11942 ></TT
11943 > parameter this way :-).</P
11944 ></LI
11945 ></UL
11946 ><P
11947 >Note that this parameter is needed to set up "Guest" 
11948                 share services when using <TT
11949 CLASS="PARAMETER"
11950 ><I
11951 >security</I
11952 ></TT
11953 > modes other than 
11954                 share. This is because in these modes the name of the resource being
11955                 requested is <I
11956 CLASS="EMPHASIS"
11957 >not</I
11958 > sent to the server until after 
11959                 the server has successfully authenticated the client so the server 
11960                 cannot make authentication decisions at the correct time (connection 
11961                 to the share) for "Guest" shares.</P
11962 ><P
11963 >For people familiar with the older Samba releases, this 
11964                 parameter maps to the old compile-time setting of the <TT
11965 CLASS="CONSTANT"
11966 >               GUEST_SESSSETUP</TT
11967 > value in local.h.</P
11968 ><P
11969 >Default: <B
11970 CLASS="COMMAND"
11971 >map to guest = Never</B
11972 ></P
11973 ><P
11974 >Example: <B
11975 CLASS="COMMAND"
11976 >map to guest = Bad User</B
11977 ></P
11978 ></DD
11979 ><DT
11980 ><A
11981 NAME="MAXCONNECTIONS"
11982 ></A
11983 >max connections (S)</DT
11984 ><DD
11985 ><P
11986 >This option allows the number of simultaneous 
11987                 connections to a service to be limited. If <TT
11988 CLASS="PARAMETER"
11989 ><I
11990 >max connections
11991                 </I
11992 ></TT
11993 > is greater than 0 then connections will be refused if 
11994                 this number of connections to the service are already open. A value 
11995                 of zero mean an unlimited number of connections may be made.</P
11996 ><P
11997 >Record lock files are used to implement this feature. The 
11998                 lock files will be stored in the directory specified by the <A
11999 HREF="#LOCKDIRECTORY"
12000 ><TT
12001 CLASS="PARAMETER"
12002 ><I
12003 >lock directory</I
12004 ></TT
12005 ></A
12006
12007                 option.</P
12008 ><P
12009 >Default: <B
12010 CLASS="COMMAND"
12011 >max connections = 0</B
12012 ></P
12013 ><P
12014 >Example: <B
12015 CLASS="COMMAND"
12016 >max connections = 10</B
12017 ></P
12018 ></DD
12019 ><DT
12020 ><A
12021 NAME="MAXDISKSIZE"
12022 ></A
12023 >max disk size (G)</DT
12024 ><DD
12025 ><P
12026 >This option allows you to put an upper limit 
12027                 on the apparent size of disks. If you set this option to 100 
12028                 then all shares will appear to be not larger than 100 MB in 
12029                 size.</P
12030 ><P
12031 >Note that this option does not limit the amount of 
12032                 data you can put on the disk. In the above case you could still 
12033                 store much more than 100 MB on the disk, but if a client ever asks 
12034                 for the amount of free disk space or the total disk size then the 
12035                 result will be bounded by the amount specified in <TT
12036 CLASS="PARAMETER"
12037 ><I
12038 >max 
12039                 disk size</I
12040 ></TT
12041 >.</P
12042 ><P
12043 >This option is primarily useful to work around bugs 
12044                 in some pieces of software that can't handle very large disks, 
12045                 particularly disks over 1GB in size.</P
12046 ><P
12047 >A <TT
12048 CLASS="PARAMETER"
12049 ><I
12050 >max disk size</I
12051 ></TT
12052 > of 0 means no limit.</P
12053 ><P
12054 >Default: <B
12055 CLASS="COMMAND"
12056 >max disk size = 0</B
12057 ></P
12058 ><P
12059 >Example: <B
12060 CLASS="COMMAND"
12061 >max disk size = 1000</B
12062 ></P
12063 ></DD
12064 ><DT
12065 ><A
12066 NAME="MAXLOGSIZE"
12067 ></A
12068 >max log size (G)</DT
12069 ><DD
12070 ><P
12071 >This option (an integer in kilobytes) specifies 
12072                 the max size the log file should grow to. Samba periodically checks 
12073                 the size and if it is exceeded it will rename the file, adding 
12074                 a <TT
12075 CLASS="FILENAME"
12076 >.old</TT
12077 > extension.</P
12078 ><P
12079 >A size of 0 means no limit.</P
12080 ><P
12081 >Default: <B
12082 CLASS="COMMAND"
12083 >max log size = 5000</B
12084 ></P
12085 ><P
12086 >Example: <B
12087 CLASS="COMMAND"
12088 >max log size = 1000</B
12089 ></P
12090 ></DD
12091 ><DT
12092 ><A
12093 NAME="MAXMUX"
12094 ></A
12095 >max mux (G)</DT
12096 ><DD
12097 ><P
12098 >This option controls the maximum number of 
12099                 outstanding simultaneous SMB operations that Samba tells the client 
12100                 it will allow. You should never need to set this parameter.</P
12101 ><P
12102 >Default: <B
12103 CLASS="COMMAND"
12104 >max mux = 50</B
12105 ></P
12106 ></DD
12107 ><DT
12108 ><A
12109 NAME="MAXOPENFILES"
12110 ></A
12111 >max open files (G)</DT
12112 ><DD
12113 ><P
12114 >This parameter limits the maximum number of 
12115                 open files that one <A
12116 HREF="smbd.8.html"
12117 TARGET="_top"
12118 >smbd(8)</A
12119 > file 
12120                 serving process may have open for a client at any one time. The 
12121                 default for this parameter is set very high (10,000) as Samba uses 
12122                 only one bit per unopened file.</P
12123 ><P
12124 >The limit of the number of open files is usually set 
12125                 by the UNIX per-process file descriptor limit rather than 
12126                 this parameter so you should never need to touch this parameter.</P
12127 ><P
12128 >Default: <B
12129 CLASS="COMMAND"
12130 >max open files = 10000</B
12131 ></P
12132 ></DD
12133 ><DT
12134 ><A
12135 NAME="MAXPRINTJOBS"
12136 ></A
12137 >max print jobs (S)</DT
12138 ><DD
12139 ><P
12140 >This parameter limits the maximum number of 
12141                 jobs allowable in a Samba printer queue at any given moment.
12142                 If this number is exceeded, <A
12143 HREF="smbd.8.html"
12144 TARGET="_top"
12145 ><B
12146 CLASS="COMMAND"
12147 >               smbd(8)</B
12148 ></A
12149 > will remote "Out of Space" to the client.
12150                 See all <A
12151 HREF="#TOTALPRINTJOBS"
12152 ><TT
12153 CLASS="PARAMETER"
12154 ><I
12155 >total
12156                 print jobs</I
12157 ></TT
12158 ></A
12159 >.
12160                 </P
12161 ><P
12162 >Default: <B
12163 CLASS="COMMAND"
12164 >max print jobs = 1000</B
12165 ></P
12166 ><P
12167 >Example: <B
12168 CLASS="COMMAND"
12169 >max print jobs = 5000</B
12170 ></P
12171 ></DD
12172 ><DT
12173 ><A
12174 NAME="MAXPROTOCOL"
12175 ></A
12176 >max protocol (G)</DT
12177 ><DD
12178 ><P
12179 >The value of the parameter (a string) is the highest 
12180                 protocol level that will be supported by the server.</P
12181 ><P
12182 >Possible values are :</P
12183 ><P
12184 ></P
12185 ><UL
12186 ><LI
12187 ><P
12188 ><TT
12189 CLASS="CONSTANT"
12190 >CORE</TT
12191 >: Earliest version. No 
12192                         concept of user names.</P
12193 ></LI
12194 ><LI
12195 ><P
12196 ><TT
12197 CLASS="CONSTANT"
12198 >COREPLUS</TT
12199 >: Slight improvements on 
12200                         CORE for efficiency.</P
12201 ></LI
12202 ><LI
12203 ><P
12204 ><TT
12205 CLASS="CONSTANT"
12206 >LANMAN1</TT
12207 >: First <I
12208 CLASS="EMPHASIS"
12209 >                       modern</I
12210 > version of the protocol. Long filename
12211                         support.</P
12212 ></LI
12213 ><LI
12214 ><P
12215 ><TT
12216 CLASS="CONSTANT"
12217 >LANMAN2</TT
12218 >: Updates to Lanman1 protocol.
12219                         </P
12220 ></LI
12221 ><LI
12222 ><P
12223 ><TT
12224 CLASS="CONSTANT"
12225 >NT1</TT
12226 >: Current up to date version of 
12227                         the protocol. Used by Windows NT. Known as CIFS.</P
12228 ></LI
12229 ></UL
12230 ><P
12231 >Normally this option should not be set as the automatic 
12232                 negotiation phase in the SMB protocol takes care of choosing 
12233                 the appropriate protocol.</P
12234 ><P
12235 >See also <A
12236 HREF="#MINPROTOCOL"
12237 ><TT
12238 CLASS="PARAMETER"
12239 ><I
12240 >min
12241                 protocol</I
12242 ></TT
12243 ></A
12244 ></P
12245 ><P
12246 >Default: <B
12247 CLASS="COMMAND"
12248 >max protocol = NT1</B
12249 ></P
12250 ><P
12251 >Example: <B
12252 CLASS="COMMAND"
12253 >max protocol = LANMAN1</B
12254 ></P
12255 ></DD
12256 ><DT
12257 ><A
12258 NAME="MAXSMBDPROCESSES"
12259 ></A
12260 >max smbd processes (G)</DT
12261 ><DD
12262 ><P
12263 >This parameter limits the maximum number of 
12264                 <A
12265 HREF="smbd.8.html"
12266 TARGET="_top"
12267 ><B
12268 CLASS="COMMAND"
12269 >smbd(8)</B
12270 ></A
12271 >
12272                 processes concurrently running on a system and is intended
12273                 as a stopgap to prevent degrading service to clients in the event
12274                 that the server has insufficient resources to handle more than this
12275                 number of connections.  Remember that under normal operating
12276                 conditions, each user will have an <A
12277 HREF="smbd.8.html"
12278 TARGET="_top"
12279 >smbd</A
12280 > associated with him or her
12281                 to handle connections to all shares from a given host.
12282                 </P
12283 ><P
12284 >Default: <B
12285 CLASS="COMMAND"
12286 >max smbd processes = 0</B
12287 >   ## no limit</P
12288 ><P
12289 >Example: <B
12290 CLASS="COMMAND"
12291 >max smbd processes = 1000</B
12292 ></P
12293 ></DD
12294 ><DT
12295 ><A
12296 NAME="MAXTTL"
12297 ></A
12298 >max ttl (G)</DT
12299 ><DD
12300 ><P
12301 >This option tells <A
12302 HREF="nmbd.8.html"
12303 TARGET="_top"
12304 >nmbd(8)</A
12305 >
12306                 what the default 'time to live' of NetBIOS names should be (in seconds) 
12307                 when <B
12308 CLASS="COMMAND"
12309 >nmbd</B
12310 > is requesting a name using either a
12311                 broadcast packet or from a WINS server. You should never need to
12312                 change this parameter. The default is 3 days.</P
12313 ><P
12314 >Default: <B
12315 CLASS="COMMAND"
12316 >max ttl = 259200</B
12317 ></P
12318 ></DD
12319 ><DT
12320 ><A
12321 NAME="MAXWINSTTL"
12322 ></A
12323 >max wins ttl (G)</DT
12324 ><DD
12325 ><P
12326 >This option tells <A
12327 HREF="nmbd.8.html"
12328 TARGET="_top"
12329 >nmbd(8)
12330                 </A
12331 > when acting as a WINS server (<A
12332 HREF="#WINSSUPPORT"
12333 >               <TT
12334 CLASS="PARAMETER"
12335 ><I
12336 >wins support = yes</I
12337 ></TT
12338 ></A
12339 >) what the maximum
12340                 'time to live' of NetBIOS names that <B
12341 CLASS="COMMAND"
12342 >nmbd</B
12343
12344                 will grant will be (in seconds). You should never need to change this
12345                 parameter.  The default is 6 days (518400 seconds).</P
12346 ><P
12347 >See also the <A
12348 HREF="#MINWINSTTL"
12349 ><TT
12350 CLASS="PARAMETER"
12351 ><I
12352 >min 
12353                 wins ttl</I
12354 ></TT
12355 ></A
12356 > parameter.</P
12357 ><P
12358 >Default: <B
12359 CLASS="COMMAND"
12360 >max wins ttl = 518400</B
12361 ></P
12362 ></DD
12363 ><DT
12364 ><A
12365 NAME="MAXXMIT"
12366 ></A
12367 >max xmit (G)</DT
12368 ><DD
12369 ><P
12370 >This option controls the maximum packet size 
12371                 that will be negotiated by Samba. The default is 65535, which 
12372                 is the maximum. In some cases you may find you get better performance 
12373                 with a smaller value. A value below 2048 is likely to cause problems.
12374                 </P
12375 ><P
12376 >Default: <B
12377 CLASS="COMMAND"
12378 >max xmit = 65535</B
12379 ></P
12380 ><P
12381 >Example: <B
12382 CLASS="COMMAND"
12383 >max xmit = 8192</B
12384 ></P
12385 ></DD
12386 ><DT
12387 ><A
12388 NAME="MESSAGECOMMAND"
12389 ></A
12390 >message command (G)</DT
12391 ><DD
12392 ><P
12393 >This specifies what command to run when the 
12394                 server receives a WinPopup style message.</P
12395 ><P
12396 >This would normally be a command that would 
12397                 deliver the message somehow. How this is to be done is 
12398                 up to your imagination.</P
12399 ><P
12400 >An example is:</P
12401 ><P
12402 ><B
12403 CLASS="COMMAND"
12404 >message command = csh -c 'xedit %s;rm %s' &#38;</B
12405 >
12406                 </P
12407 ><P
12408 >This delivers the message using <B
12409 CLASS="COMMAND"
12410 >xedit</B
12411 >, then 
12412                 removes it afterwards. <I
12413 CLASS="EMPHASIS"
12414 >NOTE THAT IT IS VERY IMPORTANT 
12415                 THAT THIS COMMAND RETURN IMMEDIATELY</I
12416 >. That's why I 
12417                 have the '&#38;' on the end. If it doesn't return immediately then 
12418                 your PCs may freeze when sending messages (they should recover 
12419                 after 30 seconds, hopefully).</P
12420 ><P
12421 >All messages are delivered as the global guest user. 
12422                 The command takes the standard substitutions, although <TT
12423 CLASS="PARAMETER"
12424 ><I
12425 >               %u</I
12426 ></TT
12427 > won't work (<TT
12428 CLASS="PARAMETER"
12429 ><I
12430 >%U</I
12431 ></TT
12432 > may be better 
12433                 in this case).</P
12434 ><P
12435 >Apart from the standard substitutions, some additional 
12436                 ones apply. In particular:</P
12437 ><P
12438 ></P
12439 ><UL
12440 ><LI
12441 ><P
12442 ><TT
12443 CLASS="PARAMETER"
12444 ><I
12445 >%s</I
12446 ></TT
12447 > = the filename containing 
12448                         the message.</P
12449 ></LI
12450 ><LI
12451 ><P
12452 ><TT
12453 CLASS="PARAMETER"
12454 ><I
12455 >%t</I
12456 ></TT
12457 > = the destination that 
12458                         the message was sent to (probably the server name).</P
12459 ></LI
12460 ><LI
12461 ><P
12462 ><TT
12463 CLASS="PARAMETER"
12464 ><I
12465 >%f</I
12466 ></TT
12467 > = who the message 
12468                         is from.</P
12469 ></LI
12470 ></UL
12471 ><P
12472 >You could make this command send mail, or whatever else 
12473                 takes your fancy. Please let us know of any really interesting 
12474                 ideas you have.</P
12475 ><P
12476 >Here's a way of sending the messages as mail to root:</P
12477 ><P
12478 ><B
12479 CLASS="COMMAND"
12480 >message command = /bin/mail -s 'message from %f on 
12481                 %m' root &#60; %s; rm %s</B
12482 ></P
12483 ><P
12484 >If you don't have a message command then the message 
12485                 won't be delivered and Samba will tell the sender there was 
12486                 an error. Unfortunately WfWg totally ignores the error code 
12487                 and carries on regardless, saying that the message was delivered.
12488                 </P
12489 ><P
12490 >If you want to silently delete it then try:</P
12491 ><P
12492 ><B
12493 CLASS="COMMAND"
12494 >message command = rm %s</B
12495 ></P
12496 ><P
12497 >Default: <I
12498 CLASS="EMPHASIS"
12499 >no message command</I
12500 ></P
12501 ><P
12502 >Example: <B
12503 CLASS="COMMAND"
12504 >message command = csh -c 'xedit %s;
12505                 rm %s' &#38;</B
12506 ></P
12507 ></DD
12508 ><DT
12509 ><A
12510 NAME="MINPASSWDLENGTH"
12511 ></A
12512 >min passwd length (G)</DT
12513 ><DD
12514 ><P
12515 >Synonym for <A
12516 HREF="#MINPASSWORDLENGTH"
12517 >               <TT
12518 CLASS="PARAMETER"
12519 ><I
12520 >min password length</I
12521 ></TT
12522 ></A
12523 >.</P
12524 ></DD
12525 ><DT
12526 ><A
12527 NAME="MINPASSWORDLENGTH"
12528 ></A
12529 >min password length (G)</DT
12530 ><DD
12531 ><P
12532 >This option sets the minimum length in characters 
12533                 of a plaintext password that <B
12534 CLASS="COMMAND"
12535 >smbd</B
12536 > will accept when performing 
12537                 UNIX password changing.</P
12538 ><P
12539 >See also <A
12540 HREF="#UNIXPASSWORDSYNC"
12541 ><TT
12542 CLASS="PARAMETER"
12543 ><I
12544 >unix 
12545                 password sync</I
12546 ></TT
12547 ></A
12548 >, <A
12549 HREF="#PASSWDPROGRAM"
12550 >               <TT
12551 CLASS="PARAMETER"
12552 ><I
12553 >passwd program</I
12554 ></TT
12555 ></A
12556 > and <A
12557 HREF="#PASSWDCHATDEBUG"
12558 ><TT
12559 CLASS="PARAMETER"
12560 ><I
12561 >passwd chat debug</I
12562 ></TT
12563 >
12564                 </A
12565 >.</P
12566 ><P
12567 >Default: <B
12568 CLASS="COMMAND"
12569 >min password length = 5</B
12570 ></P
12571 ></DD
12572 ><DT
12573 ><A
12574 NAME="MINPRINTSPACE"
12575 ></A
12576 >min print space (S)</DT
12577 ><DD
12578 ><P
12579 >This sets the minimum amount of free disk 
12580                 space that must be available before a user will be able to spool 
12581                 a print job. It is specified in kilobytes. The default is 0, which 
12582                 means a user can always spool a print job.</P
12583 ><P
12584 >See also the <A
12585 HREF="#PRINTING"
12586 ><TT
12587 CLASS="PARAMETER"
12588 ><I
12589 >printing
12590                 </I
12591 ></TT
12592 ></A
12593 > parameter.</P
12594 ><P
12595 >Default: <B
12596 CLASS="COMMAND"
12597 >min print space = 0</B
12598 ></P
12599 ><P
12600 >Example: <B
12601 CLASS="COMMAND"
12602 >min print space = 2000</B
12603 ></P
12604 ></DD
12605 ><DT
12606 ><A
12607 NAME="MINPROTOCOL"
12608 ></A
12609 >min protocol (G)</DT
12610 ><DD
12611 ><P
12612 >The value of the parameter (a string) is the 
12613                 lowest SMB protocol dialect than Samba will support.  Please refer
12614                 to the <A
12615 HREF="#MAXPROTOCOL"
12616 ><TT
12617 CLASS="PARAMETER"
12618 ><I
12619 >max protocol</I
12620 ></TT
12621 ></A
12622 >
12623                 parameter for a list of valid protocol names and a brief description
12624                 of each.  You may also wish to refer to the C source code in
12625                 <TT
12626 CLASS="FILENAME"
12627 >source/smbd/negprot.c</TT
12628 > for a listing of known protocol
12629                 dialects supported by clients.</P
12630 ><P
12631 >If you are viewing this parameter as a security measure, you should
12632                 also refer to the <A
12633 HREF="#LANMANAUTH"
12634 ><TT
12635 CLASS="PARAMETER"
12636 ><I
12637 >lanman 
12638                 auth</I
12639 ></TT
12640 ></A
12641 > parameter.  Otherwise, you should never need 
12642                 to change this parameter.</P
12643 ><P
12644 >Default : <B
12645 CLASS="COMMAND"
12646 >min protocol = CORE</B
12647 ></P
12648 ><P
12649 >Example : <B
12650 CLASS="COMMAND"
12651 >min protocol = NT1</B
12652 >  # disable DOS 
12653                 clients</P
12654 ></DD
12655 ><DT
12656 ><A
12657 NAME="MINWINSTTL"
12658 ></A
12659 >min wins ttl (G)</DT
12660 ><DD
12661 ><P
12662 >This option tells <A
12663 HREF="nmbd.8.html"
12664 TARGET="_top"
12665 >nmbd(8)</A
12666 >
12667                 when acting as a WINS server (<A
12668 HREF="#WINSSUPPORT"
12669 ><TT
12670 CLASS="PARAMETER"
12671 ><I
12672 >               wins support = yes</I
12673 ></TT
12674 ></A
12675 >) what the minimum 'time to live' 
12676                 of NetBIOS names that <B
12677 CLASS="COMMAND"
12678 >nmbd</B
12679 > will grant will be (in 
12680                 seconds). You should never need to change this parameter.  The default 
12681                 is 6 hours (21600 seconds).</P
12682 ><P
12683 >Default: <B
12684 CLASS="COMMAND"
12685 >min wins ttl = 21600</B
12686 ></P
12687 ></DD
12688 ><DT
12689 ><A
12690 NAME="MSDFSPROXY"
12691 ></A
12692 >msdfs proxy (S)</DT
12693 ><DD
12694 ><P
12695 >This parameter indicates that the share is a
12696                 stand-in for another CIFS share whose location is specified by
12697                 the value of the parameter. When clients attempt to connect to
12698                 this share, they are redirected to the proxied share using
12699                 the SMB-Dfs protocol.</P
12700 ><P
12701 >Only Dfs roots can act as proxy shares. Take a look at the
12702                 <A
12703 HREF="#MSDFSROOT"
12704 ><TT
12705 CLASS="PARAMETER"
12706 ><I
12707 >msdfs root</I
12708 ></TT
12709 ></A
12710 >
12711                 and
12712                 <A
12713 HREF="#HOSTMSDFS"
12714 ><TT
12715 CLASS="PARAMETER"
12716 ><I
12717 >host msdfs</I
12718 ></TT
12719 ></A
12720 >
12721                 options to find out how to set up a Dfs root share.</P
12722 ><P
12723 >Example: <B
12724 CLASS="COMMAND"
12725 >msdfs proxy = \otherserver\someshare</B
12726 ></P
12727 ></DD
12728 ><DT
12729 ><A
12730 NAME="MSDFSROOT"
12731 ></A
12732 >msdfs root (S)</DT
12733 ><DD
12734 ><P
12735 >This boolean parameter is only available if 
12736                 Samba is configured  and  compiled with the <B
12737 CLASS="COMMAND"
12738 >               --with-msdfs</B
12739 > option.  If set to <TT
12740 CLASS="CONSTANT"
12741 >yes</TT
12742 >, 
12743                 Samba treats the share as a Dfs root and  allows clients to browse 
12744                 the distributed file system tree rooted at the share directory. 
12745                 Dfs links are specified  in  the share directory by symbolic 
12746                 links of the form <TT
12747 CLASS="FILENAME"
12748 >msdfs:serverA\shareA,serverB\shareB</TT
12749 >
12750                 and so on.  For more information on setting up a Dfs tree 
12751                 on Samba,  refer to <A
12752 HREF="msdfs_setup.html"
12753 TARGET="_top"
12754 >msdfs_setup.html
12755                 </A
12756 >.</P
12757 ><P
12758 >See also <A
12759 HREF="#HOSTMSDFS"
12760 ><TT
12761 CLASS="PARAMETER"
12762 ><I
12763 >host msdfs
12764                 </I
12765 ></TT
12766 ></A
12767 ></P
12768 ><P
12769 >Default: <B
12770 CLASS="COMMAND"
12771 >msdfs root = no</B
12772 ></P
12773 ></DD
12774 ><DT
12775 ><A
12776 NAME="NAMECACHETIMEOUT"
12777 ></A
12778 >name cache timeout (G)</DT
12779 ><DD
12780 ><P
12781 >Specifies the number of seconds it takes before 
12782                 entries in samba's hostname resolve cache time out. If 
12783                 the timeout is set to 0. the caching is disabled.
12784                 </P
12785 ><P
12786 >Default: <B
12787 CLASS="COMMAND"
12788 >name cache timeout = 660</B
12789 ></P
12790 ><P
12791 >Example: <B
12792 CLASS="COMMAND"
12793 >name cache timeout = 0</B
12794 ></P
12795 ></DD
12796 ><DT
12797 ><A
12798 NAME="NAMERESOLVEORDER"
12799 ></A
12800 >name resolve order (G)</DT
12801 ><DD
12802 ><P
12803 >This option is used by the programs in the Samba 
12804                 suite to determine what naming services to use and in what order 
12805                 to resolve host names to IP addresses. The option takes a space 
12806                 separated string of name resolution options.</P
12807 ><P
12808 >The options are :"lmhosts", "host", "wins" and "bcast". They 
12809                 cause names to be resolved as follows :</P
12810 ><P
12811 ></P
12812 ><UL
12813 ><LI
12814 ><P
12815 ><TT
12816 CLASS="CONSTANT"
12817 >lmhosts</TT
12818 > : Lookup an IP 
12819                         address in the Samba lmhosts file. If the line in lmhosts has 
12820                         no name type attached to the NetBIOS name (see the <A
12821 HREF="lmhosts.5.html"
12822 TARGET="_top"
12823 >lmhosts(5)</A
12824 > for details) then
12825                         any name type matches for lookup.</P
12826 ></LI
12827 ><LI
12828 ><P
12829 ><TT
12830 CLASS="CONSTANT"
12831 >host</TT
12832 > : Do a standard host 
12833                         name to IP address resolution, using the system <TT
12834 CLASS="FILENAME"
12835 >/etc/hosts
12836                         </TT
12837 >, NIS, or DNS lookups. This method of name resolution 
12838                         is operating system depended for instance on IRIX or Solaris this 
12839                         may be controlled by the <TT
12840 CLASS="FILENAME"
12841 >/etc/nsswitch.conf</TT
12842
12843                         file.  Note that this method is only used if the NetBIOS name 
12844                         type being queried is the 0x20 (server) name type, otherwise 
12845                         it is ignored.</P
12846 ></LI
12847 ><LI
12848 ><P
12849 ><TT
12850 CLASS="CONSTANT"
12851 >wins</TT
12852 > : Query a name with 
12853                         the IP address listed in the <A
12854 HREF="#WINSSERVER"
12855 ><TT
12856 CLASS="PARAMETER"
12857 ><I
12858 >                       wins server</I
12859 ></TT
12860 ></A
12861 > parameter.  If no WINS server has
12862                         been specified this method will be ignored.</P
12863 ></LI
12864 ><LI
12865 ><P
12866 ><TT
12867 CLASS="CONSTANT"
12868 >bcast</TT
12869 > : Do a broadcast on 
12870                         each of the known local interfaces listed in the <A
12871 HREF="#INTERFACES"
12872 ><TT
12873 CLASS="PARAMETER"
12874 ><I
12875 >interfaces</I
12876 ></TT
12877 ></A
12878
12879                         parameter. This is the least reliable of the name resolution 
12880                         methods as it depends on the target host being on a locally 
12881                         connected subnet.</P
12882 ></LI
12883 ></UL
12884 ><P
12885 >Default: <B
12886 CLASS="COMMAND"
12887 >name resolve order = lmhosts host wins bcast
12888                 </B
12889 ></P
12890 ><P
12891 >Example: <B
12892 CLASS="COMMAND"
12893 >name resolve order = lmhosts bcast host
12894                 </B
12895 ></P
12896 ><P
12897 >This will cause the local lmhosts file to be examined 
12898                 first, followed by a broadcast attempt, followed by a normal 
12899                 system hostname lookup.</P
12900 ></DD
12901 ><DT
12902 ><A
12903 NAME="NETBIOSALIASES"
12904 ></A
12905 >netbios aliases (G)</DT
12906 ><DD
12907 ><P
12908 >This is a list of NetBIOS names that <A
12909 HREF="nmbd.8.html"
12910 TARGET="_top"
12911 >nmbd(8)</A
12912 > will advertise as additional 
12913                 names by which the Samba server is known. This allows one machine 
12914                 to appear in browse lists under multiple names. If a machine is 
12915                 acting as a browse server or logon server none 
12916                 of these names will be advertised as either browse server or logon 
12917                 servers, only the primary name of the machine will be advertised 
12918                 with these capabilities.</P
12919 ><P
12920 >See also <A
12921 HREF="#NETBIOSNAME"
12922 ><TT
12923 CLASS="PARAMETER"
12924 ><I
12925 >netbios 
12926                 name</I
12927 ></TT
12928 ></A
12929 >.</P
12930 ><P
12931 >Default: <I
12932 CLASS="EMPHASIS"
12933 >empty string (no additional names)</I
12934 ></P
12935 ><P
12936 >Example: <B
12937 CLASS="COMMAND"
12938 >netbios aliases = TEST TEST1 TEST2</B
12939 ></P
12940 ></DD
12941 ><DT
12942 ><A
12943 NAME="NETBIOSNAME"
12944 ></A
12945 >netbios name (G)</DT
12946 ><DD
12947 ><P
12948 >This sets the NetBIOS name by which a Samba 
12949                 server is known. By default it is the same as the first component 
12950                 of the host's DNS name. If a machine is a browse server or
12951                 logon server this name (or the first component
12952                 of the hosts DNS name) will be the name that these services are
12953                 advertised under.</P
12954 ><P
12955 >See also <A
12956 HREF="#NETBIOSALIASES"
12957 ><TT
12958 CLASS="PARAMETER"
12959 ><I
12960 >netbios 
12961                 aliases</I
12962 ></TT
12963 ></A
12964 >.</P
12965 ><P
12966 >Default: <I
12967 CLASS="EMPHASIS"
12968 >machine DNS name</I
12969 ></P
12970 ><P
12971 >Example: <B
12972 CLASS="COMMAND"
12973 >netbios name = MYNAME</B
12974 ></P
12975 ></DD
12976 ><DT
12977 ><A
12978 NAME="NETBIOSSCOPE"
12979 ></A
12980 >netbios scope (G)</DT
12981 ><DD
12982 ><P
12983 >This sets the NetBIOS scope that Samba will 
12984                 operate under. This should not be set unless every machine 
12985                 on your LAN also sets this value.</P
12986 ></DD
12987 ><DT
12988 ><A
12989 NAME="NISHOMEDIR"
12990 ></A
12991 >nis homedir (G)</DT
12992 ><DD
12993 ><P
12994 >Get the home share server from a NIS map. For 
12995                 UNIX systems that use an automounter, the user's home directory 
12996                 will often be mounted on a workstation on demand from a remote 
12997                 server. </P
12998 ><P
12999 >When the Samba logon server is not the actual home directory 
13000                 server, but is mounting the home directories via NFS then two 
13001                 network hops would be required to access the users home directory 
13002                 if the logon server told the client to use itself as the SMB server 
13003                 for home directories (one over SMB and one over NFS). This can 
13004                 be very slow.</P
13005 ><P
13006 >This option allows Samba to return the home share as 
13007                 being on a different server to the logon server and as 
13008                 long as a Samba daemon is running on the home directory server, 
13009                 it will be mounted on the Samba client directly from the directory 
13010                 server. When Samba is returning the home share to the client, it 
13011                 will consult the NIS map specified in <A
13012 HREF="#HOMEDIRMAP"
13013 >               <TT
13014 CLASS="PARAMETER"
13015 ><I
13016 >homedir map</I
13017 ></TT
13018 ></A
13019 > and return the server 
13020                 listed there.</P
13021 ><P
13022 >Note that for this option to work there must be a working 
13023                 NIS system and the Samba server with this option must also 
13024                 be a logon server.</P
13025 ><P
13026 >Default: <B
13027 CLASS="COMMAND"
13028 >nis homedir = no</B
13029 ></P
13030 ></DD
13031 ><DT
13032 ><A
13033 NAME="NONUNIXACCOUNTRANGE"
13034 ></A
13035 >non unix account range (G)</DT
13036 ><DD
13037 ><P
13038 >The non unix account range parameter specifies 
13039                 the range of 'user ids' that are allocated by the various 'non unix 
13040                 account' passdb backends.  These backends allow
13041                 the storage of passwords for users who don't exist in /etc/passwd.  
13042                 This is most often used for machine account creation. 
13043                 This range of ids should have no existing local or NIS users within 
13044                 it as strange conflicts can occur otherwise.</P
13045 ><P
13046 >NOTE: These userids never appear on the system and Samba will never
13047                 'become' these users. They are used only to ensure that the algorithmic 
13048                 RID mapping does not conflict with normal users.
13049                 </P
13050 ><P
13051 >Default: <B
13052 CLASS="COMMAND"
13053 >non unix account range = &#60;empty string&#62;
13054                 </B
13055 ></P
13056 ><P
13057 >Example: <B
13058 CLASS="COMMAND"
13059 >non unix account range = 10000-20000</B
13060 ></P
13061 ></DD
13062 ><DT
13063 ><A
13064 NAME="NTACLSUPPORT"
13065 ></A
13066 >nt acl support (S)</DT
13067 ><DD
13068 ><P
13069 >This boolean parameter controls whether 
13070                 <A
13071 HREF="smbd.8.html"
13072 TARGET="_top"
13073 >smbd(8)</A
13074 > will attempt to map 
13075                 UNIX permissions into Windows NT access control lists.
13076                 This parameter was formally a global parameter in releases
13077                 prior to 2.2.2.</P
13078 ><P
13079 >Default: <B
13080 CLASS="COMMAND"
13081 >nt acl support = yes</B
13082 ></P
13083 ></DD
13084 ><DT
13085 ><A
13086 NAME="NTPIPESUPPORT"
13087 ></A
13088 >nt pipe support (G)</DT
13089 ><DD
13090 ><P
13091 >This boolean parameter controls whether 
13092                 <A
13093 HREF="smbd.8.html"
13094 TARGET="_top"
13095 >smbd(8)</A
13096 > will allow Windows NT 
13097                 clients to connect to the NT SMB specific <TT
13098 CLASS="CONSTANT"
13099 >IPC$</TT
13100
13101                 pipes. This is a developer debugging option and can be left
13102                 alone.</P
13103 ><P
13104 >Default: <B
13105 CLASS="COMMAND"
13106 >nt pipe support = yes</B
13107 ></P
13108 ></DD
13109 ><DT
13110 ><A
13111 NAME="NTSTATUSSUPPORT"
13112 ></A
13113 >nt status support (G)</DT
13114 ><DD
13115 ><P
13116 >This boolean parameter controls whether <A
13117 HREF="smbd.8.html"
13118 TARGET="_top"
13119 >smbd(8)</A
13120 > will negotiate NT specific status
13121                 support with Windows NT/2k/XP clients. This is a developer
13122                 debugging option and should be left alone.
13123                 If this option is set to <TT
13124 CLASS="CONSTANT"
13125 >no</TT
13126 > then Samba offers
13127                 exactly the same DOS error codes that versions prior to Samba 2.2.3
13128                 reported.</P
13129 ><P
13130 >You should not need to ever disable this parameter.</P
13131 ><P
13132 >Default: <B
13133 CLASS="COMMAND"
13134 >nt status support = yes</B
13135 ></P
13136 ></DD
13137 ><DT
13138 ><A
13139 NAME="NULLPASSWORDS"
13140 ></A
13141 >null passwords (G)</DT
13142 ><DD
13143 ><P
13144 >Allow or disallow client access to accounts 
13145                 that have null passwords. </P
13146 ><P
13147 >See also <A
13148 HREF="smbpasswd.5.html"
13149 TARGET="_top"
13150 >smbpasswd (5)</A
13151 >.</P
13152 ><P
13153 >Default: <B
13154 CLASS="COMMAND"
13155 >null passwords = no</B
13156 ></P
13157 ></DD
13158 ><DT
13159 ><A
13160 NAME="OBEYPAMRESTRICTIONS"
13161 ></A
13162 >obey pam restrictions (G)</DT
13163 ><DD
13164 ><P
13165 >When Samba 2.2 is configured to enable PAM support
13166                 (i.e. --with-pam), this parameter will control whether or not Samba
13167                 should obey PAM's account and session management directives.  The 
13168                 default behavior is to use PAM for clear text authentication only
13169                 and to ignore any account or session management.  Note that Samba
13170                 always ignores PAM for authentication in the case of <A
13171 HREF="#ENCRYPTPASSWORDS"
13172 ><TT
13173 CLASS="PARAMETER"
13174 ><I
13175 >encrypt passwords = yes</I
13176 ></TT
13177 >
13178                 </A
13179 >.  The reason is that PAM modules cannot support the challenge/response
13180                 authentication mechanism needed in the presence of SMB password encryption.
13181                 </P
13182 ><P
13183 >Default: <B
13184 CLASS="COMMAND"
13185 >obey pam restrictions = no</B
13186 ></P
13187 ></DD
13188 ><DT
13189 ><A
13190 NAME="ONLYUSER"
13191 ></A
13192 >only user (S)</DT
13193 ><DD
13194 ><P
13195 >This is a boolean option that controls whether 
13196                 connections with usernames not in the <TT
13197 CLASS="PARAMETER"
13198 ><I
13199 >user</I
13200 ></TT
13201
13202                 list will be allowed. By default this option is disabled so that a 
13203                 client can supply a username to be used by the server.  Enabling
13204                 this parameter will force the server to only use the login 
13205                 names from the <TT
13206 CLASS="PARAMETER"
13207 ><I
13208 >user</I
13209 ></TT
13210 > list and is only really
13211                 useful in <A
13212 HREF="#SECURITYEQUALSSHARE"
13213 >share level</A
13214 >
13215                 security.</P
13216 ><P
13217 >Note that this also means Samba won't try to deduce 
13218                 usernames from the service name. This can be annoying for 
13219                 the [homes] section. To get around this you could use <B
13220 CLASS="COMMAND"
13221 >user =
13222                 %S</B
13223 > which means your <TT
13224 CLASS="PARAMETER"
13225 ><I
13226 >user</I
13227 ></TT
13228 > list
13229                 will be just the service name, which for home directories is the 
13230                 name of the user.</P
13231 ><P
13232 >See also the <A
13233 HREF="#USER"
13234 ><TT
13235 CLASS="PARAMETER"
13236 ><I
13237 >user</I
13238 ></TT
13239 >
13240                 </A
13241 > parameter.</P
13242 ><P
13243 >Default: <B
13244 CLASS="COMMAND"
13245 >only user = no</B
13246 ></P
13247 ></DD
13248 ><DT
13249 ><A
13250 NAME="ONLYGUEST"
13251 ></A
13252 >only guest (S)</DT
13253 ><DD
13254 ><P
13255 >A synonym for <A
13256 HREF="#GUESTONLY"
13257 ><TT
13258 CLASS="PARAMETER"
13259 ><I
13260 >               guest only</I
13261 ></TT
13262 ></A
13263 >.</P
13264 ></DD
13265 ><DT
13266 ><A
13267 NAME="OPLOCKBREAKWAITTIME"
13268 ></A
13269 >oplock break wait time (G)</DT
13270 ><DD
13271 ><P
13272 >This is a tuning parameter added due to bugs in 
13273                 both Windows 9x and WinNT. If Samba responds to a client too 
13274                 quickly when that client issues an SMB that can cause an oplock 
13275                 break request, then the network client can fail and not respond 
13276                 to the break request. This tuning parameter (which is set in milliseconds) 
13277                 is the amount of time Samba will wait before sending an oplock break 
13278                 request to such (broken) clients.</P
13279 ><P
13280 ><I
13281 CLASS="EMPHASIS"
13282 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
13283                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</I
13284 >.</P
13285 ><P
13286 >Default: <B
13287 CLASS="COMMAND"
13288 >oplock break wait time = 0</B
13289 ></P
13290 ></DD
13291 ><DT
13292 ><A
13293 NAME="OPLOCKCONTENTIONLIMIT"
13294 ></A
13295 >oplock contention limit (S)</DT
13296 ><DD
13297 ><P
13298 >This is a <I
13299 CLASS="EMPHASIS"
13300 >very</I
13301 > advanced 
13302                 <A
13303 HREF="smbd.8.html"
13304 TARGET="_top"
13305 >smbd(8)</A
13306 > tuning option to 
13307                 improve the efficiency of the granting of oplocks under multiple 
13308                 client contention for the same file.</P
13309 ><P
13310 >In brief it specifies a number, which causes <A
13311 HREF="smbd.8.html"
13312 TARGET="_top"
13313 >smbd</A
13314 > not to 
13315                 grant an oplock even when requested if the approximate number of 
13316                 clients contending for an oplock on the same file goes over this 
13317                 limit. This causes <B
13318 CLASS="COMMAND"
13319 >smbd</B
13320 > to behave in a similar 
13321                 way to Windows NT.</P
13322 ><P
13323 ><I
13324 CLASS="EMPHASIS"
13325 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
13326                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</I
13327 >.</P
13328 ><P
13329 >Default: <B
13330 CLASS="COMMAND"
13331 >oplock contention limit = 2</B
13332 ></P
13333 ></DD
13334 ><DT
13335 ><A
13336 NAME="OPLOCKS"
13337 ></A
13338 >oplocks (S)</DT
13339 ><DD
13340 ><P
13341 >This boolean option tells <B
13342 CLASS="COMMAND"
13343 >smbd</B
13344 > whether to 
13345                 issue oplocks (opportunistic locks) to file open requests on this 
13346                 share. The oplock code can dramatically (approx. 30% or more) improve 
13347                 the speed of access to files on Samba servers. It allows the clients 
13348                 to aggressively cache files locally and you may want to disable this 
13349                 option for unreliable network environments (it is turned on by 
13350                 default in Windows NT Servers).  For more information see the file 
13351                 <TT
13352 CLASS="FILENAME"
13353 >Speed.txt</TT
13354 > in the Samba <TT
13355 CLASS="FILENAME"
13356 >docs/</TT
13357
13358                 directory.</P
13359 ><P
13360 >Oplocks may be selectively turned off on certain files with a 
13361                 share. See the <A
13362 HREF="#VETOOPLOCKFILES"
13363 ><TT
13364 CLASS="PARAMETER"
13365 ><I
13366 >               veto oplock files</I
13367 ></TT
13368 ></A
13369 > parameter. On some systems 
13370                 oplocks are recognized by the underlying operating system. This 
13371                 allows data synchronization between all access to oplocked files, 
13372                 whether it be via Samba or NFS or a local UNIX process. See the 
13373                 <TT
13374 CLASS="PARAMETER"
13375 ><I
13376 >kernel oplocks</I
13377 ></TT
13378 > parameter for details.</P
13379 ><P
13380 >See also the <A
13381 HREF="#KERNELOPLOCKS"
13382 ><TT
13383 CLASS="PARAMETER"
13384 ><I
13385 >kernel 
13386                 oplocks</I
13387 ></TT
13388 ></A
13389 > and <A
13390 HREF="#LEVEL2OPLOCKS"
13391 ><TT
13392 CLASS="PARAMETER"
13393 ><I
13394 >               level2 oplocks</I
13395 ></TT
13396 ></A
13397 > parameters.</P
13398 ><P
13399 >Default: <B
13400 CLASS="COMMAND"
13401 >oplocks = yes</B
13402 ></P
13403 ></DD
13404 ><DT
13405 ><A
13406 NAME="NTLMAUTH"
13407 ></A
13408 >ntlm auth (G)</DT
13409 ><DD
13410 ><P
13411 >This parameter determines whether or not <A
13412 HREF="smbd.8.html"
13413 TARGET="_top"
13414 >smbd</A
13415 > will
13416                 attempt to authenticate users using the NTLM password hash.
13417                 If disabled, only the lanman password hashes will be used. 
13418                 </P
13419 ><P
13420 >Please note that at least this option or <B
13421 CLASS="COMMAND"
13422 >lanman auth</B
13423 > should be enabled in order to be able to log in.
13424                 </P
13425 ><P
13426 >Default : <B
13427 CLASS="COMMAND"
13428 >ntlm auth = yes</B
13429 ></P
13430 ></DD
13431 ><DT
13432 ><A
13433 NAME="OSLEVEL"
13434 ></A
13435 >os level (G)</DT
13436 ><DD
13437 ><P
13438 >This integer value controls what level Samba 
13439                 advertises itself as for browse elections. The value of this 
13440                 parameter determines whether <A
13441 HREF="nmbd.8.html"
13442 TARGET="_top"
13443 >nmbd(8)</A
13444
13445                 has a chance of becoming a local master browser for the <TT
13446 CLASS="PARAMETER"
13447 ><I
13448 >               WORKGROUP</I
13449 ></TT
13450 > in the local broadcast area.</P
13451 ><P
13452 ><I
13453 CLASS="EMPHASIS"
13454 >Note :</I
13455 >By default, Samba will win 
13456                 a local master browsing election over all Microsoft operating 
13457                 systems except a Windows NT 4.0/2000 Domain Controller.  This 
13458                 means that a misconfigured Samba host can effectively isolate 
13459                 a subnet for browsing purposes.  See <TT
13460 CLASS="FILENAME"
13461 >BROWSING.txt
13462                 </TT
13463 > in the Samba <TT
13464 CLASS="FILENAME"
13465 >docs/</TT
13466 > directory 
13467                 for details.</P
13468 ><P
13469 >Default: <B
13470 CLASS="COMMAND"
13471 >os level = 20</B
13472 ></P
13473 ><P
13474 >Example: <B
13475 CLASS="COMMAND"
13476 >os level = 65 </B
13477 ></P
13478 ></DD
13479 ><DT
13480 ><A
13481 NAME="OS2DRIVERMAP"
13482 ></A
13483 >os2 driver map (G)</DT
13484 ><DD
13485 ><P
13486 >The parameter is used to define the absolute
13487                 path to a file containing a mapping of Windows NT printer driver
13488                 names to OS/2 printer driver names.  The format is:</P
13489 ><P
13490 >&#60;nt driver name&#62; = &#60;os2 driver 
13491                 name&#62;.&#60;device name&#62;</P
13492 ><P
13493 >For example, a valid entry using the HP LaserJet 5
13494                 printer driver would appear as <B
13495 CLASS="COMMAND"
13496 >HP LaserJet 5L = LASERJET.HP 
13497                 LaserJet 5L</B
13498 >.</P
13499 ><P
13500 >The need for the file is due to the printer driver namespace 
13501                 problem described in the <A
13502 HREF="printer_driver2.html"
13503 TARGET="_top"
13504 >Samba 
13505                 Printing HOWTO</A
13506 >.  For more details on OS/2 clients, please 
13507                 refer to the <A
13508 HREF="OS2-Client-HOWTO.html"
13509 TARGET="_top"
13510 >OS2-Client-HOWTO
13511                 </A
13512 > containing in the Samba documentation.</P
13513 ><P
13514 >Default: <B
13515 CLASS="COMMAND"
13516 >os2 driver map = &#60;empty string&#62;
13517                 </B
13518 ></P
13519 ></DD
13520 ><DT
13521 ><A
13522 NAME="PAMPASSWORDCHANGE"
13523 ></A
13524 >pam password change (G)</DT
13525 ><DD
13526 ><P
13527 >With the addition of better PAM support in Samba 2.2, 
13528                 this parameter, it is possible to use PAM's password change control 
13529                 flag for Samba.  If enabled, then PAM will be used for password
13530                 changes when requested by an SMB client instead of the program listed in 
13531                 <A
13532 HREF="#PASSWDPROGRAM"
13533 ><TT
13534 CLASS="PARAMETER"
13535 ><I
13536 >passwd program</I
13537 ></TT
13538 ></A
13539 >. 
13540                 It should be possible to enable this without changing your 
13541                 <A
13542 HREF="#PASSWDCHAT"
13543 ><TT
13544 CLASS="PARAMETER"
13545 ><I
13546 >passwd chat</I
13547 ></TT
13548 ></A
13549 >
13550                 parameter for most setups.
13551                 </P
13552 ><P
13553 >Default: <B
13554 CLASS="COMMAND"
13555 >pam password change = no</B
13556 ></P
13557 ></DD
13558 ><DT
13559 ><A
13560 NAME="PANICACTION"
13561 ></A
13562 >panic action (G)</DT
13563 ><DD
13564 ><P
13565 >This is a Samba developer option that allows a 
13566                 system command to be called when either <A
13567 HREF="smbd.8.html"
13568 TARGET="_top"
13569 >               smbd(8)</A
13570 > or <A
13571 HREF="nmbd.8.html"
13572 TARGET="_top"
13573 >nmbd(8)</A
13574
13575                 crashes. This is usually used to draw attention to the fact that 
13576                 a problem occurred.</P
13577 ><P
13578 >Default: <B
13579 CLASS="COMMAND"
13580 >panic action = &#60;empty string&#62;</B
13581 ></P
13582 ><P
13583 >Example: <B
13584 CLASS="COMMAND"
13585 >panic action = "/bin/sleep 90000"</B
13586 ></P
13587 ></DD
13588 ><DT
13589 ><A
13590 NAME="PARANOIDSERVERSECURITY"
13591 ></A
13592 >paranoid server security (G)</DT
13593 ><DD
13594 ><P
13595 >Some version of NT 4.x allow non-guest 
13596                 users with a bad passowrd. When this option is enabled, samba will not 
13597                 use a broken NT 4.x server as password server, but instead complain
13598                 to the logs and exit.
13599                 </P
13600 ><P
13601 >Default: <B
13602 CLASS="COMMAND"
13603 >paranoid server security = yes</B
13604 ></P
13605 ></DD
13606 ><DT
13607 ><A
13608 NAME="PASSDBBACKEND"
13609 ></A
13610 >passdb backend (G)</DT
13611 ><DD
13612 ><P
13613 >This option allows the administrator to chose which backends to retrieve and store passwords with. This allows (for example) both 
13614                 smbpasswd and tdbsam to be used without a recompile. 
13615                 Multiple backends can be specified, separated by spaces. The backends will be searched in the order they are specified. New users are always added to the first backend specified.
13616                 Experimental backends must still be selected
13617                 (eg --with-tdbsam) at configure time.
13618                 </P
13619 ><P
13620 >This parameter is in two parts, the backend's name, and a 'location'
13621                 string that has meaning only to that particular backed.  These are separated
13622                 by a : character.</P
13623 ><P
13624 >Available backends can include:
13625                 <P
13626 ></P
13627 ><UL
13628 ><LI
13629 ><P
13630 ><B
13631 CLASS="COMMAND"
13632 >smbpasswd</B
13633 > - The default smbpasswd
13634                         backend.  Takes a path to the smbpasswd file as an optional argument.</P
13635 ></LI
13636 ><LI
13637 ><P
13638 ><B
13639 CLASS="COMMAND"
13640 >smbpasswd_nua</B
13641 > - The smbpasswd
13642                         backend, but with support for 'not unix accounts'.  
13643                         Takes a path to the smbpasswd file as an optional argument.</P
13644 ><P
13645 >See also <A
13646 HREF="#NONUNIXACCOUNTRANGE"
13647 >                        <TT
13648 CLASS="PARAMETER"
13649 ><I
13650 >non unix account range</I
13651 ></TT
13652 ></A
13653 ></P
13654 ></LI
13655 ><LI
13656 ><P
13657 ><B
13658 CLASS="COMMAND"
13659 >tdbsam</B
13660 > - The TDB based password storage
13661                         backend.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
13662                         in the <A
13663 HREF="#PRIVATEDIR"
13664 >                        <TT
13665 CLASS="PARAMETER"
13666 ><I
13667 >private dir</I
13668 ></TT
13669 ></A
13670 > directory.</P
13671 ></LI
13672 ><LI
13673 ><P
13674 ><B
13675 CLASS="COMMAND"
13676 >tdbsam_nua</B
13677 > - The TDB based password storage
13678                         backend, with non unix account support.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
13679                         in the <A
13680 HREF="#PRIVATEDIR"
13681 >                        <TT
13682 CLASS="PARAMETER"
13683 ><I
13684 >private dir</I
13685 ></TT
13686 ></A
13687 > directory.</P
13688 ><P
13689 >See also <A
13690 HREF="#NONUNIXACCOUNTRANGE"
13691 >                        <TT
13692 CLASS="PARAMETER"
13693 ><I
13694 >non unix account range</I
13695 ></TT
13696 ></A
13697 ></P
13698 ></LI
13699 ><LI
13700 ><P
13701 ><B
13702 CLASS="COMMAND"
13703 >ldapsam</B
13704 > - The LDAP based passdb 
13705                         backend.  Takes an LDAP URL as an optional argument (defaults to 
13706                         <B
13707 CLASS="COMMAND"
13708 >ldap://localhost</B
13709 >)</P
13710 ></LI
13711 ><LI
13712 ><P
13713 ><B
13714 CLASS="COMMAND"
13715 >ldapsam_nua</B
13716 > - The LDAP based passdb 
13717                         backend, with non unix account support.  Takes an LDAP URL as an optional argument (defaults to 
13718                         <B
13719 CLASS="COMMAND"
13720 >ldap://localhost</B
13721 >)</P
13722 ><P
13723 >Note:  In this module, any account without a matching POSIX account is regarded
13724                         as 'non unix'.  </P
13725 ><P
13726 >See also <A
13727 HREF="#NONUNIXACCOUNTRANGE"
13728 >                        <TT
13729 CLASS="PARAMETER"
13730 ><I
13731 >non unix account
13732                         range</I
13733 ></TT
13734 ></A
13735 ></P
13736 ><P
13737 >LDAP connections should be secured where
13738                         possible.  This may be done using either
13739                         Start-TLS (see <A
13740 HREF="#LDAPSSL"
13741 >                        <TT
13742 CLASS="PARAMETER"
13743 ><I
13744 >ldap ssl</I
13745 ></TT
13746 ></A
13747 >) or by
13748                         specifying <TT
13749 CLASS="PARAMETER"
13750 ><I
13751 >ldaps://</I
13752 ></TT
13753 > in
13754                         the URL argument.  
13755                         </P
13756 ></LI
13757 ><LI
13758 ><P
13759 ><B
13760 CLASS="COMMAND"
13761 >nisplussam</B
13762 > - The NIS+ based passdb backend. Takes name NIS domain as an optional argument. Only works with sun NIS+ servers. </P
13763 ></LI
13764 ><LI
13765 ><P
13766 ><B
13767 CLASS="COMMAND"
13768 >plugin</B
13769 > - Allows Samba to load an 
13770                         arbitary passdb backend from the .so specified as a compulsary argument.
13771                         </P
13772 ><P
13773 >Any characters after the (optional) second : are passed to the plugin
13774                         for its own processing</P
13775 ></LI
13776 ><LI
13777 ><P
13778 ><B
13779 CLASS="COMMAND"
13780 >unixsam</B
13781 > - (EXPERIMENTAL) Allows samba to map all (other) available unix users</P
13782 ><P
13783 >This backend uses the standard unix database for retrieving users. Users included 
13784                         in this pdb are NOT listed in samba user listings and users included in this pdb won't be 
13785                         able to login. The use of this backend is to always be able to display the owner of a file 
13786                         on the samba server - even when the user doesn't have a 'real' samba account in one of the 
13787                         other passdb backends.
13788                         </P
13789 ><P
13790 >This backend should always be the last backend listed, since it contains all users in 
13791                         the unix passdb and might 'override' mappings if specified earlier. It's meant to only return 
13792                         accounts for users that aren't covered by the previous backends.</P
13793 ></LI
13794 ></UL
13795 >
13796                 </P
13797 ><P
13798 >Default: <B
13799 CLASS="COMMAND"
13800 >passdb backend = smbpasswd guest</B
13801 ></P
13802 ><P
13803 >Example: <B
13804 CLASS="COMMAND"
13805 >passdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd </B
13806 ></P
13807 ><P
13808 >Example: <B
13809 CLASS="COMMAND"
13810 >passdb backend = ldapsam_nua:ldaps://ldap.example.com </B
13811 ></P
13812 ><P
13813 >Example: <B
13814 CLASS="COMMAND"
13815 >passdb backend = plugin:/usr/local/samba/lib/my_passdb.so:my_plugin_args tdbsam:/etc/samba/private/passdb.tdb</B
13816 ></P
13817 ></DD
13818 ><DT
13819 ><A
13820 NAME="PASSWDCHAT"
13821 ></A
13822 >passwd chat (G)</DT
13823 ><DD
13824 ><P
13825 >This string controls the <I
13826 CLASS="EMPHASIS"
13827 >"chat"</I
13828
13829                 conversation that takes places between <A
13830 HREF="smbd.8.html"
13831 TARGET="_top"
13832 >smbd</A
13833 > and the local password changing
13834                 program to change the user's password. The string describes a 
13835                 sequence of response-receive pairs that <A
13836 HREF="smbd.8.html"
13837 TARGET="_top"
13838 >               smbd(8)</A
13839 > uses to determine what to send to the 
13840                 <A
13841 HREF="#PASSWDPROGRAM"
13842 ><TT
13843 CLASS="PARAMETER"
13844 ><I
13845 >passwd program</I
13846 ></TT
13847 >
13848                 </A
13849 > and what to expect back. If the expected output is not 
13850                 received then the password is not changed.</P
13851 ><P
13852 >This chat sequence is often quite site specific, depending 
13853                 on what local methods are used for password control (such as NIS 
13854                 etc).</P
13855 ><P
13856 >Note that this parameter only is only used if the <A
13857 HREF="#UNIXPASSWORDSYNC"
13858 ><TT
13859 CLASS="PARAMETER"
13860 ><I
13861 >unix 
13862                 password sync</I
13863 ></TT
13864 ></A
13865 > parameter is set to <TT
13866 CLASS="CONSTANT"
13867 >yes</TT
13868 >. This 
13869                 sequence is then called <I
13870 CLASS="EMPHASIS"
13871 >AS ROOT</I
13872 > when the SMB password 
13873                 in the smbpasswd file is being changed, without access to the old 
13874                 password cleartext. This means that root must be able to reset the user's password
13875                 without knowing the text of the previous password. In the presence of NIS/YP, 
13876                 this means that the <A
13877 HREF="#PASSWDPROGRAM"
13878 >passwd program</A
13879 > must be 
13880                 executed on the NIS master.
13881                 </P
13882 ><P
13883 >The string can contain the macro <TT
13884 CLASS="PARAMETER"
13885 ><I
13886 >%n</I
13887 ></TT
13888 > which is substituted 
13889                 for the new password.  The chat sequence can also contain the standard 
13890                 macros <TT
13891 CLASS="CONSTANT"
13892 >\n</TT
13893 >, <TT
13894 CLASS="CONSTANT"
13895 >\r</TT
13896 >, <TT
13897 CLASS="CONSTANT"
13898 >               \t</TT
13899 > and <TT
13900 CLASS="CONSTANT"
13901 >\s</TT
13902 > to give line-feed, 
13903                 carriage-return, tab and space.  The chat sequence string can also contain 
13904                 a '*' which matches any sequence of characters.
13905                 Double quotes can be used to collect strings with spaces 
13906                 in them into a single string.</P
13907 ><P
13908 >If the send string in any part of the chat sequence 
13909                 is a full stop ".",  then no string is sent. Similarly, 
13910                 if the expect string is a full stop then no string is expected.</P
13911 ><P
13912 >If the <A
13913 HREF="#PAMPASSWORDCHANGE"
13914 ><TT
13915 CLASS="PARAMETER"
13916 ><I
13917 >pam
13918                 password change</I
13919 ></TT
13920 ></A
13921 > parameter is set to <TT
13922 CLASS="CONSTANT"
13923 >yes</TT
13924 >, the chat pairs
13925                 may be matched in any order, and success is determined by the PAM result, 
13926                 not any particular output. The \n macro is ignored for PAM conversions.
13927                 </P
13928 ><P
13929 >See also <A
13930 HREF="#UNIXPASSWORDSYNC"
13931 ><TT
13932 CLASS="PARAMETER"
13933 ><I
13934 >unix password 
13935                 sync</I
13936 ></TT
13937 ></A
13938 >, <A
13939 HREF="#PASSWDPROGRAM"
13940 ><TT
13941 CLASS="PARAMETER"
13942 ><I
13943 >               passwd program</I
13944 ></TT
13945 ></A
13946 > ,<A
13947 HREF="#PASSWDCHATDEBUG"
13948 >               <TT
13949 CLASS="PARAMETER"
13950 ><I
13951 >passwd chat debug</I
13952 ></TT
13953 ></A
13954 > and <A
13955 HREF="#PAMPASSWORDCHANGE"
13956 >               <TT
13957 CLASS="PARAMETER"
13958 ><I
13959 >pam password change</I
13960 ></TT
13961 ></A
13962 >.</P
13963 ><P
13964 >Default: <B
13965 CLASS="COMMAND"
13966 >passwd chat = *new*password* %n\n 
13967                 *new*password* %n\n *changed*</B
13968 ></P
13969 ><P
13970 >Example: <B
13971 CLASS="COMMAND"
13972 >passwd chat = "*Enter OLD password*" %o\n 
13973                 "*Enter NEW password*" %n\n "*Reenter NEW password*" %n\n "*Password 
13974                 changed*"</B
13975 ></P
13976 ></DD
13977 ><DT
13978 ><A
13979 NAME="PASSWDCHATDEBUG"
13980 ></A
13981 >passwd chat debug (G)</DT
13982 ><DD
13983 ><P
13984 >This boolean specifies if the passwd chat script 
13985                 parameter is run in <I
13986 CLASS="EMPHASIS"
13987 >debug</I
13988 > mode. In this mode the 
13989                 strings passed to and received from the passwd chat are printed 
13990                 in the <A
13991 HREF="smbd.8.html"
13992 TARGET="_top"
13993 >smbd(8)</A
13994 > log with a 
13995                 <A
13996 HREF="#DEBUGLEVEL"
13997 ><TT
13998 CLASS="PARAMETER"
13999 ><I
14000 >debug level</I
14001 ></TT
14002 ></A
14003
14004                 of 100. This is a dangerous option as it will allow plaintext passwords 
14005                 to be seen in the <B
14006 CLASS="COMMAND"
14007 >smbd</B
14008 > log. It is available to help 
14009                 Samba admins debug their <TT
14010 CLASS="PARAMETER"
14011 ><I
14012 >passwd chat</I
14013 ></TT
14014 > scripts 
14015                 when calling the <TT
14016 CLASS="PARAMETER"
14017 ><I
14018 >passwd program</I
14019 ></TT
14020 > and should 
14021                 be turned off after this has been done. This option has no effect if the 
14022                 <A
14023 HREF="#PAMPASSWORDCHANGE"
14024 ><TT
14025 CLASS="PARAMETER"
14026 ><I
14027 >pam password change</I
14028 ></TT
14029 ></A
14030 >
14031                 paramter is set. This parameter is off by default.</P
14032 ><P
14033 >See also <A
14034 HREF="#PASSWDCHAT"
14035 ><TT
14036 CLASS="PARAMETER"
14037 ><I
14038 >passwd chat</I
14039 ></TT
14040 >
14041                 </A
14042 >, <A
14043 HREF="#PAMPASSWORDCHANGE"
14044 ><TT
14045 CLASS="PARAMETER"
14046 ><I
14047 >pam password change</I
14048 ></TT
14049 >
14050                 </A
14051 >, <A
14052 HREF="#PASSWDPROGRAM"
14053 ><TT
14054 CLASS="PARAMETER"
14055 ><I
14056 >passwd program</I
14057 ></TT
14058 >
14059                 </A
14060 >.</P
14061 ><P
14062 >Default: <B
14063 CLASS="COMMAND"
14064 >passwd chat debug = no</B
14065 ></P
14066 ></DD
14067 ><DT
14068 ><A
14069 NAME="PASSWDPROGRAM"
14070 ></A
14071 >passwd program (G)</DT
14072 ><DD
14073 ><P
14074 >The name of a program that can be used to set 
14075                 UNIX user passwords.  Any occurrences of <TT
14076 CLASS="PARAMETER"
14077 ><I
14078 >%u</I
14079 ></TT
14080
14081                 will be replaced with the user name. The user name is checked for 
14082                 existence before calling the password changing program.</P
14083 ><P
14084 >Also note that many passwd programs insist in <I
14085 CLASS="EMPHASIS"
14086 >reasonable
14087                 </I
14088 > passwords, such as a minimum length, or the inclusion 
14089                 of mixed case chars and digits. This can pose a problem as some clients 
14090                 (such as Windows for Workgroups) uppercase the password before sending 
14091                 it.</P
14092 ><P
14093 ><I
14094 CLASS="EMPHASIS"
14095 >Note</I
14096 > that if the <TT
14097 CLASS="PARAMETER"
14098 ><I
14099 >unix 
14100                 password sync</I
14101 ></TT
14102 > parameter is set to <TT
14103 CLASS="CONSTANT"
14104 >yes
14105                 </TT
14106 > then this program is called <I
14107 CLASS="EMPHASIS"
14108 >AS ROOT</I
14109
14110                 before the SMB password in the <A
14111 HREF="smbpasswd.5.html"
14112 TARGET="_top"
14113 >smbpasswd(5)
14114                 </A
14115 > file is changed. If this UNIX password change fails, then 
14116                 <B
14117 CLASS="COMMAND"
14118 >smbd</B
14119 > will fail to change the SMB password also 
14120                 (this is by design).</P
14121 ><P
14122 >If the <TT
14123 CLASS="PARAMETER"
14124 ><I
14125 >unix password sync</I
14126 ></TT
14127 > parameter 
14128                 is set this parameter <I
14129 CLASS="EMPHASIS"
14130 >MUST USE ABSOLUTE PATHS</I
14131
14132                 for <I
14133 CLASS="EMPHASIS"
14134 >ALL</I
14135 > programs called, and must be examined 
14136                 for security implications. Note that by default <TT
14137 CLASS="PARAMETER"
14138 ><I
14139 >unix 
14140                 password sync</I
14141 ></TT
14142 > is set to <TT
14143 CLASS="CONSTANT"
14144 >no</TT
14145 >.</P
14146 ><P
14147 >See also <A
14148 HREF="#UNIXPASSWORDSYNC"
14149 ><TT
14150 CLASS="PARAMETER"
14151 ><I
14152 >unix 
14153                 password sync</I
14154 ></TT
14155 ></A
14156 >.</P
14157 ><P
14158 >Default: <B
14159 CLASS="COMMAND"
14160 >passwd program = /bin/passwd</B
14161 ></P
14162 ><P
14163 >Example: <B
14164 CLASS="COMMAND"
14165 >passwd program = /sbin/npasswd %u</B
14166 >
14167                 </P
14168 ></DD
14169 ><DT
14170 ><A
14171 NAME="PASSWORDLEVEL"
14172 ></A
14173 >password level (G)</DT
14174 ><DD
14175 ><P
14176 >Some client/server combinations have difficulty 
14177                 with mixed-case passwords.  One offending client is Windows for 
14178                 Workgroups, which for some reason forces passwords to upper 
14179                 case when using the LANMAN1 protocol, but leaves them alone when 
14180                 using COREPLUS!  Another problem child is the Windows 95/98
14181                 family of operating systems.  These clients upper case clear
14182                 text passwords even when NT LM 0.12 selected by the protocol
14183                 negotiation request/response.</P
14184 ><P
14185 >This parameter defines the maximum number of characters 
14186                 that may be upper case in passwords.</P
14187 ><P
14188 >For example, say the password given was "FRED". If <TT
14189 CLASS="PARAMETER"
14190 ><I
14191 >               password level</I
14192 ></TT
14193 > is set to 1, the following combinations 
14194                 would be tried if "FRED" failed:</P
14195 ><P
14196 >"Fred", "fred", "fRed", "frEd","freD"</P
14197 ><P
14198 >If <TT
14199 CLASS="PARAMETER"
14200 ><I
14201 >password level</I
14202 ></TT
14203 > was set to 2, 
14204                 the following combinations would also be tried: </P
14205 ><P
14206 >"FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..</P
14207 ><P
14208 >And so on.</P
14209 ><P
14210 >The higher value this parameter is set to the more likely 
14211                 it is that a mixed case password will be matched against a single 
14212                 case password. However, you should be aware that use of this 
14213                 parameter reduces security and increases the time taken to 
14214                 process a new connection.</P
14215 ><P
14216 >A value of zero will cause only two attempts to be 
14217                 made - the password as is and the password in all-lower case.</P
14218 ><P
14219 >Default: <B
14220 CLASS="COMMAND"
14221 >password level = 0</B
14222 ></P
14223 ><P
14224 >Example: <B
14225 CLASS="COMMAND"
14226 >password level = 4</B
14227 ></P
14228 ></DD
14229 ><DT
14230 ><A
14231 NAME="PASSWORDSERVER"
14232 ></A
14233 >password server (G)</DT
14234 ><DD
14235 ><P
14236 >By specifying the name of another SMB server (such 
14237                 as a WinNT box) with this option, and using <B
14238 CLASS="COMMAND"
14239 >security = domain
14240                 </B
14241 > or <B
14242 CLASS="COMMAND"
14243 >security = server</B
14244 > you can get Samba 
14245                 to do all its username/password validation via a remote server.</P
14246 ><P
14247 >This option sets the name of the password server to use. 
14248                 It must be a NetBIOS name, so if the machine's NetBIOS name is 
14249                 different from its Internet name then you may have to add its NetBIOS 
14250                 name to the lmhosts  file which is stored in the same directory 
14251                 as the <TT
14252 CLASS="FILENAME"
14253 >smb.conf</TT
14254 > file.</P
14255 ><P
14256 >The name of the password server is looked up using the 
14257                 parameter <A
14258 HREF="#NAMERESOLVEORDER"
14259 ><TT
14260 CLASS="PARAMETER"
14261 ><I
14262 >name 
14263                 resolve order</I
14264 ></TT
14265 ></A
14266 > and so may resolved
14267                 by any method and order described in that parameter.</P
14268 ><P
14269 >The password server must be a machine capable of using 
14270                 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in 
14271                 user level security mode.</P
14272 ><P
14273 ><I
14274 CLASS="EMPHASIS"
14275 >NOTE:</I
14276 > Using a password server 
14277                 means your UNIX box (running Samba) is only as secure as your 
14278                 password server. <I
14279 CLASS="EMPHASIS"
14280 >DO NOT CHOOSE A PASSWORD SERVER THAT 
14281                 YOU DON'T COMPLETELY TRUST</I
14282 >.</P
14283 ><P
14284 >Never point a Samba server at itself for password 
14285                 serving. This will cause a loop and could lock up your Samba 
14286                 server!</P
14287 ><P
14288 >The name of the password server takes the standard 
14289                 substitutions, but probably the only useful one is <TT
14290 CLASS="PARAMETER"
14291 ><I
14292 >%m
14293                 </I
14294 ></TT
14295 >, which means the Samba server will use the incoming 
14296                 client as the password server. If you use this then you better 
14297                 trust your clients, and you had better restrict them with hosts allow!</P
14298 ><P
14299 >If the <TT
14300 CLASS="PARAMETER"
14301 ><I
14302 >security</I
14303 ></TT
14304 > parameter is set to
14305                 <TT
14306 CLASS="CONSTANT"
14307 >domain</TT
14308 >, then the list of machines in this 
14309                 option must be a list of Primary or Backup Domain controllers for the
14310                 Domain or the character '*', as the Samba server is effectively
14311                 in that domain, and will use cryptographically authenticated RPC calls
14312                 to authenticate the user logging on. The advantage of using <B
14313 CLASS="COMMAND"
14314 >               security = domain</B
14315 > is that if you list several hosts in the 
14316                 <TT
14317 CLASS="PARAMETER"
14318 ><I
14319 >password server</I
14320 ></TT
14321 > option then <B
14322 CLASS="COMMAND"
14323 >smbd
14324                 </B
14325 > will try each in turn till it finds one that responds. This 
14326                 is useful in case your primary server goes down.</P
14327 ><P
14328 >If the <TT
14329 CLASS="PARAMETER"
14330 ><I
14331 >password server</I
14332 ></TT
14333 > option is set 
14334                 to the character '*', then Samba will attempt to auto-locate the 
14335                 Primary or Backup Domain controllers to authenticate against by 
14336                 doing a query for the name <TT
14337 CLASS="CONSTANT"
14338 >WORKGROUP&#60;1C&#62;</TT
14339
14340                 and then contacting each server returned in the list of IP 
14341                 addresses from the name resolution source. </P
14342 ><P
14343 >If the list of servers contains both names and the '*'
14344                 character, the list is treated as a list of preferred 
14345                 domain controllers, but an auto lookup of all remaining DC's
14346                 will be added to the list as well.  Samba will not attempt to optimize 
14347                 this list by locating the closest DC.</P
14348 ><P
14349 >If the <TT
14350 CLASS="PARAMETER"
14351 ><I
14352 >security</I
14353 ></TT
14354 > parameter is 
14355                 set to <TT
14356 CLASS="CONSTANT"
14357 >server</TT
14358 >, then there are different
14359                 restrictions that <B
14360 CLASS="COMMAND"
14361 >security = domain</B
14362 > doesn't 
14363                 suffer from:</P
14364 ><P
14365 ></P
14366 ><UL
14367 ><LI
14368 ><P
14369 >You may list several password servers in 
14370                         the <TT
14371 CLASS="PARAMETER"
14372 ><I
14373 >password server</I
14374 ></TT
14375 > parameter, however if an 
14376                         <B
14377 CLASS="COMMAND"
14378 >smbd</B
14379 > makes a connection to a password server, 
14380                         and then the password server fails, no more users will be able 
14381                         to be authenticated from this <B
14382 CLASS="COMMAND"
14383 >smbd</B
14384 >.  This is a 
14385                         restriction of the SMB/CIFS protocol when in <B
14386 CLASS="COMMAND"
14387 >security = server
14388                         </B
14389 > mode and cannot be fixed in Samba.</P
14390 ></LI
14391 ><LI
14392 ><P
14393 >If you are using a Windows NT server as your 
14394                         password server then you will have to ensure that your users 
14395                         are able to login from the Samba server, as when in <B
14396 CLASS="COMMAND"
14397 >                       security = server</B
14398 >  mode the network logon will appear to 
14399                         come from there rather than from the users workstation.</P
14400 ></LI
14401 ></UL
14402 ><P
14403 >See also the <A
14404 HREF="#SECURITY"
14405 ><TT
14406 CLASS="PARAMETER"
14407 ><I
14408 >security
14409                 </I
14410 ></TT
14411 ></A
14412 > parameter.</P
14413 ><P
14414 >Default: <B
14415 CLASS="COMMAND"
14416 >password server = &#60;empty string&#62;</B
14417 >
14418                 </P
14419 ><P
14420 >Example: <B
14421 CLASS="COMMAND"
14422 >password server = NT-PDC, NT-BDC1, NT-BDC2, *
14423                 </B
14424 ></P
14425 ><P
14426 >Example: <B
14427 CLASS="COMMAND"
14428 >password server = *</B
14429 ></P
14430 ></DD
14431 ><DT
14432 ><A
14433 NAME="PATH"
14434 ></A
14435 >path (S)</DT
14436 ><DD
14437 ><P
14438 >This parameter specifies a directory to which 
14439                 the user of the service is to be given access. In the case of 
14440                 printable services, this is where print data will spool prior to 
14441                 being submitted to the host for printing.</P
14442 ><P
14443 >For a printable service offering guest access, the service 
14444                 should be readonly and the path should be world-writeable and 
14445                 have the sticky bit set. This is not mandatory of course, but 
14446                 you probably won't get the results you expect if you do 
14447                 otherwise.</P
14448 ><P
14449 >Any occurrences of <TT
14450 CLASS="PARAMETER"
14451 ><I
14452 >%u</I
14453 ></TT
14454 > in the path 
14455                 will be replaced with the UNIX username that the client is using 
14456                 on this connection. Any occurrences of <TT
14457 CLASS="PARAMETER"
14458 ><I
14459 >%m</I
14460 ></TT
14461
14462                 will be replaced by the NetBIOS name of the machine they are 
14463                 connecting from. These replacements are very useful for setting 
14464                 up pseudo home directories for users.</P
14465 ><P
14466 >Note that this path will be based on <A
14467 HREF="#ROOTDIR"
14468 >               <TT
14469 CLASS="PARAMETER"
14470 ><I
14471 >root dir</I
14472 ></TT
14473 ></A
14474 > if one was specified.</P
14475 ><P
14476 >Default: <I
14477 CLASS="EMPHASIS"
14478 >none</I
14479 ></P
14480 ><P
14481 >Example: <B
14482 CLASS="COMMAND"
14483 >path = /home/fred</B
14484 ></P
14485 ></DD
14486 ><DT
14487 ><A
14488 NAME="PIDDIRECTORY"
14489 ></A
14490 >pid directory (G)</DT
14491 ><DD
14492 ><P
14493 >This option specifies the directory where pid 
14494                 files will be placed.  </P
14495 ><P
14496 >Default: <B
14497 CLASS="COMMAND"
14498 >pid directory = ${prefix}/var/locks</B
14499 ></P
14500 ><P
14501 >Example: <B
14502 CLASS="COMMAND"
14503 >pid directory = /var/run/</B
14504 >
14505                 </P
14506 ></DD
14507 ><DT
14508 ><A
14509 NAME="POSIXLOCKING"
14510 ></A
14511 >posix locking (S)</DT
14512 ><DD
14513 ><P
14514 >The <A
14515 HREF="smbd.8.html"
14516 TARGET="_top"
14517 ><B
14518 CLASS="COMMAND"
14519 >smbd(8)</B
14520 ></A
14521 >
14522                 daemon maintains an database of file locks obtained by SMB clients.
14523                 The default behavior is to map this internal database to POSIX
14524                 locks.  This means that file locks obtained by SMB clients are 
14525                 consistent with those seen by POSIX compliant applications accessing 
14526                 the files via a non-SMB method (e.g. NFS or local file access).  
14527                 You should never need to disable this parameter.</P
14528 ><P
14529 >Default: <B
14530 CLASS="COMMAND"
14531 >posix locking = yes</B
14532 ></P
14533 ></DD
14534 ><DT
14535 ><A
14536 NAME="POSTEXEC"
14537 ></A
14538 >postexec (S)</DT
14539 ><DD
14540 ><P
14541 >This option specifies a command to be run 
14542                 whenever the service is disconnected. It takes the usual 
14543                 substitutions. The command may be run as the root on some 
14544                 systems.</P
14545 ><P
14546 >An interesting example may be to unmount server 
14547                 resources:</P
14548 ><P
14549 ><B
14550 CLASS="COMMAND"
14551 >postexec = /etc/umount /cdrom</B
14552 ></P
14553 ><P
14554 >See also <A
14555 HREF="#PREEXEC"
14556 ><TT
14557 CLASS="PARAMETER"
14558 ><I
14559 >preexec</I
14560 ></TT
14561 >
14562                 </A
14563 >.</P
14564 ><P
14565 >Default: <I
14566 CLASS="EMPHASIS"
14567 >none (no command executed)</I
14568 >
14569                 </P
14570 ><P
14571 >Example: <B
14572 CLASS="COMMAND"
14573 >postexec = echo \"%u disconnected from %S 
14574                 from %m (%I)\" &#62;&#62; /tmp/log</B
14575 ></P
14576 ></DD
14577 ><DT
14578 ><A
14579 NAME="POSTSCRIPT"
14580 ></A
14581 >postscript (S)</DT
14582 ><DD
14583 ><P
14584 >This parameter forces a printer to interpret 
14585                 the print files as PostScript. This is done by adding a <TT
14586 CLASS="CONSTANT"
14587 >%!
14588                 </TT
14589 > to the start of print output.</P
14590 ><P
14591 >This is most useful when you have lots of PCs that persist 
14592                 in putting a control-D at the start of print jobs, which then 
14593                 confuses your printer.</P
14594 ><P
14595 >Default: <B
14596 CLASS="COMMAND"
14597 >postscript = no</B
14598 ></P
14599 ></DD
14600 ><DT
14601 ><A
14602 NAME="PREEXEC"
14603 ></A
14604 >preexec (S)</DT
14605 ><DD
14606 ><P
14607 >This option specifies a command to be run whenever 
14608                 the service is connected to. It takes the usual substitutions.</P
14609 ><P
14610 >An interesting example is to send the users a welcome 
14611                 message every time they log in. Maybe a message of the day? Here 
14612                 is an example:</P
14613 ><P
14614 ><B
14615 CLASS="COMMAND"
14616 >preexec = csh -c 'echo \"Welcome to %S!\" |
14617                  /usr/local/samba/bin/smbclient -M %m -I %I' &#38; </B
14618 ></P
14619 ><P
14620 >Of course, this could get annoying after a while :-)</P
14621 ><P
14622 >See also <A
14623 HREF="#PREEXECCLOSE"
14624 ><TT
14625 CLASS="PARAMETER"
14626 ><I
14627 >preexec close
14628                 </I
14629 ></TT
14630 ></A
14631 > and <A
14632 HREF="#POSTEXEC"
14633 ><TT
14634 CLASS="PARAMETER"
14635 ><I
14636 >postexec
14637                 </I
14638 ></TT
14639 ></A
14640 >.</P
14641 ><P
14642 >Default: <I
14643 CLASS="EMPHASIS"
14644 >none (no command executed)</I
14645 ></P
14646 ><P
14647 >Example: <B
14648 CLASS="COMMAND"
14649 >preexec = echo \"%u connected to %S from %m
14650                 (%I)\" &#62;&#62; /tmp/log</B
14651 ></P
14652 ></DD
14653 ><DT
14654 ><A
14655 NAME="PREEXECCLOSE"
14656 ></A
14657 >preexec close (S)</DT
14658 ><DD
14659 ><P
14660 >This boolean option controls whether a non-zero 
14661                 return code from <A
14662 HREF="#PREEXEC"
14663 ><TT
14664 CLASS="PARAMETER"
14665 ><I
14666 >preexec
14667                 </I
14668 ></TT
14669 ></A
14670 > should close the service being connected to.</P
14671 ><P
14672 >Default: <B
14673 CLASS="COMMAND"
14674 >preexec close = no</B
14675 ></P
14676 ></DD
14677 ><DT
14678 ><A
14679 NAME="PREFERREDMASTER"
14680 ></A
14681 >preferred master (G)</DT
14682 ><DD
14683 ><P
14684 >This boolean parameter controls if <A
14685 HREF="nmbd.8.html"
14686 TARGET="_top"
14687 >nmbd(8)</A
14688 > is a preferred master browser 
14689                 for its workgroup.</P
14690 ><P
14691 >If this is set to <TT
14692 CLASS="CONSTANT"
14693 >yes</TT
14694 >, on startup, <B
14695 CLASS="COMMAND"
14696 >nmbd</B
14697
14698                 will force an election, and it will have a slight advantage in 
14699                 winning the election.  It is recommended that this parameter is 
14700                 used in conjunction with <B
14701 CLASS="COMMAND"
14702 ><A
14703 HREF="#DOMAINMASTER"
14704 ><TT
14705 CLASS="PARAMETER"
14706 ><I
14707 >               domain master</I
14708 ></TT
14709 ></A
14710 > = yes</B
14711 >, so that <B
14712 CLASS="COMMAND"
14713 >               nmbd</B
14714 > can guarantee becoming a domain master.</P
14715 ><P
14716 >Use this option with caution, because if there are several 
14717                 hosts (whether Samba servers, Windows 95 or NT) that are preferred 
14718                 master browsers on the same subnet, they will each periodically 
14719                 and continuously attempt to become the local master browser.  
14720                 This will result in unnecessary broadcast traffic and reduced browsing
14721                 capabilities.</P
14722 ><P
14723 >See also <A
14724 HREF="#OSLEVEL"
14725 ><TT
14726 CLASS="PARAMETER"
14727 ><I
14728 >os level</I
14729 ></TT
14730 >
14731                 </A
14732 >.</P
14733 ><P
14734 >Default: <B
14735 CLASS="COMMAND"
14736 >preferred master = auto</B
14737 ></P
14738 ></DD
14739 ><DT
14740 ><A
14741 NAME="PREFEREDMASTER"
14742 ></A
14743 >prefered master (G)</DT
14744 ><DD
14745 ><P
14746 >Synonym for <A
14747 HREF="#PREFERREDMASTER"
14748 ><TT
14749 CLASS="PARAMETER"
14750 ><I
14751 >               preferred master</I
14752 ></TT
14753 ></A
14754 > for people who cannot spell :-).</P
14755 ></DD
14756 ><DT
14757 ><A
14758 NAME="PRELOAD"
14759 ></A
14760 >preload (G)</DT
14761 ><DD
14762 ><P
14763 >This is a list of services that you want to be 
14764                 automatically added to the browse lists. This is most useful 
14765                 for homes and printers services that would otherwise not be 
14766                 visible.</P
14767 ><P
14768 >Note that if you just want all printers in your 
14769                 printcap file loaded then the <A
14770 HREF="#LOADPRINTERS"
14771 >               <TT
14772 CLASS="PARAMETER"
14773 ><I
14774 >load printers</I
14775 ></TT
14776 ></A
14777 > option is easier.</P
14778 ><P
14779 >Default: <I
14780 CLASS="EMPHASIS"
14781 >no preloaded services</I
14782 ></P
14783 ><P
14784 >Example: <B
14785 CLASS="COMMAND"
14786 >preload = fred lp colorlp</B
14787 ></P
14788 ></DD
14789 ><DT
14790 ><A
14791 NAME="PRESERVECASE"
14792 ></A
14793 >preserve case (S)</DT
14794 ><DD
14795 ><P
14796 > This controls if new filenames are created
14797                 with the case that the client passes, or if they are forced to 
14798                 be the <A
14799 HREF="#DEFAULTCASE"
14800 ><TT
14801 CLASS="PARAMETER"
14802 ><I
14803 >default case
14804                 </I
14805 ></TT
14806 ></A
14807 >.</P
14808 ><P
14809 >Default: <B
14810 CLASS="COMMAND"
14811 >preserve case = yes</B
14812 ></P
14813 ><P
14814 >See the section on <A
14815 HREF="#AEN205"
14816 >NAME 
14817                 MANGLING</A
14818 > for a fuller discussion.</P
14819 ></DD
14820 ><DT
14821 ><A
14822 NAME="PRINTCOMMAND"
14823 ></A
14824 >print command (S)</DT
14825 ><DD
14826 ><P
14827 >After a print job has finished spooling to 
14828                 a service, this command will be used via a <B
14829 CLASS="COMMAND"
14830 >system()</B
14831
14832                 call to process the spool file. Typically the command specified will 
14833                 submit the spool file to the host's printing subsystem, but there 
14834                 is no requirement that this be the case. The server will not remove 
14835                 the spool file, so whatever command you specify should remove the 
14836                 spool file when it has been processed, otherwise you will need to 
14837                 manually remove old spool files.</P
14838 ><P
14839 >The print command is simply a text string. It will be used 
14840                 verbatim after macro substitutions have been made:</P
14841 ><P
14842 >s, %p - the path to the spool
14843                 file name</P
14844 ><P
14845 >%p - the appropriate printer 
14846                 name</P
14847 ><P
14848 >%J - the job 
14849                 name as transmitted by the client.</P
14850 ><P
14851 >%c - The number of printed pages
14852                 of the spooled job (if known).</P
14853 ><P
14854 >%z - the size of the spooled
14855                 print job (in bytes)</P
14856 ><P
14857 >The print command <I
14858 CLASS="EMPHASIS"
14859 >MUST</I
14860 > contain at least 
14861                 one occurrence of <TT
14862 CLASS="PARAMETER"
14863 ><I
14864 >%s</I
14865 ></TT
14866 > or <TT
14867 CLASS="PARAMETER"
14868 ><I
14869 >%f
14870                 </I
14871 ></TT
14872 > - the <TT
14873 CLASS="PARAMETER"
14874 ><I
14875 >%p</I
14876 ></TT
14877 > is optional. At the time 
14878                 a job is submitted, if no printer name is supplied the <TT
14879 CLASS="PARAMETER"
14880 ><I
14881 >%p
14882                 </I
14883 ></TT
14884 > will be silently removed from the printer command.</P
14885 ><P
14886 >If specified in the [global] section, the print command given 
14887                 will be used for any printable service that does not have its own 
14888                 print command specified.</P
14889 ><P
14890 >If there is neither a specified print command for a 
14891                 printable service nor a global print command, spool files will 
14892                 be created but not processed and (most importantly) not removed.</P
14893 ><P
14894 >Note that printing may fail on some UNIXes from the 
14895                 <TT
14896 CLASS="CONSTANT"
14897 >nobody</TT
14898 > account. If this happens then create 
14899                 an alternative guest account that can print and set the <A
14900 HREF="#GUESTACCOUNT"
14901 ><TT
14902 CLASS="PARAMETER"
14903 ><I
14904 >guest account</I
14905 ></TT
14906 ></A
14907
14908                 in the [global] section.</P
14909 ><P
14910 >You can form quite complex print commands by realizing 
14911                 that they are just passed to a shell. For example the following 
14912                 will log a print job, print the file, then remove it. Note that 
14913                 ';' is the usual separator for command in shell scripts.</P
14914 ><P
14915 ><B
14916 CLASS="COMMAND"
14917 >print command = echo Printing %s &#62;&#62; 
14918                 /tmp/print.log; lpr -P %p %s; rm %s</B
14919 ></P
14920 ><P
14921 >You may have to vary this command considerably depending 
14922                 on how you normally print files on your system. The default for 
14923                 the parameter varies depending on the setting of the <A
14924 HREF="#PRINTING"
14925 >               <TT
14926 CLASS="PARAMETER"
14927 ><I
14928 >printing</I
14929 ></TT
14930 ></A
14931 > parameter.</P
14932 ><P
14933 >Default: For <B
14934 CLASS="COMMAND"
14935 >printing = BSD, AIX, QNX, LPRNG 
14936                 or PLP :</B
14937 ></P
14938 ><P
14939 ><B
14940 CLASS="COMMAND"
14941 >print command = lpr -r -P%p %s</B
14942 ></P
14943 ><P
14944 >For <B
14945 CLASS="COMMAND"
14946 >printing = SYSV or HPUX :</B
14947 ></P
14948 ><P
14949 ><B
14950 CLASS="COMMAND"
14951 >print command = lp -c -d%p %s; rm %s</B
14952 ></P
14953 ><P
14954 >For <B
14955 CLASS="COMMAND"
14956 >printing = SOFTQ :</B
14957 ></P
14958 ><P
14959 ><B
14960 CLASS="COMMAND"
14961 >print command = lp -d%p -s %s; rm %s</B
14962 ></P
14963 ><P
14964 >For printing = CUPS :   If SAMBA is compiled against
14965                 libcups, then <A
14966 HREF="#PRINTING"
14967 >printcap = cups</A
14968
14969                 uses the CUPS API to
14970                 submit jobs, etc.  Otherwise it maps to the System V
14971                 commands with the -oraw option for printing, i.e. it
14972                 uses <B
14973 CLASS="COMMAND"
14974 >lp -c -d%p -oraw; rm %s</B
14975 >.   
14976                 With <B
14977 CLASS="COMMAND"
14978 >printing = cups</B
14979 >,
14980                 and if SAMBA is compiled against libcups, any manually 
14981                 set print command will be ignored.</P
14982 ><P
14983 >Example: <B
14984 CLASS="COMMAND"
14985 >print command = /usr/local/samba/bin/myprintscript
14986                 %p %s</B
14987 ></P
14988 ></DD
14989 ><DT
14990 ><A
14991 NAME="PRINTOK"
14992 ></A
14993 >print ok (S)</DT
14994 ><DD
14995 ><P
14996 >Synonym for <A
14997 HREF="#PRINTABLE"
14998 >               <TT
14999 CLASS="PARAMETER"
15000 ><I
15001 >printable</I
15002 ></TT
15003 ></A
15004 >.</P
15005 ></DD
15006 ><DT
15007 ><A
15008 NAME="PRINTABLE"
15009 ></A
15010 >printable (S)</DT
15011 ><DD
15012 ><P
15013 >If this parameter is <TT
15014 CLASS="CONSTANT"
15015 >yes</TT
15016 >, then 
15017                 clients may open, write to and submit spool files on the directory 
15018                 specified for the service. </P
15019 ><P
15020 >Note that a printable service will ALWAYS allow writing 
15021                 to the service path (user privileges permitting) via the spooling 
15022                 of print data. The <A
15023 HREF="#READONLY"
15024 ><TT
15025 CLASS="PARAMETER"
15026 ><I
15027 >read only
15028                 </I
15029 ></TT
15030 ></A
15031 > parameter controls only non-printing access to 
15032                 the resource.</P
15033 ><P
15034 >Default: <B
15035 CLASS="COMMAND"
15036 >printable = no</B
15037 ></P
15038 ></DD
15039 ><DT
15040 ><A
15041 NAME="PRINTCAP"
15042 ></A
15043 >printcap (G)</DT
15044 ><DD
15045 ><P
15046 >Synonym for    <A
15047 HREF="#PRINTCAPNAME"
15048 ><TT
15049 CLASS="PARAMETER"
15050 ><I
15051 >               printcap name</I
15052 ></TT
15053 ></A
15054 >.</P
15055 ></DD
15056 ><DT
15057 ><A
15058 NAME="PRINTCAPNAME"
15059 ></A
15060 >printcap name (G)</DT
15061 ><DD
15062 ><P
15063 >This parameter may be used to override the 
15064                 compiled-in default printcap name used by the server (usually <TT
15065 CLASS="FILENAME"
15066 >               /etc/printcap</TT
15067 >). See the discussion of the <A
15068 HREF="#AEN79"
15069 >[printers]</A
15070 > section above for reasons 
15071                 why you might want to do this.</P
15072 ><P
15073 >To use the CUPS printing interface set <B
15074 CLASS="COMMAND"
15075 >printcap name = cups
15076                 </B
15077 >. This should be supplemented by an addtional setting 
15078                 <A
15079 HREF="#PRINTING"
15080 >printing = cups</A
15081 > in the [global] 
15082                 section.  <B
15083 CLASS="COMMAND"
15084 >printcap name = cups</B
15085 > will use the  
15086                 "dummy" printcap created by CUPS, as specified in your CUPS
15087                 configuration file.
15088                 </P
15089 ><P
15090 >On System V systems that use <B
15091 CLASS="COMMAND"
15092 >lpstat</B
15093 > to 
15094                 list available printers you can use <B
15095 CLASS="COMMAND"
15096 >printcap name = lpstat
15097                 </B
15098 > to automatically obtain lists of available printers. This 
15099                 is the default for systems that define SYSV at configure time in 
15100                 Samba (this includes most System V based systems). If <TT
15101 CLASS="PARAMETER"
15102 ><I
15103 >               printcap name</I
15104 ></TT
15105 > is set to <B
15106 CLASS="COMMAND"
15107 >lpstat</B
15108 > on 
15109                 these systems then Samba will launch <B
15110 CLASS="COMMAND"
15111 >lpstat -v</B
15112 > and 
15113                 attempt to parse the output to obtain a printer list.</P
15114 ><P
15115 >A minimal printcap file would look something like this:</P
15116 ><P
15117 ><TABLE
15118 BORDER="0"
15119 BGCOLOR="#E0E0E0"
15120 WIDTH="90%"
15121 ><TR
15122 ><TD
15123 ><PRE
15124 CLASS="PROGRAMLISTING"
15125 >               print1|My Printer 1
15126                 print2|My Printer 2
15127                 print3|My Printer 3
15128                 print4|My Printer 4
15129                 print5|My Printer 5
15130                 </PRE
15131 ></TD
15132 ></TR
15133 ></TABLE
15134 ></P
15135 ><P
15136 >where the '|' separates aliases of a printer. The fact 
15137                 that the second alias has a space in it gives a hint to Samba 
15138                 that it's a comment.</P
15139 ><P
15140 ><I
15141 CLASS="EMPHASIS"
15142 >NOTE</I
15143 >: Under AIX the default printcap 
15144                 name is <TT
15145 CLASS="FILENAME"
15146 >/etc/qconfig</TT
15147 >. Samba will assume the 
15148                 file is in AIX <TT
15149 CLASS="FILENAME"
15150 >qconfig</TT
15151 > format if the string
15152                 <TT
15153 CLASS="FILENAME"
15154 >qconfig</TT
15155 > appears in the printcap filename.</P
15156 ><P
15157 >Default: <B
15158 CLASS="COMMAND"
15159 >printcap name = /etc/printcap</B
15160 ></P
15161 ><P
15162 >Example: <B
15163 CLASS="COMMAND"
15164 >printcap name = /etc/myprintcap</B
15165 ></P
15166 ></DD
15167 ><DT
15168 ><A
15169 NAME="PRINTERADMIN"
15170 ></A
15171 >printer admin (S)</DT
15172 ><DD
15173 ><P
15174 >This is a list of users that can do anything to 
15175                 printers via the remote administration interfaces offered by MS-RPC 
15176                 (usually using a NT workstation). Note that the root user always 
15177                 has admin rights.</P
15178 ><P
15179 >Default: <B
15180 CLASS="COMMAND"
15181 >printer admin = &#60;empty string&#62;</B
15182 >
15183                 </P
15184 ><P
15185 >Example: <B
15186 CLASS="COMMAND"
15187 >printer admin = admin, @staff</B
15188 ></P
15189 ></DD
15190 ><DT
15191 ><A
15192 NAME="PRINTERDRIVER"
15193 ></A
15194 >printer driver (S)</DT
15195 ><DD
15196 ><P
15197 ><I
15198 CLASS="EMPHASIS"
15199 >Note :</I
15200 >This is a deprecated 
15201                 parameter and will be removed in the next major release
15202                 following version 2.2.  Please see the instructions in
15203                 the <A
15204 HREF="printer_driver2.html"
15205 TARGET="_top"
15206 >Samba 2.2. Printing
15207                 HOWTO</A
15208 > for more information
15209                 on the new method of loading printer drivers onto a Samba server.
15210                 </P
15211 ><P
15212 >This option allows you to control the string 
15213                 that clients receive when they ask the server for the printer driver 
15214                 associated with a printer. If you are using Windows95 or Windows NT 
15215                 then you can use this to automate the setup of printers on your 
15216                 system.</P
15217 ><P
15218 >You need to set this parameter to the exact string (case 
15219                 sensitive) that describes the appropriate printer driver for your 
15220                 system. If you don't know the exact string to use then you should 
15221                 first try with no <A
15222 HREF="#PRINTERDRIVER"
15223 ><TT
15224 CLASS="PARAMETER"
15225 ><I
15226 >               printer driver</I
15227 ></TT
15228 ></A
15229 > option set and the client will 
15230                 give you a list of printer drivers. The appropriate strings are 
15231                 shown in a scroll box after you have chosen the printer manufacturer.</P
15232 ><P
15233 >See also <A
15234 HREF="#PRINTERDRIVERFILE"
15235 ><TT
15236 CLASS="PARAMETER"
15237 ><I
15238 >printer
15239                 driver file</I
15240 ></TT
15241 ></A
15242 >.</P
15243 ><P
15244 >Example: <B
15245 CLASS="COMMAND"
15246 >printer driver = HP LaserJet 4L</B
15247 ></P
15248 ></DD
15249 ><DT
15250 ><A
15251 NAME="PRINTERDRIVERFILE"
15252 ></A
15253 >printer driver file (G)</DT
15254 ><DD
15255 ><P
15256 ><I
15257 CLASS="EMPHASIS"
15258 >Note :</I
15259 >This is a deprecated 
15260                 parameter and will be removed in the next major release
15261                 following version 2.2.  Please see the instructions in
15262                 the <A
15263 HREF="printer_driver2.html"
15264 TARGET="_top"
15265 >Samba 2.2. Printing
15266                 HOWTO</A
15267 > for more information
15268                 on the new method of loading printer drivers onto a Samba server.
15269                 </P
15270 ><P
15271 >This parameter tells Samba where the printer driver 
15272                 definition file, used when serving drivers to Windows 95 clients, is 
15273                 to be found. If this is not set, the default is :</P
15274 ><P
15275 ><TT
15276 CLASS="FILENAME"
15277 ><TT
15278 CLASS="REPLACEABLE"
15279 ><I
15280 >SAMBA_INSTALL_DIRECTORY</I
15281 ></TT
15282 >
15283                 /lib/printers.def</TT
15284 ></P
15285 ><P
15286 >This file is created from Windows 95 <TT
15287 CLASS="FILENAME"
15288 >msprint.inf
15289                 </TT
15290 > files found on the Windows 95 client system. For more 
15291                 details on setting up serving of printer drivers to Windows 95 
15292                 clients, see the outdated documentation file in the <TT
15293 CLASS="FILENAME"
15294 >docs/</TT
15295
15296                 directory, <TT
15297 CLASS="FILENAME"
15298 >PRINTER_DRIVER.txt</TT
15299 >.</P
15300 ><P
15301 >See also <A
15302 HREF="#PRINTERDRIVERLOCATION"
15303 ><TT
15304 CLASS="PARAMETER"
15305 ><I
15306 >               printer driver location</I
15307 ></TT
15308 ></A
15309 >.</P
15310 ><P
15311 >Default: <I
15312 CLASS="EMPHASIS"
15313 >None (set in compile).</I
15314 ></P
15315 ><P
15316 >Example: <B
15317 CLASS="COMMAND"
15318 >printer driver file = 
15319                 /usr/local/samba/printers/drivers.def</B
15320 ></P
15321 ></DD
15322 ><DT
15323 ><A
15324 NAME="PRINTERDRIVERLOCATION"
15325 ></A
15326 >printer driver location (S)</DT
15327 ><DD
15328 ><P
15329 ><I
15330 CLASS="EMPHASIS"
15331 >Note :</I
15332 >This is a deprecated 
15333                 parameter and will be removed in the next major release
15334                 following version 2.2.  Please see the instructions in
15335                 the <A
15336 HREF="printer_driver2.html"
15337 TARGET="_top"
15338 >Samba 2.2. Printing
15339                 HOWTO</A
15340 > for more information
15341                 on the new method of loading printer drivers onto a Samba server.
15342                 </P
15343 ><P
15344 >This parameter tells clients of a particular printer 
15345                 share where to find the printer driver files for the automatic 
15346                 installation of drivers for Windows 95 machines. If Samba is set up 
15347                 to serve printer drivers to Windows 95 machines, this should be set to</P
15348 ><P
15349 ><B
15350 CLASS="COMMAND"
15351 >\\MACHINE\PRINTER$</B
15352 ></P
15353 ><P
15354 >Where MACHINE is the NetBIOS name of your Samba server, 
15355                 and PRINTER$ is a share you set up for serving printer driver 
15356                 files. For more details on setting this up see the outdated documentation 
15357                 file in the <TT
15358 CLASS="FILENAME"
15359 >docs/</TT
15360 > directory, <TT
15361 CLASS="FILENAME"
15362 >               PRINTER_DRIVER.txt</TT
15363 >.</P
15364 ><P
15365 >See also <A
15366 HREF="#PRINTERDRIVERFILE"
15367 ><TT
15368 CLASS="PARAMETER"
15369 ><I
15370 >               printer driver file</I
15371 ></TT
15372 ></A
15373 >.</P
15374 ><P
15375 >Default: <B
15376 CLASS="COMMAND"
15377 >none</B
15378 ></P
15379 ><P
15380 >Example: <B
15381 CLASS="COMMAND"
15382 >printer driver location = \\MACHINE\PRINTER$
15383                 </B
15384 ></P
15385 ></DD
15386 ><DT
15387 ><A
15388 NAME="PRINTERNAME"
15389 ></A
15390 >printer name (S)</DT
15391 ><DD
15392 ><P
15393 >This parameter specifies the name of the printer 
15394                 to which print jobs spooled through a printable service will be sent.</P
15395 ><P
15396 >If specified in the [global] section, the printer
15397                 name given will be used for any printable service that does 
15398                 not have its own printer name specified.</P
15399 ><P
15400 >Default: <I
15401 CLASS="EMPHASIS"
15402 >none (but may be <TT
15403 CLASS="CONSTANT"
15404 >lp</TT
15405
15406                 on many systems)</I
15407 ></P
15408 ><P
15409 >Example: <B
15410 CLASS="COMMAND"
15411 >printer name = laserwriter</B
15412 ></P
15413 ></DD
15414 ><DT
15415 ><A
15416 NAME="PRINTER"
15417 ></A
15418 >printer (S)</DT
15419 ><DD
15420 ><P
15421 >Synonym for <A
15422 HREF="#PRINTERNAME"
15423 ><TT
15424 CLASS="PARAMETER"
15425 ><I
15426 >               printer name</I
15427 ></TT
15428 ></A
15429 >.</P
15430 ></DD
15431 ><DT
15432 ><A
15433 NAME="PRINTING"
15434 ></A
15435 >printing (S)</DT
15436 ><DD
15437 ><P
15438 >This parameters controls how printer status 
15439                 information is interpreted on your system. It also affects the 
15440                 default values for the <TT
15441 CLASS="PARAMETER"
15442 ><I
15443 >print command</I
15444 ></TT
15445 >, 
15446                 <TT
15447 CLASS="PARAMETER"
15448 ><I
15449 >lpq command</I
15450 ></TT
15451 >, <TT
15452 CLASS="PARAMETER"
15453 ><I
15454 >lppause command
15455                 </I
15456 ></TT
15457 >, <TT
15458 CLASS="PARAMETER"
15459 ><I
15460 >lpresume command</I
15461 ></TT
15462 >, and 
15463                 <TT
15464 CLASS="PARAMETER"
15465 ><I
15466 >lprm command</I
15467 ></TT
15468 > if specified in the 
15469                 [global] section.</P
15470 ><P
15471 >Currently nine printing styles are supported. They are
15472                 <TT
15473 CLASS="CONSTANT"
15474 >BSD</TT
15475 >, <TT
15476 CLASS="CONSTANT"
15477 >AIX</TT
15478 >, 
15479                 <TT
15480 CLASS="CONSTANT"
15481 >LPRNG</TT
15482 >, <TT
15483 CLASS="CONSTANT"
15484 >PLP</TT
15485 >,
15486                 <TT
15487 CLASS="CONSTANT"
15488 >SYSV</TT
15489 >, <TT
15490 CLASS="CONSTANT"
15491 >HPUX</TT
15492 >,
15493                 <TT
15494 CLASS="CONSTANT"
15495 >QNX</TT
15496 >, <TT
15497 CLASS="CONSTANT"
15498 >SOFTQ</TT
15499 >,
15500                 and <TT
15501 CLASS="CONSTANT"
15502 >CUPS</TT
15503 >.</P
15504 ><P
15505 >To see what the defaults are for the other print 
15506                 commands when using the various options use the <A
15507 HREF="testparm.1.html"
15508 TARGET="_top"
15509 >testparm(1)</A
15510 > program.</P
15511 ><P
15512 >This option can be set on a per printer basis</P
15513 ><P
15514 >See also the discussion in the <A
15515 HREF="#AEN79"
15516 >               [printers]</A
15517 > section.</P
15518 ></DD
15519 ><DT
15520 ><A
15521 NAME="PRIVATEDIR"
15522 ></A
15523 >private dir (G)</DT
15524 ><DD
15525 ><P
15526 >This parameters defines the directory
15527                 smbd will use for storing such files as <TT
15528 CLASS="FILENAME"
15529 >smbpasswd</TT
15530 >
15531                 and <TT
15532 CLASS="FILENAME"
15533 >secrets.tdb</TT
15534 >.
15535                 </P
15536 ><P
15537 >Default :<B
15538 CLASS="COMMAND"
15539 >private dir = ${prefix}/private</B
15540 ></P
15541 ></DD
15542 ><DT
15543 ><A
15544 NAME="PROTOCOL"
15545 ></A
15546 >protocol (G)</DT
15547 ><DD
15548 ><P
15549 >Synonym for <A
15550 HREF="#MAXPROTOCOL"
15551 >               <TT
15552 CLASS="PARAMETER"
15553 ><I
15554 >max protocol</I
15555 ></TT
15556 ></A
15557 >.</P
15558 ></DD
15559 ><DT
15560 ><A
15561 NAME="PUBLIC"
15562 ></A
15563 >public (S)</DT
15564 ><DD
15565 ><P
15566 >Synonym for <A
15567 HREF="#GUESTOK"
15568 ><TT
15569 CLASS="PARAMETER"
15570 ><I
15571 >guest 
15572                 ok</I
15573 ></TT
15574 ></A
15575 >.</P
15576 ></DD
15577 ><DT
15578 ><A
15579 NAME="QUEUEPAUSECOMMAND"
15580 ></A
15581 >queuepause command (S)</DT
15582 ><DD
15583 ><P
15584 >This parameter specifies the command to be 
15585                 executed on the server host in order to pause the printer queue.</P
15586 ><P
15587 >This command should be a program or script which takes 
15588                 a printer name as its only parameter and stops the printer queue, 
15589                 such that no longer jobs are submitted to the printer.</P
15590 ><P
15591 >This command is not supported by Windows for Workgroups, 
15592                 but can be issued from the Printers window under Windows 95 
15593                 and NT.</P
15594 ><P
15595 >If a <TT
15596 CLASS="PARAMETER"
15597 ><I
15598 >%p</I
15599 ></TT
15600 > is given then the printer name 
15601                 is put in its place. Otherwise it is placed at the end of the command.
15602                 </P
15603 ><P
15604 >Note that it is good practice to include the absolute 
15605                 path in the command as the PATH may not be available to the 
15606                 server.</P
15607 ><P
15608 >Default: <I
15609 CLASS="EMPHASIS"
15610 >depends on the setting of <TT
15611 CLASS="PARAMETER"
15612 ><I
15613 >printing
15614                 </I
15615 ></TT
15616 ></I
15617 ></P
15618 ><P
15619 >Example: <B
15620 CLASS="COMMAND"
15621 >queuepause command = disable %p</B
15622 ></P
15623 ></DD
15624 ><DT
15625 ><A
15626 NAME="QUEUERESUMECOMMAND"
15627 ></A
15628 >queueresume command (S)</DT
15629 ><DD
15630 ><P
15631 >This parameter specifies the command to be 
15632                 executed on the server host in order to resume the printer queue. It 
15633                 is the command to undo the behavior that is caused by the 
15634                 previous parameter (<A
15635 HREF="#QUEUEPAUSECOMMAND"
15636 ><TT
15637 CLASS="PARAMETER"
15638 ><I
15639 >               queuepause command</I
15640 ></TT
15641 ></A
15642 >).</P
15643 ><P
15644 >This command should be a program or script which takes 
15645                 a printer name as its only parameter and resumes the printer queue, 
15646                 such that queued jobs are resubmitted to the printer.</P
15647 ><P
15648 >This command is not supported by Windows for Workgroups, 
15649                 but can be issued from the Printers window under Windows 95 
15650                 and NT.</P
15651 ><P
15652 >If a <TT
15653 CLASS="PARAMETER"
15654 ><I
15655 >%p</I
15656 ></TT
15657 > is given then the printer name 
15658                 is put in its place. Otherwise it is placed at the end of the 
15659                 command.</P
15660 ><P
15661 >Note that it is good practice to include the absolute 
15662                 path in the command as the PATH may not be available to the 
15663                 server.</P
15664 ><P
15665 >Default: <I
15666 CLASS="EMPHASIS"
15667 >depends on the setting of <A
15668 HREF="#PRINTING"
15669 ><TT
15670 CLASS="PARAMETER"
15671 ><I
15672 >printing</I
15673 ></TT
15674 ></A
15675 ></I
15676 >
15677                 </P
15678 ><P
15679 >Example: <B
15680 CLASS="COMMAND"
15681 >queuepause command = enable %p
15682                 </B
15683 ></P
15684 ></DD
15685 ><DT
15686 ><A
15687 NAME="READBMPX"
15688 ></A
15689 >read bmpx (G)</DT
15690 ><DD
15691 ><P
15692 >This boolean parameter controls whether <A
15693 HREF="smbd.8.html"
15694 TARGET="_top"
15695 >smbd(8)</A
15696 > will support the "Read 
15697                 Block Multiplex" SMB. This is now rarely used and defaults to 
15698                 <TT
15699 CLASS="CONSTANT"
15700 >no</TT
15701 >. You should never need to set this 
15702                 parameter.</P
15703 ><P
15704 >Default: <B
15705 CLASS="COMMAND"
15706 >read bmpx = no</B
15707 ></P
15708 ></DD
15709 ><DT
15710 ><A
15711 NAME="READLIST"
15712 ></A
15713 >read list (S)</DT
15714 ><DD
15715 ><P
15716 >This is a list of users that are given read-only 
15717                 access to a service. If the connecting user is in this list then 
15718                 they will not be given write access, no matter what the <A
15719 HREF="#READONLY"
15720 ><TT
15721 CLASS="PARAMETER"
15722 ><I
15723 >read only</I
15724 ></TT
15725 ></A
15726 >
15727                 option is set to. The list can include group names using the 
15728                 syntax described in the <A
15729 HREF="#INVALIDUSERS"
15730 ><TT
15731 CLASS="PARAMETER"
15732 ><I
15733 >               invalid users</I
15734 ></TT
15735 ></A
15736 > parameter.</P
15737 ><P
15738 >See also the <A
15739 HREF="#WRITELIST"
15740 ><TT
15741 CLASS="PARAMETER"
15742 ><I
15743 >               write list</I
15744 ></TT
15745 ></A
15746 > parameter and the <A
15747 HREF="#INVALIDUSERS"
15748 ><TT
15749 CLASS="PARAMETER"
15750 ><I
15751 >invalid users</I
15752 ></TT
15753 >
15754                 </A
15755 > parameter.</P
15756 ><P
15757 >Default: <B
15758 CLASS="COMMAND"
15759 >read list = &#60;empty string&#62;</B
15760 ></P
15761 ><P
15762 >Example: <B
15763 CLASS="COMMAND"
15764 >read list = mary, @students</B
15765 ></P
15766 ></DD
15767 ><DT
15768 ><A
15769 NAME="READONLY"
15770 ></A
15771 >read only (S)</DT
15772 ><DD
15773 ><P
15774 >An inverted synonym is <A
15775 HREF="#WRITEABLE"
15776 >               <TT
15777 CLASS="PARAMETER"
15778 ><I
15779 >writeable</I
15780 ></TT
15781 ></A
15782 >.</P
15783 ><P
15784 >If this parameter is <TT
15785 CLASS="CONSTANT"
15786 >yes</TT
15787 >, then users 
15788                 of a service may not create or modify files in the service's 
15789                 directory.</P
15790 ><P
15791 >Note that a printable service (<B
15792 CLASS="COMMAND"
15793 >printable = yes</B
15794 >)
15795                 will <I
15796 CLASS="EMPHASIS"
15797 >ALWAYS</I
15798 > allow writing to the directory 
15799                 (user privileges permitting), but only via spooling operations.</P
15800 ><P
15801 >Default: <B
15802 CLASS="COMMAND"
15803 >read only = yes</B
15804 ></P
15805 ></DD
15806 ><DT
15807 ><A
15808 NAME="READRAW"
15809 ></A
15810 >read raw (G)</DT
15811 ><DD
15812 ><P
15813 >This parameter controls whether or not the server 
15814                 will support the raw read SMB requests when transferring data 
15815                 to clients.</P
15816 ><P
15817 >If enabled, raw reads allow reads of 65535 bytes in 
15818                 one packet. This typically provides a major performance benefit.
15819                 </P
15820 ><P
15821 >However, some clients either negotiate the allowable 
15822                 block size incorrectly or are incapable of supporting larger block 
15823                 sizes, and for these clients you may need to disable raw reads.</P
15824 ><P
15825 >In general this parameter should be viewed as a system tuning 
15826                 tool and left severely alone. See also <A
15827 HREF="#WRITERAW"
15828 >               <TT
15829 CLASS="PARAMETER"
15830 ><I
15831 >write raw</I
15832 ></TT
15833 ></A
15834 >.</P
15835 ><P
15836 >Default: <B
15837 CLASS="COMMAND"
15838 >read raw = yes</B
15839 ></P
15840 ></DD
15841 ><DT
15842 ><A
15843 NAME="READSIZE"
15844 ></A
15845 >read size (G)</DT
15846 ><DD
15847 ><P
15848 >The option <TT
15849 CLASS="PARAMETER"
15850 ><I
15851 >read size</I
15852 ></TT
15853
15854                 affects the overlap of disk reads/writes with network reads/writes. 
15855                 If the amount of data being transferred in several of the SMB 
15856                 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger 
15857                 than this value then the server begins writing the data before it 
15858                 has received the whole packet from the network, or in the case of 
15859                 SMBreadbraw, it begins writing to the network before all the data 
15860                 has been read from disk.</P
15861 ><P
15862 >This overlapping works best when the speeds of disk and 
15863                 network access are similar, having very little effect when the 
15864                 speed of one is much greater than the other.</P
15865 ><P
15866 >The default value is 16384, but very little experimentation 
15867                 has been done yet to determine the optimal value, and it is likely 
15868                 that the best value will vary greatly between systems anyway. 
15869                 A value over 65536 is pointless and will cause you to allocate 
15870                 memory unnecessarily.</P
15871 ><P
15872 >Default: <B
15873 CLASS="COMMAND"
15874 >read size = 16384</B
15875 ></P
15876 ><P
15877 >Example: <B
15878 CLASS="COMMAND"
15879 >read size = 8192</B
15880 ></P
15881 ></DD
15882 ><DT
15883 ><A
15884 NAME="REALM"
15885 ></A
15886 >realm (G)</DT
15887 ><DD
15888 ><P
15889 >               This option specifies the kerberos realm to use. The realm is 
15890                 used as the ADS equivalent of the NT4<B
15891 CLASS="COMMAND"
15892 >domain</B
15893 >. It
15894                 is usually set to the DNS name of the kerberos server.
15895                 </P
15896 ><P
15897 >Default: <B
15898 CLASS="COMMAND"
15899 >realm = </B
15900 ></P
15901 ><P
15902 >Example: <B
15903 CLASS="COMMAND"
15904 >realm = mysambabox.mycompany.com</B
15905 ></P
15906 ></DD
15907 ><DT
15908 ><A
15909 NAME="REMOTEANNOUNCE"
15910 ></A
15911 >remote announce (G)</DT
15912 ><DD
15913 ><P
15914 >This option allows you to setup <A
15915 HREF="nmbd.8.html"
15916 TARGET="_top"
15917 >nmbd(8)</A
15918 > to periodically announce itself 
15919                 to arbitrary IP addresses with an arbitrary workgroup name.</P
15920 ><P
15921 >This is useful if you want your Samba server to appear 
15922                 in a remote workgroup for which the normal browse propagation 
15923                 rules don't work. The remote workgroup can be anywhere that you 
15924                 can send IP packets to.</P
15925 ><P
15926 >For example:</P
15927 ><P
15928 ><B
15929 CLASS="COMMAND"
15930 >remote announce = 192.168.2.255/SERVERS 
15931                 192.168.4.255/STAFF</B
15932 ></P
15933 ><P
15934 >the above line would cause <B
15935 CLASS="COMMAND"
15936 >nmbd</B
15937 > to announce itself 
15938                 to the two given IP addresses using the given workgroup names. 
15939                 If you leave out the workgroup name then the one given in 
15940                 the <A
15941 HREF="#WORKGROUP"
15942 ><TT
15943 CLASS="PARAMETER"
15944 ><I
15945 >workgroup</I
15946 ></TT
15947 ></A
15948
15949                 parameter is used instead.</P
15950 ><P
15951 >The IP addresses you choose would normally be the broadcast 
15952                 addresses of the remote networks, but can also be the IP addresses 
15953                 of known browse masters if your network config is that stable.</P
15954 ><P
15955 >See the documentation file <TT
15956 CLASS="FILENAME"
15957 >BROWSING.txt</TT
15958
15959                 in the <TT
15960 CLASS="FILENAME"
15961 >docs/</TT
15962 > directory.</P
15963 ><P
15964 >Default: <B
15965 CLASS="COMMAND"
15966 >remote announce = &#60;empty string&#62;
15967                 </B
15968 ></P
15969 ></DD
15970 ><DT
15971 ><A
15972 NAME="REMOTEBROWSESYNC"
15973 ></A
15974 >remote browse sync (G)</DT
15975 ><DD
15976 ><P
15977 >This option allows you to setup <A
15978 HREF="nmbd.8.html"
15979 TARGET="_top"
15980 >nmbd(8)</A
15981 > to periodically request 
15982                 synchronization of browse lists with the master browser of a Samba 
15983                 server that is on a remote segment. This option will allow you to 
15984                 gain browse lists for multiple workgroups across routed networks. This 
15985                 is done in a manner that does not work with any non-Samba servers.</P
15986 ><P
15987 >This is useful if you want your Samba server and all local 
15988                 clients to appear in a remote workgroup for which the normal browse 
15989                 propagation rules don't work. The remote workgroup can be anywhere 
15990                 that you can send IP packets to.</P
15991 ><P
15992 >For example:</P
15993 ><P
15994 ><B
15995 CLASS="COMMAND"
15996 >remote browse sync = 192.168.2.255 192.168.4.255
15997                 </B
15998 ></P
15999 ><P
16000 >the above line would cause <B
16001 CLASS="COMMAND"
16002 >nmbd</B
16003 > to request 
16004                 the master browser on the specified subnets or addresses to 
16005                 synchronize their browse lists with the local server.</P
16006 ><P
16007 >The IP addresses you choose would normally be the broadcast 
16008                 addresses of the remote networks, but can also be the IP addresses 
16009                 of known browse masters if your network config is that stable. If 
16010                 a machine IP address is given Samba makes NO attempt to validate 
16011                 that the remote machine is available, is listening, nor that it 
16012                 is in fact the browse master on its segment.</P
16013 ><P
16014 >Default: <B
16015 CLASS="COMMAND"
16016 >remote browse sync = &#60;empty string&#62;
16017                 </B
16018 ></P
16019 ></DD
16020 ><DT
16021 ><A
16022 NAME="RESTRICTANONYMOUS"
16023 ></A
16024 >restrict anonymous (G)</DT
16025 ><DD
16026 ><P
16027 >This is a integer parameter, and
16028                 mirrors as much as possible the functinality the
16029                 <TT
16030 CLASS="CONSTANT"
16031 >RestrictAnonymous</TT
16032 >
16033                 registry key does on NT/Win2k.  </P
16034 ><P
16035 >Default: <B
16036 CLASS="COMMAND"
16037 >restrict anonymous = 0</B
16038 ></P
16039 ></DD
16040 ><DT
16041 ><A
16042 NAME="ROOT"
16043 ></A
16044 >root (G)</DT
16045 ><DD
16046 ><P
16047 >Synonym for <A
16048 HREF="#ROOTDIRECTORY"
16049 >               <TT
16050 CLASS="PARAMETER"
16051 ><I
16052 >root directory"</I
16053 ></TT
16054 ></A
16055 >.</P
16056 ></DD
16057 ><DT
16058 ><A
16059 NAME="ROOTDIR"
16060 ></A
16061 >root dir (G)</DT
16062 ><DD
16063 ><P
16064 >Synonym for <A
16065 HREF="#ROOTDIRECTORY"
16066 >               <TT
16067 CLASS="PARAMETER"
16068 ><I
16069 >root directory"</I
16070 ></TT
16071 ></A
16072 >.</P
16073 ></DD
16074 ><DT
16075 ><A
16076 NAME="ROOTDIRECTORY"
16077 ></A
16078 >root directory (G)</DT
16079 ><DD
16080 ><P
16081 >The server will <B
16082 CLASS="COMMAND"
16083 >chroot()</B
16084 > (i.e. 
16085                 Change its root directory) to this directory on startup. This is 
16086                 not strictly necessary for secure operation. Even without it the 
16087                 server will deny access to files not in one of the service entries. 
16088                 It may also check for, and deny access to, soft links to other 
16089                 parts of the filesystem, or attempts to use ".." in file names 
16090                 to access other directories (depending on the setting of the <A
16091 HREF="#WIDELINKS"
16092 ><TT
16093 CLASS="PARAMETER"
16094 ><I
16095 >wide links</I
16096 ></TT
16097 ></A
16098
16099                 parameter).</P
16100 ><P
16101 >Adding a <TT
16102 CLASS="PARAMETER"
16103 ><I
16104 >root directory</I
16105 ></TT
16106 > entry other 
16107                 than "/" adds an extra level of security, but at a price. It 
16108                 absolutely ensures that no access is given to files not in the 
16109                 sub-tree specified in the <TT
16110 CLASS="PARAMETER"
16111 ><I
16112 >root directory</I
16113 ></TT
16114
16115                 option, <I
16116 CLASS="EMPHASIS"
16117 >including</I
16118 > some files needed for 
16119                 complete operation of the server. To maintain full operability 
16120                 of the server you will need to mirror some system files 
16121                 into the <TT
16122 CLASS="PARAMETER"
16123 ><I
16124 >root directory</I
16125 ></TT
16126 > tree. In particular 
16127                 you will need to mirror <TT
16128 CLASS="FILENAME"
16129 >/etc/passwd</TT
16130 > (or a 
16131                 subset of it), and any binaries or configuration files needed for 
16132                 printing (if required). The set of files that must be mirrored is
16133                 operating system dependent.</P
16134 ><P
16135 >Default: <B
16136 CLASS="COMMAND"
16137 >root directory = /</B
16138 ></P
16139 ><P
16140 >Example: <B
16141 CLASS="COMMAND"
16142 >root directory = /homes/smb</B
16143 ></P
16144 ></DD
16145 ><DT
16146 ><A
16147 NAME="ROOTPOSTEXEC"
16148 ></A
16149 >root postexec (S)</DT
16150 ><DD
16151 ><P
16152 >This is the same as the <TT
16153 CLASS="PARAMETER"
16154 ><I
16155 >postexec</I
16156 ></TT
16157 >
16158                 parameter except that the command is run as root. This 
16159                 is useful for unmounting filesystems 
16160                 (such as CDROMs) after a connection is closed.</P
16161 ><P
16162 >See also <A
16163 HREF="#POSTEXEC"
16164 ><TT
16165 CLASS="PARAMETER"
16166 ><I
16167 >               postexec</I
16168 ></TT
16169 ></A
16170 >.</P
16171 ><P
16172 >Default: <B
16173 CLASS="COMMAND"
16174 >root postexec = &#60;empty string&#62;
16175                 </B
16176 ></P
16177 ></DD
16178 ><DT
16179 ><A
16180 NAME="ROOTPREEXEC"
16181 ></A
16182 >root preexec (S)</DT
16183 ><DD
16184 ><P
16185 >This is the same as the <TT
16186 CLASS="PARAMETER"
16187 ><I
16188 >preexec</I
16189 ></TT
16190 >
16191                 parameter except that the command is run as root. This 
16192                 is useful for mounting filesystems (such as CDROMs) when a 
16193                 connection is opened.</P
16194 ><P
16195 >See also <A
16196 HREF="#PREEXEC"
16197 ><TT
16198 CLASS="PARAMETER"
16199 ><I
16200 >               preexec</I
16201 ></TT
16202 ></A
16203 > and <A
16204 HREF="#PREEXECCLOSE"
16205 >               <TT
16206 CLASS="PARAMETER"
16207 ><I
16208 >preexec close</I
16209 ></TT
16210 ></A
16211 >.</P
16212 ><P
16213 >Default: <B
16214 CLASS="COMMAND"
16215 >root preexec = &#60;empty string&#62;
16216                 </B
16217 ></P
16218 ></DD
16219 ><DT
16220 ><A
16221 NAME="ROOTPREEXECCLOSE"
16222 ></A
16223 >root preexec close (S)</DT
16224 ><DD
16225 ><P
16226 >This is the same as the <TT
16227 CLASS="PARAMETER"
16228 ><I
16229 >preexec close
16230                 </I
16231 ></TT
16232 > parameter except that the command is run as root.</P
16233 ><P
16234 >See also <A
16235 HREF="#PREEXEC"
16236 ><TT
16237 CLASS="PARAMETER"
16238 ><I
16239 >               preexec</I
16240 ></TT
16241 ></A
16242 > and <A
16243 HREF="#PREEXECCLOSE"
16244 >               <TT
16245 CLASS="PARAMETER"
16246 ><I
16247 >preexec close</I
16248 ></TT
16249 ></A
16250 >.</P
16251 ><P
16252 >Default: <B
16253 CLASS="COMMAND"
16254 >root preexec close = no</B
16255 ></P
16256 ></DD
16257 ><DT
16258 ><A
16259 NAME="SECURITY"
16260 ></A
16261 >security (G)</DT
16262 ><DD
16263 ><P
16264 >This option affects how clients respond to 
16265                 Samba and is one of the most important settings in the <TT
16266 CLASS="FILENAME"
16267 >               smb.conf</TT
16268 > file.</P
16269 ><P
16270 >The option sets the "security mode bit" in replies to 
16271                 protocol negotiations with <A
16272 HREF="smbd.8.html"
16273 TARGET="_top"
16274 >smbd(8)
16275                 </A
16276 > to turn share level security on or off. Clients decide 
16277                 based on this bit whether (and how) to transfer user and password 
16278                 information to the server.</P
16279 ><P
16280 >The default is <B
16281 CLASS="COMMAND"
16282 >security = user</B
16283 >, as this is
16284                 the most common setting needed when talking to Windows 98 and 
16285                 Windows NT.</P
16286 ><P
16287 >The alternatives are <B
16288 CLASS="COMMAND"
16289 >security = share</B
16290 >,
16291                 <B
16292 CLASS="COMMAND"
16293 >security = server</B
16294 > or <B
16295 CLASS="COMMAND"
16296 >security = domain
16297                 </B
16298 >.</P
16299 ><P
16300 >In versions of Samba prior to 2.0.0, the default was 
16301                 <B
16302 CLASS="COMMAND"
16303 >security = share</B
16304 > mainly because that was
16305                 the only option at one stage.</P
16306 ><P
16307 >There is a bug in WfWg that has relevance to this 
16308                 setting. When in user or server level security a WfWg client 
16309                 will totally ignore the password you type in the "connect 
16310                 drive" dialog box. This makes it very difficult (if not impossible) 
16311                 to connect to a Samba service as anyone except the user that 
16312                 you are logged into WfWg as.</P
16313 ><P
16314 >If your PCs use usernames that are the same as their 
16315                 usernames on the UNIX machine then you will want to use 
16316                 <B
16317 CLASS="COMMAND"
16318 >security = user</B
16319 >. If you mostly use usernames 
16320                 that don't exist on the UNIX box then use <B
16321 CLASS="COMMAND"
16322 >security = 
16323                 share</B
16324 >.</P
16325 ><P
16326 >You should also use <B
16327 CLASS="COMMAND"
16328 >security = share</B
16329 > if you 
16330                 want to mainly setup shares without a password (guest shares). This 
16331                 is commonly used for a shared printer server. It is more difficult 
16332                 to setup guest shares with <B
16333 CLASS="COMMAND"
16334 >security = user</B
16335 >, see 
16336                 the <A
16337 HREF="#MAPTOGUEST"
16338 ><TT
16339 CLASS="PARAMETER"
16340 ><I
16341 >map to guest</I
16342 ></TT
16343 >
16344                 </A
16345 >parameter for details.</P
16346 ><P
16347 >It is possible to use <B
16348 CLASS="COMMAND"
16349 >smbd</B
16350 > in a <I
16351 CLASS="EMPHASIS"
16352 >               hybrid mode</I
16353 > where it is offers both user and share 
16354                 level security under different <A
16355 HREF="#NETBIOSALIASES"
16356 >               <TT
16357 CLASS="PARAMETER"
16358 ><I
16359 >NetBIOS aliases</I
16360 ></TT
16361 ></A
16362 >. </P
16363 ><P
16364 >The different settings will now be explained.</P
16365 ><P
16366 ><A
16367 NAME="SECURITYEQUALSSHARE"
16368 ></A
16369 ><I
16370 CLASS="EMPHASIS"
16371 >SECURITY = SHARE
16372                 </I
16373 ></P
16374 ><P
16375 >When clients connect to a share level security server they 
16376                 need not log onto the server with a valid username and password before 
16377                 attempting to connect to a shared resource (although modern clients 
16378                 such as Windows 95/98 and Windows NT will send a logon request with 
16379                 a username but no password when talking to a <B
16380 CLASS="COMMAND"
16381 >security = share
16382                 </B
16383 > server). Instead, the clients send authentication information 
16384                 (passwords) on a per-share basis, at the time they attempt to connect 
16385                 to that share.</P
16386 ><P
16387 >Note that <B
16388 CLASS="COMMAND"
16389 >smbd</B
16390 > <I
16391 CLASS="EMPHASIS"
16392 >ALWAYS</I
16393
16394                 uses a valid UNIX user to act on behalf of the client, even in
16395                 <B
16396 CLASS="COMMAND"
16397 >security = share</B
16398 > level security.</P
16399 ><P
16400 >As clients are not required to send a username to the server
16401                 in share level security, <B
16402 CLASS="COMMAND"
16403 >smbd</B
16404 > uses several
16405                 techniques to determine the correct UNIX user to use on behalf
16406                 of the client.</P
16407 ><P
16408 >A list of possible UNIX usernames to match with the given
16409                 client password is constructed using the following methods :</P
16410 ><P
16411 ></P
16412 ><UL
16413 ><LI
16414 ><P
16415 >If the <A
16416 HREF="#GUESTONLY"
16417 ><TT
16418 CLASS="PARAMETER"
16419 ><I
16420 >guest 
16421                         only</I
16422 ></TT
16423 ></A
16424 > parameter is set, then all the other 
16425                         stages are missed and only the <A
16426 HREF="#GUESTACCOUNT"
16427 >                       <TT
16428 CLASS="PARAMETER"
16429 ><I
16430 >guest account</I
16431 ></TT
16432 ></A
16433 > username is checked.
16434                         </P
16435 ></LI
16436 ><LI
16437 ><P
16438 >Is a username is sent with the share connection 
16439                         request, then this username (after mapping - see <A
16440 HREF="#USERNAMEMAP"
16441 ><TT
16442 CLASS="PARAMETER"
16443 ><I
16444 >username map</I
16445 ></TT
16446 ></A
16447 >), 
16448                         is added as a potential username.</P
16449 ></LI
16450 ><LI
16451 ><P
16452 >If the client did a previous <I
16453 CLASS="EMPHASIS"
16454 >logon
16455                         </I
16456 > request (the SessionSetup SMB call) then the 
16457                         username sent in this SMB will be added as a potential username.
16458                         </P
16459 ></LI
16460 ><LI
16461 ><P
16462 >The name of the service the client requested is 
16463                         added as a potential username.</P
16464 ></LI
16465 ><LI
16466 ><P
16467 >The NetBIOS name of the client is added to 
16468                         the list as a potential username.</P
16469 ></LI
16470 ><LI
16471 ><P
16472 >Any users on the <A
16473 HREF="#USER"
16474 ><TT
16475 CLASS="PARAMETER"
16476 ><I
16477 >                       user</I
16478 ></TT
16479 ></A
16480 > list are added as potential usernames.
16481                         </P
16482 ></LI
16483 ></UL
16484 ><P
16485 >If the <TT
16486 CLASS="PARAMETER"
16487 ><I
16488 >guest only</I
16489 ></TT
16490 > parameter is 
16491                 not set, then this list is then tried with the supplied password. 
16492                 The first user for whom the password matches will be used as the 
16493                 UNIX user.</P
16494 ><P
16495 >If the <TT
16496 CLASS="PARAMETER"
16497 ><I
16498 >guest only</I
16499 ></TT
16500 > parameter is 
16501                 set, or no username can be determined then if the share is marked 
16502                 as available to the <TT
16503 CLASS="PARAMETER"
16504 ><I
16505 >guest account</I
16506 ></TT
16507 >, then this 
16508                 guest user will be used, otherwise access is denied.</P
16509 ><P
16510 >Note that it can be <I
16511 CLASS="EMPHASIS"
16512 >very</I
16513 > confusing 
16514                 in share-level security as to which UNIX username will eventually
16515                 be used in granting access.</P
16516 ><P
16517 >See also the section <A
16518 HREF="#AEN238"
16519 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16520 >.</P
16521 ><P
16522 ><A
16523 NAME="SECURITYEQUALSUSER"
16524 ></A
16525 ><I
16526 CLASS="EMPHASIS"
16527 >SECURITY = USER
16528                 </I
16529 ></P
16530 ><P
16531 >This is the default security setting in Samba 2.2. 
16532                 With user-level security a client must first "log-on" with a 
16533                 valid username and password (which can be mapped using the <A
16534 HREF="#USERNAMEMAP"
16535 ><TT
16536 CLASS="PARAMETER"
16537 ><I
16538 >username map</I
16539 ></TT
16540 ></A
16541
16542                 parameter). Encrypted passwords (see the <A
16543 HREF="#ENCRYPTPASSWORDS"
16544 >               <TT
16545 CLASS="PARAMETER"
16546 ><I
16547 >encrypted passwords</I
16548 ></TT
16549 ></A
16550 > parameter) can also
16551                 be used in this security mode. Parameters such as <A
16552 HREF="#USER"
16553 >               <TT
16554 CLASS="PARAMETER"
16555 ><I
16556 >user</I
16557 ></TT
16558 ></A
16559 > and <A
16560 HREF="#GUESTONLY"
16561 >               <TT
16562 CLASS="PARAMETER"
16563 ><I
16564 >guest only</I
16565 ></TT
16566 ></A
16567 > if set        are then applied and 
16568                 may change the UNIX user to use on this connection, but only after 
16569                 the user has been successfully authenticated.</P
16570 ><P
16571 ><I
16572 CLASS="EMPHASIS"
16573 >Note</I
16574 > that the name of the resource being 
16575                 requested is <I
16576 CLASS="EMPHASIS"
16577 >not</I
16578 > sent to the server until after 
16579                 the server has successfully authenticated the client. This is why 
16580                 guest shares don't work in user level security without allowing 
16581                 the server to automatically map unknown users into the <A
16582 HREF="#GUESTACCOUNT"
16583 ><TT
16584 CLASS="PARAMETER"
16585 ><I
16586 >guest account</I
16587 ></TT
16588 ></A
16589 >. 
16590                 See the <A
16591 HREF="#MAPTOGUEST"
16592 ><TT
16593 CLASS="PARAMETER"
16594 ><I
16595 >map to guest</I
16596 ></TT
16597 >
16598                 </A
16599 > parameter for details on doing this.</P
16600 ><P
16601 >See also the section <A
16602 HREF="#AEN238"
16603 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16604 >.</P
16605 ><P
16606 ><A
16607 NAME="SECURITYEQUALSSERVER"
16608 ></A
16609 ><I
16610 CLASS="EMPHASIS"
16611 >SECURITY = SERVER
16612                 </I
16613 ></P
16614 ><P
16615 >In this mode Samba will try to validate the username/password 
16616                 by passing it to another SMB server, such as an NT box. If this 
16617                 fails it will revert to <B
16618 CLASS="COMMAND"
16619 >security = user</B
16620 >, but note 
16621                 that if encrypted passwords have been negotiated then Samba cannot 
16622                 revert back to checking the UNIX password file, it must have a valid 
16623                 <TT
16624 CLASS="FILENAME"
16625 >smbpasswd</TT
16626 > file to check users against. See the 
16627                 documentation file in the <TT
16628 CLASS="FILENAME"
16629 >docs/</TT
16630 > directory 
16631                 <TT
16632 CLASS="FILENAME"
16633 >ENCRYPTION.txt</TT
16634 > for details on how to set this 
16635                 up.</P
16636 ><P
16637 ><I
16638 CLASS="EMPHASIS"
16639 >Note</I
16640 > that from the client's point of 
16641                 view <B
16642 CLASS="COMMAND"
16643 >security = server</B
16644 > is the same as <B
16645 CLASS="COMMAND"
16646 >               security = user</B
16647 >.  It only affects how the server deals 
16648                 with the authentication, it does not in any way affect what the 
16649                 client sees.</P
16650 ><P
16651 ><I
16652 CLASS="EMPHASIS"
16653 >Note</I
16654 > that the name of the resource being 
16655                 requested is <I
16656 CLASS="EMPHASIS"
16657 >not</I
16658 > sent to the server until after 
16659                 the server has successfully authenticated the client. This is why 
16660                 guest shares don't work in user level security without allowing 
16661                 the server to automatically map unknown users into the <A
16662 HREF="#GUESTACCOUNT"
16663 ><TT
16664 CLASS="PARAMETER"
16665 ><I
16666 >guest account</I
16667 ></TT
16668 ></A
16669 >. 
16670                 See the <A
16671 HREF="#MAPTOGUEST"
16672 ><TT
16673 CLASS="PARAMETER"
16674 ><I
16675 >map to guest</I
16676 ></TT
16677 >
16678                 </A
16679 > parameter for details on doing this.</P
16680 ><P
16681 >See also the section <A
16682 HREF="#AEN238"
16683 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16684 >.</P
16685 ><P
16686 >See also the <A
16687 HREF="#PASSWORDSERVER"
16688 ><TT
16689 CLASS="PARAMETER"
16690 ><I
16691 >password 
16692                 server</I
16693 ></TT
16694 ></A
16695 > parameter and the <A
16696 HREF="#ENCRYPTPASSWORDS"
16697 ><TT
16698 CLASS="PARAMETER"
16699 ><I
16700 >encrypted passwords</I
16701 ></TT
16702 >
16703                 </A
16704 > parameter.</P
16705 ><P
16706 ><A
16707 NAME="SECURITYEQUALSDOMAIN"
16708 ></A
16709 ><I
16710 CLASS="EMPHASIS"
16711 >SECURITY = DOMAIN
16712                 </I
16713 ></P
16714 ><P
16715 >This mode will only work correctly if <A
16716 HREF="smbpasswd.8.html"
16717 TARGET="_top"
16718 >smbpasswd(8)</A
16719 > has been used to add this 
16720                 machine into a Windows NT Domain. It expects the <A
16721 HREF="#ENCRYPTPASSWORDS"
16722 ><TT
16723 CLASS="PARAMETER"
16724 ><I
16725 >encrypted passwords</I
16726 ></TT
16727 >
16728                 </A
16729 > parameter to be set to <TT
16730 CLASS="CONSTANT"
16731 >yes</TT
16732 >. In this 
16733                 mode Samba will try to validate the username/password by passing
16734                 it to a Windows NT Primary or Backup Domain Controller, in exactly 
16735                 the same way that a Windows NT Server would do.</P
16736 ><P
16737 ><I
16738 CLASS="EMPHASIS"
16739 >Note</I
16740 > that a valid UNIX user must still 
16741                 exist as well as the account on the Domain Controller to allow 
16742                 Samba to have a valid UNIX account to map file access to.</P
16743 ><P
16744 ><I
16745 CLASS="EMPHASIS"
16746 >Note</I
16747 > that from the client's point 
16748                 of view <B
16749 CLASS="COMMAND"
16750 >security = domain</B
16751 > is the same as <B
16752 CLASS="COMMAND"
16753 >security = user
16754                 </B
16755 >. It only affects how the server deals with the authentication, 
16756                 it does not in any way affect what the client sees.</P
16757 ><P
16758 ><I
16759 CLASS="EMPHASIS"
16760 >Note</I
16761 > that the name of the resource being 
16762                 requested is <I
16763 CLASS="EMPHASIS"
16764 >not</I
16765 > sent to the server until after 
16766                 the server has successfully authenticated the client. This is why 
16767                 guest shares don't work in user level security without allowing 
16768                 the server to automatically map unknown users into the <A
16769 HREF="#GUESTACCOUNT"
16770 ><TT
16771 CLASS="PARAMETER"
16772 ><I
16773 >guest account</I
16774 ></TT
16775 ></A
16776 >. 
16777                 See the <A
16778 HREF="#MAPTOGUEST"
16779 ><TT
16780 CLASS="PARAMETER"
16781 ><I
16782 >map to guest</I
16783 ></TT
16784 >
16785                 </A
16786 > parameter for details on doing this.</P
16787 ><P
16788 ><I
16789 CLASS="EMPHASIS"
16790 >BUG:</I
16791 > There is currently a bug in the 
16792                 implementation of <B
16793 CLASS="COMMAND"
16794 >security = domain</B
16795 > with respect 
16796                 to multi-byte character set usernames. The communication with a 
16797                 Domain Controller must be done in UNICODE and Samba currently 
16798                 does not widen multi-byte user names to UNICODE correctly, thus 
16799                 a multi-byte username will not be recognized correctly at the 
16800                 Domain Controller. This issue will be addressed in a future release.</P
16801 ><P
16802 >See also the section <A
16803 HREF="#AEN238"
16804 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16805 >.</P
16806 ><P
16807 >See also the <A
16808 HREF="#PASSWORDSERVER"
16809 ><TT
16810 CLASS="PARAMETER"
16811 ><I
16812 >password 
16813                 server</I
16814 ></TT
16815 ></A
16816 > parameter and the <A
16817 HREF="#ENCRYPTPASSWORDS"
16818 ><TT
16819 CLASS="PARAMETER"
16820 ><I
16821 >encrypted passwords</I
16822 ></TT
16823 >
16824                 </A
16825 > parameter.</P
16826 ><P
16827 >Default: <B
16828 CLASS="COMMAND"
16829 >security = USER</B
16830 ></P
16831 ><P
16832 >Example: <B
16833 CLASS="COMMAND"
16834 >security = DOMAIN</B
16835 ></P
16836 ></DD
16837 ><DT
16838 ><A
16839 NAME="SECURITYMASK"
16840 ></A
16841 >security mask (S)</DT
16842 ><DD
16843 ><P
16844 >This parameter controls what UNIX permission 
16845                 bits can be modified when a Windows NT client is manipulating 
16846                 the UNIX permission on a file using the native NT security 
16847                 dialog box.</P
16848 ><P
16849 >This parameter is applied as a mask (AND'ed with) to 
16850                 the changed permission bits, thus preventing any bits not in 
16851                 this mask from being modified. Essentially, zero bits in this 
16852                 mask may be treated as a set of bits the user is not allowed 
16853                 to change.</P
16854 ><P
16855 >If not set explicitly this parameter is 0777, allowing
16856                 a user to modify all the user/group/world permissions on a file.
16857                 </P
16858 ><P
16859 ><I
16860 CLASS="EMPHASIS"
16861 >Note</I
16862 > that users who can access the 
16863                 Samba server through other means can easily bypass this 
16864                 restriction, so it is primarily useful for standalone 
16865                 "appliance" systems.  Administrators of most normal systems will 
16866                 probably want to leave it set to <TT
16867 CLASS="CONSTANT"
16868 >0777</TT
16869 >.</P
16870 ><P
16871 >See also the <A
16872 HREF="#FORCEDIRECTORYSECURITYMODE"
16873 >               <TT
16874 CLASS="PARAMETER"
16875 ><I
16876 >force directory security mode</I
16877 ></TT
16878 ></A
16879 >, 
16880                 <A
16881 HREF="#DIRECTORYSECURITYMASK"
16882 ><TT
16883 CLASS="PARAMETER"
16884 ><I
16885 >directory 
16886                 security mask</I
16887 ></TT
16888 ></A
16889 >, <A
16890 HREF="#FORCESECURITYMODE"
16891 >               <TT
16892 CLASS="PARAMETER"
16893 ><I
16894 >force security mode</I
16895 ></TT
16896 ></A
16897 > parameters.</P
16898 ><P
16899 >Default: <B
16900 CLASS="COMMAND"
16901 >security mask = 0777</B
16902 ></P
16903 ><P
16904 >Example: <B
16905 CLASS="COMMAND"
16906 >security mask = 0770</B
16907 ></P
16908 ></DD
16909 ><DT
16910 ><A
16911 NAME="SERVERSTRING"
16912 ></A
16913 >server string (G)</DT
16914 ><DD
16915 ><P
16916 >This controls what string will show up in the 
16917                 printer comment box in print manager and next to the IPC connection 
16918                 in <B
16919 CLASS="COMMAND"
16920 >net view</B
16921 >. It can be any string that you wish 
16922                 to show to your users.</P
16923 ><P
16924 >It also sets what will appear in browse lists next 
16925                 to the machine name.</P
16926 ><P
16927 >A <TT
16928 CLASS="PARAMETER"
16929 ><I
16930 >%v</I
16931 ></TT
16932 > will be replaced with the Samba 
16933                 version number.</P
16934 ><P
16935 >A <TT
16936 CLASS="PARAMETER"
16937 ><I
16938 >%h</I
16939 ></TT
16940 > will be replaced with the 
16941                 hostname.</P
16942 ><P
16943 >Default: <B
16944 CLASS="COMMAND"
16945 >server string = Samba %v</B
16946 ></P
16947 ><P
16948 >Example: <B
16949 CLASS="COMMAND"
16950 >server string = University of GNUs Samba 
16951                 Server</B
16952 ></P
16953 ></DD
16954 ><DT
16955 ><A
16956 NAME="SETDIRECTORY"
16957 ></A
16958 >set directory (S)</DT
16959 ><DD
16960 ><P
16961 >If <B
16962 CLASS="COMMAND"
16963 >set directory = no</B
16964 >, then 
16965                 users of the service may not use the setdir command to change 
16966                 directory.</P
16967 ><P
16968 >The <B
16969 CLASS="COMMAND"
16970 >setdir</B
16971 > command is only implemented 
16972                 in the Digital Pathworks client. See the Pathworks documentation 
16973                 for details.</P
16974 ><P
16975 >Default: <B
16976 CLASS="COMMAND"
16977 >set directory = no</B
16978 ></P
16979 ></DD
16980 ><DT
16981 ><A
16982 NAME="SHAREMODES"
16983 ></A
16984 >share modes (S)</DT
16985 ><DD
16986 ><P
16987 >This enables or disables the honoring of 
16988                 the <TT
16989 CLASS="PARAMETER"
16990 ><I
16991 >share modes</I
16992 ></TT
16993 > during a file open. These 
16994                 modes are used by clients to gain exclusive read or write access 
16995                 to a file.</P
16996 ><P
16997 >These open modes are not directly supported by UNIX, so
16998                 they are simulated using shared memory, or lock files if your 
16999                 UNIX doesn't support shared memory (almost all do).</P
17000 ><P
17001 >The share modes that are enabled by this option are 
17002                 <TT
17003 CLASS="CONSTANT"
17004 >DENY_DOS</TT
17005 >, <TT
17006 CLASS="CONSTANT"
17007 >DENY_ALL</TT
17008 >,
17009                 <TT
17010 CLASS="CONSTANT"
17011 >DENY_READ</TT
17012 >, <TT
17013 CLASS="CONSTANT"
17014 >DENY_WRITE</TT
17015 >,
17016                 <TT
17017 CLASS="CONSTANT"
17018 >DENY_NONE</TT
17019 > and <TT
17020 CLASS="CONSTANT"
17021 >DENY_FCB</TT
17022 >.
17023                 </P
17024 ><P
17025 >This option gives full share compatibility and enabled 
17026                 by default.</P
17027 ><P
17028 >You should <I
17029 CLASS="EMPHASIS"
17030 >NEVER</I
17031 > turn this parameter 
17032                 off as many Windows applications will break if you do so.</P
17033 ><P
17034 >Default: <B
17035 CLASS="COMMAND"
17036 >share modes = yes</B
17037 ></P
17038 ></DD
17039 ><DT
17040 ><A
17041 NAME="SHORTPRESERVECASE"
17042 ></A
17043 >short preserve case (S)</DT
17044 ><DD
17045 ><P
17046 >This boolean parameter controls if new files 
17047                 which conform to 8.3 syntax, that is all in upper case and of 
17048                 suitable length, are created upper case, or if they are forced 
17049                 to be the <A
17050 HREF="#DEFAULTCASE"
17051 ><TT
17052 CLASS="PARAMETER"
17053 ><I
17054 >default case
17055                 </I
17056 ></TT
17057 ></A
17058 >. This  option can be use with <A
17059 HREF="#PRESERVECASE"
17060 ><B
17061 CLASS="COMMAND"
17062 >preserve case = yes</B
17063 >
17064                 </A
17065 > to permit long filenames to retain their case, while short 
17066                 names are lowered. </P
17067 ><P
17068 >See the section on <A
17069 HREF="#AEN205"
17070 >               NAME MANGLING</A
17071 >.</P
17072 ><P
17073 >Default: <B
17074 CLASS="COMMAND"
17075 >short preserve case = yes</B
17076 ></P
17077 ></DD
17078 ><DT
17079 ><A
17080 NAME="SHOWADDPRINTERWIZARD"
17081 ></A
17082 >show add printer wizard (G)</DT
17083 ><DD
17084 ><P
17085 >With the introduction of MS-RPC based printing support
17086                 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will 
17087                 appear on Samba hosts in the share listing.  Normally this folder will 
17088                 contain an icon for the MS Add Printer Wizard (APW).  However, it is 
17089                 possible to disable this feature regardless of the level of privilege 
17090                 of the connected user.</P
17091 ><P
17092 >Under normal circumstances, the Windows NT/2000 client will 
17093                 open a handle on the printer server with OpenPrinterEx() asking for
17094                 Administrator privileges.  If the user does not have administrative
17095                 access on the print server (i.e is not root or a member of the 
17096                 <TT
17097 CLASS="PARAMETER"
17098 ><I
17099 >printer admin</I
17100 ></TT
17101 > group), the OpenPrinterEx() 
17102                 call fails and the client makes another open call with a request for 
17103                 a lower privilege level.  This should succeed, however the APW 
17104                 icon will not be displayed.</P
17105 ><P
17106 >Disabling the <TT
17107 CLASS="PARAMETER"
17108 ><I
17109 >show add printer wizard</I
17110 ></TT
17111 >
17112                 parameter will always cause the OpenPrinterEx() on the server
17113                 to fail.  Thus the APW icon will never be displayed. <I
17114 CLASS="EMPHASIS"
17115 >               Note :</I
17116 >This does not prevent the same user from having 
17117                 administrative privilege on an individual printer.</P
17118 ><P
17119 >See also <A
17120 HREF="#ADDPRINTERCOMMAND"
17121 ><TT
17122 CLASS="PARAMETER"
17123 ><I
17124 >addprinter
17125                 command</I
17126 ></TT
17127 ></A
17128 >, <A
17129 HREF="#DELETEPRINTERCOMMAND"
17130 >               <TT
17131 CLASS="PARAMETER"
17132 ><I
17133 >deleteprinter command</I
17134 ></TT
17135 ></A
17136 >, <A
17137 HREF="#PRINTERADMIN"
17138 ><TT
17139 CLASS="PARAMETER"
17140 ><I
17141 >printer admin</I
17142 ></TT
17143 ></A
17144 ></P
17145 ><P
17146 >Default :<B
17147 CLASS="COMMAND"
17148 >show add printer wizard = yes</B
17149 ></P
17150 ></DD
17151 ><DT
17152 ><A
17153 NAME="SHUTDOWNSCRIPT"
17154 ></A
17155 >shutdown script (G)</DT
17156 ><DD
17157 ><P
17158 ><I
17159 CLASS="EMPHASIS"
17160 >This parameter only exists in the HEAD cvs branch</I
17161 >
17162                 This a full path name to a script called by
17163                 <A
17164 HREF="smbd.8.html"
17165 TARGET="_top"
17166 ><B
17167 CLASS="COMMAND"
17168 >smbd(8)</B
17169 ></A
17170 > that
17171                 should start a shutdown procedure.</P
17172 ><P
17173 >This command will be run as the user connected to the
17174                 server.</P
17175 ><P
17176 >%m %t %r %f parameters are expanded</P
17177 ><P
17178 ><TT
17179 CLASS="PARAMETER"
17180 ><I
17181 >%m</I
17182 ></TT
17183 > will be substituted with the
17184                 shutdown message sent to the server.</P
17185 ><P
17186 ><TT
17187 CLASS="PARAMETER"
17188 ><I
17189 >%t</I
17190 ></TT
17191 > will be substituted with the
17192                 number of seconds to wait before effectively starting the
17193                 shutdown procedure.</P
17194 ><P
17195 ><TT
17196 CLASS="PARAMETER"
17197 ><I
17198 >%r</I
17199 ></TT
17200 > will be substituted with the
17201                 switch <I
17202 CLASS="EMPHASIS"
17203 >-r</I
17204 >. It means reboot after shutdown
17205                 for NT.
17206                 </P
17207 ><P
17208 ><TT
17209 CLASS="PARAMETER"
17210 ><I
17211 >%f</I
17212 ></TT
17213 > will be substituted with the
17214                 switch <I
17215 CLASS="EMPHASIS"
17216 >-f</I
17217 >. It means force the shutdown
17218                 even if applications do not respond for NT.</P
17219 ><P
17220 >Default: <I
17221 CLASS="EMPHASIS"
17222 >None</I
17223 >.</P
17224 ><P
17225 >Example: <B
17226 CLASS="COMMAND"
17227 >abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</B
17228 ></P
17229 ><P
17230 >Shutdown script example:
17231                 <TABLE
17232 BORDER="0"
17233 BGCOLOR="#E0E0E0"
17234 WIDTH="90%"
17235 ><TR
17236 ><TD
17237 ><PRE
17238 CLASS="PROGRAMLISTING"
17239 >               #!/bin/bash
17240                 
17241                 $time=0
17242                 let "time/60"
17243                 let "time++"
17244
17245                 /sbin/shutdown $3 $4 +$time $1 &#38;
17246                 </PRE
17247 ></TD
17248 ></TR
17249 ></TABLE
17250 >
17251                 Shutdown does not return so we need to launch it in background.
17252                 </P
17253 ><P
17254 >See also <A
17255 HREF="#ABORTSHUTDOWNSCRIPT"
17256 ><TT
17257 CLASS="PARAMETER"
17258 ><I
17259 >abort shutdown script</I
17260 ></TT
17261 ></A
17262 >.</P
17263 ></DD
17264 ><DT
17265 ><A
17266 NAME="SMBPASSWDFILE"
17267 ></A
17268 >smb passwd file (G)</DT
17269 ><DD
17270 ><P
17271 >This option sets the path to the encrypted 
17272                 smbpasswd file.  By default the path to the smbpasswd file 
17273                 is compiled into Samba.</P
17274 ><P
17275 >Default: <B
17276 CLASS="COMMAND"
17277 >smb passwd file = ${prefix}/private/smbpasswd
17278                 </B
17279 ></P
17280 ><P
17281 >Example: <B
17282 CLASS="COMMAND"
17283 >smb passwd file = /etc/samba/smbpasswd
17284                 </B
17285 ></P
17286 ></DD
17287 ><DT
17288 ><A
17289 NAME="SMBPORTS"
17290 ></A
17291 >smb ports (G)</DT
17292 ><DD
17293 ><P
17294 >Specifies which ports the server should listen on
17295                 for SMB traffic.
17296                 </P
17297 ><P
17298 >Default: <B
17299 CLASS="COMMAND"
17300 >smb ports = 445 139</B
17301 ></P
17302 ></DD
17303 ><DT
17304 ><A
17305 NAME="SOCKETADDRESS"
17306 ></A
17307 >socket address (G)</DT
17308 ><DD
17309 ><P
17310 >This option allows you to control what 
17311                 address Samba will listen for connections on. This is used to 
17312                 support multiple virtual interfaces on the one server, each 
17313                 with a different configuration.</P
17314 ><P
17315 >By default Samba will accept connections on any 
17316                 address.</P
17317 ><P
17318 >Example: <B
17319 CLASS="COMMAND"
17320 >socket address = 192.168.2.20</B
17321 >
17322                 </P
17323 ></DD
17324 ><DT
17325 ><A
17326 NAME="SOCKETOPTIONS"
17327 ></A
17328 >socket options (G)</DT
17329 ><DD
17330 ><P
17331 >This option allows you to set socket options 
17332                 to be used when talking with the client.</P
17333 ><P
17334 >Socket options are controls on the networking layer 
17335                 of the operating systems which allow the connection to be 
17336                 tuned.</P
17337 ><P
17338 >This option will typically be used to tune your Samba 
17339                 server for optimal performance for your local network. There is 
17340                 no way that Samba can know what the optimal parameters are for 
17341                 your net, so you must experiment and choose them yourself. We 
17342                 strongly suggest you read the appropriate documentation for your 
17343                 operating system first (perhaps <B
17344 CLASS="COMMAND"
17345 >man setsockopt</B
17346
17347                 will help).</P
17348 ><P
17349 >You may find that on some systems Samba will say 
17350                 "Unknown socket option" when you supply an option. This means you 
17351                 either incorrectly  typed it or you need to add an include file 
17352                 to includes.h for your OS.  If the latter is the case please 
17353                 send the patch to <A
17354 HREF="mailto:samba@samba.org"
17355 TARGET="_top"
17356 >               samba@samba.org</A
17357 >.</P
17358 ><P
17359 >Any of the supported socket options may be combined 
17360                 in any way you like, as long as your OS allows it.</P
17361 ><P
17362 >This is the list of socket options currently settable 
17363                 using this option:</P
17364 ><P
17365 ></P
17366 ><UL
17367 ><LI
17368 ><P
17369 >SO_KEEPALIVE</P
17370 ></LI
17371 ><LI
17372 ><P
17373 >SO_REUSEADDR</P
17374 ></LI
17375 ><LI
17376 ><P
17377 >SO_BROADCAST</P
17378 ></LI
17379 ><LI
17380 ><P
17381 >TCP_NODELAY</P
17382 ></LI
17383 ><LI
17384 ><P
17385 >IPTOS_LOWDELAY</P
17386 ></LI
17387 ><LI
17388 ><P
17389 >IPTOS_THROUGHPUT</P
17390 ></LI
17391 ><LI
17392 ><P
17393 >SO_SNDBUF *</P
17394 ></LI
17395 ><LI
17396 ><P
17397 >SO_RCVBUF *</P
17398 ></LI
17399 ><LI
17400 ><P
17401 >SO_SNDLOWAT *</P
17402 ></LI
17403 ><LI
17404 ><P
17405 >SO_RCVLOWAT *</P
17406 ></LI
17407 ></UL
17408 ><P
17409 >Those marked with a <I
17410 CLASS="EMPHASIS"
17411 >'*'</I
17412 > take an integer 
17413                 argument. The others can optionally take a 1 or 0 argument to enable 
17414                 or disable the option, by default they will be enabled if you 
17415                 don't specify 1 or 0.</P
17416 ><P
17417 >To specify an argument use the syntax SOME_OPTION = VALUE 
17418                 for example <B
17419 CLASS="COMMAND"
17420 >SO_SNDBUF = 8192</B
17421 >. Note that you must 
17422                 not have any spaces before or after the = sign.</P
17423 ><P
17424 >If you are on a local network then a sensible option 
17425                 might be</P
17426 ><P
17427 ><B
17428 CLASS="COMMAND"
17429 >socket options = IPTOS_LOWDELAY</B
17430 ></P
17431 ><P
17432 >If you have a local network then you could try:</P
17433 ><P
17434 ><B
17435 CLASS="COMMAND"
17436 >socket options = IPTOS_LOWDELAY TCP_NODELAY</B
17437 ></P
17438 ><P
17439 >If you are on a wide area network then perhaps try 
17440                 setting IPTOS_THROUGHPUT. </P
17441 ><P
17442 >Note that several of the options may cause your Samba 
17443                 server to fail completely. Use these options with caution!</P
17444 ><P
17445 >Default: <B
17446 CLASS="COMMAND"
17447 >socket options = TCP_NODELAY</B
17448 ></P
17449 ><P
17450 >Example: <B
17451 CLASS="COMMAND"
17452 >socket options = IPTOS_LOWDELAY</B
17453 ></P
17454 ></DD
17455 ><DT
17456 ><A
17457 NAME="SOURCEENVIRONMENT"
17458 ></A
17459 >source environment (G)</DT
17460 ><DD
17461 ><P
17462 >This parameter causes Samba to set environment 
17463                 variables as per the content of the file named.</P
17464 ><P
17465 >If the value of this parameter starts with a "|" character 
17466                 then Samba will treat that value as a pipe command to open and 
17467                 will set the environment variables from the output of the pipe.</P
17468 ><P
17469 >The contents of the file or the output of the pipe should 
17470                 be formatted as the output of the standard Unix <B
17471 CLASS="COMMAND"
17472 >env(1)
17473                 </B
17474 > command. This is of the form :</P
17475 ><P
17476 >Example environment entry:</P
17477 ><P
17478 ><B
17479 CLASS="COMMAND"
17480 >SAMBA_NETBIOS_NAME = myhostname</B
17481 ></P
17482 ><P
17483 >Default: <I
17484 CLASS="EMPHASIS"
17485 >No default value</I
17486 ></P
17487 ><P
17488 >Examples: <B
17489 CLASS="COMMAND"
17490 >source environment = |/etc/smb.conf.sh
17491                 </B
17492 ></P
17493 ><P
17494 >Example: <B
17495 CLASS="COMMAND"
17496 >source environment = 
17497                 /usr/local/smb_env_vars</B
17498 ></P
17499 ></DD
17500 ><DT
17501 ><A
17502 NAME="SPNEGO"
17503 ></A
17504 >use spnego (G)</DT
17505 ><DD
17506 ><P
17507 > 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
17508 ><P
17509 >Default:  <I
17510 CLASS="EMPHASIS"
17511 >use spnego = yes</I
17512 ></P
17513 ></DD
17514 ><DT
17515 ><A
17516 NAME="STATCACHE"
17517 ></A
17518 >stat cache (G)</DT
17519 ><DD
17520 ><P
17521 >This parameter determines if <A
17522 HREF="smbd.8.html"
17523 TARGET="_top"
17524 >smbd(8)</A
17525 > will use a cache in order to 
17526                 speed up case insensitive name mappings. You should never need 
17527                 to change this parameter.</P
17528 ><P
17529 >Default: <B
17530 CLASS="COMMAND"
17531 >stat cache = yes</B
17532 ></P
17533 ></DD
17534 ><DT
17535 ><A
17536 NAME="STATCACHESIZE"
17537 ></A
17538 >stat cache size (G)</DT
17539 ><DD
17540 ><P
17541 >This parameter determines the number of 
17542                 entries in the <TT
17543 CLASS="PARAMETER"
17544 ><I
17545 >stat cache</I
17546 ></TT
17547 >.  You should 
17548                 never need to change this parameter.</P
17549 ><P
17550 >Default: <B
17551 CLASS="COMMAND"
17552 >stat cache size = 50</B
17553 ></P
17554 ></DD
17555 ><DT
17556 ><A
17557 NAME="STRICTALLOCATE"
17558 ></A
17559 >strict allocate (S)</DT
17560 ><DD
17561 ><P
17562 >This is a boolean that controls the handling of 
17563                 disk space allocation in the server. When this is set to <TT
17564 CLASS="CONSTANT"
17565 >yes</TT
17566
17567                 the server will change from UNIX behaviour of not committing real
17568                 disk storage blocks when a file is extended to the Windows behaviour
17569                 of actually forcing the disk system to allocate real storage blocks
17570                 when a file is created or extended to be a given size. In UNIX
17571                 terminology this means that Samba will stop creating sparse files.
17572                 This can be slow on some systems.</P
17573 ><P
17574 >When strict allocate is <TT
17575 CLASS="CONSTANT"
17576 >no</TT
17577 > the server does sparse
17578                 disk block allocation when a file is extended.</P
17579 ><P
17580 >Setting this to <TT
17581 CLASS="CONSTANT"
17582 >yes</TT
17583 > can help Samba return
17584                 out of quota messages on systems that are restricting the disk quota
17585                 of users.</P
17586 ><P
17587 >Default: <B
17588 CLASS="COMMAND"
17589 >strict allocate = no</B
17590 ></P
17591 ></DD
17592 ><DT
17593 ><A
17594 NAME="STRICTLOCKING"
17595 ></A
17596 >strict locking (S)</DT
17597 ><DD
17598 ><P
17599 >This is a boolean that controls the handling of 
17600                 file locking in the server. When this is set to <TT
17601 CLASS="CONSTANT"
17602 >yes</TT
17603
17604                 the server will check every read and write access for file locks, and 
17605                 deny access if locks exist. This can be slow on some systems.</P
17606 ><P
17607 >When strict locking is <TT
17608 CLASS="CONSTANT"
17609 >no</TT
17610 > the server does file 
17611                 lock checks only when the client explicitly asks for them.</P
17612 ><P
17613 >Well-behaved clients always ask for lock checks when it 
17614                 is important, so in the vast majority of cases <B
17615 CLASS="COMMAND"
17616 >strict 
17617                 locking = no</B
17618 > is preferable.</P
17619 ><P
17620 >Default: <B
17621 CLASS="COMMAND"
17622 >strict locking = no</B
17623 ></P
17624 ></DD
17625 ><DT
17626 ><A
17627 NAME="STRICTSYNC"
17628 ></A
17629 >strict sync (S)</DT
17630 ><DD
17631 ><P
17632 >Many Windows applications (including the Windows 
17633                 98 explorer shell) seem to confuse flushing buffer contents to 
17634                 disk with doing a sync to disk. Under UNIX, a sync call forces 
17635                 the process to be suspended until the kernel has ensured that 
17636                 all outstanding data in kernel disk buffers has been safely stored 
17637                 onto stable storage. This is very slow and should only be done 
17638                 rarely. Setting this parameter to <TT
17639 CLASS="CONSTANT"
17640 >no</TT
17641 > (the 
17642                 default) means that <A
17643 HREF="smbd.8.html"
17644 TARGET="_top"
17645 >smbd</A
17646 > ignores the Windows applications requests for
17647                 a sync call. There is only a possibility of losing data if the
17648                 operating system itself that Samba is running on crashes, so there is
17649                 little danger in this default setting. In addition, this fixes many
17650                 performance problems that people have reported with the new Windows98
17651                 explorer shell file copies.</P
17652 ><P
17653 >See also the <A
17654 HREF="#SYNCALWAYS"
17655 ><TT
17656 CLASS="PARAMETER"
17657 ><I
17658 >sync 
17659                 always&#62;</I
17660 ></TT
17661 ></A
17662 > parameter.</P
17663 ><P
17664 >Default: <B
17665 CLASS="COMMAND"
17666 >strict sync = no</B
17667 ></P
17668 ></DD
17669 ><DT
17670 ><A
17671 NAME="STRIPDOT"
17672 ></A
17673 >strip dot (G)</DT
17674 ><DD
17675 ><P
17676 >This is a boolean that controls whether to 
17677                 strip trailing dots off UNIX filenames. This helps with some 
17678                 CDROMs that have filenames ending in a single dot.</P
17679 ><P
17680 >Default: <B
17681 CLASS="COMMAND"
17682 >strip dot = no</B
17683 ></P
17684 ></DD
17685 ><DT
17686 ><A
17687 NAME="SYNCALWAYS"
17688 ></A
17689 >sync always (S)</DT
17690 ><DD
17691 ><P
17692 >This is a boolean parameter that controls 
17693                 whether writes will always be written to stable storage before 
17694                 the write call returns. If this is <TT
17695 CLASS="CONSTANT"
17696 >no</TT
17697 > then the server will be 
17698                 guided by the client's request in each write call (clients can 
17699                 set a bit indicating that a particular write should be synchronous). 
17700                 If this is <TT
17701 CLASS="CONSTANT"
17702 >yes</TT
17703 > then every write will be followed by a <B
17704 CLASS="COMMAND"
17705 >fsync()
17706                 </B
17707 > call to ensure the data is written to disk. Note that 
17708                 the <TT
17709 CLASS="PARAMETER"
17710 ><I
17711 >strict sync</I
17712 ></TT
17713 > parameter must be set to
17714                 <TT
17715 CLASS="CONSTANT"
17716 >yes</TT
17717 > in order for this parameter to have 
17718                 any affect.</P
17719 ><P
17720 >See also the <A
17721 HREF="#STRICTSYNC"
17722 ><TT
17723 CLASS="PARAMETER"
17724 ><I
17725 >strict 
17726                 sync</I
17727 ></TT
17728 ></A
17729 > parameter.</P
17730 ><P
17731 >Default: <B
17732 CLASS="COMMAND"
17733 >sync always = no</B
17734 ></P
17735 ></DD
17736 ><DT
17737 ><A
17738 NAME="SYSLOG"
17739 ></A
17740 >syslog (G)</DT
17741 ><DD
17742 ><P
17743 >This parameter maps how Samba debug messages 
17744                 are logged onto the system syslog logging levels. Samba debug 
17745                 level zero maps onto syslog <TT
17746 CLASS="CONSTANT"
17747 >LOG_ERR</TT
17748 >, debug 
17749                 level one maps onto <TT
17750 CLASS="CONSTANT"
17751 >LOG_WARNING</TT
17752 >, debug level 
17753                 two maps onto <TT
17754 CLASS="CONSTANT"
17755 >LOG_NOTICE</TT
17756 >, debug level three 
17757                 maps onto LOG_INFO. All higher levels are mapped to <TT
17758 CLASS="CONSTANT"
17759 >               LOG_DEBUG</TT
17760 >.</P
17761 ><P
17762 >This parameter sets the threshold for sending messages 
17763                 to syslog.  Only messages with debug level less than this value 
17764                 will be sent to syslog.</P
17765 ><P
17766 >Default: <B
17767 CLASS="COMMAND"
17768 >syslog = 1</B
17769 ></P
17770 ></DD
17771 ><DT
17772 ><A
17773 NAME="SYSLOGONLY"
17774 ></A
17775 >syslog only (G)</DT
17776 ><DD
17777 ><P
17778 >If this parameter is set then Samba debug 
17779                 messages are logged into the system syslog only, and not to 
17780                 the debug log files.</P
17781 ><P
17782 >Default: <B
17783 CLASS="COMMAND"
17784 >syslog only = no</B
17785 ></P
17786 ></DD
17787 ><DT
17788 ><A
17789 NAME="TEMPLATEHOMEDIR"
17790 ></A
17791 >template homedir (G)</DT
17792 ><DD
17793 ><P
17794 >When filling out the user information for a Windows NT 
17795                 user, the <A
17796 HREF="winbindd.8.html"
17797 TARGET="_top"
17798 >winbindd(8)</A
17799 > daemon 
17800                 uses this parameter to fill in the home directory for that user.  
17801                 If the string <TT
17802 CLASS="PARAMETER"
17803 ><I
17804 >%D</I
17805 ></TT
17806 > is present it is substituted 
17807                 with the user's Windows NT domain name.  If the string <TT
17808 CLASS="PARAMETER"
17809 ><I
17810 >%U
17811                 </I
17812 ></TT
17813 > is present it is substituted with the user's Windows 
17814                 NT user name.</P
17815 ><P
17816 >Default: <B
17817 CLASS="COMMAND"
17818 >template homedir = /home/%D/%U</B
17819 ></P
17820 ></DD
17821 ><DT
17822 ><A
17823 NAME="TEMPLATESHELL"
17824 ></A
17825 >template shell (G)</DT
17826 ><DD
17827 ><P
17828 >When filling out the user information for a Windows NT 
17829                 user, the <A
17830 HREF="winbindd.8.html"
17831 TARGET="_top"
17832 >winbindd(8)</A
17833 > daemon 
17834                 uses this parameter to fill in the login shell for that user.</P
17835 ><P
17836 >Default: <B
17837 CLASS="COMMAND"
17838 >template shell = /bin/false</B
17839 ></P
17840 ></DD
17841 ><DT
17842 ><A
17843 NAME="TIMEOFFSET"
17844 ></A
17845 >time offset (G)</DT
17846 ><DD
17847 ><P
17848 >This parameter is a setting in minutes to add 
17849                 to the normal GMT to local time conversion. This is useful if 
17850                 you are serving a lot of PCs that have incorrect daylight 
17851                 saving time handling.</P
17852 ><P
17853 >Default: <B
17854 CLASS="COMMAND"
17855 >time offset = 0</B
17856 ></P
17857 ><P
17858 >Example: <B
17859 CLASS="COMMAND"
17860 >time offset = 60</B
17861 ></P
17862 ></DD
17863 ><DT
17864 ><A
17865 NAME="TIMESERVER"
17866 ></A
17867 >time server (G)</DT
17868 ><DD
17869 ><P
17870 >This parameter determines if <A
17871 HREF="nmbd.8.html"
17872 TARGET="_top"
17873 >                       
17874                 nmbd(8)</A
17875 > advertises itself as a time server to Windows 
17876                 clients.</P
17877 ><P
17878 >Default: <B
17879 CLASS="COMMAND"
17880 >time server = no</B
17881 ></P
17882 ></DD
17883 ><DT
17884 ><A
17885 NAME="TIMESTAMPLOGS"
17886 ></A
17887 >timestamp logs (G)</DT
17888 ><DD
17889 ><P
17890 >Synonym for <A
17891 HREF="#DEBUGTIMESTAMP"
17892 ><TT
17893 CLASS="PARAMETER"
17894 ><I
17895 >               debug timestamp</I
17896 ></TT
17897 ></A
17898 >.</P
17899 ></DD
17900 ><DT
17901 ><A
17902 NAME="TOTALPRINTJOBS"
17903 ></A
17904 >total print jobs (G)</DT
17905 ><DD
17906 ><P
17907 >This parameter accepts an integer value which defines
17908                 a limit on the maximum number of print jobs that will be accepted 
17909                 system wide at any given time.  If a print job is submitted
17910                 by a client which will exceed this number, then <A
17911 HREF="smbd.8.html"
17912 TARGET="_top"
17913 >smbd</A
17914 > will return an 
17915                 error indicating that no space is available on the server.  The 
17916                 default value of 0 means that no such limit exists.  This parameter
17917                 can be used to prevent a server from exceeding its capacity and is
17918                 designed as a printing throttle.  See also 
17919                 <A
17920 HREF="#MAXPRINTJOBS"
17921 ><TT
17922 CLASS="PARAMETER"
17923 ><I
17924 >max print jobs</I
17925 ></TT
17926 ></A
17927 >.
17928                 </P
17929 ><P
17930 >Default: <B
17931 CLASS="COMMAND"
17932 >total print jobs = 0</B
17933 ></P
17934 ><P
17935 >Example: <B
17936 CLASS="COMMAND"
17937 >total print jobs = 5000</B
17938 ></P
17939 ></DD
17940 ><DT
17941 ><A
17942 NAME="UNICODE"
17943 ></A
17944 >unicode (G)</DT
17945 ><DD
17946 ><P
17947 >Specifies whether Samba should try 
17948                 to use unicode on the wire by default. Note: This does NOT
17949                 mean that samba will assume that the unix machine uses unicode!
17950                 </P
17951 ><P
17952 >Default: <B
17953 CLASS="COMMAND"
17954 >unicode = yes</B
17955 ></P
17956 ></DD
17957 ><DT
17958 ><A
17959 NAME="UNIXCHARSET"
17960 ></A
17961 >unix charset (G)</DT
17962 ><DD
17963 ><P
17964 >Specifies the charset the unix machine 
17965                 Samba runs on uses. Samba needs to know this in order to be able to 
17966                 convert text to the charsets other SMB clients use.
17967                 </P
17968 ><P
17969 >Default: <B
17970 CLASS="COMMAND"
17971 >unix charset = ASCII</B
17972 ></P
17973 ><P
17974 >Example: <B
17975 CLASS="COMMAND"
17976 >unix charset = UTF8</B
17977 ></P
17978 ></DD
17979 ><DT
17980 ><A
17981 NAME="UNIXEXTENSIONS"
17982 ></A
17983 >unix extensions(G)</DT
17984 ><DD
17985 ><P
17986 >This boolean parameter controls whether Samba 
17987                 implments the CIFS UNIX extensions, as defined by HP. 
17988                 These extensions enable Samba to better serve UNIX CIFS clients
17989                 by supporting features such as symbolic links, hard links, etc...
17990                 These extensions require a similarly enabled client, and are of
17991                 no current use to Windows clients.</P
17992 ><P
17993 >Default: <B
17994 CLASS="COMMAND"
17995 >unix extensions = no</B
17996 ></P
17997 ></DD
17998 ><DT
17999 ><A
18000 NAME="UNIXPASSWORDSYNC"
18001 ></A
18002 >unix password sync (G)</DT
18003 ><DD
18004 ><P
18005 >This boolean parameter controls whether Samba 
18006                 attempts to synchronize the UNIX password with the SMB password 
18007                 when the encrypted SMB password in the smbpasswd file is changed. 
18008                 If this is set to <TT
18009 CLASS="CONSTANT"
18010 >yes</TT
18011 > the program specified in the <TT
18012 CLASS="PARAMETER"
18013 ><I
18014 >passwd
18015                 program</I
18016 ></TT
18017 >parameter is called <I
18018 CLASS="EMPHASIS"
18019 >AS ROOT</I
18020 > - 
18021                 to allow the new UNIX password to be set without access to the 
18022                 old UNIX password (as the SMB password change code has no 
18023                 access to the old password cleartext, only the new).</P
18024 ><P
18025 >See also <A
18026 HREF="#PASSWDPROGRAM"
18027 ><TT
18028 CLASS="PARAMETER"
18029 ><I
18030 >passwd 
18031                 program</I
18032 ></TT
18033 ></A
18034 >, <A
18035 HREF="#PASSWDCHAT"
18036 ><TT
18037 CLASS="PARAMETER"
18038 ><I
18039 >               passwd chat</I
18040 ></TT
18041 ></A
18042 >.</P
18043 ><P
18044 >Default: <B
18045 CLASS="COMMAND"
18046 >unix password sync = no</B
18047 ></P
18048 ></DD
18049 ><DT
18050 ><A
18051 NAME="UPDATEENCRYPTED"
18052 ></A
18053 >update encrypted (G)</DT
18054 ><DD
18055 ><P
18056 >This boolean parameter allows a user logging 
18057                 on with a plaintext password to have their encrypted (hashed) 
18058                 password in the smbpasswd file to be updated automatically as 
18059                 they log on. This option allows a site to migrate from plaintext 
18060                 password authentication (users authenticate with plaintext 
18061                 password over the wire, and are checked against a UNIX account 
18062                 database) to encrypted password authentication (the SMB 
18063                 challenge/response authentication mechanism) without forcing
18064                 all users to re-enter their passwords via smbpasswd at the time the
18065                 change is made. This is a convenience option to allow the change over
18066                 to encrypted passwords to be made over a longer period. Once all users
18067                 have encrypted representations of their passwords in the smbpasswd
18068                 file this parameter should be set to <TT
18069 CLASS="CONSTANT"
18070 >no</TT
18071 >.</P
18072 ><P
18073 >In order for this parameter to work correctly the <A
18074 HREF="#ENCRYPTPASSWORDS"
18075 ><TT
18076 CLASS="PARAMETER"
18077 ><I
18078 >encrypt passwords</I
18079 ></TT
18080 >
18081                 </A
18082 > parameter must be set to <TT
18083 CLASS="CONSTANT"
18084 >no</TT
18085 > when
18086                 this parameter is set to <TT
18087 CLASS="CONSTANT"
18088 >yes</TT
18089 >.</P
18090 ><P
18091 >Note that even when this parameter is set a user 
18092                 authenticating to <B
18093 CLASS="COMMAND"
18094 >smbd</B
18095 > must still enter a valid 
18096                 password in order to connect correctly, and to update their hashed 
18097                 (smbpasswd) passwords.</P
18098 ><P
18099 >Default: <B
18100 CLASS="COMMAND"
18101 >update encrypted = no</B
18102 ></P
18103 ></DD
18104 ><DT
18105 ><A
18106 NAME="USECLIENTDRIVER"
18107 ></A
18108 >use client driver (S)</DT
18109 ><DD
18110 ><P
18111 >This parameter applies only to Windows NT/2000
18112                 clients.  It has no affect on Windows 95/98/ME clients.  When 
18113                 serving a printer to Windows NT/2000 clients without first installing
18114                 a valid printer driver on the Samba host, the client will be required
18115                 to install a local printer driver.  From this point on, the client
18116                 will treat the print as a local printer and not a network printer 
18117                 connection.  This is much the same behavior that will occur
18118                 when <B
18119 CLASS="COMMAND"
18120 >disable spoolss = yes</B
18121 >.  </P
18122 ><P
18123 >The differentiating 
18124                 factor is that under normal circumstances, the NT/2000 client will 
18125                 attempt to open the network printer using MS-RPC.  The problem is that
18126                 because the client considers the printer to be local, it will attempt
18127                 to issue the OpenPrinterEx() call requesting access rights associated 
18128                 with the logged on user. If the user possesses local administator rights
18129                 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
18130                 call will fail.  The result is that the client will now display an "Access
18131                 Denied; Unable to connect" message in the printer queue window (even though
18132                 jobs may successfully be printed).  </P
18133 ><P
18134 >If this parameter is enabled for a printer, then any attempt
18135                 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
18136                 to PRINTER_ACCESS_USE instead.  Thus allowing the OpenPrinterEx()
18137                 call to succeed.  <I
18138 CLASS="EMPHASIS"
18139 >This parameter MUST not be able enabled
18140                 on a print share which has valid print driver installed on the Samba 
18141                 server.</I
18142 ></P
18143 ><P
18144 >See also <A
18145 HREF="#DISABLESPOOLSS"
18146 >disable spoolss</A
18147 >
18148                 </P
18149 ><P
18150 >Default: <B
18151 CLASS="COMMAND"
18152 >use client driver = no</B
18153 ></P
18154 ></DD
18155 ><DT
18156 ><A
18157 NAME="USEMMAP"
18158 ></A
18159 >use mmap (G)</DT
18160 ><DD
18161 ><P
18162 >This global parameter determines if the tdb internals of Samba can
18163                 depend on mmap working correctly on the running system. Samba requires a coherent
18164                 mmap/read-write system memory cache. Currently only HPUX does not have such a
18165                 coherent cache, and so this parameter is set to <TT
18166 CLASS="CONSTANT"
18167 >no</TT
18168 > by
18169                 default on HPUX. On all other systems this parameter should be left alone. This
18170                 parameter is provided to help the Samba developers track down problems with
18171                 the tdb internal code.
18172                 </P
18173 ><P
18174 >Default: <B
18175 CLASS="COMMAND"
18176 >use mmap = yes</B
18177 ></P
18178 ></DD
18179 ><DT
18180 ><A
18181 NAME="USERHOSTS"
18182 ></A
18183 >use rhosts (G)</DT
18184 ><DD
18185 ><P
18186 >If this global parameter is <TT
18187 CLASS="CONSTANT"
18188 >yes</TT
18189 >, it specifies 
18190                 that the UNIX user's <TT
18191 CLASS="FILENAME"
18192 >.rhosts</TT
18193 > file in their home directory 
18194                 will be read to find the names of hosts and users who will be allowed 
18195                 access without specifying a password.</P
18196 ><P
18197 ><I
18198 CLASS="EMPHASIS"
18199 >NOTE:</I
18200 > The use of <TT
18201 CLASS="PARAMETER"
18202 ><I
18203 >use rhosts
18204                 </I
18205 ></TT
18206 > can be a major security hole. This is because you are 
18207                 trusting the PC to supply the correct username. It is very easy to 
18208                 get a PC to supply a false username. I recommend that the <TT
18209 CLASS="PARAMETER"
18210 ><I
18211 >               use rhosts</I
18212 ></TT
18213 > option be only used if you really know what 
18214                 you are doing.</P
18215 ><P
18216 >Default: <B
18217 CLASS="COMMAND"
18218 >use rhosts = no</B
18219 ></P
18220 ></DD
18221 ><DT
18222 ><A
18223 NAME="USER"
18224 ></A
18225 >user (S)</DT
18226 ><DD
18227 ><P
18228 >Synonym for <A
18229 HREF="#USERNAME"
18230 ><TT
18231 CLASS="PARAMETER"
18232 ><I
18233 >               username</I
18234 ></TT
18235 ></A
18236 >.</P
18237 ></DD
18238 ><DT
18239 ><A
18240 NAME="USERS"
18241 ></A
18242 >users (S)</DT
18243 ><DD
18244 ><P
18245 >Synonym for <A
18246 HREF="#USERNAME"
18247 ><TT
18248 CLASS="PARAMETER"
18249 ><I
18250 >               username</I
18251 ></TT
18252 ></A
18253 >.</P
18254 ></DD
18255 ><DT
18256 ><A
18257 NAME="USERNAME"
18258 ></A
18259 >username (S)</DT
18260 ><DD
18261 ><P
18262 >Multiple users may be specified in a comma-delimited 
18263                 list, in which case the supplied password will be tested against 
18264                 each username in turn (left to right).</P
18265 ><P
18266 >The <TT
18267 CLASS="PARAMETER"
18268 ><I
18269 >username</I
18270 ></TT
18271 > line is needed only when 
18272                 the PC is unable to supply its own username. This is the case 
18273                 for the COREPLUS protocol or where your users have different WfWg 
18274                 usernames to UNIX usernames. In both these cases you may also be 
18275                 better using the \\server\share%user syntax instead.</P
18276 ><P
18277 >The <TT
18278 CLASS="PARAMETER"
18279 ><I
18280 >username</I
18281 ></TT
18282 > line is not a great 
18283                 solution in many cases as it means Samba will try to validate 
18284                 the supplied password against each of the usernames in the 
18285                 <TT
18286 CLASS="PARAMETER"
18287 ><I
18288 >username</I
18289 ></TT
18290 > line in turn. This is slow and 
18291                 a bad idea for lots of users in case of duplicate passwords. 
18292                 You may get timeouts or security breaches using this parameter 
18293                 unwisely.</P
18294 ><P
18295 >Samba relies on the underlying UNIX security. This 
18296                 parameter does not restrict who can login, it just offers hints 
18297                 to the Samba server as to what usernames might correspond to the 
18298                 supplied password. Users can login as whoever they please and 
18299                 they will be able to do no more damage than if they started a 
18300                 telnet session. The daemon runs as the user that they log in as, 
18301                 so they cannot do anything that user cannot do.</P
18302 ><P
18303 >To restrict a service to a particular set of users you 
18304                 can use the <A
18305 HREF="#VALIDUSERS"
18306 ><TT
18307 CLASS="PARAMETER"
18308 ><I
18309 >valid users
18310                 </I
18311 ></TT
18312 ></A
18313 > parameter.</P
18314 ><P
18315 >If any of the usernames begin with a '@' then the name 
18316                 will be looked up first in the NIS netgroups list (if Samba 
18317                 is compiled with netgroup support), followed by a lookup in 
18318                 the UNIX groups database and will expand to a list of all users 
18319                 in the group of that name.</P
18320 ><P
18321 >If any of the usernames begin with a '+' then the name 
18322                 will be looked up only in the UNIX groups database and will 
18323                 expand to a list of all users in the group of that name.</P
18324 ><P
18325 >If any of the usernames begin with a '&#38;'then the name 
18326                 will be looked up only in the NIS netgroups database (if Samba 
18327                 is compiled with netgroup support) and will expand to a list 
18328                 of all users in the netgroup group of that name.</P
18329 ><P
18330 >Note that searching though a groups database can take 
18331                 quite some time, and some clients may time out during the 
18332                 search.</P
18333 ><P
18334 >See the section <A
18335 HREF="#AEN238"
18336 >NOTE ABOUT 
18337                 USERNAME/PASSWORD VALIDATION</A
18338 > for more information on how 
18339                 this parameter determines access to the services.</P
18340 ><P
18341 >Default: <B
18342 CLASS="COMMAND"
18343 >The guest account if a guest service, 
18344                 else &#60;empty string&#62;.</B
18345 ></P
18346 ><P
18347 >Examples:<B
18348 CLASS="COMMAND"
18349 >username = fred, mary, jack, jane, 
18350                 @users, @pcgroup</B
18351 ></P
18352 ></DD
18353 ><DT
18354 ><A
18355 NAME="USERNAMELEVEL"
18356 ></A
18357 >username level (G)</DT
18358 ><DD
18359 ><P
18360 >This option helps Samba to try and 'guess' at 
18361                 the real UNIX username, as many DOS clients send an all-uppercase 
18362                 username. By default Samba tries all lowercase, followed by the 
18363                 username with the first letter capitalized, and fails if the 
18364                 username is not found on the UNIX machine.</P
18365 ><P
18366 >If this parameter is set to non-zero the behavior changes. 
18367                 This parameter is a number that specifies the number of uppercase
18368                 combinations to try while trying to determine the UNIX user name. The
18369                 higher the number the more combinations will be tried, but the slower
18370                 the discovery of usernames will be. Use this parameter when you have
18371                 strange usernames on your UNIX machine, such as <TT
18372 CLASS="CONSTANT"
18373 >AstrangeUser
18374                 </TT
18375 >.</P
18376 ><P
18377 >Default: <B
18378 CLASS="COMMAND"
18379 >username level = 0</B
18380 ></P
18381 ><P
18382 >Example: <B
18383 CLASS="COMMAND"
18384 >username level = 5</B
18385 ></P
18386 ></DD
18387 ><DT
18388 ><A
18389 NAME="USERNAMEMAP"
18390 ></A
18391 >username map (G)</DT
18392 ><DD
18393 ><P
18394 >This option allows you to specify a file containing 
18395                 a mapping of usernames from the clients to the server. This can be 
18396                 used for several purposes. The most common is to map usernames 
18397                 that users use on DOS or Windows machines to those that the UNIX 
18398                 box uses. The other is to map multiple users to a single username 
18399                 so that they can more easily share files.</P
18400 ><P
18401 >The map file is parsed line by line. Each line should 
18402                 contain a single UNIX username on the left then a '=' followed 
18403                 by a list of usernames on the right. The list of usernames on the 
18404                 right may contain names of the form @group in which case they 
18405                 will match any UNIX username in that group. The special client 
18406                 name '*' is a wildcard and matches any name. Each line of the 
18407                 map file may be up to 1023 characters long.</P
18408 ><P
18409 >The file is processed on each line by taking the 
18410                 supplied username and comparing it with each username on the right 
18411                 hand side of the '=' signs. If the supplied name matches any of 
18412                 the names on the right hand side then it is replaced with the name 
18413                 on the left. Processing then continues with the next line.</P
18414 ><P
18415 >If any line begins with a '#' or a ';' then it is 
18416                 ignored</P
18417 ><P
18418 >If any line begins with an '!' then the processing
18419                 will stop after that line if a mapping was done by the line.
18420                 Otherwise mapping continues with every line being processed.
18421                 Using '!' is most useful when you have a wildcard mapping line
18422                 later in the file.</P
18423 ><P
18424 >For example to map from the name <TT
18425 CLASS="CONSTANT"
18426 >admin</TT
18427 >
18428                 or <TT
18429 CLASS="CONSTANT"
18430 >administrator</TT
18431 > to the UNIX name <TT
18432 CLASS="CONSTANT"
18433 >               root</TT
18434 > you would use:</P
18435 ><P
18436 ><B
18437 CLASS="COMMAND"
18438 >root = admin administrator</B
18439 ></P
18440 ><P
18441 >Or to map anyone in the UNIX group <TT
18442 CLASS="CONSTANT"
18443 >system</TT
18444 >
18445                 to the UNIX name <TT
18446 CLASS="CONSTANT"
18447 >sys</TT
18448 > you would use:</P
18449 ><P
18450 ><B
18451 CLASS="COMMAND"
18452 >sys = @system</B
18453 ></P
18454 ><P
18455 >You can have as many mappings as you like in a username
18456                 map file.</P
18457 ><P
18458 >If your system supports the NIS NETGROUP option then
18459                 the netgroup database is checked before the <TT
18460 CLASS="FILENAME"
18461 >/etc/group
18462                 </TT
18463 > database for matching groups.</P
18464 ><P
18465 >You can map Windows usernames that have spaces in them
18466                  by using double quotes around the name. For example:</P
18467 ><P
18468 ><B
18469 CLASS="COMMAND"
18470 >tridge = "Andrew Tridgell"</B
18471 ></P
18472 ><P
18473 >would map the windows username "Andrew Tridgell" to the
18474                 unix username "tridge".</P
18475 ><P
18476 >The following example would map mary and fred to the
18477                 unix user sys, and map the rest to guest. Note the use of the
18478                 '!' to tell Samba to stop processing if it gets a match on
18479                 that line.</P
18480 ><P
18481 ><TABLE
18482 BORDER="0"
18483 BGCOLOR="#E0E0E0"
18484 WIDTH="90%"
18485 ><TR
18486 ><TD
18487 ><PRE
18488 CLASS="PROGRAMLISTING"
18489 >               !sys = mary fred
18490                 guest = *
18491                 </PRE
18492 ></TD
18493 ></TR
18494 ></TABLE
18495 ></P
18496 ><P
18497 >Note that the remapping is applied to all occurrences
18498                 of usernames. Thus if you connect to \\server\fred and <TT
18499 CLASS="CONSTANT"
18500 >               fred</TT
18501 > is remapped to <TT
18502 CLASS="CONSTANT"
18503 >mary</TT
18504 > then you
18505                 will actually be connecting to \\server\mary and will need to
18506                 supply a password suitable for <TT
18507 CLASS="CONSTANT"
18508 >mary</TT
18509 > not
18510                 <TT
18511 CLASS="CONSTANT"
18512 >fred</TT
18513 >. The only exception to this is the
18514                 username passed to the <A
18515 HREF="#PASSWORDSERVER"
18516 ><TT
18517 CLASS="PARAMETER"
18518 ><I
18519 >               password server</I
18520 ></TT
18521 ></A
18522 > (if you have one). The password
18523                 server will receive whatever username the client supplies without
18524                 modification.</P
18525 ><P
18526 >Also note that no reverse mapping is done. The main effect
18527                 this has is with printing. Users who have been mapped may have
18528                 trouble deleting print jobs as PrintManager under WfWg will think
18529                 they don't own the print job.</P
18530 ><P
18531 >Default: <I
18532 CLASS="EMPHASIS"
18533 >no username map</I
18534 ></P
18535 ><P
18536 >Example: <B
18537 CLASS="COMMAND"
18538 >username map = /usr/local/samba/lib/users.map
18539                 </B
18540 ></P
18541 ></DD
18542 ><DT
18543 ><A
18544 NAME="USESENDFILE"
18545 ></A
18546 >use sendfile (S)</DT
18547 ><DD
18548 ><P
18549 >If this parameter is <TT
18550 CLASS="CONSTANT"
18551 >yes</TT
18552 >, and Samba
18553                 was built with the --with-sendfile-support option, and the underlying operating
18554                 system supports sendfile system call, then some SMB read calls (mainly ReadAndX
18555                 and ReadRaw) will use the more efficient sendfile system call for files that
18556                 are exclusively oplocked. This may make more efficient use of the system CPU's
18557                 and cause Samba to be faster. This is off by default as it's effects are unknown
18558                 as yet.
18559                 </P
18560 ><P
18561 >Default: <B
18562 CLASS="COMMAND"
18563 >use sendfile = no</B
18564 ></P
18565 ></DD
18566 ><DT
18567 ><A
18568 NAME="UTMP"
18569 ></A
18570 >utmp (G)</DT
18571 ><DD
18572 ><P
18573 >This boolean parameter is only available if
18574                 Samba has been configured and compiled  with the option <B
18575 CLASS="COMMAND"
18576 >               --with-utmp</B
18577 >. If set to <TT
18578 CLASS="CONSTANT"
18579 >yes</TT
18580 > then Samba will attempt
18581                 to add utmp or utmpx records (depending on the UNIX system) whenever a
18582                 connection is made to a Samba server. Sites may use this to record the
18583                 user connecting to a Samba share.</P
18584 ><P
18585 >Due to the requirements of the utmp record, we
18586                 are required to create a unique identifier for the
18587                 incoming user.  Enabling this option creates an n^2
18588                 algorithm to find this number.  This may impede
18589                 performance on large installations. </P
18590 ><P
18591 >See also the <A
18592 HREF="#UTMPDIRECTORY"
18593 ><TT
18594 CLASS="PARAMETER"
18595 ><I
18596 >               utmp directory</I
18597 ></TT
18598 ></A
18599 > parameter.</P
18600 ><P
18601 >Default: <B
18602 CLASS="COMMAND"
18603 >utmp = no</B
18604 ></P
18605 ></DD
18606 ><DT
18607 ><A
18608 NAME="UTMPDIRECTORY"
18609 ></A
18610 >utmp directory(G)</DT
18611 ><DD
18612 ><P
18613 >This parameter is only available if Samba has 
18614                 been configured and compiled with the option <B
18615 CLASS="COMMAND"
18616 >               --with-utmp</B
18617 >. It specifies a directory pathname that is
18618                 used to store the utmp or utmpx files (depending on the UNIX system) that
18619                 record user connections to a Samba server. See also the <A
18620 HREF="#UTMP"
18621 >               <TT
18622 CLASS="PARAMETER"
18623 ><I
18624 >utmp</I
18625 ></TT
18626 ></A
18627 > parameter. By default this is 
18628                 not set, meaning the system will use whatever utmp file the 
18629                 native system is set to use (usually 
18630                 <TT
18631 CLASS="FILENAME"
18632 >/var/run/utmp</TT
18633 > on Linux).</P
18634 ><P
18635 >Default: <I
18636 CLASS="EMPHASIS"
18637 >no utmp directory</I
18638 ></P
18639 ><P
18640 >Example: <B
18641 CLASS="COMMAND"
18642 >utmp directory = /var/run/utmp</B
18643 ></P
18644 ></DD
18645 ><DT
18646 ><A
18647 NAME="WTMPDIRECTORY"
18648 ></A
18649 >wtmp directory(G)</DT
18650 ><DD
18651 ><P
18652 >This parameter is only available if Samba has 
18653                 been configured and compiled with the option <B
18654 CLASS="COMMAND"
18655 >               --with-utmp</B
18656 >. It specifies a directory pathname that is
18657                 used to store the wtmp or wtmpx files (depending on the UNIX system) that
18658                 record user connections to a Samba server. The difference with
18659                 the utmp directory is the fact that user info is kept after a user 
18660                 has logged out.
18661                 
18662                 See also the <A
18663 HREF="#UTMP"
18664 >               <TT
18665 CLASS="PARAMETER"
18666 ><I
18667 >utmp</I
18668 ></TT
18669 ></A
18670 > parameter. By default this is 
18671                 not set, meaning the system will use whatever utmp file the 
18672                 native system is set to use (usually 
18673                 <TT
18674 CLASS="FILENAME"
18675 >/var/run/wtmp</TT
18676 > on Linux).</P
18677 ><P
18678 >Default: <I
18679 CLASS="EMPHASIS"
18680 >no wtmp directory</I
18681 ></P
18682 ><P
18683 >Example: <B
18684 CLASS="COMMAND"
18685 >wtmp directory = /var/log/wtmp</B
18686 ></P
18687 ></DD
18688 ><DT
18689 ><A
18690 NAME="VALIDUSERS"
18691 ></A
18692 >valid users (S)</DT
18693 ><DD
18694 ><P
18695 >This is a list of users that should be allowed 
18696                 to login to this service. Names starting with '@', '+' and  '&#38;'
18697                 are interpreted using the same rules as described in the 
18698                 <TT
18699 CLASS="PARAMETER"
18700 ><I
18701 >invalid users</I
18702 ></TT
18703 > parameter.</P
18704 ><P
18705 >If this is empty (the default) then any user can login. 
18706                 If a username is in both this list and the <TT
18707 CLASS="PARAMETER"
18708 ><I
18709 >invalid 
18710                 users</I
18711 ></TT
18712 > list then access is denied for that user.</P
18713 ><P
18714 >The current servicename is substituted for <TT
18715 CLASS="PARAMETER"
18716 ><I
18717 >%S
18718                 </I
18719 ></TT
18720 >. This is useful in the [homes] section.</P
18721 ><P
18722 >See also <A
18723 HREF="#INVALIDUSERS"
18724 ><TT
18725 CLASS="PARAMETER"
18726 ><I
18727 >invalid users
18728                 </I
18729 ></TT
18730 ></A
18731 ></P
18732 ><P
18733 >Default: <I
18734 CLASS="EMPHASIS"
18735 >No valid users list (anyone can login)
18736                 </I
18737 ></P
18738 ><P
18739 >Example: <B
18740 CLASS="COMMAND"
18741 >valid users = greg, @pcusers</B
18742 ></P
18743 ></DD
18744 ><DT
18745 ><A
18746 NAME="VETOFILES"
18747 ></A
18748 >veto files(S)</DT
18749 ><DD
18750 ><P
18751 >This is a list of files and directories that 
18752                 are neither visible nor accessible.  Each entry in the list must 
18753                 be separated by a '/', which allows spaces to be included 
18754                 in the entry. '*' and '?' can be used to specify multiple files 
18755                 or directories as in DOS wildcards.</P
18756 ><P
18757 >Each entry must be a unix path, not a DOS path and 
18758                 must <I
18759 CLASS="EMPHASIS"
18760 >not</I
18761 > include the  unix directory 
18762                 separator '/'.</P
18763 ><P
18764 >Note that the <TT
18765 CLASS="PARAMETER"
18766 ><I
18767 >case sensitive</I
18768 ></TT
18769 > option 
18770                 is applicable in vetoing files.</P
18771 ><P
18772 >One feature of the veto files parameter that it
18773                 is important to be aware of is Samba's behaviour when
18774                 trying to delete a directory. If a directory that is
18775                 to be deleted contains nothing but veto files this
18776                 deletion will <I
18777 CLASS="EMPHASIS"
18778 >fail</I
18779 > unless you also set
18780                 the <TT
18781 CLASS="PARAMETER"
18782 ><I
18783 >delete veto files</I
18784 ></TT
18785 > parameter to
18786                 <TT
18787 CLASS="PARAMETER"
18788 ><I
18789 >yes</I
18790 ></TT
18791 >.</P
18792 ><P
18793 >Setting this parameter will affect the performance 
18794                 of Samba, as it will be forced to check all files and directories 
18795                 for a match as they are scanned.</P
18796 ><P
18797 >See also <A
18798 HREF="#HIDEFILES"
18799 ><TT
18800 CLASS="PARAMETER"
18801 ><I
18802 >hide files
18803                 </I
18804 ></TT
18805 ></A
18806 > and <A
18807 HREF="#CASESENSITIVE"
18808 ><TT
18809 CLASS="PARAMETER"
18810 ><I
18811 >               case sensitive</I
18812 ></TT
18813 ></A
18814 >.</P
18815 ><P
18816 >Default: <I
18817 CLASS="EMPHASIS"
18818 >No files or directories are vetoed.
18819                 </I
18820 ></P
18821 ><P
18822 >Examples:<TABLE
18823 BORDER="0"
18824 BGCOLOR="#E0E0E0"
18825 WIDTH="90%"
18826 ><TR
18827 ><TD
18828 ><PRE
18829 CLASS="PROGRAMLISTING"
18830 >; Veto any files containing the word Security, 
18831 ; any ending in .tmp, and any directory containing the
18832 ; word root.
18833 veto files = /*Security*/*.tmp/*root*/
18834
18835 ; Veto the Apple specific files that a NetAtalk server
18836 ; creates.
18837 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/</PRE
18838 ></TD
18839 ></TR
18840 ></TABLE
18841 ></P
18842 ></DD
18843 ><DT
18844 ><A
18845 NAME="VETOOPLOCKFILES"
18846 ></A
18847 >veto oplock files (S)</DT
18848 ><DD
18849 ><P
18850 >This parameter is only valid when the <A
18851 HREF="#OPLOCKS"
18852 ><TT
18853 CLASS="PARAMETER"
18854 ><I
18855 >oplocks</I
18856 ></TT
18857 ></A
18858 >
18859                 parameter is turned on for a share. It allows the Samba administrator
18860                 to selectively turn off the granting of oplocks on selected files that
18861                 match a wildcarded list, similar to the wildcarded list used in the
18862                 <A
18863 HREF="#VETOFILES"
18864 ><TT
18865 CLASS="PARAMETER"
18866 ><I
18867 >veto files</I
18868 ></TT
18869 ></A
18870
18871                 parameter.</P
18872 ><P
18873 >Default: <I
18874 CLASS="EMPHASIS"
18875 >No files are vetoed for oplock 
18876                 grants</I
18877 ></P
18878 ><P
18879 >You might want to do this on files that you know will 
18880                 be heavily contended for by clients. A good example of this 
18881                 is in the NetBench SMB benchmark program, which causes heavy 
18882                 client contention for files ending in <TT
18883 CLASS="FILENAME"
18884 >.SEM</TT
18885 >. 
18886                 To cause Samba not to grant oplocks on these files you would use 
18887                 the line (either in the [global] section or in the section for 
18888                 the particular NetBench share :</P
18889 ><P
18890 >Example: <B
18891 CLASS="COMMAND"
18892 >veto oplock files = /*.SEM/
18893                 </B
18894 ></P
18895 ></DD
18896 ><DT
18897 ><A
18898 NAME="VFSPATH"
18899 ></A
18900 >vfs path (S)</DT
18901 ><DD
18902 ><P
18903 >This parameter specifies the directory
18904                 to look in for vfs modules. The name of every <B
18905 CLASS="COMMAND"
18906 >vfs object
18907                 </B
18908 > will be prepended by this directory
18909                 </P
18910 ><P
18911 >Default: <B
18912 CLASS="COMMAND"
18913 >vfs path = </B
18914 ></P
18915 ><P
18916 >Example: <B
18917 CLASS="COMMAND"
18918 >vfs path = /usr/lib/samba/vfs</B
18919 ></P
18920 ></DD
18921 ><DT
18922 ><A
18923 NAME="VFSOBJECT"
18924 ></A
18925 >vfs object (S)</DT
18926 ><DD
18927 ><P
18928 >This parameter specifies a shared object files that 
18929                 are used for Samba VFS I/O operations.  By default, normal 
18930                 disk I/O operations are used but these can be overloaded 
18931                 with one or more VFS objects. </P
18932 ><P
18933 >Default : <I
18934 CLASS="EMPHASIS"
18935 >no value</I
18936 ></P
18937 ></DD
18938 ><DT
18939 ><A
18940 NAME="VFSOPTIONS"
18941 ></A
18942 >vfs options (S)</DT
18943 ><DD
18944 ><P
18945 >This parameter allows parameters to be passed 
18946                 to the vfs layer at initialization time. 
18947                 See also <A
18948 HREF="#VFSOBJECT"
18949 ><TT
18950 CLASS="PARAMETER"
18951 ><I
18952 >               vfs object</I
18953 ></TT
18954 ></A
18955 >.</P
18956 ><P
18957 >Default : <I
18958 CLASS="EMPHASIS"
18959 >no value</I
18960 ></P
18961 ></DD
18962 ><DT
18963 ><A
18964 NAME="VOLUME"
18965 ></A
18966 >volume (S)</DT
18967 ><DD
18968 ><P
18969 > This allows you to override the volume label 
18970                 returned for a share. Useful for CDROMs with installation programs 
18971                 that insist on a particular volume label.</P
18972 ><P
18973 >Default: <I
18974 CLASS="EMPHASIS"
18975 >the name of the share</I
18976 ></P
18977 ></DD
18978 ><DT
18979 ><A
18980 NAME="WIDELINKS"
18981 ></A
18982 >wide links (S)</DT
18983 ><DD
18984 ><P
18985 >This parameter controls whether or not links 
18986                 in the UNIX file system may be followed by the server. Links 
18987                 that point to areas within the directory tree exported by the 
18988                 server are always allowed; this parameter controls access only 
18989                 to areas that are outside the directory tree being exported.</P
18990 ><P
18991 >Note that setting this parameter can have a negative 
18992                 effect on your server performance due to the extra system calls 
18993                 that Samba has to  do in order to perform the link checks.</P
18994 ><P
18995 >Default: <B
18996 CLASS="COMMAND"
18997 >wide links = yes</B
18998 ></P
18999 ></DD
19000 ><DT
19001 ><A
19002 NAME="WINBINDCACHETIME"
19003 ></A
19004 >winbind cache time (G)</DT
19005 ><DD
19006 ><P
19007 >This parameter specifies the number of seconds the
19008                 <A
19009 HREF="winbindd.8.html"
19010 TARGET="_top"
19011 >winbindd(8)</A
19012 > daemon will cache 
19013                 user and group information before querying a Windows NT server 
19014                 again.</P
19015 ><P
19016 >Default: <B
19017 CLASS="COMMAND"
19018 >winbind cache type = 15</B
19019 ></P
19020 ></DD
19021 ><DT
19022 ><A
19023 NAME="WINBINDENUMUSERS"
19024 ></A
19025 >winbind enum users (G)</DT
19026 ><DD
19027 ><P
19028 >On large installations using
19029                 <A
19030 HREF="winbindd.8.html"
19031 TARGET="_top"
19032 >winbindd(8)</A
19033 > it may be
19034                 necessary to suppress the enumeration of users through the
19035                 <B
19036 CLASS="COMMAND"
19037 > setpwent()</B
19038 >,
19039                 <B
19040 CLASS="COMMAND"
19041 >getpwent()</B
19042 > and
19043                 <B
19044 CLASS="COMMAND"
19045 >endpwent()</B
19046 > group of system calls.  If
19047                 the <TT
19048 CLASS="PARAMETER"
19049 ><I
19050 >winbind enum users</I
19051 ></TT
19052 > parameter is
19053                 <TT
19054 CLASS="CONSTANT"
19055 >no</TT
19056 >, calls to the <B
19057 CLASS="COMMAND"
19058 >getpwent</B
19059 > system call
19060                 will not return any data. </P
19061 ><P
19062 ><I
19063 CLASS="EMPHASIS"
19064 >Warning:</I
19065 > Turning off user
19066                 enumeration may cause some programs to behave oddly.  For
19067                 example, the finger program relies on having access to the
19068                 full user list when searching for matching
19069                 usernames. </P
19070 ><P
19071 >Default: <B
19072 CLASS="COMMAND"
19073 >winbind enum users = yes </B
19074 ></P
19075 ></DD
19076 ><DT
19077 ><A
19078 NAME="WINBINDENUMGROUPS"
19079 ></A
19080 >winbind enum groups (G)</DT
19081 ><DD
19082 ><P
19083 >On large installations using
19084                 <A
19085 HREF="winbindd.8.html"
19086 TARGET="_top"
19087 >winbindd(8)</A
19088 > it may be
19089                 necessary to suppress the enumeration of groups through the
19090                 <B
19091 CLASS="COMMAND"
19092 > setgrent()</B
19093 >,
19094                 <B
19095 CLASS="COMMAND"
19096 >getgrent()</B
19097 > and
19098                 <B
19099 CLASS="COMMAND"
19100 >endgrent()</B
19101 > group of system calls.  If
19102                 the <TT
19103 CLASS="PARAMETER"
19104 ><I
19105 >winbind enum groups</I
19106 ></TT
19107 > parameter is
19108                 <TT
19109 CLASS="CONSTANT"
19110 >no</TT
19111 >, calls to the <B
19112 CLASS="COMMAND"
19113 >getgrent()</B
19114 > system
19115                 call will not return any data. </P
19116 ><P
19117 ><I
19118 CLASS="EMPHASIS"
19119 >Warning:</I
19120 > Turning off group
19121                 enumeration may cause some programs to behave oddly.
19122                 </P
19123 ><P
19124 >Default: <B
19125 CLASS="COMMAND"
19126 >winbind enum groups = yes </B
19127 >
19128                 </P
19129 ></DD
19130 ><DT
19131 ><A
19132 NAME="WINBINDGID"
19133 ></A
19134 >winbind gid (G)</DT
19135 ><DD
19136 ><P
19137 >The winbind gid parameter specifies the range of group 
19138                 ids that are allocated by the <A
19139 HREF="winbindd.8.html"
19140 TARGET="_top"
19141 >               winbindd(8)</A
19142 > daemon.  This range of group ids should have no 
19143                 existing local or NIS groups within it as strange conflicts can 
19144                 occur otherwise.</P
19145 ><P
19146 >Default: <B
19147 CLASS="COMMAND"
19148 >winbind gid = &#60;empty string&#62;
19149                 </B
19150 ></P
19151 ><P
19152 >Example: <B
19153 CLASS="COMMAND"
19154 >winbind gid = 10000-20000</B
19155 ></P
19156 ></DD
19157 ><DT
19158 ><A
19159 NAME="WINBINDSEPARATOR"
19160 ></A
19161 >winbind separator (G)</DT
19162 ><DD
19163 ><P
19164 >This parameter allows an admin to define the character 
19165                 used when listing a username of the form of <TT
19166 CLASS="REPLACEABLE"
19167 ><I
19168 >DOMAIN
19169                 </I
19170 ></TT
19171 >\<TT
19172 CLASS="REPLACEABLE"
19173 ><I
19174 >user</I
19175 ></TT
19176 >.  This parameter 
19177                 is only applicable when using the <TT
19178 CLASS="FILENAME"
19179 >pam_winbind.so</TT
19180 >
19181                 and <TT
19182 CLASS="FILENAME"
19183 >nss_winbind.so</TT
19184 > modules for UNIX services.
19185                 </P
19186 ><P
19187 >Please note that setting this parameter to + causes problems
19188                 with group membership at least on glibc systems, as the character +
19189                 is used as a special character for NIS in /etc/group.</P
19190 ><P
19191 >Default: <B
19192 CLASS="COMMAND"
19193 >winbind separator = '\'</B
19194 ></P
19195 ><P
19196 >Example: <B
19197 CLASS="COMMAND"
19198 >winbind separator = +</B
19199 ></P
19200 ></DD
19201 ><DT
19202 ><A
19203 NAME="WINBINDUID"
19204 ></A
19205 >winbind uid (G)</DT
19206 ><DD
19207 ><P
19208 >The winbind gid parameter specifies the range of group 
19209                 ids that are allocated by the <A
19210 HREF="winbindd.8.html"
19211 TARGET="_top"
19212 >               winbindd(8)</A
19213 > daemon.  This range of ids should have no 
19214                 existing local or NIS users within it as strange conflicts can 
19215                 occur otherwise.</P
19216 ><P
19217 >Default: <B
19218 CLASS="COMMAND"
19219 >winbind uid = &#60;empty string&#62;
19220                 </B
19221 ></P
19222 ><P
19223 >Example: <B
19224 CLASS="COMMAND"
19225 >winbind uid = 10000-20000</B
19226 ></P
19227 ></DD
19228 ><DT
19229 >winbind use default domain, <A
19230 NAME="WINBINDUSEDEFAULTDOMAIN"
19231 ></A
19232 >winbind use default domain (G)</DT
19233 ><DD
19234 ><P
19235 >This parameter specifies whether the <A
19236 HREF="winbindd.8.html"
19237 TARGET="_top"
19238 >               winbindd(8)</A
19239 >
19240                 daemon should operate on users without domain component in their username.  
19241                 Users without a domain component are treated as is part of the winbindd server's 
19242                 own domain.  While this does not benifit Windows users, it makes SSH, FTP and e-mail 
19243                 function in a way much closer to the way they would in a native unix system.</P
19244 ><P
19245 >Default: <B
19246 CLASS="COMMAND"
19247 >winbind use default domain = &#60;no&#62; 
19248                 </B
19249 ></P
19250 ><P
19251 >Example: <B
19252 CLASS="COMMAND"
19253 >winbind use default domain = yes</B
19254 ></P
19255 ></DD
19256 ><DT
19257 ><A
19258 NAME="WINSHOOK"
19259 ></A
19260 >wins hook (G)</DT
19261 ><DD
19262 ><P
19263 >When Samba is running as a WINS server this 
19264                 allows you to call an external program for all changes to the 
19265                 WINS database. The primary use for this option is to allow the 
19266                 dynamic update of external name resolution databases such as 
19267                 dynamic DNS.</P
19268 ><P
19269 >The wins hook parameter specifies the name of a script 
19270                 or executable that will be called as follows:</P
19271 ><P
19272 ><B
19273 CLASS="COMMAND"
19274 >wins_hook operation name nametype ttl IP_list
19275                 </B
19276 ></P
19277 ><P
19278 ></P
19279 ><UL
19280 ><LI
19281 ><P
19282 >The first argument is the operation and is one 
19283                         of "add", "delete", or "refresh". In most cases the operation can 
19284                         be ignored as the rest of the parameters provide sufficient 
19285                         information. Note that "refresh" may sometimes be called when the 
19286                         name has not previously been added, in that case it should be treated 
19287                         as an add.</P
19288 ></LI
19289 ><LI
19290 ><P
19291 >The second argument is the NetBIOS name. If the 
19292                         name is not a legal name then the wins hook is not called. 
19293                         Legal names contain only  letters, digits, hyphens, underscores 
19294                         and periods.</P
19295 ></LI
19296 ><LI
19297 ><P
19298 >The third argument is the NetBIOS name 
19299                         type as a 2 digit hexadecimal number. </P
19300 ></LI
19301 ><LI
19302 ><P
19303 >The fourth argument is the TTL (time to live) 
19304                         for the name in seconds.</P
19305 ></LI
19306 ><LI
19307 ><P
19308 >The fifth and subsequent arguments are the IP 
19309                         addresses currently registered for that name. If this list is 
19310                         empty then the name should be deleted.</P
19311 ></LI
19312 ></UL
19313 ><P
19314 >An example script that calls the BIND dynamic DNS update 
19315                 program <B
19316 CLASS="COMMAND"
19317 >nsupdate</B
19318 > is provided in the examples 
19319                 directory of the Samba source code. </P
19320 ></DD
19321 ><DT
19322 ><A
19323 NAME="WINSPROXY"
19324 ></A
19325 >wins proxy (G)</DT
19326 ><DD
19327 ><P
19328 >This is a boolean that controls if <A
19329 HREF="nmbd.8.html"
19330 TARGET="_top"
19331 >nmbd(8)</A
19332 > will respond to broadcast name 
19333                 queries on behalf of  other hosts. You may need to set this 
19334                 to <TT
19335 CLASS="CONSTANT"
19336 >yes</TT
19337 > for some older clients.</P
19338 ><P
19339 >Default: <B
19340 CLASS="COMMAND"
19341 >wins proxy = no</B
19342 ></P
19343 ></DD
19344 ><DT
19345 ><A
19346 NAME="WINSSERVER"
19347 ></A
19348 >wins server (G)</DT
19349 ><DD
19350 ><P
19351 >This specifies the IP address (or DNS name: IP 
19352                 address for preference) of the WINS server that <A
19353 HREF="nmbd.8.html"
19354 TARGET="_top"
19355 >               nmbd(8)</A
19356 > should register with. If you have a WINS server on 
19357                 your network then you should set this to the WINS server's IP.</P
19358 ><P
19359 >You should point this at your WINS server if you have a
19360                 multi-subnetted network.</P
19361 ><P
19362 ><I
19363 CLASS="EMPHASIS"
19364 >NOTE</I
19365 >. You need to set up Samba to point 
19366                 to a WINS server if you have multiple subnets and wish cross-subnet 
19367                 browsing to work correctly.</P
19368 ><P
19369 >See the documentation file <TT
19370 CLASS="FILENAME"
19371 >BROWSING.txt</TT
19372
19373                 in the docs/ directory of your Samba source distribution.</P
19374 ><P
19375 >Default: <I
19376 CLASS="EMPHASIS"
19377 >not enabled</I
19378 ></P
19379 ><P
19380 >Example: <B
19381 CLASS="COMMAND"
19382 >wins server = 192.9.200.1</B
19383 ></P
19384 ></DD
19385 ><DT
19386 ><A
19387 NAME="WINSSUPPORT"
19388 ></A
19389 >wins support (G)</DT
19390 ><DD
19391 ><P
19392 >This boolean controls if the <A
19393 HREF="nmbd.8.html"
19394 TARGET="_top"
19395 >               
19396                 nmbd(8)</A
19397 > process in Samba will act as a WINS server. You should 
19398                 not set this to <TT
19399 CLASS="CONSTANT"
19400 >yes</TT
19401 > unless you have a multi-subnetted network and 
19402                 you wish a particular <B
19403 CLASS="COMMAND"
19404 >nmbd</B
19405 > to be your WINS server. 
19406                 Note that you should <I
19407 CLASS="EMPHASIS"
19408 >NEVER</I
19409 > set this to <TT
19410 CLASS="CONSTANT"
19411 >yes</TT
19412 >
19413                 on more than one machine in your network.</P
19414 ><P
19415 >Default: <B
19416 CLASS="COMMAND"
19417 >wins support = no</B
19418 ></P
19419 ></DD
19420 ><DT
19421 ><A
19422 NAME="WORKGROUP"
19423 ></A
19424 >workgroup (G)</DT
19425 ><DD
19426 ><P
19427 >This controls what workgroup your server will 
19428                 appear to be in when queried by clients. Note that this parameter 
19429                 also controls the Domain name used with the <A
19430 HREF="#SECURITYEQUALSDOMAIN"
19431 ><B
19432 CLASS="COMMAND"
19433 >security = domain</B
19434 ></A
19435 >
19436                 setting.</P
19437 ><P
19438 >Default: <I
19439 CLASS="EMPHASIS"
19440 >set at compile time to WORKGROUP</I
19441 ></P
19442 ><P
19443 >Example: <B
19444 CLASS="COMMAND"
19445 >workgroup = MYGROUP</B
19446 ></P
19447 ></DD
19448 ><DT
19449 ><A
19450 NAME="WRITABLE"
19451 ></A
19452 >writable (S)</DT
19453 ><DD
19454 ><P
19455 >Synonym for <A
19456 HREF="#WRITEABLE"
19457 ><TT
19458 CLASS="PARAMETER"
19459 ><I
19460 >               writeable</I
19461 ></TT
19462 ></A
19463 > for people who can't spell :-).</P
19464 ></DD
19465 ><DT
19466 ><A
19467 NAME="WRITECACHESIZE"
19468 ></A
19469 >write cache size (S)</DT
19470 ><DD
19471 ><P
19472 >If this integer parameter is set to non-zero value,
19473                 Samba will create an in-memory cache for each oplocked file 
19474                 (it does <I
19475 CLASS="EMPHASIS"
19476 >not</I
19477 > do this for 
19478                 non-oplocked files). All writes that the client does not request 
19479                 to be flushed directly to disk will be stored in this cache if possible. 
19480                 The cache is flushed onto disk when a write comes in whose offset 
19481                 would not fit into the cache or when the file is closed by the client. 
19482                 Reads for the file are also served from this cache if the data is stored 
19483                 within it.</P
19484 ><P
19485 >This cache allows Samba to batch client writes into a more 
19486                 efficient write size for RAID disks (i.e. writes may be tuned to 
19487                 be the RAID stripe size) and can improve performance on systems 
19488                 where the disk subsystem is a bottleneck but there is free 
19489                 memory for userspace programs.</P
19490 ><P
19491 >The integer parameter specifies the size of this cache 
19492                 (per oplocked file) in bytes.</P
19493 ><P
19494 >Default: <B
19495 CLASS="COMMAND"
19496 >write cache size = 0</B
19497 ></P
19498 ><P
19499 >Example: <B
19500 CLASS="COMMAND"
19501 >write cache size = 262144</B
19502 ></P
19503 ><P
19504 >for a 256k cache size per file.</P
19505 ></DD
19506 ><DT
19507 ><A
19508 NAME="WRITELIST"
19509 ></A
19510 >write list (S)</DT
19511 ><DD
19512 ><P
19513 >This is a list of users that are given read-write 
19514                 access to a service. If the connecting user is in this list then 
19515                 they will be given write access, no matter what the <A
19516 HREF="#READONLY"
19517 ><TT
19518 CLASS="PARAMETER"
19519 ><I
19520 >read only</I
19521 ></TT
19522 ></A
19523 >
19524                 option is set to. The list can include group names using the 
19525                 @group syntax.</P
19526 ><P
19527 >Note that if a user is in both the read list and the 
19528                 write list then they will be given write access.</P
19529 ><P
19530 >See also the <A
19531 HREF="#READLIST"
19532 ><TT
19533 CLASS="PARAMETER"
19534 ><I
19535 >read list
19536                 </I
19537 ></TT
19538 ></A
19539 > option.</P
19540 ><P
19541 >Default: <B
19542 CLASS="COMMAND"
19543 >write list = &#60;empty string&#62;
19544                 </B
19545 ></P
19546 ><P
19547 >Example: <B
19548 CLASS="COMMAND"
19549 >write list = admin, root, @staff
19550                 </B
19551 ></P
19552 ></DD
19553 ><DT
19554 ><A
19555 NAME="WINSPARTNERS"
19556 ></A
19557 >wins partners (G)</DT
19558 ><DD
19559 ><P
19560 >A space separated list of partners' IP addresses for 
19561                 WINS replication. WINS partners are always defined as push/pull 
19562                 partners as defining only one way WINS replication is unreliable. 
19563                 WINS replication is currently experimental and unreliable between 
19564                 samba servers.
19565                 </P
19566 ><P
19567 >Default: <B
19568 CLASS="COMMAND"
19569 >wins partners = </B
19570 ></P
19571 ><P
19572 >Example: <B
19573 CLASS="COMMAND"
19574 >wins partners = 192.168.0.1 172.16.1.2</B
19575 ></P
19576 ></DD
19577 ><DT
19578 ><A
19579 NAME="WRITEOK"
19580 ></A
19581 >write ok (S)</DT
19582 ><DD
19583 ><P
19584 >Inverted synonym for <A
19585 HREF="#READONLY"
19586 ><TT
19587 CLASS="PARAMETER"
19588 ><I
19589 >               read only</I
19590 ></TT
19591 ></A
19592 >.</P
19593 ></DD
19594 ><DT
19595 ><A
19596 NAME="WRITERAW"
19597 ></A
19598 >write raw (G)</DT
19599 ><DD
19600 ><P
19601 >This parameter controls whether or not the server 
19602                 will support raw write SMB's when transferring data from clients. 
19603                 You should never need to change this parameter.</P
19604 ><P
19605 >Default: <B
19606 CLASS="COMMAND"
19607 >write raw = yes</B
19608 ></P
19609 ></DD
19610 ><DT
19611 ><A
19612 NAME="WRITEABLE"
19613 ></A
19614 >writeable (S)</DT
19615 ><DD
19616 ><P
19617 >Inverted synonym for <A
19618 HREF="#READONLY"
19619 ><TT
19620 CLASS="PARAMETER"
19621 ><I
19622 >               read only</I
19623 ></TT
19624 ></A
19625 >.</P
19626 ></DD
19627 ></DL
19628 ></DIV
19629 ></DIV
19630 ><DIV
19631 CLASS="REFSECT1"
19632 ><A
19633 NAME="AEN6215"
19634 ></A
19635 ><H2
19636 >WARNINGS</H2
19637 ><P
19638 >Although the configuration file permits service names 
19639         to contain spaces, your client software may not. Spaces will 
19640         be ignored in comparisons anyway, so it shouldn't be a 
19641         problem - but be aware of the possibility.</P
19642 ><P
19643 >On a similar note, many clients - especially DOS clients - 
19644         limit service names to eight characters. <A
19645 HREF="smbd.8.html"
19646 TARGET="_top"
19647 >smbd(8)
19648         </A
19649 > has no such limitation, but attempts to connect from such 
19650         clients will fail if they truncate the service names.  For this reason 
19651         you should probably keep your service names down to eight characters 
19652         in length.</P
19653 ><P
19654 >Use of the [homes] and [printers] special sections make life 
19655         for an administrator easy, but the various combinations of default 
19656         attributes can be tricky. Take extreme care when designing these 
19657         sections. In particular, ensure that the permissions on spool 
19658         directories are correct.</P
19659 ></DIV
19660 ><DIV
19661 CLASS="REFSECT1"
19662 ><A
19663 NAME="AEN6221"
19664 ></A
19665 ><H2
19666 >VERSION</H2
19667 ><P
19668 >This man page is correct for version 3.0 of 
19669         the Samba suite.</P
19670 ></DIV
19671 ><DIV
19672 CLASS="REFSECT1"
19673 ><A
19674 NAME="AEN6224"
19675 ></A
19676 ><H2
19677 >SEE ALSO</H2
19678 ><P
19679 ><A
19680 HREF="samba.7.html"
19681 TARGET="_top"
19682 >samba(7)</A
19683 >,
19684         <A
19685 HREF="smbpasswd.8.html"
19686 TARGET="_top"
19687 ><B
19688 CLASS="COMMAND"
19689 >smbpasswd(8)</B
19690 ></A
19691 >,
19692         <A
19693 HREF="swat.8.html"
19694 TARGET="_top"
19695 ><B
19696 CLASS="COMMAND"
19697 >swat(8)</B
19698 ></A
19699 >,
19700         <A
19701 HREF="smbd.8.html"
19702 TARGET="_top"
19703 ><B
19704 CLASS="COMMAND"
19705 >smbd(8)</B
19706 ></A
19707 >, 
19708         <A
19709 HREF="nmbd.8.html"
19710 TARGET="_top"
19711 ><B
19712 CLASS="COMMAND"
19713 >nmbd(8)</B
19714 ></A
19715 >, 
19716         <A
19717 HREF="smbclient.1.html"
19718 TARGET="_top"
19719 ><B
19720 CLASS="COMMAND"
19721 >smbclient(1)</B
19722 ></A
19723 >, 
19724         <A
19725 HREF="nmblookup.1.html"
19726 TARGET="_top"
19727 ><B
19728 CLASS="COMMAND"
19729 >nmblookup(1)</B
19730 ></A
19731 >,
19732         <A
19733 HREF="testparm.1.html"
19734 TARGET="_top"
19735 ><B
19736 CLASS="COMMAND"
19737 >testparm(1)</B
19738 ></A
19739 >, 
19740         <A
19741 HREF="testprns.1.html"
19742 TARGET="_top"
19743 ><B
19744 CLASS="COMMAND"
19745 >testprns(1)</B
19746 ></A
19747 >
19748         </P
19749 ></DIV
19750 ><DIV
19751 CLASS="REFSECT1"
19752 ><A
19753 NAME="AEN6244"
19754 ></A
19755 ><H2
19756 >AUTHOR</H2
19757 ><P
19758 >The original Samba software and related utilities 
19759         were created by Andrew Tridgell. Samba is now developed
19760         by the Samba Team as an Open Source project similar 
19761         to the way the Linux kernel is developed.</P
19762 ><P
19763 >The original Samba man pages were written by Karl Auer. 
19764         The man page sources were converted to YODL format (another 
19765         excellent piece of Open Source software, available at
19766         <A
19767 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
19768 TARGET="_top"
19769 >       ftp://ftp.icce.rug.nl/pub/unix/</A
19770 >) and updated for the Samba 2.0 
19771         release by Jeremy Allison.  The conversion to DocBook for 
19772         Samba 2.2 was done by Gerald Carter</P
19773 ></DIV
19774 ></BODY
19775 ></HTML
19776 >