added full netbench simulation in smbtorture. It now reads a 4MB load
[Samba/gbeck.git] / docs / yodldocs / smb.conf.5.yo
blob5cd458d419c07623af7daf3c4cdfdd1261385b0e
1 mailto(samba-bugs@samba.org) 
3 manpage(smb.conf htmlcommand((5)))(5)(23 Oct 1998)(Samba)(SAMBA)
5 label(NAME)
6 manpagename(smb.conf)(The configuration file for the Samba suite)
8 label(SYNOPSIS)
9 manpagesynopsis() 
11 bf(smb.conf) The bf(smb.conf) file is a configuration file for the
12 Samba suite. bf(smb.conf) contains runtime configuration information
13 for the Samba programs. The bf(smb.conf) file is designed to be
14 configured and administered by the url(bf(swat (8)))(swat.8.html)
15 program. The complete description of the file format and possible
16 parameters held within are here for reference purposes.
18 label(FILEFORMAT)
19 manpagesection(FILE FORMAT)
21 The file consists of sections and parameters. A section begins with
22 the name of the section in square brackets and continues until the
23 next section begins. Sections contain parameters of the form 
25 tt('name = value')
27 The file is line-based - that is, each newline-terminated line
28 represents either a comment, a section name or a parameter.
30 Section and parameter names are not case sensitive.
32 Only the first equals sign in a parameter is significant. Whitespace
33 before or after the first equals sign is discarded. Leading, trailing
34 and internal whitespace in section and parameter names is
35 irrelevant. Leading and trailing whitespace in a parameter value is
36 discarded. Internal whitespace within a parameter value is retained
37 verbatim.
39 Any line beginning with a semicolon (';') or a hash ('#') character is
40 ignored, as are lines containing only whitespace.
42 Any line ending in a tt('\') is "continued" on the next line in the
43 customary UNIX fashion.
45 The values following the equals sign in parameters are all either a
46 string (no quotes needed) or a boolean, which may be given as yes/no,
47 0/1 or true/false. Case is not significant in boolean values, but is
48 preserved in string values. Some items such as create modes are
49 numeric.
51 label(SECTIONDESCRIPTIONS)
52 manpagesection(SECTION DESCRIPTIONS)
54 Each section in the configuration file (except for the
55 link(bf([global]))(global) section) describes a shared resource (known
56 as a em("share")). The section name is the name of the shared resource
57 and the parameters within the section define the shares attributes.
59 There are three special sections, link(bf([global]))(global),
60 link(bf([homes]))(homes) and link(bf([printers]))(printers), which are
61 described under link(bf('special sections'))(SPECIALSECTIONS). The
62 following notes apply to ordinary section descriptions.
64 A share consists of a directory to which access is being given plus
65 a description of the access rights which are granted to the user of
66 the service. Some housekeeping options are also specifiable.
68 Sections are either filespace services (used by the client as an
69 extension of their native file systems) or printable services (used by
70 the client to access print services on the host running the server).
72 Sections may be designated link(bf(guest))(guestok) services, in which
73 case no password is required to access them. A specified UNIX
74 link(bf(guest account))(guestaccount) is used to define access
75 privileges in this case.
77 Sections other than guest services will require a password to access
78 them. The client provides the username. As older clients only provide
79 passwords and not usernames, you may specify a list of usernames to
80 check against the password using the link(bf("user="))(user) option in
81 the share definition. For modern clients such as Windows 95/98 and
82 Windows NT, this should not be necessary.
84 Note that the access rights granted by the server are masked by the
85 access rights granted to the specified or guest UNIX user by the host
86 system. The server does not grant more access than the host system
87 grants.
89 The following sample section defines a file space share. The user has
90 write access to the path tt(/home/bar). The share is accessed via
91 the share name "foo":
93 verb(
95         [foo]
96                 path = /home/bar
97                 writeable = true
101 The following sample section defines a printable share. The share
102 is readonly, but printable. That is, the only write access permitted
103 is via calls to open, write to and close a spool file. The
104 link(bf('guest ok'))(guestok) parameter means access will be permitted
105 as the default guest user (specified elsewhere):
107 verb(
108         [aprinter]
109                 path = /usr/spool/public
110                 read only = true
111                 printable = true
112                 guest ok = true
115 label(SPECIALSECTIONS)
116 manpagesection(SPECIAL SECTIONS)
118 startdit()
120 label(global)
121 dit(bf(The [global] section))
123 Parameters in this section apply to the server as a whole, or are
124 defaults for sections which do not specifically define certain
125 items. See the notes under link(bf('PARAMETERS'))(PARAMETERS) for more
126 information.
128 label(homes)
129 dit(bf(The [homes] section))
131 If a section called tt('homes') is included in the configuration file,
132 services connecting clients to their home directories can be created
133 on the fly by the server.
135 When the connection request is made, the existing sections are
136 scanned. If a match is found, it is used. If no match is found, the
137 requested section name is treated as a user name and looked up in the
138 local password file. If the name exists and the correct password has
139 been given, a share is created by cloning the [homes] section.
141 Some modifications are then made to the newly created share:
143 startit()
145 it() The share name is changed from tt('homes') to the located
146 username
148 it() If no path was given, the path is set to the user's home
149 directory.
151 endit()
153 If you decide to use a link(bf(path=))(path) line in your [homes]
154 section then you may find it useful to use the link(bf(%S))(percentS)
155 macro. For example :
157 tt(path=/data/pchome/%S)
159 would be useful if you have different home directories for your PCs
160 than for UNIX access.
162 This is a fast and simple way to give a large number of clients access
163 to their home directories with a minimum of fuss.
165 A similar process occurs if the requested section name is tt("homes"),
166 except that the share name is not changed to that of the requesting
167 user. This method of using the [homes] section works well if different
168 users share a client PC.
170 The [homes] section can specify all the parameters a normal service
171 section can specify, though some make more sense than others. The
172 following is a typical and suitable [homes] section:
174 verb(
175         [homes]
176                 writeable = yes
179 An important point is that if guest access is specified in the [homes]
180 section, all home directories will be visible to all clients
181 bf(without a password). In the very unlikely event that this is
182 actually desirable, it would be wise to also specify link(bf(read only
183 access))(readonly).
185 Note that the link(bf(browseable))(browseable) flag for auto home
186 directories will be inherited from the global browseable flag, not the
187 [homes] browseable flag. This is useful as it means setting
188 browseable=no in the [homes] section will hide the [homes] share but
189 make any auto home directories visible.
191 label(printers)
192 dit(bf(The [printers] section))
194 This section works like link(bf([homes]))(homes), but for printers.
196 If a [printers] section occurs in the configuration file, users are
197 able to connect to any printer specified in the local host's printcap
198 file.
200 When a connection request is made, the existing sections are
201 scanned. If a match is found, it is used. If no match is found, but a
202 link(bf([homes]))(homes) section exists, it is used as described
203 above. Otherwise, the requested section name is treated as a printer
204 name and the appropriate printcap file is scanned to see if the
205 requested section name is a valid printer share name. If a match is
206 found, a new printer share is created by cloning the [printers]
207 section.
209 A few modifications are then made to the newly created share:
211 startit()
213 it() The share name is set to the located printer name
215 it() If no printer name was given, the printer name is set to the
216 located printer name
218 it() If the share does not permit guest access and no username was
219 given, the username is set to the located printer name.
221 endit()
223 Note that the [printers] service MUST be printable - if you specify
224 otherwise, the server will refuse to load the configuration file.
226 Typically the path specified would be that of a world-writeable spool
227 directory with the sticky bit set on it. A typical [printers] entry
228 would look like this:
230 verb(
231         [printers]
232                 path = /usr/spool/public
233                 writeable = no
234                 guest ok = yes
235                 printable = yes 
238 All aliases given for a printer in the printcap file are legitimate
239 printer names as far as the server is concerned. If your printing
240 subsystem doesn't work like that, you will have to set up a
241 pseudo-printcap. This is a file consisting of one or more lines like
242 this:
244 verb(        alias|alias|alias|alias...    )
246 Each alias should be an acceptable printer name for your printing
247 subsystem. In the link(bf([global]))(global) section, specify the new
248 file as your printcap.  The server will then only recognize names
249 found in your pseudo-printcap, which of course can contain whatever
250 aliases you like. The same technique could be used simply to limit
251 access to a subset of your local printers.
253 An alias, by the way, is defined as any component of the first entry
254 of a printcap record. Records are separated by newlines, components
255 (if there are more than one) are separated by vertical bar symbols
256 ("|").
258 NOTE: On SYSV systems which use lpstat to determine what printers are
259 defined on the system you may be able to use link(bf("printcap name =
260 lpstat"))(printcapname) to automatically obtain a list of
261 printers. See the link(bf("printcap name"))(printcapname) option for
262 more details.
264 enddit()
266 label(PARAMETERS)
267 manpagesection(PARAMETERS)
269 Parameters define the specific attributes of sections.
271 Some parameters are specific to the link(bf([global]))(global) section
272 (e.g., link(bf(security))(security)).  Some parameters are usable in
273 all sections (e.g., link(bf(create mode))(createmode)). All others are
274 permissible only in normal sections. For the purposes of the following
275 descriptions the link(bf([homes]))(homes) and
276 link(bf([printers]))(printers) sections will be considered normal.
277 The letter tt('G') in parentheses indicates that a parameter is
278 specific to the link(bf([global]))(global) section. The letter tt('S')
279 indicates that a parameter can be specified in a service specific
280 section. Note that all tt('S') parameters can also be specified in the
281 link(bf([global]))(global) section - in which case they will define
282 the default behavior for all services.
284 Parameters are arranged here in alphabetical order - this may not
285 create best bedfellows, but at least you can find them! Where there
286 are synonyms, the preferred synonym is described, others refer to the
287 preferred synonym.
289 label(VARIABLESUBSTITUTIONS)
290 manpagesection(VARIABLE SUBSTITUTIONS)
292 Many of the strings that are settable in the config file can take
293 substitutions. For example the option link(bf(tt("path =
294 /tmp/%u")))(path) would be interpreted as tt("path = /tmp/john") if
295 the user connected with the username john.
297 These substitutions are mostly noted in the descriptions below, but
298 there are some general substitutions which apply whenever they might
299 be relevant. These are:
301 startit()
303 label(percentS) 
304 it() bf(%S) = the name of the current service, if any.
306 label(percentP)
307 it() bf(%P) = the root directory of the current service, if any.
309 label(percentu)
310 it() bf(%u) = user name of the current service, if any.
312 label(percentg)
313 it() bf(%g) = primary group name of link(bf(%u))(percentu).
315 label(percentU) 
316 it() bf(%U) = session user name (the user name that
317 the client wanted, not necessarily the same as the one they got).
319 label(percentG)
320 it() bf(%G) = primary group name of link(bf(%U))(percentU).
322 label(percentH)
323 it() bf(%H) = the home directory of the user given by link(bf(%u))(percentu).
325 label(percentv)
326 it() bf(%v) = the Samba version.
328 label(percenth)
329 it() bf(%h) = the internet hostname that Samba is running on.
331 label(percentm)
332 it() bf(%m) = the NetBIOS name of the client machine (very useful).
334 label(percentL)
335 it() bf(%L) = the NetBIOS name of the server. This allows you to change your
336 config based on what the client calls you. Your server can have a "dual
337 personality".
339 label(percentM) 
340 it() bf(%M) = the internet name of the client machine.
342 label(percentN)
343 it() bf(%N) = the name of your NIS home directory server.  This is
344 obtained from your NIS auto.map entry.  If you have not compiled Samba
345 with the bf(--with-automount) option then this value will be the same
346 as link(bf(%L))(percentL).
348 label(percentp)
349 it() bf(%p) = the path of the service's home directory, obtained from your NIS
350 auto.map entry. The NIS auto.map entry is split up as "%N:%p".
352 label(percentR) 
353 it() bf(%R) = the selected protocol level after protocol
354 negotiation. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1.
356 label(percentd)
357 it() bf(%d) = The process id of the current server process.
359 label(percenta) 
360 it() bf(%a) = the architecture of the remote
361 machine. Only some are recognized, and those may not be 100%
362 reliable. It currently recognizes Samba, WfWg, WinNT and
363 Win95. Anything else will be known as "UNKNOWN". If it gets it wrong
364 then sending a level 3 log to email(samba-bugs@samba.org)
365 should allow it to be fixed.
367 label(percentI)
368 it() bf(%I) = The IP address of the client machine.
370 label(percentT)
371 it() bf(%T) = the current date and time.
373 endit()
375 There are some quite creative things that can be done with these
376 substitutions and other smb.conf options.
378 label(NAMEMANGLING)
379 manpagesection(NAME MANGLING)
381 Samba supports em("name mangling") so that DOS and Windows clients can
382 use files that don't conform to the 8.3 format. It can also be set to
383 adjust the case of 8.3 format filenames.
385 There are several options that control the way mangling is performed,
386 and they are grouped here rather than listed separately. For the
387 defaults look at the output of the testparm program.
389 All of these options can be set separately for each service (or
390 globally, of course).
392 The options are:
394 label(manglecaseoption)
395 bf("mangle case = yes/no") controls if names that have characters that
396 aren't of the "default" case are mangled. For example, if this is yes
397 then a name like tt("Mail") would be mangled. Default em(no).
399 label(casesensitiveoption)
400 bf("case sensitive = yes/no") controls whether filenames are case
401 sensitive. If they aren't then Samba must do a filename search and
402 match on passed names. Default em(no).
404 label(defaultcaseoption)
405 bf("default case = upper/lower") controls what the default case is for new
406 filenames. Default em(lower).
408 label(preservecaseoption)
409 bf("preserve case = yes/no") controls if new files are created with the
410 case that the client passes, or if they are forced to be the tt("default")
411 case. Default em(Yes).
413 label(shortpreservecaseoption)
415 bf("short preserve case = yes/no") controls if new files which conform
416 to 8.3 syntax, that is all in upper case and of suitable length, are
417 created upper case, or if they are forced to be the tt("default")
418 case. This option can be use with link(bf("preserve case =
419 yes"))(preservecaseoption) to permit long filenames to retain their
420 case, while short names are lowered. Default em(Yes).
422 By default, Samba 2.0 has the same semantics as a Windows NT
423 server, in that it is case insensitive but case preserving.
425 label(NOTEABOUTUSERNAMEPASSWORDVALIDATION)
426 manpagesection(NOTE ABOUT USERNAME/PASSWORD VALIDATION)
428 There are a number of ways in which a user can connect to a
429 service. The server follows the following steps in determining if it
430 will allow a connection to a specified service. If all the steps fail
431 then the connection request is rejected. If one of the steps pass then
432 the following steps are not checked.
434 If the service is marked link(bf("guest only = yes"))(guestonly) then
435 steps 1 to 5 are skipped.
437 starteit()
439 eit() Step 1: If the client has passed a username/password pair and
440 that username/password pair is validated by the UNIX system's password
441 programs then the connection is made as that username. Note that this
442 includes the tt(\\server\service%username) method of passing a
443 username.
445 eit() Step 2: If the client has previously registered a username with
446 the system and now supplies a correct password for that username then
447 the connection is allowed.
449 eit() Step 3: The client's netbios name and any previously used user
450 names are checked against the supplied password, if they match then
451 the connection is allowed as the corresponding user.
453 eit() Step 4: If the client has previously validated a
454 username/password pair with the server and the client has passed the
455 validation token then that username is used. This step is skipped if
456 link(bf("revalidate = yes"))(revalidate) for this service.
458 eit() Step 5: If a link(bf("user = "))(user) field is given in the
459 smb.conf file for the service and the client has supplied a password,
460 and that password matches (according to the UNIX system's password
461 checking) with one of the usernames from the link(bf(user=))(user)
462 field then the connection is made as the username in the
463 link(bf("user="))(user) line. If one of the username in the
464 link(bf(user=))(user) list begins with a tt('@') then that name
465 expands to a list of names in the group of the same name.
467 eit() Step 6: If the service is a guest service then a connection is
468 made as the username given in the link(bf("guest account
469 ="))(guestaccount) for the service, irrespective of the supplied
470 password.
472 endeit()
474 label(COMPLETELISTOFGLOBALPARAMETERS)
475 manpagesection(COMPLETE LIST OF GLOBAL PARAMETERS)
477 Here is a list of all global parameters. See the section of each
478 parameter for details.  Note that some are synonyms.
480 startit()
482 it() link(bf(add user script))(adduserscript)
484 it() link(bf(allow trusted domains))(allowtrusteddomains)
486 it() link(bf(announce as))(announceas)
488 it() link(bf(announce version))(announceversion)
490 it() link(bf(auto services))(autoservices)
492 it() link(bf(bind interfaces only))(bindinterfacesonly)
494 it() link(bf(browse list))(browselist)
496 it() link(bf(change notify timeout))(changenotifytimeout)
498 it() link(bf(character set))(characterset)
500 it() link(bf(client code page))(clientcodepage)
502 it() link(bf(coding system))(codingsystem)
504 it() link(bf(config file))(configfile)
506 it() link(bf(deadtime))(deadtime)
508 it() link(bf(debug timestamp))(debugtimestamp)
510 it() link(bf(debuglevel))(debuglevel)
512 it() link(bf(default))(default)
514 it() link(bf(default service))(defaultservice)
516 it() link(bf(delete user script))(deleteuserscript)
518 it() link(bf(dfree command))(dfreecommand)
520 it() link(bf(dns proxy))(dnsproxy)
522 it() link(bf(domain admin group))(domainadmingroup)
524 it() link(bf(domain admin users))(domainadminusers)
526 it() link(bf(domain controller))(domaincontroller)
528 it() link(bf(domain groups))(domaingroups)
530 it() link(bf(domain guest group))(domainguestgroup)
532 it() link(bf(domain guest users))(domainguestusers)
534 it() link(bf(domain logons))(domainlogons)
536 it() link(bf(domain master))(domainmaster)
538 it() link(bf(encrypt passwords))(encryptpasswords)
540 it() link(bf(getwd cache))(getwdcache)
542 it() link(bf(homedir map))(homedirmap)
544 it() link(bf(hosts equiv))(hostsequiv)
546 it() link(bf(interfaces))(interfaces)
548 it() link(bf(keepalive))(keepalive)
550 it() link(bf(kernel oplocks))(kerneloplocks)
552 it() link(bf(ldap filter))(ldapfilter)
554 it() link(bf(ldap port))(ldapport)
556 it() link(bf(ldap root))(ldaproot)
558 it() link(bf(ldap root passwd))(ldaprootpasswd)
560 it() link(bf(ldap server))(ldapserver)
562 it() link(bf(ldap suffix))(ldapsuffix)
564 it() link(bf(lm announce))(lmannounce)
566 it() link(bf(lm interval))(lminterval)
568 it() link(bf(load printers))(loadprinters)
570 it() link(bf(local master))(localmaster)
572 it() link(bf(lock dir))(lockdir)
574 it() link(bf(lock directory))(lockdirectory)
576 it() link(bf(log file))(logfile)
578 it() link(bf(log level))(loglevel)
580 it() link(bf(logon drive))(logondrive)
582 it() link(bf(logon home))(logonhome)
584 it() link(bf(logon path))(logonpath)
586 it() link(bf(logon script))(logonscript)
588 it() link(bf(lpq cache time))(lpqcachetime)
590 it() link(bf(machine password timeout))(machinepasswordtimeout)
592 it() link(bf(mangled stack))(mangledstack)
594 it() link(bf(map to guest))(maptoguest)
596 it() link(bf(max disk size))(maxdisksize)
598 it() link(bf(max log size))(maxlogsize)
600 it() link(bf(max mux))(maxmux)
602 it() link(bf(max open files))(maxopenfiles)
604 it() link(bf(max packet))(maxpacket)
606 it() link(bf(max ttl))(maxttl)
608 it() link(bf(max wins ttl))(maxwinsttl)
610 it() link(bf(max xmit))(maxxmit)
612 it() link(bf(message command))(messagecommand)
614 it() link(bf(min passwd length))(minpasswdlength)
616 it() link(bf(min wins ttl))(minwinsttl)
618 it() link(bf(name resolve order))(nameresolveorder)
620 it() link(bf(netbios aliases))(netbiosaliases)
622 it() link(bf(netbios name))(netbiosname)
624 it() link(bf(nis homedir))(nishomedir)
626 it() link(bf(nt acl support))(ntaclsupport)
628 it() link(bf(nt pipe support))(ntpipesupport)
630 it() link(bf(nt smb support))(ntsmbsupport)
632 it() link(bf(null passwords))(nullpasswords)
634 it() link(bf(ole locking compatibility))(olelockingcompatibility)
636 it() link(bf(oplock break wait time))(oplockbreakwaittime)
638 it() link(bf(os level))(oslevel)
640 it() link(bf(packet size))(packetsize)
642 it() link(bf(panic action))(panicaction)
644 it() link(bf(passwd chat))(passwdchat)
646 it() link(bf(passwd chat debug))(passwdchatdebug)
648 it() link(bf(passwd program))(passwdprogram)
650 it() link(bf(password level))(passwordlevel)
652 it() link(bf(password server))(passwordserver)
654 it() link(bf(prefered master))(preferedmaster)
656 it() link(bf(preferred master))(preferredmaster)
658 it() link(bf(preload))(preload)
660 it() link(bf(printcap))(printcap)
662 it() link(bf(printcap name))(printcapname)
664 it() link(bf(printer driver file))(printerdriverfile)
666 it() link(bf(protocol))(protocol)
668 it() link(bf(read bmpx))(readbmpx)
670 it() link(bf(read prediction))(readprediction)
672 it() link(bf(read raw))(readraw)
674 it() link(bf(read size))(readsize)
676 it() link(bf(remote announce))(remoteannounce)
678 it() link(bf(remote browse sync))(remotebrowsesync)
680 it() link(bf(restrict anonymous))(restrictanonymous)
682 it() link(bf(root))(root)
684 it() link(bf(root dir))(rootdir)
686 it() link(bf(root directory))(rootdirectory)
688 it() link(bf(security))(security)
690 it() link(bf(server string))(serverstring)
692 it() link(bf(shared mem size))(sharedmemsize)
694 it() link(bf(smb passwd file))(smbpasswdfile)
696 it() link(bf(smbrun))(smbrun)
698 it() link(bf(socket address))(socketaddress)
700 it() link(bf(socket options))(socketoptions)
702 it() link(bf(ssl))(ssl)
704 it() link(bf(ssl CA certDir))(sslCAcertDir)
706 it() link(bf(ssl CA certFile))(sslCAcertFile)
708 it() link(bf(ssl ciphers))(sslciphers)
710 it() link(bf(ssl client cert))(sslclientcert)
712 it() link(bf(ssl client key))(sslclientkey)
714 it() link(bf(ssl compatibility))(sslcompatibility)
716 it() link(bf(ssl hosts))(sslhosts)
718 it() link(bf(ssl hosts resign))(sslhostsresign)
720 it() link(bf(ssl require clientcert))(sslrequireclientcert)
722 it() link(bf(ssl require servercert))(sslrequireservercert)
724 it() link(bf(ssl server cert))(sslservercert)
726 it() link(bf(ssl server key))(sslserverkey)
728 it() link(bf(ssl version))(sslversion)
730 it() link(bf(stat cache))(statcache)
732 it() link(bf(stat cache size))(statcachesize)
734 it() link(bf(strip dot))(stripdot)
736 it() link(bf(syslog))(syslog)
738 it() link(bf(syslog only))(syslogonly)
740 it() link(bf(time offset))(timeoffset)
742 it() link(bf(time server))(timeserver)
744 it() link(bf(timestamp logs))(timestamplogs)
746 it() link(bf(unix password sync))(unixpasswordsync)
748 it() link(bf(unix realname))(unixrealname)
750 it() link(bf(update encrypted))(updateencrypted)
752 it() link(bf(use rhosts))(userhosts)
754 it() link(bf(username level))(usernamelevel)
756 it() link(bf(username map))(usernamemap)
758 it() link(bf(valid chars))(validchars)
760 it() link(bf(wins proxy))(winsproxy)
762 it() link(bf(wins server))(winsserver)
764 it() link(bf(wins support))(winssupport)
766 it() link(bf(workgroup))(workgroup)
768 it() link(bf(write raw))(writeraw)
770 endit()
772 label(COMPLETELISTOFSERVICEPARAMETERS)
773 manpagesection(COMPLETE LIST OF SERVICE PARAMETERS)
775 Here is a list of all service parameters. See the section of each
776 parameter for details. Note that some are synonyms.
778 startit()
780 it() link(bf(admin users))(adminusers)
782 it() link(bf(allow hosts))(allowhosts)
784 it() link(bf(alternate permissions))(alternatepermissions)
786 it() link(bf(available))(available)
788 it() link(bf(blocking locks))(blockinglocks)
790 it() link(bf(browsable))(browsable)
792 it() link(bf(browseable))(browseable)
794 it() link(bf(case sensitive))(casesensitive)
796 it() link(bf(casesignames))(casesignames)
798 it() link(bf(comment))(comment)
800 it() link(bf(copy))(copy)
802 it() link(bf(create mask))(createmask)
804 it() link(bf(create mode))(createmode)
806 it() link(bf(default case))(defaultcase)
808 it() link(bf(delete readonly))(deletereadonly)
810 it() link(bf(delete veto files))(deletevetofiles)
812 it() link(bf(deny hosts))(denyhosts)
814 it() link(bf(directory))(directory)
816 it() link(bf(directory mask))(directorymask)
818 it() link(bf(directory mode))(directorymode)
820 it() link(bf(dont descend))(dontdescend)
822 it() link(bf(dos filetime resolution))(dosfiletimeresolution)
824 it() link(bf(dos filetimes))(dosfiletimes)
826 it() link(bf(exec))(exec)
828 it() link(bf(fake directory create times))(fakedirectorycreatetimes)
830 it() link(bf(fake oplocks))(fakeoplocks)
832 it() link(bf(follow symlinks))(followsymlinks)
834 it() link(bf(force create mode))(forcecreatemode)
836 it() link(bf(force directory mode))(forcedirectorymode)
838 it() link(bf(force group))(forcegroup)
840 it() link(bf(force user))(forceuser)
842 it() link(bf(fstype))(fstype)
844 it() link(bf(group))(group)
846 it() link(bf(guest account))(guestaccount)
848 it() link(bf(guest ok))(guestok)
850 it() link(bf(guest only))(guestonly)
852 it() link(bf(hide dot files))(hidedotfiles)
854 it() link(bf(hide files))(hidefiles)
856 it() link(bf(hosts allow))(hostsallow)
858 it() link(bf(hosts deny))(hostsdeny)
860 it() link(bf(include))(include)
862 it() link(bf(invalid users))(invalidusers)
864 it() link(bf(locking))(locking)
866 it() link(bf(lppause command))(lppausecommand)
868 it() link(bf(lpq command))(lpqcommand)
870 it() link(bf(lpresume command))(lpresumecommand)
872 it() link(bf(lprm command))(lprmcommand)
874 it() link(bf(magic output))(magicoutput)
876 it() link(bf(magic script))(magicscript)
878 it() link(bf(mangle case))(manglecase)
880 it() link(bf(mangle locks))(manglelocks)
882 it() link(bf(mangled map))(mangledmap)
884 it() link(bf(mangled names))(manglednames)
886 it() link(bf(mangling char))(manglingchar)
888 it() link(bf(map archive))(maparchive)
890 it() link(bf(map hidden))(maphidden)
892 it() link(bf(map system))(mapsystem)
894 it() link(bf(max connections))(maxconnections)
896 it() link(bf(min print space))(minprintspace)
898 it() link(bf(only guest))(onlyguest)
900 it() link(bf(only user))(onlyuser)
902 it() link(bf(oplocks))(oplocks)
904 it() link(bf(oplock contention limit))(oplockcontentionlimit)
906 it() link(bf(path))(path)
908 it() link(bf(postexec))(postexec)
910 it() link(bf(postscript))(postscript)
912 it() link(bf(preexec))(preexec)
914 it() link(bf(preserve case))(preservecase)
916 it() link(bf(print command))(printcommand)
918 it() link(bf(print ok))(printok)
920 it() link(bf(printable))(printable)
922 it() link(bf(printer))(printer)
924 it() link(bf(printer driver))(printerdriver)
926 it() link(bf(printer driver location))(printerdriverlocation)
928 it() link(bf(printer name))(printername)
930 it() link(bf(printing))(printing)
932 it() link(bf(public))(public)
934 it() link(bf(queuepause command))(queuepausecommand)
936 it() link(bf(queueresume command))(queueresumecommand)
938 it() link(bf(read list))(readlist)
940 it() link(bf(read only))(readonly)
942 it() link(bf(revalidate))(revalidate)
944 it() link(bf(root postexec))(rootpostexec)
946 it() link(bf(root preexec))(rootpreexec)
948 it() link(bf(set directory))(setdirectory)
950 it() link(bf(share modes))(sharemodes)
952 it() link(bf(short preserve case))(shortpreservecase)
954 it() link(bf(status))(status)
956 it() link(bf(strict locking))(strictlocking)
958 it() link(bf(strict sync))(strictsync)
960 it() link(bf(sync always))(syncalways)
962 it() link(bf(user))(user)
964 it() link(bf(username))(username)
966 it() link(bf(users))(users)
968 it() link(bf(valid users))(validusers)
970 it() link(bf(veto files))(vetofiles)
972 it() link(bf(veto oplock files))(vetooplockfiles)
974 it() link(bf(volume))(volume)
976 it() link(bf(wide links))(widelinks)
978 it() link(bf(writable))(writable)
980 it() link(bf(write list))(writelist)
982 it() link(bf(write ok))(writeok)
984 it() link(bf(writeable))(writeable)
986 endit()
988 label(EXPLANATIONOFEACHPARAMETER)
989 manpagesection(EXPLANATION OF EACH PARAMETER)
991 startdit()
993 label(adduserscript)
994 dit(bf(add user script (G)))
996 This is the full pathname to a script that will be run em(AS ROOT) by
997 url(bf(smbd (8)))(smbd.8.html) under special circumstances decribed
998 below.
1000 Normally, a Samba server requires that UNIX users are created for all
1001 users accessing files on this server. For sites that use Windows NT
1002 account databases as their primary user database creating these users
1003 and keeping the user list in sync with the Windows NT PDC is an
1004 onerous task. This option allows url(bf(smbd))(smbd.8.html) to create
1005 the required UNIX users em(ON DEMAND) when a user accesses the Samba
1006 server.
1008 In order to use this option, url(bf(smbd))(smbd.8.html) must be set to
1009 link(bf(security=server))(securityequalserver) or
1010 link(bf(security=domain))(securityequaldomain) and bf("add user script")
1011 must be set to a full pathname for a script that will create a UNIX user
1012 given one argument of bf(%u), which expands into the UNIX user name to
1013 create.
1015 When the Windows user attempts to access the Samba server, at
1016 em("login")(session setup in the SMB protocol) time,
1017 url(bf(smbd))(smbd.8.html) contacts the link(bf(password
1018 server))(passwordserver) and attempts to authenticate the given user
1019 with the given password. If the authentication succeeds then
1020 url(bf(smbd))(smbd.8.html) attempts to find a UNIX user in the UNIX
1021 password database to map the Windows user into. If this lookup fails,
1022 and bf("add user script") is set then url(bf(smbd))(smbd.8.html) will
1023 call the specified script em(AS ROOT), expanding any bf(%u) argument
1024 to be the user name to create.
1026 If this script successfully creates the user then
1027 url(bf(smbd))(smbd.8.html) will continue on as though the UNIX user
1028 already existed. In this way, UNIX users are dynamically created to
1029 match existing Windows NT accounts.
1031 See also link(bf(security=server))(securityequalserver),
1032 link(bf(security=domain))(securityequaldomain), link(bf(password
1033 server))(passwordserver), link(bf(delete user
1034 script))(deleteuserscript).
1036   bf(Default:)
1037 tt(     add user script = <empty string>)
1039   bf(Example:)
1040 tt(     add user script = /usr/local/samba/bin/add_user %u)
1042 label(adminusers)
1043 dit(bf(admin users (S)))
1045 This is a list of users who will be granted administrative privileges
1046 on the share. This means that they will do all file operations as the
1047 super-user (root).
1049 You should use this option very carefully, as any user in this list
1050 will be able to do anything they like on the share, irrespective of
1051 file permissions.
1053   bf(Default:) nl()
1054 tt(     no admin users)
1056   bf(Example:) nl()
1057 tt(     admin users = jason)
1059 label(allow hosts)
1060 dit(bf(allow hosts (S)))
1062 Synonym for link(bf(hosts allow))(hostsallow).
1064 label(allowtrusteddomains)
1065 dit(bf(allow trusted domains (G)))
1067 This option only takes effect when the link(bf(security))(security)
1068 option is set to bf(server) or bf(domain).  If it is set to no,
1069 then attempts to connect to a resource from a domain or workgroup other than
1070 the one which smbd is running in will fail, even if that domain
1071 is trusted by the remote server doing the authentication.
1073 This is useful if you only want your Samba server to serve resources
1074 to users in the domain it is a member of. As an example, suppose that there are
1075 two domains DOMA and DOMB.  DOMB is trusted by DOMA, which contains
1076 the Samba server.  Under normal circumstances, a user with an account
1077 in DOMB can then access the resources of a UNIX account with the same
1078 account name on the Samba server even if they do not have an account
1079 in DOMA.  This can make implementing a security boundary difficult.
1081   bf(Default:)
1082 tt(     allow trusted domains = Yes)
1084   bf(Example:)
1085 tt(     allow trusted domains = No)
1087 label(alternatepermissions)
1088 dit(bf(alternate permissions (S)))
1090 This is a deprecated parameter. It no longer has any effect in Samba2.0.
1091 In previous versions of Samba it affected the way the DOS "read only"
1092 attribute was mapped for a file. In Samba2.0 a file is marked "read only"
1093 if the UNIX file does not have the 'w' bit set for the owner of the file,
1094 regardless if the owner of the file is the currently logged on user or not.
1096 label(announceas)
1097 dit(bf(announce as (G)))
1099 This specifies what type of server url(bf(nmbd))(nmbd.8.html) will
1100 announce itself as, to a network neighborhood browse list. By default
1101 this is set to Windows NT. The valid options are : "NT", which is a
1102 synonym for "NT Server", "NT Server", "NT Workstation", "Win95" or
1103 "WfW" meaning Windows NT Server, Windows NT Workstation, Windows 95
1104 and Windows for Workgroups respectively. Do not change this parameter
1105 unless you have a specific need to stop Samba appearing as an NT server
1106 as this may prevent Samba servers from participating as browser servers correctly.
1108   bf(Default:)
1109 tt(     announce as = NT Server)
1111   bf(Example)
1112 tt(     announce as = Win95)
1114 label(announceversion)
1115 dit(bf(announce version (G)))
1117 This specifies the major and minor version numbers that nmbd will use
1118 when announcing itself as a server. The default is 4.2.  Do not change
1119 this parameter unless you have a specific need to set a Samba server
1120 to be a downlevel server.
1122   bf(Default:)
1123 tt(     announce version = 4.2)
1125   bf(Example:)
1126 tt(     announce version = 2.0)
1129 label(autoservices)
1130 dit(bf(auto services (G)))
1132 This is a list of services that you want to be automatically added to
1133 the browse lists. This is most useful for homes and printers services
1134 that would otherwise not be visible.
1136 Note that if you just want all printers in your printcap file loaded
1137 then the link(bf("load printers"))(loadprinters) option is easier.
1139   bf(Default:)
1140 tt(     no auto services)
1142   bf(Example:)
1143 tt(     auto services = fred lp colorlp)
1145 label(available)
1146 dit(bf(available (S)))
1148 This parameter lets you em('turn off') a service. If tt('available = no'),
1149 then em(ALL) attempts to connect to the service will fail. Such failures
1150 are logged.
1152   bf(Default:)
1153 tt(     available = yes)
1155   bf(Example:)
1156 tt(     available = no)
1158 label(bindinterfacesonly)
1159 dit(bf(bind interfaces only (G)))
1161 This global parameter allows the Samba admin to limit what interfaces
1162 on a machine will serve smb requests. If affects file service
1163 url(bf(smbd))(smbd.8.html) and name service url(bf(nmbd))(nmbd.8.html)
1164 in slightly different ways.
1166 For name service it causes url(bf(nmbd))(nmbd.8.html) to bind to ports
1167 137 and 138 on the interfaces listed in the
1168 link(bf('interfaces'))(interfaces)
1169 parameter. url(bf(nmbd))(nmbd.8.html) also binds to the 'all
1170 addresses' interface (0.0.0.0) on ports 137 and 138 for the purposes
1171 of reading broadcast messages. If this option is not set then
1172 url(bf(nmbd))(nmbd.8.html) will service name requests on all of these
1173 sockets. If bf("bind interfaces only") is set then
1174 url(bf(nmbd))(nmbd.8.html) will check the source address of any
1175 packets coming in on the broadcast sockets and discard any that don't
1176 match the broadcast addresses of the interfaces in the
1177 link(bf('interfaces'))(interfaces) parameter list. As unicast packets
1178 are received on the other sockets it allows url(bf(nmbd))(nmbd.8.html)
1179 to refuse to serve names to machines that send packets that arrive
1180 through any interfaces not listed in the
1181 link(bf("interfaces"))(interfaces) list.  IP Source address spoofing
1182 does defeat this simple check, however so it must not be used
1183 seriously as a security feature for url(bf(nmbd))(nmbd.8.html).
1185 For file service it causes url(bf(smbd))(smbd.8.html) to bind only to
1186 the interface list given in the link(bf('interfaces'))(interfaces)
1187 parameter. This restricts the networks that url(bf(smbd))(smbd.8.html)
1188 will serve to packets coming in those interfaces.  Note that you
1189 should not use this parameter for machines that are serving PPP or
1190 other intermittent or non-broadcast network interfaces as it will not
1191 cope with non-permanent interfaces.
1193 If bf("bind interfaces only") is set then unless the network address
1194 em(127.0.0.1) is added to the link(bf('interfaces'))(interfaces) parameter
1195 list url(bf(smbpasswd))(smbpasswd.8.html) and
1196 url(bf(swat))(swat.8.html) may not work as expected due to the
1197 reasons covered below.
1199 To change a users SMB password, the url(bf(smbpasswd))(smbpasswd.8.html)
1200 by default connects to the em("localhost" - 127.0.0.1) address as an SMB
1201 client to issue the password change request. If bf("bind interfaces only")
1202 is set then unless the network address em(127.0.0.1) is added to the
1203 link(bf('interfaces'))(interfaces) parameter list then
1204 url(bf(smbpasswd))(smbpasswd.8.html) will fail to connect in it's
1205 default mode. url(bf(smbpasswd))(smbpasswd.8.html) can be forced to
1206 use the primary IP interface of the local host by using its
1207 url(bf("-r remote machine"))(smbpasswd.8.html#minusr) parameter, with
1208 bf("remote machine") set to the IP name of the primary interface
1209 of the local host.
1211 The url(bf(swat))(swat.8.html) status page tries to connect with
1212 url(bf(smbd))(smbd.8.html) and url(bf(nmbd))(nmbd.8.html) at the address 
1213 em(127.0.0.1) to determine if they are running.  Not adding em(127.0.0.1)  will cause
1214 url(bf(smbd))(smbd.8.html) and url(bf(nmbd))(nmbd.8.html) to always show
1215 "not running" even if they really are.  This can prevent
1216 url(bf(swat))(swat.8.html) from starting/stopping/restarting
1217 url(bf(smbd))(smbd.8.html) and url(bf(nmbd))(nmbd.8.html).
1219   bf(Default:)
1220 tt(     bind interfaces only = False)
1222   bf(Example:)
1223 tt(     bind interfaces only = True)
1225 label(blockinglocks)
1226 dit(bf(blocking locks (S)))
1228 This parameter controls the behavior of url(bf(smbd))(smbd.8.html) when
1229 given a request by a client to obtain a byte range lock on a region
1230 of an open file, and the request has a time limit associated with it.
1232 If this parameter is set and the lock range requested cannot be
1233 immediately satisfied, Samba 2.0 will internally queue the lock 
1234 request, and periodically attempt to obtain the lock until the
1235 timeout period expires.
1237 If this parameter is set to "False", then Samba 2.0 will behave
1238 as previous versions of Samba would and will fail the lock
1239 request immediately if the lock range cannot be obtained.
1241 This parameter can be set per share.
1243   bf(Default:)
1244 tt(     blocking locks = True)
1246   bf(Example:)
1247 tt(     blocking locks = False)
1249 label(browsable)
1250 dit(bf(browsable (S)))
1252 Synonym for link(bf(browseable))(browseable).
1254 label(browselist)
1255 dit(bf(browse list(G)))
1257 This controls whether url(bf(smbd))(smbd.8.html) will serve a browse
1258 list to a client doing a NetServerEnum call. Normally set to true. You
1259 should never need to change this.
1261   bf(Default:)
1262 tt(     browse list = Yes)
1264 label(browseable)
1265 dit(bf(browseable))
1267 This controls whether this share is seen in the list of available
1268 shares in a net view and in the browse list.
1270   bf(Default:)
1271 tt(     browseable = Yes)
1273   bf(Example:)
1274 tt(     browseable = No)
1276 label(casesensitive)
1277 dit(bf(case sensitive (G)))
1279 See the discussion in the section link(bf(NAME MANGLING))(NAMEMANGLING).
1281 label(casesignames)
1282 dit(bf(casesignames (G)))
1284 Synonym for link(bf("case sensitive"))(casesensitive).
1286 label(changenotifytimeout)
1287 dit(bf(change notify timeout (G)))
1289 One of the new NT SMB requests that Samba 2.0 supports is the
1290 "ChangeNotify" requests. This SMB allows a client to tell a server to
1291 em("watch") a particular directory for any changes and only reply to
1292 the SMB request when a change has occurred. Such constant scanning of
1293 a directory is expensive under UNIX, hence an
1294 url(bf(smbd))(smbd.8.html) daemon only performs such a scan on each
1295 requested directory once every bf(change notify timeout) seconds.
1297 bf(change notify timeout) is specified in units of seconds.
1299   bf(Default:)
1300 tt(     change notify timeout = 60)
1302   bf(Example:)
1303 tt(     change notify timeout = 300)
1305 Would change the scan time to every 5 minutes.
1307 label(characterset)
1308 dit(bf(character set (G)))
1310 This allows a smbd to map incoming filenames from a DOS Code page (see
1311 the link(bf(client code page))(clientcodepage) parameter) to several
1312 built in UNIX character sets. The built in code page translations are:
1314 startit()
1316 it() bf(ISO8859-1) Western European UNIX character set. The parameter
1317 link(bf(client code page))(clientcodepage) em(MUST) be set to code
1318 page 850 if the bf(character set) parameter is set to iso8859-1
1319 in order for the conversion to the UNIX character set to be done
1320 correctly.
1322 it() bf(ISO8859-2) Eastern European UNIX character set. The parameter
1323 link(bf(client code page))(clientcodepage) em(MUST) be set to code
1324 page 852 if the bf(character set) parameter is set to ISO8859-2
1325 in order for the conversion to the UNIX character set to be done
1326 correctly. 
1328 it() bf(ISO8859-5) Russian Cyrillic UNIX character set. The parameter
1329 link(bf(client code page))(clientcodepage) em(MUST) be set to code
1330 page 866 if the bf(character set) parameter is set to ISO8859-2
1331 in order for the conversion to the UNIX character set to be done
1332 correctly. 
1334 it() bf(KOI8-R) Alternate mapping for Russian Cyrillic UNIX
1335 character set. The parameter link(bf(client code
1336 page))(clientcodepage) em(MUST) be set to code page 866 if the
1337 bf(character set) parameter is set to KOI8-R in order for the
1338 conversion to the UNIX character set to be done correctly.
1340 endit()
1342 em(BUG). These MSDOS code page to UNIX character set mappings should
1343 be dynamic, like the loading of MS DOS code pages, not static.
1345 See also link(bf(client code page))(clientcodepage).  Normally this
1346 parameter is not set, meaning no filename translation is done.
1348   bf(Default:)
1349 tt(     character set = <empty string>)
1351   bf(Example:)
1352 tt(     character set = ISO8859-1)
1354 label(clientcodepage)
1355 dit(bf(client code page (G)))
1357 This parameter specifies the DOS code page that the clients accessing
1358 Samba are using. To determine what code page a Windows or DOS client
1359 is using, open a DOS command prompt and type the command "chcp". This
1360 will output the code page. The default for USA MS-DOS, Windows 95, and
1361 Windows NT releases is code page 437. The default for western european
1362 releases of the above operating systems is code page 850.
1364 This parameter tells url(bf(smbd))(smbd.8.html) which of the
1365 tt(codepage.XXX) files to dynamically load on startup. These files,
1366 described more fully in the manual page url(bf(make_smbcodepage
1367 (1)))(make_smbcodepage.1.html), tell url(bf(smbd))(smbd.8.html) how
1368 to map lower to upper case characters to provide the case insensitivity
1369 of filenames that Windows clients expect.
1371 Samba currently ships with the following code page files :
1373 startit()
1375 it() bf(Code Page 437 - MS-DOS Latin US)
1377 it() bf(Code Page 737 - Windows '95 Greek)
1379 it() bf(Code Page 850 - MS-DOS Latin 1)
1381 it() bf(Code Page 852 - MS-DOS Latin 2)
1383 it() bf(Code Page 861 - MS-DOS Icelandic)
1385 it() bf(Code Page 866 - MS-DOS Cyrillic)
1387 it() bf(Code Page 932 - MS-DOS Japanese SJIS)
1389 it() bf(Code Page 936 - MS-DOS Simplified Chinese)
1391 it() bf(Code Page 949 - MS-DOS Korean Hangul)
1393 it() bf(Code Page 950 - MS-DOS Traditional Chinese)
1395 endit()
1397 Thus this parameter may have any of the values 437, 737, 850, 852,
1398 861, 932, 936, 949, or 950.  If you don't find the codepage you need,
1399 read the comments in one of the other codepage files and the
1400 url(bf(make_smbcodepage (1)))(make_smbcodepage.1.html) man page and
1401 write one. Please remember to donate it back to the Samba user
1402 community.
1404 This parameter co-operates with the link(bf("valid
1405 chars"))(validchars) parameter in determining what characters are
1406 valid in filenames and how capitalization is done. If you set both
1407 this parameter and the link(bf("valid chars"))(validchars) parameter
1408 the bf("client code page") parameter em(MUST) be set before the
1409 link(bf("valid chars"))(validchars) parameter in the bf(smb.conf)
1410 file. The link(bf("valid chars"))(validchars) string will then augment
1411 the character settings in the "client code page" parameter.
1413 If not set, bf("client code page") defaults to 850.
1415 See also : link(bf("valid chars"))(validchars)
1417   bf(Default:)
1418 tt(     client code page = 850)
1420   bf(Example:)
1421 tt(     client code page = 936)
1423 label(codingsystem)
1424 dit(bf(codingsystem (G)))
1426 This parameter is used to determine how incoming Shift-JIS Japanese
1427 characters are mapped from the incoming link(bf("client code
1428 page"))(clientcodepage) used by the client, into file names in the
1429 UNIX filesystem. Only useful if link(bf("client code
1430 page"))(clientcodepage) is set to 932 (Japanese Shift-JIS).
1432 The options are :
1434 startit()
1436 it() bf(SJIS)  Shift-JIS. Does no conversion of the incoming filename.
1438 it() bf(JIS8, J8BB, J8BH, J8@B, J8@J, J8@H ) Convert from incoming
1439 Shift-JIS to eight bit JIS code with different shift-in, shift out
1440 codes.
1442 it() bf(JIS7, J7BB, J7BH, J7@B, J7@J, J7@H ) Convert from incoming
1443 Shift-JIS to seven bit JIS code with different shift-in, shift out
1444 codes.
1446 it() bf(JUNET, JUBB, JUBH, JU@B, JU@J, JU@H ) Convert from incoming
1447 Shift-JIS to JUNET code with different shift-in, shift out codes.
1449 it() bf(EUC)  Convert an incoming Shift-JIS character to EUC code.
1451 it() bf(HEX) Convert an incoming Shift-JIS character to a 3 byte hex
1452 representation, i.e. tt(:AB).
1454 it() bf(CAP) Convert an incoming Shift-JIS character to the 3 byte hex
1455 representation used by the Columbia AppleTalk Program (CAP),
1456 i.e. tt(:AB).  This is used for compatibility between Samba and CAP.
1458 endit()
1460 label(comment)
1461 dit(bf(comment (S)))
1463 This is a text field that is seen next to a share when a client does a
1464 queries the server, either via the network neighborhood or via "net
1465 view" to list what shares are available.
1467 If you want to set the string that is displayed next to the machine
1468 name then see the server string command.
1470   bf(Default:)
1471 tt(     No comment string)
1473   bf(Example:)
1474 tt(     comment = Fred's Files)
1476 label(configfile)
1477 dit(bf(config file (G)))
1479 This allows you to override the config file to use, instead of the
1480 default (usually bf(smb.conf)). There is a chicken and egg problem
1481 here as this option is set in the config file!
1483 For this reason, if the name of the config file has changed when the
1484 parameters are loaded then it will reload them from the new config
1485 file.
1487 This option takes the usual substitutions, which can be very useful.
1489 If the config file doesn't exist then it won't be loaded (allowing you
1490 to special case the config files of just a few clients).
1492   bf(Example:)
1493 tt(     config file = /usr/local/samba/lib/smb.conf.%m)
1495 label(copy)
1496 dit(bf(copy (S)))
1498 This parameter allows you to em('clone') service entries. The specified
1499 service is simply duplicated under the current service's name. Any
1500 parameters specified in the current section will override those in the
1501 section being copied.
1503 This feature lets you set up a 'template' service and create similar
1504 services easily. Note that the service being copied must occur earlier
1505 in the configuration file than the service doing the copying.
1507   bf(Default:)
1508 tt(     none)
1510   bf(Example:)
1511 tt(     copy = otherservice)
1513 label(createmask)
1514 dit(bf(create mask (S)))
1516 A synonym for this parameter is link(bf('create mode'))(createmode).
1518 When a file is created, the necessary permissions are calculated
1519 according to the mapping from DOS modes to UNIX permissions, and the
1520 resulting UNIX mode is then bit-wise 'AND'ed with this parameter.
1521 This parameter may be thought of as a bit-wise MASK for the UNIX modes
1522 of a file. Any bit em(*not*) set here will be removed from the modes set
1523 on a file when it is created.
1525 The default value of this parameter removes the 'group' and 'other'
1526 write and execute bits from the UNIX modes.
1528 Following this Samba will bit-wise 'OR' the UNIX mode created from
1529 this parameter with the value of the "force create mode" parameter
1530 which is set to 000 by default.
1532 This parameter does not affect directory modes. See the parameter
1533 link(bf('directory mode'))(directorymode) for details.
1535 See also the link(bf("force create mode"))(forcecreatemode) parameter
1536 for forcing particular mode bits to be set on created files. See also
1537 the link(bf("directory mode"))(directorymode) parameter for masking
1538 mode bits on created directories.
1540   bf(Default:)
1541 tt(     create mask = 0744)
1543   bf(Example:)
1544 tt(     create mask = 0775)
1546 label(createmode)
1547 dit(bf(create mode (S)))
1549 This is a synonym for link(bf(create mask))(createmask).
1551 label(deadtime)
1552 dit(bf(deadtime (G)))
1554 The value of the parameter (a decimal integer) represents the number
1555 of minutes of inactivity before a connection is considered dead, and
1556 it is disconnected. The deadtime only takes effect if the number of
1557 open files is zero.
1559 This is useful to stop a server's resources being exhausted by a large
1560 number of inactive connections.
1562 Most clients have an auto-reconnect feature when a connection is
1563 broken so in most cases this parameter should be transparent to users.
1565 Using this parameter with a timeout of a few minutes is recommended
1566 for most systems.
1568 A deadtime of zero indicates that no auto-disconnection should be
1569 performed.
1571   bf(Default:)
1572 tt(     deadtime = 0)
1574   bf(Example:)
1575 tt(     deadtime = 15)
1577 label(debugtimestamp)
1578 dit(bf(debug timestamp (G)))
1580 Samba2.0 debug log messages are timestamped by default. If you are
1581 running at a high link(bf("debug level"))(debuglevel) these timestamps
1582 can be distracting. This boolean parameter allows them to be turned
1583 off.
1585   bf(Default:)
1586 tt(     debug timestamp = Yes)
1588   bf(Example:)
1589 tt(     debug timestamp = No)
1591 label(debuglevel)
1592 dit(bf(debug level (G)))
1594 The value of the parameter (an integer) allows the debug level
1595 (logging level) to be specified in the bf(smb.conf) file. This is to
1596 give greater flexibility in the configuration of the system.
1598 The default will be the debug level specified on the command line
1599 or level zero if none was specified.
1601   bf(Example:)
1602 tt(     debug level = 3)
1604 label(default)
1605 dit(bf(default (G)))
1607 A synonym for link(bf(default service))(defaultservice).
1609 label(defaultcase)
1610 dit(bf(default case (S)))
1612 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING). Also note
1613 the link(bf("short preserve case"))(shortpreservecase) parameter.
1615 label(defaultservice)
1616 dit(bf(default service (G)))
1618 This parameter specifies the name of a service which will be connected
1619 to if the service actually requested cannot be found. Note that the
1620 square brackets are em(NOT) given in the parameter value (see example
1621 below).
1623 There is no default value for this parameter. If this parameter is not
1624 given, attempting to connect to a nonexistent service results in an
1625 error.
1627 Typically the default service would be a link(bf(guest ok))(guestok),
1628 link(bf(read-only))(readonly) service.
1630 Also note that the apparent service name will be changed to equal that
1631 of the requested service, this is very useful as it allows you to use
1632 macros like link(bf(%S))(percentS) to make a wildcard service.
1634 Note also that any tt('_') characters in the name of the service used
1635 in the default service will get mapped to a tt('/'). This allows for
1636 interesting things.
1639   bf(Example:)
1640 verb(
1641         default service = pub
1642         
1643         [pub]
1644                 path = /%S
1647 label(deleteuserscript)
1648 dit(bf(delete user script (G)))
1650 This is the full pathname to a script that will be run em(AS ROOT) by
1651 url(bf(smbd (8)))(smbd.8.html) under special circumstances decribed
1652 below.
1654 Normally, a Samba server requires that UNIX users are created for all
1655 users accessing files on this server. For sites that use Windows NT
1656 account databases as their primary user database creating these users
1657 and keeping the user list in sync with the Windows NT PDC is an
1658 onerous task. This option allows url(bf(smbd))(smbd.8.html) to delete
1659 the required UNIX users em(ON DEMAND) when a user accesses the Samba
1660 server and the Windows NT user no longer exists.
1662 In order to use this option, url(bf(smbd))(smbd.8.html) must be set to
1663 link(bf(security=domain))(securityequaldomain) and bf("delete user
1664 script") must be set to a full pathname for a script that will delete
1665 a UNIX user given one argument of bf(%u), which expands into the UNIX
1666 user name to delete. em(NOTE) that this is different to the
1667 link(bf(add user script))(adduserscript) which will work with the
1668 link(bf(security=server))(securityequalserver) option as well as
1669 link(bf(security=domain))(securityequaldomain). The reason for this
1670 is only when Samba is a domain member does it get the information
1671 on an attempted user logon that a user no longer exists. In the
1672 link(bf(security=server))(securityequalserver) mode a missing user
1673 is treated the same as an invalid password logon attempt. Deleting
1674 the user in this circumstance would not be a good idea.
1676 When the Windows user attempts to access the Samba server, at
1677 em("login")(session setup in the SMB protocol) time,
1678 url(bf(smbd))(smbd.8.html) contacts the link(bf(password
1679 server))(passwordserver) and attempts to authenticate the given user
1680 with the given password. If the authentication fails with the specific
1681 Domain error code meaning that the user no longer exists then
1682 url(bf(smbd))(smbd.8.html) attempts to find a UNIX user in the UNIX
1683 password database that matches the Windows user account. If this lookup succeeds,
1684 and bf("delete user script") is set then url(bf(smbd))(smbd.8.html) will
1685 call the specified script em(AS ROOT), expanding any bf(%u) argument
1686 to be the user name to delete.
1688 This script should delete the given UNIX username. In this way, UNIX
1689 users are dynamically deleted to match existing Windows NT accounts.
1691 See also link(bf(security=domain))(securityequaldomain),
1692 link(bf(password server))(passwordserver), link(bf(add user
1693 script))(adduserscript).
1695   bf(Default:)
1696 tt(     delete user script = <empty string>)
1698   bf(Example:)
1699 tt(     delete user script = /usr/local/samba/bin/del_user %u)
1701 label(deletereadonly)
1702 dit(bf(delete readonly (S)))
1704 This parameter allows readonly files to be deleted.  This is not
1705 normal DOS semantics, but is allowed by UNIX.
1707 This option may be useful for running applications such as rcs, where
1708 UNIX file ownership prevents changing file permissions, and DOS
1709 semantics prevent deletion of a read only file.
1711   bf(Default:)
1712 tt(     delete readonly = No)
1714   bf(Example:)
1715 tt(     delete readonly = Yes)
1717 label(deletevetofiles)
1718 dit(bf(delete veto files (S)))
1720 This option is used when Samba is attempting to delete a directory
1721 that contains one or more vetoed directories (see the link(bf('veto
1722 files'))(vetofiles) option).  If this option is set to False (the
1723 default) then if a vetoed directory contains any non-vetoed files or
1724 directories then the directory delete will fail. This is usually what
1725 you want.
1727 If this option is set to True, then Samba will attempt to recursively
1728 delete any files and directories within the vetoed directory. This can
1729 be useful for integration with file serving systems such as bf(NetAtalk),
1730 which create meta-files within directories you might normally veto
1731 DOS/Windows users from seeing (e.g. tt(.AppleDouble))
1733 Setting tt('delete veto files = True') allows these directories to be 
1734 transparently deleted when the parent directory is deleted (so long
1735 as the user has permissions to do so).
1737 See also the link(bf(veto files))(vetofiles) parameter.
1739   bf(Default:)
1740 tt(     delete veto files = False)
1742   bf(Example:)
1743 tt(     delete veto files = True)
1745 label(denyhosts)
1746 dit(bf(deny hosts (S)))
1748 Synonym for link(bf(hosts deny))(hostsdeny).
1750 label(dfreecommand)
1751 dit(bf(dfree command (G)))
1753 The dfree command setting should only be used on systems where a
1754 problem occurs with the internal disk space calculations. This has
1755 been known to happen with Ultrix, but may occur with other operating
1756 systems. The symptom that was seen was an error of "Abort Retry
1757 Ignore" at the end of each directory listing.
1759 This setting allows the replacement of the internal routines to
1760 calculate the total disk space and amount available with an external
1761 routine. The example below gives a possible script that might fulfill
1762 this function.
1764 The external program will be passed a single parameter indicating a
1765 directory in the filesystem being queried. This will typically consist
1766 of the string tt("./"). The script should return two integers in
1767 ascii. The first should be the total disk space in blocks, and the
1768 second should be the number of available blocks. An optional third
1769 return value can give the block size in bytes. The default blocksize
1770 is 1024 bytes.
1772 Note: Your script should em(NOT) be setuid or setgid and should be
1773 owned by (and writeable only by) root!
1775   bf(Default:)
1776 tt(     By default internal routines for determining the disk capacity
1777 and remaining space will be used.)
1779   bf(Example:)
1780 tt(     dfree command = /usr/local/samba/bin/dfree)
1782 Where the script dfree (which must be made executable) could be:
1784 verb(
1785         #!/bin/sh
1786         df $1 | tail -1 | awk '{print $2" "$4}'
1789 or perhaps (on Sys V based systems):
1791 verb(
1792         #!/bin/sh
1793         /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
1796         Note that you may have to replace the command names with full
1797 path names on some systems.
1799 label(directory)
1800 dit(bf(directory (S)))
1802 Synonym for link(bf(path))(path).
1804 label(directorymask)
1805 dit(bf(directory mask (S)))
1807 This parameter is the octal modes which are used when converting DOS
1808 modes to UNIX modes when creating UNIX directories.
1810 When a directory is created, the necessary permissions are calculated
1811 according to the mapping from DOS modes to UNIX permissions, and the
1812 resulting UNIX mode is then bit-wise 'AND'ed with this parameter.
1813 This parameter may be thought of as a bit-wise MASK for the UNIX modes
1814 of a directory. Any bit em(*not*) set here will be removed from the
1815 modes set on a directory when it is created.
1817 The default value of this parameter removes the 'group' and 'other'
1818 write bits from the UNIX mode, allowing only the user who owns the
1819 directory to modify it.
1821 Following this Samba will bit-wise 'OR' the UNIX mode created from
1822 this parameter with the value of the "force directory mode"
1823 parameter. This parameter is set to 000 by default (i.e. no extra mode
1824 bits are added).
1826 See the link(bf("force directory mode"))(forcedirectorymode) parameter
1827 to cause particular mode bits to always be set on created directories.
1829 See also the link(bf("create mode"))(createmode) parameter for masking
1830 mode bits on created files.
1832   bf(Default:)
1833 tt(     directory mask = 0755)
1835   bf(Example:)
1836 tt(     directory mask = 0775)
1838 label(directorymode)
1839 dit(bf(directory mode (S)))
1841 Synonym for link(bf(directory mask))(directorymask).
1843 label(dnsproxy)
1844 dit(bf(dns proxy (G)))
1846 Specifies that url(bf(nmbd))(nmbd.8.html) when acting as a WINS
1847 server and finding that a NetBIOS name has not been registered, should
1848 treat the NetBIOS name word-for-word as a DNS name and do a lookup
1849 with the DNS server for that name on behalf of the name-querying
1850 client.
1852 Note that the maximum length for a NetBIOS name is 15 characters, so
1853 the DNS name (or DNS alias) can likewise only be 15 characters,
1854 maximum.
1856 url(bf(nmbd))(nmbd.8.html) spawns a second copy of itself to do the
1857 DNS name lookup requests, as doing a name lookup is a blocking action.
1859 See also the parameter link(bf(wins support))(winssupport).
1861   bf(Default:)
1862 tt(     dns proxy = yes)
1864 label(domainadmingroup)
1865 bf(domain admin group (G))
1867 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1868 Samba NT Domain Controller Code. It may be removed in a later release.
1869 To work with the latest code builds that may have more support for
1870 Samba NT Domain Controller functionality please subscribe to the
1871 mailing list bf(Samba-ntdom) available by sending email to
1872 email(listproc@samba.org)
1874 label(domainadminusers) 
1875 dit(bf(domain admin users (G)))
1877 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1878 Samba NT Domain Controller Code. It may be removed in a later release.
1879 To work with the latest code builds that may have more support for
1880 Samba NT Domain Controller functionality please subscribe to the
1881 mailing list bf(Samba-ntdom) available by sending email to
1882 email(listproc@samba.org)
1884 label(domain controller)
1885 dit(bf(domain controller (G)))
1887 This is a bf(DEPRECATED) parameter. It is currently not used within
1888 the Samba source and should be removed from all current smb.conf
1889 files. It is left behind for compatibility reasons.
1891 label(domaingroups)
1892 dit(bf(domain groups (G)))
1894 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1895 Samba NT Domain Controller Code. It may be removed in a later release.
1896 To work with the latest code builds that may have more support for
1897 Samba NT Domain Controller functionality please subscribe to the
1898 mailing list bf(Samba-ntdom) available by sending email to
1899 email(listproc@samba.org)
1901 label(domainguestgroup)
1902 dit(bf(domain guest group (G)))
1904 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1905 Samba NT Domain Controller Code. It may be removed in a later release.
1906 To work with the latest code builds that may have more support for
1907 Samba NT Domain Controller functionality please subscribe to the
1908 mailing list bf(Samba-ntdom) available by sending email to
1909 email(listproc@samba.org)
1911 label(domainguestusers)
1912 dit(bf(domain guest users (G)))
1914 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1915 Samba NT Domain Controller Code. It may be removed in a later release.
1916 To work with the latest code builds that may have more support for
1917 Samba NT Domain Controller functionality please subscribe to the
1918 mailing list bf(Samba-ntdom) available by sending email to
1919 email(listproc@samba.org)
1921 label(domainlogons)
1922 dit(bf(domain logons (G)))
1924 If set to true, the Samba server will serve Windows 95/98 Domain
1925 logons for the link(bf(workgroup))(workgroup) it is in. For more
1926 details on setting up this feature see the file DOMAINS.txt in the
1927 Samba documentation directory tt(docs/) shipped with the source code.
1929 Note that Win95/98 Domain logons are em(NOT) the same as Windows
1930 NT Domain logons. NT Domain logons require a Primary Domain Controller
1931 (PDC) for the Domain. It is intended that in a future release Samba
1932 will be able to provide this functionality for Windows NT clients
1933 also.
1935   bf(Default:)
1936 tt(     domain logons = no)
1938 label(domainmaster)
1939 dit(bf(domain master (G)))
1941 Tell url(bf(nmbd))(nmbd.8.html) to enable WAN-wide browse list
1942 collation. Setting this option causes url(bf(nmbd))(nmbd.8.html) to
1943 claim a special domain specific NetBIOS name that identifies it as a
1944 domain master browser for its given
1945 link(bf(workgroup))(workgroup). Local master browsers in the same
1946 link(bf(workgroup))(workgroup) on broadcast-isolated subnets will give
1947 this url(bf(nmbd))(nmbd.8.html) their local browse lists, and then
1948 ask url(bf(smbd))(smbd.8.html) for a complete copy of the browse list
1949 for the whole wide area network.  Browser clients will then contact
1950 their local master browser, and will receive the domain-wide browse
1951 list, instead of just the list for their broadcast-isolated subnet.
1953 Note that Windows NT Primary Domain Controllers expect to be able to
1954 claim this link(bf(workgroup))(workgroup) specific special NetBIOS
1955 name that identifies them as domain master browsers for that
1956 link(bf(workgroup))(workgroup) by default (i.e. there is no way to
1957 prevent a Windows NT PDC from attempting to do this). This means that
1958 if this parameter is set and url(bf(nmbd))(nmbd.8.html) claims the
1959 special name for a link(bf(workgroup))(workgroup) before a Windows NT
1960 PDC is able to do so then cross subnet browsing will behave strangely
1961 and may fail.
1963   bf(Default:)
1964 tt(     domain master = no)
1966 label(dont descend)
1967 dit(bf(dont descend (S)))
1969 There are certain directories on some systems (e.g., the tt(/proc) tree
1970 under Linux) that are either not of interest to clients or are
1971 infinitely deep (recursive). This parameter allows you to specify a
1972 comma-delimited list of directories that the server should always show
1973 as empty.
1975 Note that Samba can be very fussy about the exact format of the "dont
1976 descend" entries. For example you may need tt("./proc") instead of
1977 just tt("/proc"). Experimentation is the best policy :-)
1979   bf(Default:)
1980 tt(     none (i.e., all directories are OK to descend))
1982   bf(Example:)
1983 tt(     dont descend = /proc,/dev)
1985 label(dosfiletimeresolution)
1986 dit(bf(dos filetime resolution (S)))
1988 Under the DOS and Windows FAT filesystem, the finest granularity on
1989 time resolution is two seconds. Setting this parameter for a share
1990 causes Samba to round the reported time down to the nearest two second
1991 boundary when a query call that requires one second resolution is made
1992 to url(bf(smbd))(smbd.8.html).
1994 This option is mainly used as a compatibility option for Visual C++
1995 when used against Samba shares. If oplocks are enabled on a share,
1996 Visual C++ uses two different time reading calls to check if a file
1997 has changed since it was last read. One of these calls uses a
1998 one-second granularity, the other uses a two second granularity. As
1999 the two second call rounds any odd second down, then if the file has a
2000 timestamp of an odd number of seconds then the two timestamps will not
2001 match and Visual C++ will keep reporting the file has changed. Setting
2002 this option causes the two timestamps to match, and Visual C++ is
2003 happy.
2005   bf(Default:)
2006 tt(     dos filetime resolution = False)
2008   bf(Example:)
2009 tt(     dos filetime resolution = True)
2011 label(dos filetimes)
2012 dit(bf(dos filetimes (S)))
2014 Under DOS and Windows, if a user can write to a file they can change
2015 the timestamp on it. Under POSIX semantics, only the owner of the file
2016 or root may change the timestamp. By default, Samba runs with POSIX
2017 semantics and refuses to change the timestamp on a file if the user
2018 smbd is acting on behalf of is not the file owner. Setting this option
2019 to True allows DOS semantics and smbd will change the file timestamp as
2020 DOS requires.
2022   bf(Default:)
2023 tt(     dos filetimes = False)
2025   bf(Example:)
2026 tt(     dos filetimes = True)
2028 label(encryptpasswords)
2029 dit(bf(encrypt passwords (G)))
2031 This boolean controls whether encrypted passwords will be negotiated
2032 with the client. Note that Windows NT 4.0 SP3 and above and also
2033 Windows 98 will by default expect encrypted passwords unless a
2034 registry entry is changed. To use encrypted passwords in Samba see the
2035 file ENCRYPTION.txt in the Samba documentation directory tt(docs/)
2036 shipped with the source code.
2038 In order for encrypted passwords to work correctly
2039 url(bf(smbd))(smbd.8.html) must either have access to a local
2040 url(bf(smbpasswd (5)))(smbpasswd.5.html) file (see the
2041 url(bf(smbpasswd (8)))(smbpasswd.8.html) program for information on
2042 how to set up and maintain this file), or set the
2043 link(bf(security=))(security) parameter to either
2044 link(bf("server"))(securityequalserver) or
2045 link(bf("domain"))(securityequaldomain) which causes
2046 url(bf(smbd))(smbd.8.html) to authenticate against another server.
2048 label(exec)
2049 dit(bf(exec (S)))
2051 This is a synonym for link(bf(preexec))(preexec).
2053 label(fake directory create times)
2054 dit(bf(fake directory create times (S)))
2056 NTFS and Windows VFAT file systems keep a create time for all files
2057 and directories. This is not the same as the ctime - status change
2058 time - that Unix keeps, so Samba by default reports the earliest of
2059 the various times Unix does keep. Setting this parameter for a share
2060 causes Samba to always report midnight 1-1-1980 as the create time for
2061 directories.
2063 This option is mainly used as a compatibility option for Visual C++
2064 when used against Samba shares. Visual C++ generated makefiles have
2065 the object directory as a dependency for each object file, and a make
2066 rule to create the directory. Also, when NMAKE compares timestamps it
2067 uses the creation time when examining a directory. Thus the object
2068 directory will be created if it does not exist, but once it does exist
2069 it will always have an earlier timestamp than the object files it
2070 contains.
2072 However, Unix time semantics mean that the create time reported by
2073 Samba will be updated whenever a file is created or deleted in the
2074 directory. NMAKE therefore finds all object files in the object
2075 directory bar the last one built are out of date compared to the
2076 directory and rebuilds them. Enabling this option ensures directories
2077 always predate their contents and an NMAKE build will proceed as
2078 expected.
2080   bf(Default:)
2081 tt(     fake directory create times = False)
2083   bf(Example:)
2084 tt(     fake directory create times = True)
2086 label(fakeoplocks)
2087 dit(bf(fake oplocks (S)))
2089 Oplocks are the way that SMB clients get permission from a server to
2090 locally cache file operations. If a server grants an oplock
2091 (opportunistic lock) then the client is free to assume that it is the
2092 only one accessing the file and it will aggressively cache file
2093 data. With some oplock types the client may even cache file open/close
2094 operations. This can give enormous performance benefits.
2096 When you set tt("fake oplocks = yes") url(bf(smbd))(smbd.8.html) will
2097 always grant oplock requests no matter how many clients are using the
2098 file.
2100 It is generally much better to use the real link(bf(oplocks))(oplocks)
2101 support rather than this parameter.
2103 If you enable this option on all read-only shares or shares that you
2104 know will only be accessed from one client at a time such as
2105 physically read-only media like CDROMs, you will see a big performance
2106 improvement on many operations. If you enable this option on shares
2107 where multiple clients may be accessing the files read-write at the
2108 same time you can get data corruption. Use this option carefully!
2110 This option is disabled by default.
2112 label(followsymlinks)
2113 dit(bf(follow symlinks (S)))
2115 This parameter allows the Samba administrator to stop
2116 url(bf(smbd))(smbd.8.html) from following symbolic links in a
2117 particular share. Setting this parameter to em("No") prevents any file
2118 or directory that is a symbolic link from being followed (the user
2119 will get an error).  This option is very useful to stop users from
2120 adding a symbolic link to tt(/etc/passwd) in their home directory for
2121 instance.  However it will slow filename lookups down slightly.
2123 This option is enabled (i.e. url(bf(smbd))(smbd.8.html) will follow
2124 symbolic links) by default.
2126 label(forcecreatemode)
2127 dit(bf(force create mode (S)))
2129 This parameter specifies a set of UNIX mode bit permissions that will
2130 em(*always*) be set on a file created by Samba. This is done by
2131 bitwise 'OR'ing these bits onto the mode bits of a file that is being
2132 created. The default for this parameter is (in octal) 000. The modes
2133 in this parameter are bitwise 'OR'ed onto the file mode after the mask
2134 set in the link(bf("create mask"))(createmask) parameter is applied.
2136 See also the parameter link(bf("create mask"))(createmask) for details
2137 on masking mode bits on created files.
2139   bf(Default:)
2140 tt(     force create mode = 000)
2142   bf(Example:)
2143 tt(     force create mode = 0755)
2145 would force all created files to have read and execute permissions set
2146 for 'group' and 'other' as well as the read/write/execute bits set for
2147 the 'user'.
2149 label(forcedirectorymode)
2150 dit(bf(force directory mode (S)))
2152 This parameter specifies a set of UNIX mode bit permissions that will
2153 em(*always*) be set on a directory created by Samba. This is done by
2154 bitwise 'OR'ing these bits onto the mode bits of a directory that is
2155 being created. The default for this parameter is (in octal) 0000 which
2156 will not add any extra permission bits to a created directory. This
2157 operation is done after the mode mask in the parameter
2158 link(bf("directory mask"))(directorymask) is applied.
2160 See also the parameter link(bf("directory mask"))(directorymask) for
2161 details on masking mode bits on created directories.
2163   bf(Default:)
2164 tt(     force directory mode = 000)
2166   bf(Example:)
2167 tt(     force directory mode = 0755)
2169 would force all created directories to have read and execute
2170 permissions set for 'group' and 'other' as well as the
2171 read/write/execute bits set for the 'user'.
2173 label(forcegroup)
2174 dit(bf(force group (S)))
2176 This specifies a UNIX group name that will be assigned as the default
2177 primary group for all users connecting to this service. This is useful
2178 for sharing files by ensuring that all access to files on service will
2179 use the named group for their permissions checking. Thus, by assigning
2180 permissions for this group to the files and directories within this
2181 service the Samba administrator can restrict or allow sharing of these
2182 files.
2184   bf(Default:)
2185 tt(     no forced group)
2187   bf(Example:)
2188 tt(     force group = agroup)
2190 label(forceuser)
2191 dit(bf(force user (S)))
2193 This specifies a UNIX user name that will be assigned as the default
2194 user for all users connecting to this service. This is useful for
2195 sharing files. You should also use it carefully as using it
2196 incorrectly can cause security problems.
2198 This user name only gets used once a connection is established. Thus
2199 clients still need to connect as a valid user and supply a valid
2200 password. Once connected, all file operations will be performed as the
2201 tt("forced user"), no matter what username the client connected as.
2203 This can be very useful.
2205   bf(Default:)
2206 tt(     no forced user)
2208   bf(Example:)
2209 tt(     force user = auser)
2211 label(fstype)
2212 dit(bf(fstype (S)))
2214 This parameter allows the administrator to configure the string that
2215 specifies the type of filesystem a share is using that is reported by
2216 url(bf(smbd))(smbd.8.html) when a client queries the filesystem type
2217 for a share. The default type is bf("NTFS") for compatibility with
2218 Windows NT but this can be changed to other strings such as "Samba" or
2219 "FAT" if required.
2221   bf(Default:)
2222 tt(     fstype = NTFS)
2224   bf(Example:)
2225 tt(     fstype = Samba)
2227 label(getwdcache)
2228 dit(bf(getwd cache (G)))
2230 This is a tuning option. When this is enabled a caching algorithm
2231 will be used to reduce the time taken for getwd() calls. This can have
2232 a significant impact on performance, especially when the
2233 link(bf(widelinks))(widelinks) parameter is set to False.
2235   bf(Default:)
2236 tt(     getwd cache = No)
2238   bf(Example:)
2239 tt(     getwd cache = Yes)
2241 label(group)
2242 dit(bf(group (S)))
2244 Synonym for link(bf("force group"))(forcegroup).
2246 label(guestaccount)
2247 dit(bf(guest account (S)))
2249 This is a username which will be used for access to services which are
2250 specified as link(bf('guest ok'))(guestok) (see below). Whatever
2251 privileges this user has will be available to any client connecting to
2252 the guest service. Typically this user will exist in the password
2253 file, but will not have a valid login. The user account bf("ftp") is
2254 often a good choice for this parameter. If a username is specified in
2255 a given service, the specified username overrides this one.
2257 One some systems the default guest account "nobody" may not be able to
2258 print. Use another account in this case. You should test this by
2259 trying to log in as your guest user (perhaps by using the tt("su -")
2260 command) and trying to print using the system print command such as
2261 bf(lpr (1)) or bf(lp (1)).
2263   bf(Default:)
2264 tt(     specified at compile time, usually "nobody")
2266   bf(Example:)
2267 tt(     guest account = ftp)
2269 label(guestok)
2270 dit(bf(guest ok (S)))
2272 If this parameter is em('yes') for a service, then no password is
2273 required to connect to the service. Privileges will be those of the
2274 link(bf(guest account))(guestaccount).
2276 See the section below on link(bf(security))(security) for more
2277 information about this option.
2279   bf(Default:)
2280 tt(     guest ok = no)
2282   bf(Example:)
2283 tt(     guest ok = yes)
2285 label(guestonly)
2286 dit(bf(guest only (S)))
2288 If this parameter is em('yes') for a service, then only guest
2289 connections to the service are permitted. This parameter will have no
2290 affect if link(bf("guest ok"))(guestok) or link(bf("public"))(public)
2291 is not set for the service.
2293 See the section below on link(bf(security))(security) for more
2294 information about this option.
2296   bf(Default:)
2297 tt(     guest only = no)
2299   bf(Example:)
2300 tt(     guest only = yes)
2302 label(hidedotfiles)
2303 dit(bf(hide dot files (S)))
2305 This is a boolean parameter that controls whether files starting with
2306 a dot appear as hidden files.
2308   bf(Default:)
2309 tt(     hide dot files = yes)
2311   bf(Example:)
2312 tt(     hide dot files = no)
2315 label(hidefiles)
2316 dit(bf(hide files(S)))
2318 This is a list of files or directories that are not visible but are
2319 accessible.  The DOS 'hidden' attribute is applied to any files or
2320 directories that match.
2322 Each entry in the list must be separated by a tt('/'), which allows
2323 spaces to be included in the entry.  tt('*') and tt('?') can be used
2324 to specify multiple files or directories as in DOS wildcards.
2326 Each entry must be a Unix path, not a DOS path and must not include the 
2327 Unix directory separator tt('/').
2329 Note that the case sensitivity option is applicable in hiding files.
2331 Setting this parameter will affect the performance of Samba, as it
2332 will be forced to check all files and directories for a match as they
2333 are scanned.
2335 See also link(bf("hide dot files"))(hidedotfiles), link(bf("veto
2336 files"))(vetofiles) and link(bf("case sensitive"))(casesensitive).
2338   bf(Default)
2339 verb(
2340         No files or directories are hidden by this option (dot files are
2341         hidden by default because of the "hide dot files" option).
2344   bf(Example)
2345 tt(     hide files = /.*/DesktopFolderDB/TrashFor%m/resource.frk/)
2347 The above example is based on files that the Macintosh SMB client
2348 (DAVE) available from url(bf(Thursby))(http://www.thursby.com) creates for
2349 internal use, and also still hides all files beginning with a dot.
2351 label(homedirmap)
2352 dit(bf(homedir map (G)))
2354 If link(bf("nis homedir"))(nishomedir) is true, and
2355 url(bf(smbd))(smbd.8.html) is also acting as a Win95/98 link(bf(logon
2356 server))(domainlogons) then this parameter specifies the NIS (or YP)
2357 map from which the server for the user's home directory should be
2358 extracted.  At present, only the Sun auto.home map format is
2359 understood. The form of the map is:
2361 tt(username     server:/some/file/system)
2363 and the program will extract the servername from before the first
2364 tt(':').  There should probably be a better parsing system that copes
2365 with different map formats and also Amd (another automounter) maps.
2367 NB: A working NIS is required on the system for this option to work.
2369 See also link(bf("nis homedir"))(nishomedir), link(bf(domain
2370 logons))(domainlogons).
2372   bf(Default:)
2373 tt(     homedir map = auto.home)
2375   bf(Example:)
2376 tt(     homedir map = amd.homedir)
2378 label(hostsallow)
2379 dit(bf(hosts allow (S)))
2381 A synonym for this parameter is link(bf('allow hosts'))(allowhosts)
2383 This parameter is a comma, space, or tab delimited set of hosts which
2384 are permitted to access a service.
2386 If specified in the link(bf([global]))(global) section then it will
2387 apply to all services, regardless of whether the individual service
2388 has a different setting.
2390 You can specify the hosts by name or IP number. For example, you could
2391 restrict access to only the hosts on a Class C subnet with something
2392 like tt("allow hosts = 150.203.5."). The full syntax of the list is
2393 described in the man page bf(hosts_access (5)). Note that this man
2394 page may not be present on your system, so a brief description will
2395 be given here also.
2397 em(NOTE:) IF you wish to allow the url(bf(smbpasswd
2398 (8)))(smbpasswd.html.8) program to be run by local users to change
2399 their Samba passwords using the local url(bf(smbd (8)))(smbd.8.html)
2400 daemon, then you em(MUST) ensure that the localhost is listed in your
2401 bf(hosts allow) list, as url(bf(smbpasswd (8)))(smbpasswd.html.8) runs
2402 in client-server mode and is seen by the local
2403 url(bf(smbd))(smbd.8.html) process as just another client.
2405 You can also specify hosts by network/netmask pairs and by netgroup
2406 names if your system supports netgroups. The em(EXCEPT) keyword can also
2407 be used to limit a wildcard list. The following examples may provide
2408 some help:
2410 bf(Example 1): allow localhost and all IPs in 150.203.*.* except one
2412 tt(     hosts allow = localhost, 150.203. EXCEPT 150.203.6.66)
2414 bf(Example 2): allow localhost and hosts that match the given network/netmask
2416 tt(     hosts allow = localhost, 150.203.15.0/255.255.255.0)
2418 bf(Example 3): allow a localhost plus a couple of hosts
2420 tt(     hosts allow = localhost, lapland, arvidsjaur)
2422 bf(Example 4): allow only hosts in NIS netgroup "foonet" or localhost, but 
2423 deny access from one particular host
2425 tt(     hosts allow = @foonet, localhost)
2427 tt(     hosts deny = pirate)
2429 Note that access still requires suitable user-level passwords.
2431 See url(bf(testparm (1)))(testparm.1.html) for a way of testing your
2432 host access to see if it does what you expect.
2434   bf(Default:)
2435 tt(     none (i.e., all hosts permitted access))
2437   bf(Example:)
2438 tt(     allow hosts = 150.203.5. localhost myhost.mynet.edu.au)
2441 label(hostsdeny)
2442 dit(bf(hosts deny (S)))
2444 The opposite of link(bf('hosts allow'))(hostsallow) - hosts listed
2445 here are em(NOT) permitted access to services unless the specific
2446 services have their own lists to override this one. Where the lists
2447 conflict, the link(bf('allow'))(hostsallow) list takes precedence.
2449   bf(Default:)
2450 tt(     none (i.e., no hosts specifically excluded))
2452   bf(Example:)
2453 tt(     hosts deny = 150.203.4. badhost.mynet.edu.au)
2455 label(hostsequiv)
2456 dit(bf(hosts equiv (G)))
2458 If this global parameter is a non-null string, it specifies the name
2459 of a file to read for the names of hosts and users who will be allowed
2460 access without specifying a password.
2462 This is not be confused with link(bf(hosts allow))(hostsallow) which
2463 is about hosts access to services and is more useful for guest
2464 services. bf(hosts equiv) may be useful for NT clients which will not
2465 supply passwords to samba.
2467 NOTE: The use of bf(hosts equiv) can be a major security hole. This is
2468 because you are trusting the PC to supply the correct username. It is
2469 very easy to get a PC to supply a false username. I recommend that the
2470 bf(hosts equiv) option be only used if you really know what you are
2471 doing, or perhaps on a home network where you trust your spouse and
2472 kids. And only if you em(really) trust them :-).
2474   bf(Default)
2475 tt(     No host equivalences)
2477   bf(Example)
2478 tt(     hosts equiv = /etc/hosts.equiv)
2480 label(include)
2481 dit(bf(include (G)))
2483 This allows you to include one config file inside another.  The file
2484 is included literally, as though typed in place.
2486 It takes the standard substitutions, except link(bf(%u))(percentu),
2487 link(bf(%P))(percentP) and link(bf(%S))(percentS).
2489 label(interfaces)
2490 dit(bf(interfaces (G)))
2492 This option allows you to setup multiple network interfaces, so that
2493 Samba can properly handle browsing on all interfaces.
2495 The option takes a list of ip/netmask pairs. The netmask may either be
2496 a bitmask, or a bitlength.
2498 For example, the following line:
2500 tt(interfaces = 192.168.2.10/24 192.168.3.10/24)
2502 would configure two network interfaces with IP addresses 192.168.2.10
2503 and 192.168.3.10. The netmasks of both interfaces would be set to
2504 255.255.255.0.
2506 You could produce an equivalent result by using:
2508 tt(interfaces = 192.168.2.10/255.255.255.0 192.168.3.10/255.255.255.0)
2510 if you prefer that format.
2512 If this option is not set then Samba will attempt to find a primary
2513 interface, but won't attempt to configure more than one interface.
2515 See also link(bf("bind interfaces only"))(bindinterfacesonly).
2517 label(invalidusers)
2518 dit(bf(invalid users (S)))
2520 This is a list of users that should not be allowed to login to this
2521 service. This is really a em("paranoid") check to absolutely ensure an
2522 improper setting does not breach your security.
2524 A name starting with a tt('@') is interpreted as an NIS netgroup first
2525 (if your system supports NIS), and then as a UNIX group if the name
2526 was not found in the NIS netgroup database.
2528 A name starting with tt('+') is interpreted only by looking in the
2529 UNIX group database. A name starting with tt('&') is interpreted only
2530 by looking in the NIS netgroup database (this requires NIS to be
2531 working on your system). The characters tt('+') and tt('&') may be
2532 used at the start of the name in either order so the value
2533 tt("+&group") means check the UNIX group database, followed by the NIS
2534 netgroup database, and the value tt("&+group") means check the NIS
2535 netgroup database, followed by the UNIX group database (the same as
2536 the tt('@') prefix).
2538 The current servicename is substituted for
2539 link(bf(%S))(percentS). This is useful in the link(bf([homes]))(homes)
2540 section.
2542 See also link(bf("valid users"))(validusers).
2544   bf(Default:)
2545 tt(     No invalid users)
2547   bf(Example:)
2548 tt(     invalid users = root fred admin @wheel)
2550 label(keepalive)
2551 dit(bf(keepalive (G)))
2553 The value of the parameter (an integer) represents the number of
2554 seconds between bf('keepalive') packets. If this parameter is zero, no
2555 keepalive packets will be sent. Keepalive packets, if sent, allow the
2556 server to tell whether a client is still present and responding.
2558 Keepalives should, in general, not be needed if the socket being used
2559 has the SO_KEEPALIVE attribute set on it (see link(bf("socket
2560 options"))(socketoptions)). Basically you should only use this option
2561 if you strike difficulties.
2563   bf(Default:)
2564 tt(     keepalive = 0)
2566   bf(Example:)
2567 tt(     keepalive = 60)
2569 label(kerneloplocks)
2570 dit(bf(kernel oplocks (G)))
2572 For UNIXs that support kernel based link(bf(oplocks))(oplocks)
2573 (currently only IRIX but hopefully also Linux and FreeBSD soon) this
2574 parameter allows the use of them to be turned on or off.
2576 Kernel oplocks support allows Samba link(bf(oplocks))(oplocks) to be
2577 broken whenever a local UNIX process or NFS operation accesses a file
2578 that url(bf(smbd))(smbd.8.html) has oplocked. This allows complete
2579 data consistency between SMB/CIFS, NFS and local file access (and is a
2580 em(very) cool feature :-).
2582 This parameter defaults to em("On") on systems that have the support,
2583 and em("off") on systems that don't. You should never need to touch
2584 this parameter.
2586 label(ldapfilter)
2587 dit(bf(ldap filter (G)))
2589 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2590 password database stored on an LDAP server back-end. These options
2591 are only available if your version of Samba was configured with
2592 the bf(--with-ldap) option.
2594 This parameter specifies an LDAP search filter used to search for a
2595 user name in the LDAP database. It must contain the string
2596 link(bf(%u))(percentU) which will be replaced with the user being
2597 searched for.
2599   bf(Default:)
2600 tt(     empty string.)
2602 label(ldapport)
2603 dit(bf(ldap port (G)))
2605 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2606 password database stored on an LDAP server back-end. These options
2607 are only available if your version of Samba was configured with
2608 the bf(--with-ldap) option.
2610 This parameter specifies the TCP port number to use to contact
2611 the LDAP server on.
2613   bf(Default:)
2614 tt(     ldap port = 389.)
2616 label(ldaproot)
2617 dit(bf(ldap root (G)))
2619 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2620 password database stored on an LDAP server back-end. These options
2621 are only available if your version of Samba was configured with
2622 the bf(--with-ldap) option.
2624 This parameter specifies the entity to bind to the LDAP server
2625 as (essentially the LDAP username) in order to be able to perform
2626 queries and modifications on the LDAP database.
2628 See also link(bf(ldap root passwd))(ldaprootpasswd).
2630   bf(Default:)
2631 tt(     empty string (no user defined))
2633 label(ldaprootpasswd)
2634 dit(bf(ldap root passwd (G)))
2636 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2637 password database stored on an LDAP server back-end. These options
2638 are only available if your version of Samba was configured with
2639 the bf(--with-ldap) option.
2641 This parameter specifies the password for the entity to bind to the
2642 LDAP server as (the password for this LDAP username) in order to be
2643 able to perform queries and modifications on the LDAP database.
2645 em(BUGS:) This parameter should em(NOT) be a readable parameter
2646 in the bf(smb.conf) file and will be removed once a correct
2647 storage place is found.
2649 See also link(bf(ldap root))(ldaproot).
2651   bf(Default:)
2652 tt(     empty string.)
2654 label(ldapserver)
2655 dit(bf(ldap server (G)))
2657 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2658 password database stored on an LDAP server back-end. These options
2659 are only available if your version of Samba was configured with
2660 the bf(--with-ldap) option.
2662 This parameter specifies the DNS name of the LDAP server to use
2663 for SMB/CIFS authentication purposes.
2665   bf(Default:)
2666 tt(     ldap server = localhost)
2668 label(ldapsuffix)
2669 dit(bf(ldap suffix (G)))
2671 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2672 password database stored on an LDAP server back-end. These options
2673 are only available if your version of Samba was configured with
2674 the bf(--with-ldap) option.
2676 This parameter specifies the tt("dn") or LDAP em("distinguished name")
2677 that tells url(bf(smbd))(smbd.8.html) to start from when searching
2678 for an entry in the LDAP password database.
2680   bf(Default:)
2681 tt(     empty string.)
2683 label(lmannounce)
2684 dit(bf(lm announce (G)))
2686 This parameter determines if url(bf(nmbd))(nmbd.8.html) will produce
2687 Lanman announce broadcasts that are needed by bf(OS/2) clients in order
2688 for them to see the Samba server in their browse list. This parameter
2689 can have three values, tt("true"), tt("false"), or tt("auto"). The
2690 default is tt("auto").  If set to tt("false") Samba will never produce
2691 these broadcasts. If set to tt("true") Samba will produce Lanman
2692 announce broadcasts at a frequency set by the parameter link(bf("lm
2693 interval"))(lminterval). If set to tt("auto") Samba will not send Lanman
2694 announce broadcasts by default but will listen for them. If it hears
2695 such a broadcast on the wire it will then start sending them at a
2696 frequency set by the parameter link(bf("lm interval"))(lminterval).
2698 See also link(bf("lm interval"))(lminterval).
2700   bf(Default:)
2701 tt(     lm announce = auto)
2703   bf(Example:)
2704 tt(     lm announce = true)
2706 label(lminterval)
2707 dit(bf(lm interval (G)))
2709 If Samba is set to produce Lanman announce broadcasts needed by
2710 bf(OS/2) clients (see the link(bf("lm announce"))(lmannounce)
2711 parameter) then this parameter defines the frequency in seconds with
2712 which they will be made.  If this is set to zero then no Lanman
2713 announcements will be made despite the setting of the link(bf("lm
2714 announce"))(lmannounce) parameter.
2716 See also link(bf("lm announce"))(lmannounce).
2718   bf(Default:)
2719 tt(     lm interval = 60)
2721   bf(Example:)
2722 tt(     lm interval = 120)
2724 label(loadprinters)
2725 dit(bf(load printers (G)))
2727 A boolean variable that controls whether all printers in the printcap
2728 will be loaded for browsing by default. See the
2729 link(bf("printers"))(printers) section for more details.
2731   bf(Default:)
2732 tt(     load printers = yes)
2734   bf(Example:)
2735 tt(     load printers = no)
2737 label(localmaster)
2738 dit(bf(local master (G)))
2740 This option allows url(bf(nmbd))(nmbd.8.html) to try and become a
2741 local master browser on a subnet. If set to False then
2742 url(bf(nmbd))(nmbd.8.html) will not attempt to become a local master
2743 browser on a subnet and will also lose in all browsing elections. By
2744 default this value is set to true. Setting this value to true doesn't
2745 mean that Samba will em(become) the local master browser on a subnet,
2746 just that url(bf(nmbd))(nmbd.8.html) will em(participate) in
2747 elections for local master browser.
2749 Setting this value to False will cause url(bf(nmbd))(nmbd.8.html)
2750 em(never) to become a local master browser.
2752   bf(Default:)
2753 tt(     local master = yes)
2755 label(lock dir)
2756 dit(bf(lock dir (G)))
2758 Synonym for link(bf("lock directory"))(lockdirectory).
2760 label(lockdirectory)
2761 dit(bf(lock directory (G)))
2763 This option specifies the directory where lock files will be placed.
2764 The lock files are used to implement the link(bf("max
2765 connections"))(maxconnections) option.
2767   bf(Default:)
2768 tt(     lock directory = /tmp/samba)
2770   bf(Example:)
2771 tt(     lock directory = /usr/local/samba/var/locks)
2773 label(locking)
2774 dit(bf(locking (S)))
2776 This controls whether or not locking will be performed by the server
2777 in response to lock requests from the client.
2779 If tt("locking = no"), all lock and unlock requests will appear to
2780 succeed and all lock queries will indicate that the queried lock is
2781 clear.
2783 If tt("locking = yes"), real locking will be performed by the server.
2785 This option em(may) be useful for read-only filesystems which em(may)
2786 not need locking (such as cdrom drives), although setting this
2787 parameter of tt("no") is not really recommended even in this case.
2789 Be careful about disabling locking either globally or in a specific
2790 service, as lack of locking may result in data corruption. You should
2791 never need to set this parameter.
2793   bf(Default:)
2794 tt(     locking = yes)
2796   bf(Example:)
2797 tt(     locking = no)
2799 label(logfile)
2800 dit(bf(log file (G)))
2802 This options allows you to override the name of the Samba log file
2803 (also known as the debug file).
2805 This option takes the standard substitutions, allowing you to have
2806 separate log files for each user or machine.
2808   bf(Example:)
2809 tt(     log file = /usr/local/samba/var/log.%m)
2811 label(loglevel)
2812 dit(bf(log level (G)))
2814 Synonym for link(bf("debug level"))(debuglevel).
2816 label(logondrive)
2817 dit(bf(logon drive (G)))
2819 This parameter specifies the local path to which the home directory
2820 will be connected (see link(bf("logon home"))(logonhome)) and is only
2821 used by NT Workstations. 
2823 Note that this option is only useful if Samba is set up as a
2824 link(bf(logon server))(domainlogons).
2826   bf(Example:)
2827 tt(     logon drive = h:)
2829 label(logonhome)
2830 dit(bf(logon home (G)))
2832 This parameter specifies the home directory location when a Win95/98 or
2833 NT Workstation logs into a Samba PDC.  It allows you to do 
2835 tt("NET USE H: /HOME")
2837 from a command prompt, for example.
2839 This option takes the standard substitutions, allowing you to have
2840 separate logon scripts for each user or machine.
2842 Note that this option is only useful if Samba is set up as a
2843 link(bf(logon server))(domainlogons).
2845   bf(Example:)
2846 tt(     logon home = "\\remote_smb_server\%U")
2848   bf(Default:)
2849 tt(     logon home = "\\%N\%U")
2851 label(logonpath)
2852 dit(bf(logon path (G)))
2854 This parameter specifies the home directory where roaming profiles
2855 (USER.DAT / USER.MAN files for Windows 95/98) are stored.
2857 This option takes the standard substitutions, allowing you to have
2858 separate logon scripts for each user or machine.  It also specifies
2859 the directory from which the tt("desktop"), tt("start menu"),
2860 tt("network neighborhood") and tt("programs") folders, and their
2861 contents, are loaded and displayed on your Windows 95/98 client.
2863 The share and the path must be readable by the user for the
2864 preferences and directories to be loaded onto the Windows 95/98
2865 client.  The share must be writeable when the logs in for the first
2866 time, in order that the Windows 95/98 client can create the user.dat
2867 and other directories.
2869 Thereafter, the directories and any of the contents can, if required, be
2870 made read-only.  It is not advisable that the USER.DAT file be made
2871 read-only - rename it to USER.MAN to achieve the desired effect (a
2872 em(MAN)datory profile).
2874 Windows clients can sometimes maintain a connection to the [homes]
2875 share, even though there is no user logged in.  Therefore, it is vital
2876 that the logon path does not include a reference to the homes share
2877 (i.e. setting this parameter to tt(\\%N\HOMES\profile_path) will cause
2878 problems).
2880 This option takes the standard substitutions, allowing you to have
2881 separate logon scripts for each user or machine.
2883 Note that this option is only useful if Samba is set up as a
2884 link(bf(logon server))(domainlogons).
2886   bf(Default:)
2887 tt(     logon path = \\%N\%U\profile)
2889   bf(Example:)
2890 tt(     logon path = \\PROFILESERVER\HOME_DIR\%U\PROFILE)
2892 label(logonscript)
2893 dit(bf(logon script (G)))
2895 This parameter specifies the batch file (.bat) or NT command file
2896 (.cmd) to be downloaded and run on a machine when a user successfully
2897 logs in.  The file must contain the DOS style cr/lf line endings.
2898 Using a DOS-style editor to create the file is recommended.
2900 The script must be a relative path to the tt([netlogon]) service.  If
2901 the tt([netlogon]) service specifies a link(bf(path))(path) of
2902 /usr/local/samba/netlogon, and logon script = STARTUP.BAT, then the
2903 file that will be downloaded is:
2905 tt(/usr/local/samba/netlogon/STARTUP.BAT)
2907 The contents of the batch file is entirely your choice.  A suggested
2908 command would be to add tt(NET TIME \\SERVER /SET /YES), to force every
2909 machine to synchronize clocks with the same time server.  Another use
2910 would be to add tt(NET USE U: \\SERVER\UTILS) for commonly used
2911 utilities, or tt(NET USE Q: \\SERVER\ISO9001_QA) for example.
2913 Note that it is particularly important not to allow write access to
2914 the tt([netlogon]) share, or to grant users write permission on the
2915 batch files in a secure environment, as this would allow the batch
2916 files to be arbitrarily modified and security to be breached.
2918 This option takes the standard substitutions, allowing you to have
2919 separate logon scripts for each user or machine.
2921 Note that this option is only useful if Samba is set up as a
2922 link(bf(logon server))(domainlogons).
2924   bf(Example:)
2925 tt(     logon script = scripts\%U.bat)
2927 label(lppausecommand)
2928 dit(bf(lppause command (S)))
2930 This parameter specifies the command to be executed on the server host
2931 in order to stop printing or spooling a specific print job.
2933 This command should be a program or script which takes a printer name
2934 and job number to pause the print job. One way of implementing this is
2935 by using job priorities, where jobs having a too low priority won't be
2936 sent to the printer.
2938 If a tt("%p") is given then the printername is put in its place. A
2939 tt("%j") is replaced with the job number (an integer).  On HPUX (see
2940 link(bf(printing=hpux))(printing)), if the tt("-p%p") option is added
2941 to the lpq command, the job will show up with the correct status,
2942 i.e. if the job priority is lower than the set fence priority it will
2943 have the PAUSED status, whereas if the priority is equal or higher it
2944 will have the SPOOLED or PRINTING status.
2946 Note that it is good practice to include the absolute path in the
2947 lppause command as the PATH may not be available to the server.
2949 See also the link(bf("printing"))(printing) parameter.
2951   bf(Default:)
2952         Currently no default value is given to this string, unless the
2953 value of the link(bf("printing"))(printing) parameter is tt(SYSV), in
2954 which case the default is :
2956 tt(     lp -i %p-%j -H hold)
2958 or if the value of the link(bf("printing"))(printing) parameter is tt(softq),
2959 then the default is:
2961 tt(     qstat -s -j%j -h)
2963   bf(Example for HPUX:)
2964         lppause command = /usr/bin/lpalt %p-%j -p0
2966 label(lpqcachetime)
2967 dit(bf(lpq cache time (G)))
2969 This controls how long lpq info will be cached for to prevent the
2970 bf(lpq) command being called too often. A separate cache is kept for
2971 each variation of the bf(lpq) command used by the system, so if you
2972 use different bf(lpq) commands for different users then they won't
2973 share cache information.
2975 The cache files are stored in tt(/tmp/lpq.xxxx) where xxxx is a hash of
2976 the bf(lpq) command in use.
2978 The default is 10 seconds, meaning that the cached results of a
2979 previous identical bf(lpq) command will be used if the cached data is
2980 less than 10 seconds old. A large value may be advisable if your
2981 bf(lpq) command is very slow.
2983 A value of 0 will disable caching completely.
2985 See also the link(bf("printing"))(printing) parameter.
2987   bf(Default:)
2988 tt(     lpq cache time = 10)
2990   bf(Example:)
2991 tt(     lpq cache time = 30)
2993 label(lpqcommand)
2994 dit(bf(lpq command (S)))
2996 This parameter specifies the command to be executed on the server host
2997 in order to obtain tt("lpq")-style printer status information.
2999 This command should be a program or script which takes a printer name
3000 as its only parameter and outputs printer status information.
3002 Currently eight styles of printer status information are supported;
3003 BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX and SOFTQ. This covers most UNIX
3004 systems. You control which type is expected using the
3005 link(bf("printing ="))(printing) option.
3007 Some clients (notably Windows for Workgroups) may not correctly send
3008 the connection number for the printer they are requesting status
3009 information about. To get around this, the server reports on the first
3010 printer service connected to by the client. This only happens if the
3011 connection number sent is invalid.
3013 If a tt(%p) is given then the printername is put in its place. Otherwise
3014 it is placed at the end of the command.
3016 Note that it is good practice to include the absolute path in the bf(lpq
3017 command) as the PATH may not be available to the server.
3019 See also the link(bf("printing"))(printing) parameter.
3021   bf(Default:)
3022 tt(        depends on the setting of printing =)
3024   bf(Example:)
3025 tt(     lpq command = /usr/bin/lpq %p)
3027 label(lpresumecommand)
3028 dit(bf(lpresume command (S)))
3030 This parameter specifies the command to be executed on the server host
3031 in order to restart or continue printing or spooling a specific print
3032 job.
3034 This command should be a program or script which takes a printer name
3035 and job number to resume the print job. See also the link(bf("lppause
3036 command"))(lppausecommand) parameter.
3038 If a tt(%p) is given then the printername is put in its place. A
3039 tt(%j) is replaced with the job number (an integer).
3041 Note that it is good practice to include the absolute path in the bf(lpresume
3042 command) as the PATH may not be available to the server.
3044 See also the link(bf("printing"))(printing) parameter.
3046   bf(Default:)
3048         Currently no default value is given to this string, unless the
3049 value of the link(bf("printing"))(printing) parameter is tt(SYSV), in
3050 which case the default is :
3052 tt(     lp -i %p-%j -H resume)
3054 or if the value of the link(bf("printing"))(printing) parameter is tt(softq),
3055 then the default is:
3057 tt(     qstat -s -j%j -r)
3059   bf(Example for HPUX:)
3060 tt(        lpresume command = /usr/bin/lpalt %p-%j -p2)
3062 label(lprmcommand)
3063 dit(bf(lprm command (S)))
3065 This parameter specifies the command to be executed on the server host
3066 in order to delete a print job.
3068 This command should be a program or script which takes a printer name
3069 and job number, and deletes the print job.
3071 If a tt(%p) is given then the printername is put in its place. A
3072 tt(%j) is replaced with the job number (an integer).
3074 Note that it is good practice to include the absolute path in the
3075 bf(lprm command) as the PATH may not be available to the server.
3077 See also the link(bf("printing"))(printing) parameter.
3079   bf(Default:)
3080 tt(     depends on the setting of "printing =")
3082   bf(Example 1:)
3083 tt(     lprm command = /usr/bin/lprm -P%p %j)
3085   bf(Example 2:)
3086 tt(     lprm command = /usr/bin/cancel %p-%j)
3088 label(machinepasswordtimeout)
3089 dit(bf(machine password timeout (G)))
3091 If a Samba server is a member of an Windows NT Domain (see the
3092 link(bf("security=domain"))(securityequaldomain)) parameter) then
3093 periodically a running url(bf(smbd))(smbd.8.html) process will try and
3094 change the bf(MACHINE ACCOUNT PASWORD) stored in the file called
3095 tt(<Domain>.<Machine>.mac) where tt(<Domain>) is the name of the
3096 Domain we are a member of and tt(<Machine>) is the primary
3097 link(bf("NetBIOS name"))(netbiosname) of the machine
3098 url(bf(smbd))(smbd.8.html) is running on. This parameter specifies how
3099 often this password will be changed, in seconds. The default is one
3100 week (expressed in seconds), the same as a Windows NT Domain member
3101 server.
3103 See also url(bf(smbpasswd (8)))(smbpasswd.8.html), and the
3104 link(bf("security=domain"))(securityequaldomain)) parameter.
3106   bf(Default:)
3107 tt(     machine password timeout = 604800)
3109 label(magicoutput)
3110 dit(bf(magic output (S)))
3112 This parameter specifies the name of a file which will contain output
3113 created by a magic script (see the link(bf("magic
3114 script"))(magicscript) parameter below).
3116 Warning: If two clients use the same link(bf("magic
3117 script"))(magicscript) in the same directory the output file content
3118 is undefined.
3120   bf(Default:)
3121 tt(     magic output = <magic script name>.out)
3123   bf(Example:)
3124 tt(     magic output = myfile.txt)
3126 label(magicscript)
3127 dit(bf(magic script (S)))
3129 This parameter specifies the name of a file which, if opened, will be
3130 executed by the server when the file is closed. This allows a UNIX
3131 script to be sent to the Samba host and executed on behalf of the
3132 connected user.
3134 Scripts executed in this way will be deleted upon completion,
3135 permissions permitting.
3137 If the script generates output, output will be sent to the file
3138 specified by the link(bf("magic output"))(magicoutput) parameter (see
3139 above).
3141 Note that some shells are unable to interpret scripts containing
3142 carriage-return-linefeed instead of linefeed as the end-of-line
3143 marker. Magic scripts must be executable em("as is") on the host,
3144 which for some hosts and some shells will require filtering at the DOS
3145 end.
3147 Magic scripts are em(EXPERIMENTAL) and should em(NOT) be relied upon.
3149   bf(Default:)
3150 tt(     None. Magic scripts disabled.)
3152   bf(Example:)
3153 tt(     magic script = user.csh)
3155 label(manglecase)
3156 dit(bf(mangle case (S)))
3158 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING).
3160 label(manglelocks)
3161 dit(bf(mangle locks (S)))
3163 This option is new with Samba 2.0.4 and above. It only has an effect on locking
3164 when Samba is running on a 32-bit platform such as Linux (2.0, 2.2) on x86 but not on
3165 64-bit platforms such as IRIX, Solaris 2.7 and above, AIX 4.2 etc.
3167 This option was introduced as NT clients have a bug in that they still send 64-bit
3168 lock requests to servers like Samba on 32-bit platforms that have explicitly 
3169 told the client that they do not support 64-bit file access.
3171 If this option is set to "True" (the default) on a 32-bit system then Samba
3172 will truncate any lock length greater than 31 bits (the POSIX limit on 32-bit
3173 systems) and then attempt to mangle the lock offset from a 64-bit value to a
3174 high 32 bit value. It does this by examining the number of bits set in the
3175 top 32 bits, looking at the lower 31 bits starting from the 31st bit going
3176 downward (the POSIX limit on 32-bit systems) for a range of zero bits that
3177 this can be mapped into and then mapping the upper set bits into the lower
3178 set bits.
3180 If no space can be found then a locking error is returned to the client.
3182 Note that this option has bf(NO) effect on 64 bit systems. It should not
3183 be turned off on 32 bit systems unless it can be shown that this is causing
3184 a locking problem for a client application.
3186   bf(Default:)
3187 tt(             mangle locks = Yes)
3189   bf(Example:)
3190 tt(             mangle locks = No)
3192 label(mangledmap)
3193 dit(bf(mangled map (S)))
3195 This is for those who want to directly map UNIX file names which can
3196 not be represented on Windows/DOS.  The mangling of names is not always
3197 what is needed.  In particular you may have documents with file
3198 extensions that differ between DOS and UNIX. For example, under UNIX
3199 it is common to use tt(".html") for HTML files, whereas under
3200 Windows/DOS tt(".htm") is more commonly used.
3202 So to map tt("html") to tt("htm") you would use:
3204 tt(  mangled map = (*.html *.htm))
3206 One very useful case is to remove the annoying tt(";1") off the ends
3207 of filenames on some CDROMS (only visible under some UNIXs). To do
3208 this use a map of (*;1 *).
3210   bf(default:)
3211 tt(     no mangled map)
3213   bf(Example:)
3214 tt(     mangled map = (*;1 *))
3216 label(manglednames)
3217 dit(bf(mangled names (S)))
3219 This controls whether non-DOS names under UNIX should be mapped to
3220 DOS-compatible names ("mangled") and made visible, or whether non-DOS
3221 names should simply be ignored.
3223 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING) for details
3224 on how to control the mangling process.
3226 If mangling is used then the mangling algorithm is as follows:
3228 startit()
3230 it() The first (up to) five alphanumeric characters before the
3231 rightmost dot of the filename are preserved, forced to upper case, and
3232 appear as the first (up to) five characters of the mangled name.
3234 it() A tilde tt("~") is appended to the first part of the mangled
3235 name, followed by a two-character unique sequence, based on the
3236 original root name (i.e., the original filename minus its final
3237 extension). The final extension is included in the hash calculation
3238 only if it contains any upper case characters or is longer than three
3239 characters.
3241 Note that the character to use may be specified using the
3242 link(bf("mangling char"))(manglingchar) option, if you don't like
3243 tt('~').
3245 it() The first three alphanumeric characters of the final extension
3246 are preserved, forced to upper case and appear as the extension of the
3247 mangled name. The final extension is defined as that part of the
3248 original filename after the rightmost dot. If there are no dots in the
3249 filename, the mangled name will have no extension (except in the case
3250 of link(bf("hidden files"))(hidefiles) - see below).
3252 it() Files whose UNIX name begins with a dot will be presented as DOS
3253 hidden files. The mangled name will be created as for other filenames,
3254 but with the leading dot removed and tt("___") as its extension regardless
3255 of actual original extension (that's three underscores).
3257 endit()
3259 The two-digit hash value consists of upper case alphanumeric
3260 characters.
3262 This algorithm can cause name collisions only if files in a directory
3263 share the same first five alphanumeric characters. The probability of
3264 such a clash is 1/1300.
3266 The name mangling (if enabled) allows a file to be copied between UNIX
3267 directories from Windows/DOS while retaining the long UNIX
3268 filename. UNIX files can be renamed to a new extension from
3269 Windows/DOS and will retain the same basename. Mangled names do not
3270 change between sessions.
3272   bf(Default:)
3273 tt(     mangled names = yes)
3275   bf(Example:)
3276 tt(     mangled names = no)
3278 label(manglingchar)
3279 dit(bf(mangling char (S)))
3281 This controls what character is used as the em("magic") character in
3282 link(bf(name mangling))(manglednames). The default is a tt('~') but
3283 this may interfere with some software. Use this option to set it to
3284 whatever you prefer.
3286   bf(Default:)
3287 tt(     mangling char = ~)
3289   bf(Example:)
3290 tt(     mangling char = ^)
3292 label(mangledstack)
3293 dit(bf(mangled stack (G)))
3295 This parameter controls the number of mangled names that should be
3296 cached in the Samba server url(bf(smbd))(smbd.8.html).
3298 This stack is a list of recently mangled base names (extensions are
3299 only maintained if they are longer than 3 characters or contains upper
3300 case characters).
3302 The larger this value, the more likely it is that mangled names can be
3303 successfully converted to correct long UNIX names. However, large
3304 stack sizes will slow most directory access. Smaller stacks save
3305 memory in the server (each stack element costs 256 bytes).
3307 It is not possible to absolutely guarantee correct long file names, so
3308 be prepared for some surprises!
3310   bf(Default:)
3311 tt(     mangled stack = 50)
3313   bf(Example:)
3314 tt(     mangled stack = 100)
3316 label(maparchive)
3317 dit(bf(map archive (S)))
3319 This controls whether the DOS archive attribute should be mapped to
3320 the UNIX owner execute bit.  The DOS archive bit is set when a file
3321 has been modified since its last backup.  One motivation for this
3322 option it to keep Samba/your PC from making any file it touches from
3323 becoming executable under UNIX.  This can be quite annoying for shared
3324 source code, documents, etc...
3326 Note that this requires the link(bf("create mask"))(createmask)
3327 parameter to be set such that owner execute bit is not masked out
3328 (i.e. it must include 100). See the parameter link(bf("create
3329 mask"))(createmask) for details.
3331   bf(Default:)
3332 tt(      map archive = yes)
3334   bf(Example:)
3335 tt(      map archive = no)
3337 label(maphidden)
3338 dit(bf(map hidden (S)))
3340 This controls whether DOS style hidden files should be mapped to the
3341 UNIX world execute bit.
3343 Note that this requires the link(bf("create mask"))(createmask) to be
3344 set such that the world execute bit is not masked out (i.e. it must
3345 include 001). See the parameter link(bf("create mask"))(createmask)
3346 for details.
3348   bf(Default:)
3349 tt(     map hidden = no)
3351   bf(Example:)
3352 tt(     map hidden = yes)
3354 label(mapsystem)
3355 dit(bf(map system (S)))
3357 This controls whether DOS style system files should be mapped to the
3358 UNIX group execute bit.
3360 Note that this requires the link(bf("create mask"))(createmask) to be
3361 set such that the group execute bit is not masked out (i.e. it must
3362 include 010). See the parameter link(bf("create mask"))(createmask)
3363 for details.
3365   bf(Default:)
3366 tt(     map system = no)
3368   bf(Example:)
3369 tt(     map system = yes)
3371 label(maptoguest)
3372 dit(bf(map to guest (G)))
3374 This parameter is only useful in link(bf(security))(security) modes
3375 other than link(bf("security=share"))(securityequalshare) - i.e. user,
3376 server, and domain.
3378 This parameter can take three different values, which tell
3379 url(bf(smbd))(smbd.8.html) what to do with user login requests that
3380 don't match a valid UNIX user in some way.
3382 The three settings are :
3384 startit()
3386 it() bf("Never") - Means user login requests with an invalid password
3387 are rejected. This is the default.
3389 it() bf("Bad User") - Means user logins with an invalid password are
3390 rejected, unless the username does not exist, in which case it is
3391 treated as a guest login and mapped into the link(bf("guest
3392 account"))(guestaccount).
3394 it() bf("Bad Password") - Means user logins with an invalid
3395 password are treated as a guest login and mapped into the
3396 link(bf("guest account"))(guestaccount). Note that this can
3397 cause problems as it means that any user incorrectly typing their
3398 password will be silently logged on a bf("guest") - and 
3399 will not know the reason they cannot access files they think
3400 they should - there will have been no message given to them
3401 that they got their password wrong. Helpdesk services will
3402 em(*hate*) you if you set the bf("map to guest") parameter
3403 this way :-).
3405 endit()
3407 Note that this parameter is needed to set up bf("Guest") share
3408 services when using link(bf(security))(security) modes other than
3409 share. This is because in these modes the name of the resource being
3410 requested is em(*not*) sent to the server until after the server has
3411 successfully authenticated the client so the server cannot make
3412 authentication decisions at the correct time (connection to the
3413 share) for bf("Guest") shares.
3415 For people familiar with the older Samba releases, this parameter
3416 maps to the old compile-time setting of the GUEST_SESSSETUP value
3417 in local.h.
3419   bf(Default:)
3420 tt(     map to guest = Never)
3421   bf(Example):
3422 tt(     map to guest = Bad User)
3424 label(maxconnections)
3425 dit(bf(max connections (S)))
3427 This option allows the number of simultaneous connections to a service
3428 to be limited. If bf("max connections") is greater than 0 then
3429 connections will be refused if this number of connections to the
3430 service are already open. A value of zero mean an unlimited number of
3431 connections may be made.
3433 Record lock files are used to implement this feature. The lock files
3434 will be stored in the directory specified by the link(bf("lock
3435 directory"))(lockdirectory) option.
3437   bf(Default:)
3438 tt(     max connections = 0)
3440   bf(Example:)
3441 tt(     max connections = 10)
3443 label(maxdisksize)
3444 dit(bf(max disk size (G)))
3446 This option allows you to put an upper limit on the apparent size of
3447 disks. If you set this option to 100 then all shares will appear to be
3448 not larger than 100 MB in size.
3450 Note that this option does not limit the amount of data you can put on
3451 the disk. In the above case you could still store much more than 100
3452 MB on the disk, but if a client ever asks for the amount of free disk
3453 space or the total disk size then the result will be bounded by the
3454 amount specified in bf("max disk size").
3456 This option is primarily useful to work around bugs in some pieces of
3457 software that can't handle very large disks, particularly disks over
3458 1GB in size.
3460 A bf("max disk size") of 0 means no limit.
3462   bf(Default:)
3463 tt(     max disk size = 0)
3465   bf(Example:)
3466 tt(     max disk size = 1000)
3468 label(maxlogsize)
3469 dit(bf(max log size (G)))
3471 This option (an integer in kilobytes) specifies the max size the log
3472 file should grow to. Samba periodically checks the size and if it is
3473 exceeded it will rename the file, adding a tt(".old") extension.
3475 A size of 0 means no limit.
3477   bf(Default:)
3478 tt(     max log size = 5000)
3480   bf(Example:)
3481 tt(     max log size = 1000)
3483 label(maxmux)
3484 dit(bf(max mux (G)))
3486 This option controls the maximum number of outstanding simultaneous
3487 SMB operations that samba tells the client it will allow. You should
3488 never need to set this parameter.
3490   bf(Default:)
3491 tt(     max mux = 50)
3493 label(maxopenfiles)
3494 dit(bf(max open files (G)))
3496 This parameter limits the maximum number of open files that one
3497 url(bf(smbd))(smbd.8.html) file serving process may have open for
3498 a client at any one time. The default for this parameter is set
3499 very high (10,000) as Samba uses only one bit per unopened file.
3501 The limit of the number of open files is usually set by the
3502 UNIX per-process file descriptor limit rather than this parameter
3503 so you should never need to touch this parameter.
3505   bf(Default:)
3506 tt(     max open files = 10000)
3508 label(maxpacket)
3509 dit(bf(max packet (G)))
3511 Synonym for label(bf("packet size"))(packetsize).
3513 label(maxttl)
3514 dit(bf(max ttl (G)))
3516 This option tells url(bf(nmbd))(nmbd.8.html) what the default 'time
3517 to live' of NetBIOS names should be (in seconds) when
3518 url(bf(nmbd))(nmbd.8.html) is requesting a name using either a
3519 broadcast packet or from a WINS server. You should never need to
3520 change this parameter. The default is 3 days.
3522   bf(Default:)
3523 tt(     max ttl = 259200)
3525 label(maxwinsttl)
3526 dit(bf(max wins ttl (G)))
3528 This option tells url(bf(nmbd))(nmbd.8.html) when acting as a WINS
3529 server link(bf((wins support =true)))(winssupport) what the maximum
3530 'time to live' of NetBIOS names that url(bf(nmbd))(nmbd.8.html) will
3531 grant will be (in seconds). You should never need to change this
3532 parameter.  The default is 6 days (518400 seconds).
3534 See also the link(bf("min wins ttl"))(minwinsttl) parameter.
3536   bf(Default:)
3537 tt(        max wins ttl = 518400)
3539 label(maxxmit)
3540 dit(bf(max xmit (G)))
3542 This option controls the maximum packet size that will be negotiated
3543 by Samba. The default is 65535, which is the maximum. In some cases
3544 you may find you get better performance with a smaller value. A value
3545 below 2048 is likely to cause problems.
3547   bf(Default:)
3548 tt(     max xmit = 65535)
3550   bf(Example:)
3551 tt(     max xmit = 8192)
3553 label(messagecommand)
3554 dit(bf(message command (G)))
3556 This specifies what command to run when the server receives a WinPopup
3557 style message.
3559 This would normally be a command that would deliver the message
3560 somehow. How this is to be done is up to your imagination.
3562 An example is:
3564 tt(   message command = csh -c 'xedit %s;rm %s' &)
3566 This delivers the message using bf(xedit), then removes it
3567 afterwards. em(NOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN
3568 IMMEDIATELY). That's why I have the tt('&') on the end. If it doesn't
3569 return immediately then your PCs may freeze when sending messages
3570 (they should recover after 30secs, hopefully).
3572 All messages are delivered as the global guest user. The command takes
3573 the standard substitutions, although link(bf(%u))(percentu) won't work
3574 (link(bf(%U))(percentU) may be better in this case).
3576 Apart from the standard substitutions, some additional ones apply. In
3577 particular:
3579 startit()
3581 it() tt("%s") = the filename containing the message.
3583 it() tt("%t") = the destination that the message was sent to (probably the server
3584 name).
3586 it() tt("%f") = who the message is from.
3588 endit()
3590 You could make this command send mail, or whatever else takes your
3591 fancy. Please let us know of any really interesting ideas you have.
3593 Here's a way of sending the messages as mail to root:
3595 tt(message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s)
3597 If you don't have a message command then the message won't be
3598 delivered and Samba will tell the sender there was an
3599 error. Unfortunately WfWg totally ignores the error code and carries
3600 on regardless, saying that the message was delivered.
3602 If you want to silently delete it then try:
3604 tt("message command = rm %s").
3606   bf(Default:)
3607 tt(     no message command)
3609   bf(Example:)
3610 tt(        message command = csh -c 'xedit %s;rm %s' &)
3612 label(minprintspace)
3613 dit(bf(min print space (S)))
3615 This sets the minimum amount of free disk space that must be available
3616 before a user will be able to spool a print job. It is specified in
3617 kilobytes. The default is 0, which means a user can always spool a print
3618 job.
3620 See also the link(bf(printing))(printing) parameter.
3622   bf(Default:)
3623 tt(     min print space = 0)
3625   bf(Example:)
3626 tt(     min print space = 2000)
3628 label(minpasswdlength)
3629 dit(bf(min passwd length (G)))
3631 This option sets the minimum length in characters of a plaintext password
3632 than smbd will accept when performing UNIX password changing.
3634 See also link(bf("unix password sync"))(unixpasswordsync),
3635 link(bf("passwd program"))(passwdprogram) and link(bf("passwd chat
3636 debug"))(passwdchatdebug).
3638   bf(Default:)
3639 tt(     min passwd length = 5)
3642 label(minwinsttl)
3643 dit(bf(min wins ttl (G)))
3645 This option tells url(bf(nmbd))(nmbd.8.html) when acting as a WINS
3646 server link(bf((wins support = true)))(winssupport) what the minimum
3647 'time to live' of NetBIOS names that url(bf(nmbd))(nmbd.8.html) will
3648 grant will be (in seconds). You should never need to change this
3649 parameter.  The default is 6 hours (21600 seconds).
3651   bf(Default:)
3652 tt(     min wins ttl = 21600)
3655 label(nameresolveorder)
3656 dit(bf(name resolve order (G)))
3658 This option is used by the programs in the Samba suite to determine
3659 what naming services and in what order to resolve host names to IP
3660 addresses. The option takes a space separated string of different name
3661 resolution options.
3663 The options are :"lmhosts", "host", "wins" and "bcast". They cause
3664 names to be resolved as follows :
3666 startit()
3668 it() bf(lmhosts) : Lookup an IP address in the Samba lmhosts file.
3669 If the line in lmhosts has no name type attached to the NetBIOS
3670 name (see the url(bf(lmhosts (5)))(lmhosts.5.html) for details) then
3671 any name type matches for lookup.
3673 it() bf(host) : Do a standard host name to IP address resolution,
3674 using the system /etc/hosts, NIS, or DNS lookups. This method of name
3675 resolution is operating system depended for instance on IRIX or
3676 Solaris this may be controlled by the em(/etc/nsswitch.conf) file).
3677 Note that this method is only used if the NetBIOS name type being
3678 queried is the 0x20 (server) name type, otherwise it is ignored.
3680 it() bf(wins) : Query a name with the IP address listed in the
3681 link(bf(wins server))(winsserver) parameter. If no WINS server has
3682 been specified this method will be ignored.
3684 it() bf(bcast) : Do a broadcast on each of the known local interfaces
3685 listed in the link(bf(interfaces))(interfaces) parameter. This is the
3686 least reliable of the name resolution methods as it depends on the
3687 target host being on a locally connected subnet.
3689 endit()
3691   bf(Default:)
3692 tt(     name resolve order = lmhosts host wins bcast)
3694   bf(Example:)
3695 tt(     name resolve order = lmhosts bcast host)
3697 This will cause the local lmhosts file to be examined first, followed
3698 by a broadcast attempt, followed by a normal system hostname lookup.
3700 label(netbiosaliases)
3701 dit(bf(netbios aliases (G)))
3703 This is a list of NetBIOS names that url(bf(nmbd))(nmbd.8.html) will
3704 advertise as additional names by which the Samba server is known. This
3705 allows one machine to appear in browse lists under multiple names. If
3706 a machine is acting as a link(bf(browse server))(localmaster) or
3707 link(bf(logon server))(domainlogons) none of these names will be
3708 advertised as either browse server or logon servers, only the primary
3709 name of the machine will be advertised with these capabilities.
3711 See also link(bf("netbios name"))(netbiosname).
3713   bf(Default:)
3714 tt(     empty string (no additional names))
3716   bf(Example:)
3717 tt(     netbios aliases = TEST TEST1 TEST2)
3719 label(netbiosname)
3720 dit(bf(netbios name (G)))
3722 This sets the NetBIOS name by which a Samba server is known. By
3723 default it is the same as the first component of the host's DNS name.
3724 If a machine is a link(bf(browse server))(localmaster) or
3725 link(bf(logon server))(domainlogons) this name (or the first component
3726 of the hosts DNS name) will be the name that these services are
3727 advertised under.
3729 See also link(bf("netbios aliases"))(netbiosaliases).
3731   bf(Default:)
3732 tt(     Machine DNS name.)
3734   bf(Example:)
3735 tt(     netbios name = MYNAME)
3737 label(nishomedir)
3738 dit(bf(nis homedir (G)))
3740 Get the home share server from a NIS map. For UNIX systems that use an
3741 automounter, the user's home directory will often be mounted on a
3742 workstation on demand from a remote server. 
3744 When the Samba logon server is not the actual home directory server,
3745 but is mounting the home directories via NFS then two network hops
3746 would be required to access the users home directory if the logon
3747 server told the client to use itself as the SMB server for home
3748 directories (one over SMB and one over NFS). This can be very
3749 slow.
3751 This option allows Samba to return the home share as being on a
3752 different server to the logon server and as long as a Samba daemon is
3753 running on the home directory server, it will be mounted on the Samba
3754 client directly from the directory server. When Samba is returning the
3755 home share to the client, it will consult the NIS map specified in
3756 link(bf("homedir map"))(homedirmap) and return the server listed
3757 there.
3759 Note that for this option to work there must be a working NIS
3760 system and the Samba server with this option must also be a
3761 link(bf(logon server))(domainlogons).
3763   bf(Default:)
3764 tt(     nis homedir = false)
3766   bf(Example:)
3767 tt(     nis homedir = true)
3769 label(ntaclsupport)
3770 dit(bf(nt acl support (G)))
3772 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
3773 will attempt to map UNIX permissions into Windows NT access control lists.
3775   bf(Default:)
3776 tt(     nt acl support = yes)
3778   bf(Example:)
3779 tt(     nt acl support = no)
3781 label(ntpipesupport)
3782 dit(bf(nt pipe support (G)))
3784 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
3785 will allow Windows NT clients to connect to the NT SMB specific
3786 tt(IPC$) pipes. This is a developer debugging option and can be left
3787 alone.
3789   bf(Default:)
3790 tt(     nt pipe support = yes)
3792 label(ntsmbsupport)
3793 dit(bf(nt smb support (G)))
3795 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
3796 will negotiate NT specific SMB support with Windows NT
3797 clients. Although this is a developer debugging option and should be
3798 left alone, benchmarking has discovered that Windows NT clients give
3799 faster performance with this option set to tt("no"). This is still
3800 being investigated. If this option is set to tt("no") then Samba
3801 offers exactly the same SMB calls that versions prior to Samba2.0
3802 offered. This information may be of use if any users are having
3803 problems with NT SMB support.
3805   bf(Default:)
3806 tt(     nt support = yes)
3808 label(nullpasswords)
3809 dit(bf(null passwords (G)))
3811 Allow or disallow client access to accounts that have null passwords. 
3813 See also url(bf(smbpasswd (5)))(smbpasswd.5.html).
3815   bf(Default:)
3816 tt(     null passwords = no)
3818   bf(Example:)
3819 tt(     null passwords = yes)
3821 label(olelockingcompatibility)
3822 dit(bf(ole locking compatibility (G)))
3824 This parameter allows an administrator to turn off the byte range lock
3825 manipulation that is done within Samba to give compatibility for OLE
3826 applications. Windows OLE applications use byte range locking as a
3827 form of inter-process communication, by locking ranges of bytes around
3828 the 2^32 region of a file range. This can cause certain UNIX lock
3829 managers to crash or otherwise cause problems. Setting this parameter
3830 to tt("no") means you trust your UNIX lock manager to handle such cases
3831 correctly.
3833   bf(Default:)
3834 tt(     ole locking compatibility = yes)
3836   bf(Example:)
3837 tt(     ole locking compatibility = no)
3839 label(onlyguest)
3840 dit(bf(only guest (S)))
3842 A synonym for link(bf("guest only"))(guestonly).
3844 label(onlyuser)
3845 dit(bf(only user (S)))
3847 This is a boolean option that controls whether connections with
3848 usernames not in the link(bf(user=))(user) list will be allowed. By
3849 default this option is disabled so a client can supply a username to
3850 be used by the server.
3852 Note that this also means Samba won't try to deduce usernames from the
3853 service name. This can be annoying for the link(bf([homes]))(homes)
3854 section. To get around this you could use "link(bf(user))(user) =
3855 link(bf(%S))(percentS)" which means your link(bf("user"))(user) list
3856 will be just the service name, which for home directories is the name
3857 of the user.
3859 See also the link(bf(user))(user) parameter.
3861   bf(Default:)
3862 tt(     only user = False)
3864   bf(Example:)
3865 tt(     only user = True)
3867 label(oplocks)
3868 dit(bf(oplocks (S)))
3870 This boolean option tells smbd whether to issue oplocks (opportunistic
3871 locks) to file open requests on this share. The oplock code can
3872 dramatically (approx. 30% or more) improve the speed of access to files
3873 on Samba servers. It allows the clients to aggressively cache files
3874 locally and you may want to disable this option for unreliable network
3875 environments (it is turned on by default in Windows NT Servers).  For
3876 more information see the file Speed.txt in the Samba docs/ directory.
3878 Oplocks may be selectively turned off on certain files on a per share basis.
3879 See the 'veto oplock files' parameter. On some systems oplocks are recognized
3880 by the underlying operating system. This allows data synchronization between
3881 all access to oplocked files, whether it be via Samba or NFS or a local
3882 UNIX process. See the link(bf(kernel oplocks))(kerneloplocks) parameter
3883 for details.
3885   bf(Default:)
3886 tt(     oplocks = True)
3888   bf(Example:)
3889 tt(     oplocks = False)
3891 label(oplockbreakwaittime)
3892 dit(bf(oplock break wait time (G))
3894 This is a tuning parameter added due to bugs in both Windows 9x and WinNT.
3895 If Samba responds to a client too quickly when that client issues an SMB that
3896 can cause an oplock break request, then the client redirector can fail and
3897 not respond to the break request. This tuning parameter (which is set in
3898 milliseconds) is the amount of time Samba will wait before sending an
3899 oplock break request to such (broken) clients.
3901 em(DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA
3902 OPLOCK CODE).
3904   bf(Default:)
3905 tt(     oplock break wait time = 10)
3907 label(oplockcontentionlimit)
3908 dit(bf(oplock contention limit (S)))
3910 This is a em(very) advanced url(bf(smbd))(smbd.8.html) tuning option to improve
3911 the efficiency of the granting of oplocks under multiple client contention for the same file.
3913 In brief it specifies a number, which causes smbd not to grant an oplock even
3914 when requested if the approximate number of clients contending for an oplock on
3915 the same file goes over this limit. This causes url(bf(smbd))(smbd.8.html) to
3916 behave in a similar way to Windows NT.
3918 em(DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA
3919 OPLOCK CODE).
3921   bf(Default:)
3922 tt( oplock contention limit = 2)
3924 label(oslevel)
3925 dit(bf(os level (G)))
3927 This integer value controls what level Samba advertises itself as for
3928 browse elections. The value of this parameter determines whether
3929 url(bf(nmbd))(nmbd.8.html) has a chance of becoming a local master
3930 browser for the link(bf(WORKGROUP))(workgroup) in the local broadcast
3931 area. The default is zero, which means url(bf(nmbd))(nmbd.8.html) will
3932 lose elections to Windows machines. See BROWSING.txt in the Samba
3933 docs/ directory for details.
3935   bf(Default:)
3936 tt(     os level = 0)
3938   bf(Example:)
3939 tt(     os level = 65    ; This will win against any NT Server)
3941 label(packetsize)
3942 dit(bf(packet size (G)))
3944 This is a deprecated parameter that how no effect on the current
3945 Samba code. It is left in the parameter list to prevent breaking
3946 old bf(smb.conf) files.
3948 label(panicaction)
3949 dit(bf(panic action (G)))
3951 This is a Samba developer option that allows a system command to be
3952 called when either url(bf(smbd))(smbd.8.html) or
3953 url(bf(nmbd))(nmbd.8.html) crashes. This is usually used to draw
3954 attention to the fact that a problem occurred.
3956   bf(Default:)
3957 tt(     panic action = <empty string>)
3959 label(passwdchat)
3960 dit(bf(passwd chat (G)))
3962 This string controls the em("chat") conversation that takes places
3963 between url(bf(smbd))(smbd.8.html) and the local password changing
3964 program to change the users password. The string describes a sequence
3965 of response-receive pairs that url(bf(smbd))(smbd.8.html) uses to
3966 determine what to send to the link(bf(passwd))(passwdprogram) program
3967 and what to expect back. If the expected output is not received then
3968 the password is not changed.
3970 This chat sequence is often quite site specific, depending on what
3971 local methods are used for password control (such as NIS etc).
3973 The string can contain the macros tt("%o") and tt("%n") which are
3974 substituted for the old and new passwords respectively. It can also
3975 contain the standard macros tt("\n"), tt("\r"), tt("\t") and tt("\s")
3976 to give line-feed, carriage-return, tab and space.
3978 The string can also contain a tt('*') which matches any sequence of
3979 characters.
3981 Double quotes can be used to collect strings with spaces in them into
3982 a single string.
3984 If the send string in any part of the chat sequence is a fullstop
3985 tt(".")  then no string is sent. Similarly, is the expect string is a
3986 fullstop then no string is expected.
3988 Note that if the link(bf("unix password sync"))(unixpasswordsync)
3989 parameter is set to true, then this sequence is called em(*AS ROOT*)
3990 when the SMB password in the smbpasswd file is being changed, without
3991 access to the old password cleartext. In this case the old password
3992 cleartext is set to tt("") (the empty string).
3994 See also link(bf("unix password sync"))(unixpasswordsync),
3995 link(bf("passwd program"))(passwdprogram) and link(bf("passwd chat
3996 debug"))(passwdchatdebug).
3998   bf(Example:) 
3999 verb( passwd chat = "*Enter OLD password*" %o\n "*Enter NEW password*" %n\n \
4000                        "*Reenter NEW password*" %n\n "*Password changed*"
4003   bf(Default:)
4004 verb(       passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*)
4006 label(passwdchatdebug)
4007 dit(bf(passwd chat debug (G)))
4009 This boolean specifies if the passwd chat script parameter is run in
4010 tt("debug") mode. In this mode the strings passed to and received from
4011 the passwd chat are printed in the url(bf(smbd))(smbd.8.html) log with
4012 a link(bf("debug level"))(debuglevel) of 100. This is a dangerous
4013 option as it will allow plaintext passwords to be seen in the
4014 url(bf(smbd))(smbd.8.html) log. It is available to help Samba admins
4015 debug their link(bf("passwd chat"))(passwdchat) scripts when calling
4016 the link(bf("passwd program"))(passwdprogram) and should be turned off
4017 after this has been done. This parameter is off by default.
4019 See also link(bf("passwd chat"))(passwdchat"), link(bf("passwd
4020 program"))(passwdprogram).
4022   bf(Example:)
4023 tt(     passwd chat debug = True)
4025   bf(Default:)
4026 tt(     passwd chat debug = False)
4028 label(passwdprogram)
4029 dit(bf(passwd program (G)))
4031 The name of a program that can be used to set UNIX user passwords.
4032 Any occurrences of link(bf(%u))(percentu) will be replaced with the
4033 user name. The user name is checked for existence before calling the
4034 password changing program.
4036 Also note that many passwd programs insist in em("reasonable")
4037 passwords, such as a minimum length, or the inclusion of mixed case
4038 chars and digits. This can pose a problem as some clients (such as
4039 Windows for Workgroups) uppercase the password before sending it.
4041 em(Note) that if the link(bf("unix password sync"))(unixpasswordsync)
4042 parameter is set to tt("True") then this program is called em(*AS
4043 ROOT*) before the SMB password in the
4044 url(bf(smbpasswd))(smbpasswd.5.html) file is changed. If this UNIX
4045 password change fails, then url(bf(smbd))(smbd.8.html) will fail to
4046 change the SMB password also (this is by design).
4048 If the link(bf("unix password sync"))(unixpasswordsync) parameter is
4049 set this parameter em(MUST USE ABSOLUTE PATHS) for em(ALL) programs
4050 called, and must be examined for security implications. Note that by
4051 default link(bf("unix password sync"))(unixpasswordsync) is set to
4052 tt("False").
4054 See also link(bf("unix password sync"))(unixpasswordsync).
4056   bf(Default:)
4057 tt(     passwd program = /bin/passwd)
4059   bf(Example:)
4060 tt(     passwd program = /sbin/passwd %u)
4062 label(passwordlevel)
4063 dit(bf(password level (G)))
4065 Some client/server combinations have difficulty with mixed-case
4066 passwords.  One offending client is Windows for Workgroups, which for
4067 some reason forces passwords to upper case when using the LANMAN1
4068 protocol, but leaves them alone when using COREPLUS!
4070 This parameter defines the maximum number of characters that may be
4071 upper case in passwords.
4073 For example, say the password given was tt("FRED"). If bf(password
4074 level) is set to 1, the following combinations would be tried if
4075 tt("FRED") failed:
4077 tt("Fred"), tt("fred"), tt("fRed"), tt("frEd"), tt("freD")
4079 If bf(password level) was set to 2, the following combinations would
4080 also be tried: 
4082 tt("FRed"), tt("FrEd"), tt("FreD"), tt("fREd"), tt("fReD"),
4083 tt("frED"), tt(..)
4085 And so on.
4087 The higher value this parameter is set to the more likely it is that a
4088 mixed case password will be matched against a single case
4089 password. However, you should be aware that use of this parameter
4090 reduces security and increases the time taken to process a new
4091 connection.
4093 A value of zero will cause only two attempts to be made - the password
4094 as is and the password in all-lower case.
4096   bf(Default:)
4097 tt(     password level = 0)
4099   bf(Example:)
4100 tt(     password level = 4)
4102 label(passwordserver)
4103 dit(bf(password server (G)))
4105 By specifying the name of another SMB server (such as a WinNT box)
4106 with this option, and using link(bf("security = domain"))(security) or
4107 link(bf("security = server"))(security) you can get Samba to do all
4108 its username/password validation via a remote server.
4110 This options sets the name of the password server to use. It must be a
4111 NetBIOS name, so if the machine's NetBIOS name is different from its
4112 internet name then you may have to add its NetBIOS name to the lmhosts 
4113 file which is stored in the same directory as the bf(smb.conf) file.
4115 The name of the password server is looked up using the parameter
4116 link(bf("name resolve order="))(nameresolveorder) and so may resolved
4117 by any method and order described in that parameter.
4119 The password server much be a machine capable of using the "LM1.2X002"
4120 or the "LM NT 0.12" protocol, and it must be in user level security
4121 mode. 
4123 NOTE: Using a password server means your UNIX box (running Samba) is
4124 only as secure as your password server. em(DO NOT CHOOSE A PASSWORD
4125 SERVER THAT YOU DON'T COMPLETELY TRUST).
4127 Never point a Samba server at itself for password serving. This will
4128 cause a loop and could lock up your Samba server!
4130 The name of the password server takes the standard substitutions, but
4131 probably the only useful one is link(bf(%m))(percentm), which means
4132 the Samba server will use the incoming client as the password
4133 server. If you use this then you better trust your clients, and you
4134 better restrict them with hosts allow!
4136 If the link(bf("security"))(security) parameter is set to
4137 bf("domain"), then the list of machines in this option must be a list
4138 of Primary or Backup Domain controllers for the
4139 link(bf(Domain))(workgroup), as the Samba server is cryptographicly
4140 in that domain, and will use cryptographicly authenticated RPC calls
4141 to authenticate the user logging on. The advantage of using
4142 link(bf("security=domain"))(securityequaldomain) is that if you list
4143 several hosts in the bf("password server") option then
4144 url(bf(smbd))(smbd.8.html) will try each in turn till it finds one
4145 that responds. This is useful in case your primary server goes down.
4147 If the link(bf("security"))(security) parameter is set to
4148 link(bf("server"))(securityequalserver), then there are different
4149 restrictions that link(bf("security=domain"))(securityequaldomain)
4150 doesn't suffer from:
4152 startit()
4154 it() You may list several password servers in the bf("password server")
4155 parameter, however if an url(bf(smbd))(smbd.8.html) makes a connection
4156 to a password server, and then the password server fails, no more
4157 users will be able to be authenticated from this
4158 url(bf(smbd))(smbd.8.html).  This is a restriction of the SMB/CIFS
4159 protocol when in link(bf("security=server"))(securityequalserver) mode
4160 and cannot be fixed in Samba.
4162 it() If you are using a Windows NT server as your password server then
4163 you will have to ensure that your users are able to login from the
4164 Samba server, as when in
4165 link(bf("security=server"))(securityequalserver) mode the network
4166 logon will appear to come from there rather than from the users
4167 workstation.
4169 endit()
4171 See also the link(bf("security"))(security) parameter.
4173   bf(Default:)
4174 tt(     password server = <empty string>)
4176   bf(Example:)
4177 tt(     password server = NT-PDC, NT-BDC1, NT-BDC2)
4179 label(path)
4180 dit(bf(path (S)))
4182 This parameter specifies a directory to which the user of the service
4183 is to be given access. In the case of printable services, this is
4184 where print data will spool prior to being submitted to the host for
4185 printing.
4187 For a printable service offering guest access, the service should be
4188 readonly and the path should be world-writeable and have the sticky bit
4189 set. This is not mandatory of course, but you probably won't get the
4190 results you expect if you do otherwise.
4192 Any occurrences of link(bf(%u))(percentu) in the path will be replaced
4193 with the UNIX username that the client is using on this
4194 connection. Any occurrences of link(bf(%m))(percentm) will be replaced
4195 by the NetBIOS name of the machine they are connecting from. These
4196 replacements are very useful for setting up pseudo home directories
4197 for users.
4199 Note that this path will be based on link(bf("root dir"))(rootdir) if
4200 one was specified.
4202   bf(Default:)
4203 tt(     none)
4205   bf(Example:)
4206 tt(     path = /home/fred)
4208 label(postexec)
4209 dit(bf(postexec (S)))
4211 This option specifies a command to be run whenever the service is
4212 disconnected. It takes the usual substitutions. The command may be run
4213 as the root on some systems.
4215 An interesting example may be do unmount server resources:
4217 tt(postexec = /etc/umount /cdrom)
4219 See also link(bf(preexec))(preexec).
4221   bf(Default:)
4222 tt(      none (no command executed))
4224   bf(Example:)
4225 tt(      postexec = echo "%u disconnected from %S from %m (%I)" >> /tmp/log)
4227 label(postscript)
4228 dit(bf(postscript (S)))
4230 This parameter forces a printer to interpret the print files as
4231 postscript. This is done by adding a tt(%!) to the start of print output.
4233 This is most useful when you have lots of PCs that persist in putting
4234 a control-D at the start of print jobs, which then confuses your
4235 printer.
4237   bf(Default:)
4238 tt(     postscript = False)
4240   bf(Example:)
4241 tt(     postscript = True)
4243 label(preexec)
4244 dit(bf(preexec (S)))
4246 This option specifies a command to be run whenever the service is
4247 connected to. It takes the usual substitutions.
4249 An interesting example is to send the users a welcome message every
4250 time they log in. Maybe a message of the day? Here is an example:
4252 verb(
4253         preexec = csh -c 'echo \"Welcome to %S!\" | \
4254                 /usr/local/samba/bin/smbclient -M %m -I %I' &
4257 Of course, this could get annoying after a while :-)
4259 See also link(bf(postexec))(postexec).
4261   bf(Default:)
4262 tt(     none (no command executed))
4264   bf(Example:)
4265 tt(        preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log)
4267 label(preferredmaster)
4268 dit(bf(preferred master (G)))
4270 This boolean parameter controls if url(bf(nmbd))(nmbd.8.html) is a
4271 preferred master browser for its workgroup.
4273 If this is set to true, on startup, url(bf(nmbd))(nmbd.8.html) will
4274 force an election, and it will have a slight advantage in winning the
4275 election.  It is recommended that this parameter is used in
4276 conjunction with link(bf("domain master = yes"))(domainmaster), so
4277 that url(bf(nmbd))(nmbd.8.html) can guarantee becoming a domain
4278 master.
4280 Use this option with caution, because if there are several hosts
4281 (whether Samba servers, Windows 95 or NT) that are preferred master
4282 browsers on the same subnet, they will each periodically and
4283 continuously attempt to become the local master browser.  This will
4284 result in unnecessary broadcast traffic and reduced browsing
4285 capabilities.
4287 See also link(bf(os level))(oslevel).
4289   bf(Default:)
4290 tt(     preferred master = no)
4292   bf(Example:)
4293 tt(     preferred master = yes)
4295 label(preferedmaster)
4296 dit(bf(prefered master (G)))
4298 Synonym for link(bf("preferred master"))(preferredmaster) for people
4299 who cannot spell :-).
4301 label(preload)
4302 dit(bf(preload))
4303 Synonym for link(bf("auto services"))(autoservices).
4305 label(preservecase)
4306 dit(bf(preserve case (S)))
4308 This controls if new filenames are created with the case that the
4309 client passes, or if they are forced to be the tt("default") case.
4311   bf(Default:)
4312 tt(       preserve case = yes)
4314 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING) for a
4315 fuller discussion.
4317 label(printcommand)
4318 dit(bf(print command (S)))
4320 After a print job has finished spooling to a service, this command
4321 will be used via a tt(system()) call to process the spool
4322 file. Typically the command specified will submit the spool file to
4323 the host's printing subsystem, but there is no requirement that this
4324 be the case. The server will not remove the spool file, so whatever
4325 command you specify should remove the spool file when it has been
4326 processed, otherwise you will need to manually remove old spool files.
4328 The print command is simply a text string. It will be used verbatim,
4329 with two exceptions: All occurrences of tt("%s") will be replaced by
4330 the appropriate spool file name, and all occurrences of tt("%p") will
4331 be replaced by the appropriate printer name. The spool file name is
4332 generated automatically by the server, the printer name is discussed
4333 below.
4335 The full path name will be used for the filename if tt("%s") is not
4336 preceded by a tt('/'). If you don't like this (it can stuff up some
4337 lpq output) then use tt("%f") instead. Any occurrences of tt("%f") get
4338 replaced by the spool filename without the full path at the front.
4340 The print command em(MUST) contain at least one occurrence of tt("%s")
4341 or tt("%f") - the tt("%p") is optional. At the time a job is
4342 submitted, if no printer name is supplied the tt("%p") will be
4343 silently removed from the printer command.
4345 If specified in the link(bf("[global]"))(global) section, the print
4346 command given will be used for any printable service that does not
4347 have its own print command specified.
4349 If there is neither a specified print command for a printable service
4350 nor a global print command, spool files will be created but not
4351 processed and (most importantly) not removed.
4353 Note that printing may fail on some UNIXs from the tt("nobody")
4354 account. If this happens then create an alternative guest account that
4355 can print and set the link(bf("guest account"))(guestaccount) in the
4356 link(bf("[global]"))(global) section.
4358 You can form quite complex print commands by realizing that they are
4359 just passed to a shell. For example the following will log a print
4360 job, print the file, then remove it. Note that tt(';') is the usual
4361 separator for command in shell scripts.
4363 tt(print command = echo Printing %s >> /tmp/print.log; lpr -P %p %s; rm %s)
4365 You may have to vary this command considerably depending on how you
4366 normally print files on your system. The default for the parameter
4367 varies depending on the setting of the link(bf("printing="))(printing)
4368 parameter.
4370   bf(Default:)
4371         For link(bf("printing="))(printing) BSD, AIX, QNX, LPRNG or PLP :
4372 tt(     print command = lpr -r -P%p %s)
4374         For link(bf("printing="))(printing) SYS or HPUX :
4375 tt(     print command = lp -c -d%p %s; rm %s)
4377         For link(bf("printing="))(printing) SOFTQ :
4378 tt(     print command = lp -d%p -s %s; rm %s)
4380   bf(Example:)
4381 tt(     print command = /usr/local/samba/bin/myprintscript %p %s)
4383 label(printok)
4384 dit(bf(print ok (S)))
4386 Synonym for link(bf(printable))(printable).
4388 label(printable)
4389 dit(bf(printable (S)))
4391 If this parameter is tt("yes"), then clients may open, write to and
4392 submit spool files on the directory specified for the service.
4394 Note that a printable service will ALWAYS allow writing to the service
4395 path (user privileges permitting) via the spooling of print data. The
4396 link(bf("read only"))(readonly) parameter controls only non-printing
4397 access to the resource.
4399   bf(Default:)
4400 tt(     printable = no)
4402   bf(Example:)
4403 tt(     printable = yes)
4405 label(printcap)
4406 dit(bf(printcap (G)))
4408 Synonym for link(bf(printcapname))(printcapname).
4410 label(printcapname)
4411 dit(bf(printcap name (G)))
4413 This parameter may be used to override the compiled-in default
4414 printcap name used by the server (usually /etc/printcap). See the
4415 discussion of the link(bf([printers]))(printers) section above for
4416 reasons why you might want to do this.
4418 On System V systems that use bf(lpstat) to list available printers you
4419 can use tt("printcap name = lpstat") to automatically obtain lists of
4420 available printers. This is the default for systems that define SYSV
4421 at configure time in Samba (this includes most System V based
4422 systems). If bf("printcap name") is set to bf(lpstat) on these systems
4423 then Samba will launch tt("lpstat -v") and attempt to parse the output
4424 to obtain a printer list.
4426 A minimal printcap file would look something like this:
4428 verb(
4429         print1|My Printer 1
4430         print2|My Printer 2
4431         print3|My Printer 3
4432         print4|My Printer 4
4433         print5|My Printer 5
4436 where the tt('|') separates aliases of a printer. The fact that the
4437 second alias has a space in it gives a hint to Samba that it's a
4438 comment.
4440 em(NOTE): Under AIX the default printcap name is
4441 tt("/etc/qconfig"). Samba will assume the file is in AIX tt("qconfig")
4442 format if the string tt("/qconfig") appears in the printcap filename.
4444   bf(Default:)
4445 tt(     printcap name = /etc/printcap)
4447   bf(Example:)
4448 tt(     printcap name = /etc/myprintcap)
4450 label(printer)
4451 dit(bf(printer (S)))
4453 This parameter specifies the name of the printer to which print jobs
4454 spooled through a printable service will be sent.
4456 If specified in the link(bf([global]))(global) section, the printer
4457 name given will be used for any printable service that does not have
4458 its own printer name specified.
4460   bf(Default:)
4461         none (but may be tt("lp") on many systems)
4463   bf(Example:)
4464         printer name = laserwriter
4466 label(printerdriver)
4467 dit(bf(printer driver (S)))
4469 This option allows you to control the string that clients receive when
4470 they ask the server for the printer driver associated with a
4471 printer. If you are using Windows95 or WindowsNT then you can use this
4472 to automate the setup of printers on your system.
4474 You need to set this parameter to the exact string (case sensitive)
4475 that describes the appropriate printer driver for your system. If you
4476 don't know the exact string to use then you should first try with no
4477 bf("printer driver") option set and the client will give you a list of
4478 printer drivers. The appropriate strings are shown in a scrollbox
4479 after you have chosen the printer manufacturer.
4481 See also link(bf("printer driver file"))(printerdriverfile).
4483   bf(Example:)
4484         printer driver = HP LaserJet 4L
4486 label(printerdriverfile)
4487 dit(bf(printer driver file (G)))
4489 This parameter tells Samba where the printer driver definition file,
4490 used when serving drivers to Windows 95 clients, is to be found. If
4491 this is not set, the default is :
4493 tt(SAMBA_INSTALL_DIRECTORY/lib/printers.def)
4495 This file is created from Windows 95 tt("msprint.def") files found on
4496 the Windows 95 client system. For more details on setting up serving
4497 of printer drivers to Windows 95 clients, see the documentation file
4498 in the docs/ directory, PRINTER_DRIVER.txt.
4500   bf(Default:)
4501 tt(     None (set in compile).)
4503   bf(Example:)
4504 tt(     printer driver file = /usr/local/samba/printers/drivers.def)
4506 See also link(bf("printer driver location"))(printerdriverlocation).
4508 label(printerdriverlocation)
4509 dit(bf(printer driver location (S)))
4511 This parameter tells clients of a particular printer share where to
4512 find the printer driver files for the automatic installation of
4513 drivers for Windows 95 machines. If Samba is set up to serve printer
4514 drivers to Windows 95 machines, this should be set to
4516 tt(\\MACHINE\aPRINTER$)
4518 Where MACHINE is the NetBIOS name of your Samba server, and PRINTER$
4519 is a share you set up for serving printer driver files. For more
4520 details on setting this up see the documentation file in the docs/
4521 directory, PRINTER_DRIVER.txt.
4523   bf(Default:)
4524 tt(     None)
4526   bf(Example:)
4527 tt(     printer driver location = \\MACHINE\PRINTER$)
4529 See also link(bf("printer driver file"))(printerdriverfile).
4531 label(printername)
4532 dit(bf(printer name (S)))
4534 Synonym for link(bf(printer))(printer).
4536 label(printing)
4537 dit(bf(printing (S)))
4539 This parameters controls how printer status information is interpreted
4540 on your system, and also affects the default values for the
4541 link(bf("print command"))(printcommand), link(bf("lpq
4542 command"))(lpqcommand) link(bf("lppause command"))(lppausecommand),
4543 link(bf("lpresume command"))(lpresumecommand), and link(bf("lprm
4544 command"))(lprmcommand).
4546 Currently eight printing styles are supported. They are
4547 bf("printing=BSD"), bf("printing=AIX"), bf("printing=LPRNG"),
4548 bf("printing=PLP"),
4549 bf("printing=SYSV"),bf("printing="HPUX"),bf("printing=QNX") and
4550 bf("printing=SOFTQ").
4552 To see what the defaults are for the other print commands when using
4553 these three options use the url(bf("testparm"))(testparm.1.html) program.
4555 This option can be set on a per printer basis
4557 See also the discussion in the link(bf([printers]))(printers) section.
4559 label(protocol)
4560 dit(bf(protocol (G)))
4562 The value of the parameter (a string) is the highest protocol level
4563 that will be supported by the server.
4565 Possible values are :
4567 startit()
4569 it() CORE: Earliest version. No concept of user names.
4571 it() COREPLUS: Slight improvements on CORE for efficiency.
4573 it() LANMAN1: First em("modern") version of the protocol. Long
4574 filename support.
4576 it() LANMAN2: Updates to Lanman1 protocol.
4578 it() NT1: Current up to date version of the protocol. Used by Windows
4579 NT. Known as CIFS.
4581 endit()
4583 Normally this option should not be set as the automatic negotiation
4584 phase in the SMB protocol takes care of choosing the appropriate
4585 protocol.
4587   bf(Default:)
4588 tt(     protocol = NT1)
4590   bf(Example:)
4591 tt(     protocol = LANMAN1)
4593 label(public)
4594 dit(bf(public (S)))
4596 Synonym for link(bf("guest ok"))(guestok).
4598 label(queuepausecommand)
4599 dit(bf(queuepause command (S)))
4601 This parameter specifies the command to be executed on the server host
4602 in order to pause the printerqueue.
4604 This command should be a program or script which takes a printer name
4605 as its only parameter and stops the printerqueue, such that no longer
4606 jobs are submitted to the printer.
4608 This command is not supported by Windows for Workgroups, but can be
4609 issued from the Printer's window under Windows 95 & NT.
4611 If a tt("%p") is given then the printername is put in its
4612 place. Otherwise it is placed at the end of the command.
4614 Note that it is good practice to include the absolute path in the
4615 command as the PATH may not be available to the server.
4617   bf(Default:)
4618 tt(        depends on the setting of "printing =")
4620   bf(Example:)
4621 tt(      queuepause command = disable %p)
4623 label(queueresumecommand)
4624 dit(bf(queueresume command (S)))
4626 This parameter specifies the command to be executed on the server host
4627 in order to resume the printerqueue. It is the command to undo the
4628 behavior that is caused by the previous parameter
4629 (link(bf("queuepause command))(queuepausecommand)).
4631 This command should be a program or script which takes a printer name
4632 as its only parameter and resumes the printerqueue, such that queued
4633 jobs are resubmitted to the printer.
4635 This command is not supported by Windows for Workgroups, but can be
4636 issued from the Printer's window under Windows 95 & NT.
4638 If a tt("%p") is given then the printername is put in its
4639 place. Otherwise it is placed at the end of the command.
4641 Note that it is good practice to include the absolute path in the
4642 command as the PATH may not be available to the server.
4644   bf(Default:)
4645 tt(        depends on the setting of "printing =")
4647   bf(Example:)
4648 tt(      queuepause command = enable %p)
4650 label(read bmpx)
4651 dit(bf(read bmpx (G)))
4653 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
4654 will support the "Read Block Multiplex" SMB. This is now rarely used
4655 and defaults to off. You should never need to set this parameter.
4657   bf(Default:)
4658         read bmpx = No
4660 label(readlist)
4661 dit(bf(read list (S)))
4663 This is a list of users that are given read-only access to a
4664 service. If the connecting user is in this list then they will not be
4665 given write access, no matter what the link(bf("read only"))(readonly)
4666 option is set to. The list can include group names using the syntax
4667 described in the link(bf("invalid users"))(invalidusers) parameter.
4669 See also the link(bf("write list"))(writelist) parameter and
4670 the link(bf("invalid users"))(invalidusers) parameter.
4672   bf(Default:)
4673 tt(     read list = <empty string>)
4675   bf(Example:)
4676 tt(     read list = mary, @students)
4678 label(readonly)
4679 dit(bf(read only (S)))
4681 Note that this is an inverted synonym for
4682 link(bf("writeable"))(writeable) and link(bf("write ok"))(writeok).
4684 See also link(bf("writeable"))(writeable) and link(bf("write
4685 ok"))(writeok).
4687 label(readprediction)
4688 dit(bf(read prediction (G)))
4690 em(NOTE): This code is currently disabled in Samba2.0 and
4691 may be removed at a later date. Hence this parameter has
4692 no effect.
4694 This options enables or disables the read prediction code used to
4695 speed up reads from the server. When enabled the server will try to
4696 pre-read data from the last accessed file that was opened read-only
4697 while waiting for packets.
4699   bf(Default:)
4700 tt(     read prediction = False)
4702 label(readraw)
4703 dit(bf(read raw (G)))
4705 This parameter controls whether or not the server will support the raw
4706 read SMB requests when transferring data to clients.
4708 If enabled, raw reads allow reads of 65535 bytes in one packet. This
4709 typically provides a major performance benefit.
4711 However, some clients either negotiate the allowable block size
4712 incorrectly or are incapable of supporting larger block sizes, and for
4713 these clients you may need to disable raw reads.
4715 In general this parameter should be viewed as a system tuning tool and left
4716 severely alone. See also link(bf("write raw"))(writeraw).
4718   bf(Default:)
4719 tt(     read raw = yes)
4721 label(readsize)
4722 dit(bf(read size (G)))
4724 The option bf("read size") affects the overlap of disk reads/writes
4725 with network reads/writes. If the amount of data being transferred in
4726 several of the SMB commands (currently SMBwrite, SMBwriteX and
4727 SMBreadbraw) is larger than this value then the server begins writing
4728 the data before it has received the whole packet from the network, or
4729 in the case of SMBreadbraw, it begins writing to the network before
4730 all the data has been read from disk.
4732 This overlapping works best when the speeds of disk and network access
4733 are similar, having very little effect when the speed of one is much
4734 greater than the other.
4736 The default value is 16384, but very little experimentation has been
4737 done yet to determine the optimal value, and it is likely that the
4738 best value will vary greatly between systems anyway. A value over
4739 65536 is pointless and will cause you to allocate memory
4740 unnecessarily.
4742   bf(Default:)
4743 tt(     read size = 16384)
4745   bf(Example:)
4746 tt(     read size = 8192)
4748 label(remoteannounce)
4749 dit(bf(remote announce (G)))
4751 This option allows you to setup url(bf(nmbd))(nmbd.8.html) to
4752 periodically announce itself to arbitrary IP addresses with an
4753 arbitrary workgroup name.
4755 This is useful if you want your Samba server to appear in a remote
4756 workgroup for which the normal browse propagation rules don't
4757 work. The remote workgroup can be anywhere that you can send IP
4758 packets to.
4760 For example:
4762 tt(     remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF)
4764 the above line would cause nmbd to announce itself to the two given IP
4765 addresses using the given workgroup names. If you leave out the
4766 workgroup name then the one given in the
4767 link(bf("workgroup"))(workgroup) parameter is used instead.
4769 The IP addresses you choose would normally be the broadcast addresses
4770 of the remote networks, but can also be the IP addresses of known
4771 browse masters if your network config is that stable.
4773 See the documentation file BROWSING.txt in the docs/ directory.
4775   bf(Default:)
4776 tt(     remote announce = <empty string>)
4778   bf(Example:)
4779 tt(     remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF)
4781 label(remotebrowsesync)
4782 dit(bf(remote browse sync (G)))
4784 This option allows you to setup url(bf(nmbd))(nmbd.8.html) to
4785 periodically request synchronization of browse lists with the master
4786 browser of a samba server that is on a remote segment. This option
4787 will allow you to gain browse lists for multiple workgroups across
4788 routed networks. This is done in a manner that does not work with any
4789 non-samba servers.
4791 This is useful if you want your Samba server and all local clients to
4792 appear in a remote workgroup for which the normal browse propagation
4793 rules don't work. The remote workgroup can be anywhere that you can
4794 send IP packets to.
4796 For example:
4798 tt(     remote browse sync = 192.168.2.255 192.168.4.255)
4800 the above line would cause url(bf(nmbd))(nmbd.8.html) to request the
4801 master browser on the specified subnets or addresses to synchronize
4802 their browse lists with the local server.
4804 The IP addresses you choose would normally be the broadcast addresses
4805 of the remote networks, but can also be the IP addresses of known
4806 browse masters if your network config is that stable. If a machine IP
4807 address is given Samba makes NO attempt to validate that the remote
4808 machine is available, is listening, nor that it is in fact the browse
4809 master on it's segment.
4811   bf(Default:)
4812 tt(     remote browse sync = <empty string>)
4814   bf(Example:)
4815 tt(     remote browse sync = 192.168.2.255 192.168.4.255)
4818 label(restrict anonymous)
4819 dit(bf(restrict anonymous (G)))
4821 This is a boolean parameter.  If it is true, then anonymous access
4822 to the server will be restricted, namely in the case where the server
4823 is expecting the client to send a username, but it doesn't.  Setting
4824 it to true will force these anonymous connections to be denied, and
4825 the client will be required to always supply a username and password
4826 when connecting. Use of this parameter is only recommened for homogenous 
4827 NT client environments.
4829 This parameter makes the use of macro expansions that rely
4830 on the username (%U, %G, etc) consistant.  NT 4.0 likes to use
4831 anonymous connections when refreshing the share list, and this
4832 is a way to work around that.
4834 When restrict anonymous is true, all anonymous connections are denied
4835 no matter what they are for.  This can effect the ability of a machine
4836 to access the samba Primary Domain Controller to revalidate it's machine
4837 account after someone else has logged on the client interactively.  The
4838 NT client will display a message saying that the machine's account in 
4839 the domain doesn't exist or the password is bad.  The best way to deal 
4840 with this is to reboot NT client machines between interactive logons, 
4841 using "Shutdown and Restart", rather than "Close all programs and logon 
4842 as a different user".
4844   bf(Default:)
4845 tt(     restrict anonymous = false)
4847   bf(Example:)
4848 tt(     restrict anonymous = true)
4850 label(revalidate)
4851 dit(bf(revalidate (S)))
4853 Note that this option only works with
4854 link(bf("security=share"))(securityequalshare) and will be ignored if
4855 this is not the case.
4857 This option controls whether Samba will allow a previously validated
4858 username/password pair to be used to attach to a share. Thus if you
4859 connect to tt(\\server\share1) then to tt(\\server\share2) it won't
4860 automatically allow the client to request connection to the second
4861 share as the same username as the first without a password.
4863 If bf("revalidate") is tt("True") then the client will be denied
4864 automatic access as the same username.
4866   bf(Default:)
4867 tt(     revalidate = False)
4869   bf(Example:)
4870 tt(     revalidate = True)
4872 label(root)
4873 dit(bf(root (G)))
4875 Synonym for link(bf("root directory"))(rootdirectory).
4877 label(rootdir)
4878 dit(bf(root dir (G)))
4880 Synonym for link(bf("root directory"))(rootdirectory).
4882 label(rootdirectory)
4883 dit(bf(root directory (G)))
4885 The server will tt("chroot()") (i.e. Change it's root directory) to
4886 this directory on startup. This is not strictly necessary for secure
4887 operation. Even without it the server will deny access to files not in
4888 one of the service entries. It may also check for, and deny access to,
4889 soft links to other parts of the filesystem, or attempts to use
4890 tt("..") in file names to access other directories (depending on the
4891 setting of the link(bf("wide links"))(widelinks) parameter).
4893 Adding a bf("root directory") entry other than tt("/") adds an extra
4894 level of security, but at a price. It absolutely ensures that no
4895 access is given to files not in the sub-tree specified in the bf("root
4896 directory") option, em(*including*) some files needed for complete
4897 operation of the server. To maintain full operability of the server
4898 you will need to mirror some system files into the bf("root
4899 directory") tree. In particular you will need to mirror /etc/passwd
4900 (or a subset of it), and any binaries or configuration files needed
4901 for printing (if required). The set of files that must be mirrored is
4902 operating system dependent.
4904   bf(Default:)
4905 tt(     root directory = /)
4907 bf(Example:)
4908 tt(     root directory = /homes/smb)
4910 label(rootpostexec)
4911 dit(bf(root postexec (S)))
4913 This is the same as the link(bf("postexec"))(postexec) parameter
4914 except that the command is run as root. This is useful for unmounting
4915 filesystems (such as cdroms) after a connection is closed.
4917 See also link(bf("postexec"))(postexec).
4919 label(rootpreexec)
4920 dit(bf(root preexec (S)))
4922 This is the same as the link(bf("preexec"))(preexec) parameter except
4923 that the command is run as root. This is useful for mounting
4924 filesystems (such as cdroms) before a connection is finalized.
4926 See also link(bf("preexec"))(preexec).
4928 label(security)
4929 dit(bf(security (G)))
4931 This option affects how clients respond to Samba and is one of the most
4932 important settings in the bf(smb.conf) file.
4934 The option sets the tt("security mode bit") in replies to protocol
4935 negotiations with url(bf(smbd))(smbd.8.html) to turn share level
4936 security on or off. Clients decide based on this bit whether (and how)
4937 to transfer user and password information to the server.
4939 The default is link("security=user")(securityequaluser), as this is
4940 the most common setting needed when talking to Windows 98 and Windows
4943 The alternatives are link(bf("security = share"))(securityequalshare),
4944 link(bf("security = server"))(securityequalserver) or
4945 link(bf("security=domain"))(securityequaldomain).
4947 em(*****NOTE THAT THIS DEFAULT IS DIFFERENT IN SAMBA2.0 THAN FOR
4948 PREVIOUS VERSIONS OF SAMBA *******).
4950 In previous versions of Samba the default was
4951 link(bf("security=share"))(securityequalshare) mainly because that was
4952 the only option at one stage.
4954 There is a bug in WfWg that has relevance to this setting. When in
4955 user or server level security a WfWg client will totally ignore the
4956 password you type in the "connect drive" dialog box. This makes it
4957 very difficult (if not impossible) to connect to a Samba service as
4958 anyone except the user that you are logged into WfWg as.
4960 If your PCs use usernames that are the same as their usernames on the
4961 UNIX machine then you will want to use bf("security = user"). If you
4962 mostly use usernames that don't exist on the UNIX box then use
4963 bf("security = share").
4965 You should also use link(bf(security=share))(securityequalshare) if
4966 you want to mainly setup shares without a password (guest
4967 shares). This is commonly used for a shared printer server. It is more
4968 difficult to setup guest shares with
4969 link(bf(security=user))(securityequaluser), see the link(bf("map to
4970 guest"))(maptoguest)parameter for details.
4972 It is possible to use url(bf(smbd))(smbd.8.html) in a em("hybrid
4973 mode") where it is offers both user and share level security under
4974 different link(bf(NetBIOS aliases))(netbiosaliases). See the
4975 link(bf(NetBIOS aliases))(netbiosaliases) and the
4976 link(bf(include))(include) parameters for more information.
4978 The different settings will now be explained.
4980 startdit()
4982 label(securityequalshare)
4983 dit(bf("security=share")) When clients connect to a share level
4984 security server then need not log onto the server with a valid
4985 username and password before attempting to connect to a shared
4986 resource (although modern clients such as Windows 95/98 and Windows NT
4987 will send a logon request with a username but no password when talking
4988 to a bf(security=share) server). Instead, the clients send
4989 authentication information (passwords) on a per-share basis, at the
4990 time they attempt to connect to that share.
4992 Note that url(bf(smbd))(smbd.8.html) em(*ALWAYS*) uses a valid UNIX
4993 user to act on behalf of the client, even in bf("security=share")
4994 level security.
4996 As clients are not required to send a username to the server
4997 in share level security, url(bf(smbd))(smbd.8.html) uses several
4998 techniques to determine the correct UNIX user to use on behalf
4999 of the client.
5001 A list of possible UNIX usernames to match with the given
5002 client password is constructed using the following methods :
5004 startit()
5006 it() If the link(bf("guest only"))(guestonly) parameter is set, then
5007 all the other stages are missed and only the link(bf("guest
5008 account"))(guestaccount) username is checked.
5010 it() Is a username is sent with the share connection request, then
5011 this username (after mapping - see link(bf("username
5012 map"))(usernamemap)), is added as a potential username.
5014 it() If the client did a previous em("logon") request (the
5015 SessionSetup SMB call) then the username sent in this SMB
5016 will be added as a potential username.
5018 it() The name of the service the client requested is added
5019 as a potential username.
5021 it() The NetBIOS name of the client is added to the list as a
5022 potential username.
5024 it() Any users on the link(bf("user"))(user) list are added
5025 as potential usernames.
5027 endit()
5029 If the link(bf("guest only"))(guestonly) parameter is not set, then
5030 this list is then tried with the supplied password. The first user for
5031 whom the password matches will be used as the UNIX user.
5033 If the link(bf("guest only"))(guestonly) parameter is set, or no
5034 username can be determined then if the share is marked as available to
5035 the link(bf("guest account"))(guestaccount), then this guest user will
5036 be used, otherwise access is denied.
5038 Note that it can be em(*very*) confusing in share-level security as to
5039 which UNIX username will eventually be used in granting access.
5041 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5042 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5044 label(securityequaluser)
5045 dit(bf("security=user"))
5047 This is the default security setting in Samba2.0. With user-level
5048 security a client must first tt("log-on") with a valid username and
5049 password (which can be mapped using the link(bf("username
5050 map"))(usernamemap) parameter). Encrypted passwords (see the
5051 link(bf("encrypted passwords"))(encryptpasswords) parameter) can also
5052 be used in this security mode. Parameters such as
5053 link(bf("user"))(user) and link(bf("guest only"))(guestonly), if set
5054 are then applied and may change the UNIX user to use on this
5055 connection, but only after the user has been successfully
5056 authenticated.
5058 em(Note) that the name of the resource being requested is
5059 em(*not*) sent to the server until after the server has successfully
5060 authenticated the client. This is why guest shares don't work in user
5061 level security without allowing the server to automatically map unknown
5062 users into the link(bf("guest account"))(guestaccount). See the
5063 link(bf("map to guest"))(maptoguest) parameter for details on
5064 doing this.
5066 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5067 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5069 label(securityequalserver)
5070 dit(bf("security=server"))
5072 In this mode Samba will try to validate the username/password by
5073 passing it to another SMB server, such as an NT box. If this fails it
5074 will revert to bf("security = user"), but note that if encrypted
5075 passwords have been negotiated then Samba cannot revert back to
5076 checking the UNIX password file, it must have a valid smbpasswd file
5077 to check users against. See the documentation file in the docs/
5078 directory ENCRYPTION.txt for details on how to set this up.
5080 em(Note) that from the clients point of view bf("security=server") is
5081 the same as link(bf("security=user"))(securityequaluser). It only
5082 affects how the server deals with the authentication, it does not in
5083 any way affect what the client sees.
5085 em(Note) that the name of the resource being requested is
5086 em(*not*) sent to the server until after the server has successfully
5087 authenticated the client. This is why guest shares don't work in server
5088 level security without allowing the server to automatically map unknown
5089 users into the link(bf("guest account"))(guestaccount). See the
5090 link(bf("map to guest"))(maptoguest) parameter for details on
5091 doing this.
5093 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5094 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5096 See also the link(bf("password server"))(passwordserver) parameter.
5097 and the link(bf("encrypted passwords"))(encryptpasswords) parameter.
5099 label(securityequaldomain)
5100 dit(bf("security=domain"))
5102 This mode will only work correctly if
5103 url(bf(smbpasswd))(smbpasswd.8.html) has been used to add this machine
5104 into a Windows NT Domain. It expects the link(bf("encrypted
5105 passwords"))(encryptpasswords) parameter to be set to tt("true"). In
5106 this mode Samba will try to validate the username/password by passing
5107 it to a Windows NT Primary or Backup Domain Controller, in exactly the
5108 same way that a Windows NT Server would do.
5110 em(Note) that a valid UNIX user must still exist as well as the
5111 account on the Domain Controller to allow Samba to have a valid
5112 UNIX account to map file access to.
5114 em(Note) that from the clients point of view bf("security=domain") is
5115 the same as link(bf("security=user"))(securityequaluser). It only
5116 affects how the server deals with the authentication, it does not in
5117 any way affect what the client sees.
5119 em(Note) that the name of the resource being requested is
5120 em(*not*) sent to the server until after the server has successfully
5121 authenticated the client. This is why guest shares don't work in domain
5122 level security without allowing the server to automatically map unknown
5123 users into the link(bf("guest account"))(guestaccount). See the
5124 link(bf("map to guest"))(maptoguest) parameter for details on
5125 doing this.
5127 e,(BUG:) There is currently a bug in the implementation of
5128 bf("security=domain) with respect to multi-byte character
5129 set usernames. The communication with a Domain Controller
5130 must be done in UNICODE and Samba currently does not widen
5131 multi-byte user names to UNICODE correctly, thus a multi-byte
5132 username will not be recognized correctly at the Domain Controller.
5133 This issue will be addressed in a future release.
5135 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5136 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5138 See also the link(bf("password server"))(passwordserver) parameter.
5139 and the link(bf("encrypted passwords"))(encryptpasswords) parameter.
5141 enddit()
5143   bf(Default:)
5144 tt(     security = USER)
5146   bf(Example:)
5147 tt(     security = DOMAIN)
5149 label(serverstring)
5150 dit(bf(server string (G)))
5152 This controls what string will show up in the printer comment box in
5153 print manager and next to the IPC connection in tt("net view"). It can be
5154 any string that you wish to show to your users.
5156 It also sets what will appear in browse lists next to the machine
5157 name.
5159 A tt("%v") will be replaced with the Samba version number.
5161 A tt("%h") will be replaced with the hostname.
5163   bf(Default:)
5164 tt(     server string = Samba %v)
5166   bf(Example:)
5167 tt(     server string = University of GNUs Samba Server)
5169 label(setdirectory)
5170 dit(bf(set directory (S)))
5172 If tt("set directory = no"), then users of the service may not use the
5173 setdir command to change directory.
5175 The setdir command is only implemented in the Digital Pathworks
5176 client. See the Pathworks documentation for details.
5178   bf(Default:)
5179 tt(     set directory = no)
5181   bf(Example:)
5182 tt(     set directory = yes)
5184 label(sharemodes)
5185 dit(bf(share modes (S)))
5187 This enables or disables the honoring of the tt("share modes") during a
5188 file open. These modes are used by clients to gain exclusive read or
5189 write access to a file.
5191 These open modes are not directly supported by UNIX, so they are
5192 simulated using shared memory, or lock files if your UNIX doesn't
5193 support shared memory (almost all do).
5195 The share modes that are enabled by this option are DENY_DOS,
5196 DENY_ALL, DENY_READ, DENY_WRITE, DENY_NONE and DENY_FCB.
5198 This option gives full share compatibility and enabled by default.
5200 You should em(*NEVER*) turn this parameter off as many Windows
5201 applications will break if you do so.
5203   bf(Default:)
5204 tt(     share modes = yes)
5206 label(sharedmemsize)
5207 dit(bf(shared mem size (G)))
5209 It specifies the size of the shared memory (in bytes) to use between
5210 url(bf(smbd))(smbd.8.html) processes. This parameter defaults to one
5211 megabyte of shared memory. It is possible that if you have a large
5212 server with many files open simultaneously that you may need to
5213 increase this parameter. Signs that this parameter is set too low are
5214 users reporting strange problems trying to save files (locking errors)
5215 and error messages in the smbd log looking like tt("ERROR
5216 smb_shm_alloc : alloc of XX bytes failed").
5218   bf(Default:)
5219 tt(     shared mem size = 1048576)
5221   bf(Example:)
5222 tt(     shared mem size = 5242880 ; Set to 5mb for a large number of files.)
5224 label(shortpreservecase)
5225 dit(bf(short preserve case (G)))
5227 This boolean parameter controls if new files which conform to 8.3
5228 syntax, that is all in upper case and of suitable length, are created
5229 upper case, or if they are forced to be the tt("default") case. This
5230 option can be use with link(bf("preserve case
5231 =yes"))(preservecaseoption) to permit long filenames to retain their
5232 case, while short names are lowered. Default em(Yes).
5234 See the section on link(bf(NAME MANGLING))(NAMEMANGLING).
5236   bf(Default:)
5237 tt(     short preserve case = yes)
5239 label(smbpasswdfile)
5240 dit(bf(smb passwd file (G)))
5242 This option sets the path to the encrypted smbpasswd file.  By default
5243 the path to the smbpasswd file is compiled into Samba.
5245   bf(Default:)
5246 tt(     smb passwd file= <compiled default>)
5248   bf(Example:)
5249 tt(     smb passwd file = /usr/samba/private/smbpasswd)
5251 label(smbrun)
5252 dit(bf(smbrun (G)))
5254 This sets the full path to the bf(smbrun) binary. This defaults to the
5255 value in the Makefile.
5257 You must get this path right for many services to work correctly.
5259 You should not need to change this parameter so long as Samba
5260 is installed correctly.
5262   bf(Default:)
5263 tt(     smbrun=<compiled default>)
5265   bf(Example:)
5266 tt(     smbrun = /usr/local/samba/bin/smbrun)
5268 label(socketaddress)
5269 dit(bf(socket address (G)))
5271 This option allows you to control what address Samba will listen for
5272 connections on. This is used to support multiple virtual interfaces on
5273 the one server, each with a different configuration.
5275 By default samba will accept connections on any address.
5277   bf(Example:)
5278 tt(     socket address = 192.168.2.20)
5280 label(socketoptions)
5281 dit(bf(socket options (G)))
5283 This option allows you to set socket options to be used when talking
5284 with the client.
5286 Socket options are controls on the networking layer of the operating
5287 systems which allow the connection to be tuned.
5289 This option will typically be used to tune your Samba server for
5290 optimal performance for your local network. There is no way that Samba
5291 can know what the optimal parameters are for your net, so you must
5292 experiment and choose them yourself. We strongly suggest you read the
5293 appropriate documentation for your operating system first (perhaps
5294 bf("man setsockopt") will help).
5296 You may find that on some systems Samba will say "Unknown socket
5297 option" when you supply an option. This means you either incorrectly 
5298 typed it or you need to add an include file to includes.h for your OS. 
5299 If the latter is the case please send the patch to
5300 email(samba-bugs@samba.org).
5302 Any of the supported socket options may be combined in any way you
5303 like, as long as your OS allows it.
5305 This is the list of socket options currently settable using this
5306 option:
5308 startit()
5310 it() SO_KEEPALIVE
5312 it() SO_REUSEADDR
5314 it() SO_BROADCAST
5316 it() TCP_NODELAY
5318 it() IPTOS_LOWDELAY
5320 it() IPTOS_THROUGHPUT
5322 it() SO_SNDBUF *
5324 it() SO_RCVBUF *
5326 it() SO_SNDLOWAT *
5328 it() SO_RCVLOWAT *
5330 endit()
5332 Those marked with a tt(*) take an integer argument. The others can
5333 optionally take a 1 or 0 argument to enable or disable the option, by
5334 default they will be enabled if you don't specify 1 or 0.
5336 To specify an argument use the syntax SOME_OPTION=VALUE for example
5337 tt(SO_SNDBUF=8192). Note that you must not have any spaces before or after
5338 the = sign.
5340 If you are on a local network then a sensible option might be
5342 tt(socket options = IPTOS_LOWDELAY)
5344 If you have a local network then you could try:
5346 tt(socket options = IPTOS_LOWDELAY TCP_NODELAY)
5348 If you are on a wide area network then perhaps try setting
5349 IPTOS_THROUGHPUT. 
5351 Note that several of the options may cause your Samba server to fail
5352 completely. Use these options with caution!
5354   bf(Default:)
5355 tt(     socket options = TCP_NODELAY)
5357   bf(Example:)
5358 tt(     socket options = IPTOS_LOWDELAY)
5360 label(ssl)
5361 dit(bf(ssl (G)))
5363 This variable is part of SSL-enabled Samba. This is only available if
5364 the SSL libraries have been compiled on your system and the configure
5365 option tt("--with-ssl") was given at configure time.
5367 em(Note) that for export control reasons this code is em(**NOT**)
5368 enabled by default in any current binary version of Samba.
5370 This variable enables or disables the entire SSL mode. If it is set to
5371 "no", the SSL enabled samba behaves exactly like the non-SSL samba. If
5372 set to "yes", it depends on the variables link(bf("ssl
5373 hosts"))(sslhosts) and link(bf("ssl hosts resign"))(sslhostsresign)
5374 whether an SSL connection will be required.
5376   bf(Default:)
5377 tt(     ssl=no)
5378   bf(Example:)
5379 tt(     ssl=yes)
5381 label(sslCAcertDir)
5382 dit(bf(ssl CA certDir (G)))
5384 This variable is part of SSL-enabled Samba. This is only available if
5385 the SSL libraries have been compiled on your system and the configure
5386 option tt("--with-ssl") was given at configure time.
5388 em(Note) that for export control reasons this code is em(**NOT**)
5389 enabled by default in any current binary version of Samba.
5391 This variable defines where to look up the Certification
5392 Authorities. The given directory should contain one file for each CA
5393 that samba will trust.  The file name must be the hash value over the
5394 "Distinguished Name" of the CA. How this directory is set up is
5395 explained later in this document. All files within the directory that
5396 don't fit into this naming scheme are ignored. You don't need this
5397 variable if you don't verify client certificates.
5399   bf(Default:)
5400 tt(     ssl CA certDir = /usr/local/ssl/certs)
5402 label(sslCAcertFile)
5403 dit(bf(ssl CA certFile (G)))
5405 This variable is part of SSL-enabled Samba. This is only available if
5406 the SSL libraries have been compiled on your system and the configure
5407 option tt("--with-ssl") was given at configure time.
5409 em(Note) that for export control reasons this code is em(**NOT**)
5410 enabled by default in any current binary version of Samba.
5412 This variable is a second way to define the trusted CAs. The
5413 certificates of the trusted CAs are collected in one big file and this
5414 variable points to the file. You will probably only use one of the two
5415 ways to define your CAs. The first choice is preferable if you have
5416 many CAs or want to be flexible, the second is preferable if you only
5417 have one CA and want to keep things simple (you won't need to create
5418 the hashed file names). You don't need this variable if you don't
5419 verify client certificates.
5421   bf(Default:)
5422 tt(     ssl CA certFile = /usr/local/ssl/certs/trustedCAs.pem)
5424 label(sslciphers)
5425 dit(bf(ssl ciphers (G)))
5427 This variable is part of SSL-enabled Samba. This is only available if
5428 the SSL libraries have been compiled on your system and the configure
5429 option tt("--with-ssl") was given at configure time.
5431 em(Note) that for export control reasons this code is em(**NOT**)
5432 enabled by default in any current binary version of Samba.
5434 This variable defines the ciphers that should be offered during SSL
5435 negotiation. You should not set this variable unless you know what you
5436 are doing.
5438 label(sslclientcert)
5439 dit(bf(ssl client cert (G)))
5441 This variable is part of SSL-enabled Samba. This is only available if
5442 the SSL libraries have been compiled on your system and the configure
5443 option tt("--with-ssl") was given at configure time.
5445 em(Note) that for export control reasons this code is em(**NOT**)
5446 enabled by default in any current binary version of Samba.
5448 The certificate in this file is used by
5449 url(bf(smbclient))(smbclient.1.html) if it exists. It's needed if the
5450 server requires a client certificate.
5452   bf(Default:)
5453 tt(     ssl client cert = /usr/local/ssl/certs/smbclient.pem)
5455 label(sslclientkey)
5456 dit(bf(ssl client key (G)))
5458 This variable is part of SSL-enabled Samba. This is only available if
5459 the SSL libraries have been compiled on your system and the configure
5460 option tt("--with-ssl") was given at configure time.
5462 em(Note) that for export control reasons this code is em(**NOT**)
5463 enabled by default in any current binary version of Samba.
5465 This is the private key for url(bf(smbclient))(smbclient.1.html). It's
5466 only needed if the client should have a certificate.
5468   bf(Default:)
5469 tt(     ssl client key = /usr/local/ssl/private/smbclient.pem)
5471 label(sslcompatibility)
5472 dit(bf(ssl compatibility (G)))
5474 This variable is part of SSL-enabled Samba. This is only available if
5475 the SSL libraries have been compiled on your system and the configure
5476 option tt("--with-ssl") was given at configure time.
5478 em(Note) that for export control reasons this code is em(**NOT**)
5479 enabled by default in any current binary version of Samba.
5481 This variable defines whether SSLeay should be configured for bug
5482 compatibility with other SSL implementations. This is probably not
5483 desirable because currently no clients with SSL implementations other
5484 than SSLeay exist.
5486   bf(Default:)
5487 tt(     ssl compatibility = no)
5489 label(sslhosts)
5490 dit(bf(ssl hosts (G)))
5492 See link(bf("ssl hosts resign"))(sslhostsresign).
5494 label(sslhostsresign)
5495 dit(bf(ssl hosts resign (G)))
5497 This variable is part of SSL-enabled Samba. This is only available if
5498 the SSL libraries have been compiled on your system and the configure
5499 option tt("--with-ssl") was given at configure time.
5501 em(Note) that for export control reasons this code is em(**NOT**)
5502 enabled by default in any current binary version of Samba.
5504 These two variables define whether samba will go into SSL mode or
5505 not. If none of them is defined, samba will allow only SSL
5506 connections. If the link(bf("ssl hosts"))(sslhosts) variable lists
5507 hosts (by IP-address, IP-address range, net group or name), only these
5508 hosts will be forced into SSL mode. If the bf("ssl hosts resign")
5509 variable lists hosts, only these hosts will NOT be forced into SSL
5510 mode. The syntax for these two variables is the same as for the
5511 link(bf("hosts allow"))(hostsallow) and link(bf("hosts
5512 deny"))(hostsdeny) pair of variables, only that the subject of the
5513 decision is different: It's not the access right but whether SSL is
5514 used or not. See the link(bf("allow hosts"))(allowhosts) parameter for
5515 details. The example below requires SSL connections from all hosts
5516 outside the local net (which is 192.168.*.*).
5518   bf(Default:)
5519 tt(     ssl hosts = <empty string>)
5520 tt(     ssl hosts resign = <empty string>)
5522   bf(Example:)
5523 tt(     ssl hosts resign = 192.168.)
5525 label(sslrequireclientcert)
5526 dit(bf(ssl require clientcert (G)))
5528 This variable is part of SSL-enabled Samba. This is only available if
5529 the SSL libraries have been compiled on your system and the configure
5530 option tt("--with-ssl") was given at configure time.
5532 em(Note) that for export control reasons this code is em(**NOT**)
5533 enabled by default in any current binary version of Samba.
5535 If this variable is set to tt("yes"), the server will not tolerate
5536 connections from clients that don't have a valid certificate. The
5537 directory/file given in link(bf("ssl CA certDir"))(sslCAcertDir) and
5538 link(bf("ssl CA certFile"))(sslCAcertFile) will be used to look up the
5539 CAs that issued the client's certificate. If the certificate can't be
5540 verified positively, the connection will be terminated.  If this
5541 variable is set to tt("no"), clients don't need certificates. Contrary
5542 to web applications you really em(*should*) require client
5543 certificates. In the web environment the client's data is sensitive
5544 (credit card numbers) and the server must prove to be trustworthy. In
5545 a file server environment the server's data will be sensitive and the
5546 clients must prove to be trustworthy.
5548   bf(Default:)
5549 tt(     ssl require clientcert = no)
5551 label(sslrequireservercert)
5552 dit(bf(ssl require servercert (G)))
5554 This variable is part of SSL-enabled Samba. This is only available if
5555 the SSL libraries have been compiled on your system and the configure
5556 option tt("--with-ssl") was given at configure time.
5558 em(Note) that for export control reasons this code is em(**NOT**)
5559 enabled by default in any current binary version of Samba.
5561 If this variable is set to tt("yes"), the
5562 url(bf(smbclient))(smbclient.1.html) will request a certificate from
5563 the server. Same as link(bf("ssl require
5564 clientcert"))(sslrequireclientcert) for the server.
5566   bf(Default:)
5567 tt(     ssl require servercert = no)
5569 label(sslservercert)
5570 dit(bf(ssl server cert (G)))
5572 This variable is part of SSL-enabled Samba. This is only available if
5573 the SSL libraries have been compiled on your system and the configure
5574 option tt("--with-ssl") was given at configure time.
5576 em(Note) that for export control reasons this code is em(**NOT**)
5577 enabled by default in any current binary version of Samba.
5579 This is the file containing the server's certificate. The server _must_
5580 have a certificate. The file may also contain the server's private key.
5581 See later for how certificates and private keys are created.
5583   bf(Default:)
5584 tt(     ssl server cert = <empty string>)
5586 label(sslserverkey)
5587 dit(bf(ssl server key (G)))
5589 This variable is part of SSL-enabled Samba. This is only available if
5590 the SSL libraries have been compiled on your system and the configure
5591 option tt("--with-ssl") was given at configure time.
5593 em(Note) that for export control reasons this code is em(**NOT**)
5594 enabled by default in any current binary version of Samba.
5596 This file contains the private key of the server. If this variable is
5597 not defined, the key is looked up in the certificate file (it may be
5598 appended to the certificate). The server em(*must*) have a private key
5599 and the certificate em(*must*) match this private key.
5601   bf(Default:)
5602 tt(     ssl server key = <empty string>)
5604 label(sslversion)
5605 dit(bf(ssl version (G)))
5607 This variable is part of SSL-enabled Samba. This is only available if
5608 the SSL libraries have been compiled on your system and the configure
5609 option tt("--with-ssl") was given at configure time.
5611 em(Note) that for export control reasons this code is em(**NOT**)
5612 enabled by default in any current binary version of Samba.
5614 This enumeration variable defines the versions of the SSL protocol
5615 that will be used. tt("ssl2or3") allows dynamic negotiation of SSL v2
5616 or v3, tt("ssl2") results in SSL v2, tt("ssl3") results in SSL v3 and
5617 "tls1" results in TLS v1. TLS (Transport Layer Security) is the
5618 (proposed?) new standard for SSL.
5620   bf(Default:)
5621 tt(     ssl version = "ssl2or3")
5623 label(statcache)
5624 dit(bf(stat cache (G)))
5626 This parameter determines if url(bf(smbd))(smbd.8.html) will use a
5627 cache in order to speed up case insensitive name mappings. You should
5628 never need to change this parameter.
5630   bf(Default:)
5631 tt(     stat cache = yes)
5633 label(statcachesize)
5634 dit(bf(stat cache size (G)))
5636 This parameter determines the number of entries in the link(bf(stat
5637 cache))(statcache).  You should never need to change this parameter.
5639   bf(Default:)
5640 tt(     stat cache size = 50)
5642 label(status)
5643 dit(bf(status (G)))
5645 This enables or disables logging of connections to a status file that
5646 url(bf(smbstatus))(smbstatus.1.html) can read.
5648 With this disabled url(bf(smbstatus))(smbstatus.1.html) won't be able
5649 to tell you what connections are active. You should never need to
5650 change this parameter.
5652   bf(Default:)
5653         status = yes
5655 label(strictlocking)
5656 dit(bf(strict locking (S)))
5658 This is a boolean that controls the handling of file locking in the
5659 server. When this is set to tt("yes") the server will check every read and
5660 write access for file locks, and deny access if locks exist. This can
5661 be slow on some systems.
5663 When strict locking is tt("no") the server does file lock checks only
5664 when the client explicitly asks for them.
5666 Well behaved clients always ask for lock checks when it is important,
5667 so in the vast majority of cases bf("strict locking = no") is
5668 preferable.
5670   bf(Default:)
5671 tt(     strict locking = no)
5673   bf(Example:)
5674 tt(     strict locking = yes)
5676 label(strictsync)
5677 dit(bf(strict sync (S)))
5679 Many Windows applications (including the Windows 98 explorer shell)
5680 seem to confuse flushing buffer contents to disk with doing a sync to
5681 disk. Under UNIX, a sync call forces the process to be suspended until
5682 the kernel has ensured that all outstanding data in kernel disk
5683 buffers has been safely stored onto stable storage. This is very slow
5684 and should only be done rarely. Setting this parameter to "no" (the
5685 default) means that smbd ignores the Windows applications requests for
5686 a sync call. There is only a possibility of losing data if the
5687 operating system itself that Samba is running on crashes, so there is
5688 little danger in this default setting. In addition, this fixes many
5689 performance problems that people have reported with the new Windows98
5690 explorer shell file copies.
5692 See also the link(bf("sync always"))(syncalways) parameter.
5694   bf(Default:)
5695 tt(     strict sync = no)
5697   bf(Example:)
5698 tt(     strict sync = yes)
5700 label(stripdot)
5701 dit(bf(strip dot (G)))
5703 This is a boolean that controls whether to strip trailing dots off
5704 UNIX filenames. This helps with some CDROMs that have filenames ending
5705 in a single dot.
5707   bf(Default:)
5708 tt(     strip dot = no)
5710   bf(Example:)
5711 tt(     strip dot = yes)
5713 label(syncalways)
5714 dit(bf(sync always (S)))
5716 This is a boolean parameter that controls whether writes will always
5717 be written to stable storage before the write call returns. If this is
5718 false then the server will be guided by the client's request in each
5719 write call (clients can set a bit indicating that a particular write
5720 should be synchronous). If this is true then every write will be
5721 followed by a fsync() call to ensure the data is written to disk.
5722 Note that the link(bf("strict sync"))(strictsync) parameter must be
5723 set to tt("yes") in order for this parameter to have any affect.
5725 See also the link(bf("strict sync"))(strictsync) parameter.
5727   bf(Default:)
5728 tt(     sync always = no)
5730   bf(Example:)
5731 tt(     sync always = yes)
5733 label(syslog)
5734 dit(bf(syslog (G)))
5736 This parameter maps how Samba debug messages are logged onto the
5737 system syslog logging levels. Samba debug level zero maps onto syslog
5738 LOG_ERR, debug level one maps onto LOG_WARNING, debug level two maps
5739 onto LOG_NOTICE, debug level three maps onto LOG_INFO. All higher 
5740 levels are mapped to LOG_DEBUG.
5742 This paramter sets the threshold for sending messages to syslog. 
5743 Only messages with debug level less than this value will be sent 
5744 to syslog.
5746   bf(Default:)
5747 tt(     syslog = 1)
5749 label(syslogonly)
5750 dit(bf(syslog only (G)))
5752 If this parameter is set then Samba debug messages are logged into the
5753 system syslog only, and not to the debug log files.
5755   bf(Default:)
5756 tt(     syslog only = no)
5758 label(timeoffset)
5759 dit(bf(time offset (G)))
5761 This parameter is a setting in minutes to add to the normal GMT to
5762 local time conversion. This is useful if you are serving a lot of PCs
5763 that have incorrect daylight saving time handling.
5765   bf(Default:)
5766 tt(     time offset = 0)
5768   bf(Example:)
5769 tt(     time offset = 60)
5771 label(timeserver)
5773 dit(bf(time server (G)))
5775 This parameter determines if url(bf(nmbd))(nmbd.8.html) advertises
5776 itself as a time server to Windows clients. The default is False.
5778   bf(Default:)
5779 tt(     time server = False)
5781   bf(Example:)
5782 tt(     time server = True)
5784 label(timestamplogs)
5785 dit(bf(timestamp logs (G)))
5787 Samba2.0 will a timestamps to all log entries by default. This
5788 can be distracting if you are attempting to debug a problem. This
5789 parameter allows the timestamping to be turned off.
5791   bf(Default:)
5792 tt(     timestamp logs = True)
5794   bf(Example:)
5795 tt(     timestamp logs = False)
5797 label(unixpasswordsync)
5798 dit(bf(unix password sync (G)))
5800 This boolean parameter controls whether Samba attempts to synchronize
5801 the UNIX password with the SMB password when the encrypted SMB
5802 password in the smbpasswd file is changed. If this is set to true the
5803 program specified in the link(bf("passwd program"))(passwdprogram)
5804 parameter is called em(*AS ROOT*) - to allow the new UNIX password to be
5805 set without access to the old UNIX password (as the SMB password has
5806 change code has no access to the old password cleartext, only the
5807 new). By default this is set to tt("false").
5809 See also link(bf("passwd program"))(passwdprogram), link(bf("passwd
5810 chat"))(passwdchat).
5812   bf(Default:)
5813 tt(     unix password sync = False)
5815   bf(Example:)
5816 tt(     unix password sync = True)
5818 label(unixrealname)
5819 dit(bf(unix realname (G)))
5821 This boolean parameter when set causes samba to supply the real name
5822 field from the unix password file to the client. This is useful for
5823 setting up mail clients and WWW browsers on systems used by more than
5824 one person.
5826   bf(Default:)
5827 tt(     unix realname = no)
5829   bf(Example:)
5830 tt(     unix realname = yes)
5832 label(updateencrypted)
5833 dit(bf(update encrypted (G)))
5835 This boolean parameter allows a user logging on with a plaintext
5836 password to have their encrypted (hashed) password in the smbpasswd
5837 file to be updated automatically as they log on. This option allows a
5838 site to migrate from plaintext password authentication (users
5839 authenticate with plaintext password over the wire, and are checked
5840 against a UNIX account database) to encrypted password authentication
5841 (the SMB challenge/response authentication mechanism) without forcing
5842 all users to re-enter their passwords via smbpasswd at the time the
5843 change is made. This is a convenience option to allow the change over
5844 to encrypted passwords to be made over a longer period. Once all users
5845 have encrypted representations of their passwords in the smbpasswd
5846 file this parameter should be set to tt("off").
5848 In order for this parameter to work correctly the link(bf("encrypt
5849 passwords"))(encryptpasswords) parameter must be set to tt("no") when
5850 this parameter is set to tt("yes").
5852 Note that even when this parameter is set a user authenticating to
5853 smbd must still enter a valid password in order to connect correctly,
5854 and to update their hashed (smbpasswd) passwords.
5856   bf(Default:)
5857 tt(     update encrypted = no)
5859   bf(Example:)
5860 tt(     update encrypted = yes)
5862 label(userhosts)
5863 dit(bf(use rhosts (G)))
5865 If this global parameter is a true, it specifies that the UNIX users
5866 tt(".rhosts") file in their home directory will be read to find the
5867 names of hosts and users who will be allowed access without specifying
5868 a password.
5870 NOTE: The use of bf(use rhosts) can be a major security hole. This is
5871 because you are trusting the PC to supply the correct username. It is
5872 very easy to get a PC to supply a false username. I recommend that the
5873 bf(use rhosts) option be only used if you really know what you are
5874 doing.
5876   bf(Default:)
5877 tt(     use rhosts = no)
5879   bf(Example:)
5880 tt(     use rhosts = yes)
5882 label(user)
5883 dit(bf(user (S)))
5885 Synonym for link(bf("username"))(username).
5887 label(users)
5888 dit(bf(users (S)))
5890 Synonym for link(bf("username"))(username).
5892 label(username)
5893 dit(bf(username (S)))
5895 Multiple users may be specified in a comma-delimited list, in which
5896 case the supplied password will be tested against each username in
5897 turn (left to right).
5899 The bf(username=) line is needed only when the PC is unable to supply
5900 its own username. This is the case for the COREPLUS protocol or where
5901 your users have different WfWg usernames to UNIX usernames. In both
5902 these cases you may also be better using the tt(\\server\share%user)
5903 syntax instead.
5905 The bf(username=) line is not a great solution in many cases as it
5906 means Samba will try to validate the supplied password against each of
5907 the usernames in the username= line in turn. This is slow and a bad
5908 idea for lots of users in case of duplicate passwords. You may get
5909 timeouts or security breaches using this parameter unwisely.
5911 Samba relies on the underlying UNIX security. This parameter does not
5912 restrict who can login, it just offers hints to the Samba server as to
5913 what usernames might correspond to the supplied password. Users can
5914 login as whoever they please and they will be able to do no more
5915 damage than if they started a telnet session. The daemon runs as the
5916 user that they log in as, so they cannot do anything that user cannot
5919 To restrict a service to a particular set of users you can use the
5920 link(bf("valid users="))(validusers) parameter.
5922 If any of the usernames begin with a tt('@') then the name will be
5923 looked up first in the yp netgroups list (if Samba is compiled with
5924 netgroup support), followed by a lookup in the UNIX groups database
5925 and will expand to a list of all users in the group of that name.
5927 If any of the usernames begin with a tt('+') then the name will be
5928 looked up only in the UNIX groups database and will expand to a list
5929 of all users in the group of that name.
5931 If any of the usernames begin with a tt('&') then the name will be
5932 looked up only in the yp netgroups database (if Samba is compiled with
5933 netgroup support) and will expand to a list of all users in the
5934 netgroup group of that name.
5936 Note that searching though a groups database can take quite some time,
5937 and some clients may time out during the search.
5939 See the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5940 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION) for more
5941 information on how this parameter determines access to the services.
5943   bf(Default:)
5944 tt(     The guest account if a guest service, else the name of the service.)
5946   bf(Examples:)
5947 verb(
5948         username = fred
5949         username = fred, mary, jack, jane, @users, @pcgroup
5952 label(usernamelevel)
5953 dit(bf(username level (G)))
5955 This option helps Samba to try and 'guess' at the real UNIX username,
5956 as many DOS clients send an all-uppercase username. By default Samba
5957 tries all lowercase, followed by the username with the first letter
5958 capitalized, and fails if the username is not found on the UNIX
5959 machine.
5961 If this parameter is set to non-zero the behavior changes. This
5962 parameter is a number that specifies the number of uppercase
5963 combinations to try whilst trying to determine the UNIX user name. The
5964 higher the number the more combinations will be tried, but the slower
5965 the discovery of usernames will be. Use this parameter when you have
5966 strange usernames on your UNIX machine, such as tt("AstrangeUser").
5968   bf(Default:)
5969 tt(     username level = 0)
5971   bf(Example:)
5972 tt(     username level = 5)
5974 label(usernamemap)
5975 dit(bf(username map (G)))
5977 This option allows you to specify a file containing a mapping of
5978 usernames from the clients to the server. This can be used for several
5979 purposes. The most common is to map usernames that users use on DOS or
5980 Windows machines to those that the UNIX box uses. The other is to map
5981 multiple users to a single username so that they can more easily share
5982 files.
5984 The map file is parsed line by line. Each line should contain a single
5985 UNIX username on the left then a tt('=') followed by a list of
5986 usernames on the right. The list of usernames on the right may contain
5987 names of the form @group in which case they will match any UNIX
5988 username in that group. The special client name tt('*') is a wildcard
5989 and matches any name. Each line of the map file may be up to 1023
5990 characters long.
5992 The file is processed on each line by taking the supplied username and
5993 comparing it with each username on the right hand side of the tt('=')
5994 signs. If the supplied name matches any of the names on the right hand
5995 side then it is replaced with the name on the left. Processing then
5996 continues with the next line.
5998 If any line begins with a tt('#') or a tt(';') then it is ignored
6000 If any line begins with an tt('!') then the processing will stop after
6001 that line if a mapping was done by the line. Otherwise mapping
6002 continues with every line being processed. Using tt('!') is most
6003 useful when you have a wildcard mapping line later in the file.
6005 For example to map from the name tt("admin") or tt("administrator") to
6006 the UNIX name tt("root") you would use:
6009 tt(     root = admin administrator)
6011 Or to map anyone in the UNIX group tt("system") to the UNIX name
6012 tt("sys") you would use:
6014 tt(     sys = @system)
6016 You can have as many mappings as you like in a username map file.
6018 If your system supports the NIS NETGROUP option then the netgroup
6019 database is checked before the tt(/etc/group) database for matching
6020 groups.
6022 You can map Windows usernames that have spaces in them by using double
6023 quotes around the name. For example:
6025 tt(     tridge = "Andrew Tridgell")
6027 would map the windows username tt("Andrew Tridgell") to the unix
6028 username tridge.
6030 The following example would map mary and fred to the unix user sys,
6031 and map the rest to guest. Note the use of the tt('!') to tell Samba
6032 to stop processing if it gets a match on that line.
6034 verb(
6035         !sys = mary fred
6036         guest = *
6039 Note that the remapping is applied to all occurrences of
6040 usernames. Thus if you connect to tt("\\server\fred") and tt("fred")
6041 is remapped to tt("mary") then you will actually be connecting to
6042 tt("\\server\mary") and will need to supply a password suitable for
6043 tt("mary") not tt("fred"). The only exception to this is the username
6044 passed to the link(bf("password server"))(passwordserver) (if you have
6045 one). The password server will receive whatever username the client
6046 supplies without modification.
6048 Also note that no reverse mapping is done. The main effect this has is
6049 with printing. Users who have been mapped may have trouble deleting
6050 print jobs as PrintManager under WfWg will think they don't own the
6051 print job.
6053   bf(Default:)
6054 tt(     no username map)
6056   bf(Example:)
6057 tt(     username map = /usr/local/samba/lib/users.map)
6059 label(validchars)
6060 dit(bf(valid chars (S)))
6062 The option allows you to specify additional characters that should be
6063 considered valid by the server in filenames. This is particularly
6064 useful for national character sets, such as adding u-umlaut or a-ring.
6066 The option takes a list of characters in either integer or character
6067 form with spaces between them. If you give two characters with a colon
6068 between them then it will be taken as an lowercase:uppercase pair.
6070 If you have an editor capable of entering the characters into the
6071 config file then it is probably easiest to use this method. Otherwise
6072 you can specify the characters in octal, decimal or hexadecimal form
6073 using the usual C notation.
6075 For example to add the single character tt('Z') to the charset (which
6076 is a pointless thing to do as it's already there) you could do one of
6077 the following
6079 verb(
6080         valid chars = Z
6081         valid chars = z:Z
6082         valid chars = 0132:0172
6085 The last two examples above actually add two characters, and alter the
6086 uppercase and lowercase mappings appropriately.
6088 Note that you MUST specify this parameter after the link(bf("client
6089 code page"))(clientcodepage) parameter if you have both set. If
6090 link(bf("client code page"))(clientcodepage) is set after the
6091 bf("valid chars") parameter the bf("valid chars") settings will be
6092 overwritten.
6094 See also the link(bf("client code page"))(clientcodepage) parameter.
6096   bf(Default:)
6097 verb(
6098         Samba defaults to using a reasonable set of valid characters
6099         for English systems
6102   bf(Example)
6103 tt(     valid chars = 0345:0305 0366:0326 0344:0304)
6105 The above example allows filenames to have the Swedish characters in
6106 them.
6108 NOTE: It is actually quite difficult to correctly produce a bf("valid
6109 chars") line for a particular system. To automate the process
6110 email(tino@augsburg.net) has written a package called bf("validchars")
6111 which will automatically produce a complete bf("valid chars") line for
6112 a given client system. Look in the examples/validchars/ subdirectory
6113 of your Samba source code distribution for this package.
6115 label(validusers)
6116 dit(bf(valid users (S)))
6118 This is a list of users that should be allowed to login to this
6119 service. Names starting with tt('@'), tt('+') and tt('&') are
6120 interpreted using the same rules as described in the link(bf("invalid
6121 users"))(invalidusers) parameter.
6123 If this is empty (the default) then any user can login. If a username
6124 is in both this list and the link(bf("invalid users"))(invalidusers)
6125 list then access is denied for that user.
6127 The current servicename is substituted for
6128 link(bf("%S"))(percentS). This is useful in the
6129 link(bf([homes]))(homes) section.
6131 See also link(bf("invalid users"))(invalidusers).
6133   bf(Default:)
6134 tt(     No valid users list. (anyone can login))
6136   bf(Example:)
6137 tt(     valid users = greg, @pcusers)
6139 label(vetofiles)
6140 dit(bf(veto files(S)))
6142 This is a list of files and directories that are neither visible nor
6143 accessible.  Each entry in the list must be separated by a tt('/'),
6144 which allows spaces to be included in the entry. tt('*') and tt('?') 
6145 can be used to specify multiple files or directories as in DOS
6146 wildcards.
6148 Each entry must be a unix path, not a DOS path and must em(*not*) include the 
6149 unix directory separator tt('/').
6151 Note that the link(bf("case sensitive"))(casesensitive) option is
6152 applicable in vetoing files.
6154 One feature of the veto files parameter that it is important to be
6155 aware of, is that if a directory contains nothing but files that match
6156 the veto files parameter (which means that Windows/DOS clients cannot
6157 ever see them) is deleted, the veto files within that directory *are
6158 automatically deleted* along with it, if the user has UNIX permissions
6159 to do so.
6161 Setting this parameter will affect the performance of Samba, as it
6162 will be forced to check all files and directories for a match as they
6163 are scanned.
6165 See also link(bf("hide files"))(hidefiles) and link(bf("case
6166 sensitive"))(casesensitive).
6168   bf(Default:)
6169 tt(     No files or directories are vetoed.)
6171   bf(Examples:)
6173     Example 1.
6175 verb(
6177     Veto any files containing the word Security, 
6178     any ending in .tmp, and any directory containing the
6179     word root.
6181         veto files = /*Security*/*.tmp/*root*/
6184     Example 2.
6186 verb(
6187     Veto the Apple specific files that a NetAtalk server
6188     creates.
6190     veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
6193 label(vetooplockfiles)
6194 dit(bf(veto oplock files (S)))
6196 This parameter is only valid when the link(bf("oplocks"))(oplocks)
6197 parameter is turned on for a share. It allows the Samba administrator
6198 to selectively turn off the granting of oplocks on selected files that
6199 match a wildcarded list, similar to the wildcarded list used in the
6200 link(bf("veto files"))(vetofiles) parameter.
6202   bf(Default:)
6203 tt(     No files are vetoed for oplock grants.)
6205   bf(Examples:)
6207 You might want to do this on files that you know will be heavily
6208 contended for by clients. A good example of this is in the NetBench
6209 SMB benchmark program, which causes heavy client contention for files
6210 ending in tt(".SEM"). To cause Samba not to grant oplocks on these
6211 files you would use the line (either in the link(bf([global]))(global)
6212 section or in the section for the particular NetBench share :
6214 tt(     veto oplock files = /*.SEM/)
6216 label(volume)
6217 dit(bf(volume (S)))
6219 This allows you to override the volume label returned for a
6220 share. Useful for CDROMs with installation programs that insist on a
6221 particular volume label.
6223 The default is the name of the share.
6225 label(widelinks)
6226 dit(bf(wide links (S)))
6228 This parameter controls whether or not links in the UNIX file system
6229 may be followed by the server. Links that point to areas within the
6230 directory tree exported by the server are always allowed; this
6231 parameter controls access only to areas that are outside the directory
6232 tree being exported.
6234 Note that setting this parameter can have a negative effect on your
6235 server performance due to the extra system calls that Samba has to
6236 do in order to perform the link checks.
6238   bf(Default:)
6239 tt(     wide links = yes)
6241   bf(Example:)
6242 tt(     wide links = no)
6244 label(winsproxy)
6245 dit(bf(wins proxy (G)))
6247 This is a boolean that controls if url(bf(nmbd))(nmbd.8.html) will
6248 respond to broadcast name queries on behalf of other hosts. You may
6249 need to set this to tt("yes") for some older clients.
6251   bf(Default:)
6252 tt(     wins proxy = no)
6254 label(winsserver)
6255 dit(bf(wins server (G)))
6257 This specifies the IP address (or DNS name: IP address for preference)
6258 of the WINS server that url(bf(nmbd))(nmbd.8.html) should register with.
6259 If you have a WINS server on your network then you should set this to
6260 the WINS server's IP.        
6262 You should point this at your WINS server if you have a
6263 multi-subnetted network.
6265 em(NOTE). You need to set up Samba to point to a WINS server if you
6266 have multiple subnets and wish cross-subnet browsing to work correctly.
6268 See the documentation file BROWSING.txt in the docs/ directory of your
6269 Samba source distribution.
6271   bf(Default:)
6272 tt(     wins server = )
6274   bf(Example:)
6275 tt(     wins server = 192.9.200.1)
6277 label(winssupport)
6278 dit(bf(wins support (G)))
6280 This boolean controls if the url(bf(nmbd))(nmbd.8.html) process in
6281 Samba will act as a WINS server. You should not set this to true
6282 unless you have a multi-subnetted network and you wish a particular
6283 url(bf(nmbd))(nmbd.8.html) to be your WINS server. Note that you
6284 should em(*NEVER*) set this to true on more than one machine in your
6285 network.
6287   bf(Default:)
6288 tt(     wins support = no)
6290 label(workgroup)
6291 dit(bf(workgroup (G)))
6293 This controls what workgroup your server will appear to be in when
6294 queried by clients. Note that this parameter also controls the Domain
6295 name used with the link(bf("security=domain"))(securityequaldomain)
6296 setting.
6298   bf(Default:)
6299 tt(     set at compile time to WORKGROUP)
6301   bf(Example:)
6302         workgroup = MYGROUP
6304 label(writable)
6305 dit(bf(writable (S)))
6307 Synonym for link(bf("writeable"))(writeable) for people who can't spell :-).
6309 label(writelist)
6310 dit(bf(write list (S)))
6312 This is a list of users that are given read-write access to a
6313 service. If the connecting user is in this list then they will be
6314 given write access, no matter what the link(bf("read only"))(readonly)
6315 option is set to. The list can include group names using the @group
6316 syntax.
6318 Note that if a user is in both the read list and the write list then
6319 they will be given write access.
6321 See also the link(bf("read list"))(readlist) option.
6323   bf(Default:)
6324 tt(     write list = <empty string>)
6326   bf(Example:)
6327 tt(     write list = admin, root, @staff)
6329 label(writeok)
6330 dit(bf(write ok (S)))
6332 Synonym for link(bf(writeable))(writeable).
6334 label(writeraw)
6335 dit(bf(write raw (G)))
6337 This parameter controls whether or not the server will support raw
6338 writes SMB's when transferring data from clients. You should never
6339 need to change this parameter.
6341  bf(Default:)
6342 tt(     write raw = yes)
6344 label(writeable)
6345 dit(bf(writeable))
6347 An inverted synonym is link(bf("read only"))(readonly).
6349 If this parameter is tt("no"), then users of a service may not create
6350 or modify files in the service's directory.
6352 Note that a printable service link(bf(("printable = yes")))(printable)
6353 will em(*ALWAYS*) allow writing to the directory (user privileges
6354 permitting), but only via spooling operations.
6356   bf(Default:)
6357 tt(     writeable = no)
6359   bf(Examples:)
6360 verb(
6361         read only = no
6362         writeable = yes
6363         write ok = yes
6366 label(WARNINGS)
6367 manpagesection(WARNINGS)
6369 Although the configuration file permits service names to contain
6370 spaces, your client software may not. Spaces will be ignored in
6371 comparisons anyway, so it shouldn't be a problem - but be aware of the
6372 possibility.
6374 On a similar note, many clients - especially DOS clients - limit
6375 service names to eight characters. url(bf(Smbd))(smbd.8.html) has no
6376 such limitation, but attempts to connect from such clients will fail
6377 if they truncate the service names.  For this reason you should
6378 probably keep your service names down to eight characters in length.
6380 Use of the link(bf([homes]))(homes) and link(bf([printers]))(printers)
6381 special sections make life for an administrator easy, but the various
6382 combinations of default attributes can be tricky. Take extreme care
6383 when designing these sections. In particular, ensure that the
6384 permissions on spool directories are correct.
6386 label(VERSION)
6387 manpagesection(VERSION)
6389 This man page is correct for version 2.0 of the Samba suite.
6391 label(SEEALSO)
6392 manpagesection(SEE ALSO)
6394 url(bf(smbd (8)))(smbd.8.html), url(bf(smbclient (1)))(smbclient.1.html),
6395 url(bf(nmbd (8)))(nmbd.8.html), url(bf(testparm (1)))(testparm.1.html),
6396 url(bf(testprns (1)))(testprns.1.html), url(bf(Samba))(samba.7.html),
6397 url(bf(nmblookup (1)))(nmblookup.1.html), url(bf(smbpasswd (5)))(smbpasswd.5.html),
6398 url(bf(smbpasswd (8)))(smbpasswd.8.html).
6400 label(AUTHOR)
6401 manpageauthor()
6403 The original Samba software and related utilities were created by
6404 Andrew Tridgell email(samba-bugs@samba.org). Samba is now developed
6405 by the Samba Team as an Open Source project similar to the way the
6406 Linux kernel is developed.
6408 The original Samba man pages were written by Karl Auer. The man page
6409 sources were converted to YODL format (another excellent piece of Open
6410 Source software, available at
6411 url(bf(ftp://ftp.icce.rug.nl/pub/unix/))(ftp://ftp.icce.rug.nl/pub/unix/))
6412 and updated for the Samba2.0 release by Jeremy Allison.
6413 email(samba-bugs@samba.org).
6415 See url(bf(samba (7)))(samba.7.html) to find out how to get a full
6416 list of contributors and details on how to submit bug reports,
6417 comments etc.