preparing for release of 2.0.0beta5
[Samba.git] / docs / manpages / smb.conf.5
blob500630b554bccd96f5617b0dfea129e2d0cb403e
1 .TH SMB.CONF 5 "31 Dec 1998" "smb.conf 2.0.0beta5"
2 .PP 
3 .SH "NAME" 
4 smb\&.conf \- The configuration file for the Samba suite
5 .PP 
6 .SH "SYNOPSIS" 
7 .PP 
8 \fBsmb\&.conf\fP The \fBsmb\&.conf\fP file is a configuration file for the
9 Samba suite\&. \fBsmb\&.conf\fP contains runtime configuration information
10 for the Samba programs\&. The \fBsmb\&.conf\fP file is designed to be
11 configured and administered by the \fBswat (8)\fP
12 program\&. The complete description of the file format and possible
13 parameters held within are here for reference purposes\&.
14 .PP 
15 .SH "FILE FORMAT" 
16 .PP 
17 The file consists of sections and parameters\&. A section begins with
18 the name of the section in square brackets and continues until the
19 next section begins\&. Sections contain parameters of the form 
20 .PP 
21 \f(CW\'name = value\'\fP
22 .PP 
23 The file is line-based - that is, each newline-terminated line
24 represents either a comment, a section name or a parameter\&.
25 .PP 
26 Section and parameter names are not case sensitive\&.
27 .PP 
28 Only the first equals sign in a parameter is significant\&. Whitespace
29 before or after the first equals sign is discarded\&. Leading, trailing
30 and internal whitespace in section and parameter names is
31 irrelevant\&. Leading and trailing whitespace in a parameter value is
32 discarded\&. Internal whitespace within a parameter value is retained
33 verbatim\&.
34 .PP 
35 Any line beginning with a semicolon (\';\') or a hash (\'#\') character is
36 ignored, as are lines containing only whitespace\&.
37 .PP 
38 Any line ending in a \f(CW\'\e\'\fP is "continued" on the next line in the
39 customary UNIX fashion\&.
40 .PP 
41 The values following the equals sign in parameters are all either a
42 string (no quotes needed) or a boolean, which may be given as yes/no,
43 0/1 or true/false\&. Case is not significant in boolean values, but is
44 preserved in string values\&. Some items such as create modes are
45 numeric\&.
46 .PP 
47 .SH "SECTION DESCRIPTIONS" 
48 .PP 
49 Each section in the configuration file (except for the
50 \fB[global]\fP section) describes a shared resource (known
51 as a \fI"share"\fP)\&. The section name is the name of the shared resource
52 and the parameters within the section define the shares attributes\&.
53 .PP 
54 There are three special sections, \fB[global]\fP,
55 \fB[homes]\fP and \fB[printers]\fP, which are
56 described under \fB\'special sections\'\fP\&. The
57 following notes apply to ordinary section descriptions\&.
58 .PP 
59 A share consists of a directory to which access is being given plus
60 a description of the access rights which are granted to the user of
61 the service\&. Some housekeeping options are also specifiable\&.
62 .PP 
63 Sections are either filespace services (used by the client as an
64 extension of their native file systems) or printable services (used by
65 the client to access print services on the host running the server)\&.
66 .PP 
67 Sections may be designated \fBguest\fP services, in which
68 case no password is required to access them\&. A specified UNIX
69 \fBguest account\fP is used to define access
70 privileges in this case\&.
71 .PP 
72 Sections other than guest services will require a password to access
73 them\&. The client provides the username\&. As older clients only provide
74 passwords and not usernames, you may specify a list of usernames to
75 check against the password using the \fB"user="\fP option in
76 the share definition\&. For modern clients such as Windows 95/98 and
77 Windows NT, this should not be necessary\&.
78 .PP 
79 Note that the access rights granted by the server are masked by the
80 access rights granted to the specified or guest UNIX user by the host
81 system\&. The server does not grant more access than the host system
82 grants\&.
83 .PP 
84 The following sample section defines a file space share\&. The user has
85 write access to the path \f(CW/home/bar\fP\&. The share is accessed via
86 the share name "foo":
87 .PP 
89 .DS 
93         [foo]
94                 path = /home/bar
95                 writeable = true
98 .DE 
101 .PP 
102 The following sample section defines a printable share\&. The share
103 is readonly, but printable\&. That is, the only write access permitted
104 is via calls to open, write to and close a spool file\&. The
105 \fB\'guest ok\'\fP parameter means access will be permitted
106 as the default guest user (specified elsewhere):
107 .PP 
109 .DS 
112         [aprinter]
113                 path = /usr/spool/public
114                 read only = true
115                 printable = true
116                 guest ok = true
118 .DE 
121 .PP 
122 .SH "SPECIAL SECTIONS" 
123 .PP 
124 .IP 
125 .IP "\fBThe [global] section\fP" 
126 .IP 
127 Parameters in this section apply to the server as a whole, or are
128 defaults for sections which do not specifically define certain
129 items\&. See the notes under \fB\'PARAMETERS\'\fP for more
130 information\&.
131 .IP 
132 .IP "\fBThe [homes] section\fP" 
133 .IP 
134 If a section called \f(CW\'homes\'\fP is included in the configuration file,
135 services connecting clients to their home directories can be created
136 on the fly by the server\&.
137 .IP 
138 When the connection request is made, the existing sections are
139 scanned\&. If a match is found, it is used\&. If no match is found, the
140 requested section name is treated as a user name and looked up in the
141 local password file\&. If the name exists and the correct password has
142 been given, a share is created by cloning the [homes] section\&.
143 .IP 
144 Some modifications are then made to the newly created share:
145 .IP 
146 .IP 
147 .IP o 
148 The share name is changed from \f(CW\'homes\'\fP to the located
149 username
150 .IP 
151 .IP o 
152 If no path was given, the path is set to the user\'s home
153 directory\&.
154 .IP 
155 .IP 
156 If you decide to use a \fBpath=\fP line in your [homes]
157 section then you may find it useful to use the \fB%S\fP
158 macro\&. For example :
159 .IP 
160 \f(CWpath=/data/pchome/%S\fP
161 .IP 
162 would be useful if you have different home directories for your PCs
163 than for UNIX access\&.
164 .IP 
165 This is a fast and simple way to give a large number of clients access
166 to their home directories with a minimum of fuss\&.
167 .IP 
168 A similar process occurs if the requested section name is \f(CW"homes"\fP,
169 except that the share name is not changed to that of the requesting
170 user\&. This method of using the [homes] section works well if different
171 users share a client PC\&.
172 .IP 
173 The [homes] section can specify all the parameters a normal service
174 section can specify, though some make more sense than others\&. The
175 following is a typical and suitable [homes] section:
176 .IP 
178 .DS 
181         [homes]
182                 writeable = yes
184 .DE 
187 .IP 
188 An important point is that if guest access is specified in the [homes]
189 section, all home directories will be visible to all clients
190 \fBwithout a password\fP\&. In the very unlikely event that this is
191 actually desirable, it would be wise to also specify \fBread only
192 access\fP\&.
193 .IP 
194 Note that the \fBbrowseable\fP flag for auto home
195 directories will be inherited from the global browseable flag, not the
196 [homes] browseable flag\&. This is useful as it means setting
197 browseable=no in the [homes] section will hide the [homes] share but
198 make any auto home directories visible\&.
199 .IP 
200 .IP "\fBThe [printers] section\fP" 
201 .IP 
202 This section works like \fB[homes]\fP, but for printers\&.
203 .IP 
204 If a [printers] section occurs in the configuration file, users are
205 able to connect to any printer specified in the local host\'s printcap
206 file\&.
207 .IP 
208 When a connection request is made, the existing sections are
209 scanned\&. If a match is found, it is used\&. If no match is found, but a
210 \fB[homes]\fP section exists, it is used as described
211 above\&. Otherwise, the requested section name is treated as a printer
212 name and the appropriate printcap file is scanned to see if the
213 requested section name is a valid printer share name\&. If a match is
214 found, a new printer share is created by cloning the [printers]
215 section\&.
216 .IP 
217 A few modifications are then made to the newly created share:
218 .IP 
219 .IP 
220 .IP o 
221 The share name is set to the located printer name
222 .IP 
223 .IP o 
224 If no printer name was given, the printer name is set to the
225 located printer name
226 .IP 
227 .IP o 
228 If the share does not permit guest access and no username was
229 given, the username is set to the located printer name\&.
230 .IP 
231 .IP 
232 Note that the [printers] service MUST be printable - if you specify
233 otherwise, the server will refuse to load the configuration file\&.
234 .IP 
235 Typically the path specified would be that of a world-writeable spool
236 directory with the sticky bit set on it\&. A typical [printers] entry
237 would look like this:
238 .IP 
240 .DS 
243         [printers]
244                 path = /usr/spool/public
245                 writeable = no
246                 guest ok = yes
247                 printable = yes 
249 .DE 
252 .IP 
253 All aliases given for a printer in the printcap file are legitimate
254 printer names as far as the server is concerned\&. If your printing
255 subsystem doesn\'t work like that, you will have to set up a
256 pseudo-printcap\&. This is a file consisting of one or more lines like
257 this:
258 .IP 
260 .DS 
262         alias|alias|alias|alias\&.\&.\&.    
263 .DE 
266 .IP 
267 Each alias should be an acceptable printer name for your printing
268 subsystem\&. In the \fB[global]\fP section, specify the new
269 file as your printcap\&.  The server will then only recognize names
270 found in your pseudo-printcap, which of course can contain whatever
271 aliases you like\&. The same technique could be used simply to limit
272 access to a subset of your local printers\&.
273 .IP 
274 An alias, by the way, is defined as any component of the first entry
275 of a printcap record\&. Records are separated by newlines, components
276 (if there are more than one) are separated by vertical bar symbols
277 ("|")\&.
278 .IP 
279 NOTE: On SYSV systems which use lpstat to determine what printers are
280 defined on the system you may be able to use \fB"printcap name =
281 lpstat"\fP to automatically obtain a list of
282 printers\&. See the \fB"printcap name"\fP option for
283 more details\&.
284 .IP 
285 .PP 
286 .SH "PARAMETERS" 
287 .PP 
288 Parameters define the specific attributes of sections\&.
289 .PP 
290 Some parameters are specific to the \fB[global]\fP section
291 (e\&.g\&., \fBsecurity\fP)\&.  Some parameters are usable in
292 all sections (e\&.g\&., \fBcreate mode\fP)\&. All others are
293 permissible only in normal sections\&. For the purposes of the following
294 descriptions the \fB[homes]\fP and
295 \fB[printers]\fP sections will be considered normal\&.
296 The letter \f(CW\'G\'\fP in parentheses indicates that a parameter is
297 specific to the \fB[global]\fP section\&. The letter \f(CW\'S\'\fP
298 indicates that a parameter can be specified in a service specific
299 section\&. Note that all \f(CW\'S\'\fP parameters can also be specified in the
300 \fB[global]\fP section - in which case they will define
301 the default behavior for all services\&.
302 .PP 
303 Parameters are arranged here in alphabetical order - this may not
304 create best bedfellows, but at least you can find them! Where there
305 are synonyms, the preferred synonym is described, others refer to the
306 preferred synonym\&.
307 .PP 
308 .SH "VARIABLE SUBSTITUTIONS" 
309 .PP 
310 Many of the strings that are settable in the config file can take
311 substitutions\&. For example the option \fB\f(CW"path =
312 /tmp/%u"\fP\fP would be interpreted as \f(CW"path = /tmp/john"\fP if
313 the user connected with the username john\&.
314 .PP 
315 These substitutions are mostly noted in the descriptions below, but
316 there are some general substitutions which apply whenever they might
317 be relevant\&. These are:
318 .PP 
319 .IP 
320 .IP o 
321 \fB%S\fP = the name of the current service, if any\&.
322 .IP 
323 .IP o 
324 \fB%P\fP = the root directory of the current service, if any\&.
325 .IP 
326 .IP o 
327 \fB%u\fP = user name of the current service, if any\&.
328 .IP 
329 .IP o 
330 \fB%g\fP = primary group name of \fB%u\fP\&.
331 .IP 
332 .IP o 
333 \fB%U\fP = session user name (the user name that
334 the client wanted, not necessarily the same as the one they got)\&.
335 .IP 
336 .IP o 
337 \fB%G\fP = primary group name of \fB%U\fP\&.
338 .IP 
339 .IP o 
340 \fB%H\fP = the home directory of the user given by \fB%u\fP\&.
341 .IP 
342 .IP o 
343 \fB%v\fP = the Samba version\&.
344 .IP 
345 .IP o 
346 \fB%h\fP = the internet hostname that Samba is running on\&.
347 .IP 
348 .IP o 
349 \fB%m\fP = the NetBIOS name of the client machine (very useful)\&.
350 .IP 
351 .IP o 
352 \fB%L\fP = the NetBIOS name of the server\&. This allows you to change your
353 config based on what the client calls you\&. Your server can have a "dual
354 personality"\&.
355 .IP 
356 .IP o 
357 \fB%M\fP = the internet name of the client machine\&.
358 .IP 
359 .IP o 
360 \fB%N\fP = the name of your NIS home directory server\&.  This is
361 obtained from your NIS auto\&.map entry\&.  If you have not compiled Samba
362 with the \fB--with-automount\fP option then this value will be the same
363 as \fB%L\fP\&.
364 .IP 
365 .IP o 
366 \fB%p\fP = the path of the service\'s home directory, obtained from your NIS
367 auto\&.map entry\&. The NIS auto\&.map entry is split up as "%N:%p"\&.
368 .IP 
369 .IP o 
370 \fB%R\fP = the selected protocol level after protocol
371 negotiation\&. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1\&.
372 .IP 
373 .IP o 
374 \fB%d\fP = The process id of the current server process\&.
375 .IP 
376 .IP o 
377 \fB%a\fP = the architecture of the remote
378 machine\&. Only some are recognized, and those may not be 100%
379 reliable\&. It currently recognizes Samba, WfWg, WinNT and
380 Win95\&. Anything else will be known as "UNKNOWN"\&. If it gets it wrong
381 then sending a level 3 log to \fIsamba-bugs@samba\&.org\fP
382 should allow it to be fixed\&.
383 .IP 
384 .IP o 
385 \fB%I\fP = The IP address of the client machine\&.
386 .IP 
387 .IP o 
388 \fB%T\fP = the current date and time\&.
389 .IP 
390 .PP 
391 There are some quite creative things that can be done with these
392 substitutions and other smb\&.conf options\&.
393 .PP 
394 .SH "NAME MANGLING" 
395 .PP 
396 Samba supports \fI"name mangling"\fP so that DOS and Windows clients can
397 use files that don\'t conform to the 8\&.3 format\&. It can also be set to
398 adjust the case of 8\&.3 format filenames\&.
399 .PP 
400 There are several options that control the way mangling is performed,
401 and they are grouped here rather than listed separately\&. For the
402 defaults look at the output of the testparm program\&.
403 .PP 
404 All of these options can be set separately for each service (or
405 globally, of course)\&.
406 .PP 
407 The options are:
408 .PP 
409 \fB"mangle case = yes/no"\fP controls if names that have characters that
410 aren\'t of the "default" case are mangled\&. For example, if this is yes
411 then a name like \f(CW"Mail"\fP would be mangled\&. Default \fIno\fP\&.
412 .PP 
413 \fB"case sensitive = yes/no"\fP controls whether filenames are case
414 sensitive\&. If they aren\'t then Samba must do a filename search and
415 match on passed names\&. Default \fIno\fP\&.
416 .PP 
417 \fB"default case = upper/lower"\fP controls what the default case is for new
418 filenames\&. Default \fIlower\fP\&.
419 .PP 
420 \fB"preserve case = yes/no"\fP controls if new files are created with the
421 case that the client passes, or if they are forced to be the \f(CW"default"\fP
422 case\&. Default \fIYes\fP\&.
423 .PP 
424 .PP 
425 \fB"short preserve case = yes/no"\fP controls if new files which conform
426 to 8\&.3 syntax, that is all in upper case and of suitable length, are
427 created upper case, or if they are forced to be the \f(CW"default"\fP
428 case\&. This option can be use with \fB"preserve case =
429 yes"\fP to permit long filenames to retain their
430 case, while short names are lowered\&. Default \fIYes\fP\&.
431 .PP 
432 By default, Samba 2\&.0 has the same semantics as a Windows NT
433 server, in that it is case insensitive but case preserving\&.
434 .PP 
435 .SH "NOTE ABOUT USERNAME/PASSWORD VALIDATION" 
436 .PP 
437 There are a number of ways in which a user can connect to a
438 service\&. The server follows the following steps in determining if it
439 will allow a connection to a specified service\&. If all the steps fail
440 then the connection request is rejected\&. If one of the steps pass then
441 the following steps are not checked\&.
442 .PP 
443 If the service is marked \fB"guest only = yes"\fP then
444 steps 1 to 5 are skipped\&.
445 .PP 
446 .IP 
447 .IP 1\&. 
448 Step 1: If the client has passed a username/password pair and
449 that username/password pair is validated by the UNIX system\'s password
450 programs then the connection is made as that username\&. Note that this
451 includes the \f(CW\e\eserver\eservice%username\fP method of passing a
452 username\&.
453 .IP 
454 .IP 2\&. 
455 Step 2: If the client has previously registered a username with
456 the system and now supplies a correct password for that username then
457 the connection is allowed\&.
458 .IP 
459 .IP 3\&. 
460 Step 3: The client\'s netbios name and any previously used user
461 names are checked against the supplied password, if they match then
462 the connection is allowed as the corresponding user\&.
463 .IP 
464 .IP 4\&. 
465 Step 4: If the client has previously validated a
466 username/password pair with the server and the client has passed the
467 validation token then that username is used\&. This step is skipped if
468 \fB"revalidate = yes"\fP for this service\&.
469 .IP 
470 .IP 5\&. 
471 Step 5: If a \fB"user = "\fP field is given in the
472 smb\&.conf file for the service and the client has supplied a password,
473 and that password matches (according to the UNIX system\'s password
474 checking) with one of the usernames from the \fBuser=\fP
475 field then the connection is made as the username in the
476 \fB"user="\fP line\&. If one of the username in the
477 \fBuser=\fP list begins with a \f(CW\'@\'\fP then that name
478 expands to a list of names in the group of the same name\&.
479 .IP 
480 .IP 6\&. 
481 Step 6: If the service is a guest service then a connection is
482 made as the username given in the \fB"guest account
483 ="\fP for the service, irrespective of the supplied
484 password\&.
485 .IP 
486 .PP 
487 .SH "COMPLETE LIST OF GLOBAL PARAMETERS" 
488 .PP 
489 Here is a list of all global parameters\&. See the section of each
490 parameter for details\&.  Note that some are synonyms\&.
491 .PP 
492 .IP 
493 .IP o 
494 \fBadd user script\fP
495 .IP 
496 .IP o 
497 \fBannounce as\fP
498 .IP 
499 .IP o 
500 \fBannounce version\fP
501 .IP 
502 .IP o 
503 \fBauto services\fP
504 .IP 
505 .IP o 
506 \fBbind interfaces only\fP
507 .IP 
508 .IP o 
509 \fBbrowse list\fP
510 .IP 
511 .IP o 
512 \fBchange notify timeout\fP
513 .IP 
514 .IP o 
515 \fBcharacter set\fP
516 .IP 
517 .IP o 
518 \fBclient code page\fP
519 .IP 
520 .IP o 
521 \fBcoding system\fP
522 .IP 
523 .IP o 
524 \fBconfig file\fP
525 .IP 
526 .IP o 
527 \fBdeadtime\fP
528 .IP 
529 .IP o 
530 \fBdebug timestamp\fP
531 .IP 
532 .IP o 
533 \fBdebuglevel\fP
534 .IP 
535 .IP o 
536 \fBdefault\fP
537 .IP 
538 .IP o 
539 \fBdefault service\fP
540 .IP 
541 .IP o 
542 \fBdelete user script\fP
543 .IP 
544 .IP o 
545 \fBdfree command\fP
546 .IP 
547 .IP o 
548 \fBdns proxy\fP
549 .IP 
550 .IP o 
551 \fBdomain admin group\fP
552 .IP 
553 .IP o 
554 \fBdomain admin users\fP
555 .IP 
556 .IP o 
557 \fBdomain controller\fP
558 .IP 
559 .IP o 
560 \fBdomain groups\fP
561 .IP 
562 .IP o 
563 \fBdomain guest group\fP
564 .IP 
565 .IP o 
566 \fBdomain guest users\fP
567 .IP 
568 .IP o 
569 \fBdomain logons\fP
570 .IP 
571 .IP o 
572 \fBdomain master\fP
573 .IP 
574 .IP o 
575 \fBencrypt passwords\fP
576 .IP 
577 .IP o 
578 \fBgetwd cache\fP
579 .IP 
580 .IP o 
581 \fBhomedir map\fP
582 .IP 
583 .IP o 
584 \fBhosts equiv\fP
585 .IP 
586 .IP o 
587 \fBinterfaces\fP
588 .IP 
589 .IP o 
590 \fBkeepalive\fP
591 .IP 
592 .IP o 
593 \fBkernel oplocks\fP
594 .IP 
595 .IP o 
596 \fBldap filter\fP
597 .IP 
598 .IP o 
599 \fBldap port\fP
600 .IP 
601 .IP o 
602 \fBldap root\fP
603 .IP 
604 .IP o 
605 \fBldap root passwd\fP
606 .IP 
607 .IP o 
608 \fBldap server\fP
609 .IP 
610 .IP o 
611 \fBldap suffix\fP
612 .IP 
613 .IP o 
614 \fBlm announce\fP
615 .IP 
616 .IP o 
617 \fBlm interval\fP
618 .IP 
619 .IP o 
620 \fBload printers\fP
621 .IP 
622 .IP o 
623 \fBlocal master\fP
624 .IP 
625 .IP o 
626 \fBlock dir\fP
627 .IP 
628 .IP o 
629 \fBlock directory\fP
630 .IP 
631 .IP o 
632 \fBlog file\fP
633 .IP 
634 .IP o 
635 \fBlog level\fP
636 .IP 
637 .IP o 
638 \fBlogon drive\fP
639 .IP 
640 .IP o 
641 \fBlogon home\fP
642 .IP 
643 .IP o 
644 \fBlogon path\fP
645 .IP 
646 .IP o 
647 \fBlogon script\fP
648 .IP 
649 .IP o 
650 \fBlpq cache time\fP
651 .IP 
652 .IP o 
653 \fBmachine password timeout\fP
654 .IP 
655 .IP o 
656 \fBmangled stack\fP
657 .IP 
658 .IP o 
659 \fBmax disk size\fP
660 .IP 
661 .IP o 
662 \fBmax log size\fP
663 .IP 
664 .IP o 
665 \fBmax mux\fP
666 .IP 
667 .IP o 
668 \fBmax open files\fP
669 .IP 
670 .IP o 
671 \fBmax packet\fP
672 .IP 
673 .IP o 
674 \fBmax ttl\fP
675 .IP 
676 .IP o 
677 \fBmax wins ttl\fP
678 .IP 
679 .IP o 
680 \fBmax xmit\fP
681 .IP 
682 .IP o 
683 \fBmessage command\fP
684 .IP 
685 .IP o 
686 \fBmin wins ttl\fP
687 .IP 
688 .IP o 
689 \fBname resolve order\fP
690 .IP 
691 .IP o 
692 \fBnetbios aliases\fP
693 .IP 
694 .IP o 
695 \fBnetbios name\fP
696 .IP 
697 .IP o 
698 \fBnis homedir\fP
699 .IP 
700 .IP o 
701 \fBnt pipe support\fP
702 .IP 
703 .IP o 
704 \fBnt smb support\fP
705 .IP 
706 .IP o 
707 \fBnull passwords\fP
708 .IP 
709 .IP o 
710 \fBole locking compatibility\fP
711 .IP 
712 .IP o 
713 \fBos level\fP
714 .IP 
715 .IP o 
716 \fBpacket size\fP
717 .IP 
718 .IP o 
719 \fBpanic action\fP
720 .IP 
721 .IP o 
722 \fBpasswd chat\fP
723 .IP 
724 .IP o 
725 \fBpasswd chat debug\fP
726 .IP 
727 .IP o 
728 \fBpasswd program\fP
729 .IP 
730 .IP o 
731 \fBpassword level\fP
732 .IP 
733 .IP o 
734 \fBpassword server\fP
735 .IP 
736 .IP o 
737 \fBprefered master\fP
738 .IP 
739 .IP o 
740 \fBpreferred master\fP
741 .IP 
742 .IP o 
743 \fBpreload\fP
744 .IP 
745 .IP o 
746 \fBprintcap\fP
747 .IP 
748 .IP o 
749 \fBprintcap name\fP
750 .IP 
751 .IP o 
752 \fBprinter driver file\fP
753 .IP 
754 .IP o 
755 \fBprotocol\fP
756 .IP 
757 .IP o 
758 \fBread bmpx\fP
759 .IP 
760 .IP o 
761 \fBread prediction\fP
762 .IP 
763 .IP o 
764 \fBread raw\fP
765 .IP 
766 .IP o 
767 \fBread size\fP
768 .IP 
769 .IP o 
770 \fBremote announce\fP
771 .IP 
772 .IP o 
773 \fBremote browse sync\fP
774 .IP 
775 .IP o 
776 \fBroot\fP
777 .IP 
778 .IP o 
779 \fBroot dir\fP
780 .IP 
781 .IP o 
782 \fBroot directory\fP
783 .IP 
784 .IP o 
785 \fBsecurity\fP
786 .IP 
787 .IP o 
788 \fBserver string\fP
789 .IP 
790 .IP o 
791 \fBshared mem size\fP
792 .IP 
793 .IP o 
794 \fBsmb passwd file\fP
795 .IP 
796 .IP o 
797 \fBsmbrun\fP
798 .IP 
799 .IP o 
800 \fBsocket address\fP
801 .IP 
802 .IP o 
803 \fBsocket options\fP
804 .IP 
805 .IP o 
806 \fBssl\fP
807 .IP 
808 .IP o 
809 \fBssl CA certDir\fP
810 .IP 
811 .IP o 
812 \fBssl CA certFile\fP
813 .IP 
814 .IP o 
815 \fBssl ciphers\fP
816 .IP 
817 .IP o 
818 \fBssl client cert\fP
819 .IP 
820 .IP o 
821 \fBssl client key\fP
822 .IP 
823 .IP o 
824 \fBssl compatibility\fP
825 .IP 
826 .IP o 
827 \fBssl hosts\fP
828 .IP 
829 .IP o 
830 \fBssl hosts resign\fP
831 .IP 
832 .IP o 
833 \fBssl require clientcert\fP
834 .IP 
835 .IP o 
836 \fBssl require servercert\fP
837 .IP 
838 .IP o 
839 \fBssl server cert\fP
840 .IP 
841 .IP o 
842 \fBssl server key\fP
843 .IP 
844 .IP o 
845 \fBssl version\fP
846 .IP 
847 .IP o 
848 \fBstat cache\fP
849 .IP 
850 .IP o 
851 \fBstat cache size\fP
852 .IP 
853 .IP o 
854 \fBstrip dot\fP
855 .IP 
856 .IP o 
857 \fBsyslog\fP
858 .IP 
859 .IP o 
860 \fBsyslog only\fP
861 .IP 
862 .IP o 
863 \fBtime offset\fP
864 .IP 
865 .IP o 
866 \fBtime server\fP
867 .IP 
868 .IP o 
869 \fBtimestamp logs\fP
870 .IP 
871 .IP o 
872 \fBunix password sync\fP
873 .IP 
874 .IP o 
875 \fBunix realname\fP
876 .IP 
877 .IP o 
878 \fBupdate encrypted\fP
879 .IP 
880 .IP o 
881 \fBuse rhosts\fP
882 .IP 
883 .IP o 
884 \fBusername level\fP
885 .IP 
886 .IP o 
887 \fBusername map\fP
888 .IP 
889 .IP o 
890 \fBvalid chars\fP
891 .IP 
892 .IP o 
893 \fBwins proxy\fP
894 .IP 
895 .IP o 
896 \fBwins server\fP
897 .IP 
898 .IP o 
899 \fBwins support\fP
900 .IP 
901 .IP o 
902 \fBworkgroup\fP
903 .IP 
904 .IP o 
905 \fBwrite raw\fP
906 .IP 
907 .PP 
908 .SH "COMPLETE LIST OF SERVICE PARAMETERS" 
909 .PP 
910 Here is a list of all service parameters\&. See the section of each
911 parameter for details\&. Note that some are synonyms\&.
912 .PP 
913 .IP 
914 .IP o 
915 \fBadmin users\fP
916 .IP 
917 .IP o 
918 \fBallow hosts\fP
919 .IP 
920 .IP o 
921 \fBalternate permissions\fP
922 .IP 
923 .IP o 
924 \fBavailable\fP
925 .IP 
926 .IP o 
927 \fBblocking locks\fP
928 .IP 
929 .IP o 
930 \fBbrowsable\fP
931 .IP 
932 .IP o 
933 \fBbrowseable\fP
934 .IP 
935 .IP o 
936 \fBcase sensitive\fP
937 .IP 
938 .IP o 
939 \fBcasesignames\fP
940 .IP 
941 .IP o 
942 \fBcomment\fP
943 .IP 
944 .IP o 
945 \fBcopy\fP
946 .IP 
947 .IP o 
948 \fBcreate mask\fP
949 .IP 
950 .IP o 
951 \fBcreate mode\fP
952 .IP 
953 .IP o 
954 \fBdefault case\fP
955 .IP 
956 .IP o 
957 \fBdelete readonly\fP
958 .IP 
959 .IP o 
960 \fBdelete veto files\fP
961 .IP 
962 .IP o 
963 \fBdeny hosts\fP
964 .IP 
965 .IP o 
966 \fBdirectory\fP
967 .IP 
968 .IP o 
969 \fBdirectory mask\fP
970 .IP 
971 .IP o 
972 \fBdirectory mode\fP
973 .IP 
974 .IP o 
975 \fBdont descend\fP
976 .IP 
977 .IP o 
978 \fBdos filetime resolution\fP
979 .IP 
980 .IP o 
981 \fBdos filetimes\fP
982 .IP 
983 .IP o 
984 \fBexec\fP
985 .IP 
986 .IP o 
987 \fBfake directory create times\fP
988 .IP 
989 .IP o 
990 \fBfake oplocks\fP
991 .IP 
992 .IP o 
993 \fBfollow symlinks\fP
994 .IP 
995 .IP o 
996 \fBforce create mode\fP
997 .IP 
998 .IP o 
999 \fBforce directory mode\fP
1000 .IP 
1001 .IP o 
1002 \fBforce group\fP
1003 .IP 
1004 .IP o 
1005 \fBforce user\fP
1006 .IP 
1007 .IP o 
1008 \fBfstype\fP
1009 .IP 
1010 .IP o 
1011 \fBgroup\fP
1012 .IP 
1013 .IP o 
1014 \fBguest account\fP
1015 .IP 
1016 .IP o 
1017 \fBguest ok\fP
1018 .IP 
1019 .IP o 
1020 \fBguest only\fP
1021 .IP 
1022 .IP o 
1023 \fBhide dot files\fP
1024 .IP 
1025 .IP o 
1026 \fBhide files\fP
1027 .IP 
1028 .IP o 
1029 \fBhosts allow\fP
1030 .IP 
1031 .IP o 
1032 \fBhosts deny\fP
1033 .IP 
1034 .IP o 
1035 \fBinclude\fP
1036 .IP 
1037 .IP o 
1038 \fBinvalid users\fP
1039 .IP 
1040 .IP o 
1041 \fBlocking\fP
1042 .IP 
1043 .IP o 
1044 \fBlppause command\fP
1045 .IP 
1046 .IP o 
1047 \fBlpq command\fP
1048 .IP 
1049 .IP o 
1050 \fBlpresume command\fP
1051 .IP 
1052 .IP o 
1053 \fBlprm command\fP
1054 .IP 
1055 .IP o 
1056 \fBmagic output\fP
1057 .IP 
1058 .IP o 
1059 \fBmagic script\fP
1060 .IP 
1061 .IP o 
1062 \fBmangle case\fP
1063 .IP 
1064 .IP o 
1065 \fBmangled map\fP
1066 .IP 
1067 .IP o 
1068 \fBmangled names\fP
1069 .IP 
1070 .IP o 
1071 \fBmangling char\fP
1072 .IP 
1073 .IP o 
1074 \fBmap archive\fP
1075 .IP 
1076 .IP o 
1077 \fBmap hidden\fP
1078 .IP 
1079 .IP o 
1080 \fBmap system\fP
1081 .IP 
1082 .IP o 
1083 \fBmap to guest\fP
1084 .IP 
1085 .IP o 
1086 \fBmax connections\fP
1087 .IP 
1088 .IP o 
1089 \fBmin print space\fP
1090 .IP 
1091 .IP o 
1092 \fBonly guest\fP
1093 .IP 
1094 .IP o 
1095 \fBonly user\fP
1096 .IP 
1097 .IP o 
1098 \fBoplocks\fP
1099 .IP 
1100 .IP o 
1101 \fBpath\fP
1102 .IP 
1103 .IP o 
1104 \fBpostexec\fP
1105 .IP 
1106 .IP o 
1107 \fBpostscript\fP
1108 .IP 
1109 .IP o 
1110 \fBpreexec\fP
1111 .IP 
1112 .IP o 
1113 \fBpreserve case\fP
1114 .IP 
1115 .IP o 
1116 \fBprint command\fP
1117 .IP 
1118 .IP o 
1119 \fBprint ok\fP
1120 .IP 
1121 .IP o 
1122 \fBprintable\fP
1123 .IP 
1124 .IP o 
1125 \fBprinter\fP
1126 .IP 
1127 .IP o 
1128 \fBprinter driver\fP
1129 .IP 
1130 .IP o 
1131 \fBprinter driver location\fP
1132 .IP 
1133 .IP o 
1134 \fBprinter name\fP
1135 .IP 
1136 .IP o 
1137 \fBprinting\fP
1138 .IP 
1139 .IP o 
1140 \fBpublic\fP
1141 .IP 
1142 .IP o 
1143 \fBqueuepause command\fP
1144 .IP 
1145 .IP o 
1146 \fBqueueresume command\fP
1147 .IP 
1148 .IP o 
1149 \fBread list\fP
1150 .IP 
1151 .IP o 
1152 \fBread only\fP
1153 .IP 
1154 .IP o 
1155 \fBrevalidate\fP
1156 .IP 
1157 .IP o 
1158 \fBroot postexec\fP
1159 .IP 
1160 .IP o 
1161 \fBroot preexec\fP
1162 .IP 
1163 .IP o 
1164 \fBset directory\fP
1165 .IP 
1166 .IP o 
1167 \fBshare modes\fP
1168 .IP 
1169 .IP o 
1170 \fBshort preserve case\fP
1171 .IP 
1172 .IP o 
1173 \fBstatus\fP
1174 .IP 
1175 .IP o 
1176 \fBstrict locking\fP
1177 .IP 
1178 .IP o 
1179 \fBstrict sync\fP
1180 .IP 
1181 .IP o 
1182 \fBsync always\fP
1183 .IP 
1184 .IP o 
1185 \fBuser\fP
1186 .IP 
1187 .IP o 
1188 \fBusername\fP
1189 .IP 
1190 .IP o 
1191 \fBusers\fP
1192 .IP 
1193 .IP o 
1194 \fBvalid users\fP
1195 .IP 
1196 .IP o 
1197 \fBveto files\fP
1198 .IP 
1199 .IP o 
1200 \fBveto oplock files\fP
1201 .IP 
1202 .IP o 
1203 \fBvolume\fP
1204 .IP 
1205 .IP o 
1206 \fBwide links\fP
1207 .IP 
1208 .IP o 
1209 \fBwritable\fP
1210 .IP 
1211 .IP o 
1212 \fBwrite list\fP
1213 .IP 
1214 .IP o 
1215 \fBwrite ok\fP
1216 .IP 
1217 .IP o 
1218 \fBwriteable\fP
1219 .IP 
1220 .PP 
1221 .SH "EXPLANATION OF EACH PARAMETER" 
1222 .PP 
1223 .IP 
1224 .IP "\fBadd user script (G)\fP" 
1225 .IP 
1226 This is the full pathname to a script that will be run \fIAS ROOT\fP by
1227 \fBsmbd (8)\fP under special circumstances decribed
1228 below\&.
1229 .IP 
1230 Normally, a Samba server requires that UNIX users are created for all
1231 users accessing files on this server\&. For sites that use Windows NT
1232 account databases as their primary user database creating these users
1233 and keeping the user list in sync with the Windows NT PDC is an
1234 onerous task\&. This option allows \fBsmbd\fP to create
1235 the required UNIX users \fION DEMAND\fP when a user accesses the Samba
1236 server\&.
1237 .IP 
1238 In order to use this option, \fBsmbd\fP must be set to
1239 \fBsecurity=server\fP or
1240 \fBsecurity=domain\fP and \fB"add user script"\fP
1241 must be set to a full pathname for a script that will create a UNIX user
1242 given one argument of \fB%u\fP, which expands into the UNIX user name to
1243 create\&.
1244 .IP 
1245 When the Windows user attempts to access the Samba server, at
1246 \fI"login"\fP(session setup in the SMB protocol) time,
1247 \fBsmbd\fP contacts the \fBpassword
1248 server\fP and attempts to authenticate the given user
1249 with the given password\&. If the authentication succeeds then
1250 \fBsmbd\fP attempts to find a UNIX user in the UNIX
1251 password database to map the Windows user into\&. If this lookup fails,
1252 and \fB"add user script"\fP is set then \fBsmbd\fP will
1253 call the specified script \fIAS ROOT\fP, expanding any \fB%u\fP argument
1254 to be the user name to create\&.
1255 .IP 
1256 If this script successfully creates the user then
1257 \fBsmbd\fP will continue on as though the UNIX user
1258 already existed\&. In this way, UNIX users are dynamically created to
1259 match existing Windows NT accounts\&.
1260 .IP 
1261 See also \fBsecurity=server\fP,
1262 \fBsecurity=domain\fP, \fBpassword
1263 server\fP, \fBdelete user
1264 script\fP\&.
1265 .IP 
1266 \fBDefault:\fP
1267 \f(CW   add user script = <empty string>\fP
1268 .IP 
1269 \fBExample:\fP
1270 \f(CW   add user script = /usr/local/samba/bin/add_user %u\fP
1271 .IP 
1272 .IP "\fBadmin users (S)\fP" 
1273 .IP 
1274 This is a list of users who will be granted administrative privileges
1275 on the share\&. This means that they will do all file operations as the
1276 super-user (root)\&.
1277 .IP 
1278 You should use this option very carefully, as any user in this list
1279 will be able to do anything they like on the share, irrespective of
1280 file permissions\&.
1281 .IP 
1282 \fBDefault:\fP 
1283 .br 
1284 \f(CW   no admin users\fP
1285 .IP 
1286 \fBExample:\fP 
1287 .br 
1288 \f(CW   admin users = jason\fP
1289 .IP 
1290 .IP "\fBallow hosts (S)\fP" 
1291 .IP 
1292 Synonym for \fBhosts allow\fP\&.
1293 .IP 
1294 .IP "\fBalternate permissions (S)\fP" 
1295 .IP 
1296 This is a deprecated parameter\&. It no longer has any effect in Samba2\&.0\&.
1297 In previous versions of Samba it affected the way the DOS "read only"
1298 attribute was mapped for a file\&. In Samba2\&.0 a file is marked "read only"
1299 if the UNIX file does not have the \'w\' bit set for the owner of the file,
1300 regardless if the owner of the file is the currently logged on user or not\&.
1301 .IP 
1302 .IP "\fBannounce as (G)\fP" 
1303 .IP 
1304 This specifies what type of server \fBnmbd\fP will
1305 announce itself as, to a network neighborhood browse list\&. By default
1306 this is set to Windows NT\&. The valid options are : "NT", "Win95" or
1307 "WfW" meaning Windows NT, Windows 95 and Windows for Workgroups
1308 respectively\&. Do not change this parameter unless you have a specific
1309 need to stop Samba appearing as an NT server as this may prevent Samba
1310 servers from participating as browser servers correctly\&.
1311 .IP 
1312 \fBDefault:\fP
1313 \f(CW   announce as = NT\fP
1314 .IP 
1315 \fBExample\fP
1316 \f(CW   announce as = Win95\fP
1317 .IP 
1318 .IP "\fBannounce version (G)\fP" 
1319 .IP 
1320 This specifies the major and minor version numbers that nmbd will use
1321 when announcing itself as a server\&. The default is 4\&.2\&.  Do not change
1322 this parameter unless you have a specific need to set a Samba server
1323 to be a downlevel server\&.
1324 .IP 
1325 \fBDefault:\fP
1326 \f(CW   announce version = 4\&.2\fP
1327 .IP 
1328 \fBExample:\fP
1329 \f(CW   announce version = 2\&.0\fP
1330 .IP 
1331 .IP "\fBauto services (G)\fP" 
1332 .IP 
1333 This is a list of services that you want to be automatically added to
1334 the browse lists\&. This is most useful for homes and printers services
1335 that would otherwise not be visible\&.
1336 .IP 
1337 Note that if you just want all printers in your printcap file loaded
1338 then the \fB"load printers"\fP option is easier\&.
1339 .IP 
1340 \fBDefault:\fP
1341 \f(CW   no auto services\fP
1342 .IP 
1343 \fBExample:\fP
1344 \f(CW   auto services = fred lp colorlp\fP
1345 .IP 
1346 .IP "\fBavailable (S)\fP" 
1347 .IP 
1348 This parameter lets you \fI\'turn off\'\fP a service\&. If \f(CW\'available = no\'\fP,
1349 then \fIALL\fP attempts to connect to the service will fail\&. Such failures
1350 are logged\&.
1351 .IP 
1352 \fBDefault:\fP
1353 \f(CW   available = yes\fP
1354 .IP 
1355 \fBExample:\fP
1356 \f(CW   available = no\fP
1357 .IP 
1358 .IP "\fBbind interfaces only (G)\fP" 
1359 .IP 
1360 This global parameter allows the Samba admin to limit what interfaces
1361 on a machine will serve smb requests\&. If affects file service
1362 \fBsmbd\fP and name service \fBnmbd\fP
1363 in slightly different ways\&.
1364 .IP 
1365 For name service it causes \fBnmbd\fP to bind to ports
1366 137 and 138 on the interfaces listed in the
1367 \fB\'interfaces\'\fP
1368 parameter\&. \fBnmbd\fP also binds to the \'all
1369 addresses\' interface (0\&.0\&.0\&.0) on ports 137 and 138 for the purposes
1370 of reading broadcast messages\&. If this option is not set then
1371 \fBnmbd\fP will service name requests on all of these
1372 sockets\&. If \fB"bind interfaces only"\fP is set then
1373 \fBnmbd\fP will check the source address of any
1374 packets coming in on the broadcast sockets and discard any that don\'t
1375 match the broadcast addresses of the interfaces in the
1376 \fB\'interfaces\'\fP parameter list\&. As unicast packets
1377 are received on the other sockets it allows \fBnmbd\fP
1378 to refuse to serve names to machines that send packets that arrive
1379 through any interfaces not listed in the
1380 \fB"interfaces"\fP list\&.  IP Source address spoofing
1381 does defeat this simple check, however so it must not be used
1382 seriously as a security feature for \fBnmbd\fP\&.
1383 .IP 
1384 For file service it causes \fBsmbd\fP to bind only to
1385 the interface list given in the \fB\'interfaces\'\fP
1386 parameter\&. This restricts the networks that \fBsmbd\fP
1387 will serve to packets coming in those interfaces\&.  Note that you
1388 should not use this parameter for machines that are serving PPP or
1389 other intermittent or non-broadcast network interfaces as it will not
1390 cope with non-permanent interfaces\&.
1391 .IP 
1392 In addition, to change a users SMB password, the
1393 \fBsmbpasswd\fP by default connects to the
1394 \fI"localhost" - 127\&.0\&.0\&.1\fP address as an SMB client to issue the
1395 password change request\&. If \fB"bind interfaces only"\fP is set then
1396 unless the network address \fI127\&.0\&.0\&.1\fP is added to the
1397 \fB\'interfaces\'\fP parameter list then
1398 \fBsmbpasswd\fP will fail to connect in it\'s
1399 default mode\&. \fBsmbpasswd\fP can be forced to
1400 use the primary IP interface of the local host by using its
1401 \fB"-r remote machine"\fP parameter, with
1402 \fB"remote machine"\fP set to the IP name of the primary interface
1403 of the local host\&.
1404 .IP 
1405 \fBDefault:\fP
1406 \f(CW   bind interfaces only = False\fP
1407 .IP 
1408 \fBExample:\fP
1409 \f(CW   bind interfaces only = True\fP
1410 .IP 
1411 .IP "\fBblocking locks (S)\fP" 
1412 .IP 
1413 This parameter controls the behavior of \fBsmbd\fP when
1414 given a request by a client to obtain a byte range lock on a region
1415 of an open file, and the request has a time limit associated with it\&.
1416 .IP 
1417 If this parameter is set and the lock range requested cannot be
1418 immediately satisfied, Samba 2\&.0 will internally queue the lock 
1419 request, and periodically attempt to obtain the lock until the
1420 timeout period expires\&.
1421 .IP 
1422 If this parameter is set to "False", then Samba 2\&.0 will behave
1423 as previous versions of Samba would and will fail the lock
1424 request immediately if the lock range cannot be obtained\&.
1425 .IP 
1426 This parameter can be set per share\&.
1427 .IP 
1428 \fBDefault:\fP
1429 \f(CW   blocking locks = True\fP
1430 .IP 
1431 \fBExample:\fP
1432 \f(CW   blocking locks = False\fP
1433 .IP 
1434 .IP "\fBbrowsable (S)\fP" 
1435 .IP 
1436 Synonym for \fBbrowseable\fP\&.
1437 .IP 
1438 .IP "\fBbrowse list(G)\fP" 
1439 .IP 
1440 This controls whether \fBsmbd\fP will serve a browse
1441 list to a client doing a NetServerEnum call\&. Normally set to true\&. You
1442 should never need to change this\&.
1443 .IP 
1444 \fBDefault:\fP
1445 \f(CW   browse list = Yes\fP
1446 .IP 
1447 .IP "\fBbrowseable\fP" 
1448 .IP 
1449 This controls whether this share is seen in the list of available
1450 shares in a net view and in the browse list\&.
1451 .IP 
1452 \fBDefault:\fP
1453 \f(CW   browseable = Yes\fP
1454 .IP 
1455 \fBExample:\fP
1456 \f(CW   browseable = No\fP
1457 .IP 
1458 .IP "\fBcase sensitive (G)\fP" 
1459 .IP 
1460 See the discussion in the section \fBNAME MANGLING\fP\&.
1461 .IP 
1462 .IP "\fBcasesignames (G)\fP" 
1463 .IP 
1464 Synonym for \fB"case sensitive"\fP\&.
1465 .IP 
1466 .IP "\fBchange notify timeout (G)\fP" 
1467 .IP 
1468 One of the new NT SMB requests that Samba 2\&.0 supports is the
1469 "ChangeNotify" requests\&. This SMB allows a client to tell a server to
1470 \fI"watch"\fP a particular directory for any changes and only reply to
1471 the SMB request when a change has occurred\&. Such constant scanning of
1472 a directory is expensive under UNIX, hence an
1473 \fBsmbd\fP daemon only performs such a scan on each
1474 requested directory once every \fBchange notify timeout\fP seconds\&.
1475 .IP 
1476 \fBchange notify timeout\fP is specified in units of seconds\&.
1477 .IP 
1478 \fBDefault:\fP
1479 \f(CW   change notify timeout = 60\fP
1480 .IP 
1481 \fBExample:\fP
1482 \f(CW   change notify timeout = 300\fP
1483 .IP 
1484 Would change the scan time to every 5 minutes\&.
1485 .IP 
1486 .IP "\fBcharacter set (G)\fP" 
1487 .IP 
1488 This allows a smbd to map incoming filenames from a DOS Code page (see
1489 the \fBclient code page\fP parameter) to several
1490 built in UNIX character sets\&. The built in code page translations are:
1491 .IP 
1492 .IP 
1493 .IP o 
1494 \fBISO8859-1\fP Western European UNIX character set\&. The parameter
1495 \fBclient code page\fP \fIMUST\fP be set to code
1496 page 850 if the \fBcharacter set\fP parameter is set to iso8859-1
1497 in order for the conversion to the UNIX character set to be done
1498 correctly\&.
1499 .IP 
1500 .IP o 
1501 \fBISO8859-2\fP Eastern European UNIX character set\&. The parameter
1502 \fBclient code page\fP \fIMUST\fP be set to code
1503 page 852 if the \fBcharacter set\fP parameter is set to ISO8859-2
1504 in order for the conversion to the UNIX character set to be done
1505 correctly\&. 
1506 .IP 
1507 .IP o 
1508 \fBISO8859-5\fP Russian Cyrillic UNIX character set\&. The parameter
1509 \fBclient code page\fP \fIMUST\fP be set to code
1510 page 866 if the \fBcharacter set\fP parameter is set to ISO8859-2
1511 in order for the conversion to the UNIX character set to be done
1512 correctly\&. 
1513 .IP 
1514 .IP o 
1515 \fBKOI8-R\fP Alternate mapping for Russian Cyrillic UNIX
1516 character set\&. The parameter \fBclient code
1517 page\fP \fIMUST\fP be set to code page 866 if the
1518 \fBcharacter set\fP parameter is set to KOI8-R in order for the
1519 conversion to the UNIX character set to be done correctly\&.
1520 .IP 
1521 .IP 
1522 \fIBUG\fP\&. These MSDOS code page to UNIX character set mappings should
1523 be dynamic, like the loading of MS DOS code pages, not static\&.
1524 .IP 
1525 See also \fBclient code page\fP\&.  Normally this
1526 parameter is not set, meaning no filename translation is done\&.
1527 .IP 
1528 \fBDefault:\fP
1529 \f(CW   character set = <empty string>\fP
1530 .IP 
1531 \fBExample:\fP
1532 \f(CW   character set = ISO8859-1\fP
1533 .IP 
1534 .IP "\fBclient code page (G)\fP" 
1535 .IP 
1536 This parameter specifies the DOS code page that the clients accessing
1537 Samba are using\&. To determine what code page a Windows or DOS client
1538 is using, open a DOS command prompt and type the command "chcp"\&. This
1539 will output the code page\&. The default for USA MS-DOS, Windows 95, and
1540 Windows NT releases is code page 437\&. The default for western european
1541 releases of the above operating systems is code page 850\&.
1542 .IP 
1543 This parameter tells \fBsmbd\fP which of the
1544 \f(CWcodepage\&.XXX\fP files to dynamically load on startup\&. These files,
1545 described more fully in the manual page \fBmake_smbcodepage
1546 (1)\fP, tell \fBsmbd\fP how
1547 to map lower to upper case characters to provide the case insensitivity
1548 of filenames that Windows clients expect\&.
1549 .IP 
1550 Samba currently ships with the following code page files :
1551 .IP 
1552 .IP 
1553 .IP o 
1554 \fBCode Page 437 - MS-DOS Latin US\fP
1555 .IP 
1556 .IP o 
1557 \fBCode Page 737 - Windows \'95 Greek\fP
1558 .IP 
1559 .IP o 
1560 \fBCode Page 850 - MS-DOS Latin 1\fP
1561 .IP 
1562 .IP o 
1563 \fBCode Page 852 - MS-DOS Latin 2\fP
1564 .IP 
1565 .IP o 
1566 \fBCode Page 861 - MS-DOS Icelandic\fP
1567 .IP 
1568 .IP o 
1569 \fBCode Page 866 - MS-DOS Cyrillic\fP
1570 .IP 
1571 .IP o 
1572 \fBCode Page 932 - MS-DOS Japanese SJIS\fP
1573 .IP 
1574 .IP o 
1575 \fBCode Page 936 - MS-DOS Simplified Chinese\fP
1576 .IP 
1577 .IP o 
1578 \fBCode Page 949 - MS-DOS Korean Hangul\fP
1579 .IP 
1580 .IP o 
1581 \fBCode Page 950 - MS-DOS Traditional Chinese\fP
1582 .IP 
1583 .IP 
1584 Thus this parameter may have any of the values 437, 737, 850, 852,
1585 861, 932, 936, 949, or 950\&.  If you don\'t find the codepage you need,
1586 read the comments in one of the other codepage files and the
1587 \fBmake_smbcodepage (1)\fP man page and
1588 write one\&. Please remember to donate it back to the Samba user
1589 community\&.
1590 .IP 
1591 This parameter co-operates with the \fB"valid
1592 chars"\fP parameter in determining what characters are
1593 valid in filenames and how capitalization is done\&. If you set both
1594 this parameter and the \fB"valid chars"\fP parameter
1595 the \fB"client code page"\fP parameter \fIMUST\fP be set before the
1596 \fB"valid chars"\fP parameter in the \fBsmb\&.conf\fP
1597 file\&. The \fB"valid chars"\fP string will then augment
1598 the character settings in the "client code page" parameter\&.
1599 .IP 
1600 If not set, \fB"client code page"\fP defaults to 850\&.
1601 .IP 
1602 See also : \fB"valid chars"\fP
1603 .IP 
1604 \fBDefault:\fP
1605 \f(CW   client code page = 850\fP
1606 .IP 
1607 \fBExample:\fP
1608 \f(CW   client code page = 936\fP
1609 .IP 
1610 .IP "\fBcodingsystem (G)\fP" 
1611 .IP 
1612 This parameter is used to determine how incoming Shift-JIS Japanese
1613 characters are mapped from the incoming \fB"client code
1614 page"\fP used by the client, into file names in the
1615 UNIX filesystem\&. Only useful if \fB"client code
1616 page"\fP is set to 932 (Japanese Shift-JIS)\&.
1617 .IP 
1618 The options are :
1619 .IP 
1620 .IP 
1621 .IP o 
1622 \fBSJIS\fP  Shift-JIS\&. Does no conversion of the incoming filename\&.
1623 .IP 
1624 .IP o 
1625 \fBJIS8, J8BB, J8BH, J8@B, J8@J, J8@H \fP Convert from incoming
1626 Shift-JIS to eight bit JIS code with different shift-in, shift out
1627 codes\&.
1628 .IP 
1629 .IP o 
1630 \fBJIS7, J7BB, J7BH, J7@B, J7@J, J7@H \fP Convert from incoming
1631 Shift-JIS to seven bit JIS code with different shift-in, shift out
1632 codes\&.
1633 .IP 
1634 .IP o 
1635 \fBJUNET, JUBB, JUBH, JU@B, JU@J, JU@H \fP Convert from incoming
1636 Shift-JIS to JUNET code with different shift-in, shift out codes\&.
1637 .IP 
1638 .IP o 
1639 \fBEUC\fP  Convert an incoming Shift-JIS character to EUC code\&.
1640 .IP 
1641 .IP o 
1642 \fBHEX\fP Convert an incoming Shift-JIS character to a 3 byte hex
1643 representation, i\&.e\&. \f(CW:AB\fP\&.
1644 .IP 
1645 .IP o 
1646 \fBCAP\fP Convert an incoming Shift-JIS character to the 3 byte hex
1647 representation used by the Columbia AppleTalk Program (CAP),
1648 i\&.e\&. \f(CW:AB\fP\&.  This is used for compatibility between Samba and CAP\&.
1649 .IP 
1650 .IP 
1651 .IP "\fBcomment (S)\fP" 
1652 .IP 
1653 This is a text field that is seen next to a share when a client does a
1654 queries the server, either via the network neighborhood or via "net
1655 view" to list what shares are available\&.
1656 .IP 
1657 If you want to set the string that is displayed next to the machine
1658 name then see the server string command\&.
1659 .IP 
1660 \fBDefault:\fP
1661 \f(CW   No comment string\fP
1662 .IP 
1663 \fBExample:\fP
1664 \f(CW   comment = Fred\'s Files\fP
1665 .IP 
1666 .IP "\fBconfig file (G)\fP" 
1667 .IP 
1668 This allows you to override the config file to use, instead of the
1669 default (usually \fBsmb\&.conf\fP)\&. There is a chicken and egg problem
1670 here as this option is set in the config file!
1671 .IP 
1672 For this reason, if the name of the config file has changed when the
1673 parameters are loaded then it will reload them from the new config
1674 file\&.
1675 .IP 
1676 This option takes the usual substitutions, which can be very useful\&.
1677 .IP 
1678 If the config file doesn\'t exist then it won\'t be loaded (allowing you
1679 to special case the config files of just a few clients)\&.
1680 .IP 
1681 \fBExample:\fP
1682 \f(CW   config file = /usr/local/samba/lib/smb\&.conf\&.%m\fP
1683 .IP 
1684 .IP "\fBcopy (S)\fP" 
1685 .IP 
1686 This parameter allows you to \fI\'clone\'\fP service entries\&. The specified
1687 service is simply duplicated under the current service\'s name\&. Any
1688 parameters specified in the current section will override those in the
1689 section being copied\&.
1690 .IP 
1691 This feature lets you set up a \'template\' service and create similar
1692 services easily\&. Note that the service being copied must occur earlier
1693 in the configuration file than the service doing the copying\&.
1694 .IP 
1695 \fBDefault:\fP
1696 \f(CW   none\fP
1697 .IP 
1698 \fBExample:\fP
1699 \f(CW   copy = otherservice\fP
1700 .IP 
1701 .IP "\fBcreate mask (S)\fP" 
1702 .IP 
1703 A synonym for this parameter is \fB\'create mode\'\fP\&.
1704 .IP 
1705 When a file is created, the necessary permissions are calculated
1706 according to the mapping from DOS modes to UNIX permissions, and the
1707 resulting UNIX mode is then bit-wise \'AND\'ed with this parameter\&.
1708 This parameter may be thought of as a bit-wise MASK for the UNIX modes
1709 of a file\&. Any bit \fI*not*\fP set here will be removed from the modes set
1710 on a file when it is created\&.
1711 .IP 
1712 The default value of this parameter removes the \'group\' and \'other\'
1713 write and execute bits from the UNIX modes\&.
1714 .IP 
1715 Following this Samba will bit-wise \'OR\' the UNIX mode created from
1716 this parameter with the value of the "force create mode" parameter
1717 which is set to 000 by default\&.
1718 .IP 
1719 This parameter does not affect directory modes\&. See the parameter
1720 \fB\'directory mode\'\fP for details\&.
1721 .IP 
1722 See also the \fB"force create mode"\fP parameter
1723 for forcing particular mode bits to be set on created files\&. See also
1724 the \fB"directory mode"\fP parameter for masking
1725 mode bits on created directories\&.
1726 .IP 
1727 \fBDefault:\fP
1728 \f(CW   create mask = 0744\fP
1729 .IP 
1730 \fBExample:\fP
1731 \f(CW   create mask = 0775\fP
1732 .IP 
1733 .IP "\fBcreate mode (S)\fP" 
1734 .IP 
1735 This is a synonym for \fBcreate mask\fP\&.
1736 .IP 
1737 .IP "\fBdeadtime (G)\fP" 
1738 .IP 
1739 The value of the parameter (a decimal integer) represents the number
1740 of minutes of inactivity before a connection is considered dead, and
1741 it is disconnected\&. The deadtime only takes effect if the number of
1742 open files is zero\&.
1743 .IP 
1744 This is useful to stop a server\'s resources being exhausted by a large
1745 number of inactive connections\&.
1746 .IP 
1747 Most clients have an auto-reconnect feature when a connection is
1748 broken so in most cases this parameter should be transparent to users\&.
1749 .IP 
1750 Using this parameter with a timeout of a few minutes is recommended
1751 for most systems\&.
1752 .IP 
1753 A deadtime of zero indicates that no auto-disconnection should be
1754 performed\&.
1755 .IP 
1756 \fBDefault:\fP
1757 \f(CW   deadtime = 0\fP
1758 .IP 
1759 \fBExample:\fP
1760 \f(CW   deadtime = 15\fP
1761 .IP 
1762 .IP "\fBdebug timestamp (G)\fP" 
1763 .IP 
1764 Samba2\&.0 debug log messages are timestamped by default\&. If you are
1765 running at a high \fB"debug level"\fP these timestamps
1766 can be distracting\&. This boolean parameter allows them to be turned
1767 off\&.
1768 .IP 
1769 \fBDefault:\fP
1770 \f(CW   debug timestamp = Yes\fP
1771 .IP 
1772 \fBExample:\fP
1773 \f(CW   debug timestamp = No\fP
1774 .IP 
1775 .IP "\fBdebug level (G)\fP" 
1776 .IP 
1777 The value of the parameter (an integer) allows the debug level
1778 (logging level) to be specified in the \fBsmb\&.conf\fP file\&. This is to
1779 give greater flexibility in the configuration of the system\&.
1780 .IP 
1781 The default will be the debug level specified on the command line
1782 or level zero if none was specified\&.
1783 .IP 
1784 \fBExample:\fP
1785 \f(CW   debug level = 3\fP
1786 .IP 
1787 .IP "\fBdefault (G)\fP" 
1788 .IP 
1789 A synonym for \fBdefault service\fP\&.
1790 .IP 
1791 .IP "\fBdefault case (S)\fP" 
1792 .IP 
1793 See the section on \fB"NAME MANGLING"\fP\&. Also note
1794 the \fB"short preserve case"\fP parameter\&.
1795 .IP 
1796 .IP "\fBdefault service (G)\fP" 
1797 .IP 
1798 This parameter specifies the name of a service which will be connected
1799 to if the service actually requested cannot be found\&. Note that the
1800 square brackets are \fINOT\fP given in the parameter value (see example
1801 below)\&.
1802 .IP 
1803 There is no default value for this parameter\&. If this parameter is not
1804 given, attempting to connect to a nonexistent service results in an
1805 error\&.
1806 .IP 
1807 Typically the default service would be a \fBguest ok\fP,
1808 \fBread-only\fP service\&.
1809 .IP 
1810 Also note that the apparent service name will be changed to equal that
1811 of the requested service, this is very useful as it allows you to use
1812 macros like \fB%S\fP to make a wildcard service\&.
1813 .IP 
1814 Note also that any \f(CW\'_\'\fP characters in the name of the service used
1815 in the default service will get mapped to a \f(CW\'/\'\fP\&. This allows for
1816 interesting things\&.
1817 .IP 
1818 \fBExample:\fP
1820 .DS 
1823         default service = pub
1824         
1825         [pub]
1826                 path = /%S
1828 .DE 
1831 .IP 
1832 .IP "\fBdelete user script (G)\fP" 
1833 .IP 
1834 This is the full pathname to a script that will be run \fIAS ROOT\fP by
1835 \fBsmbd (8)\fP under special circumstances decribed
1836 below\&.
1837 .IP 
1838 Normally, a Samba server requires that UNIX users are created for all
1839 users accessing files on this server\&. For sites that use Windows NT
1840 account databases as their primary user database creating these users
1841 and keeping the user list in sync with the Windows NT PDC is an
1842 onerous task\&. This option allows \fBsmbd\fP to delete
1843 the required UNIX users \fION DEMAND\fP when a user accesses the Samba
1844 server and the Windows NT user no longer exists\&.
1845 .IP 
1846 In order to use this option, \fBsmbd\fP must be set to
1847 \fBsecurity=domain\fP and \fB"delete user
1848 script"\fP must be set to a full pathname for a script that will delete
1849 a UNIX user given one argument of \fB%u\fP, which expands into the UNIX
1850 user name to delete\&. \fINOTE\fP that this is different to the
1851 \fBadd user script\fP which will work with the
1852 \fBsecurity=server\fP option as well as
1853 \fBsecurity=domain\fP\&. The reason for this
1854 is only when Samba is a domain member does it get the information
1855 on an attempted user logon that a user no longer exists\&. In the
1856 \fBsecurity=server\fP mode a missing user
1857 is treated the same as an invalid password logon attempt\&. Deleting
1858 the user in this circumstance would not be a good idea\&.
1859 .IP 
1860 When the Windows user attempts to access the Samba server, at
1861 \fI"login"\fP(session setup in the SMB protocol) time,
1862 \fBsmbd\fP contacts the \fBpassword
1863 server\fP and attempts to authenticate the given user
1864 with the given password\&. If the authentication fails with the specific
1865 Domain error code meaning that the user no longer exists then
1866 \fBsmbd\fP attempts to find a UNIX user in the UNIX
1867 password database that matches the Windows user account\&. If this lookup succeeds,
1868 and \fB"delete user script"\fP is set then \fBsmbd\fP will
1869 call the specified script \fIAS ROOT\fP, expanding any \fB%u\fP argument
1870 to be the user name to delete\&.
1871 .IP 
1872 This script should delete the given UNIX username\&. In this way, UNIX
1873 users are dynamically deleted to match existing Windows NT accounts\&.
1874 .IP 
1875 See also \fBsecurity=domain\fP,
1876 \fBpassword server\fP, \fBadd user
1877 script\fP\&.
1878 .IP 
1879 \fBDefault:\fP
1880 \f(CW   delete user script = <empty string>\fP
1881 .IP 
1882 \fBExample:\fP
1883 \f(CW   delete user script = /usr/local/samba/bin/del_user %u\fP
1884 .IP 
1885 .IP "\fBdelete readonly (S)\fP" 
1886 .IP 
1887 This parameter allows readonly files to be deleted\&.  This is not
1888 normal DOS semantics, but is allowed by UNIX\&.
1889 .IP 
1890 This option may be useful for running applications such as rcs, where
1891 UNIX file ownership prevents changing file permissions, and DOS
1892 semantics prevent deletion of a read only file\&.
1893 .IP 
1894 \fBDefault:\fP
1895 \f(CW   delete readonly = No\fP
1896 .IP 
1897 \fBExample:\fP
1898 \f(CW   delete readonly = Yes\fP
1899 .IP 
1900 .IP "\fBdelete veto files (S)\fP" 
1901 .IP 
1902 This option is used when Samba is attempting to delete a directory
1903 that contains one or more vetoed directories (see the \fB\'veto
1904 files\'\fP option)\&.  If this option is set to False (the
1905 default) then if a vetoed directory contains any non-vetoed files or
1906 directories then the directory delete will fail\&. This is usually what
1907 you want\&.
1908 .IP 
1909 If this option is set to True, then Samba will attempt to recursively
1910 delete any files and directories within the vetoed directory\&. This can
1911 be useful for integration with file serving systems such as \fBNetAtalk\fP,
1912 which create meta-files within directories you might normally veto
1913 DOS/Windows users from seeing (e\&.g\&. \f(CW\&.AppleDouble\fP)
1914 .IP 
1915 Setting \f(CW\'delete veto files = True\'\fP allows these directories to be 
1916 transparently deleted when the parent directory is deleted (so long
1917 as the user has permissions to do so)\&.
1918 .IP 
1919 See also the \fBveto files\fP parameter\&.
1920 .IP 
1921 \fBDefault:\fP
1922 \f(CW   delete veto files = False\fP
1923 .IP 
1924 \fBExample:\fP
1925 \f(CW   delete veto files = True\fP
1926 .IP 
1927 .IP "\fBdeny hosts (S)\fP" 
1928 .IP 
1929 Synonym for \fBhosts deny\fP\&.
1930 .IP 
1931 .IP "\fBdfree command (G)\fP" 
1932 .IP 
1933 The dfree command setting should only be used on systems where a
1934 problem occurs with the internal disk space calculations\&. This has
1935 been known to happen with Ultrix, but may occur with other operating
1936 systems\&. The symptom that was seen was an error of "Abort Retry
1937 Ignore" at the end of each directory listing\&.
1938 .IP 
1939 This setting allows the replacement of the internal routines to
1940 calculate the total disk space and amount available with an external
1941 routine\&. The example below gives a possible script that might fulfill
1942 this function\&.
1943 .IP 
1944 The external program will be passed a single parameter indicating a
1945 directory in the filesystem being queried\&. This will typically consist
1946 of the string \f(CW"\&./"\fP\&. The script should return two integers in
1947 ascii\&. The first should be the total disk space in blocks, and the
1948 second should be the number of available blocks\&. An optional third
1949 return value can give the block size in bytes\&. The default blocksize
1950 is 1024 bytes\&.
1951 .IP 
1952 Note: Your script should \fINOT\fP be setuid or setgid and should be
1953 owned by (and writeable only by) root!
1954 .IP 
1955 \fBDefault:\fP
1956 \f(CW   By default internal routines for determining the disk capacity
1957 and remaining space will be used\&.\fP
1958 .IP 
1959 \fBExample:\fP
1960 \f(CW   dfree command = /usr/local/samba/bin/dfree\fP
1961 .IP 
1962 Where the script dfree (which must be made executable) could be:
1963 .IP 
1965 .DS 
1968         #!/bin/sh
1969         df $1 | tail -1 | awk \'{print $2" "$4}\'
1971 .DE 
1974 .IP 
1975 or perhaps (on Sys V based systems):
1976 .IP 
1978 .DS 
1981         #!/bin/sh
1982         /usr/bin/df -k $1 | tail -1 | awk \'{print $3" "$5}\'
1984 .DE 
1987 .IP 
1988 Note that you may have to replace the command names with full
1989 path names on some systems\&.
1990 .IP 
1991 .IP "\fBdirectory (S)\fP" 
1992 .IP 
1993 Synonym for \fBpath\fP\&.
1994 .IP 
1995 .IP "\fBdirectory mask (S)\fP" 
1996 .IP 
1997 This parameter is the octal modes which are used when converting DOS
1998 modes to UNIX modes when creating UNIX directories\&.
1999 .IP 
2000 When a directory is created, the necessary permissions are calculated
2001 according to the mapping from DOS modes to UNIX permissions, and the
2002 resulting UNIX mode is then bit-wise \'AND\'ed with this parameter\&.
2003 This parameter may be thought of as a bit-wise MASK for the UNIX modes
2004 of a directory\&. Any bit \fI*not*\fP set here will be removed from the
2005 modes set on a directory when it is created\&.
2006 .IP 
2007 The default value of this parameter removes the \'group\' and \'other\'
2008 write bits from the UNIX mode, allowing only the user who owns the
2009 directory to modify it\&.
2010 .IP 
2011 Following this Samba will bit-wise \'OR\' the UNIX mode created from
2012 this parameter with the value of the "force directory mode"
2013 parameter\&. This parameter is set to 000 by default (i\&.e\&. no extra mode
2014 bits are added)\&.
2015 .IP 
2016 See the \fB"force directory mode"\fP parameter
2017 to cause particular mode bits to always be set on created directories\&.
2018 .IP 
2019 See also the \fB"create mode"\fP parameter for masking
2020 mode bits on created files\&.
2021 .IP 
2022 \fBDefault:\fP
2023 \f(CW   directory mask = 0755\fP
2024 .IP 
2025 \fBExample:\fP
2026 \f(CW   directory mask = 0775\fP
2027 .IP 
2028 .IP "\fBdirectory mode (S)\fP" 
2029 .IP 
2030 Synonym for \fBdirectory mask\fP\&.
2031 .IP 
2032 .IP "\fBdns proxy (G)\fP" 
2033 .IP 
2034 Specifies that \fBnmbd\fP when acting as a WINS
2035 server and finding that a NetBIOS name has not been registered, should
2036 treat the NetBIOS name word-for-word as a DNS name and do a lookup
2037 with the DNS server for that name on behalf of the name-querying
2038 client\&.
2039 .IP 
2040 Note that the maximum length for a NetBIOS name is 15 characters, so
2041 the DNS name (or DNS alias) can likewise only be 15 characters,
2042 maximum\&.
2043 .IP 
2044 \fBnmbd\fP spawns a second copy of itself to do the
2045 DNS name lookup requests, as doing a name lookup is a blocking action\&.
2046 .IP 
2047 See also the parameter \fBwins support\fP\&.
2048 .IP 
2049 \fBDefault:\fP
2050 \f(CW   dns proxy = yes\fP
2051 .IP 
2052 \fBdomain admin group (G)\fP
2053 .IP 
2054 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2055 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2056 To work with the latest code builds that may have more support for
2057 Samba NT Domain Controller functionality please subscribe to the
2058 mailing list \fBSamba-ntdom\fP available by sending email to
2059 \fIlistproc@samba\&.org\fP
2060 .IP 
2061 .IP "\fBdomain admin users (G)\fP" 
2062 .IP 
2063 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2064 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2065 To work with the latest code builds that may have more support for
2066 Samba NT Domain Controller functionality please subscribe to the
2067 mailing list \fBSamba-ntdom\fP available by sending email to
2068 \fIlistproc@samba\&.org\fP
2069 .IP 
2070 .IP "\fBdomain controller (G)\fP" 
2071 .IP 
2072 This is a \fBDEPRECATED\fP parameter\&. It is currently not used within
2073 the Samba source and should be removed from all current smb\&.conf
2074 files\&. It is left behind for compatibility reasons\&.
2075 .IP 
2076 .IP "\fBdomain groups (G)\fP" 
2077 .IP 
2078 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2079 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2080 To work with the latest code builds that may have more support for
2081 Samba NT Domain Controller functionality please subscribe to the
2082 mailing list \fBSamba-ntdom\fP available by sending email to
2083 \fIlistproc@samba\&.org\fP
2084 .IP 
2085 .IP "\fBdomain guest group (G)\fP" 
2086 .IP 
2087 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2088 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2089 To work with the latest code builds that may have more support for
2090 Samba NT Domain Controller functionality please subscribe to the
2091 mailing list \fBSamba-ntdom\fP available by sending email to
2092 \fIlistproc@samba\&.org\fP
2093 .IP 
2094 .IP "\fBdomain guest users (G)\fP" 
2095 .IP 
2096 This is an \fBEXPERIMENTAL\fP parameter that is part of the unfinished
2097 Samba NT Domain Controller Code\&. It may be removed in a later release\&.
2098 To work with the latest code builds that may have more support for
2099 Samba NT Domain Controller functionality please subscribe to the
2100 mailing list \fBSamba-ntdom\fP available by sending email to
2101 \fIlistproc@samba\&.org\fP
2102 .IP 
2103 .IP "\fBdomain logons (G)\fP" 
2104 .IP 
2105 If set to true, the Samba server will serve Windows 95/98 Domain
2106 logons for the \fBworkgroup\fP it is in\&. For more
2107 details on setting up this feature see the file DOMAINS\&.txt in the
2108 Samba documentation directory \f(CWdocs/\fP shipped with the source code\&.
2109 .IP 
2110 Note that Win95/98 Domain logons are \fINOT\fP the same as Windows
2111 NT Domain logons\&. NT Domain logons require a Primary Domain Controller
2112 (PDC) for the Domain\&. It is intended that in a future release Samba
2113 will be able to provide this functionality for Windows NT clients
2114 also\&.
2115 .IP 
2116 \fBDefault:\fP
2117 \f(CW   domain logons = no\fP
2118 .IP 
2119 .IP "\fBdomain master (G)\fP" 
2120 .IP 
2121 Tell \fBnmbd\fP to enable WAN-wide browse list
2122 collation\&. Setting this option causes \fBnmbd\fP to
2123 claim a special domain specific NetBIOS name that identifies it as a
2124 domain master browser for its given
2125 \fBworkgroup\fP\&. Local master browsers in the same
2126 \fBworkgroup\fP on broadcast-isolated subnets will give
2127 this \fBnmbd\fP their local browse lists, and then
2128 ask \fBsmbd\fP for a complete copy of the browse list
2129 for the whole wide area network\&.  Browser clients will then contact
2130 their local master browser, and will receive the domain-wide browse
2131 list, instead of just the list for their broadcast-isolated subnet\&.
2132 .IP 
2133 Note that Windows NT Primary Domain Controllers expect to be able to
2134 claim this \fBworkgroup\fP specific special NetBIOS
2135 name that identifies them as domain master browsers for that
2136 \fBworkgroup\fP by default (i\&.e\&. there is no way to
2137 prevent a Windows NT PDC from attempting to do this)\&. This means that
2138 if this parameter is set and \fBnmbd\fP claims the
2139 special name for a \fBworkgroup\fP before a Windows NT
2140 PDC is able to do so then cross subnet browsing will behave strangely
2141 and may fail\&.
2142 .IP 
2143 \fBDefault:\fP
2144 \f(CW   domain master = no\fP
2145 .IP 
2146 .IP "\fBdont descend (S)\fP" 
2147 .IP 
2148 There are certain directories on some systems (e\&.g\&., the \f(CW/proc\fP tree
2149 under Linux) that are either not of interest to clients or are
2150 infinitely deep (recursive)\&. This parameter allows you to specify a
2151 comma-delimited list of directories that the server should always show
2152 as empty\&.
2153 .IP 
2154 Note that Samba can be very fussy about the exact format of the "dont
2155 descend" entries\&. For example you may need \f(CW"\&./proc"\fP instead of
2156 just \f(CW"/proc"\fP\&. Experimentation is the best policy :-)
2157 .IP 
2158 \fBDefault:\fP
2159 \f(CW   none (i\&.e\&., all directories are OK to descend)\fP
2160 .IP 
2161 \fBExample:\fP
2162 \f(CW   dont descend = /proc,/dev\fP
2163 .IP 
2164 .IP "\fBdos filetime resolution (S)\fP" 
2165 .IP 
2166 Under the DOS and Windows FAT filesystem, the finest granularity on
2167 time resolution is two seconds\&. Setting this parameter for a share
2168 causes Samba to round the reported time down to the nearest two second
2169 boundary when a query call that requires one second resolution is made
2170 to \fBsmbd\fP\&.
2171 .IP 
2172 This option is mainly used as a compatibility option for Visual C++
2173 when used against Samba shares\&. If oplocks are enabled on a share,
2174 Visual C++ uses two different time reading calls to check if a file
2175 has changed since it was last read\&. One of these calls uses a
2176 one-second granularity, the other uses a two second granularity\&. As
2177 the two second call rounds any odd second down, then if the file has a
2178 timestamp of an odd number of seconds then the two timestamps will not
2179 match and Visual C++ will keep reporting the file has changed\&. Setting
2180 this option causes the two timestamps to match, and Visual C++ is
2181 happy\&.
2182 .IP 
2183 \fBDefault:\fP
2184 \f(CW   dos filetime resolution = False\fP
2185 .IP 
2186 \fBExample:\fP
2187 \f(CW   dos filetime resolution = True\fP
2188 .IP 
2189 .IP "\fBdos filetimes (S)\fP" 
2190 .IP 
2191 Under DOS and Windows, if a user can write to a file they can change
2192 the timestamp on it\&. Under POSIX semantics, only the owner of the file
2193 or root may change the timestamp\&. By default, Samba runs with POSIX
2194 semantics and refuses to change the timestamp on a file if the user
2195 smbd is acting on behalf of is not the file owner\&. Setting this option
2196 to True allows DOS semantics and smbd will change the file timestamp as
2197 DOS requires\&.
2198 .IP 
2199 \fBDefault:\fP
2200 \f(CW   dos filetimes = False\fP
2201 .IP 
2202 \fBExample:\fP
2203 \f(CW   dos filetimes = True\fP
2204 .IP 
2205 .IP "\fBencrypt passwords (G)\fP" 
2206 .IP 
2207 This boolean controls whether encrypted passwords will be negotiated
2208 with the client\&. Note that Windows NT 4\&.0 SP3 and above and also
2209 Windows 98 will by default expect encrypted passwords unless a
2210 registry entry is changed\&. To use encrypted passwords in Samba see the
2211 file ENCRYPTION\&.txt in the Samba documentation directory \f(CWdocs/\fP
2212 shipped with the source code\&.
2213 .IP 
2214 In order for encrypted passwords to work correctly
2215 \fBsmbd\fP must either have access to a local
2216 \fBsmbpasswd (5)\fP file (see the
2217 \fBsmbpasswd (8)\fP program for information on
2218 how to set up and maintain this file), or set the
2219 \fBsecurity=\fP parameter to either
2220 \fB"server"\fP or
2221 \fB"domain"\fP which causes
2222 \fBsmbd\fP to authenticate against another server\&.
2223 .IP 
2224 .IP "\fBexec (S)\fP" 
2225 .IP 
2226 This is a synonym for \fBpreexec\fP\&.
2227 .IP 
2228 .IP "\fBfake directory create times (S)\fP" 
2229 .IP 
2230 NTFS and Windows VFAT file systems keep a create time for all files
2231 and directories\&. This is not the same as the ctime - status change
2232 time - that Unix keeps, so Samba by default reports the earliest of
2233 the various times Unix does keep\&. Setting this parameter for a share
2234 causes Samba to always report midnight 1-1-1980 as the create time for
2235 directories\&.
2236 .IP 
2237 This option is mainly used as a compatibility option for Visual C++
2238 when used against Samba shares\&. Visual C++ generated makefiles have
2239 the object directory as a dependency for each object file, and a make
2240 rule to create the directory\&. Also, when NMAKE compares timestamps it
2241 uses the creation time when examining a directory\&. Thus the object
2242 directory will be created if it does not exist, but once it does exist
2243 it will always have an earlier timestamp than the object files it
2244 contains\&.
2245 .IP 
2246 However, Unix time semantics mean that the create time reported by
2247 Samba will be updated whenever a file is created or deleted in the
2248 directory\&. NMAKE therefore finds all object files in the object
2249 directory bar the last one built are out of date compared to the
2250 directory and rebuilds them\&. Enabling this option ensures directories
2251 always predate their contents and an NMAKE build will proceed as
2252 expected\&.
2253 .IP 
2254 \fBDefault:\fP
2255 \f(CW   fake directory create times = False\fP
2256 .IP 
2257 \fBExample:\fP
2258 \f(CW   fake directory create times = True\fP
2259 .IP 
2260 .IP "\fBfake oplocks (S)\fP" 
2261 .IP 
2262 Oplocks are the way that SMB clients get permission from a server to
2263 locally cache file operations\&. If a server grants an oplock
2264 (opportunistic lock) then the client is free to assume that it is the
2265 only one accessing the file and it will aggressively cache file
2266 data\&. With some oplock types the client may even cache file open/close
2267 operations\&. This can give enormous performance benefits\&.
2268 .IP 
2269 When you set \f(CW"fake oplocks = yes"\fP \fBsmbd\fP will
2270 always grant oplock requests no matter how many clients are using the
2271 file\&.
2272 .IP 
2273 It is generally much better to use the real \fBoplocks\fP
2274 support rather than this parameter\&.
2275 .IP 
2276 If you enable this option on all read-only shares or shares that you
2277 know will only be accessed from one client at a time such as
2278 physically read-only media like CDROMs, you will see a big performance
2279 improvement on many operations\&. If you enable this option on shares
2280 where multiple clients may be accessing the files read-write at the
2281 same time you can get data corruption\&. Use this option carefully!
2282 .IP 
2283 This option is disabled by default\&.
2284 .IP 
2285 .IP "\fBfollow symlinks (S)\fP" 
2286 .IP 
2287 This parameter allows the Samba administrator to stop
2288 \fBsmbd\fP from following symbolic links in a
2289 particular share\&. Setting this parameter to \fI"No"\fP prevents any file
2290 or directory that is a symbolic link from being followed (the user
2291 will get an error)\&.  This option is very useful to stop users from
2292 adding a symbolic link to \f(CW/etc/passwd\fP in their home directory for
2293 instance\&.  However it will slow filename lookups down slightly\&.
2294 .IP 
2295 This option is enabled (i\&.e\&. \fBsmbd\fP will follow
2296 symbolic links) by default\&.
2297 .IP 
2298 .IP "\fBforce create mode (S)\fP" 
2299 .IP 
2300 This parameter specifies a set of UNIX mode bit permissions that will
2301 \fI*always*\fP be set on a file created by Samba\&. This is done by
2302 bitwise \'OR\'ing these bits onto the mode bits of a file that is being
2303 created\&. The default for this parameter is (in octal) 000\&. The modes
2304 in this parameter are bitwise \'OR\'ed onto the file mode after the mask
2305 set in the \fB"create mask"\fP parameter is applied\&.
2306 .IP 
2307 See also the parameter \fB"create mask"\fP for details
2308 on masking mode bits on created files\&.
2309 .IP 
2310 \fBDefault:\fP
2311 \f(CW   force create mode = 000\fP
2312 .IP 
2313 \fBExample:\fP
2314 \f(CW   force create mode = 0755\fP
2315 .IP 
2316 would force all created files to have read and execute permissions set
2317 for \'group\' and \'other\' as well as the read/write/execute bits set for
2318 the \'user\'\&.
2319 .IP 
2320 .IP "\fBforce directory mode (S)\fP" 
2321 .IP 
2322 This parameter specifies a set of UNIX mode bit permissions that will
2323 \fI*always*\fP be set on a directory created by Samba\&. This is done by
2324 bitwise \'OR\'ing these bits onto the mode bits of a directory that is
2325 being created\&. The default for this parameter is (in octal) 0000 which
2326 will not add any extra permission bits to a created directory\&. This
2327 operation is done after the mode mask in the parameter
2328 \fB"directory mask"\fP is applied\&.
2329 .IP 
2330 See also the parameter \fB"directory mask"\fP for
2331 details on masking mode bits on created directories\&.
2332 .IP 
2333 \fBDefault:\fP
2334 \f(CW   force directory mode = 000\fP
2335 .IP 
2336 \fBExample:\fP
2337 \f(CW   force directory mode = 0755\fP
2338 .IP 
2339 would force all created directories to have read and execute
2340 permissions set for \'group\' and \'other\' as well as the
2341 read/write/execute bits set for the \'user\'\&.
2342 .IP 
2343 .IP "\fBforce group (S)\fP" 
2344 .IP 
2345 This specifies a UNIX group name that will be assigned as the default
2346 primary group for all users connecting to this service\&. This is useful
2347 for sharing files by ensuring that all access to files on service will
2348 use the named group for their permissions checking\&. Thus, by assigning
2349 permissions for this group to the files and directories within this
2350 service the Samba administrator can restrict or allow sharing of these
2351 files\&.
2352 .IP 
2353 \fBDefault:\fP
2354 \f(CW   no forced group\fP
2355 .IP 
2356 \fBExample:\fP
2357 \f(CW   force group = agroup\fP
2358 .IP 
2359 .IP "\fBforce user (S)\fP" 
2360 .IP 
2361 This specifies a UNIX user name that will be assigned as the default
2362 user for all users connecting to this service\&. This is useful for
2363 sharing files\&. You should also use it carefully as using it
2364 incorrectly can cause security problems\&.
2365 .IP 
2366 This user name only gets used once a connection is established\&. Thus
2367 clients still need to connect as a valid user and supply a valid
2368 password\&. Once connected, all file operations will be performed as the
2369 \f(CW"forced user"\fP, no matter what username the client connected as\&.
2370 .IP 
2371 This can be very useful\&.
2372 .IP 
2373 \fBDefault:\fP
2374 \f(CW   no forced user\fP
2375 .IP 
2376 \fBExample:\fP
2377 \f(CW   force user = auser\fP
2378 .IP 
2379 .IP "\fBfstype (S)\fP" 
2380 .IP 
2381 This parameter allows the administrator to configure the string that
2382 specifies the type of filesystem a share is using that is reported by
2383 \fBsmbd\fP when a client queries the filesystem type
2384 for a share\&. The default type is \fB"NTFS"\fP for compatibility with
2385 Windows NT but this can be changed to other strings such as "Samba" or
2386 "FAT" if required\&.
2387 .IP 
2388 \fBDefault:\fP
2389 \f(CW   fstype = NTFS\fP
2390 .IP 
2391 \fBExample:\fP
2392 \f(CW   fstype = Samba\fP
2393 .IP 
2394 .IP "\fBgetwd cache (G)\fP" 
2395 .IP 
2396 This is a tuning option\&. When this is enabled a caching algorithm
2397 will be used to reduce the time taken for getwd() calls\&. This can have
2398 a significant impact on performance, especially when the
2399 \fBwidelinks\fP parameter is set to False\&.
2400 .IP 
2401 \fBDefault:\fP
2402 \f(CW   getwd cache = No\fP
2403 .IP 
2404 \fBExample:\fP
2405 \f(CW   getwd cache = Yes\fP
2406 .IP 
2407 .IP "\fBgroup (S)\fP" 
2408 .IP 
2409 Synonym for \fB"force group"\fP\&.
2410 .IP 
2411 .IP "\fBguest account (S)\fP" 
2412 .IP 
2413 This is a username which will be used for access to services which are
2414 specified as \fB\'guest ok\'\fP (see below)\&. Whatever
2415 privileges this user has will be available to any client connecting to
2416 the guest service\&. Typically this user will exist in the password
2417 file, but will not have a valid login\&. The user account \fB"ftp"\fP is
2418 often a good choice for this parameter\&. If a username is specified in
2419 a given service, the specified username overrides this one\&.
2420 .IP 
2421 One some systems the default guest account "nobody" may not be able to
2422 print\&. Use another account in this case\&. You should test this by
2423 trying to log in as your guest user (perhaps by using the \f(CW"su -"\fP
2424 command) and trying to print using the system print command such as
2425 \fBlpr (1)\fP or \fBlp (1)\fP\&.
2426 .IP 
2427 \fBDefault:\fP
2428 \f(CW   specified at compile time, usually "nobody"\fP
2429 .IP 
2430 \fBExample:\fP
2431 \f(CW   guest account = ftp\fP
2432 .IP 
2433 .IP "\fBguest ok (S)\fP" 
2434 .IP 
2435 If this parameter is \fI\'yes\'\fP for a service, then no password is
2436 required to connect to the service\&. Privileges will be those of the
2437 \fBguest account\fP\&.
2438 .IP 
2439 See the section below on \fBsecurity\fP for more
2440 information about this option\&.
2441 .IP 
2442 \fBDefault:\fP
2443 \f(CW   guest ok = no\fP
2444 .IP 
2445 \fBExample:\fP
2446 \f(CW   guest ok = yes\fP
2447 .IP 
2448 .IP "\fBguest only (S)\fP" 
2449 .IP 
2450 If this parameter is \fI\'yes\'\fP for a service, then only guest
2451 connections to the service are permitted\&. This parameter will have no
2452 affect if \fB"guest ok"\fP or \fB"public"\fP
2453 is not set for the service\&.
2454 .IP 
2455 See the section below on \fBsecurity\fP for more
2456 information about this option\&.
2457 .IP 
2458 \fBDefault:\fP
2459 \f(CW   guest only = no\fP
2460 .IP 
2461 \fBExample:\fP
2462 \f(CW   guest only = yes\fP
2463 .IP 
2464 .IP "\fBhide dot files (S)\fP" 
2465 .IP 
2466 This is a boolean parameter that controls whether files starting with
2467 a dot appear as hidden files\&.
2468 .IP 
2469 \fBDefault:\fP
2470 \f(CW   hide dot files = yes\fP
2471 .IP 
2472 \fBExample:\fP
2473 \f(CW   hide dot files = no\fP
2474 .IP 
2475 .IP "\fBhide files(S)\fP" 
2476 .IP 
2477 This is a list of files or directories that are not visible but are
2478 accessible\&.  The DOS \'hidden\' attribute is applied to any files or
2479 directories that match\&.
2480 .IP 
2481 Each entry in the list must be separated by a \f(CW\'/\'\fP, which allows
2482 spaces to be included in the entry\&.  \f(CW\'*\'\fP and \f(CW\'?\'\fP can be used
2483 to specify multiple files or directories as in DOS wildcards\&.
2484 .IP 
2485 Each entry must be a Unix path, not a DOS path and must not include the 
2486 Unix directory separator \f(CW\'/\'\fP\&.
2487 .IP 
2488 Note that the case sensitivity option is applicable in hiding files\&.
2489 .IP 
2490 Setting this parameter will affect the performance of Samba, as it
2491 will be forced to check all files and directories for a match as they
2492 are scanned\&.
2493 .IP 
2494 See also \fB"hide dot files"\fP, \fB"veto
2495 files"\fP and \fB"case sensitive"\fP\&.
2496 .IP 
2497 \fBDefault\fP
2499 .DS 
2502         No files or directories are hidden by this option (dot files are
2503         hidden by default because of the "hide dot files" option)\&.
2505 .DE 
2508 .IP 
2509 \fBExample\fP
2510 \f(CW   hide files = /\&.*/DesktopFolderDB/TrashFor%m/resource\&.frk/\fP
2511 .IP 
2512 The above example is based on files that the Macintosh SMB client
2513 (DAVE) available from \fBThursby\fP creates for
2514 internal use, and also still hides all files beginning with a dot\&.
2515 .IP 
2516 .IP "\fBhomedir map (G)\fP" 
2517 .IP 
2518 If \fB"nis homedir"\fP is true, and
2519 \fBsmbd\fP is also acting as a Win95/98 \fBlogon
2520 server\fP then this parameter specifies the NIS (or YP)
2521 map from which the server for the user\'s home directory should be
2522 extracted\&.  At present, only the Sun auto\&.home map format is
2523 understood\&. The form of the map is:
2524 .IP 
2525 \f(CWusername   server:/some/file/system\fP
2526 .IP 
2527 and the program will extract the servername from before the first
2528 \f(CW\':\'\fP\&.  There should probably be a better parsing system that copes
2529 with different map formats and also Amd (another automounter) maps\&.
2530 .IP 
2531 NB: A working NIS is required on the system for this option to work\&.
2532 .IP 
2533 See also \fB"nis homedir"\fP, \fBdomain
2534 logons\fP\&.
2535 .IP 
2536 \fBDefault:\fP
2537 \f(CW   homedir map = auto\&.home\fP
2538 .IP 
2539 \fBExample:\fP
2540 \f(CW   homedir map = amd\&.homedir\fP
2541 .IP 
2542 .IP "\fBhosts allow (S)\fP" 
2543 .IP 
2544 A synonym for this parameter is \fB\'allow hosts\'\fP
2545 .IP 
2546 This parameter is a comma, space, or tab delimited set of hosts which
2547 are permitted to access a service\&.
2548 .IP 
2549 If specified in the \fB[global]\fP section then it will
2550 apply to all services, regardless of whether the individual service
2551 has a different setting\&.
2552 .IP 
2553 You can specify the hosts by name or IP number\&. For example, you could
2554 restrict access to only the hosts on a Class C subnet with something
2555 like \f(CW"allow hosts = 150\&.203\&.5\&."\fP\&. The full syntax of the list is
2556 described in the man page \fBhosts_access (5)\fP\&. Note that this man
2557 page may not be present on your system, so a brief description will
2558 be given here also\&.
2559 .IP 
2560 \fINOTE:\fP IF you wish to allow the \fBsmbpasswd
2561 (8)\fP program to be run by local users to change
2562 their Samba passwords using the local \fBsmbd (8)\fP
2563 daemon, then you \fIMUST\fP ensure that the localhost is listed in your
2564 \fBhosts allow\fP list, as \fBsmbpasswd (8)\fP runs
2565 in client-server mode and is seen by the local
2566 \fBsmbd\fP process as just another client\&.
2567 .IP 
2568 You can also specify hosts by network/netmask pairs and by netgroup
2569 names if your system supports netgroups\&. The \fIEXCEPT\fP keyword can also
2570 be used to limit a wildcard list\&. The following examples may provide
2571 some help:
2572 .IP 
2573 \fBExample 1\fP: allow localhost and all IPs in 150\&.203\&.*\&.* except one
2574 .IP 
2575 \f(CW   hosts allow = localhost, 150\&.203\&. EXCEPT 150\&.203\&.6\&.66\fP
2576 .IP 
2577 \fBExample 2\fP: allow localhost and hosts that match the given network/netmask
2578 .IP 
2579 \f(CW   hosts allow = localhost, 150\&.203\&.15\&.0/255\&.255\&.255\&.0\fP
2580 .IP 
2581 \fBExample 3\fP: allow a localhost plus a couple of hosts
2582 .IP 
2583 \f(CW   hosts allow = localhost, lapland, arvidsjaur\fP
2584 .IP 
2585 \fBExample 4\fP: allow only hosts in NIS netgroup "foonet" or localhost, but 
2586 deny access from one particular host
2587 .IP 
2588 \f(CW   hosts allow = @foonet, localhost\fP
2589 .IP 
2590 \f(CW   hosts deny = pirate\fP
2591 .IP 
2592 Note that access still requires suitable user-level passwords\&.
2593 .IP 
2594 See \fBtestparm (1)\fP for a way of testing your
2595 host access to see if it does what you expect\&.
2596 .IP 
2597 \fBDefault:\fP
2598 \f(CW   none (i\&.e\&., all hosts permitted access)\fP
2599 .IP 
2600 \fBExample:\fP
2601 \f(CW   allow hosts = 150\&.203\&.5\&. localhost myhost\&.mynet\&.edu\&.au\fP
2602 .IP 
2603 .IP "\fBhosts deny (S)\fP" 
2604 .IP 
2605 The opposite of \fB\'hosts allow\'\fP - hosts listed
2606 here are \fINOT\fP permitted access to services unless the specific
2607 services have their own lists to override this one\&. Where the lists
2608 conflict, the \fB\'allow\'\fP list takes precedence\&.
2609 .IP 
2610 \fBDefault:\fP
2611 \f(CW   none (i\&.e\&., no hosts specifically excluded)\fP
2612 .IP 
2613 \fBExample:\fP
2614 \f(CW   hosts deny = 150\&.203\&.4\&. badhost\&.mynet\&.edu\&.au\fP
2615 .IP 
2616 .IP "\fBhosts equiv (G)\fP" 
2617 .IP 
2618 If this global parameter is a non-null string, it specifies the name
2619 of a file to read for the names of hosts and users who will be allowed
2620 access without specifying a password\&.
2621 .IP 
2622 This is not be confused with \fBhosts allow\fP which
2623 is about hosts access to services and is more useful for guest
2624 services\&. \fBhosts equiv\fP may be useful for NT clients which will not
2625 supply passwords to samba\&.
2626 .IP 
2627 NOTE: The use of \fBhosts equiv\fP can be a major security hole\&. This is
2628 because you are trusting the PC to supply the correct username\&. It is
2629 very easy to get a PC to supply a false username\&. I recommend that the
2630 \fBhosts equiv\fP option be only used if you really know what you are
2631 doing, or perhaps on a home network where you trust your spouse and
2632 kids\&. And only if you \fIreally\fP trust them :-)\&.
2633 .IP 
2634 \fBDefault\fP
2635 \f(CW   No host equivalences\fP
2636 .IP 
2637 \fBExample\fP
2638 \f(CW   hosts equiv = /etc/hosts\&.equiv\fP
2639 .IP 
2640 .IP "\fBinclude (G)\fP" 
2641 .IP 
2642 This allows you to include one config file inside another\&.  The file
2643 is included literally, as though typed in place\&.
2644 .IP 
2645 It takes the standard substitutions, except \fB%u\fP,
2646 \fB%P\fP and \fB%S\fP\&.
2647 .IP 
2648 .IP "\fBinterfaces (G)\fP" 
2649 .IP 
2650 This option allows you to setup multiple network interfaces, so that
2651 Samba can properly handle browsing on all interfaces\&.
2652 .IP 
2653 The option takes a list of ip/netmask pairs\&. The netmask may either be
2654 a bitmask, or a bitlength\&.
2655 .IP 
2656 For example, the following line:
2657 .IP 
2658 \f(CWinterfaces = 192\&.168\&.2\&.10/24 192\&.168\&.3\&.10/24\fP
2659 .IP 
2660 would configure two network interfaces with IP addresses 192\&.168\&.2\&.10
2661 and 192\&.168\&.3\&.10\&. The netmasks of both interfaces would be set to
2662 255\&.255\&.255\&.0\&.
2663 .IP 
2664 You could produce an equivalent result by using:
2665 .IP 
2666 \f(CWinterfaces = 192\&.168\&.2\&.10/255\&.255\&.255\&.0 192\&.168\&.3\&.10/255\&.255\&.255\&.0\fP
2667 .IP 
2668 if you prefer that format\&.
2669 .IP 
2670 If this option is not set then Samba will attempt to find a primary
2671 interface, but won\'t attempt to configure more than one interface\&.
2672 .IP 
2673 See also \fB"bind interfaces only"\fP\&.
2674 .IP 
2675 .IP "\fBinvalid users (S)\fP" 
2676 .IP 
2677 This is a list of users that should not be allowed to login to this
2678 service\&. This is really a \fI"paranoid"\fP check to absolutely ensure an
2679 improper setting does not breach your security\&.
2680 .IP 
2681 A name starting with a \f(CW\'@\'\fP is interpreted as an NIS netgroup first
2682 (if your system supports NIS), and then as a UNIX group if the name
2683 was not found in the NIS netgroup database\&.
2684 .IP 
2685 A name starting with \f(CW\'+\'\fP is interpreted only by looking in the
2686 UNIX group database\&. A name starting with \f(CW\'&\'\fP is interpreted only
2687 by looking in the NIS netgroup database (this requires NIS to be
2688 working on your system)\&. The characters \f(CW\'+\'\fP and \f(CW\'&\'\fP may be
2689 used at the start of the name in either order so the value
2690 \f(CW"+&group"\fP means check the UNIX group database, followed by the NIS
2691 netgroup database, and the value \f(CW"&+group"\fP means check the NIS
2692 netgroup database, followed by the UNIX group database (the same as
2693 the \f(CW\'@\'\fP prefix)\&.
2694 .IP 
2695 The current servicename is substituted for
2696 \fB%S\fP\&. This is useful in the \fB[homes]\fP
2697 section\&.
2698 .IP 
2699 See also \fB"valid users"\fP\&.
2700 .IP 
2701 \fBDefault:\fP
2702 \f(CW   No invalid users\fP
2703 .IP 
2704 \fBExample:\fP
2705 \f(CW   invalid users = root fred admin @wheel\fP
2706 .IP 
2707 .IP "\fBkeepalive (G)\fP" 
2708 .IP 
2709 The value of the parameter (an integer) represents the number of
2710 seconds between \fB\'keepalive\'\fP packets\&. If this parameter is zero, no
2711 keepalive packets will be sent\&. Keepalive packets, if sent, allow the
2712 server to tell whether a client is still present and responding\&.
2713 .IP 
2714 Keepalives should, in general, not be needed if the socket being used
2715 has the SO_KEEPALIVE attribute set on it (see \fB"socket
2716 options"\fP)\&. Basically you should only use this option
2717 if you strike difficulties\&.
2718 .IP 
2719 \fBDefault:\fP
2720 \f(CW   keep alive = 0\fP
2721 .IP 
2722 \fBExample:\fP
2723 \f(CW   keep alive = 60\fP
2724 .IP 
2725 .IP "\fBkernel oplocks (G)\fP" 
2726 .IP 
2727 For UNIXs that support kernel based \fBoplocks\fP
2728 (currently only IRIX but hopefully also Linux and FreeBSD soon) this
2729 parameter allows the use of them to be turned on or off\&.
2730 .IP 
2731 Kernel oplocks support allows Samba \fBoplocks\fP to be
2732 broken whenever a local UNIX process or NFS operation accesses a file
2733 that \fBsmbd\fP has oplocked\&. This allows complete
2734 data consistency between SMB/CIFS, NFS and local file access (and is a
2735 \fIvery\fP cool feature :-)\&.
2736 .IP 
2737 This parameter defaults to \fI"On"\fP on systems that have the support,
2738 and \fI"off"\fP on systems that don\'t\&. You should never need to touch
2739 this parameter\&.
2740 .IP 
2741 .IP "\fBldap filter (G)\fP" 
2742 .IP 
2743 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
2744 password database stored on an LDAP server back-end\&. These options
2745 are only available if your version of Samba was configured with
2746 the \fB--with-ldap\fP option\&.
2747 .IP 
2748 This parameter specifies an LDAP search filter used to search for a
2749 user name in the LDAP database\&. It must contain the string
2750 \fB%u\fP which will be replaced with the user being
2751 searched for\&.
2752 .IP 
2753 \fBDefault:\fP
2754 \f(CW   empty string\&.\fP
2755 .IP 
2756 .IP "\fBldap port (G)\fP" 
2757 .IP 
2758 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
2759 password database stored on an LDAP server back-end\&. These options
2760 are only available if your version of Samba was configured with
2761 the \fB--with-ldap\fP option\&.
2762 .IP 
2763 This parameter specifies the TCP port number to use to contact
2764 the LDAP server on\&.
2765 .IP 
2766 \fBDefault:\fP
2767 \f(CW   ldap port = 389\&.\fP
2768 .IP 
2769 .IP "\fBldap root (G)\fP" 
2770 .IP 
2771 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
2772 password database stored on an LDAP server back-end\&. These options
2773 are only available if your version of Samba was configured with
2774 the \fB--with-ldap\fP option\&.
2775 .IP 
2776 This parameter specifies the entity to bind to the LDAP server
2777 as (essentially the LDAP username) in order to be able to perform
2778 queries and modifications on the LDAP database\&.
2779 .IP 
2780 See also \fBldap root passwd\fP\&.
2781 .IP 
2782 \fBDefault:\fP
2783 \f(CW   empty string (no user defined)\fP
2784 .IP 
2785 .IP "\fBldap root passwd (G)\fP" 
2786 .IP 
2787 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
2788 password database stored on an LDAP server back-end\&. These options
2789 are only available if your version of Samba was configured with
2790 the \fB--with-ldap\fP option\&.
2791 .IP 
2792 This parameter specifies the password for the entity to bind to the
2793 LDAP server as (the password for this LDAP username) in order to be
2794 able to perform queries and modifications on the LDAP database\&.
2795 .IP 
2796 \fIBUGS:\fP This parameter should \fINOT\fP be a readable parameter
2797 in the \fBsmb\&.conf\fP file and will be removed once a correct
2798 storage place is found\&.
2799 .IP 
2800 See also \fBldap root\fP\&.
2801 .IP 
2802 \fBDefault:\fP
2803 \f(CW   empty string\&.\fP
2804 .IP 
2805 .IP "\fBldap server (G)\fP" 
2806 .IP 
2807 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
2808 password database stored on an LDAP server back-end\&. These options
2809 are only available if your version of Samba was configured with
2810 the \fB--with-ldap\fP option\&.
2811 .IP 
2812 This parameter specifies the DNS name of the LDAP server to use
2813 for SMB/CIFS authentication purposes\&.
2814 .IP 
2815 \fBDefault:\fP
2816 \f(CW   ldap server = localhost\fP
2817 .IP 
2818 .IP "\fBldap suffix (G)\fP" 
2819 .IP 
2820 This parameter is part of the \fIEXPERIMENTAL\fP Samba support for a
2821 password database stored on an LDAP server back-end\&. These options
2822 are only available if your version of Samba was configured with
2823 the \fB--with-ldap\fP option\&.
2824 .IP 
2825 This parameter specifies the \f(CW"dn"\fP or LDAP \fI"distinguished name"\fP
2826 that tells \fBsmbd\fP to start from when searching
2827 for an entry in the LDAP password database\&.
2828 .IP 
2829 \fBDefault:\fP
2830 \f(CW   empty string\&.\fP
2831 .IP 
2832 .IP "\fBlm announce (G)\fP" 
2833 .IP 
2834 This parameter determines if \fBnmbd\fP will produce
2835 Lanman announce broadcasts that are needed by \fBOS/2\fP clients in order
2836 for them to see the Samba server in their browse list\&. This parameter
2837 can have three values, \f(CW"true"\fP, \f(CW"false"\fP, or \f(CW"auto"\fP\&. The
2838 default is \f(CW"auto"\fP\&.  If set to \f(CW"false"\fP Samba will never produce
2839 these broadcasts\&. If set to \f(CW"true"\fP Samba will produce Lanman
2840 announce broadcasts at a frequency set by the parameter \fB"lm
2841 interval"\fP\&. If set to \f(CW"auto"\fP Samba will not send Lanman
2842 announce broadcasts by default but will listen for them\&. If it hears
2843 such a broadcast on the wire it will then start sending them at a
2844 frequency set by the parameter \fB"lm interval"\fP\&.
2845 .IP 
2846 See also \fB"lm interval"\fP\&.
2847 .IP 
2848 \fBDefault:\fP
2849 \f(CW   lm announce = auto\fP
2850 .IP 
2851 \fBExample:\fP
2852 \f(CW   lm announce = true\fP
2853 .IP 
2854 .IP "\fBlm interval (G)\fP" 
2855 .IP 
2856 If Samba is set to produce Lanman announce broadcasts needed by
2857 \fBOS/2\fP clients (see the \fB"lm announce"\fP
2858 parameter) then this parameter defines the frequency in seconds with
2859 which they will be made\&.  If this is set to zero then no Lanman
2860 announcements will be made despite the setting of the \fB"lm
2861 announce"\fP parameter\&.
2862 .IP 
2863 See also \fB"lm announce"\fP\&.
2864 .IP 
2865 \fBDefault:\fP
2866 \f(CW   lm interval = 60\fP
2867 .IP 
2868 \fBExample:\fP
2869 \f(CW   lm interval = 120\fP
2870 .IP 
2871 .IP "\fBload printers (G)\fP" 
2872 .IP 
2873 A boolean variable that controls whether all printers in the printcap
2874 will be loaded for browsing by default\&. See the
2875 \fB"printers"\fP section for more details\&.
2876 .IP 
2877 \fBDefault:\fP
2878 \f(CW   load printers = yes\fP
2879 .IP 
2880 \fBExample:\fP
2881 \f(CW   load printers = no\fP
2882 .IP 
2883 .IP "\fBlocal master (G)\fP" 
2884 .IP 
2885 This option allows \fBnmbd\fP to try and become a
2886 local master browser on a subnet\&. If set to False then
2887 \fBnmbd\fP will not attempt to become a local master
2888 browser on a subnet and will also lose in all browsing elections\&. By
2889 default this value is set to true\&. Setting this value to true doesn\'t
2890 mean that Samba will \fIbecome\fP the local master browser on a subnet,
2891 just that \fBnmbd\fP will \fIparticipate\fP in
2892 elections for local master browser\&.
2893 .IP 
2894 Setting this value to False will cause \fBnmbd\fP
2895 \fInever\fP to become a local master browser\&.
2896 .IP 
2897 \fBDefault:\fP
2898 \f(CW   local master = yes\fP
2899 .IP 
2900 .IP "\fBlock dir (G)\fP" 
2901 .IP 
2902 Synonym for \fB"lock directory"\fP\&.
2903 .IP 
2904 .IP "\fBlock directory (G)\fP" 
2905 .IP 
2906 This option specifies the directory where lock files will be placed\&.
2907 The lock files are used to implement the \fB"max
2908 connections"\fP option\&.
2909 .IP 
2910 \fBDefault:\fP
2911 \f(CW   lock directory = /tmp/samba\fP
2912 .IP 
2913 \fBExample:\fP
2914 \f(CW   lock directory = /usr/local/samba/var/locks\fP
2915 .IP 
2916 .IP "\fBlocking (S)\fP" 
2917 .IP 
2918 This controls whether or not locking will be performed by the server
2919 in response to lock requests from the client\&.
2920 .IP 
2921 If \f(CW"locking = no"\fP, all lock and unlock requests will appear to
2922 succeed and all lock queries will indicate that the queried lock is
2923 clear\&.
2924 .IP 
2925 If \f(CW"locking = yes"\fP, real locking will be performed by the server\&.
2926 .IP 
2927 This option \fImay\fP be useful for read-only filesystems which \fImay\fP
2928 not need locking (such as cdrom drives), although setting this
2929 parameter of \f(CW"no"\fP is not really recommended even in this case\&.
2930 .IP 
2931 Be careful about disabling locking either globally or in a specific
2932 service, as lack of locking may result in data corruption\&. You should
2933 never need to set this parameter\&.
2934 .IP 
2935 \fBDefault:\fP
2936 \f(CW   locking = yes\fP
2937 .IP 
2938 \fBExample:\fP
2939 \f(CW   locking = no\fP
2940 .IP 
2941 .IP "\fBlog file (G)\fP" 
2942 .IP 
2943 This options allows you to override the name of the Samba log file
2944 (also known as the debug file)\&.
2945 .IP 
2946 This option takes the standard substitutions, allowing you to have
2947 separate log files for each user or machine\&.
2948 .IP 
2949 \fBExample:\fP
2950 \f(CW   log file = /usr/local/samba/var/log\&.%m\fP
2951 .IP 
2952 .IP "\fBlog level (G)\fP" 
2953 .IP 
2954 Synonym for \fB"debug level"\fP\&.
2955 .IP 
2956 .IP "\fBlogon drive (G)\fP" 
2957 .IP 
2958 This parameter specifies the local path to which the home directory
2959 will be connected (see \fB"logon home"\fP) and is only
2960 used by NT Workstations\&. 
2961 .IP 
2962 Note that this option is only useful if Samba is set up as a
2963 \fBlogon server\fP\&.
2964 .IP 
2965 \fBExample:\fP
2966 \f(CW   logon drive = h:\fP
2967 .IP 
2968 .IP "\fBlogon home (G)\fP" 
2969 .IP 
2970 This parameter specifies the home directory location when a Win95/98 or
2971 NT Workstation logs into a Samba PDC\&.  It allows you to do 
2972 .IP 
2973 \f(CW"NET USE H: /HOME"\fP
2974 .IP 
2975 from a command prompt, for example\&.
2976 .IP 
2977 This option takes the standard substitutions, allowing you to have
2978 separate logon scripts for each user or machine\&.
2979 .IP 
2980 Note that this option is only useful if Samba is set up as a
2981 \fBlogon server\fP\&.
2982 .IP 
2983 \fBExample:\fP
2984 \f(CW   logon home = "\e\eremote_smb_server\e%U"\fP
2985 .IP 
2986 \fBDefault:\fP
2987 \f(CW   logon home = "\e\e%N\e%U"\fP
2988 .IP 
2989 .IP "\fBlogon path (G)\fP" 
2990 .IP 
2991 This parameter specifies the home directory where roaming profiles
2992 (USER\&.DAT / USER\&.MAN files for Windows 95/98) are stored\&.
2993 .IP 
2994 This option takes the standard substitutions, allowing you to have
2995 separate logon scripts for each user or machine\&.  It also specifies
2996 the directory from which the \f(CW"desktop"\fP, \f(CW"start menu"\fP,
2997 \f(CW"network neighborhood"\fP and \f(CW"programs"\fP folders, and their
2998 contents, are loaded and displayed on your Windows 95/98 client\&.
2999 .IP 
3000 The share and the path must be readable by the user for the
3001 preferences and directories to be loaded onto the Windows 95/98
3002 client\&.  The share must be writeable when the logs in for the first
3003 time, in order that the Windows 95/98 client can create the user\&.dat
3004 and other directories\&.
3005 .IP 
3006 Thereafter, the directories and any of the contents can, if required, be
3007 made read-only\&.  It is not advisable that the USER\&.DAT file be made
3008 read-only - rename it to USER\&.MAN to achieve the desired effect (a
3009 \fIMAN\fPdatory profile)\&.
3010 .IP 
3011 Windows clients can sometimes maintain a connection to the [homes]
3012 share, even though there is no user logged in\&.  Therefore, it is vital
3013 that the logon path does not include a reference to the homes share
3014 (i\&.e\&. setting this parameter to \f(CW\e\e%N\eHOMES\eprofile_path\fP will cause
3015 problems)\&.
3016 .IP 
3017 This option takes the standard substitutions, allowing you to have
3018 separate logon scripts for each user or machine\&.
3019 .IP 
3020 Note that this option is only useful if Samba is set up as a
3021 \fBlogon server\fP\&.
3022 .IP 
3023 \fBDefault:\fP
3024 \f(CW   logon path = \e\e%N\e%U\eprofile\fP
3025 .IP 
3026 \fBExample:\fP
3027 \f(CW   logon path = \e\ePROFILESERVER\eHOME_DIR\e%U\ePROFILE\fP
3028 .IP 
3029 .IP "\fBlogon script (G)\fP" 
3030 .IP 
3031 This parameter specifies the batch file (\&.bat) or NT command file
3032 (\&.cmd) to be downloaded and run on a machine when a user successfully
3033 logs in\&.  The file must contain the DOS style cr/lf line endings\&.
3034 Using a DOS-style editor to create the file is recommended\&.
3035 .IP 
3036 The script must be a relative path to the \f(CW[netlogon]\fP service\&.  If
3037 the \f(CW[netlogon]\fP service specifies a \fBpath\fP of
3038 /usr/local/samba/netlogon, and logon script = STARTUP\&.BAT, then the
3039 file that will be downloaded is:
3040 .IP 
3041 \f(CW/usr/local/samba/netlogon/STARTUP\&.BAT\fP
3042 .IP 
3043 The contents of the batch file is entirely your choice\&.  A suggested
3044 command would be to add \f(CWNET TIME \e\eSERVER /SET /YES\fP, to force every
3045 machine to synchronize clocks with the same time server\&.  Another use
3046 would be to add \f(CWNET USE U: \e\eSERVER\eUTILS\fP for commonly used
3047 utilities, or \f(CWNET USE Q: \e\eSERVER\eISO9001_QA\fP for example\&.
3048 .IP 
3049 Note that it is particularly important not to allow write access to
3050 the \f(CW[netlogon]\fP share, or to grant users write permission on the
3051 batch files in a secure environment, as this would allow the batch
3052 files to be arbitrarily modified and security to be breached\&.
3053 .IP 
3054 This option takes the standard substitutions, allowing you to have
3055 separate logon scripts for each user or machine\&.
3056 .IP 
3057 Note that this option is only useful if Samba is set up as a
3058 \fBlogon server\fP\&.
3059 .IP 
3060 \fBExample:\fP
3061 \f(CW   logon script = scripts\e%U\&.bat\fP
3062 .IP 
3063 .IP "\fBlppause command (S)\fP" 
3064 .IP 
3065 This parameter specifies the command to be executed on the server host
3066 in order to stop printing or spooling a specific print job\&.
3067 .IP 
3068 This command should be a program or script which takes a printer name
3069 and job number to pause the print job\&. One way of implementing this is
3070 by using job priorities, where jobs having a too low priority won\'t be
3071 sent to the printer\&.
3072 .IP 
3073 If a \f(CW"%p"\fP is given then the printername is put in its place\&. A
3074 \f(CW"%j"\fP is replaced with the job number (an integer)\&.  On HPUX (see
3075 \fBprinting=hpux\fP), if the \f(CW"-p%p"\fP option is added
3076 to the lpq command, the job will show up with the correct status,
3077 i\&.e\&. if the job priority is lower than the set fence priority it will
3078 have the PAUSED status, whereas if the priority is equal or higher it
3079 will have the SPOOLED or PRINTING status\&.
3080 .IP 
3081 Note that it is good practice to include the absolute path in the
3082 lppause command as the PATH may not be available to the server\&.
3083 .IP 
3084 See also the \fB"printing"\fP parameter\&.
3085 .IP 
3086 \fBDefault:\fP
3087 Currently no default value is given to this string, unless the
3088 value of the \fB"printing"\fP parameter is \f(CWSYSV\fP, in
3089 which case the default is :
3090 .IP 
3091 \f(CW   lp -i %p-%j -H hold\fP
3092 .IP 
3093 or if the value of the \fB"printing"\fP parameter is \f(CWsoftq\fP,
3094 then the default is:
3095 .IP 
3096 \f(CW   qstat -s -j%j -h\fP
3097 .IP 
3098 \fBExample for HPUX:\fP
3099 lppause command = /usr/bin/lpalt %p-%j -p0
3100 .IP 
3101 .IP "\fBlpq cache time (G)\fP" 
3102 .IP 
3103 This controls how long lpq info will be cached for to prevent the
3104 \fBlpq\fP command being called too often\&. A separate cache is kept for
3105 each variation of the \fBlpq\fP command used by the system, so if you
3106 use different \fBlpq\fP commands for different users then they won\'t
3107 share cache information\&.
3108 .IP 
3109 The cache files are stored in \f(CW/tmp/lpq\&.xxxx\fP where xxxx is a hash of
3110 the \fBlpq\fP command in use\&.
3111 .IP 
3112 The default is 10 seconds, meaning that the cached results of a
3113 previous identical \fBlpq\fP command will be used if the cached data is
3114 less than 10 seconds old\&. A large value may be advisable if your
3115 \fBlpq\fP command is very slow\&.
3116 .IP 
3117 A value of 0 will disable caching completely\&.
3118 .IP 
3119 See also the \fB"printing"\fP parameter\&.
3120 .IP 
3121 \fBDefault:\fP
3122 \f(CW   lpq cache time = 10\fP
3123 .IP 
3124 \fBExample:\fP
3125 \f(CW   lpq cache time = 30\fP
3126 .IP 
3127 .IP "\fBlpq command (S)\fP" 
3128 .IP 
3129 This parameter specifies the command to be executed on the server host
3130 in order to obtain \f(CW"lpq"\fP-style printer status information\&.
3131 .IP 
3132 This command should be a program or script which takes a printer name
3133 as its only parameter and outputs printer status information\&.
3134 .IP 
3135 Currently eight styles of printer status information are supported;
3136 BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX and SOFTQ\&. This covers most UNIX
3137 systems\&. You control which type is expected using the
3138 \fB"printing ="\fP option\&.
3139 .IP 
3140 Some clients (notably Windows for Workgroups) may not correctly send
3141 the connection number for the printer they are requesting status
3142 information about\&. To get around this, the server reports on the first
3143 printer service connected to by the client\&. This only happens if the
3144 connection number sent is invalid\&.
3145 .IP 
3146 If a \f(CW%p\fP is given then the printername is put in its place\&. Otherwise
3147 it is placed at the end of the command\&.
3148 .IP 
3149 Note that it is good practice to include the absolute path in the \fBlpq
3150 command\fP as the PATH may not be available to the server\&.
3151 .IP 
3152 See also the \fB"printing"\fP parameter\&.
3153 .IP 
3154 \fBDefault:\fP
3155 \f(CW        depends on the setting of printing =\fP
3156 .IP 
3157 \fBExample:\fP
3158 \f(CW   lpq command = /usr/bin/lpq %p\fP
3159 .IP 
3160 .IP "\fBlpresume command (S)\fP" 
3161 .IP 
3162 This parameter specifies the command to be executed on the server host
3163 in order to restart or continue printing or spooling a specific print
3164 job\&.
3165 .IP 
3166 This command should be a program or script which takes a printer name
3167 and job number to resume the print job\&. See also the \fB"lppause
3168 command"\fP parameter\&.
3169 .IP 
3170 If a \f(CW%p\fP is given then the printername is put in its place\&. A
3171 \f(CW%j\fP is replaced with the job number (an integer)\&.
3172 .IP 
3173 Note that it is good practice to include the absolute path in the \fBlpresume
3174 command\fP as the PATH may not be available to the server\&.
3175 .IP 
3176 See also the \fB"printing"\fP parameter\&.
3177 .IP 
3178 \fBDefault:\fP
3179 .IP 
3180 Currently no default value is given to this string, unless the
3181 value of the \fB"printing"\fP parameter is \f(CWSYSV\fP, in
3182 which case the default is :
3183 .IP 
3184 \f(CW   lp -i %p-%j -H resume\fP
3185 .IP 
3186 or if the value of the \fB"printing"\fP parameter is \f(CWsoftq\fP,
3187 then the default is:
3188 .IP 
3189 \f(CW   qstat -s -j%j -r\fP
3190 .IP 
3191 \fBExample for HPUX:\fP
3192 \f(CW        lpresume command = /usr/bin/lpalt %p-%j -p2\fP
3193 .IP 
3194 .IP "\fBlprm command (S)\fP" 
3195 .IP 
3196 This parameter specifies the command to be executed on the server host
3197 in order to delete a print job\&.
3198 .IP 
3199 This command should be a program or script which takes a printer name
3200 and job number, and deletes the print job\&.
3201 .IP 
3202 If a \f(CW%p\fP is given then the printername is put in its place\&. A
3203 \f(CW%j\fP is replaced with the job number (an integer)\&.
3204 .IP 
3205 Note that it is good practice to include the absolute path in the
3206 \fBlprm command\fP as the PATH may not be available to the server\&.
3207 .IP 
3208 See also the \fB"printing"\fP parameter\&.
3209 .IP 
3210 \fBDefault:\fP
3211 \f(CW   depends on the setting of "printing ="\fP
3212 .IP 
3213 \fBExample 1:\fP
3214 \f(CW   lprm command = /usr/bin/lprm -P%p %j\fP
3215 .IP 
3216 \fBExample 2:\fP
3217 \f(CW   lprm command = /usr/bin/cancel %p-%j\fP
3218 .IP 
3219 .IP "\fBmachine password timeout (G)\fP" 
3220 .IP 
3221 If a Samba server is a member of an Windows NT Domain (see the
3222 \fB"security=domain"\fP) parameter) then
3223 periodically a running \fBsmbd\fP process will try and
3224 change the \fBMACHINE ACCOUNT PASWORD\fP stored in the file called
3225 \f(CW<Domain>\&.<Machine>\&.mac\fP where \f(CW<Domain>\fP is the name of the
3226 Domain we are a member of and \f(CW<Machine>\fP is the primary
3227 \fB"NetBIOS name"\fP of the machine
3228 \fBsmbd\fP is running on\&. This parameter specifies how
3229 often this password will be changed, in seconds\&. The default is one
3230 week (expressed in seconds), the same as a Windows NT Domain member
3231 server\&.
3232 .IP 
3233 See also \fBsmbpasswd (8)\fP, and the
3234 \fB"security=domain"\fP) parameter\&.
3235 .IP 
3236 \fBDefault:\fP
3237 \f(CW   machine password timeout = 604800\fP
3238 .IP 
3239 .IP "\fBmagic output (S)\fP" 
3240 .IP 
3241 This parameter specifies the name of a file which will contain output
3242 created by a magic script (see the \fB"magic
3243 script"\fP parameter below)\&.
3244 .IP 
3245 Warning: If two clients use the same \fB"magic
3246 script"\fP in the same directory the output file content
3247 is undefined\&.
3248 .IP 
3249 \fBDefault:\fP
3250 \f(CW   magic output = <magic script name>\&.out\fP
3251 .IP 
3252 \fBExample:\fP
3253 \f(CW   magic output = myfile\&.txt\fP
3254 .IP 
3255 .IP "\fBmagic script (S)\fP" 
3256 .IP 
3257 This parameter specifies the name of a file which, if opened, will be
3258 executed by the server when the file is closed\&. This allows a UNIX
3259 script to be sent to the Samba host and executed on behalf of the
3260 connected user\&.
3261 .IP 
3262 Scripts executed in this way will be deleted upon completion,
3263 permissions permitting\&.
3264 .IP 
3265 If the script generates output, output will be sent to the file
3266 specified by the \fB"magic output"\fP parameter (see
3267 above)\&.
3268 .IP 
3269 Note that some shells are unable to interpret scripts containing
3270 carriage-return-linefeed instead of linefeed as the end-of-line
3271 marker\&. Magic scripts must be executable \fI"as is"\fP on the host,
3272 which for some hosts and some shells will require filtering at the DOS
3273 end\&.
3274 .IP 
3275 Magic scripts are \fIEXPERIMENTAL\fP and should \fINOT\fP be relied upon\&.
3276 .IP 
3277 \fBDefault:\fP
3278 \f(CW   None\&. Magic scripts disabled\&.\fP
3279 .IP 
3280 \fBExample:\fP
3281 \f(CW   magic script = user\&.csh\fP
3282 .IP 
3283 .IP "\fBmangle case (S)\fP" 
3284 .IP 
3285 See the section on \fB"NAME MANGLING"\fP\&.
3286 .IP 
3287 .IP "\fBmangled map (S)\fP" 
3288 .IP 
3289 This is for those who want to directly map UNIX file names which can
3290 not be represented on Windows/DOS\&.  The mangling of names is not always
3291 what is needed\&.  In particular you may have documents with file
3292 extensions that differ between DOS and UNIX\&. For example, under UNIX
3293 it is common to use \f(CW"\&.html"\fP for HTML files, whereas under
3294 Windows/DOS \f(CW"\&.htm"\fP is more commonly used\&.
3295 .IP 
3296 So to map \f(CW"html"\fP to \f(CW"htm"\fP you would use:
3297 .IP 
3298 \f(CW  mangled map = (*\&.html *\&.htm)\fP
3299 .IP 
3300 One very useful case is to remove the annoying \f(CW";1"\fP off the ends
3301 of filenames on some CDROMS (only visible under some UNIXs)\&. To do
3302 this use a map of (*;1 *)\&.
3303 .IP 
3304 \fBdefault:\fP
3305 \f(CW   no mangled map\fP
3306 .IP 
3307 \fBExample:\fP
3308 \f(CW   mangled map = (*;1 *)\fP
3309 .IP 
3310 .IP "\fBmangled names (S)\fP" 
3311 .IP 
3312 This controls whether non-DOS names under UNIX should be mapped to
3313 DOS-compatible names ("mangled") and made visible, or whether non-DOS
3314 names should simply be ignored\&.
3315 .IP 
3316 See the section on \fB"NAME MANGLING"\fP for details
3317 on how to control the mangling process\&.
3318 .IP 
3319 If mangling is used then the mangling algorithm is as follows:
3320 .IP 
3321 .IP 
3322 .IP o 
3323 The first (up to) five alphanumeric characters before the
3324 rightmost dot of the filename are preserved, forced to upper case, and
3325 appear as the first (up to) five characters of the mangled name\&.
3326 .IP 
3327 .IP o 
3328 A tilde \f(CW"~"\fP is appended to the first part of the mangled
3329 name, followed by a two-character unique sequence, based on the
3330 original root name (i\&.e\&., the original filename minus its final
3331 extension)\&. The final extension is included in the hash calculation
3332 only if it contains any upper case characters or is longer than three
3333 characters\&.
3334 .IP 
3335 Note that the character to use may be specified using the
3336 \fB"mangling char"\fP option, if you don\'t like
3337 \f(CW\'~\'\fP\&.
3338 .IP 
3339 .IP o 
3340 The first three alphanumeric characters of the final extension
3341 are preserved, forced to upper case and appear as the extension of the
3342 mangled name\&. The final extension is defined as that part of the
3343 original filename after the rightmost dot\&. If there are no dots in the
3344 filename, the mangled name will have no extension (except in the case
3345 of \fB"hidden files"\fP - see below)\&.
3346 .IP 
3347 .IP o 
3348 Files whose UNIX name begins with a dot will be presented as DOS
3349 hidden files\&. The mangled name will be created as for other filenames,
3350 but with the leading dot removed and \f(CW"___"\fP as its extension regardless
3351 of actual original extension (that\'s three underscores)\&.
3352 .IP 
3353 .IP 
3354 The two-digit hash value consists of upper case alphanumeric
3355 characters\&.
3356 .IP 
3357 This algorithm can cause name collisions only if files in a directory
3358 share the same first five alphanumeric characters\&. The probability of
3359 such a clash is 1/1300\&.
3360 .IP 
3361 The name mangling (if enabled) allows a file to be copied between UNIX
3362 directories from Windows/DOS while retaining the long UNIX
3363 filename\&. UNIX files can be renamed to a new extension from
3364 Windows/DOS and will retain the same basename\&. Mangled names do not
3365 change between sessions\&.
3366 .IP 
3367 \fBDefault:\fP
3368 \f(CW   mangled names = yes\fP
3369 .IP 
3370 \fBExample:\fP
3371 \f(CW   mangled names = no\fP
3372 .IP 
3373 .IP "\fBmangling char (S)\fP" 
3374 .IP 
3375 This controls what character is used as the \fI"magic"\fP character in
3376 \fBname mangling\fP\&. The default is a \f(CW\'~\'\fP but
3377 this may interfere with some software\&. Use this option to set it to
3378 whatever you prefer\&.
3379 .IP 
3380 \fBDefault:\fP
3381 \f(CW   mangling char = ~\fP
3382 .IP 
3383 \fBExample:\fP
3384 \f(CW   mangling char = ^\fP
3385 .IP 
3386 .IP "\fBmangled stack (G)\fP" 
3387 .IP 
3388 This parameter controls the number of mangled names that should be
3389 cached in the Samba server \fBsmbd\fP\&.
3390 .IP 
3391 This stack is a list of recently mangled base names (extensions are
3392 only maintained if they are longer than 3 characters or contains upper
3393 case characters)\&.
3394 .IP 
3395 The larger this value, the more likely it is that mangled names can be
3396 successfully converted to correct long UNIX names\&. However, large
3397 stack sizes will slow most directory access\&. Smaller stacks save
3398 memory in the server (each stack element costs 256 bytes)\&.
3399 .IP 
3400 It is not possible to absolutely guarantee correct long file names, so
3401 be prepared for some surprises!
3402 .IP 
3403 \fBDefault:\fP
3404 \f(CW   mangled stack = 50\fP
3405 .IP 
3406 \fBExample:\fP
3407 \f(CW   mangled stack = 100\fP
3408 .IP 
3409 .IP "\fBmap archive (S)\fP" 
3410 .IP 
3411 This controls whether the DOS archive attribute should be mapped to
3412 the UNIX owner execute bit\&.  The DOS archive bit is set when a file
3413 has been modified since its last backup\&.  One motivation for this
3414 option it to keep Samba/your PC from making any file it touches from
3415 becoming executable under UNIX\&.  This can be quite annoying for shared
3416 source code, documents, etc\&.\&.\&.
3417 .IP 
3418 Note that this requires the \fB"create mask"\fP
3419 parameter to be set such that owner execute bit is not masked out
3420 (i\&.e\&. it must include 100)\&. See the parameter \fB"create
3421 mask"\fP for details\&.
3422 .IP 
3423 \fBDefault:\fP
3424 \f(CW      map archive = yes\fP
3425 .IP 
3426 \fBExample:\fP
3427 \f(CW      map archive = no\fP
3428 .IP 
3429 .IP "\fBmap hidden (S)\fP" 
3430 .IP 
3431 This controls whether DOS style hidden files should be mapped to the
3432 UNIX world execute bit\&.
3433 .IP 
3434 Note that this requires the \fB"create mask"\fP to be
3435 set such that the world execute bit is not masked out (i\&.e\&. it must
3436 include 001)\&. See the parameter \fB"create mask"\fP
3437 for details\&.
3438 .IP 
3439 \fBDefault:\fP
3440 \f(CW   map hidden = no\fP
3441 .IP 
3442 \fBExample:\fP
3443 \f(CW   map hidden = yes\fP
3444 .IP 
3445 .IP "\fBmap system (S)\fP" 
3446 .IP 
3447 This controls whether DOS style system files should be mapped to the
3448 UNIX group execute bit\&.
3449 .IP 
3450 Note that this requires the \fB"create mask"\fP to be
3451 set such that the group execute bit is not masked out (i\&.e\&. it must
3452 include 010)\&. See the parameter \fB"create mask"\fP
3453 for details\&.
3454 .IP 
3455 \fBDefault:\fP
3456 \f(CW   map system = no\fP
3457 .IP 
3458 \fBExample:\fP
3459 \f(CW   map system = yes\fP
3460 .IP 
3461 .IP "\fBmap to guest (G)\fP" 
3462 .IP 
3463 This parameter is only useful in \fBsecurity\fP modes
3464 other than \fB"security=share"\fP - i\&.e\&. user,
3465 server, and domain\&.
3466 .IP 
3467 This parameter can take three different values, which tell
3468 \fBsmbd\fP what to do with user login requests that
3469 don\'t match a valid UNIX user in some way\&.
3470 .IP 
3471 The three settings are :
3472 .IP 
3473 .IP 
3474 .IP o 
3475 \fB"Never"\fP - Means user login requests with an invalid password
3476 are rejected\&. This is the default\&.
3477 .IP 
3478 .IP o 
3479 \fB"Bad User"\fP - Means user logins with an invalid password are
3480 rejected, unless the username does not exist, in which case it is
3481 treated as a guest login and mapped into the \fB"guest
3482 account"\fP\&.
3483 .IP 
3484 .IP o 
3485 \fB"Bad Password"\fP - Means user logins with an invalid
3486 password are treated as a guest login and mapped into the
3487 \fB"guest account"\fP\&. Note that this can
3488 cause problems as it means that any user incorrectly typing their
3489 password will be silently logged on a \fB"guest"\fP - and 
3490 will not know the reason they cannot access files they think
3491 they should - there will have been no message given to them
3492 that they got their password wrong\&. Helpdesk services will
3493 \fI*hate*\fP you if you set the \fB"map to guest"\fP parameter
3494 this way :-)\&.
3495 .IP 
3496 .IP 
3497 Note that this parameter is needed to set up \fB"Guest"\fP share
3498 services when using \fBsecurity\fP modes other than
3499 share\&. This is because in these modes the name of the resource being
3500 requested is \fI*not*\fP sent to the server until after the server has
3501 successfully authenticated the client so the server cannot make
3502 authentication decisions at the correct time (connection to the
3503 share) for \fB"Guest"\fP shares\&.
3504 .IP 
3505 For people familiar with the older Samba releases, this parameter
3506 maps to the old compile-time setting of the GUEST_SESSSETUP value
3507 in local\&.h\&.
3508 .IP 
3509 \fBDefault:\fP
3510 \f(CW   map to guest = Never\fP
3511 \fBExample\fP:
3512 \f(CW   map to guest = Bad User\fP
3513 .IP 
3514 .IP "\fBmax connections (S)\fP" 
3515 .IP 
3516 This option allows the number of simultaneous connections to a service
3517 to be limited\&. If \fB"max connections"\fP is greater than 0 then
3518 connections will be refused if this number of connections to the
3519 service are already open\&. A value of zero mean an unlimited number of
3520 connections may be made\&.
3521 .IP 
3522 Record lock files are used to implement this feature\&. The lock files
3523 will be stored in the directory specified by the \fB"lock
3524 directory"\fP option\&.
3525 .IP 
3526 \fBDefault:\fP
3527 \f(CW   max connections = 0\fP
3528 .IP 
3529 \fBExample:\fP
3530 \f(CW   max connections = 10\fP
3531 .IP 
3532 .IP "\fBmax disk size (G)\fP" 
3533 .IP 
3534 This option allows you to put an upper limit on the apparent size of
3535 disks\&. If you set this option to 100 then all shares will appear to be
3536 not larger than 100 MB in size\&.
3537 .IP 
3538 Note that this option does not limit the amount of data you can put on
3539 the disk\&. In the above case you could still store much more than 100
3540 MB on the disk, but if a client ever asks for the amount of free disk
3541 space or the total disk size then the result will be bounded by the
3542 amount specified in \fB"max disk size"\fP\&.
3543 .IP 
3544 This option is primarily useful to work around bugs in some pieces of
3545 software that can\'t handle very large disks, particularly disks over
3546 1GB in size\&.
3547 .IP 
3548 A \fB"max disk size"\fP of 0 means no limit\&.
3549 .IP 
3550 \fBDefault:\fP
3551 \f(CW   max disk size = 0\fP
3552 .IP 
3553 \fBExample:\fP
3554 \f(CW   max disk size = 1000\fP
3555 .IP 
3556 .IP "\fBmax log size (G)\fP" 
3557 .IP 
3558 This option (an integer in kilobytes) specifies the max size the log
3559 file should grow to\&. Samba periodically checks the size and if it is
3560 exceeded it will rename the file, adding a \f(CW"\&.old"\fP extension\&.
3561 .IP 
3562 A size of 0 means no limit\&.
3563 .IP 
3564 \fBDefault:\fP
3565 \f(CW   max log size = 5000\fP
3566 .IP 
3567 \fBExample:\fP
3568 \f(CW   max log size = 1000\fP
3569 .IP 
3570 .IP "\fBmax mux (G)\fP" 
3571 .IP 
3572 This option controls the maximum number of outstanding simultaneous
3573 SMB operations that samba tells the client it will allow\&. You should
3574 never need to set this parameter\&.
3575 .IP 
3576 \fBDefault:\fP
3577 \f(CW   max mux = 50\fP
3578 .IP 
3579 .IP "\fBmaxopenfiles (G)\fP" 
3580 .IP 
3581 This parameter limits the maximum number of open files that one
3582 \fBsmbd\fP file serving process may have open for
3583 a client at any one time\&. The default for this parameter is set
3584 very high (10,000) as Samba uses only one bit per unopened file\&.
3585 .IP 
3586 The limit of the number of open files is usually set by the
3587 UNIX per-process file descriptor limit rather than this parameter
3588 so you should never need to touch this parameter\&.
3589 .IP 
3590 \fBDefault:\fP
3591 \f(CW   max open files = 10000\fP
3592 .IP 
3593 .IP "\fBmax packet (G)\fP" 
3594 .IP 
3595 Synonym for (packetsize)\&.
3596 .IP 
3597 .IP "\fBmax ttl (G)\fP" 
3598 .IP 
3599 This option tells \fBnmbd\fP what the default \'time
3600 to live\' of NetBIOS names should be (in seconds) when
3601 \fBnmbd\fP is requesting a name using either a
3602 broadcast packet or from a WINS server\&. You should never need to
3603 change this parameter\&. The default is 3 days\&.
3604 .IP 
3605 \fBDefault:\fP
3606 \f(CW   max ttl = 259200\fP
3607 .IP 
3608 .IP "\fBmax wins ttl (G)\fP" 
3609 .IP 
3610 This option tells \fBnmbd\fP when acting as a WINS
3611 server \fB(wins support =true)\fP what the maximum
3612 \'time to live\' of NetBIOS names that \fBnmbd\fP will
3613 grant will be (in seconds)\&. You should never need to change this
3614 parameter\&.  The default is 6 days (518400 seconds)\&.
3615 .IP 
3616 See also the \fB"min wins ttl"\fP parameter\&.
3617 .IP 
3618 \fBDefault:\fP
3619 \f(CW        max wins ttl = 518400\fP
3620 .IP 
3621 .IP "\fBmax xmit (G)\fP" 
3622 .IP 
3623 This option controls the maximum packet size that will be negotiated
3624 by Samba\&. The default is 65535, which is the maximum\&. In some cases
3625 you may find you get better performance with a smaller value\&. A value
3626 below 2048 is likely to cause problems\&.
3627 .IP 
3628 \fBDefault:\fP
3629 \f(CW   max xmit = 65535\fP
3630 .IP 
3631 \fBExample:\fP
3632 \f(CW   max xmit = 8192\fP
3633 .IP 
3634 .IP "\fBmessage command (G)\fP" 
3635 .IP 
3636 This specifies what command to run when the server receives a WinPopup
3637 style message\&.
3638 .IP 
3639 This would normally be a command that would deliver the message
3640 somehow\&. How this is to be done is up to your imagination\&.
3641 .IP 
3642 An example is:
3643 .IP 
3644 \f(CW   message command = csh -c \'xedit %s;rm %s\' &\fP
3645 .IP 
3646 This delivers the message using \fBxedit\fP, then removes it
3647 afterwards\&. \fINOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN
3648 IMMEDIATELY\fP\&. That\'s why I have the \f(CW\'&\'\fP on the end\&. If it doesn\'t
3649 return immediately then your PCs may freeze when sending messages
3650 (they should recover after 30secs, hopefully)\&.
3651 .IP 
3652 All messages are delivered as the global guest user\&. The command takes
3653 the standard substitutions, although \fB%u\fP won\'t work
3654 (\fB%U\fP may be better in this case)\&.
3655 .IP 
3656 Apart from the standard substitutions, some additional ones apply\&. In
3657 particular:
3658 .IP 
3659 .IP 
3660 .IP o 
3661 \f(CW"%s"\fP = the filename containing the message\&.
3662 .IP 
3663 .IP o 
3664 \f(CW"%t"\fP = the destination that the message was sent to (probably the server
3665 name)\&.
3666 .IP 
3667 .IP o 
3668 \f(CW"%f"\fP = who the message is from\&.
3669 .IP 
3670 .IP 
3671 You could make this command send mail, or whatever else takes your
3672 fancy\&. Please let us know of any really interesting ideas you have\&.
3673 .IP 
3674 Here\'s a way of sending the messages as mail to root:
3675 .IP 
3676 \f(CWmessage command = /bin/mail -s \'message from %f on %m\' root < %s; rm %s\fP
3677 .IP 
3678 If you don\'t have a message command then the message won\'t be
3679 delivered and Samba will tell the sender there was an
3680 error\&. Unfortunately WfWg totally ignores the error code and carries
3681 on regardless, saying that the message was delivered\&.
3682 .IP 
3683 If you want to silently delete it then try:
3684 .IP 
3685 \f(CW"message command = rm %s"\fP\&.
3686 .IP 
3687 \fBDefault:\fP
3688 \f(CW   no message command\fP
3689 .IP 
3690 \fBExample:\fP
3691 \f(CW        message command = csh -c \'xedit %s;rm %s\' &\fP
3692 .IP 
3693 .IP "\fBmin print space (S)\fP" 
3694 .IP 
3695 This sets the minimum amount of free disk space that must be available
3696 before a user will be able to spool a print job\&. It is specified in
3697 kilobytes\&. The default is 0, which means a user can always spool a print
3698 job\&.
3699 .IP 
3700 See also the \fBprinting\fP parameter\&.
3701 .IP 
3702 \fBDefault:\fP
3703 \f(CW   min print space = 0\fP
3704 .IP 
3705 \fBExample:\fP
3706 \f(CW   min print space = 2000\fP
3707 .IP 
3708 .IP "\fBmin wins ttl (G)\fP" 
3709 .IP 
3710 This option tells \fBnmbd\fP when acting as a WINS
3711 server \fB(wins support = true)\fP what the minimum
3712 \'time to live\' of NetBIOS names that \fBnmbd\fP will
3713 grant will be (in seconds)\&. You should never need to change this
3714 parameter\&.  The default is 6 hours (21600 seconds)\&.
3715 .IP 
3716 \fBDefault:\fP
3717 \f(CW   min wins ttl = 21600\fP
3718 .IP 
3719 .IP "\fBname resolve order (G)\fP" 
3720 .IP 
3721 This option is used by the programs in the Samba suite to determine
3722 what naming services and in what order to resolve host names to IP
3723 addresses\&. The option takes a space separated string of different name
3724 resolution options\&.
3725 .IP 
3726 The options are :"lmhosts", "host", "wins" and "bcast"\&. They cause
3727 names to be resolved as follows :
3728 .IP 
3729 .IP 
3730 .IP o 
3731 \fBlmhosts\fP : Lookup an IP address in the Samba lmhosts file\&.
3732 If the line in lmhosts has no name type attached to the NetBIOS
3733 name (see the \fBlmhosts (5)\fP for details) then
3734 any name type matches for lookup\&.
3735 .IP 
3736 .IP o 
3737 \fBhost\fP : Do a standard host name to IP address resolution,
3738 using the system /etc/hosts, NIS, or DNS lookups\&. This method of name
3739 resolution is operating system depended for instance on IRIX or
3740 Solaris this may be controlled by the \fI/etc/nsswitch\&.conf\fP file)\&.
3741 Note that this method is only used if the NetBIOS name type being
3742 queried is the 0x20 (server) name type, otherwise it is ignored\&.
3743 .IP 
3744 .IP o 
3745 \fBwins\fP : Query a name with the IP address listed in the
3746 \fBwins server\fP parameter\&. If no WINS server has
3747 been specified this method will be ignored\&.
3748 .IP 
3749 .IP o 
3750 \fBbcast\fP : Do a broadcast on each of the known local interfaces
3751 listed in the \fBinterfaces\fP parameter\&. This is the
3752 least reliable of the name resolution methods as it depends on the
3753 target host being on a locally connected subnet\&.
3754 .IP 
3755 .IP 
3756 \fBDefault:\fP
3757 \f(CW   name resolve order = lmhosts host wins bcast\fP
3758 .IP 
3759 \fBExample:\fP
3760 \f(CW   name resolve order = lmhosts bcast host\fP
3761 .IP 
3762 This will cause the local lmhosts file to be examined first, followed
3763 by a broadcast attempt, followed by a normal system hostname lookup\&.
3764 .IP 
3765 .IP "\fBnetbios aliases (G)\fP" 
3766 .IP 
3767 This is a list of NetBIOS names that \fBnmbd\fP will
3768 advertise as additional names by which the Samba server is known\&. This
3769 allows one machine to appear in browse lists under multiple names\&. If
3770 a machine is acting as a \fBbrowse server\fP or
3771 \fBlogon server\fP none of these names will be
3772 advertised as either browse server or logon servers, only the primary
3773 name of the machine will be advertised with these capabilities\&.
3774 .IP 
3775 See also \fB"netbios name"\fP\&.
3776 .IP 
3777 \fBDefault:\fP
3778 \f(CW   empty string (no additional names)\fP
3779 .IP 
3780 \fBExample:\fP
3781 \f(CW   netbios aliases = TEST TEST1 TEST2\fP
3782 .IP 
3783 .IP "\fBnetbios name (G)\fP" 
3784 .IP 
3785 This sets the NetBIOS name by which a Samba server is known\&. By
3786 default it is the same as the first component of the host\'s DNS name\&.
3787 If a machine is a \fBbrowse server\fP or
3788 \fBlogon server\fP this name (or the first component
3789 of the hosts DNS name) will be the name that these services are
3790 advertised under\&.
3791 .IP 
3792 See also \fB"netbios aliases"\fP\&.
3793 .IP 
3794 \fBDefault:\fP
3795 \f(CW   Machine DNS name\&.\fP
3796 .IP 
3797 \fBExample:\fP
3798 \f(CW   netbios name = MYNAME\fP
3799 .IP 
3800 .IP "\fBnis homedir (G)\fP" 
3801 .IP 
3802 Get the home share server from a NIS map\&. For UNIX systems that use an
3803 automounter, the user\'s home directory will often be mounted on a
3804 workstation on demand from a remote server\&. 
3805 .IP 
3806 When the Samba logon server is not the actual home directory server,
3807 but is mounting the home directories via NFS then two network hops
3808 would be required to access the users home directory if the logon
3809 server told the client to use itself as the SMB server for home
3810 directories (one over SMB and one over NFS)\&. This can be very
3811 slow\&.
3812 .IP 
3813 This option allows Samba to return the home share as being on a
3814 different server to the logon server and as long as a Samba daemon is
3815 running on the home directory server, it will be mounted on the Samba
3816 client directly from the directory server\&. When Samba is returning the
3817 home share to the client, it will consult the NIS map specified in
3818 \fB"homedir map"\fP and return the server listed
3819 there\&.
3820 .IP 
3821 Note that for this option to work there must be a working NIS
3822 system and the Samba server with this option must also be a
3823 \fBlogon server\fP\&.
3824 .IP 
3825 \fBDefault:\fP
3826 \f(CW   nis homedir = false\fP
3827 .IP 
3828 \fBExample:\fP
3829 \f(CW   nis homedir = true\fP
3830 .IP 
3831 .IP "\fBnt pipe support (G)\fP" 
3832 .IP 
3833 This boolean parameter controls whether \fBsmbd\fP
3834 will allow Windows NT clients to connect to the NT SMB specific
3835 \f(CWIPC$\fP pipes\&. This is a developer debugging option and can be left
3836 alone\&.
3837 .IP 
3838 \fBDefault:\fP
3839 \f(CW   nt pipe support = yes\fP
3840 .IP 
3841 .IP "\fBnt smb support (G)\fP" 
3842 .IP 
3843 This boolean parameter controls whether \fBsmbd\fP
3844 will negotiate NT specific SMB support with Windows NT
3845 clients\&. Although this is a developer debugging option and should be
3846 left alone, benchmarking has discovered that Windows NT clients give
3847 faster performance with this option set to \f(CW"no"\fP\&. This is still
3848 being investigated\&. If this option is set to \f(CW"no"\fP then Samba
3849 offers exactly the same SMB calls that versions prior to Samba2\&.0
3850 offered\&. This information may be of use if any users are having
3851 problems with NT SMB support\&.
3852 .IP 
3853 \fBDefault:\fP
3854 \f(CW   nt support = yes\fP
3855 .IP 
3856 .IP "\fBnull passwords (G)\fP" 
3857 .IP 
3858 Allow or disallow client access to accounts that have null passwords\&. 
3859 .IP 
3860 See also \fBsmbpasswd (5)\fP\&.
3861 .IP 
3862 \fBDefault:\fP
3863 \f(CW   null passwords = no\fP
3864 .IP 
3865 \fBExample:\fP
3866 \f(CW   null passwords = yes\fP
3867 .IP 
3868 .IP "\fBole locking compatibility (G)\fP" 
3869 .IP 
3870 This parameter allows an administrator to turn off the byte range lock
3871 manipulation that is done within Samba to give compatibility for OLE
3872 applications\&. Windows OLE applications use byte range locking as a
3873 form of inter-process communication, by locking ranges of bytes around
3874 the 2^32 region of a file range\&. This can cause certain UNIX lock
3875 managers to crash or otherwise cause problems\&. Setting this parameter
3876 to \f(CW"no"\fP means you trust your UNIX lock manager to handle such cases
3877 correctly\&.
3878 .IP 
3879 \fBDefault:\fP
3880 \f(CW   ole locking compatibility = yes\fP
3881 .IP 
3882 \fBExample:\fP
3883 \f(CW   ole locking compatibility = no\fP
3884 .IP 
3885 .IP "\fBonly guest (S)\fP" 
3886 .IP 
3887 A synonym for \fB"guest only"\fP\&.
3888 .IP 
3889 .IP "\fBonly user (S)\fP" 
3890 .IP 
3891 This is a boolean option that controls whether connections with
3892 usernames not in the \fBuser=\fP list will be allowed\&. By
3893 default this option is disabled so a client can supply a username to
3894 be used by the server\&.
3895 .IP 
3896 Note that this also means Samba won\'t try to deduce usernames from the
3897 service name\&. This can be annoying for the \fB[homes]\fP
3898 section\&. To get around this you could use "\fBuser\fP =
3899 \fB%S\fP" which means your \fB"user"\fP list
3900 will be just the service name, which for home directories is the name
3901 of the user\&.
3902 .IP 
3903 See also the \fBuser\fP parameter\&.
3904 .IP 
3905 \fBDefault:\fP
3906 \f(CW   only user = False\fP
3907 .IP 
3908 \fBExample:\fP
3909 \f(CW   only user = True\fP
3910 .IP 
3911 .IP "\fBoplocks (S)\fP" 
3912 .IP 
3913 This boolean option tells smbd whether to issue oplocks (opportunistic
3914 locks) to file open requests on this share\&. The oplock code can
3915 dramatically (approx\&. 30% or more) improve the speed of access to files
3916 on Samba servers\&. It allows the clients to aggressively cache files
3917 locally and you may want to disable this option for unreliable network
3918 environments (it is turned on by default in Windows NT Servers)\&.  For
3919 more information see the file Speed\&.txt in the Samba docs/ directory\&.
3920 .IP 
3921 Oplocks may be selectively turned off on certain files on a per share basis\&.
3922 See the \'veto oplock files\' parameter\&. On some systems oplocks are recognized
3923 by the underlying operating system\&. This allows data synchronization between
3924 all access to oplocked files, whether it be via Samba or NFS or a local
3925 UNIX process\&. See the \fBkernel oplocks\fP parameter
3926 for details\&.
3927 .IP 
3928 \fBDefault:\fP
3929 \f(CW   oplocks = True\fP
3930 .IP 
3931 \fBExample:\fP
3932 \f(CW   oplocks = False\fP
3933 .IP 
3934 .IP "\fBos level (G)\fP" 
3935 .IP 
3936 This integer value controls what level Samba advertises itself as for
3937 browse elections\&. The value of this parameter determines whether
3938 \fBnmbd\fP has a chance of becoming a local master
3939 browser for the \fBWORKGROUP\fP in the local broadcast
3940 area\&. The default is zero, which means \fBnmbd\fP will
3941 lose elections to Windows machines\&. See BROWSING\&.txt in the Samba
3942 docs/ directory for details\&.
3943 .IP 
3944 \fBDefault:\fP
3945 \f(CW   os level = 0\fP
3946 .IP 
3947 \fBExample:\fP
3948 \f(CW   os level = 65    ; This will win against any NT Server\fP
3949 .IP 
3950 .IP "\fBpacket size (G)\fP" 
3951 .IP 
3952 This is a deprecated parameter that how no effect on the current
3953 Samba code\&. It is left in the parameter list to prevent breaking
3954 old \fBsmb\&.conf\fP files\&.
3955 .IP 
3956 .IP "\fBpanic action (G)\fP" 
3957 .IP 
3958 This is a Samba developer option that allows a system command to be
3959 called when either \fBsmbd\fP or
3960 \fBnmbd\fP crashes\&. This is usually used to draw
3961 attention to the fact that a problem occurred\&.
3962 .IP 
3963 \fBDefault:\fP
3964 \f(CW   panic action = <empty string>\fP
3965 .IP 
3966 .IP "\fBpasswd chat (G)\fP" 
3967 .IP 
3968 This string controls the \fI"chat"\fP conversation that takes places
3969 between \fBsmbd\fP and the local password changing
3970 program to change the users password\&. The string describes a sequence
3971 of response-receive pairs that \fBsmbd\fP uses to
3972 determine what to send to the \fBpasswd\fP program
3973 and what to expect back\&. If the expected output is not received then
3974 the password is not changed\&.
3975 .IP 
3976 This chat sequence is often quite site specific, depending on what
3977 local methods are used for password control (such as NIS etc)\&.
3978 .IP 
3979 The string can contain the macros \f(CW"%o"\fP and \f(CW"%n"\fP which are
3980 substituted for the old and new passwords respectively\&. It can also
3981 contain the standard macros \f(CW"\en"\fP, \f(CW"\er"\fP, \f(CW"\et"\fP and \f(CW"\es"\fP
3982 to give line-feed, carriage-return, tab and space\&.
3983 .IP 
3984 The string can also contain a \f(CW\'*\'\fP which matches any sequence of
3985 characters\&.
3986 .IP 
3987 Double quotes can be used to collect strings with spaces in them into
3988 a single string\&.
3989 .IP 
3990 If the send string in any part of the chat sequence is a fullstop
3991 \f(CW"\&."\fP  then no string is sent\&. Similarly, is the expect string is a
3992 fullstop then no string is expected\&.
3993 .IP 
3994 Note that if the \fB"unix password sync"\fP
3995 parameter is set to true, then this sequence is called \fI*AS ROOT*\fP
3996 when the SMB password in the smbpasswd file is being changed, without
3997 access to the old password cleartext\&. In this case the old password
3998 cleartext is set to \f(CW""\fP (the empty string)\&.
3999 .IP 
4000 See also \fB"unix password sync"\fP,
4001 \fB"passwd program"\fP and \fB"passwd chat
4002 debug"\fP\&.
4003 .IP 
4004 \fBExample:\fP 
4006 .DS 
4008  passwd chat = "*Enter OLD password*" %o\en "*Enter NEW password*" %n\en "*Reenter NEW password*" %n\en "*Password changed*"
4010 .DE 
4013 .IP 
4014 \fBDefault:\fP
4016 .DS 
4018        passwd chat = *old*password* %o\en *new*password* %n\en *new*password* %n\en *changed*
4019 .DE 
4022 .IP 
4023 .IP "\fBpasswd chat debug (G)\fP" 
4024 .IP 
4025 This boolean specifies if the passwd chat script parameter is run in
4026 \f(CW"debug"\fP mode\&. In this mode the strings passed to and received from
4027 the passwd chat are printed in the \fBsmbd\fP log with
4028 a \fB"debug level"\fP of 100\&. This is a dangerous
4029 option as it will allow plaintext passwords to be seen in the
4030 \fBsmbd\fP log\&. It is available to help Samba admins
4031 debug their \fB"passwd chat"\fP scripts when calling
4032 the \fB"passwd program"\fP and should be turned off
4033 after this has been done\&. This parameter is off by default\&.
4034 .IP 
4035 See also \fB"passwd chat"\fP, \fB"passwd
4036 program"\fP\&.
4037 .IP 
4038 \fBExample:\fP
4039 \f(CW     passwd chat debug = True\fP
4040 .IP 
4041 \fBDefault:\fP
4042 \f(CW     passwd chat debug = False\fP
4043 .IP 
4044 .IP "\fBpasswd program (G)\fP" 
4045 .IP 
4046 The name of a program that can be used to set UNIX user passwords\&.
4047 Any occurrences of \fB%u\fP will be replaced with the
4048 user name\&. The user name is checked for existence before calling the
4049 password changing program\&.
4050 .IP 
4051 Also note that many passwd programs insist in \fI"reasonable"\fP
4052 passwords, such as a minimum length, or the inclusion of mixed case
4053 chars and digits\&. This can pose a problem as some clients (such as
4054 Windows for Workgroups) uppercase the password before sending it\&.
4055 .IP 
4056 \fINote\fP that if the \fB"unix password sync"\fP
4057 parameter is set to \f(CW"True"\fP then this program is called \fI*AS
4058 ROOT*\fP before the SMB password in the
4059 \fBsmbpasswd\fP file is changed\&. If this UNIX
4060 password change fails, then \fBsmbd\fP will fail to
4061 change the SMB password also (this is by design)\&.
4062 .IP 
4063 If the \fB"unix password sync"\fP parameter is
4064 set this parameter \fIMUST USE ABSOLUTE PATHS\fP for \fIALL\fP programs
4065 called, and must be examined for security implications\&. Note that by
4066 default \fB"unix password sync"\fP is set to
4067 \f(CW"False"\fP\&.
4068 .IP 
4069 See also \fB"unix password sync"\fP\&.
4070 .IP 
4071 \fBDefault:\fP
4072 \f(CW   passwd program = /bin/passwd\fP
4073 .IP 
4074 \fBExample:\fP
4075 \f(CW   passwd program = /sbin/passwd %u\fP
4076 .IP 
4077 .IP "\fBpassword level (G)\fP" 
4078 .IP 
4079 Some client/server combinations have difficulty with mixed-case
4080 passwords\&.  One offending client is Windows for Workgroups, which for
4081 some reason forces passwords to upper case when using the LANMAN1
4082 protocol, but leaves them alone when using COREPLUS!
4083 .IP 
4084 This parameter defines the maximum number of characters that may be
4085 upper case in passwords\&.
4086 .IP 
4087 For example, say the password given was \f(CW"FRED"\fP\&. If \fBpassword
4088 level\fP is set to 1, the following combinations would be tried if
4089 \f(CW"FRED"\fP failed:
4090 .IP 
4091 \f(CW"Fred"\fP, \f(CW"fred"\fP, \f(CW"fRed"\fP, \f(CW"frEd"\fP, \f(CW"freD"\fP
4092 .IP 
4093 If \fBpassword level\fP was set to 2, the following combinations would
4094 also be tried: 
4095 .IP 
4096 \f(CW"FRed"\fP, \f(CW"FrEd"\fP, \f(CW"FreD"\fP, \f(CW"fREd"\fP, \f(CW"fReD"\fP,
4097 \f(CW"frED"\fP, \f(CW\&.\&.\fP
4098 .IP 
4099 And so on\&.
4100 .IP 
4101 The higher value this parameter is set to the more likely it is that a
4102 mixed case password will be matched against a single case
4103 password\&. However, you should be aware that use of this parameter
4104 reduces security and increases the time taken to process a new
4105 connection\&.
4106 .IP 
4107 A value of zero will cause only two attempts to be made - the password
4108 as is and the password in all-lower case\&.
4109 .IP 
4110 \fBDefault:\fP
4111 \f(CW   password level = 0\fP
4112 .IP 
4113 \fBExample:\fP
4114 \f(CW   password level = 4\fP
4115 .IP 
4116 .IP "\fBpassword server (G)\fP" 
4117 .IP 
4118 By specifying the name of another SMB server (such as a WinNT box)
4119 with this option, and using \fB"security = domain"\fP or
4120 \fB"security = server"\fP you can get Samba to do all
4121 its username/password validation via a remote server\&.
4122 .IP 
4123 This options sets the name of the password server to use\&. It must be a
4124 NetBIOS name, so if the machine\'s NetBIOS name is different from its
4125 internet name then you may have to add its NetBIOS name to the lmhosts 
4126 file which is stored in the same directory as the \fBsmb\&.conf\fP file\&.
4127 .IP 
4128 The name of the password server is looked up using the parameter
4129 \fB"name resolve order="\fP and so may resolved
4130 by any method and order described in that parameter\&.
4131 .IP 
4132 The password server much be a machine capable of using the "LM1\&.2X002"
4133 or the "LM NT 0\&.12" protocol, and it must be in user level security
4134 mode\&. 
4135 .IP 
4136 NOTE: Using a password server means your UNIX box (running Samba) is
4137 only as secure as your password server\&. \fIDO NOT CHOOSE A PASSWORD
4138 SERVER THAT YOU DON\'T COMPLETELY TRUST\fP\&.
4139 .IP 
4140 Never point a Samba server at itself for password serving\&. This will
4141 cause a loop and could lock up your Samba server!
4142 .IP 
4143 The name of the password server takes the standard substitutions, but
4144 probably the only useful one is \fB%m\fP, which means
4145 the Samba server will use the incoming client as the password
4146 server\&. If you use this then you better trust your clients, and you
4147 better restrict them with hosts allow!
4148 .IP 
4149 If the \fB"security"\fP parameter is set to
4150 \fB"domain"\fP, then the list of machines in this option must be a list
4151 of Primary or Backup Domain controllers for the
4152 \fBDomain\fP, as the Samba server is cryptographicly
4153 in that domain, and will use cryptographicly authenticated RPC calls
4154 to authenticate the user logging on\&. The advantage of using
4155 \fB"security=domain"\fP is that if you list
4156 several hosts in the \fB"password server"\fP option then
4157 \fBsmbd\fP will try each in turn till it finds one
4158 that responds\&. This is useful in case your primary server goes down\&.
4159 .IP 
4160 If the \fB"security"\fP parameter is set to
4161 \fB"server"\fP, then there are different
4162 restrictions that \fB"security=domain"\fP
4163 doesn\'t suffer from:
4164 .IP 
4165 .IP 
4166 .IP o 
4167 You may list several password servers in the \fB"password server"\fP
4168 parameter, however if an \fBsmbd\fP makes a connection
4169 to a password server, and then the password server fails, no more
4170 users will be able to be authenticated from this
4171 \fBsmbd\fP\&.  This is a restriction of the SMB/CIFS
4172 protocol when in \fB"security=server"\fP mode
4173 and cannot be fixed in Samba\&.
4174 .IP 
4175 .IP o 
4176 If you are using a Windows NT server as your password server then
4177 you will have to ensure that your users are able to login from the
4178 Samba server, as when in
4179 \fB"security=server"\fP mode the network
4180 logon will appear to come from there rather than from the users
4181 workstation\&.
4182 .IP 
4183 .IP 
4184 See also the \fB"security"\fP parameter\&.
4185 .IP 
4186 \fBDefault:\fP
4187 \f(CW   password server = <empty string>\fP
4188 .IP 
4189 \fBExample:\fP
4190 \f(CW   password server = NT-PDC, NT-BDC1, NT-BDC2\fP
4191 .IP 
4192 .IP "\fBpath (S)\fP" 
4193 .IP 
4194 This parameter specifies a directory to which the user of the service
4195 is to be given access\&. In the case of printable services, this is
4196 where print data will spool prior to being submitted to the host for
4197 printing\&.
4198 .IP 
4199 For a printable service offering guest access, the service should be
4200 readonly and the path should be world-writeable and have the sticky bit
4201 set\&. This is not mandatory of course, but you probably won\'t get the
4202 results you expect if you do otherwise\&.
4203 .IP 
4204 Any occurrences of \fB%u\fP in the path will be replaced
4205 with the UNIX username that the client is using on this
4206 connection\&. Any occurrences of \fB%m\fP will be replaced
4207 by the NetBIOS name of the machine they are connecting from\&. These
4208 replacements are very useful for setting up pseudo home directories
4209 for users\&.
4210 .IP 
4211 Note that this path will be based on \fB"root dir"\fP if
4212 one was specified\&.
4213 .IP 
4214 \fBDefault:\fP
4215 \f(CW   none\fP
4216 .IP 
4217 \fBExample:\fP
4218 \f(CW   path = /home/fred\fP
4219 .IP 
4220 .IP "\fBpostexec (S)\fP" 
4221 .IP 
4222 This option specifies a command to be run whenever the service is
4223 disconnected\&. It takes the usual substitutions\&. The command may be run
4224 as the root on some systems\&.
4225 .IP 
4226 An interesting example may be do unmount server resources:
4227 .IP 
4228 \f(CWpostexec = /etc/umount /cdrom\fP
4229 .IP 
4230 See also \fBpreexec\fP\&.
4231 .IP 
4232 \fBDefault:\fP
4233 \f(CW      none (no command executed)\fP
4234 .IP 
4235 \fBExample:\fP
4236 \f(CW      postexec = echo "%u disconnected from %S from %m (%I)" >> /tmp/log\fP
4237 .IP 
4238 .IP "\fBpostscript (S)\fP" 
4239 .IP 
4240 This parameter forces a printer to interpret the print files as
4241 postscript\&. This is done by adding a \f(CW%!\fP to the start of print output\&.
4242 .IP 
4243 This is most useful when you have lots of PCs that persist in putting
4244 a control-D at the start of print jobs, which then confuses your
4245 printer\&.
4246 .IP 
4247 \fBDefault:\fP
4248 \f(CW   postscript = False\fP
4249 .IP 
4250 \fBExample:\fP
4251 \f(CW   postscript = True\fP
4252 .IP 
4253 .IP "\fBpreexec (S)\fP" 
4254 .IP 
4255 This option specifies a command to be run whenever the service is
4256 connected to\&. It takes the usual substitutions\&.
4257 .IP 
4258 An interesting example is to send the users a welcome message every
4259 time they log in\&. Maybe a message of the day? Here is an example:
4260 .IP 
4262 .DS 
4265         preexec = csh -c \'echo \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient -M %m -I %I\' &
4267 .DE 
4270 .IP 
4271 Of course, this could get annoying after a while :-)
4272 .IP 
4273 See also \fBpostexec\fP\&.
4274 .IP 
4275 \fBDefault:\fP
4276 \f(CW   none (no command executed)\fP
4277 .IP 
4278 \fBExample:\fP
4279 \f(CW        preexec = echo \e"%u connected to %S from %m (%I)\e" >> /tmp/log\fP
4280 .IP 
4281 .IP "\fBpreferred master (G)\fP" 
4282 .IP 
4283 This boolean parameter controls if \fBnmbd\fP is a
4284 preferred master browser for its workgroup\&.
4285 .IP 
4286 If this is set to true, on startup, \fBnmbd\fP will
4287 force an election, and it will have a slight advantage in winning the
4288 election\&.  It is recommended that this parameter is used in
4289 conjunction with \fB"domain master = yes"\fP, so
4290 that \fBnmbd\fP can guarantee becoming a domain
4291 master\&.
4292 .IP 
4293 Use this option with caution, because if there are several hosts
4294 (whether Samba servers, Windows 95 or NT) that are preferred master
4295 browsers on the same subnet, they will each periodically and
4296 continuously attempt to become the local master browser\&.  This will
4297 result in unnecessary broadcast traffic and reduced browsing
4298 capabilities\&.
4299 .IP 
4300 See also \fBos level\fP\&.
4301 .IP 
4302 \fBDefault:\fP
4303 \f(CW   preferred master = no\fP
4304 .IP 
4305 \fBExample:\fP
4306 \f(CW   preferred master = yes\fP
4307 .IP 
4308 .IP "\fBprefered master (G)\fP" 
4309 .IP 
4310 Synonym for \fB"preferred master"\fP for people
4311 who cannot spell :-)\&.
4312 .IP 
4313 .IP "\fBpreload\fP" 
4314 Synonym for \fB"auto services"\fP\&.
4315 .IP 
4316 .IP "\fBpreserve case (S)\fP" 
4317 .IP 
4318 This controls if new filenames are created with the case that the
4319 client passes, or if they are forced to be the \f(CW"default"\fP case\&.
4320 .IP 
4321 \fBDefault:\fP
4322 \f(CW       preserve case = yes\fP
4323 .IP 
4324 See the section on \fB"NAME MANGLING"\fP for a
4325 fuller discussion\&.
4326 .IP 
4327 .IP "\fBprint command (S)\fP" 
4328 .IP 
4329 After a print job has finished spooling to a service, this command
4330 will be used via a \f(CWsystem()\fP call to process the spool
4331 file\&. Typically the command specified will submit the spool file to
4332 the host\'s printing subsystem, but there is no requirement that this
4333 be the case\&. The server will not remove the spool file, so whatever
4334 command you specify should remove the spool file when it has been
4335 processed, otherwise you will need to manually remove old spool files\&.
4336 .IP 
4337 The print command is simply a text string\&. It will be used verbatim,
4338 with two exceptions: All occurrences of \f(CW"%s"\fP will be replaced by
4339 the appropriate spool file name, and all occurrences of \f(CW"%p"\fP will
4340 be replaced by the appropriate printer name\&. The spool file name is
4341 generated automatically by the server, the printer name is discussed
4342 below\&.
4343 .IP 
4344 The full path name will be used for the filename if \f(CW"%s"\fP is not
4345 preceded by a \f(CW\'/\'\fP\&. If you don\'t like this (it can stuff up some
4346 lpq output) then use \f(CW"%f"\fP instead\&. Any occurrences of \f(CW"%f"\fP get
4347 replaced by the spool filename without the full path at the front\&.
4348 .IP 
4349 The print command \fIMUST\fP contain at least one occurrence of \f(CW"%s"\fP
4350 or \f(CW"%f"\fP - the \f(CW"%p"\fP is optional\&. At the time a job is
4351 submitted, if no printer name is supplied the \f(CW"%p"\fP will be
4352 silently removed from the printer command\&.
4353 .IP 
4354 If specified in the \fB"[global]"\fP section, the print
4355 command given will be used for any printable service that does not
4356 have its own print command specified\&.
4357 .IP 
4358 If there is neither a specified print command for a printable service
4359 nor a global print command, spool files will be created but not
4360 processed and (most importantly) not removed\&.
4361 .IP 
4362 Note that printing may fail on some UNIXs from the \f(CW"nobody"\fP
4363 account\&. If this happens then create an alternative guest account that
4364 can print and set the \fB"guest account"\fP in the
4365 \fB"[global]"\fP section\&.
4366 .IP 
4367 You can form quite complex print commands by realizing that they are
4368 just passed to a shell\&. For example the following will log a print
4369 job, print the file, then remove it\&. Note that \f(CW\';\'\fP is the usual
4370 separator for command in shell scripts\&.
4371 .IP 
4372 \f(CWprint command = echo Printing %s >> /tmp/print\&.log; lpr -P %p %s; rm %s\fP
4373 .IP 
4374 You may have to vary this command considerably depending on how you
4375 normally print files on your system\&. The default for the parameter
4376 varies depending on the setting of the \fB"printing="\fP
4377 parameter\&.
4378 .IP 
4379 \fBDefault:\fP
4380 For \fB"printing="\fP BSD, AIX, QNX, LPRNG or PLP :
4381 \f(CW   print command = lpr -r -P%p %s\fP
4382 .IP 
4383 For \fB"printing="\fP SYS or HPUX :
4384 \f(CW   print command = lp -c -d%p %s; rm %s\fP
4385 .IP 
4386 For \fB"printing="\fP SOFTQ :
4387 \f(CW   print command = lp -d%p -s %s; rm %s\fP
4388 .IP 
4389 \fBExample:\fP
4390 \f(CW   print command = /usr/local/samba/bin/myprintscript %p %s\fP
4391 .IP 
4392 .IP "\fBprint ok (S)\fP" 
4393 .IP 
4394 Synonym for \fBprintable\fP\&.
4395 .IP 
4396 .IP "\fBprintable (S)\fP" 
4397 .IP 
4398 If this parameter is \f(CW"yes"\fP, then clients may open, write to and
4399 submit spool files on the directory specified for the service\&.
4400 .IP 
4401 Note that a printable service will ALWAYS allow writing to the service
4402 path (user privileges permitting) via the spooling of print data\&. The
4403 \fB"read only"\fP parameter controls only non-printing
4404 access to the resource\&.
4405 .IP 
4406 \fBDefault:\fP
4407 \f(CW   printable = no\fP
4408 .IP 
4409 \fBExample:\fP
4410 \f(CW   printable = yes\fP
4411 .IP 
4412 .IP "\fBprintcap (G)\fP" 
4413 .IP 
4414 Synonym for \fBprintcapname\fP\&.
4415 .IP 
4416 .IP "\fBprintcap name (G)\fP" 
4417 .IP 
4418 This parameter may be used to override the compiled-in default
4419 printcap name used by the server (usually /etc/printcap)\&. See the
4420 discussion of the \fB[printers]\fP section above for
4421 reasons why you might want to do this\&.
4422 .IP 
4423 On System V systems that use \fBlpstat\fP to list available printers you
4424 can use \f(CW"printcap name = lpstat"\fP to automatically obtain lists of
4425 available printers\&. This is the default for systems that define SYSV
4426 at configure time in Samba (this includes most System V based
4427 systems)\&. If \fB"printcap name"\fP is set to \fBlpstat\fP on these systems
4428 then Samba will launch \f(CW"lpstat -v"\fP and attempt to parse the output
4429 to obtain a printer list\&.
4430 .IP 
4431 A minimal printcap file would look something like this:
4432 .IP 
4434 .DS 
4437         print1|My Printer 1
4438         print2|My Printer 2
4439         print3|My Printer 3
4440         print4|My Printer 4
4441         print5|My Printer 5
4443 .DE 
4446 .IP 
4447 where the \f(CW\'|\'\fP separates aliases of a printer\&. The fact that the
4448 second alias has a space in it gives a hint to Samba that it\'s a
4449 comment\&.
4450 .IP 
4451 \fINOTE\fP: Under AIX the default printcap name is
4452 \f(CW"/etc/qconfig"\fP\&. Samba will assume the file is in AIX \f(CW"qconfig"\fP
4453 format if the string \f(CW"/qconfig"\fP appears in the printcap filename\&.
4454 .IP 
4455 \fBDefault:\fP
4456 \f(CW   printcap name = /etc/printcap\fP
4457 .IP 
4458 \fBExample:\fP
4459 \f(CW   printcap name = /etc/myprintcap\fP
4460 .IP 
4461 .IP "\fBprinter (S)\fP" 
4462 .IP 
4463 This parameter specifies the name of the printer to which print jobs
4464 spooled through a printable service will be sent\&.
4465 .IP 
4466 If specified in the \fB[global]\fP section, the printer
4467 name given will be used for any printable service that does not have
4468 its own printer name specified\&.
4469 .IP 
4470 \fBDefault:\fP
4471 none (but may be \f(CW"lp"\fP on many systems)
4472 .IP 
4473 \fBExample:\fP
4474 printer name = laserwriter
4475 .IP 
4476 .IP "\fBprinter driver (S)\fP" 
4477 .IP 
4478 This option allows you to control the string that clients receive when
4479 they ask the server for the printer driver associated with a
4480 printer\&. If you are using Windows95 or WindowsNT then you can use this
4481 to automate the setup of printers on your system\&.
4482 .IP 
4483 You need to set this parameter to the exact string (case sensitive)
4484 that describes the appropriate printer driver for your system\&. If you
4485 don\'t know the exact string to use then you should first try with no
4486 \fB"printer driver"\fP option set and the client will give you a list of
4487 printer drivers\&. The appropriate strings are shown in a scrollbox
4488 after you have chosen the printer manufacturer\&.
4489 .IP 
4490 See also \fB"printer driver file"\fP\&.
4491 .IP 
4492 \fBExample:\fP
4493 printer driver = HP LaserJet 4L
4494 .IP 
4495 .IP "\fBprinter driver file (G)\fP" 
4496 .IP 
4497 This parameter tells Samba where the printer driver definition file,
4498 used when serving drivers to Windows 95 clients, is to be found\&. If
4499 this is not set, the default is :
4500 .IP 
4501 \f(CWSAMBA_INSTALL_DIRECTORY/lib/printers\&.def\fP
4502 .IP 
4503 This file is created from Windows 95 \f(CW"msprint\&.def"\fP files found on
4504 the Windows 95 client system\&. For more details on setting up serving
4505 of printer drivers to Windows 95 clients, see the documentation file
4506 in the docs/ directory, PRINTER_DRIVER\&.txt\&.
4507 .IP 
4508 \fBDefault:\fP
4509 \f(CW   None (set in compile)\&.\fP
4510 .IP 
4511 \fBExample:\fP
4512 \f(CW   printer driver file = /usr/local/samba/printers/drivers\&.def\fP
4513 .IP 
4514 See also \fB"printer driver location"\fP\&.
4515 .IP 
4516 .IP "\fBprinter driver location (S)\fP" 
4517 .IP 
4518 This parameter tells clients of a particular printer share where to
4519 find the printer driver files for the automatic installation of
4520 drivers for Windows 95 machines\&. If Samba is set up to serve printer
4521 drivers to Windows 95 machines, this should be set to
4522 .IP 
4523 \f(CW\e\eMACHINE\eaPRINTER$\fP
4524 .IP 
4525 Where MACHINE is the NetBIOS name of your Samba server, and PRINTER$
4526 is a share you set up for serving printer driver files\&. For more
4527 details on setting this up see the documentation file in the docs/
4528 directory, PRINTER_DRIVER\&.txt\&.
4529 .IP 
4530 \fBDefault:\fP
4531 \f(CW   None\fP
4532 .IP 
4533 \fBExample:\fP
4534 \f(CW   printer driver location = \e\eMACHINE\ePRINTER$\fP
4535 .IP 
4536 See also \fB"printer driver file"\fP\&.
4537 .IP 
4538 .IP "\fBprinter name (S)\fP" 
4539 .IP 
4540 Synonym for \fBprinter\fP\&.
4541 .IP 
4542 .IP "\fBprinting (S)\fP" 
4543 .IP 
4544 This parameters controls how printer status information is interpreted
4545 on your system, and also affects the default values for the
4546 \fB"print command"\fP, \fB"lpq
4547 command"\fP \fB"lppause command"\fP,
4548 \fB"lpresume command"\fP, and \fB"lprm
4549 command"\fP\&.
4550 .IP 
4551 Currently eight printing styles are supported\&. They are
4552 \fB"printing=BSD"\fP, \fB"printing=AIX"\fP, \fB"printing=LPRNG"\fP,
4553 \fB"printing=PLP"\fP,
4554 \fB"printing=SYSV"\fP,\fB"printing="HPUX"\fP,\fB"printing=QNX"\fP and
4555 \fB"printing=SOFTQ"\fP\&.
4556 .IP 
4557 To see what the defaults are for the other print commands when using
4558 these three options use the \fB"testparm"\fP program\&.
4559 .IP 
4560 This option can be set on a per printer basis
4561 .IP 
4562 See also the discussion in the \fB[printers]\fP section\&.
4563 .IP 
4564 .IP "\fBprotocol (G)\fP" 
4565 .IP 
4566 The value of the parameter (a string) is the highest protocol level
4567 that will be supported by the server\&.
4568 .IP 
4569 Possible values are :
4570 .IP 
4571 .IP 
4572 .IP o 
4573 CORE: Earliest version\&. No concept of user names\&.
4574 .IP 
4575 .IP o 
4576 COREPLUS: Slight improvements on CORE for efficiency\&.
4577 .IP 
4578 .IP o 
4579 LANMAN1: First \fI"modern"\fP version of the protocol\&. Long
4580 filename support\&.
4581 .IP 
4582 .IP o 
4583 LANMAN2: Updates to Lanman1 protocol\&.
4584 .IP 
4585 .IP o 
4586 NT1: Current up to date version of the protocol\&. Used by Windows
4587 NT\&. Known as CIFS\&.
4588 .IP 
4589 .IP 
4590 Normally this option should not be set as the automatic negotiation
4591 phase in the SMB protocol takes care of choosing the appropriate
4592 protocol\&.
4593 .IP 
4594 \fBDefault:\fP
4595 \f(CW   protocol = NT1\fP
4596 .IP 
4597 \fBExample:\fP
4598 \f(CW   protocol = LANMAN1\fP
4599 .IP 
4600 .IP "\fBpublic (S)\fP" 
4601 .IP 
4602 Synonym for \fB"guest ok"\fP\&.
4603 .IP 
4604 .IP "\fBqueuepause command (S)\fP" 
4605 .IP 
4606 This parameter specifies the command to be executed on the server host
4607 in order to pause the printerqueue\&.
4608 .IP 
4609 This command should be a program or script which takes a printer name
4610 as its only parameter and stops the printerqueue, such that no longer
4611 jobs are submitted to the printer\&.
4612 .IP 
4613 This command is not supported by Windows for Workgroups, but can be
4614 issued from the Printer\'s window under Windows 95 & NT\&.
4615 .IP 
4616 If a \f(CW"%p"\fP is given then the printername is put in its
4617 place\&. Otherwise it is placed at the end of the command\&.
4618 .IP 
4619 Note that it is good practice to include the absolute path in the
4620 command as the PATH may not be available to the server\&.
4621 .IP 
4622 \fBDefault:\fP
4623 \f(CW        depends on the setting of "printing ="\fP
4624 .IP 
4625 \fBExample:\fP
4626 \f(CW      queuepause command = disable %p\fP
4627 .IP 
4628 .IP "\fBqueueresume command (S)\fP" 
4629 .IP 
4630 This parameter specifies the command to be executed on the server host
4631 in order to resume the printerqueue\&. It is the command to undo the
4632 behavior that is caused by the previous parameter
4633 (\fB"queuepause command\fP)\&.
4634 .IP 
4635 This command should be a program or script which takes a printer name
4636 as its only parameter and resumes the printerqueue, such that queued
4637 jobs are resubmitted to the printer\&.
4638 .IP 
4639 This command is not supported by Windows for Workgroups, but can be
4640 issued from the Printer\'s window under Windows 95 & NT\&.
4641 .IP 
4642 If a \f(CW"%p"\fP is given then the printername is put in its
4643 place\&. Otherwise it is placed at the end of the command\&.
4644 .IP 
4645 Note that it is good practice to include the absolute path in the
4646 command as the PATH may not be available to the server\&.
4647 .IP 
4648 \fBDefault:\fP
4649 \f(CW        depends on the setting of "printing ="\fP
4650 .IP 
4651 \fBExample:\fP
4652 \f(CW      queuepause command = enable %p\fP
4653 .IP 
4654 .IP "\fBread bmpx (G)\fP" 
4655 .IP 
4656 This boolean parameter controls whether \fBsmbd\fP
4657 will support the "Read Block Multiplex" SMB\&. This is now rarely used
4658 and defaults to off\&. You should never need to set this parameter\&.
4659 .IP 
4660 \fBDefault:\fP
4661 read bmpx = No
4662 .IP 
4663 .IP "\fBread list (S)\fP" 
4664 .IP 
4665 This is a list of users that are given read-only access to a
4666 service\&. If the connecting user is in this list then they will not be
4667 given write access, no matter what the \fB"read only"\fP
4668 option is set to\&. The list can include group names using the syntax
4669 described in the \fB"invalid users"\fP parameter\&.
4670 .IP 
4671 See also the \fB"write list"\fP parameter and
4672 the \fB"invalid users"\fP parameter\&.
4673 .IP 
4674 \fBDefault:\fP
4675 \f(CW   read list = <empty string>\fP
4676 .IP 
4677 \fBExample:\fP
4678 \f(CW   read list = mary, @students\fP
4679 .IP 
4680 .IP "\fBread only (S)\fP" 
4681 .IP 
4682 Note that this is an inverted synonym for
4683 \fB"writeable"\fP and \fB"write ok"\fP\&.
4684 .IP 
4685 See also \fB"writeable"\fP and \fB"write
4686 ok"\fP\&.
4687 .IP 
4688 .IP "\fBread prediction (G)\fP" 
4689 .IP 
4690 \fINOTE\fP: This code is currently disabled in Samba2\&.0 and
4691 may be removed at a later date\&. Hence this parameter has
4692 no effect\&.
4693 .IP 
4694 This options enables or disables the read prediction code used to
4695 speed up reads from the server\&. When enabled the server will try to
4696 pre-read data from the last accessed file that was opened read-only
4697 while waiting for packets\&.
4698 .IP 
4699 \fBDefault:\fP
4700 \f(CW   read prediction = False\fP
4701 .IP 
4702 .IP "\fBread raw (G)\fP" 
4703 .IP 
4704 This parameter controls whether or not the server will support the raw
4705 read SMB requests when transferring data to clients\&.
4706 .IP 
4707 If enabled, raw reads allow reads of 65535 bytes in one packet\&. This
4708 typically provides a major performance benefit\&.
4709 .IP 
4710 However, some clients either negotiate the allowable block size
4711 incorrectly or are incapable of supporting larger block sizes, and for
4712 these clients you may need to disable raw reads\&.
4713 .IP 
4714 In general this parameter should be viewed as a system tuning tool and left
4715 severely alone\&. See also \fB"write raw"\fP\&.
4716 .IP 
4717 \fBDefault:\fP
4718 \f(CW   read raw = yes\fP
4719 .IP 
4720 .IP "\fBread size (G)\fP" 
4721 .IP 
4722 The option \fB"read size"\fP affects the overlap of disk reads/writes
4723 with network reads/writes\&. If the amount of data being transferred in
4724 several of the SMB commands (currently SMBwrite, SMBwriteX and
4725 SMBreadbraw) is larger than this value then the server begins writing
4726 the data before it has received the whole packet from the network, or
4727 in the case of SMBreadbraw, it begins writing to the network before
4728 all the data has been read from disk\&.
4729 .IP 
4730 This overlapping works best when the speeds of disk and network access
4731 are similar, having very little effect when the speed of one is much
4732 greater than the other\&.
4733 .IP 
4734 The default value is 2048, but very little experimentation has been
4735 done yet to determine the optimal value, and it is likely that the
4736 best value will vary greatly between systems anyway\&. A value over
4737 65536 is pointless and will cause you to allocate memory
4738 unnecessarily\&.
4739 .IP 
4740 \fBDefault:\fP
4741 \f(CW   read size = 2048\fP
4742 .IP 
4743 \fBExample:\fP
4744 \f(CW   read size = 8192\fP
4745 .IP 
4746 .IP "\fBremote announce (G)\fP" 
4747 .IP 
4748 This option allows you to setup \fBnmbd\fP to
4749 periodically announce itself to arbitrary IP addresses with an
4750 arbitrary workgroup name\&.
4751 .IP 
4752 This is useful if you want your Samba server to appear in a remote
4753 workgroup for which the normal browse propagation rules don\'t
4754 work\&. The remote workgroup can be anywhere that you can send IP
4755 packets to\&.
4756 .IP 
4757 For example:
4758 .IP 
4759 \f(CW   remote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\fP
4760 .IP 
4761 the above line would cause nmbd to announce itself to the two given IP
4762 addresses using the given workgroup names\&. If you leave out the
4763 workgroup name then the one given in the
4764 \fB"workgroup"\fP parameter is used instead\&.
4765 .IP 
4766 The IP addresses you choose would normally be the broadcast addresses
4767 of the remote networks, but can also be the IP addresses of known
4768 browse masters if your network config is that stable\&.
4769 .IP 
4770 See the documentation file BROWSING\&.txt in the docs/ directory\&.
4771 .IP 
4772 \fBDefault:\fP
4773 \f(CW   remote announce = <empty string>\fP
4774 .IP 
4775 \fBExample:\fP
4776 \f(CW   remote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\fP
4777 .IP 
4778 .IP "\fBremote browse sync (G)\fP" 
4779 .IP 
4780 This option allows you to setup \fBnmbd\fP to
4781 periodically request synchronization of browse lists with the master
4782 browser of a samba server that is on a remote segment\&. This option
4783 will allow you to gain browse lists for multiple workgroups across
4784 routed networks\&. This is done in a manner that does not work with any
4785 non-samba servers\&.
4786 .IP 
4787 This is useful if you want your Samba server and all local clients to
4788 appear in a remote workgroup for which the normal browse propagation
4789 rules don\'t work\&. The remote workgroup can be anywhere that you can
4790 send IP packets to\&.
4791 .IP 
4792 For example:
4793 .IP 
4794 \f(CW   remote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fP
4795 .IP 
4796 the above line would cause \fBnmbd\fP to request the
4797 master browser on the specified subnets or addresses to synchronize
4798 their browse lists with the local server\&.
4799 .IP 
4800 The IP addresses you choose would normally be the broadcast addresses
4801 of the remote networks, but can also be the IP addresses of known
4802 browse masters if your network config is that stable\&. If a machine IP
4803 address is given Samba makes NO attempt to validate that the remote
4804 machine is available, is listening, nor that it is in fact the browse
4805 master on it\'s segment\&.
4806 .IP 
4807 \fBDefault:\fP
4808 \f(CW   remote browse sync = <empty string>\fP
4809 .IP 
4810 \fBExample:\fP
4811 \f(CW   remote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fP
4812 .IP 
4813 .IP "\fBrevalidate (S)\fP" 
4814 .IP 
4815 Note that this option only works with
4816 \fB"security=share"\fP and will be ignored if
4817 this is not the case\&.
4818 .IP 
4819 This option controls whether Samba will allow a previously validated
4820 username/password pair to be used to attach to a share\&. Thus if you
4821 connect to \f(CW\e\eserver\eshare1\fP then to \f(CW\e\eserver\eshare2\fP it won\'t
4822 automatically allow the client to request connection to the second
4823 share as the same username as the first without a password\&.
4824 .IP 
4825 If \fB"revalidate"\fP is \f(CW"True"\fP then the client will be denied
4826 automatic access as the same username\&.
4827 .IP 
4828 \fBDefault:\fP
4829 \f(CW   revalidate = False\fP
4830 .IP 
4831 \fBExample:\fP
4832 \f(CW   revalidate = True\fP
4833 .IP 
4834 .IP "\fBroot (G)\fP" 
4835 .IP 
4836 Synonym for \fB"root directory"\fP\&.
4837 .IP 
4838 .IP "\fBroot dir (G)\fP" 
4839 .IP 
4840 Synonym for \fB"root directory"\fP\&.
4841 .IP 
4842 .IP "\fBroot directory (G)\fP" 
4843 .IP 
4844 The server will \f(CW"chroot()"\fP (i\&.e\&. Change it\'s root directory) to
4845 this directory on startup\&. This is not strictly necessary for secure
4846 operation\&. Even without it the server will deny access to files not in
4847 one of the service entries\&. It may also check for, and deny access to,
4848 soft links to other parts of the filesystem, or attempts to use
4849 \f(CW"\&.\&."\fP in file names to access other directories (depending on the
4850 setting of the \fB"wide links"\fP parameter)\&.
4851 .IP 
4852 Adding a \fB"root directory"\fP entry other than \f(CW"/"\fP adds an extra
4853 level of security, but at a price\&. It absolutely ensures that no
4854 access is given to files not in the sub-tree specified in the \fB"root
4855 directory"\fP option, \fI*including*\fP some files needed for complete
4856 operation of the server\&. To maintain full operability of the server
4857 you will need to mirror some system files into the \fB"root
4858 directory"\fP tree\&. In particular you will need to mirror /etc/passwd
4859 (or a subset of it), and any binaries or configuration files needed
4860 for printing (if required)\&. The set of files that must be mirrored is
4861 operating system dependent\&.
4862 .IP 
4863 \fBDefault:\fP
4864 \f(CW   root directory = /\fP
4865 .IP 
4866 \fBExample:\fP
4867 \f(CW   root directory = /homes/smb\fP
4868 .IP 
4869 .IP "\fBroot postexec (S)\fP" 
4870 .IP 
4871 This is the same as the \fB"postexec"\fP parameter
4872 except that the command is run as root\&. This is useful for unmounting
4873 filesystems (such as cdroms) after a connection is closed\&.
4874 .IP 
4875 See also \fB"postexec"\fP\&.
4876 .IP 
4877 .IP "\fBroot preexec (S)\fP" 
4878 .IP 
4879 This is the same as the \fB"preexec"\fP parameter except
4880 that the command is run as root\&. This is useful for mounting
4881 filesystems (such as cdroms) before a connection is finalized\&.
4882 .IP 
4883 See also \fB"preexec"\fP\&.
4884 .IP 
4885 .IP "\fBsecurity (G)\fP" 
4886 .IP 
4887 This option affects how clients respond to Samba and is one of the most
4888 important settings in the \fBsmb\&.conf\fP file\&.
4889 .IP 
4890 The option sets the \f(CW"security mode bit"\fP in replies to protocol
4891 negotiations with \fBsmbd\fP to turn share level
4892 security on or off\&. Clients decide based on this bit whether (and how)
4893 to transfer user and password information to the server\&.
4894 .IP 
4895 The default is "security=user", as this is
4896 the most common setting needed when talking to Windows 98 and Windows
4897 NT\&.
4898 .IP 
4899 The alternatives are \fB"security = share"\fP,
4900 \fB"security = server"\fP or
4901 \fB"security=domain"\fP\&.
4902 .IP 
4903 \fI*****NOTE THAT THIS DEFAULT IS DIFFERENT IN SAMBA2\&.0 THAN FOR
4904 PREVIOUS VERSIONS OF SAMBA *******\fP\&.
4905 .IP 
4906 In previous versions of Samba the default was
4907 \fB"security=share"\fP mainly because that was
4908 the only option at one stage\&.
4909 .IP 
4910 There is a bug in WfWg that has relevance to this setting\&. When in
4911 user or server level security a WfWg client will totally ignore the
4912 password you type in the "connect drive" dialog box\&. This makes it
4913 very difficult (if not impossible) to connect to a Samba service as
4914 anyone except the user that you are logged into WfWg as\&.
4915 .IP 
4916 If your PCs use usernames that are the same as their usernames on the
4917 UNIX machine then you will want to use \fB"security = user"\fP\&. If you
4918 mostly use usernames that don\'t exist on the UNIX box then use
4919 \fB"security = share"\fP\&.
4920 .IP 
4921 You should also use \fBsecurity=share\fP if
4922 you want to mainly setup shares without a password (guest
4923 shares)\&. This is commonly used for a shared printer server\&. It is more
4924 difficult to setup guest shares with
4925 \fBsecurity=user\fP, see the \fB"map to
4926 guest"\fPparameter for details\&.
4927 .IP 
4928 It is possible to use \fBsmbd\fP in a \fI"hybrid
4929 mode"\fP where it is offers both user and share level security under
4930 different \fBNetBIOS aliases\fP\&. See the
4931 \fBNetBIOS aliases\fP and the
4932 \fBinclude\fP parameters for more information\&.
4933 .IP 
4934 The different settings will now be explained\&.
4935 .IP 
4936 .IP 
4937 .IP "\fB"security=share"\fP" 
4938 When clients connect to a share level
4939 security server then need not log onto the server with a valid
4940 username and password before attempting to connect to a shared
4941 resource (although modern clients such as Windows 95/98 and Windows NT
4942 will send a logon request with a username but no password when talking
4943 to a \fBsecurity=share\fP server)\&. Instead, the clients send
4944 authentication information (passwords) on a per-share basis, at the
4945 time they attempt to connect to that share\&.
4946 .IP 
4947 Note that \fBsmbd\fP \fI*ALWAYS*\fP uses a valid UNIX
4948 user to act on behalf of the client, even in \fB"security=share"\fP
4949 level security\&.
4950 .IP 
4951 As clients are not required to send a username to the server
4952 in share level security, \fBsmbd\fP uses several
4953 techniques to determine the correct UNIX user to use on behalf
4954 of the client\&.
4955 .IP 
4956 A list of possible UNIX usernames to match with the given
4957 client password is constructed using the following methods :
4958 .IP 
4959 .IP 
4960 .IP o 
4961 If the \fB"guest only"\fP parameter is set, then
4962 all the other stages are missed and only the \fB"guest
4963 account"\fP username is checked\&.
4964 .IP 
4965 .IP o 
4966 Is a username is sent with the share connection request, then
4967 this username (after mapping - see \fB"username
4968 map"\fP), is added as a potential username\&.
4969 .IP 
4970 .IP o 
4971 If the client did a previous \fI"logon"\fP request (the
4972 SessionSetup SMB call) then the username sent in this SMB
4973 will be added as a potential username\&.
4974 .IP 
4975 .IP o 
4976 The name of the service the client requested is added
4977 as a potential username\&.
4978 .IP 
4979 .IP o 
4980 The NetBIOS name of the client is added to the list as a
4981 potential username\&.
4982 .IP 
4983 .IP o 
4984 Any users on the \fB"user"\fP list are added
4985 as potential usernames\&.
4986 .IP 
4987 .IP 
4988 If the \fB"guest only"\fP parameter is not set, then
4989 this list is then tried with the supplied password\&. The first user for
4990 whom the password matches will be used as the UNIX user\&.
4991 .IP 
4992 If the \fB"guest only"\fP parameter is set, or no
4993 username can be determined then if the share is marked as available to
4994 the \fB"guest account"\fP, then this guest user will
4995 be used, otherwise access is denied\&.
4996 .IP 
4997 Note that it can be \fI*very*\fP confusing in share-level security as to
4998 which UNIX username will eventually be used in granting access\&.
4999 .IP 
5000 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5001 VALIDATION"\fP\&.
5002 .IP 
5003 .IP "\fB"security=user"\fP" 
5004 .IP 
5005 This is the default security setting in Samba2\&.0\&. With user-level
5006 security a client must first \f(CW"log-on"\fP with a valid username and
5007 password (which can be mapped using the \fB"username
5008 map"\fP parameter)\&. Encrypted passwords (see the
5009 \fB"encrypted passwords"\fP parameter) can also
5010 be used in this security mode\&. Parameters such as
5011 \fB"user"\fP and \fB"guest only"\fP, if set
5012 are then applied and may change the UNIX user to use on this
5013 connection, but only after the user has been successfully
5014 authenticated\&.
5015 .IP 
5016 \fINote\fP that the name of the resource being requested is
5017 \fI*not*\fP sent to the server until after the server has successfully
5018 authenticated the client\&. This is why guest shares don\'t work in user
5019 level security without allowing the server to automatically map unknown
5020 users into the \fB"guest account"\fP\&. See the
5021 \fB"map to guest"\fP parameter for details on
5022 doing this\&.
5023 .IP 
5024 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5025 VALIDATION"\fP\&.
5026 .IP 
5027 .IP "\fB"security=server"\fP" 
5028 .IP 
5029 In this mode Samba will try to validate the username/password by
5030 passing it to another SMB server, such as an NT box\&. If this fails it
5031 will revert to \fB"security = user"\fP, but note that if encrypted
5032 passwords have been negotiated then Samba cannot revert back to
5033 checking the UNIX password file, it must have a valid smbpasswd file
5034 to check users against\&. See the documentation file in the docs/
5035 directory ENCRYPTION\&.txt for details on how to set this up\&.
5036 .IP 
5037 \fINote\fP that from the clients point of view \fB"security=server"\fP is
5038 the same as \fB"security=user"\fP\&. It only
5039 affects how the server deals with the authentication, it does not in
5040 any way affect what the client sees\&.
5041 .IP 
5042 \fINote\fP that the name of the resource being requested is
5043 \fI*not*\fP sent to the server until after the server has successfully
5044 authenticated the client\&. This is why guest shares don\'t work in server
5045 level security without allowing the server to automatically map unknown
5046 users into the \fB"guest account"\fP\&. See the
5047 \fB"map to guest"\fP parameter for details on
5048 doing this\&.
5049 .IP 
5050 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5051 VALIDATION"\fP\&.
5052 .IP 
5053 See also the \fB"password server"\fP parameter\&.
5054 and the \fB"encrypted passwords"\fP parameter\&.
5055 .IP 
5056 .IP "\fB"security=domain"\fP" 
5057 .IP 
5058 This mode will only work correctly if
5059 \fBsmbpasswd\fP has been used to add this machine
5060 into a Windows NT Domain\&. It expects the \fB"encrypted
5061 passwords"\fP parameter to be set to \f(CW"true"\fP\&. In
5062 this mode Samba will try to validate the username/password by passing
5063 it to a Windows NT Primary or Backup Domain Controller, in exactly the
5064 same way that a Windows NT Server would do\&.
5065 .IP 
5066 \fINote\fP that a valid UNIX user must still exist as well as the
5067 account on the Domain Controller to allow Samba to have a valid
5068 UNIX account to map file access to\&.
5069 .IP 
5070 \fINote\fP that from the clients point of view \fB"security=domain"\fP is
5071 the same as \fB"security=user"\fP\&. It only
5072 affects how the server deals with the authentication, it does not in
5073 any way affect what the client sees\&.
5074 .IP 
5075 \fINote\fP that the name of the resource being requested is
5076 \fI*not*\fP sent to the server until after the server has successfully
5077 authenticated the client\&. This is why guest shares don\'t work in domain
5078 level security without allowing the server to automatically map unknown
5079 users into the \fB"guest account"\fP\&. See the
5080 \fB"map to guest"\fP parameter for details on
5081 doing this\&.
5082 .IP 
5083 e,(BUG:) There is currently a bug in the implementation of
5084 \fB"security=domain\fP with respect to multi-byte character
5085 set usernames\&. The communication with a Domain Controller
5086 must be done in UNICODE and Samba currently does not widen
5087 multi-byte user names to UNICODE correctly, thus a multi-byte
5088 username will not be recognized correctly at the Domain Controller\&.
5089 This issue will be addressed in a future release\&.
5090 .IP 
5091 See also the section \fB"NOTE ABOUT USERNAME/PASSWORD
5092 VALIDATION"\fP\&.
5093 .IP 
5094 See also the \fB"password server"\fP parameter\&.
5095 and the \fB"encrypted passwords"\fP parameter\&.
5096 .IP 
5097 .IP 
5098 \fBDefault:\fP
5099 \f(CW   security = USER\fP
5100 .IP 
5101 \fBExample:\fP
5102 \f(CW   security = DOMAIN\fP
5103 .IP 
5104 .IP "\fBserver string (G)\fP" 
5105 .IP 
5106 This controls what string will show up in the printer comment box in
5107 print manager and next to the IPC connection in \f(CW"net view"\fP\&. It can be
5108 any string that you wish to show to your users\&.
5109 .IP 
5110 It also sets what will appear in browse lists next to the machine
5111 name\&.
5112 .IP 
5113 A \f(CW"%v"\fP will be replaced with the Samba version number\&.
5114 .IP 
5115 A \f(CW"%h"\fP will be replaced with the hostname\&.
5116 .IP 
5117 \fBDefault:\fP
5118 \f(CW   server string = Samba %v\fP
5119 .IP 
5120 \fBExample:\fP
5121 \f(CW   server string = University of GNUs Samba Server\fP
5122 .IP 
5123 .IP "\fBset directory (S)\fP" 
5124 .IP 
5125 If \f(CW"set directory = no"\fP, then users of the service may not use the
5126 setdir command to change directory\&.
5127 .IP 
5128 The setdir command is only implemented in the Digital Pathworks
5129 client\&. See the Pathworks documentation for details\&.
5130 .IP 
5131 \fBDefault:\fP
5132 \f(CW   set directory = no\fP
5133 .IP 
5134 \fBExample:\fP
5135 \f(CW   set directory = yes\fP
5136 .IP 
5137 .IP "\fBshare modes (S)\fP" 
5138 .IP 
5139 This enables or disables the honoring of the \f(CW"share modes"\fP during a
5140 file open\&. These modes are used by clients to gain exclusive read or
5141 write access to a file\&.
5142 .IP 
5143 These open modes are not directly supported by UNIX, so they are
5144 simulated using shared memory, or lock files if your UNIX doesn\'t
5145 support shared memory (almost all do)\&.
5146 .IP 
5147 The share modes that are enabled by this option are DENY_DOS,
5148 DENY_ALL, DENY_READ, DENY_WRITE, DENY_NONE and DENY_FCB\&.
5149 .IP 
5150 This option gives full share compatibility and enabled by default\&.
5151 .IP 
5152 You should \fI*NEVER*\fP turn this parameter off as many Windows
5153 applications will break if you do so\&.
5154 .IP 
5155 \fBDefault:\fP
5156 \f(CW   share modes = yes\fP
5157 .IP 
5158 .IP "\fBshared mem size (G)\fP" 
5159 .IP 
5160 It specifies the size of the shared memory (in bytes) to use between
5161 \fBsmbd\fP processes\&. This parameter defaults to one
5162 megabyte of shared memory\&. It is possible that if you have a large
5163 server with many files open simultaneously that you may need to
5164 increase this parameter\&. Signs that this parameter is set too low are
5165 users reporting strange problems trying to save files (locking errors)
5166 and error messages in the smbd log looking like \f(CW"ERROR
5167 smb_shm_alloc : alloc of XX bytes failed"\fP\&.
5168 .IP 
5169 \fBDefault:\fP
5170 \f(CW   shared mem size = 1048576\fP
5171 .IP 
5172 \fBExample:\fP
5173 \f(CW   shared mem size = 5242880 ; Set to 5mb for a large number of files\&.\fP
5174 .IP 
5175 .IP "\fBshort preserve case (G)\fP" 
5176 .IP 
5177 This boolean parameter controls if new files which conform to 8\&.3
5178 syntax, that is all in upper case and of suitable length, are created
5179 upper case, or if they are forced to be the \f(CW"default"\fP case\&. This
5180 option can be use with \fB"preserve case
5181 =yes"\fP to permit long filenames to retain their
5182 case, while short names are lowered\&. Default \fIYes\fP\&.
5183 .IP 
5184 See the section on \fBNAME MANGLING\fP\&.
5185 .IP 
5186 \fBDefault:\fP
5187 \f(CW   short preserve case = yes\fP
5188 .IP 
5189 .IP "\fBsmb passwd file (G)\fP" 
5190 .IP 
5191 This option sets the path to the encrypted smbpasswd file\&.  By default
5192 the path to the smbpasswd file is compiled into Samba\&.
5193 .IP 
5194 \fBDefault:\fP
5195 \f(CW   smb passwd file= <compiled default>\fP
5196 .IP 
5197 \fBExample:\fP
5198 \f(CW   smb passwd file = /usr/samba/private/smbpasswd\fP
5199 .IP 
5200 .IP "\fBsmbrun (G)\fP" 
5201 .IP 
5202 This sets the full path to the \fBsmbrun\fP binary\&. This defaults to the
5203 value in the Makefile\&.
5204 .IP 
5205 You must get this path right for many services to work correctly\&.
5206 .IP 
5207 You should not need to change this parameter so long as Samba
5208 is installed correctly\&.
5209 .IP 
5210 \fBDefault:\fP
5211 \f(CW   smbrun=<compiled default>\fP
5212 .IP 
5213 \fBExample:\fP
5214 \f(CW   smbrun = /usr/local/samba/bin/smbrun\fP
5215 .IP 
5216 .IP "\fBsocket address (G)\fP" 
5217 .IP 
5218 This option allows you to control what address Samba will listen for
5219 connections on\&. This is used to support multiple virtual interfaces on
5220 the one server, each with a different configuration\&.
5221 .IP 
5222 By default samba will accept connections on any address\&.
5223 .IP 
5224 \fBExample:\fP
5225 \f(CW   socket address = 192\&.168\&.2\&.20\fP
5226 .IP 
5227 .IP "\fBsocket options (G)\fP" 
5228 .IP 
5229 This option allows you to set socket options to be used when talking
5230 with the client\&.
5231 .IP 
5232 Socket options are controls on the networking layer of the operating
5233 systems which allow the connection to be tuned\&.
5234 .IP 
5235 This option will typically be used to tune your Samba server for
5236 optimal performance for your local network\&. There is no way that Samba
5237 can know what the optimal parameters are for your net, so you must
5238 experiment and choose them yourself\&. We strongly suggest you read the
5239 appropriate documentation for your operating system first (perhaps
5240 \fB"man setsockopt"\fP will help)\&.
5241 .IP 
5242 You may find that on some systems Samba will say "Unknown socket
5243 option" when you supply an option\&. This means you either incorrectly 
5244 typed it or you need to add an include file to includes\&.h for your OS\&. 
5245 If the latter is the case please send the patch to
5246 \fIsamba-bugs@samba\&.org\fP\&.
5247 .IP 
5248 Any of the supported socket options may be combined in any way you
5249 like, as long as your OS allows it\&.
5250 .IP 
5251 This is the list of socket options currently settable using this
5252 option:
5253 .IP 
5254 .IP 
5255 .IP o 
5256 SO_KEEPALIVE
5257 .IP 
5258 .IP o 
5259 SO_REUSEADDR
5260 .IP 
5261 .IP o 
5262 SO_BROADCAST
5263 .IP 
5264 .IP o 
5265 TCP_NODELAY
5266 .IP 
5267 .IP o 
5268 IPTOS_LOWDELAY
5269 .IP 
5270 .IP o 
5271 IPTOS_THROUGHPUT
5272 .IP 
5273 .IP o 
5274 SO_SNDBUF *
5275 .IP 
5276 .IP o 
5277 SO_RCVBUF *
5278 .IP 
5279 .IP o 
5280 SO_SNDLOWAT *
5281 .IP 
5282 .IP o 
5283 SO_RCVLOWAT *
5284 .IP 
5285 .IP 
5286 Those marked with a \f(CW*\fP take an integer argument\&. The others can
5287 optionally take a 1 or 0 argument to enable or disable the option, by
5288 default they will be enabled if you don\'t specify 1 or 0\&.
5289 .IP 
5290 To specify an argument use the syntax SOME_OPTION=VALUE for example
5291 \f(CWSO_SNDBUF=8192\fP\&. Note that you must not have any spaces before or after
5292 the = sign\&.
5293 .IP 
5294 If you are on a local network then a sensible option might be
5295 .IP 
5296 \f(CWsocket options = IPTOS_LOWDELAY\fP
5297 .IP 
5298 If you have a local network then you could try:
5299 .IP 
5300 \f(CWsocket options = IPTOS_LOWDELAY TCP_NODELAY\fP
5301 .IP 
5302 If you are on a wide area network then perhaps try setting
5303 IPTOS_THROUGHPUT\&. 
5304 .IP 
5305 Note that several of the options may cause your Samba server to fail
5306 completely\&. Use these options with caution!
5307 .IP 
5308 \fBDefault:\fP
5309 \f(CW   socket options = TCP_NODELAY\fP
5310 .IP 
5311 \fBExample:\fP
5312 \f(CW   socket options = IPTOS_LOWDELAY\fP
5313 .IP 
5314 .IP "\fBssl (G)\fP" 
5315 .IP 
5316 This variable is part of SSL-enabled Samba\&. This is only available if
5317 the SSL libraries have been compiled on your system and the configure
5318 option \f(CW"--with-ssl"\fP was given at configure time\&.
5319 .IP 
5320 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5321 enabled by default in any current binary version of Samba\&.
5322 .IP 
5323 This variable enables or disables the entire SSL mode\&. If it is set to
5324 "no", the SSL enabled samba behaves exactly like the non-SSL samba\&. If
5325 set to "yes", it depends on the variables \fB"ssl
5326 hosts"\fP and \fB"ssl hosts resign"\fP
5327 whether an SSL connection will be required\&.
5328 .IP 
5329 \fBDefault:\fP
5330 \f(CW   ssl=no\fP
5331 \fBExample:\fP
5332 \f(CW   ssl=yes\fP
5333 .IP 
5334 .IP "\fBssl CA certDir (G)\fP" 
5335 .IP 
5336 This variable is part of SSL-enabled Samba\&. This is only available if
5337 the SSL libraries have been compiled on your system and the configure
5338 option \f(CW"--with-ssl"\fP was given at configure time\&.
5339 .IP 
5340 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5341 enabled by default in any current binary version of Samba\&.
5342 .IP 
5343 This variable defines where to look up the Certification
5344 Authorities\&. The given directory should contain one file for each CA
5345 that samba will trust\&.  The file name must be the hash value over the
5346 "Distinguished Name" of the CA\&. How this directory is set up is
5347 explained later in this document\&. All files within the directory that
5348 don\'t fit into this naming scheme are ignored\&. You don\'t need this
5349 variable if you don\'t verify client certificates\&.
5350 .IP 
5351 \fBDefault:\fP
5352 \f(CW   ssl CA certDir = /usr/local/ssl/certs\fP
5353 .IP 
5354 .IP "\fBssl CA certFile (G)\fP" 
5355 .IP 
5356 This variable is part of SSL-enabled Samba\&. This is only available if
5357 the SSL libraries have been compiled on your system and the configure
5358 option \f(CW"--with-ssl"\fP was given at configure time\&.
5359 .IP 
5360 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5361 enabled by default in any current binary version of Samba\&.
5362 .IP 
5363 This variable is a second way to define the trusted CAs\&. The
5364 certificates of the trusted CAs are collected in one big file and this
5365 variable points to the file\&. You will probably only use one of the two
5366 ways to define your CAs\&. The first choice is preferable if you have
5367 many CAs or want to be flexible, the second is preferable if you only
5368 have one CA and want to keep things simple (you won\'t need to create
5369 the hashed file names)\&. You don\'t need this variable if you don\'t
5370 verify client certificates\&.
5371 .IP 
5372 \fBDefault:\fP
5373 \f(CW   ssl CA certFile = /usr/local/ssl/certs/trustedCAs\&.pem\fP
5374 .IP 
5375 .IP "\fBssl ciphers (G)\fP" 
5376 .IP 
5377 This variable is part of SSL-enabled Samba\&. This is only available if
5378 the SSL libraries have been compiled on your system and the configure
5379 option \f(CW"--with-ssl"\fP was given at configure time\&.
5380 .IP 
5381 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5382 enabled by default in any current binary version of Samba\&.
5383 .IP 
5384 This variable defines the ciphers that should be offered during SSL
5385 negotiation\&. You should not set this variable unless you know what you
5386 are doing\&.
5387 .IP 
5388 .IP "\fBssl client cert (G)\fP" 
5389 .IP 
5390 This variable is part of SSL-enabled Samba\&. This is only available if
5391 the SSL libraries have been compiled on your system and the configure
5392 option \f(CW"--with-ssl"\fP was given at configure time\&.
5393 .IP 
5394 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5395 enabled by default in any current binary version of Samba\&.
5396 .IP 
5397 The certificate in this file is used by
5398 \fBsmbclient\fP if it exists\&. It\'s needed if the
5399 server requires a client certificate\&.
5400 .IP 
5401 \fBDefault:\fP
5402 \f(CW   ssl client cert = /usr/local/ssl/certs/smbclient\&.pem\fP
5403 .IP 
5404 .IP "\fBssl client key (G)\fP" 
5405 .IP 
5406 This variable is part of SSL-enabled Samba\&. This is only available if
5407 the SSL libraries have been compiled on your system and the configure
5408 option \f(CW"--with-ssl"\fP was given at configure time\&.
5409 .IP 
5410 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5411 enabled by default in any current binary version of Samba\&.
5412 .IP 
5413 This is the private key for \fBsmbclient\fP\&. It\'s
5414 only needed if the client should have a certificate\&.
5415 .IP 
5416 \fBDefault:\fP
5417 \f(CW   ssl client key = /usr/local/ssl/private/smbclient\&.pem\fP
5418 .IP 
5419 .IP "\fBssl compatibility (G)\fP" 
5420 .IP 
5421 This variable is part of SSL-enabled Samba\&. This is only available if
5422 the SSL libraries have been compiled on your system and the configure
5423 option \f(CW"--with-ssl"\fP was given at configure time\&.
5424 .IP 
5425 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5426 enabled by default in any current binary version of Samba\&.
5427 .IP 
5428 This variable defines whether SSLeay should be configured for bug
5429 compatibility with other SSL implementations\&. This is probably not
5430 desirable because currently no clients with SSL implementations other
5431 than SSLeay exist\&.
5432 .IP 
5433 \fBDefault:\fP
5434 \f(CW   ssl compatibility = no\fP
5435 .IP 
5436 .IP "\fBssl hosts (G)\fP" 
5437 .IP 
5438 See \fB"ssl hosts resign"\fP\&.
5439 .IP 
5440 .IP "\fBssl hosts resign (G)\fP" 
5441 .IP 
5442 This variable is part of SSL-enabled Samba\&. This is only available if
5443 the SSL libraries have been compiled on your system and the configure
5444 option \f(CW"--with-ssl"\fP was given at configure time\&.
5445 .IP 
5446 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5447 enabled by default in any current binary version of Samba\&.
5448 .IP 
5449 These two variables define whether samba will go into SSL mode or
5450 not\&. If none of them is defined, samba will allow only SSL
5451 connections\&. If the \fB"ssl hosts"\fP variable lists
5452 hosts (by IP-address, IP-address range, net group or name), only these
5453 hosts will be forced into SSL mode\&. If the \fB"ssl hosts resign"\fP
5454 variable lists hosts, only these hosts will NOT be forced into SSL
5455 mode\&. The syntax for these two variables is the same as for the
5456 \fB"hosts allow"\fP and \fB"hosts
5457 deny"\fP pair of variables, only that the subject of the
5458 decision is different: It\'s not the access right but whether SSL is
5459 used or not\&. See the \fB"allow hosts"\fP parameter for
5460 details\&. The example below requires SSL connections from all hosts
5461 outside the local net (which is 192\&.168\&.*\&.*)\&.
5462 .IP 
5463 \fBDefault:\fP
5464 \f(CW   ssl hosts = <empty string>\fP
5465 \f(CW   ssl hosts resign = <empty string>\fP
5466 .IP 
5467 \fBExample:\fP
5468 \f(CW   ssl hosts resign = 192\&.168\&.\fP
5469 .IP 
5470 .IP "\fBssl require clientcert (G)\fP" 
5471 .IP 
5472 This variable is part of SSL-enabled Samba\&. This is only available if
5473 the SSL libraries have been compiled on your system and the configure
5474 option \f(CW"--with-ssl"\fP was given at configure time\&.
5475 .IP 
5476 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5477 enabled by default in any current binary version of Samba\&.
5478 .IP 
5479 If this variable is set to \f(CW"yes"\fP, the server will not tolerate
5480 connections from clients that don\'t have a valid certificate\&. The
5481 directory/file given in \fB"ssl CA certDir"\fP and
5482 \fB"ssl CA certFile"\fP will be used to look up the
5483 CAs that issued the client\'s certificate\&. If the certificate can\'t be
5484 verified positively, the connection will be terminated\&.  If this
5485 variable is set to \f(CW"no"\fP, clients don\'t need certificates\&. Contrary
5486 to web applications you really \fI*should*\fP require client
5487 certificates\&. In the web environment the client\'s data is sensitive
5488 (credit card numbers) and the server must prove to be trustworthy\&. In
5489 a file server environment the server\'s data will be sensitive and the
5490 clients must prove to be trustworthy\&.
5491 .IP 
5492 \fBDefault:\fP
5493 \f(CW   ssl require clientcert = no\fP
5494 .IP 
5495 .IP "\fBssl require servercert (G)\fP" 
5496 .IP 
5497 This variable is part of SSL-enabled Samba\&. This is only available if
5498 the SSL libraries have been compiled on your system and the configure
5499 option \f(CW"--with-ssl"\fP was given at configure time\&.
5500 .IP 
5501 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5502 enabled by default in any current binary version of Samba\&.
5503 .IP 
5504 If this variable is set to \f(CW"yes"\fP, the
5505 \fBsmbclient\fP will request a certificate from
5506 the server\&. Same as \fB"ssl require
5507 clientcert"\fP for the server\&.
5508 .IP 
5509 \fBDefault:\fP
5510 \f(CW   ssl require servercert = no\fP
5511 .IP 
5512 .IP "\fBssl server cert (G)\fP" 
5513 .IP 
5514 This variable is part of SSL-enabled Samba\&. This is only available if
5515 the SSL libraries have been compiled on your system and the configure
5516 option \f(CW"--with-ssl"\fP was given at configure time\&.
5517 .IP 
5518 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5519 enabled by default in any current binary version of Samba\&.
5520 .IP 
5521 This is the file containing the server\'s certificate\&. The server _must_
5522 have a certificate\&. The file may also contain the server\'s private key\&.
5523 See later for how certificates and private keys are created\&.
5524 .IP 
5525 \fBDefault:\fP
5526 \f(CW   ssl server cert = <empty string>\fP
5527 .IP 
5528 .IP "\fBssl server key (G)\fP" 
5529 .IP 
5530 This variable is part of SSL-enabled Samba\&. This is only available if
5531 the SSL libraries have been compiled on your system and the configure
5532 option \f(CW"--with-ssl"\fP was given at configure time\&.
5533 .IP 
5534 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5535 enabled by default in any current binary version of Samba\&.
5536 .IP 
5537 This file contains the private key of the server\&. If this variable is
5538 not defined, the key is looked up in the certificate file (it may be
5539 appended to the certificate)\&. The server \fI*must*\fP have a private key
5540 and the certificate \fI*must*\fP match this private key\&.
5541 .IP 
5542 \fBDefault:\fP
5543 \f(CW   ssl server key = <empty string>\fP
5544 .IP 
5545 .IP "\fBssl version (G)\fP" 
5546 .IP 
5547 This variable is part of SSL-enabled Samba\&. This is only available if
5548 the SSL libraries have been compiled on your system and the configure
5549 option \f(CW"--with-ssl"\fP was given at configure time\&.
5550 .IP 
5551 \fINote\fP that for export control reasons this code is \fI**NOT**\fP
5552 enabled by default in any current binary version of Samba\&.
5553 .IP 
5554 This enumeration variable defines the versions of the SSL protocol
5555 that will be used\&. \f(CW"ssl2or3"\fP allows dynamic negotiation of SSL v2
5556 or v3, \f(CW"ssl2"\fP results in SSL v2, \f(CW"ssl3"\fP results in SSL v3 and
5557 "tls1" results in TLS v1\&. TLS (Transport Layer Security) is the
5558 (proposed?) new standard for SSL\&.
5559 .IP 
5560 \fBDefault:\fP
5561 \f(CW   ssl version = "ssl2or3"\fP
5562 .IP 
5563 .IP "\fBstat cache (G)\fP" 
5564 .IP 
5565 This parameter determines if \fBsmbd\fP will use a
5566 cache in order to speed up case insensitive name mappings\&. You should
5567 never need to change this parameter\&.
5568 .IP 
5569 \fBDefault:\fP
5570 \f(CW   stat cache = yes\fP
5571 .IP 
5572 .IP "\fBstat cache size (G)\fP" 
5573 .IP 
5574 This parameter determines the number of entries in the \fBstat
5575 cache\fP\&.  You should never need to change this parameter\&.
5576 .IP 
5577 \fBDefault:\fP
5578 \f(CW   stat cache size = 50\fP
5579 .IP 
5580 .IP "\fBstatus (G)\fP" 
5581 .IP 
5582 This enables or disables logging of connections to a status file that
5583 \fBsmbstatus\fP can read\&.
5584 .IP 
5585 With this disabled \fBsmbstatus\fP won\'t be able
5586 to tell you what connections are active\&. You should never need to
5587 change this parameter\&.
5588 .IP 
5589 \fBDefault:\fP
5590 status = yes
5591 .IP 
5592 .IP "\fBstrict locking (S)\fP" 
5593 .IP 
5594 This is a boolean that controls the handling of file locking in the
5595 server\&. When this is set to \f(CW"yes"\fP the server will check every read and
5596 write access for file locks, and deny access if locks exist\&. This can
5597 be slow on some systems\&.
5598 .IP 
5599 When strict locking is \f(CW"no"\fP the server does file lock checks only
5600 when the client explicitly asks for them\&.
5601 .IP 
5602 Well behaved clients always ask for lock checks when it is important,
5603 so in the vast majority of cases \fB"strict locking = no"\fP is
5604 preferable\&.
5605 .IP 
5606 \fBDefault:\fP
5607 \f(CW   strict locking = no\fP
5608 .IP 
5609 \fBExample:\fP
5610 \f(CW   strict locking = yes\fP
5611 .IP 
5612 .IP "\fBstrict sync (S)\fP" 
5613 .IP 
5614 Many Windows applications (including the Windows 98 explorer shell)
5615 seem to confuse flushing buffer contents to disk with doing a sync to
5616 disk\&. Under UNIX, a sync call forces the process to be suspended until
5617 the kernel has ensured that all outstanding data in kernel disk
5618 buffers has been safely stored onto stable storage\&. This is very slow
5619 and should only be done rarely\&. Setting this parameter to "no" (the
5620 default) means that smbd ignores the Windows applications requests for
5621 a sync call\&. There is only a possibility of losing data if the
5622 operating system itself that Samba is running on crashes, so there is
5623 little danger in this default setting\&. In addition, this fixes many
5624 performance problems that people have reported with the new Windows98
5625 explorer shell file copies\&.
5626 .IP 
5627 See also the \fB"sync always"\fP parameter\&.
5628 .IP 
5629 \fBDefault:\fP
5630 \f(CW   strict sync = no\fP
5631 .IP 
5632 \fBExample:\fP
5633 \f(CW   strict sync = yes\fP
5634 .IP 
5635 .IP "\fBstrip dot (G)\fP" 
5636 .IP 
5637 This is a boolean that controls whether to strip trailing dots off
5638 UNIX filenames\&. This helps with some CDROMs that have filenames ending
5639 in a single dot\&.
5640 .IP 
5641 \fBDefault:\fP
5642 \f(CW   strip dot = no\fP
5643 .IP 
5644 \fBExample:\fP
5645 \f(CW   strip dot = yes\fP
5646 .IP 
5647 .IP "\fBsync always (S)\fP" 
5648 .IP 
5649 This is a boolean parameter that controls whether writes will always
5650 be written to stable storage before the write call returns\&. If this is
5651 false then the server will be guided by the client\'s request in each
5652 write call (clients can set a bit indicating that a particular write
5653 should be synchronous)\&. If this is true then every write will be
5654 followed by a fsync() call to ensure the data is written to disk\&.
5655 Note that the \fB"strict sync"\fP parameter must be
5656 set to \f(CW"yes"\fP in order for this parameter to have any affect\&.
5657 .IP 
5658 See also the \fB"strict sync"\fP parameter\&.
5659 .IP 
5660 \fBDefault:\fP
5661 \f(CW   sync always = no\fP
5662 .IP 
5663 \fBExample:\fP
5664 \f(CW   sync always = yes\fP
5665 .IP 
5666 .IP "\fBsyslog (G)\fP" 
5667 .IP 
5668 This parameter maps how Samba debug messages are logged onto the
5669 system syslog logging levels\&. Samba debug level zero maps onto syslog
5670 LOG_ERR, debug level one maps onto LOG_WARNING, debug level two maps
5671 onto LOG_NOTICE, debug level three maps onto LOG_INFO\&. All higher 
5672 levels are mapped to LOG_DEBUG\&.
5673 .IP 
5674 This paramter sets the threshold for sending messages to syslog\&. 
5675 Only messages with debug level less than this value will be sent 
5676 to syslog\&.
5677 .IP 
5678 \fBDefault:\fP
5679 \f(CW   syslog = 1\fP
5680 .IP 
5681 .IP "\fBsyslog only (G)\fP" 
5682 .IP 
5683 If this parameter is set then Samba debug messages are logged into the
5684 system syslog only, and not to the debug log files\&.
5685 .IP 
5686 \fBDefault:\fP
5687 \f(CW   syslog only = no\fP
5688 .IP 
5689 .IP "\fBtime offset (G)\fP" 
5690 .IP 
5691 This parameter is a setting in minutes to add to the normal GMT to
5692 local time conversion\&. This is useful if you are serving a lot of PCs
5693 that have incorrect daylight saving time handling\&.
5694 .IP 
5695 \fBDefault:\fP
5696 \f(CW   time offset = 0\fP
5697 .IP 
5698 \fBExample:\fP
5699 \f(CW   time offset = 60\fP
5700 .IP 
5701 .IP 
5702 .IP "\fBtime server (G)\fP" 
5703 .IP 
5704 This parameter determines if \fBnmbd\fP advertises
5705 itself as a time server to Windows clients\&. The default is False\&.
5706 .IP 
5707 \fBDefault:\fP
5708 \f(CW   time server = False\fP
5709 .IP 
5710 \fBExample:\fP
5711 \f(CW   time server = True\fP
5712 .IP 
5713 .IP "\fBtimestamp logs (G)\fP" 
5714 .IP 
5715 Samba2\&.0 will a timestamps to all log entries by default\&. This
5716 can be distracting if you are attempting to debug a problem\&. This
5717 parameter allows the timestamping to be turned off\&.
5718 .IP 
5719 \fBDefault:\fP
5720 \f(CW   timestamp logs = True\fP
5721 .IP 
5722 \fBExample:\fP
5723 \f(CW   timestamp logs = False\fP
5724 .IP 
5725 .IP "\fBunix password sync (G)\fP" 
5726 .IP 
5727 This boolean parameter controls whether Samba attempts to synchronize
5728 the UNIX password with the SMB password when the encrypted SMB
5729 password in the smbpasswd file is changed\&. If this is set to true the
5730 program specified in the \fB"passwd program"\fP
5731 parameter is called \fI*AS ROOT*\fP - to allow the new UNIX password to be
5732 set without access to the old UNIX password (as the SMB password has
5733 change code has no access to the old password cleartext, only the
5734 new)\&. By default this is set to \f(CW"false"\fP\&.
5735 .IP 
5736 See also \fB"passwd program"\fP, \fB"passwd
5737 chat"\fP\&.
5738 .IP 
5739 \fBDefault:\fP
5740 \f(CW   unix password sync = False\fP
5741 .IP 
5742 \fBExample:\fP
5743 \f(CW   unix password sync = True\fP
5744 .IP 
5745 .IP "\fBunix realname (G)\fP" 
5746 .IP 
5747 This boolean parameter when set causes samba to supply the real name
5748 field from the unix password file to the client\&. This is useful for
5749 setting up mail clients and WWW browsers on systems used by more than
5750 one person\&.
5751 .IP 
5752 \fBDefault:\fP
5753 \f(CW   unix realname = no\fP
5754 .IP 
5755 \fBExample:\fP
5756 \f(CW   unix realname = yes\fP
5757 .IP 
5758 .IP "\fBupdate encrypted (G)\fP" 
5759 .IP 
5760 This boolean parameter allows a user logging on with a plaintext
5761 password to have their encrypted (hashed) password in the smbpasswd
5762 file to be updated automatically as they log on\&. This option allows a
5763 site to migrate from plaintext password authentication (users
5764 authenticate with plaintext password over the wire, and are checked
5765 against a UNIX account database) to encrypted password authentication
5766 (the SMB challenge/response authentication mechanism) without forcing
5767 all users to re-enter their passwords via smbpasswd at the time the
5768 change is made\&. This is a convenience option to allow the change over
5769 to encrypted passwords to be made over a longer period\&. Once all users
5770 have encrypted representations of their passwords in the smbpasswd
5771 file this parameter should be set to \f(CW"off"\fP\&.
5772 .IP 
5773 In order for this parameter to work correctly the \fB"encrypt
5774 passwords"\fP parameter must be set to \f(CW"no"\fP when
5775 this parameter is set to \f(CW"yes"\fP\&.
5776 .IP 
5777 Note that even when this parameter is set a user authenticating to
5778 smbd must still enter a valid password in order to connect correctly,
5779 and to update their hashed (smbpasswd) passwords\&.
5780 .IP 
5781 \fBDefault:\fP
5782 \f(CW   update encrypted = no\fP
5783 .IP 
5784 \fBExample:\fP
5785 \f(CW   update encrypted = yes\fP
5786 .IP 
5787 .IP "\fBuse rhosts (G)\fP" 
5788 .IP 
5789 If this global parameter is a true, it specifies that the UNIX users
5790 \f(CW"\&.rhosts"\fP file in their home directory will be read to find the
5791 names of hosts and users who will be allowed access without specifying
5792 a password\&.
5793 .IP 
5794 NOTE: The use of \fBuse rhosts\fP can be a major security hole\&. This is
5795 because you are trusting the PC to supply the correct username\&. It is
5796 very easy to get a PC to supply a false username\&. I recommend that the
5797 \fBuse rhosts\fP option be only used if you really know what you are
5798 doing\&.
5799 .IP 
5800 \fBDefault:\fP
5801 \f(CW   use rhosts = no\fP
5802 .IP 
5803 \fBExample:\fP
5804 \f(CW   use rhosts = yes\fP
5805 .IP 
5806 .IP "\fBuser (S)\fP" 
5807 .IP 
5808 Synonym for \fB"username"\fP\&.
5809 .IP 
5810 .IP "\fBusers (S)\fP" 
5811 .IP 
5812 Synonym for \fB"username"\fP\&.
5813 .IP 
5814 .IP "\fBusername (S)\fP" 
5815 .IP 
5816 Multiple users may be specified in a comma-delimited list, in which
5817 case the supplied password will be tested against each username in
5818 turn (left to right)\&.
5819 .IP 
5820 The \fBusername=\fP line is needed only when the PC is unable to supply
5821 its own username\&. This is the case for the COREPLUS protocol or where
5822 your users have different WfWg usernames to UNIX usernames\&. In both
5823 these cases you may also be better using the \f(CW\e\eserver\eshare%user\fP
5824 syntax instead\&.
5825 .IP 
5826 The \fBusername=\fP line is not a great solution in many cases as it
5827 means Samba will try to validate the supplied password against each of
5828 the usernames in the username= line in turn\&. This is slow and a bad
5829 idea for lots of users in case of duplicate passwords\&. You may get
5830 timeouts or security breaches using this parameter unwisely\&.
5831 .IP 
5832 Samba relies on the underlying UNIX security\&. This parameter does not
5833 restrict who can login, it just offers hints to the Samba server as to
5834 what usernames might correspond to the supplied password\&. Users can
5835 login as whoever they please and they will be able to do no more
5836 damage than if they started a telnet session\&. The daemon runs as the
5837 user that they log in as, so they cannot do anything that user cannot
5838 do\&.
5839 .IP 
5840 To restrict a service to a particular set of users you can use the
5841 \fB"valid users="\fP parameter\&.
5842 .IP 
5843 If any of the usernames begin with a \f(CW\'@\'\fP then the name will be
5844 looked up first in the yp netgroups list (if Samba is compiled with
5845 netgroup support), followed by a lookup in the UNIX groups database
5846 and will expand to a list of all users in the group of that name\&.
5847 .IP 
5848 If any of the usernames begin with a \f(CW\'+\'\fP then the name will be
5849 looked up only in the UNIX groups database and will expand to a list
5850 of all users in the group of that name\&.
5851 .IP 
5852 If any of the usernames begin with a \f(CW\'&\'\fP then the name will be
5853 looked up only in the yp netgroups database (if Samba is compiled with
5854 netgroup support) and will expand to a list of all users in the
5855 netgroup group of that name\&.
5856 .IP 
5857 Note that searching though a groups database can take quite some time,
5858 and some clients may time out during the search\&.
5859 .IP 
5860 See the section \fB"NOTE ABOUT USERNAME/PASSWORD
5861 VALIDATION"\fP for more
5862 information on how this parameter determines access to the services\&.
5863 .IP 
5864 \fBDefault:\fP
5865 \f(CW   The guest account if a guest service, else the name of the service\&.\fP
5866 .IP 
5867 \fBExamples:\fP
5869 .DS 
5872         username = fred
5873         username = fred, mary, jack, jane, @users, @pcgroup
5875 .DE 
5878 .IP 
5879 .IP "\fBusername level (G)\fP" 
5880 .IP 
5881 This option helps Samba to try and \'guess\' at the real UNIX username,
5882 as many DOS clients send an all-uppercase username\&. By default Samba
5883 tries all lowercase, followed by the username with the first letter
5884 capitalized, and fails if the username is not found on the UNIX
5885 machine\&.
5886 .IP 
5887 If this parameter is set to non-zero the behavior changes\&. This
5888 parameter is a number that specifies the number of uppercase
5889 combinations to try whilst trying to determine the UNIX user name\&. The
5890 higher the number the more combinations will be tried, but the slower
5891 the discovery of usernames will be\&. Use this parameter when you have
5892 strange usernames on your UNIX machine, such as \f(CW"AstrangeUser"\fP\&.
5893 .IP 
5894 \fBDefault:\fP
5895 \f(CW   username level = 0\fP
5896 .IP 
5897 \fBExample:\fP
5898 \f(CW   username level = 5\fP
5899 .IP 
5900 .IP "\fBusername map (G)\fP" 
5901 .IP 
5902 This option allows you to specify a file containing a mapping of
5903 usernames from the clients to the server\&. This can be used for several
5904 purposes\&. The most common is to map usernames that users use on DOS or
5905 Windows machines to those that the UNIX box uses\&. The other is to map
5906 multiple users to a single username so that they can more easily share
5907 files\&.
5908 .IP 
5909 The map file is parsed line by line\&. Each line should contain a single
5910 UNIX username on the left then a \f(CW\'=\'\fP followed by a list of
5911 usernames on the right\&. The list of usernames on the right may contain
5912 names of the form @group in which case they will match any UNIX
5913 username in that group\&. The special client name \f(CW\'*\'\fP is a wildcard
5914 and matches any name\&. Each line of the map file may be up to 1023
5915 characters long\&.
5916 .IP 
5917 The file is processed on each line by taking the supplied username and
5918 comparing it with each username on the right hand side of the \f(CW\'=\'\fP
5919 signs\&. If the supplied name matches any of the names on the right hand
5920 side then it is replaced with the name on the left\&. Processing then
5921 continues with the next line\&.
5922 .IP 
5923 If any line begins with a \f(CW\'#\'\fP or a \f(CW\';\'\fP then it is ignored
5924 .IP 
5925 If any line begins with an \f(CW\'!\'\fP then the processing will stop after
5926 that line if a mapping was done by the line\&. Otherwise mapping
5927 continues with every line being processed\&. Using \f(CW\'!\'\fP is most
5928 useful when you have a wildcard mapping line later in the file\&.
5929 .IP 
5930 For example to map from the name \f(CW"admin"\fP or \f(CW"administrator"\fP to
5931 the UNIX name \f(CW"root"\fP you would use:
5932 .IP 
5933 \f(CW   root = admin administrator\fP
5934 .IP 
5935 Or to map anyone in the UNIX group \f(CW"system"\fP to the UNIX name
5936 \f(CW"sys"\fP you would use:
5937 .IP 
5938 \f(CW   sys = @system\fP
5939 .IP 
5940 You can have as many mappings as you like in a username map file\&.
5941 .IP 
5942 If your system supports the NIS NETGROUP option then the netgroup
5943 database is checked before the \f(CW/etc/group\fP database for matching
5944 groups\&.
5945 .IP 
5946 You can map Windows usernames that have spaces in them by using double
5947 quotes around the name\&. For example:
5948 .IP 
5949 \f(CW   tridge = "Andrew Tridgell"\fP
5950 .IP 
5951 would map the windows username \f(CW"Andrew Tridgell"\fP to the unix
5952 username tridge\&.
5953 .IP 
5954 The following example would map mary and fred to the unix user sys,
5955 and map the rest to guest\&. Note the use of the \f(CW\'!\'\fP to tell Samba
5956 to stop processing if it gets a match on that line\&.
5957 .IP 
5959 .DS 
5962         !sys = mary fred
5963         guest = *
5965 .DE 
5968 .IP 
5969 Note that the remapping is applied to all occurrences of
5970 usernames\&. Thus if you connect to \f(CW"\e\eserver\efred"\fP and \f(CW"fred"\fP
5971 is remapped to \f(CW"mary"\fP then you will actually be connecting to
5972 \f(CW"\e\eserver\emary"\fP and will need to supply a password suitable for
5973 \f(CW"mary"\fP not \f(CW"fred"\fP\&. The only exception to this is the username
5974 passed to the \fB"password server"\fP (if you have
5975 one)\&. The password server will receive whatever username the client
5976 supplies without modification\&.
5977 .IP 
5978 Also note that no reverse mapping is done\&. The main effect this has is
5979 with printing\&. Users who have been mapped may have trouble deleting
5980 print jobs as PrintManager under WfWg will think they don\'t own the
5981 print job\&.
5982 .IP 
5983 \fBDefault:\fP
5984 \f(CW   no username map\fP
5985 .IP 
5986 \fBExample:\fP
5987 \f(CW   username map = /usr/local/samba/lib/users\&.map\fP
5988 .IP 
5989 .IP "\fBvalid chars (S)\fP" 
5990 .IP 
5991 The option allows you to specify additional characters that should be
5992 considered valid by the server in filenames\&. This is particularly
5993 useful for national character sets, such as adding u-umlaut or a-ring\&.
5994 .IP 
5995 The option takes a list of characters in either integer or character
5996 form with spaces between them\&. If you give two characters with a colon
5997 between them then it will be taken as an lowercase:uppercase pair\&.
5998 .IP 
5999 If you have an editor capable of entering the characters into the
6000 config file then it is probably easiest to use this method\&. Otherwise
6001 you can specify the characters in octal, decimal or hexadecimal form
6002 using the usual C notation\&.
6003 .IP 
6004 For example to add the single character \f(CW\'Z\'\fP to the charset (which
6005 is a pointless thing to do as it\'s already there) you could do one of
6006 the following
6007 .IP 
6009 .DS 
6012         valid chars = Z
6013         valid chars = z:Z
6014         valid chars = 0132:0172
6016 .DE 
6019 .IP 
6020 The last two examples above actually add two characters, and alter the
6021 uppercase and lowercase mappings appropriately\&.
6022 .IP 
6023 Note that you MUST specify this parameter after the \fB"client
6024 code page"\fP parameter if you have both set\&. If
6025 \fB"client code page"\fP is set after the
6026 \fB"valid chars"\fP parameter the \fB"valid chars"\fP settings will be
6027 overwritten\&.
6028 .IP 
6029 See also the \fB"client code page"\fP parameter\&.
6030 .IP 
6031 \fBDefault:\fP
6033 .DS 
6036         Samba defaults to using a reasonable set of valid characters
6037         for English systems
6039 .DE 
6042 .IP 
6043 \fBExample\fP
6044 \f(CW   valid chars = 0345:0305 0366:0326 0344:0304\fP
6045 .IP 
6046 The above example allows filenames to have the Swedish characters in
6047 them\&.
6048 .IP 
6049 NOTE: It is actually quite difficult to correctly produce a \fB"valid
6050 chars"\fP line for a particular system\&. To automate the process
6051 \fItino@augsburg\&.net\fP has written a package called \fB"validchars"\fP
6052 which will automatically produce a complete \fB"valid chars"\fP line for
6053 a given client system\&. Look in the examples/validchars/ subdirectory
6054 of your Samba source code distribution for this package\&.
6055 .IP 
6056 .IP "\fBvalid users (S)\fP" 
6057 .IP 
6058 This is a list of users that should be allowed to login to this
6059 service\&. Names starting with \f(CW\'@\'\fP, \f(CW\'+\'\fP and \f(CW\'&\'\fP are
6060 interpreted using the same rules as described in the \fB"invalid
6061 users"\fP parameter\&.
6062 .IP 
6063 If this is empty (the default) then any user can login\&. If a username
6064 is in both this list and the \fB"invalid users"\fP
6065 list then access is denied for that user\&.
6066 .IP 
6067 The current servicename is substituted for
6068 \fB"%S"\fP\&. This is useful in the
6069 \fB[homes]\fP section\&.
6070 .IP 
6071 See also \fB"invalid users"\fP\&.
6072 .IP 
6073 \fBDefault:\fP
6074 \f(CW   No valid users list\&. (anyone can login)\fP
6075 .IP 
6076 \fBExample:\fP
6077 \f(CW   valid users = greg, @pcusers\fP
6078 .IP 
6079 .IP "\fBveto files(S)\fP" 
6080 .IP 
6081 This is a list of files and directories that are neither visible nor
6082 accessible\&.  Each entry in the list must be separated by a \f(CW\'/\'\fP,
6083 which allows spaces to be included in the entry\&. \f(CW\'*\'\fP and \f(CW\'?\'\fP 
6084 can be used to specify multiple files or directories as in DOS
6085 wildcards\&.
6086 .IP 
6087 Each entry must be a unix path, not a DOS path and must \fI*not*\fP include the 
6088 unix directory separator \f(CW\'/\'\fP\&.
6089 .IP 
6090 Note that the \fB"case sensitive"\fP option is
6091 applicable in vetoing files\&.
6092 .IP 
6093 One feature of the veto files parameter that it is important to be
6094 aware of, is that if a directory contains nothing but files that match
6095 the veto files parameter (which means that Windows/DOS clients cannot
6096 ever see them) is deleted, the veto files within that directory *are
6097 automatically deleted* along with it, if the user has UNIX permissions
6098 to do so\&.
6099 .IP 
6100 Setting this parameter will affect the performance of Samba, as it
6101 will be forced to check all files and directories for a match as they
6102 are scanned\&.
6103 .IP 
6104 See also \fB"hide files"\fP and \fB"case
6105 sensitive"\fP\&.
6106 .IP 
6107 \fBDefault:\fP
6108 \f(CW   No files or directories are vetoed\&.\fP
6109 .IP 
6110 \fBExamples:\fP
6111 .IP 
6112 Example 1\&.
6113 .IP 
6115 .DS 
6119     Veto any files containing the word Security, 
6120     any ending in \&.tmp, and any directory containing the
6121     word root\&.
6123         veto files = /*Security*/*\&.tmp/*root*/
6125 .DE 
6128 .IP 
6129 Example 2\&.
6130 .IP 
6132 .DS 
6135     Veto the Apple specific files that a NetAtalk server
6136     creates\&.
6138     veto files = /\&.AppleDouble/\&.bin/\&.AppleDesktop/Network Trash Folder/
6140 .DE 
6143 .IP 
6144 .IP "\fBveto oplock files (S)\fP" 
6145 .IP 
6146 This parameter is only valid when the \fB"oplocks"\fP
6147 parameter is turned on for a share\&. It allows the Samba administrator
6148 to selectively turn off the granting of oplocks on selected files that
6149 match a wildcarded list, similar to the wildcarded list used in the
6150 \fB"veto files"\fP parameter\&.
6151 .IP 
6152 \fBDefault:\fP
6153 \f(CW   No files are vetoed for oplock grants\&.\fP
6154 .IP 
6155 \fBExamples:\fP
6156 .IP 
6157 You might want to do this on files that you know will be heavily
6158 contended for by clients\&. A good example of this is in the NetBench
6159 SMB benchmark program, which causes heavy client contention for files
6160 ending in \f(CW"\&.SEM"\fP\&. To cause Samba not to grant oplocks on these
6161 files you would use the line (either in the \fB[global]\fP
6162 section or in the section for the particular NetBench share :
6163 .IP 
6164 \f(CW     veto oplock files = /*\&.SEM/\fP
6165 .IP 
6166 .IP "\fBvolume (S)\fP" 
6167 .IP 
6168 This allows you to override the volume label returned for a
6169 share\&. Useful for CDROMs with installation programs that insist on a
6170 particular volume label\&.
6171 .IP 
6172 The default is the name of the share\&.
6173 .IP 
6174 .IP "\fBwide links (S)\fP" 
6175 .IP 
6176 This parameter controls whether or not links in the UNIX file system
6177 may be followed by the server\&. Links that point to areas within the
6178 directory tree exported by the server are always allowed; this
6179 parameter controls access only to areas that are outside the directory
6180 tree being exported\&.
6181 .IP 
6182 \fBDefault:\fP
6183 \f(CW   wide links = yes\fP
6184 .IP 
6185 \fBExample:\fP
6186 \f(CW   wide links = no\fP
6187 .IP 
6188 .IP "\fBwins proxy (G)\fP" 
6189 .IP 
6190 This is a boolean that controls if \fBnmbd\fP will
6191 respond to broadcast name queries on behalf of other hosts\&. You may
6192 need to set this to \f(CW"yes"\fP for some older clients\&.
6193 .IP 
6194 \fBDefault:\fP
6195 \f(CW   wins proxy = no\fP
6196 .IP 
6197 .IP "\fBwins server (G)\fP" 
6198 .IP 
6199 This specifies the IP address (or DNS name: IP address for preference)
6200 of the WINS server that \fBnmbd\fP should register with\&.
6201 If you have a WINS server on your network then you should set this to
6202 the WINS server\'s IP\&.        
6203 .IP 
6204 You should point this at your WINS server if you have a
6205 multi-subnetted network\&.
6206 .IP 
6207 \fINOTE\fP\&. You need to set up Samba to point to a WINS server if you
6208 have multiple subnets and wish cross-subnet browsing to work correctly\&.
6209 .IP 
6210 See the documentation file BROWSING\&.txt in the docs/ directory of your
6211 Samba source distribution\&.
6212 .IP 
6213 \fBDefault:\fP
6214 \f(CW   wins server = \fP
6215 .IP 
6216 \fBExample:\fP
6217 \f(CW   wins server = 192\&.9\&.200\&.1\fP
6218 .IP 
6219 .IP "\fBwins support (G)\fP" 
6220 .IP 
6221 This boolean controls if the \fBnmbd\fP process in
6222 Samba will act as a WINS server\&. You should not set this to true
6223 unless you have a multi-subnetted network and you wish a particular
6224 \fBnmbd\fP to be your WINS server\&. Note that you
6225 should \fI*NEVER*\fP set this to true on more than one machine in your
6226 network\&.
6227 .IP 
6228 \fBDefault:\fP
6229 \f(CW   wins support = no\fP
6230 .IP 
6231 .IP "\fBworkgroup (G)\fP" 
6232 .IP 
6233 This controls what workgroup your server will appear to be in when
6234 queried by clients\&. Note that this parameter also controls the Domain
6235 name used with the \fB"security=domain"\fP
6236 setting\&.
6237 .IP 
6238 \fBDefault:\fP
6239 \f(CW   set at compile time to WORKGROUP\fP
6240 .IP 
6241 \fBExample:\fP
6242 workgroup = MYGROUP
6243 .IP 
6244 .IP "\fBwritable (S)\fP" 
6245 .IP 
6246 Synonym for \fB"writeable"\fP for people who can\'t spell :-)\&.
6247 .IP 
6248 .IP "\fBwrite list (S)\fP" 
6249 .IP 
6250 This is a list of users that are given read-write access to a
6251 service\&. If the connecting user is in this list then they will be
6252 given write access, no matter what the \fB"read only"\fP
6253 option is set to\&. The list can include group names using the @group
6254 syntax\&.
6255 .IP 
6256 Note that if a user is in both the read list and the write list then
6257 they will be given write access\&.
6258 .IP 
6259 See also the \fB"read list"\fP option\&.
6260 .IP 
6261 \fBDefault:\fP
6262 \f(CW     write list = <empty string>\fP
6263 .IP 
6264 \fBExample:\fP
6265 \f(CW   write list = admin, root, @staff\fP
6266 .IP 
6267 .IP "\fBwrite ok (S)\fP" 
6268 .IP 
6269 Synonym for \fBwriteable\fP\&.
6270 .IP 
6271 .IP "\fBwrite raw (G)\fP" 
6272 .IP 
6273 This parameter controls whether or not the server will support raw
6274 writes SMB\'s when transferring data from clients\&. You should never
6275 need to change this parameter\&.
6276 .IP 
6277 \fBDefault:\fP
6278 \f(CW   write raw = yes\fP
6279 .IP 
6280 .IP "\fBwriteable\fP" 
6281 .IP 
6282 An inverted synonym is \fB"read only"\fP\&.
6283 .IP 
6284 If this parameter is \f(CW"no"\fP, then users of a service may not create
6285 or modify files in the service\'s directory\&.
6286 .IP 
6287 Note that a printable service \fB("printable = yes")\fP
6288 will \fI*ALWAYS*\fP allow writing to the directory (user privileges
6289 permitting), but only via spooling operations\&.
6290 .IP 
6291 \fBDefault:\fP
6292 \f(CW   writeable = no\fP
6293 .IP 
6294 \fBExamples:\fP
6296 .DS 
6299         read only = no
6300         writeable = yes
6301         write ok = yes
6303 .DE 
6306 .IP 
6307 .SH "WARNINGS" 
6308 .IP 
6309 Although the configuration file permits service names to contain
6310 spaces, your client software may not\&. Spaces will be ignored in
6311 comparisons anyway, so it shouldn\'t be a problem - but be aware of the
6312 possibility\&.
6313 .IP 
6314 On a similar note, many clients - especially DOS clients - limit
6315 service names to eight characters\&. \fBSmbd\fP has no
6316 such limitation, but attempts to connect from such clients will fail
6317 if they truncate the service names\&.  For this reason you should
6318 probably keep your service names down to eight characters in length\&.
6319 .IP 
6320 Use of the \fB[homes]\fP and \fB[printers]\fP
6321 special sections make life for an administrator easy, but the various
6322 combinations of default attributes can be tricky\&. Take extreme care
6323 when designing these sections\&. In particular, ensure that the
6324 permissions on spool directories are correct\&.
6325 .IP 
6326 .SH "VERSION" 
6327 .IP 
6328 This man page is correct for version 2\&.0 of the Samba suite\&.
6329 .IP 
6330 .SH "SEE ALSO" 
6331 .IP 
6332 \fBsmbd (8)\fP, \fBsmbclient (1)\fP,
6333 \fBnmbd (8)\fP, \fBtestparm (1)\fP,
6334 \fBtestprns (1)\fP, \fBSamba\fP,
6335 \fBnmblookup (1)\fP, \fBsmbpasswd (5)\fP,
6336 \fBsmbpasswd (8)\fP\&.
6337 .IP 
6338 .SH "AUTHOR" 
6339 .IP 
6340 The original Samba software and related utilities were created by
6341 Andrew Tridgell \fIsamba-bugs@samba\&.org\fP\&. Samba is now developed
6342 by the Samba Team as an Open Source project similar to the way the
6343 Linux kernel is developed\&.
6344 .IP 
6345 The original Samba man pages were written by Karl Auer\&. The man page
6346 sources were converted to YODL format (another excellent piece of Open
6347 Source software, available at
6348 \fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fP)
6349 and updated for the Samba2\&.0 release by Jeremy Allison\&.
6350 \fIsamba-bugs@samba\&.org\fP\&.
6351 .IP 
6352 See \fBsamba (7)\fP to find out how to get a full
6353 list of contributors and details on how to submit bug reports,
6354 comments etc\&.