Regenerate
[ira/wip.git] / docs / htmldocs / smb.conf.5.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >smb.conf</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.77+"></HEAD
9 ><BODY
10 CLASS="REFENTRY"
11 BGCOLOR="#FFFFFF"
12 TEXT="#000000"
13 LINK="#0000FF"
14 VLINK="#840084"
15 ALINK="#0000FF"
16 ><H1
17 ><A
18 NAME="SMB.CONF.5"
19 ></A
20 >smb.conf</H1
21 ><DIV
22 CLASS="REFNAMEDIV"
23 ><A
24 NAME="AEN5"
25 ></A
26 ><H2
27 >Name</H2
28 >smb.conf&nbsp;--&nbsp;The configuration file for the Samba suite</DIV
29 ><DIV
30 CLASS="REFSECT1"
31 ><A
32 NAME="AEN8"
33 ></A
34 ><H2
35 >SYNOPSIS</H2
36 ><P
37 >The <TT
38 CLASS="FILENAME"
39 >smb.conf</TT
40 > file is a configuration  
41         file for the Samba suite. <TT
42 CLASS="FILENAME"
43 >smb.conf</TT
44 > contains  
45         runtime configuration information for the Samba programs. The <TT
46 CLASS="FILENAME"
47 >smb.conf</TT
48 > file 
49         is designed to be configured and  administered by the <SPAN
50 CLASS="CITEREFENTRY"
51 ><SPAN
52 CLASS="REFENTRYTITLE"
53 >swat</SPAN
54 >(8)</SPAN
55 > program. The complete
56         description of the file format and possible parameters held within
57         are here for reference purposes.</P
58 ></DIV
59 ><DIV
60 CLASS="REFSECT1"
61 ><A
62 NAME="AEN17"
63 ></A
64 ><H2
65 >FILE FORMAT</H2
66 ><P
67 >The file consists of sections and parameters. A section 
68         begins with the name of the section in square brackets and continues 
69         until the next section begins. Sections contain parameters of the 
70         form</P
71 ><P
72 ><TT
73 CLASS="REPLACEABLE"
74 ><I
75 >name</I
76 ></TT
77 > = <TT
78 CLASS="REPLACEABLE"
79 ><I
80 >value
81         </I
82 ></TT
83 ></P
84 ><P
85 >The file is line-based - that is, each newline-terminated 
86         line represents either a comment, a section name or a parameter.</P
87 ><P
88 >Section and parameter names are not case sensitive.</P
89 ><P
90 >Only the first equals sign in a parameter is significant. 
91         Whitespace before or after the first equals sign is discarded.
92         Leading, trailing and internal whitespace in section and parameter 
93         names is irrelevant. Leading and trailing whitespace in a parameter 
94         value is discarded. Internal whitespace within a parameter value 
95         is retained verbatim.</P
96 ><P
97 >Any line beginning with a semicolon (';') or a hash ('#') 
98         character is ignored, as are lines containing only whitespace.</P
99 ><P
100 >Any line ending in a '\' is continued
101         on the next line in the customary UNIX fashion.</P
102 ><P
103 >The values following the equals sign in parameters are all 
104         either a string (no quotes needed) or a boolean, which may be given 
105         as yes/no, 0/1 or true/false. Case is not significant in boolean 
106         values, but is preserved in string values. Some items such as 
107         create modes are numeric.</P
108 ></DIV
109 ><DIV
110 CLASS="REFSECT1"
111 ><A
112 NAME="AEN29"
113 ></A
114 ><H2
115 >SECTION DESCRIPTIONS</H2
116 ><P
117 >Each section in the configuration file (except for the
118         [global] section) describes a shared resource (known
119         as a "share"). The section name is the name of the 
120         shared resource and the parameters within the section define 
121         the shares attributes.</P
122 ><P
123 >There are three special sections, [global],
124         [homes] and [printers], which are
125         described under <SPAN
126 CLASS="emphasis"
127 ><I
128 CLASS="EMPHASIS"
129 >special sections</I
130 ></SPAN
131 >. The
132         following notes apply to ordinary section descriptions.</P
133 ><P
134 >A share consists of a directory to which access is being 
135         given plus a description of the access rights which are granted 
136         to the user of the service. Some housekeeping options are 
137         also specifiable.</P
138 ><P
139 >Sections are either file share services (used by the 
140         client as an extension of their native file systems) or 
141         printable services (used by the client to access print services 
142         on the host running the server).</P
143 ><P
144 >Sections may be designated <SPAN
145 CLASS="emphasis"
146 ><I
147 CLASS="EMPHASIS"
148 >guest</I
149 ></SPAN
150 > services,
151         in which case no password is required to access them. A specified 
152         UNIX <SPAN
153 CLASS="emphasis"
154 ><I
155 CLASS="EMPHASIS"
156 >guest account</I
157 ></SPAN
158 > is used to define access
159         privileges in this case.</P
160 ><P
161 >Sections other than guest services will require a password 
162         to access them. The client provides the username. As older clients 
163         only provide passwords and not usernames, you may specify a list 
164         of usernames to check against the password using the "user =" 
165         option in the share definition. For modern clients such as 
166         Windows 95/98/ME/NT/2000, this should not be necessary.</P
167 ><P
168 >Note that the access rights granted by the server are 
169         masked by the access rights granted to the specified or guest 
170         UNIX user by the host system. The server does not grant more
171         access than the host system grants.</P
172 ><P
173 >The following sample section defines a file space share. 
174         The user has write access to the path <TT
175 CLASS="FILENAME"
176 >/home/bar</TT
177 >. 
178         The share is accessed via the share name "foo":</P
179 ><PRE
180 CLASS="SCREEN"
181 ><TT
182 CLASS="COMPUTEROUTPUT"
183 >[foo]
184         path = /home/bar
185         read only = no</TT
186 ></PRE
187 ><P
188 >The following sample section defines a printable share. 
189         The share is readonly, but printable. That is, the only write 
190         access permitted is via calls to open, write to and close a 
191         spool file. The <SPAN
192 CLASS="emphasis"
193 ><I
194 CLASS="EMPHASIS"
195 >guest ok</I
196 ></SPAN
197 > parameter means 
198         access will be permitted as the default guest user (specified 
199         elsewhere):</P
200 ><PRE
201 CLASS="SCREEN"
202 ><TT
203 CLASS="COMPUTEROUTPUT"
204 >[aprinter]
205         path = /usr/spool/public
206         read only = yes
207         printable = yes
208         guest ok = yes</TT
209 ></PRE
210 ></DIV
211 ><DIV
212 CLASS="REFSECT1"
213 ><A
214 NAME="AEN49"
215 ></A
216 ><H2
217 >SPECIAL SECTIONS</H2
218 ><DIV
219 CLASS="REFSECT2"
220 ><A
221 NAME="AEN51"
222 ></A
223 ><H3
224 >The [global] section</H3
225 ><P
226 >parameters in this section apply to the server 
227                 as a whole, or are defaults for sections which do not 
228                 specifically define certain items. See the notes
229                 under PARAMETERS for more information.</P
230 ></DIV
231 ><DIV
232 CLASS="REFSECT2"
233 ><A
234 NAME="AEN54"
235 ></A
236 ><H3
237 >The [homes] section</H3
238 ><P
239 >If a section called homes is included in the 
240                 configuration file, services connecting clients to their 
241                 home directories can be created on the fly by the server.</P
242 ><P
243 >When the connection request is made, the existing 
244                 sections are scanned. If a match is found, it is used. If no 
245                 match is found, the requested section name is treated as a 
246                 user name and looked up in the local password file. If the 
247                 name exists and the correct password has been given, a share is 
248                 created by cloning the [homes] section.</P
249 ><P
250 >Some modifications are then made to the newly 
251                 created share:</P
252 ><P
253 ></P
254 ><UL
255 ><LI
256 ><P
257 >The share name is changed from homes to 
258                 the located username.</P
259 ></LI
260 ><LI
261 ><P
262 >If no path was given, the path is set to
263                 the user's home directory.</P
264 ></LI
265 ></UL
266 ><P
267 >If you decide to use a <SPAN
268 CLASS="emphasis"
269 ><I
270 CLASS="EMPHASIS"
271 >path =</I
272 ></SPAN
273 > line 
274                 in your [homes] section then you may find it useful 
275                 to use the %S macro. For example :</P
276 ><P
277 ><TT
278 CLASS="USERINPUT"
279 ><B
280 >path = /data/pchome/%S</B
281 ></TT
282 ></P
283 ><P
284 >would be useful if you have different home directories 
285                 for your PCs than for UNIX access.</P
286 ><P
287 >This is a fast and simple way to give a large number 
288                 of clients access to their home directories with a minimum 
289                 of fuss.</P
290 ><P
291 >A similar process occurs if the requested section 
292                 name is "homes", except that the share name is not 
293                 changed to that of the requesting user. This method of using
294                 the [homes] section works well if different users share 
295                 a client PC.</P
296 ><P
297 >The [homes] section can specify all the parameters 
298                 a normal service section can specify, though some make more sense 
299                 than others. The following is a typical and suitable [homes]
300                 section:</P
301 ><PRE
302 CLASS="SCREEN"
303 ><TT
304 CLASS="COMPUTEROUTPUT"
305 >[homes]
306         read only = no</TT
307 ></PRE
308 ><P
309 >An important point is that if guest access is specified 
310                 in the [homes] section, all home directories will be 
311                 visible to all clients <SPAN
312 CLASS="emphasis"
313 ><I
314 CLASS="EMPHASIS"
315 >without a password</I
316 ></SPAN
317 >. 
318                 In the very unlikely event that this is actually desirable, it 
319                 would be wise to also specify <SPAN
320 CLASS="emphasis"
321 ><I
322 CLASS="EMPHASIS"
323 >read only
324                 access</I
325 ></SPAN
326 >.</P
327 ><P
328 >Note that the <SPAN
329 CLASS="emphasis"
330 ><I
331 CLASS="EMPHASIS"
332 >browseable</I
333 ></SPAN
334 > flag for 
335                 auto home directories will be inherited from the global browseable 
336                 flag, not the [homes] browseable flag. This is useful as 
337                 it means setting <SPAN
338 CLASS="emphasis"
339 ><I
340 CLASS="EMPHASIS"
341 >browseable = no</I
342 ></SPAN
343 > in
344                 the [homes] section will hide the [homes] share but make
345                 any auto home directories visible.</P
346 ></DIV
347 ><DIV
348 CLASS="REFSECT2"
349 ><A
350 NAME="AEN80"
351 ></A
352 ><H3
353 >The [printers] section</H3
354 ><P
355 >This section works like [homes], 
356                 but for printers.</P
357 ><P
358 >If a [printers] section occurs in the 
359                 configuration file, users are able to connect to any printer 
360                 specified in the local host's printcap file.</P
361 ><P
362 >When a connection request is made, the existing sections 
363                 are scanned. If a match is found, it is used. If no match is found, 
364                 but a [homes] section exists, it is used as described
365                 above. Otherwise, the requested section name is treated as a
366                 printer name and the appropriate printcap file is scanned to see 
367                 if the requested section name is a valid printer share name. If 
368                 a match is found, a new printer share is created by cloning 
369                 the [printers] section.</P
370 ><P
371 >A few modifications are then made to the newly created 
372                 share:</P
373 ><P
374 ></P
375 ><UL
376 ><LI
377 ><P
378 >The share name is set to the located printer 
379                 name</P
380 ></LI
381 ><LI
382 ><P
383 >If no printer name was given, the printer name 
384                 is set to the located printer name</P
385 ></LI
386 ><LI
387 ><P
388 >If the share does not permit guest access and 
389                 no username was given, the username is set to the located 
390                 printer name.</P
391 ></LI
392 ></UL
393 ><P
394 >Note that the [printers] service MUST be 
395                 printable - if you specify otherwise, the server will refuse 
396                 to load the configuration file.</P
397 ><P
398 >Typically the path specified would be that of a 
399                 world-writeable spool directory with the sticky bit set on 
400                 it. A typical [printers] entry would look like 
401                 this:</P
402 ><PRE
403 CLASS="SCREEN"
404 ><TT
405 CLASS="COMPUTEROUTPUT"
406 >[printers]
407         path = /usr/spool/public
408         guest ok = yes
409         printable = yes </TT
410 ></PRE
411 ><P
412 >All aliases given for a printer in the printcap file 
413                 are legitimate printer names as far as the server is concerned. 
414                 If your printing subsystem doesn't work like that, you will have 
415                 to set up a pseudo-printcap. This is a file consisting of one or 
416                 more lines like this:</P
417 ><PRE
418 CLASS="SCREEN"
419 ><TT
420 CLASS="COMPUTEROUTPUT"
421 >alias|alias|alias|alias...    </TT
422 ></PRE
423 ><P
424 >Each alias should be an acceptable printer name for 
425                 your printing subsystem. In the [global] section, specify 
426                 the new file as your printcap.  The server will then only recognize 
427                 names found in your pseudo-printcap, which of course can contain 
428                 whatever aliases you like. The same technique could be used 
429                 simply to limit access to a subset of your local printers.</P
430 ><P
431 >An alias, by the way, is defined as any component of the 
432                 first entry of a printcap record. Records are separated by newlines,
433                 components (if there are more than one) are separated by vertical 
434                 bar symbols ('|').</P
435 ><P
436 >NOTE: On SYSV systems which use lpstat to determine what 
437                 printers are defined on the system you may be able to use
438                 "printcap name = lpstat" to automatically obtain a list 
439                 of printers. See the "printcap name" option 
440                 for more details.</P
441 ></DIV
442 ></DIV
443 ><DIV
444 CLASS="REFSECT1"
445 ><A
446 NAME="AEN103"
447 ></A
448 ><H2
449 >PARAMETERS</H2
450 ><P
451 >parameters define the specific attributes of sections.</P
452 ><P
453 >Some parameters are specific to the [global] section
454         (e.g., <SPAN
455 CLASS="emphasis"
456 ><I
457 CLASS="EMPHASIS"
458 >security</I
459 ></SPAN
460 >).  Some parameters are usable 
461         in all sections (e.g., <SPAN
462 CLASS="emphasis"
463 ><I
464 CLASS="EMPHASIS"
465 >create mode</I
466 ></SPAN
467 >). All others 
468         are permissible only in normal sections. For the purposes of the 
469         following descriptions the [homes] and [printers]
470         sections will be considered normal.  The letter <SPAN
471 CLASS="emphasis"
472 ><I
473 CLASS="EMPHASIS"
474 >G</I
475 ></SPAN
476
477         in parentheses indicates that a parameter is specific to the
478         [global] section. The letter <SPAN
479 CLASS="emphasis"
480 ><I
481 CLASS="EMPHASIS"
482 >S</I
483 ></SPAN
484 >
485         indicates that a parameter can be specified in a service specific
486         section. Note that all <SPAN
487 CLASS="emphasis"
488 ><I
489 CLASS="EMPHASIS"
490 >S</I
491 ></SPAN
492 > parameters can also be specified in 
493         the [global] section - in which case they will define
494         the default behavior for all services.</P
495 ><P
496 >parameters are arranged here in alphabetical order - this may 
497         not create best bedfellows, but at least you can find them! Where
498         there are synonyms, the preferred synonym is described, others refer 
499         to the preferred synonym.</P
500 ></DIV
501 ><DIV
502 CLASS="REFSECT1"
503 ><A
504 NAME="AEN113"
505 ></A
506 ><H2
507 >VARIABLE SUBSTITUTIONS</H2
508 ><P
509 >Many of the strings that are settable in the config file 
510         can take substitutions. For example the option "path =
511         /tmp/%u" would be interpreted as "path = 
512         /tmp/john" if the user connected with the username john.</P
513 ><P
514 >These substitutions are mostly noted in the descriptions below, 
515         but there are some general substitutions which apply whenever they 
516         might be relevant. These are:</P
517 ><P
518 ></P
519 ><DIV
520 CLASS="VARIABLELIST"
521 ><DL
522 ><DT
523 >%U</DT
524 ><DD
525 ><P
526 >session user name (the user name that the client 
527                 wanted, not necessarily the same as the one they got).</P
528 ></DD
529 ><DT
530 >%G</DT
531 ><DD
532 ><P
533 >primary group name of %U.</P
534 ></DD
535 ><DT
536 >%h</DT
537 ><DD
538 ><P
539 >the Internet hostname that Samba is running 
540                 on.</P
541 ></DD
542 ><DT
543 >%m</DT
544 ><DD
545 ><P
546 >the NetBIOS name of the client machine 
547                 (very useful).</P
548 ></DD
549 ><DT
550 >%L</DT
551 ><DD
552 ><P
553 >the NetBIOS name of the server. This allows you 
554                 to change your config based on what the client calls you. Your 
555                 server can have a "dual personality".</P
556 ><P
557 >Note that this parameter is not available when Samba listens
558                 on port 445, as clients no longer send this information </P
559 ></DD
560 ><DT
561 >%M</DT
562 ><DD
563 ><P
564 >the Internet name of the client machine.
565                 </P
566 ></DD
567 ><DT
568 >%R</DT
569 ><DD
570 ><P
571 >the selected protocol level after 
572                 protocol negotiation. It can be one of CORE, COREPLUS, 
573                 LANMAN1, LANMAN2 or NT1.</P
574 ></DD
575 ><DT
576 >%d</DT
577 ><DD
578 ><P
579 >The process id of the current server
580                 process.</P
581 ></DD
582 ><DT
583 >%a</DT
584 ><DD
585 ><P
586 >the architecture of the remote
587                 machine. Only some are recognized, and those may not be 
588                 100% reliable. It currently recognizes Samba, WfWg, Win95,
589                 WinNT and Win2k. Anything else will be known as 
590                 "UNKNOWN". If it gets it wrong then sending a level 
591                 3 log to <A
592 HREF="mailto:samba@samba.org"
593 TARGET="_top"
594 >samba@samba.org
595                 </A
596 > should allow it to be fixed.</P
597 ></DD
598 ><DT
599 >%I</DT
600 ><DD
601 ><P
602 >The IP address of the client machine.</P
603 ></DD
604 ><DT
605 >%T</DT
606 ><DD
607 ><P
608 >the current date and time.</P
609 ></DD
610 ><DT
611 >%D</DT
612 ><DD
613 ><P
614 >Name of the domain or workgroup of the current user.</P
615 ></DD
616 ><DT
617 >%$(<TT
618 CLASS="REPLACEABLE"
619 ><I
620 >envvar</I
621 ></TT
622 >)</DT
623 ><DD
624 ><P
625 >The value of the environment variable
626                 <TT
627 CLASS="REPLACEABLE"
628 ><I
629 >envar</I
630 ></TT
631 >.</P
632 ></DD
633 ></DL
634 ></DIV
635 ><P
636 >The following substitutes apply only to some configuration options(only those 
637         that are used when a connection has been established):</P
638 ><P
639 ></P
640 ><DIV
641 CLASS="VARIABLELIST"
642 ><DL
643 ><DT
644 >%S</DT
645 ><DD
646 ><P
647 >the name of the current service, if any.</P
648 ></DD
649 ><DT
650 >%P</DT
651 ><DD
652 ><P
653 >the root directory of the current service, 
654                 if any.</P
655 ></DD
656 ><DT
657 >%u</DT
658 ><DD
659 ><P
660 >user name of the current service, if any.</P
661 ></DD
662 ><DT
663 >%g</DT
664 ><DD
665 ><P
666 >primary group name of %u.</P
667 ></DD
668 ><DT
669 >%H</DT
670 ><DD
671 ><P
672 >the home directory of the user given 
673                 by %u.</P
674 ></DD
675 ><DT
676 >%N</DT
677 ><DD
678 ><P
679 >the name of your NIS home directory server.  
680                 This is obtained from your NIS auto.map entry.  If you have 
681                 not compiled Samba with the <SPAN
682 CLASS="emphasis"
683 ><I
684 CLASS="EMPHASIS"
685 >--with-automount</I
686 ></SPAN
687
688                 option then this value will be the same as %L.</P
689 ></DD
690 ><DT
691 >%p</DT
692 ><DD
693 ><P
694 >the path of the service's home directory, 
695                 obtained from your NIS auto.map entry. The NIS auto.map entry 
696                 is split up as "%N:%p".</P
697 ></DD
698 ></DL
699 ></DIV
700 ><P
701 >There are some quite creative things that can be done 
702         with these substitutions and other smb.conf options.</P
703 ></DIV
704 ><DIV
705 CLASS="REFSECT1"
706 ><A
707 NAME="AEN206"
708 ></A
709 ><H2
710 >NAME MANGLING</H2
711 ><P
712 >Samba supports "name mangling" so that DOS and 
713         Windows clients can use files that don't conform to the 8.3 format. 
714         It can also be set to adjust the case of 8.3 format filenames.</P
715 ><P
716 >There are several options that control the way mangling is 
717         performed, and they are grouped here rather than listed separately. 
718         For the defaults look at the output of the testparm program. </P
719 ><P
720 >All of these options can be set separately for each service 
721         (or globally, of course). </P
722 ><P
723 >The options are: </P
724 ><P
725 ></P
726 ><DIV
727 CLASS="VARIABLELIST"
728 ><DL
729 ><DT
730 >mangle case = yes/no</DT
731 ><DD
732 ><P
733 > controls if names that have characters that 
734                 aren't of the "default" case are mangled. For example, 
735                 if this is yes then a name like "Mail" would be mangled. 
736                 Default <SPAN
737 CLASS="emphasis"
738 ><I
739 CLASS="EMPHASIS"
740 >no</I
741 ></SPAN
742 >.</P
743 ></DD
744 ><DT
745 >case sensitive = yes/no</DT
746 ><DD
747 ><P
748 >controls whether filenames are case sensitive. If 
749                 they aren't then Samba must do a filename search and match on passed 
750                 names. Default <SPAN
751 CLASS="emphasis"
752 ><I
753 CLASS="EMPHASIS"
754 >no</I
755 ></SPAN
756 >.</P
757 ></DD
758 ><DT
759 >default case = upper/lower</DT
760 ><DD
761 ><P
762 >controls what the default case is for new 
763                 filenames. Default <SPAN
764 CLASS="emphasis"
765 ><I
766 CLASS="EMPHASIS"
767 >lower</I
768 ></SPAN
769 >.</P
770 ></DD
771 ><DT
772 >preserve case = yes/no</DT
773 ><DD
774 ><P
775 >controls if new files are created with the 
776                 case that the client passes, or if they are forced to be the 
777                 "default" case. Default <SPAN
778 CLASS="emphasis"
779 ><I
780 CLASS="EMPHASIS"
781 >yes</I
782 ></SPAN
783 >.
784                 </P
785 ></DD
786 ><DT
787 >short preserve case = yes/no</DT
788 ><DD
789 ><P
790 >controls if new files which conform to 8.3 syntax,
791                 that is all in upper case and of suitable length, are created 
792                 upper case, or if they are forced to be the "default" 
793                 case. This option can be use with "preserve case = yes" 
794                 to permit long filenames to retain their case, while short names 
795                 are lowercased. Default <SPAN
796 CLASS="emphasis"
797 ><I
798 CLASS="EMPHASIS"
799 >yes</I
800 ></SPAN
801 >.</P
802 ></DD
803 ></DL
804 ></DIV
805 ><P
806 >By default, Samba 3.0 has the same semantics as a Windows 
807         NT server, in that it is case insensitive but case preserving.</P
808 ></DIV
809 ><DIV
810 CLASS="REFSECT1"
811 ><A
812 NAME="AEN239"
813 ></A
814 ><H2
815 >NOTE ABOUT USERNAME/PASSWORD VALIDATION</H2
816 ><P
817 >There are a number of ways in which a user can connect 
818         to a service. The server uses the following steps in determining 
819         if it will allow a connection to a specified service. If all the 
820         steps fail, then the connection request is rejected.  However, if one of the 
821         steps succeeds, then the following steps are not checked.</P
822 ><P
823 >If the service is marked "guest only = yes" and the
824         server is running with share-level security ("security = share")
825         then steps 1 to 5 are skipped.</P
826 ><P
827 ></P
828 ><OL
829 TYPE="1"
830 ><LI
831 ><P
832 >If the client has passed a username/password 
833                 pair and that username/password pair is validated by the UNIX 
834                 system's password programs then the connection is made as that 
835                 username. Note that this includes the 
836                 \\server\service%<TT
837 CLASS="REPLACEABLE"
838 ><I
839 >username</I
840 ></TT
841 > method of passing 
842                 a username.</P
843 ></LI
844 ><LI
845 ><P
846 >If the client has previously registered a username 
847                 with the system and now supplies a correct password for that 
848                 username then the connection is allowed.</P
849 ></LI
850 ><LI
851 ><P
852 >The client's NetBIOS name and any previously 
853                 used user names are checked against the supplied password, if 
854                 they match then the connection is allowed as the corresponding 
855                 user.</P
856 ></LI
857 ><LI
858 ><P
859 >If the client has previously validated a
860                 username/password pair with the server and the client has passed 
861                 the validation token then that username is used. </P
862 ></LI
863 ><LI
864 ><P
865 >If a "user = " field is given in the
866                 <TT
867 CLASS="FILENAME"
868 >smb.conf</TT
869 > file for the service and the client 
870                 has supplied a password, and that password matches (according to 
871                 the UNIX system's password checking) with one of the usernames 
872                 from the "user =" field then the connection is made as 
873                 the username in the "user =" line. If one 
874                 of the username in the "user =" list begins with a
875                 '@' then that name expands to a list of names in 
876                 the group of the same name.</P
877 ></LI
878 ><LI
879 ><P
880 >If the service is a guest service then a 
881                 connection is made as the username given in the "guest 
882                 account =" for the service, irrespective of the 
883                 supplied password.</P
884 ></LI
885 ></OL
886 ></DIV
887 ><DIV
888 CLASS="REFSECT1"
889 ><A
890 NAME="AEN258"
891 ></A
892 ><H2
893 >COMPLETE LIST OF GLOBAL PARAMETERS</H2
894 ><P
895 >Here is a list of all global parameters. See the section of 
896         each parameter for details.  Note that some are synonyms.</P
897 ><P
898 ></P
899 ><UL
900 ><LI
901 ><P
902 ><A
903 HREF="#ABORTSHUTDOWNSCRIPT"
904 ><TT
905 CLASS="PARAMETER"
906 ><I
907 >abort shutdown script</I
908 ></TT
909 ></A
910 ></P
911 ></LI
912 ><LI
913 ><P
914 ><A
915 HREF="#ADDGROUPSCRIPT"
916 ><TT
917 CLASS="PARAMETER"
918 ><I
919 >add group script</I
920 ></TT
921 ></A
922 ></P
923 ></LI
924 ><LI
925 ><P
926 ><A
927 HREF="#ADDPRINTERCOMMAND"
928 ><TT
929 CLASS="PARAMETER"
930 ><I
931 >addprinter command</I
932 ></TT
933 ></A
934 ></P
935 ></LI
936 ><LI
937 ><P
938 ><A
939 HREF="#ADDSHARECOMMAND"
940 ><TT
941 CLASS="PARAMETER"
942 ><I
943 >add share command</I
944 ></TT
945 ></A
946 ></P
947 ></LI
948 ><LI
949 ><P
950 ><A
951 HREF="#ADDUSERSCRIPT"
952 ><TT
953 CLASS="PARAMETER"
954 ><I
955 >add user script</I
956 ></TT
957 ></A
958 ></P
959 ></LI
960 ><LI
961 ><P
962 ><A
963 HREF="#ADDUSERTOGROUPSCRIPT"
964 ><TT
965 CLASS="PARAMETER"
966 ><I
967 >add user to group script</I
968 ></TT
969 ></A
970 ></P
971 ></LI
972 ><LI
973 ><P
974 ><A
975 HREF="#ADDMACHINESCRIPT"
976 ><TT
977 CLASS="PARAMETER"
978 ><I
979 >add machine script</I
980 ></TT
981 ></A
982 ></P
983 ></LI
984 ><LI
985 ><P
986 ><A
987 HREF="#DELETEGROUPSCRIPT"
988 ><TT
989 CLASS="PARAMETER"
990 ><I
991 >delete group script</I
992 ></TT
993 ></A
994 ></P
995 ></LI
996 ><LI
997 ><P
998 ><A
999 HREF="#ADSSERVER"
1000 ><TT
1001 CLASS="PARAMETER"
1002 ><I
1003 >ads server</I
1004 ></TT
1005 ></A
1006 ></P
1007 ></LI
1008 ><LI
1009 ><P
1010 ><A
1011 HREF="#ALGORITHMICRIDBASE"
1012 ><TT
1013 CLASS="PARAMETER"
1014 ><I
1015 >algorithmic rid base</I
1016 ></TT
1017 ></A
1018 ></P
1019 ></LI
1020 ><LI
1021 ><P
1022 ><A
1023 HREF="#ALLOWTRUSTEDDOMAINS"
1024 ><TT
1025 CLASS="PARAMETER"
1026 ><I
1027 >allow trusted domains</I
1028 ></TT
1029 ></A
1030 ></P
1031 ></LI
1032 ><LI
1033 ><P
1034 ><A
1035 HREF="#ANNOUNCEAS"
1036 ><TT
1037 CLASS="PARAMETER"
1038 ><I
1039 >announce as</I
1040 ></TT
1041 ></A
1042 ></P
1043 ></LI
1044 ><LI
1045 ><P
1046 ><A
1047 HREF="#ANNOUNCEVERSION"
1048 ><TT
1049 CLASS="PARAMETER"
1050 ><I
1051 >announce version</I
1052 ></TT
1053 ></A
1054 ></P
1055 ></LI
1056 ><LI
1057 ><P
1058 ><A
1059 HREF="#AUTHMETHODS"
1060 ><TT
1061 CLASS="PARAMETER"
1062 ><I
1063 >auth methods</I
1064 ></TT
1065 ></A
1066 ></P
1067 ></LI
1068 ><LI
1069 ><P
1070 ><A
1071 HREF="#AUTOSERVICES"
1072 ><TT
1073 CLASS="PARAMETER"
1074 ><I
1075 >auto services</I
1076 ></TT
1077 ></A
1078 ></P
1079 ></LI
1080 ><LI
1081 ><P
1082 ><A
1083 HREF="#BINDINTERFACESONLY"
1084 ><TT
1085 CLASS="PARAMETER"
1086 ><I
1087 >bind interfaces only</I
1088 ></TT
1089 ></A
1090 ></P
1091 ></LI
1092 ><LI
1093 ><P
1094 ><A
1095 HREF="#BROWSELIST"
1096 ><TT
1097 CLASS="PARAMETER"
1098 ><I
1099 >browse list</I
1100 ></TT
1101 ></A
1102 ></P
1103 ></LI
1104 ><LI
1105 ><P
1106 ><A
1107 HREF="#CHANGENOTIFYTIMEOUT"
1108 ><TT
1109 CLASS="PARAMETER"
1110 ><I
1111 >change notify timeout</I
1112 ></TT
1113 ></A
1114 ></P
1115 ></LI
1116 ><LI
1117 ><P
1118 ><A
1119 HREF="#CHANGESHARECOMMAND"
1120 ><TT
1121 CLASS="PARAMETER"
1122 ><I
1123 >change share command</I
1124 ></TT
1125 ></A
1126 ></P
1127 ></LI
1128 ><LI
1129 ><P
1130 ><A
1131 HREF="#CONFIGFILE"
1132 ><TT
1133 CLASS="PARAMETER"
1134 ><I
1135 >config file</I
1136 ></TT
1137 ></A
1138 ></P
1139 ></LI
1140 ><LI
1141 ><P
1142 ><A
1143 HREF="#DEADTIME"
1144 ><TT
1145 CLASS="PARAMETER"
1146 ><I
1147 >deadtime</I
1148 ></TT
1149 ></A
1150 ></P
1151 ></LI
1152 ><LI
1153 ><P
1154 ><A
1155 HREF="#DEBUGHIRESTIMESTAMP"
1156 ><TT
1157 CLASS="PARAMETER"
1158 ><I
1159 >debug hires timestamp</I
1160 ></TT
1161 ></A
1162 ></P
1163 ></LI
1164 ><LI
1165 ><P
1166 ><A
1167 HREF="#DEBUGPID"
1168 ><TT
1169 CLASS="PARAMETER"
1170 ><I
1171 >debug pid</I
1172 ></TT
1173 ></A
1174 ></P
1175 ></LI
1176 ><LI
1177 ><P
1178 ><A
1179 HREF="#DEBUGTIMESTAMP"
1180 ><TT
1181 CLASS="PARAMETER"
1182 ><I
1183 >debug timestamp</I
1184 ></TT
1185 ></A
1186 ></P
1187 ></LI
1188 ><LI
1189 ><P
1190 ><A
1191 HREF="#DEBUGUID"
1192 ><TT
1193 CLASS="PARAMETER"
1194 ><I
1195 >debug uid</I
1196 ></TT
1197 ></A
1198 ></P
1199 ></LI
1200 ><LI
1201 ><P
1202 ><A
1203 HREF="#DEBUGLEVEL"
1204 ><TT
1205 CLASS="PARAMETER"
1206 ><I
1207 >debuglevel</I
1208 ></TT
1209 ></A
1210 ></P
1211 ></LI
1212 ><LI
1213 ><P
1214 ><A
1215 HREF="#DEFAULT"
1216 ><TT
1217 CLASS="PARAMETER"
1218 ><I
1219 >default</I
1220 ></TT
1221 ></A
1222 ></P
1223 ></LI
1224 ><LI
1225 ><P
1226 ><A
1227 HREF="#DEFAULTSERVICE"
1228 ><TT
1229 CLASS="PARAMETER"
1230 ><I
1231 >default service</I
1232 ></TT
1233 ></A
1234 ></P
1235 ></LI
1236 ><LI
1237 ><P
1238 ><A
1239 HREF="#DELETEPRINTERCOMMAND"
1240 ><TT
1241 CLASS="PARAMETER"
1242 ><I
1243 >deleteprinter command</I
1244 ></TT
1245 ></A
1246 ></P
1247 ></LI
1248 ><LI
1249 ><P
1250 ><A
1251 HREF="#DELETESHARECOMMAND"
1252 ><TT
1253 CLASS="PARAMETER"
1254 ><I
1255 >delete share command</I
1256 ></TT
1257 ></A
1258 ></P
1259 ></LI
1260 ><LI
1261 ><P
1262 ><A
1263 HREF="#DELETEUSERSCRIPT"
1264 ><TT
1265 CLASS="PARAMETER"
1266 ><I
1267 >delete user script</I
1268 ></TT
1269 ></A
1270 ></P
1271 ></LI
1272 ><LI
1273 ><P
1274 ><A
1275 HREF="#DELETEUSERFROMGROUPSCRIPT"
1276 ><TT
1277 CLASS="PARAMETER"
1278 ><I
1279 >delete user from group script</I
1280 ></TT
1281 ></A
1282 ></P
1283 ></LI
1284 ><LI
1285 ><P
1286 ><A
1287 HREF="#DFREECOMMAND"
1288 ><TT
1289 CLASS="PARAMETER"
1290 ><I
1291 >dfree command</I
1292 ></TT
1293 ></A
1294 ></P
1295 ></LI
1296 ><LI
1297 ><P
1298 ><A
1299 HREF="#DISABLENETBIOS"
1300 ><TT
1301 CLASS="PARAMETER"
1302 ><I
1303 >disable netbios</I
1304 ></TT
1305 ></A
1306 ></P
1307 ></LI
1308 ><LI
1309 ><P
1310 ><A
1311 HREF="#DISABLESPOOLSS"
1312 ><TT
1313 CLASS="PARAMETER"
1314 ><I
1315 >disable spoolss</I
1316 ></TT
1317 ></A
1318 ></P
1319 ></LI
1320 ><LI
1321 ><P
1322 ><A
1323 HREF="#DISPLAYCHARSET"
1324 ><TT
1325 CLASS="PARAMETER"
1326 ><I
1327 >display charset</I
1328 ></TT
1329 ></A
1330 ></P
1331 ></LI
1332 ><LI
1333 ><P
1334 ><A
1335 HREF="#DNSPROXY"
1336 ><TT
1337 CLASS="PARAMETER"
1338 ><I
1339 >dns proxy</I
1340 ></TT
1341 ></A
1342 ></P
1343 ></LI
1344 ><LI
1345 ><P
1346 ><A
1347 HREF="#DOMAINLOGONS"
1348 ><TT
1349 CLASS="PARAMETER"
1350 ><I
1351 >domain logons</I
1352 ></TT
1353 ></A
1354 ></P
1355 ></LI
1356 ><LI
1357 ><P
1358 ><A
1359 HREF="#DOMAINMASTER"
1360 ><TT
1361 CLASS="PARAMETER"
1362 ><I
1363 >domain master</I
1364 ></TT
1365 ></A
1366 ></P
1367 ></LI
1368 ><LI
1369 ><P
1370 ><A
1371 HREF="#DOSCHARSET"
1372 ><TT
1373 CLASS="PARAMETER"
1374 ><I
1375 >dos charset</I
1376 ></TT
1377 ></A
1378 ></P
1379 ></LI
1380 ><LI
1381 ><P
1382 ><A
1383 HREF="#ENCRYPTPASSWORDS"
1384 ><TT
1385 CLASS="PARAMETER"
1386 ><I
1387 >encrypt passwords</I
1388 ></TT
1389 ></A
1390 ></P
1391 ></LI
1392 ><LI
1393 ><P
1394 ><A
1395 HREF="#ENHANCEDBROWSING"
1396 ><TT
1397 CLASS="PARAMETER"
1398 ><I
1399 >enhanced browsing</I
1400 ></TT
1401 ></A
1402 ></P
1403 ></LI
1404 ><LI
1405 ><P
1406 ><A
1407 HREF="#ENUMPORTSCOMMAND"
1408 ><TT
1409 CLASS="PARAMETER"
1410 ><I
1411 >enumports command</I
1412 ></TT
1413 ></A
1414 ></P
1415 ></LI
1416 ><LI
1417 ><P
1418 ><A
1419 HREF="#GETWDCACHE"
1420 ><TT
1421 CLASS="PARAMETER"
1422 ><I
1423 >getwd cache</I
1424 ></TT
1425 ></A
1426 ></P
1427 ></LI
1428 ><LI
1429 ><P
1430 ><A
1431 HREF="#HIDELOCALUSERS"
1432 ><TT
1433 CLASS="PARAMETER"
1434 ><I
1435 >hide local users</I
1436 ></TT
1437 ></A
1438 ></P
1439 ></LI
1440 ><LI
1441 ><P
1442 ><A
1443 HREF="#HIDEUNREADABLE"
1444 ><TT
1445 CLASS="PARAMETER"
1446 ><I
1447 >hide unreadable</I
1448 ></TT
1449 ></A
1450 ></P
1451 ></LI
1452 ><LI
1453 ><P
1454 ><A
1455 HREF="#HIDEUNWRITEABLEFILES"
1456 ><TT
1457 CLASS="PARAMETER"
1458 ><I
1459 >hide unwriteable files</I
1460 ></TT
1461 ></A
1462 ></P
1463 ></LI
1464 ><LI
1465 ><P
1466 ><A
1467 HREF="#HIDESPECIALFILES"
1468 ><TT
1469 CLASS="PARAMETER"
1470 ><I
1471 >hide special files</I
1472 ></TT
1473 ></A
1474 ></P
1475 ></LI
1476 ><LI
1477 ><P
1478 ><A
1479 HREF="#HOMEDIRMAP"
1480 ><TT
1481 CLASS="PARAMETER"
1482 ><I
1483 >homedir map</I
1484 ></TT
1485 ></A
1486 ></P
1487 ></LI
1488 ><LI
1489 ><P
1490 ><A
1491 HREF="#HOSTMSDFS"
1492 ><TT
1493 CLASS="PARAMETER"
1494 ><I
1495 >host msdfs</I
1496 ></TT
1497 ></A
1498 ></P
1499 ></LI
1500 ><LI
1501 ><P
1502 ><A
1503 HREF="#HOSTNAMELOOKUPS"
1504 ><TT
1505 CLASS="PARAMETER"
1506 ><I
1507 >hostname lookups</I
1508 ></TT
1509 ></A
1510 ></P
1511 ></LI
1512 ><LI
1513 ><P
1514 ><A
1515 HREF="#HOSTSEQUIV"
1516 ><TT
1517 CLASS="PARAMETER"
1518 ><I
1519 >hosts equiv</I
1520 ></TT
1521 ></A
1522 ></P
1523 ></LI
1524 ><LI
1525 ><P
1526 ><A
1527 HREF="#INTERFACES"
1528 ><TT
1529 CLASS="PARAMETER"
1530 ><I
1531 >interfaces</I
1532 ></TT
1533 ></A
1534 ></P
1535 ></LI
1536 ><LI
1537 ><P
1538 ><A
1539 HREF="#KEEPALIVE"
1540 ><TT
1541 CLASS="PARAMETER"
1542 ><I
1543 >keepalive</I
1544 ></TT
1545 ></A
1546 ></P
1547 ></LI
1548 ><LI
1549 ><P
1550 ><A
1551 HREF="#KERNELOPLOCKS"
1552 ><TT
1553 CLASS="PARAMETER"
1554 ><I
1555 >kernel oplocks</I
1556 ></TT
1557 ></A
1558 ></P
1559 ></LI
1560 ><LI
1561 ><P
1562 ><A
1563 HREF="#LANMANAUTH"
1564 ><TT
1565 CLASS="PARAMETER"
1566 ><I
1567 >lanman auth</I
1568 ></TT
1569 ></A
1570 ></P
1571 ></LI
1572 ><LI
1573 ><P
1574 ><A
1575 HREF="#LARGEREADWRITE"
1576 ><TT
1577 CLASS="PARAMETER"
1578 ><I
1579 >large readwrite</I
1580 ></TT
1581 ></A
1582 ></P
1583 ></LI
1584 ><LI
1585 ><P
1586 ><A
1587 HREF="#LDAPADMINDN"
1588 ><TT
1589 CLASS="PARAMETER"
1590 ><I
1591 >ldap admin dn</I
1592 ></TT
1593 ></A
1594 ></P
1595 ></LI
1596 ><LI
1597 ><P
1598 ><A
1599 HREF="#LDAPFILTER"
1600 ><TT
1601 CLASS="PARAMETER"
1602 ><I
1603 >ldap filter</I
1604 ></TT
1605 ></A
1606 ></P
1607 ></LI
1608 ><LI
1609 ><P
1610 ><A
1611 HREF="#LDAPPORT"
1612 ><TT
1613 CLASS="PARAMETER"
1614 ><I
1615 >ldap port</I
1616 ></TT
1617 ></A
1618 ></P
1619 ></LI
1620 ><LI
1621 ><P
1622 ><A
1623 HREF="#LDAPSERVER"
1624 ><TT
1625 CLASS="PARAMETER"
1626 ><I
1627 >ldap server</I
1628 ></TT
1629 ></A
1630 ></P
1631 ></LI
1632 ><LI
1633 ><P
1634 ><A
1635 HREF="#LDAPSSL"
1636 ><TT
1637 CLASS="PARAMETER"
1638 ><I
1639 >ldap ssl</I
1640 ></TT
1641 ></A
1642 ></P
1643 ></LI
1644 ><LI
1645 ><P
1646 ><A
1647 HREF="#LDAPSUFFIX"
1648 ><TT
1649 CLASS="PARAMETER"
1650 ><I
1651 >ldap suffix</I
1652 ></TT
1653 ></A
1654 ></P
1655 ></LI
1656 ><LI
1657 ><P
1658 ><A
1659 HREF="#LDAPUSERSUFFIX"
1660 ><TT
1661 CLASS="PARAMETER"
1662 ><I
1663 >ldap user suffix</I
1664 ></TT
1665 ></A
1666 ></P
1667 ></LI
1668 ><LI
1669 ><P
1670 ><A
1671 HREF="#LDAPMACHINESUFFIX"
1672 ><TT
1673 CLASS="PARAMETER"
1674 ><I
1675 >ldap machine suffix</I
1676 ></TT
1677 ></A
1678 ></P
1679 ></LI
1680 ><LI
1681 ><P
1682 ><A
1683 HREF="#LDAPPASSWDSYNC"
1684 ><TT
1685 CLASS="PARAMETER"
1686 ><I
1687 >ldap passwd sync</I
1688 ></TT
1689 ></A
1690 ></P
1691 ></LI
1692 ><LI
1693 ><P
1694 ><A
1695 HREF="#LDAPTRUSTIDS"
1696 ><TT
1697 CLASS="PARAMETER"
1698 ><I
1699 >ldap trust ids</I
1700 ></TT
1701 ></A
1702 ></P
1703 ></LI
1704 ><LI
1705 ><P
1706 ><A
1707 HREF="#LMANNOUNCE"
1708 ><TT
1709 CLASS="PARAMETER"
1710 ><I
1711 >lm announce</I
1712 ></TT
1713 ></A
1714 ></P
1715 ></LI
1716 ><LI
1717 ><P
1718 ><A
1719 HREF="#LMINTERVAL"
1720 ><TT
1721 CLASS="PARAMETER"
1722 ><I
1723 >lm interval</I
1724 ></TT
1725 ></A
1726 ></P
1727 ></LI
1728 ><LI
1729 ><P
1730 ><A
1731 HREF="#LOADPRINTERS"
1732 ><TT
1733 CLASS="PARAMETER"
1734 ><I
1735 >load printers</I
1736 ></TT
1737 ></A
1738 ></P
1739 ></LI
1740 ><LI
1741 ><P
1742 ><A
1743 HREF="#LOCALMASTER"
1744 ><TT
1745 CLASS="PARAMETER"
1746 ><I
1747 >local master</I
1748 ></TT
1749 ></A
1750 ></P
1751 ></LI
1752 ><LI
1753 ><P
1754 ><A
1755 HREF="#LOCKDIR"
1756 ><TT
1757 CLASS="PARAMETER"
1758 ><I
1759 >lock dir</I
1760 ></TT
1761 ></A
1762 ></P
1763 ></LI
1764 ><LI
1765 ><P
1766 ><A
1767 HREF="#LOCKDIRECTORY"
1768 ><TT
1769 CLASS="PARAMETER"
1770 ><I
1771 >lock directory</I
1772 ></TT
1773 ></A
1774 ></P
1775 ></LI
1776 ><LI
1777 ><P
1778 ><A
1779 HREF="#LOCKSPINCOUNT"
1780 ><TT
1781 CLASS="PARAMETER"
1782 ><I
1783 >lock spin count</I
1784 ></TT
1785 ></A
1786 ></P
1787 ></LI
1788 ><LI
1789 ><P
1790 ><A
1791 HREF="#LOCKSPINTIME"
1792 ><TT
1793 CLASS="PARAMETER"
1794 ><I
1795 >lock spin time</I
1796 ></TT
1797 ></A
1798 ></P
1799 ></LI
1800 ><LI
1801 ><P
1802 ><A
1803 HREF="#PIDDIRECTORY"
1804 ><TT
1805 CLASS="PARAMETER"
1806 ><I
1807 >pid directory</I
1808 ></TT
1809 ></A
1810 ></P
1811 ></LI
1812 ><LI
1813 ><P
1814 ><A
1815 HREF="#LOGFILE"
1816 ><TT
1817 CLASS="PARAMETER"
1818 ><I
1819 >log file</I
1820 ></TT
1821 ></A
1822 ></P
1823 ></LI
1824 ><LI
1825 ><P
1826 ><A
1827 HREF="#LOGLEVEL"
1828 ><TT
1829 CLASS="PARAMETER"
1830 ><I
1831 >log level</I
1832 ></TT
1833 ></A
1834 ></P
1835 ></LI
1836 ><LI
1837 ><P
1838 ><A
1839 HREF="#LOGONDRIVE"
1840 ><TT
1841 CLASS="PARAMETER"
1842 ><I
1843 >logon drive</I
1844 ></TT
1845 ></A
1846 ></P
1847 ></LI
1848 ><LI
1849 ><P
1850 ><A
1851 HREF="#LOGONHOME"
1852 ><TT
1853 CLASS="PARAMETER"
1854 ><I
1855 >logon home</I
1856 ></TT
1857 ></A
1858 ></P
1859 ></LI
1860 ><LI
1861 ><P
1862 ><A
1863 HREF="#LOGONPATH"
1864 ><TT
1865 CLASS="PARAMETER"
1866 ><I
1867 >logon path</I
1868 ></TT
1869 ></A
1870 ></P
1871 ></LI
1872 ><LI
1873 ><P
1874 ><A
1875 HREF="#LOGONSCRIPT"
1876 ><TT
1877 CLASS="PARAMETER"
1878 ><I
1879 >logon script</I
1880 ></TT
1881 ></A
1882 ></P
1883 ></LI
1884 ><LI
1885 ><P
1886 ><A
1887 HREF="#LPQCACHETIME"
1888 ><TT
1889 CLASS="PARAMETER"
1890 ><I
1891 >lpq cache time</I
1892 ></TT
1893 ></A
1894 ></P
1895 ></LI
1896 ><LI
1897 ><P
1898 ><A
1899 HREF="#MACHINEPASSWORDTIMEOUT"
1900 ><TT
1901 CLASS="PARAMETER"
1902 ><I
1903 >machine password timeout</I
1904 ></TT
1905 ></A
1906 ></P
1907 ></LI
1908 ><LI
1909 ><P
1910 ><A
1911 HREF="#MANGLEDSTACK"
1912 ><TT
1913 CLASS="PARAMETER"
1914 ><I
1915 >mangled stack</I
1916 ></TT
1917 ></A
1918 ></P
1919 ></LI
1920 ><LI
1921 ><P
1922 ><A
1923 HREF="#MAPTOGUEST"
1924 ><TT
1925 CLASS="PARAMETER"
1926 ><I
1927 >map to guest</I
1928 ></TT
1929 ></A
1930 ></P
1931 ></LI
1932 ><LI
1933 ><P
1934 ><A
1935 HREF="#MAXDISKSIZE"
1936 ><TT
1937 CLASS="PARAMETER"
1938 ><I
1939 >max disk size</I
1940 ></TT
1941 ></A
1942 ></P
1943 ></LI
1944 ><LI
1945 ><P
1946 ><A
1947 HREF="#MAXLOGSIZE"
1948 ><TT
1949 CLASS="PARAMETER"
1950 ><I
1951 >max log size</I
1952 ></TT
1953 ></A
1954 ></P
1955 ></LI
1956 ><LI
1957 ><P
1958 ><A
1959 HREF="#MAXMUX"
1960 ><TT
1961 CLASS="PARAMETER"
1962 ><I
1963 >max mux</I
1964 ></TT
1965 ></A
1966 ></P
1967 ></LI
1968 ><LI
1969 ><P
1970 ><A
1971 HREF="#MAXOPENFILES"
1972 ><TT
1973 CLASS="PARAMETER"
1974 ><I
1975 >max open files</I
1976 ></TT
1977 ></A
1978 ></P
1979 ></LI
1980 ><LI
1981 ><P
1982 ><A
1983 HREF="#MAXPROTOCOL"
1984 ><TT
1985 CLASS="PARAMETER"
1986 ><I
1987 >max protocol</I
1988 ></TT
1989 ></A
1990 ></P
1991 ></LI
1992 ><LI
1993 ><P
1994 ><A
1995 HREF="#MAXSMBDPROCESSES"
1996 ><TT
1997 CLASS="PARAMETER"
1998 ><I
1999 >max smbd processes</I
2000 ></TT
2001 ></A
2002 ></P
2003 ></LI
2004 ><LI
2005 ><P
2006 ><A
2007 HREF="#MAXTTL"
2008 ><TT
2009 CLASS="PARAMETER"
2010 ><I
2011 >max ttl</I
2012 ></TT
2013 ></A
2014 ></P
2015 ></LI
2016 ><LI
2017 ><P
2018 ><A
2019 HREF="#MAXWINSTTL"
2020 ><TT
2021 CLASS="PARAMETER"
2022 ><I
2023 >max wins ttl</I
2024 ></TT
2025 ></A
2026 ></P
2027 ></LI
2028 ><LI
2029 ><P
2030 ><A
2031 HREF="#MAXXMIT"
2032 ><TT
2033 CLASS="PARAMETER"
2034 ><I
2035 >max xmit</I
2036 ></TT
2037 ></A
2038 ></P
2039 ></LI
2040 ><LI
2041 ><P
2042 ><A
2043 HREF="#MESSAGECOMMAND"
2044 ><TT
2045 CLASS="PARAMETER"
2046 ><I
2047 >message command</I
2048 ></TT
2049 ></A
2050 ></P
2051 ></LI
2052 ><LI
2053 ><P
2054 ><A
2055 HREF="#MINPASSWDLENGTH"
2056 ><TT
2057 CLASS="PARAMETER"
2058 ><I
2059 >min passwd length</I
2060 ></TT
2061 ></A
2062 ></P
2063 ></LI
2064 ><LI
2065 ><P
2066 ><A
2067 HREF="#MINPASSWORDLENGTH"
2068 ><TT
2069 CLASS="PARAMETER"
2070 ><I
2071 >min password length</I
2072 ></TT
2073 ></A
2074 ></P
2075 ></LI
2076 ><LI
2077 ><P
2078 ><A
2079 HREF="#MINPROTOCOL"
2080 ><TT
2081 CLASS="PARAMETER"
2082 ><I
2083 >min protocol</I
2084 ></TT
2085 ></A
2086 ></P
2087 ></LI
2088 ><LI
2089 ><P
2090 ><A
2091 HREF="#MINWINSTTL"
2092 ><TT
2093 CLASS="PARAMETER"
2094 ><I
2095 >min wins ttl</I
2096 ></TT
2097 ></A
2098 ></P
2099 ></LI
2100 ><LI
2101 ><P
2102 ><A
2103 HREF="#NAMECACHETIMEOUT"
2104 ><TT
2105 CLASS="PARAMETER"
2106 ><I
2107 >name cache timeout</I
2108 ></TT
2109 ></A
2110 ></P
2111 ></LI
2112 ><LI
2113 ><P
2114 ><A
2115 HREF="#NAMERESOLVEORDER"
2116 ><TT
2117 CLASS="PARAMETER"
2118 ><I
2119 >name resolve order</I
2120 ></TT
2121 ></A
2122 ></P
2123 ></LI
2124 ><LI
2125 ><P
2126 ><A
2127 HREF="#NETBIOSALIASES"
2128 ><TT
2129 CLASS="PARAMETER"
2130 ><I
2131 >netbios aliases</I
2132 ></TT
2133 ></A
2134 ></P
2135 ></LI
2136 ><LI
2137 ><P
2138 ><A
2139 HREF="#NETBIOSNAME"
2140 ><TT
2141 CLASS="PARAMETER"
2142 ><I
2143 >netbios name</I
2144 ></TT
2145 ></A
2146 ></P
2147 ></LI
2148 ><LI
2149 ><P
2150 ><A
2151 HREF="#NETBIOSSCOPE"
2152 ><TT
2153 CLASS="PARAMETER"
2154 ><I
2155 >netbios scope</I
2156 ></TT
2157 ></A
2158 ></P
2159 ></LI
2160 ><LI
2161 ><P
2162 ><A
2163 HREF="#NISHOMEDIR"
2164 ><TT
2165 CLASS="PARAMETER"
2166 ><I
2167 >nis homedir</I
2168 ></TT
2169 ></A
2170 ></P
2171 ></LI
2172 ><LI
2173 ><P
2174 ><A
2175 HREF="#NTLMAUTH"
2176 ><TT
2177 CLASS="PARAMETER"
2178 ><I
2179 >ntlm auth</I
2180 ></TT
2181 ></A
2182 ></P
2183 ></LI
2184 ><LI
2185 ><P
2186 ><A
2187 HREF="#NONUNIXACCOUNTRANGE"
2188 ><TT
2189 CLASS="PARAMETER"
2190 ><I
2191 >non unix account range</I
2192 ></TT
2193 ></A
2194 ></P
2195 ></LI
2196 ><LI
2197 ><P
2198 ><A
2199 HREF="#NTPIPESUPPORT"
2200 ><TT
2201 CLASS="PARAMETER"
2202 ><I
2203 >nt pipe support</I
2204 ></TT
2205 ></A
2206 ></P
2207 ></LI
2208 ><LI
2209 ><P
2210 ><A
2211 HREF="#NTSTATUSSUPPORT"
2212 ><TT
2213 CLASS="PARAMETER"
2214 ><I
2215 >nt status support</I
2216 ></TT
2217 ></A
2218 ></P
2219 ></LI
2220 ><LI
2221 ><P
2222 ><A
2223 HREF="#NULLPASSWORDS"
2224 ><TT
2225 CLASS="PARAMETER"
2226 ><I
2227 >null passwords</I
2228 ></TT
2229 ></A
2230 ></P
2231 ></LI
2232 ><LI
2233 ><P
2234 ><A
2235 HREF="#OBEYPAMRESTRICTIONS"
2236 ><TT
2237 CLASS="PARAMETER"
2238 ><I
2239 >obey pam restrictions</I
2240 ></TT
2241 ></A
2242 ></P
2243 ></LI
2244 ><LI
2245 ><P
2246 ><A
2247 HREF="#OPLOCKBREAKWAITTIME"
2248 ><TT
2249 CLASS="PARAMETER"
2250 ><I
2251 >oplock break wait time</I
2252 ></TT
2253 ></A
2254 ></P
2255 ></LI
2256 ><LI
2257 ><P
2258 ><A
2259 HREF="#OSLEVEL"
2260 ><TT
2261 CLASS="PARAMETER"
2262 ><I
2263 >os level</I
2264 ></TT
2265 ></A
2266 ></P
2267 ></LI
2268 ><LI
2269 ><P
2270 ><A
2271 HREF="#OS2DRIVERMAP"
2272 ><TT
2273 CLASS="PARAMETER"
2274 ><I
2275 >os2 driver map</I
2276 ></TT
2277 ></A
2278 ></P
2279 ></LI
2280 ><LI
2281 ><P
2282 ><A
2283 HREF="#PAMPASSWORDCHANGE"
2284 ><TT
2285 CLASS="PARAMETER"
2286 ><I
2287 >pam password change</I
2288 ></TT
2289 ></A
2290 ></P
2291 ></LI
2292 ><LI
2293 ><P
2294 ><A
2295 HREF="#PANICACTION"
2296 ><TT
2297 CLASS="PARAMETER"
2298 ><I
2299 >panic action</I
2300 ></TT
2301 ></A
2302 ></P
2303 ></LI
2304 ><LI
2305 ><P
2306 ><A
2307 HREF="#PARANOIDSERVERSECURITY"
2308 ><TT
2309 CLASS="PARAMETER"
2310 ><I
2311 >paranoid server security</I
2312 ></TT
2313 ></A
2314 ></P
2315 ></LI
2316 ><LI
2317 ><P
2318 ><A
2319 HREF="#PASSDBBACKEND"
2320 ><TT
2321 CLASS="PARAMETER"
2322 ><I
2323 >passdb backend</I
2324 ></TT
2325 ></A
2326 ></P
2327 ></LI
2328 ><LI
2329 ><P
2330 ><A
2331 HREF="#PASSWDCHAT"
2332 ><TT
2333 CLASS="PARAMETER"
2334 ><I
2335 >passwd chat</I
2336 ></TT
2337 ></A
2338 ></P
2339 ></LI
2340 ><LI
2341 ><P
2342 ><A
2343 HREF="#PASSWDCHATDEBUG"
2344 ><TT
2345 CLASS="PARAMETER"
2346 ><I
2347 >passwd chat debug</I
2348 ></TT
2349 ></A
2350 ></P
2351 ></LI
2352 ><LI
2353 ><P
2354 ><A
2355 HREF="#PASSWDPROGRAM"
2356 ><TT
2357 CLASS="PARAMETER"
2358 ><I
2359 >passwd program</I
2360 ></TT
2361 ></A
2362 ></P
2363 ></LI
2364 ><LI
2365 ><P
2366 ><A
2367 HREF="#PASSWORDLEVEL"
2368 ><TT
2369 CLASS="PARAMETER"
2370 ><I
2371 >password level</I
2372 ></TT
2373 ></A
2374 ></P
2375 ></LI
2376 ><LI
2377 ><P
2378 ><A
2379 HREF="#PASSWORDSERVER"
2380 ><TT
2381 CLASS="PARAMETER"
2382 ><I
2383 >password server</I
2384 ></TT
2385 ></A
2386 ></P
2387 ></LI
2388 ><LI
2389 ><P
2390 ><A
2391 HREF="#PREFEREDMASTER"
2392 ><TT
2393 CLASS="PARAMETER"
2394 ><I
2395 >prefered master</I
2396 ></TT
2397 ></A
2398 ></P
2399 ></LI
2400 ><LI
2401 ><P
2402 ><A
2403 HREF="#PREFERREDMASTER"
2404 ><TT
2405 CLASS="PARAMETER"
2406 ><I
2407 >preferred master</I
2408 ></TT
2409 ></A
2410 ></P
2411 ></LI
2412 ><LI
2413 ><P
2414 ><A
2415 HREF="#PRELOAD"
2416 ><TT
2417 CLASS="PARAMETER"
2418 ><I
2419 >preload</I
2420 ></TT
2421 ></A
2422 ></P
2423 ></LI
2424 ><LI
2425 ><P
2426 ><A
2427 HREF="#PRINTCAP"
2428 ><TT
2429 CLASS="PARAMETER"
2430 ><I
2431 >printcap</I
2432 ></TT
2433 ></A
2434 ></P
2435 ></LI
2436 ><LI
2437 ><P
2438 ><A
2439 HREF="#PRINTCAPNAME"
2440 ><TT
2441 CLASS="PARAMETER"
2442 ><I
2443 >printcap name</I
2444 ></TT
2445 ></A
2446 ></P
2447 ></LI
2448 ><LI
2449 ><P
2450 ><A
2451 HREF="#PRINTERDRIVERFILE"
2452 ><TT
2453 CLASS="PARAMETER"
2454 ><I
2455 >printer driver file</I
2456 ></TT
2457 ></A
2458 ></P
2459 ></LI
2460 ><LI
2461 ><P
2462 ><A
2463 HREF="#PRIVATEDIR"
2464 ><TT
2465 CLASS="PARAMETER"
2466 ><I
2467 >private dir</I
2468 ></TT
2469 ></A
2470 ></P
2471 ></LI
2472 ><LI
2473 ><P
2474 ><A
2475 HREF="#PROTOCOL"
2476 ><TT
2477 CLASS="PARAMETER"
2478 ><I
2479 >protocol</I
2480 ></TT
2481 ></A
2482 ></P
2483 ></LI
2484 ><LI
2485 ><P
2486 ><A
2487 HREF="#READBMPX"
2488 ><TT
2489 CLASS="PARAMETER"
2490 ><I
2491 >read bmpx</I
2492 ></TT
2493 ></A
2494 ></P
2495 ></LI
2496 ><LI
2497 ><P
2498 ><A
2499 HREF="#READRAW"
2500 ><TT
2501 CLASS="PARAMETER"
2502 ><I
2503 >read raw</I
2504 ></TT
2505 ></A
2506 ></P
2507 ></LI
2508 ><LI
2509 ><P
2510 ><A
2511 HREF="#READSIZE"
2512 ><TT
2513 CLASS="PARAMETER"
2514 ><I
2515 >read size</I
2516 ></TT
2517 ></A
2518 ></P
2519 ></LI
2520 ><LI
2521 ><P
2522 ><A
2523 HREF="#REALM"
2524 ><TT
2525 CLASS="PARAMETER"
2526 ><I
2527 >realm</I
2528 ></TT
2529 ></A
2530 ></P
2531 ></LI
2532 ><LI
2533 ><P
2534 ><A
2535 HREF="#REMOTEANNOUNCE"
2536 ><TT
2537 CLASS="PARAMETER"
2538 ><I
2539 >remote announce</I
2540 ></TT
2541 ></A
2542 ></P
2543 ></LI
2544 ><LI
2545 ><P
2546 ><A
2547 HREF="#REMOTEBROWSESYNC"
2548 ><TT
2549 CLASS="PARAMETER"
2550 ><I
2551 >remote browse sync</I
2552 ></TT
2553 ></A
2554 ></P
2555 ></LI
2556 ><LI
2557 ><P
2558 ><A
2559 HREF="#RESTRICTANONYMOUS"
2560 ><TT
2561 CLASS="PARAMETER"
2562 ><I
2563 >restrict anonymous</I
2564 ></TT
2565 ></A
2566 ></P
2567 ></LI
2568 ><LI
2569 ><P
2570 ><A
2571 HREF="#ROOT"
2572 ><TT
2573 CLASS="PARAMETER"
2574 ><I
2575 >root</I
2576 ></TT
2577 ></A
2578 ></P
2579 ></LI
2580 ><LI
2581 ><P
2582 ><A
2583 HREF="#ROOTDIR"
2584 ><TT
2585 CLASS="PARAMETER"
2586 ><I
2587 >root dir</I
2588 ></TT
2589 ></A
2590 ></P
2591 ></LI
2592 ><LI
2593 ><P
2594 ><A
2595 HREF="#ROOTDIRECTORY"
2596 ><TT
2597 CLASS="PARAMETER"
2598 ><I
2599 >root directory</I
2600 ></TT
2601 ></A
2602 ></P
2603 ></LI
2604 ><LI
2605 ><P
2606 ><A
2607 HREF="#SECURITY"
2608 ><TT
2609 CLASS="PARAMETER"
2610 ><I
2611 >security</I
2612 ></TT
2613 ></A
2614 ></P
2615 ></LI
2616 ><LI
2617 ><P
2618 ><A
2619 HREF="#SERVERSTRING"
2620 ><TT
2621 CLASS="PARAMETER"
2622 ><I
2623 >server string</I
2624 ></TT
2625 ></A
2626 ></P
2627 ></LI
2628 ><LI
2629 ><P
2630 ><A
2631 HREF="#SHOWADDPRINTERWIZARD"
2632 ><TT
2633 CLASS="PARAMETER"
2634 ><I
2635 >show add printer wizard</I
2636 ></TT
2637 ></A
2638 ></P
2639 ></LI
2640 ><LI
2641 ><P
2642 ><A
2643 HREF="#SHUTDOWNSCRIPT"
2644 ><TT
2645 CLASS="PARAMETER"
2646 ><I
2647 >shutdown script</I
2648 ></TT
2649 ></A
2650 ></P
2651 ></LI
2652 ><LI
2653 ><P
2654 ><A
2655 HREF="#SMBPASSWDFILE"
2656 ><TT
2657 CLASS="PARAMETER"
2658 ><I
2659 >smb passwd file</I
2660 ></TT
2661 ></A
2662 ></P
2663 ></LI
2664 ><LI
2665 ><P
2666 ><A
2667 HREF="#SMBPORTS"
2668 ><TT
2669 CLASS="PARAMETER"
2670 ><I
2671 >smb ports</I
2672 ></TT
2673 ></A
2674 ></P
2675 ></LI
2676 ><LI
2677 ><P
2678 ><A
2679 HREF="#SOCKETADDRESS"
2680 ><TT
2681 CLASS="PARAMETER"
2682 ><I
2683 >socket address</I
2684 ></TT
2685 ></A
2686 ></P
2687 ></LI
2688 ><LI
2689 ><P
2690 ><A
2691 HREF="#SOCKETOPTIONS"
2692 ><TT
2693 CLASS="PARAMETER"
2694 ><I
2695 >socket options</I
2696 ></TT
2697 ></A
2698 ></P
2699 ></LI
2700 ><LI
2701 ><P
2702 ><A
2703 HREF="#SOURCEENVIRONMENT"
2704 ><TT
2705 CLASS="PARAMETER"
2706 ><I
2707 >source environment</I
2708 ></TT
2709 ></A
2710 ></P
2711 ></LI
2712 ><LI
2713 ><P
2714 ><A
2715 HREF="#SPNEGO"
2716 ><TT
2717 CLASS="PARAMETER"
2718 ><I
2719 >use spnego</I
2720 ></TT
2721 ></A
2722 ></P
2723 ></LI
2724 ><LI
2725 ><P
2726 ><A
2727 HREF="#STATCACHE"
2728 ><TT
2729 CLASS="PARAMETER"
2730 ><I
2731 >stat cache</I
2732 ></TT
2733 ></A
2734 ></P
2735 ></LI
2736 ><LI
2737 ><P
2738 ><A
2739 HREF="#STATCACHESIZE"
2740 ><TT
2741 CLASS="PARAMETER"
2742 ><I
2743 >stat cache size</I
2744 ></TT
2745 ></A
2746 ></P
2747 ></LI
2748 ><LI
2749 ><P
2750 ><A
2751 HREF="#STRIPDOT"
2752 ><TT
2753 CLASS="PARAMETER"
2754 ><I
2755 >strip dot</I
2756 ></TT
2757 ></A
2758 ></P
2759 ></LI
2760 ><LI
2761 ><P
2762 ><A
2763 HREF="#SYSLOG"
2764 ><TT
2765 CLASS="PARAMETER"
2766 ><I
2767 >syslog</I
2768 ></TT
2769 ></A
2770 ></P
2771 ></LI
2772 ><LI
2773 ><P
2774 ><A
2775 HREF="#SYSLOGONLY"
2776 ><TT
2777 CLASS="PARAMETER"
2778 ><I
2779 >syslog only</I
2780 ></TT
2781 ></A
2782 ></P
2783 ></LI
2784 ><LI
2785 ><P
2786 ><A
2787 HREF="#TEMPLATEHOMEDIR"
2788 ><TT
2789 CLASS="PARAMETER"
2790 ><I
2791 >template homedir</I
2792 ></TT
2793 ></A
2794 ></P
2795 ></LI
2796 ><LI
2797 ><P
2798 ><A
2799 HREF="#TEMPLATESHELL"
2800 ><TT
2801 CLASS="PARAMETER"
2802 ><I
2803 >template shell</I
2804 ></TT
2805 ></A
2806 ></P
2807 ></LI
2808 ><LI
2809 ><P
2810 ><A
2811 HREF="#TIMEOFFSET"
2812 ><TT
2813 CLASS="PARAMETER"
2814 ><I
2815 >time offset</I
2816 ></TT
2817 ></A
2818 ></P
2819 ></LI
2820 ><LI
2821 ><P
2822 ><A
2823 HREF="#TIMESERVER"
2824 ><TT
2825 CLASS="PARAMETER"
2826 ><I
2827 >time server</I
2828 ></TT
2829 ></A
2830 ></P
2831 ></LI
2832 ><LI
2833 ><P
2834 ><A
2835 HREF="#TIMESTAMPLOGS"
2836 ><TT
2837 CLASS="PARAMETER"
2838 ><I
2839 >timestamp logs</I
2840 ></TT
2841 ></A
2842 ></P
2843 ></LI
2844 ><LI
2845 ><P
2846 ><A
2847 HREF="#TOTALPRINTJOBS"
2848 ><TT
2849 CLASS="PARAMETER"
2850 ><I
2851 >total print jobs</I
2852 ></TT
2853 ></A
2854 ></P
2855 ></LI
2856 ><LI
2857 ><P
2858 ><A
2859 HREF="#UNICODE"
2860 ><TT
2861 CLASS="PARAMETER"
2862 ><I
2863 >unicode</I
2864 ></TT
2865 ></A
2866 ></P
2867 ></LI
2868 ><LI
2869 ><P
2870 ><A
2871 HREF="#UNIXCHARSET"
2872 ><TT
2873 CLASS="PARAMETER"
2874 ><I
2875 >unix charset</I
2876 ></TT
2877 ></A
2878 ></P
2879 ></LI
2880 ><LI
2881 ><P
2882 ><A
2883 HREF="#UNIXEXTENSIONS"
2884 ><TT
2885 CLASS="PARAMETER"
2886 ><I
2887 >unix extensions</I
2888 ></TT
2889 ></A
2890 ></P
2891 ></LI
2892 ><LI
2893 ><P
2894 ><A
2895 HREF="#UNIXPASSWORDSYNC"
2896 ><TT
2897 CLASS="PARAMETER"
2898 ><I
2899 >unix password sync</I
2900 ></TT
2901 ></A
2902 ></P
2903 ></LI
2904 ><LI
2905 ><P
2906 ><A
2907 HREF="#UPDATEENCRYPTED"
2908 ><TT
2909 CLASS="PARAMETER"
2910 ><I
2911 >update encrypted</I
2912 ></TT
2913 ></A
2914 ></P
2915 ></LI
2916 ><LI
2917 ><P
2918 ><A
2919 HREF="#USEMMAP"
2920 ><TT
2921 CLASS="PARAMETER"
2922 ><I
2923 >use mmap</I
2924 ></TT
2925 ></A
2926 ></P
2927 ></LI
2928 ><LI
2929 ><P
2930 ><A
2931 HREF="#USERHOSTS"
2932 ><TT
2933 CLASS="PARAMETER"
2934 ><I
2935 >use rhosts</I
2936 ></TT
2937 ></A
2938 ></P
2939 ></LI
2940 ><LI
2941 ><P
2942 ><A
2943 HREF="#USESENDFILE"
2944 ><TT
2945 CLASS="PARAMETER"
2946 ><I
2947 >use sendfile</I
2948 ></TT
2949 ></A
2950 ></P
2951 ></LI
2952 ><LI
2953 ><P
2954 ><A
2955 HREF="#USERNAMELEVEL"
2956 ><TT
2957 CLASS="PARAMETER"
2958 ><I
2959 >username level</I
2960 ></TT
2961 ></A
2962 ></P
2963 ></LI
2964 ><LI
2965 ><P
2966 ><A
2967 HREF="#USERNAMEMAP"
2968 ><TT
2969 CLASS="PARAMETER"
2970 ><I
2971 >username map</I
2972 ></TT
2973 ></A
2974 ></P
2975 ></LI
2976 ><LI
2977 ><P
2978 ><A
2979 HREF="#UTMP"
2980 ><TT
2981 CLASS="PARAMETER"
2982 ><I
2983 >utmp</I
2984 ></TT
2985 ></A
2986 ></P
2987 ></LI
2988 ><LI
2989 ><P
2990 ><A
2991 HREF="#UTMPDIRECTORY"
2992 ><TT
2993 CLASS="PARAMETER"
2994 ><I
2995 >utmp directory</I
2996 ></TT
2997 ></A
2998 ></P
2999 ></LI
3000 ><LI
3001 ><P
3002 ><A
3003 HREF="#WTMPDIRECTORY"
3004 ><TT
3005 CLASS="PARAMETER"
3006 ><I
3007 >wtmp directory</I
3008 ></TT
3009 ></A
3010 ></P
3011 ></LI
3012 ><LI
3013 ><P
3014 ><A
3015 HREF="#WINBINDCACHETIME"
3016 ><TT
3017 CLASS="PARAMETER"
3018 ><I
3019 >winbind cache time</I
3020 ></TT
3021 ></A
3022 ></P
3023 ></LI
3024 ><LI
3025 ><P
3026 ><A
3027 HREF="#WINBINDENUMUSERS"
3028 ><TT
3029 CLASS="PARAMETER"
3030 ><I
3031 >winbind enum users</I
3032 ></TT
3033 ></A
3034 ></P
3035 ></LI
3036 ><LI
3037 ><P
3038 ><A
3039 HREF="#WINBINDENUMGROUPS"
3040 ><TT
3041 CLASS="PARAMETER"
3042 ><I
3043 >winbind enum groups</I
3044 ></TT
3045 ></A
3046 ></P
3047 ></LI
3048 ><LI
3049 ><P
3050 ><A
3051 HREF="#WINBINDGID"
3052 ><TT
3053 CLASS="PARAMETER"
3054 ><I
3055 >winbind gid</I
3056 ></TT
3057 ></A
3058 ></P
3059 ></LI
3060 ><LI
3061 ><P
3062 ><A
3063 HREF="#WINBINDSEPARATOR"
3064 ><TT
3065 CLASS="PARAMETER"
3066 ><I
3067 >winbind separator</I
3068 ></TT
3069 ></A
3070 ></P
3071 ></LI
3072 ><LI
3073 ><P
3074 ><A
3075 HREF="#WINBINDUID"
3076 ><TT
3077 CLASS="PARAMETER"
3078 ><I
3079 >winbind uid</I
3080 ></TT
3081 ></A
3082 ></P
3083 ></LI
3084 ><LI
3085 ><P
3086 ><A
3087 HREF="#WINBINDUSEDEFAULTDOMAIN"
3088 ><TT
3089 CLASS="PARAMETER"
3090 ><I
3091 >winbind use default domain</I
3092 ></TT
3093 ></A
3094 ></P
3095 ></LI
3096 ><LI
3097 ><P
3098 ><A
3099 HREF="#WINSHOOK"
3100 ><TT
3101 CLASS="PARAMETER"
3102 ><I
3103 >wins hook</I
3104 ></TT
3105 ></A
3106 ></P
3107 ></LI
3108 ><LI
3109 ><P
3110 ><A
3111 HREF="#WINSPARTNERS"
3112 ><TT
3113 CLASS="PARAMETER"
3114 ><I
3115 >wins partners</I
3116 ></TT
3117 ></A
3118 ></P
3119 ></LI
3120 ><LI
3121 ><P
3122 ><A
3123 HREF="#WINSPROXY"
3124 ><TT
3125 CLASS="PARAMETER"
3126 ><I
3127 >wins proxy</I
3128 ></TT
3129 ></A
3130 ></P
3131 ></LI
3132 ><LI
3133 ><P
3134 ><A
3135 HREF="#WINSSERVER"
3136 ><TT
3137 CLASS="PARAMETER"
3138 ><I
3139 >wins server</I
3140 ></TT
3141 ></A
3142 ></P
3143 ></LI
3144 ><LI
3145 ><P
3146 ><A
3147 HREF="#WINSSUPPORT"
3148 ><TT
3149 CLASS="PARAMETER"
3150 ><I
3151 >wins support</I
3152 ></TT
3153 ></A
3154 ></P
3155 ></LI
3156 ><LI
3157 ><P
3158 ><A
3159 HREF="#WORKGROUP"
3160 ><TT
3161 CLASS="PARAMETER"
3162 ><I
3163 >workgroup</I
3164 ></TT
3165 ></A
3166 ></P
3167 ></LI
3168 ><LI
3169 ><P
3170 ><A
3171 HREF="#WRITERAW"
3172 ><TT
3173 CLASS="PARAMETER"
3174 ><I
3175 >write raw</I
3176 ></TT
3177 ></A
3178 ></P
3179 ></LI
3180 ></UL
3181 ></DIV
3182 ><DIV
3183 CLASS="REFSECT1"
3184 ><A
3185 NAME="AEN1022"
3186 ></A
3187 ><H2
3188 >COMPLETE LIST OF SERVICE PARAMETERS</H2
3189 ><P
3190 >Here is a list of all service parameters. See the section on 
3191         each parameter for details. Note that some are synonyms.</P
3192 ><P
3193 ></P
3194 ><UL
3195 ><LI
3196 ><P
3197 ><A
3198 HREF="#ADMINUSERS"
3199 ><TT
3200 CLASS="PARAMETER"
3201 ><I
3202 >admin users</I
3203 ></TT
3204 ></A
3205 ></P
3206 ></LI
3207 ><LI
3208 ><P
3209 ><A
3210 HREF="#ALLOWHOSTS"
3211 ><TT
3212 CLASS="PARAMETER"
3213 ><I
3214 >allow hosts</I
3215 ></TT
3216 ></A
3217 ></P
3218 ></LI
3219 ><LI
3220 ><P
3221 ><A
3222 HREF="#AVAILABLE"
3223 ><TT
3224 CLASS="PARAMETER"
3225 ><I
3226 >available</I
3227 ></TT
3228 ></A
3229 ></P
3230 ></LI
3231 ><LI
3232 ><P
3233 ><A
3234 HREF="#BLOCKINGLOCKS"
3235 ><TT
3236 CLASS="PARAMETER"
3237 ><I
3238 >blocking locks</I
3239 ></TT
3240 ></A
3241 ></P
3242 ></LI
3243 ><LI
3244 ><P
3245 ><A
3246 HREF="#BLOCKSIZE"
3247 ><TT
3248 CLASS="PARAMETER"
3249 ><I
3250 >block size</I
3251 ></TT
3252 ></A
3253 ></P
3254 ></LI
3255 ><LI
3256 ><P
3257 ><A
3258 HREF="#BROWSABLE"
3259 ><TT
3260 CLASS="PARAMETER"
3261 ><I
3262 >browsable</I
3263 ></TT
3264 ></A
3265 ></P
3266 ></LI
3267 ><LI
3268 ><P
3269 ><A
3270 HREF="#BROWSEABLE"
3271 ><TT
3272 CLASS="PARAMETER"
3273 ><I
3274 >browseable</I
3275 ></TT
3276 ></A
3277 ></P
3278 ></LI
3279 ><LI
3280 ><P
3281 ><A
3282 HREF="#CASESENSITIVE"
3283 ><TT
3284 CLASS="PARAMETER"
3285 ><I
3286 >case sensitive</I
3287 ></TT
3288 ></A
3289 ></P
3290 ></LI
3291 ><LI
3292 ><P
3293 ><A
3294 HREF="#CASESIGNAMES"
3295 ><TT
3296 CLASS="PARAMETER"
3297 ><I
3298 >casesignames</I
3299 ></TT
3300 ></A
3301 ></P
3302 ></LI
3303 ><LI
3304 ><P
3305 ><A
3306 HREF="#COMMENT"
3307 ><TT
3308 CLASS="PARAMETER"
3309 ><I
3310 >comment</I
3311 ></TT
3312 ></A
3313 ></P
3314 ></LI
3315 ><LI
3316 ><P
3317 ><A
3318 HREF="#COPY"
3319 ><TT
3320 CLASS="PARAMETER"
3321 ><I
3322 >copy</I
3323 ></TT
3324 ></A
3325 ></P
3326 ></LI
3327 ><LI
3328 ><P
3329 ><A
3330 HREF="#CREATEMASK"
3331 ><TT
3332 CLASS="PARAMETER"
3333 ><I
3334 >create mask</I
3335 ></TT
3336 ></A
3337 ></P
3338 ></LI
3339 ><LI
3340 ><P
3341 ><A
3342 HREF="#CREATEMODE"
3343 ><TT
3344 CLASS="PARAMETER"
3345 ><I
3346 >create mode</I
3347 ></TT
3348 ></A
3349 ></P
3350 ></LI
3351 ><LI
3352 ><P
3353 ><A
3354 HREF="#CSCPOLICY"
3355 ><TT
3356 CLASS="PARAMETER"
3357 ><I
3358 >csc policy</I
3359 ></TT
3360 ></A
3361 ></P
3362 ></LI
3363 ><LI
3364 ><P
3365 ><A
3366 HREF="#DEFAULTCASE"
3367 ><TT
3368 CLASS="PARAMETER"
3369 ><I
3370 >default case</I
3371 ></TT
3372 ></A
3373 ></P
3374 ></LI
3375 ><LI
3376 ><P
3377 ><A
3378 HREF="#DEFAULTDEVMODE"
3379 ><TT
3380 CLASS="PARAMETER"
3381 ><I
3382 >default devmode</I
3383 ></TT
3384 ></A
3385 ></P
3386 ></LI
3387 ><LI
3388 ><P
3389 ><A
3390 HREF="#DELETEREADONLY"
3391 ><TT
3392 CLASS="PARAMETER"
3393 ><I
3394 >delete readonly</I
3395 ></TT
3396 ></A
3397 ></P
3398 ></LI
3399 ><LI
3400 ><P
3401 ><A
3402 HREF="#DELETEVETOFILES"
3403 ><TT
3404 CLASS="PARAMETER"
3405 ><I
3406 >delete veto files</I
3407 ></TT
3408 ></A
3409 ></P
3410 ></LI
3411 ><LI
3412 ><P
3413 ><A
3414 HREF="#DENYHOSTS"
3415 ><TT
3416 CLASS="PARAMETER"
3417 ><I
3418 >deny hosts</I
3419 ></TT
3420 ></A
3421 ></P
3422 ></LI
3423 ><LI
3424 ><P
3425 ><A
3426 HREF="#DIRECTORY"
3427 ><TT
3428 CLASS="PARAMETER"
3429 ><I
3430 >directory</I
3431 ></TT
3432 ></A
3433 ></P
3434 ></LI
3435 ><LI
3436 ><P
3437 ><A
3438 HREF="#DIRECTORYMASK"
3439 ><TT
3440 CLASS="PARAMETER"
3441 ><I
3442 >directory mask</I
3443 ></TT
3444 ></A
3445 ></P
3446 ></LI
3447 ><LI
3448 ><P
3449 ><A
3450 HREF="#DIRECTORYMODE"
3451 ><TT
3452 CLASS="PARAMETER"
3453 ><I
3454 >directory mode</I
3455 ></TT
3456 ></A
3457 ></P
3458 ></LI
3459 ><LI
3460 ><P
3461 ><A
3462 HREF="#DIRECTORYSECURITYMASK"
3463 ><TT
3464 CLASS="PARAMETER"
3465 ><I
3466 >directory security mask</I
3467 ></TT
3468 ></A
3469 ></P
3470 ></LI
3471 ><LI
3472 ><P
3473 ><A
3474 HREF="#DONTDESCEND"
3475 ><TT
3476 CLASS="PARAMETER"
3477 ><I
3478 >dont descend</I
3479 ></TT
3480 ></A
3481 ></P
3482 ></LI
3483 ><LI
3484 ><P
3485 ><A
3486 HREF="#DOSFILEMODE"
3487 ><TT
3488 CLASS="PARAMETER"
3489 ><I
3490 >dos filemode</I
3491 ></TT
3492 ></A
3493 ></P
3494 ></LI
3495 ><LI
3496 ><P
3497 ><A
3498 HREF="#DOSFILETIMERESOLUTION"
3499 ><TT
3500 CLASS="PARAMETER"
3501 ><I
3502 >dos filetime resolution</I
3503 ></TT
3504 ></A
3505 ></P
3506 ></LI
3507 ><LI
3508 ><P
3509 ><A
3510 HREF="#DOSFILETIMES"
3511 ><TT
3512 CLASS="PARAMETER"
3513 ><I
3514 >dos filetimes</I
3515 ></TT
3516 ></A
3517 ></P
3518 ></LI
3519 ><LI
3520 ><P
3521 ><A
3522 HREF="#EXEC"
3523 ><TT
3524 CLASS="PARAMETER"
3525 ><I
3526 >exec</I
3527 ></TT
3528 ></A
3529 ></P
3530 ></LI
3531 ><LI
3532 ><P
3533 ><A
3534 HREF="#FAKEDIRECTORYCREATETIMES"
3535 ><TT
3536 CLASS="PARAMETER"
3537 ><I
3538 >fake directory create times</I
3539 ></TT
3540 ></A
3541 ></P
3542 ></LI
3543 ><LI
3544 ><P
3545 ><A
3546 HREF="#FAKEOPLOCKS"
3547 ><TT
3548 CLASS="PARAMETER"
3549 ><I
3550 >fake oplocks</I
3551 ></TT
3552 ></A
3553 ></P
3554 ></LI
3555 ><LI
3556 ><P
3557 ><A
3558 HREF="#FOLLOWSYMLINKS"
3559 ><TT
3560 CLASS="PARAMETER"
3561 ><I
3562 >follow symlinks</I
3563 ></TT
3564 ></A
3565 ></P
3566 ></LI
3567 ><LI
3568 ><P
3569 ><A
3570 HREF="#FORCECREATEMODE"
3571 ><TT
3572 CLASS="PARAMETER"
3573 ><I
3574 >force create mode</I
3575 ></TT
3576 ></A
3577 ></P
3578 ></LI
3579 ><LI
3580 ><P
3581 ><A
3582 HREF="#FORCEDIRECTORYMODE"
3583 ><TT
3584 CLASS="PARAMETER"
3585 ><I
3586 >force directory mode</I
3587 ></TT
3588 ></A
3589 ></P
3590 ></LI
3591 ><LI
3592 ><P
3593 ><A
3594 HREF="#FORCEDIRECTORYSECURITYMODE"
3595 ><TT
3596 CLASS="PARAMETER"
3597 ><I
3598 >force directory security mode</I
3599 ></TT
3600 ></A
3601 ></P
3602 ></LI
3603 ><LI
3604 ><P
3605 ><A
3606 HREF="#FORCEGROUP"
3607 ><TT
3608 CLASS="PARAMETER"
3609 ><I
3610 >force group</I
3611 ></TT
3612 ></A
3613 ></P
3614 ></LI
3615 ><LI
3616 ><P
3617 ><A
3618 HREF="#FORCESECURITYMODE"
3619 ><TT
3620 CLASS="PARAMETER"
3621 ><I
3622 >force security mode</I
3623 ></TT
3624 ></A
3625 ></P
3626 ></LI
3627 ><LI
3628 ><P
3629 ><A
3630 HREF="#FORCEUSER"
3631 ><TT
3632 CLASS="PARAMETER"
3633 ><I
3634 >force user</I
3635 ></TT
3636 ></A
3637 ></P
3638 ></LI
3639 ><LI
3640 ><P
3641 ><A
3642 HREF="#FSTYPE"
3643 ><TT
3644 CLASS="PARAMETER"
3645 ><I
3646 >fstype</I
3647 ></TT
3648 ></A
3649 ></P
3650 ></LI
3651 ><LI
3652 ><P
3653 ><A
3654 HREF="#GROUP"
3655 ><TT
3656 CLASS="PARAMETER"
3657 ><I
3658 >group</I
3659 ></TT
3660 ></A
3661 ></P
3662 ></LI
3663 ><LI
3664 ><P
3665 ><A
3666 HREF="#GUESTACCOUNT"
3667 ><TT
3668 CLASS="PARAMETER"
3669 ><I
3670 >guest account</I
3671 ></TT
3672 ></A
3673 ></P
3674 ></LI
3675 ><LI
3676 ><P
3677 ><A
3678 HREF="#GUESTOK"
3679 ><TT
3680 CLASS="PARAMETER"
3681 ><I
3682 >guest ok</I
3683 ></TT
3684 ></A
3685 ></P
3686 ></LI
3687 ><LI
3688 ><P
3689 ><A
3690 HREF="#GUESTONLY"
3691 ><TT
3692 CLASS="PARAMETER"
3693 ><I
3694 >guest only</I
3695 ></TT
3696 ></A
3697 ></P
3698 ></LI
3699 ><LI
3700 ><P
3701 ><A
3702 HREF="#HIDEDOTFILES"
3703 ><TT
3704 CLASS="PARAMETER"
3705 ><I
3706 >hide dot files</I
3707 ></TT
3708 ></A
3709 ></P
3710 ></LI
3711 ><LI
3712 ><P
3713 ><A
3714 HREF="#HIDEFILES"
3715 ><TT
3716 CLASS="PARAMETER"
3717 ><I
3718 >hide files</I
3719 ></TT
3720 ></A
3721 ></P
3722 ></LI
3723 ><LI
3724 ><P
3725 ><A
3726 HREF="#HOSTSALLOW"
3727 ><TT
3728 CLASS="PARAMETER"
3729 ><I
3730 >hosts allow</I
3731 ></TT
3732 ></A
3733 ></P
3734 ></LI
3735 ><LI
3736 ><P
3737 ><A
3738 HREF="#HOSTSDENY"
3739 ><TT
3740 CLASS="PARAMETER"
3741 ><I
3742 >hosts deny</I
3743 ></TT
3744 ></A
3745 ></P
3746 ></LI
3747 ><LI
3748 ><P
3749 ><A
3750 HREF="#INCLUDE"
3751 ><TT
3752 CLASS="PARAMETER"
3753 ><I
3754 >include</I
3755 ></TT
3756 ></A
3757 ></P
3758 ></LI
3759 ><LI
3760 ><P
3761 ><A
3762 HREF="#INHERITACLS"
3763 ><TT
3764 CLASS="PARAMETER"
3765 ><I
3766 >inherit acls</I
3767 ></TT
3768 ></A
3769 ></P
3770 ></LI
3771 ><LI
3772 ><P
3773 ><A
3774 HREF="#INHERITPERMISSIONS"
3775 ><TT
3776 CLASS="PARAMETER"
3777 ><I
3778 >inherit permissions</I
3779 ></TT
3780 ></A
3781 ></P
3782 ></LI
3783 ><LI
3784 ><P
3785 ><A
3786 HREF="#INVALIDUSERS"
3787 ><TT
3788 CLASS="PARAMETER"
3789 ><I
3790 >invalid users</I
3791 ></TT
3792 ></A
3793 ></P
3794 ></LI
3795 ><LI
3796 ><P
3797 ><A
3798 HREF="#LEVEL2OPLOCKS"
3799 ><TT
3800 CLASS="PARAMETER"
3801 ><I
3802 >level2 oplocks</I
3803 ></TT
3804 ></A
3805 ></P
3806 ></LI
3807 ><LI
3808 ><P
3809 ><A
3810 HREF="#LOCKING"
3811 ><TT
3812 CLASS="PARAMETER"
3813 ><I
3814 >locking</I
3815 ></TT
3816 ></A
3817 ></P
3818 ></LI
3819 ><LI
3820 ><P
3821 ><A
3822 HREF="#LPPAUSECOMMAND"
3823 ><TT
3824 CLASS="PARAMETER"
3825 ><I
3826 >lppause command</I
3827 ></TT
3828 ></A
3829 ></P
3830 ></LI
3831 ><LI
3832 ><P
3833 ><A
3834 HREF="#LPQCOMMAND"
3835 ><TT
3836 CLASS="PARAMETER"
3837 ><I
3838 >lpq command</I
3839 ></TT
3840 ></A
3841 ></P
3842 ></LI
3843 ><LI
3844 ><P
3845 ><A
3846 HREF="#LPRESUMECOMMAND"
3847 ><TT
3848 CLASS="PARAMETER"
3849 ><I
3850 >lpresume command</I
3851 ></TT
3852 ></A
3853 ></P
3854 ></LI
3855 ><LI
3856 ><P
3857 ><A
3858 HREF="#LPRMCOMMAND"
3859 ><TT
3860 CLASS="PARAMETER"
3861 ><I
3862 >lprm command</I
3863 ></TT
3864 ></A
3865 ></P
3866 ></LI
3867 ><LI
3868 ><P
3869 ><A
3870 HREF="#MAGICOUTPUT"
3871 ><TT
3872 CLASS="PARAMETER"
3873 ><I
3874 >magic output</I
3875 ></TT
3876 ></A
3877 ></P
3878 ></LI
3879 ><LI
3880 ><P
3881 ><A
3882 HREF="#MAGICSCRIPT"
3883 ><TT
3884 CLASS="PARAMETER"
3885 ><I
3886 >magic script</I
3887 ></TT
3888 ></A
3889 ></P
3890 ></LI
3891 ><LI
3892 ><P
3893 ><A
3894 HREF="#MANGLECASE"
3895 ><TT
3896 CLASS="PARAMETER"
3897 ><I
3898 >mangle case</I
3899 ></TT
3900 ></A
3901 ></P
3902 ></LI
3903 ><LI
3904 ><P
3905 ><A
3906 HREF="#MANGLEDMAP"
3907 ><TT
3908 CLASS="PARAMETER"
3909 ><I
3910 >mangled map</I
3911 ></TT
3912 ></A
3913 ></P
3914 ></LI
3915 ><LI
3916 ><P
3917 ><A
3918 HREF="#MANGLEDNAMES"
3919 ><TT
3920 CLASS="PARAMETER"
3921 ><I
3922 >mangled names</I
3923 ></TT
3924 ></A
3925 ></P
3926 ></LI
3927 ><LI
3928 ><P
3929 ><A
3930 HREF="#MANGLINGCHAR"
3931 ><TT
3932 CLASS="PARAMETER"
3933 ><I
3934 >mangling char</I
3935 ></TT
3936 ></A
3937 ></P
3938 ></LI
3939 ><LI
3940 ><P
3941 ><A
3942 HREF="#MANGLINGMETHOD"
3943 ><TT
3944 CLASS="PARAMETER"
3945 ><I
3946 >mangling method</I
3947 ></TT
3948 ></A
3949 ></P
3950 ></LI
3951 ><LI
3952 ><P
3953 ><A
3954 HREF="#MAPARCHIVE"
3955 ><TT
3956 CLASS="PARAMETER"
3957 ><I
3958 >map archive</I
3959 ></TT
3960 ></A
3961 ></P
3962 ></LI
3963 ><LI
3964 ><P
3965 ><A
3966 HREF="#MAPHIDDEN"
3967 ><TT
3968 CLASS="PARAMETER"
3969 ><I
3970 >map hidden</I
3971 ></TT
3972 ></A
3973 ></P
3974 ></LI
3975 ><LI
3976 ><P
3977 ><A
3978 HREF="#MAPSYSTEM"
3979 ><TT
3980 CLASS="PARAMETER"
3981 ><I
3982 >map system</I
3983 ></TT
3984 ></A
3985 ></P
3986 ></LI
3987 ><LI
3988 ><P
3989 ><A
3990 HREF="#MAXCONNECTIONS"
3991 ><TT
3992 CLASS="PARAMETER"
3993 ><I
3994 >max connections</I
3995 ></TT
3996 ></A
3997 ></P
3998 ></LI
3999 ><LI
4000 ><P
4001 ><A
4002 HREF="#MAXPRINTJOBS"
4003 ><TT
4004 CLASS="PARAMETER"
4005 ><I
4006 >max print jobs</I
4007 ></TT
4008 ></A
4009 ></P
4010 ></LI
4011 ><LI
4012 ><P
4013 ><A
4014 HREF="#MINPRINTSPACE"
4015 ><TT
4016 CLASS="PARAMETER"
4017 ><I
4018 >min print space</I
4019 ></TT
4020 ></A
4021 ></P
4022 ></LI
4023 ><LI
4024 ><P
4025 ><A
4026 HREF="#MSDFSPROXY"
4027 ><TT
4028 CLASS="PARAMETER"
4029 ><I
4030 >msdfs proxy</I
4031 ></TT
4032 ></A
4033 ></P
4034 ></LI
4035 ><LI
4036 ><P
4037 ><A
4038 HREF="#MSDFSROOT"
4039 ><TT
4040 CLASS="PARAMETER"
4041 ><I
4042 >msdfs root</I
4043 ></TT
4044 ></A
4045 ></P
4046 ></LI
4047 ><LI
4048 ><P
4049 ><A
4050 HREF="#NTACLSUPPORT"
4051 ><TT
4052 CLASS="PARAMETER"
4053 ><I
4054 >nt acl support</I
4055 ></TT
4056 ></A
4057 ></P
4058 ></LI
4059 ><LI
4060 ><P
4061 ><A
4062 HREF="#ONLYGUEST"
4063 ><TT
4064 CLASS="PARAMETER"
4065 ><I
4066 >only guest</I
4067 ></TT
4068 ></A
4069 ></P
4070 ></LI
4071 ><LI
4072 ><P
4073 ><A
4074 HREF="#ONLYUSER"
4075 ><TT
4076 CLASS="PARAMETER"
4077 ><I
4078 >only user</I
4079 ></TT
4080 ></A
4081 ></P
4082 ></LI
4083 ><LI
4084 ><P
4085 ><A
4086 HREF="#OPLOCKCONTENTIONLIMIT"
4087 ><TT
4088 CLASS="PARAMETER"
4089 ><I
4090 >oplock contention limit</I
4091 ></TT
4092 ></A
4093 ></P
4094 ></LI
4095 ><LI
4096 ><P
4097 ><A
4098 HREF="#OPLOCKS"
4099 ><TT
4100 CLASS="PARAMETER"
4101 ><I
4102 >oplocks</I
4103 ></TT
4104 ></A
4105 ></P
4106 ></LI
4107 ><LI
4108 ><P
4109 ><A
4110 HREF="#PATH"
4111 ><TT
4112 CLASS="PARAMETER"
4113 ><I
4114 >path</I
4115 ></TT
4116 ></A
4117 ></P
4118 ></LI
4119 ><LI
4120 ><P
4121 ><A
4122 HREF="#POSIXLOCKING"
4123 ><TT
4124 CLASS="PARAMETER"
4125 ><I
4126 >posix locking</I
4127 ></TT
4128 ></A
4129 ></P
4130 ></LI
4131 ><LI
4132 ><P
4133 ><A
4134 HREF="#POSTEXEC"
4135 ><TT
4136 CLASS="PARAMETER"
4137 ><I
4138 >postexec</I
4139 ></TT
4140 ></A
4141 ></P
4142 ></LI
4143 ><LI
4144 ><P
4145 ><A
4146 HREF="#POSTSCRIPT"
4147 ><TT
4148 CLASS="PARAMETER"
4149 ><I
4150 >postscript</I
4151 ></TT
4152 ></A
4153 ></P
4154 ></LI
4155 ><LI
4156 ><P
4157 ><A
4158 HREF="#PREEXEC"
4159 ><TT
4160 CLASS="PARAMETER"
4161 ><I
4162 >preexec</I
4163 ></TT
4164 ></A
4165 ></P
4166 ></LI
4167 ><LI
4168 ><P
4169 ><A
4170 HREF="#PREEXECCLOSE"
4171 ><TT
4172 CLASS="PARAMETER"
4173 ><I
4174 >preexec close</I
4175 ></TT
4176 ></A
4177 ></P
4178 ></LI
4179 ><LI
4180 ><P
4181 ><A
4182 HREF="#PRESERVECASE"
4183 ><TT
4184 CLASS="PARAMETER"
4185 ><I
4186 >preserve case</I
4187 ></TT
4188 ></A
4189 ></P
4190 ></LI
4191 ><LI
4192 ><P
4193 ><A
4194 HREF="#PRINTCOMMAND"
4195 ><TT
4196 CLASS="PARAMETER"
4197 ><I
4198 >print command</I
4199 ></TT
4200 ></A
4201 ></P
4202 ></LI
4203 ><LI
4204 ><P
4205 ><A
4206 HREF="#PRINTOK"
4207 ><TT
4208 CLASS="PARAMETER"
4209 ><I
4210 >print ok</I
4211 ></TT
4212 ></A
4213 ></P
4214 ></LI
4215 ><LI
4216 ><P
4217 ><A
4218 HREF="#PRINTABLE"
4219 ><TT
4220 CLASS="PARAMETER"
4221 ><I
4222 >printable</I
4223 ></TT
4224 ></A
4225 ></P
4226 ></LI
4227 ><LI
4228 ><P
4229 ><A
4230 HREF="#PRINTER"
4231 ><TT
4232 CLASS="PARAMETER"
4233 ><I
4234 >printer</I
4235 ></TT
4236 ></A
4237 ></P
4238 ></LI
4239 ><LI
4240 ><P
4241 ><A
4242 HREF="#PRINTERADMIN"
4243 ><TT
4244 CLASS="PARAMETER"
4245 ><I
4246 >printer admin</I
4247 ></TT
4248 ></A
4249 ></P
4250 ></LI
4251 ><LI
4252 ><P
4253 ><A
4254 HREF="#PRINTERDRIVER"
4255 ><TT
4256 CLASS="PARAMETER"
4257 ><I
4258 >printer driver</I
4259 ></TT
4260 ></A
4261 ></P
4262 ></LI
4263 ><LI
4264 ><P
4265 ><A
4266 HREF="#PRINTERDRIVERLOCATION"
4267 ><TT
4268 CLASS="PARAMETER"
4269 ><I
4270 >printer driver location</I
4271 ></TT
4272 ></A
4273 ></P
4274 ></LI
4275 ><LI
4276 ><P
4277 ><A
4278 HREF="#PRINTERNAME"
4279 ><TT
4280 CLASS="PARAMETER"
4281 ><I
4282 >printer name</I
4283 ></TT
4284 ></A
4285 ></P
4286 ></LI
4287 ><LI
4288 ><P
4289 ><A
4290 HREF="#PRINTING"
4291 ><TT
4292 CLASS="PARAMETER"
4293 ><I
4294 >printing</I
4295 ></TT
4296 ></A
4297 ></P
4298 ></LI
4299 ><LI
4300 ><P
4301 ><A
4302 HREF="#PUBLIC"
4303 ><TT
4304 CLASS="PARAMETER"
4305 ><I
4306 >public</I
4307 ></TT
4308 ></A
4309 ></P
4310 ></LI
4311 ><LI
4312 ><P
4313 ><A
4314 HREF="#QUEUEPAUSECOMMAND"
4315 ><TT
4316 CLASS="PARAMETER"
4317 ><I
4318 >queuepause command</I
4319 ></TT
4320 ></A
4321 ></P
4322 ></LI
4323 ><LI
4324 ><P
4325 ><A
4326 HREF="#QUEUERESUMECOMMAND"
4327 ><TT
4328 CLASS="PARAMETER"
4329 ><I
4330 >queueresume command</I
4331 ></TT
4332 ></A
4333 ></P
4334 ></LI
4335 ><LI
4336 ><P
4337 ><A
4338 HREF="#READLIST"
4339 ><TT
4340 CLASS="PARAMETER"
4341 ><I
4342 >read list</I
4343 ></TT
4344 ></A
4345 ></P
4346 ></LI
4347 ><LI
4348 ><P
4349 ><A
4350 HREF="#READONLY"
4351 ><TT
4352 CLASS="PARAMETER"
4353 ><I
4354 >read only</I
4355 ></TT
4356 ></A
4357 ></P
4358 ></LI
4359 ><LI
4360 ><P
4361 ><A
4362 HREF="#ROOTPOSTEXEC"
4363 ><TT
4364 CLASS="PARAMETER"
4365 ><I
4366 >root postexec</I
4367 ></TT
4368 ></A
4369 ></P
4370 ></LI
4371 ><LI
4372 ><P
4373 ><A
4374 HREF="#ROOTPREEXEC"
4375 ><TT
4376 CLASS="PARAMETER"
4377 ><I
4378 >root preexec</I
4379 ></TT
4380 ></A
4381 ></P
4382 ></LI
4383 ><LI
4384 ><P
4385 ><A
4386 HREF="#ROOTPREEXECCLOSE"
4387 ><TT
4388 CLASS="PARAMETER"
4389 ><I
4390 >root preexec close</I
4391 ></TT
4392 ></A
4393 ></P
4394 ></LI
4395 ><LI
4396 ><P
4397 ><A
4398 HREF="#SECURITYMASK"
4399 ><TT
4400 CLASS="PARAMETER"
4401 ><I
4402 >security mask</I
4403 ></TT
4404 ></A
4405 ></P
4406 ></LI
4407 ><LI
4408 ><P
4409 ><A
4410 HREF="#SETDIRECTORY"
4411 ><TT
4412 CLASS="PARAMETER"
4413 ><I
4414 >set directory</I
4415 ></TT
4416 ></A
4417 ></P
4418 ></LI
4419 ><LI
4420 ><P
4421 ><A
4422 HREF="#SHAREMODES"
4423 ><TT
4424 CLASS="PARAMETER"
4425 ><I
4426 >share modes</I
4427 ></TT
4428 ></A
4429 ></P
4430 ></LI
4431 ><LI
4432 ><P
4433 ><A
4434 HREF="#SHORTPRESERVECASE"
4435 ><TT
4436 CLASS="PARAMETER"
4437 ><I
4438 >short preserve case</I
4439 ></TT
4440 ></A
4441 ></P
4442 ></LI
4443 ><LI
4444 ><P
4445 ><A
4446 HREF="#STRICTALLOCATE"
4447 ><TT
4448 CLASS="PARAMETER"
4449 ><I
4450 >strict allocate</I
4451 ></TT
4452 ></A
4453 ></P
4454 ></LI
4455 ><LI
4456 ><P
4457 ><A
4458 HREF="#STRICTLOCKING"
4459 ><TT
4460 CLASS="PARAMETER"
4461 ><I
4462 >strict locking</I
4463 ></TT
4464 ></A
4465 ></P
4466 ></LI
4467 ><LI
4468 ><P
4469 ><A
4470 HREF="#STRICTSYNC"
4471 ><TT
4472 CLASS="PARAMETER"
4473 ><I
4474 >strict sync</I
4475 ></TT
4476 ></A
4477 ></P
4478 ></LI
4479 ><LI
4480 ><P
4481 ><A
4482 HREF="#SYNCALWAYS"
4483 ><TT
4484 CLASS="PARAMETER"
4485 ><I
4486 >sync always</I
4487 ></TT
4488 ></A
4489 ></P
4490 ></LI
4491 ><LI
4492 ><P
4493 ><A
4494 HREF="#USECLIENTDRIVER"
4495 ><TT
4496 CLASS="PARAMETER"
4497 ><I
4498 >use client driver</I
4499 ></TT
4500 ></A
4501 ></P
4502 ></LI
4503 ><LI
4504 ><P
4505 ><A
4506 HREF="#USER"
4507 ><TT
4508 CLASS="PARAMETER"
4509 ><I
4510 >user</I
4511 ></TT
4512 ></A
4513 ></P
4514 ></LI
4515 ><LI
4516 ><P
4517 ><A
4518 HREF="#USERNAME"
4519 ><TT
4520 CLASS="PARAMETER"
4521 ><I
4522 >username</I
4523 ></TT
4524 ></A
4525 ></P
4526 ></LI
4527 ><LI
4528 ><P
4529 ><A
4530 HREF="#USERS"
4531 ><TT
4532 CLASS="PARAMETER"
4533 ><I
4534 >users</I
4535 ></TT
4536 ></A
4537 ></P
4538 ></LI
4539 ><LI
4540 ><P
4541 ><A
4542 HREF="#VALIDUSERS"
4543 ><TT
4544 CLASS="PARAMETER"
4545 ><I
4546 >valid users</I
4547 ></TT
4548 ></A
4549 ></P
4550 ></LI
4551 ><LI
4552 ><P
4553 ><A
4554 HREF="#VETOFILES"
4555 ><TT
4556 CLASS="PARAMETER"
4557 ><I
4558 >veto files</I
4559 ></TT
4560 ></A
4561 ></P
4562 ></LI
4563 ><LI
4564 ><P
4565 ><A
4566 HREF="#VETOOPLOCKFILES"
4567 ><TT
4568 CLASS="PARAMETER"
4569 ><I
4570 >veto oplock files</I
4571 ></TT
4572 ></A
4573 ></P
4574 ></LI
4575 ><LI
4576 ><P
4577 ><A
4578 HREF="#VFSPATH"
4579 ><TT
4580 CLASS="PARAMETER"
4581 ><I
4582 >vfs path</I
4583 ></TT
4584 ></A
4585 ></P
4586 ></LI
4587 ><LI
4588 ><P
4589 ><A
4590 HREF="#VFSOBJECT"
4591 ><TT
4592 CLASS="PARAMETER"
4593 ><I
4594 >vfs object</I
4595 ></TT
4596 ></A
4597 ></P
4598 ></LI
4599 ><LI
4600 ><P
4601 ><A
4602 HREF="#VFSOPTIONS"
4603 ><TT
4604 CLASS="PARAMETER"
4605 ><I
4606 >vfs options</I
4607 ></TT
4608 ></A
4609 ></P
4610 ></LI
4611 ><LI
4612 ><P
4613 ><A
4614 HREF="#VOLUME"
4615 ><TT
4616 CLASS="PARAMETER"
4617 ><I
4618 >volume</I
4619 ></TT
4620 ></A
4621 ></P
4622 ></LI
4623 ><LI
4624 ><P
4625 ><A
4626 HREF="#WIDELINKS"
4627 ><TT
4628 CLASS="PARAMETER"
4629 ><I
4630 >wide links</I
4631 ></TT
4632 ></A
4633 ></P
4634 ></LI
4635 ><LI
4636 ><P
4637 ><A
4638 HREF="#WRITABLE"
4639 ><TT
4640 CLASS="PARAMETER"
4641 ><I
4642 >writable</I
4643 ></TT
4644 ></A
4645 ></P
4646 ></LI
4647 ><LI
4648 ><P
4649 ><A
4650 HREF="#WRITECACHESIZE"
4651 ><TT
4652 CLASS="PARAMETER"
4653 ><I
4654 >write cache size</I
4655 ></TT
4656 ></A
4657 ></P
4658 ></LI
4659 ><LI
4660 ><P
4661 ><A
4662 HREF="#WRITELIST"
4663 ><TT
4664 CLASS="PARAMETER"
4665 ><I
4666 >write list</I
4667 ></TT
4668 ></A
4669 ></P
4670 ></LI
4671 ><LI
4672 ><P
4673 ><A
4674 HREF="#WRITEOK"
4675 ><TT
4676 CLASS="PARAMETER"
4677 ><I
4678 >write ok</I
4679 ></TT
4680 ></A
4681 ></P
4682 ></LI
4683 ><LI
4684 ><P
4685 ><A
4686 HREF="#WRITEABLE"
4687 ><TT
4688 CLASS="PARAMETER"
4689 ><I
4690 >writeable</I
4691 ></TT
4692 ></A
4693 ></P
4694 ></LI
4695 ></UL
4696 ></DIV
4697 ><DIV
4698 CLASS="REFSECT1"
4699 ><A
4700 NAME="AEN1526"
4701 ></A
4702 ><H2
4703 >EXPLANATION OF EACH PARAMETER</H2
4704 ><P
4705 ></P
4706 ><DIV
4707 CLASS="VARIABLELIST"
4708 ><DL
4709 ><DT
4710 ><A
4711 NAME="ABORTSHUTDOWNSCRIPT"
4712 ></A
4713 >&#62;abort shutdown script (G)</DT
4714 ><DD
4715 ><P
4716 ><SPAN
4717 CLASS="emphasis"
4718 ><I
4719 CLASS="EMPHASIS"
4720 >This parameter only exists in the HEAD cvs branch</I
4721 ></SPAN
4722 >
4723                 This a full path name to a script called by <SPAN
4724 CLASS="CITEREFENTRY"
4725 ><SPAN
4726 CLASS="REFENTRYTITLE"
4727 >smbd</SPAN
4728 >(8)</SPAN
4729 > that
4730                 should stop a shutdown procedure issued by the <A
4731 HREF="#SHUTDOWNSCRIPT"
4732 ><TT
4733 CLASS="PARAMETER"
4734 ><I
4735 >shutdown script</I
4736 ></TT
4737 ></A
4738 >.</P
4739 ><P
4740 >This command will be run as user.</P
4741 ><P
4742 >Default: <SPAN
4743 CLASS="emphasis"
4744 ><I
4745 CLASS="EMPHASIS"
4746 >None</I
4747 ></SPAN
4748 >.</P
4749 ><P
4750 >Example: <B
4751 CLASS="COMMAND"
4752 >abort shutdown script = /sbin/shutdown -c</B
4753 ></P
4754 ></DD
4755 ><DT
4756 ><A
4757 NAME="ADDPRINTERCOMMAND"
4758 ></A
4759 >&#62;addprinter command (G)</DT
4760 ><DD
4761 ><P
4762 >With the introduction of MS-RPC based printing
4763                 support for Windows NT/2000 clients in Samba 2.2, The MS Add
4764                 Printer Wizard (APW) icon is now also available in the 
4765                 "Printers..." folder displayed a share listing.  The APW
4766                 allows for printers to be add remotely to a Samba or Windows 
4767                 NT/2000 print server.</P
4768 ><P
4769 >For a Samba host this means that the printer must be 
4770                 physically added to the underlying printing system.  The <TT
4771 CLASS="PARAMETER"
4772 ><I
4773 >add 
4774                 printer command</I
4775 ></TT
4776 > defines a script to be run which 
4777                 will perform the necessary operations for adding the printer
4778                 to the print system and to add the appropriate service definition 
4779                 to the  <TT
4780 CLASS="FILENAME"
4781 >smb.conf</TT
4782 > file in order that it can be 
4783                 shared by <SPAN
4784 CLASS="CITEREFENTRY"
4785 ><SPAN
4786 CLASS="REFENTRYTITLE"
4787 >smbd</SPAN
4788 >(8)</SPAN
4789 >.</P
4790 ><P
4791 >The <TT
4792 CLASS="PARAMETER"
4793 ><I
4794 >addprinter command</I
4795 ></TT
4796 > is
4797                 automatically invoked with the following parameter (in 
4798                 order):</P
4799 ><P
4800 ></P
4801 ><UL
4802 ><LI
4803 ><P
4804 ><TT
4805 CLASS="PARAMETER"
4806 ><I
4807 >printer name</I
4808 ></TT
4809 ></P
4810 ></LI
4811 ><LI
4812 ><P
4813 ><TT
4814 CLASS="PARAMETER"
4815 ><I
4816 >share name</I
4817 ></TT
4818 ></P
4819 ></LI
4820 ><LI
4821 ><P
4822 ><TT
4823 CLASS="PARAMETER"
4824 ><I
4825 >port name</I
4826 ></TT
4827 ></P
4828 ></LI
4829 ><LI
4830 ><P
4831 ><TT
4832 CLASS="PARAMETER"
4833 ><I
4834 >driver name</I
4835 ></TT
4836 ></P
4837 ></LI
4838 ><LI
4839 ><P
4840 ><TT
4841 CLASS="PARAMETER"
4842 ><I
4843 >location</I
4844 ></TT
4845 ></P
4846 ></LI
4847 ><LI
4848 ><P
4849 ><TT
4850 CLASS="PARAMETER"
4851 ><I
4852 >Windows 9x driver location</I
4853 ></TT
4854 >
4855                         </P
4856 ></LI
4857 ></UL
4858 ><P
4859 >All parameters are filled in from the PRINTER_INFO_2 structure sent 
4860                 by the Windows NT/2000 client with one exception.  The "Windows 9x
4861                 driver location" parameter is included for backwards compatibility
4862                 only.  The remaining fields in the structure are generated from answers
4863                 to the APW questions.</P
4864 ><P
4865 >Once the <TT
4866 CLASS="PARAMETER"
4867 ><I
4868 >addprinter command</I
4869 ></TT
4870 > has 
4871                 been executed, <B
4872 CLASS="COMMAND"
4873 >smbd</B
4874 > will reparse the <TT
4875 CLASS="FILENAME"
4876 >               smb.conf</TT
4877 > to determine if the share defined by the APW
4878                 exists.  If the sharename is still invalid, then <B
4879 CLASS="COMMAND"
4880 >smbd
4881                 </B
4882 > will return an ACCESS_DENIED error to the client.</P
4883 ><P
4884 >See also <A
4885 HREF="#DELETEPRINTERCOMMAND"
4886 ><TT
4887 CLASS="PARAMETER"
4888 ><I
4889 >               deleteprinter command</I
4890 ></TT
4891 ></A
4892 >, <A
4893 HREF="#PRINTING"
4894 ><TT
4895 CLASS="PARAMETER"
4896 ><I
4897 >printing</I
4898 ></TT
4899 ></A
4900 >,
4901                 <A
4902 HREF="#SHOWADDPRINTERWIZARD"
4903 ><TT
4904 CLASS="PARAMETER"
4905 ><I
4906 >show add
4907                 printer wizard</I
4908 ></TT
4909 ></A
4910 ></P
4911 ><P
4912 >Default: <SPAN
4913 CLASS="emphasis"
4914 ><I
4915 CLASS="EMPHASIS"
4916 >none</I
4917 ></SPAN
4918 ></P
4919 ><P
4920 >Example: <B
4921 CLASS="COMMAND"
4922 >addprinter command = /usr/bin/addprinter
4923                 </B
4924 ></P
4925 ></DD
4926 ><DT
4927 ><A
4928 NAME="ADDSHARECOMMAND"
4929 ></A
4930 >&#62;add share command (G)</DT
4931 ><DD
4932 ><P
4933 >Samba 2.2.0 introduced the ability to dynamically 
4934                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
4935                 <TT
4936 CLASS="PARAMETER"
4937 ><I
4938 >add share command</I
4939 ></TT
4940 > is used to define an 
4941                 external program or script which will add a new service definition 
4942                 to <TT
4943 CLASS="FILENAME"
4944 >smb.conf</TT
4945 >.  In order to successfully 
4946                 execute the <TT
4947 CLASS="PARAMETER"
4948 ><I
4949 >add share command</I
4950 ></TT
4951 >, <B
4952 CLASS="COMMAND"
4953 >smbd</B
4954 >
4955                 requires that the administrator be connected using a root account (i.e. 
4956                 uid == 0).
4957                 </P
4958 ><P
4959 >               When executed, <B
4960 CLASS="COMMAND"
4961 >smbd</B
4962 > will automatically invoke the 
4963                 <TT
4964 CLASS="PARAMETER"
4965 ><I
4966 >add share command</I
4967 ></TT
4968 > with four parameters.
4969                 </P
4970 ><P
4971 ></P
4972 ><UL
4973 ><LI
4974 ><P
4975 ><TT
4976 CLASS="PARAMETER"
4977 ><I
4978 >configFile</I
4979 ></TT
4980 > - the location 
4981                         of the global <TT
4982 CLASS="FILENAME"
4983 >smb.conf</TT
4984 > file. 
4985                         </P
4986 ></LI
4987 ><LI
4988 ><P
4989 ><TT
4990 CLASS="PARAMETER"
4991 ><I
4992 >shareName</I
4993 ></TT
4994 > - the name of the new 
4995                         share.
4996                         </P
4997 ></LI
4998 ><LI
4999 ><P
5000 ><TT
5001 CLASS="PARAMETER"
5002 ><I
5003 >pathName</I
5004 ></TT
5005 > - path to an **existing**
5006                         directory on disk.
5007                         </P
5008 ></LI
5009 ><LI
5010 ><P
5011 ><TT
5012 CLASS="PARAMETER"
5013 ><I
5014 >comment</I
5015 ></TT
5016 > - comment string to associate 
5017                         with the new share.
5018                         </P
5019 ></LI
5020 ></UL
5021 ><P
5022 >               This parameter is only used for add file shares.  To add printer shares, 
5023                 see the <A
5024 HREF="#ADDPRINTERCOMMAND"
5025 ><TT
5026 CLASS="PARAMETER"
5027 ><I
5028 >addprinter 
5029                 command</I
5030 ></TT
5031 ></A
5032 >.
5033                 </P
5034 ><P
5035 >               See also <A
5036 HREF="#CHANGESHARECOMMAND"
5037 ><TT
5038 CLASS="PARAMETER"
5039 ><I
5040 >change share 
5041                 command</I
5042 ></TT
5043 ></A
5044 >, <A
5045 HREF="#DELETESHARECOMMAND"
5046 ><TT
5047 CLASS="PARAMETER"
5048 ><I
5049 >delete share
5050                 command</I
5051 ></TT
5052 ></A
5053 >.
5054                 </P
5055 ><P
5056 >Default: <SPAN
5057 CLASS="emphasis"
5058 ><I
5059 CLASS="EMPHASIS"
5060 >none</I
5061 ></SPAN
5062 ></P
5063 ><P
5064 >Example: <B
5065 CLASS="COMMAND"
5066 >add share command = /usr/local/bin/addshare</B
5067 ></P
5068 ></DD
5069 ><DT
5070 ><A
5071 NAME="ADDMACHINESCRIPT"
5072 ></A
5073 >&#62;add machine script (G)</DT
5074 ><DD
5075 ><P
5076 >This is the full pathname to a script that will 
5077                 be run by <SPAN
5078 CLASS="CITEREFENTRY"
5079 ><SPAN
5080 CLASS="REFENTRYTITLE"
5081 >smbd</SPAN
5082 >(8)</SPAN
5083 > when a machine is added
5084                 to it's domain using the administrator username and password method. </P
5085 ><P
5086 >This option is only required when using sam back-ends tied to the
5087                 Unix uid method of RID calculation such as smbpasswd.  This option is only
5088                 available in Samba 3.0.</P
5089 ><P
5090 >Default: <B
5091 CLASS="COMMAND"
5092 >add machine script = &lt;empty string&gt;
5093                 </B
5094 ></P
5095 ><P
5096 >Example: <B
5097 CLASS="COMMAND"
5098 >add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
5099                 </B
5100 ></P
5101 ></DD
5102 ><DT
5103 ><A
5104 NAME="ADSSERVER"
5105 ></A
5106 >&#62;ads server (G)</DT
5107 ><DD
5108 ><P
5109 >If this option is specified, samba does 
5110                 not try to figure out what ads server to use itself, but 
5111                 uses the specified ads server. Either one DNS name or IP 
5112                 address can be used.</P
5113 ><P
5114 >Default: <B
5115 CLASS="COMMAND"
5116 >ads server = </B
5117 ></P
5118 ><P
5119 >Example: <B
5120 CLASS="COMMAND"
5121 >ads server = 192.168.1.2</B
5122 ></P
5123 ></DD
5124 ><DT
5125 ><A
5126 NAME="ADDUSERSCRIPT"
5127 ></A
5128 >&#62;add user script (G)</DT
5129 ><DD
5130 ><P
5131 >This is the full pathname to a script that will 
5132                 be run <SPAN
5133 CLASS="emphasis"
5134 ><I
5135 CLASS="EMPHASIS"
5136 >AS ROOT</I
5137 ></SPAN
5138 > by <SPAN
5139 CLASS="CITEREFENTRY"
5140 ><SPAN
5141 CLASS="REFENTRYTITLE"
5142 >smbd</SPAN
5143 >(8)</SPAN
5144 > under special circumstances described below.</P
5145 ><P
5146 >Normally, a Samba server requires that UNIX users are 
5147                 created for all users accessing files on this server. For sites 
5148                 that use Windows NT account databases as their primary user database 
5149                 creating these users and keeping the user list in sync with the 
5150                 Windows NT PDC is an onerous task. This option allows <A
5151 HREF="smbd.8.html"
5152 TARGET="_top"
5153 >smbd</A
5154 > to create the required UNIX users 
5155                 <SPAN
5156 CLASS="emphasis"
5157 ><I
5158 CLASS="EMPHASIS"
5159 >ON DEMAND</I
5160 ></SPAN
5161 > when a user accesses the Samba server.</P
5162 ><P
5163 >In order to use this option, <SPAN
5164 CLASS="CITEREFENTRY"
5165 ><SPAN
5166 CLASS="REFENTRYTITLE"
5167 >smbd</SPAN
5168 >(8)</SPAN
5169 > must <SPAN
5170 CLASS="emphasis"
5171 ><I
5172 CLASS="EMPHASIS"
5173 >NOT</I
5174 ></SPAN
5175 > be set to <TT
5176 CLASS="PARAMETER"
5177 ><I
5178 >security = share</I
5179 ></TT
5180 >
5181                 and <TT
5182 CLASS="PARAMETER"
5183 ><I
5184 >add user script</I
5185 ></TT
5186 >
5187                 must be set to a full pathname for a script that will create a UNIX 
5188                 user given one argument of <TT
5189 CLASS="PARAMETER"
5190 ><I
5191 >%u</I
5192 ></TT
5193 >, which expands into 
5194                 the UNIX user name to create.</P
5195 ><P
5196 >When the Windows user attempts to access the Samba server, 
5197                 at login (session setup in the SMB protocol) time, <SPAN
5198 CLASS="CITEREFENTRY"
5199 ><SPAN
5200 CLASS="REFENTRYTITLE"
5201 >smbd</SPAN
5202 >(8)</SPAN
5203 > contacts the <TT
5204 CLASS="PARAMETER"
5205 ><I
5206 >password server</I
5207 ></TT
5208 > and 
5209                 attempts to authenticate the given user with the given password. If the 
5210                 authentication succeeds then <B
5211 CLASS="COMMAND"
5212 >smbd</B
5213
5214                 attempts to find a UNIX user in the UNIX password database to map the 
5215                 Windows user into. If this lookup fails, and <TT
5216 CLASS="PARAMETER"
5217 ><I
5218 >add user script
5219                 </I
5220 ></TT
5221 > is set then <B
5222 CLASS="COMMAND"
5223 >smbd</B
5224 > will
5225                 call the specified script <SPAN
5226 CLASS="emphasis"
5227 ><I
5228 CLASS="EMPHASIS"
5229 >AS ROOT</I
5230 ></SPAN
5231 >, expanding 
5232                 any <TT
5233 CLASS="PARAMETER"
5234 ><I
5235 >%u</I
5236 ></TT
5237 > argument to be the user name to create.</P
5238 ><P
5239 >If this script successfully creates the user then <B
5240 CLASS="COMMAND"
5241 >smbd
5242                 </B
5243 > will continue on as though the UNIX user
5244                 already existed. In this way, UNIX users are dynamically created to
5245                 match existing Windows NT accounts.</P
5246 ><P
5247 >See also <A
5248 HREF="#SECURITY"
5249 ><TT
5250 CLASS="PARAMETER"
5251 ><I
5252 >               security</I
5253 ></TT
5254 ></A
5255 >, <A
5256 HREF="#PASSWORDSERVER"
5257 >               <TT
5258 CLASS="PARAMETER"
5259 ><I
5260 >password server</I
5261 ></TT
5262 ></A
5263 >, 
5264                 <A
5265 HREF="#DELETEUSERSCRIPT"
5266 ><TT
5267 CLASS="PARAMETER"
5268 ><I
5269 >delete user 
5270                 script</I
5271 ></TT
5272 ></A
5273 >.</P
5274 ><P
5275 >Default: <B
5276 CLASS="COMMAND"
5277 >add user script = &lt;empty string&gt;
5278                 </B
5279 ></P
5280 ><P
5281 >Example: <B
5282 CLASS="COMMAND"
5283 >add user script = /usr/local/samba/bin/add_user 
5284                 %u</B
5285 ></P
5286 ></DD
5287 ><DT
5288 ><A
5289 NAME="ADDGROUPSCRIPT"
5290 ></A
5291 >&#62;add group script (G)</DT
5292 ><DD
5293 ><P
5294 >This is the full pathname to a script that will 
5295                 be run <SPAN
5296 CLASS="emphasis"
5297 ><I
5298 CLASS="EMPHASIS"
5299 >AS ROOT</I
5300 ></SPAN
5301 > by <SPAN
5302 CLASS="CITEREFENTRY"
5303 ><SPAN
5304 CLASS="REFENTRYTITLE"
5305 >smbd</SPAN
5306 >(8)</SPAN
5307 > when a new group is
5308                 requested. It will expand any
5309                 <TT
5310 CLASS="PARAMETER"
5311 ><I
5312 >%g</I
5313 ></TT
5314 > to the group name passed.
5315                 This script is only useful for installations using the
5316                 Windows NT domain administration tools. The script is
5317                 free to create a group with an arbitrary name to
5318                 circumvent unix group name restrictions. In that case
5319                 the script must print the numeric gid of the created
5320                 group on stdout.
5321                 </P
5322 ></DD
5323 ><DT
5324 ><A
5325 NAME="ADMINUSERS"
5326 ></A
5327 >&#62;admin users (S)</DT
5328 ><DD
5329 ><P
5330 >This is a list of users who will be granted 
5331                 administrative privileges on the share. This means that they 
5332                 will do all file operations as the super-user (root).</P
5333 ><P
5334 >You should use this option very carefully, as any user in 
5335                 this list will be able to do anything they like on the share, 
5336                 irrespective of file permissions.</P
5337 ><P
5338 >Default: <SPAN
5339 CLASS="emphasis"
5340 ><I
5341 CLASS="EMPHASIS"
5342 >no admin users</I
5343 ></SPAN
5344 ></P
5345 ><P
5346 >Example: <B
5347 CLASS="COMMAND"
5348 >admin users = jason</B
5349 ></P
5350 ></DD
5351 ><DT
5352 ><A
5353 NAME="ADDUSERTOGROUPSCRIPT"
5354 ></A
5355 >&#62;add user to group script (G)</DT
5356 ><DD
5357 ><P
5358 >Full path to the script that will be called when 
5359                 a user is added to a group using the Windows NT domain administration 
5360                 tools. It will be run by <SPAN
5361 CLASS="CITEREFENTRY"
5362 ><SPAN
5363 CLASS="REFENTRYTITLE"
5364 >smbd</SPAN
5365 >(8)</SPAN
5366 >       <SPAN
5367 CLASS="emphasis"
5368 ><I
5369 CLASS="EMPHASIS"
5370 >AS ROOT</I
5371 ></SPAN
5372 >. 
5373                 Any <TT
5374 CLASS="PARAMETER"
5375 ><I
5376 >%g</I
5377 ></TT
5378 > will be replaced with the group name and 
5379                 any <TT
5380 CLASS="PARAMETER"
5381 ><I
5382 >%u</I
5383 ></TT
5384 > will be replaced with the user name.
5385                 </P
5386 ><P
5387 >Default: <B
5388 CLASS="COMMAND"
5389 >add user to group script = </B
5390 ></P
5391 ><P
5392 >Example: <B
5393 CLASS="COMMAND"
5394 >add user to group script = /usr/sbin/adduser %u %g</B
5395 ></P
5396 ></DD
5397 ><DT
5398 ><A
5399 NAME="ALLOWHOSTS"
5400 ></A
5401 >&#62;allow hosts (S)</DT
5402 ><DD
5403 ><P
5404 >Synonym for <A
5405 HREF="#HOSTSALLOW"
5406 >               <TT
5407 CLASS="PARAMETER"
5408 ><I
5409 >hosts allow</I
5410 ></TT
5411 ></A
5412 >.</P
5413 ></DD
5414 ><DT
5415 ><A
5416 NAME="ALGORITHMICRIDBASE"
5417 ></A
5418 >&#62;algorithmic rid base (G)</DT
5419 ><DD
5420 ><P
5421 >This determines how Samba will use its
5422                 algorithmic mapping from uids/gid to the RIDs needed to construct
5423                 NT Security Identifiers.</P
5424 ><P
5425 >Setting this option to a larger value could be useful to sites
5426                 transitioning from WinNT and Win2k, as existing user and 
5427                 group rids would otherwise clash with sytem users etc. 
5428                 </P
5429 ><P
5430 >All UIDs and GIDs must be able to be resolved into SIDs for  
5431                 the correct operation of ACLs on the server.  As such the algorithmic
5432                 mapping can't be 'turned off', but pushing it 'out of the way' should
5433                 resolve the issues.  Users and groups can then be assigned 'low' RIDs
5434                 in arbitary-rid supporting backends. </P
5435 ><P
5436 >Default: <B
5437 CLASS="COMMAND"
5438 >algorithmic rid base = 1000</B
5439 ></P
5440 ><P
5441 >Example: <B
5442 CLASS="COMMAND"
5443 >algorithmic rid base = 100000</B
5444 ></P
5445 ></DD
5446 ><DT
5447 ><A
5448 NAME="ALLOWTRUSTEDDOMAINS"
5449 ></A
5450 >&#62;allow trusted domains (G)</DT
5451 ><DD
5452 ><P
5453 >This option only takes effect when the <A
5454 HREF="#SECURITY"
5455 ><TT
5456 CLASS="PARAMETER"
5457 ><I
5458 >security</I
5459 ></TT
5460 ></A
5461 > option is set to 
5462                 <TT
5463 CLASS="CONSTANT"
5464 >server</TT
5465 > or <TT
5466 CLASS="CONSTANT"
5467 >domain</TT
5468 >.  
5469                 If it is set to no, then attempts to connect to a resource from 
5470                 a domain or workgroup other than the one which <A
5471 HREF="smbd.8.html"
5472 TARGET="_top"
5473 >smbd</A
5474 > is running 
5475                 in will fail, even if that domain is trusted by the remote server 
5476                 doing the authentication.</P
5477 ><P
5478 >This is useful if you only want your Samba server to 
5479                 serve resources to users in the domain it is a member of. As 
5480                 an example, suppose that there are two domains DOMA and DOMB.  DOMB 
5481                 is trusted by DOMA, which contains the Samba server.  Under normal 
5482                 circumstances, a user with an account in DOMB can then access the 
5483                 resources of a UNIX account with the same account name on the 
5484                 Samba server even if they do not have an account in DOMA.  This 
5485                 can make implementing a security boundary difficult.</P
5486 ><P
5487 >Default: <B
5488 CLASS="COMMAND"
5489 >allow trusted domains = yes</B
5490 ></P
5491 ></DD
5492 ><DT
5493 ><A
5494 NAME="ANNOUNCEAS"
5495 ></A
5496 >&#62;announce as (G)</DT
5497 ><DD
5498 ><P
5499 >This specifies what type of server <SPAN
5500 CLASS="CITEREFENTRY"
5501 ><SPAN
5502 CLASS="REFENTRYTITLE"
5503 >nmbd</SPAN
5504 >(8)</SPAN
5505 > will announce itself as, to a network neighborhood browse 
5506                 list. By default this is set to Windows NT. The valid options 
5507                 are : "NT Server" (which can also be written as "NT"), 
5508                 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, 
5509                 Windows NT Workstation, Windows 95 and Windows for Workgroups 
5510                 respectively. Do not change this parameter unless you have a 
5511                 specific need to stop Samba appearing as an NT server as this 
5512                 may prevent Samba servers from participating as browser servers 
5513                 correctly.</P
5514 ><P
5515 >Default: <B
5516 CLASS="COMMAND"
5517 >announce as = NT Server</B
5518 ></P
5519 ><P
5520 >Example: <B
5521 CLASS="COMMAND"
5522 >announce as = Win95</B
5523 ></P
5524 ></DD
5525 ><DT
5526 ><A
5527 NAME="ANNOUNCEVERSION"
5528 ></A
5529 >&#62;announce version (G)</DT
5530 ><DD
5531 ><P
5532 >This specifies the major and minor version numbers 
5533                 that nmbd will use when announcing itself as a server. The default 
5534                 is 4.9.  Do not change this parameter unless you have a specific 
5535                 need to set a Samba server to be a downlevel server.</P
5536 ><P
5537 >Default: <B
5538 CLASS="COMMAND"
5539 >announce version = 4.9</B
5540 ></P
5541 ><P
5542 >Example: <B
5543 CLASS="COMMAND"
5544 >announce version = 2.0</B
5545 ></P
5546 ></DD
5547 ><DT
5548 ><A
5549 NAME="AUTOSERVICES"
5550 ></A
5551 >&#62;auto services (G)</DT
5552 ><DD
5553 ><P
5554 >This is a synonym for the <A
5555 HREF="#PRELOAD"
5556 >               <TT
5557 CLASS="PARAMETER"
5558 ><I
5559 >preload</I
5560 ></TT
5561 ></A
5562 >.</P
5563 ></DD
5564 ><DT
5565 ><A
5566 NAME="AUTHMETHODS"
5567 ></A
5568 >&#62;auth methods (G)</DT
5569 ><DD
5570 ><P
5571 >This option allows the administrator to chose what
5572                 authentication methods <B
5573 CLASS="COMMAND"
5574 >smbd</B
5575 > will use when authenticating
5576                 a user.  This option defaults to sensible values based on <A
5577 HREF="#SECURITY"
5578 ><TT
5579 CLASS="PARAMETER"
5580 ><I
5581 >               security</I
5582 ></TT
5583 ></A
5584 >.
5585
5586                 Each entry in the list attempts to authenticate the user in turn, until
5587                 the user authenticates.  In practice only one method will ever actually 
5588                 be able to complete the authentication.
5589                 </P
5590 ><P
5591 >Default: <B
5592 CLASS="COMMAND"
5593 >auth methods = &lt;empty string&gt;</B
5594 ></P
5595 ><P
5596 >Example: <B
5597 CLASS="COMMAND"
5598 >auth methods = guest sam ntdomain</B
5599 ></P
5600 ></DD
5601 ><DT
5602 ><A
5603 NAME="AVAILABLE"
5604 ></A
5605 >&#62;available (S)</DT
5606 ><DD
5607 ><P
5608 >This parameter lets you "turn off" a service. If 
5609                 <TT
5610 CLASS="PARAMETER"
5611 ><I
5612 >available = no</I
5613 ></TT
5614 >, then <SPAN
5615 CLASS="emphasis"
5616 ><I
5617 CLASS="EMPHASIS"
5618 >ALL</I
5619 ></SPAN
5620
5621                 attempts to connect to the service will fail. Such failures are 
5622                 logged.</P
5623 ><P
5624 >Default: <B
5625 CLASS="COMMAND"
5626 >available = yes</B
5627 ></P
5628 ></DD
5629 ><DT
5630 ><A
5631 NAME="BINDINTERFACESONLY"
5632 ></A
5633 >&#62;bind interfaces only (G)</DT
5634 ><DD
5635 ><P
5636 >This global parameter allows the Samba admin 
5637                 to limit what interfaces on a machine will serve SMB requests. It 
5638                 affects file service <SPAN
5639 CLASS="CITEREFENTRY"
5640 ><SPAN
5641 CLASS="REFENTRYTITLE"
5642 >smbd</SPAN
5643 >(8)</SPAN
5644 > and name service <SPAN
5645 CLASS="CITEREFENTRY"
5646 ><SPAN
5647 CLASS="REFENTRYTITLE"
5648 >nmbd</SPAN
5649 >(8)</SPAN
5650 > in a slightly different ways.</P
5651 ><P
5652 >For name service it causes <B
5653 CLASS="COMMAND"
5654 >nmbd</B
5655 > to bind 
5656                 to ports 137 and 138 on the interfaces listed in the <A
5657 HREF="#INTERFACES"
5658 >interfaces</A
5659 > parameter. <B
5660 CLASS="COMMAND"
5661 >nmbd
5662                 </B
5663 > also binds to the "all addresses" interface (0.0.0.0) 
5664                 on ports 137 and 138 for the purposes of reading broadcast messages. 
5665                 If this option is not set then <B
5666 CLASS="COMMAND"
5667 >nmbd</B
5668 > will service 
5669                 name requests on all of these sockets. If <TT
5670 CLASS="PARAMETER"
5671 ><I
5672 >bind interfaces
5673                 only</I
5674 ></TT
5675 > is set then <B
5676 CLASS="COMMAND"
5677 >nmbd</B
5678 > will check the 
5679                 source address of any packets coming in on the broadcast sockets 
5680                 and discard any that don't match the broadcast addresses of the 
5681                 interfaces in the <TT
5682 CLASS="PARAMETER"
5683 ><I
5684 >interfaces</I
5685 ></TT
5686 > parameter list. 
5687                 As unicast packets are received on the other sockets it allows 
5688                 <B
5689 CLASS="COMMAND"
5690 >nmbd</B
5691 > to refuse to serve names to machines that 
5692                 send packets that arrive through any interfaces not listed in the
5693                 <TT
5694 CLASS="PARAMETER"
5695 ><I
5696 >interfaces</I
5697 ></TT
5698 > list.  IP Source address spoofing
5699                 does defeat this simple check, however, so it must not be used
5700                 seriously as a security feature for <B
5701 CLASS="COMMAND"
5702 >nmbd</B
5703 >.</P
5704 ><P
5705 >For file service it causes <SPAN
5706 CLASS="CITEREFENTRY"
5707 ><SPAN
5708 CLASS="REFENTRYTITLE"
5709 >smbd</SPAN
5710 >(8)</SPAN
5711 > to bind only to the interface list 
5712                 given in the <A
5713 HREF="#INTERFACES"
5714 >               interfaces</A
5715 > parameter. This restricts the networks that 
5716                 <B
5717 CLASS="COMMAND"
5718 >smbd</B
5719 > will serve to packets coming in those 
5720                 interfaces.  Note that you should not use this parameter for machines 
5721                 that are serving PPP or other intermittent or non-broadcast network 
5722                 interfaces as it will not cope with non-permanent interfaces.</P
5723 ><P
5724 >If <TT
5725 CLASS="PARAMETER"
5726 ><I
5727 >bind interfaces only</I
5728 ></TT
5729 > is set then 
5730                 unless the network address <SPAN
5731 CLASS="emphasis"
5732 ><I
5733 CLASS="EMPHASIS"
5734 >127.0.0.1</I
5735 ></SPAN
5736 > is added 
5737                 to the <TT
5738 CLASS="PARAMETER"
5739 ><I
5740 >interfaces</I
5741 ></TT
5742 > parameter list <SPAN
5743 CLASS="CITEREFENTRY"
5744 ><SPAN
5745 CLASS="REFENTRYTITLE"
5746 >smbpasswd</SPAN
5747 >(8)</SPAN
5748 > and <SPAN
5749 CLASS="CITEREFENTRY"
5750 ><SPAN
5751 CLASS="REFENTRYTITLE"
5752 >swat</SPAN
5753 >(8)</SPAN
5754 > may not work as expected due to the reasons covered below.</P
5755 ><P
5756 >To change a users SMB password, the <B
5757 CLASS="COMMAND"
5758 >smbpasswd</B
5759 >
5760                 by default connects to the <SPAN
5761 CLASS="emphasis"
5762 ><I
5763 CLASS="EMPHASIS"
5764 >localhost - 127.0.0.1</I
5765 ></SPAN
5766
5767                 address as an SMB client to issue the password change request. If 
5768                 <TT
5769 CLASS="PARAMETER"
5770 ><I
5771 >bind interfaces only</I
5772 ></TT
5773 > is set then unless the 
5774                 network address <SPAN
5775 CLASS="emphasis"
5776 ><I
5777 CLASS="EMPHASIS"
5778 >127.0.0.1</I
5779 ></SPAN
5780 > is added to the
5781                 <TT
5782 CLASS="PARAMETER"
5783 ><I
5784 >interfaces</I
5785 ></TT
5786 > parameter list then <B
5787 CLASS="COMMAND"
5788 >               smbpasswd</B
5789 > will fail to connect in it's default mode. 
5790                 <B
5791 CLASS="COMMAND"
5792 >smbpasswd</B
5793 > can be forced to use the primary IP interface 
5794                 of the local host by using its <SPAN
5795 CLASS="CITEREFENTRY"
5796 ><SPAN
5797 CLASS="REFENTRYTITLE"
5798 >smbpasswd</SPAN
5799 >(8)</SPAN
5800 >       <TT
5801 CLASS="PARAMETER"
5802 ><I
5803 >-r <TT
5804 CLASS="REPLACEABLE"
5805 ><I
5806 >remote machine</I
5807 ></TT
5808 ></I
5809 ></TT
5810 >
5811                 parameter, with <TT
5812 CLASS="REPLACEABLE"
5813 ><I
5814 >remote machine</I
5815 ></TT
5816 > set 
5817                 to the IP name of the primary interface of the local host.</P
5818 ><P
5819 >The <B
5820 CLASS="COMMAND"
5821 >swat</B
5822 > status page tries to connect with
5823                 <B
5824 CLASS="COMMAND"
5825 >smbd</B
5826 > and <B
5827 CLASS="COMMAND"
5828 >nmbd</B
5829 > at the address 
5830                 <SPAN
5831 CLASS="emphasis"
5832 ><I
5833 CLASS="EMPHASIS"
5834 >127.0.0.1</I
5835 ></SPAN
5836 > to determine if they are running.  
5837                 Not adding <SPAN
5838 CLASS="emphasis"
5839 ><I
5840 CLASS="EMPHASIS"
5841 >127.0.0.1</I
5842 ></SPAN
5843 >  will cause <B
5844 CLASS="COMMAND"
5845 >               smbd</B
5846 > and <B
5847 CLASS="COMMAND"
5848 >nmbd</B
5849 > to always show
5850                 "not running" even if they really are.  This can prevent <B
5851 CLASS="COMMAND"
5852 >               swat</B
5853 > from starting/stopping/restarting <B
5854 CLASS="COMMAND"
5855 >smbd</B
5856 >
5857                 and <B
5858 CLASS="COMMAND"
5859 >nmbd</B
5860 >.</P
5861 ><P
5862 >Default: <B
5863 CLASS="COMMAND"
5864 >bind interfaces only = no</B
5865 ></P
5866 ></DD
5867 ><DT
5868 ><A
5869 NAME="BLOCKINGLOCKS"
5870 ></A
5871 >&#62;blocking locks (S)</DT
5872 ><DD
5873 ><P
5874 >This parameter controls the behavior 
5875                 of <SPAN
5876 CLASS="CITEREFENTRY"
5877 ><SPAN
5878 CLASS="REFENTRYTITLE"
5879 >smbd</SPAN
5880 >(8)</SPAN
5881 > when given a request by a client 
5882                 to obtain a byte range lock on a region of an open file, and the 
5883                 request has a time limit associated with it.</P
5884 ><P
5885 >If this parameter is set and the lock range requested 
5886                 cannot be immediately satisfied, samba will internally 
5887                 queue the lock request, and periodically attempt to obtain 
5888                 the lock until the timeout period expires.</P
5889 ><P
5890 >If this parameter is set to <TT
5891 CLASS="CONSTANT"
5892 >no</TT
5893 >, then 
5894                 samba will behave as previous versions of Samba would and 
5895                 will fail the lock request immediately if the lock range 
5896                 cannot be obtained.</P
5897 ><P
5898 >Default: <B
5899 CLASS="COMMAND"
5900 >blocking locks = yes</B
5901 ></P
5902 ></DD
5903 ><DT
5904 ><A
5905 NAME="BLOCKSIZE"
5906 ></A
5907 >&#62;block size (S)</DT
5908 ><DD
5909 ><P
5910 >This parameter controls the behavior of <SPAN
5911 CLASS="CITEREFENTRY"
5912 ><SPAN
5913 CLASS="REFENTRYTITLE"
5914 >smbd</SPAN
5915 >(8)</SPAN
5916 > when reporting disk free 
5917                 sizes. By default, this reports a disk block size of 1024 bytes.
5918                 </P
5919 ><P
5920 >Changing this parameter may have some effect on the
5921                 efficiency of client writes, this is not yet confirmed. This
5922                 parameter was added to allow advanced administrators to change
5923                 it (usually to a higher value) and test the effect it has on
5924                 client write performance without re-compiling the code. As this
5925                 is an experimental option it may be removed in a future release.
5926                 </P
5927 ><P
5928 >Changing this option does not change the disk free reporting
5929                 size, just the block size unit reported to the client.</P
5930 ></DD
5931 ><DT
5932 ><A
5933 NAME="BROWSABLE"
5934 ></A
5935 >&#62;browsable (S)</DT
5936 ><DD
5937 ><P
5938 >See the <A
5939 HREF="#BROWSEABLE"
5940 ><TT
5941 CLASS="PARAMETER"
5942 ><I
5943 >               browseable</I
5944 ></TT
5945 ></A
5946 >.</P
5947 ></DD
5948 ><DT
5949 ><A
5950 NAME="BROWSELIST"
5951 ></A
5952 >&#62;browse list (G)</DT
5953 ><DD
5954 ><P
5955 >This controls whether <SPAN
5956 CLASS="CITEREFENTRY"
5957 ><SPAN
5958 CLASS="REFENTRYTITLE"
5959 >smbd</SPAN
5960 >(8)</SPAN
5961 > will serve a browse list to 
5962                 a client doing a <B
5963 CLASS="COMMAND"
5964 >NetServerEnum</B
5965 > call. Normally 
5966                 set to <TT
5967 CLASS="CONSTANT"
5968 >yes</TT
5969 >. You should never need to change 
5970                 this.</P
5971 ><P
5972 >Default: <B
5973 CLASS="COMMAND"
5974 >browse list = yes</B
5975 ></P
5976 ></DD
5977 ><DT
5978 ><A
5979 NAME="BROWSEABLE"
5980 ></A
5981 >&#62;browseable (S)</DT
5982 ><DD
5983 ><P
5984 >This controls whether this share is seen in 
5985                 the list of available shares in a net view and in the browse list.</P
5986 ><P
5987 >Default: <B
5988 CLASS="COMMAND"
5989 >browseable = yes</B
5990 ></P
5991 ></DD
5992 ><DT
5993 ><A
5994 NAME="CASESENSITIVE"
5995 ></A
5996 >&#62;case sensitive (S)</DT
5997 ><DD
5998 ><P
5999 >See the discussion in the section <A
6000 HREF="#AEN206"
6001 >NAME MANGLING</A
6002 >.</P
6003 ><P
6004 >Default: <B
6005 CLASS="COMMAND"
6006 >case sensitive = no</B
6007 ></P
6008 ></DD
6009 ><DT
6010 ><A
6011 NAME="CASESIGNAMES"
6012 ></A
6013 >&#62;casesignames (S)</DT
6014 ><DD
6015 ><P
6016 >Synonym for <A
6017 HREF="#CASESENSITIVE"
6018 >case 
6019                 sensitive</A
6020 >.</P
6021 ></DD
6022 ><DT
6023 ><A
6024 NAME="CHANGENOTIFYTIMEOUT"
6025 ></A
6026 >&#62;change notify timeout (G)</DT
6027 ><DD
6028 ><P
6029 >This SMB allows a client to tell a server to 
6030                 "watch" a particular directory for any changes and only reply to
6031                 the SMB request when a change has occurred. Such constant scanning of
6032                 a directory is expensive under UNIX, hence an <SPAN
6033 CLASS="CITEREFENTRY"
6034 ><SPAN
6035 CLASS="REFENTRYTITLE"
6036 >smbd</SPAN
6037 >(8)</SPAN
6038 > daemon only performs such a scan 
6039                 on each requested directory once every <TT
6040 CLASS="PARAMETER"
6041 ><I
6042 >change notify 
6043                 timeout</I
6044 ></TT
6045 > seconds.</P
6046 ><P
6047 >Default: <B
6048 CLASS="COMMAND"
6049 >change notify timeout = 60</B
6050 ></P
6051 ><P
6052 >Example: <B
6053 CLASS="COMMAND"
6054 >change notify timeout = 300</B
6055 ></P
6056 ><P
6057 >Would change the scan time to every 5 minutes.</P
6058 ></DD
6059 ><DT
6060 ><A
6061 NAME="CHANGESHARECOMMAND"
6062 ></A
6063 >&#62;change share command (G)</DT
6064 ><DD
6065 ><P
6066 >Samba 2.2.0 introduced the ability to dynamically 
6067                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6068                 <TT
6069 CLASS="PARAMETER"
6070 ><I
6071 >change share command</I
6072 ></TT
6073 > is used to define an 
6074                 external program or script which will modify an existing service definition 
6075                 in <TT
6076 CLASS="FILENAME"
6077 >smb.conf</TT
6078 >.  In order to successfully 
6079                 execute the <TT
6080 CLASS="PARAMETER"
6081 ><I
6082 >change share command</I
6083 ></TT
6084 >, <B
6085 CLASS="COMMAND"
6086 >smbd</B
6087 >
6088                 requires that the administrator be connected using a root account (i.e. 
6089                 uid == 0).
6090                 </P
6091 ><P
6092 >               When executed, <B
6093 CLASS="COMMAND"
6094 >smbd</B
6095 > will automatically invoke the 
6096                 <TT
6097 CLASS="PARAMETER"
6098 ><I
6099 >change share command</I
6100 ></TT
6101 > with four parameters.
6102                 </P
6103 ><P
6104 ></P
6105 ><UL
6106 ><LI
6107 ><P
6108 ><TT
6109 CLASS="PARAMETER"
6110 ><I
6111 >configFile</I
6112 ></TT
6113 > - the location 
6114                         of the global <TT
6115 CLASS="FILENAME"
6116 >smb.conf</TT
6117 > file. 
6118                         </P
6119 ></LI
6120 ><LI
6121 ><P
6122 ><TT
6123 CLASS="PARAMETER"
6124 ><I
6125 >shareName</I
6126 ></TT
6127 > - the name of the new 
6128                         share.
6129                         </P
6130 ></LI
6131 ><LI
6132 ><P
6133 ><TT
6134 CLASS="PARAMETER"
6135 ><I
6136 >pathName</I
6137 ></TT
6138 > - path to an **existing**
6139                         directory on disk.
6140                         </P
6141 ></LI
6142 ><LI
6143 ><P
6144 ><TT
6145 CLASS="PARAMETER"
6146 ><I
6147 >comment</I
6148 ></TT
6149 > - comment string to associate 
6150                         with the new share.
6151                         </P
6152 ></LI
6153 ></UL
6154 ><P
6155 >               This parameter is only used modify existing file shares definitions.  To modify 
6156                 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
6157                 </P
6158 ><P
6159 >               See also <A
6160 HREF="#ADDSHARECOMMAND"
6161 ><TT
6162 CLASS="PARAMETER"
6163 ><I
6164 >add share
6165                 command</I
6166 ></TT
6167 ></A
6168 >, <A
6169 HREF="#DELETESHARECOMMAND"
6170 ><TT
6171 CLASS="PARAMETER"
6172 ><I
6173 >delete 
6174                 share command</I
6175 ></TT
6176 ></A
6177 >.
6178                 </P
6179 ><P
6180 >Default: <SPAN
6181 CLASS="emphasis"
6182 ><I
6183 CLASS="EMPHASIS"
6184 >none</I
6185 ></SPAN
6186 ></P
6187 ><P
6188 >Example: <B
6189 CLASS="COMMAND"
6190 >change share command = /usr/local/bin/addshare</B
6191 ></P
6192 ></DD
6193 ><DT
6194 ><A
6195 NAME="COMMENT"
6196 ></A
6197 >&#62;comment (S)</DT
6198 ><DD
6199 ><P
6200 >This is a text field that is seen next to a share 
6201                 when a client does a queries the server, either via the network 
6202                 neighborhood or via <B
6203 CLASS="COMMAND"
6204 >net view</B
6205 > to list what shares 
6206                 are available.</P
6207 ><P
6208 >If you want to set the string that is displayed next to the 
6209                 machine name then see the <A
6210 HREF="#SERVERSTRING"
6211 ><TT
6212 CLASS="PARAMETER"
6213 ><I
6214 >               server string</I
6215 ></TT
6216 ></A
6217 > parameter.</P
6218 ><P
6219 >Default: <SPAN
6220 CLASS="emphasis"
6221 ><I
6222 CLASS="EMPHASIS"
6223 >No comment string</I
6224 ></SPAN
6225 ></P
6226 ><P
6227 >Example: <B
6228 CLASS="COMMAND"
6229 >comment = Fred's Files</B
6230 ></P
6231 ></DD
6232 ><DT
6233 ><A
6234 NAME="CONFIGFILE"
6235 ></A
6236 >&#62;config file (G)</DT
6237 ><DD
6238 ><P
6239 >This allows you to override the config file 
6240                 to use, instead of the default (usually <TT
6241 CLASS="FILENAME"
6242 >smb.conf</TT
6243 >). 
6244                 There is a chicken and egg problem here as this option is set 
6245                 in the config file!</P
6246 ><P
6247 >For this reason, if the name of the config file has changed 
6248                 when the parameters are loaded then it will reload them from 
6249                 the new config file.</P
6250 ><P
6251 >This option takes the usual substitutions, which can 
6252                 be very useful.</P
6253 ><P
6254 >If the config file doesn't exist then it won't be loaded 
6255                 (allowing you to special case the config files of just a few 
6256                 clients).</P
6257 ><P
6258 >Example: <B
6259 CLASS="COMMAND"
6260 >config file = /usr/local/samba/lib/smb.conf.%m
6261                 </B
6262 ></P
6263 ></DD
6264 ><DT
6265 ><A
6266 NAME="COPY"
6267 ></A
6268 >&#62;copy (S)</DT
6269 ><DD
6270 ><P
6271 >This parameter allows you to "clone" service 
6272                 entries. The specified service is simply duplicated under the 
6273                 current service's name. Any parameters specified in the current 
6274                 section will override those in the section being copied.</P
6275 ><P
6276 >This feature lets you set up a 'template' service and 
6277                 create similar services easily. Note that the service being 
6278                 copied must occur earlier in the configuration file than the 
6279                 service doing the copying.</P
6280 ><P
6281 >Default: <SPAN
6282 CLASS="emphasis"
6283 ><I
6284 CLASS="EMPHASIS"
6285 >no value</I
6286 ></SPAN
6287 ></P
6288 ><P
6289 >Example: <B
6290 CLASS="COMMAND"
6291 >copy = otherservice</B
6292 ></P
6293 ></DD
6294 ><DT
6295 ><A
6296 NAME="CREATEMASK"
6297 ></A
6298 >&#62;create mask (S)</DT
6299 ><DD
6300 ><P
6301 >A synonym for this parameter is 
6302                 <A
6303 HREF="#CREATEMODE"
6304 ><TT
6305 CLASS="PARAMETER"
6306 ><I
6307 >create mode</I
6308 ></TT
6309 >
6310                 </A
6311 >.</P
6312 ><P
6313 >When a file is created, the necessary permissions are 
6314                 calculated according to the mapping from DOS modes to UNIX 
6315                 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed 
6316                 with this parameter. This parameter may be thought of as a bit-wise 
6317                 MASK for the UNIX modes of a file. Any bit <SPAN
6318 CLASS="emphasis"
6319 ><I
6320 CLASS="EMPHASIS"
6321 >not</I
6322 ></SPAN
6323
6324                 set here will be removed from the modes set on a file when it is 
6325                 created.</P
6326 ><P
6327 >The default value of this parameter removes the 
6328                 'group' and 'other' write and execute bits from the UNIX modes.</P
6329 ><P
6330 >Following this Samba will bit-wise 'OR' the UNIX mode created 
6331                 from this parameter with the value of the <A
6332 HREF="#FORCECREATEMODE"
6333 ><TT
6334 CLASS="PARAMETER"
6335 ><I
6336 >force create mode</I
6337 ></TT
6338 ></A
6339 >
6340                 parameter which is set to 000 by default.</P
6341 ><P
6342 >This parameter does not affect directory modes. See the 
6343                 parameter <A
6344 HREF="#DIRECTORYMODE"
6345 ><TT
6346 CLASS="PARAMETER"
6347 ><I
6348 >directory mode
6349                 </I
6350 ></TT
6351 ></A
6352 > for details.</P
6353 ><P
6354 >See also the <A
6355 HREF="#FORCECREATEMODE"
6356 ><TT
6357 CLASS="PARAMETER"
6358 ><I
6359 >force 
6360                 create mode</I
6361 ></TT
6362 ></A
6363 > parameter for forcing particular mode 
6364                 bits to be set on created files. See also the <A
6365 HREF="#DIRECTORYMODE"
6366 >               <TT
6367 CLASS="PARAMETER"
6368 ><I
6369 >directory mode</I
6370 ></TT
6371 ></A
6372 > parameter for masking 
6373                 mode bits on created directories.  See also the <A
6374 HREF="#INHERITPERMISSIONS"
6375 >               <TT
6376 CLASS="PARAMETER"
6377 ><I
6378 >inherit permissions</I
6379 ></TT
6380 ></A
6381 > parameter.</P
6382 ><P
6383 >Note that this parameter does not apply to permissions
6384                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
6385                 a mask on access control lists also, they need to set the <A
6386 HREF="#SECURITYMASK"
6387 ><TT
6388 CLASS="PARAMETER"
6389 ><I
6390 >security mask</I
6391 ></TT
6392 ></A
6393 >.</P
6394 ><P
6395 >Default: <B
6396 CLASS="COMMAND"
6397 >create mask = 0744</B
6398 ></P
6399 ><P
6400 >Example: <B
6401 CLASS="COMMAND"
6402 >create mask = 0775</B
6403 ></P
6404 ></DD
6405 ><DT
6406 ><A
6407 NAME="CREATEMODE"
6408 ></A
6409 >&#62;create mode (S)</DT
6410 ><DD
6411 ><P
6412 >This is a synonym for <A
6413 HREF="#CREATEMASK"
6414 ><TT
6415 CLASS="PARAMETER"
6416 ><I
6417 >               create mask</I
6418 ></TT
6419 ></A
6420 >.</P
6421 ></DD
6422 ><DT
6423 ><A
6424 NAME="CSCPOLICY"
6425 ></A
6426 >&#62;csc policy (S)</DT
6427 ><DD
6428 ><P
6429 >This stands for <SPAN
6430 CLASS="emphasis"
6431 ><I
6432 CLASS="EMPHASIS"
6433 >client-side caching 
6434                 policy</I
6435 ></SPAN
6436 >, and specifies how clients capable of offline
6437                 caching will cache the files in the share. The valid values
6438                 are: manual, documents, programs, disable.</P
6439 ><P
6440 >These values correspond to those used on Windows
6441                 servers.</P
6442 ><P
6443 >For example, shares containing roaming profiles can have
6444                 offline caching disabled using <B
6445 CLASS="COMMAND"
6446 >csc policy = disable
6447                 </B
6448 >.</P
6449 ><P
6450 >Default: <B
6451 CLASS="COMMAND"
6452 >csc policy = manual</B
6453 ></P
6454 ><P
6455 >Example: <B
6456 CLASS="COMMAND"
6457 >csc policy = programs</B
6458 ></P
6459 ></DD
6460 ><DT
6461 ><A
6462 NAME="DEADTIME"
6463 ></A
6464 >&#62;deadtime (G)</DT
6465 ><DD
6466 ><P
6467 >The value of the parameter (a decimal integer) 
6468                 represents the number of minutes of inactivity before a connection 
6469                 is considered dead, and it is disconnected. The deadtime only takes 
6470                 effect if the number of open files is zero.</P
6471 ><P
6472 >This is useful to stop a server's resources being 
6473                 exhausted by a large number of inactive connections.</P
6474 ><P
6475 >Most clients have an auto-reconnect feature when a 
6476                 connection is broken so in most cases this parameter should be 
6477                 transparent to users.</P
6478 ><P
6479 >Using this parameter with a timeout of a few minutes 
6480                 is recommended for most systems.</P
6481 ><P
6482 >A deadtime of zero indicates that no auto-disconnection 
6483                 should be performed.</P
6484 ><P
6485 >Default: <B
6486 CLASS="COMMAND"
6487 >deadtime = 0</B
6488 ></P
6489 ><P
6490 >Example: <B
6491 CLASS="COMMAND"
6492 >deadtime = 15</B
6493 ></P
6494 ></DD
6495 ><DT
6496 ><A
6497 NAME="DEBUGHIRESTIMESTAMP"
6498 ></A
6499 >&#62;debug hires timestamp (G)</DT
6500 ><DD
6501 ><P
6502 >Sometimes the timestamps in the log messages 
6503                 are needed with a resolution of higher that seconds, this 
6504                 boolean parameter adds microsecond resolution to the timestamp 
6505                 message header when turned on.</P
6506 ><P
6507 >Note that the parameter <A
6508 HREF="#DEBUGTIMESTAMP"
6509 ><TT
6510 CLASS="PARAMETER"
6511 ><I
6512 >               debug timestamp</I
6513 ></TT
6514 ></A
6515 > must be on for this to have an 
6516                 effect.</P
6517 ><P
6518 >Default: <B
6519 CLASS="COMMAND"
6520 >debug hires timestamp = no</B
6521 ></P
6522 ></DD
6523 ><DT
6524 ><A
6525 NAME="DEBUGPID"
6526 ></A
6527 >&#62;debug pid (G)</DT
6528 ><DD
6529 ><P
6530 >When using only one log file for more then one 
6531                 forked <A
6532 HREF="smbd.8.html"
6533 TARGET="_top"
6534 >smbd</A
6535 >-process there may be hard to follow which process 
6536                 outputs which message. This boolean parameter is adds the process-id 
6537                 to the timestamp message headers in the logfile when turned on.</P
6538 ><P
6539 >Note that the parameter <A
6540 HREF="#DEBUGTIMESTAMP"
6541 ><TT
6542 CLASS="PARAMETER"
6543 ><I
6544 >               debug timestamp</I
6545 ></TT
6546 ></A
6547 > must be on for this to have an 
6548                 effect.</P
6549 ><P
6550 >Default: <B
6551 CLASS="COMMAND"
6552 >debug pid = no</B
6553 ></P
6554 ></DD
6555 ><DT
6556 ><A
6557 NAME="DEBUGTIMESTAMP"
6558 ></A
6559 >&#62;debug timestamp (G)</DT
6560 ><DD
6561 ><P
6562 >Samba debug log messages are timestamped 
6563                 by default. If you are running at a high <A
6564 HREF="#DEBUGLEVEL"
6565 >               <TT
6566 CLASS="PARAMETER"
6567 ><I
6568 >debug level</I
6569 ></TT
6570 ></A
6571 > these timestamps
6572                 can be distracting. This boolean parameter allows timestamping 
6573                 to be turned off.</P
6574 ><P
6575 >Default: <B
6576 CLASS="COMMAND"
6577 >debug timestamp = yes</B
6578 ></P
6579 ></DD
6580 ><DT
6581 ><A
6582 NAME="DEBUGUID"
6583 ></A
6584 >&#62;debug uid (G)</DT
6585 ><DD
6586 ><P
6587 >Samba is sometimes run as root and sometime 
6588                 run as the connected user, this boolean parameter inserts the 
6589                 current euid, egid, uid and gid to the timestamp message headers 
6590                 in the log file if turned on.</P
6591 ><P
6592 >Note that the parameter <A
6593 HREF="#DEBUGTIMESTAMP"
6594 ><TT
6595 CLASS="PARAMETER"
6596 ><I
6597 >               debug timestamp</I
6598 ></TT
6599 ></A
6600 > must be on for this to have an 
6601                 effect.</P
6602 ><P
6603 >Default: <B
6604 CLASS="COMMAND"
6605 >debug uid = no</B
6606 ></P
6607 ></DD
6608 ><DT
6609 ><A
6610 NAME="DEBUGLEVEL"
6611 ></A
6612 >&#62;debuglevel (G)</DT
6613 ><DD
6614 ><P
6615 >Synonym for <A
6616 HREF="#LOGLEVEL"
6617 ><TT
6618 CLASS="PARAMETER"
6619 ><I
6620 >               log level</I
6621 ></TT
6622 ></A
6623 >.</P
6624 ></DD
6625 ><DT
6626 ><A
6627 NAME="DEFAULT"
6628 ></A
6629 >&#62;default (G)</DT
6630 ><DD
6631 ><P
6632 >A synonym for <A
6633 HREF="#DEFAULTSERVICE"
6634 ><TT
6635 CLASS="PARAMETER"
6636 ><I
6637 >               default service</I
6638 ></TT
6639 ></A
6640 >.</P
6641 ></DD
6642 ><DT
6643 ><A
6644 NAME="DEFAULTCASE"
6645 ></A
6646 >&#62;default case (S)</DT
6647 ><DD
6648 ><P
6649 >See the section on <A
6650 HREF="#AEN206"
6651 >               NAME MANGLING</A
6652 >. Also note the <A
6653 HREF="#SHORTPRESERVECASE"
6654 >               <TT
6655 CLASS="PARAMETER"
6656 ><I
6657 >short preserve case</I
6658 ></TT
6659 ></A
6660 > parameter.</P
6661 ><P
6662 >Default: <B
6663 CLASS="COMMAND"
6664 >default case = lower</B
6665 ></P
6666 ></DD
6667 ><DT
6668 ><A
6669 NAME="DEFAULTDEVMODE"
6670 ></A
6671 >&#62;default devmode (S)</DT
6672 ><DD
6673 ><P
6674 >This parameter is only applicable to <A
6675 HREF="#PRINTOK"
6676 >printable</A
6677 > services.  When smbd is serving
6678                 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
6679                 server has a Device Mode which defines things such as paper size and
6680                 orientation and duplex settings.  The device mode can only correctly be
6681                 generated by the printer driver itself (which can only be executed on a
6682                 Win32 platform).  Because smbd is unable to execute the driver code
6683                 to generate the device mode, the default behavior is to set this field
6684                 to NULL.
6685                 </P
6686 ><P
6687 >Most problems with serving printer drivers to Windows NT/2k/XP clients
6688                 can be traced to a problem with the generated device mode.  Certain drivers
6689                 will do things such as crashing the client's Explorer.exe with a NULL devmode.
6690                 However, other printer drivers can cause the client's spooler service
6691                 (spoolsv.exe) to die if the devmode was not created by the driver itself
6692                 (i.e. smbd generates a default devmode).
6693                 </P
6694 ><P
6695 >This parameter should be used with care and tested with the printer
6696                 driver in question.  It is better to leave the device mode to NULL
6697                 and let the Windows client set the correct values.  Because drivers do not
6698                 do this all the time, setting <B
6699 CLASS="COMMAND"
6700 >default devmode = yes</B
6701 >
6702                 will instruct smbd to generate a default one.
6703                 </P
6704 ><P
6705 >For more information on Windows NT/2k printing and Device Modes,
6706                 see the <A
6707 HREF="http://msdn.microsoft.com/"
6708 TARGET="_top"
6709 >MSDN documentation</A
6710 >.
6711                 </P
6712 ><P
6713 >Default: <B
6714 CLASS="COMMAND"
6715 >default devmode = no</B
6716 ></P
6717 ></DD
6718 ><DT
6719 ><A
6720 NAME="DEFAULTSERVICE"
6721 ></A
6722 >&#62;default service (G)</DT
6723 ><DD
6724 ><P
6725 >This parameter specifies the name of a service
6726                 which will be connected to if the service actually requested cannot
6727                 be found. Note that the square brackets are <SPAN
6728 CLASS="emphasis"
6729 ><I
6730 CLASS="EMPHASIS"
6731 >NOT</I
6732 ></SPAN
6733 >
6734                 given in the parameter value (see example below).</P
6735 ><P
6736 >There is no default value for this parameter. If this 
6737                 parameter is not given, attempting to connect to a nonexistent 
6738                 service results in an error.</P
6739 ><P
6740 >Typically the default service would be a <A
6741 HREF="#GUESTOK"
6742 >               <TT
6743 CLASS="PARAMETER"
6744 ><I
6745 >guest ok</I
6746 ></TT
6747 ></A
6748 >, <A
6749 HREF="#READONLY"
6750 >               <TT
6751 CLASS="PARAMETER"
6752 ><I
6753 >read-only</I
6754 ></TT
6755 ></A
6756 > service.</P
6757 ><P
6758 >Also note that the apparent service name will be changed 
6759                 to equal that of the requested service, this is very useful as it 
6760                 allows you to use macros like <TT
6761 CLASS="PARAMETER"
6762 ><I
6763 >%S</I
6764 ></TT
6765 > to make 
6766                 a wildcard service.</P
6767 ><P
6768 >Note also that any "_" characters in the name of the service 
6769                 used in the default service will get mapped to a "/". This allows for
6770                 interesting things.</P
6771 ><P
6772 >Example:</P
6773 ><P
6774 ><PRE
6775 CLASS="PROGRAMLISTING"
6776 >[global]
6777         default service = pub
6778         
6779 [pub]
6780         path = /%S</PRE
6781 ></P
6782 ></DD
6783 ><DT
6784 ><A
6785 NAME="DELETEGROUPSCRIPT"
6786 ></A
6787 >&#62;delete group script (G)</DT
6788 ><DD
6789 ><P
6790 >This is the full pathname to a script that will 
6791                 be run <SPAN
6792 CLASS="emphasis"
6793 ><I
6794 CLASS="EMPHASIS"
6795 >AS ROOT</I
6796 ></SPAN
6797 > <SPAN
6798 CLASS="CITEREFENTRY"
6799 ><SPAN
6800 CLASS="REFENTRYTITLE"
6801 >smbd</SPAN
6802 >(8)</SPAN
6803 > when a group is requested to be deleted. 
6804                 It will expand any <TT
6805 CLASS="PARAMETER"
6806 ><I
6807 >%g</I
6808 ></TT
6809 > to the group name passed.  
6810                 This script is only useful for installations using the Windows NT domain administration tools.
6811                 </P
6812 ></DD
6813 ><DT
6814 ><A
6815 NAME="DELETEPRINTERCOMMAND"
6816 ></A
6817 >&#62;deleteprinter command (G)</DT
6818 ><DD
6819 ><P
6820 >With the introduction of MS-RPC based printer
6821                 support for Windows NT/2000 clients in Samba 2.2, it is now 
6822                 possible to delete printer at run time by issuing the 
6823                 DeletePrinter() RPC call.</P
6824 ><P
6825 >For a Samba host this means that the printer must be 
6826                 physically deleted from underlying printing system.  The <TT
6827 CLASS="PARAMETER"
6828 ><I
6829 >               deleteprinter command</I
6830 ></TT
6831 > defines a script to be run which 
6832                 will perform the necessary operations for removing the printer
6833                 from the print system and from <TT
6834 CLASS="FILENAME"
6835 >smb.conf</TT
6836 >.
6837                 </P
6838 ><P
6839 >The <TT
6840 CLASS="PARAMETER"
6841 ><I
6842 >deleteprinter command</I
6843 ></TT
6844 > is 
6845                 automatically called with only one parameter: <TT
6846 CLASS="PARAMETER"
6847 ><I
6848 >               "printer name"</I
6849 ></TT
6850 >.</P
6851 ><P
6852 >Once the <TT
6853 CLASS="PARAMETER"
6854 ><I
6855 >deleteprinter command</I
6856 ></TT
6857 > has 
6858                 been executed, <B
6859 CLASS="COMMAND"
6860 >smbd</B
6861 > will reparse the <TT
6862 CLASS="FILENAME"
6863 >               smb.conf</TT
6864 > to associated printer no longer exists.  
6865                 If the sharename is still valid, then <B
6866 CLASS="COMMAND"
6867 >smbd
6868                 </B
6869 > will return an ACCESS_DENIED error to the client.</P
6870 ><P
6871 >See also <A
6872 HREF="#ADDPRINTERCOMMAND"
6873 ><TT
6874 CLASS="PARAMETER"
6875 ><I
6876 >               addprinter command</I
6877 ></TT
6878 ></A
6879 >, <A
6880 HREF="#PRINTING"
6881 ><TT
6882 CLASS="PARAMETER"
6883 ><I
6884 >printing</I
6885 ></TT
6886 ></A
6887 >,
6888                 <A
6889 HREF="#SHOWADDPRINTERWIZARD"
6890 ><TT
6891 CLASS="PARAMETER"
6892 ><I
6893 >show add
6894                 printer wizard</I
6895 ></TT
6896 ></A
6897 ></P
6898 ><P
6899 >Default: <SPAN
6900 CLASS="emphasis"
6901 ><I
6902 CLASS="EMPHASIS"
6903 >none</I
6904 ></SPAN
6905 ></P
6906 ><P
6907 >Example: <B
6908 CLASS="COMMAND"
6909 >deleteprinter command = /usr/bin/removeprinter
6910                 </B
6911 ></P
6912 ></DD
6913 ><DT
6914 ><A
6915 NAME="DELETEREADONLY"
6916 ></A
6917 >&#62;delete readonly (S)</DT
6918 ><DD
6919 ><P
6920 >This parameter allows readonly files to be deleted.  
6921                 This is not normal DOS semantics, but is allowed by UNIX.</P
6922 ><P
6923 >This option may be useful for running applications such 
6924                 as rcs, where UNIX file ownership prevents changing file 
6925                 permissions, and DOS semantics prevent deletion of a read only file.</P
6926 ><P
6927 >Default: <B
6928 CLASS="COMMAND"
6929 >delete readonly = no</B
6930 ></P
6931 ></DD
6932 ><DT
6933 ><A
6934 NAME="DELETESHARECOMMAND"
6935 ></A
6936 >&#62;delete share command (G)</DT
6937 ><DD
6938 ><P
6939 >Samba 2.2.0 introduced the ability to dynamically 
6940                 add and delete shares via the Windows NT 4.0 Server Manager.  The 
6941                 <TT
6942 CLASS="PARAMETER"
6943 ><I
6944 >delete share command</I
6945 ></TT
6946 > is used to define an 
6947                 external program or script which will remove an existing service 
6948                 definition from <TT
6949 CLASS="FILENAME"
6950 >smb.conf</TT
6951 >.  In order to successfully 
6952                 execute the <TT
6953 CLASS="PARAMETER"
6954 ><I
6955 >delete share command</I
6956 ></TT
6957 >, <B
6958 CLASS="COMMAND"
6959 >smbd</B
6960 >
6961                 requires that the administrator be connected using a root account (i.e. 
6962                 uid == 0).
6963                 </P
6964 ><P
6965 >               When executed, <B
6966 CLASS="COMMAND"
6967 >smbd</B
6968 > will automatically invoke the 
6969                 <TT
6970 CLASS="PARAMETER"
6971 ><I
6972 >delete share command</I
6973 ></TT
6974 > with two parameters.
6975                 </P
6976 ><P
6977 ></P
6978 ><UL
6979 ><LI
6980 ><P
6981 ><TT
6982 CLASS="PARAMETER"
6983 ><I
6984 >configFile</I
6985 ></TT
6986 > - the location 
6987                         of the global <TT
6988 CLASS="FILENAME"
6989 >smb.conf</TT
6990 > file. 
6991                         </P
6992 ></LI
6993 ><LI
6994 ><P
6995 ><TT
6996 CLASS="PARAMETER"
6997 ><I
6998 >shareName</I
6999 ></TT
7000 > - the name of 
7001                         the existing service.
7002                         </P
7003 ></LI
7004 ></UL
7005 ><P
7006 >               This parameter is only used to remove file shares.  To delete printer shares, 
7007                 see the <A
7008 HREF="#DELETEPRINTERCOMMAND"
7009 ><TT
7010 CLASS="PARAMETER"
7011 ><I
7012 >deleteprinter 
7013                 command</I
7014 ></TT
7015 ></A
7016 >.
7017                 </P
7018 ><P
7019 >               See also <A
7020 HREF="#ADDSHARECOMMAND"
7021 ><TT
7022 CLASS="PARAMETER"
7023 ><I
7024 >add share
7025                 command</I
7026 ></TT
7027 ></A
7028 >, <A
7029 HREF="#CHANGESHARECOMMAND"
7030 ><TT
7031 CLASS="PARAMETER"
7032 ><I
7033 >change 
7034                 share command</I
7035 ></TT
7036 ></A
7037 >.
7038                 </P
7039 ><P
7040 >Default: <SPAN
7041 CLASS="emphasis"
7042 ><I
7043 CLASS="EMPHASIS"
7044 >none</I
7045 ></SPAN
7046 ></P
7047 ><P
7048 >Example: <B
7049 CLASS="COMMAND"
7050 >delete share command = /usr/local/bin/delshare</B
7051 ></P
7052 ></DD
7053 ><DT
7054 ><A
7055 NAME="DELETEUSERSCRIPT"
7056 ></A
7057 >&#62;delete user script (G)</DT
7058 ><DD
7059 ><P
7060 >This is the full pathname to a script that will 
7061                 be run by <SPAN
7062 CLASS="CITEREFENTRY"
7063 ><SPAN
7064 CLASS="REFENTRYTITLE"
7065 >smbd</SPAN
7066 >(8)</SPAN
7067 > when managing users 
7068                 with remote RPC (NT) tools.
7069                 </P
7070 ><P
7071 >This script is called when a remote client removes a user
7072                 from the server, normally using 'User Manager for Domains' or
7073                 <B
7074 CLASS="COMMAND"
7075 >rpcclient</B
7076 >.
7077                 </P
7078 ><P
7079 >This script should delete the given UNIX username. 
7080                 </P
7081 ><P
7082 >Default: <B
7083 CLASS="COMMAND"
7084 >delete user script = &lt;empty string&gt;
7085                 </B
7086 ></P
7087 ><P
7088 >Example: <B
7089 CLASS="COMMAND"
7090 >delete user script = /usr/local/samba/bin/del_user 
7091                 %u</B
7092 ></P
7093 ></DD
7094 ><DT
7095 ><A
7096 NAME="DELETEUSERFROMGROUPSCRIPT"
7097 ></A
7098 >&#62;delete user from group script (G)</DT
7099 ><DD
7100 ><P
7101 >Full path to the script that will be called when 
7102                 a user is removed from a group using the Windows NT domain administration 
7103                 tools. It will be run by <SPAN
7104 CLASS="CITEREFENTRY"
7105 ><SPAN
7106 CLASS="REFENTRYTITLE"
7107 >smbd</SPAN
7108 >(8)</SPAN
7109 > <SPAN
7110 CLASS="emphasis"
7111 ><I
7112 CLASS="EMPHASIS"
7113 >AS ROOT</I
7114 ></SPAN
7115 >. 
7116                 Any <TT
7117 CLASS="PARAMETER"
7118 ><I
7119 >%g</I
7120 ></TT
7121 > will be replaced with the group name and 
7122                 any <TT
7123 CLASS="PARAMETER"
7124 ><I
7125 >%u</I
7126 ></TT
7127 > will be replaced with the user name.
7128                 </P
7129 ><P
7130 >Default: <B
7131 CLASS="COMMAND"
7132 >delete user from group script = </B
7133 ></P
7134 ><P
7135 >Example: <B
7136 CLASS="COMMAND"
7137 >delete user from group script = /usr/sbin/deluser %u %g</B
7138 ></P
7139 ></DD
7140 ><DT
7141 ><A
7142 NAME="DELETEVETOFILES"
7143 ></A
7144 >&#62;delete veto files (S)</DT
7145 ><DD
7146 ><P
7147 >This option is used when Samba is attempting to 
7148                 delete a directory that contains one or more vetoed directories 
7149                 (see the <A
7150 HREF="#VETOFILES"
7151 ><TT
7152 CLASS="PARAMETER"
7153 ><I
7154 >veto files</I
7155 ></TT
7156 ></A
7157 >
7158                 option).  If this option is set to <TT
7159 CLASS="CONSTANT"
7160 >no</TT
7161 > (the default) then if a vetoed 
7162                 directory contains any non-vetoed files or directories then the 
7163                 directory delete will fail. This is usually what you want.</P
7164 ><P
7165 >If this option is set to <TT
7166 CLASS="CONSTANT"
7167 >yes</TT
7168 >, then Samba 
7169                 will attempt to recursively delete any files and directories within 
7170                 the vetoed directory. This can be useful for integration with file 
7171                 serving systems such as NetAtalk which create meta-files within 
7172                 directories you might normally veto DOS/Windows users from seeing 
7173                 (e.g. <TT
7174 CLASS="FILENAME"
7175 >.AppleDouble</TT
7176 >)</P
7177 ><P
7178 >Setting <B
7179 CLASS="COMMAND"
7180 >delete veto files = yes</B
7181 > allows these 
7182                 directories to be  transparently deleted when the parent directory 
7183                 is deleted (so long as the user has permissions to do so).</P
7184 ><P
7185 >See also the <A
7186 HREF="#VETOFILES"
7187 ><TT
7188 CLASS="PARAMETER"
7189 ><I
7190 >veto 
7191                 files</I
7192 ></TT
7193 ></A
7194 > parameter.</P
7195 ><P
7196 >Default: <B
7197 CLASS="COMMAND"
7198 >delete veto files = no</B
7199 ></P
7200 ></DD
7201 ><DT
7202 ><A
7203 NAME="DENYHOSTS"
7204 ></A
7205 >&#62;deny hosts (S)</DT
7206 ><DD
7207 ><P
7208 >Synonym for <A
7209 HREF="#HOSTSDENY"
7210 ><TT
7211 CLASS="PARAMETER"
7212 ><I
7213 >hosts 
7214                 deny</I
7215 ></TT
7216 ></A
7217 >.</P
7218 ></DD
7219 ><DT
7220 ><A
7221 NAME="DFREECOMMAND"
7222 ></A
7223 >&#62;dfree command (G)</DT
7224 ><DD
7225 ><P
7226 >The <TT
7227 CLASS="PARAMETER"
7228 ><I
7229 >dfree command</I
7230 ></TT
7231 > setting should 
7232                 only be used on systems where a problem occurs with the internal 
7233                 disk space calculations. This has been known to happen with Ultrix, 
7234                 but may occur with other operating systems. The symptom that was 
7235                 seen was an error of "Abort Retry Ignore" at the end of each 
7236                 directory listing.</P
7237 ><P
7238 >This setting allows the replacement of the internal routines to
7239                 calculate the total disk space and amount available with an external
7240                 routine. The example below gives a possible script that might fulfill
7241                 this function.</P
7242 ><P
7243 >The external program will be passed a single parameter indicating 
7244                 a directory in the filesystem being queried. This will typically consist
7245                 of the string <TT
7246 CLASS="FILENAME"
7247 >./</TT
7248 >. The script should return two 
7249                 integers in ASCII. The first should be the total disk space in blocks, 
7250                 and the second should be the number of available blocks. An optional 
7251                 third return value can give the block size in bytes. The default 
7252                 blocksize is 1024 bytes.</P
7253 ><P
7254 >Note: Your script should <SPAN
7255 CLASS="emphasis"
7256 ><I
7257 CLASS="EMPHASIS"
7258 >NOT</I
7259 ></SPAN
7260 > be setuid or 
7261                 setgid and should be owned by (and writeable only by) root!</P
7262 ><P
7263 >Default: <SPAN
7264 CLASS="emphasis"
7265 ><I
7266 CLASS="EMPHASIS"
7267 >By default internal routines for 
7268                 determining the disk capacity and remaining space will be used.
7269                 </I
7270 ></SPAN
7271 ></P
7272 ><P
7273 >Example: <B
7274 CLASS="COMMAND"
7275 >dfree command = /usr/local/samba/bin/dfree
7276                 </B
7277 ></P
7278 ><P
7279 >Where the script dfree (which must be made executable) could be:</P
7280 ><P
7281 ><PRE
7282 CLASS="PROGRAMLISTING"
7283
7284 #!/bin/sh
7285 df $1 | tail -1 | awk '{print $2" "$4}'</PRE
7286 ></P
7287 ><P
7288 >or perhaps (on Sys V based systems):</P
7289 ><P
7290 ><PRE
7291 CLASS="PROGRAMLISTING"
7292
7293 #!/bin/sh
7294 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'</PRE
7295 ></P
7296 ><P
7297 >Note that you may have to replace the command names 
7298                 with full path names on some systems.</P
7299 ></DD
7300 ><DT
7301 ><A
7302 NAME="DIRECTORY"
7303 ></A
7304 >&#62;directory (S)</DT
7305 ><DD
7306 ><P
7307 >Synonym for <A
7308 HREF="#PATH"
7309 ><TT
7310 CLASS="PARAMETER"
7311 ><I
7312 >path
7313                 </I
7314 ></TT
7315 ></A
7316 >.</P
7317 ></DD
7318 ><DT
7319 ><A
7320 NAME="DIRECTORYMASK"
7321 ></A
7322 >&#62;directory mask (S)</DT
7323 ><DD
7324 ><P
7325 >This parameter is the octal modes which are 
7326                 used when converting DOS modes to UNIX modes when creating UNIX 
7327                 directories.</P
7328 ><P
7329 >When a directory is created, the necessary permissions are 
7330                 calculated according to the mapping from DOS modes to UNIX permissions, 
7331                 and the resulting UNIX mode is then bit-wise 'AND'ed with this 
7332                 parameter. This parameter may be thought of as a bit-wise MASK for 
7333                 the UNIX modes of a directory. Any bit <SPAN
7334 CLASS="emphasis"
7335 ><I
7336 CLASS="EMPHASIS"
7337 >not</I
7338 ></SPAN
7339 > set 
7340                 here will be removed from the modes set on a directory when it is 
7341                 created.</P
7342 ><P
7343 >The default value of this parameter removes the 'group' 
7344                 and 'other' write bits from the UNIX mode, allowing only the 
7345                 user who owns the directory to modify it.</P
7346 ><P
7347 >Following this Samba will bit-wise 'OR' the UNIX mode 
7348                 created from this parameter with the value of the <A
7349 HREF="#FORCEDIRECTORYMODE"
7350 ><TT
7351 CLASS="PARAMETER"
7352 ><I
7353 >force directory mode
7354                 </I
7355 ></TT
7356 ></A
7357 > parameter. This parameter is set to 000 by 
7358                 default (i.e. no extra mode bits are added).</P
7359 ><P
7360 >Note that this parameter does not apply to permissions
7361                 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
7362                 a mask on access control lists also, they need to set the <A
7363 HREF="#DIRECTORYSECURITYMASK"
7364 ><TT
7365 CLASS="PARAMETER"
7366 ><I
7367 >directory security mask</I
7368 ></TT
7369 ></A
7370 >.</P
7371 ><P
7372 >See the <A
7373 HREF="#FORCEDIRECTORYMODE"
7374 ><TT
7375 CLASS="PARAMETER"
7376 ><I
7377 >force 
7378                 directory mode</I
7379 ></TT
7380 ></A
7381 > parameter to cause particular mode 
7382                 bits to always be set on created directories.</P
7383 ><P
7384 >See also the <A
7385 HREF="#CREATEMODE"
7386 ><TT
7387 CLASS="PARAMETER"
7388 ><I
7389 >create mode
7390                 </I
7391 ></TT
7392 ></A
7393 > parameter for masking mode bits on created files, 
7394                 and the <A
7395 HREF="#DIRECTORYSECURITYMASK"
7396 ><TT
7397 CLASS="PARAMETER"
7398 ><I
7399 >directory 
7400                 security mask</I
7401 ></TT
7402 ></A
7403 > parameter.</P
7404 ><P
7405 >Also refer to the <A
7406 HREF="#INHERITPERMISSIONS"
7407 ><TT
7408 CLASS="PARAMETER"
7409 ><I
7410 >               inherit permissions</I
7411 ></TT
7412 ></A
7413 > parameter.</P
7414 ><P
7415 >Default: <B
7416 CLASS="COMMAND"
7417 >directory mask = 0755</B
7418 ></P
7419 ><P
7420 >Example: <B
7421 CLASS="COMMAND"
7422 >directory mask = 0775</B
7423 ></P
7424 ></DD
7425 ><DT
7426 ><A
7427 NAME="DIRECTORYMODE"
7428 ></A
7429 >&#62;directory mode (S)</DT
7430 ><DD
7431 ><P
7432 >Synonym for <A
7433 HREF="#DIRECTORYMASK"
7434 ><TT
7435 CLASS="PARAMETER"
7436 ><I
7437 >               directory mask</I
7438 ></TT
7439 ></A
7440 ></P
7441 ></DD
7442 ><DT
7443 ><A
7444 NAME="DIRECTORYSECURITYMASK"
7445 ></A
7446 >&#62;directory security mask (S)</DT
7447 ><DD
7448 ><P
7449 >This parameter controls what UNIX permission bits 
7450                 can be modified when a Windows NT client is manipulating the UNIX 
7451                 permission on a directory using the native NT security dialog 
7452                 box.</P
7453 ><P
7454 >This parameter is applied as a mask (AND'ed with) to 
7455                 the changed permission bits, thus preventing any bits not in 
7456                 this mask from being modified. Essentially, zero bits in this 
7457                 mask may be treated as a set of bits the user is not allowed 
7458                 to change.</P
7459 ><P
7460 >If not set explicitly this parameter is set to 0777
7461                 meaning a user is allowed to modify all the user/group/world
7462                 permissions on a directory.</P
7463 ><P
7464 ><SPAN
7465 CLASS="emphasis"
7466 ><I
7467 CLASS="EMPHASIS"
7468 >Note</I
7469 ></SPAN
7470 > that users who can access the 
7471                 Samba server through other means can easily bypass this restriction, 
7472                 so it is primarily useful for standalone "appliance" systems.  
7473                 Administrators of most normal systems will probably want to leave
7474                 it as the default of <TT
7475 CLASS="CONSTANT"
7476 >0777</TT
7477 >.</P
7478 ><P
7479 >See also the <A
7480 HREF="#FORCEDIRECTORYSECURITYMODE"
7481 ><TT
7482 CLASS="PARAMETER"
7483 ><I
7484 >               force directory security mode</I
7485 ></TT
7486 ></A
7487 >, <A
7488 HREF="#SECURITYMASK"
7489 ><TT
7490 CLASS="PARAMETER"
7491 ><I
7492 >security mask</I
7493 ></TT
7494 ></A
7495 >, 
7496                 <A
7497 HREF="#FORCESECURITYMODE"
7498 ><TT
7499 CLASS="PARAMETER"
7500 ><I
7501 >force security mode
7502                 </I
7503 ></TT
7504 ></A
7505 > parameters.</P
7506 ><P
7507 >Default: <B
7508 CLASS="COMMAND"
7509 >directory security mask = 0777</B
7510 ></P
7511 ><P
7512 >Example: <B
7513 CLASS="COMMAND"
7514 >directory security mask = 0700</B
7515 ></P
7516 ></DD
7517 ><DT
7518 ><A
7519 NAME="DISABLENETBIOS"
7520 ></A
7521 >&#62;disable netbios (G)</DT
7522 ><DD
7523 ><P
7524 >Enabling this parameter will disable netbios support
7525                 in Samba. Netbios is the only available form of browsing in 
7526                 all windows versions except for 2000 and XP. </P
7527 ><P
7528 >Note that clients that only support netbios won't be able to 
7529                 see your samba server when netbios support is disabled.
7530                 </P
7531 ><P
7532 >Default: <B
7533 CLASS="COMMAND"
7534 >disable netbios = no</B
7535 ></P
7536 ><P
7537 >Example: <B
7538 CLASS="COMMAND"
7539 >disable netbios = yes</B
7540 ></P
7541 ></DD
7542 ><DT
7543 ><A
7544 NAME="DISABLESPOOLSS"
7545 ></A
7546 >&#62;disable spoolss (G)</DT
7547 ><DD
7548 ><P
7549 >Enabling this parameter will disable Samba's support
7550                 for the SPOOLSS set of MS-RPC's and will yield identical behavior
7551                 as Samba 2.0.x.  Windows NT/2000 clients will downgrade to using
7552                 Lanman style printing commands. Windows 9x/ME will be uneffected by
7553                 the parameter. However, this will also disable the ability to upload
7554                 printer drivers to a Samba server via the Windows NT Add Printer
7555                 Wizard or by using the NT printer properties dialog window.  It will
7556                 also disable the capability of Windows NT/2000 clients to download
7557                 print drivers from the Samba host upon demand.
7558                 <SPAN
7559 CLASS="emphasis"
7560 ><I
7561 CLASS="EMPHASIS"
7562 >Be very careful about enabling this parameter.</I
7563 ></SPAN
7564 >
7565                 </P
7566 ><P
7567 >See also <A
7568 HREF="#USECLIENTDRIVER"
7569 >use client driver</A
7570 >
7571                 </P
7572 ><P
7573 >Default : <B
7574 CLASS="COMMAND"
7575 >disable spoolss = no</B
7576 ></P
7577 ></DD
7578 ><DT
7579 ><A
7580 NAME="DISPLAYCHARSET"
7581 ></A
7582 >&#62;display charset (G)</DT
7583 ><DD
7584 ><P
7585 >Specifies the charset that samba will use 
7586                 to print messages to stdout and stderr and SWAT will use. 
7587                 Should generally be the same as the <B
7588 CLASS="COMMAND"
7589 >unix charset</B
7590 >.
7591                 </P
7592 ><P
7593 >Default: <B
7594 CLASS="COMMAND"
7595 >display charset = ASCII</B
7596 ></P
7597 ><P
7598 >Example: <B
7599 CLASS="COMMAND"
7600 >display charset = UTF8</B
7601 ></P
7602 ></DD
7603 ><DT
7604 ><A
7605 NAME="DNSPROXY"
7606 ></A
7607 >&#62;dns proxy (G)</DT
7608 ><DD
7609 ><P
7610 >Specifies that <SPAN
7611 CLASS="CITEREFENTRY"
7612 ><SPAN
7613 CLASS="REFENTRYTITLE"
7614 >nmbd</SPAN
7615 >(8)</SPAN
7616 > when acting as a WINS server and 
7617                 finding that a NetBIOS name has not been registered, should treat the 
7618                 NetBIOS name word-for-word as a DNS name and do a lookup with the DNS server 
7619                 for that name on behalf of the name-querying client.</P
7620 ><P
7621 >Note that the maximum length for a NetBIOS name is 15 
7622                 characters, so the DNS name (or DNS alias) can likewise only be 
7623                 15 characters, maximum.</P
7624 ><P
7625 ><B
7626 CLASS="COMMAND"
7627 >nmbd</B
7628 > spawns a second copy of itself to do the
7629                 DNS name lookup requests, as doing a name lookup is a blocking 
7630                 action.</P
7631 ><P
7632 >See also the parameter <A
7633 HREF="#WINSSUPPORT"
7634 ><TT
7635 CLASS="PARAMETER"
7636 ><I
7637 >               wins support</I
7638 ></TT
7639 ></A
7640 >.</P
7641 ><P
7642 >Default: <B
7643 CLASS="COMMAND"
7644 >dns proxy = yes</B
7645 ></P
7646 ></DD
7647 ><DT
7648 ><A
7649 NAME="DOMAINLOGONS"
7650 ></A
7651 >&#62;domain logons (G)</DT
7652 ><DD
7653 ><P
7654 >If set to <TT
7655 CLASS="CONSTANT"
7656 >yes</TT
7657 >, the Samba server will serve 
7658                 Windows 95/98 Domain logons for the <A
7659 HREF="#WORKGROUP"
7660 >               <TT
7661 CLASS="PARAMETER"
7662 ><I
7663 >workgroup</I
7664 ></TT
7665 ></A
7666 > it is in. Samba 2.2
7667                 has limited capability to act as a domain controller for Windows 
7668                 NT 4 Domains.  For more details on setting up this feature see 
7669                 the Samba-PDC-HOWTO included in the <TT
7670 CLASS="FILENAME"
7671 >htmldocs/</TT
7672 >
7673                 directory shipped with the source code.</P
7674 ><P
7675 >Default: <B
7676 CLASS="COMMAND"
7677 >domain logons = no</B
7678 ></P
7679 ></DD
7680 ><DT
7681 ><A
7682 NAME="DOMAINMASTER"
7683 ></A
7684 >&#62;domain master (G)</DT
7685 ><DD
7686 ><P
7687 >Tell <SPAN
7688 CLASS="CITEREFENTRY"
7689 ><SPAN
7690 CLASS="REFENTRYTITLE"
7691 >smbd</SPAN
7692 >(8)</SPAN
7693 > to enable WAN-wide browse list
7694                 collation. Setting this option causes <B
7695 CLASS="COMMAND"
7696 >nmbd</B
7697 > to
7698                 claim a special domain specific NetBIOS name that identifies 
7699                 it as a domain master browser for its given <A
7700 HREF="#WORKGROUP"
7701 >               <TT
7702 CLASS="PARAMETER"
7703 ><I
7704 >workgroup</I
7705 ></TT
7706 ></A
7707 >. Local master browsers 
7708                 in the same <TT
7709 CLASS="PARAMETER"
7710 ><I
7711 >workgroup</I
7712 ></TT
7713 > on broadcast-isolated 
7714                 subnets will give this <B
7715 CLASS="COMMAND"
7716 >nmbd</B
7717 > their local browse lists, 
7718                 and then ask <SPAN
7719 CLASS="CITEREFENTRY"
7720 ><SPAN
7721 CLASS="REFENTRYTITLE"
7722 >smbd</SPAN
7723 >(8)</SPAN
7724 > for a complete copy of the browse 
7725                 list for the whole wide area network.  Browser clients will then contact 
7726                 their local master browser, and will receive the domain-wide browse list, 
7727                 instead of just the list for their broadcast-isolated subnet.</P
7728 ><P
7729 >Note that Windows NT Primary Domain Controllers expect to be 
7730                 able to claim this <TT
7731 CLASS="PARAMETER"
7732 ><I
7733 >workgroup</I
7734 ></TT
7735 > specific special 
7736                 NetBIOS name that identifies them as domain master browsers for 
7737                 that <TT
7738 CLASS="PARAMETER"
7739 ><I
7740 >workgroup</I
7741 ></TT
7742 > by default (i.e. there is no 
7743                 way to prevent a Windows NT PDC from attempting to do this). This 
7744                 means that if this parameter is set and <B
7745 CLASS="COMMAND"
7746 >nmbd</B
7747 > claims 
7748                 the special name for a <TT
7749 CLASS="PARAMETER"
7750 ><I
7751 >workgroup</I
7752 ></TT
7753 > before a Windows 
7754                 NT PDC is able to do so then cross subnet browsing will behave 
7755                 strangely and may fail.</P
7756 ><P
7757 >If <A
7758 HREF="#DOMAINLOGONS"
7759 ><B
7760 CLASS="COMMAND"
7761 >domain logons = yes</B
7762 >
7763                 </A
7764 >, then the default behavior is to enable the <TT
7765 CLASS="PARAMETER"
7766 ><I
7767 >domain 
7768                 master</I
7769 ></TT
7770 > parameter.  If <TT
7771 CLASS="PARAMETER"
7772 ><I
7773 >domain logons</I
7774 ></TT
7775 > is 
7776                 not enabled (the default setting), then neither will <TT
7777 CLASS="PARAMETER"
7778 ><I
7779 >domain 
7780                 master</I
7781 ></TT
7782 > be enabled by default.</P
7783 ><P
7784 >Default: <B
7785 CLASS="COMMAND"
7786 >domain master = auto</B
7787 ></P
7788 ></DD
7789 ><DT
7790 ><A
7791 NAME="DONTDESCEND"
7792 ></A
7793 >&#62;dont descend (S)</DT
7794 ><DD
7795 ><P
7796 >There are certain directories on some systems 
7797                 (e.g., the <TT
7798 CLASS="FILENAME"
7799 >/proc</TT
7800 > tree under Linux) that are either not 
7801                 of interest to clients or are infinitely deep (recursive). This 
7802                 parameter allows you to specify a comma-delimited list of directories 
7803                 that the server should always show as empty.</P
7804 ><P
7805 >Note that Samba can be very fussy about the exact format 
7806                 of the "dont descend" entries. For example you may need <TT
7807 CLASS="FILENAME"
7808 >               ./proc</TT
7809 > instead of just <TT
7810 CLASS="FILENAME"
7811 >/proc</TT
7812 >. 
7813                 Experimentation is the best policy :-)  </P
7814 ><P
7815 >Default: <SPAN
7816 CLASS="emphasis"
7817 ><I
7818 CLASS="EMPHASIS"
7819 >none (i.e., all directories are OK 
7820                 to descend)</I
7821 ></SPAN
7822 ></P
7823 ><P
7824 >Example: <B
7825 CLASS="COMMAND"
7826 >dont descend = /proc,/dev</B
7827 ></P
7828 ></DD
7829 ><DT
7830 ><A
7831 NAME="DOSCHARSET"
7832 ></A
7833 >&#62;dos charset (G)</DT
7834 ><DD
7835 ><P
7836 >DOS SMB clients assume the server has 
7837                 the same charset as they do. This option specifies which 
7838                 charset Samba should talk to DOS clients.
7839                 </P
7840 ><P
7841 >The default depends on which charsets you have instaled. 
7842                 Samba tries to use charset 850 but falls back to ASCII in 
7843                 case it is not available. Run <SPAN
7844 CLASS="CITEREFENTRY"
7845 ><SPAN
7846 CLASS="REFENTRYTITLE"
7847 >testparm</SPAN
7848 >(1)</SPAN
7849 > to check the default on your system.
7850                 </P
7851 ></DD
7852 ><DT
7853 ><A
7854 NAME="DOSFILEMODE"
7855 ></A
7856 >&#62;dos filemode (S)</DT
7857 ><DD
7858 ><P
7859 > The default behavior in Samba is to provide 
7860                 UNIX-like behavior where only the owner of a file/directory is 
7861                 able to change the permissions on it.  However, this behavior
7862                 is often confusing to  DOS/Windows users.  Enabling this parameter 
7863                 allows a user who has write access to the file (by whatever 
7864                 means) to modify the permissions on it.  Note that a user
7865                 belonging to the group owning the file will not be allowed to
7866                 change permissions if the group is only granted read access.
7867                 Ownership of the file/directory is not changed, only the permissions 
7868                 are modified.</P
7869 ><P
7870 >Default: <B
7871 CLASS="COMMAND"
7872 >dos filemode = no</B
7873 ></P
7874 ></DD
7875 ><DT
7876 ><A
7877 NAME="DOSFILETIMERESOLUTION"
7878 ></A
7879 >&#62;dos filetime resolution (S)</DT
7880 ><DD
7881 ><P
7882 >Under the DOS and Windows FAT filesystem, the finest 
7883                 granularity on time resolution is two seconds. Setting this parameter 
7884                 for a share causes Samba to round the reported time down to the 
7885                 nearest two second boundary when a query call that requires one second 
7886                 resolution is made to <SPAN
7887 CLASS="CITEREFENTRY"
7888 ><SPAN
7889 CLASS="REFENTRYTITLE"
7890 >smbd</SPAN
7891 >(8)</SPAN
7892 >.</P
7893 ><P
7894 >This option is mainly used as a compatibility option for Visual 
7895                 C++ when used against Samba shares. If oplocks are enabled on a 
7896                 share, Visual C++ uses two different time reading calls to check if a 
7897                 file has changed since it was last read. One of these calls uses a
7898                 one-second granularity, the other uses a two second granularity. As
7899                 the two second call rounds any odd second down, then if the file has a
7900                 timestamp of an odd number of seconds then the two timestamps will not
7901                 match and Visual C++ will keep reporting the file has changed. Setting
7902                 this option causes the two timestamps to match, and Visual C++ is
7903                 happy.</P
7904 ><P
7905 >Default: <B
7906 CLASS="COMMAND"
7907 >dos filetime resolution = no</B
7908 ></P
7909 ></DD
7910 ><DT
7911 ><A
7912 NAME="DOSFILETIMES"
7913 ></A
7914 >&#62;dos filetimes (S)</DT
7915 ><DD
7916 ><P
7917 >Under DOS and Windows, if a user can write to a 
7918                 file they can change the timestamp on it. Under POSIX semantics, 
7919                 only the owner of the file or root may change the timestamp. By 
7920                 default, Samba runs with POSIX semantics and refuses to change the 
7921                 timestamp on a file if the user <B
7922 CLASS="COMMAND"
7923 >smbd</B
7924 > is acting 
7925                 on behalf of is not the file owner. Setting this option to <TT
7926 CLASS="CONSTANT"
7927 >               yes</TT
7928 > allows DOS semantics and <SPAN
7929 CLASS="CITEREFENTRY"
7930 ><SPAN
7931 CLASS="REFENTRYTITLE"
7932 >smbd</SPAN
7933 >(8)</SPAN
7934 > will change the file 
7935                 timestamp as DOS requires.</P
7936 ><P
7937 >Default: <B
7938 CLASS="COMMAND"
7939 >dos filetimes = no</B
7940 ></P
7941 ></DD
7942 ><DT
7943 ><A
7944 NAME="ENCRYPTPASSWORDS"
7945 ></A
7946 >&#62;encrypt passwords (G)</DT
7947 ><DD
7948 ><P
7949 >This boolean controls whether encrypted passwords 
7950                 will be negotiated with the client. Note that Windows NT 4.0 SP3 and 
7951                 above and also Windows 98 will by default expect encrypted passwords 
7952                 unless a registry entry is changed. To use encrypted passwords in 
7953                 Samba see the file ENCRYPTION.txt in the Samba documentation 
7954                 directory <TT
7955 CLASS="FILENAME"
7956 >docs/</TT
7957 > shipped with the source code.</P
7958 ><P
7959 >In order for encrypted passwords to work correctly
7960                 <SPAN
7961 CLASS="CITEREFENTRY"
7962 ><SPAN
7963 CLASS="REFENTRYTITLE"
7964 >smbd</SPAN
7965 >(8)</SPAN
7966 > must either 
7967                 have access to a local <SPAN
7968 CLASS="CITEREFENTRY"
7969 ><SPAN
7970 CLASS="REFENTRYTITLE"
7971 >smbpasswd</SPAN
7972 >(5)</SPAN
7973 > file (see the <SPAN
7974 CLASS="CITEREFENTRY"
7975 ><SPAN
7976 CLASS="REFENTRYTITLE"
7977 >smbpasswd</SPAN
7978 >(8)</SPAN
7979 > program for information on how to set up 
7980                 and maintain this file), or set the <A
7981 HREF="#SECURITY"
7982 >security = [server|domain|ads]</A
7983 > parameter which 
7984                 causes <B
7985 CLASS="COMMAND"
7986 >smbd</B
7987 > to authenticate against another 
7988                 server.</P
7989 ><P
7990 >Default: <B
7991 CLASS="COMMAND"
7992 >encrypt passwords = yes</B
7993 ></P
7994 ></DD
7995 ><DT
7996 ><A
7997 NAME="ENHANCEDBROWSING"
7998 ></A
7999 >&#62;enhanced browsing (G)</DT
8000 ><DD
8001 ><P
8002 >This option enables a couple of enhancements to 
8003                 cross-subnet browse propagation that have been added in Samba 
8004                 but which are not standard in Microsoft implementations.  
8005                 </P
8006 ><P
8007 >The first enhancement to browse propagation consists of a regular
8008                 wildcard query to a Samba WINS server for all Domain Master Browsers,
8009                 followed by a browse synchronization with each of the returned
8010                 DMBs. The second enhancement consists of a regular randomised browse
8011                 synchronization with all currently known DMBs.</P
8012 ><P
8013 >You may wish to disable this option if you have a problem with empty
8014                 workgroups not disappearing from browse lists. Due to the restrictions
8015                 of the browse protocols these enhancements can cause a empty workgroup
8016                 to stay around forever which can be annoying.</P
8017 ><P
8018 >In general you should leave this option enabled as it makes
8019                 cross-subnet browse propagation much more reliable.</P
8020 ><P
8021 >Default: <B
8022 CLASS="COMMAND"
8023 >enhanced browsing = yes</B
8024 ></P
8025 ></DD
8026 ><DT
8027 ><A
8028 NAME="ENUMPORTSCOMMAND"
8029 ></A
8030 >&#62;enumports command (G)</DT
8031 ><DD
8032 ><P
8033 >The concept of a "port" is fairly foreign
8034                 to UNIX hosts.  Under Windows NT/2000 print servers, a port
8035                 is associated with a port monitor and generally takes the form of
8036                 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
8037                 (i.e. LPD Port Monitor, etc...).  By default, Samba has only one
8038                 port defined--<TT
8039 CLASS="CONSTANT"
8040 >"Samba Printer Port"</TT
8041 >.  Under 
8042                 Windows NT/2000, all printers must have a valid port name.  
8043                 If you wish to have a list of ports displayed (<B
8044 CLASS="COMMAND"
8045 >smbd
8046                 </B
8047 > does not use a port name for anything) other than 
8048                 the default <TT
8049 CLASS="CONSTANT"
8050 >"Samba Printer Port"</TT
8051 >, you 
8052                 can define <TT
8053 CLASS="PARAMETER"
8054 ><I
8055 >enumports command</I
8056 ></TT
8057 > to point to
8058                 a program which should generate a list of ports, one per line,
8059                 to standard output.  This listing will then be used in response
8060                 to the level 1 and 2 EnumPorts() RPC.</P
8061 ><P
8062 >Default: <SPAN
8063 CLASS="emphasis"
8064 ><I
8065 CLASS="EMPHASIS"
8066 >no enumports command</I
8067 ></SPAN
8068 ></P
8069 ><P
8070 >Example: <B
8071 CLASS="COMMAND"
8072 >enumports command = /usr/bin/listports
8073                 </B
8074 ></P
8075 ></DD
8076 ><DT
8077 ><A
8078 NAME="EXEC"
8079 ></A
8080 >&#62;exec (S)</DT
8081 ><DD
8082 ><P
8083 >This is a synonym for <A
8084 HREF="#PREEXEC"
8085 >               <TT
8086 CLASS="PARAMETER"
8087 ><I
8088 >preexec</I
8089 ></TT
8090 ></A
8091 >.</P
8092 ></DD
8093 ><DT
8094 ><A
8095 NAME="FAKEDIRECTORYCREATETIMES"
8096 ></A
8097 >&#62;fake directory create times (S)</DT
8098 ><DD
8099 ><P
8100 >NTFS and Windows VFAT file systems keep a create 
8101                 time for all files and directories. This is not the same as the 
8102                 ctime - status change time - that Unix keeps, so Samba by default 
8103                 reports the earliest of the various times Unix does keep. Setting 
8104                 this parameter for a share causes Samba to always report midnight 
8105                 1-1-1980 as the create time for directories.</P
8106 ><P
8107 >This option is mainly used as a compatibility option for 
8108                 Visual C++ when used against Samba shares. Visual C++ generated 
8109                 makefiles have the object directory as a dependency for each object 
8110                 file, and a make rule to create the directory. Also, when NMAKE 
8111                 compares timestamps it uses the creation time when examining a 
8112                 directory. Thus the object directory will be created if it does not 
8113                 exist, but once it does exist it will always have an earlier 
8114                 timestamp than the object files it contains.</P
8115 ><P
8116 >However, Unix time semantics mean that the create time 
8117                 reported by Samba will be updated whenever a file is created or 
8118                 or deleted in the directory.  NMAKE finds all object files in 
8119                 the object directory.  The timestamp of the last one built is then 
8120                 compared to the timestamp of the object directory.  If the 
8121                 directory's timestamp if newer, then all object files
8122                 will be rebuilt.  Enabling this option 
8123                 ensures directories always predate their contents and an NMAKE build 
8124                 will proceed as expected.</P
8125 ><P
8126 >Default: <B
8127 CLASS="COMMAND"
8128 >fake directory create times = no</B
8129 ></P
8130 ></DD
8131 ><DT
8132 ><A
8133 NAME="FAKEOPLOCKS"
8134 ></A
8135 >&#62;fake oplocks (S)</DT
8136 ><DD
8137 ><P
8138 >Oplocks are the way that SMB clients get permission 
8139                 from a server to locally cache file operations. If a server grants 
8140                 an oplock (opportunistic lock) then the client is free to assume 
8141                 that it is the only one accessing the file and it will aggressively 
8142                 cache file data. With some oplock types the client may even cache 
8143                 file open/close operations. This can give enormous performance benefits.
8144                 </P
8145 ><P
8146 >When you set <B
8147 CLASS="COMMAND"
8148 >fake oplocks = yes</B
8149 >, <A
8150 HREF="smbd.8.html"
8151 TARGET="_top"
8152 ><B
8153 CLASS="COMMAND"
8154 >smbd(8)</B
8155 ></A
8156 > will
8157                 always grant oplock requests no matter how many clients are using 
8158                 the file.</P
8159 ><P
8160 >It is generally much better to use the real <A
8161 HREF="#OPLOCKS"
8162 ><TT
8163 CLASS="PARAMETER"
8164 ><I
8165 >oplocks</I
8166 ></TT
8167 ></A
8168 > support rather 
8169                 than this parameter.</P
8170 ><P
8171 >If you enable this option on all read-only shares or 
8172                 shares that you know will only be accessed from one client at a 
8173                 time such as physically read-only media like CDROMs, you will see 
8174                 a big performance improvement on many operations. If you enable 
8175                 this option on shares where multiple clients may be accessing the 
8176                 files read-write at the same time you can get data corruption. Use 
8177                 this option carefully!</P
8178 ><P
8179 >Default: <B
8180 CLASS="COMMAND"
8181 >fake oplocks = no</B
8182 ></P
8183 ></DD
8184 ><DT
8185 ><A
8186 NAME="FOLLOWSYMLINKS"
8187 ></A
8188 >&#62;follow symlinks (S)</DT
8189 ><DD
8190 ><P
8191 >This parameter allows the Samba administrator 
8192                 to stop <SPAN
8193 CLASS="CITEREFENTRY"
8194 ><SPAN
8195 CLASS="REFENTRYTITLE"
8196 >smbd</SPAN
8197 >(8)</SPAN
8198 >       from following symbolic 
8199                 links in a particular share. Setting this 
8200                 parameter to <TT
8201 CLASS="CONSTANT"
8202 >no</TT
8203 > prevents any file or directory 
8204                 that is a symbolic link from being followed (the user will get an 
8205                 error).  This option is very useful to stop users from adding a 
8206                 symbolic link to <TT
8207 CLASS="FILENAME"
8208 >/etc/passwd</TT
8209 > in their home 
8210                 directory for instance.  However it will slow filename lookups 
8211                 down slightly.</P
8212 ><P
8213 >This option is enabled (i.e. <B
8214 CLASS="COMMAND"
8215 >smbd</B
8216 > will 
8217                 follow symbolic links) by default.</P
8218 ><P
8219 >Default: <B
8220 CLASS="COMMAND"
8221 >follow symlinks = yes</B
8222 ></P
8223 ></DD
8224 ><DT
8225 ><A
8226 NAME="FORCECREATEMODE"
8227 ></A
8228 >&#62;force create mode (S)</DT
8229 ><DD
8230 ><P
8231 >This parameter specifies a set of UNIX mode bit 
8232                 permissions that will <SPAN
8233 CLASS="emphasis"
8234 ><I
8235 CLASS="EMPHASIS"
8236 >always</I
8237 ></SPAN
8238 > be set on a 
8239                 file created by Samba. This is done by bitwise 'OR'ing these bits onto 
8240                 the mode bits of a file that is being created or having its 
8241                 permissions changed. The default for this parameter is (in octal) 
8242                 000. The modes in this parameter are bitwise 'OR'ed onto the file 
8243                 mode after the mask set in the <TT
8244 CLASS="PARAMETER"
8245 ><I
8246 >create mask</I
8247 ></TT
8248
8249                 parameter is applied.</P
8250 ><P
8251 >See also the parameter <A
8252 HREF="#CREATEMASK"
8253 ><TT
8254 CLASS="PARAMETER"
8255 ><I
8256 >create 
8257                 mask</I
8258 ></TT
8259 ></A
8260 > for details on masking mode bits on files.</P
8261 ><P
8262 >See also the <A
8263 HREF="#INHERITPERMISSIONS"
8264 ><TT
8265 CLASS="PARAMETER"
8266 ><I
8267 >inherit 
8268                 permissions</I
8269 ></TT
8270 ></A
8271 > parameter.</P
8272 ><P
8273 >Default: <B
8274 CLASS="COMMAND"
8275 >force create mode = 000</B
8276 ></P
8277 ><P
8278 >Example: <B
8279 CLASS="COMMAND"
8280 >force create mode = 0755</B
8281 ></P
8282 ><P
8283 >would force all created files to have read and execute 
8284                 permissions set for 'group' and 'other' as well as the 
8285                 read/write/execute bits set for the 'user'.</P
8286 ></DD
8287 ><DT
8288 ><A
8289 NAME="FORCEDIRECTORYMODE"
8290 ></A
8291 >&#62;force directory mode (S)</DT
8292 ><DD
8293 ><P
8294 >This parameter specifies a set of UNIX mode bit 
8295                 permissions that will <SPAN
8296 CLASS="emphasis"
8297 ><I
8298 CLASS="EMPHASIS"
8299 >always</I
8300 ></SPAN
8301 > be set on a directory 
8302                 created by Samba. This is done by bitwise 'OR'ing these bits onto the 
8303                 mode bits of a directory that is being created. The default for this 
8304                 parameter is (in octal) 0000 which will not add any extra permission 
8305                 bits to a created directory. This operation is done after the mode 
8306                 mask in the parameter <TT
8307 CLASS="PARAMETER"
8308 ><I
8309 >directory mask</I
8310 ></TT
8311 > is 
8312                 applied.</P
8313 ><P
8314 >See also the parameter <A
8315 HREF="#DIRECTORYMASK"
8316 ><TT
8317 CLASS="PARAMETER"
8318 ><I
8319 >               directory mask</I
8320 ></TT
8321 ></A
8322 > for details on masking mode bits 
8323                 on created directories.</P
8324 ><P
8325 >See also the <A
8326 HREF="#INHERITPERMISSIONS"
8327 ><TT
8328 CLASS="PARAMETER"
8329 ><I
8330 >               inherit permissions</I
8331 ></TT
8332 ></A
8333 > parameter.</P
8334 ><P
8335 >Default: <B
8336 CLASS="COMMAND"
8337 >force directory mode = 000</B
8338 ></P
8339 ><P
8340 >Example: <B
8341 CLASS="COMMAND"
8342 >force directory mode = 0755</B
8343 ></P
8344 ><P
8345 >would force all created directories to have read and execute
8346                 permissions set for 'group' and 'other' as well as the
8347                 read/write/execute bits set for the 'user'.</P
8348 ></DD
8349 ><DT
8350 ><A
8351 NAME="FORCEDIRECTORYSECURITYMODE"
8352 ></A
8353 >&#62;force directory security mode (S)</DT
8354 ><DD
8355 ><P
8356 >This parameter controls what UNIX permission bits 
8357                 can be modified when a Windows NT client is manipulating the UNIX 
8358                 permission on a directory using the native NT security dialog box.</P
8359 ><P
8360 >This parameter is applied as a mask (OR'ed with) to the 
8361                 changed permission bits, thus forcing any bits in this mask that 
8362                 the user may have modified to be on. Essentially, one bits in this 
8363                 mask may be treated as a set of bits that, when modifying security 
8364                 on a directory, the user has always set to be 'on'.</P
8365 ><P
8366 >If not set explicitly this parameter is 000, which 
8367                 allows a user to modify all the user/group/world permissions on a 
8368                 directory without restrictions.</P
8369 ><P
8370 ><SPAN
8371 CLASS="emphasis"
8372 ><I
8373 CLASS="EMPHASIS"
8374 >Note</I
8375 ></SPAN
8376 > that users who can access the 
8377                 Samba server through other means can easily bypass this restriction, 
8378                 so it is primarily useful for standalone "appliance" systems.  
8379                 Administrators of most normal systems will probably want to leave
8380                 it set as 0000.</P
8381 ><P
8382 >See also the <A
8383 HREF="#DIRECTORYSECURITYMASK"
8384 ><TT
8385 CLASS="PARAMETER"
8386 ><I
8387 >               directory security mask</I
8388 ></TT
8389 ></A
8390 >, <A
8391 HREF="#SECURITYMASK"
8392 >               <TT
8393 CLASS="PARAMETER"
8394 ><I
8395 >security mask</I
8396 ></TT
8397 ></A
8398 >, 
8399                 <A
8400 HREF="#FORCESECURITYMODE"
8401 ><TT
8402 CLASS="PARAMETER"
8403 ><I
8404 >force security mode
8405                 </I
8406 ></TT
8407 ></A
8408 > parameters.</P
8409 ><P
8410 >Default: <B
8411 CLASS="COMMAND"
8412 >force directory security mode = 0</B
8413 ></P
8414 ><P
8415 >Example: <B
8416 CLASS="COMMAND"
8417 >force directory security mode = 700</B
8418 ></P
8419 ></DD
8420 ><DT
8421 ><A
8422 NAME="FORCEGROUP"
8423 ></A
8424 >&#62;force group (S)</DT
8425 ><DD
8426 ><P
8427 >This specifies a UNIX group name that will be 
8428                 assigned as the default primary group for all users connecting 
8429                 to this service. This is useful for sharing files by ensuring 
8430                 that all access to files on service will use the named group for 
8431                 their permissions checking. Thus, by assigning permissions for this 
8432                 group to the files and directories within this service the Samba 
8433                 administrator can restrict or allow sharing of these files.</P
8434 ><P
8435 >In Samba 2.0.5 and above this parameter has extended 
8436                 functionality in the following way. If the group name listed here 
8437                 has a '+' character prepended to it then the current user accessing 
8438                 the share only has the primary group default assigned to this group 
8439                 if they are already assigned as a member of that group. This allows 
8440                 an administrator to decide that only users who are already in a 
8441                 particular group will create files with group ownership set to that 
8442                 group. This gives a finer granularity of ownership assignment. For 
8443                 example, the setting <TT
8444 CLASS="FILENAME"
8445 >force group = +sys</TT
8446 > means 
8447                 that only users who are already in group sys will have their default
8448                 primary group assigned to sys when accessing this Samba share. All
8449                 other users will retain their ordinary primary group.</P
8450 ><P
8451 >If the <A
8452 HREF="#FORCEUSER"
8453 ><TT
8454 CLASS="PARAMETER"
8455 ><I
8456 >force user
8457                 </I
8458 ></TT
8459 ></A
8460 > parameter is also set the group specified in 
8461                 <TT
8462 CLASS="PARAMETER"
8463 ><I
8464 >force group</I
8465 ></TT
8466 > will override the primary group
8467                 set in <TT
8468 CLASS="PARAMETER"
8469 ><I
8470 >force user</I
8471 ></TT
8472 >.</P
8473 ><P
8474 >See also <A
8475 HREF="#FORCEUSER"
8476 ><TT
8477 CLASS="PARAMETER"
8478 ><I
8479 >force 
8480                 user</I
8481 ></TT
8482 ></A
8483 >.</P
8484 ><P
8485 >Default: <SPAN
8486 CLASS="emphasis"
8487 ><I
8488 CLASS="EMPHASIS"
8489 >no forced group</I
8490 ></SPAN
8491 ></P
8492 ><P
8493 >Example: <B
8494 CLASS="COMMAND"
8495 >force group = agroup</B
8496 ></P
8497 ></DD
8498 ><DT
8499 ><A
8500 NAME="FORCESECURITYMODE"
8501 ></A
8502 >&#62;force security mode (S)</DT
8503 ><DD
8504 ><P
8505 >This parameter controls what UNIX permission 
8506                 bits can be modified when a Windows NT client is manipulating 
8507                 the UNIX permission on a file using the native NT security dialog 
8508                 box.</P
8509 ><P
8510 >This parameter is applied as a mask (OR'ed with) to the 
8511                 changed permission bits, thus forcing any bits in this mask that 
8512                 the user may have modified to be on. Essentially, one bits in this 
8513                 mask may be treated as a set of bits that, when modifying security 
8514                 on a file, the user has always set to be 'on'.</P
8515 ><P
8516 >If not set explicitly this parameter is set to 0,
8517                 and allows a user to modify all the user/group/world permissions on a file,
8518                 with no restrictions.</P
8519 ><P
8520 ><SPAN
8521 CLASS="emphasis"
8522 ><I
8523 CLASS="EMPHASIS"
8524 >Note</I
8525 ></SPAN
8526 > that users who can access 
8527                 the Samba server through other means can easily bypass this restriction, 
8528                 so it is primarily useful for standalone "appliance" systems.  
8529                 Administrators of most normal systems will probably want to leave
8530                 this set to 0000.</P
8531 ><P
8532 >See also the <A
8533 HREF="#FORCEDIRECTORYSECURITYMODE"
8534 ><TT
8535 CLASS="PARAMETER"
8536 ><I
8537 >               force directory security mode</I
8538 ></TT
8539 ></A
8540 >,
8541                 <A
8542 HREF="#DIRECTORYSECURITYMASK"
8543 ><TT
8544 CLASS="PARAMETER"
8545 ><I
8546 >directory security
8547                 mask</I
8548 ></TT
8549 ></A
8550 >, <A
8551 HREF="#SECURITYMASK"
8552 ><TT
8553 CLASS="PARAMETER"
8554 ><I
8555 >               security mask</I
8556 ></TT
8557 ></A
8558 > parameters.</P
8559 ><P
8560 >Default: <B
8561 CLASS="COMMAND"
8562 >force security mode = 0</B
8563 ></P
8564 ><P
8565 >Example: <B
8566 CLASS="COMMAND"
8567 >force security mode = 700</B
8568 ></P
8569 ></DD
8570 ><DT
8571 ><A
8572 NAME="FORCEUSER"
8573 ></A
8574 >&#62;force user (S)</DT
8575 ><DD
8576 ><P
8577 >This specifies a UNIX user name that will be 
8578                 assigned as the default user for all users connecting to this service. 
8579                 This is useful for sharing files. You should also use it carefully 
8580                 as using it incorrectly can cause security problems.</P
8581 ><P
8582 >This user name only gets used once a connection is established. 
8583                 Thus clients still need to connect as a valid user and supply a 
8584                 valid password. Once connected, all file operations will be performed 
8585                 as the "forced user", no matter what username the client connected 
8586                 as.  This can be very useful.</P
8587 ><P
8588 >In Samba 2.0.5 and above this parameter also causes the 
8589                 primary group of the forced user to be used as the primary group 
8590                 for all file activity. Prior to 2.0.5 the primary group was left 
8591                 as the primary group of the connecting user (this was a bug).</P
8592 ><P
8593 >See also <A
8594 HREF="#FORCEGROUP"
8595 ><TT
8596 CLASS="PARAMETER"
8597 ><I
8598 >force group
8599                 </I
8600 ></TT
8601 ></A
8602 ></P
8603 ><P
8604 >Default: <SPAN
8605 CLASS="emphasis"
8606 ><I
8607 CLASS="EMPHASIS"
8608 >no forced user</I
8609 ></SPAN
8610 ></P
8611 ><P
8612 >Example: <B
8613 CLASS="COMMAND"
8614 >force user = auser</B
8615 ></P
8616 ></DD
8617 ><DT
8618 ><A
8619 NAME="FSTYPE"
8620 ></A
8621 >&#62;fstype (S)</DT
8622 ><DD
8623 ><P
8624 >This parameter allows the administrator to 
8625                 configure the string that specifies the type of filesystem a share 
8626                 is using that is reported by <SPAN
8627 CLASS="CITEREFENTRY"
8628 ><SPAN
8629 CLASS="REFENTRYTITLE"
8630 >smbd</SPAN
8631 >(8)</SPAN
8632 > when a client queries the filesystem type
8633                 for a share. The default type is <TT
8634 CLASS="CONSTANT"
8635 >NTFS</TT
8636 > for 
8637                 compatibility with Windows NT but this can be changed to other 
8638                 strings such as <TT
8639 CLASS="CONSTANT"
8640 >Samba</TT
8641 > or <TT
8642 CLASS="CONSTANT"
8643 >FAT
8644                 </TT
8645 > if required.</P
8646 ><P
8647 >Default: <B
8648 CLASS="COMMAND"
8649 >fstype = NTFS</B
8650 ></P
8651 ><P
8652 >Example: <B
8653 CLASS="COMMAND"
8654 >fstype = Samba</B
8655 ></P
8656 ></DD
8657 ><DT
8658 ><A
8659 NAME="GETWDCACHE"
8660 ></A
8661 >&#62;getwd cache (G)</DT
8662 ><DD
8663 ><P
8664 >This is a tuning option. When this is enabled a 
8665                 caching algorithm will be used to reduce the time taken for getwd() 
8666                 calls. This can have a significant impact on performance, especially 
8667                 when the <A
8668 HREF="#WIDELINKS"
8669 ><TT
8670 CLASS="PARAMETER"
8671 ><I
8672 >wide links</I
8673 ></TT
8674 >
8675                 </A
8676 >parameter is set to <TT
8677 CLASS="CONSTANT"
8678 >no</TT
8679 >.</P
8680 ><P
8681 >Default: <B
8682 CLASS="COMMAND"
8683 >getwd cache = yes</B
8684 ></P
8685 ></DD
8686 ><DT
8687 ><A
8688 NAME="GROUP"
8689 ></A
8690 >&#62;group (S)</DT
8691 ><DD
8692 ><P
8693 >Synonym for <A
8694 HREF="#FORCEGROUP"
8695 ><TT
8696 CLASS="PARAMETER"
8697 ><I
8698 >force 
8699                 group</I
8700 ></TT
8701 ></A
8702 >.</P
8703 ></DD
8704 ><DT
8705 ><A
8706 NAME="GUESTACCOUNT"
8707 ></A
8708 >&#62;guest account (S)</DT
8709 ><DD
8710 ><P
8711 >This is a username which will be used for access 
8712                 to services which are specified as <A
8713 HREF="#GUESTOK"
8714 ><TT
8715 CLASS="PARAMETER"
8716 ><I
8717 >               guest ok</I
8718 ></TT
8719 ></A
8720 > (see below). Whatever privileges this 
8721                 user has will be available to any client connecting to the guest service. 
8722                 Typically this user will exist in the password file, but will not
8723                 have a valid login. The user account "ftp" is often a good choice 
8724                 for this parameter. If a username is specified in a given service, 
8725                 the specified username overrides this one.</P
8726 ><P
8727 >One some systems the default guest account "nobody" may not 
8728                 be able to print. Use another account in this case. You should test 
8729                 this by trying to log in as your guest user (perhaps by using the 
8730                 <B
8731 CLASS="COMMAND"
8732 >su -</B
8733 > command) and trying to print using the 
8734                 system print command such as <B
8735 CLASS="COMMAND"
8736 >lpr(1)</B
8737 > or <B
8738 CLASS="COMMAND"
8739 >               lp(1)</B
8740 >.</P
8741 ><P
8742 >This parameter does not accept % macros, because
8743                 many parts of the system require this value to be
8744                 constant for correct operation.</P
8745 ><P
8746 >Default: <SPAN
8747 CLASS="emphasis"
8748 ><I
8749 CLASS="EMPHASIS"
8750 >specified at compile time, usually 
8751                 "nobody"</I
8752 ></SPAN
8753 ></P
8754 ><P
8755 >Example: <B
8756 CLASS="COMMAND"
8757 >guest account = ftp</B
8758 ></P
8759 ></DD
8760 ><DT
8761 ><A
8762 NAME="GUESTOK"
8763 ></A
8764 >&#62;guest ok (S)</DT
8765 ><DD
8766 ><P
8767 >If this parameter is <TT
8768 CLASS="CONSTANT"
8769 >yes</TT
8770 > for 
8771                 a service, then no password is required to connect to the service. 
8772                 Privileges will be those of the <A
8773 HREF="#GUESTACCOUNT"
8774 ><TT
8775 CLASS="PARAMETER"
8776 ><I
8777 >               guest account</I
8778 ></TT
8779 ></A
8780 >.</P
8781 ><P
8782 >This paramater nullifies the benifits of setting
8783                 <A
8784 HREF="#RESTRICTANONYMOUS"
8785 ><TT
8786 CLASS="PARAMETER"
8787 ><I
8788 >restrict
8789                 anonymous</I
8790 ></TT
8791 ></A
8792 > = 2</P
8793 ><P
8794 >See the section below on <A
8795 HREF="#SECURITY"
8796 ><TT
8797 CLASS="PARAMETER"
8798 ><I
8799 >               security</I
8800 ></TT
8801 ></A
8802 > for more information about this option.
8803                 </P
8804 ><P
8805 >Default: <B
8806 CLASS="COMMAND"
8807 >guest ok = no</B
8808 ></P
8809 ></DD
8810 ><DT
8811 ><A
8812 NAME="GUESTONLY"
8813 ></A
8814 >&#62;guest only (S)</DT
8815 ><DD
8816 ><P
8817 >If this parameter is <TT
8818 CLASS="CONSTANT"
8819 >yes</TT
8820 > for 
8821                 a service, then only guest connections to the service are permitted. 
8822                 This parameter will have no effect if <A
8823 HREF="#GUESTOK"
8824 >               <TT
8825 CLASS="PARAMETER"
8826 ><I
8827 >guest ok</I
8828 ></TT
8829 ></A
8830 > is not set for the service.</P
8831 ><P
8832 >See the section below on <A
8833 HREF="#SECURITY"
8834 ><TT
8835 CLASS="PARAMETER"
8836 ><I
8837 >               security</I
8838 ></TT
8839 ></A
8840 > for more information about this option.
8841                 </P
8842 ><P
8843 >Default: <B
8844 CLASS="COMMAND"
8845 >guest only = no</B
8846 ></P
8847 ></DD
8848 ><DT
8849 ><A
8850 NAME="HIDEDOTFILES"
8851 ></A
8852 >&#62;hide dot files (S)</DT
8853 ><DD
8854 ><P
8855 >This is a boolean parameter that controls whether 
8856                 files starting with a dot appear as hidden files.</P
8857 ><P
8858 >Default: <B
8859 CLASS="COMMAND"
8860 >hide dot files = yes</B
8861 ></P
8862 ></DD
8863 ><DT
8864 ><A
8865 NAME="HIDEFILES"
8866 ></A
8867 >&#62;hide files(S)</DT
8868 ><DD
8869 ><P
8870 >This is a list of files or directories that are not 
8871                 visible but are accessible.  The DOS 'hidden' attribute is applied 
8872                 to any files or directories that match.</P
8873 ><P
8874 >Each entry in the list must be separated by a '/', 
8875                 which allows spaces to be included in the entry.  '*'
8876                 and '?' can be used to specify multiple files or directories 
8877                 as in DOS wildcards.</P
8878 ><P
8879 >Each entry must be a Unix path, not a DOS path and must 
8880                 not include the Unix directory separator '/'.</P
8881 ><P
8882 >Note that the case sensitivity option is applicable 
8883                 in hiding files.</P
8884 ><P
8885 >Setting this parameter will affect the performance of Samba, 
8886                 as it will be forced to check all files and directories for a match 
8887                 as they are scanned.</P
8888 ><P
8889 >See also <A
8890 HREF="#HIDEDOTFILES"
8891 ><TT
8892 CLASS="PARAMETER"
8893 ><I
8894 >hide 
8895                 dot files</I
8896 ></TT
8897 ></A
8898 >, <A
8899 HREF="#VETOFILES"
8900 ><TT
8901 CLASS="PARAMETER"
8902 ><I
8903 >               veto files</I
8904 ></TT
8905 ></A
8906 > and <A
8907 HREF="#CASESENSITIVE"
8908 >               <TT
8909 CLASS="PARAMETER"
8910 ><I
8911 >case sensitive</I
8912 ></TT
8913 ></A
8914 >.</P
8915 ><P
8916 >Default: <SPAN
8917 CLASS="emphasis"
8918 ><I
8919 CLASS="EMPHASIS"
8920 >no file are hidden</I
8921 ></SPAN
8922 ></P
8923 ><P
8924 >Example: <B
8925 CLASS="COMMAND"
8926 >hide files =
8927                 /.*/DesktopFolderDB/TrashFor%m/resource.frk/</B
8928 ></P
8929 ><P
8930 >The above example is based on files that the Macintosh 
8931                 SMB client (DAVE) available from <A
8932 HREF="http://www.thursby.com"
8933 TARGET="_top"
8934
8935                 Thursby</A
8936 > creates for internal use, and also still hides 
8937                 all files beginning with a dot.</P
8938 ></DD
8939 ><DT
8940 ><A
8941 NAME="HIDELOCALUSERS"
8942 ></A
8943 >&#62;hide local users(G)</DT
8944 ><DD
8945 ><P
8946 >This parameter toggles the hiding of local UNIX 
8947                 users (root, wheel, floppy, etc) from remote clients.</P
8948 ><P
8949 >Default: <B
8950 CLASS="COMMAND"
8951 >hide local users = no</B
8952 ></P
8953 ></DD
8954 ><DT
8955 ><A
8956 NAME="HIDEUNREADABLE"
8957 ></A
8958 >&#62;hide unreadable (G)</DT
8959 ><DD
8960 ><P
8961 >This parameter prevents clients from seeing the
8962                 existance of files that cannot be read. Defaults to off.</P
8963 ><P
8964 >Default: <B
8965 CLASS="COMMAND"
8966 >hide unreadable = no</B
8967 ></P
8968 ></DD
8969 ><DT
8970 ><A
8971 NAME="HIDEUNWRITEABLEFILES"
8972 ></A
8973 >&#62;hide unwriteable files (G)</DT
8974 ><DD
8975 ><P
8976 >This parameter prevents clients from seeing
8977                 the existance of files that cannot be written to. Defaults to off.
8978                 Note that unwriteable directories are shown as usual.
8979                 </P
8980 ><P
8981 >Default: <B
8982 CLASS="COMMAND"
8983 >hide unwriteable = no</B
8984 ></P
8985 ></DD
8986 ><DT
8987 ><A
8988 NAME="HIDESPECIALFILES"
8989 ></A
8990 >&#62;hide special files (G)</DT
8991 ><DD
8992 ><P
8993 >This parameter prevents clients from seeing
8994                 special files such as sockets, devices and fifo's in directory 
8995                 listings.
8996                 </P
8997 ><P
8998 >Default: <B
8999 CLASS="COMMAND"
9000 >hide special files = no</B
9001 ></P
9002 ></DD
9003 ><DT
9004 ><A
9005 NAME="HOMEDIRMAP"
9006 ></A
9007 >&#62;homedir map (G)</DT
9008 ><DD
9009 ><P
9010 >If<A
9011 HREF="#NISHOMEDIR"
9012 ><TT
9013 CLASS="PARAMETER"
9014 ><I
9015 >nis homedir
9016                 </I
9017 ></TT
9018 ></A
9019 > is <TT
9020 CLASS="CONSTANT"
9021 >yes</TT
9022 >, and <SPAN
9023 CLASS="CITEREFENTRY"
9024 ><SPAN
9025 CLASS="REFENTRYTITLE"
9026 >smbd</SPAN
9027 >(8)</SPAN
9028 > is also acting 
9029                 as a Win95/98 <TT
9030 CLASS="PARAMETER"
9031 ><I
9032 >logon server</I
9033 ></TT
9034 > then this parameter 
9035                 specifies the NIS (or YP) map from which the server for the user's 
9036                 home directory should be extracted.  At present, only the Sun 
9037                 auto.home map format is understood. The form of the map is:</P
9038 ><P
9039 ><B
9040 CLASS="COMMAND"
9041 >username       server:/some/file/system</B
9042 ></P
9043 ><P
9044 >and the program will extract the servername from before 
9045                 the first ':'.  There should probably be a better parsing system 
9046                 that copes with different map formats and also Amd (another 
9047                 automounter) maps.</P
9048 ><P
9049 ><SPAN
9050 CLASS="emphasis"
9051 ><I
9052 CLASS="EMPHASIS"
9053 >NOTE :</I
9054 ></SPAN
9055 >A working NIS client is required on 
9056                 the system for this option to work.</P
9057 ><P
9058 >See also <A
9059 HREF="#NISHOMEDIR"
9060 ><TT
9061 CLASS="PARAMETER"
9062 ><I
9063 >nis homedir</I
9064 ></TT
9065 >
9066                 </A
9067 >, <A
9068 HREF="#DOMAINLOGONS"
9069 ><TT
9070 CLASS="PARAMETER"
9071 ><I
9072 >domain logons</I
9073 ></TT
9074 >
9075                 </A
9076 >.</P
9077 ><P
9078 >Default: <B
9079 CLASS="COMMAND"
9080 >homedir map = &lt;empty string&gt;</B
9081 ></P
9082 ><P
9083 >Example: <B
9084 CLASS="COMMAND"
9085 >homedir map = amd.homedir</B
9086 ></P
9087 ></DD
9088 ><DT
9089 ><A
9090 NAME="HOSTMSDFS"
9091 ></A
9092 >&#62;host msdfs (G)</DT
9093 ><DD
9094 ><P
9095 >This boolean parameter is only available 
9096                 if Samba has been configured and compiled with the <B
9097 CLASS="COMMAND"
9098 >               --with-msdfs</B
9099 > option. If set to <TT
9100 CLASS="CONSTANT"
9101 >yes</TT
9102 >, 
9103                 Samba will act as a Dfs server, and  allow Dfs-aware clients 
9104                 to browse Dfs trees hosted on the server.</P
9105 ><P
9106 >See also the <A
9107 HREF="#MSDFSROOT"
9108 ><TT
9109 CLASS="PARAMETER"
9110 ><I
9111 >               msdfs root</I
9112 ></TT
9113 ></A
9114 > share  level  parameter.  For
9115                 more  information  on  setting  up a Dfs tree on Samba,
9116                 refer to <A
9117 HREF="msdfs_setup.html"
9118 TARGET="_top"
9119 >msdfs_setup.html</A
9120 >.
9121                 </P
9122 ><P
9123 >Default: <B
9124 CLASS="COMMAND"
9125 >host msdfs = no</B
9126 ></P
9127 ></DD
9128 ><DT
9129 ><A
9130 NAME="HOSTNAMELOOKUPS"
9131 ></A
9132 >&#62;hostname lookups (G)</DT
9133 ><DD
9134 ><P
9135 >Specifies whether samba should use (expensive)
9136                 hostname lookups or use the ip addresses instead. An example place
9137                 where hostname lookups are currently used is when checking 
9138                 the <B
9139 CLASS="COMMAND"
9140 >hosts deny</B
9141 > and <B
9142 CLASS="COMMAND"
9143 >hosts allow</B
9144 >.
9145                 </P
9146 ><P
9147 >Default: <B
9148 CLASS="COMMAND"
9149 >hostname lookups = yes</B
9150 ></P
9151 ><P
9152 >Example: <B
9153 CLASS="COMMAND"
9154 >hostname lookups = no</B
9155 ></P
9156 ></DD
9157 ><DT
9158 ><A
9159 NAME="HOSTSALLOW"
9160 ></A
9161 >&#62;hosts allow (S)</DT
9162 ><DD
9163 ><P
9164 >A synonym for this parameter is <TT
9165 CLASS="PARAMETER"
9166 ><I
9167 >allow 
9168                 hosts</I
9169 ></TT
9170 >.</P
9171 ><P
9172 >This parameter is a comma, space, or tab delimited 
9173                 set of hosts which are permitted to access a service.</P
9174 ><P
9175 >If specified in the [global] section then it will
9176                 apply to all services, regardless of whether the individual 
9177                 service has a different setting.</P
9178 ><P
9179 >You can specify the hosts by name or IP number. For 
9180                 example, you could restrict access to only the hosts on a 
9181                 Class C subnet with something like <B
9182 CLASS="COMMAND"
9183 >allow hosts = 150.203.5.
9184                 </B
9185 >. The full syntax of the list is described in the man 
9186                 page <TT
9187 CLASS="FILENAME"
9188 >hosts_access(5)</TT
9189 >. Note that this man
9190                 page may not be present on your system, so a brief description will
9191                 be given here also.</P
9192 ><P
9193 >Note that the localhost address 127.0.0.1 will always 
9194                 be allowed access unless specifically denied by a <A
9195 HREF="#HOSTSDENY"
9196 ><TT
9197 CLASS="PARAMETER"
9198 ><I
9199 >hosts deny</I
9200 ></TT
9201 ></A
9202 > option.</P
9203 ><P
9204 >You can also specify hosts by network/netmask pairs and 
9205                 by netgroup names if your system supports netgroups. The 
9206                 <SPAN
9207 CLASS="emphasis"
9208 ><I
9209 CLASS="EMPHASIS"
9210 >EXCEPT</I
9211 ></SPAN
9212 > keyword can also be used to limit a 
9213                 wildcard list. The following examples may provide some help:</P
9214 ><P
9215 >Example 1: allow all IPs in 150.203.*.*; except one</P
9216 ><P
9217 ><B
9218 CLASS="COMMAND"
9219 >hosts allow = 150.203. EXCEPT 150.203.6.66</B
9220 ></P
9221 ><P
9222 >Example 2: allow hosts that match the given network/netmask</P
9223 ><P
9224 ><B
9225 CLASS="COMMAND"
9226 >hosts allow = 150.203.15.0/255.255.255.0</B
9227 ></P
9228 ><P
9229 >Example 3: allow a couple of hosts</P
9230 ><P
9231 ><B
9232 CLASS="COMMAND"
9233 >hosts allow = lapland, arvidsjaur</B
9234 ></P
9235 ><P
9236 >Example 4: allow only hosts in NIS netgroup "foonet", but 
9237                 deny access from one particular host</P
9238 ><P
9239 ><B
9240 CLASS="COMMAND"
9241 >hosts allow = @foonet</B
9242 ></P
9243 ><P
9244 ><B
9245 CLASS="COMMAND"
9246 >hosts deny = pirate</B
9247 ></P
9248 ><P
9249 >Note that access still requires suitable user-level passwords.</P
9250 ><P
9251 >See <SPAN
9252 CLASS="CITEREFENTRY"
9253 ><SPAN
9254 CLASS="REFENTRYTITLE"
9255 >testparm</SPAN
9256 >(1)</SPAN
9257 > for a way of testing your host access 
9258                 to see if it does what you expect.</P
9259 ><P
9260 >Default: <SPAN
9261 CLASS="emphasis"
9262 ><I
9263 CLASS="EMPHASIS"
9264 >none (i.e., all hosts permitted access)
9265                 </I
9266 ></SPAN
9267 ></P
9268 ><P
9269 >Example: <B
9270 CLASS="COMMAND"
9271 >allow hosts = 150.203.5. myhost.mynet.edu.au
9272                 </B
9273 ></P
9274 ></DD
9275 ><DT
9276 ><A
9277 NAME="HOSTSDENY"
9278 ></A
9279 >&#62;hosts deny (S)</DT
9280 ><DD
9281 ><P
9282 >The opposite of <TT
9283 CLASS="PARAMETER"
9284 ><I
9285 >hosts allow</I
9286 ></TT
9287
9288                 - hosts listed here are <SPAN
9289 CLASS="emphasis"
9290 ><I
9291 CLASS="EMPHASIS"
9292 >NOT</I
9293 ></SPAN
9294 > permitted access to 
9295                 services unless the specific services have their own lists to override 
9296                 this one. Where the lists conflict, the <TT
9297 CLASS="PARAMETER"
9298 ><I
9299 >allow</I
9300 ></TT
9301
9302                 list takes precedence.</P
9303 ><P
9304 >Default: <SPAN
9305 CLASS="emphasis"
9306 ><I
9307 CLASS="EMPHASIS"
9308 >none (i.e., no hosts specifically excluded)
9309                 </I
9310 ></SPAN
9311 ></P
9312 ><P
9313 >Example: <B
9314 CLASS="COMMAND"
9315 >hosts deny = 150.203.4. badhost.mynet.edu.au
9316                 </B
9317 ></P
9318 ></DD
9319 ><DT
9320 ><A
9321 NAME="HOSTSEQUIV"
9322 ></A
9323 >&#62;hosts equiv (G)</DT
9324 ><DD
9325 ><P
9326 >If this global parameter is a non-null string, 
9327                 it specifies the name of a file to read for the names of hosts 
9328                 and users who will be allowed access without specifying a password.
9329                 </P
9330 ><P
9331 >This is not be confused with <A
9332 HREF="#HOSTSALLOW"
9333 >               <TT
9334 CLASS="PARAMETER"
9335 ><I
9336 >hosts allow</I
9337 ></TT
9338 ></A
9339 > which is about hosts 
9340                 access to services and is more useful for guest services. <TT
9341 CLASS="PARAMETER"
9342 ><I
9343 >               hosts equiv</I
9344 ></TT
9345 > may be useful for NT clients which will 
9346                 not supply passwords to Samba.</P
9347 ><P
9348 ><SPAN
9349 CLASS="emphasis"
9350 ><I
9351 CLASS="EMPHASIS"
9352 >NOTE :</I
9353 ></SPAN
9354 > The use of <TT
9355 CLASS="PARAMETER"
9356 ><I
9357 >hosts equiv
9358                 </I
9359 ></TT
9360 > can be a major security hole. This is because you are 
9361                 trusting the PC to supply the correct username. It is very easy to 
9362                 get a PC to supply a false username. I recommend that the 
9363                 <TT
9364 CLASS="PARAMETER"
9365 ><I
9366 >hosts equiv</I
9367 ></TT
9368 > option be only used if you really 
9369                 know what you are doing, or perhaps on a home network where you trust 
9370                 your spouse and kids. And only if you <SPAN
9371 CLASS="emphasis"
9372 ><I
9373 CLASS="EMPHASIS"
9374 >really</I
9375 ></SPAN
9376 > trust 
9377                 them :-).</P
9378 ><P
9379 >Default: <SPAN
9380 CLASS="emphasis"
9381 ><I
9382 CLASS="EMPHASIS"
9383 >no host equivalences</I
9384 ></SPAN
9385 ></P
9386 ><P
9387 >Example: <B
9388 CLASS="COMMAND"
9389 >hosts equiv = /etc/hosts.equiv</B
9390 ></P
9391 ></DD
9392 ><DT
9393 ><A
9394 NAME="INCLUDE"
9395 ></A
9396 >&#62;include (G)</DT
9397 ><DD
9398 ><P
9399 >This allows you to include one config file 
9400                 inside another.  The file is included literally, as though typed 
9401                 in place.</P
9402 ><P
9403 >It takes the standard substitutions, except <TT
9404 CLASS="PARAMETER"
9405 ><I
9406 >%u
9407                 </I
9408 ></TT
9409 >, <TT
9410 CLASS="PARAMETER"
9411 ><I
9412 >%P</I
9413 ></TT
9414 > and <TT
9415 CLASS="PARAMETER"
9416 ><I
9417 >%S</I
9418 ></TT
9419 >.
9420                 </P
9421 ><P
9422 >Default: <SPAN
9423 CLASS="emphasis"
9424 ><I
9425 CLASS="EMPHASIS"
9426 >no file included</I
9427 ></SPAN
9428 ></P
9429 ><P
9430 >Example: <B
9431 CLASS="COMMAND"
9432 >include = /usr/local/samba/lib/admin_smb.conf
9433                 </B
9434 ></P
9435 ></DD
9436 ><DT
9437 ><A
9438 NAME="INHERITACLS"
9439 ></A
9440 >&#62;inherit acls (S)</DT
9441 ><DD
9442 ><P
9443 >This parameter can be used to ensure
9444                 that if default acls exist on parent directories,
9445                 they are always honored when creating a subdirectory.
9446                 The default behavior is to use the mode specified
9447                 when creating the directory.  Enabling this option
9448                 sets the mode to 0777, thus guaranteeing that 
9449                 default directory acls are propagated.
9450                 </P
9451 ><P
9452 >Default: <B
9453 CLASS="COMMAND"
9454 >inherit acls = no</B
9455 >
9456                 </P
9457 ></DD
9458 ><DT
9459 ><A
9460 NAME="INHERITPERMISSIONS"
9461 ></A
9462 >&#62;inherit permissions (S)</DT
9463 ><DD
9464 ><P
9465 >The permissions on new files and directories 
9466                 are normally governed by <A
9467 HREF="#CREATEMASK"
9468 ><TT
9469 CLASS="PARAMETER"
9470 ><I
9471 >               create mask</I
9472 ></TT
9473 ></A
9474 >, <A
9475 HREF="#DIRECTORYMASK"
9476 >               <TT
9477 CLASS="PARAMETER"
9478 ><I
9479 >directory mask</I
9480 ></TT
9481 ></A
9482 >, <A
9483 HREF="#FORCECREATEMODE"
9484 ><TT
9485 CLASS="PARAMETER"
9486 ><I
9487 >force create mode</I
9488 ></TT
9489 >
9490                 </A
9491 > and <A
9492 HREF="#FORCEDIRECTORYMODE"
9493 ><TT
9494 CLASS="PARAMETER"
9495 ><I
9496 >force 
9497                 directory mode</I
9498 ></TT
9499 ></A
9500 > but the boolean inherit 
9501                 permissions parameter overrides this.</P
9502 ><P
9503 >New directories inherit the mode of the parent directory,
9504                 including bits such as setgid.</P
9505 ><P
9506 >New files inherit their read/write bits from the parent 
9507                 directory.  Their execute bits continue to be determined by
9508                 <A
9509 HREF="#MAPARCHIVE"
9510 ><TT
9511 CLASS="PARAMETER"
9512 ><I
9513 >map archive</I
9514 ></TT
9515 >
9516                 </A
9517 >, <A
9518 HREF="#MAPHIDDEN"
9519 ><TT
9520 CLASS="PARAMETER"
9521 ><I
9522 >map hidden</I
9523 ></TT
9524 >
9525                 </A
9526 > and <A
9527 HREF="#MAPSYSTEM"
9528 ><TT
9529 CLASS="PARAMETER"
9530 ><I
9531 >map system</I
9532 ></TT
9533 >
9534                 </A
9535 > as usual.</P
9536 ><P
9537 >Note that the setuid bit is <SPAN
9538 CLASS="emphasis"
9539 ><I
9540 CLASS="EMPHASIS"
9541 >never</I
9542 ></SPAN
9543 > set via 
9544                 inheritance (the code explicitly prohibits this).</P
9545 ><P
9546 >This can be particularly useful on large systems with 
9547                 many users, perhaps several thousand, to allow a single [homes] 
9548                 share to be used flexibly by each user.</P
9549 ><P
9550 >See also <A
9551 HREF="#CREATEMASK"
9552 ><TT
9553 CLASS="PARAMETER"
9554 ><I
9555 >create mask
9556                 </I
9557 ></TT
9558 ></A
9559 >, <A
9560 HREF="#DIRECTORYMASK"
9561 ><TT
9562 CLASS="PARAMETER"
9563 ><I
9564 >               directory mask</I
9565 ></TT
9566 ></A
9567 >, <A
9568 HREF="#FORCECREATEMODE"
9569 >               <TT
9570 CLASS="PARAMETER"
9571 ><I
9572 >force create mode</I
9573 ></TT
9574 ></A
9575 > and <A
9576 HREF="#FORCEDIRECTORYMODE"
9577 ><TT
9578 CLASS="PARAMETER"
9579 ><I
9580 >force directory mode</I
9581 ></TT
9582 >
9583                 </A
9584 >.</P
9585 ><P
9586 >Default: <B
9587 CLASS="COMMAND"
9588 >inherit permissions = no</B
9589 ></P
9590 ></DD
9591 ><DT
9592 ><A
9593 NAME="INTERFACES"
9594 ></A
9595 >&#62;interfaces (G)</DT
9596 ><DD
9597 ><P
9598 >This option allows you to override the default 
9599                 network interfaces list that Samba will use for browsing, name 
9600                 registration and other NBT traffic. By default Samba will query 
9601                 the kernel for the list of all active interfaces and use any 
9602                 interfaces except 127.0.0.1 that are broadcast capable.</P
9603 ><P
9604 >The option takes a list of interface strings. Each string 
9605                 can be in any of the following forms:</P
9606 ><P
9607 ></P
9608 ><UL
9609 ><LI
9610 ><P
9611 >a network interface name (such as eth0). 
9612                         This may include shell-like wildcards so eth* will match 
9613                         any interface starting with the substring "eth"</P
9614 ></LI
9615 ><LI
9616 ><P
9617 >an IP address. In this case the netmask is 
9618                         determined from the list of interfaces obtained from the 
9619                         kernel</P
9620 ></LI
9621 ><LI
9622 ><P
9623 >an IP/mask pair. </P
9624 ></LI
9625 ><LI
9626 ><P
9627 >a broadcast/mask pair.</P
9628 ></LI
9629 ></UL
9630 ><P
9631 >The "mask" parameters can either be a bit length (such 
9632                 as 24 for a C class network) or a full netmask in dotted 
9633                 decimal form.</P
9634 ><P
9635 >The "IP" parameters above can either be a full dotted 
9636                 decimal IP address or a hostname which will be looked up via 
9637                 the OS's normal hostname resolution mechanisms.</P
9638 ><P
9639 >For example, the following line:</P
9640 ><P
9641 ><B
9642 CLASS="COMMAND"
9643 >interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
9644                 </B
9645 ></P
9646 ><P
9647 >would configure three network interfaces corresponding 
9648                 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. 
9649                 The netmasks of the latter two interfaces would be set to 255.255.255.0.</P
9650 ><P
9651 >See also <A
9652 HREF="#BINDINTERFACESONLY"
9653 ><TT
9654 CLASS="PARAMETER"
9655 ><I
9656 >bind 
9657                 interfaces only</I
9658 ></TT
9659 ></A
9660 >.</P
9661 ><P
9662 >Default: <SPAN
9663 CLASS="emphasis"
9664 ><I
9665 CLASS="EMPHASIS"
9666 >all active interfaces except 127.0.0.1 
9667                 that are broadcast capable</I
9668 ></SPAN
9669 ></P
9670 ></DD
9671 ><DT
9672 ><A
9673 NAME="INVALIDUSERS"
9674 ></A
9675 >&#62;invalid users (S)</DT
9676 ><DD
9677 ><P
9678 >This is a list of users that should not be allowed 
9679                 to login to this service. This is really a <SPAN
9680 CLASS="emphasis"
9681 ><I
9682 CLASS="EMPHASIS"
9683 >paranoid</I
9684 ></SPAN
9685
9686                 check to absolutely ensure an improper setting does not breach 
9687                 your security.</P
9688 ><P
9689 >A name starting with a '@' is interpreted as an NIS 
9690                 netgroup first (if your system supports NIS), and then as a UNIX 
9691                 group if the name was not found in the NIS netgroup database.</P
9692 ><P
9693 >A name starting with '+' is interpreted only 
9694                 by looking in the UNIX group database. A name starting with 
9695                 '&amp;' is interpreted only by looking in the NIS netgroup database 
9696                 (this requires NIS to be working on your system). The characters 
9697                 '+' and '&amp;' may be used at the start of the name in either order 
9698                 so the value <TT
9699 CLASS="PARAMETER"
9700 ><I
9701 >+&amp;group</I
9702 ></TT
9703 > means check the 
9704                 UNIX group database, followed by the NIS netgroup database, and 
9705                 the value <TT
9706 CLASS="PARAMETER"
9707 ><I
9708 >&amp;+group</I
9709 ></TT
9710 > means check the NIS
9711                 netgroup database, followed by the UNIX group database (the 
9712                 same as the '@' prefix).</P
9713 ><P
9714 >The current servicename is substituted for <TT
9715 CLASS="PARAMETER"
9716 ><I
9717 >%S</I
9718 ></TT
9719 >. 
9720                 This is useful in the [homes] section.</P
9721 ><P
9722 >See also <A
9723 HREF="#VALIDUSERS"
9724 ><TT
9725 CLASS="PARAMETER"
9726 ><I
9727 >valid users
9728                 </I
9729 ></TT
9730 ></A
9731 >.</P
9732 ><P
9733 >Default: <SPAN
9734 CLASS="emphasis"
9735 ><I
9736 CLASS="EMPHASIS"
9737 >no invalid users</I
9738 ></SPAN
9739 ></P
9740 ><P
9741 >Example: <B
9742 CLASS="COMMAND"
9743 >invalid users = root fred admin @wheel
9744                 </B
9745 ></P
9746 ></DD
9747 ><DT
9748 ><A
9749 NAME="KEEPALIVE"
9750 ></A
9751 >&#62;keepalive (G)</DT
9752 ><DD
9753 ><P
9754 >The value of the parameter (an integer) represents 
9755                 the number of seconds between <TT
9756 CLASS="PARAMETER"
9757 ><I
9758 >keepalive</I
9759 ></TT
9760
9761                 packets. If this parameter is zero, no keepalive packets will be 
9762                 sent. Keepalive packets, if sent, allow the server to tell whether 
9763                 a client is still present and responding.</P
9764 ><P
9765 >Keepalives should, in general, not be needed if the socket 
9766                 being used has the SO_KEEPALIVE attribute set on it (see <A
9767 HREF="#SOCKETOPTIONS"
9768 ><TT
9769 CLASS="PARAMETER"
9770 ><I
9771 >socket options</I
9772 ></TT
9773 ></A
9774 >). 
9775                 Basically you should only use this option if you strike difficulties.</P
9776 ><P
9777 >Default: <B
9778 CLASS="COMMAND"
9779 >keepalive = 300</B
9780 ></P
9781 ><P
9782 >Example: <B
9783 CLASS="COMMAND"
9784 >keepalive = 600</B
9785 ></P
9786 ></DD
9787 ><DT
9788 ><A
9789 NAME="KERNELOPLOCKS"
9790 ></A
9791 >&#62;kernel oplocks (G)</DT
9792 ><DD
9793 ><P
9794 >For UNIXes that support kernel based <A
9795 HREF="#OPLOCKS"
9796 ><TT
9797 CLASS="PARAMETER"
9798 ><I
9799 >oplocks</I
9800 ></TT
9801 ></A
9802 >
9803                 (currently only IRIX and the Linux 2.4 kernel), this parameter 
9804                 allows the use of them to be turned on or off.</P
9805 ><P
9806 >Kernel oplocks support allows Samba <TT
9807 CLASS="PARAMETER"
9808 ><I
9809 >oplocks
9810                 </I
9811 ></TT
9812 > to be broken whenever a local UNIX process or NFS operation 
9813                 accesses a file that <SPAN
9814 CLASS="CITEREFENTRY"
9815 ><SPAN
9816 CLASS="REFENTRYTITLE"
9817 >smbd</SPAN
9818 >(8)</SPAN
9819 > has oplocked. This allows complete 
9820                 data consistency between SMB/CIFS, NFS and local file access (and is 
9821                 a <SPAN
9822 CLASS="emphasis"
9823 ><I
9824 CLASS="EMPHASIS"
9825 >very</I
9826 ></SPAN
9827 > cool feature :-).</P
9828 ><P
9829 >This parameter defaults to <TT
9830 CLASS="CONSTANT"
9831 >on</TT
9832 >, but is translated
9833                 to a no-op on systems that no not have the necessary kernel support.
9834                 You should never need to touch this parameter.</P
9835 ><P
9836 >See also the <A
9837 HREF="#OPLOCKS"
9838 ><TT
9839 CLASS="PARAMETER"
9840 ><I
9841 >oplocks</I
9842 ></TT
9843 >
9844                 </A
9845 > and <A
9846 HREF="#LEVEL2OPLOCKS"
9847 ><TT
9848 CLASS="PARAMETER"
9849 ><I
9850 >level2 oplocks
9851                 </I
9852 ></TT
9853 ></A
9854 > parameters.</P
9855 ><P
9856 >Default: <B
9857 CLASS="COMMAND"
9858 >kernel oplocks = yes</B
9859 ></P
9860 ></DD
9861 ><DT
9862 ><A
9863 NAME="LANMANAUTH"
9864 ></A
9865 >&#62;lanman auth (G)</DT
9866 ><DD
9867 ><P
9868 >This parameter determines whether or not <SPAN
9869 CLASS="CITEREFENTRY"
9870 ><SPAN
9871 CLASS="REFENTRYTITLE"
9872 >smbd</SPAN
9873 >(8)</SPAN
9874 > will attempt to authenticate users 
9875                 using the LANMAN password hash. If disabled, only clients which support NT 
9876                 password hashes (e.g. Windows NT/2000 clients, smbclient, etc... but not 
9877                 Windows 95/98 or the MS DOS network client) will be able to connect to the Samba host.</P
9878 ><P
9879 >Default : <B
9880 CLASS="COMMAND"
9881 >lanman auth = yes</B
9882 ></P
9883 ></DD
9884 ><DT
9885 ><A
9886 NAME="LARGEREADWRITE"
9887 ></A
9888 >&#62;large readwrite (G)</DT
9889 ><DD
9890 ><P
9891 >This parameter determines whether or not <SPAN
9892 CLASS="CITEREFENTRY"
9893 ><SPAN
9894 CLASS="REFENTRYTITLE"
9895 >smbd</SPAN
9896 >(8)</SPAN
9897 >       supports the new 64k streaming 
9898                 read and write varient SMB requests introduced
9899                 with Windows 2000. Note that due to Windows 2000 client redirector bugs
9900                 this requires Samba to be running on a 64-bit capable operating system such
9901                 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
9902                 Windows 2000 clients. Defaults to on. Not as tested as some other Samba
9903                 code paths.
9904                 </P
9905 ><P
9906 >Default : <B
9907 CLASS="COMMAND"
9908 >large readwrite = yes</B
9909 ></P
9910 ></DD
9911 ><DT
9912 ><A
9913 NAME="LDAPADMINDN"
9914 ></A
9915 >&#62;ldap admin dn (G)</DT
9916 ><DD
9917 ><P
9918 > The <TT
9919 CLASS="PARAMETER"
9920 ><I
9921 >ldap admin dn</I
9922 ></TT
9923 > defines the Distinguished 
9924                 Name (DN) name used by Samba to contact the ldap server when retreiving 
9925                 user account information. The <TT
9926 CLASS="PARAMETER"
9927 ><I
9928 >ldap
9929                 admin dn</I
9930 ></TT
9931 > is used in conjunction with the admin dn password
9932                 stored in the <TT
9933 CLASS="FILENAME"
9934 >private/secrets.tdb</TT
9935 > file.  See the
9936                 <SPAN
9937 CLASS="CITEREFENTRY"
9938 ><SPAN
9939 CLASS="REFENTRYTITLE"
9940 >smbpasswd</SPAN
9941 >(8)</SPAN
9942 > man page for more information on how 
9943                 to accmplish this.
9944                 </P
9945 ><P
9946 >Default : <SPAN
9947 CLASS="emphasis"
9948 ><I
9949 CLASS="EMPHASIS"
9950 >none</I
9951 ></SPAN
9952 ></P
9953 ></DD
9954 ><DT
9955 ><A
9956 NAME="LDAPFILTER"
9957 ></A
9958 >&#62;ldap filter (G)</DT
9959 ><DD
9960 ><P
9961 >This parameter specifies the RFC 2254 compliant LDAP search filter.
9962                 The default is to match the login name with the <TT
9963 CLASS="CONSTANT"
9964 >uid</TT
9965
9966                 attribute for all entries matching the <TT
9967 CLASS="CONSTANT"
9968 >sambaAccount</TT
9969 >               
9970                 objectclass.  Note that this filter should only return one entry.
9971                 </P
9972 ><P
9973 >Default : <B
9974 CLASS="COMMAND"
9975 >ldap filter = (&amp;(uid=%u)(objectclass=sambaAccount))</B
9976 ></P
9977 ></DD
9978 ><DT
9979 ><A
9980 NAME="LDAPPORT"
9981 ></A
9982 >&#62;ldap port (G)</DT
9983 ><DD
9984 ><P
9985 >This parameter is only available if Samba has been
9986                 configure to include the <B
9987 CLASS="COMMAND"
9988 >--with-ldapsam</B
9989 > option
9990                 at compile time.
9991                 </P
9992 ><P
9993 >                This option is used to control the tcp port number used to contact
9994                 the <A
9995 HREF="#LDAPSERVER"
9996 ><TT
9997 CLASS="PARAMETER"
9998 ><I
9999 >ldap server</I
10000 ></TT
10001 ></A
10002 >.
10003                 The default is to use the stand LDAPS port 636.
10004                 </P
10005 ><P
10006 >See Also: <A
10007 HREF="#LDAPSSL"
10008 >ldap ssl</A
10009 >
10010                 </P
10011 ><P
10012 >Default : <B
10013 CLASS="COMMAND"
10014 >ldap port = 636 ; if ldap ssl = on</B
10015 ></P
10016 ><P
10017 >Default : <B
10018 CLASS="COMMAND"
10019 >ldap port = 389 ; if ldap ssl = off</B
10020 ></P
10021 ></DD
10022 ><DT
10023 ><A
10024 NAME="LDAPSERVER"
10025 ></A
10026 >&#62;ldap server (G)</DT
10027 ><DD
10028 ><P
10029 >This parameter is only available if Samba has been
10030                 configure to include the <B
10031 CLASS="COMMAND"
10032 >--with-ldapsam</B
10033 > option
10034                 at compile time.
10035                 </P
10036 ><P
10037 >                This parameter should contain the FQDN of the ldap directory
10038                 server which should be queried to locate user account information.
10039                 </P
10040 ><P
10041 >Default : <B
10042 CLASS="COMMAND"
10043 >ldap server = localhost</B
10044 ></P
10045 ></DD
10046 ><DT
10047 ><A
10048 NAME="LDAPSSL"
10049 ></A
10050 >&#62;ldap ssl (G)</DT
10051 ><DD
10052 ><P
10053 >This option is used to define whether or not Samba should
10054                 use SSL when connecting to the ldap server
10055                 This is <SPAN
10056 CLASS="emphasis"
10057 ><I
10058 CLASS="EMPHASIS"
10059 >NOT</I
10060 ></SPAN
10061 > related to
10062                 Samba's previous SSL support which was enabled by specifying the 
10063                 <B
10064 CLASS="COMMAND"
10065 >--with-ssl</B
10066 > option to the <TT
10067 CLASS="FILENAME"
10068 >configure</TT
10069
10070                 script.
10071                 </P
10072 ><P
10073 >               The <TT
10074 CLASS="PARAMETER"
10075 ><I
10076 >ldap ssl</I
10077 ></TT
10078 > can be set to one of three values:
10079                 </P
10080 ><P
10081 ></P
10082 ><UL
10083 ><LI
10084 ><P
10085 ><TT
10086 CLASS="PARAMETER"
10087 ><I
10088 >Off</I
10089 ></TT
10090 > = Never use SSL when querying the directory.</P
10091 ></LI
10092 ><LI
10093 ><P
10094 ><TT
10095 CLASS="PARAMETER"
10096 ><I
10097 >Start_tls</I
10098 ></TT
10099 > = Use the LDAPv3 StartTLS extended operation 
10100                         (RFC2830) for communicating with the directory server.</P
10101 ></LI
10102 ><LI
10103 ><P
10104 ><TT
10105 CLASS="PARAMETER"
10106 ><I
10107 >On</I
10108 ></TT
10109 >  =
10110                         Use SSL on the ldaps port when contacting the 
10111                         <TT
10112 CLASS="PARAMETER"
10113 ><I
10114 >ldap   server</I
10115 ></TT
10116 >.  Only
10117                         available when the backwards-compatiblity <B
10118 CLASS="COMMAND"
10119 >                       --with-ldapsam</B
10120 > option is specified
10121                         to configure.  See <A
10122 HREF="#PASSDBBACKEND"
10123 ><TT
10124 CLASS="PARAMETER"
10125 ><I
10126 >passdb backend</I
10127 ></TT
10128 ></A
10129 ></P
10130 ></LI
10131 ></UL
10132 ><P
10133 >Default : <B
10134 CLASS="COMMAND"
10135 >ldap ssl = start_tls</B
10136 ></P
10137 ></DD
10138 ><DT
10139 ><A
10140 NAME="LDAPSUFFIX"
10141 ></A
10142 >&#62;ldap suffix (G)</DT
10143 ><DD
10144 ><P
10145 >Specifies where user and machine accounts are added to the tree. Can be overriden by <B
10146 CLASS="COMMAND"
10147 >ldap user suffix</B
10148 > and <B
10149 CLASS="COMMAND"
10150 >ldap machine suffix</B
10151 >. It also used as the base dn for all ldap searches. </P
10152 ><P
10153 >Default : <SPAN
10154 CLASS="emphasis"
10155 ><I
10156 CLASS="EMPHASIS"
10157 >none</I
10158 ></SPAN
10159 ></P
10160 ></DD
10161 ><DT
10162 ><A
10163 NAME="LDAPUSERSUFFIX"
10164 ></A
10165 >&#62;ldap user suffix (G)</DT
10166 ><DD
10167 ><P
10168 >It specifies where users are added to the tree.
10169                 </P
10170 ><P
10171 >Default : <SPAN
10172 CLASS="emphasis"
10173 ><I
10174 CLASS="EMPHASIS"
10175 >none</I
10176 ></SPAN
10177 ></P
10178 ></DD
10179 ><DT
10180 ><A
10181 NAME="LDAPMACHINESUFFIX"
10182 ></A
10183 >&#62;ldap machine suffix (G)</DT
10184 ><DD
10185 ><P
10186 >It specifies where machines should be 
10187                 added to the ldap tree.
10188                 </P
10189 ><P
10190 >Default : <SPAN
10191 CLASS="emphasis"
10192 ><I
10193 CLASS="EMPHASIS"
10194 >none</I
10195 ></SPAN
10196 ></P
10197 ></DD
10198 ><DT
10199 ><A
10200 NAME="LDAPPASSWDSYNC"
10201 ></A
10202 >&#62;ldap passwd sync (G)</DT
10203 ><DD
10204 ><P
10205 >This option is used to define whether
10206                 or not Samba should sync the LDAP password with the NT
10207                 and LM hashes for normal accounts (NOT for
10208                 workstation, server or domain trusts) on a password
10209                 change via SAMBA.  
10210                 </P
10211 ><P
10212 >               The <TT
10213 CLASS="PARAMETER"
10214 ><I
10215 >ldap passwd sync</I
10216 ></TT
10217 > can be set to one of three values:
10218                 </P
10219 ><P
10220 ></P
10221 ><UL
10222 ><LI
10223 ><P
10224 ><TT
10225 CLASS="PARAMETER"
10226 ><I
10227 >Yes</I
10228 ></TT
10229 >  =  Try to update the LDAP, NT and LM passwords and update the pwdLastSet time.</P
10230 ></LI
10231 ><LI
10232 ><P
10233 ><TT
10234 CLASS="PARAMETER"
10235 ><I
10236 >No</I
10237 ></TT
10238 > = Update NT and LM passwords and update the pwdLastSet time.</P
10239 ></LI
10240 ><LI
10241 ><P
10242 ><TT
10243 CLASS="PARAMETER"
10244 ><I
10245 >Only</I
10246 ></TT
10247 > = Only update the LDAP password and let the LDAP server do the rest.</P
10248 ></LI
10249 ></UL
10250 ><P
10251 >Default : <B
10252 CLASS="COMMAND"
10253 >ldap passwd sync = no</B
10254 ></P
10255 ></DD
10256 ><DT
10257 ><A
10258 NAME="LDAPTRUSTIDS"
10259 ></A
10260 >&#62;ldap trust ids (G)</DT
10261 ><DD
10262 ><P
10263 >Normally, Samba validates each entry
10264                 in the LDAP server against getpwnam().  This allows
10265                 LDAP to be used for Samba with the unix system using
10266                 NIS (for example) and also ensures that Samba does not
10267                 present accounts that do not otherwise exist.  </P
10268 ><P
10269 >This option is used to disable this functionality, and
10270                 instead to rely on the presence of the appropriate
10271                 attributes in LDAP directly, which can result in a
10272                 significant performance boost in some situations.  
10273                 Setting this option to yes effectivly assumes
10274                 that the local machine is running <B
10275 CLASS="COMMAND"
10276 >nss_ldap</B
10277 > against the
10278                 same LDAP server.</P
10279 ><P
10280 >Default: <B
10281 CLASS="COMMAND"
10282 >ldap trust ids = No</B
10283 ></P
10284 ></DD
10285 ><DT
10286 ><A
10287 NAME="LEVEL2OPLOCKS"
10288 ></A
10289 >&#62;level2 oplocks (S)</DT
10290 ><DD
10291 ><P
10292 >This parameter controls whether Samba supports
10293                 level2 (read-only) oplocks on a share.</P
10294 ><P
10295 >Level2, or read-only oplocks allow Windows NT clients 
10296                 that have an oplock on a file to downgrade from a read-write oplock 
10297                 to a read-only oplock once a second client opens the file (instead 
10298                 of releasing all oplocks on a second open, as in traditional, 
10299                 exclusive oplocks). This allows all openers of the file that 
10300                 support level2 oplocks to cache the file for read-ahead only (ie. 
10301                 they may not cache writes or lock requests) and increases performance 
10302                 for many accesses of files that are not commonly written (such as 
10303                 application .EXE files).</P
10304 ><P
10305 >Once one of the clients which have a read-only oplock 
10306                 writes to the file all clients are notified (no reply is needed 
10307                 or waited for) and told to break their oplocks to "none" and 
10308                 delete any read-ahead caches.</P
10309 ><P
10310 >It is recommended that this parameter be turned on 
10311                 to speed access to shared executables.</P
10312 ><P
10313 >For more discussions on level2 oplocks see the CIFS spec.</P
10314 ><P
10315 >Currently, if <A
10316 HREF="#KERNELOPLOCKS"
10317 ><TT
10318 CLASS="PARAMETER"
10319 ><I
10320 >kernel 
10321                 oplocks</I
10322 ></TT
10323 ></A
10324 > are supported then level2 oplocks are 
10325                 not granted (even if this parameter is set to <TT
10326 CLASS="CONSTANT"
10327 >yes</TT
10328 >). 
10329                 Note also, the <A
10330 HREF="#OPLOCKS"
10331 ><TT
10332 CLASS="PARAMETER"
10333 ><I
10334 >oplocks</I
10335 ></TT
10336 >
10337                 </A
10338 > parameter must be set to <TT
10339 CLASS="CONSTANT"
10340 >yes</TT
10341 > on this share in order for 
10342                 this parameter to have any effect.</P
10343 ><P
10344 >See also the <A
10345 HREF="#OPLOCKS"
10346 ><TT
10347 CLASS="PARAMETER"
10348 ><I
10349 >oplocks</I
10350 ></TT
10351 >
10352                 </A
10353 > and <A
10354 HREF="#OPLOCKS"
10355 ><TT
10356 CLASS="PARAMETER"
10357 ><I
10358 >kernel oplocks</I
10359 ></TT
10360 >
10361                 </A
10362 > parameters.</P
10363 ><P
10364 >Default: <B
10365 CLASS="COMMAND"
10366 >level2 oplocks = yes</B
10367 ></P
10368 ></DD
10369 ><DT
10370 ><A
10371 NAME="LMANNOUNCE"
10372 ></A
10373 >&#62;lm announce (G)</DT
10374 ><DD
10375 ><P
10376 >This parameter determines if <SPAN
10377 CLASS="CITEREFENTRY"
10378 ><SPAN
10379 CLASS="REFENTRYTITLE"
10380 >nmbd</SPAN
10381 >(8)</SPAN
10382 > will produce Lanman announce 
10383                 broadcasts that are needed by OS/2 clients in order for them to see 
10384                 the Samba server in their browse list. This parameter can have three 
10385                 values, <TT
10386 CLASS="CONSTANT"
10387 >yes</TT
10388 >, <TT
10389 CLASS="CONSTANT"
10390 >no</TT
10391 >, or
10392                 <TT
10393 CLASS="CONSTANT"
10394 >auto</TT
10395 >. The default is <TT
10396 CLASS="CONSTANT"
10397 >auto</TT
10398 >.  
10399                 If set to <TT
10400 CLASS="CONSTANT"
10401 >no</TT
10402 > Samba will never produce these 
10403                 broadcasts. If set to <TT
10404 CLASS="CONSTANT"
10405 >yes</TT
10406 > Samba will produce 
10407                 Lanman announce broadcasts at a frequency set by the parameter 
10408                 <TT
10409 CLASS="PARAMETER"
10410 ><I
10411 >lm interval</I
10412 ></TT
10413 >. If set to <TT
10414 CLASS="CONSTANT"
10415 >auto</TT
10416
10417                 Samba will not send Lanman announce broadcasts by default but will 
10418                 listen for them. If it hears such a broadcast on the wire it will 
10419                 then start sending them at a frequency set by the parameter 
10420                 <TT
10421 CLASS="PARAMETER"
10422 ><I
10423 >lm interval</I
10424 ></TT
10425 >.</P
10426 ><P
10427 >See also <A
10428 HREF="#LMINTERVAL"
10429 ><TT
10430 CLASS="PARAMETER"
10431 ><I
10432 >lm interval
10433                 </I
10434 ></TT
10435 ></A
10436 >.</P
10437 ><P
10438 >Default: <B
10439 CLASS="COMMAND"
10440 >lm announce = auto</B
10441 ></P
10442 ><P
10443 >Example: <B
10444 CLASS="COMMAND"
10445 >lm announce = yes</B
10446 ></P
10447 ></DD
10448 ><DT
10449 ><A
10450 NAME="LMINTERVAL"
10451 ></A
10452 >&#62;lm interval (G)</DT
10453 ><DD
10454 ><P
10455 >If Samba is set to produce Lanman announce 
10456                 broadcasts needed by OS/2 clients (see the <A
10457 HREF="#LMANNOUNCE"
10458 >               <TT
10459 CLASS="PARAMETER"
10460 ><I
10461 >lm announce</I
10462 ></TT
10463 ></A
10464 > parameter) then this 
10465                 parameter defines the frequency in seconds with which they will be 
10466                 made.  If this is set to zero then no Lanman announcements will be 
10467                 made despite the setting of the <TT
10468 CLASS="PARAMETER"
10469 ><I
10470 >lm announce</I
10471 ></TT
10472
10473                 parameter.</P
10474 ><P
10475 >See also <A
10476 HREF="#LMANNOUNCE"
10477 ><TT
10478 CLASS="PARAMETER"
10479 ><I
10480 >lm 
10481                 announce</I
10482 ></TT
10483 ></A
10484 >.</P
10485 ><P
10486 >Default: <B
10487 CLASS="COMMAND"
10488 >lm interval = 60</B
10489 ></P
10490 ><P
10491 >Example: <B
10492 CLASS="COMMAND"
10493 >lm interval = 120</B
10494 ></P
10495 ></DD
10496 ><DT
10497 ><A
10498 NAME="LOADPRINTERS"
10499 ></A
10500 >&#62;load printers (G)</DT
10501 ><DD
10502 ><P
10503 >A boolean variable that controls whether all 
10504                 printers in the printcap will be loaded for browsing by default. 
10505                 See the <A
10506 HREF="#AEN80"
10507 >printers</A
10508 > section for 
10509                 more details.</P
10510 ><P
10511 >Default: <B
10512 CLASS="COMMAND"
10513 >load printers = yes</B
10514 ></P
10515 ></DD
10516 ><DT
10517 ><A
10518 NAME="LOCALMASTER"
10519 ></A
10520 >&#62;local master (G)</DT
10521 ><DD
10522 ><P
10523 >This option allows <SPAN
10524 CLASS="CITEREFENTRY"
10525 ><SPAN
10526 CLASS="REFENTRYTITLE"
10527 >nmbd</SPAN
10528 >(8)</SPAN
10529 > to try and become a local master browser 
10530                 on a subnet. If set to <TT
10531 CLASS="CONSTANT"
10532 >no</TT
10533 > then <B
10534 CLASS="COMMAND"
10535 >               nmbd</B
10536 > will not attempt to become a local master browser 
10537                 on a subnet and will also lose in all browsing elections. By
10538                 default this value is set to <TT
10539 CLASS="CONSTANT"
10540 >yes</TT
10541 >. Setting this value to <TT
10542 CLASS="CONSTANT"
10543 >yes</TT
10544 > doesn't
10545                 mean that Samba will <SPAN
10546 CLASS="emphasis"
10547 ><I
10548 CLASS="EMPHASIS"
10549 >become</I
10550 ></SPAN
10551 > the local master 
10552                 browser on a subnet, just that <B
10553 CLASS="COMMAND"
10554 >nmbd</B
10555 > will <SPAN
10556 CLASS="emphasis"
10557 ><I
10558 CLASS="EMPHASIS"
10559 >               participate</I
10560 ></SPAN
10561 > in elections for local master browser.</P
10562 ><P
10563 >Setting this value to <TT
10564 CLASS="CONSTANT"
10565 >no</TT
10566 > will cause <B
10567 CLASS="COMMAND"
10568 >nmbd</B
10569 >
10570                 <SPAN
10571 CLASS="emphasis"
10572 ><I
10573 CLASS="EMPHASIS"
10574 >never</I
10575 ></SPAN
10576 > to become a local master browser.</P
10577 ><P
10578 >Default: <B
10579 CLASS="COMMAND"
10580 >local master = yes</B
10581 ></P
10582 ></DD
10583 ><DT
10584 ><A
10585 NAME="LOCKDIR"
10586 ></A
10587 >&#62;lock dir (G)</DT
10588 ><DD
10589 ><P
10590 >Synonym for <A
10591 HREF="#LOCKDIRECTORY"
10592 ><TT
10593 CLASS="PARAMETER"
10594 ><I
10595 >               lock directory</I
10596 ></TT
10597 ></A
10598 >.</P
10599 ></DD
10600 ><DT
10601 ><A
10602 NAME="LOCKDIRECTORY"
10603 ></A
10604 >&#62;lock directory (G)</DT
10605 ><DD
10606 ><P
10607 >This option specifies the directory where lock 
10608                 files will be placed.  The lock files are used to implement the 
10609                 <A
10610 HREF="#MAXCONNECTIONS"
10611 ><TT
10612 CLASS="PARAMETER"
10613 ><I
10614 >max connections</I
10615 ></TT
10616 >
10617                 </A
10618 > option.</P
10619 ><P
10620 >Default: <B
10621 CLASS="COMMAND"
10622 >lock directory = ${prefix}/var/locks</B
10623 ></P
10624 ><P
10625 >Example: <B
10626 CLASS="COMMAND"
10627 >lock directory = /var/run/samba/locks</B
10628 >
10629                 </P
10630 ></DD
10631 ><DT
10632 ><A
10633 NAME="LOCKSPINCOUNT"
10634 ></A
10635 >&#62;lock spin count (G)</DT
10636 ><DD
10637 ><P
10638 >This parameter controls the number of times
10639                 that smbd should attempt to gain a byte range lock on the 
10640                 behalf of a client request.  Experiments have shown that
10641                 Windows 2k servers do not reply with a failure if the lock
10642                 could not be immediately granted, but try a few more times
10643                 in case the lock could later be aquired.  This behavior
10644                 is used to support PC database formats such as MS Access
10645                 and FoxPro.
10646                 </P
10647 ><P
10648 >Default: <B
10649 CLASS="COMMAND"
10650 >lock spin count = 2</B
10651 >
10652                 </P
10653 ></DD
10654 ><DT
10655 ><A
10656 NAME="LOCKSPINTIME"
10657 ></A
10658 >&#62;lock spin time (G)</DT
10659 ><DD
10660 ><P
10661 >The time in microseconds that smbd should 
10662                 pause before attempting to gain a failed lock.  See
10663                 <A
10664 HREF="#LOCKSPINCOUNT"
10665 ><TT
10666 CLASS="PARAMETER"
10667 ><I
10668 >lock spin 
10669                 count</I
10670 ></TT
10671 ></A
10672 > for more details.
10673                 </P
10674 ><P
10675 >Default: <B
10676 CLASS="COMMAND"
10677 >lock spin time = 10</B
10678 >
10679                 </P
10680 ></DD
10681 ><DT
10682 ><A
10683 NAME="LOCKING"
10684 ></A
10685 >&#62;locking (S)</DT
10686 ><DD
10687 ><P
10688 >This controls whether or not locking will be 
10689                 performed by the server in response to lock requests from the 
10690                 client.</P
10691 ><P
10692 >If <B
10693 CLASS="COMMAND"
10694 >locking = no</B
10695 >, all lock and unlock 
10696                 requests will appear to succeed and all lock queries will report 
10697                 that the file in question is available for locking.</P
10698 ><P
10699 >If <B
10700 CLASS="COMMAND"
10701 >locking = yes</B
10702 >, real locking will be performed 
10703                 by the server.</P
10704 ><P
10705 >This option <SPAN
10706 CLASS="emphasis"
10707 ><I
10708 CLASS="EMPHASIS"
10709 >may</I
10710 ></SPAN
10711 > be useful for read-only 
10712                 filesystems which <SPAN
10713 CLASS="emphasis"
10714 ><I
10715 CLASS="EMPHASIS"
10716 >may</I
10717 ></SPAN
10718 > not need locking (such as 
10719                 CDROM drives), although setting this parameter of <TT
10720 CLASS="CONSTANT"
10721 >no</TT
10722
10723                 is not really recommended even in this case.</P
10724 ><P
10725 >Be careful about disabling locking either globally or in a 
10726                 specific service, as lack of locking may result in data corruption. 
10727                 You should never need to set this parameter.</P
10728 ><P
10729 >Default: <B
10730 CLASS="COMMAND"
10731 >locking = yes</B
10732 ></P
10733 ></DD
10734 ><DT
10735 ><A
10736 NAME="LOGFILE"
10737 ></A
10738 >&#62;log file (G)</DT
10739 ><DD
10740 ><P
10741 >This option allows you to override the name 
10742                 of the Samba log file (also known as the debug file).</P
10743 ><P
10744 >This option takes the standard substitutions, allowing 
10745                 you to have separate log files for each user or machine.</P
10746 ><P
10747 >Example: <B
10748 CLASS="COMMAND"
10749 >log file = /usr/local/samba/var/log.%m
10750                 </B
10751 ></P
10752 ></DD
10753 ><DT
10754 ><A
10755 NAME="LOGLEVEL"
10756 ></A
10757 >&#62;log level (G)</DT
10758 ><DD
10759 ><P
10760 >The value of the parameter (a astring) allows 
10761                 the debug level (logging level) to be specified in the 
10762                 <TT
10763 CLASS="FILENAME"
10764 >smb.conf</TT
10765 > file. This parameter has been
10766                 extended since the 2.2.x series, now it allow to specify the debug
10767                 level for multiple debug classes. This is to give greater 
10768                 flexibility in the configuration of the system.</P
10769 ><P
10770 >The default will be the log level specified on 
10771                 the command line or level zero if none was specified.</P
10772 ><P
10773 >Example: <B
10774 CLASS="COMMAND"
10775 >log level = 3 passdb:5 auth:10 winbind:2
10776                 </B
10777 ></P
10778 ></DD
10779 ><DT
10780 ><A
10781 NAME="LOGONDRIVE"
10782 ></A
10783 >&#62;logon drive (G)</DT
10784 ><DD
10785 ><P
10786 >This parameter specifies the local path to 
10787                 which the home directory will be connected (see <A
10788 HREF="#LOGONHOME"
10789 ><TT
10790 CLASS="PARAMETER"
10791 ><I
10792 >logon home</I
10793 ></TT
10794 ></A
10795 >) 
10796                 and is only used by NT Workstations. </P
10797 ><P
10798 >Note that this option is only useful if Samba is set up as a
10799                 logon server.</P
10800 ><P
10801 >Default: <B
10802 CLASS="COMMAND"
10803 >logon drive = z:</B
10804 ></P
10805 ><P
10806 >Example: <B
10807 CLASS="COMMAND"
10808 >logon drive = h:</B
10809 ></P
10810 ></DD
10811 ><DT
10812 ><A
10813 NAME="LOGONHOME"
10814 ></A
10815 >&#62;logon home (G)</DT
10816 ><DD
10817 ><P
10818 >This parameter specifies the home directory 
10819                 location when a Win95/98 or NT Workstation logs into a Samba PDC.  
10820                 It allows you to do </P
10821 ><P
10822 ><TT
10823 CLASS="PROMPT"
10824 >C:\&#62; </TT
10825 ><TT
10826 CLASS="USERINPUT"
10827 ><B
10828 >NET USE H: /HOME</B
10829 ></TT
10830 >
10831                 </P
10832 ><P
10833 >from a command prompt, for example.</P
10834 ><P
10835 >This option takes the standard substitutions, allowing 
10836                 you to have separate logon scripts for each user or machine.</P
10837 ><P
10838 >This parameter can be used with Win9X workstations to ensure 
10839                 that roaming profiles are stored in a subdirectory of the user's 
10840                 home directory.  This is done in the following way:</P
10841 ><P
10842 ><B
10843 CLASS="COMMAND"
10844 >logon home = \\%N\%U\profile</B
10845 ></P
10846 ><P
10847 >This tells Samba to return the above string, with 
10848                 substitutions made when a client requests the info, generally 
10849                 in a NetUserGetInfo request.  Win9X clients truncate the info to
10850                 \\server\share when a user does <B
10851 CLASS="COMMAND"
10852 >net use /home</B
10853 >
10854                 but use the whole string when dealing with profiles.</P
10855 ><P
10856 >Note that in prior versions of Samba, the <A
10857 HREF="#LOGONPATH"
10858 >               <TT
10859 CLASS="PARAMETER"
10860 ><I
10861 >logon path</I
10862 ></TT
10863 ></A
10864 > was returned rather than 
10865                 <TT
10866 CLASS="PARAMETER"
10867 ><I
10868 >logon home</I
10869 ></TT
10870 >.  This broke <B
10871 CLASS="COMMAND"
10872 >net use 
10873                 /home</B
10874 > but allowed profiles outside the home directory.  
10875                 The current implementation is correct, and can be used for 
10876                 profiles if you use the above trick.</P
10877 ><P
10878 >This option is only useful if Samba is set up as a logon 
10879                 server.</P
10880 ><P
10881 >Default: <B
10882 CLASS="COMMAND"
10883 >logon home = "\\%N\%U"</B
10884 ></P
10885 ><P
10886 >Example: <B
10887 CLASS="COMMAND"
10888 >logon home = "\\remote_smb_server\%U"</B
10889 >
10890                 </P
10891 ></DD
10892 ><DT
10893 ><A
10894 NAME="LOGONPATH"
10895 ></A
10896 >&#62;logon path (G)</DT
10897 ><DD
10898 ><P
10899 >This parameter specifies the home directory 
10900                 where roaming profiles (NTuser.dat etc files for Windows NT) are 
10901                 stored.  Contrary to previous versions of these manual pages, it has 
10902                 nothing to do with Win 9X roaming profiles.  To find out how to 
10903                 handle roaming profiles for Win 9X system, see the <A
10904 HREF="#LOGONHOME"
10905 >               <TT
10906 CLASS="PARAMETER"
10907 ><I
10908 >logon home</I
10909 ></TT
10910 ></A
10911 > parameter.</P
10912 ><P
10913 >This option takes the standard substitutions, allowing you 
10914                 to have separate logon scripts for each user or machine.  It also 
10915                 specifies the directory from which the "Application Data", 
10916                 (<TT
10917 CLASS="FILENAME"
10918 >desktop</TT
10919 >, <TT
10920 CLASS="FILENAME"
10921 >start menu</TT
10922 >,
10923                 <TT
10924 CLASS="FILENAME"
10925 >network neighborhood</TT
10926 >, <TT
10927 CLASS="FILENAME"
10928 >programs</TT
10929
10930                 and other folders, and their contents, are loaded and displayed on 
10931                 your Windows NT client.</P
10932 ><P
10933 >The share and the path must be readable by the user for 
10934                 the preferences and directories to be loaded onto the Windows NT
10935                 client.  The share must be writeable when the user logs in for the first
10936                 time, in order that the Windows NT client can create the NTuser.dat
10937                 and other directories.</P
10938 ><P
10939 >Thereafter, the directories and any of the contents can, 
10940                 if required, be made read-only.  It is not advisable that the 
10941                 NTuser.dat file be made read-only - rename it to NTuser.man to 
10942                 achieve the desired effect (a <SPAN
10943 CLASS="emphasis"
10944 ><I
10945 CLASS="EMPHASIS"
10946 >MAN</I
10947 ></SPAN
10948 >datory 
10949                 profile). </P
10950 ><P
10951 >Windows clients can sometimes maintain a connection to 
10952                 the [homes] share, even though there is no user logged in.  
10953                 Therefore, it is vital that the logon path does not include a 
10954                 reference to the homes share (i.e. setting this parameter to
10955                 \%N\%U\profile_path will cause problems).</P
10956 ><P
10957 >This option takes the standard substitutions, allowing 
10958                 you to have separate logon scripts for each user or machine.</P
10959 ><P
10960 >Note that this option is only useful if Samba is set up 
10961                 as a logon server.</P
10962 ><P
10963 >Default: <B
10964 CLASS="COMMAND"
10965 >logon path = \\%N\%U\profile</B
10966 ></P
10967 ><P
10968 >Example: <B
10969 CLASS="COMMAND"
10970 >logon path = \\PROFILESERVER\PROFILE\%U</B
10971 ></P
10972 ></DD
10973 ><DT
10974 ><A
10975 NAME="LOGONSCRIPT"
10976 ></A
10977 >&#62;logon script (G)</DT
10978 ><DD
10979 ><P
10980 >This parameter specifies the batch file (.bat) or 
10981                 NT command file (.cmd) to be downloaded and run on a machine when 
10982                 a user successfully logs in.  The file must contain the DOS 
10983                 style CR/LF line endings. Using a DOS-style editor to create the 
10984                 file is recommended.</P
10985 ><P
10986 >The script must be a relative path to the [netlogon] 
10987                 service.  If the [netlogon] service specifies a <A
10988 HREF="#PATH"
10989 >               <TT
10990 CLASS="PARAMETER"
10991 ><I
10992 >path</I
10993 ></TT
10994 ></A
10995 > of <TT
10996 CLASS="FILENAME"
10997 >/usr/local/samba/netlogon
10998                 </TT
10999 >, and <B
11000 CLASS="COMMAND"
11001 >logon script = STARTUP.BAT</B
11002 >, then 
11003                 the file that will be downloaded is:</P
11004 ><P
11005 ><TT
11006 CLASS="FILENAME"
11007 >/usr/local/samba/netlogon/STARTUP.BAT</TT
11008 ></P
11009 ><P
11010 >The contents of the batch file are entirely your choice.  A 
11011                 suggested command would be to add <B
11012 CLASS="COMMAND"
11013 >NET TIME \\SERVER /SET 
11014                 /YES</B
11015 >, to force every machine to synchronize clocks with 
11016                 the same time server.  Another use would be to add <B
11017 CLASS="COMMAND"
11018 >NET USE 
11019                 U: \\SERVER\UTILS</B
11020 > for commonly used utilities, or <B
11021 CLASS="COMMAND"
11022 >               NET USE Q: \\SERVER\ISO9001_QA</B
11023 > for example.</P
11024 ><P
11025 >Note that it is particularly important not to allow write 
11026                 access to the [netlogon] share, or to grant users write permission 
11027                 on the batch files in a secure environment, as this would allow 
11028                 the batch files to be arbitrarily modified and security to be 
11029                 breached.</P
11030 ><P
11031 >This option takes the standard substitutions, allowing you 
11032                 to have separate logon scripts for each user or machine.</P
11033 ><P
11034 >This option is only useful if Samba is set up as a logon 
11035                 server.</P
11036 ><P
11037 >Default: <SPAN
11038 CLASS="emphasis"
11039 ><I
11040 CLASS="EMPHASIS"
11041 >no logon script defined</I
11042 ></SPAN
11043 ></P
11044 ><P
11045 >Example: <B
11046 CLASS="COMMAND"
11047 >logon script = scripts\%U.bat</B
11048 ></P
11049 ></DD
11050 ><DT
11051 ><A
11052 NAME="LPPAUSECOMMAND"
11053 ></A
11054 >&#62;lppause command (S)</DT
11055 ><DD
11056 ><P
11057 >This parameter specifies the command to be 
11058                 executed on the server host in order to stop printing or spooling 
11059                 a specific print job.</P
11060 ><P
11061 >This command should be a program or script which takes 
11062                 a printer name and job number to pause the print job. One way 
11063                 of implementing this is by using job priorities, where jobs 
11064                 having a too low priority won't be sent to the printer.</P
11065 ><P
11066 >If a <TT
11067 CLASS="PARAMETER"
11068 ><I
11069 >%p</I
11070 ></TT
11071 > is given then the printer name 
11072                 is put in its place. A <TT
11073 CLASS="PARAMETER"
11074 ><I
11075 >%j</I
11076 ></TT
11077 > is replaced with 
11078                 the job number (an integer).  On HPUX (see <TT
11079 CLASS="PARAMETER"
11080 ><I
11081 >printing=hpux
11082                 </I
11083 ></TT
11084 >), if the <TT
11085 CLASS="PARAMETER"
11086 ><I
11087 >-p%p</I
11088 ></TT
11089 > option is added 
11090                 to the lpq command, the job will show up with the correct status, i.e. 
11091                 if the job priority is lower than the set fence priority it will 
11092                 have the PAUSED status, whereas if  the priority is equal or higher it 
11093                 will have the SPOOLED or PRINTING status.</P
11094 ><P
11095 >Note that it is good practice to include the absolute path 
11096                 in the lppause command as the PATH may not be available to the server.</P
11097 ><P
11098 >See also the <A
11099 HREF="#PRINTING"
11100 ><TT
11101 CLASS="PARAMETER"
11102 ><I
11103 >printing
11104                 </I
11105 ></TT
11106 ></A
11107 > parameter.</P
11108 ><P
11109 >Default: Currently no default value is given to 
11110                 this string, unless the value of the <TT
11111 CLASS="PARAMETER"
11112 ><I
11113 >printing</I
11114 ></TT
11115
11116                 parameter is <TT
11117 CLASS="CONSTANT"
11118 >SYSV</TT
11119 >, in which case the default is :</P
11120 ><P
11121 ><B
11122 CLASS="COMMAND"
11123 >lp -i %p-%j -H hold</B
11124 ></P
11125 ><P
11126 >or if the value of the <TT
11127 CLASS="PARAMETER"
11128 ><I
11129 >printing</I
11130 ></TT
11131 > parameter 
11132                 is <TT
11133 CLASS="CONSTANT"
11134 >SOFTQ</TT
11135 >, then the default is:</P
11136 ><P
11137 ><B
11138 CLASS="COMMAND"
11139 >qstat -s -j%j -h</B
11140 ></P
11141 ><P
11142 >Example for HPUX: <B
11143 CLASS="COMMAND"
11144 >lppause command = /usr/bin/lpalt       
11145                 %p-%j -p0</B
11146 ></P
11147 ></DD
11148 ><DT
11149 ><A
11150 NAME="LPQCACHETIME"
11151 ></A
11152 >&#62;lpq cache time (G)</DT
11153 ><DD
11154 ><P
11155 >This controls how long lpq info will be cached 
11156                 for to prevent the <B
11157 CLASS="COMMAND"
11158 >lpq</B
11159 > command being called too 
11160                 often. A separate cache is kept for each variation of the <B
11161 CLASS="COMMAND"
11162 >               lpq</B
11163 > command used by the system, so if you use different 
11164                 <B
11165 CLASS="COMMAND"
11166 >lpq</B
11167 > commands for different users then they won't
11168                 share cache information.</P
11169 ><P
11170 >The cache files are stored in <TT
11171 CLASS="FILENAME"
11172 >/tmp/lpq.xxxx</TT
11173
11174                 where xxxx is a hash of the <B
11175 CLASS="COMMAND"
11176 >lpq</B
11177 > command in use.</P
11178 ><P
11179 >The default is 10 seconds, meaning that the cached results 
11180                 of a previous identical <B
11181 CLASS="COMMAND"
11182 >lpq</B
11183 > command will be used 
11184                 if the cached data is less than 10 seconds old. A large value may 
11185                 be advisable if your <B
11186 CLASS="COMMAND"
11187 >lpq</B
11188 > command is very slow.</P
11189 ><P
11190 >A value of 0 will disable caching completely.</P
11191 ><P
11192 >See also the <A
11193 HREF="#PRINTING"
11194 ><TT
11195 CLASS="PARAMETER"
11196 ><I
11197 >printing
11198                 </I
11199 ></TT
11200 ></A
11201 > parameter.</P
11202 ><P
11203 >Default: <B
11204 CLASS="COMMAND"
11205 >lpq cache time = 10</B
11206 ></P
11207 ><P
11208 >Example: <B
11209 CLASS="COMMAND"
11210 >lpq cache time = 30</B
11211 ></P
11212 ></DD
11213 ><DT
11214 ><A
11215 NAME="LPQCOMMAND"
11216 ></A
11217 >&#62;lpq command (S)</DT
11218 ><DD
11219 ><P
11220 >This parameter specifies the command to be 
11221                 executed on the server host in order to obtain <B
11222 CLASS="COMMAND"
11223 >lpq
11224                 </B
11225 >-style printer status information.</P
11226 ><P
11227 >This command should be a program or script which 
11228                 takes a printer name as its only parameter and outputs printer 
11229                 status information.</P
11230 ><P
11231 >Currently nine styles of printer status information 
11232                 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, CUPS, and SOFTQ. 
11233                 This covers most UNIX systems. You control which type is expected 
11234                 using the <TT
11235 CLASS="PARAMETER"
11236 ><I
11237 >printing =</I
11238 ></TT
11239 > option.</P
11240 ><P
11241 >Some clients (notably Windows for Workgroups) may not 
11242                 correctly send the connection number for the printer they are 
11243                 requesting status information about. To get around this, the 
11244                 server reports on the first printer service connected to by the 
11245                 client. This only happens if the connection number sent is invalid.</P
11246 ><P
11247 >If a <TT
11248 CLASS="PARAMETER"
11249 ><I
11250 >%p</I
11251 ></TT
11252 > is given then the printer name 
11253                 is put in its place. Otherwise it is placed at the end of the 
11254                 command.</P
11255 ><P
11256 >Note that it is good practice to include the absolute path 
11257                 in the <TT
11258 CLASS="PARAMETER"
11259 ><I
11260 >lpq command</I
11261 ></TT
11262 > as the <TT
11263 CLASS="ENVAR"
11264 >$PATH
11265                 </TT
11266 > may not be available to the server.  When compiled with
11267                 the CUPS libraries, no <TT
11268 CLASS="PARAMETER"
11269 ><I
11270 >lpq command</I
11271 ></TT
11272 > is
11273                 needed because smbd will make a library call to obtain the 
11274                 print queue listing.</P
11275 ><P
11276 >See also the <A
11277 HREF="#PRINTING"
11278 ><TT
11279 CLASS="PARAMETER"
11280 ><I
11281 >printing
11282                 </I
11283 ></TT
11284 ></A
11285 > parameter.</P
11286 ><P
11287 >Default: <SPAN
11288 CLASS="emphasis"
11289 ><I
11290 CLASS="EMPHASIS"
11291 >depends on the setting of <TT
11292 CLASS="PARAMETER"
11293 ><I
11294 >               printing</I
11295 ></TT
11296 ></I
11297 ></SPAN
11298 ></P
11299 ><P
11300 >Example: <B
11301 CLASS="COMMAND"
11302 >lpq command = /usr/bin/lpq -P%p</B
11303 ></P
11304 ></DD
11305 ><DT
11306 ><A
11307 NAME="LPRESUMECOMMAND"
11308 ></A
11309 >&#62;lpresume command (S)</DT
11310 ><DD
11311 ><P
11312 >This parameter specifies the command to be 
11313                 executed on the server host in order to restart or continue 
11314                 printing or spooling a specific print job.</P
11315 ><P
11316 >This command should be a program or script which takes 
11317                 a printer name and job number to resume the print job. See 
11318                 also the <A
11319 HREF="#LPPAUSECOMMAND"
11320 ><TT
11321 CLASS="PARAMETER"
11322 ><I
11323 >lppause command
11324                 </I
11325 ></TT
11326 ></A
11327 > parameter.</P
11328 ><P
11329 >If a <TT
11330 CLASS="PARAMETER"
11331 ><I
11332 >%p</I
11333 ></TT
11334 > is given then the printer name 
11335                 is put in its place. A <TT
11336 CLASS="PARAMETER"
11337 ><I
11338 >%j</I
11339 ></TT
11340 > is replaced with 
11341                 the job number (an integer).</P
11342 ><P
11343 >Note that it is good practice to include the absolute path 
11344                 in the <TT
11345 CLASS="PARAMETER"
11346 ><I
11347 >lpresume command</I
11348 ></TT
11349 > as the PATH may not 
11350                 be available to the server.</P
11351 ><P
11352 >See also the <A
11353 HREF="#PRINTING"
11354 ><TT
11355 CLASS="PARAMETER"
11356 ><I
11357 >printing
11358                 </I
11359 ></TT
11360 ></A
11361 > parameter.</P
11362 ><P
11363 >Default: Currently no default value is given 
11364                 to this string, unless the value of the <TT
11365 CLASS="PARAMETER"
11366 ><I
11367 >printing</I
11368 ></TT
11369
11370                 parameter is <TT
11371 CLASS="CONSTANT"
11372 >SYSV</TT
11373 >, in which case the default is :</P
11374 ><P
11375 ><B
11376 CLASS="COMMAND"
11377 >lp -i %p-%j -H resume</B
11378 ></P
11379 ><P
11380 >or if the value of the <TT
11381 CLASS="PARAMETER"
11382 ><I
11383 >printing</I
11384 ></TT
11385 > parameter 
11386                 is <TT
11387 CLASS="CONSTANT"
11388 >SOFTQ</TT
11389 >, then the default is:</P
11390 ><P
11391 ><B
11392 CLASS="COMMAND"
11393 >qstat -s -j%j -r</B
11394 ></P
11395 ><P
11396 >Example for HPUX: <B
11397 CLASS="COMMAND"
11398 >lpresume command = /usr/bin/lpalt 
11399                 %p-%j -p2</B
11400 ></P
11401 ></DD
11402 ><DT
11403 ><A
11404 NAME="LPRMCOMMAND"
11405 ></A
11406 >&#62;lprm command (S)</DT
11407 ><DD
11408 ><P
11409 >This parameter specifies the command to be 
11410                 executed on the server host in order to delete a print job.</P
11411 ><P
11412 >This command should be a program or script which takes 
11413                 a printer name and job number, and deletes the print job.</P
11414 ><P
11415 >If a <TT
11416 CLASS="PARAMETER"
11417 ><I
11418 >%p</I
11419 ></TT
11420 > is given then the printer name 
11421                 is put in its place. A <TT
11422 CLASS="PARAMETER"
11423 ><I
11424 >%j</I
11425 ></TT
11426 > is replaced with 
11427                 the job number (an integer).</P
11428 ><P
11429 >Note that it is good practice to include the absolute 
11430                 path in the <TT
11431 CLASS="PARAMETER"
11432 ><I
11433 >lprm command</I
11434 ></TT
11435 > as the PATH may not be 
11436                 available to the server.</P
11437 ><P
11438 >See also the <A
11439 HREF="#PRINTING"
11440 ><TT
11441 CLASS="PARAMETER"
11442 ><I
11443 >printing
11444                 </I
11445 ></TT
11446 ></A
11447 > parameter.</P
11448 ><P
11449 >Default: <SPAN
11450 CLASS="emphasis"
11451 ><I
11452 CLASS="EMPHASIS"
11453 >depends on the setting of <TT
11454 CLASS="PARAMETER"
11455 ><I
11456 >printing
11457                 </I
11458 ></TT
11459 ></I
11460 ></SPAN
11461 ></P
11462 ><P
11463 >Example 1: <B
11464 CLASS="COMMAND"
11465 >lprm command = /usr/bin/lprm -P%p %j
11466                 </B
11467 ></P
11468 ><P
11469 >Example 2: <B
11470 CLASS="COMMAND"
11471 >lprm command = /usr/bin/cancel %p-%j
11472                 </B
11473 ></P
11474 ></DD
11475 ><DT
11476 ><A
11477 NAME="MACHINEPASSWORDTIMEOUT"
11478 ></A
11479 >&#62;machine password timeout (G)</DT
11480 ><DD
11481 ><P
11482 >If a Samba server is a member of a Windows 
11483                 NT Domain (see the <A
11484 HREF="#SECURITYEQUALSDOMAIN"
11485 >security = domain</A
11486 >) 
11487                 parameter) then periodically a running <A
11488 HREF="smbd.8.html"
11489 TARGET="_top"
11490 >               smbd(8)</A
11491 > process will try and change the MACHINE ACCOUNT 
11492                 PASSWORD stored in the TDB called <TT
11493 CLASS="FILENAME"
11494 >private/secrets.tdb
11495                 </TT
11496 >.  This parameter specifies how often this password 
11497                 will be changed, in seconds. The default is one week (expressed in 
11498                 seconds), the same as a Windows NT Domain member server.</P
11499 ><P
11500 >See also <SPAN
11501 CLASS="CITEREFENTRY"
11502 ><SPAN
11503 CLASS="REFENTRYTITLE"
11504 >smbpasswd</SPAN
11505 >(8)</SPAN
11506 >, and the <A
11507 HREF="#SECURITYEQUALSDOMAIN"
11508 >               security = domain</A
11509 >) parameter.</P
11510 ><P
11511 >Default: <B
11512 CLASS="COMMAND"
11513 >machine password timeout = 604800</B
11514 ></P
11515 ></DD
11516 ><DT
11517 ><A
11518 NAME="MAGICOUTPUT"
11519 ></A
11520 >&#62;magic output (S)</DT
11521 ><DD
11522 ><P
11523 >This parameter specifies the name of a file 
11524                 which will contain output created by a magic script (see the 
11525                 <A
11526 HREF="#MAGICSCRIPT"
11527 ><TT
11528 CLASS="PARAMETER"
11529 ><I
11530 >magic script</I
11531 ></TT
11532 ></A
11533 >
11534                 parameter below).</P
11535 ><P
11536 >Warning: If two clients use the same <TT
11537 CLASS="PARAMETER"
11538 ><I
11539 >magic script
11540                 </I
11541 ></TT
11542 > in the same directory the output file content
11543                 is undefined.</P
11544 ><P
11545 >Default: <B
11546 CLASS="COMMAND"
11547 >magic output = &lt;magic script name&gt;.out
11548                 </B
11549 ></P
11550 ><P
11551 >Example: <B
11552 CLASS="COMMAND"
11553 >magic output = myfile.txt</B
11554 ></P
11555 ></DD
11556 ><DT
11557 ><A
11558 NAME="MAGICSCRIPT"
11559 ></A
11560 >&#62;magic script (S)</DT
11561 ><DD
11562 ><P
11563 >This parameter specifies the name of a file which, 
11564                 if opened, will be executed by the server when the file is closed. 
11565                 This allows a UNIX script to be sent to the Samba host and 
11566                 executed on behalf of the connected user.</P
11567 ><P
11568 >Scripts executed in this way will be deleted upon 
11569                 completion assuming that the user has the appropriate level 
11570                 of privilege and the file permissions allow the deletion.</P
11571 ><P
11572 >If the script generates output, output will be sent to 
11573                 the file specified by the <A
11574 HREF="#MAGICOUTPUT"
11575 ><TT
11576 CLASS="PARAMETER"
11577 ><I
11578 >               magic output</I
11579 ></TT
11580 ></A
11581 > parameter (see above).</P
11582 ><P
11583 >Note that some shells are unable to interpret scripts 
11584                 containing CR/LF instead of CR as 
11585                 the end-of-line marker. Magic scripts must be executable 
11586                 <SPAN
11587 CLASS="emphasis"
11588 ><I
11589 CLASS="EMPHASIS"
11590 >as is</I
11591 ></SPAN
11592 > on the host, which for some hosts and 
11593                 some shells will require filtering at the DOS end.</P
11594 ><P
11595 >Magic scripts are <SPAN
11596 CLASS="emphasis"
11597 ><I
11598 CLASS="EMPHASIS"
11599 >EXPERIMENTAL</I
11600 ></SPAN
11601 > and 
11602                 should <SPAN
11603 CLASS="emphasis"
11604 ><I
11605 CLASS="EMPHASIS"
11606 >NOT</I
11607 ></SPAN
11608 > be relied upon.</P
11609 ><P
11610 >Default: <SPAN
11611 CLASS="emphasis"
11612 ><I
11613 CLASS="EMPHASIS"
11614 >None. Magic scripts disabled.</I
11615 ></SPAN
11616 ></P
11617 ><P
11618 >Example: <B
11619 CLASS="COMMAND"
11620 >magic script = user.csh</B
11621 ></P
11622 ></DD
11623 ><DT
11624 ><A
11625 NAME="MANGLECASE"
11626 ></A
11627 >&#62;mangle case (S)</DT
11628 ><DD
11629 ><P
11630 >See the section on <A
11631 HREF="#AEN206"
11632 >               NAME MANGLING</A
11633 ></P
11634 ><P
11635 >Default: <B
11636 CLASS="COMMAND"
11637 >mangle case = no</B
11638 ></P
11639 ></DD
11640 ><DT
11641 ><A
11642 NAME="MANGLEDMAP"
11643 ></A
11644 >&#62;mangled map (S)</DT
11645 ><DD
11646 ><P
11647 >This is for those who want to directly map UNIX 
11648                 file names which cannot be represented on Windows/DOS.  The mangling 
11649                 of names is not always what is needed.  In particular you may have 
11650                 documents with file extensions that differ between DOS and UNIX. 
11651                 For example, under UNIX it is common to use <TT
11652 CLASS="FILENAME"
11653 >.html</TT
11654
11655                 for HTML files, whereas under Windows/DOS <TT
11656 CLASS="FILENAME"
11657 >.htm</TT
11658
11659                 is more commonly used.</P
11660 ><P
11661 >So to map <TT
11662 CLASS="FILENAME"
11663 >html</TT
11664 > to <TT
11665 CLASS="FILENAME"
11666 >htm</TT
11667
11668                 you would use:</P
11669 ><P
11670 ><B
11671 CLASS="COMMAND"
11672 >mangled map = (*.html *.htm)</B
11673 ></P
11674 ><P
11675 >One very useful case is to remove the annoying <TT
11676 CLASS="FILENAME"
11677 >;1
11678                 </TT
11679 > off the ends of filenames on some CDROMs (only visible 
11680                 under some UNIXes). To do this use a map of (*;1 *;).</P
11681 ><P
11682 >Default: <SPAN
11683 CLASS="emphasis"
11684 ><I
11685 CLASS="EMPHASIS"
11686 >no mangled map</I
11687 ></SPAN
11688 ></P
11689 ><P
11690 >Example: <B
11691 CLASS="COMMAND"
11692 >mangled map = (*;1 *;)</B
11693 ></P
11694 ></DD
11695 ><DT
11696 ><A
11697 NAME="MANGLEDNAMES"
11698 ></A
11699 >&#62;mangled names (S)</DT
11700 ><DD
11701 ><P
11702 >This controls whether non-DOS names under UNIX 
11703                 should be mapped to DOS-compatible names ("mangled") and made visible, 
11704                 or whether non-DOS names should simply be ignored.</P
11705 ><P
11706 >See the section on <A
11707 HREF="#AEN206"
11708 >               NAME MANGLING</A
11709 > for details on how to control the mangling process.</P
11710 ><P
11711 >If mangling is used then the mangling algorithm is as follows:</P
11712 ><P
11713 ></P
11714 ><UL
11715 ><LI
11716 ><P
11717 >The first (up to) five alphanumeric characters 
11718                         before the rightmost dot of the filename are preserved, forced 
11719                         to upper case, and appear as the first (up to) five characters 
11720                         of the mangled name.</P
11721 ></LI
11722 ><LI
11723 ><P
11724 >A tilde "~" is appended to the first part of the mangled
11725                         name, followed by a two-character unique sequence, based on the
11726                         original root name (i.e., the original filename minus its final
11727                         extension). The final extension is included in the hash calculation
11728                         only if it contains any upper case characters or is longer than three
11729                         characters.</P
11730 ><P
11731 >Note that the character to use may be specified using 
11732                         the <A
11733 HREF="#MANGLINGCHAR"
11734 ><TT
11735 CLASS="PARAMETER"
11736 ><I
11737 >mangling char</I
11738 ></TT
11739 >
11740                         </A
11741 > option, if you don't like '~'.</P
11742 ></LI
11743 ><LI
11744 ><P
11745 >The first three alphanumeric characters of the final 
11746                         extension are preserved, forced to upper case and appear as the 
11747                         extension of the mangled name. The final extension is defined as that 
11748                         part of the original filename after the rightmost dot. If there are no 
11749                         dots in the filename, the mangled name will have no extension (except 
11750                         in the case of "hidden files" - see below).</P
11751 ></LI
11752 ><LI
11753 ><P
11754 >Files whose UNIX name begins with a dot will be 
11755                         presented as DOS hidden files. The mangled name will be created as 
11756                         for other filenames, but with the leading dot removed and "___" as 
11757                         its extension regardless of actual original extension (that's three 
11758                         underscores).</P
11759 ></LI
11760 ></UL
11761 ><P
11762 >The two-digit hash value consists of upper case 
11763                 alphanumeric characters.</P
11764 ><P
11765 >This algorithm can cause name collisions only if files 
11766                 in a directory share the same first five alphanumeric characters. 
11767                 The probability of such a clash is 1/1300.</P
11768 ><P
11769 >The name mangling (if enabled) allows a file to be 
11770                 copied between UNIX directories from Windows/DOS while retaining 
11771                 the long UNIX filename. UNIX files can be renamed to a new extension 
11772                 from Windows/DOS and will retain the same basename. Mangled names 
11773                 do not change between sessions.</P
11774 ><P
11775 >Default: <B
11776 CLASS="COMMAND"
11777 >mangled names = yes</B
11778 ></P
11779 ></DD
11780 ><DT
11781 ><A
11782 NAME="MANGLINGMETHOD"
11783 ></A
11784 >&#62;mangling method (G)</DT
11785 ><DD
11786 ><P
11787 > controls the algorithm used for the generating
11788                 the mangled names. Can take two different values, "hash" and
11789                 "hash2". "hash" is  the default and is the algorithm that has been
11790                 used in Samba for many years. "hash2" is a newer and considered
11791                 a better algorithm (generates less collisions) in the names.
11792                 However, many Win32 applications store the mangled names and so
11793                 changing to the new algorithm must not be done
11794                 lightly as these applications may break unless reinstalled.</P
11795 ><P
11796 >Default: <B
11797 CLASS="COMMAND"
11798 >mangling method = hash2</B
11799 ></P
11800 ><P
11801 >Example: <B
11802 CLASS="COMMAND"
11803 >mangling method = hash</B
11804 ></P
11805 ></DD
11806 ><DT
11807 ><A
11808 NAME="MANGLEPREFIX"
11809 ></A
11810 >&#62;mangle prefix (G)</DT
11811 ><DD
11812 ><P
11813 > controls the number of prefix
11814                 characters from the original name used when generating
11815                 the mangled names. A larger value will give a weaker
11816                 hash and therefore more name collisions. The minimum
11817                 value is 1 and the maximum value is 6.</P
11818 ><P
11819 >Default: <B
11820 CLASS="COMMAND"
11821 >mangle prefix = 1</B
11822 ></P
11823 ><P
11824 >Example: <B
11825 CLASS="COMMAND"
11826 >mangle prefix = 4</B
11827 ></P
11828 ></DD
11829 ><DT
11830 ><A
11831 NAME="MANGLEDSTACK"
11832 ></A
11833 >&#62;mangled stack (G)</DT
11834 ><DD
11835 ><P
11836 >This parameter controls the number of mangled names 
11837                 that should be cached in the Samba server <SPAN
11838 CLASS="CITEREFENTRY"
11839 ><SPAN
11840 CLASS="REFENTRYTITLE"
11841 >smbd</SPAN
11842 >(8)</SPAN
11843 >.</P
11844 ><P
11845 >This stack is a list of recently mangled base names 
11846                 (extensions are only maintained if they are longer than 3 characters 
11847                 or contains upper case characters).</P
11848 ><P
11849 >The larger this value, the more likely it is that mangled 
11850                 names can be successfully converted to correct long UNIX names. 
11851                 However, large stack sizes will slow most directory accesses. Smaller 
11852                 stacks save memory in the server (each stack element costs 256 bytes).
11853                 </P
11854 ><P
11855 >It is not possible to absolutely guarantee correct long 
11856                 filenames, so be prepared for some surprises!</P
11857 ><P
11858 >Default: <B
11859 CLASS="COMMAND"
11860 >mangled stack = 50</B
11861 ></P
11862 ><P
11863 >Example: <B
11864 CLASS="COMMAND"
11865 >mangled stack = 100</B
11866 ></P
11867 ></DD
11868 ><DT
11869 ><A
11870 NAME="MANGLINGCHAR"
11871 ></A
11872 >&#62;mangling char (S)</DT
11873 ><DD
11874 ><P
11875 >This controls what character is used as 
11876                 the <SPAN
11877 CLASS="emphasis"
11878 ><I
11879 CLASS="EMPHASIS"
11880 >magic</I
11881 ></SPAN
11882 > character in <A
11883 HREF="#AEN206"
11884 >name mangling</A
11885 >. The default is a '~'
11886                 but this may interfere with some software. Use this option to set 
11887                 it to whatever you prefer.</P
11888 ><P
11889 >Default: <B
11890 CLASS="COMMAND"
11891 >mangling char = ~</B
11892 ></P
11893 ><P
11894 >Example: <B
11895 CLASS="COMMAND"
11896 >mangling char = ^</B
11897 ></P
11898 ></DD
11899 ><DT
11900 ><A
11901 NAME="MAPARCHIVE"
11902 ></A
11903 >&#62;map archive (S)</DT
11904 ><DD
11905 ><P
11906 >This controls whether the DOS archive attribute 
11907                 should be mapped to the UNIX owner execute bit.  The DOS archive bit 
11908                 is set when a file has been modified since its last backup.  One 
11909                 motivation for this option it to keep Samba/your PC from making 
11910                 any file it touches from becoming executable under UNIX.  This can 
11911                 be quite annoying for shared source code, documents, etc...</P
11912 ><P
11913 >Note that this requires the <TT
11914 CLASS="PARAMETER"
11915 ><I
11916 >create mask</I
11917 ></TT
11918 >
11919                 parameter to be set such that owner execute bit is not masked out 
11920                 (i.e. it must include 100). See the parameter <A
11921 HREF="#CREATEMASK"
11922 >               <TT
11923 CLASS="PARAMETER"
11924 ><I
11925 >create mask</I
11926 ></TT
11927 ></A
11928 > for details.</P
11929 ><P
11930 >Default: <B
11931 CLASS="COMMAND"
11932 >map archive = yes</B
11933 ></P
11934 ></DD
11935 ><DT
11936 ><A
11937 NAME="MAPHIDDEN"
11938 ></A
11939 >&#62;map hidden (S)</DT
11940 ><DD
11941 ><P
11942 >This controls whether DOS style hidden files 
11943                 should be mapped to the UNIX world execute bit.</P
11944 ><P
11945 >Note that this requires the <TT
11946 CLASS="PARAMETER"
11947 ><I
11948 >create mask</I
11949 ></TT
11950
11951                 to be set such that the world execute bit is not masked out (i.e. 
11952                 it must include 001). See the parameter <A
11953 HREF="#CREATEMASK"
11954 >               <TT
11955 CLASS="PARAMETER"
11956 ><I
11957 >create mask</I
11958 ></TT
11959 ></A
11960 > for details.</P
11961 ><P
11962 >Default: <B
11963 CLASS="COMMAND"
11964 >map hidden = no</B
11965 ></P
11966 ></DD
11967 ><DT
11968 ><A
11969 NAME="MAPSYSTEM"
11970 ></A
11971 >&#62;map system (S)</DT
11972 ><DD
11973 ><P
11974 >This controls whether DOS style system files 
11975                 should be mapped to the UNIX group execute bit.</P
11976 ><P
11977 >Note that this requires the <TT
11978 CLASS="PARAMETER"
11979 ><I
11980 >create mask</I
11981 ></TT
11982
11983                 to be set such that the group execute bit is not masked out (i.e. 
11984                 it must include 010). See the parameter <A
11985 HREF="#CREATEMASK"
11986 >               <TT
11987 CLASS="PARAMETER"
11988 ><I
11989 >create mask</I
11990 ></TT
11991 ></A
11992 > for details.</P
11993 ><P
11994 >Default: <B
11995 CLASS="COMMAND"
11996 >map system = no</B
11997 ></P
11998 ></DD
11999 ><DT
12000 ><A
12001 NAME="MAPTOGUEST"
12002 ></A
12003 >&#62;map to guest (G)</DT
12004 ><DD
12005 ><P
12006 >This parameter is only useful in <A
12007 HREF="#SECURITY"
12008 >               security</A
12009 > modes other than <TT
12010 CLASS="PARAMETER"
12011 ><I
12012 >security = share</I
12013 ></TT
12014
12015                 - i.e. <TT
12016 CLASS="CONSTANT"
12017 >user</TT
12018 >, <TT
12019 CLASS="CONSTANT"
12020 >server</TT
12021 >, 
12022                 and <TT
12023 CLASS="CONSTANT"
12024 >domain</TT
12025 >.</P
12026 ><P
12027 >This parameter can take three different values, which tell
12028                 <SPAN
12029 CLASS="CITEREFENTRY"
12030 ><SPAN
12031 CLASS="REFENTRYTITLE"
12032 >smbd</SPAN
12033 >(8)</SPAN
12034 > what to do with user 
12035                 login requests that don't match a valid UNIX user in some way.</P
12036 ><P
12037 >The three settings are :</P
12038 ><P
12039 ></P
12040 ><UL
12041 ><LI
12042 ><P
12043 ><TT
12044 CLASS="CONSTANT"
12045 >Never</TT
12046 > - Means user login 
12047                         requests with an invalid password are rejected. This is the 
12048                         default.</P
12049 ></LI
12050 ><LI
12051 ><P
12052 ><TT
12053 CLASS="CONSTANT"
12054 >Bad User</TT
12055 > - Means user
12056                         logins with an invalid password are rejected, unless the username 
12057                         does not exist, in which case it is treated as a guest login and 
12058                         mapped into the <A
12059 HREF="#GUESTACCOUNT"
12060 ><TT
12061 CLASS="PARAMETER"
12062 ><I
12063 >                       guest account</I
12064 ></TT
12065 ></A
12066 >.</P
12067 ></LI
12068 ><LI
12069 ><P
12070 ><TT
12071 CLASS="CONSTANT"
12072 >Bad Password</TT
12073 > - Means user logins 
12074                         with an invalid password are treated as a guest login and mapped 
12075                         into the <A
12076 HREF="#GUESTACCOUNT"
12077 >guest account</A
12078 >. Note that 
12079                         this can cause problems as it means that any user incorrectly typing 
12080                         their password will be silently logged on as "guest" - and 
12081                         will not know the reason they cannot access files they think
12082                         they should - there will have been no message given to them
12083                         that they got their password wrong. Helpdesk services will
12084                         <SPAN
12085 CLASS="emphasis"
12086 ><I
12087 CLASS="EMPHASIS"
12088 >hate</I
12089 ></SPAN
12090 > you if you set the <TT
12091 CLASS="PARAMETER"
12092 ><I
12093 >map to 
12094                         guest</I
12095 ></TT
12096 > parameter this way :-).</P
12097 ></LI
12098 ></UL
12099 ><P
12100 >Note that this parameter is needed to set up "Guest" 
12101                 share services when using <TT
12102 CLASS="PARAMETER"
12103 ><I
12104 >security</I
12105 ></TT
12106 > modes other than 
12107                 share. This is because in these modes the name of the resource being
12108                 requested is <SPAN
12109 CLASS="emphasis"
12110 ><I
12111 CLASS="EMPHASIS"
12112 >not</I
12113 ></SPAN
12114 > sent to the server until after 
12115                 the server has successfully authenticated the client so the server 
12116                 cannot make authentication decisions at the correct time (connection 
12117                 to the share) for "Guest" shares.</P
12118 ><P
12119 >For people familiar with the older Samba releases, this 
12120                 parameter maps to the old compile-time setting of the <TT
12121 CLASS="CONSTANT"
12122 >               GUEST_SESSSETUP</TT
12123 > value in local.h.</P
12124 ><P
12125 >Default: <B
12126 CLASS="COMMAND"
12127 >map to guest = Never</B
12128 ></P
12129 ><P
12130 >Example: <B
12131 CLASS="COMMAND"
12132 >map to guest = Bad User</B
12133 ></P
12134 ></DD
12135 ><DT
12136 ><A
12137 NAME="MAXCONNECTIONS"
12138 ></A
12139 >&#62;max connections (S)</DT
12140 ><DD
12141 ><P
12142 >This option allows the number of simultaneous 
12143                 connections to a service to be limited. If <TT
12144 CLASS="PARAMETER"
12145 ><I
12146 >max connections
12147                 </I
12148 ></TT
12149 > is greater than 0 then connections will be refused if 
12150                 this number of connections to the service are already open. A value 
12151                 of zero mean an unlimited number of connections may be made.</P
12152 ><P
12153 >Record lock files are used to implement this feature. The 
12154                 lock files will be stored in the directory specified by the <A
12155 HREF="#LOCKDIRECTORY"
12156 ><TT
12157 CLASS="PARAMETER"
12158 ><I
12159 >lock directory</I
12160 ></TT
12161 ></A
12162
12163                 option.</P
12164 ><P
12165 >Default: <B
12166 CLASS="COMMAND"
12167 >max connections = 0</B
12168 ></P
12169 ><P
12170 >Example: <B
12171 CLASS="COMMAND"
12172 >max connections = 10</B
12173 ></P
12174 ></DD
12175 ><DT
12176 ><A
12177 NAME="MAXDISKSIZE"
12178 ></A
12179 >&#62;max disk size (G)</DT
12180 ><DD
12181 ><P
12182 >This option allows you to put an upper limit 
12183                 on the apparent size of disks. If you set this option to 100 
12184                 then all shares will appear to be not larger than 100 MB in 
12185                 size.</P
12186 ><P
12187 >Note that this option does not limit the amount of 
12188                 data you can put on the disk. In the above case you could still 
12189                 store much more than 100 MB on the disk, but if a client ever asks 
12190                 for the amount of free disk space or the total disk size then the 
12191                 result will be bounded by the amount specified in <TT
12192 CLASS="PARAMETER"
12193 ><I
12194 >max 
12195                 disk size</I
12196 ></TT
12197 >.</P
12198 ><P
12199 >This option is primarily useful to work around bugs 
12200                 in some pieces of software that can't handle very large disks, 
12201                 particularly disks over 1GB in size.</P
12202 ><P
12203 >A <TT
12204 CLASS="PARAMETER"
12205 ><I
12206 >max disk size</I
12207 ></TT
12208 > of 0 means no limit.</P
12209 ><P
12210 >Default: <B
12211 CLASS="COMMAND"
12212 >max disk size = 0</B
12213 ></P
12214 ><P
12215 >Example: <B
12216 CLASS="COMMAND"
12217 >max disk size = 1000</B
12218 ></P
12219 ></DD
12220 ><DT
12221 ><A
12222 NAME="MAXLOGSIZE"
12223 ></A
12224 >&#62;max log size (G)</DT
12225 ><DD
12226 ><P
12227 >This option (an integer in kilobytes) specifies 
12228                 the max size the log file should grow to. Samba periodically checks 
12229                 the size and if it is exceeded it will rename the file, adding 
12230                 a <TT
12231 CLASS="FILENAME"
12232 >.old</TT
12233 > extension.</P
12234 ><P
12235 >A size of 0 means no limit.</P
12236 ><P
12237 >Default: <B
12238 CLASS="COMMAND"
12239 >max log size = 5000</B
12240 ></P
12241 ><P
12242 >Example: <B
12243 CLASS="COMMAND"
12244 >max log size = 1000</B
12245 ></P
12246 ></DD
12247 ><DT
12248 ><A
12249 NAME="MAXMUX"
12250 ></A
12251 >&#62;max mux (G)</DT
12252 ><DD
12253 ><P
12254 >This option controls the maximum number of 
12255                 outstanding simultaneous SMB operations that Samba tells the client 
12256                 it will allow. You should never need to set this parameter.</P
12257 ><P
12258 >Default: <B
12259 CLASS="COMMAND"
12260 >max mux = 50</B
12261 ></P
12262 ></DD
12263 ><DT
12264 ><A
12265 NAME="MAXOPENFILES"
12266 ></A
12267 >&#62;max open files (G)</DT
12268 ><DD
12269 ><P
12270 >This parameter limits the maximum number of 
12271                 open files that one <SPAN
12272 CLASS="CITEREFENTRY"
12273 ><SPAN
12274 CLASS="REFENTRYTITLE"
12275 >smbd</SPAN
12276 >(8)</SPAN
12277 > file 
12278                 serving process may have open for a client at any one time. The 
12279                 default for this parameter is set very high (10,000) as Samba uses 
12280                 only one bit per unopened file.</P
12281 ><P
12282 >The limit of the number of open files is usually set 
12283                 by the UNIX per-process file descriptor limit rather than 
12284                 this parameter so you should never need to touch this parameter.</P
12285 ><P
12286 >Default: <B
12287 CLASS="COMMAND"
12288 >max open files = 10000</B
12289 ></P
12290 ></DD
12291 ><DT
12292 ><A
12293 NAME="MAXPRINTJOBS"
12294 ></A
12295 >&#62;max print jobs (S)</DT
12296 ><DD
12297 ><P
12298 >This parameter limits the maximum number of 
12299                 jobs allowable in a Samba printer queue at any given moment.
12300                 If this number is exceeded, <SPAN
12301 CLASS="CITEREFENTRY"
12302 ><SPAN
12303 CLASS="REFENTRYTITLE"
12304 >smbd</SPAN
12305 >(8)</SPAN
12306 > will remote "Out of Space" to the client.
12307                 See all <A
12308 HREF="#TOTALPRINTJOBS"
12309 ><TT
12310 CLASS="PARAMETER"
12311 ><I
12312 >total
12313                 print jobs</I
12314 ></TT
12315 ></A
12316 >.
12317                 </P
12318 ><P
12319 >Default: <B
12320 CLASS="COMMAND"
12321 >max print jobs = 1000</B
12322 ></P
12323 ><P
12324 >Example: <B
12325 CLASS="COMMAND"
12326 >max print jobs = 5000</B
12327 ></P
12328 ></DD
12329 ><DT
12330 ><A
12331 NAME="MAXPROTOCOL"
12332 ></A
12333 >&#62;max protocol (G)</DT
12334 ><DD
12335 ><P
12336 >The value of the parameter (a string) is the highest 
12337                 protocol level that will be supported by the server.</P
12338 ><P
12339 >Possible values are :</P
12340 ><P
12341 ></P
12342 ><UL
12343 ><LI
12344 ><P
12345 ><TT
12346 CLASS="CONSTANT"
12347 >CORE</TT
12348 >: Earliest version. No 
12349                         concept of user names.</P
12350 ></LI
12351 ><LI
12352 ><P
12353 ><TT
12354 CLASS="CONSTANT"
12355 >COREPLUS</TT
12356 >: Slight improvements on 
12357                         CORE for efficiency.</P
12358 ></LI
12359 ><LI
12360 ><P
12361 ><TT
12362 CLASS="CONSTANT"
12363 >LANMAN1</TT
12364 >: First <SPAN
12365 CLASS="emphasis"
12366 ><I
12367 CLASS="EMPHASIS"
12368 >                       modern</I
12369 ></SPAN
12370 > version of the protocol. Long filename
12371                         support.</P
12372 ></LI
12373 ><LI
12374 ><P
12375 ><TT
12376 CLASS="CONSTANT"
12377 >LANMAN2</TT
12378 >: Updates to Lanman1 protocol.
12379                         </P
12380 ></LI
12381 ><LI
12382 ><P
12383 ><TT
12384 CLASS="CONSTANT"
12385 >NT1</TT
12386 >: Current up to date version of 
12387                         the protocol. Used by Windows NT. Known as CIFS.</P
12388 ></LI
12389 ></UL
12390 ><P
12391 >Normally this option should not be set as the automatic 
12392                 negotiation phase in the SMB protocol takes care of choosing 
12393                 the appropriate protocol.</P
12394 ><P
12395 >See also <A
12396 HREF="#MINPROTOCOL"
12397 ><TT
12398 CLASS="PARAMETER"
12399 ><I
12400 >min
12401                 protocol</I
12402 ></TT
12403 ></A
12404 ></P
12405 ><P
12406 >Default: <B
12407 CLASS="COMMAND"
12408 >max protocol = NT1</B
12409 ></P
12410 ><P
12411 >Example: <B
12412 CLASS="COMMAND"
12413 >max protocol = LANMAN1</B
12414 ></P
12415 ></DD
12416 ><DT
12417 ><A
12418 NAME="MAXSMBDPROCESSES"
12419 ></A
12420 >&#62;max smbd processes (G)</DT
12421 ><DD
12422 ><P
12423 >This parameter limits the maximum number of 
12424                 <A
12425 HREF="smbd.8.html"
12426 TARGET="_top"
12427 ><B
12428 CLASS="COMMAND"
12429 >smbd(8)</B
12430 ></A
12431 >
12432                 processes concurrently running on a system and is intended
12433                 as a stopgap to prevent degrading service to clients in the event
12434                 that the server has insufficient resources to handle more than this
12435                 number of connections.  Remember that under normal operating
12436                 conditions, each user will have an <SPAN
12437 CLASS="CITEREFENTRY"
12438 ><SPAN
12439 CLASS="REFENTRYTITLE"
12440 >smbd</SPAN
12441 >(8)</SPAN
12442 > associated with him or her
12443                 to handle connections to all shares from a given host.
12444                 </P
12445 ><P
12446 >Default: <B
12447 CLASS="COMMAND"
12448 >max smbd processes = 0</B
12449 >   ## no limit</P
12450 ><P
12451 >Example: <B
12452 CLASS="COMMAND"
12453 >max smbd processes = 1000</B
12454 ></P
12455 ></DD
12456 ><DT
12457 ><A
12458 NAME="MAXTTL"
12459 ></A
12460 >&#62;max ttl (G)</DT
12461 ><DD
12462 ><P
12463 >This option tells <SPAN
12464 CLASS="CITEREFENTRY"
12465 ><SPAN
12466 CLASS="REFENTRYTITLE"
12467 >nmbd</SPAN
12468 >(8)</SPAN
12469 >
12470                 what the default 'time to live' of NetBIOS names should be (in seconds) 
12471                 when <B
12472 CLASS="COMMAND"
12473 >nmbd</B
12474 > is requesting a name using either a
12475                 broadcast packet or from a WINS server. You should never need to
12476                 change this parameter. The default is 3 days.</P
12477 ><P
12478 >Default: <B
12479 CLASS="COMMAND"
12480 >max ttl = 259200</B
12481 ></P
12482 ></DD
12483 ><DT
12484 ><A
12485 NAME="MAXWINSTTL"
12486 ></A
12487 >&#62;max wins ttl (G)</DT
12488 ><DD
12489 ><P
12490 >This option tells <SPAN
12491 CLASS="CITEREFENTRY"
12492 ><SPAN
12493 CLASS="REFENTRYTITLE"
12494 >smbd</SPAN
12495 >(8)</SPAN
12496 > when acting as a WINS server (<A
12497 HREF="#WINSSUPPORT"
12498 >               <TT
12499 CLASS="PARAMETER"
12500 ><I
12501 >wins support = yes</I
12502 ></TT
12503 ></A
12504 >) what the maximum
12505                 'time to live' of NetBIOS names that <B
12506 CLASS="COMMAND"
12507 >nmbd</B
12508
12509                 will grant will be (in seconds). You should never need to change this
12510                 parameter.  The default is 6 days (518400 seconds).</P
12511 ><P
12512 >See also the <A
12513 HREF="#MINWINSTTL"
12514 ><TT
12515 CLASS="PARAMETER"
12516 ><I
12517 >min 
12518                 wins ttl</I
12519 ></TT
12520 ></A
12521 > parameter.</P
12522 ><P
12523 >Default: <B
12524 CLASS="COMMAND"
12525 >max wins ttl = 518400</B
12526 ></P
12527 ></DD
12528 ><DT
12529 ><A
12530 NAME="MAXXMIT"
12531 ></A
12532 >&#62;max xmit (G)</DT
12533 ><DD
12534 ><P
12535 >This option controls the maximum packet size 
12536                 that will be negotiated by Samba. The default is 65535, which 
12537                 is the maximum. In some cases you may find you get better performance 
12538                 with a smaller value. A value below 2048 is likely to cause problems.
12539                 </P
12540 ><P
12541 >Default: <B
12542 CLASS="COMMAND"
12543 >max xmit = 65535</B
12544 ></P
12545 ><P
12546 >Example: <B
12547 CLASS="COMMAND"
12548 >max xmit = 8192</B
12549 ></P
12550 ></DD
12551 ><DT
12552 ><A
12553 NAME="MESSAGECOMMAND"
12554 ></A
12555 >&#62;message command (G)</DT
12556 ><DD
12557 ><P
12558 >This specifies what command to run when the 
12559                 server receives a WinPopup style message.</P
12560 ><P
12561 >This would normally be a command that would 
12562                 deliver the message somehow. How this is to be done is 
12563                 up to your imagination.</P
12564 ><P
12565 >An example is:</P
12566 ><P
12567 ><B
12568 CLASS="COMMAND"
12569 >message command = csh -c 'xedit %s;rm %s' &amp;</B
12570 >
12571                 </P
12572 ><P
12573 >This delivers the message using <B
12574 CLASS="COMMAND"
12575 >xedit</B
12576 >, then 
12577                 removes it afterwards. <SPAN
12578 CLASS="emphasis"
12579 ><I
12580 CLASS="EMPHASIS"
12581 >NOTE THAT IT IS VERY IMPORTANT 
12582                 THAT THIS COMMAND RETURN IMMEDIATELY</I
12583 ></SPAN
12584 >. That's why I 
12585                 have the '&amp;' on the end. If it doesn't return immediately then 
12586                 your PCs may freeze when sending messages (they should recover 
12587                 after 30 seconds, hopefully).</P
12588 ><P
12589 >All messages are delivered as the global guest user. 
12590                 The command takes the standard substitutions, although <TT
12591 CLASS="PARAMETER"
12592 ><I
12593 >               %u</I
12594 ></TT
12595 > won't work (<TT
12596 CLASS="PARAMETER"
12597 ><I
12598 >%U</I
12599 ></TT
12600 > may be better 
12601                 in this case).</P
12602 ><P
12603 >Apart from the standard substitutions, some additional 
12604                 ones apply. In particular:</P
12605 ><P
12606 ></P
12607 ><UL
12608 ><LI
12609 ><P
12610 ><TT
12611 CLASS="PARAMETER"
12612 ><I
12613 >%s</I
12614 ></TT
12615 > = the filename containing 
12616                         the message.</P
12617 ></LI
12618 ><LI
12619 ><P
12620 ><TT
12621 CLASS="PARAMETER"
12622 ><I
12623 >%t</I
12624 ></TT
12625 > = the destination that 
12626                         the message was sent to (probably the server name).</P
12627 ></LI
12628 ><LI
12629 ><P
12630 ><TT
12631 CLASS="PARAMETER"
12632 ><I
12633 >%f</I
12634 ></TT
12635 > = who the message 
12636                         is from.</P
12637 ></LI
12638 ></UL
12639 ><P
12640 >You could make this command send mail, or whatever else 
12641                 takes your fancy. Please let us know of any really interesting 
12642                 ideas you have.</P
12643 ><P
12644 >Here's a way of sending the messages as mail to root:</P
12645 ><P
12646 ><B
12647 CLASS="COMMAND"
12648 >message command = /bin/mail -s 'message from %f on 
12649                 %m' root &lt; %s; rm %s</B
12650 ></P
12651 ><P
12652 >If you don't have a message command then the message 
12653                 won't be delivered and Samba will tell the sender there was 
12654                 an error. Unfortunately WfWg totally ignores the error code 
12655                 and carries on regardless, saying that the message was delivered.
12656                 </P
12657 ><P
12658 >If you want to silently delete it then try:</P
12659 ><P
12660 ><B
12661 CLASS="COMMAND"
12662 >message command = rm %s</B
12663 ></P
12664 ><P
12665 >Default: <SPAN
12666 CLASS="emphasis"
12667 ><I
12668 CLASS="EMPHASIS"
12669 >no message command</I
12670 ></SPAN
12671 ></P
12672 ><P
12673 >Example: <B
12674 CLASS="COMMAND"
12675 >message command = csh -c 'xedit %s;
12676                 rm %s' &amp;</B
12677 ></P
12678 ></DD
12679 ><DT
12680 ><A
12681 NAME="MINPASSWDLENGTH"
12682 ></A
12683 >&#62;min passwd length (G)</DT
12684 ><DD
12685 ><P
12686 >Synonym for <A
12687 HREF="#MINPASSWORDLENGTH"
12688 >               <TT
12689 CLASS="PARAMETER"
12690 ><I
12691 >min password length</I
12692 ></TT
12693 ></A
12694 >.</P
12695 ></DD
12696 ><DT
12697 ><A
12698 NAME="MINPASSWORDLENGTH"
12699 ></A
12700 >&#62;min password length (G)</DT
12701 ><DD
12702 ><P
12703 >This option sets the minimum length in characters 
12704                 of a plaintext password that <B
12705 CLASS="COMMAND"
12706 >smbd</B
12707 > will accept when performing 
12708                 UNIX password changing.</P
12709 ><P
12710 >See also <A
12711 HREF="#UNIXPASSWORDSYNC"
12712 ><TT
12713 CLASS="PARAMETER"
12714 ><I
12715 >unix 
12716                 password sync</I
12717 ></TT
12718 ></A
12719 >, <A
12720 HREF="#PASSWDPROGRAM"
12721 >               <TT
12722 CLASS="PARAMETER"
12723 ><I
12724 >passwd program</I
12725 ></TT
12726 ></A
12727 > and <A
12728 HREF="#PASSWDCHATDEBUG"
12729 ><TT
12730 CLASS="PARAMETER"
12731 ><I
12732 >passwd chat debug</I
12733 ></TT
12734 >
12735                 </A
12736 >.</P
12737 ><P
12738 >Default: <B
12739 CLASS="COMMAND"
12740 >min password length = 5</B
12741 ></P
12742 ></DD
12743 ><DT
12744 ><A
12745 NAME="MINPRINTSPACE"
12746 ></A
12747 >&#62;min print space (S)</DT
12748 ><DD
12749 ><P
12750 >This sets the minimum amount of free disk 
12751                 space that must be available before a user will be able to spool 
12752                 a print job. It is specified in kilobytes. The default is 0, which 
12753                 means a user can always spool a print job.</P
12754 ><P
12755 >See also the <A
12756 HREF="#PRINTING"
12757 ><TT
12758 CLASS="PARAMETER"
12759 ><I
12760 >printing
12761                 </I
12762 ></TT
12763 ></A
12764 > parameter.</P
12765 ><P
12766 >Default: <B
12767 CLASS="COMMAND"
12768 >min print space = 0</B
12769 ></P
12770 ><P
12771 >Example: <B
12772 CLASS="COMMAND"
12773 >min print space = 2000</B
12774 ></P
12775 ></DD
12776 ><DT
12777 ><A
12778 NAME="MINPROTOCOL"
12779 ></A
12780 >&#62;min protocol (G)</DT
12781 ><DD
12782 ><P
12783 >The value of the parameter (a string) is the 
12784                 lowest SMB protocol dialect than Samba will support.  Please refer
12785                 to the <A
12786 HREF="#MAXPROTOCOL"
12787 ><TT
12788 CLASS="PARAMETER"
12789 ><I
12790 >max protocol</I
12791 ></TT
12792 ></A
12793 >
12794                 parameter for a list of valid protocol names and a brief description
12795                 of each.  You may also wish to refer to the C source code in
12796                 <TT
12797 CLASS="FILENAME"
12798 >source/smbd/negprot.c</TT
12799 > for a listing of known protocol
12800                 dialects supported by clients.</P
12801 ><P
12802 >If you are viewing this parameter as a security measure, you should
12803                 also refer to the <A
12804 HREF="#LANMANAUTH"
12805 ><TT
12806 CLASS="PARAMETER"
12807 ><I
12808 >lanman 
12809                 auth</I
12810 ></TT
12811 ></A
12812 > parameter.  Otherwise, you should never need 
12813                 to change this parameter.</P
12814 ><P
12815 >Default : <B
12816 CLASS="COMMAND"
12817 >min protocol = CORE</B
12818 ></P
12819 ><P
12820 >Example : <B
12821 CLASS="COMMAND"
12822 >min protocol = NT1</B
12823 >  # disable DOS 
12824                 clients</P
12825 ></DD
12826 ><DT
12827 ><A
12828 NAME="MINWINSTTL"
12829 ></A
12830 >&#62;min wins ttl (G)</DT
12831 ><DD
12832 ><P
12833 >This option tells <SPAN
12834 CLASS="CITEREFENTRY"
12835 ><SPAN
12836 CLASS="REFENTRYTITLE"
12837 >nmbd</SPAN
12838 >(8)</SPAN
12839 >
12840                 when acting as a WINS server (<A
12841 HREF="#WINSSUPPORT"
12842 ><TT
12843 CLASS="PARAMETER"
12844 ><I
12845 >               wins support = yes</I
12846 ></TT
12847 ></A
12848 >) what the minimum 'time to live' 
12849                 of NetBIOS names that <B
12850 CLASS="COMMAND"
12851 >nmbd</B
12852 > will grant will be (in 
12853                 seconds). You should never need to change this parameter.  The default 
12854                 is 6 hours (21600 seconds).</P
12855 ><P
12856 >Default: <B
12857 CLASS="COMMAND"
12858 >min wins ttl = 21600</B
12859 ></P
12860 ></DD
12861 ><DT
12862 ><A
12863 NAME="MSDFSPROXY"
12864 ></A
12865 >&#62;msdfs proxy (S)</DT
12866 ><DD
12867 ><P
12868 >This parameter indicates that the share is a
12869                 stand-in for another CIFS share whose location is specified by
12870                 the value of the parameter. When clients attempt to connect to
12871                 this share, they are redirected to the proxied share using
12872                 the SMB-Dfs protocol.</P
12873 ><P
12874 >Only Dfs roots can act as proxy shares. Take a look at the
12875                 <A
12876 HREF="#MSDFSROOT"
12877 ><TT
12878 CLASS="PARAMETER"
12879 ><I
12880 >msdfs root</I
12881 ></TT
12882 ></A
12883 >
12884                 and
12885                 <A
12886 HREF="#HOSTMSDFS"
12887 ><TT
12888 CLASS="PARAMETER"
12889 ><I
12890 >host msdfs</I
12891 ></TT
12892 ></A
12893 >
12894                 options to find out how to set up a Dfs root share.</P
12895 ><P
12896 >Example: <B
12897 CLASS="COMMAND"
12898 >msdfs proxy = \\\\otherserver\\someshare</B
12899 ></P
12900 ></DD
12901 ><DT
12902 ><A
12903 NAME="MSDFSROOT"
12904 ></A
12905 >&#62;msdfs root (S)</DT
12906 ><DD
12907 ><P
12908 >This boolean parameter is only available if 
12909                 Samba is configured  and  compiled with the <B
12910 CLASS="COMMAND"
12911 >               --with-msdfs</B
12912 > option.  If set to <TT
12913 CLASS="CONSTANT"
12914 >yes</TT
12915 >, 
12916                 Samba treats the share as a Dfs root and  allows clients to browse 
12917                 the distributed file system tree rooted at the share directory. 
12918                 Dfs links are specified  in  the share directory by symbolic 
12919                 links of the form <TT
12920 CLASS="FILENAME"
12921 >msdfs:serverA\\shareA,serverB\\shareB</TT
12922 >
12923                 and so on.  For more information on setting up a Dfs tree 
12924                 on Samba,  refer to <A
12925 HREF="msdfs.html"
12926 TARGET="_top"
12927 >"Hosting a Microsoft 
12928                 Distributed File System tree on Samba"</A
12929 > document.</P
12930 ><P
12931 >See also <A
12932 HREF="#HOSTMSDFS"
12933 ><TT
12934 CLASS="PARAMETER"
12935 ><I
12936 >host msdfs
12937                 </I
12938 ></TT
12939 ></A
12940 ></P
12941 ><P
12942 >Default: <B
12943 CLASS="COMMAND"
12944 >msdfs root = no</B
12945 ></P
12946 ></DD
12947 ><DT
12948 ><A
12949 NAME="NAMECACHETIMEOUT"
12950 ></A
12951 >&#62;name cache timeout (G)</DT
12952 ><DD
12953 ><P
12954 >Specifies the number of seconds it takes before 
12955                 entries in samba's hostname resolve cache time out. If 
12956                 the timeout is set to 0. the caching is disabled.
12957                 </P
12958 ><P
12959 >Default: <B
12960 CLASS="COMMAND"
12961 >name cache timeout = 660</B
12962 ></P
12963 ><P
12964 >Example: <B
12965 CLASS="COMMAND"
12966 >name cache timeout = 0</B
12967 ></P
12968 ></DD
12969 ><DT
12970 ><A
12971 NAME="NAMERESOLVEORDER"
12972 ></A
12973 >&#62;name resolve order (G)</DT
12974 ><DD
12975 ><P
12976 >This option is used by the programs in the Samba 
12977                 suite to determine what naming services to use and in what order 
12978                 to resolve host names to IP addresses. The option takes a space 
12979                 separated string of name resolution options.</P
12980 ><P
12981 >The options are :"lmhosts", "host", "wins" and "bcast". They 
12982                 cause names to be resolved as follows :</P
12983 ><P
12984 ></P
12985 ><UL
12986 ><LI
12987 ><P
12988 ><TT
12989 CLASS="CONSTANT"
12990 >lmhosts</TT
12991 > : Lookup an IP 
12992                         address in the Samba lmhosts file. If the line in lmhosts has 
12993                         no name type attached to the NetBIOS name (see the <A
12994 HREF="lmhosts.5.html"
12995 TARGET="_top"
12996 >lmhosts(5)</A
12997 > for details) then
12998                         any name type matches for lookup.</P
12999 ></LI
13000 ><LI
13001 ><P
13002 ><TT
13003 CLASS="CONSTANT"
13004 >host</TT
13005 > : Do a standard host 
13006                         name to IP address resolution, using the system <TT
13007 CLASS="FILENAME"
13008 >/etc/hosts
13009                         </TT
13010 >, NIS, or DNS lookups. This method of name resolution 
13011                         is operating system depended for instance on IRIX or Solaris this 
13012                         may be controlled by the <TT
13013 CLASS="FILENAME"
13014 >/etc/nsswitch.conf</TT
13015
13016                         file.  Note that this method is only used if the NetBIOS name 
13017                         type being queried is the 0x20 (server) name type, otherwise 
13018                         it is ignored.</P
13019 ></LI
13020 ><LI
13021 ><P
13022 ><TT
13023 CLASS="CONSTANT"
13024 >wins</TT
13025 > : Query a name with 
13026                         the IP address listed in the <A
13027 HREF="#WINSSERVER"
13028 ><TT
13029 CLASS="PARAMETER"
13030 ><I
13031 >                       wins server</I
13032 ></TT
13033 ></A
13034 > parameter.  If no WINS server has
13035                         been specified this method will be ignored.</P
13036 ></LI
13037 ><LI
13038 ><P
13039 ><TT
13040 CLASS="CONSTANT"
13041 >bcast</TT
13042 > : Do a broadcast on 
13043                         each of the known local interfaces listed in the <A
13044 HREF="#INTERFACES"
13045 ><TT
13046 CLASS="PARAMETER"
13047 ><I
13048 >interfaces</I
13049 ></TT
13050 ></A
13051
13052                         parameter. This is the least reliable of the name resolution 
13053                         methods as it depends on the target host being on a locally 
13054                         connected subnet.</P
13055 ></LI
13056 ></UL
13057 ><P
13058 >Default: <B
13059 CLASS="COMMAND"
13060 >name resolve order = lmhosts host wins bcast
13061                 </B
13062 ></P
13063 ><P
13064 >Example: <B
13065 CLASS="COMMAND"
13066 >name resolve order = lmhosts bcast host
13067                 </B
13068 ></P
13069 ><P
13070 >This will cause the local lmhosts file to be examined 
13071                 first, followed by a broadcast attempt, followed by a normal 
13072                 system hostname lookup.</P
13073 ></DD
13074 ><DT
13075 ><A
13076 NAME="NETBIOSALIASES"
13077 ></A
13078 >&#62;netbios aliases (G)</DT
13079 ><DD
13080 ><P
13081 >This is a list of NetBIOS names that <A
13082 HREF="nmbd.8.html"
13083 TARGET="_top"
13084 >nmbd(8)</A
13085 > will advertise as additional 
13086                 names by which the Samba server is known. This allows one machine 
13087                 to appear in browse lists under multiple names. If a machine is 
13088                 acting as a browse server or logon server none 
13089                 of these names will be advertised as either browse server or logon 
13090                 servers, only the primary name of the machine will be advertised 
13091                 with these capabilities.</P
13092 ><P
13093 >See also <A
13094 HREF="#NETBIOSNAME"
13095 ><TT
13096 CLASS="PARAMETER"
13097 ><I
13098 >netbios 
13099                 name</I
13100 ></TT
13101 ></A
13102 >.</P
13103 ><P
13104 >Default: <SPAN
13105 CLASS="emphasis"
13106 ><I
13107 CLASS="EMPHASIS"
13108 >empty string (no additional names)</I
13109 ></SPAN
13110 ></P
13111 ><P
13112 >Example: <B
13113 CLASS="COMMAND"
13114 >netbios aliases = TEST TEST1 TEST2</B
13115 ></P
13116 ></DD
13117 ><DT
13118 ><A
13119 NAME="NETBIOSNAME"
13120 ></A
13121 >&#62;netbios name (G)</DT
13122 ><DD
13123 ><P
13124 >This sets the NetBIOS name by which a Samba 
13125                 server is known. By default it is the same as the first component 
13126                 of the host's DNS name. If a machine is a browse server or
13127                 logon server this name (or the first component
13128                 of the hosts DNS name) will be the name that these services are
13129                 advertised under.</P
13130 ><P
13131 >See also <A
13132 HREF="#NETBIOSALIASES"
13133 ><TT
13134 CLASS="PARAMETER"
13135 ><I
13136 >netbios 
13137                 aliases</I
13138 ></TT
13139 ></A
13140 >.</P
13141 ><P
13142 >Default: <SPAN
13143 CLASS="emphasis"
13144 ><I
13145 CLASS="EMPHASIS"
13146 >machine DNS name</I
13147 ></SPAN
13148 ></P
13149 ><P
13150 >Example: <B
13151 CLASS="COMMAND"
13152 >netbios name = MYNAME</B
13153 ></P
13154 ></DD
13155 ><DT
13156 ><A
13157 NAME="NETBIOSSCOPE"
13158 ></A
13159 >&#62;netbios scope (G)</DT
13160 ><DD
13161 ><P
13162 >This sets the NetBIOS scope that Samba will 
13163                 operate under. This should not be set unless every machine 
13164                 on your LAN also sets this value.</P
13165 ></DD
13166 ><DT
13167 ><A
13168 NAME="NISHOMEDIR"
13169 ></A
13170 >&#62;nis homedir (G)</DT
13171 ><DD
13172 ><P
13173 >Get the home share server from a NIS map. For 
13174                 UNIX systems that use an automounter, the user's home directory 
13175                 will often be mounted on a workstation on demand from a remote 
13176                 server. </P
13177 ><P
13178 >When the Samba logon server is not the actual home directory 
13179                 server, but is mounting the home directories via NFS then two 
13180                 network hops would be required to access the users home directory 
13181                 if the logon server told the client to use itself as the SMB server 
13182                 for home directories (one over SMB and one over NFS). This can 
13183                 be very slow.</P
13184 ><P
13185 >This option allows Samba to return the home share as 
13186                 being on a different server to the logon server and as 
13187                 long as a Samba daemon is running on the home directory server, 
13188                 it will be mounted on the Samba client directly from the directory 
13189                 server. When Samba is returning the home share to the client, it 
13190                 will consult the NIS map specified in <A
13191 HREF="#HOMEDIRMAP"
13192 >               <TT
13193 CLASS="PARAMETER"
13194 ><I
13195 >homedir map</I
13196 ></TT
13197 ></A
13198 > and return the server 
13199                 listed there.</P
13200 ><P
13201 >Note that for this option to work there must be a working 
13202                 NIS system and the Samba server with this option must also 
13203                 be a logon server.</P
13204 ><P
13205 >Default: <B
13206 CLASS="COMMAND"
13207 >nis homedir = no</B
13208 ></P
13209 ></DD
13210 ><DT
13211 ><A
13212 NAME="NONUNIXACCOUNTRANGE"
13213 ></A
13214 >&#62;non unix account range (G)</DT
13215 ><DD
13216 ><P
13217 >The non unix account range parameter specifies 
13218                 the range of 'user ids' that are allocated by the various 'non unix 
13219                 account' passdb backends.  These backends allow
13220                 the storage of passwords for users who don't exist in /etc/passwd.  
13221                 This is most often used for machine account creation. 
13222                 This range of ids should have no existing local or NIS users within 
13223                 it as strange conflicts can occur otherwise.</P
13224 ><P
13225 >NOTE: These userids never appear on the system and Samba will never
13226                 'become' these users. They are used only to ensure that the algorithmic 
13227                 RID mapping does not conflict with normal users.
13228                 </P
13229 ><P
13230 >Default: <B
13231 CLASS="COMMAND"
13232 >non unix account range = &lt;empty string&gt;
13233                 </B
13234 ></P
13235 ><P
13236 >Example: <B
13237 CLASS="COMMAND"
13238 >non unix account range = 10000-20000</B
13239 ></P
13240 ></DD
13241 ><DT
13242 ><A
13243 NAME="NTACLSUPPORT"
13244 ></A
13245 >&#62;nt acl support (S)</DT
13246 ><DD
13247 ><P
13248 >This boolean parameter controls whether 
13249                 <A
13250 HREF="smbd.8.html"
13251 TARGET="_top"
13252 >smbd(8)</A
13253 > will attempt to map 
13254                 UNIX permissions into Windows NT access control lists.
13255                 This parameter was formally a global parameter in releases
13256                 prior to 2.2.2.</P
13257 ><P
13258 >Default: <B
13259 CLASS="COMMAND"
13260 >nt acl support = yes</B
13261 ></P
13262 ></DD
13263 ><DT
13264 ><A
13265 NAME="NTPIPESUPPORT"
13266 ></A
13267 >&#62;nt pipe support (G)</DT
13268 ><DD
13269 ><P
13270 >This boolean parameter controls whether 
13271                 <SPAN
13272 CLASS="CITEREFENTRY"
13273 ><SPAN
13274 CLASS="REFENTRYTITLE"
13275 >smbd</SPAN
13276 >(8)</SPAN
13277 > will allow Windows NT 
13278                 clients to connect to the NT SMB specific <TT
13279 CLASS="CONSTANT"
13280 >IPC$</TT
13281
13282                 pipes. This is a developer debugging option and can be left
13283                 alone.</P
13284 ><P
13285 >Default: <B
13286 CLASS="COMMAND"
13287 >nt pipe support = yes</B
13288 ></P
13289 ></DD
13290 ><DT
13291 ><A
13292 NAME="NTSTATUSSUPPORT"
13293 ></A
13294 >&#62;nt status support (G)</DT
13295 ><DD
13296 ><P
13297 >This boolean parameter controls whether <A
13298 HREF="smbd.8.html"
13299 TARGET="_top"
13300 >smbd(8)</A
13301 > will negotiate NT specific status
13302                 support with Windows NT/2k/XP clients. This is a developer
13303                 debugging option and should be left alone.
13304                 If this option is set to <TT
13305 CLASS="CONSTANT"
13306 >no</TT
13307 > then Samba offers
13308                 exactly the same DOS error codes that versions prior to Samba 2.2.3
13309                 reported.</P
13310 ><P
13311 >You should not need to ever disable this parameter.</P
13312 ><P
13313 >Default: <B
13314 CLASS="COMMAND"
13315 >nt status support = yes</B
13316 ></P
13317 ></DD
13318 ><DT
13319 ><A
13320 NAME="NULLPASSWORDS"
13321 ></A
13322 >&#62;null passwords (G)</DT
13323 ><DD
13324 ><P
13325 >Allow or disallow client access to accounts 
13326                 that have null passwords. </P
13327 ><P
13328 >See also <SPAN
13329 CLASS="CITEREFENTRY"
13330 ><SPAN
13331 CLASS="REFENTRYTITLE"
13332 >smbpasswd</SPAN
13333 >(5)</SPAN
13334 >.</P
13335 ><P
13336 >Default: <B
13337 CLASS="COMMAND"
13338 >null passwords = no</B
13339 ></P
13340 ></DD
13341 ><DT
13342 ><A
13343 NAME="OBEYPAMRESTRICTIONS"
13344 ></A
13345 >&#62;obey pam restrictions (G)</DT
13346 ><DD
13347 ><P
13348 >When Samba 2.2 is configured to enable PAM support
13349                 (i.e. --with-pam), this parameter will control whether or not Samba
13350                 should obey PAM's account and session management directives.  The 
13351                 default behavior is to use PAM for clear text authentication only
13352                 and to ignore any account or session management.  Note that Samba
13353                 always ignores PAM for authentication in the case of <A
13354 HREF="#ENCRYPTPASSWORDS"
13355 ><TT
13356 CLASS="PARAMETER"
13357 ><I
13358 >encrypt passwords = yes</I
13359 ></TT
13360 >
13361                 </A
13362 >.  The reason is that PAM modules cannot support the challenge/response
13363                 authentication mechanism needed in the presence of SMB password encryption.
13364                 </P
13365 ><P
13366 >Default: <B
13367 CLASS="COMMAND"
13368 >obey pam restrictions = no</B
13369 ></P
13370 ></DD
13371 ><DT
13372 ><A
13373 NAME="ONLYUSER"
13374 ></A
13375 >&#62;only user (S)</DT
13376 ><DD
13377 ><P
13378 >This is a boolean option that controls whether 
13379                 connections with usernames not in the <TT
13380 CLASS="PARAMETER"
13381 ><I
13382 >user</I
13383 ></TT
13384
13385                 list will be allowed. By default this option is disabled so that a 
13386                 client can supply a username to be used by the server.  Enabling
13387                 this parameter will force the server to only use the login 
13388                 names from the <TT
13389 CLASS="PARAMETER"
13390 ><I
13391 >user</I
13392 ></TT
13393 > list and is only really
13394                 useful in <A
13395 HREF="#SECURITYEQUALSSHARE"
13396 >share level</A
13397 >
13398                 security.</P
13399 ><P
13400 >Note that this also means Samba won't try to deduce 
13401                 usernames from the service name. This can be annoying for 
13402                 the [homes] section. To get around this you could use <B
13403 CLASS="COMMAND"
13404 >user =
13405                 %S</B
13406 > which means your <TT
13407 CLASS="PARAMETER"
13408 ><I
13409 >user</I
13410 ></TT
13411 > list
13412                 will be just the service name, which for home directories is the 
13413                 name of the user.</P
13414 ><P
13415 >See also the <A
13416 HREF="#USER"
13417 ><TT
13418 CLASS="PARAMETER"
13419 ><I
13420 >user</I
13421 ></TT
13422 >
13423                 </A
13424 > parameter.</P
13425 ><P
13426 >Default: <B
13427 CLASS="COMMAND"
13428 >only user = no</B
13429 ></P
13430 ></DD
13431 ><DT
13432 ><A
13433 NAME="ONLYGUEST"
13434 ></A
13435 >&#62;only guest (S)</DT
13436 ><DD
13437 ><P
13438 >A synonym for <A
13439 HREF="#GUESTONLY"
13440 ><TT
13441 CLASS="PARAMETER"
13442 ><I
13443 >               guest only</I
13444 ></TT
13445 ></A
13446 >.</P
13447 ></DD
13448 ><DT
13449 ><A
13450 NAME="OPLOCKBREAKWAITTIME"
13451 ></A
13452 >&#62;oplock break wait time (G)</DT
13453 ><DD
13454 ><P
13455 >This is a tuning parameter added due to bugs in 
13456                 both Windows 9x and WinNT. If Samba responds to a client too 
13457                 quickly when that client issues an SMB that can cause an oplock 
13458                 break request, then the network client can fail and not respond 
13459                 to the break request. This tuning parameter (which is set in milliseconds) 
13460                 is the amount of time Samba will wait before sending an oplock break 
13461                 request to such (broken) clients.</P
13462 ><P
13463 ><SPAN
13464 CLASS="emphasis"
13465 ><I
13466 CLASS="EMPHASIS"
13467 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
13468                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</I
13469 ></SPAN
13470 >.</P
13471 ><P
13472 >Default: <B
13473 CLASS="COMMAND"
13474 >oplock break wait time = 0</B
13475 ></P
13476 ></DD
13477 ><DT
13478 ><A
13479 NAME="OPLOCKCONTENTIONLIMIT"
13480 ></A
13481 >&#62;oplock contention limit (S)</DT
13482 ><DD
13483 ><P
13484 >This is a <SPAN
13485 CLASS="emphasis"
13486 ><I
13487 CLASS="EMPHASIS"
13488 >very</I
13489 ></SPAN
13490 > advanced 
13491                 <A
13492 HREF="smbd.8.html"
13493 TARGET="_top"
13494 >smbd(8)</A
13495 > tuning option to 
13496                 improve the efficiency of the granting of oplocks under multiple 
13497                 client contention for the same file.</P
13498 ><P
13499 >In brief it specifies a number, which causes <SPAN
13500 CLASS="CITEREFENTRY"
13501 ><SPAN
13502 CLASS="REFENTRYTITLE"
13503 >smbd</SPAN
13504 >(8)</SPAN
13505 >not to grant an oplock even when requested 
13506                 if the approximate number of clients contending for an oplock on the same file goes over this 
13507                 limit. This causes <B
13508 CLASS="COMMAND"
13509 >smbd</B
13510 > to behave in a similar 
13511                 way to Windows NT.</P
13512 ><P
13513 ><SPAN
13514 CLASS="emphasis"
13515 ><I
13516 CLASS="EMPHASIS"
13517 >DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ 
13518                 AND UNDERSTOOD THE SAMBA OPLOCK CODE</I
13519 ></SPAN
13520 >.</P
13521 ><P
13522 >Default: <B
13523 CLASS="COMMAND"
13524 >oplock contention limit = 2</B
13525 ></P
13526 ></DD
13527 ><DT
13528 ><A
13529 NAME="OPLOCKS"
13530 ></A
13531 >&#62;oplocks (S)</DT
13532 ><DD
13533 ><P
13534 >This boolean option tells <B
13535 CLASS="COMMAND"
13536 >smbd</B
13537 > whether to 
13538                 issue oplocks (opportunistic locks) to file open requests on this 
13539                 share. The oplock code can dramatically (approx. 30% or more) improve 
13540                 the speed of access to files on Samba servers. It allows the clients 
13541                 to aggressively cache files locally and you may want to disable this 
13542                 option for unreliable network environments (it is turned on by 
13543                 default in Windows NT Servers).  For more information see the file 
13544                 <TT
13545 CLASS="FILENAME"
13546 >Speed.txt</TT
13547 > in the Samba <TT
13548 CLASS="FILENAME"
13549 >docs/</TT
13550
13551                 directory.</P
13552 ><P
13553 >Oplocks may be selectively turned off on certain files with a 
13554                 share. See the <A
13555 HREF="#VETOOPLOCKFILES"
13556 ><TT
13557 CLASS="PARAMETER"
13558 ><I
13559 >               veto oplock files</I
13560 ></TT
13561 ></A
13562 > parameter. On some systems 
13563                 oplocks are recognized by the underlying operating system. This 
13564                 allows data synchronization between all access to oplocked files, 
13565                 whether it be via Samba or NFS or a local UNIX process. See the 
13566                 <TT
13567 CLASS="PARAMETER"
13568 ><I
13569 >kernel oplocks</I
13570 ></TT
13571 > parameter for details.</P
13572 ><P
13573 >See also the <A
13574 HREF="#KERNELOPLOCKS"
13575 ><TT
13576 CLASS="PARAMETER"
13577 ><I
13578 >kernel 
13579                 oplocks</I
13580 ></TT
13581 ></A
13582 > and <A
13583 HREF="#LEVEL2OPLOCKS"
13584 ><TT
13585 CLASS="PARAMETER"
13586 ><I
13587 >               level2 oplocks</I
13588 ></TT
13589 ></A
13590 > parameters.</P
13591 ><P
13592 >Default: <B
13593 CLASS="COMMAND"
13594 >oplocks = yes</B
13595 ></P
13596 ></DD
13597 ><DT
13598 ><A
13599 NAME="NTLMAUTH"
13600 ></A
13601 >&#62;ntlm auth (G)</DT
13602 ><DD
13603 ><P
13604 >This parameter determines 
13605                 whether or not <SPAN
13606 CLASS="CITEREFENTRY"
13607 ><SPAN
13608 CLASS="REFENTRYTITLE"
13609 >smbd</SPAN
13610 >(8)</SPAN
13611 > will
13612                 attempt to authenticate users using the NTLM password hash.
13613                 If disabled, only the lanman password hashes will be used. 
13614                 </P
13615 ><P
13616 >Please note that at least this option or <B
13617 CLASS="COMMAND"
13618 >lanman auth</B
13619 > should 
13620                 be enabled in order to be able to log in.
13621                 </P
13622 ><P
13623 >Default : <B
13624 CLASS="COMMAND"
13625 >ntlm auth = yes</B
13626 ></P
13627 ></DD
13628 ><DT
13629 ><A
13630 NAME="OSLEVEL"
13631 ></A
13632 >&#62;os level (G)</DT
13633 ><DD
13634 ><P
13635 >This integer value controls what level Samba 
13636                 advertises itself as for browse elections. The value of this 
13637                 parameter determines whether <SPAN
13638 CLASS="CITEREFENTRY"
13639 ><SPAN
13640 CLASS="REFENTRYTITLE"
13641 >nmbd</SPAN
13642 >(8)</SPAN
13643
13644                 has a chance of becoming a local master browser for the <TT
13645 CLASS="PARAMETER"
13646 ><I
13647 >               WORKGROUP</I
13648 ></TT
13649 > in the local broadcast area.</P
13650 ><P
13651 ><SPAN
13652 CLASS="emphasis"
13653 ><I
13654 CLASS="EMPHASIS"
13655 >Note :</I
13656 ></SPAN
13657 >By default, Samba will win 
13658                 a local master browsing election over all Microsoft operating 
13659                 systems except a Windows NT 4.0/2000 Domain Controller.  This 
13660                 means that a misconfigured Samba host can effectively isolate 
13661                 a subnet for browsing purposes.  See <TT
13662 CLASS="FILENAME"
13663 >BROWSING.txt
13664                 </TT
13665 > in the Samba <TT
13666 CLASS="FILENAME"
13667 >docs/</TT
13668 > directory 
13669                 for details.</P
13670 ><P
13671 >Default: <B
13672 CLASS="COMMAND"
13673 >os level = 20</B
13674 ></P
13675 ><P
13676 >Example: <B
13677 CLASS="COMMAND"
13678 >os level = 65 </B
13679 ></P
13680 ></DD
13681 ><DT
13682 ><A
13683 NAME="OS2DRIVERMAP"
13684 ></A
13685 >&#62;os2 driver map (G)</DT
13686 ><DD
13687 ><P
13688 >The parameter is used to define the absolute
13689                 path to a file containing a mapping of Windows NT printer driver
13690                 names to OS/2 printer driver names.  The format is:</P
13691 ><P
13692 >&lt;nt driver name&gt; = &lt;os2 driver 
13693                 name&gt;.&lt;device name&gt;</P
13694 ><P
13695 >For example, a valid entry using the HP LaserJet 5
13696                 printer driver would appear as <B
13697 CLASS="COMMAND"
13698 >HP LaserJet 5L = LASERJET.HP 
13699                 LaserJet 5L</B
13700 >.</P
13701 ><P
13702 >The need for the file is due to the printer driver namespace 
13703                 problem described in the <A
13704 HREF="printing.html"
13705 TARGET="_top"
13706 >Samba 
13707                 Printing HOWTO</A
13708 >.  For more details on OS/2 clients, please 
13709                 refer to the OS2-Client-HOWTO containing in the Samba documentation.</P
13710 ><P
13711 >Default: <B
13712 CLASS="COMMAND"
13713 >os2 driver map = &lt;empty string&gt;
13714                 </B
13715 ></P
13716 ></DD
13717 ><DT
13718 ><A
13719 NAME="PAMPASSWORDCHANGE"
13720 ></A
13721 >&#62;pam password change (G)</DT
13722 ><DD
13723 ><P
13724 >With the addition of better PAM support in Samba 2.2, 
13725                 this parameter, it is possible to use PAM's password change control 
13726                 flag for Samba.  If enabled, then PAM will be used for password
13727                 changes when requested by an SMB client instead of the program listed in 
13728                 <A
13729 HREF="#PASSWDPROGRAM"
13730 ><TT
13731 CLASS="PARAMETER"
13732 ><I
13733 >passwd program</I
13734 ></TT
13735 ></A
13736 >. 
13737                 It should be possible to enable this without changing your 
13738                 <A
13739 HREF="#PASSWDCHAT"
13740 ><TT
13741 CLASS="PARAMETER"
13742 ><I
13743 >passwd chat</I
13744 ></TT
13745 ></A
13746 >
13747                 parameter for most setups.
13748                 </P
13749 ><P
13750 >Default: <B
13751 CLASS="COMMAND"
13752 >pam password change = no</B
13753 ></P
13754 ></DD
13755 ><DT
13756 ><A
13757 NAME="PANICACTION"
13758 ></A
13759 >&#62;panic action (G)</DT
13760 ><DD
13761 ><P
13762 >This is a Samba developer option that allows a 
13763                 system command to be called when either <SPAN
13764 CLASS="CITEREFENTRY"
13765 ><SPAN
13766 CLASS="REFENTRYTITLE"
13767 >smbd</SPAN
13768 >(8)</SPAN
13769 > or <SPAN
13770 CLASS="CITEREFENTRY"
13771 ><SPAN
13772 CLASS="REFENTRYTITLE"
13773 >smbd</SPAN
13774 >(8)</SPAN
13775 >       crashes. This is usually used to 
13776                 draw attention to the fact that a problem occurred.</P
13777 ><P
13778 >Default: <B
13779 CLASS="COMMAND"
13780 >panic action = &lt;empty string&gt;</B
13781 ></P
13782 ><P
13783 >Example: <B
13784 CLASS="COMMAND"
13785 >panic action = "/bin/sleep 90000"</B
13786 ></P
13787 ></DD
13788 ><DT
13789 ><A
13790 NAME="PARANOIDSERVERSECURITY"
13791 ></A
13792 >&#62;paranoid server security (G)</DT
13793 ><DD
13794 ><P
13795 >Some version of NT 4.x allow non-guest 
13796                 users with a bad passowrd. When this option is enabled, samba will not 
13797                 use a broken NT 4.x server as password server, but instead complain
13798                 to the logs and exit.  
13799                 </P
13800 ><P
13801 >Disabling this option prevents Samba from making
13802                 this check, which involves deliberatly attempting a
13803                 bad logon to the remote server.</P
13804 ><P
13805 >Default: <B
13806 CLASS="COMMAND"
13807 >paranoid server security = yes</B
13808 ></P
13809 ></DD
13810 ><DT
13811 ><A
13812 NAME="PASSDBBACKEND"
13813 ></A
13814 >&#62;passdb backend (G)</DT
13815 ><DD
13816 ><P
13817 >This option allows the administrator to chose which backends to retrieve and store passwords with. This allows (for example) both 
13818                 smbpasswd and tdbsam to be used without a recompile. 
13819                 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.
13820                 Experimental backends must still be selected
13821                 (eg --with-tdbsam) at configure time.
13822                 </P
13823 ><P
13824 >This parameter is in two parts, the backend's name, and a 'location'
13825                 string that has meaning only to that particular backed.  These are separated
13826                 by a : character.</P
13827 ><P
13828 >Available backends can include:
13829                 <P
13830 ></P
13831 ><UL
13832 ><LI
13833 ><P
13834 ><B
13835 CLASS="COMMAND"
13836 >smbpasswd</B
13837 > - The default smbpasswd
13838                         backend.  Takes a path to the smbpasswd file as an optional argument.</P
13839 ></LI
13840 ><LI
13841 ><P
13842 ><B
13843 CLASS="COMMAND"
13844 >smbpasswd_nua</B
13845 > - The smbpasswd
13846                         backend, but with support for 'not unix accounts'.  
13847                         Takes a path to the smbpasswd file as an optional argument.</P
13848 ><P
13849 >See also <A
13850 HREF="#NONUNIXACCOUNTRANGE"
13851 >                        <TT
13852 CLASS="PARAMETER"
13853 ><I
13854 >non unix account range</I
13855 ></TT
13856 ></A
13857 ></P
13858 ></LI
13859 ><LI
13860 ><P
13861 ><B
13862 CLASS="COMMAND"
13863 >tdbsam</B
13864 > - The TDB based password storage
13865                         backend.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
13866                         in the <A
13867 HREF="#PRIVATEDIR"
13868 >                        <TT
13869 CLASS="PARAMETER"
13870 ><I
13871 >private dir</I
13872 ></TT
13873 ></A
13874 > directory.</P
13875 ></LI
13876 ><LI
13877 ><P
13878 ><B
13879 CLASS="COMMAND"
13880 >tdbsam_nua</B
13881 > - The TDB based password storage
13882                         backend, with non unix account support.  Takes a path to the TDB as an optional argument (defaults to passdb.tdb 
13883                         in the <A
13884 HREF="#PRIVATEDIR"
13885 >                        <TT
13886 CLASS="PARAMETER"
13887 ><I
13888 >private dir</I
13889 ></TT
13890 ></A
13891 > directory.</P
13892 ><P
13893 >See also <A
13894 HREF="#NONUNIXACCOUNTRANGE"
13895 >                        <TT
13896 CLASS="PARAMETER"
13897 ><I
13898 >non unix account range</I
13899 ></TT
13900 ></A
13901 ></P
13902 ></LI
13903 ><LI
13904 ><P
13905 ><B
13906 CLASS="COMMAND"
13907 >ldapsam</B
13908 > - The LDAP based passdb 
13909                         backend.  Takes an LDAP URL as an optional argument (defaults to 
13910                         <B
13911 CLASS="COMMAND"
13912 >ldap://localhost</B
13913 >)</P
13914 ></LI
13915 ><LI
13916 ><P
13917 ><B
13918 CLASS="COMMAND"
13919 >ldapsam_nua</B
13920 > - The LDAP based passdb 
13921                         backend, with non unix account support.  Takes an LDAP URL as an optional argument (defaults to 
13922                         <B
13923 CLASS="COMMAND"
13924 >ldap://localhost</B
13925 >)</P
13926 ><P
13927 >Note:  In this module, any account without a matching POSIX account is regarded
13928                         as 'non unix'.  </P
13929 ><P
13930 >See also <A
13931 HREF="#NONUNIXACCOUNTRANGE"
13932 >                        <TT
13933 CLASS="PARAMETER"
13934 ><I
13935 >non unix account
13936                         range</I
13937 ></TT
13938 ></A
13939 ></P
13940 ><P
13941 >LDAP connections should be secured where
13942                         possible.  This may be done using either
13943                         Start-TLS (see <A
13944 HREF="#LDAPSSL"
13945 >                        <TT
13946 CLASS="PARAMETER"
13947 ><I
13948 >ldap ssl</I
13949 ></TT
13950 ></A
13951 >) or by
13952                         specifying <TT
13953 CLASS="PARAMETER"
13954 ><I
13955 >ldaps://</I
13956 ></TT
13957 > in
13958                         the URL argument.  
13959                         </P
13960 ></LI
13961 ><LI
13962 ><P
13963 ><B
13964 CLASS="COMMAND"
13965 >nisplussam</B
13966 > - The NIS+ based passdb backend. Takes name NIS domain as an optional argument. Only works with sun NIS+ servers. </P
13967 ></LI
13968 ><LI
13969 ><P
13970 ><B
13971 CLASS="COMMAND"
13972 >plugin</B
13973 > - Allows Samba to load an 
13974                         arbitary passdb backend from the .so specified as a compulsary argument.
13975                         </P
13976 ><P
13977 >Any characters after the (optional) second : are passed to the plugin
13978                         for its own processing</P
13979 ></LI
13980 ><LI
13981 ><P
13982 ><B
13983 CLASS="COMMAND"
13984 >unixsam</B
13985 > - Allows samba to map all (other) available unix users</P
13986 ><P
13987 >This backend uses the standard unix database for retrieving users. Users included 
13988                         in this pdb are NOT listed in samba user listings and users included in this pdb won't be 
13989                         able to login. The use of this backend is to always be able to display the owner of a file 
13990                         on the samba server - even when the user doesn't have a 'real' samba account in one of the 
13991                         other passdb backends.
13992                         </P
13993 ><P
13994 >This backend should always be the last backend listed, since it contains all users in 
13995                         the unix passdb and might 'override' mappings if specified earlier. It's meant to only return 
13996                         accounts for users that aren't covered by the previous backends.</P
13997 ></LI
13998 ></UL
13999 >
14000                 </P
14001 ><P
14002 >Default: <B
14003 CLASS="COMMAND"
14004 >passdb backend = smbpasswd unixsam</B
14005 ></P
14006 ><P
14007 >Example: <B
14008 CLASS="COMMAND"
14009 >passdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd unixsam</B
14010 ></P
14011 ><P
14012 >Example: <B
14013 CLASS="COMMAND"
14014 >passdb backend = ldapsam_nua:ldaps://ldap.example.com unixsam</B
14015 ></P
14016 ><P
14017 >Example: <B
14018 CLASS="COMMAND"
14019 >passdb backend = plugin:/usr/local/samba/lib/my_passdb.so:my_plugin_args tdbsam:/etc/samba/private/passdb.tdb</B
14020 ></P
14021 ></DD
14022 ><DT
14023 ><A
14024 NAME="PASSWDCHAT"
14025 ></A
14026 >&#62;passwd chat (G)</DT
14027 ><DD
14028 ><P
14029 >This string controls the <SPAN
14030 CLASS="emphasis"
14031 ><I
14032 CLASS="EMPHASIS"
14033 >"chat"</I
14034 ></SPAN
14035
14036                 conversation that takes places between <SPAN
14037 CLASS="CITEREFENTRY"
14038 ><SPAN
14039 CLASS="REFENTRYTITLE"
14040 >smbd</SPAN
14041 >(8)</SPAN
14042 > and the local password changing
14043                 program to change the user's password. The string describes a 
14044                 sequence of response-receive pairs that <SPAN
14045 CLASS="CITEREFENTRY"
14046 ><SPAN
14047 CLASS="REFENTRYTITLE"
14048 >smbd</SPAN
14049 >(8)</SPAN
14050 > uses to determine what to send to the 
14051                 <A
14052 HREF="#PASSWDPROGRAM"
14053 ><TT
14054 CLASS="PARAMETER"
14055 ><I
14056 >passwd program</I
14057 ></TT
14058 >
14059                 </A
14060 > and what to expect back. If the expected output is not 
14061                 received then the password is not changed.</P
14062 ><P
14063 >This chat sequence is often quite site specific, depending 
14064                 on what local methods are used for password control (such as NIS 
14065                 etc).</P
14066 ><P
14067 >Note that this parameter only is only used if the <A
14068 HREF="#UNIXPASSWORDSYNC"
14069 ><TT
14070 CLASS="PARAMETER"
14071 ><I
14072 >unix 
14073                 password sync</I
14074 ></TT
14075 ></A
14076 > parameter is set to <TT
14077 CLASS="CONSTANT"
14078 >yes</TT
14079 >. This 
14080                 sequence is then called <SPAN
14081 CLASS="emphasis"
14082 ><I
14083 CLASS="EMPHASIS"
14084 >AS ROOT</I
14085 ></SPAN
14086 > when the SMB password 
14087                 in the smbpasswd file is being changed, without access to the old 
14088                 password cleartext. This means that root must be able to reset the user's password
14089                 without knowing the text of the previous password. In the presence of NIS/YP, 
14090                 this means that the <A
14091 HREF="#PASSWDPROGRAM"
14092 >passwd program</A
14093 > must be 
14094                 executed on the NIS master.
14095                 </P
14096 ><P
14097 >The string can contain the macro <TT
14098 CLASS="PARAMETER"
14099 ><I
14100 >%n</I
14101 ></TT
14102 > which is substituted 
14103                 for the new password.  The chat sequence can also contain the standard 
14104                 macros <TT
14105 CLASS="CONSTANT"
14106 >\\n</TT
14107 >, <TT
14108 CLASS="CONSTANT"
14109 >\\r</TT
14110 >, <TT
14111 CLASS="CONSTANT"
14112 >               \\t</TT
14113 > and <TT
14114 CLASS="CONSTANT"
14115 >\\s</TT
14116 > to give line-feed, 
14117                 carriage-return, tab and space.  The chat sequence string can also contain 
14118                 a '*' which matches any sequence of characters.
14119                 Double quotes can be used to collect strings with spaces 
14120                 in them into a single string.</P
14121 ><P
14122 >If the send string in any part of the chat sequence 
14123                 is a full stop ".",  then no string is sent. Similarly, 
14124                 if the expect string is a full stop then no string is expected.</P
14125 ><P
14126 >If the <A
14127 HREF="#PAMPASSWORDCHANGE"
14128 ><TT
14129 CLASS="PARAMETER"
14130 ><I
14131 >pam
14132                 password change</I
14133 ></TT
14134 ></A
14135 > parameter is set to <TT
14136 CLASS="CONSTANT"
14137 >yes</TT
14138 >, the chat pairs
14139                 may be matched in any order, and success is determined by the PAM result, 
14140                 not any particular output. The \n macro is ignored for PAM conversions.
14141                 </P
14142 ><P
14143 >See also <A
14144 HREF="#UNIXPASSWORDSYNC"
14145 ><TT
14146 CLASS="PARAMETER"
14147 ><I
14148 >unix password 
14149                 sync</I
14150 ></TT
14151 ></A
14152 >, <A
14153 HREF="#PASSWDPROGRAM"
14154 ><TT
14155 CLASS="PARAMETER"
14156 ><I
14157 >               passwd program</I
14158 ></TT
14159 ></A
14160 > ,<A
14161 HREF="#PASSWDCHATDEBUG"
14162 >               <TT
14163 CLASS="PARAMETER"
14164 ><I
14165 >passwd chat debug</I
14166 ></TT
14167 ></A
14168 > and <A
14169 HREF="#PAMPASSWORDCHANGE"
14170 >               <TT
14171 CLASS="PARAMETER"
14172 ><I
14173 >pam password change</I
14174 ></TT
14175 ></A
14176 >.</P
14177 ><P
14178 >Default: <B
14179 CLASS="COMMAND"
14180 >passwd chat = *new*password* %n\\n 
14181                 *new*password* %n\\n *changed*</B
14182 ></P
14183 ><P
14184 >Example: <B
14185 CLASS="COMMAND"
14186 >passwd chat = "*Enter OLD password*" %o\\n 
14187                 "*Enter NEW password*" %n\\n "*Reenter NEW password*" %n\\n "*Password 
14188                 changed*"</B
14189 ></P
14190 ></DD
14191 ><DT
14192 ><A
14193 NAME="PASSWDCHATDEBUG"
14194 ></A
14195 >&#62;passwd chat debug (G)</DT
14196 ><DD
14197 ><P
14198 >This boolean specifies if the passwd chat script 
14199                 parameter is run in <SPAN
14200 CLASS="emphasis"
14201 ><I
14202 CLASS="EMPHASIS"
14203 >debug</I
14204 ></SPAN
14205 > mode. In this mode the 
14206                 strings passed to and received from the passwd chat are printed 
14207                 in the <SPAN
14208 CLASS="CITEREFENTRY"
14209 ><SPAN
14210 CLASS="REFENTRYTITLE"
14211 >smbd</SPAN
14212 >(8)</SPAN
14213 > log with a 
14214                 <A
14215 HREF="#DEBUGLEVEL"
14216 ><TT
14217 CLASS="PARAMETER"
14218 ><I
14219 >debug level</I
14220 ></TT
14221 ></A
14222
14223                 of 100. This is a dangerous option as it will allow plaintext passwords 
14224                 to be seen in the <B
14225 CLASS="COMMAND"
14226 >smbd</B
14227 > log. It is available to help 
14228                 Samba admins debug their <TT
14229 CLASS="PARAMETER"
14230 ><I
14231 >passwd chat</I
14232 ></TT
14233 > scripts 
14234                 when calling the <TT
14235 CLASS="PARAMETER"
14236 ><I
14237 >passwd program</I
14238 ></TT
14239 > and should 
14240                 be turned off after this has been done. This option has no effect if the 
14241                 <A
14242 HREF="#PAMPASSWORDCHANGE"
14243 ><TT
14244 CLASS="PARAMETER"
14245 ><I
14246 >pam password change</I
14247 ></TT
14248 ></A
14249 >
14250                 paramter is set. This parameter is off by default.</P
14251 ><P
14252 >See also <A
14253 HREF="#PASSWDCHAT"
14254 ><TT
14255 CLASS="PARAMETER"
14256 ><I
14257 >passwd chat</I
14258 ></TT
14259 >
14260                 </A
14261 >, <A
14262 HREF="#PAMPASSWORDCHANGE"
14263 ><TT
14264 CLASS="PARAMETER"
14265 ><I
14266 >pam password change</I
14267 ></TT
14268 >
14269                 </A
14270 >, <A
14271 HREF="#PASSWDPROGRAM"
14272 ><TT
14273 CLASS="PARAMETER"
14274 ><I
14275 >passwd program</I
14276 ></TT
14277 >
14278                 </A
14279 >.</P
14280 ><P
14281 >Default: <B
14282 CLASS="COMMAND"
14283 >passwd chat debug = no</B
14284 ></P
14285 ></DD
14286 ><DT
14287 ><A
14288 NAME="PASSWDPROGRAM"
14289 ></A
14290 >&#62;passwd program (G)</DT
14291 ><DD
14292 ><P
14293 >The name of a program that can be used to set 
14294                 UNIX user passwords.  Any occurrences of <TT
14295 CLASS="PARAMETER"
14296 ><I
14297 >%u</I
14298 ></TT
14299
14300                 will be replaced with the user name. The user name is checked for 
14301                 existence before calling the password changing program.</P
14302 ><P
14303 >Also note that many passwd programs insist in <SPAN
14304 CLASS="emphasis"
14305 ><I
14306 CLASS="EMPHASIS"
14307 >reasonable
14308                 </I
14309 ></SPAN
14310 > passwords, such as a minimum length, or the inclusion 
14311                 of mixed case chars and digits. This can pose a problem as some clients 
14312                 (such as Windows for Workgroups) uppercase the password before sending 
14313                 it.</P
14314 ><P
14315 ><SPAN
14316 CLASS="emphasis"
14317 ><I
14318 CLASS="EMPHASIS"
14319 >Note</I
14320 ></SPAN
14321 > that if the <TT
14322 CLASS="PARAMETER"
14323 ><I
14324 >unix 
14325                 password sync</I
14326 ></TT
14327 > parameter is set to <TT
14328 CLASS="CONSTANT"
14329 >yes
14330                 </TT
14331 > then this program is called <SPAN
14332 CLASS="emphasis"
14333 ><I
14334 CLASS="EMPHASIS"
14335 >AS ROOT</I
14336 ></SPAN
14337
14338                 before the SMB password in the <A
14339 HREF="smbpasswd.5.html"
14340 TARGET="_top"
14341 >smbpasswd(5)
14342                 </A
14343 > file is changed. If this UNIX password change fails, then 
14344                 <B
14345 CLASS="COMMAND"
14346 >smbd</B
14347 > will fail to change the SMB password also 
14348                 (this is by design).</P
14349 ><P
14350 >If the <TT
14351 CLASS="PARAMETER"
14352 ><I
14353 >unix password sync</I
14354 ></TT
14355 > parameter 
14356                 is set this parameter <SPAN
14357 CLASS="emphasis"
14358 ><I
14359 CLASS="EMPHASIS"
14360 >MUST USE ABSOLUTE PATHS</I
14361 ></SPAN
14362
14363                 for <SPAN
14364 CLASS="emphasis"
14365 ><I
14366 CLASS="EMPHASIS"
14367 >ALL</I
14368 ></SPAN
14369 > programs called, and must be examined 
14370                 for security implications. Note that by default <TT
14371 CLASS="PARAMETER"
14372 ><I
14373 >unix 
14374                 password sync</I
14375 ></TT
14376 > is set to <TT
14377 CLASS="CONSTANT"
14378 >no</TT
14379 >.</P
14380 ><P
14381 >See also <A
14382 HREF="#UNIXPASSWORDSYNC"
14383 ><TT
14384 CLASS="PARAMETER"
14385 ><I
14386 >unix 
14387                 password sync</I
14388 ></TT
14389 ></A
14390 >.</P
14391 ><P
14392 >Default: <B
14393 CLASS="COMMAND"
14394 >passwd program = /bin/passwd</B
14395 ></P
14396 ><P
14397 >Example: <B
14398 CLASS="COMMAND"
14399 >passwd program = /sbin/npasswd %u</B
14400 >
14401                 </P
14402 ></DD
14403 ><DT
14404 ><A
14405 NAME="PASSWORDLEVEL"
14406 ></A
14407 >&#62;password level (G)</DT
14408 ><DD
14409 ><P
14410 >Some client/server combinations have difficulty 
14411                 with mixed-case passwords.  One offending client is Windows for 
14412                 Workgroups, which for some reason forces passwords to upper 
14413                 case when using the LANMAN1 protocol, but leaves them alone when 
14414                 using COREPLUS!  Another problem child is the Windows 95/98
14415                 family of operating systems.  These clients upper case clear
14416                 text passwords even when NT LM 0.12 selected by the protocol
14417                 negotiation request/response.</P
14418 ><P
14419 >This parameter defines the maximum number of characters 
14420                 that may be upper case in passwords.</P
14421 ><P
14422 >For example, say the password given was "FRED". If <TT
14423 CLASS="PARAMETER"
14424 ><I
14425 >               password level</I
14426 ></TT
14427 > is set to 1, the following combinations 
14428                 would be tried if "FRED" failed:</P
14429 ><P
14430 >"Fred", "fred", "fRed", "frEd","freD"</P
14431 ><P
14432 >If <TT
14433 CLASS="PARAMETER"
14434 ><I
14435 >password level</I
14436 ></TT
14437 > was set to 2, 
14438                 the following combinations would also be tried: </P
14439 ><P
14440 >"FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..</P
14441 ><P
14442 >And so on.</P
14443 ><P
14444 >The higher value this parameter is set to the more likely 
14445                 it is that a mixed case password will be matched against a single 
14446                 case password. However, you should be aware that use of this 
14447                 parameter reduces security and increases the time taken to 
14448                 process a new connection.</P
14449 ><P
14450 >A value of zero will cause only two attempts to be 
14451                 made - the password as is and the password in all-lower case.</P
14452 ><P
14453 >Default: <B
14454 CLASS="COMMAND"
14455 >password level = 0</B
14456 ></P
14457 ><P
14458 >Example: <B
14459 CLASS="COMMAND"
14460 >password level = 4</B
14461 ></P
14462 ></DD
14463 ><DT
14464 ><A
14465 NAME="PASSWORDSERVER"
14466 ></A
14467 >&#62;password server (G)</DT
14468 ><DD
14469 ><P
14470 >By specifying the name of another SMB server (such 
14471                 as a WinNT box) with this option, and using <B
14472 CLASS="COMMAND"
14473 >security = domain
14474                 </B
14475 > or <B
14476 CLASS="COMMAND"
14477 >security = server</B
14478 > you can get Samba 
14479                 to do all its username/password validation via a remote server.</P
14480 ><P
14481 >This option sets the name of the password server to use. 
14482                 It must be a NetBIOS name, so if the machine's NetBIOS name is 
14483                 different from its Internet name then you may have to add its NetBIOS 
14484                 name to the lmhosts  file which is stored in the same directory 
14485                 as the <TT
14486 CLASS="FILENAME"
14487 >smb.conf</TT
14488 > file.</P
14489 ><P
14490 >The name of the password server is looked up using the 
14491                 parameter <A
14492 HREF="#NAMERESOLVEORDER"
14493 ><TT
14494 CLASS="PARAMETER"
14495 ><I
14496 >name 
14497                 resolve order</I
14498 ></TT
14499 ></A
14500 > and so may resolved
14501                 by any method and order described in that parameter.</P
14502 ><P
14503 >The password server much be a machine capable of using 
14504                 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in 
14505                 user level security mode.</P
14506 ><P
14507 ><SPAN
14508 CLASS="emphasis"
14509 ><I
14510 CLASS="EMPHASIS"
14511 >NOTE:</I
14512 ></SPAN
14513 > Using a password server 
14514                 means your UNIX box (running Samba) is only as secure as your 
14515                 password server. <SPAN
14516 CLASS="emphasis"
14517 ><I
14518 CLASS="EMPHASIS"
14519 >DO NOT CHOOSE A PASSWORD SERVER THAT 
14520                 YOU DON'T COMPLETELY TRUST</I
14521 ></SPAN
14522 >.</P
14523 ><P
14524 >Never point a Samba server at itself for password 
14525                 serving. This will cause a loop and could lock up your Samba 
14526                 server!</P
14527 ><P
14528 >The name of the password server takes the standard 
14529                 substitutions, but probably the only useful one is <TT
14530 CLASS="PARAMETER"
14531 ><I
14532 >%m
14533                 </I
14534 ></TT
14535 >, which means the Samba server will use the incoming 
14536                 client as the password server. If you use this then you better 
14537                 trust your clients, and you had better restrict them with hosts allow!</P
14538 ><P
14539 >If the <TT
14540 CLASS="PARAMETER"
14541 ><I
14542 >security</I
14543 ></TT
14544 > parameter is set to
14545                 <TT
14546 CLASS="CONSTANT"
14547 >domain</TT
14548 >, then the list of machines in this 
14549                 option must be a list of Primary or Backup Domain controllers for the
14550                 Domain or the character '*', as the Samba server is effectively
14551                 in that domain, and will use cryptographically authenticated RPC calls
14552                 to authenticate the user logging on. The advantage of using <B
14553 CLASS="COMMAND"
14554 >               security = domain</B
14555 > is that if you list several hosts in the 
14556                 <TT
14557 CLASS="PARAMETER"
14558 ><I
14559 >password server</I
14560 ></TT
14561 > option then <B
14562 CLASS="COMMAND"
14563 >smbd
14564                 </B
14565 > will try each in turn till it finds one that responds. This 
14566                 is useful in case your primary server goes down.</P
14567 ><P
14568 >If the <TT
14569 CLASS="PARAMETER"
14570 ><I
14571 >password server</I
14572 ></TT
14573 > option is set 
14574                 to the character '*', then Samba will attempt to auto-locate the 
14575                 Primary or Backup Domain controllers to authenticate against by 
14576                 doing a query for the name <TT
14577 CLASS="CONSTANT"
14578 >WORKGROUP&lt;1C&gt;</TT
14579
14580                 and then contacting each server returned in the list of IP 
14581                 addresses from the name resolution source. </P
14582 ><P
14583 >If the list of servers contains both names and the '*'
14584                 character, the list is treated as a list of preferred 
14585                 domain controllers, but an auto lookup of all remaining DC's
14586                 will be added to the list as well.  Samba will not attempt to optimize 
14587                 this list by locating the closest DC.</P
14588 ><P
14589 >If the <TT
14590 CLASS="PARAMETER"
14591 ><I
14592 >security</I
14593 ></TT
14594 > parameter is 
14595                 set to <TT
14596 CLASS="CONSTANT"
14597 >server</TT
14598 >, then there are different
14599                 restrictions that <B
14600 CLASS="COMMAND"
14601 >security = domain</B
14602 > doesn't 
14603                 suffer from:</P
14604 ><P
14605 ></P
14606 ><UL
14607 ><LI
14608 ><P
14609 >You may list several password servers in 
14610                         the <TT
14611 CLASS="PARAMETER"
14612 ><I
14613 >password server</I
14614 ></TT
14615 > parameter, however if an 
14616                         <B
14617 CLASS="COMMAND"
14618 >smbd</B
14619 > makes a connection to a password server, 
14620                         and then the password server fails, no more users will be able 
14621                         to be authenticated from this <B
14622 CLASS="COMMAND"
14623 >smbd</B
14624 >.  This is a 
14625                         restriction of the SMB/CIFS protocol when in <B
14626 CLASS="COMMAND"
14627 >security = server
14628                         </B
14629 > mode and cannot be fixed in Samba.</P
14630 ></LI
14631 ><LI
14632 ><P
14633 >If you are using a Windows NT server as your 
14634                         password server then you will have to ensure that your users 
14635                         are able to login from the Samba server, as when in <B
14636 CLASS="COMMAND"
14637 >                       security = server</B
14638 >  mode the network logon will appear to 
14639                         come from there rather than from the users workstation.</P
14640 ></LI
14641 ></UL
14642 ><P
14643 >See also the <A
14644 HREF="#SECURITY"
14645 ><TT
14646 CLASS="PARAMETER"
14647 ><I
14648 >security
14649                 </I
14650 ></TT
14651 ></A
14652 > parameter.</P
14653 ><P
14654 >Default: <B
14655 CLASS="COMMAND"
14656 >password server = &lt;empty string&gt;</B
14657 >
14658                 </P
14659 ><P
14660 >Example: <B
14661 CLASS="COMMAND"
14662 >password server = NT-PDC, NT-BDC1, NT-BDC2, *
14663                 </B
14664 ></P
14665 ><P
14666 >Example: <B
14667 CLASS="COMMAND"
14668 >password server = *</B
14669 ></P
14670 ></DD
14671 ><DT
14672 ><A
14673 NAME="PATH"
14674 ></A
14675 >&#62;path (S)</DT
14676 ><DD
14677 ><P
14678 >This parameter specifies a directory to which 
14679                 the user of the service is to be given access. In the case of 
14680                 printable services, this is where print data will spool prior to 
14681                 being submitted to the host for printing.</P
14682 ><P
14683 >For a printable service offering guest access, the service 
14684                 should be readonly and the path should be world-writeable and 
14685                 have the sticky bit set. This is not mandatory of course, but 
14686                 you probably won't get the results you expect if you do 
14687                 otherwise.</P
14688 ><P
14689 >Any occurrences of <TT
14690 CLASS="PARAMETER"
14691 ><I
14692 >%u</I
14693 ></TT
14694 > in the path 
14695                 will be replaced with the UNIX username that the client is using 
14696                 on this connection. Any occurrences of <TT
14697 CLASS="PARAMETER"
14698 ><I
14699 >%m</I
14700 ></TT
14701
14702                 will be replaced by the NetBIOS name of the machine they are 
14703                 connecting from. These replacements are very useful for setting 
14704                 up pseudo home directories for users.</P
14705 ><P
14706 >Note that this path will be based on <A
14707 HREF="#ROOTDIR"
14708 >               <TT
14709 CLASS="PARAMETER"
14710 ><I
14711 >root dir</I
14712 ></TT
14713 ></A
14714 > if one was specified.</P
14715 ><P
14716 >Default: <SPAN
14717 CLASS="emphasis"
14718 ><I
14719 CLASS="EMPHASIS"
14720 >none</I
14721 ></SPAN
14722 ></P
14723 ><P
14724 >Example: <B
14725 CLASS="COMMAND"
14726 >path = /home/fred</B
14727 ></P
14728 ></DD
14729 ><DT
14730 ><A
14731 NAME="PIDDIRECTORY"
14732 ></A
14733 >&#62;pid directory (G)</DT
14734 ><DD
14735 ><P
14736 >This option specifies the directory where pid 
14737                 files will be placed.  </P
14738 ><P
14739 >Default: <B
14740 CLASS="COMMAND"
14741 >pid directory = ${prefix}/var/locks</B
14742 ></P
14743 ><P
14744 >Example: <B
14745 CLASS="COMMAND"
14746 >pid directory = /var/run/</B
14747 >
14748                 </P
14749 ></DD
14750 ><DT
14751 ><A
14752 NAME="POSIXLOCKING"
14753 ></A
14754 >&#62;posix locking (S)</DT
14755 ><DD
14756 ><P
14757 >The <SPAN
14758 CLASS="CITEREFENTRY"
14759 ><SPAN
14760 CLASS="REFENTRYTITLE"
14761 >smbd</SPAN
14762 >(8)</SPAN
14763 >
14764                 daemon maintains an database of file locks obtained by SMB clients.
14765                 The default behavior is to map this internal database to POSIX
14766                 locks.  This means that file locks obtained by SMB clients are 
14767                 consistent with those seen by POSIX compliant applications accessing 
14768                 the files via a non-SMB method (e.g. NFS or local file access).  
14769                 You should never need to disable this parameter.</P
14770 ><P
14771 >Default: <B
14772 CLASS="COMMAND"
14773 >posix locking = yes</B
14774 ></P
14775 ></DD
14776 ><DT
14777 ><A
14778 NAME="POSTEXEC"
14779 ></A
14780 >&#62;postexec (S)</DT
14781 ><DD
14782 ><P
14783 >This option specifies a command to be run 
14784                 whenever the service is disconnected. It takes the usual 
14785                 substitutions. The command may be run as the root on some 
14786                 systems.</P
14787 ><P
14788 >An interesting example may be to unmount server 
14789                 resources:</P
14790 ><P
14791 ><B
14792 CLASS="COMMAND"
14793 >postexec = /etc/umount /cdrom</B
14794 ></P
14795 ><P
14796 >See also <A
14797 HREF="#PREEXEC"
14798 ><TT
14799 CLASS="PARAMETER"
14800 ><I
14801 >preexec</I
14802 ></TT
14803 >
14804                 </A
14805 >.</P
14806 ><P
14807 >Default: <SPAN
14808 CLASS="emphasis"
14809 ><I
14810 CLASS="EMPHASIS"
14811 >none (no command executed)</I
14812 ></SPAN
14813 >
14814                 </P
14815 ><P
14816 >Example: <B
14817 CLASS="COMMAND"
14818 >postexec = echo \"%u disconnected from %S 
14819                 from %m (%I)\" &gt;&gt; /tmp/log</B
14820 ></P
14821 ></DD
14822 ><DT
14823 ><A
14824 NAME="POSTSCRIPT"
14825 ></A
14826 >&#62;postscript (S)</DT
14827 ><DD
14828 ><P
14829 >This parameter forces a printer to interpret 
14830                 the print files as PostScript. This is done by adding a <TT
14831 CLASS="CONSTANT"
14832 >%!
14833                 </TT
14834 > to the start of print output.</P
14835 ><P
14836 >This is most useful when you have lots of PCs that persist 
14837                 in putting a control-D at the start of print jobs, which then 
14838                 confuses your printer.</P
14839 ><P
14840 >Default: <B
14841 CLASS="COMMAND"
14842 >postscript = no</B
14843 ></P
14844 ></DD
14845 ><DT
14846 ><A
14847 NAME="PREEXEC"
14848 ></A
14849 >&#62;preexec (S)</DT
14850 ><DD
14851 ><P
14852 >This option specifies a command to be run whenever 
14853                 the service is connected to. It takes the usual substitutions.</P
14854 ><P
14855 >An interesting example is to send the users a welcome 
14856                 message every time they log in. Maybe a message of the day? Here 
14857                 is an example:</P
14858 ><P
14859 ><B
14860 CLASS="COMMAND"
14861 >preexec = csh -c 'echo \"Welcome to %S!\" |
14862                  /usr/local/samba/bin/smbclient -M %m -I %I' &amp; </B
14863 ></P
14864 ><P
14865 >Of course, this could get annoying after a while :-)</P
14866 ><P
14867 >See also <A
14868 HREF="#PREEXECCLOSE"
14869 ><TT
14870 CLASS="PARAMETER"
14871 ><I
14872 >preexec close
14873                 </I
14874 ></TT
14875 ></A
14876 > and <A
14877 HREF="#POSTEXEC"
14878 ><TT
14879 CLASS="PARAMETER"
14880 ><I
14881 >postexec
14882                 </I
14883 ></TT
14884 ></A
14885 >.</P
14886 ><P
14887 >Default: <SPAN
14888 CLASS="emphasis"
14889 ><I
14890 CLASS="EMPHASIS"
14891 >none (no command executed)</I
14892 ></SPAN
14893 ></P
14894 ><P
14895 >Example: <B
14896 CLASS="COMMAND"
14897 >preexec = echo \"%u connected to %S from %m
14898                 (%I)\" &gt;&gt; /tmp/log</B
14899 ></P
14900 ></DD
14901 ><DT
14902 ><A
14903 NAME="PREEXECCLOSE"
14904 ></A
14905 >&#62;preexec close (S)</DT
14906 ><DD
14907 ><P
14908 >This boolean option controls whether a non-zero 
14909                 return code from <A
14910 HREF="#PREEXEC"
14911 ><TT
14912 CLASS="PARAMETER"
14913 ><I
14914 >preexec
14915                 </I
14916 ></TT
14917 ></A
14918 > should close the service being connected to.</P
14919 ><P
14920 >Default: <B
14921 CLASS="COMMAND"
14922 >preexec close = no</B
14923 ></P
14924 ></DD
14925 ><DT
14926 ><A
14927 NAME="PREFERREDMASTER"
14928 ></A
14929 >&#62;preferred master (G)</DT
14930 ><DD
14931 ><P
14932 >This boolean parameter controls if <A
14933 HREF="nmbd.8.html"
14934 TARGET="_top"
14935 >nmbd(8)</A
14936 > is a preferred master browser 
14937                 for its workgroup.</P
14938 ><P
14939 >If this is set to <TT
14940 CLASS="CONSTANT"
14941 >yes</TT
14942 >, on startup, <B
14943 CLASS="COMMAND"
14944 >nmbd</B
14945
14946                 will force an election, and it will have a slight advantage in 
14947                 winning the election.  It is recommended that this parameter is 
14948                 used in conjunction with <B
14949 CLASS="COMMAND"
14950 ><A
14951 HREF="#DOMAINMASTER"
14952 ><TT
14953 CLASS="PARAMETER"
14954 ><I
14955 >               domain master</I
14956 ></TT
14957 ></A
14958 > = yes</B
14959 >, so that <B
14960 CLASS="COMMAND"
14961 >               nmbd</B
14962 > can guarantee becoming a domain master.</P
14963 ><P
14964 >Use this option with caution, because if there are several 
14965                 hosts (whether Samba servers, Windows 95 or NT) that are preferred 
14966                 master browsers on the same subnet, they will each periodically 
14967                 and continuously attempt to become the local master browser.  
14968                 This will result in unnecessary broadcast traffic and reduced browsing
14969                 capabilities.</P
14970 ><P
14971 >See also <A
14972 HREF="#OSLEVEL"
14973 ><TT
14974 CLASS="PARAMETER"
14975 ><I
14976 >os level</I
14977 ></TT
14978 >
14979                 </A
14980 >.</P
14981 ><P
14982 >Default: <B
14983 CLASS="COMMAND"
14984 >preferred master = auto</B
14985 ></P
14986 ></DD
14987 ><DT
14988 ><A
14989 NAME="PREFEREDMASTER"
14990 ></A
14991 >&#62;prefered master (G)</DT
14992 ><DD
14993 ><P
14994 >Synonym for <A
14995 HREF="#PREFERREDMASTER"
14996 ><TT
14997 CLASS="PARAMETER"
14998 ><I
14999 >               preferred master</I
15000 ></TT
15001 ></A
15002 > for people who cannot spell :-).</P
15003 ></DD
15004 ><DT
15005 ><A
15006 NAME="PRELOAD"
15007 ></A
15008 >&#62;preload (G)</DT
15009 ><DD
15010 ><P
15011 >This is a list of services that you want to be 
15012                 automatically added to the browse lists. This is most useful 
15013                 for homes and printers services that would otherwise not be 
15014                 visible.</P
15015 ><P
15016 >Note that if you just want all printers in your 
15017                 printcap file loaded then the <A
15018 HREF="#LOADPRINTERS"
15019 >               <TT
15020 CLASS="PARAMETER"
15021 ><I
15022 >load printers</I
15023 ></TT
15024 ></A
15025 > option is easier.</P
15026 ><P
15027 >Default: <SPAN
15028 CLASS="emphasis"
15029 ><I
15030 CLASS="EMPHASIS"
15031 >no preloaded services</I
15032 ></SPAN
15033 ></P
15034 ><P
15035 >Example: <B
15036 CLASS="COMMAND"
15037 >preload = fred lp colorlp</B
15038 ></P
15039 ></DD
15040 ><DT
15041 ><A
15042 NAME="PRESERVECASE"
15043 ></A
15044 >&#62;preserve case (S)</DT
15045 ><DD
15046 ><P
15047 > This controls if new filenames are created
15048                 with the case that the client passes, or if they are forced to 
15049                 be the <A
15050 HREF="#DEFAULTCASE"
15051 ><TT
15052 CLASS="PARAMETER"
15053 ><I
15054 >default case
15055                 </I
15056 ></TT
15057 ></A
15058 >.</P
15059 ><P
15060 >Default: <B
15061 CLASS="COMMAND"
15062 >preserve case = yes</B
15063 ></P
15064 ><P
15065 >See the section on <A
15066 HREF="#AEN206"
15067 >NAME 
15068                 MANGLING</A
15069 > for a fuller discussion.</P
15070 ></DD
15071 ><DT
15072 ><A
15073 NAME="PRINTCOMMAND"
15074 ></A
15075 >&#62;print command (S)</DT
15076 ><DD
15077 ><P
15078 >After a print job has finished spooling to 
15079                 a service, this command will be used via a <B
15080 CLASS="COMMAND"
15081 >system()</B
15082
15083                 call to process the spool file. Typically the command specified will 
15084                 submit the spool file to the host's printing subsystem, but there 
15085                 is no requirement that this be the case. The server will not remove 
15086                 the spool file, so whatever command you specify should remove the 
15087                 spool file when it has been processed, otherwise you will need to 
15088                 manually remove old spool files.</P
15089 ><P
15090 >The print command is simply a text string. It will be used 
15091                 verbatim after macro substitutions have been made:</P
15092 ><P
15093 >s, %p - the path to the spool
15094                 file name</P
15095 ><P
15096 >%p - the appropriate printer 
15097                 name</P
15098 ><P
15099 >%J - the job 
15100                 name as transmitted by the client.</P
15101 ><P
15102 >%c - The number of printed pages
15103                 of the spooled job (if known).</P
15104 ><P
15105 >%z - the size of the spooled
15106                 print job (in bytes)</P
15107 ><P
15108 >The print command <SPAN
15109 CLASS="emphasis"
15110 ><I
15111 CLASS="EMPHASIS"
15112 >MUST</I
15113 ></SPAN
15114 > contain at least 
15115                 one occurrence of <TT
15116 CLASS="PARAMETER"
15117 ><I
15118 >%s</I
15119 ></TT
15120 > or <TT
15121 CLASS="PARAMETER"
15122 ><I
15123 >%f
15124                 </I
15125 ></TT
15126 > - the <TT
15127 CLASS="PARAMETER"
15128 ><I
15129 >%p</I
15130 ></TT
15131 > is optional. At the time 
15132                 a job is submitted, if no printer name is supplied the <TT
15133 CLASS="PARAMETER"
15134 ><I
15135 >%p
15136                 </I
15137 ></TT
15138 > will be silently removed from the printer command.</P
15139 ><P
15140 >If specified in the [global] section, the print command given 
15141                 will be used for any printable service that does not have its own 
15142                 print command specified.</P
15143 ><P
15144 >If there is neither a specified print command for a 
15145                 printable service nor a global print command, spool files will 
15146                 be created but not processed and (most importantly) not removed.</P
15147 ><P
15148 >Note that printing may fail on some UNIXes from the 
15149                 <TT
15150 CLASS="CONSTANT"
15151 >nobody</TT
15152 > account. If this happens then create 
15153                 an alternative guest account that can print and set the <A
15154 HREF="#GUESTACCOUNT"
15155 ><TT
15156 CLASS="PARAMETER"
15157 ><I
15158 >guest account</I
15159 ></TT
15160 ></A
15161
15162                 in the [global] section.</P
15163 ><P
15164 >You can form quite complex print commands by realizing 
15165                 that they are just passed to a shell. For example the following 
15166                 will log a print job, print the file, then remove it. Note that 
15167                 ';' is the usual separator for command in shell scripts.</P
15168 ><P
15169 ><B
15170 CLASS="COMMAND"
15171 >print command = echo Printing %s &gt;&gt; 
15172                 /tmp/print.log; lpr -P %p %s; rm %s</B
15173 ></P
15174 ><P
15175 >You may have to vary this command considerably depending 
15176                 on how you normally print files on your system. The default for 
15177                 the parameter varies depending on the setting of the <A
15178 HREF="#PRINTING"
15179 >               <TT
15180 CLASS="PARAMETER"
15181 ><I
15182 >printing</I
15183 ></TT
15184 ></A
15185 > parameter.</P
15186 ><P
15187 >Default: For <B
15188 CLASS="COMMAND"
15189 >printing = BSD, AIX, QNX, LPRNG 
15190                 or PLP :</B
15191 ></P
15192 ><P
15193 ><B
15194 CLASS="COMMAND"
15195 >print command = lpr -r -P%p %s</B
15196 ></P
15197 ><P
15198 >For <B
15199 CLASS="COMMAND"
15200 >printing = SYSV or HPUX :</B
15201 ></P
15202 ><P
15203 ><B
15204 CLASS="COMMAND"
15205 >print command = lp -c -d%p %s; rm %s</B
15206 ></P
15207 ><P
15208 >For <B
15209 CLASS="COMMAND"
15210 >printing = SOFTQ :</B
15211 ></P
15212 ><P
15213 ><B
15214 CLASS="COMMAND"
15215 >print command = lp -d%p -s %s; rm %s</B
15216 ></P
15217 ><P
15218 >For printing = CUPS :   If SAMBA is compiled against
15219                 libcups, then <A
15220 HREF="#PRINTING"
15221 >printcap = cups</A
15222
15223                 uses the CUPS API to
15224                 submit jobs, etc.  Otherwise it maps to the System V
15225                 commands with the -oraw option for printing, i.e. it
15226                 uses <B
15227 CLASS="COMMAND"
15228 >lp -c -d%p -oraw; rm %s</B
15229 >.   
15230                 With <B
15231 CLASS="COMMAND"
15232 >printing = cups</B
15233 >,
15234                 and if SAMBA is compiled against libcups, any manually 
15235                 set print command will be ignored.</P
15236 ><P
15237 >Example: <B
15238 CLASS="COMMAND"
15239 >print command = /usr/local/samba/bin/myprintscript
15240                 %p %s</B
15241 ></P
15242 ></DD
15243 ><DT
15244 ><A
15245 NAME="PRINTOK"
15246 ></A
15247 >&#62;print ok (S)</DT
15248 ><DD
15249 ><P
15250 >Synonym for <A
15251 HREF="#PRINTABLE"
15252 >               <TT
15253 CLASS="PARAMETER"
15254 ><I
15255 >printable</I
15256 ></TT
15257 ></A
15258 >.</P
15259 ></DD
15260 ><DT
15261 ><A
15262 NAME="PRINTABLE"
15263 ></A
15264 >&#62;printable (S)</DT
15265 ><DD
15266 ><P
15267 >If this parameter is <TT
15268 CLASS="CONSTANT"
15269 >yes</TT
15270 >, then 
15271                 clients may open, write to and submit spool files on the directory 
15272                 specified for the service. </P
15273 ><P
15274 >Note that a printable service will ALWAYS allow writing 
15275                 to the service path (user privileges permitting) via the spooling 
15276                 of print data. The <A
15277 HREF="#READONLY"
15278 ><TT
15279 CLASS="PARAMETER"
15280 ><I
15281 >read only
15282                 </I
15283 ></TT
15284 ></A
15285 > parameter controls only non-printing access to 
15286                 the resource.</P
15287 ><P
15288 >Default: <B
15289 CLASS="COMMAND"
15290 >printable = no</B
15291 ></P
15292 ></DD
15293 ><DT
15294 ><A
15295 NAME="PRINTCAP"
15296 ></A
15297 >&#62;printcap (G)</DT
15298 ><DD
15299 ><P
15300 >Synonym for    <A
15301 HREF="#PRINTCAPNAME"
15302 ><TT
15303 CLASS="PARAMETER"
15304 ><I
15305 >               printcap name</I
15306 ></TT
15307 ></A
15308 >.</P
15309 ></DD
15310 ><DT
15311 ><A
15312 NAME="PRINTCAPNAME"
15313 ></A
15314 >&#62;printcap name (G)</DT
15315 ><DD
15316 ><P
15317 >This parameter may be used to override the 
15318                 compiled-in default printcap name used by the server (usually <TT
15319 CLASS="FILENAME"
15320 >               /etc/printcap</TT
15321 >). See the discussion of the <A
15322 HREF="#AEN80"
15323 >[printers]</A
15324 > section above for reasons 
15325                 why you might want to do this.</P
15326 ><P
15327 >To use the CUPS printing interface set <B
15328 CLASS="COMMAND"
15329 >printcap name = cups
15330                 </B
15331 >. This should be supplemented by an addtional setting 
15332                 <A
15333 HREF="#PRINTING"
15334 >printing = cups</A
15335 > in the [global] 
15336                 section.  <B
15337 CLASS="COMMAND"
15338 >printcap name = cups</B
15339 > will use the  
15340                 "dummy" printcap created by CUPS, as specified in your CUPS
15341                 configuration file.
15342                 </P
15343 ><P
15344 >On System V systems that use <B
15345 CLASS="COMMAND"
15346 >lpstat</B
15347 > to 
15348                 list available printers you can use <B
15349 CLASS="COMMAND"
15350 >printcap name = lpstat
15351                 </B
15352 > to automatically obtain lists of available printers. This 
15353                 is the default for systems that define SYSV at configure time in 
15354                 Samba (this includes most System V based systems). If <TT
15355 CLASS="PARAMETER"
15356 ><I
15357 >               printcap name</I
15358 ></TT
15359 > is set to <B
15360 CLASS="COMMAND"
15361 >lpstat</B
15362 > on 
15363                 these systems then Samba will launch <B
15364 CLASS="COMMAND"
15365 >lpstat -v</B
15366 > and 
15367                 attempt to parse the output to obtain a printer list.</P
15368 ><P
15369 >A minimal printcap file would look something like this:</P
15370 ><P
15371 ><PRE
15372 CLASS="PROGRAMLISTING"
15373 >print1|My Printer 1
15374 print2|My Printer 2
15375 print3|My Printer 3
15376 print4|My Printer 4
15377 print5|My Printer 5</PRE
15378 ></P
15379 ><P
15380 >where the '|' separates aliases of a printer. The fact 
15381                 that the second alias has a space in it gives a hint to Samba 
15382                 that it's a comment.</P
15383 ><P
15384 ><SPAN
15385 CLASS="emphasis"
15386 ><I
15387 CLASS="EMPHASIS"
15388 >NOTE</I
15389 ></SPAN
15390 >: Under AIX the default printcap 
15391                 name is <TT
15392 CLASS="FILENAME"
15393 >/etc/qconfig</TT
15394 >. Samba will assume the 
15395                 file is in AIX <TT
15396 CLASS="FILENAME"
15397 >qconfig</TT
15398 > format if the string
15399                 <TT
15400 CLASS="FILENAME"
15401 >qconfig</TT
15402 > appears in the printcap filename.</P
15403 ><P
15404 >Default: <B
15405 CLASS="COMMAND"
15406 >printcap name = /etc/printcap</B
15407 ></P
15408 ><P
15409 >Example: <B
15410 CLASS="COMMAND"
15411 >printcap name = /etc/myprintcap</B
15412 ></P
15413 ></DD
15414 ><DT
15415 ><A
15416 NAME="PRINTERADMIN"
15417 ></A
15418 >&#62;printer admin (S)</DT
15419 ><DD
15420 ><P
15421 >This is a list of users that can do anything to 
15422                 printers via the remote administration interfaces offered by MS-RPC 
15423                 (usually using a NT workstation). Note that the root user always 
15424                 has admin rights.</P
15425 ><P
15426 >Default: <B
15427 CLASS="COMMAND"
15428 >printer admin = &lt;empty string&gt;</B
15429 >
15430                 </P
15431 ><P
15432 >Example: <B
15433 CLASS="COMMAND"
15434 >printer admin = admin, @staff</B
15435 ></P
15436 ></DD
15437 ><DT
15438 ><A
15439 NAME="PRINTERDRIVER"
15440 ></A
15441 >&#62;printer driver (S)</DT
15442 ><DD
15443 ><P
15444 ><SPAN
15445 CLASS="emphasis"
15446 ><I
15447 CLASS="EMPHASIS"
15448 >Note :</I
15449 ></SPAN
15450 >This is a deprecated 
15451                 parameter and will be removed in the next major release
15452                 following version 2.2.  Please see the instructions in
15453                 the <A
15454 HREF="printing.html"
15455 TARGET="_top"
15456 >Samba 2.2. Printing
15457                 HOWTO</A
15458 > for more information
15459                 on the new method of loading printer drivers onto a Samba server.
15460                 </P
15461 ><P
15462 >This option allows you to control the string 
15463                 that clients receive when they ask the server for the printer driver 
15464                 associated with a printer. If you are using Windows95 or Windows NT 
15465                 then you can use this to automate the setup of printers on your 
15466                 system.</P
15467 ><P
15468 >You need to set this parameter to the exact string (case 
15469                 sensitive) that describes the appropriate printer driver for your 
15470                 system. If you don't know the exact string to use then you should 
15471                 first try with no <A
15472 HREF="#PRINTERDRIVER"
15473 ><TT
15474 CLASS="PARAMETER"
15475 ><I
15476 >               printer driver</I
15477 ></TT
15478 ></A
15479 > option set and the client will 
15480                 give you a list of printer drivers. The appropriate strings are 
15481                 shown in a scroll box after you have chosen the printer manufacturer.</P
15482 ><P
15483 >See also <A
15484 HREF="#PRINTERDRIVERFILE"
15485 ><TT
15486 CLASS="PARAMETER"
15487 ><I
15488 >printer
15489                 driver file</I
15490 ></TT
15491 ></A
15492 >.</P
15493 ><P
15494 >Example: <B
15495 CLASS="COMMAND"
15496 >printer driver = HP LaserJet 4L</B
15497 ></P
15498 ></DD
15499 ><DT
15500 ><A
15501 NAME="PRINTERDRIVERFILE"
15502 ></A
15503 >&#62;printer driver file (G)</DT
15504 ><DD
15505 ><P
15506 ><SPAN
15507 CLASS="emphasis"
15508 ><I
15509 CLASS="EMPHASIS"
15510 >Note :</I
15511 ></SPAN
15512 >This is a deprecated 
15513                 parameter and will be removed in the next major release
15514                 following version 2.2.  Please see the instructions in
15515                 the <A
15516 HREF="printing.html"
15517 TARGET="_top"
15518 >Samba 2.2. Printing
15519                 HOWTO</A
15520 > for more information
15521                 on the new method of loading printer drivers onto a Samba server.
15522                 </P
15523 ><P
15524 >This parameter tells Samba where the printer driver 
15525                 definition file, used when serving drivers to Windows 95 clients, is 
15526                 to be found. If this is not set, the default is :</P
15527 ><P
15528 ><TT
15529 CLASS="FILENAME"
15530 ><TT
15531 CLASS="REPLACEABLE"
15532 ><I
15533 >SAMBA_INSTALL_DIRECTORY</I
15534 ></TT
15535 >
15536                 /lib/printers.def</TT
15537 ></P
15538 ><P
15539 >This file is created from Windows 95 <TT
15540 CLASS="FILENAME"
15541 >msprint.inf
15542                 </TT
15543 > files found on the Windows 95 client system. For more 
15544                 details on setting up serving of printer drivers to Windows 95 
15545                 clients, see the outdated documentation file in the <TT
15546 CLASS="FILENAME"
15547 >docs/</TT
15548
15549                 directory, <TT
15550 CLASS="FILENAME"
15551 >PRINTER_DRIVER.txt</TT
15552 >.</P
15553 ><P
15554 >See also <A
15555 HREF="#PRINTERDRIVERLOCATION"
15556 ><TT
15557 CLASS="PARAMETER"
15558 ><I
15559 >               printer driver location</I
15560 ></TT
15561 ></A
15562 >.</P
15563 ><P
15564 >Default: <SPAN
15565 CLASS="emphasis"
15566 ><I
15567 CLASS="EMPHASIS"
15568 >None (set in compile).</I
15569 ></SPAN
15570 ></P
15571 ><P
15572 >Example: <B
15573 CLASS="COMMAND"
15574 >printer driver file = 
15575                 /usr/local/samba/printers/drivers.def</B
15576 ></P
15577 ></DD
15578 ><DT
15579 ><A
15580 NAME="PRINTERDRIVERLOCATION"
15581 ></A
15582 >&#62;printer driver location (S)</DT
15583 ><DD
15584 ><P
15585 ><SPAN
15586 CLASS="emphasis"
15587 ><I
15588 CLASS="EMPHASIS"
15589 >Note :</I
15590 ></SPAN
15591 >This is a deprecated 
15592                 parameter and will be removed in the next major release
15593                 following version 2.2.  Please see the instructions in
15594                 the <A
15595 HREF="printing.html"
15596 TARGET="_top"
15597 >Samba 2.2. Printing
15598                 HOWTO</A
15599 > for more information
15600                 on the new method of loading printer drivers onto a Samba server.
15601                 </P
15602 ><P
15603 >This parameter tells clients of a particular printer 
15604                 share where to find the printer driver files for the automatic 
15605                 installation of drivers for Windows 95 machines. If Samba is set up 
15606                 to serve printer drivers to Windows 95 machines, this should be set to</P
15607 ><P
15608 ><B
15609 CLASS="COMMAND"
15610 >\\MACHINE\PRINTER$</B
15611 ></P
15612 ><P
15613 >Where MACHINE is the NetBIOS name of your Samba server, 
15614                 and PRINTER$ is a share you set up for serving printer driver 
15615                 files. For more details on setting this up see the outdated documentation 
15616                 file in the <TT
15617 CLASS="FILENAME"
15618 >docs/</TT
15619 > directory, <TT
15620 CLASS="FILENAME"
15621 >               PRINTER_DRIVER.txt</TT
15622 >.</P
15623 ><P
15624 >See also <A
15625 HREF="#PRINTERDRIVERFILE"
15626 ><TT
15627 CLASS="PARAMETER"
15628 ><I
15629 >               printer driver file</I
15630 ></TT
15631 ></A
15632 >.</P
15633 ><P
15634 >Default: <B
15635 CLASS="COMMAND"
15636 >none</B
15637 ></P
15638 ><P
15639 >Example: <B
15640 CLASS="COMMAND"
15641 >printer driver location = \\MACHINE\PRINTER$
15642                 </B
15643 ></P
15644 ></DD
15645 ><DT
15646 ><A
15647 NAME="PRINTERNAME"
15648 ></A
15649 >&#62;printer name (S)</DT
15650 ><DD
15651 ><P
15652 >This parameter specifies the name of the printer 
15653                 to which print jobs spooled through a printable service will be sent.</P
15654 ><P
15655 >If specified in the [global] section, the printer
15656                 name given will be used for any printable service that does 
15657                 not have its own printer name specified.</P
15658 ><P
15659 >Default: <SPAN
15660 CLASS="emphasis"
15661 ><I
15662 CLASS="EMPHASIS"
15663 >none (but may be <TT
15664 CLASS="CONSTANT"
15665 >lp</TT
15666
15667                 on many systems)</I
15668 ></SPAN
15669 ></P
15670 ><P
15671 >Example: <B
15672 CLASS="COMMAND"
15673 >printer name = laserwriter</B
15674 ></P
15675 ></DD
15676 ><DT
15677 ><A
15678 NAME="PRINTER"
15679 ></A
15680 >&#62;printer (S)</DT
15681 ><DD
15682 ><P
15683 >Synonym for <A
15684 HREF="#PRINTERNAME"
15685 ><TT
15686 CLASS="PARAMETER"
15687 ><I
15688 >               printer name</I
15689 ></TT
15690 ></A
15691 >.</P
15692 ></DD
15693 ><DT
15694 ><A
15695 NAME="PRINTING"
15696 ></A
15697 >&#62;printing (S)</DT
15698 ><DD
15699 ><P
15700 >This parameters controls how printer status 
15701                 information is interpreted on your system. It also affects the 
15702                 default values for the <TT
15703 CLASS="PARAMETER"
15704 ><I
15705 >print command</I
15706 ></TT
15707 >, 
15708                 <TT
15709 CLASS="PARAMETER"
15710 ><I
15711 >lpq command</I
15712 ></TT
15713 >, <TT
15714 CLASS="PARAMETER"
15715 ><I
15716 >lppause command
15717                 </I
15718 ></TT
15719 >, <TT
15720 CLASS="PARAMETER"
15721 ><I
15722 >lpresume command</I
15723 ></TT
15724 >, and 
15725                 <TT
15726 CLASS="PARAMETER"
15727 ><I
15728 >lprm command</I
15729 ></TT
15730 > if specified in the 
15731                 [global] section.</P
15732 ><P
15733 >Currently nine printing styles are supported. They are
15734                 <TT
15735 CLASS="CONSTANT"
15736 >BSD</TT
15737 >, <TT
15738 CLASS="CONSTANT"
15739 >AIX</TT
15740 >, 
15741                 <TT
15742 CLASS="CONSTANT"
15743 >LPRNG</TT
15744 >, <TT
15745 CLASS="CONSTANT"
15746 >PLP</TT
15747 >,
15748                 <TT
15749 CLASS="CONSTANT"
15750 >SYSV</TT
15751 >, <TT
15752 CLASS="CONSTANT"
15753 >HPUX</TT
15754 >,
15755                 <TT
15756 CLASS="CONSTANT"
15757 >QNX</TT
15758 >, <TT
15759 CLASS="CONSTANT"
15760 >SOFTQ</TT
15761 >,
15762                 and <TT
15763 CLASS="CONSTANT"
15764 >CUPS</TT
15765 >.</P
15766 ><P
15767 >To see what the defaults are for the other print 
15768                 commands when using the various options use the <A
15769 HREF="testparm.1.html"
15770 TARGET="_top"
15771 >testparm(1)</A
15772 > program.</P
15773 ><P
15774 >This option can be set on a per printer basis</P
15775 ><P
15776 >See also the discussion in the <A
15777 HREF="#AEN80"
15778 >               [printers]</A
15779 > section.</P
15780 ></DD
15781 ><DT
15782 ><A
15783 NAME="PRIVATEDIR"
15784 ></A
15785 >&#62;private dir (G)</DT
15786 ><DD
15787 ><P
15788 >This parameters defines the directory
15789                 smbd will use for storing such files as <TT
15790 CLASS="FILENAME"
15791 >smbpasswd</TT
15792 >
15793                 and <TT
15794 CLASS="FILENAME"
15795 >secrets.tdb</TT
15796 >.
15797                 </P
15798 ><P
15799 >Default :<B
15800 CLASS="COMMAND"
15801 >private dir = ${prefix}/private</B
15802 ></P
15803 ></DD
15804 ><DT
15805 ><A
15806 NAME="PROTOCOL"
15807 ></A
15808 >&#62;protocol (G)</DT
15809 ><DD
15810 ><P
15811 >Synonym for <A
15812 HREF="#MAXPROTOCOL"
15813 >               <TT
15814 CLASS="PARAMETER"
15815 ><I
15816 >max protocol</I
15817 ></TT
15818 ></A
15819 >.</P
15820 ></DD
15821 ><DT
15822 ><A
15823 NAME="PUBLIC"
15824 ></A
15825 >&#62;public (S)</DT
15826 ><DD
15827 ><P
15828 >Synonym for <A
15829 HREF="#GUESTOK"
15830 ><TT
15831 CLASS="PARAMETER"
15832 ><I
15833 >guest 
15834                 ok</I
15835 ></TT
15836 ></A
15837 >.</P
15838 ></DD
15839 ><DT
15840 ><A
15841 NAME="QUEUEPAUSECOMMAND"
15842 ></A
15843 >&#62;queuepause command (S)</DT
15844 ><DD
15845 ><P
15846 >This parameter specifies the command to be 
15847                 executed on the server host in order to pause the printer queue.</P
15848 ><P
15849 >This command should be a program or script which takes 
15850                 a printer name as its only parameter and stops the printer queue, 
15851                 such that no longer jobs are submitted to the printer.</P
15852 ><P
15853 >This command is not supported by Windows for Workgroups, 
15854                 but can be issued from the Printers window under Windows 95 
15855                 and NT.</P
15856 ><P
15857 >If a <TT
15858 CLASS="PARAMETER"
15859 ><I
15860 >%p</I
15861 ></TT
15862 > is given then the printer name 
15863                 is put in its place. Otherwise it is placed at the end of the command.
15864                 </P
15865 ><P
15866 >Note that it is good practice to include the absolute 
15867                 path in the command as the PATH may not be available to the 
15868                 server.</P
15869 ><P
15870 >Default: <SPAN
15871 CLASS="emphasis"
15872 ><I
15873 CLASS="EMPHASIS"
15874 >depends on the setting of <TT
15875 CLASS="PARAMETER"
15876 ><I
15877 >printing
15878                 </I
15879 ></TT
15880 ></I
15881 ></SPAN
15882 ></P
15883 ><P
15884 >Example: <B
15885 CLASS="COMMAND"
15886 >queuepause command = disable %p</B
15887 ></P
15888 ></DD
15889 ><DT
15890 ><A
15891 NAME="QUEUERESUMECOMMAND"
15892 ></A
15893 >&#62;queueresume command (S)</DT
15894 ><DD
15895 ><P
15896 >This parameter specifies the command to be 
15897                 executed on the server host in order to resume the printer queue. It 
15898                 is the command to undo the behavior that is caused by the 
15899                 previous parameter (<A
15900 HREF="#QUEUEPAUSECOMMAND"
15901 ><TT
15902 CLASS="PARAMETER"
15903 ><I
15904 >               queuepause command</I
15905 ></TT
15906 ></A
15907 >).</P
15908 ><P
15909 >This command should be a program or script which takes 
15910                 a printer name as its only parameter and resumes the printer queue, 
15911                 such that queued jobs are resubmitted to the printer.</P
15912 ><P
15913 >This command is not supported by Windows for Workgroups, 
15914                 but can be issued from the Printers window under Windows 95 
15915                 and NT.</P
15916 ><P
15917 >If a <TT
15918 CLASS="PARAMETER"
15919 ><I
15920 >%p</I
15921 ></TT
15922 > is given then the printer name 
15923                 is put in its place. Otherwise it is placed at the end of the 
15924                 command.</P
15925 ><P
15926 >Note that it is good practice to include the absolute 
15927                 path in the command as the PATH may not be available to the 
15928                 server.</P
15929 ><P
15930 >Default: <SPAN
15931 CLASS="emphasis"
15932 ><I
15933 CLASS="EMPHASIS"
15934 >depends on the setting of <A
15935 HREF="#PRINTING"
15936 ><TT
15937 CLASS="PARAMETER"
15938 ><I
15939 >printing</I
15940 ></TT
15941 ></A
15942 ></I
15943 ></SPAN
15944 >
15945                 </P
15946 ><P
15947 >Example: <B
15948 CLASS="COMMAND"
15949 >queuepause command = enable %p
15950                 </B
15951 ></P
15952 ></DD
15953 ><DT
15954 ><A
15955 NAME="READBMPX"
15956 ></A
15957 >&#62;read bmpx (G)</DT
15958 ><DD
15959 ><P
15960 >This boolean parameter controls whether <A
15961 HREF="smbd.8.html"
15962 TARGET="_top"
15963 >smbd(8)</A
15964 > will support the "Read 
15965                 Block Multiplex" SMB. This is now rarely used and defaults to 
15966                 <TT
15967 CLASS="CONSTANT"
15968 >no</TT
15969 >. You should never need to set this 
15970                 parameter.</P
15971 ><P
15972 >Default: <B
15973 CLASS="COMMAND"
15974 >read bmpx = no</B
15975 ></P
15976 ></DD
15977 ><DT
15978 ><A
15979 NAME="READLIST"
15980 ></A
15981 >&#62;read list (S)</DT
15982 ><DD
15983 ><P
15984 >This is a list of users that are given read-only 
15985                 access to a service. If the connecting user is in this list then 
15986                 they will not be given write access, no matter what the <A
15987 HREF="#READONLY"
15988 ><TT
15989 CLASS="PARAMETER"
15990 ><I
15991 >read only</I
15992 ></TT
15993 ></A
15994 >
15995                 option is set to. The list can include group names using the 
15996                 syntax described in the <A
15997 HREF="#INVALIDUSERS"
15998 ><TT
15999 CLASS="PARAMETER"
16000 ><I
16001 >               invalid users</I
16002 ></TT
16003 ></A
16004 > parameter.</P
16005 ><P
16006 >See also the <A
16007 HREF="#WRITELIST"
16008 ><TT
16009 CLASS="PARAMETER"
16010 ><I
16011 >               write list</I
16012 ></TT
16013 ></A
16014 > parameter and the <A
16015 HREF="#INVALIDUSERS"
16016 ><TT
16017 CLASS="PARAMETER"
16018 ><I
16019 >invalid users</I
16020 ></TT
16021 >
16022                 </A
16023 > parameter.</P
16024 ><P
16025 >Default: <B
16026 CLASS="COMMAND"
16027 >read list = &lt;empty string&gt;</B
16028 ></P
16029 ><P
16030 >Example: <B
16031 CLASS="COMMAND"
16032 >read list = mary, @students</B
16033 ></P
16034 ></DD
16035 ><DT
16036 ><A
16037 NAME="READONLY"
16038 ></A
16039 >&#62;read only (S)</DT
16040 ><DD
16041 ><P
16042 >An inverted synonym is <A
16043 HREF="#WRITEABLE"
16044 >               <TT
16045 CLASS="PARAMETER"
16046 ><I
16047 >writeable</I
16048 ></TT
16049 ></A
16050 >.</P
16051 ><P
16052 >If this parameter is <TT
16053 CLASS="CONSTANT"
16054 >yes</TT
16055 >, then users 
16056                 of a service may not create or modify files in the service's 
16057                 directory.</P
16058 ><P
16059 >Note that a printable service (<B
16060 CLASS="COMMAND"
16061 >printable = yes</B
16062 >)
16063                 will <SPAN
16064 CLASS="emphasis"
16065 ><I
16066 CLASS="EMPHASIS"
16067 >ALWAYS</I
16068 ></SPAN
16069 > allow writing to the directory 
16070                 (user privileges permitting), but only via spooling operations.</P
16071 ><P
16072 >Default: <B
16073 CLASS="COMMAND"
16074 >read only = yes</B
16075 ></P
16076 ></DD
16077 ><DT
16078 ><A
16079 NAME="READRAW"
16080 ></A
16081 >&#62;read raw (G)</DT
16082 ><DD
16083 ><P
16084 >This parameter controls whether or not the server 
16085                 will support the raw read SMB requests when transferring data 
16086                 to clients.</P
16087 ><P
16088 >If enabled, raw reads allow reads of 65535 bytes in 
16089                 one packet. This typically provides a major performance benefit.
16090                 </P
16091 ><P
16092 >However, some clients either negotiate the allowable 
16093                 block size incorrectly or are incapable of supporting larger block 
16094                 sizes, and for these clients you may need to disable raw reads.</P
16095 ><P
16096 >In general this parameter should be viewed as a system tuning 
16097                 tool and left severely alone. See also <A
16098 HREF="#WRITERAW"
16099 >               <TT
16100 CLASS="PARAMETER"
16101 ><I
16102 >write raw</I
16103 ></TT
16104 ></A
16105 >.</P
16106 ><P
16107 >Default: <B
16108 CLASS="COMMAND"
16109 >read raw = yes</B
16110 ></P
16111 ></DD
16112 ><DT
16113 ><A
16114 NAME="READSIZE"
16115 ></A
16116 >&#62;read size (G)</DT
16117 ><DD
16118 ><P
16119 >The option <TT
16120 CLASS="PARAMETER"
16121 ><I
16122 >read size</I
16123 ></TT
16124
16125                 affects the overlap of disk reads/writes with network reads/writes. 
16126                 If the amount of data being transferred in several of the SMB 
16127                 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger 
16128                 than this value then the server begins writing the data before it 
16129                 has received the whole packet from the network, or in the case of 
16130                 SMBreadbraw, it begins writing to the network before all the data 
16131                 has been read from disk.</P
16132 ><P
16133 >This overlapping works best when the speeds of disk and 
16134                 network access are similar, having very little effect when the 
16135                 speed of one is much greater than the other.</P
16136 ><P
16137 >The default value is 16384, but very little experimentation 
16138                 has been done yet to determine the optimal value, and it is likely 
16139                 that the best value will vary greatly between systems anyway. 
16140                 A value over 65536 is pointless and will cause you to allocate 
16141                 memory unnecessarily.</P
16142 ><P
16143 >Default: <B
16144 CLASS="COMMAND"
16145 >read size = 16384</B
16146 ></P
16147 ><P
16148 >Example: <B
16149 CLASS="COMMAND"
16150 >read size = 8192</B
16151 ></P
16152 ></DD
16153 ><DT
16154 ><A
16155 NAME="REALM"
16156 ></A
16157 >&#62;realm (G)</DT
16158 ><DD
16159 ><P
16160 >               This option specifies the kerberos realm to use. The realm is 
16161                 used as the ADS equivalent of the NT4<B
16162 CLASS="COMMAND"
16163 >domain</B
16164 >. It
16165                 is usually set to the DNS name of the kerberos server.
16166                 </P
16167 ><P
16168 >Default: <B
16169 CLASS="COMMAND"
16170 >realm = </B
16171 ></P
16172 ><P
16173 >Example: <B
16174 CLASS="COMMAND"
16175 >realm = mysambabox.mycompany.com</B
16176 ></P
16177 ></DD
16178 ><DT
16179 ><A
16180 NAME="REMOTEANNOUNCE"
16181 ></A
16182 >&#62;remote announce (G)</DT
16183 ><DD
16184 ><P
16185 >This option allows you to setup <A
16186 HREF="nmbd.8.html"
16187 TARGET="_top"
16188 >nmbd(8)</A
16189 > to periodically announce itself 
16190                 to arbitrary IP addresses with an arbitrary workgroup name.</P
16191 ><P
16192 >This is useful if you want your Samba server to appear 
16193                 in a remote workgroup for which the normal browse propagation 
16194                 rules don't work. The remote workgroup can be anywhere that you 
16195                 can send IP packets to.</P
16196 ><P
16197 >For example:</P
16198 ><P
16199 ><B
16200 CLASS="COMMAND"
16201 >remote announce = 192.168.2.255/SERVERS 
16202                 192.168.4.255/STAFF</B
16203 ></P
16204 ><P
16205 >the above line would cause <B
16206 CLASS="COMMAND"
16207 >nmbd</B
16208 > to announce itself 
16209                 to the two given IP addresses using the given workgroup names. 
16210                 If you leave out the workgroup name then the one given in 
16211                 the <A
16212 HREF="#WORKGROUP"
16213 ><TT
16214 CLASS="PARAMETER"
16215 ><I
16216 >workgroup</I
16217 ></TT
16218 ></A
16219
16220                 parameter is used instead.</P
16221 ><P
16222 >The IP addresses you choose would normally be the broadcast 
16223                 addresses of the remote networks, but can also be the IP addresses 
16224                 of known browse masters if your network config is that stable.</P
16225 ><P
16226 >See the documentation file <A
16227 HREF="improved-browsing.html"
16228 TARGET="_top"
16229 >BROWSING</A
16230
16231                 in the <TT
16232 CLASS="FILENAME"
16233 >docs/</TT
16234 > directory.</P
16235 ><P
16236 >Default: <B
16237 CLASS="COMMAND"
16238 >remote announce = &lt;empty string&gt;
16239                 </B
16240 ></P
16241 ></DD
16242 ><DT
16243 ><A
16244 NAME="REMOTEBROWSESYNC"
16245 ></A
16246 >&#62;remote browse sync (G)</DT
16247 ><DD
16248 ><P
16249 >This option allows you to setup <A
16250 HREF="nmbd.8.html"
16251 TARGET="_top"
16252 >nmbd(8)</A
16253 > to periodically request 
16254                 synchronization of browse lists with the master browser of a Samba 
16255                 server that is on a remote segment. This option will allow you to 
16256                 gain browse lists for multiple workgroups across routed networks. This 
16257                 is done in a manner that does not work with any non-Samba servers.</P
16258 ><P
16259 >This is useful if you want your Samba server and all local 
16260                 clients to appear in a remote workgroup for which the normal browse 
16261                 propagation rules don't work. The remote workgroup can be anywhere 
16262                 that you can send IP packets to.</P
16263 ><P
16264 >For example:</P
16265 ><P
16266 ><B
16267 CLASS="COMMAND"
16268 >remote browse sync = 192.168.2.255 192.168.4.255
16269                 </B
16270 ></P
16271 ><P
16272 >the above line would cause <B
16273 CLASS="COMMAND"
16274 >nmbd</B
16275 > to request 
16276                 the master browser on the specified subnets or addresses to 
16277                 synchronize their browse lists with the local server.</P
16278 ><P
16279 >The IP addresses you choose would normally be the broadcast 
16280                 addresses of the remote networks, but can also be the IP addresses 
16281                 of known browse masters if your network config is that stable. If 
16282                 a machine IP address is given Samba makes NO attempt to validate 
16283                 that the remote machine is available, is listening, nor that it 
16284                 is in fact the browse master on its segment.</P
16285 ><P
16286 >Default: <B
16287 CLASS="COMMAND"
16288 >remote browse sync = &lt;empty string&gt;
16289                 </B
16290 ></P
16291 ></DD
16292 ><DT
16293 ><A
16294 NAME="RESTRICTANONYMOUS"
16295 ></A
16296 >&#62;restrict anonymous (G)</DT
16297 ><DD
16298 ><P
16299 >This is a integer parameter, and
16300                 mirrors as much as possible the functinality the
16301                 <TT
16302 CLASS="CONSTANT"
16303 >RestrictAnonymous</TT
16304 >
16305                 registry key does on NT/Win2k.  </P
16306 ><P
16307 >Default: <B
16308 CLASS="COMMAND"
16309 >restrict anonymous = 0</B
16310 ></P
16311 ></DD
16312 ><DT
16313 ><A
16314 NAME="ROOT"
16315 ></A
16316 >&#62;root (G)</DT
16317 ><DD
16318 ><P
16319 >Synonym for <A
16320 HREF="#ROOTDIRECTORY"
16321 >               <TT
16322 CLASS="PARAMETER"
16323 ><I
16324 >root directory"</I
16325 ></TT
16326 ></A
16327 >.</P
16328 ></DD
16329 ><DT
16330 ><A
16331 NAME="ROOTDIR"
16332 ></A
16333 >&#62;root dir (G)</DT
16334 ><DD
16335 ><P
16336 >Synonym for <A
16337 HREF="#ROOTDIRECTORY"
16338 >               <TT
16339 CLASS="PARAMETER"
16340 ><I
16341 >root directory"</I
16342 ></TT
16343 ></A
16344 >.</P
16345 ></DD
16346 ><DT
16347 ><A
16348 NAME="ROOTDIRECTORY"
16349 ></A
16350 >&#62;root directory (G)</DT
16351 ><DD
16352 ><P
16353 >The server will <B
16354 CLASS="COMMAND"
16355 >chroot()</B
16356 > (i.e. 
16357                 Change its root directory) to this directory on startup. This is 
16358                 not strictly necessary for secure operation. Even without it the 
16359                 server will deny access to files not in one of the service entries. 
16360                 It may also check for, and deny access to, soft links to other 
16361                 parts of the filesystem, or attempts to use ".." in file names 
16362                 to access other directories (depending on the setting of the <A
16363 HREF="#WIDELINKS"
16364 ><TT
16365 CLASS="PARAMETER"
16366 ><I
16367 >wide links</I
16368 ></TT
16369 ></A
16370
16371                 parameter).</P
16372 ><P
16373 >Adding a <TT
16374 CLASS="PARAMETER"
16375 ><I
16376 >root directory</I
16377 ></TT
16378 > entry other 
16379                 than "/" adds an extra level of security, but at a price. It 
16380                 absolutely ensures that no access is given to files not in the 
16381                 sub-tree specified in the <TT
16382 CLASS="PARAMETER"
16383 ><I
16384 >root directory</I
16385 ></TT
16386
16387                 option, <SPAN
16388 CLASS="emphasis"
16389 ><I
16390 CLASS="EMPHASIS"
16391 >including</I
16392 ></SPAN
16393 > some files needed for 
16394                 complete operation of the server. To maintain full operability 
16395                 of the server you will need to mirror some system files 
16396                 into the <TT
16397 CLASS="PARAMETER"
16398 ><I
16399 >root directory</I
16400 ></TT
16401 > tree. In particular 
16402                 you will need to mirror <TT
16403 CLASS="FILENAME"
16404 >/etc/passwd</TT
16405 > (or a 
16406                 subset of it), and any binaries or configuration files needed for 
16407                 printing (if required). The set of files that must be mirrored is
16408                 operating system dependent.</P
16409 ><P
16410 >Default: <B
16411 CLASS="COMMAND"
16412 >root directory = /</B
16413 ></P
16414 ><P
16415 >Example: <B
16416 CLASS="COMMAND"
16417 >root directory = /homes/smb</B
16418 ></P
16419 ></DD
16420 ><DT
16421 ><A
16422 NAME="ROOTPOSTEXEC"
16423 ></A
16424 >&#62;root postexec (S)</DT
16425 ><DD
16426 ><P
16427 >This is the same as the <TT
16428 CLASS="PARAMETER"
16429 ><I
16430 >postexec</I
16431 ></TT
16432 >
16433                 parameter except that the command is run as root. This 
16434                 is useful for unmounting filesystems 
16435                 (such as CDROMs) after a connection is closed.</P
16436 ><P
16437 >See also <A
16438 HREF="#POSTEXEC"
16439 ><TT
16440 CLASS="PARAMETER"
16441 ><I
16442 >               postexec</I
16443 ></TT
16444 ></A
16445 >.</P
16446 ><P
16447 >Default: <B
16448 CLASS="COMMAND"
16449 >root postexec = &lt;empty string&gt;
16450                 </B
16451 ></P
16452 ></DD
16453 ><DT
16454 ><A
16455 NAME="ROOTPREEXEC"
16456 ></A
16457 >&#62;root preexec (S)</DT
16458 ><DD
16459 ><P
16460 >This is the same as the <TT
16461 CLASS="PARAMETER"
16462 ><I
16463 >preexec</I
16464 ></TT
16465 >
16466                 parameter except that the command is run as root. This 
16467                 is useful for mounting filesystems (such as CDROMs) when a 
16468                 connection is opened.</P
16469 ><P
16470 >See also <A
16471 HREF="#PREEXEC"
16472 ><TT
16473 CLASS="PARAMETER"
16474 ><I
16475 >               preexec</I
16476 ></TT
16477 ></A
16478 > and <A
16479 HREF="#PREEXECCLOSE"
16480 >               <TT
16481 CLASS="PARAMETER"
16482 ><I
16483 >preexec close</I
16484 ></TT
16485 ></A
16486 >.</P
16487 ><P
16488 >Default: <B
16489 CLASS="COMMAND"
16490 >root preexec = &lt;empty string&gt;
16491                 </B
16492 ></P
16493 ></DD
16494 ><DT
16495 ><A
16496 NAME="ROOTPREEXECCLOSE"
16497 ></A
16498 >&#62;root preexec close (S)</DT
16499 ><DD
16500 ><P
16501 >This is the same as the <TT
16502 CLASS="PARAMETER"
16503 ><I
16504 >preexec close
16505                 </I
16506 ></TT
16507 > parameter except that the command is run as root.</P
16508 ><P
16509 >See also <A
16510 HREF="#PREEXEC"
16511 ><TT
16512 CLASS="PARAMETER"
16513 ><I
16514 >               preexec</I
16515 ></TT
16516 ></A
16517 > and <A
16518 HREF="#PREEXECCLOSE"
16519 >               <TT
16520 CLASS="PARAMETER"
16521 ><I
16522 >preexec close</I
16523 ></TT
16524 ></A
16525 >.</P
16526 ><P
16527 >Default: <B
16528 CLASS="COMMAND"
16529 >root preexec close = no</B
16530 ></P
16531 ></DD
16532 ><DT
16533 ><A
16534 NAME="SECURITY"
16535 ></A
16536 >&#62;security (G)</DT
16537 ><DD
16538 ><P
16539 >This option affects how clients respond to 
16540                 Samba and is one of the most important settings in the <TT
16541 CLASS="FILENAME"
16542 >               smb.conf</TT
16543 > file.</P
16544 ><P
16545 >The option sets the "security mode bit" in replies to 
16546                 protocol negotiations with <SPAN
16547 CLASS="CITEREFENTRY"
16548 ><SPAN
16549 CLASS="REFENTRYTITLE"
16550 >smbd</SPAN
16551 >(8)</SPAN
16552 > to turn share level security on or off. Clients decide 
16553                 based on this bit whether (and how) to transfer user and password 
16554                 information to the server.</P
16555 ><P
16556 >The default is <B
16557 CLASS="COMMAND"
16558 >security = user</B
16559 >, as this is
16560                 the most common setting needed when talking to Windows 98 and 
16561                 Windows NT.</P
16562 ><P
16563 >The alternatives are <B
16564 CLASS="COMMAND"
16565 >security = share</B
16566 >,
16567                 <B
16568 CLASS="COMMAND"
16569 >security = server</B
16570 > or <B
16571 CLASS="COMMAND"
16572 >security = domain
16573                 </B
16574 >.</P
16575 ><P
16576 >In versions of Samba prior to 2.0.0, the default was 
16577                 <B
16578 CLASS="COMMAND"
16579 >security = share</B
16580 > mainly because that was
16581                 the only option at one stage.</P
16582 ><P
16583 >There is a bug in WfWg that has relevance to this 
16584                 setting. When in user or server level security a WfWg client 
16585                 will totally ignore the password you type in the "connect 
16586                 drive" dialog box. This makes it very difficult (if not impossible) 
16587                 to connect to a Samba service as anyone except the user that 
16588                 you are logged into WfWg as.</P
16589 ><P
16590 >If your PCs use usernames that are the same as their 
16591                 usernames on the UNIX machine then you will want to use 
16592                 <B
16593 CLASS="COMMAND"
16594 >security = user</B
16595 >. If you mostly use usernames 
16596                 that don't exist on the UNIX box then use <B
16597 CLASS="COMMAND"
16598 >security = 
16599                 share</B
16600 >.</P
16601 ><P
16602 >You should also use <B
16603 CLASS="COMMAND"
16604 >security = share</B
16605 > if you 
16606                 want to mainly setup shares without a password (guest shares). This 
16607                 is commonly used for a shared printer server. It is more difficult 
16608                 to setup guest shares with <B
16609 CLASS="COMMAND"
16610 >security = user</B
16611 >, see 
16612                 the <A
16613 HREF="#MAPTOGUEST"
16614 ><TT
16615 CLASS="PARAMETER"
16616 ><I
16617 >map to guest</I
16618 ></TT
16619 >
16620                 </A
16621 >parameter for details.</P
16622 ><P
16623 >It is possible to use <B
16624 CLASS="COMMAND"
16625 >smbd</B
16626 > in a <SPAN
16627 CLASS="emphasis"
16628 ><I
16629 CLASS="EMPHASIS"
16630 >               hybrid mode</I
16631 ></SPAN
16632 > where it is offers both user and share 
16633                 level security under different <A
16634 HREF="#NETBIOSALIASES"
16635 >               <TT
16636 CLASS="PARAMETER"
16637 ><I
16638 >NetBIOS aliases</I
16639 ></TT
16640 ></A
16641 >. </P
16642 ><P
16643 >The different settings will now be explained.</P
16644 ><P
16645 ><A
16646 NAME="SECURITYEQUALSSHARE"
16647 ></A
16648 >&#62;<SPAN
16649 CLASS="emphasis"
16650 ><I
16651 CLASS="EMPHASIS"
16652 >SECURITY = SHARE
16653                 </I
16654 ></SPAN
16655 ></P
16656 ><P
16657 >When clients connect to a share level security server they 
16658                 need not log onto the server with a valid username and password before 
16659                 attempting to connect to a shared resource (although modern clients 
16660                 such as Windows 95/98 and Windows NT will send a logon request with 
16661                 a username but no password when talking to a <B
16662 CLASS="COMMAND"
16663 >security = share
16664                 </B
16665 > server). Instead, the clients send authentication information 
16666                 (passwords) on a per-share basis, at the time they attempt to connect 
16667                 to that share.</P
16668 ><P
16669 >Note that <B
16670 CLASS="COMMAND"
16671 >smbd</B
16672 > <SPAN
16673 CLASS="emphasis"
16674 ><I
16675 CLASS="EMPHASIS"
16676 >ALWAYS</I
16677 ></SPAN
16678
16679                 uses a valid UNIX user to act on behalf of the client, even in
16680                 <B
16681 CLASS="COMMAND"
16682 >security = share</B
16683 > level security.</P
16684 ><P
16685 >As clients are not required to send a username to the server
16686                 in share level security, <B
16687 CLASS="COMMAND"
16688 >smbd</B
16689 > uses several
16690                 techniques to determine the correct UNIX user to use on behalf
16691                 of the client.</P
16692 ><P
16693 >A list of possible UNIX usernames to match with the given
16694                 client password is constructed using the following methods :</P
16695 ><P
16696 ></P
16697 ><UL
16698 ><LI
16699 ><P
16700 >If the <A
16701 HREF="#GUESTONLY"
16702 ><TT
16703 CLASS="PARAMETER"
16704 ><I
16705 >guest 
16706                         only</I
16707 ></TT
16708 ></A
16709 > parameter is set, then all the other 
16710                         stages are missed and only the <A
16711 HREF="#GUESTACCOUNT"
16712 >                       <TT
16713 CLASS="PARAMETER"
16714 ><I
16715 >guest account</I
16716 ></TT
16717 ></A
16718 > username is checked.
16719                         </P
16720 ></LI
16721 ><LI
16722 ><P
16723 >Is a username is sent with the share connection 
16724                         request, then this username (after mapping - see <A
16725 HREF="#USERNAMEMAP"
16726 ><TT
16727 CLASS="PARAMETER"
16728 ><I
16729 >username map</I
16730 ></TT
16731 ></A
16732 >), 
16733                         is added as a potential username.</P
16734 ></LI
16735 ><LI
16736 ><P
16737 >If the client did a previous <SPAN
16738 CLASS="emphasis"
16739 ><I
16740 CLASS="EMPHASIS"
16741 >logon
16742                         </I
16743 ></SPAN
16744 > request (the SessionSetup SMB call) then the 
16745                         username sent in this SMB will be added as a potential username.
16746                         </P
16747 ></LI
16748 ><LI
16749 ><P
16750 >The name of the service the client requested is 
16751                         added as a potential username.</P
16752 ></LI
16753 ><LI
16754 ><P
16755 >The NetBIOS name of the client is added to 
16756                         the list as a potential username.</P
16757 ></LI
16758 ><LI
16759 ><P
16760 >Any users on the <A
16761 HREF="#USER"
16762 ><TT
16763 CLASS="PARAMETER"
16764 ><I
16765 >                       user</I
16766 ></TT
16767 ></A
16768 > list are added as potential usernames.
16769                         </P
16770 ></LI
16771 ></UL
16772 ><P
16773 >If the <TT
16774 CLASS="PARAMETER"
16775 ><I
16776 >guest only</I
16777 ></TT
16778 > parameter is 
16779                 not set, then this list is then tried with the supplied password. 
16780                 The first user for whom the password matches will be used as the 
16781                 UNIX user.</P
16782 ><P
16783 >If the <TT
16784 CLASS="PARAMETER"
16785 ><I
16786 >guest only</I
16787 ></TT
16788 > parameter is 
16789                 set, or no username can be determined then if the share is marked 
16790                 as available to the <TT
16791 CLASS="PARAMETER"
16792 ><I
16793 >guest account</I
16794 ></TT
16795 >, then this 
16796                 guest user will be used, otherwise access is denied.</P
16797 ><P
16798 >Note that it can be <SPAN
16799 CLASS="emphasis"
16800 ><I
16801 CLASS="EMPHASIS"
16802 >very</I
16803 ></SPAN
16804 > confusing 
16805                 in share-level security as to which UNIX username will eventually
16806                 be used in granting access.</P
16807 ><P
16808 >See also the section <A
16809 HREF="#AEN239"
16810 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16811 >.</P
16812 ><P
16813 ><A
16814 NAME="SECURITYEQUALSUSER"
16815 ></A
16816 >&#62;<SPAN
16817 CLASS="emphasis"
16818 ><I
16819 CLASS="EMPHASIS"
16820 >SECURITY = USER
16821                 </I
16822 ></SPAN
16823 ></P
16824 ><P
16825 >This is the default security setting in Samba 3.0. 
16826                 With user-level security a client must first "log-on" with a 
16827                 valid username and password (which can be mapped using the <A
16828 HREF="#USERNAMEMAP"
16829 ><TT
16830 CLASS="PARAMETER"
16831 ><I
16832 >username map</I
16833 ></TT
16834 ></A
16835
16836                 parameter). Encrypted passwords (see the <A
16837 HREF="#ENCRYPTPASSWORDS"
16838 >               <TT
16839 CLASS="PARAMETER"
16840 ><I
16841 >encrypted passwords</I
16842 ></TT
16843 ></A
16844 > parameter) can also
16845                 be used in this security mode. Parameters such as <A
16846 HREF="#USER"
16847 >               <TT
16848 CLASS="PARAMETER"
16849 ><I
16850 >user</I
16851 ></TT
16852 ></A
16853 > and <A
16854 HREF="#GUESTONLY"
16855 >               <TT
16856 CLASS="PARAMETER"
16857 ><I
16858 >guest only</I
16859 ></TT
16860 ></A
16861 > if set        are then applied and 
16862                 may change the UNIX user to use on this connection, but only after 
16863                 the user has been successfully authenticated.</P
16864 ><P
16865 ><SPAN
16866 CLASS="emphasis"
16867 ><I
16868 CLASS="EMPHASIS"
16869 >Note</I
16870 ></SPAN
16871 > that the name of the resource being 
16872                 requested is <SPAN
16873 CLASS="emphasis"
16874 ><I
16875 CLASS="EMPHASIS"
16876 >not</I
16877 ></SPAN
16878 > sent to the server until after 
16879                 the server has successfully authenticated the client. This is why 
16880                 guest shares don't work in user level security without allowing 
16881                 the server to automatically map unknown users into the <A
16882 HREF="#GUESTACCOUNT"
16883 ><TT
16884 CLASS="PARAMETER"
16885 ><I
16886 >guest account</I
16887 ></TT
16888 ></A
16889 >. 
16890                 See the <A
16891 HREF="#MAPTOGUEST"
16892 ><TT
16893 CLASS="PARAMETER"
16894 ><I
16895 >map to guest</I
16896 ></TT
16897 >
16898                 </A
16899 > parameter for details on doing this.</P
16900 ><P
16901 >See also the section <A
16902 HREF="#AEN239"
16903 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
16904 >.</P
16905 ><P
16906 ><A
16907 NAME="SECURITYEQUALSDOMAIN"
16908 ></A
16909 >&#62;<SPAN
16910 CLASS="emphasis"
16911 ><I
16912 CLASS="EMPHASIS"
16913 >SECURITY = DOMAIN
16914
16915                 </I
16916 ></SPAN
16917 ></P
16918 ><P
16919 >This mode will only work correctly if <SPAN
16920 CLASS="CITEREFENTRY"
16921 ><SPAN
16922 CLASS="REFENTRYTITLE"
16923 >net</SPAN
16924 >(8)</SPAN
16925 > has been used to add this
16926                 machine into a Windows NT Domain. It expects the <A
16927 HREF="#ENCRYPTPASSWORDS"
16928 ><TT
16929 CLASS="PARAMETER"
16930 ><I
16931 >encrypted passwords</I
16932 ></TT
16933 >
16934                 </A
16935 > parameter to be set to <TT
16936 CLASS="CONSTANT"
16937 >yes</TT
16938 >. In this 
16939                 mode Samba will try to validate the username/password by passing
16940                 it to a Windows NT Primary or Backup Domain Controller, in exactly 
16941                 the same way that a Windows NT Server would do.</P
16942 ><P
16943 ><SPAN
16944 CLASS="emphasis"
16945 ><I
16946 CLASS="EMPHASIS"
16947 >Note</I
16948 ></SPAN
16949 > that a valid UNIX user must still 
16950                 exist as well as the account on the Domain Controller to allow 
16951                 Samba to have a valid UNIX account to map file access to.</P
16952 ><P
16953 ><SPAN
16954 CLASS="emphasis"
16955 ><I
16956 CLASS="EMPHASIS"
16957 >Note</I
16958 ></SPAN
16959 > that from the client's point 
16960                 of view <B
16961 CLASS="COMMAND"
16962 >security = domain</B
16963 > is the same as <B
16964 CLASS="COMMAND"
16965 >security = user
16966                 </B
16967 >. It only affects how the server deals with the authentication, 
16968                 it does not in any way affect what the client sees.</P
16969 ><P
16970 ><SPAN
16971 CLASS="emphasis"
16972 ><I
16973 CLASS="EMPHASIS"
16974 >Note</I
16975 ></SPAN
16976 > that the name of the resource being 
16977                 requested is <SPAN
16978 CLASS="emphasis"
16979 ><I
16980 CLASS="EMPHASIS"
16981 >not</I
16982 ></SPAN
16983 > sent to the server until after 
16984                 the server has successfully authenticated the client. This is why 
16985                 guest shares don't work in user level security without allowing 
16986                 the server to automatically map unknown users into the <A
16987 HREF="#GUESTACCOUNT"
16988 ><TT
16989 CLASS="PARAMETER"
16990 ><I
16991 >guest account</I
16992 ></TT
16993 ></A
16994 >. 
16995                 See the <A
16996 HREF="#MAPTOGUEST"
16997 ><TT
16998 CLASS="PARAMETER"
16999 ><I
17000 >map to guest</I
17001 ></TT
17002 >
17003                 </A
17004 > parameter for details on doing this.</P
17005 ><P
17006 >See also the section <A
17007 HREF="#AEN239"
17008 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
17009 >.</P
17010 ><P
17011 >See also the <A
17012 HREF="#PASSWORDSERVER"
17013 ><TT
17014 CLASS="PARAMETER"
17015 ><I
17016 >password 
17017                 server</I
17018 ></TT
17019 ></A
17020 > parameter and the <A
17021 HREF="#ENCRYPTPASSWORDS"
17022 ><TT
17023 CLASS="PARAMETER"
17024 ><I
17025 >encrypted passwords</I
17026 ></TT
17027 >
17028                 </A
17029 > parameter.</P
17030 ><P
17031 ><A
17032 NAME="SECURITYEQUALSSERVER"
17033 ></A
17034 >&#62;<SPAN
17035 CLASS="emphasis"
17036 ><I
17037 CLASS="EMPHASIS"
17038 >SECURITY = SERVER
17039                 </I
17040 ></SPAN
17041 ></P
17042 ><P
17043 >In this mode Samba will try to validate the username/password 
17044                 by passing it to another SMB server, such as an NT box. If this 
17045                 fails it will revert to <B
17046 CLASS="COMMAND"
17047 >security =
17048                 user</B
17049 >. It expects the <A
17050 HREF="#ENCRYPTPASSWORDS"
17051 ><TT
17052 CLASS="PARAMETER"
17053 ><I
17054 >encrypted passwords</I
17055 ></TT
17056 >
17057                 </A
17058 > parameter to be set to
17059                 <TT
17060 CLASS="CONSTANT"
17061 >yes</TT
17062 >, unless the remote server
17063                 does not support them.  However note
17064                 that if encrypted passwords have been negotiated then Samba cannot 
17065                 revert back to checking the UNIX password file, it must have a valid 
17066                 <TT
17067 CLASS="FILENAME"
17068 >smbpasswd</TT
17069 > file to check users against. See the 
17070                 documentation file in the <TT
17071 CLASS="FILENAME"
17072 >docs/</TT
17073 > directory 
17074                 <TT
17075 CLASS="FILENAME"
17076 >ENCRYPTION.txt</TT
17077 > for details on how to set this 
17078                 up.</P
17079 ><P
17080 ><SPAN
17081 CLASS="emphasis"
17082 ><I
17083 CLASS="EMPHASIS"
17084 >Note</I
17085 ></SPAN
17086 > this mode of operation
17087                 has significant pitfalls, due to the fact that is
17088                 activly initiates a man-in-the-middle attack on the
17089                 remote SMB server.  In particular, this mode of
17090                 operation can cause significant resource consuption on
17091                 the PDC, as it must maintain an active connection for
17092                 the duration of the user's session.  Furthermore, if
17093                 this connection is lost, there is no way to
17094                 reestablish it, and futher authenticaions to the Samba
17095                 server may fail.  (From a single client, till it
17096                 disconnects). </P
17097 ><P
17098 ><SPAN
17099 CLASS="emphasis"
17100 ><I
17101 CLASS="EMPHASIS"
17102 >Note</I
17103 ></SPAN
17104 > that from the client's point of 
17105                 view <B
17106 CLASS="COMMAND"
17107 >security = server</B
17108 > is the same as <B
17109 CLASS="COMMAND"
17110 >               security = user</B
17111 >.  It only affects how the server deals 
17112                 with the authentication, it does not in any way affect what the 
17113                 client sees.</P
17114 ><P
17115 ><SPAN
17116 CLASS="emphasis"
17117 ><I
17118 CLASS="EMPHASIS"
17119 >Note</I
17120 ></SPAN
17121 > that the name of the resource being 
17122                 requested is <SPAN
17123 CLASS="emphasis"
17124 ><I
17125 CLASS="EMPHASIS"
17126 >not</I
17127 ></SPAN
17128 > sent to the server until after 
17129                 the server has successfully authenticated the client. This is why 
17130                 guest shares don't work in user level security without allowing 
17131                 the server to automatically map unknown users into the <A
17132 HREF="#GUESTACCOUNT"
17133 ><TT
17134 CLASS="PARAMETER"
17135 ><I
17136 >guest account</I
17137 ></TT
17138 ></A
17139 >. 
17140                 See the <A
17141 HREF="#MAPTOGUEST"
17142 ><TT
17143 CLASS="PARAMETER"
17144 ><I
17145 >map to guest</I
17146 ></TT
17147 >
17148                 </A
17149 > parameter for details on doing this.</P
17150 ><P
17151 >See also the section <A
17152 HREF="#AEN239"
17153 >               NOTE ABOUT USERNAME/PASSWORD VALIDATION</A
17154 >.</P
17155 ><P
17156 >See also the <A
17157 HREF="#PASSWORDSERVER"
17158 ><TT
17159 CLASS="PARAMETER"
17160 ><I
17161 >password 
17162                 server</I
17163 ></TT
17164 ></A
17165 > parameter and the <A
17166 HREF="#ENCRYPTPASSWORDS"
17167 ><TT
17168 CLASS="PARAMETER"
17169 ><I
17170 >encrypted passwords</I
17171 ></TT
17172 >
17173                 </A
17174 > parameter.</P
17175 ><P
17176 >Default: <B
17177 CLASS="COMMAND"
17178 >security = USER</B
17179 ></P
17180 ><P
17181 >Example: <B
17182 CLASS="COMMAND"
17183 >security = DOMAIN</B
17184 ></P
17185 ></DD
17186 ><DT
17187 ><A
17188 NAME="SECURITYMASK"
17189 ></A
17190 >&#62;security mask (S)</DT
17191 ><DD
17192 ><P
17193 >This parameter controls what UNIX permission 
17194                 bits can be modified when a Windows NT client is manipulating 
17195                 the UNIX permission on a file using the native NT security 
17196                 dialog box.</P
17197 ><P
17198 >This parameter is applied as a mask (AND'ed with) to 
17199                 the changed permission bits, thus preventing any bits not in 
17200                 this mask from being modified. Essentially, zero bits in this 
17201                 mask may be treated as a set of bits the user is not allowed 
17202                 to change.</P
17203 ><P
17204 >If not set explicitly this parameter is 0777, allowing
17205                 a user to modify all the user/group/world permissions on a file.
17206                 </P
17207 ><P
17208 ><SPAN
17209 CLASS="emphasis"
17210 ><I
17211 CLASS="EMPHASIS"
17212 >Note</I
17213 ></SPAN
17214 > that users who can access the 
17215                 Samba server through other means can easily bypass this 
17216                 restriction, so it is primarily useful for standalone 
17217                 "appliance" systems.  Administrators of most normal systems will 
17218                 probably want to leave it set to <TT
17219 CLASS="CONSTANT"
17220 >0777</TT
17221 >.</P
17222 ><P
17223 >See also the <A
17224 HREF="#FORCEDIRECTORYSECURITYMODE"
17225 >               <TT
17226 CLASS="PARAMETER"
17227 ><I
17228 >force directory security mode</I
17229 ></TT
17230 ></A
17231 >, 
17232                 <A
17233 HREF="#DIRECTORYSECURITYMASK"
17234 ><TT
17235 CLASS="PARAMETER"
17236 ><I
17237 >directory 
17238                 security mask</I
17239 ></TT
17240 ></A
17241 >, <A
17242 HREF="#FORCESECURITYMODE"
17243 >               <TT
17244 CLASS="PARAMETER"
17245 ><I
17246 >force security mode</I
17247 ></TT
17248 ></A
17249 > parameters.</P
17250 ><P
17251 >Default: <B
17252 CLASS="COMMAND"
17253 >security mask = 0777</B
17254 ></P
17255 ><P
17256 >Example: <B
17257 CLASS="COMMAND"
17258 >security mask = 0770</B
17259 ></P
17260 ></DD
17261 ><DT
17262 ><A
17263 NAME="SERVERSTRING"
17264 ></A
17265 >&#62;server string (G)</DT
17266 ><DD
17267 ><P
17268 >This controls what string will show up in the 
17269                 printer comment box in print manager and next to the IPC connection 
17270                 in <B
17271 CLASS="COMMAND"
17272 >net view</B
17273 >. It can be any string that you wish 
17274                 to show to your users.</P
17275 ><P
17276 >It also sets what will appear in browse lists next 
17277                 to the machine name.</P
17278 ><P
17279 >A <TT
17280 CLASS="PARAMETER"
17281 ><I
17282 >%v</I
17283 ></TT
17284 > will be replaced with the Samba 
17285                 version number.</P
17286 ><P
17287 >A <TT
17288 CLASS="PARAMETER"
17289 ><I
17290 >%h</I
17291 ></TT
17292 > will be replaced with the 
17293                 hostname.</P
17294 ><P
17295 >Default: <B
17296 CLASS="COMMAND"
17297 >server string = Samba %v</B
17298 ></P
17299 ><P
17300 >Example: <B
17301 CLASS="COMMAND"
17302 >server string = University of GNUs Samba 
17303                 Server</B
17304 ></P
17305 ></DD
17306 ><DT
17307 ><A
17308 NAME="SETDIRECTORY"
17309 ></A
17310 >&#62;set directory (S)</DT
17311 ><DD
17312 ><P
17313 >If <B
17314 CLASS="COMMAND"
17315 >set directory = no</B
17316 >, then 
17317                 users of the service may not use the setdir command to change 
17318                 directory.</P
17319 ><P
17320 >The <B
17321 CLASS="COMMAND"
17322 >setdir</B
17323 > command is only implemented 
17324                 in the Digital Pathworks client. See the Pathworks documentation 
17325                 for details.</P
17326 ><P
17327 >Default: <B
17328 CLASS="COMMAND"
17329 >set directory = no</B
17330 ></P
17331 ></DD
17332 ><DT
17333 ><A
17334 NAME="SHAREMODES"
17335 ></A
17336 >&#62;share modes (S)</DT
17337 ><DD
17338 ><P
17339 >This enables or disables the honoring of 
17340                 the <TT
17341 CLASS="PARAMETER"
17342 ><I
17343 >share modes</I
17344 ></TT
17345 > during a file open. These 
17346                 modes are used by clients to gain exclusive read or write access 
17347                 to a file.</P
17348 ><P
17349 >These open modes are not directly supported by UNIX, so
17350                 they are simulated using shared memory, or lock files if your 
17351                 UNIX doesn't support shared memory (almost all do).</P
17352 ><P
17353 >The share modes that are enabled by this option are 
17354                 <TT
17355 CLASS="CONSTANT"
17356 >DENY_DOS</TT
17357 >, <TT
17358 CLASS="CONSTANT"
17359 >DENY_ALL</TT
17360 >,
17361                 <TT
17362 CLASS="CONSTANT"
17363 >DENY_READ</TT
17364 >, <TT
17365 CLASS="CONSTANT"
17366 >DENY_WRITE</TT
17367 >,
17368                 <TT
17369 CLASS="CONSTANT"
17370 >DENY_NONE</TT
17371 > and <TT
17372 CLASS="CONSTANT"
17373 >DENY_FCB</TT
17374 >.
17375                 </P
17376 ><P
17377 >This option gives full share compatibility and enabled 
17378                 by default.</P
17379 ><P
17380 >You should <SPAN
17381 CLASS="emphasis"
17382 ><I
17383 CLASS="EMPHASIS"
17384 >NEVER</I
17385 ></SPAN
17386 > turn this parameter 
17387                 off as many Windows applications will break if you do so.</P
17388 ><P
17389 >Default: <B
17390 CLASS="COMMAND"
17391 >share modes = yes</B
17392 ></P
17393 ></DD
17394 ><DT
17395 ><A
17396 NAME="SHORTPRESERVECASE"
17397 ></A
17398 >&#62;short preserve case (S)</DT
17399 ><DD
17400 ><P
17401 >This boolean parameter controls if new files 
17402                 which conform to 8.3 syntax, that is all in upper case and of 
17403                 suitable length, are created upper case, or if they are forced 
17404                 to be the <A
17405 HREF="#DEFAULTCASE"
17406 ><TT
17407 CLASS="PARAMETER"
17408 ><I
17409 >default case
17410                 </I
17411 ></TT
17412 ></A
17413 >. This  option can be use with <A
17414 HREF="#PRESERVECASE"
17415 ><B
17416 CLASS="COMMAND"
17417 >preserve case = yes</B
17418 >
17419                 </A
17420 > to permit long filenames to retain their case, while short 
17421                 names are lowered. </P
17422 ><P
17423 >See the section on <A
17424 HREF="#AEN206"
17425 >               NAME MANGLING</A
17426 >.</P
17427 ><P
17428 >Default: <B
17429 CLASS="COMMAND"
17430 >short preserve case = yes</B
17431 ></P
17432 ></DD
17433 ><DT
17434 ><A
17435 NAME="SHOWADDPRINTERWIZARD"
17436 ></A
17437 >&#62;show add printer wizard (G)</DT
17438 ><DD
17439 ><P
17440 >With the introduction of MS-RPC based printing support
17441                 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will 
17442                 appear on Samba hosts in the share listing.  Normally this folder will 
17443                 contain an icon for the MS Add Printer Wizard (APW).  However, it is 
17444                 possible to disable this feature regardless of the level of privilege 
17445                 of the connected user.</P
17446 ><P
17447 >Under normal circumstances, the Windows NT/2000 client will 
17448                 open a handle on the printer server with OpenPrinterEx() asking for
17449                 Administrator privileges.  If the user does not have administrative
17450                 access on the print server (i.e is not root or a member of the 
17451                 <TT
17452 CLASS="PARAMETER"
17453 ><I
17454 >printer admin</I
17455 ></TT
17456 > group), the OpenPrinterEx() 
17457                 call fails and the client makes another open call with a request for 
17458                 a lower privilege level.  This should succeed, however the APW 
17459                 icon will not be displayed.</P
17460 ><P
17461 >Disabling the <TT
17462 CLASS="PARAMETER"
17463 ><I
17464 >show add printer wizard</I
17465 ></TT
17466 >
17467                 parameter will always cause the OpenPrinterEx() on the server
17468                 to fail.  Thus the APW icon will never be displayed. <SPAN
17469 CLASS="emphasis"
17470 ><I
17471 CLASS="EMPHASIS"
17472 >               Note :</I
17473 ></SPAN
17474 >This does not prevent the same user from having 
17475                 administrative privilege on an individual printer.</P
17476 ><P
17477 >See also <A
17478 HREF="#ADDPRINTERCOMMAND"
17479 ><TT
17480 CLASS="PARAMETER"
17481 ><I
17482 >addprinter
17483                 command</I
17484 ></TT
17485 ></A
17486 >, <A
17487 HREF="#DELETEPRINTERCOMMAND"
17488 >               <TT
17489 CLASS="PARAMETER"
17490 ><I
17491 >deleteprinter command</I
17492 ></TT
17493 ></A
17494 >, <A
17495 HREF="#PRINTERADMIN"
17496 ><TT
17497 CLASS="PARAMETER"
17498 ><I
17499 >printer admin</I
17500 ></TT
17501 ></A
17502 ></P
17503 ><P
17504 >Default :<B
17505 CLASS="COMMAND"
17506 >show add printer wizard = yes</B
17507 ></P
17508 ></DD
17509 ><DT
17510 ><A
17511 NAME="SHUTDOWNSCRIPT"
17512 ></A
17513 >&#62;shutdown script (G)</DT
17514 ><DD
17515 ><P
17516 ><SPAN
17517 CLASS="emphasis"
17518 ><I
17519 CLASS="EMPHASIS"
17520 >This parameter only exists in the HEAD cvs branch</I
17521 ></SPAN
17522 >
17523                 This a full path name to a script called by
17524                 <A
17525 HREF="smbd.8.html"
17526 TARGET="_top"
17527 ><B
17528 CLASS="COMMAND"
17529 >smbd(8)</B
17530 ></A
17531 > that
17532                 should start a shutdown procedure.</P
17533 ><P
17534 >This command will be run as the user connected to the
17535                 server.</P
17536 ><P
17537 >%m %t %r %f parameters are expanded</P
17538 ><P
17539 ><TT
17540 CLASS="PARAMETER"
17541 ><I
17542 >%m</I
17543 ></TT
17544 > will be substituted with the
17545                 shutdown message sent to the server.</P
17546 ><P
17547 ><TT
17548 CLASS="PARAMETER"
17549 ><I
17550 >%t</I
17551 ></TT
17552 > will be substituted with the
17553                 number of seconds to wait before effectively starting the
17554                 shutdown procedure.</P
17555 ><P
17556 ><TT
17557 CLASS="PARAMETER"
17558 ><I
17559 >%r</I
17560 ></TT
17561 > will be substituted with the
17562                 switch <SPAN
17563 CLASS="emphasis"
17564 ><I
17565 CLASS="EMPHASIS"
17566 >-r</I
17567 ></SPAN
17568 >. It means reboot after shutdown
17569                 for NT.
17570                 </P
17571 ><P
17572 ><TT
17573 CLASS="PARAMETER"
17574 ><I
17575 >%f</I
17576 ></TT
17577 > will be substituted with the
17578                 switch <SPAN
17579 CLASS="emphasis"
17580 ><I
17581 CLASS="EMPHASIS"
17582 >-f</I
17583 ></SPAN
17584 >. It means force the shutdown
17585                 even if applications do not respond for NT.</P
17586 ><P
17587 >Default: <SPAN
17588 CLASS="emphasis"
17589 ><I
17590 CLASS="EMPHASIS"
17591 >None</I
17592 ></SPAN
17593 >.</P
17594 ><P
17595 >Example: <B
17596 CLASS="COMMAND"
17597 >abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</B
17598 ></P
17599 ><P
17600 >Shutdown script example:
17601 <PRE
17602 CLASS="PROGRAMLISTING"
17603 >#!/bin/bash
17604                 
17605 $time=0
17606 let "time/60"
17607 let "time++"
17608
17609 /sbin/shutdown $3 $4 +$time $1 &amp;</PRE
17610 >
17611                 Shutdown does not return so we need to launch it in background.
17612                 </P
17613 ><P
17614 >See also <A
17615 HREF="#ABORTSHUTDOWNSCRIPT"
17616 ><TT
17617 CLASS="PARAMETER"
17618 ><I
17619 >abort shutdown script</I
17620 ></TT
17621 ></A
17622 >.</P
17623 ></DD
17624 ><DT
17625 ><A
17626 NAME="SMBPASSWDFILE"
17627 ></A
17628 >&#62;smb passwd file (G)</DT
17629 ><DD
17630 ><P
17631 >This option sets the path to the encrypted 
17632                 smbpasswd file.  By default the path to the smbpasswd file 
17633                 is compiled into Samba.</P
17634 ><P
17635 >Default: <B
17636 CLASS="COMMAND"
17637 >smb passwd file = ${prefix}/private/smbpasswd
17638                 </B
17639 ></P
17640 ><P
17641 >Example: <B
17642 CLASS="COMMAND"
17643 >smb passwd file = /etc/samba/smbpasswd
17644                 </B
17645 ></P
17646 ></DD
17647 ><DT
17648 ><A
17649 NAME="SMBPORTS"
17650 ></A
17651 >&#62;smb ports (G)</DT
17652 ><DD
17653 ><P
17654 >Specifies which ports the server should listen on
17655                 for SMB traffic.
17656                 </P
17657 ><P
17658 >Default: <B
17659 CLASS="COMMAND"
17660 >smb ports = 445 139</B
17661 ></P
17662 ></DD
17663 ><DT
17664 ><A
17665 NAME="SOCKETADDRESS"
17666 ></A
17667 >&#62;socket address (G)</DT
17668 ><DD
17669 ><P
17670 >This option allows you to control what 
17671                 address Samba will listen for connections on. This is used to 
17672                 support multiple virtual interfaces on the one server, each 
17673                 with a different configuration.</P
17674 ><P
17675 >By default Samba will accept connections on any 
17676                 address.</P
17677 ><P
17678 >Example: <B
17679 CLASS="COMMAND"
17680 >socket address = 192.168.2.20</B
17681 >
17682                 </P
17683 ></DD
17684 ><DT
17685 ><A
17686 NAME="SOCKETOPTIONS"
17687 ></A
17688 >&#62;socket options (G)</DT
17689 ><DD
17690 ><P
17691 >This option allows you to set socket options 
17692                 to be used when talking with the client.</P
17693 ><P
17694 >Socket options are controls on the networking layer 
17695                 of the operating systems which allow the connection to be 
17696                 tuned.</P
17697 ><P
17698 >This option will typically be used to tune your Samba 
17699                 server for optimal performance for your local network. There is 
17700                 no way that Samba can know what the optimal parameters are for 
17701                 your net, so you must experiment and choose them yourself. We 
17702                 strongly suggest you read the appropriate documentation for your 
17703                 operating system first (perhaps <B
17704 CLASS="COMMAND"
17705 >man setsockopt</B
17706
17707                 will help).</P
17708 ><P
17709 >You may find that on some systems Samba will say 
17710                 "Unknown socket option" when you supply an option. This means you 
17711                 either incorrectly  typed it or you need to add an include file 
17712                 to includes.h for your OS.  If the latter is the case please 
17713                 send the patch to <A
17714 HREF="mailto:samba@samba.org"
17715 TARGET="_top"
17716 >               samba@samba.org</A
17717 >.</P
17718 ><P
17719 >Any of the supported socket options may be combined 
17720                 in any way you like, as long as your OS allows it.</P
17721 ><P
17722 >This is the list of socket options currently settable 
17723                 using this option:</P
17724 ><P
17725 ></P
17726 ><UL
17727 ><LI
17728 ><P
17729 >SO_KEEPALIVE</P
17730 ></LI
17731 ><LI
17732 ><P
17733 >SO_REUSEADDR</P
17734 ></LI
17735 ><LI
17736 ><P
17737 >SO_BROADCAST</P
17738 ></LI
17739 ><LI
17740 ><P
17741 >TCP_NODELAY</P
17742 ></LI
17743 ><LI
17744 ><P
17745 >IPTOS_LOWDELAY</P
17746 ></LI
17747 ><LI
17748 ><P
17749 >IPTOS_THROUGHPUT</P
17750 ></LI
17751 ><LI
17752 ><P
17753 >SO_SNDBUF *</P
17754 ></LI
17755 ><LI
17756 ><P
17757 >SO_RCVBUF *</P
17758 ></LI
17759 ><LI
17760 ><P
17761 >SO_SNDLOWAT *</P
17762 ></LI
17763 ><LI
17764 ><P
17765 >SO_RCVLOWAT *</P
17766 ></LI
17767 ></UL
17768 ><P
17769 >Those marked with a <SPAN
17770 CLASS="emphasis"
17771 ><I
17772 CLASS="EMPHASIS"
17773 >'*'</I
17774 ></SPAN
17775 > take an integer 
17776                 argument. The others can optionally take a 1 or 0 argument to enable 
17777                 or disable the option, by default they will be enabled if you 
17778                 don't specify 1 or 0.</P
17779 ><P
17780 >To specify an argument use the syntax SOME_OPTION = VALUE 
17781                 for example <B
17782 CLASS="COMMAND"
17783 >SO_SNDBUF = 8192</B
17784 >. Note that you must 
17785                 not have any spaces before or after the = sign.</P
17786 ><P
17787 >If you are on a local network then a sensible option 
17788                 might be</P
17789 ><P
17790 ><B
17791 CLASS="COMMAND"
17792 >socket options = IPTOS_LOWDELAY</B
17793 ></P
17794 ><P
17795 >If you have a local network then you could try:</P
17796 ><P
17797 ><B
17798 CLASS="COMMAND"
17799 >socket options = IPTOS_LOWDELAY TCP_NODELAY</B
17800 ></P
17801 ><P
17802 >If you are on a wide area network then perhaps try 
17803                 setting IPTOS_THROUGHPUT. </P
17804 ><P
17805 >Note that several of the options may cause your Samba 
17806                 server to fail completely. Use these options with caution!</P
17807 ><P
17808 >Default: <B
17809 CLASS="COMMAND"
17810 >socket options = TCP_NODELAY</B
17811 ></P
17812 ><P
17813 >Example: <B
17814 CLASS="COMMAND"
17815 >socket options = IPTOS_LOWDELAY</B
17816 ></P
17817 ></DD
17818 ><DT
17819 ><A
17820 NAME="SOURCEENVIRONMENT"
17821 ></A
17822 >&#62;source environment (G)</DT
17823 ><DD
17824 ><P
17825 >This parameter causes Samba to set environment 
17826                 variables as per the content of the file named.</P
17827 ><P
17828 >If the value of this parameter starts with a "|" character 
17829                 then Samba will treat that value as a pipe command to open and 
17830                 will set the environment variables from the output of the pipe.</P
17831 ><P
17832 >The contents of the file or the output of the pipe should 
17833                 be formatted as the output of the standard Unix <B
17834 CLASS="COMMAND"
17835 >env(1)
17836                 </B
17837 > command. This is of the form :</P
17838 ><P
17839 >Example environment entry:</P
17840 ><P
17841 ><B
17842 CLASS="COMMAND"
17843 >SAMBA_NETBIOS_NAME = myhostname</B
17844 ></P
17845 ><P
17846 >Default: <SPAN
17847 CLASS="emphasis"
17848 ><I
17849 CLASS="EMPHASIS"
17850 >No default value</I
17851 ></SPAN
17852 ></P
17853 ><P
17854 >Examples: <B
17855 CLASS="COMMAND"
17856 >source environment = |/etc/smb.conf.sh
17857                 </B
17858 ></P
17859 ><P
17860 >Example: <B
17861 CLASS="COMMAND"
17862 >source environment = 
17863                 /usr/local/smb_env_vars</B
17864 ></P
17865 ></DD
17866 ><DT
17867 ><A
17868 NAME="SPNEGO"
17869 ></A
17870 >&#62;use spnego (G)</DT
17871 ><DD
17872 ><P
17873 > This variable controls controls whether samba will try 
17874                 to use Simple and Protected NEGOciation (as specified by rfc2478) with 
17875                 WindowsXP and Windows2000sp2 clients to agree upon an authentication mechanism. 
17876                 Unless further issues are discovered with our SPNEGO
17877                 implementation, there is no reason this should ever be
17878                 disabled.</P
17879 ><P
17880 >Default:  <SPAN
17881 CLASS="emphasis"
17882 ><I
17883 CLASS="EMPHASIS"
17884 >use spnego = yes</I
17885 ></SPAN
17886 ></P
17887 ></DD
17888 ><DT
17889 ><A
17890 NAME="STATCACHE"
17891 ></A
17892 >&#62;stat cache (G)</DT
17893 ><DD
17894 ><P
17895 >This parameter determines if <SPAN
17896 CLASS="CITEREFENTRY"
17897 ><SPAN
17898 CLASS="REFENTRYTITLE"
17899 >smbd</SPAN
17900 >(8)</SPAN
17901 > will use a cache in order to 
17902                 speed up case insensitive name mappings. You should never need 
17903                 to change this parameter.</P
17904 ><P
17905 >Default: <B
17906 CLASS="COMMAND"
17907 >stat cache = yes</B
17908 ></P
17909 ></DD
17910 ><DT
17911 ><A
17912 NAME="STATCACHESIZE"
17913 ></A
17914 >&#62;stat cache size (G)</DT
17915 ><DD
17916 ><P
17917 >This parameter determines the number of 
17918                 entries in the <TT
17919 CLASS="PARAMETER"
17920 ><I
17921 >stat cache</I
17922 ></TT
17923 >.  You should 
17924                 never need to change this parameter.</P
17925 ><P
17926 >Default: <B
17927 CLASS="COMMAND"
17928 >stat cache size = 50</B
17929 ></P
17930 ></DD
17931 ><DT
17932 ><A
17933 NAME="STRICTALLOCATE"
17934 ></A
17935 >&#62;strict allocate (S)</DT
17936 ><DD
17937 ><P
17938 >This is a boolean that controls the handling of 
17939                 disk space allocation in the server. When this is set to <TT
17940 CLASS="CONSTANT"
17941 >yes</TT
17942
17943                 the server will change from UNIX behaviour of not committing real
17944                 disk storage blocks when a file is extended to the Windows behaviour
17945                 of actually forcing the disk system to allocate real storage blocks
17946                 when a file is created or extended to be a given size. In UNIX
17947                 terminology this means that Samba will stop creating sparse files.
17948                 This can be slow on some systems.</P
17949 ><P
17950 >When strict allocate is <TT
17951 CLASS="CONSTANT"
17952 >no</TT
17953 > the server does sparse
17954                 disk block allocation when a file is extended.</P
17955 ><P
17956 >Setting this to <TT
17957 CLASS="CONSTANT"
17958 >yes</TT
17959 > can help Samba return
17960                 out of quota messages on systems that are restricting the disk quota
17961                 of users.</P
17962 ><P
17963 >Default: <B
17964 CLASS="COMMAND"
17965 >strict allocate = no</B
17966 ></P
17967 ></DD
17968 ><DT
17969 ><A
17970 NAME="STRICTLOCKING"
17971 ></A
17972 >&#62;strict locking (S)</DT
17973 ><DD
17974 ><P
17975 >This is a boolean that controls the handling of 
17976                 file locking in the server. When this is set to <TT
17977 CLASS="CONSTANT"
17978 >yes</TT
17979
17980                 the server will check every read and write access for file locks, and 
17981                 deny access if locks exist. This can be slow on some systems.</P
17982 ><P
17983 >When strict locking is <TT
17984 CLASS="CONSTANT"
17985 >no</TT
17986 > the server does file 
17987                 lock checks only when the client explicitly asks for them.</P
17988 ><P
17989 >Well-behaved clients always ask for lock checks when it 
17990                 is important, so in the vast majority of cases <B
17991 CLASS="COMMAND"
17992 >strict 
17993                 locking = no</B
17994 > is preferable.</P
17995 ><P
17996 >Default: <B
17997 CLASS="COMMAND"
17998 >strict locking = no</B
17999 ></P
18000 ></DD
18001 ><DT
18002 ><A
18003 NAME="STRICTSYNC"
18004 ></A
18005 >&#62;strict sync (S)</DT
18006 ><DD
18007 ><P
18008 >Many Windows applications (including the Windows 
18009                 98 explorer shell) seem to confuse flushing buffer contents to 
18010                 disk with doing a sync to disk. Under UNIX, a sync call forces 
18011                 the process to be suspended until the kernel has ensured that 
18012                 all outstanding data in kernel disk buffers has been safely stored 
18013                 onto stable storage. This is very slow and should only be done 
18014                 rarely. Setting this parameter to <TT
18015 CLASS="CONSTANT"
18016 >no</TT
18017 > (the 
18018                 default) means that <SPAN
18019 CLASS="CITEREFENTRY"
18020 ><SPAN
18021 CLASS="REFENTRYTITLE"
18022 >smbd</SPAN
18023 >(8)</SPAN
18024 > ignores the Windows applications requests for
18025                 a sync call. There is only a possibility of losing data if the
18026                 operating system itself that Samba is running on crashes, so there is
18027                 little danger in this default setting. In addition, this fixes many
18028                 performance problems that people have reported with the new Windows98
18029                 explorer shell file copies.</P
18030 ><P
18031 >See also the <A
18032 HREF="#SYNCALWAYS"
18033 ><TT
18034 CLASS="PARAMETER"
18035 ><I
18036 >sync 
18037                 always&#62;</I
18038 ></TT
18039 ></A
18040 > parameter.</P
18041 ><P
18042 >Default: <B
18043 CLASS="COMMAND"
18044 >strict sync = no</B
18045 ></P
18046 ></DD
18047 ><DT
18048 ><A
18049 NAME="STRIPDOT"
18050 ></A
18051 >&#62;strip dot (G)</DT
18052 ><DD
18053 ><P
18054 >This is a boolean that controls whether to 
18055                 strip trailing dots off UNIX filenames. This helps with some 
18056                 CDROMs that have filenames ending in a single dot.</P
18057 ><P
18058 >Default: <B
18059 CLASS="COMMAND"
18060 >strip dot = no</B
18061 ></P
18062 ></DD
18063 ><DT
18064 ><A
18065 NAME="SYNCALWAYS"
18066 ></A
18067 >&#62;sync always (S)</DT
18068 ><DD
18069 ><P
18070 >This is a boolean parameter that controls 
18071                 whether writes will always be written to stable storage before 
18072                 the write call returns. If this is <TT
18073 CLASS="CONSTANT"
18074 >no</TT
18075 > then the server will be 
18076                 guided by the client's request in each write call (clients can 
18077                 set a bit indicating that a particular write should be synchronous). 
18078                 If this is <TT
18079 CLASS="CONSTANT"
18080 >yes</TT
18081 > then every write will be followed by a <B
18082 CLASS="COMMAND"
18083 >fsync()
18084                 </B
18085 > call to ensure the data is written to disk. Note that 
18086                 the <TT
18087 CLASS="PARAMETER"
18088 ><I
18089 >strict sync</I
18090 ></TT
18091 > parameter must be set to
18092                 <TT
18093 CLASS="CONSTANT"
18094 >yes</TT
18095 > in order for this parameter to have 
18096                 any affect.</P
18097 ><P
18098 >See also the <A
18099 HREF="#STRICTSYNC"
18100 ><TT
18101 CLASS="PARAMETER"
18102 ><I
18103 >strict 
18104                 sync</I
18105 ></TT
18106 ></A
18107 > parameter.</P
18108 ><P
18109 >Default: <B
18110 CLASS="COMMAND"
18111 >sync always = no</B
18112 ></P
18113 ></DD
18114 ><DT
18115 ><A
18116 NAME="SYSLOG"
18117 ></A
18118 >&#62;syslog (G)</DT
18119 ><DD
18120 ><P
18121 >This parameter maps how Samba debug messages 
18122                 are logged onto the system syslog logging levels. Samba debug 
18123                 level zero maps onto syslog <TT
18124 CLASS="CONSTANT"
18125 >LOG_ERR</TT
18126 >, debug 
18127                 level one maps onto <TT
18128 CLASS="CONSTANT"
18129 >LOG_WARNING</TT
18130 >, debug level 
18131                 two maps onto <TT
18132 CLASS="CONSTANT"
18133 >LOG_NOTICE</TT
18134 >, debug level three 
18135                 maps onto LOG_INFO. All higher levels are mapped to <TT
18136 CLASS="CONSTANT"
18137 >               LOG_DEBUG</TT
18138 >.</P
18139 ><P
18140 >This parameter sets the threshold for sending messages 
18141                 to syslog.  Only messages with debug level less than this value 
18142                 will be sent to syslog.</P
18143 ><P
18144 >Default: <B
18145 CLASS="COMMAND"
18146 >syslog = 1</B
18147 ></P
18148 ></DD
18149 ><DT
18150 ><A
18151 NAME="SYSLOGONLY"
18152 ></A
18153 >&#62;syslog only (G)</DT
18154 ><DD
18155 ><P
18156 >If this parameter is set then Samba debug 
18157                 messages are logged into the system syslog only, and not to 
18158                 the debug log files.</P
18159 ><P
18160 >Default: <B
18161 CLASS="COMMAND"
18162 >syslog only = no</B
18163 ></P
18164 ></DD
18165 ><DT
18166 ><A
18167 NAME="TEMPLATEHOMEDIR"
18168 ></A
18169 >&#62;template homedir (G)</DT
18170 ><DD
18171 ><P
18172 >When filling out the user information for a Windows NT 
18173                 user, the <A
18174 HREF="winbindd.8.html"
18175 TARGET="_top"
18176 >winbindd(8)</A
18177 > daemon 
18178                 uses this parameter to fill in the home directory for that user.  
18179                 If the string <TT
18180 CLASS="PARAMETER"
18181 ><I
18182 >%D</I
18183 ></TT
18184 > is present it is substituted 
18185                 with the user's Windows NT domain name.  If the string <TT
18186 CLASS="PARAMETER"
18187 ><I
18188 >%U
18189                 </I
18190 ></TT
18191 > is present it is substituted with the user's Windows 
18192                 NT user name.</P
18193 ><P
18194 >Default: <B
18195 CLASS="COMMAND"
18196 >template homedir = /home/%D/%U</B
18197 ></P
18198 ></DD
18199 ><DT
18200 ><A
18201 NAME="TEMPLATESHELL"
18202 ></A
18203 >&#62;template shell (G)</DT
18204 ><DD
18205 ><P
18206 >When filling out the user information for a Windows NT 
18207                 user, the <SPAN
18208 CLASS="CITEREFENTRY"
18209 ><SPAN
18210 CLASS="REFENTRYTITLE"
18211 >winbindd</SPAN
18212 >(8)</SPAN
18213 > daemon 
18214                 uses this parameter to fill in the login shell for that user.</P
18215 ><P
18216 >Default: <B
18217 CLASS="COMMAND"
18218 >template shell = /bin/false</B
18219 ></P
18220 ></DD
18221 ><DT
18222 ><A
18223 NAME="TIMEOFFSET"
18224 ></A
18225 >&#62;time offset (G)</DT
18226 ><DD
18227 ><P
18228 >This parameter is a setting in minutes to add 
18229                 to the normal GMT to local time conversion. This is useful if 
18230                 you are serving a lot of PCs that have incorrect daylight 
18231                 saving time handling.</P
18232 ><P
18233 >Default: <B
18234 CLASS="COMMAND"
18235 >time offset = 0</B
18236 ></P
18237 ><P
18238 >Example: <B
18239 CLASS="COMMAND"
18240 >time offset = 60</B
18241 ></P
18242 ></DD
18243 ><DT
18244 ><A
18245 NAME="TIMESERVER"
18246 ></A
18247 >&#62;time server (G)</DT
18248 ><DD
18249 ><P
18250 >This parameter determines if <SPAN
18251 CLASS="CITEREFENTRY"
18252 ><SPAN
18253 CLASS="REFENTRYTITLE"
18254 >nmbd</SPAN
18255 >(8)</SPAN
18256 > advertises itself as a time server to Windows 
18257                 clients.</P
18258 ><P
18259 >Default: <B
18260 CLASS="COMMAND"
18261 >time server = no</B
18262 ></P
18263 ></DD
18264 ><DT
18265 ><A
18266 NAME="TIMESTAMPLOGS"
18267 ></A
18268 >&#62;timestamp logs (G)</DT
18269 ><DD
18270 ><P
18271 >Synonym for <A
18272 HREF="#DEBUGTIMESTAMP"
18273 ><TT
18274 CLASS="PARAMETER"
18275 ><I
18276 >               debug timestamp</I
18277 ></TT
18278 ></A
18279 >.</P
18280 ></DD
18281 ><DT
18282 ><A
18283 NAME="TOTALPRINTJOBS"
18284 ></A
18285 >&#62;total print jobs (G)</DT
18286 ><DD
18287 ><P
18288 >This parameter accepts an integer value which defines
18289                 a limit on the maximum number of print jobs that will be accepted 
18290                 system wide at any given time.  If a print job is submitted
18291                 by a client which will exceed this number, then <SPAN
18292 CLASS="CITEREFENTRY"
18293 ><SPAN
18294 CLASS="REFENTRYTITLE"
18295 >smbd</SPAN
18296 >(8)</SPAN
18297 > will return an 
18298                 error indicating that no space is available on the server.  The 
18299                 default value of 0 means that no such limit exists.  This parameter
18300                 can be used to prevent a server from exceeding its capacity and is
18301                 designed as a printing throttle.  See also 
18302                 <A
18303 HREF="#MAXPRINTJOBS"
18304 ><TT
18305 CLASS="PARAMETER"
18306 ><I
18307 >max print jobs</I
18308 ></TT
18309 ></A
18310 >.
18311                 </P
18312 ><P
18313 >Default: <B
18314 CLASS="COMMAND"
18315 >total print jobs = 0</B
18316 ></P
18317 ><P
18318 >Example: <B
18319 CLASS="COMMAND"
18320 >total print jobs = 5000</B
18321 ></P
18322 ></DD
18323 ><DT
18324 ><A
18325 NAME="UNICODE"
18326 ></A
18327 >&#62;unicode (G)</DT
18328 ><DD
18329 ><P
18330 >Specifies whether Samba should try 
18331                 to use unicode on the wire by default. Note: This does NOT
18332                 mean that samba will assume that the unix machine uses unicode!
18333                 </P
18334 ><P
18335 >Default: <B
18336 CLASS="COMMAND"
18337 >unicode = yes</B
18338 ></P
18339 ></DD
18340 ><DT
18341 ><A
18342 NAME="UNIXCHARSET"
18343 ></A
18344 >&#62;unix charset (G)</DT
18345 ><DD
18346 ><P
18347 >Specifies the charset the unix machine 
18348                 Samba runs on uses. Samba needs to know this in order to be able to 
18349                 convert text to the charsets other SMB clients use.
18350                 </P
18351 ><P
18352 >Default: <B
18353 CLASS="COMMAND"
18354 >unix charset = UTF8</B
18355 ></P
18356 ><P
18357 >Example: <B
18358 CLASS="COMMAND"
18359 >unix charset = ASCII</B
18360 ></P
18361 ></DD
18362 ><DT
18363 ><A
18364 NAME="UNIXEXTENSIONS"
18365 ></A
18366 >&#62;unix extensions(G)</DT
18367 ><DD
18368 ><P
18369 >This boolean parameter controls whether Samba 
18370                 implments the CIFS UNIX extensions, as defined by HP. 
18371                 These extensions enable Samba to better serve UNIX CIFS clients
18372                 by supporting features such as symbolic links, hard links, etc...
18373                 These extensions require a similarly enabled client, and are of
18374                 no current use to Windows clients.</P
18375 ><P
18376 >Default: <B
18377 CLASS="COMMAND"
18378 >unix extensions = no</B
18379 ></P
18380 ></DD
18381 ><DT
18382 ><A
18383 NAME="UNIXPASSWORDSYNC"
18384 ></A
18385 >&#62;unix password sync (G)</DT
18386 ><DD
18387 ><P
18388 >This boolean parameter controls whether Samba 
18389                 attempts to synchronize the UNIX password with the SMB password 
18390                 when the encrypted SMB password in the smbpasswd file is changed. 
18391                 If this is set to <TT
18392 CLASS="CONSTANT"
18393 >yes</TT
18394 > the program specified in the <TT
18395 CLASS="PARAMETER"
18396 ><I
18397 >passwd
18398                 program</I
18399 ></TT
18400 >parameter is called <SPAN
18401 CLASS="emphasis"
18402 ><I
18403 CLASS="EMPHASIS"
18404 >AS ROOT</I
18405 ></SPAN
18406 > - 
18407                 to allow the new UNIX password to be set without access to the 
18408                 old UNIX password (as the SMB password change code has no 
18409                 access to the old password cleartext, only the new).</P
18410 ><P
18411 >See also <A
18412 HREF="#PASSWDPROGRAM"
18413 ><TT
18414 CLASS="PARAMETER"
18415 ><I
18416 >passwd 
18417                 program</I
18418 ></TT
18419 ></A
18420 >, <A
18421 HREF="#PASSWDCHAT"
18422 ><TT
18423 CLASS="PARAMETER"
18424 ><I
18425 >               passwd chat</I
18426 ></TT
18427 ></A
18428 >.</P
18429 ><P
18430 >Default: <B
18431 CLASS="COMMAND"
18432 >unix password sync = no</B
18433 ></P
18434 ></DD
18435 ><DT
18436 ><A
18437 NAME="UPDATEENCRYPTED"
18438 ></A
18439 >&#62;update encrypted (G)</DT
18440 ><DD
18441 ><P
18442 >This boolean parameter allows a user logging 
18443                 on with a plaintext password to have their encrypted (hashed) 
18444                 password in the smbpasswd file to be updated automatically as 
18445                 they log on. This option allows a site to migrate from plaintext 
18446                 password authentication (users authenticate with plaintext 
18447                 password over the wire, and are checked against a UNIX account 
18448                 database) to encrypted password authentication (the SMB 
18449                 challenge/response authentication mechanism) without forcing
18450                 all users to re-enter their passwords via smbpasswd at the time the
18451                 change is made. This is a convenience option to allow the change over
18452                 to encrypted passwords to be made over a longer period. Once all users
18453                 have encrypted representations of their passwords in the smbpasswd
18454                 file this parameter should be set to <TT
18455 CLASS="CONSTANT"
18456 >no</TT
18457 >.</P
18458 ><P
18459 >In order for this parameter to work correctly the <A
18460 HREF="#ENCRYPTPASSWORDS"
18461 ><TT
18462 CLASS="PARAMETER"
18463 ><I
18464 >encrypt passwords</I
18465 ></TT
18466 >
18467                 </A
18468 > parameter must be set to <TT
18469 CLASS="CONSTANT"
18470 >no</TT
18471 > when
18472                 this parameter is set to <TT
18473 CLASS="CONSTANT"
18474 >yes</TT
18475 >.</P
18476 ><P
18477 >Note that even when this parameter is set a user 
18478                 authenticating to <B
18479 CLASS="COMMAND"
18480 >smbd</B
18481 > must still enter a valid 
18482                 password in order to connect correctly, and to update their hashed 
18483                 (smbpasswd) passwords.</P
18484 ><P
18485 >Default: <B
18486 CLASS="COMMAND"
18487 >update encrypted = no</B
18488 ></P
18489 ></DD
18490 ><DT
18491 ><A
18492 NAME="USECLIENTDRIVER"
18493 ></A
18494 >&#62;use client driver (S)</DT
18495 ><DD
18496 ><P
18497 >This parameter applies only to Windows NT/2000
18498                 clients.  It has no affect on Windows 95/98/ME clients.  When 
18499                 serving a printer to Windows NT/2000 clients without first installing
18500                 a valid printer driver on the Samba host, the client will be required
18501                 to install a local printer driver.  From this point on, the client
18502                 will treat the print as a local printer and not a network printer 
18503                 connection.  This is much the same behavior that will occur
18504                 when <B
18505 CLASS="COMMAND"
18506 >disable spoolss = yes</B
18507 >.  </P
18508 ><P
18509 >The differentiating 
18510                 factor is that under normal circumstances, the NT/2000 client will 
18511                 attempt to open the network printer using MS-RPC.  The problem is that
18512                 because the client considers the printer to be local, it will attempt
18513                 to issue the OpenPrinterEx() call requesting access rights associated 
18514                 with the logged on user. If the user possesses local administator rights
18515                 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
18516                 call will fail.  The result is that the client will now display an "Access
18517                 Denied; Unable to connect" message in the printer queue window (even though
18518                 jobs may successfully be printed).  </P
18519 ><P
18520 >If this parameter is enabled for a printer, then any attempt
18521                 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
18522                 to PRINTER_ACCESS_USE instead.  Thus allowing the OpenPrinterEx()
18523                 call to succeed.  <SPAN
18524 CLASS="emphasis"
18525 ><I
18526 CLASS="EMPHASIS"
18527 >This parameter MUST not be able enabled
18528                 on a print share which has valid print driver installed on the Samba 
18529                 server.</I
18530 ></SPAN
18531 ></P
18532 ><P
18533 >See also <A
18534 HREF="#DISABLESPOOLSS"
18535 >disable spoolss</A
18536 >
18537                 </P
18538 ><P
18539 >Default: <B
18540 CLASS="COMMAND"
18541 >use client driver = no</B
18542 ></P
18543 ></DD
18544 ><DT
18545 ><A
18546 NAME="USEMMAP"
18547 ></A
18548 >&#62;use mmap (G)</DT
18549 ><DD
18550 ><P
18551 >This global parameter determines if the tdb internals of Samba can
18552                 depend on mmap working correctly on the running system. Samba requires a coherent
18553                 mmap/read-write system memory cache. Currently only HPUX does not have such a
18554                 coherent cache, and so this parameter is set to <TT
18555 CLASS="CONSTANT"
18556 >no</TT
18557 > by
18558                 default on HPUX. On all other systems this parameter should be left alone. This
18559                 parameter is provided to help the Samba developers track down problems with
18560                 the tdb internal code.
18561                 </P
18562 ><P
18563 >Default: <B
18564 CLASS="COMMAND"
18565 >use mmap = yes</B
18566 ></P
18567 ></DD
18568 ><DT
18569 ><A
18570 NAME="USERHOSTS"
18571 ></A
18572 >&#62;use rhosts (G)</DT
18573 ><DD
18574 ><P
18575 >If this global parameter is <TT
18576 CLASS="CONSTANT"
18577 >yes</TT
18578 >, it specifies 
18579                 that the UNIX user's <TT
18580 CLASS="FILENAME"
18581 >.rhosts</TT
18582 > file in their home directory 
18583                 will be read to find the names of hosts and users who will be allowed 
18584                 access without specifying a password.</P
18585 ><P
18586 ><SPAN
18587 CLASS="emphasis"
18588 ><I
18589 CLASS="EMPHASIS"
18590 >NOTE:</I
18591 ></SPAN
18592 > The use of <TT
18593 CLASS="PARAMETER"
18594 ><I
18595 >use rhosts
18596                 </I
18597 ></TT
18598 > can be a major security hole. This is because you are 
18599                 trusting the PC to supply the correct username. It is very easy to 
18600                 get a PC to supply a false username. I recommend that the <TT
18601 CLASS="PARAMETER"
18602 ><I
18603 >               use rhosts</I
18604 ></TT
18605 > option be only used if you really know what 
18606                 you are doing.</P
18607 ><P
18608 >Default: <B
18609 CLASS="COMMAND"
18610 >use rhosts = no</B
18611 ></P
18612 ></DD
18613 ><DT
18614 ><A
18615 NAME="USER"
18616 ></A
18617 >&#62;user (S)</DT
18618 ><DD
18619 ><P
18620 >Synonym for <A
18621 HREF="#USERNAME"
18622 ><TT
18623 CLASS="PARAMETER"
18624 ><I
18625 >               username</I
18626 ></TT
18627 ></A
18628 >.</P
18629 ></DD
18630 ><DT
18631 ><A
18632 NAME="USERS"
18633 ></A
18634 >&#62;users (S)</DT
18635 ><DD
18636 ><P
18637 >Synonym for <A
18638 HREF="#USERNAME"
18639 ><TT
18640 CLASS="PARAMETER"
18641 ><I
18642 >               username</I
18643 ></TT
18644 ></A
18645 >.</P
18646 ></DD
18647 ><DT
18648 ><A
18649 NAME="USERNAME"
18650 ></A
18651 >&#62;username (S)</DT
18652 ><DD
18653 ><P
18654 >Multiple users may be specified in a comma-delimited 
18655                 list, in which case the supplied password will be tested against 
18656                 each username in turn (left to right).</P
18657 ><P
18658 >The <TT
18659 CLASS="PARAMETER"
18660 ><I
18661 >username</I
18662 ></TT
18663 > line is needed only when 
18664                 the PC is unable to supply its own username. This is the case 
18665                 for the COREPLUS protocol or where your users have different WfWg 
18666                 usernames to UNIX usernames. In both these cases you may also be 
18667                 better using the \\server\share%user syntax instead.</P
18668 ><P
18669 >The <TT
18670 CLASS="PARAMETER"
18671 ><I
18672 >username</I
18673 ></TT
18674 > line is not a great 
18675                 solution in many cases as it means Samba will try to validate 
18676                 the supplied password against each of the usernames in the 
18677                 <TT
18678 CLASS="PARAMETER"
18679 ><I
18680 >username</I
18681 ></TT
18682 > line in turn. This is slow and 
18683                 a bad idea for lots of users in case of duplicate passwords. 
18684                 You may get timeouts or security breaches using this parameter 
18685                 unwisely.</P
18686 ><P
18687 >Samba relies on the underlying UNIX security. This 
18688                 parameter does not restrict who can login, it just offers hints 
18689                 to the Samba server as to what usernames might correspond to the 
18690                 supplied password. Users can login as whoever they please and 
18691                 they will be able to do no more damage than if they started a 
18692                 telnet session. The daemon runs as the user that they log in as, 
18693                 so they cannot do anything that user cannot do.</P
18694 ><P
18695 >To restrict a service to a particular set of users you 
18696                 can use the <A
18697 HREF="#VALIDUSERS"
18698 ><TT
18699 CLASS="PARAMETER"
18700 ><I
18701 >valid users
18702                 </I
18703 ></TT
18704 ></A
18705 > parameter.</P
18706 ><P
18707 >If any of the usernames begin with a '@' then the name 
18708                 will be looked up first in the NIS netgroups list (if Samba 
18709                 is compiled with netgroup support), followed by a lookup in 
18710                 the UNIX groups database and will expand to a list of all users 
18711                 in the group of that name.</P
18712 ><P
18713 >If any of the usernames begin with a '+' then the name 
18714                 will be looked up only in the UNIX groups database and will 
18715                 expand to a list of all users in the group of that name.</P
18716 ><P
18717 >If any of the usernames begin with a '&amp;' then the name 
18718                 will be looked up only in the NIS netgroups database (if Samba 
18719                 is compiled with netgroup support) and will expand to a list 
18720                 of all users in the netgroup group of that name.</P
18721 ><P
18722 >Note that searching though a groups database can take 
18723                 quite some time, and some clients may time out during the 
18724                 search.</P
18725 ><P
18726 >See the section <A
18727 HREF="#AEN239"
18728 >NOTE ABOUT 
18729                 USERNAME/PASSWORD VALIDATION</A
18730 > for more information on how 
18731                 this parameter determines access to the services.</P
18732 ><P
18733 >Default: <B
18734 CLASS="COMMAND"
18735 >The guest account if a guest service, 
18736                 else &lt;empty string&gt;.</B
18737 ></P
18738 ><P
18739 >Examples:<B
18740 CLASS="COMMAND"
18741 >username = fred, mary, jack, jane, 
18742                 @users, @pcgroup</B
18743 ></P
18744 ></DD
18745 ><DT
18746 ><A
18747 NAME="USERNAMELEVEL"
18748 ></A
18749 >&#62;username level (G)</DT
18750 ><DD
18751 ><P
18752 >This option helps Samba to try and 'guess' at 
18753                 the real UNIX username, as many DOS clients send an all-uppercase 
18754                 username. By default Samba tries all lowercase, followed by the 
18755                 username with the first letter capitalized, and fails if the 
18756                 username is not found on the UNIX machine.</P
18757 ><P
18758 >If this parameter is set to non-zero the behavior changes. 
18759                 This parameter is a number that specifies the number of uppercase
18760                 combinations to try while trying to determine the UNIX user name. The
18761                 higher the number the more combinations will be tried, but the slower
18762                 the discovery of usernames will be. Use this parameter when you have
18763                 strange usernames on your UNIX machine, such as <TT
18764 CLASS="CONSTANT"
18765 >AstrangeUser
18766                 </TT
18767 >.</P
18768 ><P
18769 >Default: <B
18770 CLASS="COMMAND"
18771 >username level = 0</B
18772 ></P
18773 ><P
18774 >Example: <B
18775 CLASS="COMMAND"
18776 >username level = 5</B
18777 ></P
18778 ></DD
18779 ><DT
18780 ><A
18781 NAME="USERNAMEMAP"
18782 ></A
18783 >&#62;username map (G)</DT
18784 ><DD
18785 ><P
18786 >This option allows you to specify a file containing 
18787                 a mapping of usernames from the clients to the server. This can be 
18788                 used for several purposes. The most common is to map usernames 
18789                 that users use on DOS or Windows machines to those that the UNIX 
18790                 box uses. The other is to map multiple users to a single username 
18791                 so that they can more easily share files.</P
18792 ><P
18793 >The map file is parsed line by line. Each line should 
18794                 contain a single UNIX username on the left then a '=' followed 
18795                 by a list of usernames on the right. The list of usernames on the 
18796                 right may contain names of the form @group in which case they 
18797                 will match any UNIX username in that group. The special client 
18798                 name '*' is a wildcard and matches any name. Each line of the 
18799                 map file may be up to 1023 characters long.</P
18800 ><P
18801 >The file is processed on each line by taking the 
18802                 supplied username and comparing it with each username on the right 
18803                 hand side of the '=' signs. If the supplied name matches any of 
18804                 the names on the right hand side then it is replaced with the name 
18805                 on the left. Processing then continues with the next line.</P
18806 ><P
18807 >If any line begins with a '#' or a ';' then it is 
18808                 ignored</P
18809 ><P
18810 >If any line begins with an '!' then the processing
18811                 will stop after that line if a mapping was done by the line.
18812                 Otherwise mapping continues with every line being processed.
18813                 Using '!' is most useful when you have a wildcard mapping line
18814                 later in the file.</P
18815 ><P
18816 >For example to map from the name <TT
18817 CLASS="CONSTANT"
18818 >admin</TT
18819 >
18820                 or <TT
18821 CLASS="CONSTANT"
18822 >administrator</TT
18823 > to the UNIX name <TT
18824 CLASS="CONSTANT"
18825 >               root</TT
18826 > you would use:</P
18827 ><P
18828 ><B
18829 CLASS="COMMAND"
18830 >root = admin administrator</B
18831 ></P
18832 ><P
18833 >Or to map anyone in the UNIX group <TT
18834 CLASS="CONSTANT"
18835 >system</TT
18836 >
18837                 to the UNIX name <TT
18838 CLASS="CONSTANT"
18839 >sys</TT
18840 > you would use:</P
18841 ><P
18842 ><B
18843 CLASS="COMMAND"
18844 >sys = @system</B
18845 ></P
18846 ><P
18847 >You can have as many mappings as you like in a username
18848                 map file.</P
18849 ><P
18850 >If your system supports the NIS NETGROUP option then
18851                 the netgroup database is checked before the <TT
18852 CLASS="FILENAME"
18853 >/etc/group
18854                 </TT
18855 > database for matching groups.</P
18856 ><P
18857 >You can map Windows usernames that have spaces in them
18858                  by using double quotes around the name. For example:</P
18859 ><P
18860 ><B
18861 CLASS="COMMAND"
18862 >tridge = "Andrew Tridgell"</B
18863 ></P
18864 ><P
18865 >would map the windows username "Andrew Tridgell" to the
18866                 unix username "tridge".</P
18867 ><P
18868 >The following example would map mary and fred to the
18869                 unix user sys, and map the rest to guest. Note the use of the
18870                 '!' to tell Samba to stop processing if it gets a match on
18871                 that line.</P
18872 ><P
18873 ><PRE
18874 CLASS="PROGRAMLISTING"
18875 >!sys = mary fred
18876 guest = *</PRE
18877 ></P
18878 ><P
18879 >Note that the remapping is applied to all occurrences
18880                 of usernames. Thus if you connect to \\server\fred and <TT
18881 CLASS="CONSTANT"
18882 >               fred</TT
18883 > is remapped to <TT
18884 CLASS="CONSTANT"
18885 >mary</TT
18886 > then you
18887                 will actually be connecting to \\server\mary and will need to
18888                 supply a password suitable for <TT
18889 CLASS="CONSTANT"
18890 >mary</TT
18891 > not
18892                 <TT
18893 CLASS="CONSTANT"
18894 >fred</TT
18895 >. The only exception to this is the
18896                 username passed to the <A
18897 HREF="#PASSWORDSERVER"
18898 ><TT
18899 CLASS="PARAMETER"
18900 ><I
18901 >               password server</I
18902 ></TT
18903 ></A
18904 > (if you have one). The password
18905                 server will receive whatever username the client supplies without
18906                 modification.</P
18907 ><P
18908 >Also note that no reverse mapping is done. The main effect
18909                 this has is with printing. Users who have been mapped may have
18910                 trouble deleting print jobs as PrintManager under WfWg will think
18911                 they don't own the print job.</P
18912 ><P
18913 >Default: <SPAN
18914 CLASS="emphasis"
18915 ><I
18916 CLASS="EMPHASIS"
18917 >no username map</I
18918 ></SPAN
18919 ></P
18920 ><P
18921 >Example: <B
18922 CLASS="COMMAND"
18923 >username map = /usr/local/samba/lib/users.map
18924                 </B
18925 ></P
18926 ></DD
18927 ><DT
18928 ><A
18929 NAME="USESENDFILE"
18930 ></A
18931 >&#62;use sendfile (S)</DT
18932 ><DD
18933 ><P
18934 >If this parameter is <TT
18935 CLASS="CONSTANT"
18936 >yes</TT
18937 >, and Samba
18938                 was built with the --with-sendfile-support option, and the underlying operating
18939                 system supports sendfile system call, then some SMB read calls (mainly ReadAndX
18940                 and ReadRaw) will use the more efficient sendfile system call for files that
18941                 are exclusively oplocked. This may make more efficient use of the system CPU's
18942                 and cause Samba to be faster. This is off by default as it's effects are unknown
18943                 as yet.
18944                 </P
18945 ><P
18946 >Default: <B
18947 CLASS="COMMAND"
18948 >use sendfile = no</B
18949 ></P
18950 ></DD
18951 ><DT
18952 ><A
18953 NAME="UTMP"
18954 ></A
18955 >&#62;utmp (G)</DT
18956 ><DD
18957 ><P
18958 >This boolean parameter is only available if
18959                 Samba has been configured and compiled  with the option <B
18960 CLASS="COMMAND"
18961 >               --with-utmp</B
18962 >. If set to <TT
18963 CLASS="CONSTANT"
18964 >yes</TT
18965 > then Samba will attempt
18966                 to add utmp or utmpx records (depending on the UNIX system) whenever a
18967                 connection is made to a Samba server. Sites may use this to record the
18968                 user connecting to a Samba share.</P
18969 ><P
18970 >Due to the requirements of the utmp record, we
18971                 are required to create a unique identifier for the
18972                 incoming user.  Enabling this option creates an n^2
18973                 algorithm to find this number.  This may impede
18974                 performance on large installations. </P
18975 ><P
18976 >See also the <A
18977 HREF="#UTMPDIRECTORY"
18978 ><TT
18979 CLASS="PARAMETER"
18980 ><I
18981 >               utmp directory</I
18982 ></TT
18983 ></A
18984 > parameter.</P
18985 ><P
18986 >Default: <B
18987 CLASS="COMMAND"
18988 >utmp = no</B
18989 ></P
18990 ></DD
18991 ><DT
18992 ><A
18993 NAME="UTMPDIRECTORY"
18994 ></A
18995 >&#62;utmp directory(G)</DT
18996 ><DD
18997 ><P
18998 >This parameter is only available if Samba has 
18999                 been configured and compiled with the option <B
19000 CLASS="COMMAND"
19001 >               --with-utmp</B
19002 >. It specifies a directory pathname that is
19003                 used to store the utmp or utmpx files (depending on the UNIX system) that
19004                 record user connections to a Samba server. See also the <A
19005 HREF="#UTMP"
19006 >               <TT
19007 CLASS="PARAMETER"
19008 ><I
19009 >utmp</I
19010 ></TT
19011 ></A
19012 > parameter. By default this is 
19013                 not set, meaning the system will use whatever utmp file the 
19014                 native system is set to use (usually 
19015                 <TT
19016 CLASS="FILENAME"
19017 >/var/run/utmp</TT
19018 > on Linux).</P
19019 ><P
19020 >Default: <SPAN
19021 CLASS="emphasis"
19022 ><I
19023 CLASS="EMPHASIS"
19024 >no utmp directory</I
19025 ></SPAN
19026 ></P
19027 ><P
19028 >Example: <B
19029 CLASS="COMMAND"
19030 >utmp directory = /var/run/utmp</B
19031 ></P
19032 ></DD
19033 ><DT
19034 ><A
19035 NAME="WTMPDIRECTORY"
19036 ></A
19037 >&#62;wtmp directory(G)</DT
19038 ><DD
19039 ><P
19040 >This parameter is only available if Samba has 
19041                 been configured and compiled with the option <B
19042 CLASS="COMMAND"
19043 >               --with-utmp</B
19044 >. It specifies a directory pathname that is
19045                 used to store the wtmp or wtmpx files (depending on the UNIX system) that
19046                 record user connections to a Samba server. The difference with
19047                 the utmp directory is the fact that user info is kept after a user 
19048                 has logged out.
19049                 
19050                 See also the <A
19051 HREF="#UTMP"
19052 >               <TT
19053 CLASS="PARAMETER"
19054 ><I
19055 >utmp</I
19056 ></TT
19057 ></A
19058 > parameter. By default this is 
19059                 not set, meaning the system will use whatever utmp file the 
19060                 native system is set to use (usually 
19061                 <TT
19062 CLASS="FILENAME"
19063 >/var/run/wtmp</TT
19064 > on Linux).</P
19065 ><P
19066 >Default: <SPAN
19067 CLASS="emphasis"
19068 ><I
19069 CLASS="EMPHASIS"
19070 >no wtmp directory</I
19071 ></SPAN
19072 ></P
19073 ><P
19074 >Example: <B
19075 CLASS="COMMAND"
19076 >wtmp directory = /var/log/wtmp</B
19077 ></P
19078 ></DD
19079 ><DT
19080 ><A
19081 NAME="VALIDUSERS"
19082 ></A
19083 >&#62;valid users (S)</DT
19084 ><DD
19085 ><P
19086 >This is a list of users that should be allowed 
19087                 to login to this service. Names starting with '@', '+' and  '&amp;'
19088                 are interpreted using the same rules as described in the 
19089                 <TT
19090 CLASS="PARAMETER"
19091 ><I
19092 >invalid users</I
19093 ></TT
19094 > parameter.</P
19095 ><P
19096 >If this is empty (the default) then any user can login. 
19097                 If a username is in both this list and the <TT
19098 CLASS="PARAMETER"
19099 ><I
19100 >invalid 
19101                 users</I
19102 ></TT
19103 > list then access is denied for that user.</P
19104 ><P
19105 >The current servicename is substituted for <TT
19106 CLASS="PARAMETER"
19107 ><I
19108 >%S
19109                 </I
19110 ></TT
19111 >. This is useful in the [homes] section.</P
19112 ><P
19113 >See also <A
19114 HREF="#INVALIDUSERS"
19115 ><TT
19116 CLASS="PARAMETER"
19117 ><I
19118 >invalid users
19119                 </I
19120 ></TT
19121 ></A
19122 ></P
19123 ><P
19124 >Default: <SPAN
19125 CLASS="emphasis"
19126 ><I
19127 CLASS="EMPHASIS"
19128 >No valid users list (anyone can login)
19129                 </I
19130 ></SPAN
19131 ></P
19132 ><P
19133 >Example: <B
19134 CLASS="COMMAND"
19135 >valid users = greg, @pcusers</B
19136 ></P
19137 ></DD
19138 ><DT
19139 ><A
19140 NAME="VETOFILES"
19141 ></A
19142 >&#62;veto files(S)</DT
19143 ><DD
19144 ><P
19145 >This is a list of files and directories that 
19146                 are neither visible nor accessible.  Each entry in the list must 
19147                 be separated by a '/', which allows spaces to be included 
19148                 in the entry. '*' and '?' can be used to specify multiple files 
19149                 or directories as in DOS wildcards.</P
19150 ><P
19151 >Each entry must be a unix path, not a DOS path and 
19152                 must <SPAN
19153 CLASS="emphasis"
19154 ><I
19155 CLASS="EMPHASIS"
19156 >not</I
19157 ></SPAN
19158 > include the  unix directory 
19159                 separator '/'.</P
19160 ><P
19161 >Note that the <TT
19162 CLASS="PARAMETER"
19163 ><I
19164 >case sensitive</I
19165 ></TT
19166 > option 
19167                 is applicable in vetoing files.</P
19168 ><P
19169 >One feature of the veto files parameter that it
19170                 is important to be aware of is Samba's behaviour when
19171                 trying to delete a directory. If a directory that is
19172                 to be deleted contains nothing but veto files this
19173                 deletion will <SPAN
19174 CLASS="emphasis"
19175 ><I
19176 CLASS="EMPHASIS"
19177 >fail</I
19178 ></SPAN
19179 > unless you also set
19180                 the <TT
19181 CLASS="PARAMETER"
19182 ><I
19183 >delete veto files</I
19184 ></TT
19185 > parameter to
19186                 <TT
19187 CLASS="PARAMETER"
19188 ><I
19189 >yes</I
19190 ></TT
19191 >.</P
19192 ><P
19193 >Setting this parameter will affect the performance 
19194                 of Samba, as it will be forced to check all files and directories 
19195                 for a match as they are scanned.</P
19196 ><P
19197 >See also <A
19198 HREF="#HIDEFILES"
19199 ><TT
19200 CLASS="PARAMETER"
19201 ><I
19202 >hide files
19203                 </I
19204 ></TT
19205 ></A
19206 > and <A
19207 HREF="#CASESENSITIVE"
19208 ><TT
19209 CLASS="PARAMETER"
19210 ><I
19211 >               case sensitive</I
19212 ></TT
19213 ></A
19214 >.</P
19215 ><P
19216 >Default: <SPAN
19217 CLASS="emphasis"
19218 ><I
19219 CLASS="EMPHASIS"
19220 >No files or directories are vetoed.
19221                 </I
19222 ></SPAN
19223 ></P
19224 ><P
19225 >Examples:<PRE
19226 CLASS="PROGRAMLISTING"
19227 >; Veto any files containing the word Security, 
19228 ; any ending in .tmp, and any directory containing the
19229 ; word root.
19230 veto files = /*Security*/*.tmp/*root*/
19231
19232 ; Veto the Apple specific files that a NetAtalk server
19233 ; creates.
19234 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/</PRE
19235 ></P
19236 ></DD
19237 ><DT
19238 ><A
19239 NAME="VETOOPLOCKFILES"
19240 ></A
19241 >&#62;veto oplock files (S)</DT
19242 ><DD
19243 ><P
19244 >This parameter is only valid when the <A
19245 HREF="#OPLOCKS"
19246 ><TT
19247 CLASS="PARAMETER"
19248 ><I
19249 >oplocks</I
19250 ></TT
19251 ></A
19252 >
19253                 parameter is turned on for a share. It allows the Samba administrator
19254                 to selectively turn off the granting of oplocks on selected files that
19255                 match a wildcarded list, similar to the wildcarded list used in the
19256                 <A
19257 HREF="#VETOFILES"
19258 ><TT
19259 CLASS="PARAMETER"
19260 ><I
19261 >veto files</I
19262 ></TT
19263 ></A
19264
19265                 parameter.</P
19266 ><P
19267 >Default: <SPAN
19268 CLASS="emphasis"
19269 ><I
19270 CLASS="EMPHASIS"
19271 >No files are vetoed for oplock 
19272                 grants</I
19273 ></SPAN
19274 ></P
19275 ><P
19276 >You might want to do this on files that you know will 
19277                 be heavily contended for by clients. A good example of this 
19278                 is in the NetBench SMB benchmark program, which causes heavy 
19279                 client contention for files ending in <TT
19280 CLASS="FILENAME"
19281 >.SEM</TT
19282 >. 
19283                 To cause Samba not to grant oplocks on these files you would use 
19284                 the line (either in the [global] section or in the section for 
19285                 the particular NetBench share :</P
19286 ><P
19287 >Example: <B
19288 CLASS="COMMAND"
19289 >veto oplock files = /*.SEM/
19290                 </B
19291 ></P
19292 ></DD
19293 ><DT
19294 ><A
19295 NAME="VFSPATH"
19296 ></A
19297 >&#62;vfs path (S)</DT
19298 ><DD
19299 ><P
19300 >This parameter specifies the directory
19301                 to look in for vfs modules. The name of every <B
19302 CLASS="COMMAND"
19303 >vfs object
19304                 </B
19305 > will be prepended by this directory
19306                 </P
19307 ><P
19308 >Default: <B
19309 CLASS="COMMAND"
19310 >vfs path = </B
19311 ></P
19312 ><P
19313 >Example: <B
19314 CLASS="COMMAND"
19315 >vfs path = /usr/lib/samba/vfs</B
19316 ></P
19317 ></DD
19318 ><DT
19319 ><A
19320 NAME="VFSOBJECT"
19321 ></A
19322 >&#62;vfs object (S)</DT
19323 ><DD
19324 ><P
19325 >This parameter specifies a shared object files that 
19326                 are used for Samba VFS I/O operations.  By default, normal 
19327                 disk I/O operations are used but these can be overloaded 
19328                 with one or more VFS objects. </P
19329 ><P
19330 >Default : <SPAN
19331 CLASS="emphasis"
19332 ><I
19333 CLASS="EMPHASIS"
19334 >no value</I
19335 ></SPAN
19336 ></P
19337 ></DD
19338 ><DT
19339 ><A
19340 NAME="VFSOPTIONS"
19341 ></A
19342 >&#62;vfs options (S)</DT
19343 ><DD
19344 ><P
19345 >This parameter allows parameters to be passed 
19346                 to the vfs layer at initialization time. 
19347                 See also <A
19348 HREF="#VFSOBJECT"
19349 ><TT
19350 CLASS="PARAMETER"
19351 ><I
19352 >               vfs object</I
19353 ></TT
19354 ></A
19355 >.</P
19356 ><P
19357 >Default : <SPAN
19358 CLASS="emphasis"
19359 ><I
19360 CLASS="EMPHASIS"
19361 >no value</I
19362 ></SPAN
19363 ></P
19364 ></DD
19365 ><DT
19366 ><A
19367 NAME="VOLUME"
19368 ></A
19369 >&#62;volume (S)</DT
19370 ><DD
19371 ><P
19372 > This allows you to override the volume label 
19373                 returned for a share. Useful for CDROMs with installation programs 
19374                 that insist on a particular volume label.</P
19375 ><P
19376 >Default: <SPAN
19377 CLASS="emphasis"
19378 ><I
19379 CLASS="EMPHASIS"
19380 >the name of the share</I
19381 ></SPAN
19382 ></P
19383 ></DD
19384 ><DT
19385 ><A
19386 NAME="WIDELINKS"
19387 ></A
19388 >&#62;wide links (S)</DT
19389 ><DD
19390 ><P
19391 >This parameter controls whether or not links 
19392                 in the UNIX file system may be followed by the server. Links 
19393                 that point to areas within the directory tree exported by the 
19394                 server are always allowed; this parameter controls access only 
19395                 to areas that are outside the directory tree being exported.</P
19396 ><P
19397 >Note that setting this parameter can have a negative 
19398                 effect on your server performance due to the extra system calls 
19399                 that Samba has to  do in order to perform the link checks.</P
19400 ><P
19401 >Default: <B
19402 CLASS="COMMAND"
19403 >wide links = yes</B
19404 ></P
19405 ></DD
19406 ><DT
19407 ><A
19408 NAME="WINBINDCACHETIME"
19409 ></A
19410 >&#62;winbind cache time (G)</DT
19411 ><DD
19412 ><P
19413 >This parameter specifies the number of 
19414                 seconds the <SPAN
19415 CLASS="CITEREFENTRY"
19416 ><SPAN
19417 CLASS="REFENTRYTITLE"
19418 >winbindd</SPAN
19419 >(8)</SPAN
19420 > daemon will cache 
19421                 user and group information before querying a Windows NT server 
19422                 again.</P
19423 ><P
19424 >Default: <B
19425 CLASS="COMMAND"
19426 >winbind cache type = 15</B
19427 ></P
19428 ></DD
19429 ><DT
19430 ><A
19431 NAME="WINBINDENUMUSERS"
19432 ></A
19433 >&#62;winbind enum users (G)</DT
19434 ><DD
19435 ><P
19436 >On large installations using <SPAN
19437 CLASS="CITEREFENTRY"
19438 ><SPAN
19439 CLASS="REFENTRYTITLE"
19440 >winbindd</SPAN
19441 >(8)</SPAN
19442 > it may be
19443                 necessary to suppress the enumeration of users through the <B
19444 CLASS="COMMAND"
19445 >setpwent()</B
19446 >,
19447                 <B
19448 CLASS="COMMAND"
19449 >getpwent()</B
19450 > and
19451                 <B
19452 CLASS="COMMAND"
19453 >endpwent()</B
19454 > group of system calls.  If
19455                 the <TT
19456 CLASS="PARAMETER"
19457 ><I
19458 >winbind enum users</I
19459 ></TT
19460 > parameter is
19461                 <TT
19462 CLASS="CONSTANT"
19463 >no</TT
19464 >, calls to the <B
19465 CLASS="COMMAND"
19466 >getpwent</B
19467 > system call
19468                 will not return any data. </P
19469 ><P
19470 ><SPAN
19471 CLASS="emphasis"
19472 ><I
19473 CLASS="EMPHASIS"
19474 >Warning:</I
19475 ></SPAN
19476 > Turning off user
19477                 enumeration may cause some programs to behave oddly.  For
19478                 example, the finger program relies on having access to the
19479                 full user list when searching for matching
19480                 usernames. </P
19481 ><P
19482 >Default: <B
19483 CLASS="COMMAND"
19484 >winbind enum users = yes </B
19485 ></P
19486 ></DD
19487 ><DT
19488 ><A
19489 NAME="WINBINDENUMGROUPS"
19490 ></A
19491 >&#62;winbind enum groups (G)</DT
19492 ><DD
19493 ><P
19494 >On large installations using <SPAN
19495 CLASS="CITEREFENTRY"
19496 ><SPAN
19497 CLASS="REFENTRYTITLE"
19498 >winbindd</SPAN
19499 >(8)</SPAN
19500 > it may be necessary to suppress 
19501                 the enumeration of groups through the <B
19502 CLASS="COMMAND"
19503 >setgrent()</B
19504 >,
19505                 <B
19506 CLASS="COMMAND"
19507 >getgrent()</B
19508 > and
19509                 <B
19510 CLASS="COMMAND"
19511 >endgrent()</B
19512 > group of system calls.  If
19513                 the <TT
19514 CLASS="PARAMETER"
19515 ><I
19516 >winbind enum groups</I
19517 ></TT
19518 > parameter is
19519                 <TT
19520 CLASS="CONSTANT"
19521 >no</TT
19522 >, calls to the <B
19523 CLASS="COMMAND"
19524 >getgrent()</B
19525 > system
19526                 call will not return any data. </P
19527 ><P
19528 ><SPAN
19529 CLASS="emphasis"
19530 ><I
19531 CLASS="EMPHASIS"
19532 >Warning:</I
19533 ></SPAN
19534 > Turning off group
19535                 enumeration may cause some programs to behave oddly.
19536                 </P
19537 ><P
19538 >Default: <B
19539 CLASS="COMMAND"
19540 >winbind enum groups = yes </B
19541 >
19542                 </P
19543 ></DD
19544 ><DT
19545 ><A
19546 NAME="WINBINDGID"
19547 ></A
19548 >&#62;winbind gid (G)</DT
19549 ><DD
19550 ><P
19551 >The winbind gid parameter specifies the range of group 
19552                 ids that are allocated by the <SPAN
19553 CLASS="CITEREFENTRY"
19554 ><SPAN
19555 CLASS="REFENTRYTITLE"
19556 >winbindd</SPAN
19557 >(8)</SPAN
19558 > daemon.  This range of group ids should have no 
19559                 existing local or NIS groups within it as strange conflicts can 
19560                 occur otherwise.</P
19561 ><P
19562 >Default: <B
19563 CLASS="COMMAND"
19564 >winbind gid = &lt;empty string&gt;
19565                 </B
19566 ></P
19567 ><P
19568 >Example: <B
19569 CLASS="COMMAND"
19570 >winbind gid = 10000-20000</B
19571 ></P
19572 ></DD
19573 ><DT
19574 ><A
19575 NAME="WINBINDSEPARATOR"
19576 ></A
19577 >&#62;winbind separator (G)</DT
19578 ><DD
19579 ><P
19580 >This parameter allows an admin to define the character 
19581                 used when listing a username of the form of <TT
19582 CLASS="REPLACEABLE"
19583 ><I
19584 >DOMAIN
19585                 </I
19586 ></TT
19587 >\<TT
19588 CLASS="REPLACEABLE"
19589 ><I
19590 >user</I
19591 ></TT
19592 >.  This parameter 
19593                 is only applicable when using the <TT
19594 CLASS="FILENAME"
19595 >pam_winbind.so</TT
19596 >
19597                 and <TT
19598 CLASS="FILENAME"
19599 >nss_winbind.so</TT
19600 > modules for UNIX services.
19601                 </P
19602 ><P
19603 >Please note that setting this parameter to + causes problems
19604                 with group membership at least on glibc systems, as the character +
19605                 is used as a special character for NIS in /etc/group.</P
19606 ><P
19607 >Default: <B
19608 CLASS="COMMAND"
19609 >winbind separator = '\'</B
19610 ></P
19611 ><P
19612 >Example: <B
19613 CLASS="COMMAND"
19614 >winbind separator = +</B
19615 ></P
19616 ></DD
19617 ><DT
19618 ><A
19619 NAME="WINBINDUID"
19620 ></A
19621 >&#62;winbind uid (G)</DT
19622 ><DD
19623 ><P
19624 >The winbind gid parameter specifies the range of group 
19625                 ids that are allocated by the <SPAN
19626 CLASS="CITEREFENTRY"
19627 ><SPAN
19628 CLASS="REFENTRYTITLE"
19629 >winbindd</SPAN
19630 >(8)</SPAN
19631 > daemon.  This range of ids should have no 
19632                 existing local or NIS users within it as strange conflicts can 
19633                 occur otherwise.</P
19634 ><P
19635 >Default: <B
19636 CLASS="COMMAND"
19637 >winbind uid = &lt;empty string&gt;
19638                 </B
19639 ></P
19640 ><P
19641 >Example: <B
19642 CLASS="COMMAND"
19643 >winbind uid = 10000-20000</B
19644 ></P
19645 ></DD
19646 ><DT
19647 ><A
19648 NAME="WINBINDUSEDEFAULTDOMAIN"
19649 ></A
19650 >&#62;winbind use default domain (G)</DT
19651 ><DD
19652 ><P
19653 >This parameter specifies whether the <SPAN
19654 CLASS="CITEREFENTRY"
19655 ><SPAN
19656 CLASS="REFENTRYTITLE"
19657 >winbindd</SPAN
19658 >(8)</SPAN
19659 > daemon should operate on users 
19660                 without domain component in their username.  
19661                 Users without a domain component are treated as is part of the winbindd server's 
19662                 own domain.  While this does not benifit Windows users, it makes SSH, FTP and e-mail 
19663                 function in a way much closer to the way they would in a native unix system.</P
19664 ><P
19665 >Default: <B
19666 CLASS="COMMAND"
19667 >winbind use default domain = &lt;no&gt; 
19668                 </B
19669 ></P
19670 ><P
19671 >Example: <B
19672 CLASS="COMMAND"
19673 >winbind use default domain = yes</B
19674 ></P
19675 ></DD
19676 ><DT
19677 ><A
19678 NAME="WINSHOOK"
19679 ></A
19680 >&#62;wins hook (G)</DT
19681 ><DD
19682 ><P
19683 >When Samba is running as a WINS server this 
19684                 allows you to call an external program for all changes to the 
19685                 WINS database. The primary use for this option is to allow the 
19686                 dynamic update of external name resolution databases such as 
19687                 dynamic DNS.</P
19688 ><P
19689 >The wins hook parameter specifies the name of a script 
19690                 or executable that will be called as follows:</P
19691 ><P
19692 ><B
19693 CLASS="COMMAND"
19694 >wins_hook operation name nametype ttl IP_list
19695                 </B
19696 ></P
19697 ><P
19698 ></P
19699 ><UL
19700 ><LI
19701 ><P
19702 >The first argument is the operation and is one 
19703                         of "add", "delete", or "refresh". In most cases the operation can 
19704                         be ignored as the rest of the parameters provide sufficient 
19705                         information. Note that "refresh" may sometimes be called when the 
19706                         name has not previously been added, in that case it should be treated 
19707                         as an add.</P
19708 ></LI
19709 ><LI
19710 ><P
19711 >The second argument is the NetBIOS name. If the 
19712                         name is not a legal name then the wins hook is not called. 
19713                         Legal names contain only  letters, digits, hyphens, underscores 
19714                         and periods.</P
19715 ></LI
19716 ><LI
19717 ><P
19718 >The third argument is the NetBIOS name 
19719                         type as a 2 digit hexadecimal number. </P
19720 ></LI
19721 ><LI
19722 ><P
19723 >The fourth argument is the TTL (time to live) 
19724                         for the name in seconds.</P
19725 ></LI
19726 ><LI
19727 ><P
19728 >The fifth and subsequent arguments are the IP 
19729                         addresses currently registered for that name. If this list is 
19730                         empty then the name should be deleted.</P
19731 ></LI
19732 ></UL
19733 ><P
19734 >An example script that calls the BIND dynamic DNS update 
19735                 program <B
19736 CLASS="COMMAND"
19737 >nsupdate</B
19738 > is provided in the examples 
19739                 directory of the Samba source code. </P
19740 ></DD
19741 ><DT
19742 ><A
19743 NAME="WINSPROXY"
19744 ></A
19745 >&#62;wins proxy (G)</DT
19746 ><DD
19747 ><P
19748 >This is a boolean that controls if <A
19749 HREF="nmbd.8.html"
19750 TARGET="_top"
19751 >nmbd(8)</A
19752 > will respond to broadcast name 
19753                 queries on behalf of  other hosts. You may need to set this 
19754                 to <TT
19755 CLASS="CONSTANT"
19756 >yes</TT
19757 > for some older clients.</P
19758 ><P
19759 >Default: <B
19760 CLASS="COMMAND"
19761 >wins proxy = no</B
19762 ></P
19763 ></DD
19764 ><DT
19765 ><A
19766 NAME="WINSSERVER"
19767 ></A
19768 >&#62;wins server (G)</DT
19769 ><DD
19770 ><P
19771 >This specifies the IP address (or DNS name: IP 
19772                 address for preference) of the WINS server that <SPAN
19773 CLASS="CITEREFENTRY"
19774 ><SPAN
19775 CLASS="REFENTRYTITLE"
19776 >nmbd</SPAN
19777 >(8)</SPAN
19778 > should register with. If you have a WINS server on 
19779                 your network then you should set this to the WINS server's IP.</P
19780 ><P
19781 >You should point this at your WINS server if you have a
19782                 multi-subnetted network.</P
19783 ><P
19784 ><SPAN
19785 CLASS="emphasis"
19786 ><I
19787 CLASS="EMPHASIS"
19788 >NOTE</I
19789 ></SPAN
19790 >. You need to set up Samba to point 
19791                 to a WINS server if you have multiple subnets and wish cross-subnet 
19792                 browsing to work correctly.</P
19793 ><P
19794 >See the documentation file <A
19795 HREF="improved-browsing.html"
19796 TARGET="_top"
19797 >BROWSING</A
19798
19799                 in the docs/ directory of your Samba source distribution.</P
19800 ><P
19801 >Default: <SPAN
19802 CLASS="emphasis"
19803 ><I
19804 CLASS="EMPHASIS"
19805 >not enabled</I
19806 ></SPAN
19807 ></P
19808 ><P
19809 >Example: <B
19810 CLASS="COMMAND"
19811 >wins server = 192.9.200.1</B
19812 ></P
19813 ></DD
19814 ><DT
19815 ><A
19816 NAME="WINSSUPPORT"
19817 ></A
19818 >&#62;wins support (G)</DT
19819 ><DD
19820 ><P
19821 >This boolean controls if the <SPAN
19822 CLASS="CITEREFENTRY"
19823 ><SPAN
19824 CLASS="REFENTRYTITLE"
19825 >nmbd</SPAN
19826 >(8)</SPAN
19827 > process in Samba will act as a WINS server. You should 
19828                 not set this to <TT
19829 CLASS="CONSTANT"
19830 >yes</TT
19831 > unless you have a multi-subnetted network and 
19832                 you wish a particular <B
19833 CLASS="COMMAND"
19834 >nmbd</B
19835 > to be your WINS server. 
19836                 Note that you should <SPAN
19837 CLASS="emphasis"
19838 ><I
19839 CLASS="EMPHASIS"
19840 >NEVER</I
19841 ></SPAN
19842 > set this to <TT
19843 CLASS="CONSTANT"
19844 >yes</TT
19845 >
19846                 on more than one machine in your network.</P
19847 ><P
19848 >Default: <B
19849 CLASS="COMMAND"
19850 >wins support = no</B
19851 ></P
19852 ></DD
19853 ><DT
19854 ><A
19855 NAME="WORKGROUP"
19856 ></A
19857 >&#62;workgroup (G)</DT
19858 ><DD
19859 ><P
19860 >This controls what workgroup your server will 
19861                 appear to be in when queried by clients. Note that this parameter 
19862                 also controls the Domain name used with the <A
19863 HREF="#SECURITYEQUALSDOMAIN"
19864 ><B
19865 CLASS="COMMAND"
19866 >security = domain</B
19867 ></A
19868 >
19869                 setting.</P
19870 ><P
19871 >Default: <SPAN
19872 CLASS="emphasis"
19873 ><I
19874 CLASS="EMPHASIS"
19875 >set at compile time to WORKGROUP</I
19876 ></SPAN
19877 ></P
19878 ><P
19879 >Example: <B
19880 CLASS="COMMAND"
19881 >workgroup = MYGROUP</B
19882 ></P
19883 ></DD
19884 ><DT
19885 ><A
19886 NAME="WRITABLE"
19887 ></A
19888 >&#62;writable (S)</DT
19889 ><DD
19890 ><P
19891 >Synonym for <A
19892 HREF="#WRITEABLE"
19893 ><TT
19894 CLASS="PARAMETER"
19895 ><I
19896 >               writeable</I
19897 ></TT
19898 ></A
19899 > for people who can't spell :-).</P
19900 ></DD
19901 ><DT
19902 ><A
19903 NAME="WRITECACHESIZE"
19904 ></A
19905 >&#62;write cache size (S)</DT
19906 ><DD
19907 ><P
19908 >If this integer parameter is set to non-zero value,
19909                 Samba will create an in-memory cache for each oplocked file 
19910                 (it does <SPAN
19911 CLASS="emphasis"
19912 ><I
19913 CLASS="EMPHASIS"
19914 >not</I
19915 ></SPAN
19916 > do this for 
19917                 non-oplocked files). All writes that the client does not request 
19918                 to be flushed directly to disk will be stored in this cache if possible. 
19919                 The cache is flushed onto disk when a write comes in whose offset 
19920                 would not fit into the cache or when the file is closed by the client. 
19921                 Reads for the file are also served from this cache if the data is stored 
19922                 within it.</P
19923 ><P
19924 >This cache allows Samba to batch client writes into a more 
19925                 efficient write size for RAID disks (i.e. writes may be tuned to 
19926                 be the RAID stripe size) and can improve performance on systems 
19927                 where the disk subsystem is a bottleneck but there is free 
19928                 memory for userspace programs.</P
19929 ><P
19930 >The integer parameter specifies the size of this cache 
19931                 (per oplocked file) in bytes.</P
19932 ><P
19933 >Default: <B
19934 CLASS="COMMAND"
19935 >write cache size = 0</B
19936 ></P
19937 ><P
19938 >Example: <B
19939 CLASS="COMMAND"
19940 >write cache size = 262144</B
19941 ></P
19942 ><P
19943 >for a 256k cache size per file.</P
19944 ></DD
19945 ><DT
19946 ><A
19947 NAME="WRITELIST"
19948 ></A
19949 >&#62;write list (S)</DT
19950 ><DD
19951 ><P
19952 >This is a list of users that are given read-write 
19953                 access to a service. If the connecting user is in this list then 
19954                 they will be given write access, no matter what the <A
19955 HREF="#READONLY"
19956 ><TT
19957 CLASS="PARAMETER"
19958 ><I
19959 >read only</I
19960 ></TT
19961 ></A
19962 >
19963                 option is set to. The list can include group names using the 
19964                 @group syntax.</P
19965 ><P
19966 >Note that if a user is in both the read list and the 
19967                 write list then they will be given write access.</P
19968 ><P
19969 >See also the <A
19970 HREF="#READLIST"
19971 ><TT
19972 CLASS="PARAMETER"
19973 ><I
19974 >read list
19975                 </I
19976 ></TT
19977 ></A
19978 > option.</P
19979 ><P
19980 >Default: <B
19981 CLASS="COMMAND"
19982 >write list = &lt;empty string&gt;
19983                 </B
19984 ></P
19985 ><P
19986 >Example: <B
19987 CLASS="COMMAND"
19988 >write list = admin, root, @staff
19989                 </B
19990 ></P
19991 ></DD
19992 ><DT
19993 ><A
19994 NAME="WINSPARTNERS"
19995 ></A
19996 >&#62;wins partners (G)</DT
19997 ><DD
19998 ><P
19999 >A space separated list of partners' IP addresses for 
20000                 WINS replication. WINS partners are always defined as push/pull 
20001                 partners as defining only one way WINS replication is unreliable. 
20002                 WINS replication is currently experimental and unreliable between 
20003                 samba servers.
20004                 </P
20005 ><P
20006 >Default: <B
20007 CLASS="COMMAND"
20008 >wins partners = </B
20009 ></P
20010 ><P
20011 >Example: <B
20012 CLASS="COMMAND"
20013 >wins partners = 192.168.0.1 172.16.1.2</B
20014 ></P
20015 ></DD
20016 ><DT
20017 ><A
20018 NAME="WRITEOK"
20019 ></A
20020 >&#62;write ok (S)</DT
20021 ><DD
20022 ><P
20023 >Inverted synonym for <A
20024 HREF="#READONLY"
20025 ><TT
20026 CLASS="PARAMETER"
20027 ><I
20028 >               read only</I
20029 ></TT
20030 ></A
20031 >.</P
20032 ></DD
20033 ><DT
20034 ><A
20035 NAME="WRITERAW"
20036 ></A
20037 >&#62;write raw (G)</DT
20038 ><DD
20039 ><P
20040 >This parameter controls whether or not the server 
20041                 will support raw write SMB's when transferring data from clients. 
20042                 You should never need to change this parameter.</P
20043 ><P
20044 >Default: <B
20045 CLASS="COMMAND"
20046 >write raw = yes</B
20047 ></P
20048 ></DD
20049 ><DT
20050 ><A
20051 NAME="WRITEABLE"
20052 ></A
20053 >&#62;writeable (S)</DT
20054 ><DD
20055 ><P
20056 >Inverted synonym for <A
20057 HREF="#READONLY"
20058 ><TT
20059 CLASS="PARAMETER"
20060 ><I
20061 >               read only</I
20062 ></TT
20063 ></A
20064 >.</P
20065 ></DD
20066 ></DL
20067 ></DIV
20068 ></DIV
20069 ><DIV
20070 CLASS="REFSECT1"
20071 ><A
20072 NAME="AEN6323"
20073 ></A
20074 ><H2
20075 >WARNINGS</H2
20076 ><P
20077 >Although the configuration file permits service names 
20078         to contain spaces, your client software may not. Spaces will 
20079         be ignored in comparisons anyway, so it shouldn't be a 
20080         problem - but be aware of the possibility.</P
20081 ><P
20082 >On a similar note, many clients - especially DOS clients - 
20083         limit service names to eight characters. <SPAN
20084 CLASS="CITEREFENTRY"
20085 ><SPAN
20086 CLASS="REFENTRYTITLE"
20087 >smbd</SPAN
20088 >(8)</SPAN
20089 > has no such limitation, but attempts to connect from such 
20090         clients will fail if they truncate the service names.  For this reason 
20091         you should probably keep your service names down to eight characters 
20092         in length.</P
20093 ><P
20094 >Use of the [homes] and [printers] special sections make life 
20095         for an administrator easy, but the various combinations of default 
20096         attributes can be tricky. Take extreme care when designing these 
20097         sections. In particular, ensure that the permissions on spool 
20098         directories are correct.</P
20099 ></DIV
20100 ><DIV
20101 CLASS="REFSECT1"
20102 ><A
20103 NAME="AEN6331"
20104 ></A
20105 ><H2
20106 >VERSION</H2
20107 ><P
20108 >This man page is correct for version 3.0 of the Samba suite.</P
20109 ></DIV
20110 ><DIV
20111 CLASS="REFSECT1"
20112 ><A
20113 NAME="AEN6334"
20114 ></A
20115 ><H2
20116 >SEE ALSO</H2
20117 ><P
20118 >       <SPAN
20119 CLASS="CITEREFENTRY"
20120 ><SPAN
20121 CLASS="REFENTRYTITLE"
20122 >samba</SPAN
20123 >(7)</SPAN
20124 >, <SPAN
20125 CLASS="CITEREFENTRY"
20126 ><SPAN
20127 CLASS="REFENTRYTITLE"
20128 >smbpasswd</SPAN
20129 >(8)</SPAN
20130 >, <SPAN
20131 CLASS="CITEREFENTRY"
20132 ><SPAN
20133 CLASS="REFENTRYTITLE"
20134 >swat</SPAN
20135 >(8)</SPAN
20136 >, <SPAN
20137 CLASS="CITEREFENTRY"
20138 ><SPAN
20139 CLASS="REFENTRYTITLE"
20140 >smbd</SPAN
20141 >(8)</SPAN
20142 >, <SPAN
20143 CLASS="CITEREFENTRY"
20144 ><SPAN
20145 CLASS="REFENTRYTITLE"
20146 >nmbd</SPAN
20147 >(8)</SPAN
20148 >, <SPAN
20149 CLASS="CITEREFENTRY"
20150 ><SPAN
20151 CLASS="REFENTRYTITLE"
20152 >smbclient</SPAN
20153 >(1)</SPAN
20154 >, <SPAN
20155 CLASS="CITEREFENTRY"
20156 ><SPAN
20157 CLASS="REFENTRYTITLE"
20158 >nmblookup</SPAN
20159 >(1)</SPAN
20160 >, <SPAN
20161 CLASS="CITEREFENTRY"
20162 ><SPAN
20163 CLASS="REFENTRYTITLE"
20164 >testparm</SPAN
20165 >(1)</SPAN
20166 >, <SPAN
20167 CLASS="CITEREFENTRY"
20168 ><SPAN
20169 CLASS="REFENTRYTITLE"
20170 >testprns</SPAN
20171 >(1)</SPAN
20172 >.</P
20173 ></DIV
20174 ><DIV
20175 CLASS="REFSECT1"
20176 ><A
20177 NAME="AEN6364"
20178 ></A
20179 ><H2
20180 >AUTHOR</H2
20181 ><P
20182 >The original Samba software and related utilities 
20183         were created by Andrew Tridgell. Samba is now developed
20184         by the Samba Team as an Open Source project similar 
20185         to the way the Linux kernel is developed.</P
20186 ><P
20187 >The original Samba man pages were written by Karl Auer. 
20188         The man page sources were converted to YODL format (another 
20189         excellent piece of Open Source software, available at <A
20190 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
20191 TARGET="_top"
20192 >       ftp://ftp.icce.rug.nl/pub/unix/</A
20193 >) and updated for the Samba 2.0 
20194         release by Jeremy Allison.  The conversion to DocBook for 
20195         Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2
20196         for Samba 3.0 was done by Alexander Bokovoy.</P
20197 ></DIV
20198 ></BODY
20199 ></HTML
20200 >