large collection of minor fixes. Mostly typos
[Samba.git] / docs / docbook / manpages / smb.conf.5.sgml
blobf54081788062e91df61527ce83b9d2748f58eddd
1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2 <refentry id="smb.conf">
4 <refmeta>
5 <refentrytitle>smb.conf</refentrytitle>
6 <manvolnum>5</manvolnum>
7 </refmeta>
10 <refnamediv>
11 <refname>smb.conf</refname>
12 <refpurpose>The configuration file for the Samba suite</refpurpose>
13 </refnamediv>
15 <refsect1>
16 <title>SYNOPSIS</title>
18 <para>The <filename>smb.conf</filename> file is a configuration
19 file for the Samba suite. <filename>smb.conf</filename> contains
20 runtime configuration information for the Samba programs. The
21 <filename>smb.conf</filename> file is designed to be configured and
22 administered by the <ulink url="swat.8.html"><command>swat(8)</command>
23 </ulink> program. The complete description of the file format and
24 possible parameters held within are here for reference purposes.</para>
25 </refsect1>
27 <refsect1>
28 <title id="FILEFORMATSECT">FILE FORMAT</title>
30 <para>The file consists of sections and parameters. A section
31 begins with the name of the section in square brackets and continues
32 until the next section begins. Sections contain parameters of the
33 form</para>
35 <para><replaceable>name</replaceable> = <replaceable>value
36 </replaceable></para>
38 <para>The file is line-based - that is, each newline-terminated
39 line represents either a comment, a section name or a parameter.</para>
41 <para>Section and parameter names are not case sensitive.</para>
43 <para>Only the first equals sign in a parameter is significant.
44 Whitespace before or after the first equals sign is discarded.
45 Leading, trailing and internal whitespace in section and parameter
46 names is irrelevant. Leading and trailing whitespace in a parameter
47 value is discarded. Internal whitespace within a parameter value
48 is retained verbatim.</para>
50 <para>Any line beginning with a semicolon (';') or a hash ('#')
51 character is ignored, as are lines containing only whitespace.</para>
53 <para>Any line ending in a '\' is continued
54 on the next line in the customary UNIX fashion.</para>
56 <para>The values following the equals sign in parameters are all
57 either a string (no quotes needed) or a boolean, which may be given
58 as yes/no, 0/1 or true/false. Case is not significant in boolean
59 values, but is preserved in string values. Some items such as
60 create modes are numeric.</para>
61 </refsect1>
63 <refsect1>
64 <title>SECTION DESCRIPTIONS</title>
66 <para>Each section in the configuration file (except for the
67 [global] section) describes a shared resource (known
68 as a "share"). The section name is the name of the
69 shared resource and the parameters within the section define
70 the shares attributes.</para>
72 <para>There are three special sections, [global],
73 [homes] and [printers], which are
74 described under <emphasis>special sections</emphasis>. The
75 following notes apply to ordinary section descriptions.</para>
77 <para>A share consists of a directory to which access is being
78 given plus a description of the access rights which are granted
79 to the user of the service. Some housekeeping options are
80 also specifiable.</para>
82 <para>Sections are either file share services (used by the
83 client as an extension of their native file systems) or
84 printable services (used by the client to access print services
85 on the host running the server).</para>
87 <para>Sections may be designated <emphasis>guest</emphasis> services,
88 in which case no password is required to access them. A specified
89 UNIX <emphasis>guest account</emphasis> is used to define access
90 privileges in this case.</para>
92 <para>Sections other than guest services will require a password
93 to access them. The client provides the username. As older clients
94 only provide passwords and not usernames, you may specify a list
95 of usernames to check against the password using the "user ="
96 option in the share definition. For modern clients such as
97 Windows 95/98/ME/NT/2000, this should not be necessary.</para>
99 <para>Note that the access rights granted by the server are
100 masked by the access rights granted to the specified or guest
101 UNIX user by the host system. The server does not grant more
102 access than the host system grants.</para>
104 <para>The following sample section defines a file space share.
105 The user has write access to the path <filename>/home/bar</filename>.
106 The share is accessed via the share name "foo":</para>
108 <screen>
109 <computeroutput>
110 [foo]
111 path = /home/bar
112 writeable = true
113 </computeroutput>
114 </screen>
116 <para>The following sample section defines a printable share.
117 The share is readonly, but printable. That is, the only write
118 access permitted is via calls to open, write to and close a
119 spool file. The <emphasis>guest ok</emphasis> parameter means
120 access will be permitted as the default guest user (specified
121 elsewhere):</para>
123 <screen>
124 <computeroutput>
125 [aprinter]
126 path = /usr/spool/public
127 writeable = false
128 printable = true
129 guest ok = true
130 </computeroutput>
131 </screen>
132 </refsect1>
134 <refsect1>
135 <title>SPECIAL SECTIONS</title>
137 <refsect2>
138 <title>The [global] section</title>
140 <para>parameters in this section apply to the server
141 as a whole, or are defaults for sections which do not
142 specifically define certain items. See the notes
143 under PARAMETERS for more information.</para>
144 </refsect2>
146 <refsect2>
147 <title id="HOMESECT">The [homes] section</title>
149 <para>If a section called homes is included in the
150 configuration file, services connecting clients to their
151 home directories can be created on the fly by the server.</para>
153 <para>When the connection request is made, the existing
154 sections are scanned. If a match is found, it is used. If no
155 match is found, the requested section name is treated as a
156 user name and looked up in the local password file. If the
157 name exists and the correct password has been given, a share is
158 created by cloning the [homes] section.</para>
160 <para>Some modifications are then made to the newly
161 created share:</para>
163 <itemizedlist>
164 <listitem><para>The share name is changed from homes to
165 the located username.</para></listitem>
167 <listitem><para>If no path was given, the path is set to
168 the user's home directory.</para></listitem>
169 </itemizedlist>
171 <para>If you decide to use a <emphasis>path =</emphasis> line
172 in your [homes] section then you may find it useful
173 to use the %S macro. For example :</para>
175 <para><userinput>path = /data/pchome/%S</userinput></para>
177 <para>would be useful if you have different home directories
178 for your PCs than for UNIX access.</para>
180 <para>This is a fast and simple way to give a large number
181 of clients access to their home directories with a minimum
182 of fuss.</para>
184 <para>A similar process occurs if the requested section
185 name is "homes", except that the share name is not
186 changed to that of the requesting user. This method of using
187 the [homes] section works well if different users share
188 a client PC.</para>
190 <para>The [homes] section can specify all the parameters
191 a normal service section can specify, though some make more sense
192 than others. The following is a typical and suitable [homes]
193 section:</para>
195 <screen>
196 <computeroutput>
197 [homes]
198 writeable = yes
199 </computeroutput>
200 </screen>
202 <para>An important point is that if guest access is specified
203 in the [homes] section, all home directories will be
204 visible to all clients <emphasis>without a password</emphasis>.
205 In the very unlikely event that this is actually desirable, it
206 would be wise to also specify <emphasis>read only
207 access</emphasis>.</para>
209 <para>Note that the <emphasis>browseable</emphasis> flag for
210 auto home directories will be inherited from the global browseable
211 flag, not the [homes] browseable flag. This is useful as
212 it means setting <emphasis>browseable = no</emphasis> in
213 the [homes] section will hide the [homes] share but make
214 any auto home directories visible.</para>
215 </refsect2>
217 <refsect2>
218 <title id="PRINTERSSECT">The [printers] section</title>
220 <para>This section works like [homes],
221 but for printers.</para>
223 <para>If a [printers] section occurs in the
224 configuration file, users are able to connect to any printer
225 specified in the local host's printcap file.</para>
227 <para>When a connection request is made, the existing sections
228 are scanned. If a match is found, it is used. If no match is found,
229 but a [homes] section exists, it is used as described
230 above. Otherwise, the requested section name is treated as a
231 printer name and the appropriate printcap file is scanned to see
232 if the requested section name is a valid printer share name. If
233 a match is found, a new printer share is created by cloning
234 the [printers] section.</para>
236 <para>A few modifications are then made to the newly created
237 share:</para>
239 <itemizedlist>
240 <listitem><para>The share name is set to the located printer
241 name</para></listitem>
243 <listitem><para>If no printer name was given, the printer name
244 is set to the located printer name</para></listitem>
246 <listitem><para>If the share does not permit guest access and
247 no username was given, the username is set to the located
248 printer name.</para></listitem>
249 </itemizedlist>
251 <para>Note that the [printers] service MUST be
252 printable - if you specify otherwise, the server will refuse
253 to load the configuration file.</para>
255 <para>Typically the path specified would be that of a
256 world-writeable spool directory with the sticky bit set on
257 it. A typical [printers] entry would look like
258 this:</para>
260 <screen><computeroutput>
261 [printers]
262 path = /usr/spool/public
263 guest ok = yes
264 printable = yes
265 </computeroutput></screen>
267 <para>All aliases given for a printer in the printcap file
268 are legitimate printer names as far as the server is concerned.
269 If your printing subsystem doesn't work like that, you will have
270 to set up a pseudo-printcap. This is a file consisting of one or
271 more lines like this:</para>
273 <screen>
274 <computeroutput>
275 alias|alias|alias|alias...
276 </computeroutput>
277 </screen>
279 <para>Each alias should be an acceptable printer name for
280 your printing subsystem. In the [global] section, specify
281 the new file as your printcap. The server will then only recognize
282 names found in your pseudo-printcap, which of course can contain
283 whatever aliases you like. The same technique could be used
284 simply to limit access to a subset of your local printers.</para>
286 <para>An alias, by the way, is defined as any component of the
287 first entry of a printcap record. Records are separated by newlines,
288 components (if there are more than one) are separated by vertical
289 bar symbols ('|').</para>
291 <para>NOTE: On SYSV systems which use lpstat to determine what
292 printers are defined on the system you may be able to use
293 "printcap name = lpstat" to automatically obtain a list
294 of printers. See the "printcap name" option
295 for more details.</para>
296 </refsect2>
297 </refsect1>
299 <refsect1>
300 <title>PARAMETERS</title>
302 <para>parameters define the specific attributes of sections.</para>
304 <para>Some parameters are specific to the [global] section
305 (e.g., <emphasis>security</emphasis>). Some parameters are usable
306 in all sections (e.g., <emphasis>create mode</emphasis>). All others
307 are permissible only in normal sections. For the purposes of the
308 following descriptions the [homes] and [printers]
309 sections will be considered normal. The letter <emphasis>G</emphasis>
310 in parentheses indicates that a parameter is specific to the
311 [global] section. The letter <emphasis>S</emphasis>
312 indicates that a parameter can be specified in a service specific
313 section. Note that all <emphasis>S</emphasis> parameters can also be specified in
314 the [global] section - in which case they will define
315 the default behavior for all services.</para>
317 <para>parameters are arranged here in alphabetical order - this may
318 not create best bedfellows, but at least you can find them! Where
319 there are synonyms, the preferred synonym is described, others refer
320 to the preferred synonym.</para>
321 </refsect1>
323 <refsect1>
324 <title>VARIABLE SUBSTITUTIONS</title>
326 <para>Many of the strings that are settable in the config file
327 can take substitutions. For example the option "path =
328 /tmp/%u" would be interpreted as "path =
329 /tmp/john" if the user connected with the username john.</para>
331 <para>These substitutions are mostly noted in the descriptions below,
332 but there are some general substitutions which apply whenever they
333 might be relevant. These are:</para>
335 <variablelist>
336 <varlistentry>
337 <term>%S</term>
338 <listitem><para>the name of the current service, if any.</para>
339 </listitem>
340 </varlistentry>
342 <varlistentry>
343 <term>%P</term>
344 <listitem><para>the root directory of the current service,
345 if any.</para></listitem>
346 </varlistentry>
348 <varlistentry>
349 <term>%u</term>
350 <listitem><para>user name of the current service, if any.</para>
351 </listitem>
352 </varlistentry>
354 <varlistentry>
355 <term>%g</term>
356 <listitem><para>primary group name of %u.</para></listitem>
357 </varlistentry>
359 <varlistentry>
360 <term>%U</term>
361 <listitem><para>session user name (the user name that the client
362 wanted, not necessarily the same as the one they got).</para></listitem>
363 </varlistentry>
365 <varlistentry>
366 <term>%G</term>
367 <listitem><para>primary group name of %U.</para></listitem>
368 </varlistentry>
370 <varlistentry>
371 <term>%H</term>
372 <listitem><para>the home directory of the user given
373 by %u.</para></listitem>
374 </varlistentry>
376 <varlistentry>
377 <term>%v</term>
378 <listitem><para>the Samba version.</para></listitem>
379 </varlistentry>
381 <varlistentry>
382 <term>%h</term>
383 <listitem><para>the Internet hostname that Samba is running
384 on.</para></listitem>
385 </varlistentry>
387 <varlistentry>
388 <term>%m</term>
389 <listitem><para>the NetBIOS name of the client machine
390 (very useful).</para></listitem>
391 </varlistentry>
393 <varlistentry>
394 <term>%L</term>
395 <listitem><para>the NetBIOS name of the server. This allows you
396 to change your config based on what the client calls you. Your
397 server can have a "dual personality".</para></listitem>
398 </varlistentry>
400 <varlistentry>
401 <term>%M</term>
402 <listitem><para>the Internet name of the client machine.
403 </para></listitem>
404 </varlistentry>
406 <varlistentry>
407 <term>%N</term>
408 <listitem><para>the name of your NIS home directory server.
409 This is obtained from your NIS auto.map entry. If you have
410 not compiled Samba with the <emphasis>--with-automount</emphasis>
411 option then this value will be the same as %L.</para>
412 </listitem>
413 </varlistentry>
415 <varlistentry>
416 <term>%p</term>
417 <listitem><para>the path of the service's home directory,
418 obtained from your NIS auto.map entry. The NIS auto.map entry
419 is split up as "%N:%p".</para></listitem>
420 </varlistentry>
422 <varlistentry>
423 <term>%R</term>
424 <listitem><para>the selected protocol level after
425 protocol negotiation. It can be one of CORE, COREPLUS,
426 LANMAN1, LANMAN2 or NT1.</para></listitem>
427 </varlistentry>
429 <varlistentry>
430 <term>%d</term>
431 <listitem><para>The process id of the current server
432 process.</para></listitem>
433 </varlistentry>
435 <varlistentry>
436 <term>%a</term>
437 <listitem><para>the architecture of the remote
438 machine. Only some are recognized, and those may not be
439 100% reliable. It currently recognizes Samba, WfWg,
440 WinNT and Win95. Anything else will be known as
441 "UNKNOWN". If it gets it wrong then sending a level
442 3 log to <ulink url="mailto:samba@samba.org">samba@samba.org
443 </ulink> should allow it to be fixed.</para></listitem>
444 </varlistentry>
446 <varlistentry>
447 <term>%I</term>
448 <listitem><para>The IP address of the client machine.</para>
449 </listitem>
450 </varlistentry>
452 <varlistentry>
453 <term>%T</term>
454 <listitem><para>the current date and time.</para></listitem>
455 </varlistentry>
457 <varlistentry>
458 <term>%$(<replaceable>envvar</replaceable>)</term>
459 <listitem><para>The value of the environment variable
460 <replaceable>envar</replaceable>.</para></listitem>
461 </varlistentry>
462 </variablelist>
464 <para>There are some quite creative things that can be done
465 with these substitutions and other smb.conf options.</para
466 </refsect1>
468 <refsect1>
469 <title id="NAMEMANGLINGSECT">NAME MANGLING</title>
471 <para>Samba supports "name mangling" so that DOS and
472 Windows clients can use files that don't conform to the 8.3 format.
473 It can also be set to adjust the case of 8.3 format filenames.</para>
475 <para>There are several options that control the way mangling is
476 performed, and they are grouped here rather than listed separately.
477 For the defaults look at the output of the testparm program. </para>
479 <para>All of these options can be set separately for each service
480 (or globally, of course). </para>
482 <para>The options are: </para>
484 <variablelist>
486 <varlistentry>
487 <term>mangle case = yes/no</term>
488 <listitem><para> controls if names that have characters that
489 aren't of the "default" case are mangled. For example,
490 if this is yes then a name like "Mail" would be mangled.
491 Default <emphasis>no</emphasis>.</para></listitem>
492 </varlistentry>
494 <varlistentry>
495 <term>case sensitive = yes/no</term>
496 <listitem><para>controls whether filenames are case sensitive. If
497 they aren't then Samba must do a filename search and match on passed
498 names. Default <emphasis>no</emphasis>.</para></listitem>
499 </varlistentry>
501 <varlistentry>
502 <term>default case = upper/lower</term>
503 <listitem><para>controls what the default case is for new
504 filenames. Default <emphasis>lower</emphasis>.</para></listitem>
505 </varlistentry>
507 <varlistentry>
508 <term>preserve case = yes/no</term>
509 <listitem><para>controls if new files are created with the
510 case that the client passes, or if they are forced to be the
511 "default" case. Default <emphasis>yes</emphasis>.
512 </para></listitem>
513 </varlistentry>
515 <varlistentry>
516 <term>short preserve case = yes/no</term>
517 <listitem><para>controls if new files which conform to 8.3 syntax,
518 that is all in upper case and of suitable length, are created
519 upper case, or if they are forced to be the "default"
520 case. This option can be use with "preserve case = yes"
521 to permit long filenames to retain their case, while short names
522 are lowercased. Default <emphasis>yes</emphasis>.</para></listitem>
523 </varlistentry>
524 </variablelist>
526 <para>By default, Samba 2.2 has the same semantics as a Windows
527 NT server, in that it is case insensitive but case preserving.</para>
529 </refsect1>
531 <refsect1>
532 <title id="VALIDATIONSECT">NOTE ABOUT USERNAME/PASSWORD VALIDATION</title>
534 <para>There are a number of ways in which a user can connect
535 to a service. The server uses the following steps in determining
536 if it will allow a connection to a specified service. If all the
537 steps fail, then the connection request is rejected. However, if one of the
538 steps succeeds, then the following steps are not checked.</para>
540 <para>If the service is marked "guest only = yes" then
541 steps 1 to 5 are skipped.</para>
543 <orderedlist numeration="Arabic">
544 <listitem><para>If the client has passed a username/password
545 pair and that username/password pair is validated by the UNIX
546 system's password programs then the connection is made as that
547 username. Note that this includes the
548 \\server\service%<replaceable>username</replaceable> method of passing
549 a username.</para></listitem>
551 <listitem><para>If the client has previously registered a username
552 with the system and now supplies a correct password for that
553 username then the connection is allowed.</para></listitem>
555 <listitem><para>The client's NetBIOS name and any previously
556 used user names are checked against the supplied password, if
557 they match then the connection is allowed as the corresponding
558 user.</para></listitem>
560 <listitem><para>If the client has previously validated a
561 username/password pair with the server and the client has passed
562 the validation token then that username is used. </para></listitem>
564 <listitem><para>If a "user = " field is given in the
565 <filename>smb.conf</filename> file for the service and the client
566 has supplied a password, and that password matches (according to
567 the UNIX system's password checking) with one of the usernames
568 from the "user =" field then the connection is made as
569 the username in the "user =" line. If one
570 of the username in the "user =" list begins with a
571 '@' then that name expands to a list of names in
572 the group of the same name.</para></listitem>
574 <listitem><para>If the service is a guest service then a
575 connection is made as the username given in the "guest
576 account =" for the service, irrespective of the
577 supplied password.</para></listitem>
578 </orderedlist>
580 </refsect1>
582 <refsect1>
583 <title>COMPLETE LIST OF GLOBAL PARAMETERS</title>
585 <para>Here is a list of all global parameters. See the section of
586 each parameter for details. Note that some are synonyms.</para>
588 <itemizedlist>
589 <listitem><para><link linkend="ABORTSHUTDOWNSCRIPT"><parameter>abort shutdown script</parameter></link></para></listitem>
590 <listitem><para><link linkend="ADDPRINTERCOMMAND"><parameter>add printer command</parameter></link></para></listitem>
591 <listitem><para><link linkend="ADDSHARECOMMAND"><parameter>add share command</parameter></link></para></listitem>
592 <listitem><para><link linkend="ADDUSERSCRIPT"><parameter>add user script</parameter></link></para></listitem>
593 <listitem><para><link linkend="ADDMACHINESCRIPT"><parameter>add machine script</parameter></link></para></listitem>
594 <listitem><para><link linkend="ALLOWTRUSTEDDOMAINS"><parameter>allow trusted domains</parameter></link></para></listitem>
595 <listitem><para><link linkend="ANNOUNCEAS"><parameter>announce as</parameter></link></para></listitem>
596 <listitem><para><link linkend="ANNOUNCEVERSION"><parameter>announce version</parameter></link></para></listitem>
597 <listitem><para><link linkend="AUTOSERVICES"><parameter>auto services</parameter></link></para></listitem>
598 <listitem><para><link linkend="BINDINTERFACESONLY"><parameter>bind interfaces only</parameter></link></para></listitem>
599 <listitem><para><link linkend="BROWSELIST"><parameter>browse list</parameter></link></para></listitem>
600 <listitem><para><link linkend="CHANGENOTIFYTIMEOUT"><parameter>change notify timeout</parameter></link></para></listitem>
601 <listitem><para><link linkend="CHANGESHARECOMMAND"><parameter>change share command</parameter></link></para></listitem>
602 <listitem><para><link linkend="CHARACTERSET"><parameter>character set</parameter></link></para></listitem>
603 <listitem><para><link linkend="CLIENTCODEPAGE"><parameter>client code page</parameter></link></para></listitem>
604 <listitem><para><link linkend="CODEPAGEDIRECTORY"><parameter>code page directory</parameter></link></para></listitem>
605 <listitem><para><link linkend="CODINGSYSTEM"><parameter>coding system</parameter></link></para></listitem>
606 <listitem><para><link linkend="CONFIGFILE"><parameter>config file</parameter></link></para></listitem>
607 <listitem><para><link linkend="DEADTIME"><parameter>deadtime</parameter></link></para></listitem>
608 <listitem><para><link linkend="DEBUGHIRESTIMESTAMP"><parameter>debug hires timestamp</parameter></link></para></listitem>
609 <listitem><para><link linkend="DEBUGPID"><parameter>debug pid</parameter></link></para></listitem>
610 <listitem><para><link linkend="DEBUGTIMESTAMP"><parameter>debug timestamp</parameter></link></para></listitem>
611 <listitem><para><link linkend="DEBUGUID"><parameter>debug uid</parameter></link></para></listitem>
612 <listitem><para><link linkend="DEBUGLEVEL"><parameter>debuglevel</parameter></link></para></listitem>
613 <listitem><para><link linkend="DEFAULT"><parameter>default</parameter></link></para></listitem>
614 <listitem><para><link linkend="DEFAULTSERVICE"><parameter>default service</parameter></link></para></listitem>
615 <listitem><para><link linkend="DELETEPRINTERCOMMAND"><parameter>delete printer command</parameter></link></para></listitem>
616 <listitem><para><link linkend="DELETESHARECOMMAND"><parameter>delete share command</parameter></link></para></listitem>
617 <listitem><para><link linkend="DELETEUSERSCRIPT"><parameter>delete user script</parameter></link></para></listitem>
618 <listitem><para><link linkend="DFREECOMMAND"><parameter>dfree command</parameter></link></para></listitem>
619 <listitem><para><link linkend="DISABLESPOOLSS"><parameter>disable spoolss</parameter></link></para></listitem>
620 <listitem><para><link linkend="DNSPROXY"><parameter>dns proxy</parameter></link></para></listitem>
621 <listitem><para><link linkend="DOMAINADMINGROUP"><parameter>domain admin group</parameter></link></para></listitem>
622 <listitem><para><link linkend="DOMAINGUESTGROUP"><parameter>domain guest group</parameter></link></para></listitem>
623 <listitem><para><link linkend="DOMAINLOGONS"><parameter>domain logons</parameter></link></para></listitem>
624 <listitem><para><link linkend="DOMAINMASTER"><parameter>domain master</parameter></link></para></listitem>
625 <listitem><para><link linkend="ENCRYPTPASSWORDS"><parameter>encrypt passwords</parameter></link></para></listitem>
626 <listitem><para><link linkend="ENHANCEDBROWSING"><parameter>enhanced browsing</parameter></link></para></listitem>
627 <listitem><para><link linkend="ENUMPORTSCOMMAND"><parameter>enumports command</parameter></link></para></listitem>
628 <listitem><para><link linkend="GETWDCACHE"><parameter>getwd cache</parameter></link></para></listitem>
629 <listitem><para><link linkend="HIDELOCALUSERS"><parameter>hide local users</parameter></link></para></listitem>
630 <listitem><para><link linkend="HIDEUNREADABLE"><parameter>hide unreadable</parameter></link></para></listitem>
631 <listitem><para><link linkend="HOMEDIRMAP"><parameter>homedir map</parameter></link></para></listitem>
632 <listitem><para><link linkend="HOSTMSDFS"><parameter>host msdfs</parameter></link></para></listitem>
633 <listitem><para><link linkend="HOSTSEQUIV"><parameter>hosts equiv</parameter></link></para></listitem>
634 <listitem><para><link linkend="INTERFACES"><parameter>interfaces</parameter></link></para></listitem>
635 <listitem><para><link linkend="KEEPALIVE"><parameter>keepalive</parameter></link></para></listitem>
636 <listitem><para><link linkend="KERNELOPLOCKS"><parameter>kernel oplocks</parameter></link></para></listitem>
637 <listitem><para><link linkend="LANMANAUTH"><parameter>lanman auth</parameter></link></para></listitem>
638 <listitem><para><link linkend="LARGEREADWRITE"><parameter>large readwrite</parameter></link></para></listitem>
639 <listitem><para><link linkend="LMANNOUNCE"><parameter>lm announce</parameter></link></para></listitem>
640 <listitem><para><link linkend="LMINTERVAL"><parameter>lm interval</parameter></link></para></listitem>
641 <listitem><para><link linkend="LOADPRINTERS"><parameter>load printers</parameter></link></para></listitem>
642 <listitem><para><link linkend="LOCALMASTER"><parameter>local master</parameter></link></para></listitem>
643 <listitem><para><link linkend="LOCKDIR"><parameter>lock dir</parameter></link></para></listitem>
644 <listitem><para><link linkend="LOCKDIRECTORY"><parameter>lock directory</parameter></link></para></listitem>
645 <listitem><para><link linkend="LOGFILE"><parameter>log file</parameter></link></para></listitem>
646 <listitem><para><link linkend="LOGLEVEL"><parameter>log level</parameter></link></para></listitem>
647 <listitem><para><link linkend="LOGONDRIVE"><parameter>logon drive</parameter></link></para></listitem>
648 <listitem><para><link linkend="LOGONHOME"><parameter>logon home</parameter></link></para></listitem>
649 <listitem><para><link linkend="LOGONPATH"><parameter>logon path</parameter></link></para></listitem>
650 <listitem><para><link linkend="LOGONSCRIPT"><parameter>logon script</parameter></link></para></listitem>
651 <listitem><para><link linkend="LPQCACHETIME"><parameter>lpq cache time</parameter></link></para></listitem>
652 <listitem><para><link linkend="MACHINEPASSWORDTIMEOUT"><parameter>machine password timeout</parameter></link></para></listitem>
653 <listitem><para><link linkend="MANGLEDSTACK"><parameter>mangled stack</parameter></link></para></listitem>
654 <listitem><para><link linkend="MAPTOGUEST"><parameter>map to guest</parameter></link></para></listitem>
655 <listitem><para><link linkend="MAXDISKSIZE"><parameter>max disk size</parameter></link></para></listitem>
656 <listitem><para><link linkend="MAXLOGSIZE"><parameter>max log size</parameter></link></para></listitem>
657 <listitem><para><link linkend="MAXMUX"><parameter>max mux</parameter></link></para></listitem>
658 <listitem><para><link linkend="MAXOPENFILES"><parameter>max open files</parameter></link></para></listitem>
659 <listitem><para><link linkend="MAXPROTOCOL"><parameter>max protocol</parameter></link></para></listitem>
660 <listitem><para><link linkend="MAXSMBDPROCESSES"><parameter>max smbd processes</parameter></link></para></listitem>
661 <listitem><para><link linkend="MAXTTL"><parameter>max ttl</parameter></link></para></listitem>
662 <listitem><para><link linkend="MAXWINSTTL"><parameter>max wins ttl</parameter></link></para></listitem>
663 <listitem><para><link linkend="MAXXMIT"><parameter>max xmit</parameter></link></para></listitem>
664 <listitem><para><link linkend="MESSAGECOMMAND"><parameter>message command</parameter></link></para></listitem>
665 <listitem><para><link linkend="MINPASSWDLENGTH"><parameter>min passwd length</parameter></link></para></listitem>
666 <listitem><para><link linkend="MINPASSWORDLENGTH"><parameter>min password length</parameter></link></para></listitem>
667 <listitem><para><link linkend="MINPROTOCOL"><parameter>min protocol</parameter></link></para></listitem>
668 <listitem><para><link linkend="MINWINSTTL"><parameter>min wins ttl</parameter></link></para></listitem>
669 <listitem><para><link linkend="NAMERESOLVEORDER"><parameter>name resolve order</parameter></link></para></listitem>
670 <listitem><para><link linkend="NETBIOSALIASES"><parameter>netbios aliases</parameter></link></para></listitem>
671 <listitem><para><link linkend="NETBIOSNAME"><parameter>netbios name</parameter></link></para></listitem>
672 <listitem><para><link linkend="NETBIOSSCOPE"><parameter>netbios scope</parameter></link></para></listitem>
673 <listitem><para><link linkend="NISHOMEDIR"><parameter>nis homedir</parameter></link></para></listitem>
674 <listitem><para><link linkend="NTACLSUPPORT"><parameter>nt acl support</parameter></link></para></listitem>
675 <listitem><para><link linkend="NTPIPESUPPORT"><parameter>nt pipe support</parameter></link></para></listitem>
676 <listitem><para><link linkend="NTSMBSUPPORT"><parameter>nt smb support</parameter></link></para></listitem>
677 <listitem><para><link linkend="NULLPASSWORDS"><parameter>null passwords</parameter></link></para></listitem>
678 <listitem><para><link linkend="OBEYPAMRESTRICTIONS"><parameter>obey pam restrictions</parameter></link></para></listitem>
679 <listitem><para><link linkend="OPLOCKBREAKWAITTIME"><parameter>oplock break wait time</parameter></link></para></listitem>
680 <listitem><para><link linkend="OSLEVEL"><parameter>os level</parameter></link></para></listitem>
681 <listitem><para><link linkend="OS2DRIVERMAP"><parameter>os2 driver map</parameter></link></para></listitem>
682 <listitem><para><link linkend="PAMPASSWORDCHANGE"><parameter>pam password change</parameter></link></para></listitem>
683 <listitem><para><link linkend="PANICACTION"><parameter>panic action</parameter></link></para></listitem>
684 <listitem><para><link linkend="PASSWDCHAT"><parameter>passwd chat</parameter></link></para></listitem>
685 <listitem><para><link linkend="PASSWDCHATDEBUG"><parameter>passwd chat debug</parameter></link></para></listitem>
686 <listitem><para><link linkend="PASSWDPROGRAM"><parameter>passwd program</parameter></link></para></listitem>
687 <listitem><para><link linkend="PASSWORDLEVEL"><parameter>password level</parameter></link></para></listitem>
688 <listitem><para><link linkend="PASSWORDSERVER"><parameter>password server</parameter></link></para></listitem>
689 <listitem><para><link linkend="PREFEREDMASTER"><parameter>prefered master</parameter></link></para></listitem>
690 <listitem><para><link linkend="PREFERREDMASTER"><parameter>preferred master</parameter></link></para></listitem>
691 <listitem><para><link linkend="PRELOAD"><parameter>preload</parameter></link></para></listitem>
692 <listitem><para><link linkend="PRINTCAP"><parameter>printcap</parameter></link></para></listitem>
693 <listitem><para><link linkend="PRINTCAPNAME"><parameter>printcap name</parameter></link></para></listitem>
694 <listitem><para><link linkend="PRINTERDRIVERFILE"><parameter>printer driver file</parameter></link></para></listitem>
695 <listitem><para><link linkend="PROTOCOL"><parameter>protocol</parameter></link></para></listitem>
696 <listitem><para><link linkend="READBMPX"><parameter>read bmpx</parameter></link></para></listitem>
697 <listitem><para><link linkend="READRAW"><parameter>read raw</parameter></link></para></listitem>
698 <listitem><para><link linkend="READSIZE"><parameter>read size</parameter></link></para></listitem>
699 <listitem><para><link linkend="REMOTEANNOUNCE"><parameter>remote announce</parameter></link></para></listitem>
700 <listitem><para><link linkend="REMOTEBROWSESYNC"><parameter>remote browse sync</parameter></link></para></listitem>
701 <listitem><para><link linkend="RESTRICTANONYMOUS"><parameter>restrict anonymous</parameter></link></para></listitem>
702 <listitem><para><link linkend="ROOT"><parameter>root</parameter></link></para></listitem>
703 <listitem><para><link linkend="ROOTDIR"><parameter>root dir</parameter></link></para></listitem>
704 <listitem><para><link linkend="ROOTDIRECTORY"><parameter>root directory</parameter></link></para></listitem>
705 <listitem><para><link linkend="SECURITY"><parameter>security</parameter></link></para></listitem>
706 <listitem><para><link linkend="SERVERSTRING"><parameter>server string</parameter></link></para></listitem>
707 <listitem><para><link linkend="SHOWADDPRINTERWIZARD"><parameter>show add printer wizard</parameter></link></para></listitem>
708 <listitem><para><link linkend="SHUTDOWNSCRIPT"><parameter>shutdown script</parameter></link></para></listitem>
709 <listitem><para><link linkend="SMBPASSWDFILE"><parameter>smb passwd file</parameter></link></para></listitem>
710 <listitem><para><link linkend="SOCKETADDRESS"><parameter>socket address</parameter></link></para></listitem>
711 <listitem><para><link linkend="SOCKETOPTIONS"><parameter>socket options</parameter></link></para></listitem>
712 <listitem><para><link linkend="SOURCEENVIRONMENT"><parameter>source environment</parameter></link></para></listitem>
713 <listitem><para><link linkend="SSL"><parameter>ssl</parameter></link></para></listitem>
714 <listitem><para><link linkend="SSLCACERTDIR"><parameter>ssl CA certDir</parameter></link></para></listitem>
715 <listitem><para><link linkend="SSLCACERTFILE"><parameter>ssl CA certFile</parameter></link></para></listitem>
716 <listitem><para><link linkend="SSLCIPHERS"><parameter>ssl ciphers</parameter></link></para></listitem>
717 <listitem><para><link linkend="SSLCLIENTCERT"><parameter>ssl client cert</parameter></link></para></listitem>
718 <listitem><para><link linkend="SSLCLIENTKEY"><parameter>ssl client key</parameter></link></para></listitem>
719 <listitem><para><link linkend="SSLCOMPATIBILITY"><parameter>ssl compatibility</parameter></link></para></listitem>
720 <listitem><para><link linkend="SSLHOSTS"><parameter>ssl hosts</parameter></link></para></listitem>
721 <listitem><para><link linkend="SSLHOSTSRESIGN"><parameter>ssl hosts resign</parameter></link></para></listitem>
722 <listitem><para><link linkend="SSLREQUIRECLIENTCERT"><parameter>ssl require clientcert</parameter></link></para></listitem>
723 <listitem><para><link linkend="SSLREQUIRESERVERCERT"><parameter>ssl require servercert</parameter></link></para></listitem>
724 <listitem><para><link linkend="SSLSERVERCERT"><parameter>ssl server cert</parameter></link></para></listitem>
725 <listitem><para><link linkend="SSLSERVERKEY"><parameter>ssl server key</parameter></link></para></listitem>
726 <listitem><para><link linkend="SSLVERSION"><parameter>ssl version</parameter></link></para></listitem>
727 <listitem><para><link linkend="STATCACHE"><parameter>stat cache</parameter></link></para></listitem>
728 <listitem><para><link linkend="STATCACHESIZE"><parameter>stat cache size</parameter></link></para></listitem>
729 <listitem><para><link linkend="STRIPDOT"><parameter>strip dot</parameter></link></para></listitem>
730 <listitem><para><link linkend="SYSLOG"><parameter>syslog</parameter></link></para></listitem>
731 <listitem><para><link linkend="SYSLOGONLY"><parameter>syslog only</parameter></link></para></listitem>
732 <listitem><para><link linkend="TEMPLATEHOMEDIR"><parameter>template homedir</parameter></link></para></listitem>
733 <listitem><para><link linkend="TEMPLATESHELL"><parameter>template shell</parameter></link></para></listitem>
734 <listitem><para><link linkend="TIMEOFFSET"><parameter>time offset</parameter></link></para></listitem>
735 <listitem><para><link linkend="TIMESERVER"><parameter>time server</parameter></link></para></listitem>
736 <listitem><para><link linkend="TIMESTAMPLOGS"><parameter>timestamp logs</parameter></link></para></listitem>
737 <listitem><para><link linkend="TOTALPRINTJOBS"><parameter>total print jobs</parameter></link></para></listitem>
738 <listitem><para><link linkend="UNIXPASSWORDSYNC"><parameter>unix password sync</parameter></link></para></listitem>
739 <listitem><para><link linkend="UPDATEENCRYPTED"><parameter>update encrypted</parameter></link></para></listitem>
740 <listitem><para><link linkend="USERHOSTS"><parameter>use rhosts</parameter></link></para></listitem>
741 <listitem><para><link linkend="USERNAMELEVEL"><parameter>username level</parameter></link></para></listitem>
742 <listitem><para><link linkend="USERNAMEMAP"><parameter>username map</parameter></link></para></listitem>
743 <listitem><para><link linkend="UTMP"><parameter>utmp</parameter></link></para></listitem>
744 <listitem><para><link linkend="UTMPDIRECTORY"><parameter>utmp directory</parameter></link></para></listitem>
745 <listitem><para><link linkend="VALIDCHARS"><parameter>valid chars</parameter></link></para></listitem>
746 <listitem><para><link linkend="WINBINDCACHETIME"><parameter>winbind cache time</parameter></link></para></listitem>
747 <listitem><para><link linkend="WINBINDGID"><parameter>winbind gid</parameter></link></para></listitem>
748 <listitem><para><link linkend="WINBINDSEPARATOR"><parameter>winbind separator</parameter></link></para></listitem>
749 <listitem><para><link linkend="WINBINDUID"><parameter>winbind uid</parameter></link></para></listitem>
750 <listitem><para><link linkend="WINSHOOK"><parameter>wins hook</parameter></link></para></listitem>
751 <listitem><para><link linkend="WINSPROXY"><parameter>wins proxy</parameter></link></para></listitem>
752 <listitem><para><link linkend="WINSSERVER"><parameter>wins server</parameter></link></para></listitem>
753 <listitem><para><link linkend="WINSSUPPORT"><parameter>wins support</parameter></link></para></listitem>
754 <listitem><para><link linkend="WORKGROUP"><parameter>workgroup</parameter></link></para></listitem>
755 <listitem><para><link linkend="WRITERAW"><parameter>write raw</parameter></link></para></listitem>
756 </itemizedlist>
758 </refsect1>
760 <refsect1>
761 <title>COMPLETE LIST OF SERVICE PARAMETERS</title>
763 <para>Here is a list of all service parameters. See the section on
764 each parameter for details. Note that some are synonyms.</para>
766 <itemizedlist>
767 <listitem><para><link linkend="ADMINUSERS"><parameter>admin users</parameter></link></para></listitem>
768 <listitem><para><link linkend="ALLOWHOSTS"><parameter>allow hosts</parameter></link></para></listitem>
769 <listitem><para><link linkend="AVAILABLE"><parameter>available</parameter></link></para></listitem>
770 <listitem><para><link linkend="BLOCKINGLOCKS"><parameter>blocking locks</parameter></link></para></listitem>
771 <listitem><para><link linkend="BROWSABLE"><parameter>browsable</parameter></link></para></listitem>
772 <listitem><para><link linkend="BROWSEABLE"><parameter>browseable</parameter></link></para></listitem>
773 <listitem><para><link linkend="CASESENSITIVE"><parameter>case sensitive</parameter></link></para></listitem>
774 <listitem><para><link linkend="CASESIGNAMES"><parameter>casesignames</parameter></link></para></listitem>
775 <listitem><para><link linkend="COMMENT"><parameter>comment</parameter></link></para></listitem>
776 <listitem><para><link linkend="COPY"><parameter>copy</parameter></link></para></listitem>
777 <listitem><para><link linkend="CREATEMASK"><parameter>create mask</parameter></link></para></listitem>
778 <listitem><para><link linkend="CREATEMODE"><parameter>create mode</parameter></link></para></listitem>
779 <listitem><para><link linkend="DEFAULTCASE"><parameter>default case</parameter></link></para></listitem>
780 <listitem><para><link linkend="DELETEREADONLY"><parameter>delete readonly</parameter></link></para></listitem>
781 <listitem><para><link linkend="DELETEVETOFILES"><parameter>delete veto files</parameter></link></para></listitem>
782 <listitem><para><link linkend="DENYHOSTS"><parameter>deny hosts</parameter></link></para></listitem>
783 <listitem><para><link linkend="DIRECTORY"><parameter>directory</parameter></link></para></listitem>
784 <listitem><para><link linkend="DIRECTORYMASK"><parameter>directory mask</parameter></link></para></listitem>
785 <listitem><para><link linkend="DIRECTORYMODE"><parameter>directory mode</parameter></link></para></listitem>
786 <listitem><para><link linkend="DIRECTORYSECURITYMASK"><parameter>directory security mask</parameter></link></para></listitem>
787 <listitem><para><link linkend="DONTDESCEND"><parameter>dont descend</parameter></link></para></listitem>
788 <listitem><para><link linkend="DOSFILEMODE"><parameter>dos filemode</parameter></link></para></listitem>
789 <listitem><para><link linkend="DOSFILETIMERESOLUTION"><parameter>dos filetime resolution</parameter></link></para></listitem>
790 <listitem><para><link linkend="DOSFILETIMES"><parameter>dos filetimes</parameter></link></para></listitem>
791 <listitem><para><link linkend="EXEC"><parameter>exec</parameter></link></para></listitem>
792 <listitem><para><link linkend="FAKEDIRECTORYCREATETIMES"><parameter>fake directory create times</parameter></link></para></listitem>
793 <listitem><para><link linkend="FAKEOPLOCKS"><parameter>fake oplocks</parameter></link></para></listitem>
794 <listitem><para><link linkend="FOLLOWSYMLINKS"><parameter>follow symlinks</parameter></link></para></listitem>
795 <listitem><para><link linkend="FORCECREATEMODE"><parameter>force create mode</parameter></link></para></listitem>
796 <listitem><para><link linkend="FORCEDIRECTORYMODE"><parameter>force directory mode</parameter></link></para></listitem>
797 <listitem><para><link linkend="FORCEDIRECTORYSECURITYMODE"><parameter>force directory security mode</parameter></link></para></listitem>
798 <listitem><para><link linkend="FORCEGROUP"><parameter>force group</parameter></link></para></listitem>
799 <listitem><para><link linkend="FORCESECURITYMODE"><parameter>force security mode</parameter></link></para></listitem>
800 <listitem><para><link linkend="FORCEUSER"><parameter>force user</parameter></link></para></listitem>
801 <listitem><para><link linkend="FSTYPE"><parameter>fstype</parameter></link></para></listitem>
802 <listitem><para><link linkend="GROUP"><parameter>group</parameter></link></para></listitem>
803 <listitem><para><link linkend="GUESTACCOUNT"><parameter>guest account</parameter></link></para></listitem>
804 <listitem><para><link linkend="GUESTOK"><parameter>guest ok</parameter></link></para></listitem>
805 <listitem><para><link linkend="GUESTONLY"><parameter>guest only</parameter></link></para></listitem>
806 <listitem><para><link linkend="HIDEDOTFILES"><parameter>hide dot files</parameter></link></para></listitem>
807 <listitem><para><link linkend="HIDEFILES"><parameter>hide files</parameter></link></para></listitem>
808 <listitem><para><link linkend="HOSTSALLOW"><parameter>hosts allow</parameter></link></para></listitem>
809 <listitem><para><link linkend="HOSTSDENY"><parameter>hosts deny</parameter></link></para></listitem>
810 <listitem><para><link linkend="INCLUDE"><parameter>include</parameter></link></para></listitem>
811 <listitem><para><link linkend="INHERITPERMISSIONS"><parameter>inherit permissions</parameter></link></para></listitem>
812 <listitem><para><link linkend="INVALIDUSERS"><parameter>invalid users</parameter></link></para></listitem>
813 <listitem><para><link linkend="LEVEL2OPLOCKS"><parameter>level2 oplocks</parameter></link></para></listitem>
814 <listitem><para><link linkend="LOCKING"><parameter>locking</parameter></link></para></listitem>
815 <listitem><para><link linkend="LPPAUSECOMMAND"><parameter>lppause command</parameter></link></para></listitem>
816 <listitem><para><link linkend="LPQCOMMAND"><parameter>lpq command</parameter></link></para></listitem>
817 <listitem><para><link linkend="LPRESUMECOMMAND"><parameter>lpresume command</parameter></link></para></listitem>
818 <listitem><para><link linkend="LPRMCOMMAND"><parameter>lprm command</parameter></link></para></listitem>
819 <listitem><para><link linkend="MAGICOUTPUT"><parameter>magic output</parameter></link></para></listitem>
820 <listitem><para><link linkend="MAGICSCRIPT"><parameter>magic script</parameter></link></para></listitem>
821 <listitem><para><link linkend="MANGLECASE"><parameter>mangle case</parameter></link></para></listitem>
822 <listitem><para><link linkend="MANGLEDMAP"><parameter>mangled map</parameter></link></para></listitem>
823 <listitem><para><link linkend="MANGLEDNAMES"><parameter>mangled names</parameter></link></para></listitem>
824 <listitem><para><link linkend="MANGLINGCHAR"><parameter>mangling char</parameter></link></para></listitem>
825 <listitem><para><link linkend="MAPARCHIVE"><parameter>map archive</parameter></link></para></listitem>
826 <listitem><para><link linkend="MAPHIDDEN"><parameter>map hidden</parameter></link></para></listitem>
827 <listitem><para><link linkend="MAPSYSTEM"><parameter>map system</parameter></link></para></listitem>
828 <listitem><para><link linkend="MAXCONNECTIONS"><parameter>max connections</parameter></link></para></listitem>
829 <listitem><para><link linkend="MAXPRINTJOBS"><parameter>max print jobs</parameter></link></para></listitem>
830 <listitem><para><link linkend="MINPRINTSPACE"><parameter>min print space</parameter></link></para></listitem>
831 <listitem><para><link linkend="MSDFSROOT"><parameter>msdfs root</parameter></link></para></listitem>
832 <listitem><para><link linkend="ONLYGUEST"><parameter>only guest</parameter></link></para></listitem>
833 <listitem><para><link linkend="ONLYUSER"><parameter>only user</parameter></link></para></listitem>
834 <listitem><para><link linkend="OPLOCKCONTENTIONLIMIT"><parameter>oplock contention limit</parameter></link></para></listitem>
835 <listitem><para><link linkend="OPLOCKS"><parameter>oplocks</parameter></link></para></listitem>
836 <listitem><para><link linkend="PATH"><parameter>path</parameter></link></para></listitem>
837 <listitem><para><link linkend="POSIXLOCKING"><parameter>posix locking</parameter></link></para></listitem>
838 <listitem><para><link linkend="POSTEXEC"><parameter>postexec</parameter></link></para></listitem>
839 <listitem><para><link linkend="POSTSCRIPT"><parameter>postscript</parameter></link></para></listitem>
840 <listitem><para><link linkend="PREEXEC"><parameter>preexec</parameter></link></para></listitem>
841 <listitem><para><link linkend="PREEXECCLOSE"><parameter>preexec close</parameter></link></para></listitem>
842 <listitem><para><link linkend="PRESERVECASE"><parameter>preserve case</parameter></link></para></listitem>
843 <listitem><para><link linkend="PRINTCOMMAND"><parameter>print command</parameter></link></para></listitem>
844 <listitem><para><link linkend="PRINTOK"><parameter>print ok</parameter></link></para></listitem>
845 <listitem><para><link linkend="PRINTABLE"><parameter>printable</parameter></link></para></listitem>
846 <listitem><para><link linkend="PRINTER"><parameter>printer</parameter></link></para></listitem>
847 <listitem><para><link linkend="PRINTERADMIN"><parameter>printer admin</parameter></link></para></listitem>
848 <listitem><para><link linkend="PRINTERDRIVER"><parameter>printer driver</parameter></link></para></listitem>
849 <listitem><para><link linkend="PRINTERDRIVERLOCATION"><parameter>printer driver location</parameter></link></para></listitem>
850 <listitem><para><link linkend="PRINTERNAME"><parameter>printer name</parameter></link></para></listitem>
851 <listitem><para><link linkend="PRINTING"><parameter>printing</parameter></link></para></listitem>
852 <listitem><para><link linkend="PUBLIC"><parameter>public</parameter></link></para></listitem>
853 <listitem><para><link linkend="QUEUEPAUSECOMMAND"><parameter>queuepause command</parameter></link></para></listitem>
854 <listitem><para><link linkend="QUEUERESUMECOMMAND"><parameter>queueresume command</parameter></link></para></listitem>
855 <listitem><para><link linkend="READLIST"><parameter>read list</parameter></link></para></listitem>
856 <listitem><para><link linkend="READONLY"><parameter>read only</parameter></link></para></listitem>
857 <listitem><para><link linkend="ROOTPOSTEXEC"><parameter>root postexec</parameter></link></para></listitem>
858 <listitem><para><link linkend="ROOTPREEXEC"><parameter>root preexec</parameter></link></para></listitem>
859 <listitem><para><link linkend="ROOTPREEXECCLOSE"><parameter>root preexec close</parameter></link></para></listitem>
860 <listitem><para><link linkend="SECURITYMASK"><parameter>security mask</parameter></link></para></listitem>
861 <listitem><para><link linkend="SETDIRECTORY"><parameter>set directory</parameter></link></para></listitem>
862 <listitem><para><link linkend="SHORTPRESERVECASE"><parameter>short preserve case</parameter></link></para></listitem>
863 <listitem><para><link linkend="STATUS"><parameter>status</parameter></link></para></listitem>
864 <listitem><para><link linkend="STRICTLOCKING"><parameter>strict locking</parameter></link></para></listitem>
865 <listitem><para><link linkend="STRICTSYNC"><parameter>strict sync</parameter></link></para></listitem>
866 <listitem><para><link linkend="SYNCALWAYS"><parameter>sync always</parameter></link></para></listitem>
867 <listitem><para><link linkend="USECLIENTDRIVER"><parameter>use client driver</parameter></link></para></listitem>
868 <listitem><para><link linkend="USER"><parameter>user</parameter></link></para></listitem>
869 <listitem><para><link linkend="USERNAME"><parameter>username</parameter></link></para></listitem>
870 <listitem><para><link linkend="USERS"><parameter>users</parameter></link></para></listitem>
871 <listitem><para><link linkend="VALIDUSERS"><parameter>valid users</parameter></link></para></listitem>
872 <listitem><para><link linkend="VETOFILES"><parameter>veto files</parameter></link></para></listitem>
873 <listitem><para><link linkend="VETOOPLOCKFILES"><parameter>veto oplock files</parameter></link></para></listitem>
874 <listitem><para><link linkend="VFSOBJECT"><parameter>vfs object</parameter></link></para></listitem>
875 <listitem><para><link linkend="VFSOPTIONS"><parameter>vfs options</parameter></link></para></listitem>
876 <listitem><para><link linkend="VOLUME"><parameter>volume</parameter></link></para></listitem>
877 <listitem><para><link linkend="WIDELINKS"><parameter>wide links</parameter></link></para></listitem>
878 <listitem><para><link linkend="WRITABLE"><parameter>writable</parameter></link></para></listitem>
879 <listitem><para><link linkend="WRITECACHESIZE"><parameter>write cache size</parameter></link></para></listitem>
880 <listitem><para><link linkend="WRITELIST"><parameter>write list</parameter></link></para></listitem>
881 <listitem><para><link linkend="WRITEOK"><parameter>write ok</parameter></link></para></listitem>
882 <listitem><para><link linkend="WRITEABLE"><parameter>writeable</parameter></link></para></listitem>
883 </itemizedlist>
885 </refsect1>
887 <refsect1>
888 <title>EXPLANATION OF EACH PARAMETER</title>
890 <variablelist>
892 <varlistentry>
893 <term><anchor id="ABORTSHUTDOWNSCRIPT">abort shutdown script (G)</term>
894 <listitem><para><emphasis>This parameter only exists in the HEAD cvs branch</emphasis>
895 This a full path name to a script called by
896 <ulink url="smbd.8.html"><command>smbd(8)</command></ulink> that
897 should stop a shutdown procedure issued by the <link
898 linkend="SHUTDOWNSCRIPT"><parameter>shutdown script</parameter></link>.</para>
900 <para>This command will be run as user.</para>
902 <para>Default: <emphasis>None</emphasis>.</para>
903 <para>Example: <command>abort shutdown script = /sbin/shutdown -c</command></para>
904 </listitem>
905 </varlistentry>
908 <varlistentry>
909 <term><anchor id="ADDPRINTERCOMMAND">add printer command (G)</term>
910 <listitem><para>With the introduction of MS-RPC based printing
911 support for Windows NT/2000 clients in Samba 2.2, The MS Add
912 Printer Wizard (APW) icon is now also available in the
913 "Printers..." folder displayed a share listing. The APW
914 allows for printers to be add remotely to a Samba or Windows
915 NT/2000 print server.</para>
917 <para>For a Samba host this means that the printer must be
918 physically added to the underlying printing system. The <parameter>add
919 printer command</parameter> defines a script to be run which
920 will perform the necessary operations for adding the printer
921 to the print system and to add the appropriate service definition
922 to the <filename>smb.conf</filename> file in order that it can be
923 shared by <ulink url="smbd.8.html"><command>smbd(8)</command>
924 </ulink>.</para>
926 <para>The <parameter>add printer command</parameter> is
927 automatically invoked with the following parameter (in
928 order:</para>
930 <itemizedlist>
931 <listitem><para><parameter>printer name</parameter></para></listitem>
932 <listitem><para><parameter>share name</parameter></para></listitem>
933 <listitem><para><parameter>port name</parameter></para></listitem>
934 <listitem><para><parameter>driver name</parameter></para></listitem>
935 <listitem><para><parameter>location</parameter></para></listitem>
936 <listitem><para><parameter>Windows 9x driver location</parameter>
937 </para></listitem>
938 </itemizedlist>
940 <para>All parameters are filled in from the PRINTER_INFO_2 structure sent
941 by the Windows NT/2000 client with one exception. The "Windows 9x
942 driver location" parameter is included for backwards compatibility
943 only. The remaining fields in the structure are generated from answers
944 to the APW questions.</para>
946 <para>Once the <parameter>add printer command</parameter> has
947 been executed, <command>smbd</command> will reparse the <filename>
948 smb.conf</filename> to determine if the share defined by the APW
949 exists. If the sharename is still invalid, then <command>smbd
950 </command> will return an ACCESS_DENIED error to the client.</para>
952 <para>See also <link linkend="DELETEPRINTERCOMMAND"><parameter>
953 delete printer command</parameter></link>, <link
954 linkend="printing"><parameter>printing</parameter></link>,
955 <link linkend="SHOWADDPRINTERWIZARD"><parameter>show add
956 printer wizard</parameter></link></para>
958 <para>Default: <emphasis>none</emphasis></para>
959 <para>Example: <command>addprinter command = /usr/bin/addprinter
960 </command></para>
961 </listitem>
962 </varlistentry>
966 <varlistentry>
967 <term><anchor id="ADDSHARECOMMAND">add share command (G)</term>
968 <listitem><para>Samba 2.2.0 introduced the ability to dynamically
969 add and delete shares via the Windows NT 4.0 Server Manager. The
970 <parameter>add share command</parameter> is used to define an
971 external program or script which will add a new service definition
972 to <filename>smb.conf</filename>. In order to successfully
973 execute the <parameter>add share command</parameter>, <command>smbd</command>
974 requires that the administrator be connected using a root account (i.e.
975 uid == 0).
976 </para>
978 <para>
979 When executed, <command>smbd</command> will automatically invoke the
980 <parameter>add share command</parameter> with four parameters.
981 </para>
983 <itemizedlist>
984 <listitem><para><parameter>configFile</parameter> - the location
985 of the global <filename>smb.conf</filename> file.
986 </para></listitem>
988 <listitem><para><parameter>shareName</parameter> - the name of the new
989 share.
990 </para></listitem>
992 <listitem><para><parameter>pathName</parameter> - path to an **existing**
993 directory on disk.
994 </para></listitem>
996 <listitem><para><parameter>comment</parameter> - comment string to associate
997 with the new share.
998 </para></listitem>
999 </itemizedlist>
1001 <para>
1002 This parameter is only used for add file shares. To add printer shares,
1003 see the <link linkend="ADDPRINTERCOMMAND"><parameter>add printer
1004 command</parameter></link>.
1005 </para>
1007 <para>
1008 See also <link linkend="CHANGESHARECOMMAND"><parameter>change share
1009 command</parameter></link>, <link linkend="DELETESHARECOMMAND"><parameter>delete share
1010 command</parameter></link>.
1011 </para>
1013 <para>Default: <emphasis>none</emphasis></para>
1014 <para>Example: <command>add share command = /usr/local/bin/addshare</command></para>
1015 </listitem>
1016 </varlistentry>
1020 <varlistentry>
1021 <term><anchor id="ADDMACHINESCRIPT">add machine script (G)</term>
1022 <listitem><para>This is the full pathname to a script that will
1023 be run by <ulink url="smbd.8.html">smbd(8)</ulink> when a machine is added
1024 to it's domain using the administrator username and password method. </para>
1026 <para>This option is only required when using sam back-ends tied to the
1027 Unix uid method of RID calculation such as smbpasswd. This option is only
1028 available in Samba 3.0.</para>
1030 <para>Default: <command>add machine script = &lt;empty string&gt;
1031 </command></para>
1033 <para>Example: <command>add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
1034 </command></para>
1035 </listitem>
1036 </varlistentry>
1039 <varlistentry>
1040 <term><anchor id="ADDUSERSCRIPT">add user script (G)</term>
1041 <listitem><para>This is the full pathname to a script that will
1042 be run <emphasis>AS ROOT</emphasis> by <ulink url="smbd.8.html">smbd(8)
1043 </ulink> under special circumstances described below.</para>
1045 <para>Normally, a Samba server requires that UNIX users are
1046 created for all users accessing files on this server. For sites
1047 that use Windows NT account databases as their primary user database
1048 creating these users and keeping the user list in sync with the
1049 Windows NT PDC is an onerous task. This option allows <ulink
1050 url="smbd.8.html">smbd</ulink> to create the required UNIX users
1051 <emphasis>ON DEMAND</emphasis> when a user accesses the Samba server.</para>
1053 <para>In order to use this option, <ulink url="smbd.8.html">smbd</ulink>
1054 must be set to <parameter>security = server</parameter> or <parameter>
1055 security = domain</parameter> and <parameter>add user script</parameter>
1056 must be set to a full pathname for a script that will create a UNIX
1057 user given one argument of <parameter>%u</parameter>, which expands into
1058 the UNIX user name to create.</para>
1060 <para>When the Windows user attempts to access the Samba server,
1061 at login (session setup in the SMB protocol) time, <ulink url="smbd.8.html">
1062 smbd</ulink> contacts the <parameter>password server</parameter> and
1063 attempts to authenticate the given user with the given password. If the
1064 authentication succeeds then <command>smbd</command>
1065 attempts to find a UNIX user in the UNIX password database to map the
1066 Windows user into. If this lookup fails, and <parameter>add user script
1067 </parameter> is set then <command>smbd</command> will
1068 call the specified script <emphasis>AS ROOT</emphasis>, expanding
1069 any <parameter>%u</parameter> argument to be the user name to create.</para>
1071 <para>If this script successfully creates the user then <command>smbd
1072 </command> will continue on as though the UNIX user
1073 already existed. In this way, UNIX users are dynamically created to
1074 match existing Windows NT accounts.</para>
1076 <para>See also <link linkend="SECURITY"><parameter>
1077 security</parameter></link>, <link linkend="PASSWORDSERVER">
1078 <parameter>password server</parameter></link>,
1079 <link linkend="DELETEUSERSCRIPT"><parameter>delete user
1080 script</parameter></link>.</para>
1082 <para>Default: <command>add user script = &lt;empty string&gt;
1083 </command></para>
1085 <para>Example: <command>add user script = /usr/local/samba/bin/add_user
1086 %u</command></para>
1087 </listitem>
1088 </varlistentry>
1092 <varlistentry>
1093 <term><anchor id="ADMINUSERS">admin users (S)</term>
1094 <listitem><para>This is a list of users who will be granted
1095 administrative privileges on the share. This means that they
1096 will do all file operations as the super-user (root).</para>
1098 <para>You should use this option very carefully, as any user in
1099 this list will be able to do anything they like on the share,
1100 irrespective of file permissions.</para>
1102 <para>Default: <emphasis>no admin users</emphasis></para>
1104 <para>Example: <command>admin users = jason</command></para>
1105 </listitem>
1106 </varlistentry>
1110 <varlistentry>
1111 <term><anchor id="ALLOWHOSTS">allow hosts (S)</term>
1112 <listitem><para>Synonym for <link linkend="HOSTSALLOW">
1113 <parameter>hosts allow</parameter></link>.</para></listitem>
1114 </varlistentry>
1118 <varlistentry>
1119 <term><anchor id="ALLOWTRUSTEDDOMAINS">allow trusted domains (G)</term>
1120 <listitem><para>This option only takes effect when the <link
1121 linkend="SECURITY"><parameter>security</parameter></link> option is set to
1122 <constant>server</constant> or <constant>domain</constant>.
1123 If it is set to no, then attempts to connect to a resource from
1124 a domain or workgroup other than the one which <ulink url="smbd.8.html">smbd</ulink> is running
1125 in will fail, even if that domain is trusted by the remote server
1126 doing the authentication.</para>
1128 <para>This is useful if you only want your Samba server to
1129 serve resources to users in the domain it is a member of. As
1130 an example, suppose that there are two domains DOMA and DOMB. DOMB
1131 is trusted by DOMA, which contains the Samba server. Under normal
1132 circumstances, a user with an account in DOMB can then access the
1133 resources of a UNIX account with the same account name on the
1134 Samba server even if they do not have an account in DOMA. This
1135 can make implementing a security boundary difficult.</para>
1137 <para>Default: <command>allow trusted domains = yes</command></para>
1139 </listitem>
1140 </varlistentry>
1144 <varlistentry>
1145 <term><anchor id="ANNOUNCEAS">announce as (G)</term>
1146 <listitem><para>This specifies what type of server
1147 <ulink url="nmbd.8.html"><command>nmbd</command></ulink>
1148 will announce itself as, to a network neighborhood browse
1149 list. By default this is set to Windows NT. The valid options
1150 are : "NT Server" (which can also be written as "NT"),
1151 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server,
1152 Windows NT Workstation, Windows 95 and Windows for Workgroups
1153 respectively. Do not change this parameter unless you have a
1154 specific need to stop Samba appearing as an NT server as this
1155 may prevent Samba servers from participating as browser servers
1156 correctly.</para>
1158 <para>Default: <command>announce as = NT Server</command></para>
1160 <para>Example: <command>announce as = Win95</command></para>
1161 </listitem>
1162 </varlistentry>
1166 <varlistentry>
1167 <term><anchor id="ANNOUNCEVERSION">announce version (G)</term>
1168 <listitem><para>This specifies the major and minor version numbers
1169 that nmbd will use when announcing itself as a server. The default
1170 is 4.2. Do not change this parameter unless you have a specific
1171 need to set a Samba server to be a downlevel server.</para>
1173 <para>Default: <command>announce version = 4.5</command></para>
1175 <para>Example: <command>announce version = 2.0</command></para>
1176 </listitem>
1177 </varlistentry>
1181 <varlistentry>
1182 <term><anchor id="AUTOSERVICES">auto services (G)</term>
1183 <listitem><para>This is a synonym for the <link linkend="PRELOAD">
1184 <parameter>preload</parameter></link>.</para>
1185 </listitem>
1186 </varlistentry>
1190 <varlistentry>
1191 <term><anchor id="AVAILABLE">available (S)</term>
1192 <listitem><para>This parameter lets you "turn off" a service. If
1193 <parameter>available = no</parameter>, then <emphasis>ALL</emphasis>
1194 attempts to connect to the service will fail. Such failures are
1195 logged.</para>
1197 <para>Default: <command>available = yes</command></para>
1199 </listitem>
1200 </varlistentry>
1204 <varlistentry>
1205 <term><anchor id="BINDINTERFACESONLY">bind interfaces only (G)</term>
1206 <listitem><para>This global parameter allows the Samba admin
1207 to limit what interfaces on a machine will serve SMB requests. If
1208 affects file service <ulink url="smbd.8.html">smbd(8)</ulink> and
1209 name service <ulink url="nmbd.8.html">nmbd(8)</ulink> in slightly
1210 different ways.</para>
1212 <para>For name service it causes <command>nmbd</command> to bind
1213 to ports 137 and 138 on the interfaces listed in the <link
1214 linkend="INTERFACES">interfaces</link> parameter. <command>nmbd
1215 </command> also binds to the "all addresses" interface (0.0.0.0)
1216 on ports 137 and 138 for the purposes of reading broadcast messages.
1217 If this option is not set then <command>nmbd</command> will service
1218 name requests on all of these sockets. If <parameter>bind interfaces
1219 only</parameter> is set then <command>nmbd</command> will check the
1220 source address of any packets coming in on the broadcast sockets
1221 and discard any that don't match the broadcast addresses of the
1222 interfaces in the <parameter>interfaces</parameter> parameter list.
1223 As unicast packets are received on the other sockets it allows
1224 <command>nmbd</command> to refuse to serve names to machines that
1225 send packets that arrive through any interfaces not listed in the
1226 <parameter>interfaces</parameter> list. IP Source address spoofing
1227 does defeat this simple check, however so it must not be used
1228 seriously as a security feature for <command>nmbd</command>.</para>
1230 <para>For file service it causes <ulink url="smbd.8.html">smbd(8)</ulink>
1231 to bind only to the interface list given in the <link linkend="INTERFACES">
1232 interfaces</link> parameter. This restricts the networks that
1233 <command>smbd</command> will serve to packets coming in those
1234 interfaces. Note that you should not use this parameter for machines
1235 that are serving PPP or other intermittent or non-broadcast network
1236 interfaces as it will not cope with non-permanent interfaces.</para>
1238 <para>If <parameter>bind interfaces only</parameter> is set then
1239 unless the network address <emphasis>127.0.0.1</emphasis> is added
1240 to the <parameter>interfaces</parameter> parameter list <ulink
1241 url="smbpasswd.8.html"><command>smbpasswd(8)</command></ulink>
1242 and <ulink url="swat.8.html"><command>swat(8)</command></ulink> may
1243 not work as expected due to the reasons covered below.</para>
1245 <para>To change a users SMB password, the <command>smbpasswd</command>
1246 by default connects to the <emphasis>localhost - 127.0.0.1</emphasis>
1247 address as an SMB client to issue the password change request. If
1248 <parameter>bind interfaces only</parameter> is set then unless the
1249 network address <emphasis>127.0.0.1</emphasis> is added to the
1250 <parameter>interfaces</parameter> parameter list then <command>
1251 smbpasswd</command> will fail to connect in it's default mode.
1252 <command>smbpasswd</command> can be forced to use the primary IP interface
1253 of the local host by using its <ulink url="smbpasswd.8.html#minusr">
1254 <parameter>-r <replaceable>remote machine</replaceable></parameter>
1255 </ulink> parameter, with <replaceable>remote machine</replaceable> set
1256 to the IP name of the primary interface of the local host.</para>
1258 <para>The <command>swat</command> status page tries to connect with
1259 <command>smbd</command> and <command>nmbd</command> at the address
1260 <emphasis>127.0.0.1</emphasis> to determine if they are running.
1261 Not adding <emphasis>127.0.0.1</emphasis> will cause <command>
1262 smbd</command> and <command>nmbd</command> to always show
1263 "not running" even if they really are. This can prevent <command>
1264 swat</command> from starting/stopping/restarting <command>smbd</command>
1265 and <command>nmbd</command>.</para>
1267 <para>Default: <command>bind interfaces only = no</command></para>
1269 </listitem>
1270 </varlistentry>
1274 <varlistentry>
1275 <term><anchor id="BLOCKINGLOCKS">blocking locks (S)</term>
1276 <listitem><para>This parameter controls the behavior of <ulink
1277 url="smbd.8.html">smbd(8)</ulink> when given a request by a client
1278 to obtain a byte range lock on a region of an open file, and the
1279 request has a time limit associated with it.</para>
1281 <para>If this parameter is set and the lock range requested
1282 cannot be immediately satisfied, Samba 2.2 will internally
1283 queue the lock request, and periodically attempt to obtain
1284 the lock until the timeout period expires.</para>
1286 <para>If this parameter is set to <constant>false</constant>, then
1287 Samba 2.2 will behave as previous versions of Samba would and
1288 will fail the lock request immediately if the lock range
1289 cannot be obtained.</para>
1291 <para>Default: <command>blocking locks = yes</command></para>
1293 </listitem>
1294 </varlistentry>
1298 <varlistentry>
1299 <term><anchor id="BROWSABLE">browsable (S)</term>
1300 <listitem><para>See the <link linkend="BROWSEABLE"><parameter>
1301 browseable</parameter></link>.</para></listitem>
1302 </varlistentry>
1306 <varlistentry>
1307 <term><anchor id="BROWSELIST">browse list (G)</term>
1308 <listitem><para>This controls whether <ulink url="smbd.8.html">
1309 <command>smbd(8)</command></ulink> will serve a browse list to
1310 a client doing a <command>NetServerEnum</command> call. Normally
1311 set to <constant>true</constant>. You should never need to change
1312 this.</para>
1314 <para>Default: <command>browse list = yes</command></para></listitem>
1315 </varlistentry>
1319 <varlistentry>
1320 <term><anchor id="BROWSEABLE">browseable (S)</term>
1321 <listitem><para>This controls whether this share is seen in
1322 the list of available shares in a net view and in the browse list.</para>
1324 <para>Default: <command>browseable = yes</command></para>
1325 </listitem>
1326 </varlistentry>
1330 <varlistentry>
1331 <term><anchor id="CASESENSITIVE">case sensitive (S)</term>
1332 <listitem><para>See the discussion in the section <link
1333 linkend="NAMEMANGLINGSECT">NAME MANGLING</link>.</para>
1335 <para>Default: <command>case sensitive = no</command></para>
1336 </listitem>
1337 </varlistentry>
1341 <varlistentry>
1342 <term><anchor id="CASESIGNAMES">casesignames (S)</term>
1343 <listitem><para>Synonym for <link linkend="CASESENSITIVE">case
1344 sensitive</link>.</para></listitem>
1345 </varlistentry>
1349 <varlistentry>
1350 <term><anchor id="CHANGENOTIFYTIMEOUT">change notify timeout (G)</term>
1351 <listitem><para>This SMB allows a client to tell a server to
1352 "watch" a particular directory for any changes and only reply to
1353 the SMB request when a change has occurred. Such constant scanning of
1354 a directory is expensive under UNIX, hence an <ulink url="smbd.8.html">
1355 <command>smbd(8)</command></ulink> daemon only performs such a scan
1356 on each requested directory once every <parameter>change notify
1357 timeout</parameter> seconds.</para>
1359 <para>Default: <command>change notify timeout = 60</command></para>
1360 <para>Example: <command>change notify timeout = 300</command></para>
1362 <para>Would change the scan time to every 5 minutes.</para></listitem>
1363 </varlistentry>
1367 <varlistentry>
1368 <term><anchor id="CHANGESHARECOMMAND">change share command (G)</term>
1369 <listitem><para>Samba 2.2.0 introduced the ability to dynamically
1370 add and delete shares via the Windows NT 4.0 Server Manager. The
1371 <parameter>change share command</parameter> is used to define an
1372 external program or script which will modify an existing service definition
1373 in <filename>smb.conf</filename>. In order to successfully
1374 execute the <parameter>change share command</parameter>, <command>smbd</command>
1375 requires that the administrator be connected using a root account (i.e.
1376 uid == 0).
1377 </para>
1379 <para>
1380 When executed, <command>smbd</command> will automatically invoke the
1381 <parameter>change share command</parameter> with four parameters.
1382 </para>
1384 <itemizedlist>
1385 <listitem><para><parameter>configFile</parameter> - the location
1386 of the global <filename>smb.conf</filename> file.
1387 </para></listitem>
1389 <listitem><para><parameter>shareName</parameter> - the name of the new
1390 share.
1391 </para></listitem>
1393 <listitem><para><parameter>pathName</parameter> - path to an **existing**
1394 directory on disk.
1395 </para></listitem>
1397 <listitem><para><parameter>comment</parameter> - comment string to associate
1398 with the new share.
1399 </para></listitem>
1400 </itemizedlist>
1402 <para>
1403 This parameter is only used modify existing file shares definitions. To modify
1404 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
1405 </para>
1407 <para>
1408 See also <link linkend="ADDSHARECOMMAND"><parameter>add share
1409 command</parameter></link>, <link linkend="DELETESHARECOMMAND"><parameter>delete
1410 share command</parameter></link>.
1411 </para>
1413 <para>Default: <emphasis>none</emphasis></para>
1414 <para>Example: <command>change share command = /usr/local/bin/addshare</command></para>
1415 </listitem>
1416 </varlistentry>
1420 <varlistentry>
1421 <term><anchor id="CHARACTERSET">character set (G)</term>
1422 <listitem><para>This allows <ulink url="smbd.8.html">smbd</ulink> to map incoming filenames
1423 from a DOS Code page (see the <link linkend="CLIENTCODEPAGE">client
1424 code page</link> parameter) to several built in UNIX character sets.
1425 The built in code page translations are:</para>
1427 <itemizedlist>
1428 <listitem><para><constant>ISO8859-1</constant> : Western European
1429 UNIX character set. The parameter <parameter>client code page</parameter>
1430 <emphasis>MUST</emphasis> be set to code page 850 if the
1431 <parameter>character set</parameter> parameter is set to
1432 <constant>ISO8859-1</constant> in order for the conversion to the
1433 UNIX character set to be done correctly.</para></listitem>
1435 <listitem><para><constant>ISO8859-2</constant> : Eastern European
1436 UNIX character set. The parameter <parameter>client code page
1437 </parameter> <emphasis>MUST</emphasis> be set to code page 852 if
1438 the <parameter> character set</parameter> parameter is set
1439 to <constant>ISO8859-2</constant> in order for the conversion
1440 to the UNIX character set to be done correctly. </para></listitem>
1442 <listitem><para><constant>ISO8859-5</constant> : Russian Cyrillic
1443 UNIX character set. The parameter <parameter>client code page
1444 </parameter> <emphasis>MUST</emphasis> be set to code page
1445 866 if the <parameter>character set </parameter> parameter is
1446 set to <constant>ISO8859-5</constant> in order for the conversion
1447 to the UNIX character set to be done correctly. </para></listitem>
1449 <listitem><para><constant>ISO8859-7</constant> : Greek UNIX
1450 character set. The parameter <parameter>client code page
1451 </parameter> <emphasis>MUST</emphasis> be set to code page
1452 737 if the <parameter>character set</parameter> parameter is
1453 set to <constant>ISO8859-7</constant> in order for the conversion
1454 to the UNIX character set to be done correctly.</para></listitem>
1456 <listitem><para><constant>KOI8-R</constant> : Alternate mapping
1457 for Russian Cyrillic UNIX character set. The parameter
1458 <parameter>client code page</parameter> <emphasis>MUST</emphasis>
1459 be set to code page 866 if the <parameter>character set</parameter>
1460 parameter is set to <constant>KOI8-R</constant> in order for the
1461 conversion to the UNIX character set to be done correctly.</para>
1462 </listitem>
1463 </itemizedlist>
1465 <para><emphasis>BUG</emphasis>. These MSDOS code page to UNIX character
1466 set mappings should be dynamic, like the loading of MS DOS code pages,
1467 not static.</para>
1469 <para>Normally this parameter is not set, meaning no filename
1470 translation is done.</para>
1472 <para>Default: <command>character set = &lt;empty string&gt;</command></para>
1473 <para>Example: <command>character set = ISO8859-1</command></para></listitem>
1474 </varlistentry>
1478 <varlistentry>
1479 <term><anchor id="CLIENTCODEPAGE">client code page (G)</term>
1480 <listitem><para>This parameter specifies the DOS code page
1481 that the clients accessing Samba are using. To determine what code
1482 page a Windows or DOS client is using, open a DOS command prompt
1483 and type the command <command>chcp</command>. This will output
1484 the code page. The default for USA MS-DOS, Windows 95, and
1485 Windows NT releases is code page 437. The default for western
1486 European releases of the above operating systems is code page 850.</para>
1488 <para>This parameter tells <ulink url="smbd.8.html">smbd(8)</ulink>
1489 which of the <filename>codepage.<replaceable>XXX</replaceable>
1490 </filename> files to dynamically load on startup. These files,
1491 described more fully in the manual page <ulink url="make_smbcodepage.1.html">
1492 <command>make_smbcodepage(1)</command></ulink>, tell <command>
1493 smbd</command> how to map lower to upper case characters to provide
1494 the case insensitivity of filenames that Windows clients expect.</para>
1496 <para>Samba currently ships with the following code page files :</para>
1498 <itemizedlist>
1499 <listitem><para>Code Page 437 - MS-DOS Latin US</para></listitem>
1500 <listitem><para>Code Page 737 - Windows '95 Greek</para></listitem>
1501 <listitem><para>Code Page 850 - MS-DOS Latin 1</para></listitem>
1502 <listitem><para>Code Page 852 - MS-DOS Latin 2</para></listitem>
1503 <listitem><para>Code Page 861 - MS-DOS Icelandic</para></listitem>
1504 <listitem><para>Code Page 866 - MS-DOS Cyrillic</para></listitem>
1505 <listitem><para>Code Page 932 - MS-DOS Japanese SJIS</para></listitem>
1506 <listitem><para>Code Page 936 - MS-DOS Simplified Chinese</para></listitem>
1507 <listitem><para>Code Page 949 - MS-DOS Korean Hangul</para></listitem>
1508 <listitem><para>Code Page 950 - MS-DOS Traditional Chinese</para></listitem>
1509 </itemizedlist>
1511 <para>Thus this parameter may have any of the values 437, 737, 850, 852,
1512 861, 932, 936, 949, or 950. If you don't find the codepage you need,
1513 read the comments in one of the other codepage files and the
1514 <command>make_smbcodepage(1)</command> man page and write one. Please
1515 remember to donate it back to the Samba user community.</para>
1517 <para>This parameter co-operates with the <parameter>valid
1518 chars</parameter> parameter in determining what characters are
1519 valid in filenames and how capitalization is done. If you set both
1520 this parameter and the <parameter>valid chars</parameter> parameter
1521 the <parameter>client code page</parameter> parameter
1522 <emphasis>MUST</emphasis> be set before the <parameter>valid
1523 chars</parameter> parameter in the <filename>smb.conf</filename>
1524 file. The <parameter>valid chars</parameter> string will then
1525 augment the character settings in the <parameter>client code page</parameter>
1526 parameter.</para>
1528 <para>If not set, <parameter>client code page</parameter> defaults
1529 to 850.</para>
1531 <para>See also : <link linkend="VALIDCHARS"><parameter>valid
1532 chars</parameter></link>, <link linkend="CODEPAGEDIRECTORY">
1533 <parameter>code page directory</parameter></link></para>
1535 <para>Default: <command>client code page = 850</command></para>
1536 <para>Example: <command>client code page = 936</command></para>
1537 </listitem>
1538 </varlistentry>
1543 <varlistentry>
1544 <term><anchor id="CODEPAGEDIRECTORY">code page directory (G)</term>
1545 <listitem><para>Define the location of the various client code page
1546 files.</para>
1548 <para>See also <link linkend="CLIENTCODEPAGE"><parameter>client
1549 code page</parameter></link></para>
1551 <para>Default: <command>code page directory = ${prefix}/lib/codepages
1552 </command></para>
1553 <para>Example: <command>code page directory = /usr/share/samba/codepages
1554 </command></para>
1555 </listitem>
1556 </varlistentry>
1562 <varlistentry>
1563 <term><anchor id="CODINGSYSTEM">coding system (G)</term>
1564 <listitem><para>This parameter is used to determine how incoming
1565 Shift-JIS Japanese characters are mapped from the incoming <link
1566 linkend="CLIENTCODEPAGE"><parameter>client code page</parameter>
1567 </link> used by the client, into file names in the UNIX filesystem.
1568 Only useful if <parameter>client code page</parameter> is set to
1569 932 (Japanese Shift-JIS). The options are :</para>
1571 <itemizedlist>
1572 <listitem><para><constant>SJIS</constant> - Shift-JIS. Does no
1573 conversion of the incoming filename.</para></listitem>
1575 <listitem><para><constant>JIS8, J8BB, J8BH, J8@B,
1576 J8@J, J8@H </constant> - Convert from incoming Shift-JIS to eight
1577 bit JIS code with different shift-in, shift out codes.</para></listitem>
1579 <listitem><para><constant>JIS7, J7BB, J7BH, J7@B, J7@J,
1580 J7@H </constant> - Convert from incoming Shift-JIS to seven bit
1581 JIS code with different shift-in, shift out codes.</para></listitem>
1583 <listitem><para><constant>JUNET, JUBB, JUBH, JU@B, JU@J, JU@H </constant>
1584 - Convert from incoming Shift-JIS to JUNET code with different shift-in,
1585 shift out codes.</para></listitem>
1587 <listitem><para><constant>EUC</constant> - Convert an incoming
1588 Shift-JIS character to EUC code.</para></listitem>
1590 <listitem><para><constant>HEX</constant> - Convert an incoming
1591 Shift-JIS character to a 3 byte hex representation, i.e.
1592 <constant>:AB</constant>.</para></listitem>
1594 <listitem><para><constant>CAP</constant> - Convert an incoming
1595 Shift-JIS character to the 3 byte hex representation used by
1596 the Columbia AppleTalk Program (CAP), i.e. <constant>:AB</constant>.
1597 This is used for compatibility between Samba and CAP.</para></listitem>
1598 </itemizedlist>
1600 <para>Default: <command>coding system = &lt;empty value&gt;</command>
1601 </para>
1602 </listitem>
1603 </varlistentry>
1607 <varlistentry>
1608 <term><anchor id="COMMENT">comment (S)</term>
1609 <listitem><para>This is a text field that is seen next to a share
1610 when a client does a queries the server, either via the network
1611 neighborhood or via <command>net view</command> to list what shares
1612 are available.</para>
1614 <para>If you want to set the string that is displayed next to the
1615 machine name then see the <link linkend="SERVERSTRING"><parameter>
1616 server string</parameter></link> parameter.</para>
1618 <para>Default: <emphasis>No comment string</emphasis></para>
1619 <para>Example: <command>comment = Fred's Files</command></para></listitem>
1620 </varlistentry>
1624 <varlistentry>
1625 <term><anchor id="CONFIGFILE">config file (G)</term>
1626 <listitem><para>This allows you to override the config file
1627 to use, instead of the default (usually <filename>smb.conf</filename>).
1628 There is a chicken and egg problem here as this option is set
1629 in the config file!</para>
1631 <para>For this reason, if the name of the config file has changed
1632 when the parameters are loaded then it will reload them from
1633 the new config file.</para>
1635 <para>This option takes the usual substitutions, which can
1636 be very useful.</para>
1638 <para>If the config file doesn't exist then it won't be loaded
1639 (allowing you to special case the config files of just a few
1640 clients).</para>
1642 <para>Example: <command>config file = /usr/local/samba/lib/smb.conf.%m
1643 </command></para></listitem>
1644 </varlistentry>
1648 <varlistentry>
1649 <term><anchor id="COPY">copy (S)</term>
1650 <listitem><para>This parameter allows you to "clone" service
1651 entries. The specified service is simply duplicated under the
1652 current service's name. Any parameters specified in the current
1653 section will override those in the section being copied.</para>
1655 <para>This feature lets you set up a 'template' service and
1656 create similar services easily. Note that the service being
1657 copied must occur earlier in the configuration file than the
1658 service doing the copying.</para>
1660 <para>Default: <emphasis>no value</emphasis></para>
1661 <para>Example: <command>copy = otherservice</command></para></listitem>
1662 </varlistentry>
1666 <varlistentry>
1667 <term><anchor id="CREATEMASK">create mask (S)</term>
1668 <listitem><para>A synonym for this parameter is
1669 <link linkend="CREATEMODE"><parameter>create mode</parameter>
1670 </link>.</para>
1672 <para>When a file is created, the necessary permissions are
1673 calculated according to the mapping from DOS modes to UNIX
1674 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed
1675 with this parameter. This parameter may be thought of as a bit-wise
1676 MASK for the UNIX modes of a file. Any bit <emphasis>not</emphasis>
1677 set here will be removed from the modes set on a file when it is
1678 created.</para>
1680 <para>The default value of this parameter removes the
1681 'group' and 'other' write and execute bits from the UNIX modes.</para>
1683 <para>Following this Samba will bit-wise 'OR' the UNIX mode created
1684 from this parameter with the value of the <link
1685 linkend="FORCECREATEMODE"><parameter>force create mode</parameter></link>
1686 parameter which is set to 000 by default.</para>
1688 <para>This parameter does not affect directory modes. See the
1689 parameter <link linkend="DIRECTORYMODE"><parameter>directory mode
1690 </parameter></link> for details.</para>
1692 <para>See also the <link linkend="FORCECREATEMODE"><parameter>force
1693 create mode</parameter></link> parameter for forcing particular mode
1694 bits to be set on created files. See also the <link linkend="DIRECTORYMODE">
1695 <parameter>directory mode</parameter></link> parameter for masking
1696 mode bits on created directories. See also the <link linkend="INHERITPERMISSIONS">
1697 <parameter>inherit permissions</parameter></link> parameter.</para>
1699 <para>Note that this parameter does not apply to permissions
1700 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
1701 a mask on access control lists also, they need to set the <link
1702 linkend="SECURITYMASK"><parameter>security mask</parameter></link>.</para>
1704 <para>Default: <command>create mask = 0744</command></para>
1705 <para>Example: <command>create mask = 0775</command></para></listitem>
1706 </varlistentry>
1710 <varlistentry>
1711 <term><anchor id="CREATEMODE">create mode (S)</term>
1712 <listitem><para>This is a synonym for <link linkend="CREATEMASK"><parameter>
1713 create mask</parameter></link>.</para></listitem>
1714 </varlistentry>
1718 <varlistentry>
1719 <term><anchor id="DEADTIME">deadtime (G)</term>
1720 <listitem><para>The value of the parameter (a decimal integer)
1721 represents the number of minutes of inactivity before a connection
1722 is considered dead, and it is disconnected. The deadtime only takes
1723 effect if the number of open files is zero.</para>
1725 <para>This is useful to stop a server's resources being
1726 exhausted by a large number of inactive connections.</para>
1728 <para>Most clients have an auto-reconnect feature when a
1729 connection is broken so in most cases this parameter should be
1730 transparent to users.</para>
1732 <para>Using this parameter with a timeout of a few minutes
1733 is recommended for most systems.</para>
1735 <para>A deadtime of zero indicates that no auto-disconnection
1736 should be performed.</para>
1738 <para>Default: <command>deadtime = 0</command></para>
1739 <para>Example: <command>deadtime = 15</command></para></listitem>
1740 </varlistentry>
1744 <varlistentry>
1745 <term><anchor id="DEBUGHIRESTIMESTAMP">debug hires timestamp (G)</term>
1746 <listitem><para>Sometimes the timestamps in the log messages
1747 are needed with a resolution of higher that seconds, this
1748 boolean parameter adds microsecond resolution to the timestamp
1749 message header when turned on.</para>
1751 <para>Note that the parameter <link linkend="DEBUGTIMESTAMP"><parameter>
1752 debug timestamp</parameter></link> must be on for this to have an
1753 effect.</para>
1755 <para>Default: <command>debug hires timestamp = no</command></para>
1756 </listitem>
1757 </varlistentry>
1761 <varlistentry>
1762 <term><anchor id="DEBUGPID">debug pid (G)</term>
1763 <listitem><para>When using only one log file for more then one
1764 forked <ulink url="smbd.8.html">smbd</ulink>-process there may be hard to follow which process
1765 outputs which message. This boolean parameter is adds the process-id
1766 to the timestamp message headers in the logfile when turned on.</para>
1768 <para>Note that the parameter <link linkend="DEBUGTIMESTAMP"><parameter>
1769 debug timestamp</parameter></link> must be on for this to have an
1770 effect.</para>
1772 <para>Default: <command>debug pid = no</command></para></listitem>
1773 </varlistentry>
1776 <varlistentry>
1777 <term><anchor id="DEBUGTIMESTAMP">debug timestamp (G)</term>
1778 <listitem><para>Samba 2.2 debug log messages are timestamped
1779 by default. If you are running at a high <link linkend="DEBUGLEVEL">
1780 <parameter>debug level</parameter></link> these timestamps
1781 can be distracting. This boolean parameter allows timestamping
1782 to be turned off.</para>
1784 <para>Default: <command>debug timestamp = yes</command></para></listitem>
1785 </varlistentry>
1789 <varlistentry>
1790 <term><anchor id="DEBUGUID">debug uid (G)</term>
1791 <listitem><para>Samba is sometimes run as root and sometime
1792 run as the connected user, this boolean parameter inserts the
1793 current euid, egid, uid and gid to the timestamp message headers
1794 in the log file if turned on.</para>
1796 <para>Note that the parameter <link linkend="DEBUGTIMESTAMP"><parameter>
1797 debug timestamp</parameter></link> must be on for this to have an
1798 effect.</para>
1800 <para>Default: <command>debug uid = no</command></para></listitem>
1801 </varlistentry>
1805 <varlistentry>
1806 <term><anchor id="DEBUGLEVEL">debuglevel (G)</term>
1807 <listitem><para>Synonym for <link linkend="LOGLEVEL"><parameter>
1808 log level</parameter></link>.</para>
1809 </listitem>
1810 </varlistentry>
1814 <varlistentry>
1815 <term><anchor id="DEFAULT">default (G)</term>
1816 <listitem><para>A synonym for <link linkend="DEFAULTSERVICE"><parameter>
1817 default service</parameter></link>.</para></listitem>
1818 </varlistentry>
1822 <varlistentry>
1823 <term><anchor id="DEFAULTCASE">default case (S)</term>
1824 <listitem><para>See the section on <link linkend="NAMEMANGLINGSECT">
1825 NAME MANGLING</link>. Also note the <link linkend="SHORTPRESERVECASE">
1826 <parameter>short preserve case</parameter></link> parameter.</para>
1828 <para>Default: <command>default case = lower</command></para>
1829 </listitem>
1830 </varlistentry>
1834 <varlistentry>
1835 <term><anchor id="DEFAULTSERVICE">default service (G)</term>
1836 <listitem><para>This parameter specifies the name of a service
1837 which will be connected to if the service actually requested cannot
1838 be found. Note that the square brackets are <emphasis>NOT</emphasis>
1839 given in the parameter value (see example below).</para>
1841 <para>There is no default value for this parameter. If this
1842 parameter is not given, attempting to connect to a nonexistent
1843 service results in an error.</para>
1845 <para>Typically the default service would be a <link linkend="GUESTOK">
1846 <parameter>guest ok</parameter></link>, <link linkend="READONLY">
1847 <parameter>read-only</parameter></link> service.</para>
1849 <para>Also note that the apparent service name will be changed
1850 to equal that of the requested service, this is very useful as it
1851 allows you to use macros like <parameter>%S</parameter> to make
1852 a wildcard service.</para>
1854 <para>Note also that any "_" characters in the name of the service
1855 used in the default service will get mapped to a "/". This allows for
1856 interesting things.</para>
1859 <para>Example:</para>
1861 <para><programlisting>
1862 [global]
1863 default service = pub
1865 [pub]
1866 path = /%S
1867 </programlisting></para>
1868 </listitem>
1869 </varlistentry>
1873 <varlistentry>
1874 <term><anchor id="DELETEPRINTERCOMMAND">delete printer command (G)</term>
1875 <listitem><para>With the introduction of MS-RPC based printer
1876 support for Windows NT/2000 clients in Samba 2.2, it is now
1877 possible to delete printer at run time by issuing the
1878 DeletePrinter() RPC call.</para>
1880 <para>For a Samba host this means that the printer must be
1881 physically deleted from underlying printing system. The <parameter>
1882 deleteprinter command</parameter> defines a script to be run which
1883 will perform the necessary operations for removing the printer
1884 from the print system and from <filename>smb.conf</filename>.
1885 </para>
1887 <para>The <parameter>delete printer command</parameter> is
1888 automatically called with only one parameter: <parameter>
1889 "printer name"</parameter>.</para>
1892 <para>Once the <parameter>delete printer command</parameter> has
1893 been executed, <command>smbd</command> will reparse the <filename>
1894 smb.conf</filename> to associated printer no longer exists.
1895 If the sharename is still valid, then <command>smbd
1896 </command> will return an ACCESS_DENIED error to the client.</para>
1898 <para>See also <link linkend="ADDPRINTERCOMMAND"><parameter>
1899 add printer command</parameter></link>, <link
1900 linkend="printing"><parameter>printing</parameter></link>,
1901 <link linkend="SHOWADDPRINTERWIZARD"><parameter>show add
1902 printer wizard</parameter></link></para>
1904 <para>Default: <emphasis>none</emphasis></para>
1905 <para>Example: <command>deleteprinter command = /usr/bin/removeprinter
1906 </command></para>
1907 </listitem>
1908 </varlistentry>
1915 <varlistentry>
1916 <term><anchor id="DELETEREADONLY">delete readonly (S)</term>
1917 <listitem><para>This parameter allows readonly files to be deleted.
1918 This is not normal DOS semantics, but is allowed by UNIX.</para>
1920 <para>This option may be useful for running applications such
1921 as rcs, where UNIX file ownership prevents changing file
1922 permissions, and DOS semantics prevent deletion of a read only file.</para>
1924 <para>Default: <command>delete readonly = no</command></para></listitem>
1925 </varlistentry>
1929 <varlistentry>
1930 <term><anchor id="DELETESHARECOMMAND">delete share command (G)</term>
1931 <listitem><para>Samba 2.2.0 introduced the ability to dynamically
1932 add and delete shares via the Windows NT 4.0 Server Manager. The
1933 <parameter>delete share command</parameter> is used to define an
1934 external program or script which will remove an existing service
1935 definition from <filename>smb.conf</filename>. In order to successfully
1936 execute the <parameter>delete share command</parameter>, <command>smbd</command>
1937 requires that the administrator be connected using a root account (i.e.
1938 uid == 0).
1939 </para>
1941 <para>
1942 When executed, <command>smbd</command> will automatically invoke the
1943 <parameter>delete share command</parameter> with two parameters.
1944 </para>
1946 <itemizedlist>
1947 <listitem><para><parameter>configFile</parameter> - the location
1948 of the global <filename>smb.conf</filename> file.
1949 </para></listitem>
1951 <listitem><para><parameter>shareName</parameter> - the name of
1952 the existing service.
1953 </para></listitem>
1954 </itemizedlist>
1956 <para>
1957 This parameter is only used to remove file shares. To delete printer shares,
1958 see the <link linkend="DELETEPRINTERCOMMAND"><parameter>delete printer
1959 command</parameter></link>.
1960 </para>
1962 <para>
1963 See also <link linkend="ADDSHARECOMMAND"><parameter>add share
1964 command</parameter></link>, <link linkend="CHANGESHARECOMMAND"><parameter>change
1965 share command</parameter></link>.
1966 </para>
1968 <para>Default: <emphasis>none</emphasis></para>
1969 <para>Example: <command>delete share command = /usr/local/bin/delshare</command></para>
1971 </listitem>
1972 </varlistentry>
1977 <varlistentry>
1978 <term><anchor id="DELETEUSERSCRIPT">delete user script (G)</term>
1979 <listitem><para>This is the full pathname to a script that will
1980 be run <emphasis>AS ROOT</emphasis> by <ulink url="smbd.8.html">
1981 <command>smbd(8)</command></ulink> under special circumstances
1982 described below.</para>
1984 <para>Normally, a Samba server requires that UNIX users are
1985 created for all users accessing files on this server. For sites
1986 that use Windows NT account databases as their primary user database
1987 creating these users and keeping the user list in sync with the
1988 Windows NT PDC is an onerous task. This option allows <command>
1989 smbd</command> to delete the required UNIX users <emphasis>ON
1990 DEMAND</emphasis> when a user accesses the Samba server and the
1991 Windows NT user no longer exists.</para>
1993 <para>In order to use this option, <command>smbd</command> must be
1994 set to <parameter>security = domain</parameter> and <parameter>delete
1995 user script</parameter> must be set to a full pathname for a script
1996 that will delete a UNIX user given one argument of <parameter>%u
1997 </parameter>, which expands into the UNIX user name to delete.
1998 <emphasis>NOTE</emphasis> that this is different to the <link
1999 linkend="ADDUSERSCRIPT"><parameter>add user script</parameter></link>
2000 which will work with the <parameter>security = server</parameter> option
2001 as well as <parameter>security = domain</parameter>. The reason for this
2002 is only when Samba is a domain member does it get the information
2003 on an attempted user logon that a user no longer exists. In the
2004 <parameter>security = server</parameter> mode a missing user
2005 is treated the same as an invalid password logon attempt. Deleting
2006 the user in this circumstance would not be a good idea.</para>
2008 <para>When the Windows user attempts to access the Samba server,
2009 at <emphasis>login</emphasis> (session setup in the SMB protocol)
2010 time, <command>smbd</command> contacts the <link linkend="PASSWORDSERVER">
2011 <parameter>password server</parameter></link> and attempts to authenticate
2012 the given user with the given password. If the authentication fails
2013 with the specific Domain error code meaning that the user no longer
2014 exists then <command>smbd</command> attempts to find a UNIX user in
2015 the UNIX password database that matches the Windows user account. If
2016 this lookup succeeds, and <parameter>delete user script</parameter> is
2017 set then <command>smbd</command> will all the specified script
2018 <emphasis>AS ROOT</emphasis>, expanding any <parameter>%u</parameter>
2019 argument to be the user name to delete.</para>
2021 <para>This script should delete the given UNIX username. In this way,
2022 UNIX users are dynamically deleted to match existing Windows NT
2023 accounts.</para>
2025 <para>See also <link linkend="SECURITYEQUALSDOMAIN">security = domain</link>,
2026 <link linkend="PASSWORDSERVER"><parameter>password server</parameter>
2027 </link>, <link linkend="ADDUSERSCRIPT"><parameter>add user script</parameter>
2028 </link>.</para>
2030 <para>Default: <command>delete user script = &lt;empty string&gt;
2031 </command></para>
2032 <para>Example: <command>delete user script = /usr/local/samba/bin/del_user
2033 %u</command></para></listitem>
2034 </varlistentry>
2040 <varlistentry>
2041 <term><anchor id="DELETEVETOFILES">delete veto files (S)</term>
2042 <listitem><para>This option is used when Samba is attempting to
2043 delete a directory that contains one or more vetoed directories
2044 (see the <link linkend="VETOFILES"><parameter>veto files</parameter></link>
2045 option). If this option is set to <constant>false</constant> (the default) then if a vetoed
2046 directory contains any non-vetoed files or directories then the
2047 directory delete will fail. This is usually what you want.</para>
2049 <para>If this option is set to <constant>true</constant>, then Samba
2050 will attempt to recursively delete any files and directories within
2051 the vetoed directory. This can be useful for integration with file
2052 serving systems such as NetAtalk which create meta-files within
2053 directories you might normally veto DOS/Windows users from seeing
2054 (e.g. <filename>.AppleDouble</filename>)</para>
2056 <para>Setting <command>delete veto files = yes</command> allows these
2057 directories to be transparently deleted when the parent directory
2058 is deleted (so long as the user has permissions to do so).</para>
2060 <para>See also the <link linkend="VETOFILES"><parameter>veto
2061 files</parameter></link> parameter.</para>
2063 <para>Default: <command>delete veto files = no</command></para></listitem>
2064 </varlistentry>
2069 <varlistentry>
2070 <term><anchor id="DENYHOSTS">deny hosts (S)</term>
2071 <listitem><para>Synonym for <link linkend="HOSTSDENY"><parameter>hosts
2072 deny</parameter></link>.</para></listitem>
2073 </varlistentry>
2078 <varlistentry>
2079 <term><anchor id="DFREECOMMAND">dfree command (G)</term>
2080 <listitem><para>The <parameter>dfree command</parameter> setting should
2081 only be used on systems where a problem occurs with the internal
2082 disk space calculations. This has been known to happen with Ultrix,
2083 but may occur with other operating systems. The symptom that was
2084 seen was an error of "Abort Retry Ignore" at the end of each
2085 directory listing.</para>
2087 <para>This setting allows the replacement of the internal routines to
2088 calculate the total disk space and amount available with an external
2089 routine. The example below gives a possible script that might fulfill
2090 this function.</para>
2092 <para>The external program will be passed a single parameter indicating
2093 a directory in the filesystem being queried. This will typically consist
2094 of the string <filename>./</filename>. The script should return two
2095 integers in ASCII. The first should be the total disk space in blocks,
2096 and the second should be the number of available blocks. An optional
2097 third return value can give the block size in bytes. The default
2098 blocksize is 1024 bytes.</para>
2100 <para>Note: Your script should <emphasis>NOT</emphasis> be setuid or
2101 setgid and should be owned by (and writeable only by) root!</para>
2103 <para>Default: <emphasis>By default internal routines for
2104 determining the disk capacity and remaining space will be used.
2105 </emphasis></para>
2107 <para>Example: <command>dfree command = /usr/local/samba/bin/dfree
2108 </command></para>
2110 <para>Where the script dfree (which must be made executable) could be:</para>
2112 <para><programlisting>
2113 #!/bin/sh
2114 df $1 | tail -1 | awk '{print $2" "$4}'
2115 </programlisting></para>
2117 <para>or perhaps (on Sys V based systems):</para>
2119 <para><programlisting>
2120 #!/bin/sh
2121 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
2122 </programlisting></para>
2124 <para>Note that you may have to replace the command names
2125 with full path names on some systems.</para>
2126 </listitem>
2127 </varlistentry>
2132 <varlistentry>
2133 <term><anchor id="DIRECTORY">directory (S)</term>
2134 <listitem><para>Synonym for <link linkend="PATH"><parameter>path
2135 </parameter></link>.</para></listitem>
2136 </varlistentry>
2140 <varlistentry>
2141 <term><anchor id="DIRECTORYMASK">directory mask (S)</term>
2142 <listitem><para>This parameter is the octal modes which are
2143 used when converting DOS modes to UNIX modes when creating UNIX
2144 directories.</para>
2146 <para>When a directory is created, the necessary permissions are
2147 calculated according to the mapping from DOS modes to UNIX permissions,
2148 and the resulting UNIX mode is then bit-wise 'AND'ed with this
2149 parameter. This parameter may be thought of as a bit-wise MASK for
2150 the UNIX modes of a directory. Any bit <emphasis>not</emphasis> set
2151 here will be removed from the modes set on a directory when it is
2152 created.</para>
2154 <para>The default value of this parameter removes the 'group'
2155 and 'other' write bits from the UNIX mode, allowing only the
2156 user who owns the directory to modify it.</para>
2158 <para>Following this Samba will bit-wise 'OR' the UNIX mode
2159 created from this parameter with the value of the <link
2160 linkend="FORCEDIRECTORYMODE"><parameter>force directory mode
2161 </parameter></link> parameter. This parameter is set to 000 by
2162 default (i.e. no extra mode bits are added).</para>
2164 <para>Note that this parameter does not apply to permissions
2165 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
2166 a mask on access control lists also, they need to set the <link
2167 linkend="DIRECTORYSECURITYMASK"><parameter>directory security mask</parameter></link>.</para>
2169 <para>See the <link linkend="FORCEDIRECTORYMODE"><parameter>force
2170 directory mode</parameter></link> parameter to cause particular mode
2171 bits to always be set on created directories.</para>
2173 <para>See also the <link linkend="CREATEMODE"><parameter>create mode
2174 </parameter></link> parameter for masking mode bits on created files,
2175 and the <link linkend="DIRECTORYSECURITYMASK"><parameter>directory
2176 security mask</parameter></link> parameter.</para>
2178 <para>Also refer to the <link linkend="INHERITPERMISSIONS"><parameter>
2179 inherit permissions</parameter></link> parameter.</para>
2181 <para>Default: <command>directory mask = 0755</command></para>
2182 <para>Example: <command>directory mask = 0775</command></para>
2183 </listitem>
2184 </varlistentry>
2188 <varlistentry>
2189 <term><anchor id="DIRECTORYMODE">directory mode (S)</term>
2190 <listitem><para>Synonym for <link linkend="DIRECTORYMASK"><parameter>
2191 directory mask</parameter></link></para></listitem>
2192 </varlistentry>
2196 <varlistentry>
2197 <term><anchor id="DIRECTORYSECURITYMASK">directory security mask (S)</term>
2198 <listitem><para>This parameter controls what UNIX permission bits
2199 can be modified when a Windows NT client is manipulating the UNIX
2200 permission on a directory using the native NT security dialog
2201 box.</para>
2203 <para>This parameter is applied as a mask (AND'ed with) to
2204 the changed permission bits, thus preventing any bits not in
2205 this mask from being modified. Essentially, zero bits in this
2206 mask may be treated as a set of bits the user is not allowed
2207 to change.</para>
2209 <para>If not set explicitly this parameter is set to 0777
2210 meaning a user is allowed to modify all the user/group/world
2211 permissions on a directory.</para>
2213 <para><emphasis>Note</emphasis> that users who can access the
2214 Samba server through other means can easily bypass this restriction,
2215 so it is primarily useful for standalone "appliance" systems.
2216 Administrators of most normal systems will probably want to leave
2217 it as the default of <constant>0777</constant>.</para>
2219 <para>See also the <link linkend="FORCEDIRECTORYSECURITYMODE"><parameter>
2220 force directory security mode</parameter></link>, <link
2221 linkend="SECURITYMASK"><parameter>security mask</parameter></link>,
2222 <link linkend="FORCESECURITYMODE"><parameter>force security mode
2223 </parameter></link> parameters.</para>
2225 <para>Default: <command>directory security mask = 0777</command></para>
2226 <para>Example: <command>directory security mask = 0700</command></para>
2227 </listitem>
2228 </varlistentry>
2232 <varlistentry>
2233 <term><anchor id="DISABLESPOOLSS">disable spoolss (G)</term>
2234 <listitem><para>Enabling this parameter will disables Samba's support
2235 for the SPOOLSS set of MS-RPC's and will yield identical behavior
2236 as Samba 2.0.x. Windows NT/2000 clients will downgrade to using
2237 Lanman style printing commands. Windows 9x/ME will be uneffected by
2238 the parameter. However, this will also disable the ability to upload
2239 printer drivers to a Samba server via the Windows NT Add Printer
2240 Wizard or by using the NT printer properties dialog window. It will
2241 also disable the capability of Windows NT/2000 clients to download
2242 print drivers from the Samba host upon demand.
2243 <emphasis>Be very careful about enabling this parameter.</emphasis>
2244 </para>
2246 <para>See also <link linkend="USECLIENTDRIVER">use client driver</link>
2247 </para>
2249 <para>Default : <command>disable spoolss = no</command></para>
2250 </listitem>
2251 </varlistentry>
2255 <varlistentry>
2256 <term><anchor id="DNSPROXY">dns proxy (G)</term>
2257 <listitem><para>Specifies that <ulink url="nmbd.8.html">nmbd(8)</ulink>
2258 when acting as a WINS server and finding that a NetBIOS name has not
2259 been registered, should treat the NetBIOS name word-for-word as a DNS
2260 name and do a lookup with the DNS server for that name on behalf of
2261 the name-querying client.</para>
2263 <para>Note that the maximum length for a NetBIOS name is 15
2264 characters, so the DNS name (or DNS alias) can likewise only be
2265 15 characters, maximum.</para>
2267 <para><command>nmbd</command> spawns a second copy of itself to do the
2268 DNS name lookup requests, as doing a name lookup is a blocking
2269 action.</para>
2271 <para>See also the parameter <link linkend="WINSSUPPORT"><parameter>
2272 wins support</parameter></link>.</para>
2274 <para>Default: <command>dns proxy = yes</command></para></listitem>
2275 </varlistentry>
2279 <varlistentry>
2280 <term><anchor id="DOMAINADMINGROUP">domain admin group (G)</term>
2281 <listitem><para>This parameter is intended as a temporary solution
2282 to enable users to be a member of the "Domain Admins" group when
2283 a Samba host is acting as a PDC. A complete solution will be provided
2284 by a system for mapping Windows NT/2000 groups onto UNIX groups.
2285 Please note that this parameter has a somewhat confusing name. It
2286 accepts a list of usernames and of group names in standard
2287 <filename>smb.conf</filename> notation.
2288 </para>
2290 <para>See also <link linkend="DOMAINGUESTGROUP"><parameter>domain
2291 guest group</parameter></link>, <link linkend="DOMAINLOGONS"><parameter>domain
2292 logons</parameter></link>
2293 </para>
2295 <para>Default: <emphasis>no domain administrators</emphasis></para>
2296 <para>Example: <command>domain admin group = root @wheel</command></para>
2297 </listitem>
2298 </varlistentry>
2303 <varlistentry>
2304 <term><anchor id="DOMAINGUESTGROUP">domain guest group (G)</term>
2305 <listitem><para>This parameter is intended as a temporary solution
2306 to enable users to be a member of the "Domain Guests" group when
2307 a Samba host is acting as a PDC. A complete solution will be provided
2308 by a system for mapping Windows NT/2000 groups onto UNIX groups.
2309 Please note that this parameter has a somewhat confusing name. It
2310 accepts a list of usernames and of group names in standard
2311 <filename>smb.conf</filename> notation.
2312 </para>
2314 <para>See also <link linkend="DOMAINADMINGROUP"><parameter>domain
2315 admin group</parameter></link>, <link linkend="DOMAINLOGONS"><parameter>domain
2316 logons</parameter></link>
2317 </para>
2319 <para>Default: <emphasis>no domain guests</emphasis></para>
2320 <para>Example: <command>domain guest group = nobody @guest</command></para>
2321 </listitem>
2322 </varlistentry>
2325 <varlistentry>
2326 <term><anchor id="DOMAINLOGONS">domain logons (G)</term>
2327 <listitem><para>If set to <constant>true</constant>, the Samba server will serve
2328 Windows 95/98 Domain logons for the <link linkend="WORKGROUP">
2329 <parameter>workgroup</parameter></link> it is in. Samba 2.2 also
2330 has limited capability to act as a domain controller for Windows
2331 NT 4 Domains. For more details on setting up this feature see
2332 the file DOMAINS.txt in the Samba documentation directory <filename>docs/
2333 </filename> shipped with the source code.</para>
2335 <para>Default: <command>domain logons = no</command></para></listitem>
2336 </varlistentry>
2340 <varlistentry>
2341 <term><anchor id="DOMAINMASTER">domain master (G)</term>
2342 <listitem><para>Tell <ulink url="nmbd.8.html"><command>
2343 nmbd(8)</command></ulink> to enable WAN-wide browse list
2344 collation. Setting this option causes <command>nmbd</command> to
2345 claim a special domain specific NetBIOS name that identifies
2346 it as a domain master browser for its given <link linkend="WORKGROUP">
2347 <parameter>workgroup</parameter></link>. Local master browsers
2348 in the same <parameter>workgroup</parameter> on broadcast-isolated
2349 subnets will give this <command>nmbd</command> their local browse lists,
2350 and then ask <ulink url="smbd.8.html"><command>smbd(8)</command></ulink>
2351 for a complete copy of the browse list for the whole wide area
2352 network. Browser clients will then contact their local master browser,
2353 and will receive the domain-wide browse list, instead of just the list
2354 for their broadcast-isolated subnet.</para>
2356 <para>Note that Windows NT Primary Domain Controllers expect to be
2357 able to claim this <parameter>workgroup</parameter> specific special
2358 NetBIOS name that identifies them as domain master browsers for
2359 that <parameter>workgroup</parameter> by default (i.e. there is no
2360 way to prevent a Windows NT PDC from attempting to do this). This
2361 means that if this parameter is set and <command>nmbd</command> claims
2362 the special name for a <parameter>workgroup</parameter> before a Windows
2363 NT PDC is able to do so then cross subnet browsing will behave
2364 strangely and may fail.</para>
2366 <para>If <link linkend="DOMAINLOGONS"><command>domain logons = yes</command>
2367 </link>, then the default behavior is to enable the <parameter>domain
2368 master</parameter> parameter. If <parameter>domain logons</parameter> is
2369 not enabled (the default setting), then neither will <parameter>domain
2370 master</parameter> be enabled by default.</para>
2372 <para>Default: <command>domain master = auto</command></para></listitem>
2373 </varlistentry>
2378 <varlistentry>
2379 <term><anchor id="DONTDESCEND">dont descend (S)</term>
2380 <listitem><para>There are certain directories on some systems
2381 (e.g., the <filename>/proc</filename> tree under Linux) that are either not
2382 of interest to clients or are infinitely deep (recursive). This
2383 parameter allows you to specify a comma-delimited list of directories
2384 that the server should always show as empty.</para>
2386 <para>Note that Samba can be very fussy about the exact format
2387 of the "dont descend" entries. For example you may need <filename>
2388 ./proc</filename> instead of just <filename>/proc</filename>.
2389 Experimentation is the best policy :-) </para>
2391 <para>Default: <emphasis>none (i.e., all directories are OK
2392 to descend)</emphasis></para>
2393 <para>Example: <command>dont descend = /proc,/dev</command></para>
2394 </listitem>
2395 </varlistentry>
2399 <varlistentry>
2400 <term><anchor id="DOSFILEMODE">dos filemode (S)</term>
2401 <listitem><para> The default behavior in Samba is to provide
2402 UNIX-like behavior where only the owner of a file/directory is
2403 able to change the permissions on it. However, this behavior
2404 is often confusing to DOS/Windows users. Enabling this parameter
2405 allows a user who has write access to the file (by whatever
2406 means) to modify the permissions on it. Note that a user
2407 belonging to the group owning the file will not be allowed to
2408 change permissions if the group is only granted read access.
2409 Ownership of the file/directory is not changed, only the permissions
2410 are modified.</para>
2412 <para>Default: <command>dos filemode = no</command></para>
2413 </listitem>
2414 </varlistentry>
2418 <varlistentry>
2419 <term><anchor id="DOSFILETIMERESOLUTION">dos filetime resolution (S)</term>
2420 <listitem><para>Under the DOS and Windows FAT filesystem, the finest
2421 granularity on time resolution is two seconds. Setting this parameter
2422 for a share causes Samba to round the reported time down to the
2423 nearest two second boundary when a query call that requires one second
2424 resolution is made to <ulink url="smbd.8.html"><command>smbd(8)</command>
2425 </ulink>.</para>
2427 <para>This option is mainly used as a compatibility option for Visual
2428 C++ when used against Samba shares. If oplocks are enabled on a
2429 share, Visual C++ uses two different time reading calls to check if a
2430 file has changed since it was last read. One of these calls uses a
2431 one-second granularity, the other uses a two second granularity. As
2432 the two second call rounds any odd second down, then if the file has a
2433 timestamp of an odd number of seconds then the two timestamps will not
2434 match and Visual C++ will keep reporting the file has changed. Setting
2435 this option causes the two timestamps to match, and Visual C++ is
2436 happy.</para>
2438 <para>Default: <command>dos filetime resolution = no</command></para>
2439 </listitem>
2440 </varlistentry>
2444 <varlistentry>
2445 <term><anchor id="DOSFILETIMES">dos filetimes (S)</term>
2446 <listitem><para>Under DOS and Windows, if a user can write to a
2447 file they can change the timestamp on it. Under POSIX semantics,
2448 only the owner of the file or root may change the timestamp. By
2449 default, Samba runs with POSIX semantics and refuses to change the
2450 timestamp on a file if the user <command>smbd</command> is acting
2451 on behalf of is not the file owner. Setting this option to <constant>
2452 true</constant> allows DOS semantics and <ulink url="smbd.8.html">smbd</ulink> will change the file
2453 timestamp as DOS requires.</para>
2455 <para>Default: <command>dos filetimes = no</command></para></listitem>
2456 </varlistentry>
2460 <varlistentry>
2461 <term><anchor id="ENCRYPTPASSWORDS">encrypt passwords (G)</term>
2462 <listitem><para>This boolean controls whether encrypted passwords
2463 will be negotiated with the client. Note that Windows NT 4.0 SP3 and
2464 above and also Windows 98 will by default expect encrypted passwords
2465 unless a registry entry is changed. To use encrypted passwords in
2466 Samba see the file ENCRYPTION.txt in the Samba documentation
2467 directory <filename>docs/</filename> shipped with the source code.</para>
2469 <para>In order for encrypted passwords to work correctly
2470 <ulink url="smbd.8.html"><command>smbd(8)</command></ulink> must either
2471 have access to a local <ulink url="smbpasswd.5.html"><filename>smbpasswd(5)
2472 </filename></ulink> file (see the <ulink url="smbpasswd.8.html"><command>
2473 smbpasswd(8)</command></ulink> program for information on how to set up
2474 and maintain this file), or set the <link
2475 linkend="SECURITY">security = [server|domain]</link> parameter which
2476 causes <command>smbd</command> to authenticate against another
2477 server.</para>
2479 <para>Default: <command>encrypt passwords = no</command></para></listitem>
2480 </varlistentry>
2483 <varlistentry>
2484 <term><anchor id="ENHANCEDBROWSING">enhanced browsing (G)</term>
2485 <listitem><para>This option enables a couple of enhancements to
2486 cross-subnet browse propagation that have been added in Samba
2487 but which are not standard in Microsoft implementations.
2488 </para>
2490 <para>The first enhancement to browse propagation consists of a regular
2491 wildcard query to a Samba WINS server for all Domain Master Browsers,
2492 followed by a browse synchronization with each of the returned
2493 DMBs. The second enhancement consists of a regular randomised browse
2494 synchronization with all currently known DMBs.</para>
2496 <para>You may wish to disable this option if you have a problem with empty
2497 workgroups not disappearing from browse lists. Due to the restrictions
2498 of the browse protocols these enhancements can cause a empty workgroup
2499 to stay around forever which can be annoying.</para>
2501 <para>In general you should leave this option enabled as it makes
2502 cross-subnet browse propagation much more reliable.</para>
2504 <para>Default: <command>enhanced browsing = yes</command></para>
2505 </listitem>
2506 </varlistentry>
2509 <varlistentry>
2510 <term><anchor id="ENUMPORTSCOMMAND">enumports command (G)</term>
2511 <listitem><para>The concept of a "port" is fairly foreign
2512 to UNIX hosts. Under Windows NT/2000 print servers, a port
2513 is associated with a port monitor and generally takes the form of
2514 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
2515 (i.e. LPD Port Monitor, etc...). By default, Samba has only one
2516 port defined--<constant>"Samba Printer Port"</constant>. Under
2517 Windows NT/2000, all printers must have a valid port name.
2518 If you wish to have a list of ports displayed (<command>smbd
2519 </command> does not use a port name for anything) other than
2520 the default <constant>"Samba Printer Port"</constant>, you
2521 can define <parameter>enumports command</parameter> to point to
2522 a program which should generate a list of ports, one per line,
2523 to standard output. This listing will then be used in response
2524 to the level 1 and 2 EnumPorts() RPC.</para>
2526 <para>Default: <emphasis>no enumports command</emphasis></para>
2527 <para>Example: <command>enumports command = /usr/bin/listports
2528 </command></para>
2529 </listitem>
2530 </varlistentry>
2532 <varlistentry>
2533 <term><anchor id="EXEC">exec (S)</term>
2534 <listitem><para>This is a synonym for <link linkend="PREEXEC">
2535 <parameter>preexec</parameter></link>.</para></listitem>
2536 </varlistentry>
2540 <varlistentry>
2541 <term><anchor id="FAKEDIRECTORYCREATETIMES">fake directory create times (S)</term>
2542 <listitem><para>NTFS and Windows VFAT file systems keep a create
2543 time for all files and directories. This is not the same as the
2544 ctime - status change time - that Unix keeps, so Samba by default
2545 reports the earliest of the various times Unix does keep. Setting
2546 this parameter for a share causes Samba to always report midnight
2547 1-1-1980 as the create time for directories.</para>
2549 <para>This option is mainly used as a compatibility option for
2550 Visual C++ when used against Samba shares. Visual C++ generated
2551 makefiles have the object directory as a dependency for each object
2552 file, and a make rule to create the directory. Also, when NMAKE
2553 compares timestamps it uses the creation time when examining a
2554 directory. Thus the object directory will be created if it does not
2555 exist, but once it does exist it will always have an earlier
2556 timestamp than the object files it contains.</para>
2558 <para>However, Unix time semantics mean that the create time
2559 reported by Samba will be updated whenever a file is created or
2560 or deleted in the directory. NMAKE finds all object files in
2561 the object directory. The timestamp of the last one built is then
2562 compared to the timestamp of the object directory. If the
2563 directory's timestamp if newer, then all object files
2564 will be rebuilt. Enabling this option
2565 ensures directories always predate their contents and an NMAKE build
2566 will proceed as expected.</para>
2568 <para>Default: <command>fake directory create times = no</command></para>
2569 </listitem>
2570 </varlistentry>
2574 <varlistentry>
2575 <term><anchor id="FAKEOPLOCKS">fake oplocks (S)</term>
2576 <listitem><para>Oplocks are the way that SMB clients get permission
2577 from a server to locally cache file operations. If a server grants
2578 an oplock (opportunistic lock) then the client is free to assume
2579 that it is the only one accessing the file and it will aggressively
2580 cache file data. With some oplock types the client may even cache
2581 file open/close operations. This can give enormous performance benefits.
2582 </para>
2584 <para>When you set <command>fake oplocks = yes</command>, <ulink
2585 url="smbd.8.html"><command>smbd(8)</command></ulink> will
2586 always grant oplock requests no matter how many clients are using
2587 the file.</para>
2589 <para>It is generally much better to use the real <link
2590 linkend="OPLOCKS"><parameter>oplocks</parameter></link> support rather
2591 than this parameter.</para>
2593 <para>If you enable this option on all read-only shares or
2594 shares that you know will only be accessed from one client at a
2595 time such as physically read-only media like CDROMs, you will see
2596 a big performance improvement on many operations. If you enable
2597 this option on shares where multiple clients may be accessing the
2598 files read-write at the same time you can get data corruption. Use
2599 this option carefully!</para>
2601 <para>Default: <command>fake oplocks = no</command></para></listitem>
2602 </varlistentry>
2606 <varlistentry>
2607 <term><anchor id="FOLLOWSYMLINKS">follow symlinks (S)</term>
2608 <listitem><para>This parameter allows the Samba administrator
2609 to stop <ulink url="smbd.8.html"><command>smbd(8)</command></ulink>
2610 from following symbolic links in a particular share. Setting this
2611 parameter to <constant>no</constant> prevents any file or directory
2612 that is a symbolic link from being followed (the user will get an
2613 error). This option is very useful to stop users from adding a
2614 symbolic link to <filename>/etc/passwd</filename> in their home
2615 directory for instance. However it will slow filename lookups
2616 down slightly.</para>
2618 <para>This option is enabled (i.e. <command>smbd</command> will
2619 follow symbolic links) by default.</para>
2621 <para>Default: <command>follow symlinks = yes</command></para></listitem>
2622 </varlistentry>
2626 <varlistentry>
2627 <term><anchor id="FORCECREATEMODE">force create mode (S)</term>
2628 <listitem><para>This parameter specifies a set of UNIX mode bit
2629 permissions that will <emphasis>always</emphasis> be set on a
2630 file created by Samba. This is done by bitwise 'OR'ing these bits onto
2631 the mode bits of a file that is being created or having its
2632 permissions changed. The default for this parameter is (in octal)
2633 000. The modes in this parameter are bitwise 'OR'ed onto the file
2634 mode after the mask set in the <parameter>create mask</parameter>
2635 parameter is applied.</para>
2637 <para>Note that by default this parameter does not apply to permissions
2638 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
2639 this mask on access control lists also, they need to set the <link
2640 linkend="RESTRICTACLWITHMASK"><parameter>restrict acl with
2641 mask</parameter></link> to <constant>true</constant>.</para>
2643 <para>See also the parameter <link linkend="CREATEMASK"><parameter>create
2644 mask</parameter></link> for details on masking mode bits on files.</para>
2646 <para>See also the <link linkend="INHERITPERMISSIONS"><parameter>inherit
2647 permissions</parameter></link> parameter.</para>
2649 <para>Default: <command>force create mode = 000</command></para>
2650 <para>Example: <command>force create mode = 0755</command></para>
2652 <para>would force all created files to have read and execute
2653 permissions set for 'group' and 'other' as well as the
2654 read/write/execute bits set for the 'user'.</para>
2655 </listitem>
2656 </varlistentry>
2660 <varlistentry>
2661 <term><anchor id="FORCEDIRECTORYMODE">force directory mode (S)</term>
2662 <listitem><para>This parameter specifies a set of UNIX mode bit
2663 permissions that will <emphasis>always</emphasis> be set on a directory
2664 created by Samba. This is done by bitwise 'OR'ing these bits onto the
2665 mode bits of a directory that is being created. The default for this
2666 parameter is (in octal) 0000 which will not add any extra permission
2667 bits to a created directory. This operation is done after the mode
2668 mask in the parameter <parameter>directory mask</parameter> is
2669 applied.</para>
2671 <para>Note that by default this parameter does not apply to permissions
2672 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
2673 this mask on access control lists also, they need to set the <link
2674 linkend="RESTRICTACLWITHMASK"><parameter>restrict acl with
2675 mask</parameter></link> to <constant>true</constant>.</para>
2677 <para>See also the parameter <link linkend="DIRECTORYMASK"><parameter>
2678 directory mask</parameter></link> for details on masking mode bits
2679 on created directories.</para>
2681 <para>See also the <link linkend="INHERITPERMISSIONS"><parameter>
2682 inherit permissions</parameter></link> parameter.</para>
2684 <para>Default: <command>force directory mode = 000</command></para>
2685 <para>Example: <command>force directory mode = 0755</command></para>
2687 <para>would force all created directories to have read and execute
2688 permissions set for 'group' and 'other' as well as the
2689 read/write/execute bits set for the 'user'.</para>
2690 </listitem>
2691 </varlistentry>
2695 <varlistentry>
2696 <term><anchor id="FORCEDIRECTORYSECURITYMODE">force directory
2697 security mode (S)</term>
2698 <listitem><para>This parameter controls what UNIX permission bits
2699 can be modified when a Windows NT client is manipulating the UNIX
2700 permission on a directory using the native NT security dialog box.</para>
2702 <para>This parameter is applied as a mask (OR'ed with) to the
2703 changed permission bits, thus forcing any bits in this mask that
2704 the user may have modified to be on. Essentially, one bits in this
2705 mask may be treated as a set of bits that, when modifying security
2706 on a directory, the user has always set to be 'on'.</para>
2708 <para>If not set explicitly this parameter is 000, which
2709 allows a user to modify all the user/group/world permissions on a
2710 directory without restrictions.</para>
2712 <para><emphasis>Note</emphasis> that users who can access the
2713 Samba server through other means can easily bypass this restriction,
2714 so it is primarily useful for standalone "appliance" systems.
2715 Administrators of most normal systems will probably want to leave
2716 it set as 0000.</para>
2718 <para>See also the <link linkend="DIRECTORYSECURITYMASK"><parameter>
2719 directory security mask</parameter></link>, <link linkend="SECURITYMASK">
2720 <parameter>security mask</parameter></link>,
2721 <link linkend="FORCESECURITYMODE"><parameter>force security mode
2722 </parameter></link> parameters.</para>
2724 <para>Default: <command>force directory security mode = 0</command></para>
2725 <para>Example: <command>force directory security mode = 700</command></para>
2726 </listitem>
2727 </varlistentry>
2732 <varlistentry>
2733 <term><anchor id="FORCEGROUP">force group (S)</term>
2734 <listitem><para>This specifies a UNIX group name that will be
2735 assigned as the default primary group for all users connecting
2736 to this service. This is useful for sharing files by ensuring
2737 that all access to files on service will use the named group for
2738 their permissions checking. Thus, by assigning permissions for this
2739 group to the files and directories within this service the Samba
2740 administrator can restrict or allow sharing of these files.</para>
2742 <para>In Samba 2.0.5 and above this parameter has extended
2743 functionality in the following way. If the group name listed here
2744 has a '+' character prepended to it then the current user accessing
2745 the share only has the primary group default assigned to this group
2746 if they are already assigned as a member of that group. This allows
2747 an administrator to decide that only users who are already in a
2748 particular group will create files with group ownership set to that
2749 group. This gives a finer granularity of ownership assignment. For
2750 example, the setting <filename>force group = +sys</filename> means
2751 that only users who are already in group sys will have their default
2752 primary group assigned to sys when accessing this Samba share. All
2753 other users will retain their ordinary primary group.</para>
2755 <para>If the <link linkend="FORCEUSER"><parameter>force user
2756 </parameter></link> parameter is also set the group specified in
2757 <parameter>force group</parameter> will override the primary group
2758 set in <parameter>force user</parameter>.</para>
2760 <para>See also <link linkend="FORCEUSER"><parameter>force
2761 user</parameter></link>.</para>
2763 <para>Default: <emphasis>no forced group</emphasis></para>
2764 <para>Example: <command>force group = agroup</command></para>
2765 </listitem>
2766 </varlistentry>
2770 <varlistentry>
2771 <term><anchor id="FORCESECURITYMODE">force security mode (S)</term>
2772 <listitem><para>This parameter controls what UNIX permission
2773 bits can be modified when a Windows NT client is manipulating
2774 the UNIX permission on a file using the native NT security dialog
2775 box.</para>
2777 <para>This parameter is applied as a mask (OR'ed with) to the
2778 changed permission bits, thus forcing any bits in this mask that
2779 the user may have modified to be on. Essentially, one bits in this
2780 mask may be treated as a set of bits that, when modifying security
2781 on a file, the user has always set to be 'on'.</para>
2783 <para>If not set explicitly this parameter is set to 0,
2784 and allows a user to modify all the user/group/world permissions on a file,
2785 with no restrictions.</para>
2787 <para><emphasis>Note</emphasis> that users who can access
2788 the Samba server through other means can easily bypass this restriction,
2789 so it is primarily useful for standalone "appliance" systems.
2790 Administrators of most normal systems will probably want to leave
2791 this set to 0000.</para>
2793 <para>See also the <link linkend="FORCEDIRECTORYSECURITYMODE"><parameter>
2794 force directory security mode</parameter></link>,
2795 <link linkend="DIRECTORYSECURITYMASK"><parameter>directory security
2796 mask</parameter></link>, <link linkend="SECURITYMASK"><parameter>
2797 security mask</parameter></link> parameters.</para>
2799 <para>Default: <command>force security mode = 0</command></para>
2800 <para>Example: <command>force security mode = 700</command></para>
2801 </listitem>
2802 </varlistentry>
2806 <varlistentry>
2807 <term><anchor id="FORCEUSER">force user (S)</term>
2808 <listitem><para>This specifies a UNIX user name that will be
2809 assigned as the default user for all users connecting to this service.
2810 This is useful for sharing files. You should also use it carefully
2811 as using it incorrectly can cause security problems.</para>
2813 <para>This user name only gets used once a connection is established.
2814 Thus clients still need to connect as a valid user and supply a
2815 valid password. Once connected, all file operations will be performed
2816 as the "forced user", no matter what username the client connected
2817 as. This can be very useful.</para>
2819 <para>In Samba 2.0.5 and above this parameter also causes the
2820 primary group of the forced user to be used as the primary group
2821 for all file activity. Prior to 2.0.5 the primary group was left
2822 as the primary group of the connecting user (this was a bug).</para>
2824 <para>See also <link linkend="FORCEGROUP"><parameter>force group
2825 </parameter></link></para>
2827 <para>Default: <emphasis>no forced user</emphasis></para>
2828 <para>Example: <command>force user = auser</command></para>
2829 </listitem>
2830 </varlistentry>
2834 <varlistentry>
2835 <term><anchor id="FSTYPE">fstype (S)</term>
2836 <listitem><para>This parameter allows the administrator to
2837 configure the string that specifies the type of filesystem a share
2838 is using that is reported by <ulink url="smbd.8.html"><command>smbd(8)
2839 </command></ulink> when a client queries the filesystem type
2840 for a share. The default type is <constant>NTFS</constant> for
2841 compatibility with Windows NT but this can be changed to other
2842 strings such as <constant>Samba</constant> or <constant>FAT
2843 </constant> if required.</para>
2845 <para>Default: <command>fstype = NTFS</command></para>
2846 <para>Example: <command>fstype = Samba</command></para></listitem>
2847 </varlistentry>
2851 <varlistentry>
2852 <term><anchor id="GETWDCACHE">getwd cache (G)</term>
2853 <listitem><para>This is a tuning option. When this is enabled a
2854 caching algorithm will be used to reduce the time taken for getwd()
2855 calls. This can have a significant impact on performance, especially
2856 when the <link linkend="WIDELINKS"><parameter>wide links</parameter>
2857 </link>parameter is set to <constant>false</constant>.</para>
2859 <para>Default: <command>getwd cache = yes</command></para>
2860 </listitem>
2861 </varlistentry>
2865 <varlistentry>
2866 <term><anchor id="GROUP">group (S)</term>
2867 <listitem><para>Synonym for <link linkend="FORCEGROUP"><parameter>force
2868 group</parameter></link>.</para></listitem>
2869 </varlistentry>
2873 <varlistentry>
2874 <term><anchor id="GUESTACCOUNT">guest account (S)</term>
2875 <listitem><para>This is a username which will be used for access
2876 to services which are specified as <link linkend="GUESTOK"><parameter>
2877 guest ok</parameter></link> (see below). Whatever privileges this
2878 user has will be available to any client connecting to the guest service.
2879 Typically this user will exist in the password file, but will not
2880 have a valid login. The user account "ftp" is often a good choice
2881 for this parameter. If a username is specified in a given service,
2882 the specified username overrides this one.</para>
2884 <para>One some systems the default guest account "nobody" may not
2885 be able to print. Use another account in this case. You should test
2886 this by trying to log in as your guest user (perhaps by using the
2887 <command>su -</command> command) and trying to print using the
2888 system print command such as <command>lpr(1)</command> or <command>
2889 lp(1)</command>.</para>
2891 <para>Default: <emphasis>specified at compile time, usually
2892 "nobody"</emphasis></para>
2894 <para>Example: <command>guest account = ftp</command></para></listitem>
2895 </varlistentry>
2899 <varlistentry>
2900 <term><anchor id="GUESTOK">guest ok (S)</term>
2901 <listitem><para>If this parameter is <constant>yes</constant> for
2902 a service, then no password is required to connect to the service.
2903 Privileges will be those of the <link linkend="GUESTACCOUNT"><parameter>
2904 guest account</parameter></link>.</para>
2906 <para>See the section below on <link linkend="SECURITY"><parameter>
2907 security</parameter></link> for more information about this option.
2908 </para>
2910 <para>Default: <command>guest ok = no</command></para></listitem>
2911 </varlistentry>
2915 <varlistentry>
2916 <term><anchor id="GUESTONLY">guest only (S)</term>
2917 <listitem><para>If this parameter is <constant>yes</constant> for
2918 a service, then only guest connections to the service are permitted.
2919 This parameter will have no effect if <link linkend="GUESTOK">
2920 <parameter>guest ok</parameter></link> is not set for the service.</para>
2922 <para>See the section below on <link linkend="SECURITY"><parameter>
2923 security</parameter></link> for more information about this option.
2924 </para>
2926 <para>Default: <command>guest only = no</command></para></listitem>
2927 </varlistentry>
2931 <varlistentry>
2932 <term><anchor id="HIDEDOTFILES">hide dot files (S)</term>
2933 <listitem><para>This is a boolean parameter that controls whether
2934 files starting with a dot appear as hidden files.</para>
2936 <para>Default: <command>hide dot files = yes</command></para></listitem>
2937 </varlistentry>
2941 <varlistentry>
2942 <term><anchor id="HIDEFILES">hide files(S)</term>
2943 <listitem><para>This is a list of files or directories that are not
2944 visible but are accessible. The DOS 'hidden' attribute is applied
2945 to any files or directories that match.</para>
2947 <para>Each entry in the list must be separated by a '/',
2948 which allows spaces to be included in the entry. '*'
2949 and '?' can be used to specify multiple files or directories
2950 as in DOS wildcards.</para>
2952 <para>Each entry must be a Unix path, not a DOS path and must
2953 not include the Unix directory separator '/'.</para>
2955 <para>Note that the case sensitivity option is applicable
2956 in hiding files.</para>
2958 <para>Setting this parameter will affect the performance of Samba,
2959 as it will be forced to check all files and directories for a match
2960 as they are scanned.</para>
2962 <para>See also <link linkend="HIDEDOTFILES"><parameter>hide
2963 dot files</parameter></link>, <link linkend="VETOFILES"><parameter>
2964 veto files</parameter></link> and <link linkend="CASESENSITIVE">
2965 <parameter>case sensitive</parameter></link>.</para>
2967 <para>Default: <emphasis>no file are hidden</emphasis></para>
2968 <para>Example: <command>hide files =
2969 /.*/DesktopFolderDB/TrashFor%m/resource.frk/</command></para>
2971 <para>The above example is based on files that the Macintosh
2972 SMB client (DAVE) available from <ulink url="http://www.thursby.com">
2973 Thursby</ulink> creates for internal use, and also still hides
2974 all files beginning with a dot.</para></listitem>
2975 </varlistentry>
2979 <varlistentry>
2980 <term><anchor id="HIDELOCALUSERS">hide local users(G)</term>
2981 <listitem><para>This parameter toggles the hiding of local UNIX
2982 users (root, wheel, floppy, etc) from remote clients.</para>
2984 <para>Default: <command>hide local users = no</command></para></listitem>
2985 </varlistentry>
2989 <varlistentry>
2990 <term><anchor id="HIDEUNREADABLE">hide unreadable(G)</term>
2991 <listitem><para>This parameter prevents clients from seeing the
2992 existance of files that cannot be read. Defaults to off.</para>
2994 <para>Default: <command>hide unreadable = no</command></para></listitem>
2995 </varlistentry>
2999 <varlistentry>
3000 <term><anchor id="HOMEDIRMAP">homedir map (G)</term>
3001 <listitem><para>If<link linkend="NISHOMEDIR"><parameter>nis homedir
3002 </parameter></link> is <constant>true</constant>, and <ulink
3003 url="smbd.8.html"><command>smbd(8)</command></ulink> is also acting
3004 as a Win95/98 <parameter>logon server</parameter> then this parameter
3005 specifies the NIS (or YP) map from which the server for the user's
3006 home directory should be extracted. At present, only the Sun
3007 auto.home map format is understood. The form of the map is:</para>
3009 <para><command>username server:/some/file/system</command></para>
3011 <para>and the program will extract the servername from before
3012 the first ':'. There should probably be a better parsing system
3013 that copes with different map formats and also Amd (another
3014 automounter) maps.</para>
3016 <para><emphasis>NOTE :</emphasis>A working NIS client is required on
3017 the system for this option to work.</para>
3019 <para>See also <link linkend="NISHOMEDIR"><parameter>nis homedir</parameter>
3020 </link>, <link linkend="DOMAINLOGONS"><parameter>domain logons</parameter>
3021 </link>.</para>
3023 <para>Default: <command>homedir map = &lt;empty string&gt;</command></para>
3024 <para>Example: <command>homedir map = amd.homedir</command></para>
3025 </listitem>
3026 </varlistentry>
3032 <varlistentry>
3033 <term><anchor id="HOSTMSDFS">host msdfs (G)</term>
3034 <listitem><para>This boolean parameter is only available
3035 if Samba has been configured and compiled with the <command>
3036 --with-msdfs</command> option. If set to <constant>yes</constant>,
3037 Samba will act as a Dfs server, and allow Dfs-aware clients
3038 to browse Dfs trees hosted on the server.</para>
3040 <para>See also the <link linkend="MSDFSROOT"><parameter>
3041 msdfs root</parameter></link> share level parameter. For
3042 more information on setting up a Dfs tree on Samba,
3043 refer to <ulink url="msdfs_setup.html">msdfs_setup.html</ulink>.
3044 </para>
3046 <para>Default: <command>host msdfs = no</command></para>
3047 </listitem>
3048 </varlistentry>
3051 <varlistentry>
3052 <term><anchor id="HOSTSALLOW">hosts allow (S)</term>
3053 <listitem><para>A synonym for this parameter is <parameter>allow
3054 hosts</parameter>.</para>
3056 <para>This parameter is a comma, space, or tab delimited
3057 set of hosts which are permitted to access a service.</para>
3059 <para>If specified in the [global] section then it will
3060 apply to all services, regardless of whether the individual
3061 service has a different setting.</para>
3063 <para>You can specify the hosts by name or IP number. For
3064 example, you could restrict access to only the hosts on a
3065 Class C subnet with something like <command>allow hosts = 150.203.5.
3066 </command>. The full syntax of the list is described in the man
3067 page <filename>hosts_access(5)</filename>. Note that this man
3068 page may not be present on your system, so a brief description will
3069 be given here also.</para>
3071 <para>Note that the localhost address 127.0.0.1 will always
3072 be allowed access unless specifically denied by a <link
3073 linkend="HOSTSDENY"><parameter>hosts deny</parameter></link> option.</para>
3075 <para>You can also specify hosts by network/netmask pairs and
3076 by netgroup names if your system supports netgroups. The
3077 <emphasis>EXCEPT</emphasis> keyword can also be used to limit a
3078 wildcard list. The following examples may provide some help:</para>
3080 <para>Example 1: allow all IPs in 150.203.*.*; except one</para>
3082 <para><command>hosts allow = 150.203. EXCEPT 150.203.6.66</command></para>
3084 <para>Example 2: allow hosts that match the given network/netmask</para>
3086 <para><command>hosts allow = 150.203.15.0/255.255.255.0</command></para>
3088 <para>Example 3: allow a couple of hosts</para>
3090 <para><command>hosts allow = lapland, arvidsjaur</command></para>
3092 <para>Example 4: allow only hosts in NIS netgroup "foonet", but
3093 deny access from one particular host</para>
3095 <para><command>hosts allow = @foonet</command></para>
3097 <para><command>hosts deny = pirate</command></para>
3099 <para>Note that access still requires suitable user-level passwords.</para>
3101 <para>See <ulink url="testparm.1.html"><command>testparm(1)</command>
3102 </ulink> for a way of testing your host access to see if it does
3103 what you expect.</para>
3105 <para>Default: <emphasis>none (i.e., all hosts permitted access)
3106 </emphasis></para>
3108 <para>Example: <command>allow hosts = 150.203.5. myhost.mynet.edu.au
3109 </command></para>
3110 </listitem>
3111 </varlistentry>
3115 <varlistentry>
3116 <term><anchor id="HOSTSDENY">hosts deny (S)</term>
3117 <listitem><para>The opposite of <parameter>hosts allow</parameter>
3118 - hosts listed here are <emphasis>NOT</emphasis> permitted access to
3119 services unless the specific services have their own lists to override
3120 this one. Where the lists conflict, the <parameter>allow</parameter>
3121 list takes precedence.</para>
3123 <para>Default: <emphasis>none (i.e., no hosts specifically excluded)
3124 </emphasis></para>
3126 <para>Example: <command>hosts deny = 150.203.4. badhost.mynet.edu.au
3127 </command></para></listitem>
3128 </varlistentry>
3132 <varlistentry>
3133 <term><anchor id="HOSTSEQUIV">hosts equiv (G)</term>
3134 <listitem><para>If this global parameter is a non-null string,
3135 it specifies the name of a file to read for the names of hosts
3136 and users who will be allowed access without specifying a password.
3137 </para>
3139 <para>This is not be confused with <link linkend="HOSTSALLOW">
3140 <parameter>hosts allow</parameter></link> which is about hosts
3141 access to services and is more useful for guest services. <parameter>
3142 hosts equiv</parameter> may be useful for NT clients which will
3143 not supply passwords to Samba.</para>
3145 <para><emphasis>NOTE :</emphasis> The use of <parameter>hosts equiv
3146 </parameter> can be a major security hole. This is because you are
3147 trusting the PC to supply the correct username. It is very easy to
3148 get a PC to supply a false username. I recommend that the
3149 <parameter>hosts equiv</parameter> option be only used if you really
3150 know what you are doing, or perhaps on a home network where you trust
3151 your spouse and kids. And only if you <emphasis>really</emphasis> trust
3152 them :-).</para>
3154 <para>Default: <emphasis>no host equivalences</emphasis></para>
3155 <para>Example: <command>hosts equiv = /etc/hosts.equiv</command></para>
3156 </listitem>
3157 </varlistentry>
3161 <varlistentry>
3162 <term><anchor id="INCLUDE">include (G)</term>
3163 <listitem><para>This allows you to include one config file
3164 inside another. The file is included literally, as though typed
3165 in place.</para>
3167 <para>It takes the standard substitutions, except <parameter>%u
3168 </parameter>, <parameter>%P</parameter> and <parameter>%S</parameter>.
3169 </para>
3171 <para>Default: <emphasis>no file included</emphasis></para>
3172 <para>Example: <command>include = /usr/local/samba/lib/admin_smb.conf
3173 </command></para></listitem>
3174 </varlistentry>
3178 <varlistentry>
3179 <term><anchor id="INHERITPERMISSIONS">inherit permissions (S)</term>
3180 <listitem><para>The permissions on new files and directories
3181 are normally governed by <link linkend="CREATEMASK"><parameter>
3182 create mask</parameter></link>, <link linkend="DIRECTORYMASK">
3183 <parameter>directory mask</parameter></link>, <link
3184 linkend="FORCECREATEMODE"><parameter>force create mode</parameter>
3185 </link> and <link linkend="FORCEDIRECTORYMODE"><parameter>force
3186 directory mode</parameter></link> but the boolean inherit
3187 permissions parameter overrides this.</para>
3189 <para>New directories inherit the mode of the parent directory,
3190 including bits such as setgid.</para>
3192 <para>New files inherit their read/write bits from the parent
3193 directory. Their execute bits continue to be determined by
3194 <link linkend="MAPARCHIVE"><parameter>map archive</parameter>
3195 </link>, <link linkend="MAPHIDDEN"><parameter>map hidden</parameter>
3196 </link> and <link linkend="MAPSYSTEM"><parameter>map system</parameter>
3197 </link> as usual.</para>
3199 <para>Note that the setuid bit is <emphasis>never</emphasis> set via
3200 inheritance (the code explicitly prohibits this).</para>
3202 <para>This can be particularly useful on large systems with
3203 many users, perhaps several thousand, to allow a single [homes]
3204 share to be used flexibly by each user.</para>
3206 <para>See also <link linkend="CREATEMASK"><parameter>create mask
3207 </parameter></link>, <link linkend="DIRECTORYMASK"><parameter>
3208 directory mask</parameter></link>, <link linkend="FORCECREATEMODE">
3209 <parameter>force create mode</parameter></link> and <link
3210 linkend="FORCEDIRECTORYMODE"><parameter>force directory mode</parameter>
3211 </link>.</para>
3213 <para>Default: <command>inherit permissions = no</command></para>
3214 </listitem>
3215 </varlistentry>
3219 <varlistentry>
3220 <term><anchor id="INTERFACES">interfaces (G)</term>
3221 <listitem><para>This option allows you to override the default
3222 network interfaces list that Samba will use for browsing, name
3223 registration and other NBT traffic. By default Samba will query
3224 the kernel for the list of all active interfaces and use any
3225 interfaces except 127.0.0.1 that are broadcast capable.</para>
3227 <para>The option takes a list of interface strings. Each string
3228 can be in any of the following forms:</para>
3230 <itemizedlist>
3231 <listitem><para>a network interface name (such as eth0).
3232 This may include shell-like wildcards so eth* will match
3233 any interface starting with the substring "eth"</para></listitem>
3235 <listitem><para>an IP address. In this case the netmask is
3236 determined from the list of interfaces obtained from the
3237 kernel</para></listitem>
3239 <listitem><para>an IP/mask pair. </para></listitem>
3241 <listitem><para>a broadcast/mask pair.</para></listitem>
3242 </itemizedlist>
3244 <para>The "mask" parameters can either be a bit length (such
3245 as 24 for a C class network) or a full netmask in dotted
3246 decimal form.</para>
3248 <para>The "IP" parameters above can either be a full dotted
3249 decimal IP address or a hostname which will be looked up via
3250 the OS's normal hostname resolution mechanisms.</para>
3252 <para>For example, the following line:</para>
3254 <para><command>interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
3255 </command></para>
3257 <para>would configure three network interfaces corresponding
3258 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10.
3259 The netmasks of the latter two interfaces would be set to 255.255.255.0.</para>
3261 <para>See also <link linkend="BINDINTERFACESONLY"><parameter>bind
3262 interfaces only</parameter></link>.</para>
3264 <para>Default: <emphasis>all active interfaces except 127.0.0.1
3265 that are broadcast capable</emphasis></para>
3266 </listitem>
3267 </varlistentry>
3271 <varlistentry>
3272 <term><anchor id="INVALIDUSERS">invalid users (S)</term>
3273 <listitem><para>This is a list of users that should not be allowed
3274 to login to this service. This is really a <emphasis>paranoid</emphasis>
3275 check to absolutely ensure an improper setting does not breach
3276 your security.</para>
3278 <para>A name starting with a '@' is interpreted as an NIS
3279 netgroup first (if your system supports NIS), and then as a UNIX
3280 group if the name was not found in the NIS netgroup database.</para>
3282 <para>A name starting with '+' is interpreted only
3283 by looking in the UNIX group database. A name starting with
3284 '&' is interpreted only by looking in the NIS netgroup database
3285 (this requires NIS to be working on your system). The characters
3286 '+' and '&' may be used at the start of the name in either order
3287 so the value <parameter>+&amp;group</parameter> means check the
3288 UNIX group database, followed by the NIS netgroup database, and
3289 the value <parameter>&+group</parameter> means check the NIS
3290 netgroup database, followed by the UNIX group database (the
3291 same as the '@' prefix).</para>
3293 <para>The current servicename is substituted for <parameter>%S</parameter>.
3294 This is useful in the [homes] section.</para>
3296 <para>See also <link linkend="VALIDUSERS"><parameter>valid users
3297 </parameter></link>.</para>
3299 <para>Default: <emphasis>no invalid users</emphasis></para>
3300 <para>Example: <command>invalid users = root fred admin @wheel
3301 </command></para>
3302 </listitem>
3303 </varlistentry>
3307 <varlistentry>
3308 <term><anchor id="KEEPALIVE">keepalive (G)</term>
3309 <listitem><para>The value of the parameter (an integer) represents
3310 the number of seconds between <parameter>keepalive</parameter>
3311 packets. If this parameter is zero, no keepalive packets will be
3312 sent. Keepalive packets, if sent, allow the server to tell whether
3313 a client is still present and responding.</para>
3315 <para>Keepalives should, in general, not be needed if the socket
3316 being used has the SO_KEEPALIVE attribute set on it (see <link
3317 linkend="SOCKETOPTIONS"><parameter>socket options</parameter></link>).
3318 Basically you should only use this option if you strike difficulties.</para>
3320 <para>Default: <command>keepalive = 300</command></para>
3321 <para>Example: <command>keepalive = 600</command></para>
3322 </listitem>
3323 </varlistentry>
3327 <varlistentry>
3328 <term><anchor id="KERNELOPLOCKS">kernel oplocks (G)</term>
3329 <listitem><para>For UNIXes that support kernel based <link
3330 linkend="OPLOCKS"><parameter>oplocks</parameter></link>
3331 (currently only IRIX and the Linux 2.4 kernel), this parameter
3332 allows the use of them to be turned on or off.</para>
3334 <para>Kernel oplocks support allows Samba <parameter>oplocks
3335 </parameter> to be broken whenever a local UNIX process or NFS operation
3336 accesses a file that <ulink url="smbd.8.html"><command>smbd(8)</command>
3337 </ulink> has oplocked. This allows complete data consistency between
3338 SMB/CIFS, NFS and local file access (and is a <emphasis>very</emphasis>
3339 cool feature :-).</para>
3341 <para>This parameter defaults to <constant>on</constant>, but is translated
3342 to a no-op on systems that no not have the necessary kernel support.
3343 You should never need to touch this parameter.</para>
3345 <para>See also the <link linkend="OPLOCKS"><parameter>oplocks</parameter>
3346 </link> and <link linkend="LEVEL2OPLOCKS"><parameter>level2 oplocks
3347 </parameter></link> parameters.</para>
3349 <para>Default: <command>kernel oplocks = yes</command></para>
3350 </listitem>
3351 </varlistentry>
3356 <varlistentry>
3357 <term><anchor id="LANMANAUTH">lanman auth (G)</term>
3358 <listitem><para>This parameter determines whether or not <ulink url="smbd.8.html">smbd</ulink> will
3359 attempt to authenticate users using the LANMAN password hash.
3360 If disabled, only clients which support NT password hashes (e.g. Windows
3361 NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS
3362 network client) will be able to connect to the Samba host.</para>
3364 <para>Default : <command>lanman auth = yes</command></para>
3365 </listitem>
3366 </varlistentry>
3372 <varlistentry>
3373 <term><anchor id="LARGEREADWRITE">large readwrite (G)</term>
3374 <listitem><para>This parameter determines whether or not <ulink url="smbd.8.html">smbd</ulink>
3375 supports the new 64k streaming read and write varient SMB requests introduced
3376 with Windows 2000. Note that due to Windows 2000 client redirector bugs
3377 this requires Samba to be running on a 64-bit capable operating system such
3378 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
3379 Windows 2000 clients. Defaults to off. Not as tested as some other Samba
3380 code paths.
3381 </para>
3383 <para>Default : <command>large readwrite = no</command></para>
3384 </listitem>
3385 </varlistentry>
3391 <varlistentry>
3392 <term><anchor id="LEVEL2OPLOCKS">level2 oplocks (S)</term>
3393 <listitem><para>This parameter controls whether Samba supports
3394 level2 (read-only) oplocks on a share.</para>
3396 <para>Level2, or read-only oplocks allow Windows NT clients
3397 that have an oplock on a file to downgrade from a read-write oplock
3398 to a read-only oplock once a second client opens the file (instead
3399 of releasing all oplocks on a second open, as in traditional,
3400 exclusive oplocks). This allows all openers of the file that
3401 support level2 oplocks to cache the file for read-ahead only (ie.
3402 they may not cache writes or lock requests) and increases performance
3403 for many accesses of files that are not commonly written (such as
3404 application .EXE files).</para>
3406 <para>Once one of the clients which have a read-only oplock
3407 writes to the file all clients are notified (no reply is needed
3408 or waited for) and told to break their oplocks to "none" and
3409 delete any read-ahead caches.</para>
3411 <para>It is recommended that this parameter be turned on
3412 to speed access to shared executables.</para>
3414 <para>For more discussions on level2 oplocks see the CIFS spec.</para>
3416 <para>Currently, if <link linkend="KERNELOPLOCKS"><parameter>kernel
3417 oplocks</parameter></link> are supported then level2 oplocks are
3418 not granted (even if this parameter is set to <constant>yes</constant>).
3419 Note also, the <link linkend="OPLOCKS"><parameter>oplocks</parameter>
3420 </link> parameter must be set to <constant>true</constant> on this share in order for
3421 this parameter to have any effect.</para>
3423 <para>See also the <link linkend="OPLOCKS"><parameter>oplocks</parameter>
3424 </link> and <link linkend="OPLOCKS"><parameter>kernel oplocks</parameter>
3425 </link> parameters.</para>
3427 <para>Default: <command>level2 oplocks = yes</command></para>
3428 </listitem>
3429 </varlistentry>
3435 <varlistentry>
3436 <term><anchor id="LMANNOUNCE">lm announce (G)</term>
3437 <listitem><para>This parameter determines if <ulink url="nmbd.8.html">
3438 <command>nmbd(8)</command></ulink> will produce Lanman announce
3439 broadcasts that are needed by OS/2 clients in order for them to see
3440 the Samba server in their browse list. This parameter can have three
3441 values, <constant>true</constant>, <constant>false</constant>, or
3442 <constant>auto</constant>. The default is <constant>auto</constant>.
3443 If set to <constant>false</constant> Samba will never produce these
3444 broadcasts. If set to <constant>true</constant> Samba will produce
3445 Lanman announce broadcasts at a frequency set by the parameter
3446 <parameter>lm interval</parameter>. If set to <constant>auto</constant>
3447 Samba will not send Lanman announce broadcasts by default but will
3448 listen for them. If it hears such a broadcast on the wire it will
3449 then start sending them at a frequency set by the parameter
3450 <parameter>lm interval</parameter>.</para>
3452 <para>See also <link linkend="LMINTERVAL"><parameter>lm interval
3453 </parameter></link>.</para>
3455 <para>Default: <command>lm announce = auto</command></para>
3456 <para>Example: <command>lm announce = yes</command></para>
3457 </listitem>
3458 </varlistentry>
3462 <varlistentry>
3463 <term><anchor id="LMINTERVAL">lm interval (G)</term>
3464 <listitem><para>If Samba is set to produce Lanman announce
3465 broadcasts needed by OS/2 clients (see the <link linkend="LMANNOUNCE">
3466 <parameter>lm announce</parameter></link> parameter) then this
3467 parameter defines the frequency in seconds with which they will be
3468 made. If this is set to zero then no Lanman announcements will be
3469 made despite the setting of the <parameter>lm announce</parameter>
3470 parameter.</para>
3472 <para>See also <link linkend="LMANNOUNCE"><parameter>lm
3473 announce</parameter></link>.</para>
3475 <para>Default: <command>lm interval = 60</command></para>
3476 <para>Example: <command>lm interval = 120</command></para>
3477 </listitem>
3478 </varlistentry>
3482 <varlistentry>
3483 <term><anchor id="LOADPRINTERS">load printers (G)</term>
3484 <listitem><para>A boolean variable that controls whether all
3485 printers in the printcap will be loaded for browsing by default.
3486 See the <link linkend="PRINTERSSECT">printers</link> section for
3487 more details.</para>
3489 <para>Default: <command>load printers = yes</command></para></listitem>
3490 </varlistentry>
3495 <varlistentry>
3496 <term><anchor id="LOCALMASTER">local master (G)</term>
3497 <listitem><para>This option allows <ulink url="nmbd.8.html"><command>
3498 nmbd(8)</command></ulink> to try and become a local master browser
3499 on a subnet. If set to <constant>false</constant> then <command>
3500 nmbd</command> will not attempt to become a local master browser
3501 on a subnet and will also lose in all browsing elections. By
3502 default this value is set to <constant>true</constant>. Setting this value to <constant>true</constant> doesn't
3503 mean that Samba will <emphasis>become</emphasis> the local master
3504 browser on a subnet, just that <command>nmbd</command> will <emphasis>
3505 participate</emphasis> in elections for local master browser.</para>
3507 <para>Setting this value to <constant>false</constant> will cause <command>nmbd</command>
3508 <emphasis>never</emphasis> to become a local master browser.</para>
3510 <para>Default: <command>local master = yes</command></para>
3511 </listitem>
3512 </varlistentry>
3516 <varlistentry>
3517 <term><anchor id="LOCKDIR">lock dir (G)</term>
3518 <listitem><para>Synonym for <link linkend="LOCKDIRECTORY"><parameter>
3519 lock directory</parameter></link>.</para></listitem>
3520 </varlistentry>
3524 <varlistentry>
3525 <term><anchor id="LOCKDIRECTORY">lock directory (G)</term>
3526 <listitem><para>This option specifies the directory where lock
3527 files will be placed. The lock files are used to implement the
3528 <link linkend="MAXCONNECTIONS"><parameter>max connections</parameter>
3529 </link> option.</para>
3531 <para>Default: <command>lock directory = ${prefix}/var/locks</command></para>
3532 <para>Example: <command>lock directory = /var/run/samba/locks</command>
3533 </para></listitem>
3534 </varlistentry>
3538 <varlistentry>
3539 <term><anchor id="LOCKING">locking (S)</term>
3540 <listitem><para>This controls whether or not locking will be
3541 performed by the server in response to lock requests from the
3542 client.</para>
3544 <para>If <command>locking = no</command>, all lock and unlock
3545 requests will appear to succeed and all lock queries will report
3546 that the file in question is available for locking.</para>
3548 <para>If <command>locking = yes</command>, real locking will be performed
3549 by the server.</para>
3551 <para>This option <emphasis>may</emphasis> be useful for read-only
3552 filesystems which <emphasis>may</emphasis> not need locking (such as
3553 CDROM drives), although setting this parameter of <constant>no</constant>
3554 is not really recommended even in this case.</para>
3556 <para>Be careful about disabling locking either globally or in a
3557 specific service, as lack of locking may result in data corruption.
3558 You should never need to set this parameter.</para>
3560 <para>Default: <command>locking = yes</command></para>
3561 </listitem>
3562 </varlistentry>
3566 <varlistentry>
3567 <term><anchor id="LOGFILE">log file (G)</term>
3568 <listitem><para>This option allows you to override the name
3569 of the Samba log file (also known as the debug file).</para>
3571 <para>This option takes the standard substitutions, allowing
3572 you to have separate log files for each user or machine.</para>
3574 <para>Example: <command>log file = /usr/local/samba/var/log.%m
3575 </command></para></listitem>
3576 </varlistentry>
3580 <varlistentry>
3581 <term><anchor id="LOGLEVEL">log level (G)</term>
3582 <listitem><para>The value of the parameter (an integer) allows
3583 the debug level (logging level) to be specified in the
3584 <filename>smb.conf</filename> file. This is to give greater
3585 flexibility in the configuration of the system.</para>
3587 <para>The default will be the log level specified on
3588 the command line or level zero if none was specified.</para>
3590 <para>Example: <command>log level = 3</command></para></listitem>
3591 </varlistentry>
3595 <varlistentry>
3596 <term><anchor id="LOGONDRIVE">logon drive (G)</term>
3597 <listitem><para>This parameter specifies the local path to
3598 which the home directory will be connected (see <link
3599 linkend="LOGONHOME"><parameter>logon home</parameter></link>)
3600 and is only used by NT Workstations. </para>
3602 <para>Note that this option is only useful if Samba is set up as a
3603 logon server.</para>
3605 <para>Default: <command>logon drive = z:</command></para>
3606 <para>Example: <command>logon drive = h:</command></para>
3607 </listitem>
3608 </varlistentry>
3612 <varlistentry>
3613 <term><anchor id="LOGONHOME">logon home (G)</term>
3614 <listitem><para>This parameter specifies the home directory
3615 location when a Win95/98 or NT Workstation logs into a Samba PDC.
3616 It allows you to do </para>
3618 <para><prompt>C:\> </prompt><userinput>NET USE H: /HOME</userinput>
3619 </para>
3621 <para>from a command prompt, for example.</para>
3623 <para>This option takes the standard substitutions, allowing
3624 you to have separate logon scripts for each user or machine.</para>
3626 <para>This parameter can be used with Win9X workstations to ensure
3627 that roaming profiles are stored in a subdirectory of the user's
3628 home directory. This is done in the following way:</para>
3630 <para><command>logon home = \\%N\%U\profile</command></para>
3632 <para>This tells Samba to return the above string, with
3633 substitutions made when a client requests the info, generally
3634 in a NetUserGetInfo request. Win9X clients truncate the info to
3635 \\server\share when a user does <command>net use /home</command>
3636 but use the whole string when dealing with profiles.</para>
3638 <para>Note that in prior versions of Samba, the <link linkend="LOGONPATH">
3639 <parameter>logon path</parameter></link> was returned rather than
3640 <parameter>logon home</parameter>. This broke <command>net use
3641 /home</command> but allowed profiles outside the home directory.
3642 The current implementation is correct, and can be used for
3643 profiles if you use the above trick.</para>
3645 <para>This option is only useful if Samba is set up as a logon
3646 server.</para>
3648 <para>Default: <command>logon home = "\\%N\%U"</command></para>
3649 <para>Example: <command>logon home = "\\remote_smb_server\%U"</command>
3650 </para></listitem>
3651 </varlistentry>
3654 <varlistentry>
3655 <term><anchor id="LOGONPATH">logon path (G)</term>
3656 <listitem><para>This parameter specifies the home directory
3657 where roaming profiles (NTuser.dat etc files for Windows NT) are
3658 stored. Contrary to previous versions of these manual pages, it has
3659 nothing to do with Win 9X roaming profiles. To find out how to
3660 handle roaming profiles for Win 9X system, see the <link linkend="LOGONHOME">
3661 <parameter>logon home</parameter></link> parameter.</para>
3663 <para>This option takes the standard substitutions, allowing you
3664 to have separate logon scripts for each user or machine. It also
3665 specifies the directory from which the "Application Data",
3666 (<filename>desktop</filename>, <filename>start menu</filename>,
3667 <filename>network neighborhood</filename>, <filename>programs</filename>
3668 and other folders, and their contents, are loaded and displayed on
3669 your Windows NT client.</para>
3671 <para>The share and the path must be readable by the user for
3672 the preferences and directories to be loaded onto the Windows NT
3673 client. The share must be writeable when the user logs in for the first
3674 time, in order that the Windows NT client can create the NTuser.dat
3675 and other directories.</para>
3677 <para>Thereafter, the directories and any of the contents can,
3678 if required, be made read-only. It is not advisable that the
3679 NTuser.dat file be made read-only - rename it to NTuser.man to
3680 achieve the desired effect (a <emphasis>MAN</emphasis>datory
3681 profile). </para>
3683 <para>Windows clients can sometimes maintain a connection to
3684 the [homes] share, even though there is no user logged in.
3685 Therefore, it is vital that the logon path does not include a
3686 reference to the homes share (i.e. setting this parameter to
3687 \%N\%U\profile_path will cause problems).</para>
3689 <para>This option takes the standard substitutions, allowing
3690 you to have separate logon scripts for each user or machine.</para>
3692 <para>Note that this option is only useful if Samba is set up
3693 as a logon server.</para>
3695 <para>Default: <command>logon path = \\%N\%U\profile</command></para>
3696 <para>Example: <command>logon path = \\PROFILESERVER\PROFILE\%U</command></para>
3697 </listitem>
3698 </varlistentry>
3702 <varlistentry>
3703 <term><anchor id="LOGONSCRIPT">logon script (G)</term>
3704 <listitem><para>This parameter specifies the batch file (.bat) or
3705 NT command file (.cmd) to be downloaded and run on a machine when
3706 a user successfully logs in. The file must contain the DOS
3707 style CR/LF line endings. Using a DOS-style editor to create the
3708 file is recommended.</para>
3710 <para>The script must be a relative path to the [netlogon]
3711 service. If the [netlogon] service specifies a <link linkend="PATH">
3712 <parameter>path</parameter></link> of <filename>/usr/local/samba/netlogon
3713 </filename>, and <command>logon script = STARTUP.BAT</command>, then
3714 the file that will be downloaded is:</para>
3716 <para><filename>/usr/local/samba/netlogon/STARTUP.BAT</filename></para>
3718 <para>The contents of the batch file are entirely your choice. A
3719 suggested command would be to add <command>NET TIME \\SERVER /SET
3720 /YES</command>, to force every machine to synchronize clocks with
3721 the same time server. Another use would be to add <command>NET USE
3722 U: \\SERVER\UTILS</command> for commonly used utilities, or <command>
3723 NET USE Q: \\SERVER\ISO9001_QA</command> for example.</para>
3725 <para>Note that it is particularly important not to allow write
3726 access to the [netlogon] share, or to grant users write permission
3727 on the batch files in a secure environment, as this would allow
3728 the batch files to be arbitrarily modified and security to be
3729 breached.</para>
3731 <para>This option takes the standard substitutions, allowing you
3732 to have separate logon scripts for each user or machine.</para>
3734 <para>This option is only useful if Samba is set up as a logon
3735 server.</para>
3737 <para>Default: <emphasis>no logon script defined</emphasis></para>
3738 <para>Example: <command>logon script = scripts\%U.bat</command></para>
3739 </listitem>
3740 </varlistentry>
3744 <varlistentry>
3745 <term><anchor id="LPPAUSECOMMAND">lppause command (S)</term>
3746 <listitem><para>This parameter specifies the command to be
3747 executed on the server host in order to stop printing or spooling
3748 a specific print job.</para>
3750 <para>This command should be a program or script which takes
3751 a printer name and job number to pause the print job. One way
3752 of implementing this is by using job priorities, where jobs
3753 having a too low priority won't be sent to the printer.</para>
3755 <para>If a <parameter>%p</parameter> is given then the printer name
3756 is put in its place. A <parameter>%j</parameter> is replaced with
3757 the job number (an integer). On HPUX (see <parameter>printing=hpux
3758 </parameter>), if the <parameter>-p%p</parameter> option is added
3759 to the lpq command, the job will show up with the correct status, i.e.
3760 if the job priority is lower than the set fence priority it will
3761 have the PAUSED status, whereas if the priority is equal or higher it
3762 will have the SPOOLED or PRINTING status.</para>
3764 <para>Note that it is good practice to include the absolute path
3765 in the lppause command as the PATH may not be available to the server.</para>
3767 <para>See also the <link linkend="PRINTING"><parameter>printing
3768 </parameter></link> parameter.</para>
3770 <para>Default: Currently no default value is given to
3771 this string, unless the value of the <parameter>printing</parameter>
3772 parameter is <constant>SYSV</constant>, in which case the default is :</para>
3774 <para><command>lp -i %p-%j -H hold</command></para>
3776 <para>or if the value of the <parameter>printing</parameter> parameter
3777 is <constant>SOFTQ</constant>, then the default is:</para>
3779 <para><command>qstat -s -j%j -h</command></para>
3781 <para>Example for HPUX: <command>lppause command = /usr/bin/lpalt
3782 %p-%j -p0</command></para>
3783 </listitem>
3784 </varlistentry>
3788 <varlistentry>
3789 <term><anchor id="LPQCACHETIME">lpq cache time (G)</term>
3790 <listitem><para>This controls how long lpq info will be cached
3791 for to prevent the <command>lpq</command> command being called too
3792 often. A separate cache is kept for each variation of the <command>
3793 lpq</command> command used by the system, so if you use different
3794 <command>lpq</command> commands for different users then they won't
3795 share cache information.</para>
3797 <para>The cache files are stored in <filename>/tmp/lpq.xxxx</filename>
3798 where xxxx is a hash of the <command>lpq</command> command in use.</para>
3800 <para>The default is 10 seconds, meaning that the cached results
3801 of a previous identical <command>lpq</command> command will be used
3802 if the cached data is less than 10 seconds old. A large value may
3803 be advisable if your <command>lpq</command> command is very slow.</para>
3805 <para>A value of 0 will disable caching completely.</para>
3807 <para>See also the <link linkend="PRINTING"><parameter>printing
3808 </parameter></link> parameter.</para>
3810 <para>Default: <command>lpq cache time = 10</command></para>
3811 <para>Example: <command>lpq cache time = 30</command></para>
3812 </listitem>
3813 </varlistentry>
3817 <varlistentry>
3818 <term><anchor id="LPQCOMMAND">lpq command (S)</term>
3819 <listitem><para>This parameter specifies the command to be
3820 executed on the server host in order to obtain <command>lpq
3821 </command>-style printer status information.</para>
3823 <para>This command should be a program or script which
3824 takes a printer name as its only parameter and outputs printer
3825 status information.</para>
3827 <para>Currently eight styles of printer status information
3828 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX and SOFTQ.
3829 This covers most UNIX systems. You control which type is expected
3830 using the <parameter>printing =</parameter> option.</para>
3832 <para>Some clients (notably Windows for Workgroups) may not
3833 correctly send the connection number for the printer they are
3834 requesting status information about. To get around this, the
3835 server reports on the first printer service connected to by the
3836 client. This only happens if the connection number sent is invalid.</para>
3838 <para>If a <parameter>%p</parameter> is given then the printer name
3839 is put in its place. Otherwise it is placed at the end of the
3840 command.</para>
3842 <para>Note that it is good practice to include the absolute path
3843 in the <parameter>lpq command</parameter> as the <envar>$PATH
3844 </envar> may not be available to the server.</para>
3846 <para>See also the <link linkend="PRINTING"><parameter>printing
3847 </parameter></link> parameter.</para>
3849 <para>Default: <emphasis>depends on the setting of <parameter>
3850 printing</parameter></emphasis></para>
3852 <para>Example: <command>lpq command = /usr/bin/lpq -P%p</command></para>
3853 </listitem>
3854 </varlistentry>
3858 <varlistentry>
3859 <term><anchor id="LPRESUMECOMMAND">lpresume command (S)</term>
3860 <listitem><para>This parameter specifies the command to be
3861 executed on the server host in order to restart or continue
3862 printing or spooling a specific print job.</para>
3864 <para>This command should be a program or script which takes
3865 a printer name and job number to resume the print job. See
3866 also the <link linkend="LPPAUSECOMMAND"><parameter>lppause command
3867 </parameter></link> parameter.</para>
3869 <para>If a <parameter>%p</parameter> is given then the printer name
3870 is put in its place. A <parameter>%j</parameter> is replaced with
3871 the job number (an integer).</para>
3873 <para>Note that it is good practice to include the absolute path
3874 in the <parameter>lpresume command</parameter> as the PATH may not
3875 be available to the server.</para>
3877 <para>See also the <link linkend="PRINTING"><parameter>printing
3878 </parameter></link> parameter.</para>
3880 <para>Default: Currently no default value is given
3881 to this string, unless the value of the <parameter>printing</parameter>
3882 parameter is <constant>SYSV</constant>, in which case the default is :</para>
3884 <para><command>lp -i %p-%j -H resume</command></para>
3886 <para>or if the value of the <parameter>printing</parameter> parameter
3887 is <constant>SOFTQ</constant>, then the default is:</para>
3889 <para><command>qstat -s -j%j -r</command></para>
3891 <para>Example for HPUX: <command>lpresume command = /usr/bin/lpalt
3892 %p-%j -p2</command></para>
3893 </listitem>
3894 </varlistentry>
3898 <varlistentry>
3899 <term><anchor id="LPRMCOMMAND">lprm command (S)</term>
3900 <listitem><para>This parameter specifies the command to be
3901 executed on the server host in order to delete a print job.</para>
3903 <para>This command should be a program or script which takes
3904 a printer name and job number, and deletes the print job.</para>
3906 <para>If a <parameter>%p</parameter> is given then the printer name
3907 is put in its place. A <parameter>%j</parameter> is replaced with
3908 the job number (an integer).</para>
3910 <para>Note that it is good practice to include the absolute
3911 path in the <parameter>lprm command</parameter> as the PATH may not be
3912 available to the server.</para>
3914 <para>See also the <link linkend="PRINTING"><parameter>printing
3915 </parameter></link> parameter.</para>
3917 <para>Default: <emphasis>depends on the setting of <parameter>printing
3918 </parameter></emphasis></para>
3920 <para>Example 1: <command>lprm command = /usr/bin/lprm -P%p %j
3921 </command></para>
3922 <para>Example 2: <command>lprm command = /usr/bin/cancel %p-%j
3923 </command></para></listitem>
3924 </varlistentry>
3928 <varlistentry>
3929 <term><anchor id="MACHINEPASSWORDTIMEOUT">machine password timeout (G)</term>
3930 <listitem><para>If a Samba server is a member of a Windows
3931 NT Domain (see the <link linkend="SECURITYEQUALSDOMAIN">security = domain</link>)
3932 parameter) then periodically a running <ulink url="smbd.8.html">
3933 smbd(8)</ulink> process will try and change the MACHINE ACCOUNT
3934 PASSWORD stored in the TDB called <filename>private/secrets.tdb
3935 </filename>. This parameter specifies how often this password
3936 will be changed, in seconds. The default is one week (expressed in
3937 seconds), the same as a Windows NT Domain member server.</para>
3939 <para>See also <ulink url="smbpasswd.8.html"><command>smbpasswd(8)
3940 </command></ulink>, and the <link linkend="SECURITYEQUALSDOMAIN">
3941 security = domain</link>) parameter.</para>
3943 <para>Default: <command>machine password timeout = 604800</command></para>
3944 </listitem>
3945 </varlistentry>
3948 <varlistentry>
3949 <term><anchor id="MAGICOUTPUT">magic output (S)</term>
3950 <listitem><para>This parameter specifies the name of a file
3951 which will contain output created by a magic script (see the
3952 <link linkend="MAGICSCRIPT"><parameter>magic script</parameter></link>
3953 parameter below).</para>
3955 <para>Warning: If two clients use the same <parameter>magic script
3956 </parameter> in the same directory the output file content
3957 is undefined.</para>
3959 <para>Default: <command>magic output = &lt;magic script name&gt;.out
3960 </command></para>
3962 <para>Example: <command>magic output = myfile.txt</command></para>
3963 </listitem>
3964 </varlistentry>
3968 <varlistentry>
3969 <term><anchor id="MAGICSCRIPT">magic script (S)</term>
3970 <listitem><para>This parameter specifies the name of a file which,
3971 if opened, will be executed by the server when the file is closed.
3972 This allows a UNIX script to be sent to the Samba host and
3973 executed on behalf of the connected user.</para>
3975 <para>Scripts executed in this way will be deleted upon
3976 completion assuming that the user has the appropriate level
3977 of privilege and the file permissions allow the deletion.</para>
3979 <para>If the script generates output, output will be sent to
3980 the file specified by the <link linkend="MAGICOUTPUT"><parameter>
3981 magic output</parameter></link> parameter (see above).</para>
3983 <para>Note that some shells are unable to interpret scripts
3984 containing CR/LF instead of CR as
3985 the end-of-line marker. Magic scripts must be executable
3986 <emphasis>as is</emphasis> on the host, which for some hosts and
3987 some shells will require filtering at the DOS end.</para>
3989 <para>Magic scripts are <emphasis>EXPERIMENTAL</emphasis> and
3990 should <emphasis>NOT</emphasis> be relied upon.</para>
3992 <para>Default: <emphasis>None. Magic scripts disabled.</emphasis></para>
3993 <para>Example: <command>magic script = user.csh</command></para>
3994 </listitem>
3995 </varlistentry>
3999 <varlistentry>
4000 <term><anchor id="MANGLECASE">mangle case (S)</term>
4001 <listitem><para>See the section on <link linkend="NAMEMANGLINGSECT">
4002 NAME MANGLING</link></para>
4004 <para>Default: <command>mangle case = no</command></para>
4005 </listitem>
4006 </varlistentry>
4009 <varlistentry>
4010 <term><anchor id="MANGLEDMAP">mangled map (S)</term>
4011 <listitem><para>This is for those who want to directly map UNIX
4012 file names which cannot be represented on Windows/DOS. The mangling
4013 of names is not always what is needed. In particular you may have
4014 documents with file extensions that differ between DOS and UNIX.
4015 For example, under UNIX it is common to use <filename>.html</filename>
4016 for HTML files, whereas under Windows/DOS <filename>.htm</filename>
4017 is more commonly used.</para>
4019 <para>So to map <filename>html</filename> to <filename>htm</filename>
4020 you would use:</para>
4022 <para><command>mangled map = (*.html *.htm)</command></para>
4024 <para>One very useful case is to remove the annoying <filename>;1
4025 </filename> off the ends of filenames on some CDROMs (only visible
4026 under some UNIXes). To do this use a map of (*;1 *;).</para>
4028 <para>Default: <emphasis>no mangled map</emphasis></para>
4029 <para>Example: <command>mangled map = (*;1 *;)</command></para>
4030 </listitem>
4031 </varlistentry>
4034 <varlistentry>
4035 <term><anchor id="MANGLEDNAMES">mangled names (S)</term>
4036 <listitem><para>This controls whether non-DOS names under UNIX
4037 should be mapped to DOS-compatible names ("mangled") and made visible,
4038 or whether non-DOS names should simply be ignored.</para>
4040 <para>See the section on <link linkend="NAMEMANGLINGSECT">
4041 NAME MANGLING</link> for details on how to control the mangling process.</para>
4043 <para>If mangling is used then the mangling algorithm is as follows:</para>
4045 <itemizedlist>
4046 <listitem><para>The first (up to) five alphanumeric characters
4047 before the rightmost dot of the filename are preserved, forced
4048 to upper case, and appear as the first (up to) five characters
4049 of the mangled name.</para></listitem>
4051 <listitem><para>A tilde "~" is appended to the first part of the mangled
4052 name, followed by a two-character unique sequence, based on the
4053 original root name (i.e., the original filename minus its final
4054 extension). The final extension is included in the hash calculation
4055 only if it contains any upper case characters or is longer than three
4056 characters.</para>
4058 <para>Note that the character to use may be specified using
4059 the <link linkend="MANGLINGCHAR"><parameter>mangling char</parameter>
4060 </link> option, if you don't like '~'.</para></listitem>
4062 <listitem><para>The first three alphanumeric characters of the final
4063 extension are preserved, forced to upper case and appear as the
4064 extension of the mangled name. The final extension is defined as that
4065 part of the original filename after the rightmost dot. If there are no
4066 dots in the filename, the mangled name will have no extension (except
4067 in the case of "hidden files" - see below).</para></listitem>
4069 <listitem><para>Files whose UNIX name begins with a dot will be
4070 presented as DOS hidden files. The mangled name will be created as
4071 for other filenames, but with the leading dot removed and "___" as
4072 its extension regardless of actual original extension (that's three
4073 underscores).</para></listitem>
4074 </itemizedlist>
4076 <para>The two-digit hash value consists of upper case
4077 alphanumeric characters.</para>
4079 <para>This algorithm can cause name collisions only if files
4080 in a directory share the same first five alphanumeric characters.
4081 The probability of such a clash is 1/1300.</para>
4083 <para>The name mangling (if enabled) allows a file to be
4084 copied between UNIX directories from Windows/DOS while retaining
4085 the long UNIX filename. UNIX files can be renamed to a new extension
4086 from Windows/DOS and will retain the same basename. Mangled names
4087 do not change between sessions.</para>
4089 <para>Default: <command>mangled names = yes</command></para>
4090 </listitem>
4091 </varlistentry>
4095 <varlistentry>
4096 <term><anchor id="MANGLEDSTACK">mangled stack (G)</term>
4097 <listitem><para>This parameter controls the number of mangled names
4098 that should be cached in the Samba server <ulink url="smbd.8.html">
4099 smbd(8)</ulink>.</para>
4101 <para>This stack is a list of recently mangled base names
4102 (extensions are only maintained if they are longer than 3 characters
4103 or contains upper case characters).</para>
4105 <para>The larger this value, the more likely it is that mangled
4106 names can be successfully converted to correct long UNIX names.
4107 However, large stack sizes will slow most directory accesses. Smaller
4108 stacks save memory in the server (each stack element costs 256 bytes).
4109 </para>
4111 <para>It is not possible to absolutely guarantee correct long
4112 filenames, so be prepared for some surprises!</para>
4114 <para>Default: <command>mangled stack = 50</command></para>
4115 <para>Example: <command>mangled stack = 100</command></para>
4116 </listitem>
4117 </varlistentry>
4122 <varlistentry>
4123 <term><anchor id="MANGLINGCHAR">mangling char (S)</term>
4124 <listitem><para>This controls what character is used as
4125 the <emphasis>magic</emphasis> character in <link
4126 linkend="NAMEMANGLINGSECT">name mangling</link>. The default is a '~'
4127 but this may interfere with some software. Use this option to set
4128 it to whatever you prefer.</para>
4130 <para>Default: <command>mangling char = ~</command></para>
4131 <para>Example: <command>mangling char = ^</command></para>
4132 </listitem>
4133 </varlistentry>
4139 <varlistentry>
4140 <term><anchor id="MAPARCHIVE">map archive (S)</term>
4141 <listitem><para>This controls whether the DOS archive attribute
4142 should be mapped to the UNIX owner execute bit. The DOS archive bit
4143 is set when a file has been modified since its last backup. One
4144 motivation for this option it to keep Samba/your PC from making
4145 any file it touches from becoming executable under UNIX. This can
4146 be quite annoying for shared source code, documents, etc...</para>
4148 <para>Note that this requires the <parameter>create mask</parameter>
4149 parameter to be set such that owner execute bit is not masked out
4150 (i.e. it must include 100). See the parameter <link linkend="CREATEMASK">
4151 <parameter>create mask</parameter></link> for details.</para>
4153 <para>Default: <command>map archive = yes</command></para>
4154 </listitem>
4155 </varlistentry>
4159 <varlistentry>
4160 <term><anchor id="MAPHIDDEN">map hidden (S)</term>
4161 <listitem><para>This controls whether DOS style hidden files
4162 should be mapped to the UNIX world execute bit.</para>
4164 <para>Note that this requires the <parameter>create mask</parameter>
4165 to be set such that the world execute bit is not masked out (i.e.
4166 it must include 001). See the parameter <link linkend="CREATEMASK">
4167 <parameter>create mask</parameter></link> for details.</para>
4169 <para>Default: <command>map hidden = no</command></para>
4170 </listitem>
4171 </varlistentry>
4174 <varlistentry>
4175 <term><anchor id="MAPSYSTEM">map system (S)</term>
4176 <listitem><para>This controls whether DOS style system files
4177 should be mapped to the UNIX group execute bit.</para>
4179 <para>Note that this requires the <parameter>create mask</parameter>
4180 to be set such that the group execute bit is not masked out (i.e.
4181 it must include 010). See the parameter <link linkend="CREATEMASK">
4182 <parameter>create mask</parameter></link> for details.</para>
4184 <para>Default: <command>map system = no</command></para>
4185 </listitem>
4186 </varlistentry>
4189 <varlistentry>
4190 <term><anchor id="MAPTOGUEST">map to guest (G)</term>
4191 <listitem><para>This parameter is only useful in <link linkend="SECURITY">
4192 security</link> modes other than <parameter>security = share</parameter>
4193 - i.e. <constant>user</constant>, <constant>server</constant>,
4194 and <constant>domain</constant>.</para>
4196 <para>This parameter can take three different values, which tell
4197 <ulink url="smbd.8.html">smbd(8)</ulink> what to do with user
4198 login requests that don't match a valid UNIX user in some way.</para>
4200 <para>The three settings are :</para>
4202 <itemizedlist>
4203 <listitem><para><constant>Never</constant> - Means user login
4204 requests with an invalid password are rejected. This is the
4205 default.</para></listitem>
4207 <listitem><para><constant>Bad User</constant> - Means user
4208 logins with an invalid password are rejected, unless the username
4209 does not exist, in which case it is treated as a guest login and
4210 mapped into the <link linkend="GUESTACCOUNT"><parameter>
4211 guest account</parameter></link>.</para></listitem>
4213 <listitem><para><constant>Bad Password</constant> - Means user logins
4214 with an invalid password are treated as a guest login and mapped
4215 into the <link linkend="GUESTACCOUNT">guest account</link>. Note that
4216 this can cause problems as it means that any user incorrectly typing
4217 their password will be silently logged on as "guest" - and
4218 will not know the reason they cannot access files they think
4219 they should - there will have been no message given to them
4220 that they got their password wrong. Helpdesk services will
4221 <emphasis>hate</emphasis> you if you set the <parameter>map to
4222 guest</parameter> parameter this way :-).</para></listitem>
4223 </itemizedlist>
4225 <para>Note that this parameter is needed to set up "Guest"
4226 share services when using <parameter>security</parameter> modes other than
4227 share. This is because in these modes the name of the resource being
4228 requested is <emphasis>not</emphasis> sent to the server until after
4229 the server has successfully authenticated the client so the server
4230 cannot make authentication decisions at the correct time (connection
4231 to the share) for "Guest" shares.</para>
4233 <para>For people familiar with the older Samba releases, this
4234 parameter maps to the old compile-time setting of the <constant>
4235 GUEST_SESSSETUP</constant> value in local.h.</para>
4237 <para>Default: <command>map to guest = Never</command></para>
4238 <para>Example: <command>map to guest = Bad User</command></para>
4239 </listitem>
4240 </varlistentry>
4244 <varlistentry>
4245 <term><anchor id="MAXCONNECTIONS">max connections (S)</term>
4246 <listitem><para>This option allows the number of simultaneous
4247 connections to a service to be limited. If <parameter>max connections
4248 </parameter> is greater than 0 then connections will be refused if
4249 this number of connections to the service are already open. A value
4250 of zero mean an unlimited number of connections may be made.</para>
4252 <para>Record lock files are used to implement this feature. The
4253 lock files will be stored in the directory specified by the <link
4254 linkend="LOCKDIRECTORY"><parameter>lock directory</parameter></link>
4255 option.</para>
4257 <para>Default: <command>max connections = 0</command></para>
4258 <para>Example: <command>max connections = 10</command></para>
4259 </listitem>
4260 </varlistentry>
4264 <varlistentry>
4265 <term><anchor id="MAXDISKSIZE">max disk size (G)</term>
4266 <listitem><para>This option allows you to put an upper limit
4267 on the apparent size of disks. If you set this option to 100
4268 then all shares will appear to be not larger than 100 MB in
4269 size.</para>
4271 <para>Note that this option does not limit the amount of
4272 data you can put on the disk. In the above case you could still
4273 store much more than 100 MB on the disk, but if a client ever asks
4274 for the amount of free disk space or the total disk size then the
4275 result will be bounded by the amount specified in <parameter>max
4276 disk size</parameter>.</para>
4278 <para>This option is primarily useful to work around bugs
4279 in some pieces of software that can't handle very large disks,
4280 particularly disks over 1GB in size.</para>
4282 <para>A <parameter>max disk size</parameter> of 0 means no limit.</para>
4284 <para>Default: <command>max disk size = 0</command></para>
4285 <para>Example: <command>max disk size = 1000</command></para>
4286 </listitem>
4287 </varlistentry>
4291 <varlistentry>
4292 <term><anchor id="MAXLOGSIZE">max log size (G)</term>
4293 <listitem><para>This option (an integer in kilobytes) specifies
4294 the max size the log file should grow to. Samba periodically checks
4295 the size and if it is exceeded it will rename the file, adding
4296 a <filename>.old</filename> extension.</para>
4298 <para>A size of 0 means no limit.</para>
4300 <para>Default: <command>max log size = 5000</command></para>
4301 <para>Example: <command>max log size = 1000</command></para>
4302 </listitem>
4303 </varlistentry>
4307 <varlistentry>
4308 <term><anchor id="MAXMUX">max mux (G)</term>
4309 <listitem><para>This option controls the maximum number of
4310 outstanding simultaneous SMB operations that Samba tells the client
4311 it will allow. You should never need to set this parameter.</para>
4313 <para>Default: <command>max mux = 50</command></para>
4314 </listitem>
4315 </varlistentry>
4319 <varlistentry>
4320 <term><anchor id="MAXOPENFILES">max open files (G)</term>
4321 <listitem><para>This parameter limits the maximum number of
4322 open files that one <ulink url="smbd.8.html">smbd(8)</ulink> file
4323 serving process may have open for a client at any one time. The
4324 default for this parameter is set very high (10,000) as Samba uses
4325 only one bit per unopened file.</para>
4327 <para>The limit of the number of open files is usually set
4328 by the UNIX per-process file descriptor limit rather than
4329 this parameter so you should never need to touch this parameter.</para>
4331 <para>Default: <command>max open files = 10000</command></para>
4332 </listitem>
4333 </varlistentry>
4337 <varlistentry>
4338 <term><anchor id="MAXPRINTJOBS">max print jobs (S)</term>
4339 <listitem><para>This parameter limits the maximum number of
4340 jobs allowable in a Samba printer queue at any given moment.
4341 If this number is exceeded, <ulink url="smbd.8.html"><command>
4342 smbd(8)</command></ulink> will remote "Out of Space" to the client.
4343 See all <link linkend="TOTALPRINTJOBS"><parameter>total
4344 print jobs</parameter></link>.
4345 </para>
4347 <para>Default: <command>max print jobs = 1000</command></para>
4348 <para>Example: <command>max print jobs = 5000</command></para>
4349 </listitem>
4350 </varlistentry>
4353 <varlistentry>
4354 <term><anchor id="MAXPROTOCOL">max protocol (G)</term>
4355 <listitem><para>The value of the parameter (a string) is the highest
4356 protocol level that will be supported by the server.</para>
4358 <para>Possible values are :</para>
4359 <itemizedlist>
4360 <listitem><para><constant>CORE</constant>: Earliest version. No
4361 concept of user names.</para></listitem>
4363 <listitem><para><constant>COREPLUS</constant>: Slight improvements on
4364 CORE for efficiency.</para></listitem>
4366 <listitem><para><constant>LANMAN1</constant>: First <emphasis>
4367 modern</emphasis> version of the protocol. Long filename
4368 support.</para></listitem>
4370 <listitem><para><constant>LANMAN2</constant>: Updates to Lanman1 protocol.
4371 </para></listitem>
4373 <listitem><para><constant>NT1</constant>: Current up to date version of
4374 the protocol. Used by Windows NT. Known as CIFS.</para></listitem>
4375 </itemizedlist>
4377 <para>Normally this option should not be set as the automatic
4378 negotiation phase in the SMB protocol takes care of choosing
4379 the appropriate protocol.</para>
4381 <para>See also <link linkend="MINPROTOCOL"><parameter>min
4382 protocol</parameter></link></para>
4384 <para>Default: <command>max protocol = NT1</command></para>
4385 <para>Example: <command>max protocol = LANMAN1</command></para>
4386 </listitem>
4387 </varlistentry>
4391 <varlistentry>
4392 <term><anchor id="MAXSMBDPROCESSES">max smbd processes (G)</term>
4393 <listitem><para>This parameter limits the maximum number of
4394 <ulink url="smbd.8.html"><command>smbd(8)</command></ulink>
4395 processes concurrently running on a system and is intended
4396 as a stopgap to prevent degrading service to clients in the event
4397 that the server has insufficient resources to handle more than this
4398 number of connections. Remember that under normal operating
4399 conditions, each user will have an <ulink url="smbd.8.html">smbd</ulink> associated with him or her
4400 to handle connections to all shares from a given host.
4401 </para>
4403 <para>Default: <command>max smbd processes = 0</command> ## no limit</para>
4404 <para>Example: <command>max smbd processes = 1000</command></para>
4405 </listitem>
4406 </varlistentry>
4411 <varlistentry>
4412 <term><anchor id="MAXTTL">max ttl (G)</term>
4413 <listitem><para>This option tells <ulink url="nmbd.8.html">nmbd(8)</ulink>
4414 what the default 'time to live' of NetBIOS names should be (in seconds)
4415 when <command>nmbd</command> is requesting a name using either a
4416 broadcast packet or from a WINS server. You should never need to
4417 change this parameter. The default is 3 days.</para>
4419 <para>Default: <command>max ttl = 259200</command></para>
4420 </listitem>
4421 </varlistentry>
4425 <varlistentry>
4426 <term><anchor id="MAXWINSTTL">max wins ttl (G)</term>
4427 <listitem><para>This option tells <ulink url="nmbd.8.html">nmbd(8)
4428 </ulink> when acting as a WINS server (<link linkend="WINSSUPPORT">
4429 <parameter>wins support = yes</parameter></link>) what the maximum
4430 'time to live' of NetBIOS names that <command>nmbd</command>
4431 will grant will be (in seconds). You should never need to change this
4432 parameter. The default is 6 days (518400 seconds).</para>
4434 <para>See also the <link linkend="MINWINSTTL"><parameter>min
4435 wins ttl</parameter></link> parameter.</para>
4437 <para>Default: <command>max wins ttl = 518400</command></para>
4438 </listitem>
4439 </varlistentry>
4443 <varlistentry>
4444 <term><anchor id="MAXXMIT">max xmit (G)</term>
4445 <listitem><para>This option controls the maximum packet size
4446 that will be negotiated by Samba. The default is 65535, which
4447 is the maximum. In some cases you may find you get better performance
4448 with a smaller value. A value below 2048 is likely to cause problems.
4449 </para>
4451 <para>Default: <command>max xmit = 65535</command></para>
4452 <para>Example: <command>max xmit = 8192</command></para>
4453 </listitem>
4454 </varlistentry>
4458 <varlistentry>
4459 <term><anchor id="MESSAGECOMMAND">message command (G)</term>
4460 <listitem><para>This specifies what command to run when the
4461 server receives a WinPopup style message.</para>
4463 <para>This would normally be a command that would
4464 deliver the message somehow. How this is to be done is
4465 up to your imagination.</para>
4467 <para>An example is:</para>
4469 <para><command>message command = csh -c 'xedit %s;rm %s' &</command>
4470 </para>
4472 <para>This delivers the message using <command>xedit</command>, then
4473 removes it afterwards. <emphasis>NOTE THAT IT IS VERY IMPORTANT
4474 THAT THIS COMMAND RETURN IMMEDIATELY</emphasis>. That's why I
4475 have the '&' on the end. If it doesn't return immediately then
4476 your PCs may freeze when sending messages (they should recover
4477 after 30 seconds, hopefully).</para>
4479 <para>All messages are delivered as the global guest user.
4480 The command takes the standard substitutions, although <parameter>
4481 %u</parameter> won't work (<parameter>%U</parameter> may be better
4482 in this case).</para>
4484 <para>Apart from the standard substitutions, some additional
4485 ones apply. In particular:</para>
4487 <itemizedlist>
4488 <listitem><para><parameter>%s</parameter> = the filename containing
4489 the message.</para></listitem>
4491 <listitem><para><parameter>%t</parameter> = the destination that
4492 the message was sent to (probably the server name).</para></listitem>
4494 <listitem><para><parameter>%f</parameter> = who the message
4495 is from.</para></listitem>
4496 </itemizedlist>
4498 <para>You could make this command send mail, or whatever else
4499 takes your fancy. Please let us know of any really interesting
4500 ideas you have.</para>
4503 <para>Here's a way of sending the messages as mail to root:</para>
4505 <para><command>message command = /bin/mail -s 'message from %f on
4506 %m' root &lt; %s; rm %s</command></para>
4508 <para>If you don't have a message command then the message
4509 won't be delivered and Samba will tell the sender there was
4510 an error. Unfortunately WfWg totally ignores the error code
4511 and carries on regardless, saying that the message was delivered.
4512 </para>
4514 <para>If you want to silently delete it then try:</para>
4516 <para><command>message command = rm %s</command></para>
4518 <para>Default: <emphasis>no message command</emphasis></para>
4519 <para>Example: <command>message command = csh -c 'xedit %s;
4520 rm %s' &</command></para>
4521 </listitem>
4522 </varlistentry>
4527 <varlistentry>
4528 <term><anchor id="MINPASSWDLENGTH">min passwd length (G)</term>
4529 <listitem><para>Synonym for <link linkend="MINPASSWORDLENGTH">
4530 <parameter>min password length</parameter></link>.</para>
4531 </listitem>
4532 </varlistentry>
4536 <varlistentry>
4537 <term><anchor id="MINPASSWORDLENGTH">min password length (G)</term>
4538 <listitem><para>This option sets the minimum length in characters
4539 of a plaintext password that <command>smbd</command> will accept when performing
4540 UNIX password changing.</para>
4542 <para>See also <link linkend="UNIXPASSWORDSYNC"><parameter>unix
4543 password sync</parameter></link>, <link linkend="PASSWDPROGRAM">
4544 <parameter>passwd program</parameter></link> and <link
4545 linkend="PASSWDCHATDEBUG"><parameter>passwd chat debug</parameter>
4546 </link>.</para>
4548 <para>Default: <command>min password length = 5</command></para>
4549 </listitem>
4550 </varlistentry>
4554 <varlistentry>
4555 <term><anchor id="MINPRINTSPACE">min print space (S)</term>
4556 <listitem><para>This sets the minimum amount of free disk
4557 space that must be available before a user will be able to spool
4558 a print job. It is specified in kilobytes. The default is 0, which
4559 means a user can always spool a print job.</para>
4561 <para>See also the <link linkend="PRINTING"><parameter>printing
4562 </parameter></link> parameter.</para>
4564 <para>Default: <command>min print space = 0</command></para>
4565 <para>Example: <command>min print space = 2000</command></para>
4566 </listitem>
4567 </varlistentry>
4572 <varlistentry>
4573 <term><anchor id="MINPROTOCOL">min protocol (G)</term>
4574 <listitem><para>The value of the parameter (a string) is the
4575 lowest SMB protocol dialect than Samba will support. Please refer
4576 to the <link linkend="MAXPROTOCOL"><parameter>max protocol</parameter></link>
4577 parameter for a list of valid protocol names and a brief description
4578 of each. You may also wish to refer to the C source code in
4579 <filename>source/smbd/negprot.c</filename> for a listing of known protocol
4580 dialects supported by clients.</para>
4582 <para>If you are viewing this parameter as a security measure, you should
4583 also refer to the <link linkend="LANMANAUTH"><parameter>lanman
4584 auth</parameter></link> parameter. Otherwise, you should never need
4585 to change this parameter.</para>
4587 <para>Default : <command>min protocol = CORE</command></para>
4588 <para>Example : <command>min protocol = NT1</command> # disable DOS
4589 clients</para>
4590 </listitem>
4591 </varlistentry>
4596 <varlistentry>
4597 <term><anchor id="MINWINSTTL">min wins ttl (G)</term>
4598 <listitem><para>This option tells <ulink url="nmbd.8.html">nmbd(8)</ulink>
4599 when acting as a WINS server (<link linkend="WINSSUPPORT"><parameter>
4600 wins support = yes</parameter></link>) what the minimum 'time to live'
4601 of NetBIOS names that <command>nmbd</command> will grant will be (in
4602 seconds). You should never need to change this parameter. The default
4603 is 6 hours (21600 seconds).</para>
4605 <para>Default: <command>min wins ttl = 21600</command></para>
4606 </listitem>
4607 </varlistentry>
4612 <varlistentry>
4613 <term><anchor id="MSDFSROOT">msdfs root (S)</term>
4614 <listitem><para>This boolean parameter is only available if
4615 Samba is configured and compiled with the <command>
4616 --with-msdfs</command> option. If set to <constant>yes></constant>,
4617 Samba treats the share as a Dfs root and allows clients to browse
4618 the distributed file system tree rooted at the share directory.
4619 Dfs links are specified in the share directory by symbolic
4620 links of the form <filename>msdfs:serverA\shareA,serverB\shareB
4621 </filename> and so on. For more information on setting up a Dfs tree
4622 on Samba, refer to <ulink url="msdfs_setup.html">msdfs_setup.html
4623 </ulink>.</para>
4625 <para>See also <link linkend="HOSTMSDFS"><parameter>host msdfs
4626 </parameter></link></para>
4628 <para>Default: <command>msdfs root = no</command></para>
4629 </listitem>
4630 </varlistentry>
4633 <varlistentry>
4634 <term><anchor id="NAMERESOLVEORDER">name resolve order (G)</term>
4635 <listitem><para>This option is used by the programs in the Samba
4636 suite to determine what naming services to use and in what order
4637 to resolve host names to IP addresses. The option takes a space
4638 separated string of name resolution options.</para>
4640 <para>The options are :"lmhosts", "host", "wins" and "bcast". They
4641 cause names to be resolved as follows :</para>
4643 <itemizedlist>
4644 <listitem><para><constant>lmhosts</constant> : Lookup an IP
4645 address in the Samba lmhosts file. If the line in lmhosts has
4646 no name type attached to the NetBIOS name (see the <ulink
4647 url="lmhosts.5.html">lmhosts(5)</ulink> for details) then
4648 any name type matches for lookup.</para></listitem>
4650 <listitem><para><constant>host</constant> : Do a standard host
4651 name to IP address resolution, using the system <filename>/etc/hosts
4652 </filename>, NIS, or DNS lookups. This method of name resolution
4653 is operating system depended for instance on IRIX or Solaris this
4654 may be controlled by the <filename>/etc/nsswitch.conf</filename>
4655 file). Note that this method is only used if the NetBIOS name
4656 type being queried is the 0x20 (server) name type, otherwise
4657 it is ignored.</para></listitem>
4659 <listitem><para><constant>wins</constant> : Query a name with
4660 the IP address listed in the <link linkend="WINSSERVER"><parameter>
4661 wins server</parameter></link> parameter. If no WINS server has
4662 been specified this method will be ignored.</para></listitem>
4664 <listitem><para><constant>bcast</constant> : Do a broadcast on
4665 each of the known local interfaces listed in the <link
4666 linkend="INTERFACES"><parameter>interfaces</parameter></link>
4667 parameter. This is the least reliable of the name resolution
4668 methods as it depends on the target host being on a locally
4669 connected subnet.</para></listitem>
4670 </itemizedlist>
4672 <para>Default: <command>name resolve order = lmhosts host wins bcast
4673 </command></para>
4674 <para>Example: <command>name resolve order = lmhosts bcast host
4675 </command></para>
4677 <para>This will cause the local lmhosts file to be examined
4678 first, followed by a broadcast attempt, followed by a normal
4679 system hostname lookup.</para>
4680 </listitem>
4681 </varlistentry>
4686 <varlistentry>
4687 <term><anchor id="NETBIOSALIASES">netbios aliases (G)</term>
4688 <listitem><para>This is a list of NetBIOS names that <ulink
4689 url="nmbd.8.html">nmbd(8)</ulink> will advertise as additional
4690 names by which the Samba server is known. This allows one machine
4691 to appear in browse lists under multiple names. If a machine is
4692 acting as a browse server or logon server none
4693 of these names will be advertised as either browse server or logon
4694 servers, only the primary name of the machine will be advertised
4695 with these capabilities.</para>
4697 <para>See also <link linkend="NETBIOSNAME"><parameter>netbios
4698 name</parameter></link>.</para>
4700 <para>Default: <emphasis>empty string (no additional names)</emphasis></para>
4701 <para>Example: <command>netbios aliases = TEST TEST1 TEST2</command></para>
4702 </listitem>
4703 </varlistentry>
4707 <varlistentry>
4708 <term><anchor id="NETBIOSNAME">netbios name (G)</term>
4709 <listitem><para>This sets the NetBIOS name by which a Samba
4710 server is known. By default it is the same as the first component
4711 of the host's DNS name. If a machine is a browse server or
4712 logon server this name (or the first component
4713 of the hosts DNS name) will be the name that these services are
4714 advertised under.</para>
4716 <para>See also <link linkend="NETBIOSALIASES"><parameter>netbios
4717 aliases</parameter></link>.</para>
4719 <para>Default: <emphasis>machine DNS name</emphasis></para>
4720 <para>Example: <command>netbios name = MYNAME</command></para>
4721 </listitem>
4722 </varlistentry>
4726 <varlistentry>
4727 <term><anchor id="NETBIOSSCOPE">netbios scope (G)</term>
4728 <listitem><para>This sets the NetBIOS scope that Samba will
4729 operate under. This should not be set unless every machine
4730 on your LAN also sets this value.</para>
4731 </listitem>
4732 </varlistentry>
4735 <varlistentry>
4736 <term><anchor id="NISHOMEDIR">nis homedir (G)</term>
4737 <listitem><para>Get the home share server from a NIS map. For
4738 UNIX systems that use an automounter, the user's home directory
4739 will often be mounted on a workstation on demand from a remote
4740 server. </para>
4742 <para>When the Samba logon server is not the actual home directory
4743 server, but is mounting the home directories via NFS then two
4744 network hops would be required to access the users home directory
4745 if the logon server told the client to use itself as the SMB server
4746 for home directories (one over SMB and one over NFS). This can
4747 be very slow.</para>
4749 <para>This option allows Samba to return the home share as
4750 being on a different server to the logon server and as
4751 long as a Samba daemon is running on the home directory server,
4752 it will be mounted on the Samba client directly from the directory
4753 server. When Samba is returning the home share to the client, it
4754 will consult the NIS map specified in <link linkend="HOMEDIRMAP">
4755 <parameter>homedir map</parameter></link> and return the server
4756 listed there.</para>
4758 <para>Note that for this option to work there must be a working
4759 NIS system and the Samba server with this option must also
4760 be a logon server.</para>
4762 <para>Default: <command>nis homedir = no</command></para>
4763 </listitem>
4764 </varlistentry>
4768 <varlistentry>
4769 <term><anchor id="NTACLSUPPORT">nt acl support (G)</term>
4770 <listitem><para>This boolean parameter controls whether
4771 <ulink url="smbd.8.html">smbd(8)</ulink> will attempt to map
4772 UNIX permissions into Windows NT access control lists.</para>
4774 <para>Default: <command>nt acl support = yes</command></para>
4775 </listitem>
4776 </varlistentry>
4780 <varlistentry>
4781 <term><anchor id="NTPIPESUPPORT">nt pipe support (G)</term>
4782 <listitem><para>This boolean parameter controls whether
4783 <ulink url="smbd.8.html">smbd(8)</ulink> will allow Windows NT
4784 clients to connect to the NT SMB specific <constant>IPC$</constant>
4785 pipes. This is a developer debugging option and can be left
4786 alone.</para>
4788 <para>Default: <command>nt pipe support = yes</command></para>
4789 </listitem>
4790 </varlistentry>
4794 <varlistentry>
4795 <term><anchor id="NTSMBSUPPORT">nt smb support (G)</term>
4796 <listitem><para>This boolean parameter controls whether <ulink
4797 url="smbd.8.html">smbd(8)</ulink> will negotiate NT specific SMB
4798 support with Windows NT clients. Although this is a developer
4799 debugging option and should be left alone, benchmarking has discovered
4800 that Windows NT clients give faster performance with this option
4801 set to <constant>no</constant>. This is still being investigated.
4802 If this option is set to <constant>no</constant> then Samba offers
4803 exactly the same SMB calls that versions prior to Samba 2.0 offered.
4804 This information may be of use if any users are having problems
4805 with NT SMB support.</para>
4807 <para>You should not need to ever disable this parameter.</para>
4809 <para>Default: <command>nt smb support = yes</command></para>
4810 </listitem>
4811 </varlistentry>
4815 <varlistentry>
4816 <term><anchor id="NULLPASSWORDS">null passwords (G)</term>
4817 <listitem><para>Allow or disallow client access to accounts
4818 that have null passwords. </para>
4820 <para>See also <ulink url="smbpasswd.5.html">smbpasswd (5)</ulink>.</para>
4822 <para>Default: <command>null passwords = no</command></para>
4823 </listitem>
4824 </varlistentry>
4829 <varlistentry>
4830 <term><anchor id="OBEYPAMRESTRICTIONS">obey pam restrictions (G)</term>
4831 <listitem><para>When Samba 2.2 is configured to enable PAM support
4832 (i.e. --with-pam), this parameter will control whether or not Samba
4833 should obey PAM's account and session management directives. The
4834 default behavior is to use PAM for clear text authentication only
4835 and to ignore any account or session management. Note that Samba
4836 always ignores PAM for authentication in the case of <link
4837 linkend="ENCRYPTPASSWORDS"><parameter>encrypt passwords = yes</parameter>
4838 </link>. The reason is that PAM modules cannot support the challenge/response
4839 authentication mechanism needed in the presence of SMB password encryption.
4840 </para>
4842 <para>Default: <command>obey pam restrictions = no</command></para>
4843 </listitem>
4844 </varlistentry>
4850 <varlistentry>
4851 <term><anchor id="ONLYUSER">only user (S)</term>
4852 <listitem><para>This is a boolean option that controls whether
4853 connections with usernames not in the <parameter>user</parameter>
4854 list will be allowed. By default this option is disabled so that a
4855 client can supply a username to be used by the server. Enabling
4856 this parameter will force the server to only user the login
4857 names from the <parameter>user</parameter> list and is only really
4858 useful in <link linkend="SECURITYEQUALSSHARE">shave level</link>
4859 security.</para>
4861 <para>Note that this also means Samba won't try to deduce
4862 usernames from the service name. This can be annoying for
4863 the [homes] section. To get around this you could use <command>user =
4864 %S</command> which means your <parameter>user</parameter> list
4865 will be just the service name, which for home directories is the
4866 name of the user.</para>
4868 <para>See also the <link linkend="USER"><parameter>user</parameter>
4869 </link> parameter.</para>
4871 <para>Default: <command>only user = no</command></para>
4872 </listitem>
4873 </varlistentry>
4878 <varlistentry>
4879 <term><anchor id="ONLYGUEST">only guest (S)</term>
4880 <listitem><para>A synonym for <link linkend="GUESTONLY"><parameter>
4881 guest only</parameter></link>.</para>
4882 </listitem>
4883 </varlistentry>
4887 <varlistentry>
4888 <term><anchor id="OPLOCKBREAKWAITTIME">oplock break wait time (G)</term>
4889 <listitem><para>This is a tuning parameter added due to bugs in
4890 both Windows 9x and WinNT. If Samba responds to a client too
4891 quickly when that client issues an SMB that can cause an oplock
4892 break request, then the network client can fail and not respond
4893 to the break request. This tuning parameter (which is set in milliseconds)
4894 is the amount of time Samba will wait before sending an oplock break
4895 request to such (broken) clients.</para>
4897 <para><emphasis>DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ
4898 AND UNDERSTOOD THE SAMBA OPLOCK CODE</emphasis>.</para>
4900 <para>Default: <command>oplock break wait time = 0</command></para>
4901 </listitem>
4902 </varlistentry>
4905 <varlistentry>
4906 <term><anchor id="OPLOCKCONTENTIONLIMIT">oplock contention limit (S)</term>
4907 <listitem><para>This is a <emphasis>very</emphasis> advanced
4908 <ulink url="smbd.8.html">smbd(8)</ulink> tuning option to
4909 improve the efficiency of the granting of oplocks under multiple
4910 client contention for the same file.</para>
4912 <para>In brief it specifies a number, which causes <ulink url="smbd.8.html">smbd</ulink> not to
4913 grant an oplock even when requested if the approximate number of
4914 clients contending for an oplock on the same file goes over this
4915 limit. This causes <command>smbd</command> to behave in a similar
4916 way to Windows NT.</para>
4918 <para><emphasis>DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ
4919 AND UNDERSTOOD THE SAMBA OPLOCK CODE</emphasis>.</para>
4921 <para>Default: <command>oplock contention limit = 2</command></para>
4922 </listitem>
4923 </varlistentry>
4929 <varlistentry>
4930 <term><anchor id="OPLOCKS">oplocks (S)</term>
4931 <listitem><para>This boolean option tells <command>smbd</command> whether to
4932 issue oplocks (opportunistic locks) to file open requests on this
4933 share. The oplock code can dramatically (approx. 30% or more) improve
4934 the speed of access to files on Samba servers. It allows the clients
4935 to aggressively cache files locally and you may want to disable this
4936 option for unreliable network environments (it is turned on by
4937 default in Windows NT Servers). For more information see the file
4938 <filename>Speed.txt</filename> in the Samba <filename>docs/</filename>
4939 directory.</para>
4941 <para>Oplocks may be selectively turned off on certain files with a
4942 share. See the <link linkend="VETOOPLOCKFILES"><parameter>
4943 veto oplock files</parameter></link> parameter. On some systems
4944 oplocks are recognized by the underlying operating system. This
4945 allows data synchronization between all access to oplocked files,
4946 whether it be via Samba or NFS or a local UNIX process. See the
4947 <parameter>kernel oplocks</parameter> parameter for details.</para>
4949 <para>See also the <link linkend="KERNELOPLOCKS"><parameter>kernel
4950 oplocks</parameter></link> and <link linkend="LEVEL2OPLOCKS"><parameter>
4951 level2 oplocks</parameter></link> parameters.</para>
4953 <para>Default: <command>oplocks = yes</command></para>
4954 </listitem>
4955 </varlistentry>
4959 <varlistentry>
4960 <term><anchor id="OSLEVEL">os level (G)</term>
4961 <listitem><para>This integer value controls what level Samba
4962 advertises itself as for browse elections. The value of this
4963 parameter determines whether <ulink url="nmbd.8.html">nmbd(8)</ulink>
4964 has a chance of becoming a local master browser for the <parameter>
4965 WORKGROUP</parameter> in the local broadcast area.</para>
4967 <para><emphasis>Note :</emphasis>By default, Samba will win
4968 a local master browsing election over all Microsoft operating
4969 systems except a Windows NT 4.0/2000 Domain Controller. This
4970 means that a misconfigured Samba host can effectively isolate
4971 a subnet for browsing purposes. See <filename>BROWSING.txt
4972 </filename> in the Samba <filename>docs/</filename> directory
4973 for details.</para>
4975 <para>Default: <command>os level = 20</command></para>
4976 <para>Example: <command>os level = 65 </command></para>
4977 </listitem>
4978 </varlistentry>
4982 <varlistentry>
4983 <term><anchor id="OS2DRIVERMAP">os2 driver map (G)</term>
4984 <listitem><para>The parameter is used to define the absolute
4985 path to a file containing a mapping of Windows NT printer driver
4986 names to OS/2 printer driver names. The format is:</para>
4988 <para>&lt;nt driver name&gt; = &lt;os2 driver
4989 name&gt;.&lt;device name&gt;</para>
4991 <para>For example, a valid entry using the HP LaserJet 5
4992 printer driver would appear as <command>HP LaserJet 5L = LASERJET.HP
4993 LaserJet 5L</command>.</para>
4995 <para>The need for the file is due to the printer driver namespace
4996 problem described in the <ulink url="printer_driver2.html">Samba
4997 Printing HOWTO</ulink>. For more details on OS/2 clients, please
4998 refer to the <ulink url="OS2-Client-HOWTO.html">OS2-Client-HOWTO
4999 </ulink> containing in the Samba documentation.</para>
5001 <para>Default: <command>os2 driver map = &lt;empty string&gt;
5002 </command></para>
5003 </listitem>
5004 </varlistentry>
5007 <varlistentry>
5008 <term><anchor id="PAMPASSWORDCHANGE">pam password change (G)</term>
5009 <listitem><para>With the addition of better PAM support in Samba 2.2,
5010 this parameter, it is possible to use PAM's password change control
5011 flag for Samba. If enabled, then PAM will be used for password
5012 changes when requested by an SMB client instead of the program listed in
5013 <link linkend="PASSWDPROGRAM"><parameter>passwd program</parameter></link>.
5014 It should be possible to enable this without changing your
5015 <link linkend="PASSWDCHAT"><parameter>passwd chat</parameter></link>
5016 parameter for most setups.
5017 </para>
5019 <para>Default: <command>pam password change = no</command></para>
5021 </listitem>
5022 </varlistentry>
5025 <varlistentry>
5026 <term><anchor id="PANICACTION">panic action (G)</term>
5027 <listitem><para>This is a Samba developer option that allows a
5028 system command to be called when either <ulink url="smbd.8.html">
5029 smbd(8)</ulink> or <ulink url="nmbd.8.html">nmbd(8)</ulink>
5030 crashes. This is usually used to draw attention to the fact that
5031 a problem occurred.</para>
5033 <para>Default: <command>panic action = &lt;empty string&gt;</command></para>
5034 <para>Example: <command>panic action = "/bin/sleep 90000"</command></para>
5035 </listitem>
5036 </varlistentry>
5039 <varlistentry>
5040 <term><anchor id="PASSWDCHAT">passwd chat (G)</term>
5041 <listitem><para>This string controls the <emphasis>"chat"</emphasis>
5042 conversation that takes places between <ulink
5043 url="smbd.8.html">smbd</ulink> and the local password changing
5044 program to change the user's password. The string describes a
5045 sequence of response-receive pairs that <ulink url="smbd.8.html">
5046 smbd(8)</ulink> uses to determine what to send to the
5047 <link linkend="PASSWDPROGRAM"><parameter>passwd program</parameter>
5048 </link> and what to expect back. If the expected output is not
5049 received then the password is not changed.</para>
5051 <para>This chat sequence is often quite site specific, depending
5052 on what local methods are used for password control (such as NIS
5053 etc).</para>
5055 <para>The string can contain the macros <parameter>%o</parameter>
5056 and <parameter>%n</parameter> which are substituted for the old
5057 and new passwords respectively. It can also contain the standard
5058 macros <constant>\n</constant>, <constant>\r</constant>, <constant>
5059 \t</constant> and <constant>%s</constant> to give line-feed,
5060 carriage-return, tab and space.</para>
5062 <para>The string can also contain a '*' which matches
5063 any sequence of characters.</para>
5065 <para>Double quotes can be used to collect strings with spaces
5066 in them into a single string.</para>
5068 <para>If the send string in any part of the chat sequence
5069 is a full stop ".", then no string is sent. Similarly,
5070 if the expect string is a full stop then no string is expected.</para>
5072 <para>Note that if the <link linkend="UNIXPASSWORDSYNC"><parameter>unix
5073 password sync</parameter></link> parameter is set to <constant>true</constant>, then this
5074 sequence is called <emphasis>AS ROOT</emphasis> when the SMB password
5075 in the smbpasswd file is being changed, without access to the old
5076 password cleartext. In this case the old password cleartext is set
5077 to "" (the empty string).</para>
5079 <para>Also, if the <link linkend="PAMPASSWORDCHANGE"><parameter>pam
5080 password change</parameter></link> parameter is set to true, the chat pairs
5081 may be matched in any order, and sucess is determined by the PAM result,
5082 not any particular output. The \n macro is ignored for PAM conversions.
5083 </para>
5085 <para>See also <link linkend="UNIXPASSWORDSYNC"><parameter>unix password
5086 sync</parameter></link>, <link linkend="PASSWDPROGRAM"><parameter>
5087 passwd program</parameter></link> ,<link linkend="PASSWDCHATDEBUG">
5088 <parameter>passwd chat debug</parameter></link> and <link linkend="PAMPASSWORDCHANGE">
5089 <parameter>pam password change</parameter></link>.</para>
5091 <para>Default: <command>passwd chat = *new*password* %n\n
5092 *new*password* %n\n *changed*</command></para>
5093 <para>Example: <command>passwd chat = "*Enter OLD password*" %o\n
5094 "*Enter NEW password*" %n\n "*Reenter NEW password*" %n\n "*Password
5095 changed*"</command></para>
5096 </listitem>
5097 </varlistentry>
5101 <varlistentry>
5102 <term><anchor id="PASSWDCHATDEBUG">passwd chat debug (G)</term>
5103 <listitem><para>This boolean specifies if the passwd chat script
5104 parameter is run in <emphasis>debug</emphasis> mode. In this mode the
5105 strings passed to and received from the passwd chat are printed
5106 in the <ulink url="smbd.8.html">smbd(8)</ulink> log with a
5107 <link linkend="DEBUGLEVEL"><parameter>debug level</parameter></link>
5108 of 100. This is a dangerous option as it will allow plaintext passwords
5109 to be seen in the <command>smbd</command> log. It is available to help
5110 Samba admins debug their <parameter>passwd chat</parameter> scripts
5111 when calling the <parameter>passwd program</parameter> and should
5112 be turned off after this has been done. This option has no effect if the
5113 <link linkend="PAMPASSWORDCHANGE"><parameter>pam password change</parameter></link>
5114 paramter is set. This parameter is off by default.</para>
5117 <para>See also <link linkend="PASSWDCHAT"><parameter>passwd chat</parameter>
5118 </link>, <link linkend="PAMPASSWORDCHANGE"><parameter>pam password change</parameter>
5119 </link>, <link linkend="PASSWDPROGRAM"><parameter>passwd program</parameter>
5120 </link>.</para>
5122 <para>Default: <command>passwd chat debug = no</command></para>
5123 </listitem>
5124 </varlistentry>
5128 <varlistentry>
5129 <term><anchor id="PASSWDPROGRAM">passwd program (G)</term>
5130 <listitem><para>The name of a program that can be used to set
5131 UNIX user passwords. Any occurrences of <parameter>%u</parameter>
5132 will be replaced with the user name. The user name is checked for
5133 existence before calling the password changing program.</para>
5135 <para>Also note that many passwd programs insist in <emphasis>reasonable
5136 </emphasis> passwords, such as a minimum length, or the inclusion
5137 of mixed case chars and digits. This can pose a problem as some clients
5138 (such as Windows for Workgroups) uppercase the password before sending
5139 it.</para>
5141 <para><emphasis>Note</emphasis> that if the <parameter>unix
5142 password sync</parameter> parameter is set to <constant>true
5143 </constant> then this program is called <emphasis>AS ROOT</emphasis>
5144 before the SMB password in the <ulink url="smbpasswd.5.html">smbpasswd(5)
5145 </ulink> file is changed. If this UNIX password change fails, then
5146 <command>smbd</command> will fail to change the SMB password also
5147 (this is by design).</para>
5149 <para>If the <parameter>unix password sync</parameter> parameter
5150 is set this parameter <emphasis>MUST USE ABSOLUTE PATHS</emphasis>
5151 for <emphasis>ALL</emphasis> programs called, and must be examined
5152 for security implications. Note that by default <parameter>unix
5153 password sync</parameter> is set to <constant>false</constant>.</para>
5155 <para>See also <link linkend="UNIXPASSWORDSYNC"><parameter>unix
5156 password sync</parameter></link>.</para>
5158 <para>Default: <command>passwd program = /bin/passwd</command></para>
5159 <para>Example: <command>passwd program = /sbin/npasswd %u</command>
5160 </para>
5161 </listitem>
5162 </varlistentry>
5166 <varlistentry>
5167 <term><anchor id="PASSWORDLEVEL">password level (G)</term>
5168 <listitem><para>Some client/server combinations have difficulty
5169 with mixed-case passwords. One offending client is Windows for
5170 Workgroups, which for some reason forces passwords to upper
5171 case when using the LANMAN1 protocol, but leaves them alone when
5172 using COREPLUS! Another problem child is the Windows 95/98
5173 family of operating systems. These clients upper case clear
5174 text passwords even when NT LM 0.12 selected by the protocol
5175 negotiation request/response.</para>
5177 <para>This parameter defines the maximum number of characters
5178 that may be upper case in passwords.</para>
5180 <para>For example, say the password given was "FRED". If <parameter>
5181 password level</parameter> is set to 1, the following combinations
5182 would be tried if "FRED" failed:</para>
5184 <para>"Fred", "fred", "fRed", "frEd","freD"</para>
5186 <para>If <parameter>password level</parameter> was set to 2,
5187 the following combinations would also be tried: </para>
5189 <para>"FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..</para>
5191 <para>And so on.</para>
5193 <para>The higher value this parameter is set to the more likely
5194 it is that a mixed case password will be matched against a single
5195 case password. However, you should be aware that use of this
5196 parameter reduces security and increases the time taken to
5197 process a new connection.</para>
5199 <para>A value of zero will cause only two attempts to be
5200 made - the password as is and the password in all-lower case.</para>
5202 <para>Default: <command>password level = 0</command></para>
5203 <para>Example: <command>password level = 4</command</para>
5204 </listitem>
5205 </varlistentry>
5209 <varlistentry>
5210 <term><anchor id="PASSWORDSERVER">password server (G)</term>
5211 <listitem><para>By specifying the name of another SMB server (such
5212 as a WinNT box) with this option, and using <command>security = domain
5213 </command> or <command>security = server</command> you can get Samba
5214 to do all its username/password validation via a remote server.</para>
5216 <para>This option sets the name of the password server to use.
5217 It must be a NetBIOS name, so if the machine's NetBIOS name is
5218 different from its Internet name then you may have to add its NetBIOS
5219 name to the lmhosts file which is stored in the same directory
5220 as the <filename>smb.conf</filename> file.</para>
5222 <para>The name of the password server is looked up using the
5223 parameter <link linkend="NAMERESOLVEORDER"><parameter>name
5224 resolve order</parameter></link> and so may resolved
5225 by any method and order described in that parameter.</para>
5227 <para>The password server much be a machine capable of using
5228 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in
5229 user level security mode.</para>
5231 <para><emphasis>NOTE:</emphasis> Using a password server
5232 means your UNIX box (running Samba) is only as secure as your
5233 password server. <emphasis>DO NOT CHOOSE A PASSWORD SERVER THAT
5234 YOU DON'T COMPLETELY TRUST</emphasis>.</para>
5236 <para>Never point a Samba server at itself for password
5237 serving. This will cause a loop and could lock up your Samba
5238 server!</para>
5240 <para>The name of the password server takes the standard
5241 substitutions, but probably the only useful one is <parameter>%m
5242 </parameter>, which means the Samba server will use the incoming
5243 client as the password server. If you use this then you better
5244 trust your clients, and you had better restrict them with hosts allow!</para>
5246 <para>If the <parameter>security</parameter> parameter is set to
5247 <constant>domain</constant>, then the list of machines in this
5248 option must be a list of Primary or Backup Domain controllers for the
5249 Domain or the character '*', as the Samba server is effectively
5250 in that domain, and will use cryptographically authenticated RPC calls
5251 to authenticate the user logging on. The advantage of using <command>
5252 security = domain</command> is that if you list several hosts in the
5253 <parameter>password server</parameter> option then <command>smbd
5254 </command> will try each in turn till it finds one that responds. This
5255 is useful in case your primary server goes down.</para>
5257 <para>If the <parameter>password server</parameter> option is set
5258 to the character '*', then Samba will attempt to auto-locate the
5259 Primary or Backup Domain controllers to authenticate against by
5260 doing a query for the name <constant>WORKGROUP&lt;1C&gt;</constant>
5261 and then contacting each server returned in the list of IP
5262 addresses from the name resolution source. </para>
5264 <para>If the <parameter>security</parameter> parameter is
5265 set to <constant>server</constant>, then there are different
5266 restrictions that <command>security = domain</command> doesn't
5267 suffer from:</para>
5269 <itemizedlist>
5270 <listitem><para>You may list several password servers in
5271 the <parameter>password server</parameter> parameter, however if an
5272 <command>smbd</command> makes a connection to a password server,
5273 and then the password server fails, no more users will be able
5274 to be authenticated from this <command>smbd</command>. This is a
5275 restriction of the SMB/CIFS protocol when in <command>security = server
5276 </command> mode and cannot be fixed in Samba.</para></listitem>
5278 <listitem><para>If you are using a Windows NT server as your
5279 password server then you will have to ensure that your users
5280 are able to login from the Samba server, as when in <command>
5281 security = server</command> mode the network logon will appear to
5282 come from there rather than from the users workstation.</para></listitem>
5283 </itemizedlist>
5285 <para>See also the <link linkend="SECURITY"><parameter>security
5286 </parameter></link> parameter.</para>
5288 <para>Default: <command>password server = &lt;empty string&gt;</command>
5289 </para>
5290 <para>Example: <command>password server = NT-PDC, NT-BDC1, NT-BDC2
5291 </command></para>
5292 <para>Example: <command>password server = *</command></para>
5293 </listitem>
5294 </varlistentry>
5298 <varlistentry>
5299 <term><anchor id="PATH">path (S)</term>
5300 <listitem><para>This parameter specifies a directory to which
5301 the user of the service is to be given access. In the case of
5302 printable services, this is where print data will spool prior to
5303 being submitted to the host for printing.</para>
5305 <para>For a printable service offering guest access, the service
5306 should be readonly and the path should be world-writeable and
5307 have the sticky bit set. This is not mandatory of course, but
5308 you probably won't get the results you expect if you do
5309 otherwise.</para>
5311 <para>Any occurrences of <parameter>%u</parameter> in the path
5312 will be replaced with the UNIX username that the client is using
5313 on this connection. Any occurrences of <parameter>%m</parameter>
5314 will be replaced by the NetBIOS name of the machine they are
5315 connecting from. These replacements are very useful for setting
5316 up pseudo home directories for users.</para>
5318 <para>Note that this path will be based on <link linkend="ROOTDIR">
5319 <parameter>root dir</parameter></link> if one was specified.</para>
5321 <para>Default: <emphasis>none</emphasis></para>
5322 <para>Example: <command>path = /home/fred</command></para>
5323 </listitem>
5324 </varlistentry>
5329 <varlistentry>
5330 <term><anchor id="POSIXLOCKING">posix locking (S)</term>
5331 <listitem><para>The <ulink url="smbd.8.html"><command>smbd(8)</command></ulink>
5332 daemon maintains an database of file locks obtained by SMB clients.
5333 The default behavior is to map this internal database to POSIX
5334 locks. This means that file locks obtained by SMB clients are
5335 consistent with those seen by POSIX compliant applications accessing
5336 the files via a non-SMB method (e.g. NFS or local file access).
5337 You should never need to disable this parameter.</para>
5339 <para>Default: <command>posix locking = yes</command></para>
5340 </listitem>
5341 </varlistentry>
5346 <varlistentry>
5347 <term><anchor id="POSTEXEC">postexec (S)</term>
5348 <listitem><para>This option specifies a command to be run
5349 whenever the service is disconnected. It takes the usual
5350 substitutions. The command may be run as the root on some
5351 systems.</para>
5353 <para>An interesting example may be to unmount server
5354 resources:</para>
5356 <para><command>postexec = /etc/umount /cdrom</command></para>
5358 <para>See also <link linkend="PREEXEC"><parameter>preexec</parameter>
5359 </link>.</para>
5361 <para>Default: <emphasis>none (no command executed)</emphasis>
5362 </para>
5364 <para>Example: <command>postexec = echo \"%u disconnected from %S
5365 from %m (%I)\" &gt;&gt; /tmp/log</command></para>
5366 </listitem>
5367 </varlistentry>
5371 <varlistentry>
5372 <term><anchor id="POSTSCRIPT">postscript (S)</term>
5373 <listitem><para>This parameter forces a printer to interpret
5374 the print files as PostScript. This is done by adding a <constant>%!
5375 </constant> to the start of print output.</para>
5377 <para>This is most useful when you have lots of PCs that persist
5378 in putting a control-D at the start of print jobs, which then
5379 confuses your printer.</para>
5381 <para>Default: <command>postscript = no</command></para>
5382 </listitem>
5383 </varlistentry>
5387 <varlistentry>
5388 <term><anchor id="PREEXEC">preexec (S)</term>
5389 <listitem><para>This option specifies a command to be run whenever
5390 the service is connected to. It takes the usual substitutions.</para>
5392 <para>An interesting example is to send the users a welcome
5393 message every time they log in. Maybe a message of the day? Here
5394 is an example:</para>
5396 <para><command>preexec = csh -c 'echo \"Welcome to %S!\" |
5397 /usr/local/samba/bin/smbclient -M %m -I %I' & </command></para>
5399 <para>Of course, this could get annoying after a while :-)</para>
5401 <para>See also <link linkend="PREEXECCLOSE"><parameter>preexec close
5402 </parameter</link> and <link linkend="POSTEXEC"><parameter>postexec
5403 </parameter></link>.</para>
5405 <para>Default: <emphasis>none (no command executed)</emphasis></para>
5406 <para>Example: <command>preexec = echo \"%u connected to %S from %m
5407 (%I)\" &gt;&gt; /tmp/log</command></para>
5408 </listitem>
5409 </varlistentry>
5413 <varlistentry>
5414 <term><anchor id="PREEXECCLOSE">preexec close (S)</term>
5415 <listitem><para>This boolean option controls whether a non-zero
5416 return code from <link linkend="PREEXEC"><parameter>preexec
5417 </parameter></link> should close the service being connected to.</para>
5419 <para>Default: <command>preexec close = no</command></para>
5420 </listitem>
5421 </varlistentry>
5424 <varlistentry>
5425 <term><anchor id="PREFERREDMASTER">preferred master (G)</term>
5426 <listitem><para>This boolean parameter controls if <ulink
5427 url="nmbd.8.html">nmbd(8)</ulink> is a preferred master browser
5428 for its workgroup.</para>
5430 <para>If this is set to <constant>true</constant>, on startup, <command>nmbd</command>
5431 will force an election, and it will have a slight advantage in
5432 winning the election. It is recommended that this parameter is
5433 used in conjunction with <command><link linkend="DOMAINMASTER"><parameter>
5434 domain master</parameter></link> = yes</command>, so that <command>
5435 nmbd</command> can guarantee becoming a domain master.</para>
5437 <para>Use this option with caution, because if there are several
5438 hosts (whether Samba servers, Windows 95 or NT) that are preferred
5439 master browsers on the same subnet, they will each periodically
5440 and continuously attempt to become the local master browser.
5441 This will result in unnecessary broadcast traffic and reduced browsing
5442 capabilities.</para>
5444 <para>See also <link linkend="OSLEVEL"><parameter>os level</parameter>
5445 </link>.</para>
5447 <para>Default: <command>preferred master = auto</command></para>
5448 </listitem>
5449 </varlistentry>
5453 <varlistentry>
5454 <term><anchor id="PREFEREDMASTER">prefered master (G)</term>
5455 <listitem><para>Synonym for <link linkend="PREFERREDMASTER"><parameter>
5456 preferred master</parameter></link> for people who cannot spell :-).</para>
5457 </listitem>
5458 </varlistentry>
5462 <varlistentry>
5463 <term><anchor id="PRELOAD">preload</term>
5464 <listitem><para>This is a list of services that you want to be
5465 automatically added to the browse lists. This is most useful
5466 for homes and printers services that would otherwise not be
5467 visible.</para>
5469 <para>Note that if you just want all printers in your
5470 printcap file loaded then the <link linkend="LOADPRINTERS">
5471 <parameter>load printers</parameter></link> option is easier.</para>
5473 <para>Default: <emphasis>no preloaded services</emphasis></para>
5475 <para>Example: <command>preload = fred lp colorlp</command></para>
5476 </listitem>
5477 </varlistentry>
5480 <varlistentry>
5481 <term><anchor id="PRESERVECASE">preserve case (S)</term>
5482 <listitem><para> This controls if new filenames are created
5483 with the case that the client passes, or if they are forced to
5484 be the <link linkend="DEFAULTCASE"><parameter>default case
5485 </parameter></link>.</para>
5487 <para>Default: <command>preserve case = yes</command></para>
5489 <para>See the section on <link linkend="NAMEMANGLINGSECT">NAME
5490 MANGLING</link> for a fuller discussion.</para>
5491 </listitem>
5492 </varlistentry>
5496 <varlistentry>
5497 <term><anchor id="PRINTCOMMAND">print command (S)</term>
5498 <listitem><para>After a print job has finished spooling to
5499 a service, this command will be used via a <command>system()</command>
5500 call to process the spool file. Typically the command specified will
5501 submit the spool file to the host's printing subsystem, but there
5502 is no requirement that this be the case. The server will not remove
5503 the spool file, so whatever command you specify should remove the
5504 spool file when it has been processed, otherwise you will need to
5505 manually remove old spool files.</para>
5507 <para>The print command is simply a text string. It will be used
5508 verbatim, with two exceptions: All occurrences of <parameter>%s
5509 </parameter> and <parameter>%f</parameter> will be replaced by the
5510 appropriate spool file name, and all occurrences of <parameter>%p
5511 </parameter> will be replaced by the appropriate printer name. The
5512 spool file name is generated automatically by the server, the printer
5513 name is discussed below.</para>
5515 <para>The print command <emphasis>MUST</emphasis> contain at least
5516 one occurrence of <parameter>%s</parameter> or <parameter>%f
5517 </parameter> - the <parameter>%p</parameter> is optional. At the time
5518 a job is submitted, if no printer name is supplied the <parameter>%p
5519 </parameter> will be silently removed from the printer command.</para>
5521 <para>If specified in the [global] section, the print command given
5522 will be used for any printable service that does not have its own
5523 print command specified.</para>
5525 <para>If there is neither a specified print command for a
5526 printable service nor a global print command, spool files will
5527 be created but not processed and (most importantly) not removed.</para>
5529 <para>Note that printing may fail on some UNIXes from the
5530 <constant>nobody</constant> account. If this happens then create
5531 an alternative guest account that can print and set the <link
5532 linkend="GUESTACCOUNT"><parameter>guest account</parameter></link>
5533 in the [global] section.</para>
5535 <para>You can form quite complex print commands by realizing
5536 that they are just passed to a shell. For example the following
5537 will log a print job, print the file, then remove it. Note that
5538 ';' is the usual separator for command in shell scripts.</para>
5540 <para><command>print command = echo Printing %s &gt;&gt;
5541 /tmp/print.log; lpr -P %p %s; rm %s</command></para>
5543 <para>You may have to vary this command considerably depending
5544 on how you normally print files on your system. The default for
5545 the parameter varies depending on the setting of the <link linkend="PRINTING">
5546 <parameter>printing</parameter></link> parameter.</para>
5548 <para>Default: For <command>printing = BSD, AIX, QNX, LPRNG
5549 or PLP :</command></para>
5550 <para><command>print command = lpr -r -P%p %s</command></para>
5552 <para>For <command>printing = SYS or HPUX :</command></para>
5553 <para><command>print command = lp -c -d%p %s; rm %s</command></para>
5555 <para>For <command>printing = SOFTQ :</command></para>
5556 <para><command>print command = lp -d%p -s %s; rm %s</command></para>
5558 <para>Example: <command>print command = /usr/local/samba/bin/myprintscript
5559 %p %s</command></para>
5560 </listitem>
5561 </varlistentry>
5565 <varlistentry>
5566 <term><anchor id="PRINTOK">print ok (S)</term>
5567 <listitem><para>Synonym for <link linkend="PRINTABLE">
5568 <parameter>printable</parameter></link>.</para>
5569 </listitem>
5570 </varlistentry>
5575 <varlistentry>
5576 <term><anchor id="PRINTABLE">printable (S)</term>
5577 <listitem><para>If this parameter is <constant>yes</constant>, then
5578 clients may open, write to and submit spool files on the directory
5579 specified for the service. </para>
5581 <para>Note that a printable service will ALWAYS allow writing
5582 to the service path (user privileges permitting) via the spooling
5583 of print data. The <link linkend="WRITEABLE"><parameter>writeable
5584 </parameter></link> parameter controls only non-printing access to
5585 the resource.</para>
5587 <para>Default: <command>printable = no</command></para>
5588 </listitem>
5589 </varlistentry>
5593 <varlistentry>
5594 <term><anchor id="PRINTCAP">printcap (G)</term>
5595 <listitem><para>Synonym for <link linkend="PRINTCAPNAME"><parameter>
5596 printcap name</parameter></link>.</para>
5597 </listitem>
5598 </varlistentry>
5603 <varlistentry>
5604 <term><anchor id="PRINTCAPNAME">printcap name (G)</term>
5605 <listitem><para>This parameter may be used to override the
5606 compiled-in default printcap name used by the server (usually <filename>
5607 /etc/printcap</filename>). See the discussion of the <link
5608 linkend="PRINTERSSECT">[printers]</link> section above for reasons
5609 why you might want to do this.</para>
5611 <para>On System V systems that use <command>lpstat</command> to
5612 list available printers you can use <command>printcap name = lpstat
5613 </command> to automatically obtain lists of available printers. This
5614 is the default for systems that define SYSV at configure time in
5615 Samba (this includes most System V based systems). If <parameter>
5616 printcap name</parameter> is set to <command>lpstat</command> on
5617 these systems then Samba will launch <command>lpstat -v</command> and
5618 attempt to parse the output to obtain a printer list.</para>
5620 <para>A minimal printcap file would look something like this:</para>
5622 <para><programlisting>
5623 print1|My Printer 1
5624 print2|My Printer 2
5625 print3|My Printer 3
5626 print4|My Printer 4
5627 print5|My Printer 5
5628 </programlisting></para>
5630 <para>where the '|' separates aliases of a printer. The fact
5631 that the second alias has a space in it gives a hint to Samba
5632 that it's a comment.</para>
5634 <para><emphasis>NOTE</emphasis>: Under AIX the default printcap
5635 name is <filename>/etc/qconfig</filename>. Samba will assume the
5636 file is in AIX <filename>qconfig</filename> format if the string
5637 <filename>qconfig</filename> appears in the printcap filename.</para>
5639 <para>Default: <command>printcap name = /etc/printcap</command></para>
5640 <para>Example: <command>printcap name = /etc/myprintcap</command></para>
5641 </listitem>
5642 </varlistentry>
5648 <varlistentry>
5649 <term><anchor id="PRINTERADMIN">printer admin (S)</term>
5650 <listitem><para>This is a list of users that can do anything to
5651 printers via the remote administration interfaces offered by MS-RPC
5652 (usually using a NT workstation). Note that the root user always
5653 has admin rights.</para>
5655 <para>Default: <command>printer admin = &lt;empty string&gt;</command>
5656 </para>
5657 <para>Example: <command>printer admin = admin, @staff</command></para>
5658 </listitem>
5659 </varlistentry>
5665 <varlistentry>
5666 <term><anchor id="PRINTERDRIVER">printer driver (S)</term>
5667 <listitem><para><emphasis>Note :</emphasis>This is a deprecated
5668 parameter and will be removed in the next major release
5669 following version 2.2. Please see the instructions in
5670 the <ulink url="printer_driver2.html">Samba 2.2. Printing
5671 HOWTO</ulink> for more information
5672 on the new method of loading printer drivers onto a Samba server.
5673 </para>
5675 <para>This option allows you to control the string
5676 that clients receive when they ask the server for the printer driver
5677 associated with a printer. If you are using Windows95 or Windows NT
5678 then you can use this to automate the setup of printers on your
5679 system.</para>
5681 <para>You need to set this parameter to the exact string (case
5682 sensitive) that describes the appropriate printer driver for your
5683 system. If you don't know the exact string to use then you should
5684 first try with no <link linkend="PRINTERDRIVER"><parameter>
5685 printer driver</parameter></link> option set and the client will
5686 give you a list of printer drivers. The appropriate strings are
5687 shown in a scroll box after you have chosen the printer manufacturer.</para>
5689 <para>See also <link linkend="PRINTERDRIVERFILE"><parameter>printer
5690 driver file</parameter></link>.</para>
5692 <para>Example: <command>printer driver = HP LaserJet 4L</command></para>
5693 </listitem>
5694 </varlistentry>
5698 <varlistentry>
5699 <term><anchor id="PRINTERDRIVERFILE">printer driver file (G)</term>
5700 <listitem><para><emphasis>Note :</emphasis>This is a deprecated
5701 parameter and will be removed in the next major release
5702 following version 2.2. Please see the instructions in
5703 the <ulink url="printer_driver2.html">Samba 2.2. Printing
5704 HOWTO</ulink> for more information
5705 on the new method of loading printer drivers onto a Samba server.
5706 </para>
5708 <para>This parameter tells Samba where the printer driver
5709 definition file, used when serving drivers to Windows 95 clients, is
5710 to be found. If this is not set, the default is :</para>
5712 <para><filename><replaceable>SAMBA_INSTALL_DIRECTORY</replaceable>
5713 /lib/printers.def</filename></para>
5715 <para>This file is created from Windows 95 <filename>msprint.inf
5716 </filename> files found on the Windows 95 client system. For more
5717 details on setting up serving of printer drivers to Windows 95
5718 clients, see the outdated documentation file in the <filename>docs/</filename>
5719 directory, <filename>PRINTER_DRIVER.txt</filename>.</para>
5721 <para>See also <link linkend="PRINTERDRIVERLOCATION"><parameter>
5722 printer driver location</parameter></link>.</para>
5724 <para>Default: <emphasis>None (set in compile).</emphasis></para>
5726 <para>Example: <command>printer driver file =
5727 /usr/local/samba/printers/drivers.def</command></para>
5728 </listitem>
5729 </varlistentry>
5734 <varlistentry>
5735 <term><anchor id="PRINTERDRIVERLOCATION">printer driver location (S)</term>
5736 <listitem><para><emphasis>Note :</emphasis>This is a deprecated
5737 parameter and will be removed in the next major release
5738 following version 2.2. Please see the instructions in
5739 the <ulink url="printer_driver2.html">Samba 2.2. Printing
5740 HOWTO</ulink> for more information
5741 on the new method of loading printer drivers onto a Samba server.
5742 </para>
5744 <para>This parameter tells clients of a particular printer
5745 share where to find the printer driver files for the automatic
5746 installation of drivers for Windows 95 machines. If Samba is set up
5747 to serve printer drivers to Windows 95 machines, this should be set to</para>
5749 <para><command>\\MACHINE\PRINTER$</command></para>
5751 <para>Where MACHINE is the NetBIOS name of your Samba server,
5752 and PRINTER$ is a share you set up for serving printer driver
5753 files. For more details on setting this up see the outdated documentation
5754 file in the <filename>docs/</filename> directory, <filename>
5755 PRINTER_DRIVER.txt</filename>.</para>
5757 <para>See also <link linkend="PRINTERDRIVERFILE"><parameter>
5758 printer driver file</parameter></link>.</para>
5760 <para>Default: <command>none</command></para>
5761 <para>Example: <command>printer driver location = \\MACHINE\PRINTER$
5762 </command></para>
5763 </listitem>
5764 </varlistentry>
5768 <varlistentry>
5769 <term><anchor id="PRINTERNAME">printer name (S)</term>
5770 <listitem><para>This parameter specifies the name of the printer
5771 to which print jobs spooled through a printable service will be sent.</para>
5773 <para>If specified in the [global] section, the printer
5774 name given will be used for any printable service that does
5775 not have its own printer name specified.</para>
5777 <para>Default: <emphasis>none (but may be <constant>lp</constant>
5778 on many systems)</emphasis></para>
5780 <para>Example: <command>printer name = laserwriter</command></para>
5781 </listitem>
5782 </varlistentry>
5785 <varlistentry>
5786 <term><anchor id="PRINTER">printer (S)</term>
5787 <listitem><para>Synonym for <link linkend="PRINTERNAME"><parameter>
5788 printer name</parameter></link>.</para>
5789 </listitem>
5790 </varlistentry>
5794 <varlistentry>
5795 <term><anchor id="PRINTING">printing (S)</term>
5796 <listitem><para>This parameters controls how printer status
5797 information is interpreted on your system. It also affects the
5798 default values for the <parameter>print command</parameter>,
5799 <parameter>lpq command</parameter>, <parameter>lppause command
5800 </parameter>, <parameter>lpresume command</parameter>, and
5801 <parameter>lprm command</parameter> if specified in the
5802 [global] section.</para>
5804 <para>Currently eight printing styles are supported. They are
5805 <constant>BSD</constant>, <constant>AIX</constant>,
5806 <constant>LPRNG</constant>, <constant>PLP</constant>,
5807 <constant>SYSV</constant>, <constant>HPUX</constant>,
5808 <constant>QNX</constant>, <constant>SOFTQ</constant>,
5809 and <constant>CUPS</constant>.</para>
5811 <para>To see what the defaults are for the other print
5812 commands when using the various options use the <ulink
5813 url="testparm.1.html">testparm(1)</ulink> program.</para>
5815 <para>This option can be set on a per printer basis</para>
5817 <para>See also the discussion in the <link linkend="PRINTERSSECT">
5818 [printers]</link> section.</para>
5819 </listitem>
5820 </varlistentry>
5825 <varlistentry>
5826 <term><anchor id="PROTOCOL">protocol (G)</term>
5827 <listitem><para>Synonym for <link linkend="MAXPROTOCOL">
5828 <parameter>max protocol</parameter></link>.</para></listitem>
5829 </varlistentry>
5834 <varlistentry>
5835 <term><anchor id="PUBLIC">public (S)</term>
5836 <listitem><para>Synonym for <link linkend="GUESTOK"><parameter>guest
5837 ok</parameter></link>.</para>
5838 </listitem>
5839 </varlistentry>
5843 <varlistentry>
5844 <term><anchor id="QUEUEPAUSECOMMAND">queuepause command (S)</term>
5845 <listitem><para>This parameter specifies the command to be
5846 executed on the server host in order to pause the printer queue.</para>
5848 <para>This command should be a program or script which takes
5849 a printer name as its only parameter and stops the printer queue,
5850 such that no longer jobs are submitted to the printer.</para>
5852 <para>This command is not supported by Windows for Workgroups,
5853 but can be issued from the Printers window under Windows 95
5854 and NT.</para>
5856 <para>If a <parameter>%p</parameter> is given then the printer name
5857 is put in its place. Otherwise it is placed at the end of the command.
5858 </para>
5860 <para>Note that it is good practice to include the absolute
5861 path in the command as the PATH may not be available to the
5862 server.</para>
5864 <para>Default: <emphasis>depends on the setting of <parameter>printing
5865 </parameter></emphasis></para>
5866 <para>Example: <command>queuepause command = disable %p</command></para>
5867 </listitem>
5868 </varlistentry>
5872 <varlistentry>
5873 <term><anchor id="QUEUERESUMECOMMAND">queueresume command (S)</term>
5874 <listitem><para>This parameter specifies the command to be
5875 executed on the server host in order to resume the printer queue. It
5876 is the command to undo the behavior that is caused by the
5877 previous parameter (<link linkend="QUEUEPAUSECOMMAND"><parameter>
5878 queuepause command</parameter></link>).</para>
5880 <para>This command should be a program or script which takes
5881 a printer name as its only parameter and resumes the printer queue,
5882 such that queued jobs are resubmitted to the printer.</para>
5884 <para>This command is not supported by Windows for Workgroups,
5885 but can be issued from the Printers window under Windows 95
5886 and NT.</para>
5888 <para>If a <parameter>%p</parameter> is given then the printer name
5889 is put in its place. Otherwise it is placed at the end of the
5890 command.</para>
5892 <para>Note that it is good practice to include the absolute
5893 path in the command as the PATH may not be available to the
5894 server.</para>
5896 <para>Default: <emphasis>depends on the setting of <link
5897 linkend="PRINTING"><parameter>printing</parameter></link></emphasis>
5898 </para>
5900 <para>Example: <command>queuepause command = enable %p
5901 </command></para>
5902 </listitem>
5903 </varlistentry>
5907 <varlistentry>
5908 <term><anchor id="READBMPX">read bmpx (G)</term>
5909 <listitem><para>This boolean parameter controls whether <ulink
5910 url="smbd.8.html">smbd(8)</ulink> will support the "Read
5911 Block Multiplex" SMB. This is now rarely used and defaults to
5912 <constant>no</constant>. You should never need to set this
5913 parameter.</para>
5915 <para>Default: <command>read bmpx = no</command></para>
5916 </listitem>
5917 </varlistentry>
5922 <varlistentry>
5923 <term><anchor id="READLIST">read list (S)</term>
5924 <listitem><para>This is a list of users that are given read-only
5925 access to a service. If the connecting user is in this list then
5926 they will not be given write access, no matter what the <link
5927 linkend="WRITEABLE"><parameter>writeable</parameter></link>
5928 option is set to. The list can include group names using the
5929 syntax described in the <link linkend="INVALIDUSERS"><parameter>
5930 invalid users</parameter></link> parameter.</para>
5932 <para>See also the <link linkend="WRITELIST"><parameter>
5933 write list</parameter></link> parameter and the <link
5934 linkend="INVALIDUSERS"><parameter>invalid users</parameter>
5935 </link> parameter.</para>
5937 <para>Default: <command>read list = &lt;empty string&gt;</command></para>
5938 <para>Example: <command>read list = mary, @students</command></para>
5939 </listitem>
5940 </varlistentry>
5944 <varlistentry>
5945 <term><anchor id="READONLY">read only (S)</term>
5946 <listitem><para>Note that this is an inverted synonym for <link
5947 linkend="WRITEABLE"><parameter>writeable</parameter></link>.</para>
5948 </listitem>
5949 </varlistentry>
5953 <varlistentry>
5954 <term><anchor id="READRAW">read raw (G)</term>
5955 <listitem><para>This parameter controls whether or not the server
5956 will support the raw read SMB requests when transferring data
5957 to clients.</para>
5959 <para>If enabled, raw reads allow reads of 65535 bytes in
5960 one packet. This typically provides a major performance benefit.
5961 </para>
5963 <para>However, some clients either negotiate the allowable
5964 block size incorrectly or are incapable of supporting larger block
5965 sizes, and for these clients you may need to disable raw reads.</para>
5967 <para>In general this parameter should be viewed as a system tuning
5968 tool and left severely alone. See also <link linkend="WRITERAW">
5969 <parameter>write raw</parameter></link>.</para>
5971 <para>Default: <command>read raw = yes</command></para>
5972 </listitem>
5973 </varlistentry>
5976 <varlistentry>
5977 <term><anchor id="READSIZE">read size (G)</term>
5978 <listitem><para>The option <parameter>read size</parameter>
5979 affects the overlap of disk reads/writes with network reads/writes.
5980 If the amount of data being transferred in several of the SMB
5981 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger
5982 than this value then the server begins writing the data before it
5983 has received the whole packet from the network, or in the case of
5984 SMBreadbraw, it begins writing to the network before all the data
5985 has been read from disk.</para>
5987 <para>This overlapping works best when the speeds of disk and
5988 network access are similar, having very little effect when the
5989 speed of one is much greater than the other.</para>
5991 <para>The default value is 16384, but very little experimentation
5992 has been done yet to determine the optimal value, and it is likely
5993 that the best value will vary greatly between systems anyway.
5994 A value over 65536 is pointless and will cause you to allocate
5995 memory unnecessarily.</para>
5997 <para>Default: <command>read size = 16384</command></para>
5998 <para>Example: <command>read size = 8192</command></para>
5999 </listitem>
6000 </varlistentry>
6004 <varlistentry>
6005 <term><anchor id="REMOTEANNOUNCE">remote announce (G)</term>
6006 <listitem><para>This option allows you to setup <ulink
6007 url="nmbd.8.html">nmbd(8)</ulink> to periodically announce itself
6008 to arbitrary IP addresses with an arbitrary workgroup name.</para>
6010 <para>This is useful if you want your Samba server to appear
6011 in a remote workgroup for which the normal browse propagation
6012 rules don't work. The remote workgroup can be anywhere that you
6013 can send IP packets to.</para>
6015 <para>For example:</para>
6017 <para><command>remote announce = 192.168.2.255/SERVERS
6018 192.168.4.255/STAFF</command></para>
6020 <para>the above line would cause <command>nmbd</command> to announce itself
6021 to the two given IP addresses using the given workgroup names.
6022 If you leave out the workgroup name then the one given in
6023 the <link linkend="WORKGROUP"><parameter>workgroup</parameter></link>
6024 parameter is used instead.</para>
6026 <para>The IP addresses you choose would normally be the broadcast
6027 addresses of the remote networks, but can also be the IP addresses
6028 of known browse masters if your network config is that stable.</para>
6030 <para>See the documentation file <filename>BROWSING.txt</filename>
6031 in the <filename>docs/</filename> directory.</para>
6033 <para>Default: <command>remote announce = &lt;empty string&gt;
6034 </command></para>
6035 </listitem>
6036 </varlistentry>
6040 <varlistentry>
6041 <term><anchor id="REMOTEBROWSESYNC">remote browse sync (G)</term>
6042 <listitem><para>This option allows you to setup <ulink
6043 url="nmbd.8.html">nmbd(8)</ulink> to periodically request
6044 synchronization of browse lists with the master browser of a Samba
6045 server that is on a remote segment. This option will allow you to
6046 gain browse lists for multiple workgroups across routed networks. This
6047 is done in a manner that does not work with any non-Samba servers.</para>
6049 <para>This is useful if you want your Samba server and all local
6050 clients to appear in a remote workgroup for which the normal browse
6051 propagation rules don't work. The remote workgroup can be anywhere
6052 that you can send IP packets to.</para>
6054 <para>For example:</para>
6056 <para><command>remote browse sync = 192.168.2.255 192.168.4.255
6057 </command></para>
6059 <para>the above line would cause <command>nmbd</command> to request
6060 the master browser on the specified subnets or addresses to
6061 synchronize their browse lists with the local server.</para>
6063 <para>The IP addresses you choose would normally be the broadcast
6064 addresses of the remote networks, but can also be the IP addresses
6065 of known browse masters if your network config is that stable. If
6066 a machine IP address is given Samba makes NO attempt to validate
6067 that the remote machine is available, is listening, nor that it
6068 is in fact the browse master on its segment.</para>
6070 <para>Default: <command>remote browse sync = &lt;empty string&gt;
6071 </command></para>
6072 </listitem>
6073 </varlistentry>
6077 <varlistentry>
6078 <term><anchor id="RESTRICTACLWITHMASK">restrict acl with mask (S)</term>
6079 <listitem><para>This is a boolean parameter. If set to <constant>false</constant> (default), then
6080 creation of files with access control lists (ACLS) and modification of ACLs
6081 using the Windows NT/2000 ACL editor will be applied directly to the file
6082 or directory.</para>
6084 <para>If set to <constant>true</constant>, then all requests to set an ACL on a file will have the
6085 parameters <link linkend="CREATEMASK"><parameter>create mask</parameter></link>,
6086 <link linkend="FORCECREATEMODE"><parameter>force create mode</parameter></link>
6087 applied before setting the ACL, and all requests to set an ACL on a directory will
6088 have the parameters <link linkend="DIRECTORYMASK"><parameter>directory
6089 mask</parameter></link>, <link linkend="FORCEDIRECTORYMODE"><parameter>force
6090 directory mode</parameter></link> applied before setting the ACL.
6091 </para>
6093 <para>See also <link linkend="CREATEMASK"><parameter>create mask</parameter></link>,
6094 <link linkend="FORCECREATEMODE"><parameter>force create mode</parameter></link>,
6095 <link linkend="DIRECTORYMASK"><parameter>directory mask</parameter></link>,
6096 <link linkend="FORCEDIRECTORYMODE"><parameter>force directory mode</parameter></link>
6097 </para>
6099 <para>Default: <command>restrict acl with mask = no</command></para>
6100 </listitem>
6101 </varlistentry>
6106 <varlistentry>
6107 <term><anchor id="RESTRICTANONYMOUS">restrict anonymous (G)</term>
6108 <listitem><para>This is a boolean parameter. If it is <constant>true</constant>, then
6109 anonymous access to the server will be restricted, namely in the
6110 case where the server is expecting the client to send a username,
6111 but it doesn't. Setting it to <constant>true</constant> will force these anonymous
6112 connections to be denied, and the client will be required to always
6113 supply a username and password when connecting. Use of this parameter
6114 is only recommended for homogeneous NT client environments.</para>
6116 <para>This parameter makes the use of macro expansions that rely
6117 on the username (%U, %G, etc) consistent. NT 4.0
6118 likes to use anonymous connections when refreshing the share list,
6119 and this is a way to work around that.</para>
6121 <para>When restrict anonymous is <constant>true</constant>, all anonymous connections
6122 are denied no matter what they are for. This can effect the ability
6123 of a machine to access the Samba Primary Domain Controller to revalidate
6124 its machine account after someone else has logged on the client
6125 interactively. The NT client will display a message saying that
6126 the machine's account in the domain doesn't exist or the password is
6127 bad. The best way to deal with this is to reboot NT client machines
6128 between interactive logons, using "Shutdown and Restart", rather
6129 than "Close all programs and logon as a different user".</para>
6131 <para>Default: <command>restrict anonymous = no</command></para>
6132 </listitem>
6133 </varlistentry>
6137 <varlistentry>
6138 <term><anchor id="ROOT">root (G)</term>
6139 <listitem><para>Synonym for <link linkend="ROOTDIRECTORY">
6140 <parameter>root directory"</parameter></link>.</para>
6141 </listitem>
6142 </varlistentry>
6146 <varlistentry>
6147 <term><anchor id="ROOTDIR">root dir (G)</term>
6148 <listitem><para>Synonym for <link linkend="ROOTDIRECTORY">
6149 <parameter>root directory"</parameter></link>.</para>
6150 </listitem>
6151 </varlistentry>
6154 <varlistentry>
6155 <term><anchor id="ROOTDIRECTORY">root directory (G)</term>
6156 <listitem><para>The server will <command>chroot()</command> (i.e.
6157 Change its root directory) to this directory on startup. This is
6158 not strictly necessary for secure operation. Even without it the
6159 server will deny access to files not in one of the service entries.
6160 It may also check for, and deny access to, soft links to other
6161 parts of the filesystem, or attempts to use ".." in file names
6162 to access other directories (depending on the setting of the <link
6163 linkend="WIDELINKS"><parameter>wide links</parameter></link>
6164 parameter).</para>
6166 <para>Adding a <parameter>root directory</parameter> entry other
6167 than "/" adds an extra level of security, but at a price. It
6168 absolutely ensures that no access is given to files not in the
6169 sub-tree specified in the <parameter>root directory</parameter>
6170 option, <emphasis>including</emphasis> some files needed for
6171 complete operation of the server. To maintain full operability
6172 of the server you will need to mirror some system files
6173 into the <parameter>root directory</parameter> tree. In particular
6174 you will need to mirror <filename>/etc/passwd</filename> (or a
6175 subset of it), and any binaries or configuration files needed for
6176 printing (if required). The set of files that must be mirrored is
6177 operating system dependent.</para>
6179 <para>Default: <command>root directory = /</command></para>
6180 <para>Example: <command>root directory = /homes/smb</command></para>
6181 </listitem>
6182 </varlistentry>
6186 <varlistentry>
6187 <term><anchor id="ROOTPOSTEXEC">root postexec (S)</term>
6188 <listitem><para>This is the same as the <parameter>postexec</parameter>
6189 parameter except that the command is run as root. This
6190 is useful for unmounting filesystems
6191 (such as CDROMs) after a connection is closed.</para>
6193 <para>See also <link linkend="POSTEXEC"><parameter>
6194 postexec</parameter></link>.</para>
6196 <para>Default: <command>root postexec = &lt;empty string&gt;
6197 </command></para>
6198 </listitem>
6199 </varlistentry>
6201 <varlistentry>
6202 <term><anchor id="ROOTPREEXEC">root preexec (S)</term>
6203 <listitem><para>This is the same as the <parameter>preexec</parameter>
6204 parameter except that the command is run as root. This
6205 is useful for mounting filesystems (such as CDROMs) when a
6206 connection is opened.</para>
6208 <para>See also <link linkend="PREEXEC"><parameter>
6209 preexec</parameter></link> and <link linkend="PREEXECCLOSE">
6210 <parameter>preexec close</parameter></link>.</para>
6212 <para>Default: <command>root preexec = &lt;empty string&gt;
6213 </command></para>
6214 </listitem>
6215 </varlistentry>
6219 <varlistentry>
6220 <term><anchor id="ROOTPREEXECCLOSE">root preexec close (S)</term>
6221 <listitem><para>This is the same as the <parameter>preexec close
6222 </parameter> parameter except that the command is run as root.</para>
6224 <para>See also <link linkend="PREEXEC"><parameter>
6225 preexec</parameter></link> and <link linkend="PREEXECCLOSE">
6226 <parameter>preexec close</parameter></link>.</para>
6228 <para>Default: <command>root preexec close = no</command></para>
6229 </listitem>
6230 </varlistentry>
6233 <varlistentry>
6234 <term><anchor id="SECURITY">security (G)</term>
6235 <listitem><para>This option affects how clients respond to
6236 Samba and is one of the most important settings in the <filename>
6237 smb.conf</filename> file.</para>
6239 <para>The option sets the "security mode bit" in replies to
6240 protocol negotiations with <ulink url="smbd.8.html">smbd(8)
6241 </ulink> to turn share level security on or off. Clients decide
6242 based on this bit whether (and how) to transfer user and password
6243 information to the server.</para>
6246 <para>The default is <command>security = user</command>, as this is
6247 the most common setting needed when talking to Windows 98 and
6248 Windows NT.</para>
6250 <para>The alternatives are <command>security = share</command>,
6251 <command>security = server</command> or <command>security = domain
6252 </command>.</para>
6254 <para>In versions of Samba prior to 2..0, the default was
6255 <command>security = share</command> mainly because that was
6256 the only option at one stage.</para>
6258 <para>There is a bug in WfWg that has relevance to this
6259 setting. When in user or server level security a WfWg client
6260 will totally ignore the password you type in the "connect
6261 drive" dialog box. This makes it very difficult (if not impossible)
6262 to connect to a Samba service as anyone except the user that
6263 you are logged into WfWg as.</para>
6265 <para>If your PCs use usernames that are the same as their
6266 usernames on the UNIX machine then you will want to use
6267 <command>security = user</command>. If you mostly use usernames
6268 that don't exist on the UNIX box then use <command>security =
6269 share</command>.</para>
6271 <para>You should also use <command>security = share</command> if you
6272 want to mainly setup shares without a password (guest shares). This
6273 is commonly used for a shared printer server. It is more difficult
6274 to setup guest shares with <command>security = user</command>, see
6275 the <link linkend="MAPTOGUEST"><parameter>map to guest</parameter>
6276 </link>parameter for details.</para>
6278 <para>It is possible to use <command>smbd</command> in a <emphasis>
6279 hybrid mode</emphasis> where it is offers both user and share
6280 level security under different <link linkend="NETBIOSALIASES">
6281 <parameter>NetBIOS aliases</parameter></link>. </para>
6283 <para>The different settings will now be explained.</para>
6286 <para><anchor id="SECURITYEQUALSSHARE"><emphasis>SECURITY = SHARE
6287 </emphasis></para>
6289 <para>When clients connect to a share level security server they
6290 need not log onto the server with a valid username and password before
6291 attempting to connect to a shared resource (although modern clients
6292 such as Windows 95/98 and Windows NT will send a logon request with
6293 a username but no password when talking to a <command>security = share
6294 </command> server). Instead, the clients send authentication information
6295 (passwords) on a per-share basis, at the time they attempt to connect
6296 to that share.</para>
6298 <para>Note that <command>smbd</command> <emphasis>ALWAYS</emphasis>
6299 uses a valid UNIX user to act on behalf of the client, even in
6300 <command>security = share</command> level security.</para>
6302 <para>As clients are not required to send a username to the server
6303 in share level security, <command>smbd</command> uses several
6304 techniques to determine the correct UNIX user to use on behalf
6305 of the client.</para>
6307 <para>A list of possible UNIX usernames to match with the given
6308 client password is constructed using the following methods :</para>
6310 <itemizedlist>
6311 <listitem><para>If the <link linkend="GUESTONLY"><parameter>guest
6312 only</parameter></link> parameter is set, then all the other
6313 stages are missed and only the <link linkend="GUESTACCOUNT">
6314 <parameter>guest account</parameter></link> username is checked.
6315 </para></listitem>
6317 <listitem><para>Is a username is sent with the share connection
6318 request, then this username (after mapping - see <link
6319 linkend="USERNAMEMAP"><parameter>username map</parameter></link>),
6320 is added as a potential username.</para></listitem>
6322 <listitem><para>If the client did a previous <emphasis>logon
6323 </emphasis> request (the SessionSetup SMB call) then the
6324 username sent in this SMB will be added as a potential username.
6325 </para></listitem>
6327 <listitem><para>The name of the service the client requested is
6328 added as a potential username.</para></listitem>
6330 <listitem><para>The NetBIOS name of the client is added to
6331 the list as a potential username.</para></listitem>
6333 <listitem><para>Any users on the <link linkend="USER"><parameter>
6334 user</parameter></link> list are added as potential usernames.
6335 </para></listitem>
6336 </itemizedlist>
6338 <para>If the <parameter>guest only</parameter> parameter is
6339 not set, then this list is then tried with the supplied password.
6340 The first user for whom the password matches will be used as the
6341 UNIX user.</para>
6343 <para>If the <parameter>guest only</parameter> parameter is
6344 set, or no username can be determined then if the share is marked
6345 as available to the <parameter>guest account</parameter>, then this
6346 guest user will be used, otherwise access is denied.</para>
6348 <para>Note that it can be <emphasis>very</emphasis> confusing
6349 in share-level security as to which UNIX username will eventually
6350 be used in granting access.</para>
6352 <para>See also the section <link linkend="VALIDATIONSECT">
6353 NOTE ABOUT USERNAME/PASSWORD VALIDATION</link>.</para>
6355 <para><anchor id="SECURITYEQUALSUSER"><emphasis>SECURITY = USER
6356 </emphasis></para>
6358 <para>This is the default security setting in Samba 2.2.
6359 With user-level security a client must first "log-on" with a
6360 valid username and password (which can be mapped using the <link
6361 linkend="USERNAMEMAP"><parameter>username map</parameter></link>
6362 parameter). Encrypted passwords (see the <link linkend="ENCRYPTPASSWORDS">
6363 <parameter>encrypted passwords</parameter></link> parameter) can also
6364 be used in this security mode. Parameters such as <link linkend="USER">
6365 <parameter>user</parameter></link> and <link linkend="GUESTONLY">
6366 <parameter>guest only</parameter></link> if set are then applied and
6367 may change the UNIX user to use on this connection, but only after
6368 the user has been successfully authenticated.</para>
6370 <para><emphasis>Note</emphasis> that the name of the resource being
6371 requested is <emphasis>not</emphasis> sent to the server until after
6372 the server has successfully authenticated the client. This is why
6373 guest shares don't work in user level security without allowing
6374 the server to automatically map unknown users into the <link
6375 linkend="GUESTACCOUNT"><parameter>guest account</parameter></link>.
6376 See the <link linkend="MAPTOGUEST"><parameter>map to guest</parameter>
6377 </link> parameter for details on doing this.</para>
6379 <para>See also the section <link linkend="VALIDATIONSECT">
6380 NOTE ABOUT USERNAME/PASSWORD VALIDATION</link>.</para>
6382 <para><anchor id="SECURITYEQUALSSERVER"><emphasis>SECURITY = SERVER
6383 </emphasis></para>
6385 <para>In this mode Samba will try to validate the username/password
6386 by passing it to another SMB server, such as an NT box. If this
6387 fails it will revert to <command>security = user</command>, but note
6388 that if encrypted passwords have been negotiated then Samba cannot
6389 revert back to checking the UNIX password file, it must have a valid
6390 <filename>smbpasswd</filename> file to check users against. See the
6391 documentation file in the <filename>docs/</filename> directory
6392 <filename>ENCRYPTION.txt</filename> for details on how to set this
6393 up.</para>
6395 <para><emphasis>Note</emphasis> that from the client's point of
6396 view <command>security = server</command> is the same as <command>
6397 security = user</command>. It only affects how the server deals
6398 with the authentication, it does not in any way affect what the
6399 client sees.</para>
6401 <para><emphasis>Note</emphasis> that the name of the resource being
6402 requested is <emphasis>not</emphasis> sent to the server until after
6403 the server has successfully authenticated the client. This is why
6404 guest shares don't work in user level security without allowing
6405 the server to automatically map unknown users into the <link
6406 linkend="GUESTACCOUNT"><parameter>guest account</parameter></link>.
6407 See the <link linkend="MAPTOGUEST"><parameter>map to guest</parameter>
6408 </link> parameter for details on doing this.</para>
6410 <para>See also the section <link linkend="VALIDATIONSECT">
6411 NOTE ABOUT USERNAME/PASSWORD VALIDATION</link>.</para>
6413 <para>See also the <link linkend="PASSWORDSERVER"><parameter>password
6414 server</parameter></link> parameter and the <link
6415 linkend="ENCRYPTPASSWORDS"><parameter>encrypted passwords</parameter>
6416 </link> parameter.</para>
6418 <para><anchor id="SECURITYEQUALSDOMAIN"><emphasis>SECURITY = DOMAIN
6419 </emphasis></para>
6421 <para>This mode will only work correctly if <ulink
6422 url="smbpasswd.8.html">smbpasswd(8)</ulink> has been used to add this
6423 machine into a Windows NT Domain. It expects the <link
6424 linkend="ENCRYPTPASSWORDS"><parameter>encrypted passwords</parameter>
6425 </link> parameter to be set to <constant>true</constant>. In this
6426 mode Samba will try to validate the username/password by passing
6427 it to a Windows NT Primary or Backup Domain Controller, in exactly
6428 the same way that a Windows NT Server would do.</para>
6430 <para><emphasis>Note</emphasis> that a valid UNIX user must still
6431 exist as well as the account on the Domain Controller to allow
6432 Samba to have a valid UNIX account to map file access to.</para>
6434 <para><emphasis>Note</emphasis> that from the client's point
6435 of view <command>security = domain</command> is the same as <command>security = user
6436 </command>. It only affects how the server deals with the authentication,
6437 it does not in any way affect what the client sees.</para>
6439 <para><emphasis>Note</emphasis> that the name of the resource being
6440 requested is <emphasis>not</emphasis> sent to the server until after
6441 the server has successfully authenticated the client. This is why
6442 guest shares don't work in user level security without allowing
6443 the server to automatically map unknown users into the <link
6444 linkend="GUESTACCOUNT"><parameter>guest account</parameter></link>.
6445 See the <link linkend="MAPTOGUEST"><parameter>map to guest</parameter>
6446 </link> parameter for details on doing this.</para>
6448 <para><emphasis>BUG:</emphasis> There is currently a bug in the
6449 implementation of <command>security = domain</command> with respect
6450 to multi-byte character set usernames. The communication with a
6451 Domain Controller must be done in UNICODE and Samba currently
6452 does not widen multi-byte user names to UNICODE correctly, thus
6453 a multi-byte username will not be recognized correctly at the
6454 Domain Controller. This issue will be addressed in a future release.</para>
6456 <para>See also the section <link linkend="VALIDATIONSECT">
6457 NOTE ABOUT USERNAME/PASSWORD VALIDATION</link>.</para>
6459 <para>See also the <link linkend="PASSWORDSERVER"><parameter>password
6460 server</parameter></link> parameter and the <link
6461 linkend="ENCRYPTPASSWORDS"><parameter>encrypted passwords</parameter>
6462 </link> parameter.</para>
6464 <para>Default: <command>security = USER</command></para>
6465 <para>Example: <command>security = DOMAIN</command></para>
6466 </listitem>
6467 </varlistentry>
6471 <varlistentry>
6472 <term><anchor id="SECURITYMASK">security mask (S)</term>
6473 <listitem><para>This parameter controls what UNIX permission
6474 bits can be modified when a Windows NT client is manipulating
6475 the UNIX permission on a file using the native NT security
6476 dialog box.</para>
6478 <para>This parameter is applied as a mask (AND'ed with) to
6479 the changed permission bits, thus preventing any bits not in
6480 this mask from being modified. Essentially, zero bits in this
6481 mask may be treated as a set of bits the user is not allowed
6482 to change.</para>
6484 <para>If not set explicitly this parameter is 0777, allowing
6485 a user to modify all the user/group/world permissions on a file.
6486 </para>
6488 <para><emphasis>Note</emphasis> that users who can access the
6489 Samba server through other means can easily bypass this
6490 restriction, so it is primarily useful for standalone
6491 "appliance" systems. Administrators of most normal systems will
6492 probably want to leave it set to <constant>0777</constant>.</para>
6494 <para>See also the <link linkend="FORCEDIRECTORYSECURITYMODE">
6495 <parameter>force directory security mode</parameter></link>,
6496 <link linkend="DIRECTORYSECURITYMASK"><parameter>directory
6497 security mask</parameter></link>, <link linkend="FORCESECURITYMODE">
6498 <parameter>force security mode</parameter></link> parameters.</para>
6500 <para>Default: <command>security mask = 0777</command></para>
6501 <para>Example: <command>security mask = 0770</command></para>
6502 </listitem>
6503 </varlistentry>
6506 <varlistentry>
6507 <term><anchor id="SERVERSTRING">server string (G)</term>
6508 <listitem><para>This controls what string will show up in the
6509 printer comment box in print manager and next to the IPC connection
6510 in <command>net view</command>. It can be any string that you wish
6511 to show to your users.</para>
6513 <para>It also sets what will appear in browse lists next
6514 to the machine name.</para>
6516 <para>A <parameter>%v</parameter> will be replaced with the Samba
6517 version number.</para>
6519 <para>A <parameter>%h</parameter> will be replaced with the
6520 hostname.</para>
6522 <para>Default: <command>server string = Samba %v</command></para>
6524 <para>Example: <command>server string = University of GNUs Samba
6525 Server</command></para>
6526 </listitem>
6527 </varlistentry>
6531 <varlistentry>
6532 <term><anchor id="SETDIRECTORY">set directory (S)</term>
6533 <listitem><para>If <command>set directory = no</command>, then
6534 users of the service may not use the setdir command to change
6535 directory.</para>
6537 <para>The <command>setdir</command> command is only implemented
6538 in the Digital Pathworks client. See the Pathworks documentation
6539 for details.</para>
6541 <para>Default: <command>set directory = no</command></para>
6542 </listitem>
6543 </varlistentry>
6549 <varlistentry>
6550 <term><anchor id="SHORTPRESERVECASE">short preserve case (S)</term>
6551 <listitem><para>This boolean parameter controls if new files
6552 which conform to 8.3 syntax, that is all in upper case and of
6553 suitable length, are created upper case, or if they are forced
6554 to be the <link linkend="DEFAULTCASE"><parameter>default case
6555 </parameter></link>. This option can be use with <link
6556 linkend="PRESERVECASE"><command>preserve case = yes</command>
6557 </link> to permit long filenames to retain their case, while short
6558 names are lowered. </para>
6560 <para>See the section on <link linkend="NAMEMANGLINGSECT">
6561 NAME MANGLING</link>.</para>
6563 <para>Default: <command>short preserve case = yes</command></para>
6564 </listitem>
6565 </varlistentry>
6569 <varlistentry>
6570 <term><anchor id="SHOWADDPRINTERWIZARD">show add printer wizard (G)</term>
6571 <listitem><para>With the introduction of MS-RPC based printing support
6572 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will
6573 appear on Samba hosts in the share listing. Normally this folder will
6574 contain an icon for the MS Add Printer Wizard (APW). However, it is
6575 possible to disable this feature regardless of the level of privilege
6576 of the connected user.</para>
6578 <para>Under normal circumstances, the Windows NT/2000 client will
6579 open a handle on the printer server with OpenPrinterEx() asking for
6580 Administrator privileges. If the user does not have administrative
6581 access on the print server (i.e is not root or a member of the
6582 <parameter>printer admin</parameter> group), the OpenPrinterEx()
6583 call fails and the client makes another open call with a request for
6584 a lower privilege level. This should succeed, however the APW
6585 icon will not be displayed.</para>
6587 <para>Disabling the <parameter>show add printer wizard</parameter>
6588 parameter will always cause the OpenPrinterEx() on the server
6589 to fail. Thus the APW icon will never be displayed. <emphasis>
6590 Note :</emphasis>This does not prevent the same user from having
6591 administrative privilege on an individual printer.</para>
6593 <para>See also <link linkend="ADDPRINTERCOMMAND"><parameter>addprinter
6594 command</parameter></link>, <link linkend="DELETEPRINTERCOMMAND">
6595 <parameter>deleteprinter command</parameter></link>, <link
6596 linkend="PRINTERADMIN"><parameter>printer admin</parameter></link></para>
6598 <para>Default :<command>show add printer wizard = yes</command></para>
6599 </listitem>
6600 </varlistentry>
6604 <varlistentry>
6605 <term><anchor id="SHUTDOWNSCRIPT">shutdown script (G)</term>
6606 <listitem><para><emphasis>This parameter only exists in the HEAD cvs branch</emphasis>
6607 This a full path name to a script called by
6608 <ulink url="smbd.8.html"><command>smbd(8)</command></ulink> that
6609 should start a shutdown procedure.</para>
6611 <para>This command will be run as the user connected to the
6612 server.</para>
6614 <para>%m %t %r %f parameters are expanded</para>
6615 <para><parameter>%m</parameter> will be substituted with the
6616 shutdown message sent to the server.</para>
6617 <para><parameter>%t</parameter> will be substituted with the
6618 number of seconds to wait before effectively starting the
6619 shutdown procedure.</para>
6620 <para><parameter>%r</parameter> will be substituted with the
6621 switch <emphasis>-r</emphasis>. It means reboot after shutdown
6622 for NT.
6623 </para>
6624 <para><parameter>%f</parameter> will be substituted with the
6625 switch <emphasis>-f</emphasis>. It means force the shutdown
6626 even if applications do not respond for NT.</para>
6628 <para>Default: <emphasis>None</emphasis>.</para>
6629 <para>Example: <command>abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</command></para>
6630 <para>Shutdown script example:
6631 <programlisting>
6632 #!/bin/bash
6634 $time=0
6635 let "time/60"
6636 let "time++"
6638 /sbin/shutdown $3 $4 +$time $1 &
6639 </programlisting>
6640 Shutdown does not return so we need to launch it in background.
6641 </para>
6643 <para>See also <link linkend="ABORTSHUTDOWNSCRIPT"><parameter>abort shutdown script</parameter></link>.</para>
6644 </listitem>
6645 </varlistentry>
6648 <varlistentry>
6649 <term><anchor id="SMBPASSWDFILE">smb passwd file (G)</term>
6650 <listitem><para>This option sets the path to the encrypted
6651 smbpasswd file. By default the path to the smbpasswd file
6652 is compiled into Samba.</para>
6654 <para>Default: <command>smb passwd file = ${prefix}/private/smbpasswd
6655 </command></para>
6657 <para>Example: <command>smb passwd file = /etc/samba/smbpasswd
6658 </command></para>
6659 </listitem>
6660 </varlistentry>
6665 <varlistentry>
6666 <term><anchor id="SOCKETADDRESS">socket address (G)</term>
6667 <listitem><para>This option allows you to control what
6668 address Samba will listen for connections on. This is used to
6669 support multiple virtual interfaces on the one server, each
6670 with a different configuration.</para>
6672 <para>By default Samba will accept connections on any
6673 address.</para>
6675 <para>Example: <command>socket address = 192.168.2.20</command>
6676 </para>
6677 </listitem>
6678 </varlistentry>
6682 <varlistentry>
6683 <term><anchor id="SOCKETOPTIONS">socket options (G)</term>
6684 <listitem><para>This option allows you to set socket options
6685 to be used when talking with the client.</para>
6687 <para>Socket options are controls on the networking layer
6688 of the operating systems which allow the connection to be
6689 tuned.</para>
6691 <para>This option will typically be used to tune your Samba
6692 server for optimal performance for your local network. There is
6693 no way that Samba can know what the optimal parameters are for
6694 your net, so you must experiment and choose them yourself. We
6695 strongly suggest you read the appropriate documentation for your
6696 operating system first (perhaps <command>man setsockopt</command>
6697 will help).</para>
6699 <para>You may find that on some systems Samba will say
6700 "Unknown socket option" when you supply an option. This means you
6701 either incorrectly typed it or you need to add an include file
6702 to includes.h for your OS. If the latter is the case please
6703 send the patch to <ulink url="mailto:samba@samba.org">
6704 samba@samba.org</ulink>.</para>
6706 <para>Any of the supported socket options may be combined
6707 in any way you like, as long as your OS allows it.</para>
6709 <para>This is the list of socket options currently settable
6710 using this option:</para>
6712 <itemizedlist>
6713 <listitem><para>SO_KEEPALIVE</para></listitem>
6714 <listitem><para>SO_REUSEADDR</para></listitem>
6715 <listitem><para>SO_BROADCAST</para></listitem>
6716 <listitem><para>TCP_NODELAY</para></listitem>
6717 <listitem><para>IPTOS_LOWDELAY</para></listitem>
6718 <listitem><para>IPTOS_THROUGHPUT</para></listitem>
6719 <listitem><para>SO_SNDBUF *</para></listitem>
6720 <listitem><para>SO_RCVBUF *</para></listitem>
6721 <listitem><para>SO_SNDLOWAT *</para></listitem>
6722 <listitem><para>SO_RCVLOWAT *</para></listitem>
6723 </itemizedlist>
6725 <para>Those marked with a <emphasis>'*'</emphasis> take an integer
6726 argument. The others can optionally take a 1 or 0 argument to enable
6727 or disable the option, by default they will be enabled if you
6728 don't specify 1 or 0.</para>
6730 <para>To specify an argument use the syntax SOME_OPTION = VALUE
6731 for example <command>SO_SNDBUF = 8192</command>. Note that you must
6732 not have any spaces before or after the = sign.</para>
6734 <para>If you are on a local network then a sensible option
6735 might be</para>
6736 <para><command>socket options = IPTOS_LOWDELAY</command></para>
6738 <para>If you have a local network then you could try:</para>
6739 <para><command>socket options = IPTOS_LOWDELAY TCP_NODELAY</command></para>
6741 <para>If you are on a wide area network then perhaps try
6742 setting IPTOS_THROUGHPUT. </para>
6744 <para>Note that several of the options may cause your Samba
6745 server to fail completely. Use these options with caution!</para>
6747 <para>Default: <command>socket options = TCP_NODELAY</command></para>
6748 <para>Example: <command>socket options = IPTOS_LOWDELAY</command></para>
6749 </listitem>
6750 </varlistentry>
6755 <varlistentry>
6756 <term><anchor id="SOURCEENVIRONMENT">source environment (G)</term>
6757 <listitem><para>This parameter causes Samba to set environment
6758 variables as per the content of the file named.</para>
6760 <para>If the value of this parameter starts with a "|" character
6761 then Samba will treat that value as a pipe command to open and
6762 will set the environment variables from the output of the pipe.</para>
6764 <para>The contents of the file or the output of the pipe should
6765 be formatted as the output of the standard Unix <command>env(1)
6766 </command> command. This is of the form :</para>
6767 <para>Example environment entry:</para>
6768 <para><command>SAMBA_NETBIOS_NAME = myhostname</command></para>
6770 <para>Default: <emphasis>No default value</emphasis></para>
6771 <para>Examples: <command>source environment = |/etc/smb.conf.sh
6772 </command></para>
6774 <para>Example: <command>source environment =
6775 /usr/local/smb_env_vars</command></para>
6776 </listitem>
6777 </varlistentry>
6781 <varlistentry>
6782 <term><anchor id="SSL">ssl (G)</term>
6783 <listitem><para>This variable is part of SSL-enabled Samba. This
6784 is only available if the SSL libraries have been compiled on your
6785 system and the configure option <command>--with-ssl</command> was
6786 given at configure time.</para>
6788 <para><emphasis>Note</emphasis> that for export control reasons
6789 this code is <emphasis>NOT</emphasis> enabled by default in any
6790 current binary version of Samba.</para>
6792 <para>This variable enables or disables the entire SSL mode. If
6793 it is set to <constant>no</constant>, the SSL-enabled Samba behaves
6794 exactly like the non-SSL Samba. If set to <constant>yes</constant>,
6795 it depends on the variables <link linkend="SSLHOSTS"><parameter>
6796 ssl hosts</parameter></link> and <link linkend="SSLHOSTSRESIGN">
6797 <parameter>ssl hosts resign</parameter></link> whether an SSL
6798 connection will be required.</para>
6800 <para>Default: <command>ssl = no</command></para>
6801 </listitem>
6802 </varlistentry>
6806 <varlistentry>
6807 <term><anchor id="SSLCACERTDIR">ssl CA certDir (G)</term>
6808 <listitem><para>This variable is part of SSL-enabled Samba. This
6809 is only available if the SSL libraries have been compiled on your
6810 system and the configure option <command>--with-ssl</command> was
6811 given at configure time.</para>
6813 <para><emphasis>Note</emphasis> that for export control reasons
6814 this code is <emphasis>NOT</emphasis> enabled by default in any
6815 current binary version of Samba.</para>
6817 <para>This variable defines where to look up the Certification
6818 Authorities. The given directory should contain one file for
6819 each CA that Samba will trust. The file name must be the hash
6820 value over the "Distinguished Name" of the CA. How this directory
6821 is set up is explained later in this document. All files within the
6822 directory that don't fit into this naming scheme are ignored. You
6823 don't need this variable if you don't verify client certificates.</para>
6825 <para>Default: <command>ssl CA certDir = /usr/local/ssl/certs
6826 </command></para>
6827 </listitem>
6828 </varlistentry>
6832 <varlistentry>
6833 <term><anchor id="SSLCACERTFILE">ssl CA certFile (G)</term>
6834 <listitem><para>This variable is part of SSL-enabled Samba. This
6835 is only available if the SSL libraries have been compiled on your
6836 system and the configure option <command>--with-ssl</command> was
6837 given at configure time.</para>
6839 <para><emphasis>Note</emphasis> that for export control reasons
6840 this code is <emphasis>NOT</emphasis> enabled by default in any
6841 current binary version of Samba.</para>
6843 <para>This variable is a second way to define the trusted CAs.
6844 The certificates of the trusted CAs are collected in one big
6845 file and this variable points to the file. You will probably
6846 only use one of the two ways to define your CAs. The first choice is
6847 preferable if you have many CAs or want to be flexible, the second
6848 is preferable if you only have one CA and want to keep things
6849 simple (you won't need to create the hashed file names). You
6850 don't need this variable if you don't verify client certificates.</para>
6852 <para>Default: <command>ssl CA certFile = /usr/local/ssl/certs/trustedCAs.pem
6853 </command></para>
6854 </listitem>
6855 </varlistentry>
6859 <varlistentry>
6860 <term><anchor id="SSLCIPHERS">ssl ciphers (G)</term>
6861 <listitem><para>This variable is part of SSL-enabled Samba. This
6862 is only available if the SSL libraries have been compiled on your
6863 system and the configure option <command>--with-ssl</command> was
6864 given at configure time.</para>
6866 <para><emphasis>Note</emphasis> that for export control reasons
6867 this code is <emphasis>NOT</emphasis> enabled by default in any
6868 current binary version of Samba.</para>
6870 <para>This variable defines the ciphers that should be offered
6871 during SSL negotiation. You should not set this variable unless
6872 you know what you are doing.</para>
6873 </listitem>
6874 </varlistentry>
6877 <varlistentry>
6878 <term><anchor id="SSLCLIENTCERT">ssl client cert (G)</term>
6879 <listitem><para>This variable is part of SSL-enabled Samba. This
6880 is only available if the SSL libraries have been compiled on your
6881 system and the configure option <command>--with-ssl</command> was
6882 given at configure time.</para>
6884 <para><emphasis>Note</emphasis> that for export control reasons
6885 this code is <emphasis>NOT</emphasis> enabled by default in any
6886 current binary version of Samba.</para>
6888 <para>The certificate in this file is used by <ulink url="smbclient.1.html">
6889 <command>smbclient(1)</command></ulink> if it exists. It's needed
6890 if the server requires a client certificate.</para>
6892 <para>Default: <command>ssl client cert = /usr/local/ssl/certs/smbclient.pem
6893 </command></para>
6894 </listitem>
6895 </varlistentry>
6899 <varlistentry>
6900 <term><anchor id="SSLCLIENTKEY">ssl client key (G)</term>
6901 <listitem><para>This variable is part of SSL-enabled Samba. This
6902 is only available if the SSL libraries have been compiled on your
6903 system and the configure option <command>--with-ssl</command> was
6904 given at configure time.</para>
6906 <para><emphasis>Note</emphasis> that for export control reasons
6907 this code is <emphasis>NOT</emphasis> enabled by default in any
6908 current binary version of Samba.</para>
6910 <para>This is the private key for <ulink url="smbclient.1.html">
6911 <command>smbclient(1)</command></ulink>. It's only needed if the
6912 client should have a certificate. </para>
6914 <para>Default: <command>ssl client key = /usr/local/ssl/private/smbclient.pem
6915 </command></para>
6916 </listitem>
6917 </varlistentry>
6921 <varlistentry>
6922 <term><anchor id="SSLCOMPATIBILITY">ssl compatibility (G)</term>
6923 <listitem><para>This variable is part of SSL-enabled Samba. This
6924 is only available if the SSL libraries have been compiled on your
6925 system and the configure option <command>--with-ssl</command> was
6926 given at configure time.</para>
6928 <para><emphasis>Note</emphasis> that for export control reasons
6929 this code is <emphasis>NOT</emphasis> enabled by default in any
6930 current binary version of Samba.</para>
6932 <para>This variable defines whether SSLeay should be configured
6933 for bug compatibility with other SSL implementations. This is
6934 probably not desirable because currently no clients with SSL
6935 implementations other than SSLeay exist.</para>
6937 <para>Default: <command>ssl compatibility = no</command></para>
6938 </listitem>
6939 </varlistentry>
6942 <varlistentry>
6943 <term><anchor id="SSLHOSTS">ssl hosts (G)</term>
6944 <listitem><para>See <link linkend="SSLHOSTSRESIGN"><parameter>
6945 ssl hosts resign</parameter></link>.</para>
6946 </listitem>
6947 </varlistentry>
6950 <varlistentry>
6951 <term><anchor id="SSLHOSTSRESIGN">ssl hosts resign (G)</term>
6952 <listitem><para>This variable is part of SSL-enabled Samba. This
6953 is only available if the SSL libraries have been compiled on your
6954 system and the configure option <command>--with-ssl</command> was
6955 given at configure time.</para>
6957 <para><emphasis>Note</emphasis> that for export control reasons
6958 this code is <emphasis>NOT</emphasis> enabled by default in any
6959 current binary version of Samba.</para>
6961 <para>These two variables define whether Samba will go
6962 into SSL mode or not. If none of them is defined, Samba will
6963 allow only SSL connections. If the <link linkend="SSLHOSTS">
6964 <parameter>ssl hosts</parameter></link> variable lists
6965 hosts (by IP-address, IP-address range, net group or name),
6966 only these hosts will be forced into SSL mode. If the <parameter>
6967 ssl hosts resign</parameter> variable lists hosts, only these
6968 hosts will <emphasis>NOT</emphasis> be forced into SSL mode. The syntax for these two
6969 variables is the same as for the <link linkend="HOSTSALLOW"><parameter>
6970 hosts allow</parameter></link> and <link linkend="HOSTSDENY">
6971 <parameter>hosts deny</parameter></link> pair of variables, only
6972 that the subject of the decision is different: It's not the access
6973 right but whether SSL is used or not. </para>
6975 <para>The example below requires SSL connections from all hosts
6976 outside the local net (which is 192.168.*.*).</para>
6978 <para>Default: <command>ssl hosts = &lt;empty string&gt;</command></para>
6979 <para><command>ssl hosts resign = &lt;empty string&gt;</command></para>
6981 <para>Example: <command>ssl hosts resign = 192.168.</command></para>
6982 </listitem>
6983 </varlistentry>
6987 <varlistentry>
6988 <term><anchor id="SSLREQUIRECLIENTCERT">ssl require clientcert (G)</term>
6989 <listitem><para>This variable is part of SSL-enabled Samba. This
6990 is only available if the SSL libraries have been compiled on your
6991 system and the configure option <command>--with-ssl</command> was
6992 given at configure time.</para>
6994 <para><emphasis>Note</emphasis> that for export control reasons
6995 this code is <emphasis>NOT</emphasis> enabled by default in any
6996 current binary version of Samba.</para>
6998 <para>If this variable is set to <constant>yes</constant>, the
6999 server will not tolerate connections from clients that don't
7000 have a valid certificate. The directory/file given in <link
7001 linkend="SSLCACERTDIR"><parameter>ssl CA certDir</parameter>
7002 </link> and <link linkend="SSLCACERTFILE"><parameter>ssl CA certFile
7003 </parameter></link> will be used to look up the CAs that issued
7004 the client's certificate. If the certificate can't be verified
7005 positively, the connection will be terminated. If this variable
7006 is set to <constant>no</constant>, clients don't need certificates.
7007 Contrary to web applications you really <emphasis>should</emphasis>
7008 require client certificates. In the web environment the client's
7009 data is sensitive (credit card numbers) and the server must prove
7010 to be trustworthy. In a file server environment the server's data
7011 will be sensitive and the clients must prove to be trustworthy.</para>
7013 <para>Default: <command>ssl require clientcert = no</command></para>
7014 </listitem>
7015 </varlistentry>
7019 <varlistentry>
7020 <term><anchor id="SSLREQUIRESERVERCERT">ssl require servercert (G)</term>
7021 <listitem><para>This variable is part of SSL-enabled Samba. This
7022 is only available if the SSL libraries have been compiled on your
7023 system and the configure option <command>--with-ssl</command> was
7024 given at configure time.</para>
7026 <para><emphasis>Note</emphasis> that for export control reasons
7027 this code is <emphasis>NOT</emphasis> enabled by default in any
7028 current binary version of Samba.</para>
7030 <para>If this variable is set to <constant>yes</constant>, the
7031 <ulink url="smbclient.1.html"><command>smbclient(1)</command>
7032 </ulink> will request a certificate from the server. Same as
7033 <link linkend="SSLREQUIRECLIENTCERT"><parameter>ssl require
7034 clientcert</parameter></link> for the server.</para>
7036 <para>Default: <command>ssl require servercert = no</command>
7037 </para>
7038 </listitem>
7039 </varlistentry>
7041 <varlistentry>
7042 <term><anchor id="SSLSERVERCERT">ssl server cert (G)</term>
7043 <listitem><para>This variable is part of SSL-enabled Samba. This
7044 is only available if the SSL libraries have been compiled on your
7045 system and the configure option <command>--with-ssl</command> was
7046 given at configure time.</para>
7048 <para><emphasis>Note</emphasis> that for export control reasons
7049 this code is <emphasis>NOT</emphasis> enabled by default in any
7050 current binary version of Samba.</para>
7052 <para>This is the file containing the server's certificate.
7053 The server <emphasis>must</emphasis> have a certificate. The
7054 file may also contain the server's private key. See later for
7055 how certificates and private keys are created.</para>
7057 <para>Default: <command>ssl server cert = &lt;empty string&gt;
7058 </command></para>
7059 </listitem>
7060 </varlistentry>
7063 <varlistentry>
7064 <term><anchor id="SSLSERVERKEY">ssl server key (G)</term>
7065 <listitem><para>This variable is part of SSL-enabled Samba. This
7066 is only available if the SSL libraries have been compiled on your
7067 system and the configure option <command>--with-ssl</command> was
7068 given at configure time.</para>
7070 <para><emphasis>Note</emphasis> that for export control reasons
7071 this code is <emphasis>NOT</emphasis> enabled by default in any
7072 current binary version of Samba.</para>
7074 <para>This file contains the private key of the server. If
7075 this variable is not defined, the key is looked up in the
7076 certificate file (it may be appended to the certificate).
7077 The server <emphasis>must</emphasis> have a private key
7078 and the certificate <emphasis>must</emphasis>
7079 match this private key.</para>
7081 <para>Default: <command>ssl server key = &lt;empty string&gt;
7082 </command></para>
7083 </listitem>
7084 </varlistentry>
7087 <varlistentry>
7088 <term><anchor id="SSLVERSION">ssl version (G)</term>
7089 <listitem><para>This variable is part of SSL-enabled Samba. This
7090 is only available if the SSL libraries have been compiled on your
7091 system and the configure option <command>--with-ssl</command> was
7092 given at configure time.</para>
7094 <para><emphasis>Note</emphasis> that for export control reasons
7095 this code is <emphasis>NOT</emphasis> enabled by default in any
7096 current binary version of Samba.</para>
7098 <para>This enumeration variable defines the versions of the
7099 SSL protocol that will be used. <constant>ssl2or3</constant> allows
7100 dynamic negotiation of SSL v2 or v3, <constant>ssl2</constant> results
7101 in SSL v2, <constant>ssl3</constant> results in SSL v3 and
7102 <constant>tls1</constant> results in TLS v1. TLS (Transport Layer
7103 Security) is the new standard for SSL.</para>
7105 <para>Default: <command>ssl version = "ssl2or3"</command></para>
7106 </listitem>
7107 </varlistentry>
7111 <varlistentry>
7112 <term><anchor id="STATCACHE">stat cache (G)</term>
7113 <listitem><para>This parameter determines if <ulink
7114 url="smbd.8.html">smbd(8)</ulink> will use a cache in order to
7115 speed up case insensitive name mappings. You should never need
7116 to change this parameter.</para>
7118 <para>Default: <command>stat cache = yes</command></para>
7119 </listitem>
7120 </varlistentry>
7122 <varlistentry>
7123 <term><anchor id="STATCACHESIZE">stat cache size (G)</term>
7124 <listitem><para>This parameter determines the number of
7125 entries in the <parameter>stat cache</parameter>. You should
7126 never need to change this parameter.</para>
7128 <para>Default: <command>stat cache size = 50</command></para>
7129 </listitem>
7130 </varlistentry>
7134 <varlistentry>
7135 <term><anchor id="STATUS">status (G)</term>
7136 <listitem><para>This enables or disables logging of connections
7137 to a status file that <ulink url="smbstatus.1.html">smbstatus(1)</ulink>
7138 can read.</para>
7140 <para>With this disabled <command>smbstatus</command> won't be able
7141 to tell you what connections are active. You should never need to
7142 change this parameter.</para>
7144 <para>Default: <command>status = yes</command></para>
7145 </listitem>
7146 </varlistentry>
7150 <varlistentry>
7151 <term><anchor id="STRICTLOCKING">strict locking (S)</term>
7152 <listitem><para>This is a boolean that controls the handling of
7153 file locking in the server. When this is set to <constant>yes</constant>
7154 the server will check every read and write access for file locks, and
7155 deny access if locks exist. This can be slow on some systems.</para>
7157 <para>When strict locking is <constant>no</constant> the server does file
7158 lock checks only when the client explicitly asks for them.</para>
7160 <para>Well-behaved clients always ask for lock checks when it
7161 is important, so in the vast majority of cases <command>strict
7162 locking = no</command> is preferable.</para>
7164 <para>Default: <command>strict locking = no</command></para>
7165 </listitem>
7166 </varlistentry>
7170 <varlistentry>
7171 <term><anchor id="STRICTSYNC">strict sync (S)</term>
7172 <listitem><para>Many Windows applications (including the Windows
7173 98 explorer shell) seem to confuse flushing buffer contents to
7174 disk with doing a sync to disk. Under UNIX, a sync call forces
7175 the process to be suspended until the kernel has ensured that
7176 all outstanding data in kernel disk buffers has been safely stored
7177 onto stable storage. This is very slow and should only be done
7178 rarely. Setting this parameter to <constant>no</constant> (the
7179 default) means that <ulink url="smbd.8.html">smbd</ulink> ignores the Windows applications requests for
7180 a sync call. There is only a possibility of losing data if the
7181 operating system itself that Samba is running on crashes, so there is
7182 little danger in this default setting. In addition, this fixes many
7183 performance problems that people have reported with the new Windows98
7184 explorer shell file copies.</para>
7186 <para>See also the <link linkend="SYNCALWAYS"><parameter>sync
7187 always></parameter></link> parameter.</para>
7189 <para>Default: <command>strict sync = no</command></para>
7190 </listitem>
7191 </varlistentry>
7194 <varlistentry>
7195 <term><anchor id="STRIPDOT">strip dot (G)</term>
7196 <listitem><para>This is a boolean that controls whether to
7197 strip trailing dots off UNIX filenames. This helps with some
7198 CDROMs that have filenames ending in a single dot.</para>
7200 <para>Default: <command>strip dot = no</command></para>
7201 </listitem>
7202 </varlistentry>
7206 <varlistentry>
7207 <term><anchor id="SYNCALWAYS">sync always (S)</term>
7208 <listitem><para>This is a boolean parameter that controls
7209 whether writes will always be written to stable storage before
7210 the write call returns. If this is <constant>false</constant> then the server will be
7211 guided by the client's request in each write call (clients can
7212 set a bit indicating that a particular write should be synchronous).
7213 If this is <constant>true</constant> then every write will be followed by a <command>fsync()
7214 </command> call to ensure the data is written to disk. Note that
7215 the <parameter>strict sync</parameter> parameter must be set to
7216 <constant>yes</constant> in order for this parameter to have
7217 any affect.</para>
7219 <para>See also the <link linkend="STRICTSYNC"><parameter>strict
7220 sync</parameter></link> parameter.</para>
7222 <para>Default: <command>sync always = no</command></para>
7223 </listitem>
7224 </varlistentry>
7228 <varlistentry>
7229 <term><anchor id="SYSLOG">syslog (G)</term>
7230 <listitem><para>This parameter maps how Samba debug messages
7231 are logged onto the system syslog logging levels. Samba debug
7232 level zero maps onto syslog <constant>LOG_ERR</constant>, debug
7233 level one maps onto <constant>LOG_WARNING</constant>, debug level
7234 two maps onto <constant>LOG_NOTICE</constant>, debug level three
7235 maps onto LOG_INFO. All higher levels are mapped to <constant>
7236 LOG_DEBUG</constant>.</para>
7238 <para>This parameter sets the threshold for sending messages
7239 to syslog. Only messages with debug level less than this value
7240 will be sent to syslog.</para>
7242 <para>Default: <command>syslog = 1</command></para>
7243 </listitem>
7244 </varlistentry>
7248 <varlistentry>
7249 <term><anchor id="SYSLOGONLY">syslog only (G)</term>
7250 <listitem><para>If this parameter is set then Samba debug
7251 messages are logged into the system syslog only, and not to
7252 the debug log files.</para>
7254 <para>Default: <command>syslog only = no</command></para>
7255 </listitem>
7256 </varlistentry>
7260 <varlistentry>
7261 <term><anchor id="TEMPLATEHOMEDIR">template homedir (G)</term>
7262 <listitem><para>When filling out the user information for a Windows NT
7263 user, the <ulink url="winbindd.8.html">winbindd(8)</ulink> daemon
7264 uses this parameter to fill in the home directory for that user.
7265 If the string <parameter>%D</parameter> is present it is substituted
7266 with the user's Windows NT domain name. If the string <parameter>%U
7267 </parameter> is present it is substituted with the user's Windows
7268 NT user name.</para>
7270 <para>Default: <command>template homedir = /home/%D/%U</command></para>
7271 </listitem>
7272 </varlistentry>
7276 <varlistentry>
7277 <term><anchor id="TEMPLATESHELL">template shell (G)</term>
7278 <listitem><para>When filling out the user information for a Windows NT
7279 user, the <ulink url="winbindd.8.html">winbindd(8)</ulink> daemon
7280 uses this parameter to fill in the login shell for that user.</para>
7282 <para>Default: <command>template shell = /bin/false</command></para>
7283 </listitem>
7284 </varlistentry>
7288 <varlistentry>
7289 <term><anchor id="TIMEOFFSET">time offset (G)</term>
7290 <listitem><para>This parameter is a setting in minutes to add
7291 to the normal GMT to local time conversion. This is useful if
7292 you are serving a lot of PCs that have incorrect daylight
7293 saving time handling.</para>
7295 <para>Default: <command>time offset = 0</command></para>
7296 <para>Example: <command>time offset = 60</command></para>
7297 </listitem>
7298 </varlistentry>
7302 <varlistentry>
7303 <term><anchor id="TIMESERVER">time server (G)</term>
7304 <listitem><para>This parameter determines if <ulink url="nmbd.8.html">
7305 nmbd(8)</ulink> advertises itself as a time server to Windows
7306 clients.</para>
7308 <para>Default: <command>time server = no</command></para>
7309 </listitem>
7310 </varlistentry>
7313 <varlistentry>
7314 <term><anchor id="TIMESTAMPLOGS">timestamp logs (G)</term>
7315 <listitem><para>Synonym for <link linkend="DEBUGTIMESTAMP"><parameter>
7316 debug timestamp</parameter></link>.</para>
7317 </listitem>
7318 </varlistentry>
7324 <varlistentry>
7325 <term><anchor id="TOTALPRINTJOBS">total print jobs (G)</term>
7326 <listitem><para>This parameter accepts an integer value which defines
7327 a limit on the maximum number of print jobs that will be accepted
7328 system wide at any given time. If a print job is submitted
7329 by a client which will exceed this number, then <ulink url="smbd.8.html">smbd</ulink> will return an
7330 error indicating that no space is available on the server. The
7331 default value of 0 means that no such limit exists. This parameter
7332 can be used to prevent a server from exceeding its capacity and is
7333 designed as a printing throttle. See also
7334 <link linkend="MAXPRINTJOBS"><parameter>max print jobs</parameter</link>.
7335 </para>
7337 <para>Default: <command>total print jobs = 0</command></para>
7338 <para>Example: <command>total print jobs = 5000</command></para>
7339 </listitem>
7340 </varlistentry>
7345 <varlistentry>
7346 <term><anchor id="UNIXPASSWORDSYNC">unix password sync (G)</term>
7347 <listitem><para>This boolean parameter controls whether Samba
7348 attempts to synchronize the UNIX password with the SMB password
7349 when the encrypted SMB password in the smbpasswd file is changed.
7350 If this is set to <constant>true</constant> the program specified in the <parameter>passwd
7351 program</parameter>parameter is called <emphasis>AS ROOT</emphasis> -
7352 to allow the new UNIX password to be set without access to the
7353 old UNIX password (as the SMB password change code has no
7354 access to the old password cleartext, only the new).</para>
7356 <para>See also <link linkend="PASSWDPROGRAM"><parameter>passwd
7357 program</parameter></link>, <link linkend="PASSWDCHAT"><parameter>
7358 passwd chat</parameter></link>.</para>
7360 <para>Default: <command>unix password sync = no</command></para>
7361 </listitem>
7362 </varlistentry>
7366 <varlistentry>
7367 <term><anchor id="UPDATEENCRYPTED">update encrypted (G)</term>
7368 <listitem><para>This boolean parameter allows a user logging
7369 on with a plaintext password to have their encrypted (hashed)
7370 password in the smbpasswd file to be updated automatically as
7371 they log on. This option allows a site to migrate from plaintext
7372 password authentication (users authenticate with plaintext
7373 password over the wire, and are checked against a UNIX account
7374 database) to encrypted password authentication (the SMB
7375 challenge/response authentication mechanism) without forcing
7376 all users to re-enter their passwords via smbpasswd at the time the
7377 change is made. This is a convenience option to allow the change over
7378 to encrypted passwords to be made over a longer period. Once all users
7379 have encrypted representations of their passwords in the smbpasswd
7380 file this parameter should be set to <constant>no</constant>.</para>
7382 <para>In order for this parameter to work correctly the <link
7383 linkend="ENCRYPTPASSWORDS"><parameter>encrypt passwords</parameter>
7384 </link> parameter must be set to <constant>no</constant> when
7385 this parameter is set to <constant>yes</constant>.</para>
7387 <para>Note that even when this parameter is set a user
7388 authenticating to <command>smbd</command> must still enter a valid
7389 password in order to connect correctly, and to update their hashed
7390 (smbpasswd) passwords.</para>
7392 <para>Default: <command>update encrypted = no</command></para>
7393 </listitem>
7394 </varlistentry>
7397 <varlistentry>
7398 <term><anchor id="USECLIENTDRIVER">use client driver (S)</term>
7399 <listitem><para>This parameter applies only to Windows NT/2000
7400 clients. It has no affect on Windows 95/98/ME clients. When
7401 serving a printer to Windows NT/2000 clients without first installing
7402 a valid printer driver on the Samba host, the client will be required
7403 to install a local printer driver. From this point on, the client
7404 will treat the print as a local printer and not a network printer
7405 connection. This is much the same behavior that will occur
7406 when <command>disable spoolss = yes</command>. </para>
7408 <para>The differentiating
7409 factor is that under normal circumstances, the NT/2000 client will
7410 attempt to open the network printer using MS-RPC. The problem is that
7411 because the client considers the printer to be local, it will attempt
7412 to issue the OpenPrinterEx() call requesting access rights associated
7413 with the logged on user. If the user possesses local administator rights
7414 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
7415 call will fail. The result is that the client will now display an "Access
7416 Denied; Unable to connect" message in the printer queue window (even though
7417 jobs may successfully be printed). </para>
7419 <para>If this parameter is enabled for a printer, then any attempt
7420 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
7421 to PRINTER_ACCESS_USE instead. Thus allowing the OpenPrinterEx()
7422 call to succeed. <emphasis>This parameter MUST not be able enabled
7423 on a print share which has valid print driver installed on the Samba
7424 server.</emphasis></para>
7426 <para>See also <link linkend="DISABLESPOOLSS">disable spoolss</link>
7427 </para>
7429 <para>Default: <command>use client driver = no</command></para>
7430 </listitem>
7431 </varlistentry>
7435 <varlistentry>
7436 <term><anchor id="USERHOSTS">use rhosts (G)</term>
7437 <listitem><para>If this global parameter is <constant>true</constant>, it specifies
7438 that the UNIX user's <filename>.rhosts</filename> file in their home directory
7439 will be read to find the names of hosts and users who will be allowed
7440 access without specifying a password.</para>
7442 <para><emphasis>NOTE:</emphasis> The use of <parameter>use rhosts
7443 </parameter> can be a major security hole. This is because you are
7444 trusting the PC to supply the correct username. It is very easy to
7445 get a PC to supply a false username. I recommend that the <parameter>
7446 use rhosts</parameter> option be only used if you really know what
7447 you are doing.</para>
7449 <para>Default: <command>use rhosts = no</command></para>
7450 </listitem>
7451 </varlistentry>
7455 <varlistentry>
7456 <term><anchor id="USER">user (S)</term>
7457 <listitem><para>Synonym for <link linkend="USERNAME"><parameter>
7458 username</parameter></link>.</para>
7459 </listitem>
7460 </varlistentry>
7464 <varlistentry>
7465 <term><anchor id="USERS">users (S)</term>
7466 <listitem><para>Synonym for <link linkend="USERNAME"><parameter>
7467 username</parameter></link>.</para>
7468 </listitem>
7469 </varlistentry>
7472 <varlistentry>
7473 <term><anchor id="USERNAME">username (S)</term>
7474 <listitem><para>Multiple users may be specified in a comma-delimited
7475 list, in which case the supplied password will be tested against
7476 each username in turn (left to right).</para>
7478 <para>The <parameter>username</parameter> line is needed only when
7479 the PC is unable to supply its own username. This is the case
7480 for the COREPLUS protocol or where your users have different WfWg
7481 usernames to UNIX usernames. In both these cases you may also be
7482 better using the \\server\share%user syntax instead.</para>
7484 <para>The <parameter>username</parameter> line is not a great
7485 solution in many cases as it means Samba will try to validate
7486 the supplied password against each of the usernames in the
7487 <parameter>username</parameter> line in turn. This is slow and
7488 a bad idea for lots of users in case of duplicate passwords.
7489 You may get timeouts or security breaches using this parameter
7490 unwisely.</para>
7492 <para>Samba relies on the underlying UNIX security. This
7493 parameter does not restrict who can login, it just offers hints
7494 to the Samba server as to what usernames might correspond to the
7495 supplied password. Users can login as whoever they please and
7496 they will be able to do no more damage than if they started a
7497 telnet session. The daemon runs as the user that they log in as,
7498 so they cannot do anything that user cannot do.</para>
7500 <para>To restrict a service to a particular set of users you
7501 can use the <link linkend="VALIDUSERS"><parameter>valid users
7502 </parameter></link> parameter.</para>
7504 <para>If any of the usernames begin with a '@' then the name
7505 will be looked up first in the NIS netgroups list (if Samba
7506 is compiled with netgroup support), followed by a lookup in
7507 the UNIX groups database and will expand to a list of all users
7508 in the group of that name.</para>
7510 <para>If any of the usernames begin with a '+' then the name
7511 will be looked up only in the UNIX groups database and will
7512 expand to a list of all users in the group of that name.</para>
7514 <para>If any of the usernames begin with a '&'then the name
7515 will be looked up only in the NIS netgroups database (if Samba
7516 is compiled with netgroup support) and will expand to a list
7517 of all users in the netgroup group of that name.</para>
7519 <para>Note that searching though a groups database can take
7520 quite some time, and some clients may time out during the
7521 search.</para>
7523 <para>See the section <link linkend="VALIDATIONSECT">NOTE ABOUT
7524 USERNAME/PASSWORD VALIDATION</link> for more information on how
7525 this parameter determines access to the services.</para>
7527 <para>Default: <command>The guest account if a guest service,
7528 else &lt;empty string&gt;.</command></para>
7530 <para>Examples:<command>username = fred, mary, jack, jane,
7531 @users, @pcgroup</command></para>
7532 </listitem>
7533 </varlistentry>
7537 <varlistentry>
7538 <term><anchor id="USERNAMELEVEL">username level (G)</term>
7539 <listitem><para>This option helps Samba to try and 'guess' at
7540 the real UNIX username, as many DOS clients send an all-uppercase
7541 username. By default Samba tries all lowercase, followed by the
7542 username with the first letter capitalized, and fails if the
7543 username is not found on the UNIX machine.</para>
7545 <para>If this parameter is set to non-zero the behavior changes.
7546 This parameter is a number that specifies the number of uppercase
7547 combinations to try while trying to determine the UNIX user name. The
7548 higher the number the more combinations will be tried, but the slower
7549 the discovery of usernames will be. Use this parameter when you have
7550 strange usernames on your UNIX machine, such as <constant>AstrangeUser
7551 </constant>.</para>
7553 <para>Default: <command>username level = 0</command></para>
7554 <para>Example: <command>username level = 5</command></para>
7555 </listitem>
7556 </varlistentry>
7560 <varlistentry>
7561 <term><anchor id="USERNAMEMAP">username map (G)</term>
7562 <listitem><para>This option allows you to specify a file containing
7563 a mapping of usernames from the clients to the server. This can be
7564 used for several purposes. The most common is to map usernames
7565 that users use on DOS or Windows machines to those that the UNIX
7566 box uses. The other is to map multiple users to a single username
7567 so that they can more easily share files.</para>
7569 <para>The map file is parsed line by line. Each line should
7570 contain a single UNIX username on the left then a '=' followed
7571 by a list of usernames on the right. The list of usernames on the
7572 right may contain names of the form @group in which case they
7573 will match any UNIX username in that group. The special client
7574 name '*' is a wildcard and matches any name. Each line of the
7575 map file may be up to 1023 characters long.</para>
7577 <para>The file is processed on each line by taking the
7578 supplied username and comparing it with each username on the right
7579 hand side of the '=' signs. If the supplied name matches any of
7580 the names on the right hand side then it is replaced with the name
7581 on the left. Processing then continues with the next line.</para>
7583 <para>If any line begins with a '#' or a ';' then it is
7584 ignored</para>
7586 <para>If any line begins with an '!' then the processing
7587 will stop after that line if a mapping was done by the line.
7588 Otherwise mapping continues with every line being processed.
7589 Using '!' is most useful when you have a wildcard mapping line
7590 later in the file.</para>
7592 <para>For example to map from the name <constant>admin</constant>
7593 or <constant>administrator</constant> to the UNIX name <constant>
7594 root</constant> you would use:</para>
7596 <para><command>root = admin administrator</command></para>
7598 <para>Or to map anyone in the UNIX group <constant>system</constant>
7599 to the UNIX name <constant>sys</constant> you would use:</para>
7601 <para><command>sys = @system</command></para>
7603 <para>You can have as many mappings as you like in a username
7604 map file.</para>
7607 <para>If your system supports the NIS NETGROUP option then
7608 the netgroup database is checked before the <filename>/etc/group
7609 </filename> database for matching groups.</para>
7611 <para>You can map Windows usernames that have spaces in them
7612 by using double quotes around the name. For example:</para>
7614 <para><command>tridge = "Andrew Tridgell"</command></para>
7616 <para>would map the windows username "Andrew Tridgell" to the
7617 unix username "tridge".</para>
7619 <para>The following example would map mary and fred to the
7620 unix user sys, and map the rest to guest. Note the use of the
7621 '!' to tell Samba to stop processing if it gets a match on
7622 that line.</para>
7624 <para><programlisting>
7625 !sys = mary fred
7626 guest = *
7627 </programlisting></para>
7629 <para>Note that the remapping is applied to all occurrences
7630 of usernames. Thus if you connect to \\server\fred and <constant>
7631 fred</constant> is remapped to <constant>mary</constant> then you
7632 will actually be connecting to \\server\mary and will need to
7633 supply a password suitable for <constant>mary</constant> not
7634 <constant>fred</constant>. The only exception to this is the
7635 username passed to the <link linkend="PASSWORDSERVER"><parameter>
7636 password server</parameter></link> (if you have one). The password
7637 server will receive whatever username the client supplies without
7638 modification.</para>
7640 <para>Also note that no reverse mapping is done. The main effect
7641 this has is with printing. Users who have been mapped may have
7642 trouble deleting print jobs as PrintManager under WfWg will think
7643 they don't own the print job.</para>
7645 <para>Default: <emphasis>no username map</emphasis></para>
7646 <para>Example: <command>username map = /usr/local/samba/lib/users.map
7647 </command></para>
7648 </listitem>
7649 </varlistentry>
7653 <varlistentry>
7654 <term><anchor id="UTMP">utmp (G)</term>
7655 <listitem><para>This boolean parameter is only available if
7656 Samba has been configured and compiled with the option <command>
7657 --with-utmp</command>. If set to <constant>true</constant> then Samba will attempt
7658 to add utmp or utmpx records (depending on the UNIX system) whenever a
7659 connection is made to a Samba server. Sites may use this to record the
7660 user connecting to a Samba share.</para>
7662 <para>See also the <link linkend="UTMPDIRECTORY"><parameter>
7663 utmp directory</parameter></link> parameter.</para>
7665 <para>Default: <command>utmp = no</command></para>
7666 </listitem>
7667 </varlistentry>
7671 <varlistentry>
7672 <term><anchor id="UTMPDIRECTORY">utmp directory(G)</term>
7673 <listitem><para>This parameter is only available if Samba has
7674 been configured and compiled with the option <command>
7675 --with-utmp</command>. It specifies a directory pathname that is
7676 used to store the utmp or utmpx files (depending on the UNIX system) that
7677 record user connections to a Samba server. See also the <link linkend="UTMP">
7678 <parameter>utmp</parameter></link> parameter. By default this is
7679 not set, meaning the system will use whatever utmp file the
7680 native system is set to use (usually
7681 <filename>/var/run/utmp</filename> on Linux).</para>
7683 <para>Default: <emphasis>no utmp directory</emphasis></para>
7684 </listitem>
7685 </varlistentry>
7689 <varlistentry>
7690 <term><anchor id="VALIDCHARS">valid chars (G)</term>
7691 <listitem><para>The option allows you to specify additional
7692 characters that should be considered valid by the server in
7693 filenames. This is particularly useful for national character
7694 sets, such as adding u-umlaut or a-ring.</para>
7696 <para>The option takes a list of characters in either integer
7697 or character form with spaces between them. If you give two
7698 characters with a colon between them then it will be taken as
7699 an lowercase:uppercase pair.</para>
7701 <para>If you have an editor capable of entering the characters
7702 into the config file then it is probably easiest to use this
7703 method. Otherwise you can specify the characters in octal,
7704 decimal or hexadecimal form using the usual C notation.</para>
7706 <para>For example to add the single character 'Z' to the charset
7707 (which is a pointless thing to do as it's already there) you could
7708 do one of the following</para>
7710 <para><programlisting>
7711 valid chars = Z
7712 valid chars = z:Z
7713 valid chars = 0132:0172
7714 </programlisting></para>
7716 <para>The last two examples above actually add two characters,
7717 and alter the uppercase and lowercase mappings appropriately.</para>
7719 <para>Note that you <emphasis>MUST</emphasis> specify this parameter
7720 after the <parameter>client code page</parameter> parameter if you
7721 have both set. If <parameter>client code page</parameter> is set after
7722 the <parameter>valid chars</parameter> parameter the <parameter>valid
7723 chars</parameter> settings will be overwritten.</para>
7725 <para>See also the <link linkend="CLIENTCODEPAGE"><parameter>client
7726 code page</parameter></link> parameter.</para>
7728 <para>Default: <emphasis>Samba defaults to using a reasonable set
7729 of valid characters for English systems</emphasis></para>
7731 <para>Example: <command>valid chars = 0345:0305 0366:0326 0344:0304
7732 </command></para>
7734 <para>The above example allows filenames to have the Swedish
7735 characters in them.</para>
7737 <para><emphasis>NOTE:</emphasis> It is actually quite difficult to
7738 correctly produce a <parameter>valid chars</parameter> line for
7739 a particular system. To automate the process <ulink
7740 url="mailto:tino@augsburg.net">tino@augsburg.net</ulink> has written
7741 a package called <command>validchars</command> which will automatically
7742 produce a complete <parameter>valid chars</parameter> line for
7743 a given client system. Look in the <filename>examples/validchars/
7744 </filename> subdirectory of your Samba source code distribution
7745 for this package.</para>
7746 </listitem>
7747 </varlistentry>
7751 <varlistentry>
7752 <term><anchor id="VALIDUSERS">valid users (S)</term>
7753 <listitem><para>This is a list of users that should be allowed
7754 to login to this service. Names starting with '@', '+' and '&'
7755 are interpreted using the same rules as described in the
7756 <parameter>invalid users</parameter> parameter.</para>
7758 <para>If this is empty (the default) then any user can login.
7759 If a username is in both this list and the <parameter>invalid
7760 users</parameter> list then access is denied for that user.</para>
7762 <para>The current servicename is substituted for <parameter>%S
7763 </parameter>. This is useful in the [homes] section.</para>
7765 <para>See also <link linkend="INVALIDUSERS"><parameter>invalid users
7766 </parameter></link></para>
7768 <para>Default: <emphasis>No valid users list (anyone can login)
7769 </emphasis></para>
7771 <para>Example: <command>valid users = greg, @pcusers</command></para>
7772 </listitem>
7773 </varlistentry>
7778 <varlistentry>
7779 <term><anchor id="VETOFILES">veto files(S)</term>
7780 <listitem><para>This is a list of files and directories that
7781 are neither visible nor accessible. Each entry in the list must
7782 be separated by a '/', which allows spaces to be included
7783 in the entry. '*' and '?' can be used to specify multiple files
7784 or directories as in DOS wildcards.</para>
7786 <para>Each entry must be a unix path, not a DOS path and
7787 must <emphasis>not</emphasis> include the unix directory
7788 separator '/'.</para>
7790 <para>Note that the <parameter>case sensitive</parameter> option
7791 is applicable in vetoing files.</para>
7793 <para>One feature of the veto files parameter that it
7794 is important to be aware of is Samba's behaviour when
7795 trying to delete a directory. If a directory that is
7796 to be deleted contains nothing but veto files this
7797 deletion will <emphasis>fail</emphasis> unless you also set
7798 the <parameter>delete veto files</parameter> parameter to
7799 <parameter>yes</parameter>.</para>
7801 <para>Setting this parameter will affect the performance
7802 of Samba, as it will be forced to check all files and directories
7803 for a match as they are scanned.</para>
7805 <para>See also <link linkend="HIDEFILES"><parameter>hide files
7806 </parameter></link> and <link linkend="CASESENSITIVE"><parameter>
7807 case sensitive</parameter></link>.</para>
7809 <para>Default: <emphasis>No files or directories are vetoed.
7810 </emphasis></para>
7812 <para>Examples:<programlisting>
7813 ; Veto any files containing the word Security,
7814 ; any ending in .tmp, and any directory containing the
7815 ; word root.
7816 veto files = /*Security*/*.tmp/*root*/
7818 ; Veto the Apple specific files that a NetAtalk server
7819 ; creates.
7820 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
7821 </programlisting></para>
7822 </listitem>
7823 </varlistentry>
7826 <varlistentry>
7827 <term><anchor id="VETOOPLOCKFILES">veto oplock files (S)</term>
7828 <listitem><para>This parameter is only valid when the <link
7829 linkend="OPLOCKS"><parameter>oplocks</parameter></link>
7830 parameter is turned on for a share. It allows the Samba administrator
7831 to selectively turn off the granting of oplocks on selected files that
7832 match a wildcarded list, similar to the wildcarded list used in the
7833 <link linkend="VETOFILES"><parameter>veto files</parameter></link>
7834 parameter.</para>
7836 <para>Default: <emphasis>No files are vetoed for oplock
7837 grants</emphasis></para>
7839 <para>You might want to do this on files that you know will
7840 be heavily contended for by clients. A good example of this
7841 is in the NetBench SMB benchmark program, which causes heavy
7842 client contention for files ending in <filename>.SEM</filename>.
7843 To cause Samba not to grant oplocks on these files you would use
7844 the line (either in the [global] section or in the section for
7845 the particular NetBench share :</para>
7847 <para>Example: <command>veto oplock files = /*.SEM/
7848 </command></para>
7849 </listitem>
7850 </varlistentry>
7854 <varlistentry>
7855 <term><anchor id="VFSOBJECT">vfs object (S)</term>
7856 <listitem><para>This parameter specifies a shared object file that
7857 is used for Samba VFS I/O operations. By default, normal
7858 disk I/O operations are used but these can be overloaded
7859 with a VFS object. The Samba VFS layer is new to Samba 2.2 and
7860 must be enabled at compile time with --with-vfs.</para>
7862 <para>Default : <emphasis>no value</emphasis></para>
7863 </listitem>
7864 </varlistentry>
7869 <varlistentry>
7870 <term><anchor id="VFSOPTIONS">vfs options (S)</term>
7871 <listitem><para>This parameter allows parameters to be passed
7872 to the vfs layer at initialization time. The Samba VFS layer
7873 is new to Samba 2.2 and must be enabled at compile time
7874 with --with-vfs. See also <link linkend="VFSOBJECT"><parameter>
7875 vfs object</parameter></link>.</para>
7877 <para>Default : <emphasis>no value</emphasis></para>
7878 </listitem>
7879 </varlistentry>
7883 <varlistentry>
7884 <term><anchor id="VOLUME">volume (S)</term>
7885 <listitem><para> This allows you to override the volume label
7886 returned for a share. Useful for CDROMs with installation programs
7887 that insist on a particular volume label.</para>
7889 <para>Default: <emphasis>the name of the share</emphasis></para>
7890 </listitem>
7891 </varlistentry>
7895 <varlistentry>
7896 <term><anchor id="WIDELINKS">wide links (S)</term>
7897 <listitem><para>This parameter controls whether or not links
7898 in the UNIX file system may be followed by the server. Links
7899 that point to areas within the directory tree exported by the
7900 server are always allowed; this parameter controls access only
7901 to areas that are outside the directory tree being exported.</para>
7903 <para>Note that setting this parameter can have a negative
7904 effect on your server performance due to the extra system calls
7905 that Samba has to do in order to perform the link checks.</para>
7907 <para>Default: <command>wide links = yes</command></para>
7908 </listitem>
7909 </varlistentry>
7914 <varlistentry>
7915 <term><anchor id="WINBINDCACHETIME">winbind cache time</term>
7916 <listitem><para>This parameter specifies the number of seconds the
7917 <ulink url="winbindd.8.html">winbindd(8)</ulink> daemon will cache
7918 user and group information before querying a Windows NT server
7919 again.</para>
7921 <para>Default: <command>winbind cache type = 15</command></para>
7922 </listitem>
7923 </varlistentry>
7928 <varlistentry>
7929 <term><anchor id="WINBINDGID">winbind gid</term>
7930 <listitem><para>The winbind gid parameter specifies the range of group
7931 ids that are allocated by the <ulink url="winbindd.8.html">
7932 winbindd(8)</ulink> daemon. This range of group ids should have no
7933 existing local or NIS groups within it as strange conflicts can
7934 occur otherwise.</para>
7936 <para>Default: <command>winbind gid = &lt;empty string&gt;
7937 </command></para>
7939 <para>Example: <command>winbind gid = 10000-20000</command></para>
7940 </listitem>
7941 </varlistentry>
7944 <varlistentry>
7945 <term><anchor id="WINBINDSEPARATOR">winbind separator</term>
7946 <listitem><para>This parameter allows an admin to define the character
7947 used when listing a username of the form of <replaceable>DOMAIN
7948 </replaceable>\<replaceable>user</replaceable>. This parameter
7949 is only applicable when using the <filename>pam_winbind.so</filename>
7950 and <filename>nss_winbind.so</filename> modules for UNIX services.
7951 </para>
7953 <para>Example: <command>winbind separator = \</command></para>
7954 <para>Example: <command>winbind separator = +</command></para>
7955 </listitem>
7956 </varlistentry>
7961 <varlistentry>
7962 <term><anchor id="WINBINDUID">winbind uid</term>
7963 <listitem><para>The winbind gid parameter specifies the range of group
7964 ids that are allocated by the <ulink url="winbindd.8.html">
7965 winbindd(8)</ulink> daemon. This range of ids should have no
7966 existing local or NIS users within it as strange conflicts can
7967 occur otherwise.</para>
7969 <para>Default: <command>winbind uid = &lt;empty string&gt;
7970 </command></para>
7972 <para>Example: <command>winbind uid = 10000-20000</command></para>
7973 </listitem>
7974 </varlistentry>
7980 <varlistentry>
7981 <term><anchor id="WINSHOOK">wins hook (G)</term>
7982 <listitem><para>When Samba is running as a WINS server this
7983 allows you to call an external program for all changes to the
7984 WINS database. The primary use for this option is to allow the
7985 dynamic update of external name resolution databases such as
7986 dynamic DNS.</para>
7988 <para>The wins hook parameter specifies the name of a script
7989 or executable that will be called as follows:</para>
7991 <para><command>wins_hook operation name nametype ttl IP_list
7992 </command></para>
7994 <itemizedlist>
7995 <listitem><para>The first argument is the operation and is one
7996 of "add", "delete", or "refresh". In most cases the operation can
7997 be ignored as the rest of the parameters provide sufficient
7998 information. Note that "refresh" may sometimes be called when the
7999 name has not previously been added, in that case it should be treated
8000 as an add.</para></listitem>
8002 <listitem><para>The second argument is the NetBIOS name. If the
8003 name is not a legal name then the wins hook is not called.
8004 Legal names contain only letters, digits, hyphens, underscores
8005 and periods.</para></listitem>
8007 <listitem><para>The third argument is the NetBIOS name
8008 type as a 2 digit hexadecimal number. </para></listitem>
8010 <listitem><para>The fourth argument is the TTL (time to live)
8011 for the name in seconds.</para></listitem>
8013 <listitem><para>The fifth and subsequent arguments are the IP
8014 addresses currently registered for that name. If this list is
8015 empty then the name should be deleted.</para></listitem>
8016 </itemizedlist>
8018 <para>An example script that calls the BIND dynamic DNS update
8019 program <command>nsupdate</command> is provided in the examples
8020 directory of the Samba source code. </para>
8021 </listitem>
8022 </varlistentry>
8028 <varlistentry>
8029 <term><anchor id="WINSPROXY">wins proxy (G)</term>
8030 <listitem><para>This is a boolean that controls if <ulink
8031 url="nmbd.8.html">nmbd(8)</ulink> will respond to broadcast name
8032 queries on behalf of other hosts. You may need to set this
8033 to <constant>yes</constant> for some older clients.</para>
8035 <para>Default: <command>wins proxy = no</command></para>
8036 </listitem>
8037 </varlistentry>
8042 <varlistentry>
8043 <term><anchor id="WINSSERVER">wins server (G)</term>
8044 <listitem><para>This specifies the IP address (or DNS name: IP
8045 address for preference) of the WINS server that <ulink url="nmbd.8.html">
8046 nmbd(8)</ulink> should register with. If you have a WINS server on
8047 your network then you should set this to the WINS server's IP.</para>
8049 <para>You should point this at your WINS server if you have a
8050 multi-subnetted network.</para>
8052 <para><emphasis>NOTE</emphasis>. You need to set up Samba to point
8053 to a WINS server if you have multiple subnets and wish cross-subnet
8054 browsing to work correctly.</para>
8056 <para>See the documentation file <filename>BROWSING.txt</filename>
8057 in the docs/ directory of your Samba source distribution.</para>
8059 <para>Default: <emphasis>not enabled</emphasis></para>
8060 <para>Example: <command>wins server = 192.9.200.1</command></para>
8061 </listitem>
8062 </varlistentry>
8066 <varlistentry>
8067 <term><anchor id="WINSSUPPORT">wins support (G)</term>
8068 <listitem><para>This boolean controls if the <ulink url="nmbd.8.html">
8069 nmbd(8)</ulink> process in Samba will act as a WINS server. You should
8070 not set this to <constant>true</constant> unless you have a multi-subnetted network and
8071 you wish a particular <command>nmbd</command> to be your WINS server.
8072 Note that you should <emphasis>NEVER</emphasis> set this to <constant>true</constant>
8073 on more than one machine in your network.</para>
8075 <para>Default: <command>wins support = no</command></para>
8076 </listitem>
8077 </varlistentry>
8081 <varlistentry>
8082 <term><anchor id="WORKGROUP">workgroup (G)</term>
8083 <listitem><para>This controls what workgroup your server will
8084 appear to be in when queried by clients. Note that this parameter
8085 also controls the Domain name used with the <link
8086 linkend="SECURITYEQUALSDOMAIN"><command>security = domain</command></link>
8087 setting.</para>
8089 <para>Default: <emphasis>set at compile time to WORKGROUP</emphasis></para>
8090 <para>Example: <command>workgroup = MYGROUP</command></para>
8091 </listitem>
8092 </varlistentry>
8097 <varlistentry>
8098 <term><anchor id="WRITABLE">writable (S)</term>
8099 <listitem><para>Synonym for <link linkend="WRITEABLE"><parameter>
8100 writeable</parameter></link> for people who can't spell :-).</para>
8101 </listitem>
8102 </varlistentry>
8106 <varlistentry>
8107 <term><anchor id="WRITECACHESIZE">write cache size (S)</term>
8108 <listitem><para>If this integer parameter is set to non-zero value,
8109 Samba will create an in-memory cache for each oplocked file
8110 (it does <emphasis>not</emphasis> do this for
8111 non-oplocked files). All writes that the client does not request
8112 to be flushed directly to disk will be stored in this cache if possible.
8113 The cache is flushed onto disk when a write comes in whose offset
8114 would not fit into the cache or when the file is closed by the client.
8115 Reads for the file are also served from this cache if the data is stored
8116 within it.</para>
8118 <para>This cache allows Samba to batch client writes into a more
8119 efficient write size for RAID disks (i.e. writes may be tuned to
8120 be the RAID stripe size) and can improve performance on systems
8121 where the disk subsystem is a bottleneck but there is free
8122 memory for userspace programs.</para>
8124 <para>The integer parameter specifies the size of this cache
8125 (per oplocked file) in bytes.</para>
8127 <para>Default: <command>write cache size = 0</command></para>
8128 <para>Example: <command>write cache size = 262144</command></para>
8130 <para>for a 256k cache size per file.</para>
8131 </listitem>
8132 </varlistentry>
8138 <varlistentry>
8139 <term><anchor id="WRITELIST">write list (S)</term>
8140 <listitem><para>This is a list of users that are given read-write
8141 access to a service. If the connecting user is in this list then
8142 they will be given write access, no matter what the <link
8143 linkend="WRITEABLE"><parameter>writeable</parameter></link>
8144 option is set to. The list can include group names using the
8145 @group syntax.</para>
8147 <para>Note that if a user is in both the read list and the
8148 write list then they will be given write access.</para>
8150 <para>See also the <link linkend="READLIST"><parameter>read list
8151 </parameter></link> option.</para>
8153 <para>Default: <command>write list = &lt;empty string&gt;
8154 </command></para>
8156 <para>Example: <command>write list = admin, root, @staff
8157 </command></para>
8158 </listitem>
8159 </varlistentry>
8165 <varlistentry>
8166 <term><anchor id="WRITEOK">write ok (S)</term>
8167 <listitem><para>Synonym for <link linkend="WRITEABLE"><parameter>
8168 writeable</parameter></link>.</para>
8169 </listitem>
8170 </varlistentry>
8174 <varlistentry>
8175 <term><anchor id="WRITERAW">write raw (G)</term>
8176 <listitem><para>This parameter controls whether or not the server
8177 will support raw write SMB's when transferring data from clients.
8178 You should never need to change this parameter.</para>
8180 <para>Default: <command>write raw = yes</command></para>
8181 </listitem>
8182 </varlistentry>
8186 <varlistentry>
8187 <term><anchor id="WRITEABLE">writeable (S)</term>
8188 <listitem><para>An inverted synonym is <link linkend="READONLY">
8189 <parameter>read only</parameter></link>.</para>
8191 <para>If this parameter is <constant>no</constant>, then users
8192 of a service may not create or modify files in the service's
8193 directory.</para>
8195 <para>Note that a printable service (<command>printable = yes</command>)
8196 will <emphasis>ALWAYS</emphasis> allow writing to the directory
8197 (user privileges permitting), but only via spooling operations.</para>
8199 <para>Default: <command>writeable = no</command></para>
8200 </listitem>
8201 </varlistentry>
8204 </variablelist>
8206 </refsect1>
8208 <refsect1>
8209 <title>WARNINGS</title>
8211 <para>Although the configuration file permits service names
8212 to contain spaces, your client software may not. Spaces will
8213 be ignored in comparisons anyway, so it shouldn't be a
8214 problem - but be aware of the possibility.</para>
8216 <para>On a similar note, many clients - especially DOS clients -
8217 limit service names to eight characters. <ulink url="smbd.8.html">smbd(8)
8218 </ulink> has no such limitation, but attempts to connect from such
8219 clients will fail if they truncate the service names. For this reason
8220 you should probably keep your service names down to eight characters
8221 in length.</para>
8223 <para>Use of the [homes] and [printers] special sections make life
8224 for an administrator easy, but the various combinations of default
8225 attributes can be tricky. Take extreme care when designing these
8226 sections. In particular, ensure that the permissions on spool
8227 directories are correct.</para>
8228 </refsect1>
8230 <refsect1>
8231 <title>VERSION</title>
8233 <para>This man page is correct for version 2.2 of
8234 the Samba suite.</para>
8235 </refsect1>
8237 <refsect1>
8238 <title>SEE ALSO</title>
8239 <para><ulink url="samba.7.html">samba(7)</ulink>,
8240 <ulink url="smbpasswd.8.html"><command>smbpasswd(8)</command></ulink>,
8241 <ulink url="swat.8.html"><command>swat(8)</command></ulink>,
8242 <ulink url="smbd.8.html"><command>smbd(8)</command></ulink>,
8243 <ulink url="nmbd.8.html"><command>nmbd(8)</command></ulink>,
8244 <ulink url="smbclient.1.html"><command>smbclient(1)</command></ulink>,
8245 <ulink url="nmblookup.1.html"><command>nmblookup(1)</command></ulink>,
8246 <ulink url="testparm.1.html"><command>testparm(1)</command></ulink>,
8247 <ulink url="testprns.1.html"><command>testprns(1)</command></ulink>
8248 </para>
8249 </refsect1>
8251 <refsect1>
8252 <title>AUTHOR</title>
8254 <para>The original Samba software and related utilities
8255 were created by Andrew Tridgell. Samba is now developed
8256 by the Samba Team as an Open Source project similar
8257 to the way the Linux kernel is developed.</para>
8259 <para>The original Samba man pages were written by Karl Auer.
8260 The man page sources were converted to YODL format (another
8261 excellent piece of Open Source software, available at
8262 <ulink url="ftp://ftp.icce.rug.nl/pub/unix/">
8263 ftp://ftp.icce.rug.nl/pub/unix/</ulink>) and updated for the Samba 2.0
8264 release by Jeremy Allison. The conversion to DocBook for
8265 Samba 2.2 was done by Gerald Carter</para>
8266 </refsect1>
8268 </refentry>