This commit was manufactured by cvs2svn to create tag
[Samba/gbeck.git] / docs / yodldocs / smb.conf.5.yo
blob05352bb883b1e8e33aef43805701f1f7c2ad245e
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                 guest ok = yes
234                 printable = yes 
237 All aliases given for a printer in the printcap file are legitimate
238 printer names as far as the server is concerned. If your printing
239 subsystem doesn't work like that, you will have to set up a
240 pseudo-printcap. This is a file consisting of one or more lines like
241 this:
243 verb(        alias|alias|alias|alias...    )
245 Each alias should be an acceptable printer name for your printing
246 subsystem. In the link(bf([global]))(global) section, specify the new
247 file as your printcap.  The server will then only recognize names
248 found in your pseudo-printcap, which of course can contain whatever
249 aliases you like. The same technique could be used simply to limit
250 access to a subset of your local printers.
252 An alias, by the way, is defined as any component of the first entry
253 of a printcap record. Records are separated by newlines, components
254 (if there are more than one) are separated by vertical bar symbols
255 ("|").
257 NOTE: On SYSV systems which use lpstat to determine what printers are
258 defined on the system you may be able to use link(bf("printcap name =
259 lpstat"))(printcapname) to automatically obtain a list of
260 printers. See the link(bf("printcap name"))(printcapname) option for
261 more details.
263 enddit()
265 label(PARAMETERS)
266 manpagesection(PARAMETERS)
268 Parameters define the specific attributes of sections.
270 Some parameters are specific to the link(bf([global]))(global) section
271 (e.g., link(bf(security))(security)).  Some parameters are usable in
272 all sections (e.g., link(bf(create mode))(createmode)). All others are
273 permissible only in normal sections. For the purposes of the following
274 descriptions the link(bf([homes]))(homes) and
275 link(bf([printers]))(printers) sections will be considered normal.
276 The letter tt('G') in parentheses indicates that a parameter is
277 specific to the link(bf([global]))(global) section. The letter tt('S')
278 indicates that a parameter can be specified in a service specific
279 section. Note that all tt('S') parameters can also be specified in the
280 link(bf([global]))(global) section - in which case they will define
281 the default behavior for all services.
283 Parameters are arranged here in alphabetical order - this may not
284 create best bedfellows, but at least you can find them! Where there
285 are synonyms, the preferred synonym is described, others refer to the
286 preferred synonym.
288 label(VARIABLESUBSTITUTIONS)
289 manpagesection(VARIABLE SUBSTITUTIONS)
291 Many of the strings that are settable in the config file can take
292 substitutions. For example the option link(bf(tt("path =
293 /tmp/%u")))(path) would be interpreted as tt("path = /tmp/john") if
294 the user connected with the username john.
296 These substitutions are mostly noted in the descriptions below, but
297 there are some general substitutions which apply whenever they might
298 be relevant. These are:
300 startit()
302 label(percentS) 
303 it() bf(%S) = the name of the current service, if any.
305 label(percentP)
306 it() bf(%P) = the root directory of the current service, if any.
308 label(percentu)
309 it() bf(%u) = user name of the current service, if any.
311 label(percentg)
312 it() bf(%g) = primary group name of link(bf(%u))(percentu).
314 label(percentU) 
315 it() bf(%U) = session user name (the user name that
316 the client wanted, not necessarily the same as the one they got).
318 label(percentG)
319 it() bf(%G) = primary group name of link(bf(%U))(percentU).
321 label(percentH)
322 it() bf(%H) = the home directory of the user given by link(bf(%u))(percentu).
324 label(percentv)
325 it() bf(%v) = the Samba version.
327 label(percenth)
328 it() bf(%h) = the internet hostname that Samba is running on.
330 label(percentm)
331 it() bf(%m) = the NetBIOS name of the client machine (very useful).
333 label(percentL)
334 it() bf(%L) = the NetBIOS name of the server. This allows you to change your
335 config based on what the client calls you. Your server can have a "dual
336 personality".
338 label(percentM) 
339 it() bf(%M) = the internet name of the client machine.
341 label(percentN)
342 it() bf(%N) = the name of your NIS home directory server.  This is
343 obtained from your NIS auto.map entry.  If you have not compiled Samba
344 with the bf(--with-automount) option then this value will be the same
345 as link(bf(%L))(percentL).
347 label(percentp)
348 it() bf(%p) = the path of the service's home directory, obtained from your NIS
349 auto.map entry. The NIS auto.map entry is split up as "%N:%p".
351 label(percentR) 
352 it() bf(%R) = the selected protocol level after protocol
353 negotiation. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1.
355 label(percentd)
356 it() bf(%d) = The process id of the current server process.
358 label(percenta) 
359 it() bf(%a) = the architecture of the remote
360 machine. Only some are recognized, and those may not be 100%
361 reliable. It currently recognizes Samba, WfWg, WinNT and
362 Win95. Anything else will be known as "UNKNOWN". If it gets it wrong
363 then sending a level 3 log to email(samba-bugs@samba.org)
364 should allow it to be fixed.
366 label(percentI)
367 it() bf(%I) = The IP address of the client machine.
369 label(percentT)
370 it() bf(%T) = the current date and time.
372 endit()
374 There are some quite creative things that can be done with these
375 substitutions and other smb.conf options.
377 label(NAMEMANGLING)
378 manpagesection(NAME MANGLING)
380 Samba supports em("name mangling") so that DOS and Windows clients can
381 use files that don't conform to the 8.3 format. It can also be set to
382 adjust the case of 8.3 format filenames.
384 There are several options that control the way mangling is performed,
385 and they are grouped here rather than listed separately. For the
386 defaults look at the output of the testparm program.
388 All of these options can be set separately for each service (or
389 globally, of course).
391 The options are:
393 label(manglecaseoption)
394 bf("mangle case = yes/no") controls if names that have characters that
395 aren't of the "default" case are mangled. For example, if this is yes
396 then a name like tt("Mail") would be mangled. Default em(no).
398 label(casesensitiveoption)
399 bf("case sensitive = yes/no") controls whether filenames are case
400 sensitive. If they aren't then Samba must do a filename search and
401 match on passed names. Default em(no).
403 label(defaultcaseoption)
404 bf("default case = upper/lower") controls what the default case is for new
405 filenames. Default em(lower).
407 label(preservecaseoption)
408 bf("preserve case = yes/no") controls if new files are created with the
409 case that the client passes, or if they are forced to be the tt("default")
410 case. Default em(Yes).
412 label(shortpreservecaseoption)
414 bf("short preserve case = yes/no") controls if new files which conform
415 to 8.3 syntax, that is all in upper case and of suitable length, are
416 created upper case, or if they are forced to be the tt("default")
417 case. This option can be use with link(bf("preserve case =
418 yes"))(preservecaseoption) to permit long filenames to retain their
419 case, while short names are lowered. Default em(Yes).
421 By default, Samba 2.0 has the same semantics as a Windows NT
422 server, in that it is case insensitive but case preserving.
424 label(NOTEABOUTUSERNAMEPASSWORDVALIDATION)
425 manpagesection(NOTE ABOUT USERNAME/PASSWORD VALIDATION)
427 There are a number of ways in which a user can connect to a
428 service. The server follows the following steps in determining if it
429 will allow a connection to a specified service. If all the steps fail
430 then the connection request is rejected. If one of the steps pass then
431 the following steps are not checked.
433 If the service is marked link(bf("guest only = yes"))(guestonly) then
434 steps 1 to 5 are skipped.
436 starteit()
438 eit() Step 1: If the client has passed a username/password pair and
439 that username/password pair is validated by the UNIX system's password
440 programs then the connection is made as that username. Note that this
441 includes the tt(\\server\service%username) method of passing a
442 username.
444 eit() Step 2: If the client has previously registered a username with
445 the system and now supplies a correct password for that username then
446 the connection is allowed.
448 eit() Step 3: The client's netbios name and any previously used user
449 names are checked against the supplied password, if they match then
450 the connection is allowed as the corresponding user.
452 eit() Step 4: If the client has previously validated a
453 username/password pair with the server and the client has passed the
454 validation token then that username is used. This step is skipped if
455 link(bf("revalidate = yes"))(revalidate) for this service.
457 eit() Step 5: If a link(bf("user = "))(user) field is given in the
458 smb.conf file for the service and the client has supplied a password,
459 and that password matches (according to the UNIX system's password
460 checking) with one of the usernames from the link(bf(user=))(user)
461 field then the connection is made as the username in the
462 link(bf("user="))(user) line. If one of the username in the
463 link(bf(user=))(user) list begins with a tt('@') then that name
464 expands to a list of names in the group of the same name.
466 eit() Step 6: If the service is a guest service then a connection is
467 made as the username given in the link(bf("guest account
468 ="))(guestaccount) for the service, irrespective of the supplied
469 password.
471 endeit()
473 label(COMPLETELISTOFGLOBALPARAMETERS)
474 manpagesection(COMPLETE LIST OF GLOBAL PARAMETERS)
476 Here is a list of all global parameters. See the section of each
477 parameter for details.  Note that some are synonyms.
479 startit()
481 it() link(bf(announce as))(announceas)
483 it() link(bf(announce version))(announceversion)
485 it() link(bf(auto services))(autoservices)
487 it() link(bf(bind interfaces only))(bindinterfacesonly)
489 it() link(bf(browse list))(browselist)
491 it() link(bf(change notify timeout))(changenotifytimeout)
493 it() link(bf(character set))(characterset)
495 it() link(bf(client code page))(clientcodepage)
497 it() link(bf(coding system))(codingsystem)
499 it() link(bf(config file))(configfile)
501 it() link(bf(deadtime))(deadtime)
503 it() link(bf(debug timestamp))(debugtimestamp)
505 it() link(bf(debuglevel))(debuglevel)
507 it() link(bf(default))(default)
509 it() link(bf(default service))(defaultservice)
511 it() link(bf(dfree command))(dfreecommand)
513 it() link(bf(dns proxy))(dnsproxy)
515 it() link(bf(domain admin group))(domainadmingroup)
517 it() link(bf(domain admin users))(domainadminusers)
519 it() link(bf(domain controller))(domaincontroller)
521 it() link(bf(domain group map))(domaingroupmap)
523 it() link(bf(domain groups))(domaingroups)
525 it() link(bf(domain guest group))(domainguestgroup)
527 it() link(bf(domain guest users))(domainguestusers)
529 it() link(bf(domain logons))(domainlogons)
531 it() link(bf(domain master))(domainmaster)
533 it() link(bf(domain user map))(domainusermap)
535 it() link(bf(encrypt passwords))(encryptpasswords)
537 it() link(bf(getwd cache))(getwdcache)
539 it() link(bf(homedir map))(homedirmap)
541 it() link(bf(hosts equiv))(hostsequiv)
543 it() link(bf(interfaces))(interfaces)
545 it() link(bf(keepalive))(keepalive)
547 it() link(bf(kernel oplocks))(kerneloplocks)
549 it() link(bf(ldap bind as))(ldapbindas)
551 it() link(bf(ldap passwd file))(ldappasswdfile)
553 it() link(bf(ldap port))(ldapport)
555 it() link(bf(ldap server))(ldapserver)
557 it() link(bf(ldap suffix))(ldapsuffix)
559 it() link(bf(lm announce))(lmannounce)
561 it() link(bf(lm interval))(lminterval)
563 it() link(bf(load printers))(loadprinters)
565 it() link(bf(local group map))(localgroupmap)
567 it() link(bf(local master))(localmaster)
569 it() link(bf(lock dir))(lockdir)
571 it() link(bf(lock directory))(lockdirectory)
573 it() link(bf(log file))(logfile)
575 it() link(bf(log level))(loglevel)
577 it() link(bf(logon drive))(logondrive)
579 it() link(bf(logon home))(logonhome)
581 it() link(bf(logon path))(logonpath)
583 it() link(bf(logon script))(logonscript)
585 it() link(bf(lpq cache time))(lpqcachetime)
587 it() link(bf(machine password timeout))(machinepasswordtimeout)
589 it() link(bf(mangled stack))(mangledstack)
591 it() link(bf(max disk size))(maxdisksize)
593 it() link(bf(max log size))(maxlogsize)
595 it() link(bf(max mux))(maxmux)
597 it() link(bf(max open files))(maxopenfiles)
599 it() link(bf(max packet))(maxpacket)
601 it() link(bf(max ttl))(maxttl)
603 it() link(bf(max wins ttl))(maxwinsttl)
605 it() link(bf(max xmit))(maxxmit)
607 it() link(bf(message command))(messagecommand)
609 it() link(bf(min wins ttl))(minwinsttl)
611 it() link(bf(name resolve order))(nameresolveorder)
613 it() link(bf(netbios aliases))(netbiosaliases)
615 it() link(bf(netbios name))(netbiosname)
617 it() link(bf(nis homedir))(nishomedir)
619 it() link(bf(nt pipe support))(ntpipesupport)
621 it() link(bf(nt smb support))(ntsmbsupport)
623 it() link(bf(null passwords))(nullpasswords)
625 it() link(bf(ole locking compatibility))(olelockingcompatibility)
627 it() link(bf(os level))(oslevel)
629 it() link(bf(packet size))(packetsize)
631 it() link(bf(panic action))(panicaction)
633 it() link(bf(passwd chat))(passwdchat)
635 it() link(bf(passwd chat debug))(passwdchatdebug)
637 it() link(bf(passwd program))(passwdprogram)
639 it() link(bf(password level))(passwordlevel)
641 it() link(bf(password server))(passwordserver)
643 it() link(bf(prefered master))(preferedmaster)
645 it() link(bf(preferred master))(preferredmaster)
647 it() link(bf(preload))(preload)
649 it() link(bf(printcap))(printcap)
651 it() link(bf(printcap name))(printcapname)
653 it() link(bf(printer driver file))(printerdriverfile)
655 it() link(bf(protocol))(protocol)
657 it() link(bf(read bmpx))(readbmpx)
659 it() link(bf(read prediction))(readprediction)
661 it() link(bf(read raw))(readraw)
663 it() link(bf(read size))(readsize)
665 it() link(bf(remote announce))(remoteannounce)
667 it() link(bf(remote browse sync))(remotebrowsesync)
669 it() link(bf(root))(root)
671 it() link(bf(root dir))(rootdir)
673 it() link(bf(root directory))(rootdirectory)
675 it() link(bf(security))(security)
677 it() link(bf(server string))(serverstring)
679 it() link(bf(shared mem size))(sharedmemsize)
681 it() link(bf(smb passwd file))(smbpasswdfile)
683 it() link(bf(smbrun))(smbrun)
685 it() link(bf(socket address))(socketaddress)
687 it() link(bf(socket options))(socketoptions)
689 it() link(bf(ssl))(ssl)
691 it() link(bf(ssl CA certDir))(sslCAcertDir)
693 it() link(bf(ssl CA certFile))(sslCAcertFile)
695 it() link(bf(ssl ciphers))(sslciphers)
697 it() link(bf(ssl client cert))(sslclientcert)
699 it() link(bf(ssl client key))(sslclientkey)
701 it() link(bf(ssl compatibility))(sslcompatibility)
703 it() link(bf(ssl hosts))(sslhosts)
705 it() link(bf(ssl hosts resign))(sslhostsresign)
707 it() link(bf(ssl require clientcert))(sslrequireclientcert)
709 it() link(bf(ssl require servercert))(sslrequireservercert)
711 it() link(bf(ssl server cert))(sslservercert)
713 it() link(bf(ssl server key))(sslserverkey)
715 it() link(bf(ssl version))(sslversion)
717 it() link(bf(stat cache))(statcache)
719 it() link(bf(stat cache size))(statcachesize)
721 it() link(bf(strip dot))(stripdot)
723 it() link(bf(syslog))(syslog)
725 it() link(bf(syslog only))(syslogonly)
727 it() link(bf(time offset))(timeoffset)
729 it() link(bf(time server))(timeserver)
731 it() link(bf(timestamp logs))(timestamplogs)
733 it() link(bf(unix password sync))(unixpasswordsync)
735 it() link(bf(unix realname))(unixrealname)
737 it() link(bf(update encrypted))(updateencrypted)
739 it() link(bf(use rhosts))(userhosts)
741 it() link(bf(username level))(usernamelevel)
743 it() link(bf(username map))(usernamemap)
745 it() link(bf(valid chars))(validchars)
747 it() link(bf(wins proxy))(winsproxy)
749 it() link(bf(wins server))(winsserver)
751 it() link(bf(wins support))(winssupport)
753 it() link(bf(workgroup))(workgroup)
755 it() link(bf(write raw))(writeraw)
757 endit()
759 label(COMPLETELISTOFSERVICEPARAMETERS)
760 manpagesection(COMPLETE LIST OF SERVICE PARAMETERS)
762 Here is a list of all service parameters. See the section of each
763 parameter for details. Note that some are synonyms.
765 startit()
767 it() link(bf(admin users))(adminusers)
769 it() link(bf(allow hosts))(allowhosts)
771 it() link(bf(alternate permissions))(alternatepermissions)
773 it() link(bf(available))(available)
775 it() link(bf(blocking locks))(blockinglocks)
777 it() link(bf(browsable))(browsable)
779 it() link(bf(browseable))(browseable)
781 it() link(bf(case sensitive))(casesensitive)
783 it() link(bf(casesignames))(casesignames)
785 it() link(bf(comment))(comment)
787 it() link(bf(copy))(copy)
789 it() link(bf(create mask))(createmask)
791 it() link(bf(create mode))(createmode)
793 it() link(bf(default case))(defaultcase)
795 it() link(bf(delete readonly))(deletereadonly)
797 it() link(bf(delete veto files))(deletevetofiles)
799 it() link(bf(deny hosts))(denyhosts)
801 it() link(bf(directory))(directory)
803 it() link(bf(directory mask))(directorymask)
805 it() link(bf(directory mode))(directorymode)
807 it() link(bf(dont descend))(dontdescend)
809 it() link(bf(dos filetime resolution))(dosfiletimeresolution)
811 it() link(bf(dos filetimes))(dosfiletimes)
813 it() link(bf(exec))(exec)
815 it() link(bf(fake directory create times))(fakedirectorycreatetimes)
817 it() link(bf(fake oplocks))(fakeoplocks)
819 it() link(bf(follow symlinks))(followsymlinks)
821 it() link(bf(force create mode))(forcecreatemode)
823 it() link(bf(force directory mode))(forcedirectorymode)
825 it() link(bf(force group))(forcegroup)
827 it() link(bf(force user))(forceuser)
829 it() link(bf(fstype))(fstype)
831 it() link(bf(group))(group)
833 it() link(bf(guest account))(guestaccount)
835 it() link(bf(guest ok))(guestok)
837 it() link(bf(guest only))(guestonly)
839 it() link(bf(hide dot files))(hidedotfiles)
841 it() link(bf(hide files))(hidefiles)
843 it() link(bf(hosts allow))(hostsallow)
845 it() link(bf(hosts deny))(hostsdeny)
847 it() link(bf(include))(include)
849 it() link(bf(invalid users))(invalidusers)
851 it() link(bf(locking))(locking)
853 it() link(bf(lppause command))(lppausecommand)
855 it() link(bf(lpq command))(lpqcommand)
857 it() link(bf(lpresume command))(lpresumecommand)
859 it() link(bf(lprm command))(lprmcommand)
861 it() link(bf(magic output))(magicoutput)
863 it() link(bf(magic script))(magicscript)
865 it() link(bf(mangle case))(manglecase)
867 it() link(bf(mangled map))(mangledmap)
869 it() link(bf(mangled names))(manglednames)
871 it() link(bf(mangling char))(manglingchar)
873 it() link(bf(map archive))(maparchive)
875 it() link(bf(map hidden))(maphidden)
877 it() link(bf(map system))(mapsystem)
879 it() link(bf(map to guest))(maptoguest)
881 it() link(bf(max connections))(maxconnections)
883 it() link(bf(min print space))(minprintspace)
885 it() link(bf(only guest))(onlyguest)
887 it() link(bf(only user))(onlyuser)
889 it() link(bf(oplocks))(oplocks)
891 it() link(bf(path))(path)
893 it() link(bf(postexec))(postexec)
895 it() link(bf(postscript))(postscript)
897 it() link(bf(preexec))(preexec)
899 it() link(bf(preserve case))(preservecase)
901 it() link(bf(print command))(printcommand)
903 it() link(bf(print ok))(printok)
905 it() link(bf(printable))(printable)
907 it() link(bf(printer))(printer)
909 it() link(bf(printer driver))(printerdriver)
911 it() link(bf(printer driver location))(printerdriverlocation)
913 it() link(bf(printer name))(printername)
915 it() link(bf(printing))(printing)
917 it() link(bf(public))(public)
919 it() link(bf(queuepause command))(queuepausecommand)
921 it() link(bf(queueresume command))(queueresumecommand)
923 it() link(bf(read list))(readlist)
925 it() link(bf(read only))(readonly)
927 it() link(bf(revalidate))(revalidate)
929 it() link(bf(root postexec))(rootpostexec)
931 it() link(bf(root preexec))(rootpreexec)
933 it() link(bf(set directory))(setdirectory)
935 it() link(bf(share modes))(sharemodes)
937 it() link(bf(short preserve case))(shortpreservecase)
939 it() link(bf(status))(status)
941 it() link(bf(strict locking))(strictlocking)
943 it() link(bf(strict sync))(strictsync)
945 it() link(bf(sync always))(syncalways)
947 it() link(bf(user))(user)
949 it() link(bf(username))(username)
951 it() link(bf(users))(users)
953 it() link(bf(valid users))(validusers)
955 it() link(bf(veto files))(vetofiles)
957 it() link(bf(veto oplock files))(vetooplockfiles)
959 it() link(bf(volume))(volume)
961 it() link(bf(wide links))(widelinks)
963 it() link(bf(writable))(writable)
965 it() link(bf(write list))(writelist)
967 it() link(bf(write ok))(writeok)
969 it() link(bf(writeable))(writeable)
971 endit()
973 label(EXPLANATIONOFEACHPARAMETER)
974 manpagesection(EXPLANATION OF EACH PARAMETER)
976 startdit()
978 label(adminusers)
979 dit(bf(admin users (S)))
981 This is a list of users who will be granted administrative privileges
982 on the share. This means that they will do all file operations as the
983 super-user (root).
985 You should use this option very carefully, as any user in this list
986 will be able to do anything they like on the share, irrespective of
987 file permissions.
989   bf(Default:) nl()
990 tt(     no admin users)
992   bf(Example:) nl()
993 tt(     admin users = jason)
995 label(allow hosts)
996 dit(bf(allow hosts (S)))
998 A synonym for this parameter is link(bf('hosts allow'))(hostsallow)
1000 This parameter is a comma, space, or tab delimited set of hosts which
1001 are permitted to access a service.
1003 If specified in the link(bf([global]))(global) section then it will
1004 apply to all services, regardless of whether the individual service
1005 has a different setting.
1007 You can specify the hosts by name or IP number. For example, you could
1008 restrict access to only the hosts on a Class C subnet with something
1009 like tt("allow hosts = 150.203.5."). The full syntax of the list is
1010 described in the man page bf(hosts_access (5)). Note that this man
1011 page may not be present on your system, so a brief description will
1012 be given here also.
1014 em(NOTE:) IF you wish to allow the url(bf(smbpasswd
1015 (8)))(smbpasswd.html.8) program to be run by local users to change
1016 their Samba passwords using the local url(bf(smbd (8)))(smbd.8.html)
1017 daemon, then you em(MUST) ensure that the localhost is listed in your
1018 bf(allow hosts) list, as url(bf(smbpasswd (8)))(smbpasswd.html.8) runs
1019 in client-server mode and is seen by the local
1020 url(bf(smbd))(smbd.8.html) process as just another client.
1022 You can also specify hosts by network/netmask pairs and by netgroup
1023 names if your system supports netgroups. The em(EXCEPT) keyword can also
1024 be used to limit a wildcard list. The following examples may provide
1025 some help:
1027 bf(Example 1): allow localhost and all IPs in 150.203.*.* except one
1029 tt(     hosts allow = localhost, 150.203. EXCEPT 150.203.6.66)
1031 bf(Example 2): allow localhost and hosts that match the given network/netmask
1033 tt(     hosts allow = localhost, 150.203.15.0/255.255.255.0)
1035 bf(Example 3): allow a localhost plus a couple of hosts
1037 tt(     hosts allow = localhost, lapland, arvidsjaur)
1039 bf(Example 4): allow only hosts in NIS netgroup "foonet" or localhost, but 
1040 deny access from one particular host
1042 tt(     hosts allow = @foonet, localhost)
1043 tt(     hosts deny = pirate)
1045 Note that access still requires suitable user-level passwords.
1047 See url(bf(testparm (1)))(testparm.1.html) for a way of testing your
1048 host access to see if it does what you expect.
1050   bf(Default:)
1051 tt(     none (i.e., all hosts permitted access))
1053   bf(Example:)
1054 tt(     allow hosts = 150.203.5. localhost myhost.mynet.edu.au)
1056 label(alternatepermissions)
1057 dit(bf(alternate permissions (S)))
1059 This is a deprecated parameter. It no longer has any effect in Samba2.0.
1060 In previous versions of Samba it affected the way the DOS "read only"
1061 attribute was mapped for a file. In Samba2.0 a file is marked "read only"
1062 if the UNIX file does not have the 'w' bit set for the owner of the file,
1063 regardless if the owner of the file is the currently logged on user or not.
1065 label(announceas)
1066 dit(bf(announce as (G)))
1068 This specifies what type of server url(bf(nmbd))(nmbd.8.html) will
1069 announce itself as, to a network neighborhood browse list. By default
1070 this is set to Windows NT. The valid options are : "NT", "Win95" or
1071 "WfW" meaning Windows NT, Windows 95 and Windows for Workgroups
1072 respectively. Do not change this parameter unless you have a specific
1073 need to stop Samba appearing as an NT server as this may prevent Samba
1074 servers from participating as browser servers correctly.
1076   bf(Default:)
1077 tt(     announce as = NT)
1079   bf(Example)
1080 tt(     announce as = Win95)
1082 label(announceversion)
1083 dit(bf(announce version (G)))
1085 This specifies the major and minor version numbers that nmbd will use
1086 when announcing itself as a server. The default is 4.2.  Do not change
1087 this parameter unless you have a specific need to set a Samba server
1088 to be a downlevel server.
1090   bf(Default:)
1091 tt(     announce version = 4.2)
1093   bf(Example:)
1094 tt(     announce version = 2.0)
1097 label(autoservices)
1098 dit(bf(auto services (G)))
1100 This is a list of services that you want to be automatically added to
1101 the browse lists. This is most useful for homes and printers services
1102 that would otherwise not be visible.
1104 Note that if you just want all printers in your printcap file loaded
1105 then the link(bf("load printers"))(loadprinters) option is easier.
1107   bf(Default:)
1108 tt(     no auto services)
1110   bf(Example:)
1111 tt(     auto services = fred lp colorlp)
1113 label(available)
1114 dit(bf(available (S)))
1116 This parameter lets you em('turn off') a service. If tt('available = no'),
1117 then em(ALL) attempts to connect to the service will fail. Such failures
1118 are logged.
1120   bf(Default:)
1121 tt(     available = yes)
1123   bf(Example:)
1124 tt(     available = no)
1126 label(bindinterfacesonly)
1127 dit(bf(bind interfaces only (G)))
1129 This global parameter allows the Samba admin to limit what interfaces
1130 on a machine will serve smb requests. If affects file service
1131 url(bf(smbd))(smbd.8.html) and name service url(bf(nmbd))(nmbd.8.html)
1132 in slightly different ways.
1134 For name service it causes url(bf(nmbd))(nmbd.8.html) to bind to ports
1135 137 and 138 on the interfaces listed in the
1136 link(bf('interfaces'))(interfaces)
1137 parameter. url(bf(nmbd))(nmbd.8.html) also binds to the 'all
1138 addresses' interface (0.0.0.0) on ports 137 and 138 for the purposes
1139 of reading broadcast messages. If this option is not set then
1140 url(bf(nmbd))(nmbd.8.html) will service name requests on all of these
1141 sockets. If bf("bind interfaces only") is set then
1142 url(bf(nmbd))(nmbd.8.html) will check the source address of any
1143 packets coming in on the broadcast sockets and discard any that don't
1144 match the broadcast addresses of the interfaces in the
1145 link(bf('interfaces'))(interfaces) parameter list. As unicast packets
1146 are received on the other sockets it allows url(bf(nmbd))(nmbd.8.html)
1147 to refuse to serve names to machines that send packets that arrive
1148 through any interfaces not listed in the
1149 link(bf("interfaces"))(interfaces) list.  IP Source address spoofing
1150 does defeat this simple check, however so it must not be used
1151 seriously as a security feature for url(bf(nmbd))(nmbd.8.html).
1153 For file service it causes url(bf(smbd))(smbd.8.html) to bind only to
1154 the interface list given in the link(bf('interfaces'))(interfaces)
1155 parameter. This restricts the networks that url(bf(smbd))(smbd.8.html)
1156 will serve to packets coming in those interfaces.  Note that you
1157 should not use this parameter for machines that are serving PPP or
1158 other intermittent or non-broadcast network interfaces as it will not
1159 cope with non-permanent interfaces.
1161 In addition, to change a users SMB password, the
1162 url(bf(smbpasswd))(smbpasswd.8.html) by default connects to the
1163 em("localhost" - 127.0.0.1) address as an SMB client to issue the
1164 password change request. If bf("bind interfaces only") is set then
1165 unless the network address em(127.0.0.1) is added to the
1166 link(bf('interfaces'))(interfaces) parameter list then
1167 url(bf(smbpasswd))(smbpasswd.8.html) will fail to connect in it's
1168 default mode. url(bf(smbpasswd))(smbpasswd.8.html) can be forced to
1169 use the primary IP interface of the local host by using its
1170 url(bf("-r remote machine"))(smbpasswd.8.html#minusr) parameter, with
1171 bf("remote machine") set to the IP name of the primary interface
1172 of the local host.
1174   bf(Default:)
1175 tt(     bind interfaces only = False)
1177   bf(Example:)
1178 tt(     bind interfaces only = True)
1180 label(blockinglocks)
1181 dit(bf(blocking locks (S)))
1183 This parameter controls the behavior of url(bf(smbd))(smbd.8.html) when
1184 given a request by a client to obtain a byte range lock on a region
1185 of an open file, and the request has a time limit associated with it.
1187 If this parameter is set and the lock range requested cannot be
1188 immediately satisfied, Samba 2.0 will internally queue the lock 
1189 request, and periodically attempt to obtain the lock until the
1190 timeout period expires.
1192 If this parameter is set to "False", then Samba 2.0 will behave
1193 as previous versions of Samba would and will fail the lock
1194 request immediately if the lock range cannot be obtained.
1196 This parameter can be set per share.
1198   bf(Default:)
1199 tt(     blocking locks = True)
1201   bf(Example:)
1202 tt(     blocking locks = False)
1204 label(browsable)
1205 dit(bf(browsable (S)))
1207 Synonym for link(bf(browseable))(browseable).
1209 label(browselist)
1210 dit(bf(browse list(G)))
1212 This controls whether url(bf(smbd))(smbd.8.html) will serve a browse
1213 list to a client doing a NetServerEnum call. Normally set to true. You
1214 should never need to change this.
1216   bf(Default:)
1217 tt(     browse list = Yes)
1219 label(browseable)
1220 dit(bf(browseable))
1222 This controls whether this share is seen in the list of available
1223 shares in a net view and in the browse list.
1225   bf(Default:)
1226 tt(     browseable = Yes)
1228   bf(Example:)
1229 tt(     browseable = No)
1231 label(casesensitive)
1232 dit(bf(case sensitive (S)))
1234 See the discussion in the section link(bf(NAME MANGLING))(NAMEMANGLING).
1236 label(casesignames)
1237 dit(bf(casesignames (S)))
1239 Synonym for link(bf("case sensitive"))(casesensitive).
1241 label(changenotifytimeout)
1242 dit(bf(change notify timeout (G)))
1244 One of the new NT SMB requests that Samba 2.0 supports is the
1245 "ChangeNotify" requests. This SMB allows a client to tell a server to
1246 em("watch") a particular directory for any changes and only reply to
1247 the SMB request when a change has occurred. Such constant scanning of
1248 a directory is expensive under UNIX, hence an
1249 url(bf(smbd))(smbd.8.html) daemon only performs such a scan on each
1250 requested directory once every bf(change notify timeout) seconds.
1252 bf(change notify timeout) is specified in units of seconds.
1254   bf(Default:)
1255 tt(     change notify timeout = 60)
1257   bf(Example:)
1258 tt(     change notify timeout = 300)
1260 Would change the scan time to every 5 minutes.
1262 label(characterset)
1263 dit(bf(character set (G)))
1265 This allows a smbd to map incoming filenames from a DOS Code page (see
1266 the link(bf(client code page))(clientcodepage) parameter) to several
1267 built in UNIX character sets. The built in code page translations are:
1269 startit()
1271 it() bf(ISO8859-1) Western European UNIX character set. The parameter
1272 link(bf(client code page))(clientcodepage) em(MUST) be set to code
1273 page 850 if the bf(character set) parameter is set to iso8859-1
1274 in order for the conversion to the UNIX character set to be done
1275 correctly.
1277 it() bf(ISO8859-2) Eastern European UNIX character set. The parameter
1278 link(bf(client code page))(clientcodepage) em(MUST) be set to code
1279 page 852 if the bf(character set) parameter is set to ISO8859-2
1280 in order for the conversion to the UNIX character set to be done
1281 correctly. 
1283 it() bf(ISO8859-5) Russian Cyrillic UNIX character set. The parameter
1284 link(bf(client code page))(clientcodepage) em(MUST) be set to code
1285 page 866 if the bf(character set) parameter is set to ISO8859-2
1286 in order for the conversion to the UNIX character set to be done
1287 correctly. 
1289 it() bf(KOI8-R) Alternate mapping for Russian Cyrillic UNIX
1290 character set. The parameter link(bf(client code
1291 page))(clientcodepage) em(MUST) be set to code page 866 if the
1292 bf(character set) parameter is set to KOI8-R in order for the
1293 conversion to the UNIX character set to be done correctly.
1295 endit()
1297 em(BUG). These MSDOS code page to UNIX character set mappings should
1298 be dynamic, like the loading of MS DOS code pages, not static.
1300 See also link(bf(client code page))(clientcodepage).  Normally this
1301 parameter is not set, meaning no filename translation is done.
1303   bf(Default:)
1304 tt(     character set = <empty string>)
1306   bf(Example:)
1307 tt(     character set = ISO8859-1)
1309 label(clientcodepage)
1310 dit(bf(client code page (G)))
1312 This parameter specifies the DOS code page that the clients accessing
1313 Samba are using. To determine what code page a Windows or DOS client
1314 is using, open a DOS command prompt and type the command "chcp". This
1315 will output the code page. The default for USA MS-DOS, Windows 95, and
1316 Windows NT releases is code page 437. The default for western european
1317 releases of the above operating systems is code page 850.
1319 This parameter tells url(bf(smbd))(smbd.8.html) which of the
1320 tt(codepage.XXX) files to dynamically load on startup. These files,
1321 described more fully in the manual page url(bf(make_smbcodepage
1322 (1)))(make_smbcodepage.1.html), tell url(bf(smbd))(smbd.8.html) how
1323 to map lower to upper case characters to provide the case insensitivity
1324 of filenames that Windows clients expect.
1326 Samba currently ships with the following code page files :
1328 startit()
1330 it() bf(Code Page 437 - MS-DOS Latin US)
1332 it() bf(Code Page 737 - Windows '95 Greek)
1334 it() bf(Code Page 850 - MS-DOS Latin 1)
1336 it() bf(Code Page 852 - MS-DOS Latin 2)
1338 it() bf(Code Page 861 - MS-DOS Icelandic)
1340 it() bf(Code Page 866 - MS-DOS Cyrillic)
1342 it() bf(Code Page 932 - MS-DOS Japanese SJIS)
1344 it() bf(Code Page 936 - MS-DOS Simplified Chinese)
1346 it() bf(Code Page 949 - MS-DOS Korean Hangul)
1348 it() bf(Code Page 950 - MS-DOS Traditional Chinese)
1350 endit()
1352 Thus this parameter may have any of the values 437, 737, 850, 852,
1353 861, 932, 936, 949, or 950.  If you don't find the codepage you need,
1354 read the comments in one of the other codepage files and the
1355 url(bf(make_smbcodepage (1)))(make_smbcodepage.1.html) man page and
1356 write one. Please remember to donate it back to the Samba user
1357 community.
1359 This parameter co-operates with the link(bf("valid
1360 chars"))(validchars) parameter in determining what characters are
1361 valid in filenames and how capitalization is done. If you set both
1362 this parameter and the link(bf("valid chars"))(validchars) parameter
1363 the bf("client code page") parameter em(MUST) be set before the
1364 link(bf("valid chars"))(validchars) parameter in the bf(smb.conf)
1365 file. The link(bf("valid chars"))(validchars) string will then augment
1366 the character settings in the "client code page" parameter.
1368 If not set, bf("client code page") defaults to 850.
1370 See also : link(bf("valid chars"))(validchars)
1372   bf(Default:)
1373 tt(     client code page = 850)
1375   bf(Example:)
1376 tt(     client code page = 936)
1378 label(codingsystem)
1379 dit(bf(codingsystem (G)))
1381 This parameter is used to determine how incoming Shift-JIS Japanese
1382 characters are mapped from the incoming link(bf("client code
1383 page"))(clientcodepage) used by the client, into file names in the
1384 UNIX filesystem. Only useful if link(bf("client code
1385 page"))(clientcodepage) is set to 932 (Japanese Shift-JIS).
1387 The options are :
1389 startit()
1391 it() bf(SJIS)  Shift-JIS. Does no conversion of the incoming filename.
1393 it() bf(JIS8, J8BB, J8BH, J8@B, J8@J, J8@H ) Convert from incoming
1394 Shift-JIS to eight bit JIS code with different shift-in, shift out
1395 codes.
1397 it() bf(JIS7, J7BB, J7BH, J7@B, J7@J, J7@H ) Convert from incoming
1398 Shift-JIS to seven bit JIS code with different shift-in, shift out
1399 codes.
1401 it() bf(JUNET, JUBB, JUBH, JU@B, JU@J, JU@H ) Convert from incoming
1402 Shift-JIS to JUNET code with different shift-in, shift out codes.
1404 it() bf(EUC)  Convert an incoming Shift-JIS character to EUC code.
1406 it() bf(HEX) Convert an incoming Shift-JIS character to a 3 byte hex
1407 representation, i.e. tt(:AB).
1409 it() bf(CAP) Convert an incoming Shift-JIS character to the 3 byte hex
1410 representation used by the Columbia AppleTalk Program (CAP),
1411 i.e. tt(:AB).  This is used for compatibility between Samba and CAP.
1413 endit()
1415 label(comment)
1416 dit(bf(comment (S)))
1418 This is a text field that is seen next to a share when a client does a
1419 queries the server, either via the network neighborhood or via "net
1420 view" to list what shares are available.
1422 If you want to set the string that is displayed next to the machine
1423 name then see the server string command.
1425   bf(Default:)
1426 tt(     No comment string)
1428   bf(Example:)
1429 tt(     comment = Fred's Files)
1431 label(configfile)
1432 dit(bf(config file (G)))
1434 This allows you to override the config file to use, instead of the
1435 default (usually bf(smb.conf)). There is a chicken and egg problem
1436 here as this option is set in the config file!
1438 For this reason, if the name of the config file has changed when the
1439 parameters are loaded then it will reload them from the new config
1440 file.
1442 This option takes the usual substitutions, which can be very useful.
1444 If the config file doesn't exist then it won't be loaded (allowing you
1445 to special case the config files of just a few clients).
1447   bf(Example:)
1448 tt(     config file = /usr/local/samba/lib/smb.conf.%m)
1450 label(copy)
1451 dit(bf(copy (S)))
1453 This parameter allows you to em('clone') service entries. The specified
1454 service is simply duplicated under the current service's name. Any
1455 parameters specified in the current section will override those in the
1456 section being copied.
1458 This feature lets you set up a 'template' service and create similar
1459 services easily. Note that the service being copied must occur earlier
1460 in the configuration file than the service doing the copying.
1462   bf(Default:)
1463 tt(     none)
1465   bf(Example:)
1466 tt(     copy = otherservice)
1468 label(createmask)
1469 dit(bf(create mask (S)))
1471 A synonym for this parameter is link(bf('create mode'))(createmode).
1473 When a file is created, the necessary permissions are calculated
1474 according to the mapping from DOS modes to UNIX permissions, and the
1475 resulting UNIX mode is then bit-wise 'AND'ed with this parameter.
1476 This parameter may be thought of as a bit-wise MASK for the UNIX modes
1477 of a file. Any bit em(*not*) set here will be removed from the modes set
1478 on a file when it is created.
1480 The default value of this parameter removes the 'group' and 'other'
1481 write and execute bits from the UNIX modes.
1483 Following this Samba will bit-wise 'OR' the UNIX mode created from
1484 this parameter with the value of the "force create mode" parameter
1485 which is set to 000 by default.
1487 This parameter does not affect directory modes. See the parameter
1488 link(bf('directory mode'))(directorymode) for details.
1490 See also the link(bf("force create mode"))(forcecreatemode) parameter
1491 for forcing particular mode bits to be set on created files. See also
1492 the link(bf("directory mode"))(directorymode) parameter for masking
1493 mode bits on created directories.
1495   bf(Default:)
1496 tt(     create mask = 0744)
1498   bf(Example:)
1499 tt(     create mask = 0775)
1501 label(createmode)
1502 dit(bf(create mode (S)))
1504 This is a synonym for link(bf(create mask))(createmask).
1506 label(deadtime)
1507 dit(bf(deadtime (G)))
1509 The value of the parameter (a decimal integer) represents the number
1510 of minutes of inactivity before a connection is considered dead, and
1511 it is disconnected. The deadtime only takes effect if the number of
1512 open files is zero.
1514 This is useful to stop a server's resources being exhausted by a large
1515 number of inactive connections.
1517 Most clients have an auto-reconnect feature when a connection is
1518 broken so in most cases this parameter should be transparent to users.
1520 Using this parameter with a timeout of a few minutes is recommended
1521 for most systems.
1523 A deadtime of zero indicates that no auto-disconnection should be
1524 performed.
1526   bf(Default:)
1527 tt(     deadtime = 0)
1529   bf(Example:)
1530 tt(     deadtime = 15)
1532 label(debugtimestamp)
1533 dit(bf(debug timestamp (G)))
1535 Samba2.0 debug log messages are timestamped by default. If you are
1536 running at a high link(bf("debug level"))(debuglevel) these timestamps
1537 can be distracting. This boolean parameter allows them to be turned
1538 off.
1540   bf(Default:)
1541 tt(     debug timestamp = Yes)
1543   bf(Example:)
1544 tt(     debug timestamp = No)
1546 label(debuglevel)
1547 dit(bf(debug level (G)))
1549 The value of the parameter (an integer) allows the debug level
1550 (logging level) to be specified in the bf(smb.conf) file. This is to
1551 give greater flexibility in the configuration of the system.
1553 The default will be the debug level specified on the command line
1554 or level zero if none was specified.
1556   bf(Example:)
1557 tt(     debug level = 3)
1559 label(default)
1560 dit(bf(default (G)))
1562 A synonym for link(bf(default service))(defaultservice).
1564 label(defaultcase)
1565 dit(bf(default case (S)))
1567 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING). Also note
1568 the link(bf("short preserve case"))(shortpreservecase) parameter.
1570 label(default service)
1571 dit(bf(default service (G)))
1573 This parameter specifies the name of a service which will be connected
1574 to if the service actually requested cannot be found. Note that the
1575 square brackets are em(NOT) given in the parameter value (see example
1576 below).
1578 There is no default value for this parameter. If this parameter is not
1579 given, attempting to connect to a nonexistent service results in an
1580 error.
1582 Typically the default service would be a link(bf(guest ok))(guestok),
1583 link(bf(read-only))(readonly) service.
1585 Also note that the apparent service name will be changed to equal that
1586 of the requested service, this is very useful as it allows you to use
1587 macros like link(bf(%S))(percentS) to make a wildcard service.
1589 Note also that any tt('_') characters in the name of the service used
1590 in the default service will get mapped to a tt('/'). This allows for
1591 interesting things.
1594   bf(Example:)
1595 verb(
1596         default service = pub
1597         
1598         [pub]
1599                 path = /%S
1602 label(deletereadonly)
1603 dit(bf(delete readonly (S)))
1605 This parameter allows readonly files to be deleted.  This is not
1606 normal DOS semantics, but is allowed by UNIX.
1608 This option may be useful for running applications such as rcs, where
1609 UNIX file ownership prevents changing file permissions, and DOS
1610 semantics prevent deletion of a read only file.
1612   bf(Default:)
1613 tt(     delete readonly = No)
1615   bf(Example:)
1616 tt(     delete readonly = Yes)
1618 label(deletevetofiles)
1619 dit(bf(delete veto files (S)))
1621 This option is used when Samba is attempting to delete a directory
1622 that contains one or more vetoed directories (see the link(bf('veto
1623 files'))(vetofiles) option).  If this option is set to False (the
1624 default) then if a vetoed directory contains any non-vetoed files or
1625 directories then the directory delete will fail. This is usually what
1626 you want.
1628 If this option is set to True, then Samba will attempt to recursively
1629 delete any files and directories within the vetoed directory. This can
1630 be useful for integration with file serving systems such as bf(NetAtalk),
1631 which create meta-files within directories you might normally veto
1632 DOS/Windows users from seeing (e.g. tt(.AppleDouble))
1634 Setting tt('delete veto files = True') allows these directories to be 
1635 transparently deleted when the parent directory is deleted (so long
1636 as the user has permissions to do so).
1638 See also the link(bf(veto files))(vetofiles) parameter.
1640   bf(Default:)
1641 tt(     delete veto files = False)
1643   bf(Example:)
1644 tt(     delete veto files = True)
1646 label(denyhosts)
1647 dit(bf(deny hosts (S)))
1649 The opposite of link(bf('allow hosts'))(allowhosts) - hosts listed
1650 here are em(NOT) permitted access to services unless the specific
1651 services have their own lists to override this one. Where the lists
1652 conflict, the link(bf('allow'))(allowhosts) list takes precedence.
1654   bf(Default:)
1655 tt(     none (i.e., no hosts specifically excluded))
1657   bf(Example:)
1658 tt(     deny hosts = 150.203.4. badhost.mynet.edu.au)
1660 label(dfreecommand)
1661 dit(bf(dfree command (G)))
1663 The dfree command setting should only be used on systems where a
1664 problem occurs with the internal disk space calculations. This has
1665 been known to happen with Ultrix, but may occur with other operating
1666 systems. The symptom that was seen was an error of "Abort Retry
1667 Ignore" at the end of each directory listing.
1669 This setting allows the replacement of the internal routines to
1670 calculate the total disk space and amount available with an external
1671 routine. The example below gives a possible script that might fulfill
1672 this function.
1674 The external program will be passed a single parameter indicating a
1675 directory in the filesystem being queried. This will typically consist
1676 of the string tt("./"). The script should return two integers in
1677 ascii. The first should be the total disk space in blocks, and the
1678 second should be the number of available blocks. An optional third
1679 return value can give the block size in bytes. The default blocksize
1680 is 1024 bytes.
1682 Note: Your script should em(NOT) be setuid or setgid and should be
1683 owned by (and writeable only by) root!
1685   bf(Default:)
1686 tt(     By default internal routines for determining the disk capacity
1687 and remaining space will be used.)
1689   bf(Example:)
1690 tt(     dfree command = /usr/local/samba/bin/dfree)
1692 Where the script dfree (which must be made executable) could be:
1694 verb(
1695         #!/bin/sh
1696         df $1 | tail -1 | awk '{print $2" "$4}'
1699 or perhaps (on Sys V based systems):
1701 verb(
1702         #!/bin/sh
1703         /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
1706         Note that you may have to replace the command names with full
1707 path names on some systems.
1709 label(directory)
1710 dit(bf(directory (S)))
1712 Synonym for link(bf(path))(path).
1714 label(directorymask)
1715 dit(bf(directory mask (S)))
1717 This parameter is the octal modes which are used when converting DOS
1718 modes to UNIX modes when creating UNIX directories.
1720 When a directory is created, the necessary permissions are calculated
1721 according to the mapping from DOS modes to UNIX permissions, and the
1722 resulting UNIX mode is then bit-wise 'AND'ed with this parameter.
1723 This parameter may be thought of as a bit-wise MASK for the UNIX modes
1724 of a directory. Any bit em(*not*) set here will be removed from the
1725 modes set on a directory when it is created.
1727 The default value of this parameter removes the 'group' and 'other'
1728 write bits from the UNIX mode, allowing only the user who owns the
1729 directory to modify it.
1731 Following this Samba will bit-wise 'OR' the UNIX mode created from
1732 this parameter with the value of the "force directory mode"
1733 parameter. This parameter is set to 000 by default (i.e. no extra mode
1734 bits are added).
1736 See the link(bf("force directory mode"))(forcedirectorymode) parameter
1737 to cause particular mode bits to always be set on created directories.
1739 See also the link(bf("create mode"))(createmode) parameter for masking
1740 mode bits on created files.
1742   bf(Default:)
1743 tt(     directory mask = 0755)
1745   bf(Example:)
1746 tt(     directory mask = 0775)
1748 label(directorymode)
1749 dit(bf(directory mode (S)))
1751 Synonym for link(bf(directory mask))(directorymask).
1753 label(dnsproxy)
1754 dit(bf(dns proxy (G)))
1756 Specifies that url(bf(nmbd))(nmbd.8.html) when acting as a WINS
1757 server and finding that a NetBIOS name has not been registered, should
1758 treat the NetBIOS name word-for-word as a DNS name and do a lookup
1759 with the DNS server for that name on behalf of the name-querying
1760 client.
1762 Note that the maximum length for a NetBIOS name is 15 characters, so
1763 the DNS name (or DNS alias) can likewise only be 15 characters,
1764 maximum.
1766 url(bf(nmbd))(nmbd.8.html) spawns a second copy of itself to do the
1767 DNS name lookup requests, as doing a name lookup is a blocking action.
1769 See also the parameter link(bf(wins support))(winssupport).
1771   bf(Default:)
1772 tt(     dns proxy = yes)
1774 label(domainadmingroup)
1775 bf(domain admin group (G))
1777 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1778 Samba NT Domain Controller Code.  It has been removed as of November 98.
1779 To work with the latest code builds that may have more support for
1780 Samba NT Domain Controller functionality please subscribe to the
1781 mailing list bf(Samba-ntdom) available by sending email to
1782 email(listproc@samba.org)
1784 label(domainadminusers) 
1785 dit(bf(domain admin users (G)))
1787 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1788 Samba NT Domain Controller Code. It has been removed as of November 98.
1789 To work with the latest code builds that may have more support for
1790 Samba NT Domain Controller functionality please subscribe to the
1791 mailing list bf(Samba-ntdom) available by sending email to
1792 email(listproc@samba.org)
1794 label(domain controller)
1795 dit(bf(domain controller (G)))
1797 This is a bf(DEPRECATED) parameter. It is currently not used within
1798 the Samba source and should be removed from all current smb.conf
1799 files. It is left behind for compatibility reasons.
1801 label(domaingroupmap)
1802 dit(bf(domain group map (G)))
1804 This option allows you to specify a file containing unique mappings
1805 of individual NT Domain Group names (in any domain) to UNIX group
1806 names.  This allows NT domain groups to be presented correctly to
1807 NT users, despite the lack of native support for the NT Security model
1808 (based on VAX/VMS) in UNIX.  The reader is advised to become familiar
1809 with the NT Domain system and its administration.
1811 This option is used in conjunction with link(bf('local group map'))(localgroupmap)
1812 and link(bf('domain user map'))(domainusermap).  The use of these three
1813 options is trivial and often unnecessary in the case where Samba is
1814 not expected to interact with any other SAM databases (whether local
1815 workstations or Domain Controllers).
1818 The map file is parsed line by line.  If any line begins with a tt('#')
1819 or a tt(';') then it is ignored.  Each line should contain a single UNIX
1820 group name on the left then a single NT Domain Group name on the right,
1821 separated by a tabstop or tt('=').  If either name contains spaces then
1822 it should be enclosed in quotes.
1823 The line can be either of the form:
1825 tt(  UNIXgroupname      \\DOMAIN_NAME\\DomainGroupName )
1829 tt(  UNIXgroupname      DomainGroupName )
1831 In the case where Samba is either an bf(EXPERIMENTAL) Domain Controller
1832 or it is a member of a domain using link(bf("security = domain"))(security),
1833 the latter format can be used: the default Domain name is the Samba Server's
1834 Domain name, specified by link(bf("workgroup = MYGROUP"))(workgroup).
1836 Any UNIX groups that are em(NOT) specified in this map file are assumed to
1837 be either Local or Domain Groups, depending on the role of the Samba Server.
1839 In the case when Samba is an bf(EXPERIMENTAL) Domain Controller, Samba
1840 will present em(ALL) such unspecified UNIX groups as its own NT Domain
1841 Groups, with the same name.
1843 In the case where Samba is member of a domain using
1844 link(bf("security = domain"))(security), Samba will check the UNIX name with
1845 its Domain Controller (see link(bf("password server"))(passwordserver))
1846 as if it was an NT Domain Group.  If the Domain Controller says that it is not,
1847 such unspecified (unmapped) UNIX groups which also are not NT Domain
1848 Groups are treated as Local Groups in the Samba Server's local SAM database.
1849 NT Administrators will recognise these as Workstation Local Groups,
1850 which are managed by running bf(USRMGR.EXE) and selecting a remote
1851 Domain named "\\WORKSTATION_NAME", or by running bf(MUSRMGR.EXE) on
1852 a local Workstation.
1854 This may sound complicated, but it means that a Samba Server as
1855 either a member of a domain or as an bf(EXPERIMENTAL) Domain Controller
1856 will act like an NT Workstation (with a local SAM database) or an NT PDC
1857 (with a Domain SAM database) respectively, without the need for any of
1858 the map files at all.  If you bf(want) to get fancy, however, you can.
1860 Note that adding an entry to map an arbitrary NT group in an arbitrary
1861 Domain to an arbitrary UNIX group em(REQUIRES) the following:
1863 startit()
1865 it() that the UNIX group exists on the UNIX server.
1867 it() that the NT Domain Group exists in the specified NT Domain
1869 it() that the UNIX Server knows about the specified Domain; 
1871 it() that all the UNIX users (who are expecting to access the Samba
1872 Server as the correct NT user and with the correct NT group permissions)
1873 in the UNIX group be mapped to the correct NT Domain users in the specified
1874 NT Domain using link(bf('domain user map'))(domainusermap).
1876 endit()
1878 Failure to meet any of these requirements may result in either (or
1879 both) errors reported in the log files or (and) incorrect or missing
1880 access rights granted to users.
1883 label(domaingroups)
1884 dit(bf(domain groups (G)))
1886 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1887 Samba NT Domain Controller Code. It has been removed as of November 98.
1888 To work with the latest code builds that may have more support for
1889 Samba NT Domain Controller functionality please subscribe to the
1890 mailing list bf(Samba-ntdom) available by sending email to
1891 email(listproc@samba.org)
1893 label(domainguestgroup)
1894 dit(bf(domain guest group (G)))
1896 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1897 Samba NT Domain Controller Code. It has been removed as of November 98.
1898 To work with the latest code builds that may have more support for
1899 Samba NT Domain Controller functionality please subscribe to the
1900 mailing list bf(Samba-ntdom) available by sending email to
1901 email(listproc@samba.org)
1903 label(domainguestusers)
1904 dit(bf(domain guest users (G)))
1906 This is an bf(EXPERIMENTAL) parameter that is part of the unfinished
1907 Samba NT Domain Controller Code. It has been removed as of November 98.
1908 To work with the latest code builds that may have more support for
1909 Samba NT Domain Controller functionality please subscribe to the
1910 mailing list bf(Samba-ntdom) available by sending email to
1911 email(listproc@samba.org)
1913 label(domainlogons)
1914 dit(bf(domain logons (G)))
1916 If set to true, the Samba server will serve Windows 95/98 Domain
1917 logons for the link(bf(workgroup))(workgroup) it is in. For more
1918 details on setting up this feature see the file DOMAINS.txt in the
1919 Samba documentation directory tt(docs/) shipped with the source code.
1921 Note that Win95/98 Domain logons are em(NOT) the same as Windows
1922 NT Domain logons. NT Domain logons require a Primary Domain Controller
1923 (PDC) for the Domain. It is intended that in a future release Samba
1924 will be able to provide this functionality for Windows NT clients
1925 also.
1927   bf(Default:)
1928 tt(     domain logons = no)
1930 label(domainmaster)
1931 dit(bf(domain master (G)))
1933 Tell url(bf(nmbd))(nmbd.8.html) to enable WAN-wide browse list
1934 collation. Setting this option causes url(bf(nmbd))(nmbd.8.html) to
1935 claim a special domain specific NetBIOS name that identifies it as a
1936 domain master browser for its given
1937 link(bf(workgroup))(workgroup). Local master browsers in the same
1938 link(bf(workgroup))(workgroup) on broadcast-isolated subnets will give
1939 this url(bf(nmbd))(nmbd.8.html) their local browse lists, and then
1940 ask url(bf(smbd))(smbd.8.html) for a complete copy of the browse list
1941 for the whole wide area network.  Browser clients will then contact
1942 their local master browser, and will receive the domain-wide browse
1943 list, instead of just the list for their broadcast-isolated subnet.
1945 Note that Windows NT Primary Domain Controllers expect to be able to
1946 claim this link(bf(workgroup))(workgroup) specific special NetBIOS
1947 name that identifies them as domain master browsers for that
1948 link(bf(workgroup))(workgroup) by default (i.e. there is no way to
1949 prevent a Windows NT PDC from attempting to do this). This means that
1950 if this parameter is set and url(bf(nmbd))(nmbd.8.html) claims the
1951 special name for a link(bf(workgroup))(workgroup) before a Windows NT
1952 PDC is able to do so then cross subnet browsing will behave strangely
1953 and may fail.
1955 By default ("auto") Samba will attempt to become the domain master
1956 browser only if it is the Primary Domain Controller.
1958   bf(Default:)
1959 tt(     domain master = auto)
1961   bf(Example:)
1962 tt(     domain master = no)
1965 label(domainusermap)
1966 dit(bf(domain user map (G)))
1968 This option allows you to specify a file containing unique mappings
1969 of individual NT Domain User names (in any domain) to UNIX user
1970 names.  This allows NT domain users to be presented correctly to
1971 NT systems, despite the lack of native support for the NT Security model
1972 (based on VAX/VMS) in UNIX.  The reader is advised to become familiar
1973 with the NT Domain system and its administration.
1975 This option is used in conjunction with link(bf('local group map'))(localgroupmap)
1976 and link(bf('domain group map'))(domaingroupmap).  The use of these three
1977 options is trivial and often unnecessary in the case where Samba is
1978 not expected to interact with any other SAM databases (whether local
1979 workstations or Domain Controllers).
1981 This option, which provides (and maintains) a one-to-one link between
1982 UNIX and NT users, is em(DIFFERENT) from link(bf('username map'))
1983 (usernamemap), which does em(NOT) maintain a distinction between the
1984 name(s) it can map to and the name it maps.
1987 The map file is parsed line by line.  If any line begins with a tt('#')
1988 or a tt(';') then the line is ignored.  Each line should contain a single UNIX
1989 user name on the left then a single NT Domain User name on the right,
1990 separated by a tabstop or tt('=').  If either name contains spaces then
1991 it should be enclosed in quotes.
1992 The line can be either of the form:
1994 tt(  UNIXusername       \\DOMAIN_NAME\\DomainUserName )
1998 tt(  UNIXusername       DomainUserName )
2000 In the case where Samba is either an bf(EXPERIMENTAL) Domain Controller
2001 or it is a member of a domain using link(bf("security = domain"))(security),
2002 the latter format can be used: the default Domain name is the Samba Server's
2003 Domain name, specified by link(bf("workgroup = MYGROUP"))(workgroup).
2005 Any UNIX users that are em(NOT) specified in this map file are assumed
2006 to be either Domain or Workstation Users, depending on the role of the
2007 Samba Server.
2009 In the case when Samba is an bf(EXPERIMENTAL) Domain Controller, Samba
2010 will present em(ALL) such unspecified UNIX users as its own NT Domain
2011 Users, with the same name.
2013 In the case where Samba is a member of a domain using
2014 link(bf("security = domain"))(security), Samba will check the UNIX name with
2015 its Domain Controller (see link(bf("password server"))(passwordserver))
2016 as if it was an NT Domain User.  If the Domain Controller says that it is not,
2017 such unspecified (unmapped) UNIX users which also are not NT Domain
2018 Users are treated as Local Users in the Samba Server's local SAM database.
2019 NT Administrators will recognise these as Workstation Users,
2020 which are managed by running bf(USRMGR.EXE) and selecting a remote
2021 Domain named "\\WORKSTATION_NAME", or by running bf(MUSRMGR.EXE) on
2022 a local Workstation.
2024 This may sound complicated, but it means that a Samba Server as
2025 either a member of a domain or as an bf(EXPERIMENTAL) Domain Controller
2026 will act like an NT Workstation (with a local SAM database) or an NT PDC
2027 (with a Domain SAM database) respectively, without the need for any of
2028 the map files at all.  If you bf(want) to get fancy, however, you can.
2030 Note that adding an entry to map an arbitrary NT User in an arbitrary
2031 Domain to an arbitrary UNIX user em(REQUIRES) the following:
2033 startit()
2035 it() that the UNIX user exists on the UNIX server.
2037 it() that the NT Domain User exists in the specified NT Domain.
2039 it() that the UNIX Server knows about the specified Domain.
2041 endit()
2043 Failure to meet any of these requirements may result in either (or
2044 both) errors reported in the log files or (and) incorrect or missing
2045 access rights granted to users.
2048 label(dont descend)
2049 dit(bf(dont descend (S)))
2051 There are certain directories on some systems (e.g., the tt(/proc) tree
2052 under Linux) that are either not of interest to clients or are
2053 infinitely deep (recursive). This parameter allows you to specify a
2054 comma-delimited list of directories that the server should always show
2055 as empty.
2057 Note that Samba can be very fussy about the exact format of the "dont
2058 descend" entries. For example you may need tt("./proc") instead of
2059 just tt("/proc"). Experimentation is the best policy :-)
2061   bf(Default:)
2062 tt(     none (i.e., all directories are OK to descend))
2064   bf(Example:)
2065 tt(     dont descend = /proc,/dev)
2067 label(dosfiletimeresolution)
2068 dit(bf(dos filetime resolution (S)))
2070 Under the DOS and Windows FAT filesystem, the finest granularity on
2071 time resolution is two seconds. Setting this parameter for a share
2072 causes Samba to round the reported time down to the nearest two second
2073 boundary when a query call that requires one second resolution is made
2074 to url(bf(smbd))(smbd.8.html).
2076 This option is mainly used as a compatibility option for Visual C++
2077 when used against Samba shares. If oplocks are enabled on a share,
2078 Visual C++ uses two different time reading calls to check if a file
2079 has changed since it was last read. One of these calls uses a
2080 one-second granularity, the other uses a two second granularity. As
2081 the two second call rounds any odd second down, then if the file has a
2082 timestamp of an odd number of seconds then the two timestamps will not
2083 match and Visual C++ will keep reporting the file has changed. Setting
2084 this option causes the two timestamps to match, and Visual C++ is
2085 happy.
2087   bf(Default:)
2088 tt(     dos filetime resolution = False)
2090   bf(Example:)
2091 tt(     dos filetime resolution = True)
2093 label(dos filetimes)
2094 dit(bf(dos filetimes (S)))
2096 Under DOS and Windows, if a user can write to a file they can change
2097 the timestamp on it. Under POSIX semantics, only the owner of the file
2098 or root may change the timestamp. By default, Samba runs with POSIX
2099 semantics and refuses to change the timestamp on a file if the user
2100 smbd is acting on behalf of is not the file owner. Setting this option
2101 to True allows DOS semantics and smbd will change the file timestamp as
2102 DOS requires.
2104   bf(Default:)
2105 tt(     dos filetimes = False)
2107   bf(Example:)
2108 tt(     dos filetimes = True)
2110 label(encryptpasswords)
2111 dit(bf(encrypt passwords (G)))
2113 This boolean controls whether encrypted passwords will be negotiated
2114 with the client. Note that Windows NT 4.0 SP3 and above and also
2115 Windows 98 will by default expect encrypted passwords unless a
2116 registry entry is changed. To use encrypted passwords in Samba see the
2117 file ENCRYPTION.txt in the Samba documentation directory tt(docs/)
2118 shipped with the source code.
2120 In order for encrypted passwords to work correctly
2121 url(bf(smbd))(smbd.8.html) must either have access to a local
2122 url(bf(smbpasswd (5)))(smbpasswd.5.html) file (see the
2123 url(bf(smbpasswd (8)))(smbpasswd.8.html) program for information on
2124 how to set up and maintain this file), or set the
2125 link(bf(security=))(security) parameter to either
2126 link(bf("server"))(securityequalserver) or
2127 link(bf("domain"))(securityequaldomain) which causes
2128 url(bf(smbd))(smbd.8.html) to authenticate against another server.
2130 label(exec)
2131 dit(bf(exec (S)))
2133 This is a synonym for link(bf(preexec))(preexec).
2135 label(fake directory create times)
2136 dit(bf(fake directory create times (S)))
2138 NTFS and Windows VFAT file systems keep a create time for all files
2139 and directories. This is not the same as the ctime - status change
2140 time - that Unix keeps, so Samba by default reports the earliest of
2141 the various times Unix does keep. Setting this parameter for a share
2142 causes Samba to always report midnight 1-1-1980 as the create time for
2143 directories.
2145 This option is mainly used as a compatibility option for Visual C++
2146 when used against Samba shares. Visual C++ generated makefiles have
2147 the object directory as a dependency for each object file, and a make
2148 rule to create the directory. Also, when NMAKE compares timestamps it
2149 uses the creation time when examining a directory. Thus the object
2150 directory will be created if it does not exist, but once it does exist
2151 it will always have an earlier timestamp than the object files it
2152 contains.
2154 However, Unix time semantics mean that the create time reported by
2155 Samba will be updated whenever a file is created or deleted in the
2156 directory. NMAKE therefore finds all object files in the object
2157 directory bar the last one built are out of date compared to the
2158 directory and rebuilds them. Enabling this option ensures directories
2159 always predate their contents and an NMAKE build will proceed as
2160 expected.
2162   bf(Default:)
2163 tt(     fake directory create times = False)
2165   bf(Example:)
2166 tt(     fake directory create times = True)
2168 label(fakeoplocks)
2169 dit(bf(fake oplocks (S)))
2171 Oplocks are the way that SMB clients get permission from a server to
2172 locally cache file operations. If a server grants an oplock
2173 (opportunistic lock) then the client is free to assume that it is the
2174 only one accessing the file and it will aggressively cache file
2175 data. With some oplock types the client may even cache file open/close
2176 operations. This can give enormous performance benefits.
2178 When you set tt("fake oplocks = yes") url(bf(smbd))(smbd.8.html) will
2179 always grant oplock requests no matter how many clients are using the
2180 file.
2182 It is generally much better to use the real link(bf(oplocks))(oplocks)
2183 support rather than this parameter.
2185 If you enable this option on all read-only shares or shares that you
2186 know will only be accessed from one client at a time such as
2187 physically read-only media like CDROMs, you will see a big performance
2188 improvement on many operations. If you enable this option on shares
2189 where multiple clients may be accessing the files read-write at the
2190 same time you can get data corruption. Use this option carefully!
2192 This option is disabled by default.
2194 label(followsymlinks)
2195 dit(bf(follow symlinks (S)))
2197 This parameter allows the Samba administrator to stop
2198 url(bf(smbd))(smbd.8.html) from following symbolic links in a
2199 particular share. Setting this parameter to em("No") prevents any file
2200 or directory that is a symbolic link from being followed (the user
2201 will get an error).  This option is very useful to stop users from
2202 adding a symbolic link to tt(/etc/passwd) in their home directory for
2203 instance.  However it will slow filename lookups down slightly.
2205 This option is enabled (i.e. url(bf(smbd))(smbd.8.html) will follow
2206 symbolic links) by default.
2208 label(forcecreatemode)
2209 dit(bf(force create mode (S)))
2211 This parameter specifies a set of UNIX mode bit permissions that will
2212 em(*always*) be set on a file created by Samba. This is done by
2213 bitwise 'OR'ing these bits onto the mode bits of a file that is being
2214 created. The default for this parameter is (in octal) 000. The modes
2215 in this parameter are bitwise 'OR'ed onto the file mode after the mask
2216 set in the link(bf("create mask"))(createmask) parameter is applied.
2218 See also the parameter link(bf("create mask"))(createmask) for details
2219 on masking mode bits on created files.
2221   bf(Default:)
2222 tt(     force create mode = 000)
2224   bf(Example:)
2225 tt(     force create mode = 0755)
2227 would force all created files to have read and execute permissions set
2228 for 'group' and 'other' as well as the read/write/execute bits set for
2229 the 'user'.
2231 label(forcedirectorymode)
2232 dit(bf(force directory mode (S)))
2234 This parameter specifies a set of UNIX mode bit permissions that will
2235 em(*always*) be set on a directory created by Samba. This is done by
2236 bitwise 'OR'ing these bits onto the mode bits of a directory that is
2237 being created. The default for this parameter is (in octal) 0000 which
2238 will not add any extra permission bits to a created directory. This
2239 operation is done after the mode mask in the parameter
2240 link(bf("directory mask"))(directorymask) is applied.
2242 See also the parameter link(bf("directory mask"))(directorymask) for
2243 details on masking mode bits on created directories.
2245   bf(Default:)
2246 tt(     force directory mode = 000)
2248   bf(Example:)
2249 tt(     force directory mode = 0755)
2251 would force all created directories to have read and execute
2252 permissions set for 'group' and 'other' as well as the
2253 read/write/execute bits set for the 'user'.
2255 label(forcegroup)
2256 dit(bf(force group (S)))
2258 This specifies a UNIX group name that will be assigned as the default
2259 primary group for all users connecting to this service. This is useful
2260 for sharing files by ensuring that all access to files on service will
2261 use the named group for their permissions checking. Thus, by assigning
2262 permissions for this group to the files and directories within this
2263 service the Samba administrator can restrict or allow sharing of these
2264 files.
2266   bf(Default:)
2267 tt(     no forced group)
2269   bf(Example:)
2270 tt(     force group = agroup)
2272 label(forceuser)
2273 dit(bf(force user (S)))
2275 This specifies a UNIX user name that will be assigned as the default
2276 user for all users connecting to this service. This is useful for
2277 sharing files. You should also use it carefully as using it
2278 incorrectly can cause security problems.
2280 This user name only gets used once a connection is established. Thus
2281 clients still need to connect as a valid user and supply a valid
2282 password. Once connected, all file operations will be performed as the
2283 tt("forced user"), no matter what username the client connected as.
2285 This can be very useful.
2287   bf(Default:)
2288 tt(     no forced user)
2290   bf(Example:)
2291 tt(     force user = auser)
2293 label(fstype)
2294 dit(bf(fstype (S)))
2296 This parameter allows the administrator to configure the string that
2297 specifies the type of filesystem a share is using that is reported by
2298 url(bf(smbd))(smbd.8.html) when a client queries the filesystem type
2299 for a share. The default type is bf("NTFS") for compatibility with
2300 Windows NT but this can be changed to other strings such as "Samba" or
2301 "FAT" if required.
2303   bf(Default:)
2304 tt(     fstype = NTFS)
2306   bf(Example:)
2307 tt(     fstype = Samba)
2309 label(getwdcache)
2310 dit(bf(getwd cache (G)))
2312 This is a tuning option. When this is enabled a caching algorithm
2313 will be used to reduce the time taken for getwd() calls. This can have
2314 a significant impact on performance, especially when the
2315 link(bf(widelinks))(widelinks) parameter is set to False.
2317   bf(Default:)
2318 tt(     getwd cache = No)
2320   bf(Example:)
2321 tt(     getwd cache = Yes)
2323 label(group)
2324 dit(bf(group (S)))
2326 Synonym for link(bf("force group"))(forcegroup).
2328 label(guestaccount)
2329 dit(bf(guest account (S)))
2331 This is a username which will be used for access to services which are
2332 specified as link(bf('guest ok'))(guestok) (see below). Whatever
2333 privileges this user has will be available to any client connecting to
2334 the guest service. Typically this user will exist in the password
2335 file, but will not have a valid login. The user account bf("ftp") is
2336 often a good choice for this parameter. If a username is specified in
2337 a given service, the specified username overrides this one.
2339 One some systems the default guest account "nobody" may not be able to
2340 print. Use another account in this case. You should test this by
2341 trying to log in as your guest user (perhaps by using the tt("su -")
2342 command) and trying to print using the system print command such as
2343 bf(lpr (1)) or bf(lp (1)).
2345   bf(Default:)
2346 tt(     specified at compile time, usually "nobody")
2348   bf(Example:)
2349 tt(     guest account = ftp)
2351 label(guestok)
2352 dit(bf(guest ok (S)))
2354 If this parameter is em('yes') for a service, then no password is
2355 required to connect to the service. Privileges will be those of the
2356 link(bf(guest account))(guestaccount).
2358 See the section below on link(bf(security))(security) for more
2359 information about this option.
2361   bf(Default:)
2362 tt(     guest ok = no)
2364   bf(Example:)
2365 tt(     guest ok = yes)
2367 label(guestonly)
2368 dit(bf(guest only (S)))
2370 If this parameter is em('yes') for a service, then only guest
2371 connections to the service are permitted. This parameter will have no
2372 affect if link(bf("guest ok"))(guestok) or link(bf("public"))(public)
2373 is not set for the service.
2375 See the section below on link(bf(security))(security) for more
2376 information about this option.
2378   bf(Default:)
2379 tt(     guest only = no)
2381   bf(Example:)
2382 tt(     guest only = yes)
2384 label(hidedotfiles)
2385 dit(bf(hide dot files (S)))
2387 This is a boolean parameter that controls whether files starting with
2388 a dot appear as hidden files.
2390   bf(Default:)
2391 tt(     hide dot files = yes)
2393   bf(Example:)
2394 tt(     hide dot files = no)
2397 label(hidefiles)
2398 dit(bf(hide files(S)))
2400 This is a list of files or directories that are not visible but are
2401 accessible.  The DOS 'hidden' attribute is applied to any files or
2402 directories that match.
2404 Each entry in the list must be separated by a tt('/'), which allows
2405 spaces to be included in the entry.  tt('*') and tt('?') can be used
2406 to specify multiple files or directories as in DOS wildcards.
2408 Each entry must be a Unix path, not a DOS path and must not include the 
2409 Unix directory separator tt('/').
2411 Note that the case sensitivity option is applicable in hiding files.
2413 Setting this parameter will affect the performance of Samba, as it
2414 will be forced to check all files and directories for a match as they
2415 are scanned.
2417 See also link(bf("hide dot files"))(hidedotfiles), link(bf("veto
2418 files"))(vetofiles) and link(bf("case sensitive"))(casesensitive).
2420   bf(Default)
2421 verb(
2422         No files or directories are hidden by this option (dot files are
2423         hidden by default because of the "hide dot files" option).
2426   bf(Example)
2427 tt(     hide files = /.*/DesktopFolderDB/TrashFor%m/resource.frk/)
2429 The above example is based on files that the Macintosh SMB client
2430 (DAVE) available from url(bf(Thursby))(www.thursby.com) creates for
2431 internal use, and also still hides all files beginning with a dot.
2433 label(homedirmap)
2434 dit(bf(homedir map (G)))
2436 If link(bf("nis homedir"))(nishomedir) is true, and
2437 url(bf(smbd))(smbd.8.html) is also acting as a Win95/98 link(bf(logon
2438 server))(domainlogons) then this parameter specifies the NIS (or YP)
2439 map from which the server for the user's home directory should be
2440 extracted.  At present, only the Sun auto.home map format is
2441 understood. The form of the map is:
2443 tt(username     server:/some/file/system)
2445 and the program will extract the servername from before the first
2446 tt(':').  There should probably be a better parsing system that copes
2447 with different map formats and also Amd (another automounter) maps.
2449 NB: A working NIS is required on the system for this option to work.
2451 See also link(bf("nis homedir"))(nishomedir), link(bf(domain
2452 logons))(domainlogons).
2454   bf(Default:)
2455 tt(     homedir map = auto.home)
2457   bf(Example:)
2458 tt(     homedir map = amd.homedir)
2460 label(hostsallow)
2461 dit(bf(hosts allow (S)))
2463 Synonym for link(bf(allow hosts))(allowhosts).
2465 label(hostsdeny)
2466 dit(bf(hosts deny (S)))
2468 Synonym for link(bf(denyhosts))(denyhosts).
2470 label(hostsequiv)
2471 dit(bf(hosts equiv (G)))
2473 If this global parameter is a non-null string, it specifies the name
2474 of a file to read for the names of hosts and users who will be allowed
2475 access without specifying a password.
2477 This is not be confused with link(bf(allow hosts))(allowhosts) which
2478 is about hosts access to services and is more useful for guest
2479 services. bf(hosts equiv) may be useful for NT clients which will not
2480 supply passwords to samba.
2482 NOTE: The use of bf(hosts equiv) can be a major security hole. This is
2483 because you are trusting the PC to supply the correct username. It is
2484 very easy to get a PC to supply a false username. I recommend that the
2485 bf(hosts equiv) option be only used if you really know what you are
2486 doing, or perhaps on a home network where you trust your spouse and
2487 kids. And only if you em(really) trust them :-).
2489   bf(Default)
2490 tt(     No host equivalences)
2492   bf(Example)
2493 tt(     hosts equiv = /etc/hosts.equiv)
2495 label(include)
2496 dit(bf(include (G)))
2498 This allows you to include one config file inside another.  The file
2499 is included literally, as though typed in place.
2501 It takes the standard substitutions, except link(bf(%u))(percentu),
2502 link(bf(%P))(percentP) and link(bf(%S))(percentS).
2504 label(interfaces)
2505 dit(bf(interfaces (G)))
2507 This option allows you to setup multiple network interfaces, so that
2508 Samba can properly handle browsing on all interfaces.
2510 The option takes a list of ip/netmask pairs. The netmask may either be
2511 a bitmask, or a bitlength.
2513 For example, the following line:
2515 tt(interfaces = 192.168.2.10/24 192.168.3.10/24)
2517 would configure two network interfaces with IP addresses 192.168.2.10
2518 and 192.168.3.10. The netmasks of both interfaces would be set to
2519 255.255.255.0.
2521 You could produce an equivalent result by using:
2523 tt(interfaces = 192.168.2.10/255.255.255.0 192.168.3.10/255.255.255.0)
2525 if you prefer that format.
2527 If this option is not set then Samba will attempt to find a primary
2528 interface, but won't attempt to configure more than one interface.
2530 See also link(bf("bind interfaces only"))(bindinterfacesonly).
2532 label(invalidusers)
2533 dit(bf(invalid users (S)))
2535 This is a list of users that should not be allowed to login to this
2536 service. This is really a em("paranoid") check to absolutely ensure an
2537 improper setting does not breach your security.
2539 A name starting with a tt('@') is interpreted as an NIS netgroup first
2540 (if your system supports NIS), and then as a UNIX group if the name
2541 was not found in the NIS netgroup database.
2543 A name starting with tt('+') is interpreted only by looking in the
2544 UNIX group database. A name starting with tt('&') is interpreted only
2545 by looking in the NIS netgroup database (this requires NIS to be
2546 working on your system). The characters tt('+') and tt('&') may be
2547 used at the start of the name in either order so the value
2548 tt("+&group") means check the UNIX group database, followed by the NIS
2549 netgroup database, and the value tt("&+group") means check the NIS
2550 netgroup database, followed by the UNIX group database (the same as
2551 the tt('@') prefix).
2553 The current servicename is substituted for
2554 link(bf(%S))(percentS). This is useful in the link(bf([homes]))(homes)
2555 section.
2557 See also link(bf("valid users"))(validusers).
2559   bf(Default:)
2560 tt(     No invalid users)
2562   bf(Example:)
2563 tt(     invalid users = root fred admin @wheel)
2565 label(keepalive)
2566 dit(bf(keepalive (G)))
2568 The value of the parameter (an integer) represents the number of
2569 seconds between bf('keepalive') packets. If this parameter is zero, no
2570 keepalive packets will be sent. Keepalive packets, if sent, allow the
2571 server to tell whether a client is still present and responding.
2573 Keepalives should, in general, not be needed if the socket being used
2574 has the SO_KEEPALIVE attribute set on it (see link(bf("socket
2575 options"))(socketoptions)). Basically you should only use this option
2576 if you strike difficulties.
2578   bf(Default:)
2579 tt(     keep alive = 0)
2581   bf(Example:)
2582 tt(     keep alive = 60)
2584 label(kerneloplocks)
2585 dit(bf(kernel oplocks (G)))
2587 For UNIXs that support kernel based link(bf(oplocks))(oplocks)
2588 (currently only IRIX but hopefully also Linux and FreeBSD soon) this
2589 parameter allows the use of them to be turned on or off.
2591 Kernel oplocks support allows Samba link(bf(oplocks))(oplocks) to be
2592 broken whenever a local UNIX process or NFS operation accesses a file
2593 that url(bf(smbd))(smbd.8.html) has oplocked. This allows complete
2594 data consistency between SMB/CIFS, NFS and local file access (and is a
2595 em(very) cool feature :-).
2597 This parameter defaults to em("On") on systems that have the support,
2598 and em("off") on systems that don't. You should never need to touch
2599 this parameter.
2601 label(ldapbindas)
2602 dit(bf(ldap bind as (G)))
2604 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2605 password database stored on an LDAP server. These options are only
2606 available if your version of Samba was configured with the bf(--with-ldap)
2607 option.
2609 This parameter specifies the entity to bind to an LDAP directory as.
2610 Usually it should be safe to use the LDAP root account; for larger
2611 installations it may be preferable to restrict Samba's access. See also
2612 link(bf(ldap passwd file))(ldappasswdfile).
2614   bf(Default:)
2615 tt(     none (bind anonymously))
2617   bf(Example:)
2618 tt(     ldap bind as = "uid=root, dc=mydomain, dc=org")
2620 label(ldappasswdfile)
2621 dit(bf(ldap passwd file (G)))
2623 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2624 password database stored on an LDAP server. These options are only
2625 available if your version of Samba was configured with the bf(--with-ldap)
2626 option.
2628 This parameter specifies a file containing the password with which
2629 Samba should bind to an LDAP server. For obvious security reasons
2630 this file must be set to mode 700 or less.
2632   bf(Default:)
2633 tt(     none (bind anonymously))
2635   bf(Example:)
2636 tt(     ldap passwd file = /usr/local/samba/private/ldappasswd)
2638 label(ldapport)
2639 dit(bf(ldap port (G)))
2641 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2642 password database stored on an LDAP server. These options are only
2643 available if your version of Samba was configured with the bf(--with-ldap)
2644 option.
2646 This parameter specifies the TCP port number of the LDAP server.
2648   bf(Default:)
2649 tt(     ldap port = 389.)
2651 label(ldapserver)
2652 dit(bf(ldap server (G)))
2654 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2655 password database stored on an LDAP server back-end. These options
2656 are only available if your version of Samba was configured with
2657 the bf(--with-ldap) option.
2659 This parameter specifies the DNS name of the LDAP server to use
2660 when storing and retrieving information about Samba users and
2661 groups.
2663   bf(Default:)
2664 tt(     ldap server = localhost)
2666 label(ldapsuffix)
2667 dit(bf(ldap suffix (G)))
2669 This parameter is part of the em(EXPERIMENTAL) Samba support for a
2670 password database stored on an LDAP server back-end. These options
2671 are only available if your version of Samba was configured with
2672 the bf(--with-ldap) option.
2674 This parameter specifies the node of the LDAP tree beneath which
2675 Samba should store its information. This parameter MUST be provided
2676 when using LDAP with Samba.
2678   bf(Default:)
2679 tt(     none)
2681   bf(Example:)
2682 tt(     ldap suffix = "dc=mydomain, dc=org")
2684 label(lmannounce)
2685 dit(bf(lm announce (G)))
2687 This parameter determines if url(bf(nmbd))(nmbd.8.html) will produce
2688 Lanman announce broadcasts that are needed by bf(OS/2) clients in order
2689 for them to see the Samba server in their browse list. This parameter
2690 can have three values, tt("true"), tt("false"), or tt("auto"). The
2691 default is tt("auto").  If set to tt("false") Samba will never produce
2692 these broadcasts. If set to tt("true") Samba will produce Lanman
2693 announce broadcasts at a frequency set by the parameter link(bf("lm
2694 interval"))(lminterval). If set to tt("auto") Samba will not send Lanman
2695 announce broadcasts by default but will listen for them. If it hears
2696 such a broadcast on the wire it will then start sending them at a
2697 frequency set by the parameter link(bf("lm interval"))(lminterval).
2699 See also link(bf("lm interval"))(lminterval).
2701   bf(Default:)
2702 tt(     lm announce = auto)
2704   bf(Example:)
2705 tt(     lm announce = true)
2707 label(lminterval)
2708 dit(bf(lm interval (G)))
2710 If Samba is set to produce Lanman announce broadcasts needed by
2711 bf(OS/2) clients (see the link(bf("lm announce"))(lmannounce)
2712 parameter) then this parameter defines the frequency in seconds with
2713 which they will be made.  If this is set to zero then no Lanman
2714 announcements will be made despite the setting of the link(bf("lm
2715 announce"))(lmannounce) parameter.
2717 See also link(bf("lm announce"))(lmannounce).
2719   bf(Default:)
2720 tt(     lm interval = 60)
2722   bf(Example:)
2723 tt(     lm interval = 120)
2725 label(loadprinters)
2726 dit(bf(load printers (G)))
2728 A boolean variable that controls whether all printers in the printcap
2729 will be loaded for browsing by default. See the
2730 link(bf("printers"))(printers) section for more details.
2732   bf(Default:)
2733 tt(     load printers = yes)
2735   bf(Example:)
2736 tt(     load printers = no)
2738 label(localgroupmap)
2739 dit(bf(local group map (G)))
2741 This option allows you to specify a file containing unique mappings
2742 of individual NT Local Group names (in any domain) to UNIX group
2743 names.  This allows NT Local groups (aliases) to be presented correctly to
2744 NT users, despite the lack of native support for the NT Security model
2745 (based on VAX/VMS) in UNIX.  The reader is advised to become familiar
2746 with the NT Domain system and its administration.
2748 This option is used in conjunction with link(bf('domain group map'))(domaingroupmap)
2749 and link(bf('domain name map'))(domainusermap).  The use of these three
2750 options is trivial and often unnecessary in the case where Samba
2751 is not expected to interact with any other SAM databases (whether local
2752 workstations or Domain Controllers).
2755 The map file is parsed line by line.  If any line begins with a tt('#')
2756 or a tt(';') then it is ignored.  Each line should contain a single UNIX
2757 group name on the left then a single NT Local Group name on the right,
2758 separated by a tabstop or tt('=').  If either name contains spaces then
2759 it should be enclosed in quotes.
2760 The line can be either of the form:
2762 tt(  UNIXgroupname      \\DOMAIN_NAME\\LocalGroupName )
2766 tt(  UNIXgroupname      LocalGroupName )
2768 In the case where Samba is either an bf(EXPERIMENTAL) Domain Controller
2769 or it is a member of a domain using link(bf("security = domain"))(security),
2770 the latter format can be used: the default Domain name is the Samba Server's
2771 Domain name, specified by link(bf("workgroup = MYGROUP"))(workgroup).
2773 Any UNIX groups that are em(NOT) specified in this map file are treated
2774 as either Local or Domain Groups depending on the role of the Samba Server.
2776 In the case when Samba is an bf(EXPERIMENTAL) Domain Controller, Samba
2777 will present em(ALL) unspecified UNIX groups as its own NT Domain
2778 Groups, with the same name, and em(NOT) as Local Groups.
2780 In the case where Samba is member of a domain using
2781 link(bf("security = domain"))(security), Samba will check the UNIX name with
2782 its Domain Controller (see link(bf("password server"))(passwordserver))
2783 as if it was an NT Domain Group.  If the Domain Controller says that it is not,
2784 such unspecified (unmapped) UNIX groups which also are not NT Domain
2785 Groups are treated as Local Groups in the Samba Server's local SAM database.
2786 NT Administrators will recognise these as Workstation Local Groups,
2787 which are managed by running bf(USRMGR.EXE) and selecting a remote
2788 Domain named "\\WORKSTATION_NAME", or by running bf(MUSRMGR.EXE) on
2789 a local Workstation.
2791 This may sound complicated, but it means that a Samba Server as
2792 either a member of a domain or as an bf(EXPERIMENTAL) Domain Controller
2793 will act like an NT Workstation (with a local SAM database) or an NT PDC
2794 (with a Domain SAM database) respectively, without the need for any of
2795 the map files at all.  If you bf(want) to get fancy, however, you can.
2797 Note that adding an entry to map an arbitrary NT group in an arbitrary
2798 Domain to an arbitrary UNIX group em(REQUIRES) the following:
2800 startit()
2802 it() that the UNIX group exists on the UNIX server.
2804 it() that the NT Domain Group exists in the specified NT Domain
2806 it() that the UNIX Server knows about the specified Domain; 
2808 it() that all the UNIX users (who are expecting to access the Samba
2809 Server as the correct NT user and with the correct NT group permissions)
2810 in the UNIX group be mapped to the correct NT Domain users in the specified
2811 NT Domain using link(bf('domain user map'))(domainusermap).
2813 endit()
2815 Failure to meet any of these requirements may result in either (or
2816 both) errors reported in the log files or (and) incorrect or missing
2817 access rights granted to users.
2820 label(localmaster)
2821 dit(bf(local master (G)))
2823 This option allows url(bf(nmbd))(nmbd.8.html) to try and become a
2824 local master browser on a subnet. If set to False then
2825 url(bf(nmbd))(nmbd.8.html) will not attempt to become a local master
2826 browser on a subnet and will also lose in all browsing elections. By
2827 default this value is set to true. Setting this value to true doesn't
2828 mean that Samba will em(become) the local master browser on a subnet,
2829 just that url(bf(nmbd))(nmbd.8.html) will em(participate) in
2830 elections for local master browser.
2832 Setting this value to False will cause url(bf(nmbd))(nmbd.8.html)
2833 em(never) to become a local master browser.
2835   bf(Default:)
2836 tt(     local master = yes)
2838 label(lock dir)
2839 dit(bf(lock dir (G)))
2841 Synonym for link(bf("lock directory"))(lockdirectory).
2843 label(lockdirectory)
2844 dit(bf(lock directory (G)))
2846 This option specifies the directory where lock files will be placed.
2847 The lock files are used to implement the link(bf("max
2848 connections"))(maxconnections) option.
2850   bf(Default:)
2851 tt(     lock directory = /tmp/samba)
2853   bf(Example:)
2854 tt(     lock directory = /usr/local/samba/var/locks)
2856 label(locking)
2857 dit(bf(locking (S)))
2859 This controls whether or not locking will be performed by the server
2860 in response to lock requests from the client.
2862 If tt("locking = no"), all lock and unlock requests will appear to
2863 succeed and all lock queries will indicate that the queried lock is
2864 clear.
2866 If tt("locking = yes"), real locking will be performed by the server.
2868 This option em(may) be useful for read-only filesystems which em(may)
2869 not need locking (such as cdrom drives), although setting this
2870 parameter of tt("no") is not really recommended even in this case.
2872 Be careful about disabling locking either globally or in a specific
2873 service, as lack of locking may result in data corruption. You should
2874 never need to set this parameter.
2876   bf(Default:)
2877 tt(     locking = yes)
2879   bf(Example:)
2880 tt(     locking = no)
2882 label(logfile)
2883 dit(bf(log file (G)))
2885 This options allows you to override the name of the Samba log file
2886 (also known as the debug file).
2888 This option takes the standard substitutions, allowing you to have
2889 separate log files for each user or machine.
2891   bf(Example:)
2892 tt(     log file = /usr/local/samba/var/log.%m)
2894 label(loglevel)
2895 dit(bf(log level (G)))
2897 Synonym for link(bf("debug level"))(debuglevel).
2899 label(logondrive)
2900 dit(bf(logon drive (G)))
2902 This parameter specifies the local path to which the home directory
2903 will be connected (see link(bf("logon home"))(logonhome)) and is only
2904 used by NT Workstations. 
2906 Note that this option is only useful if Samba is set up as a
2907 link(bf(logon server))(domainlogons).
2909   bf(Example:)
2910 tt(     logon drive = h:)
2912 label(logonhome)
2913 dit(bf(logon home (G)))
2915 This parameter specifies the home directory location when a Win95/98 or
2916 NT Workstation logs into a Samba PDC.  It allows you to do 
2918 tt("NET USE H: /HOME")
2920 from a command prompt, for example.
2922 This option takes the standard substitutions, allowing you to have
2923 separate logon scripts for each user or machine.
2925 Note that this option is only useful if Samba is set up as a
2926 link(bf(logon server))(domainlogons).
2928   bf(Example:)
2929 tt(     logon home = "\\remote_smb_server\%U")
2931   bf(Default:)
2932 tt(     logon home = "\\%N\%U")
2934 label(logonpath)
2935 dit(bf(logon path (G)))
2937 This parameter specifies the home directory where roaming profiles
2938 (USER.DAT / USER.MAN files for Windows 95/98) are stored.
2940 This option takes the standard substitutions, allowing you to have
2941 separate logon scripts for each user or machine.  It also specifies
2942 the directory from which the tt("desktop"), tt("start menu"),
2943 tt("network neighborhood") and tt("programs") folders, and their
2944 contents, are loaded and displayed on your Windows 95/98 client.
2946 The share and the path must be readable by the user for the
2947 preferences and directories to be loaded onto the Windows 95/98
2948 client.  The share must be writeable when the logs in for the first
2949 time, in order that the Windows 95/98 client can create the user.dat
2950 and other directories.
2952 Thereafter, the directories and any of the contents can, if required, be
2953 made read-only.  It is not advisable that the USER.DAT file be made
2954 read-only - rename it to USER.MAN to achieve the desired effect (a
2955 em(MAN)datory profile).
2957 Windows clients can sometimes maintain a connection to the [homes]
2958 share, even though there is no user logged in.  Therefore, it is vital
2959 that the logon path does not include a reference to the homes share
2960 (i.e. setting this parameter to tt(\\%N\HOMES\profile_path) will cause
2961 problems).
2963 This option takes the standard substitutions, allowing you to have
2964 separate logon scripts for each user or machine.
2966 Note that this option is only useful if Samba is set up as a
2967 link(bf(logon server))(domainlogons).
2969   bf(Default:)
2970 tt(     logon path = \\%N\%U\profile)
2972   bf(Example:)
2973 tt(     logon path = \\PROFILESERVER\HOME_DIR\%U\PROFILE)
2975 label(logonscript)
2976 dit(bf(logon script (G)))
2978 This parameter specifies the batch file (.bat) or NT command file
2979 (.cmd) to be downloaded and run on a machine when a user successfully
2980 logs in.  The file must contain the DOS style cr/lf line endings.
2981 Using a DOS-style editor to create the file is recommended.
2983 The script must be a relative path to the tt([netlogon]) service.  If
2984 the tt([netlogon]) service specifies a link(bf(path))(path) of
2985 /usr/local/samba/netlogon, and logon script = STARTUP.BAT, then the
2986 file that will be downloaded is:
2988 tt(/usr/local/samba/netlogon/STARTUP.BAT)
2990 The contents of the batch file is entirely your choice.  A suggested
2991 command would be to add tt(NET TIME \\SERVER /SET /YES), to force every
2992 machine to synchronize clocks with the same time server.  Another use
2993 would be to add tt(NET USE U: \\SERVER\UTILS) for commonly used
2994 utilities, or tt(NET USE Q: \\SERVER\ISO9001_QA) for example.
2996 Note that it is particularly important not to allow write access to
2997 the tt([netlogon]) share, or to grant users write permission on the
2998 batch files in a secure environment, as this would allow the batch
2999 files to be arbitrarily modified and security to be breached.
3001 This option takes the standard substitutions, allowing you to have
3002 separate logon scripts for each user or machine.
3004 Note that this option is only useful if Samba is set up as a
3005 link(bf(logon server))(domainlogons).
3007   bf(Example:)
3008 tt(     logon script = scripts\%U.bat)
3010 label(lppausecommand)
3011 dit(bf(lppause command (S)))
3013 This parameter specifies the command to be executed on the server host
3014 in order to stop printing or spooling a specific print job.
3016 This command should be a program or script which takes a printer name
3017 and job number to pause the print job. One way of implementing this is
3018 by using job priorities, where jobs having a too low priority won't be
3019 sent to the printer.
3021 If a tt("%p") is given then the printername is put in its place. A
3022 tt("%j") is replaced with the job number (an integer).  On HPUX (see
3023 link(bf(printing=hpux))(printing)), if the tt("-p%p") option is added
3024 to the lpq command, the job will show up with the correct status,
3025 i.e. if the job priority is lower than the set fence priority it will
3026 have the PAUSED status, whereas if the priority is equal or higher it
3027 will have the SPOOLED or PRINTING status.
3029 Note that it is good practice to include the absolute path in the
3030 lppause command as the PATH may not be available to the server.
3032 See also the link(bf("printing"))(printing) parameter.
3034   bf(Default:)
3035         Currently no default value is given to this string, unless the
3036 value of the link(bf("printing"))(printing) parameter is tt(SYSV), in
3037 which case the default is :
3039 tt(     lp -i %p-%j -H hold)
3041 or if the value of the link(bf("printing"))(printing) parameter is tt(softq),
3042 then the default is:
3044 tt(     qstat -s -j%j -h)
3046   bf(Example for HPUX:)
3047         lppause command = /usr/bin/lpalt %p-%j -p0
3049 label(lpqcachetime)
3050 dit(bf(lpq cache time (G)))
3052 This controls how long lpq info will be cached for to prevent the
3053 bf(lpq) command being called too often. A separate cache is kept for
3054 each variation of the bf(lpq) command used by the system, so if you
3055 use different bf(lpq) commands for different users then they won't
3056 share cache information.
3058 The cache files are stored in tt(/tmp/lpq.xxxx) where xxxx is a hash of
3059 the bf(lpq) command in use.
3061 The default is 10 seconds, meaning that the cached results of a
3062 previous identical bf(lpq) command will be used if the cached data is
3063 less than 10 seconds old. A large value may be advisable if your
3064 bf(lpq) command is very slow.
3066 A value of 0 will disable caching completely.
3068 See also the link(bf("printing"))(printing) parameter.
3070   bf(Default:)
3071 tt(     lpq cache time = 10)
3073   bf(Example:)
3074 tt(     lpq cache time = 30)
3076 label(lpqcommand)
3077 dit(bf(lpq command (S)))
3079 This parameter specifies the command to be executed on the server host
3080 in order to obtain tt("lpq")-style printer status information.
3082 This command should be a program or script which takes a printer name
3083 as its only parameter and outputs printer status information.
3085 Currently eight styles of printer status information are supported;
3086 BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX and SOFTQ. This covers most UNIX
3087 systems. You control which type is expected using the
3088 link(bf("printing ="))(printing) option.
3090 Some clients (notably Windows for Workgroups) may not correctly send
3091 the connection number for the printer they are requesting status
3092 information about. To get around this, the server reports on the first
3093 printer service connected to by the client. This only happens if the
3094 connection number sent is invalid.
3096 If a tt(%p) is given then the printername is put in its place. Otherwise
3097 it is placed at the end of the command.
3099 Note that it is good practice to include the absolute path in the bf(lpq
3100 command) as the PATH may not be available to the server.
3102 See also the link(bf("printing"))(printing) parameter.
3104   bf(Default:)
3105 tt(        depends on the setting of printing =)
3107   bf(Example:)
3108 tt(     lpq command = /usr/bin/lpq %p)
3110 label(lpresumecommand)
3111 dit(bf(lpresume command (S)))
3113 This parameter specifies the command to be executed on the server host
3114 in order to restart or continue printing or spooling a specific print
3115 job.
3117 This command should be a program or script which takes a printer name
3118 and job number to resume the print job. See also the link(bf("lppause
3119 command"))(lppausecommand) parameter.
3121 If a tt(%p) is given then the printername is put in its place. A
3122 tt(%j) is replaced with the job number (an integer).
3124 Note that it is good practice to include the absolute path in the bf(lpresume
3125 command) as the PATH may not be available to the server.
3127 See also the link(bf("printing"))(printing) parameter.
3129   bf(Default:)
3131         Currently no default value is given to this string, unless the
3132 value of the link(bf("printing"))(printing) parameter is tt(SYSV), in
3133 which case the default is :
3135 tt(     lp -i %p-%j -H resume)
3137 or if the value of the link(bf("printing"))(printing) parameter is tt(softq),
3138 then the default is:
3140 tt(     qstat -s -j%j -r)
3142   bf(Example for HPUX:)
3143 tt(        lpresume command = /usr/bin/lpalt %p-%j -p2)
3145 label(lprmcommand)
3146 dit(bf(lprm command (S)))
3148 This parameter specifies the command to be executed on the server host
3149 in order to delete a print job.
3151 This command should be a program or script which takes a printer name
3152 and job number, and deletes the print job.
3154 If a tt(%p) is given then the printername is put in its place. A
3155 tt(%j) is replaced with the job number (an integer).
3157 Note that it is good practice to include the absolute path in the
3158 bf(lprm command) as the PATH may not be available to the server.
3160 See also the link(bf("printing"))(printing) parameter.
3162   bf(Default:)
3163 tt(     depends on the setting of "printing =")
3165   bf(Example 1:)
3166 tt(     lprm command = /usr/bin/lprm -P%p %j)
3168   bf(Example 2:)
3169 tt(     lprm command = /usr/bin/cancel %p-%j)
3171 label(machinepasswordtimeout)
3172 dit(bf(machine password timeout (G)))
3174 If a Samba server is a member of an Windows NT Domain (see the
3175 link(bf("security=domain"))(securityequaldomain)) parameter) then
3176 periodically a running url(bf(smbd))(smbd.8.html) process will try and
3177 change the bf(MACHINE ACCOUNT PASWORD) stored in the file called
3178 tt(<Domain>.<Machine>.mac) where tt(<Domain>) is the name of the
3179 Domain we are a member of and tt(<Machine>) is the primary
3180 link(bf("NetBIOS name"))(netbiosname) of the machine
3181 url(bf(smbd))(smbd.8.html) is running on. This parameter specifies how
3182 often this password will be changed, in seconds. The default is one
3183 week (expressed in seconds), the same as a Windows NT Domain member
3184 server.
3186 See also url(bf(smbpasswd (8)))(smbpasswd.8.html), and the
3187 link(bf("security=domain"))(securityequaldomain)) parameter.
3189   bf(Default:)
3190 tt(     machine password timeout = 604800)
3192 label(magicoutput)
3193 dit(bf(magic output (S)))
3195 This parameter specifies the name of a file which will contain output
3196 created by a magic script (see the link(bf("magic
3197 script"))(magicscript) parameter below).
3199 Warning: If two clients use the same link(bf("magic
3200 script"))(magicscript) in the same directory the output file content
3201 is undefined.
3203   bf(Default:)
3204 tt(     magic output = <magic script name>.out)
3206   bf(Example:)
3207 tt(     magic output = myfile.txt)
3209 label(magicscript)
3210 dit(bf(magic script (S)))
3212 This parameter specifies the name of a file which, if opened, will be
3213 executed by the server when the file is closed. This allows a UNIX
3214 script to be sent to the Samba host and executed on behalf of the
3215 connected user.
3217 Scripts executed in this way will be deleted upon completion,
3218 permissions permitting.
3220 If the script generates output, output will be sent to the file
3221 specified by the link(bf("magic output"))(magicoutput) parameter (see
3222 above).
3224 Note that some shells are unable to interpret scripts containing
3225 carriage-return-linefeed instead of linefeed as the end-of-line
3226 marker. Magic scripts must be executable em("as is") on the host,
3227 which for some hosts and some shells will require filtering at the DOS
3228 end.
3230 Magic scripts are em(EXPERIMENTAL) and should em(NOT) be relied upon.
3232   bf(Default:)
3233 tt(     None. Magic scripts disabled.)
3235   bf(Example:)
3236 tt(     magic script = user.csh)
3238 label(manglecase)
3239 dit(bf(mangle case (S)))
3241 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING).
3243 label(mangledmap)
3244 dit(bf(mangled map (S)))
3246 This is for those who want to directly map UNIX file names which can
3247 not be represented on Windows/DOS.  The mangling of names is not always
3248 what is needed.  In particular you may have documents with file
3249 extensions that differ between DOS and UNIX. For example, under UNIX
3250 it is common to use tt(".html") for HTML files, whereas under
3251 Windows/DOS tt(".htm") is more commonly used.
3253 So to map tt("html") to tt("htm") you would use:
3255 tt(  mangled map = (*.html *.htm))
3257 One very useful case is to remove the annoying tt(";1") off the ends
3258 of filenames on some CDROMS (only visible under some UNIXs). To do
3259 this use a map of (*;1 *).
3261   bf(default:)
3262 tt(     no mangled map)
3264   bf(Example:)
3265 tt(     mangled map = (*;1 *))
3267 label(manglednames)
3268 dit(bf(mangled names (S)))
3270 This controls whether non-DOS names under UNIX should be mapped to
3271 DOS-compatible names ("mangled") and made visible, or whether non-DOS
3272 names should simply be ignored.
3274 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING) for details
3275 on how to control the mangling process.
3277 If mangling is used then the mangling algorithm is as follows:
3279 startit()
3281 it() The first (up to) five alphanumeric characters before the
3282 rightmost dot of the filename are preserved, forced to upper case, and
3283 appear as the first (up to) five characters of the mangled name.
3285 it() A tilde tt("~") is appended to the first part of the mangled
3286 name, followed by a two-character unique sequence, based on the
3287 original root name (i.e., the original filename minus its final
3288 extension). The final extension is included in the hash calculation
3289 only if it contains any upper case characters or is longer than three
3290 characters.
3292 Note that the character to use may be specified using the
3293 link(bf("mangling char"))(manglingchar) option, if you don't like
3294 tt('~').
3296 it() The first three alphanumeric characters of the final extension
3297 are preserved, forced to upper case and appear as the extension of the
3298 mangled name. The final extension is defined as that part of the
3299 original filename after the rightmost dot. If there are no dots in the
3300 filename, the mangled name will have no extension (except in the case
3301 of link(bf("hidden files"))(hidefiles) - see below).
3303 it() Files whose UNIX name begins with a dot will be presented as DOS
3304 hidden files. The mangled name will be created as for other filenames,
3305 but with the leading dot removed and tt("___") as its extension regardless
3306 of actual original extension (that's three underscores).
3308 endit()
3310 The two-digit hash value consists of upper case alphanumeric
3311 characters.
3313 This algorithm can cause name collisions only if files in a directory
3314 share the same first five alphanumeric characters. The probability of
3315 such a clash is 1/1300.
3317 The name mangling (if enabled) allows a file to be copied between UNIX
3318 directories from Windows/DOS while retaining the long UNIX
3319 filename. UNIX files can be renamed to a new extension from
3320 Windows/DOS and will retain the same basename. Mangled names do not
3321 change between sessions.
3323   bf(Default:)
3324 tt(     mangled names = yes)
3326   bf(Example:)
3327 tt(     mangled names = no)
3329 label(manglingchar)
3330 dit(bf(mangling char (S)))
3332 This controls what character is used as the em("magic") character in
3333 link(bf(name mangling))(manglednames). The default is a tt('~') but
3334 this may interfere with some software. Use this option to set it to
3335 whatever you prefer.
3337   bf(Default:)
3338 tt(     mangling char = ~)
3340   bf(Example:)
3341 tt(     mangling char = ^)
3343 label(mangledstack)
3344 dit(bf(mangled stack (G)))
3346 This parameter controls the number of mangled names that should be
3347 cached in the Samba server url(bf(smbd))(smbd.8.html).
3349 This stack is a list of recently mangled base names (extensions are
3350 only maintained if they are longer than 3 characters or contains upper
3351 case characters).
3353 The larger this value, the more likely it is that mangled names can be
3354 successfully converted to correct long UNIX names. However, large
3355 stack sizes will slow most directory access. Smaller stacks save
3356 memory in the server (each stack element costs 256 bytes).
3358 It is not possible to absolutely guarantee correct long file names, so
3359 be prepared for some surprises!
3361   bf(Default:)
3362 tt(     mangled stack = 50)
3364   bf(Example:)
3365 tt(     mangled stack = 100)
3367 label(maparchive)
3368 dit(bf(map archive (S)))
3370 This controls whether the DOS archive attribute should be mapped to
3371 the UNIX owner execute bit.  The DOS archive bit is set when a file
3372 has been modified since its last backup.  One motivation for this
3373 option it to keep Samba/your PC from making any file it touches from
3374 becoming executable under UNIX.  This can be quite annoying for shared
3375 source code, documents, etc...
3377 Note that this requires the link(bf("create mask"))(createmask)
3378 parameter to be set such that owner execute bit is not masked out
3379 (i.e. it must include 100). See the parameter link(bf("create
3380 mask"))(createmask) for details.
3382   bf(Default:)
3383 tt(      map archive = yes)
3385   bf(Example:)
3386 tt(      map archive = no)
3388 label(maphidden)
3389 dit(bf(map hidden (S)))
3391 This controls whether DOS style hidden files should be mapped to the
3392 UNIX world execute bit.
3394 Note that this requires the link(bf("create mask"))(createmask) to be
3395 set such that the world execute bit is not masked out (i.e. it must
3396 include 001). See the parameter link(bf("create mask"))(createmask)
3397 for details.
3399   bf(Default:)
3400 tt(     map hidden = no)
3402   bf(Example:)
3403 tt(     map hidden = yes)
3405 label(mapsystem)
3406 dit(bf(map system (S)))
3408 This controls whether DOS style system files should be mapped to the
3409 UNIX group execute bit.
3411 Note that this requires the link(bf("create mask"))(createmask) to be
3412 set such that the group execute bit is not masked out (i.e. it must
3413 include 010). See the parameter link(bf("create mask"))(createmask)
3414 for details.
3416   bf(Default:)
3417 tt(     map system = no)
3419   bf(Example:)
3420 tt(     map system = yes)
3422 label(maptoguest)
3423 dit(bf(map to guest (G)))
3425 This parameter is only useful in link(bf(security))(security) modes
3426 other than link(bf("security=share"))(securityequalshare) - i.e. user,
3427 server, and domain.
3429 This parameter can take three different values, which tell
3430 url(bf(smbd))(smbd.8.html) what to do with user login requests that
3431 don't match a valid UNIX user in some way.
3433 The three settings are :
3435 startit()
3437 it() bf("Never") - Means user login requests with an invalid password
3438 are rejected. This is the default.
3440 it() bf("Bad User") - Means user logins with an invalid password are
3441 rejected, unless the username does not exist, in which case it is
3442 treated as a guest login and mapped into the link(bf("guest
3443 account"))(guestaccount).
3445 it() bf("Bad Password") - Means user logins with an invalid
3446 password are treated as a guest login and mapped into the
3447 link(bf("guest account"))(guestaccount). Note that this can
3448 cause problems as it means that any user incorrectly typing their
3449 password will be silently logged on a bf("guest") - and 
3450 will not know the reason they cannot access files they think
3451 they should - there will have been no message given to them
3452 that they got their password wrong. Helpdesk services will
3453 em(*hate*) you if you set the bf("map to guest") parameter
3454 this way :-).
3456 endit()
3458 Note that this parameter is needed to set up bf("Guest") share
3459 services when using link(bf(security))(security) modes other than
3460 share. This is because in these modes the name of the resource being
3461 requested is em(*not*) sent to the server until after the server has
3462 successfully authenticated the client so the server cannot make
3463 authentication decisions at the correct time (connection to the
3464 share) for bf("Guest") shares.
3466 For people familiar with the older Samba releases, this parameter
3467 maps to the old compile-time setting of the GUEST_SESSSETUP value
3468 in local.h.
3470   bf(Default:)
3471 tt(     map to guest = Never)
3472   bf(Example):
3473 tt(     map to guest = Bad User)
3475 label(maxconnections)
3476 dit(bf(max connections (S)))
3478 This option allows the number of simultaneous connections to a service
3479 to be limited. If bf("max connections") is greater than 0 then
3480 connections will be refused if this number of connections to the
3481 service are already open. A value of zero mean an unlimited number of
3482 connections may be made.
3484 Record lock files are used to implement this feature. The lock files
3485 will be stored in the directory specified by the link(bf("lock
3486 directory"))(lockdirectory) option.
3488   bf(Default:)
3489 tt(     max connections = 0)
3491   bf(Example:)
3492 tt(     max connections = 10)
3494 label(maxdisksize)
3495 dit(bf(max disk size (G)))
3497 This option allows you to put an upper limit on the apparent size of
3498 disks. If you set this option to 100 then all shares will appear to be
3499 not larger than 100 MB in size.
3501 Note that this option does not limit the amount of data you can put on
3502 the disk. In the above case you could still store much more than 100
3503 MB on the disk, but if a client ever asks for the amount of free disk
3504 space or the total disk size then the result will be bounded by the
3505 amount specified in bf("max disk size").
3507 This option is primarily useful to work around bugs in some pieces of
3508 software that can't handle very large disks, particularly disks over
3509 1GB in size.
3511 A bf("max disk size") of 0 means no limit.
3513   bf(Default:)
3514 tt(     max disk size = 0)
3516   bf(Example:)
3517 tt(     max disk size = 1000)
3519 label(maxlogsize)
3520 dit(bf(max log size (G)))
3522 This option (an integer in kilobytes) specifies the max size the log
3523 file should grow to. Samba periodically checks the size and if it is
3524 exceeded it will rename the file, adding a tt(".old") extension.
3526 A size of 0 means no limit.
3528   bf(Default:)
3529 tt(     max log size = 5000)
3531   bf(Example:)
3532 tt(     max log size = 1000)
3534 label(maxmux)
3535 dit(bf(max mux (G)))
3537 This option controls the maximum number of outstanding simultaneous
3538 SMB operations that samba tells the client it will allow. You should
3539 never need to set this parameter.
3541   bf(Default:)
3542 tt(     max mux = 50)
3544 label(maxopenfiles)
3545 dit(bf(maxopenfiles (G)))
3547 This parameter limits the maximum number of open files that one
3548 url(bf(smbd))(smbd.8.html) file serving process may have open for
3549 a client at any one time. The default for this parameter is set
3550 very high (10,000) as Samba uses only one bit per unopened file.
3552 The limit of the number of open files is usually set by the
3553 UNIX per-process file descriptor limit rather than this parameter
3554 so you should never need to touch this parameter.
3556   bf(Default:)
3557 tt(     max open files = 10000)
3559 label(maxpacket)
3560 dit(bf(max packet (G)))
3562 Synonym for label(bf("packet size"))(packetsize).
3564 label(maxttl)
3565 dit(bf(max ttl (G)))
3567 This option tells url(bf(nmbd))(nmbd.8.html) what the default 'time
3568 to live' of NetBIOS names should be (in seconds) when
3569 url(bf(nmbd))(nmbd.8.html) is requesting a name using either a
3570 broadcast packet or from a WINS server. You should never need to
3571 change this parameter. The default is 3 days.
3573   bf(Default:)
3574 tt(     max ttl = 259200)
3576 label(maxwinsttl)
3577 dit(bf(max wins ttl (G)))
3579 This option tells url(bf(nmbd))(nmbd.8.html) when acting as a WINS
3580 server link(bf((wins support =true)))(winssupport) what the maximum
3581 'time to live' of NetBIOS names that url(bf(nmbd))(nmbd.8.html) will
3582 grant will be (in seconds). You should never need to change this
3583 parameter.  The default is 6 days (518400 seconds).
3585 See also the link(bf("min wins ttl"))(minwinsttl) parameter.
3587   bf(Default:)
3588 tt(        max wins ttl = 518400)
3590 label(maxxmit)
3591 dit(bf(max xmit (G)))
3593 This option controls the maximum packet size that will be negotiated
3594 by Samba. The default is 65535, which is the maximum. In some cases
3595 you may find you get better performance with a smaller value. A value
3596 below 2048 is likely to cause problems.
3598   bf(Default:)
3599 tt(     max xmit = 65535)
3601   bf(Example:)
3602 tt(     max xmit = 8192)
3604 label(messagecommand)
3605 dit(bf(message command (G)))
3607 This specifies what command to run when the server receives a WinPopup
3608 style message.
3610 This would normally be a command that would deliver the message
3611 somehow. How this is to be done is up to your imagination.
3613 An example is:
3615 tt(   message command = csh -c 'xedit %s;rm %s' &)
3617 This delivers the message using bf(xedit), then removes it
3618 afterwards. em(NOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN
3619 IMMEDIATELY). That's why I have the tt('&') on the end. If it doesn't
3620 return immediately then your PCs may freeze when sending messages
3621 (they should recover after 30secs, hopefully).
3623 All messages are delivered as the global guest user. The command takes
3624 the standard substitutions, although link(bf(%u))(percentu) won't work
3625 (link(bf(%U))(percentU) may be better in this case).
3627 Apart from the standard substitutions, some additional ones apply. In
3628 particular:
3630 startit()
3632 it() tt("%s") = the filename containing the message.
3634 it() tt("%t") = the destination that the message was sent to (probably the server
3635 name).
3637 it() tt("%f") = who the message is from.
3639 endit()
3641 You could make this command send mail, or whatever else takes your
3642 fancy. Please let us know of any really interesting ideas you have.
3644 Here's a way of sending the messages as mail to root:
3646 tt(message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s)
3648 If you don't have a message command then the message won't be
3649 delivered and Samba will tell the sender there was an
3650 error. Unfortunately WfWg totally ignores the error code and carries
3651 on regardless, saying that the message was delivered.
3653 If you want to silently delete it then try:
3655 tt("message command = rm %s").
3657   bf(Default:)
3658 tt(     no message command)
3660   bf(Example:)
3661 tt(        message command = csh -c 'xedit %s;rm %s' &)
3663 label(minprintspace)
3664 dit(bf(min print space (S)))
3666 This sets the minimum amount of free disk space that must be available
3667 before a user will be able to spool a print job. It is specified in
3668 kilobytes. The default is 0, which means a user can always spool a print
3669 job.
3671 See also the link(bf(printing))(printing) parameter.
3673   bf(Default:)
3674 tt(     min print space = 0)
3676   bf(Example:)
3677 tt(     min print space = 2000)
3679 label(minwinsttl)
3680 dit(bf(min wins ttl (G)))
3682 This option tells url(bf(nmbd))(nmbd.8.html) when acting as a WINS
3683 server link(bf((wins support = true)))(winssupport) what the minimum
3684 'time to live' of NetBIOS names that url(bf(nmbd))(nmbd.8.html) will
3685 grant will be (in seconds). You should never need to change this
3686 parameter.  The default is 6 hours (21600 seconds).
3688   bf(Default:)
3689 tt(     min wins ttl = 21600)
3692 label(nameresolveorder)
3693 dit(bf(name resolve order (G)))
3695 This option is used by the programs in the Samba suite to determine
3696 what naming services and in what order to resolve host names to IP
3697 addresses. The option takes a space separated string of different name
3698 resolution options.
3700 The options are :"lmhosts", "host", "wins" and "bcast". They cause
3701 names to be resolved as follows :
3703 startit()
3705 it() bf(lmhosts) : Lookup an IP address in the Samba lmhosts file.
3707 it() bf(host) : Do a standard host name to IP address resolution,
3708 using the system /etc/hosts, NIS, or DNS lookups. This method of name
3709 resolution is operating system depended for instance on IRIX or
3710 Solaris this may be controlled by the em(/etc/nsswitch.conf) file).
3712 it() bf(wins) : Query a name with the IP address listed in the
3713 link(bf(wins server))(winsserver) parameter. If no WINS server has
3714 been specified this method will be ignored.
3716 it() bf(bcast) : Do a broadcast on each of the known local interfaces
3717 listed in the link(bf(interfaces))(interfaces) parameter. This is the
3718 least reliable of the name resolution methods as it depends on the
3719 target host being on a locally connected subnet.
3721 endit()
3723   bf(Default:)
3724 tt(     name resolve order = lmhosts host wins bcast)
3726   bf(Example:)
3727 tt(     name resolve order = lmhosts bcast host)
3729 This will cause the local lmhosts file to be examined first, followed
3730 by a broadcast attempt, followed by a normal system hostname lookup.
3732 label(netbiosaliases)
3733 dit(bf(netbios aliases (G)))
3735 This is a list of NetBIOS names that url(bf(nmbd))(nmbd.8.html) will
3736 advertise as additional names by which the Samba server is known. This
3737 allows one machine to appear in browse lists under multiple names. If
3738 a machine is acting as a link(bf(browse server))(localmaster) or
3739 link(bf(logon server))(domainlogons) none of these names will be
3740 advertised as either browse server or logon servers, only the primary
3741 name of the machine will be advertised with these capabilities.
3743 See also link(bf("netbios name"))(netbiosname).
3745   bf(Default:)
3746 tt(     empty string (no additional names))
3748   bf(Example:)
3749 tt(     netbios aliases = TEST TEST1 TEST2)
3751 label(netbiosname)
3752 dit(bf(netbios name (G)))
3754 This sets the NetBIOS name by which a Samba server is known. By
3755 default it is the same as the first component of the host's DNS name.
3756 If a machine is a link(bf(browse server))(localmaster) or
3757 link(bf(logon server))(domainlogons) this name (or the first component
3758 of the hosts DNS name) will be the name that these services are
3759 advertised under.
3761 See also link(bf("netbios aliases"))(netbiosaliases).
3763   bf(Default:)
3764 tt(     Machine DNS name.)
3766   bf(Example:)
3767 tt(     netbios name = MYNAME)
3769 label(nishomedir)
3770 dit(bf(nis homedir (G)))
3772 Get the home share server from a NIS map. For UNIX systems that use an
3773 automounter, the user's home directory will often be mounted on a
3774 workstation on demand from a remote server. 
3776 When the Samba logon server is not the actual home directory server,
3777 but is mounting the home directories via NFS then two network hops
3778 would be required to access the users home directory if the logon
3779 server told the client to use itself as the SMB server for home
3780 directories (one over SMB and one over NFS). This can be very
3781 slow.
3783 This option allows Samba to return the home share as being on a
3784 different server to the logon server and as long as a Samba daemon is
3785 running on the home directory server, it will be mounted on the Samba
3786 client directly from the directory server. When Samba is returning the
3787 home share to the client, it will consult the NIS map specified in
3788 link(bf("homedir map"))(homedirmap) and return the server listed
3789 there.
3791 Note that for this option to work there must be a working NIS
3792 system and the Samba server with this option must also be a
3793 link(bf(logon server))(domainlogons).
3795   bf(Default:)
3796 tt(     nis homedir = false)
3798   bf(Example:)
3799 tt(     nis homedir = true)
3801 label(ntpipesupport)
3802 dit(bf(nt pipe support (G)))
3804 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
3805 will allow Windows NT clients to connect to the NT SMB specific
3806 tt(IPC$) pipes. This is a developer debugging option and can be left
3807 alone.
3809   bf(Default:)
3810 tt(     nt pipe support = yes)
3812 label(ntsmbsupport)
3813 dit(bf(nt smb support (G)))
3815 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
3816 will negotiate NT specific SMB support with Windows NT
3817 clients. Although this is a developer debugging option and should be
3818 left alone, benchmarking has discovered that Windows NT clients give
3819 faster performance with this option set to tt("no"). This is still
3820 being investigated. If this option is set to tt("no") then Samba
3821 offers exactly the same SMB calls that versions prior to Samba2.0
3822 offered. This information may be of use if any users are having
3823 problems with NT SMB support.
3825   bf(Default:)
3826 tt(     nt support = yes)
3828 label(nullpasswords)
3829 dit(bf(null passwords (G)))
3831 Allow or disallow client access to accounts that have null passwords. 
3833 See also url(bf(smbpasswd (5)))(smbpasswd.5.html).
3835   bf(Default:)
3836 tt(     null passwords = no)
3838   bf(Example:)
3839 tt(     null passwords = yes)
3841 label(olelockingcompatibility)
3842 dit(bf(ole locking compatibility (G)))
3844 This parameter allows an administrator to turn off the byte range lock
3845 manipulation that is done within Samba to give compatibility for OLE
3846 applications. Windows OLE applications use byte range locking as a
3847 form of inter-process communication, by locking ranges of bytes around
3848 the 2^32 region of a file range. This can cause certain UNIX lock
3849 managers to crash or otherwise cause problems. Setting this parameter
3850 to tt("no") means you trust your UNIX lock manager to handle such cases
3851 correctly.
3853   bf(Default:)
3854 tt(     ole locking compatibility = yes)
3856   bf(Example:)
3857 tt(     ole locking compatibility = no)
3859 label(onlyguest)
3860 dit(bf(only guest (S)))
3862 A synonym for link(bf("guest only"))(guestonly).
3864 label(onlyuser)
3865 dit(bf(only user (S)))
3867 This is a boolean option that controls whether connections with
3868 usernames not in the link(bf(user=))(user) list will be allowed. By
3869 default this option is disabled so a client can supply a username to
3870 be used by the server.
3872 Note that this also means Samba won't try to deduce usernames from the
3873 service name. This can be annoying for the link(bf([homes]))(homes)
3874 section. To get around this you could use "link(bf(user))(user) =
3875 link(bf(%S))(percentS)" which means your link(bf("user"))(user) list
3876 will be just the service name, which for home directories is the name
3877 of the user.
3879 See also the link(bf(user))(user) parameter.
3881   bf(Default:)
3882 tt(     only user = False)
3884   bf(Example:)
3885 tt(     only user = True)
3887 label(oplocks)
3888 dit(bf(oplocks (S)))
3890 This boolean option tells smbd whether to issue oplocks (opportunistic
3891 locks) to file open requests on this share. The oplock code can
3892 dramatically (approx. 30% or more) improve the speed of access to files
3893 on Samba servers. It allows the clients to aggressively cache files
3894 locally and you may want to disable this option for unreliable network
3895 environments (it is turned on by default in Windows NT Servers).  For
3896 more information see the file Speed.txt in the Samba docs/ directory.
3898 Oplocks may be selectively turned off on certain files on a per share basis.
3899 See the 'veto oplock files' parameter. On some systems oplocks are recognized
3900 by the underlying operating system. This allows data synchronization between
3901 all access to oplocked files, whether it be via Samba or NFS or a local
3902 UNIX process. See the link(bf(kernel oplocks))(kerneloplocks) parameter
3903 for details.
3905   bf(Default:)
3906 tt(     oplocks = True)
3908   bf(Example:)
3909 tt(     oplocks = False)
3911 label(oslevel)
3912 dit(bf(os level (G)))
3914 This integer value controls what level Samba advertises itself as for
3915 browse elections. The value of this parameter determines whether
3916 url(bf(nmbd))(nmbd.8.html) has a chance of becoming a local master
3917 browser for the link(bf(WORKGROUP))(workgroup) in the local broadcast
3918 area. Setting this to zero will cause url(bf(nmbd))(nmbd.8.html) to
3919 always lose elections to Windows machines. See BROWSING.txt in the
3920 Samba docs/ directory for details.
3922   bf(Default:)
3923 tt(     os level = 32)
3925   bf(Example:)
3926 tt(     os level = 65    ; This will win against any NT Server)
3928 label(packetsize)
3929 dit(bf(packet size (G)))
3931 This is a deprecated parameter that how no effect on the current
3932 Samba code. It is left in the parameter list to prevent breaking
3933 old bf(smb.conf) files.
3935 label(panicaction)
3936 dit(bf(panic action (G)))
3938 This is a Samba developer option that allows a system command to be
3939 called when either url(bf(smbd))(smbd.8.html) or
3940 url(bf(nmbd))(nmbd.8.html) crashes. This is usually used to draw
3941 attention to the fact that a problem occurred.
3943   bf(Default:)
3944 tt(     panic action = <empty string>)
3946 label(passwdchat)
3947 dit(bf(passwd chat (G)))
3949 This string controls the em("chat") conversation that takes places
3950 between url(bf(smbd))(smbd.8.html) and the local password changing
3951 program to change the users password. The string describes a sequence
3952 of response-receive pairs that url(bf(smbd))(smbd.8.html) uses to
3953 determine what to send to the link(bf(passwd))(passwdprogram) program
3954 and what to expect back. If the expected output is not received then
3955 the password is not changed.
3957 This chat sequence is often quite site specific, depending on what
3958 local methods are used for password control (such as NIS etc).
3960 The string can contain the macros tt("%o") and tt("%n") which are
3961 substituted for the old and new passwords respectively. It can also
3962 contain the standard macros tt("\n"), tt("\r"), tt("\t") and tt("\s")
3963 to give line-feed, carriage-return, tab and space.
3965 The string can also contain a tt('*') which matches any sequence of
3966 characters.
3968 Double quotes can be used to collect strings with spaces in them into
3969 a single string.
3971 If the send string in any part of the chat sequence is a fullstop
3972 tt(".")  then no string is sent. Similarly, is the expect string is a
3973 fullstop then no string is expected.
3975 Note that if the link(bf("unix password sync"))(unixpasswordsync)
3976 parameter is set to true, then this sequence is called em(*AS ROOT*)
3977 when the SMB password in the smbpasswd file is being changed, without
3978 access to the old password cleartext. In this case the old password
3979 cleartext is set to tt("") (the empty string).
3981 See also link(bf("unix password sync"))(unixpasswordsync),
3982 link(bf("passwd program"))(passwdprogram) and link(bf("passwd chat
3983 debug"))(passwdchatdebug).
3985   bf(Example:) 
3986 verb( passwd chat = "*Enter OLD password*" %o\n "*Enter NEW password*" %n\n \
3987                        "*Reenter NEW password*" %n\n "*Password changed*"
3990   bf(Default:)
3991 verb(       passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*)
3993 label(passwdchatdebug)
3994 dit(bf(passwd chat debug (G)))
3996 This boolean specifies if the passwd chat script parameter is run in
3997 tt("debug") mode. In this mode the strings passed to and received from
3998 the passwd chat are printed in the url(bf(smbd))(smbd.8.html) log with
3999 a link(bf("debug level"))(debuglevel) of 100. This is a dangerous
4000 option as it will allow plaintext passwords to be seen in the
4001 url(bf(smbd))(smbd.8.html) log. It is available to help Samba admins
4002 debug their link(bf("passwd chat"))(passwdchat) scripts when calling
4003 the link(bf("passwd program"))(passwdprogram) and should be turned off
4004 after this has been done. This parameter is off by default.
4006 See also link(bf("passwd chat"))(passwdchat"), link(bf("passwd
4007 program"))(passwdprogram).
4009   bf(Example:)
4010 tt(     passwd chat debug = True)
4012   bf(Default:)
4013 tt(     passwd chat debug = False)
4015 label(passwdprogram)
4016 dit(bf(passwd program (G)))
4018 The name of a program that can be used to set UNIX user passwords.
4019 Any occurrences of link(bf(%u))(percentu) will be replaced with the
4020 user name. The user name is checked for existence before calling the
4021 password changing program.
4023 Also note that many passwd programs insist in em("reasonable")
4024 passwords, such as a minimum length, or the inclusion of mixed case
4025 chars and digits. This can pose a problem as some clients (such as
4026 Windows for Workgroups) uppercase the password before sending it.
4028 em(Note) that if the link(bf("unix password sync"))(unixpasswordsync)
4029 parameter is set to tt("True") then this program is called em(*AS
4030 ROOT*) before the SMB password in the
4031 url(bf(smbpasswd))(smbpasswd.5.html) file is changed. If this UNIX
4032 password change fails, then url(bf(smbd))(smbd.8.html) will fail to
4033 change the SMB password also (this is by design).
4035 If the link(bf("unix password sync"))(unixpasswordsync) parameter is
4036 set this parameter em(MUST USE ABSOLUTE PATHS) for em(ALL) programs
4037 called, and must be examined for security implications. Note that by
4038 default link(bf("unix password sync"))(unixpasswordsync) is set to
4039 tt("False").
4041 See also link(bf("unix password sync"))(unixpasswordsync).
4043   bf(Default:)
4044 tt(     passwd program = /bin/passwd)
4046   bf(Example:)
4047 tt(     passwd program = /sbin/passwd %u)
4049 label(passwordlevel)
4050 dit(bf(password level (G)))
4052 Some client/server combinations have difficulty with mixed-case
4053 passwords.  One offending client is Windows for Workgroups, which for
4054 some reason forces passwords to upper case when using the LANMAN1
4055 protocol, but leaves them alone when using COREPLUS!
4057 This parameter defines the maximum number of characters that may be
4058 upper case in passwords.
4060 For example, say the password given was tt("FRED"). If bf(password
4061 level) is set to 1, the following combinations would be tried if
4062 tt("FRED") failed:
4064 tt("Fred"), tt("fred"), tt("fRed"), tt("frEd"), tt("freD")
4066 If bf(password level) was set to 2, the following combinations would
4067 also be tried: 
4069 tt("FRed"), tt("FrEd"), tt("FreD"), tt("fREd"), tt("fReD"),
4070 tt("frED"), tt(..)
4072 And so on.
4074 The higher value this parameter is set to the more likely it is that a
4075 mixed case password will be matched against a single case
4076 password. However, you should be aware that use of this parameter
4077 reduces security and increases the time taken to process a new
4078 connection.
4080 A value of zero will cause only two attempts to be made - the password
4081 as is and the password in all-lower case.
4083   bf(Default:)
4084 tt(     password level = 0)
4086   bf(Example:)
4087 tt(     password level = 4)
4089 label(passwordserver)
4090 dit(bf(password server (G)))
4092 By specifying the name of another SMB server (such as a WinNT box)
4093 with this option, and using link(bf("security = domain"))(security) or
4094 link(bf("security = server"))(security) you can get Samba to do all
4095 its username/password validation via a remote server.
4097 This options sets the name of the password server to use. It must be a
4098 NetBIOS name, so if the machine's NetBIOS name is different from its
4099 internet name then you may have to add its NetBIOS name to the lmhosts 
4100 file which is stored in the same directory as the bf(smb.conf) file.
4102 The name of the password server is looked up using the parameter
4103 link(bf("name resolve order="))(nameresolveorder) and so may resolved
4104 by any method and order described in that parameter.
4106 The password server much be a machine capable of using the "LM1.2X002"
4107 or the "LM NT 0.12" protocol, and it must be in user level security
4108 mode. 
4110 NOTE: Using a password server means your UNIX box (running Samba) is
4111 only as secure as your password server. em(DO NOT CHOOSE A PASSWORD
4112 SERVER THAT YOU DON'T COMPLETELY TRUST).
4114 Never point a Samba server at itself for password serving. This will
4115 cause a loop and could lock up your Samba server!
4117 The name of the password server takes the standard substitutions, but
4118 probably the only useful one is link(bf(%m))(percentm), which means
4119 the Samba server will use the incoming client as the password
4120 server. If you use this then you better trust your clients, and you
4121 better restrict them with hosts allow!
4123 If the link(bf("security"))(security) parameter is set to
4124 bf("domain"), then the list of machines in this option must be a list
4125 of Primary or Backup Domain controllers for the
4126 link(bf(Domain))(workgroup), as the Samba server is cryptographicly
4127 in that domain, and will use cryptographicly authenticated RPC calls
4128 to authenticate the user logging on. The advantage of using
4129 link(bf("security=domain"))(securityequaldomain) is that if you list
4130 several hosts in the bf("password server") option then
4131 url(bf(smbd))(smbd.8.html) will try each in turn till it finds one
4132 that responds. This is useful in case your primary server goes down.
4134 If the link(bf("security"))(security) parameter is set to
4135 link(bf("server"))(securityequalserver), then there are different
4136 restrictions that link(bf("security=domain"))(securityequaldomain)
4137 doesn't suffer from:
4139 startit()
4141 it() You may list several password servers in the bf("password server")
4142 parameter, however if an url(bf(smbd))(smbd.8.html) makes a connection
4143 to a password server, and then the password server fails, no more
4144 users will be able to be authenticated from this
4145 url(bf(smbd))(smbd.8.html).  This is a restriction of the SMB/CIFS
4146 protocol when in link(bf("security=server"))(securityequalserver) mode
4147 and cannot be fixed in Samba.
4149 it() If you are using a Windows NT server as your password server then
4150 you will have to ensure that your users are able to login from the
4151 Samba server, as when in
4152 link(bf("security=server"))(securityequalserver) mode the network
4153 logon will appear to come from there rather than from the users
4154 workstation.
4156 endit()
4158 See also the link(bf("security"))(security) parameter.
4160   bf(Default:)
4161 tt(     password server = <empty string>)
4163   bf(Example:)
4164 tt(     password server = NT-PDC, NT-BDC1, NT-BDC2)
4166 label(path)
4167 dit(bf(path (S)))
4169 This parameter specifies a directory to which the user of the service
4170 is to be given access. In the case of printable services, this is
4171 where print data will spool prior to being submitted to the host for
4172 printing.
4174 For a printable service offering guest access, the service should be
4175 readonly and the path should be world-writeable and have the sticky bit
4176 set. This is not mandatory of course, but you probably won't get the
4177 results you expect if you do otherwise.
4179 Any occurrences of link(bf(%u))(percentu) in the path will be replaced
4180 with the UNIX username that the client is using on this
4181 connection. Any occurrences of link(bf(%m))(percentm) will be replaced
4182 by the NetBIOS name of the machine they are connecting from. These
4183 replacements are very useful for setting up pseudo home directories
4184 for users.
4186 Note that this path will be based on link(bf("root dir"))(rootdir) if
4187 one was specified.
4189   bf(Default:)
4190 tt(     none)
4192   bf(Example:)
4193 tt(     path = /home/fred)
4195 label(postexec)
4196 dit(bf(postexec (S)))
4198 This option specifies a command to be run whenever the service is
4199 disconnected. It takes the usual substitutions. The command may be run
4200 as the root on some systems.
4202 An interesting example may be do unmount server resources:
4204 tt(postexec = /etc/umount /cdrom)
4206 See also link(bf(preexec))(preexec).
4208   bf(Default:)
4209 tt(      none (no command executed))
4211   bf(Example:)
4212 tt(      postexec = echo "%u disconnected from %S from %m (%I)" >> /tmp/log)
4214 label(postscript)
4215 dit(bf(postscript (S)))
4217 This parameter forces a printer to interpret the print files as
4218 postscript. This is done by adding a tt(%!) to the start of print output.
4220 This is most useful when you have lots of PCs that persist in putting
4221 a control-D at the start of print jobs, which then confuses your
4222 printer.
4224   bf(Default:)
4225 tt(     postscript = False)
4227   bf(Example:)
4228 tt(     postscript = True)
4230 label(preexec)
4231 dit(bf(preexec (S)))
4233 This option specifies a command to be run whenever the service is
4234 connected to. It takes the usual substitutions.
4236 An interesting example is to send the users a welcome message every
4237 time they log in. Maybe a message of the day? Here is an example:
4239 verb(
4240         preexec = csh -c 'echo \"Welcome to %S!\" | \
4241                 /usr/local/samba/bin/smbclient -M %m -I %I' &
4244 Of course, this could get annoying after a while :-)
4246 See also link(bf(postexec))(postexec).
4248   bf(Default:)
4249 tt(     none (no command executed))
4251   bf(Example:)
4252 tt(        preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log)
4254 label(preferredmaster)
4255 dit(bf(preferred master (G)))
4257 This boolean parameter controls if url(bf(nmbd))(nmbd.8.html) is a
4258 preferred master browser for its workgroup.
4260 If this is set to true, on startup, url(bf(nmbd))(nmbd.8.html) will
4261 force an election, and it will have a slight advantage in winning the
4262 election.  It is recommended that this parameter is used in
4263 conjunction with link(bf("domain master = yes"))(domainmaster), so
4264 that url(bf(nmbd))(nmbd.8.html) can guarantee becoming a domain
4265 master. Indeed the default ("auto") enables "preferred master" if
4266 Samba is configured as the domain master browser.
4268 Use this option with caution, because if there are several hosts
4269 (whether Samba servers, Windows 95 or NT) that are preferred master
4270 browsers on the same subnet, they will each periodically and
4271 continuously attempt to become the local master browser.  This will
4272 result in unnecessary broadcast traffic and reduced browsing
4273 capabilities.
4275 See also link(bf(os level))(oslevel).
4277   bf(Default:)
4278 tt(     preferred master = auto)
4280   bf(Example:)
4281 tt(     preferred master = yes)
4283 label(preferedmaster)
4284 dit(bf(prefered master (G)))
4286 Synonym for link(bf("preferred master"))(preferredmaster) for people
4287 who cannot spell :-).
4289 label(preload)
4290 dit(bf(preload))
4291 Synonym for link(bf("auto services"))(autoservices).
4293 label(preservecase)
4294 dit(bf(preserve case (S)))
4296 This controls if new filenames are created with the case that the
4297 client passes, or if they are forced to be the tt("default") case.
4299   bf(Default:)
4300 tt(       preserve case = yes)
4302 See the section on link(bf("NAME MANGLING"))(NAMEMANGLING) for a
4303 fuller discussion.
4305 label(printcommand)
4306 dit(bf(print command (S)))
4308 After a print job has finished spooling to a service, this command
4309 will be used via a tt(system()) call to process the spool
4310 file. Typically the command specified will submit the spool file to
4311 the host's printing subsystem, but there is no requirement that this
4312 be the case. The server will not remove the spool file, so whatever
4313 command you specify should remove the spool file when it has been
4314 processed, otherwise you will need to manually remove old spool files.
4316 The print command is simply a text string. It will be used verbatim,
4317 with two exceptions: All occurrences of tt("%s") will be replaced by
4318 the appropriate spool file name, and all occurrences of tt("%p") will
4319 be replaced by the appropriate printer name. The spool file name is
4320 generated automatically by the server, the printer name is discussed
4321 below.
4323 The full path name will be used for the filename if tt("%s") is not
4324 preceded by a tt('/'). If you don't like this (it can stuff up some
4325 lpq output) then use tt("%f") instead. Any occurrences of tt("%f") get
4326 replaced by the spool filename without the full path at the front.
4328 The print command em(MUST) contain at least one occurrence of tt("%s")
4329 or tt("%f") - the tt("%p") is optional. At the time a job is
4330 submitted, if no printer name is supplied the tt("%p") will be
4331 silently removed from the printer command.
4333 If specified in the link(bf("[global]"))(global) section, the print
4334 command given will be used for any printable service that does not
4335 have its own print command specified.
4337 If there is neither a specified print command for a printable service
4338 nor a global print command, spool files will be created but not
4339 processed and (most importantly) not removed.
4341 Note that printing may fail on some UNIXs from the tt("nobody")
4342 account. If this happens then create an alternative guest account that
4343 can print and set the link(bf("guest account"))(guestaccount) in the
4344 link(bf("[global]"))(global) section.
4346 You can form quite complex print commands by realizing that they are
4347 just passed to a shell. For example the following will log a print
4348 job, print the file, then remove it. Note that tt(';') is the usual
4349 separator for command in shell scripts.
4351 tt(print command = echo Printing %s >> /tmp/print.log; lpr -P %p %s; rm %s)
4353 You may have to vary this command considerably depending on how you
4354 normally print files on your system. The default for the parameter
4355 varies depending on the setting of the link(bf("printing="))(printing)
4356 parameter.
4358   bf(Default:)
4359         For link(bf("printing="))(printing) BSD, AIX, QNX, LPRNG or PLP :
4360 tt(     print command = lpr -r -P%p %s)
4362         For link(bf("printing="))(printing) SYS or HPUX :
4363 tt(     print command = lp -c -d%p %s; rm %s)
4365         For link(bf("printing="))(printing) SOFTQ :
4366 tt(     print command = lp -d%p -s %s; rm %s)
4368   bf(Example:)
4369 tt(     print command = /usr/local/samba/bin/myprintscript %p %s)
4371 label(printok)
4372 dit(bf(print ok (S)))
4374 Synonym for link(bf(printable))(printable).
4376 label(printable)
4377 dit(bf(printable (S)))
4379 If this parameter is tt("yes"), then clients may open, write to and
4380 submit spool files on the directory specified for the service.
4382 Note that a printable service will ALWAYS allow writing to the service
4383 path (user privileges permitting) via the spooling of print data. The
4384 link(bf("read only"))(readonly) parameter controls only non-printing
4385 access to the resource.
4387   bf(Default:)
4388 tt(     printable = no)
4390   bf(Example:)
4391 tt(     printable = yes)
4393 label(printcap)
4394 dit(bf(printcap (G)))
4396 Synonym for link(bf(printcapname))(printcapname).
4398 label(printcapname)
4399 dit(bf(printcap name (G)))
4401 This parameter may be used to override the compiled-in default
4402 printcap name used by the server (usually /etc/printcap). See the
4403 discussion of the link(bf([printers]))(printers) section above for
4404 reasons why you might want to do this.
4406 On System V systems that use bf(lpstat) to list available printers you
4407 can use tt("printcap name = lpstat") to automatically obtain lists of
4408 available printers. This is the default for systems that define SYSV
4409 at configure time in Samba (this includes most System V based
4410 systems). If bf("printcap name") is set to bf(lpstat) on these systems
4411 then Samba will launch tt("lpstat -v") and attempt to parse the output
4412 to obtain a printer list.
4414 A minimal printcap file would look something like this:
4416 verb(
4417         print1|My Printer 1
4418         print2|My Printer 2
4419         print3|My Printer 3
4420         print4|My Printer 4
4421         print5|My Printer 5
4424 where the tt('|') separates aliases of a printer. The fact that the
4425 second alias has a space in it gives a hint to Samba that it's a
4426 comment.
4428 em(NOTE): Under AIX the default printcap name is
4429 tt("/etc/qconfig"). Samba will assume the file is in AIX tt("qconfig")
4430 format if the string tt("/qconfig") appears in the printcap filename.
4432   bf(Default:)
4433 tt(     printcap name = /etc/printcap)
4435   bf(Example:)
4436 tt(     printcap name = /etc/myprintcap)
4438 label(printer)
4439 dit(bf(printer (S)))
4441 This parameter specifies the name of the printer to which print jobs
4442 spooled through a printable service will be sent.
4444 If specified in the link(bf([global]))(global) section, the printer
4445 name given will be used for any printable service that does not have
4446 its own printer name specified.
4448   bf(Default:)
4449         none (but may be tt("lp") on many systems)
4451   bf(Example:)
4452         printer name = laserwriter
4454 label(printerdriver)
4455 dit(bf(printer driver (S)))
4457 This option allows you to control the string that clients receive when
4458 they ask the server for the printer driver associated with a
4459 printer. If you are using Windows95 or WindowsNT then you can use this
4460 to automate the setup of printers on your system.
4462 You need to set this parameter to the exact string (case sensitive)
4463 that describes the appropriate printer driver for your system. If you
4464 don't know the exact string to use then you should first try with no
4465 bf("printer driver") option set and the client will give you a list of
4466 printer drivers. The appropriate strings are shown in a scrollbox
4467 after you have chosen the printer manufacturer.
4469 See also link(bf("printer driver file"))(printerdriverfile).
4471   bf(Example:)
4472         printer driver = HP LaserJet 4L
4474 label(printerdriverfile)
4475 dit(bf(printer driver file (G)))
4477 This parameter tells Samba where the printer driver definition file,
4478 used when serving drivers to Windows 95 clients, is to be found. If
4479 this is not set, the default is :
4481 tt(SAMBA_INSTALL_DIRECTORY/lib/printers.def)
4483 This file is created from Windows 95 tt("msprint.def") files found on
4484 the Windows 95 client system. For more details on setting up serving
4485 of printer drivers to Windows 95 clients, see the documentation file
4486 in the docs/ directory, PRINTER_DRIVER.txt.
4488   bf(Default:)
4489 tt(     None (set in compile).)
4491   bf(Example:)
4492 tt(     printer driver file = /usr/local/samba/printers/drivers.def)
4494 See also link(bf("printer driver location"))(printerdriverlocation).
4496 label(printerdriverlocation)
4497 dit(bf(printer driver location (S)))
4499 This parameter tells clients of a particular printer share where to
4500 find the printer driver files for the automatic installation of
4501 drivers for Windows 95 machines. If Samba is set up to serve printer
4502 drivers to Windows 95 machines, this should be set to
4504 tt(\\MACHINE\PRINTER$)
4506 Where MACHINE is the NetBIOS name of your Samba server, and PRINTER$
4507 is a share you set up for serving printer driver files. For more
4508 details on setting this up see the documentation file in the docs/
4509 directory, PRINTER_DRIVER.txt.
4511   bf(Default:)
4512 tt(     None)
4514   bf(Example:)
4515 tt(     printer driver location = \\MACHINE\PRINTER$)
4517 See also link(bf("printer driver file"))(printerdriverfile).
4519 label(printername)
4520 dit(bf(printer name (S)))
4522 Synonym for link(bf(printer))(printer).
4524 label(printing)
4525 dit(bf(printing (S)))
4527 This parameters controls how printer status information is interpreted
4528 on your system, and also affects the default values for the
4529 link(bf("print command"))(printcommand), link(bf("lpq
4530 command"))(lpqcommand) link(bf("lppause command"))(lppausecommand),
4531 link(bf("lpresume command"))(lpresumecommand), and link(bf("lprm
4532 command"))(lprmcommand).
4534 Currently eight printing styles are supported. They are
4535 bf("printing=BSD"), bf("printing=AIX"), bf("printing=LPRNG"),
4536 bf("printing=PLP"),
4537 bf("printing=SYSV"),bf("printing="HPUX"),bf("printing=QNX") and
4538 bf("printing=SOFTQ").
4540 To see what the defaults are for the other print commands when using
4541 these three options use the url(bf("testparm"))(testparm.1.html) program.
4543 This option can be set on a per printer basis
4545 See also the discussion in the link(bf([printers]))(printers) section.
4547 label(protocol)
4548 dit(bf(protocol (G)))
4550 The value of the parameter (a string) is the highest protocol level
4551 that will be supported by the server.
4553 Possible values are :
4555 startit()
4557 it() CORE: Earliest version. No concept of user names.
4559 it() COREPLUS: Slight improvements on CORE for efficiency.
4561 it() LANMAN1: First em("modern") version of the protocol. Long
4562 filename support.
4564 it() LANMAN2: Updates to Lanman1 protocol.
4566 it() NT1: Current up to date version of the protocol. Used by Windows
4567 NT. Known as CIFS.
4569 endit()
4571 Normally this option should not be set as the automatic negotiation
4572 phase in the SMB protocol takes care of choosing the appropriate
4573 protocol.
4575   bf(Default:)
4576 tt(     protocol = NT1)
4578   bf(Example:)
4579 tt(     protocol = LANMAN1)
4581 label(public)
4582 dit(bf(public (S)))
4584 Synonym for link(bf("guest ok"))(guestok).
4586 label(queuepausecommand)
4587 dit(bf(queuepause command (S)))
4589 This parameter specifies the command to be executed on the server host
4590 in order to pause the printerqueue.
4592 This command should be a program or script which takes a printer name
4593 as its only parameter and stops the printerqueue, such that no longer
4594 jobs are submitted to the printer.
4596 This command is not supported by Windows for Workgroups, but can be
4597 issued from the Printer's window under Windows 95 & NT.
4599 If a tt("%p") is given then the printername is put in its
4600 place. Otherwise it is placed at the end of the command.
4602 Note that it is good practice to include the absolute path in the
4603 command as the PATH may not be available to the server.
4605   bf(Default:)
4606 tt(        depends on the setting of "printing =")
4608   bf(Example:)
4609 tt(      queuepause command = disable %p)
4611 label(queueresumecommand)
4612 dit(bf(queueresume command (S)))
4614 This parameter specifies the command to be executed on the server host
4615 in order to resume the printerqueue. It is the command to undo the
4616 behavior that is caused by the previous parameter
4617 (link(bf("queuepause command))(queuepausecommand)).
4619 This command should be a program or script which takes a printer name
4620 as its only parameter and resumes the printerqueue, such that queued
4621 jobs are resubmitted to the printer.
4623 This command is not supported by Windows for Workgroups, but can be
4624 issued from the Printer's window under Windows 95 & NT.
4626 If a tt("%p") is given then the printername is put in its
4627 place. Otherwise it is placed at the end of the command.
4629 Note that it is good practice to include the absolute path in the
4630 command as the PATH may not be available to the server.
4632   bf(Default:)
4633 tt(        depends on the setting of "printing =")
4635   bf(Example:)
4636 tt(      queuepause command = enable %p)
4638 label(read bmpx)
4639 dit(bf(read bmpx (G)))
4641 This boolean parameter controls whether url(bf(smbd))(smbd.8.html)
4642 will support the "Read Block Multiplex" SMB. This is now rarely used
4643 and defaults to off. You should never need to set this parameter.
4645   bf(Default:)
4646         read bmpx = No
4648 label(readlist)
4649 dit(bf(read list (S)))
4651 This is a list of users that are given read-only access to a
4652 service. If the connecting user is in this list then they will not be
4653 given write access, no matter what the link(bf("read only"))(readonly)
4654 option is set to. The list can include group names using the syntax
4655 described in the link(bf("invalid users"))(invalidusers) parameter.
4657 See also the link(bf("write list"))(writelist) parameter and
4658 the link(bf("invalid users"))(invalidusers) parameter.
4660   bf(Default:)
4661 tt(     read list = <empty string>)
4663   bf(Example:)
4664 tt(     read list = mary, @students)
4666 label(readonly)
4667 dit(bf(read only (S)))
4669 Note that this is an inverted synonym for
4670 link(bf("writeable"))(writeable) and link(bf("write ok"))(writeok).
4672 See also link(bf("writeable"))(writeable) and link(bf("write
4673 ok"))(writeok).
4675 label(readprediction)
4676 dit(bf(read prediction (G)))
4678 em(NOTE): This code is currently disabled in Samba2.0 and
4679 may be removed at a later date. Hence this parameter has
4680 no effect.
4682 This options enables or disables the read prediction code used to
4683 speed up reads from the server. When enabled the server will try to
4684 pre-read data from the last accessed file that was opened read-only
4685 while waiting for packets.
4687   bf(Default:)
4688 tt(     read prediction = False)
4690 label(readraw)
4691 dit(bf(read raw (G)))
4693 This parameter controls whether or not the server will support the raw
4694 read SMB requests when transferring data to clients.
4696 If enabled, raw reads allow reads of 65535 bytes in one packet. This
4697 typically provides a major performance benefit.
4699 However, some clients either negotiate the allowable block size
4700 incorrectly or are incapable of supporting larger block sizes, and for
4701 these clients you may need to disable raw reads.
4703 In general this parameter should be viewed as a system tuning tool and left
4704 severely alone. See also link(bf("write raw"))(writeraw).
4706   bf(Default:)
4707 tt(     read raw = yes)
4709 label(readsize)
4710 dit(bf(read size (G)))
4712 The option bf("read size") affects the overlap of disk reads/writes
4713 with network reads/writes. If the amount of data being transferred in
4714 several of the SMB commands (currently SMBwrite, SMBwriteX and
4715 SMBreadbraw) is larger than this value then the server begins writing
4716 the data before it has received the whole packet from the network, or
4717 in the case of SMBreadbraw, it begins writing to the network before
4718 all the data has been read from disk.
4720 This overlapping works best when the speeds of disk and network access
4721 are similar, having very little effect when the speed of one is much
4722 greater than the other.
4724 The default value is 2048, but very little experimentation has been
4725 done yet to determine the optimal value, and it is likely that the
4726 best value will vary greatly between systems anyway. A value over
4727 65536 is pointless and will cause you to allocate memory
4728 unnecessarily.
4730   bf(Default:)
4731 tt(     read size = 2048)
4733   bf(Example:)
4734 tt(     read size = 8192)
4736 label(remoteannounce)
4737 dit(bf(remote announce (G)))
4739 This option allows you to setup url(bf(nmbd))(nmbd.8.html) to
4740 periodically announce itself to arbitrary IP addresses with an
4741 arbitrary workgroup name.
4743 This is useful if you want your Samba server to appear in a remote
4744 workgroup for which the normal browse propagation rules don't
4745 work. The remote workgroup can be anywhere that you can send IP
4746 packets to.
4748 For example:
4750 tt(     remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF)
4752 the above line would cause nmbd to announce itself to the two given IP
4753 addresses using the given workgroup names. If you leave out the
4754 workgroup name then the one given in the
4755 link(bf("workgroup"))(workgroup) parameter is used instead.
4757 The IP addresses you choose would normally be the broadcast addresses
4758 of the remote networks, but can also be the IP addresses of known
4759 browse masters if your network config is that stable.
4761 See the documentation file BROWSING.txt in the docs/ directory.
4763   bf(Default:)
4764 tt(     remote announce = <empty string>)
4766   bf(Example:)
4767 tt(     remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF)
4769 label(remotebrowsesync)
4770 dit(bf(remote browse sync (G)))
4772 This option allows you to setup url(bf(nmbd))(nmbd.8.html) to
4773 periodically request synchronization of browse lists with the master
4774 browser of a samba server that is on a remote segment. This option
4775 will allow you to gain browse lists for multiple workgroups across
4776 routed networks. This is done in a manner that does not work with any
4777 non-samba servers.
4779 This is useful if you want your Samba server and all local clients to
4780 appear in a remote workgroup for which the normal browse propagation
4781 rules don't work. The remote workgroup can be anywhere that you can
4782 send IP packets to.
4784 For example:
4786 tt(     remote browse sync = 192.168.2.255 192.168.4.255)
4788 the above line would cause url(bf(nmbd))(nmbd.8.html) to request the
4789 master browser on the specified subnets or addresses to synchronize
4790 their browse lists with the local server.
4792 The IP addresses you choose would normally be the broadcast addresses
4793 of the remote networks, but can also be the IP addresses of known
4794 browse masters if your network config is that stable. If a machine IP
4795 address is given Samba makes NO attempt to validate that the remote
4796 machine is available, is listening, nor that it is in fact the browse
4797 master on it's segment.
4799   bf(Default:)
4800 tt(     remote browse sync = <empty string>)
4802   bf(Example:)
4803 tt(     remote browse sync = 192.168.2.255 192.168.4.255)
4805 label(revalidate)
4806 dit(bf(revalidate (S)))
4808 Note that this option only works with
4809 link(bf("security=share"))(securityequalshare) and will be ignored if
4810 this is not the case.
4812 This option controls whether Samba will allow a previously validated
4813 username/password pair to be used to attach to a share. Thus if you
4814 connect to tt(\\server\share1) then to tt(\\server\share2) it won't
4815 automatically allow the client to request connection to the second
4816 share as the same username as the first without a password.
4818 If bf("revalidate") is tt("True") then the client will be denied
4819 automatic access as the same username.
4821   bf(Default:)
4822 tt(     revalidate = False)
4824   bf(Example:)
4825 tt(     revalidate = True)
4827 label(root)
4828 dit(bf(root (G)))
4830 Synonym for link(bf("root directory"))(rootdirectory).
4832 label(rootdir)
4833 dit(bf(root dir (G)))
4835 Synonym for link(bf("root directory"))(rootdirectory).
4837 label(rootdirectory)
4838 dit(bf(root directory (G)))
4840 The server will tt("chroot()") (i.e. Change it's root directory) to
4841 this directory on startup. This is not strictly necessary for secure
4842 operation. Even without it the server will deny access to files not in
4843 one of the service entries. It may also check for, and deny access to,
4844 soft links to other parts of the filesystem, or attempts to use
4845 tt("..") in file names to access other directories (depending on the
4846 setting of the link(bf("wide links"))(widelinks) parameter).
4848 Adding a bf("root directory") entry other than tt("/") adds an extra
4849 level of security, but at a price. It absolutely ensures that no
4850 access is given to files not in the sub-tree specified in the bf("root
4851 directory") option, em(*including*) some files needed for complete
4852 operation of the server. To maintain full operability of the server
4853 you will need to mirror some system files into the bf("root
4854 directory") tree. In particular you will need to mirror /etc/passwd
4855 (or a subset of it), and any binaries or configuration files needed
4856 for printing (if required). The set of files that must be mirrored is
4857 operating system dependent.
4859   bf(Default:)
4860 tt(     root directory = /)
4862 bf(Example:)
4863 tt(     root directory = /homes/smb)
4865 label(rootpostexec)
4866 dit(bf(root postexec (S)))
4868 This is the same as the link(bf("postexec"))(postexec) parameter
4869 except that the command is run as root. This is useful for unmounting
4870 filesystems (such as cdroms) after a connection is closed.
4872 See also link(bf("postexec"))(postexec).
4874 label(rootpreexec)
4875 dit(bf(root preexec (S)))
4877 This is the same as the link(bf("preexec"))(preexec) parameter except
4878 that the command is run as root. This is useful for mounting
4879 filesystems (such as cdroms) before a connection is finalized.
4881 See also link(bf("preexec"))(preexec).
4883 label(security)
4884 dit(bf(security (G)))
4886 This option affects how clients respond to Samba and is one of the most
4887 important settings in the bf(smb.conf) file.
4889 The option sets the tt("security mode bit") in replies to protocol
4890 negotiations with url(bf(smbd))(smbd.8.html) to turn share level
4891 security on or off. Clients decide based on this bit whether (and how)
4892 to transfer user and password information to the server.
4894 The default is link("security=user")(securityequaluser), as this is
4895 the most common setting needed when talking to Windows 98 and Windows
4898 The alternatives are link(bf("security = share"))(securityequalshare),
4899 link(bf("security = server"))(securityequalserver) or
4900 link(bf("security=domain"))(securityequaldomain).
4902 em(*****NOTE THAT THIS DEFAULT IS DIFFERENT IN SAMBA2.0 THAN FOR
4903 PREVIOUS VERSIONS OF SAMBA *******).
4905 In previous versions of Samba the default was
4906 link(bf("security=share"))(securityequalshare) mainly because that was
4907 the only option at one stage.
4909 There is a bug in WfWg that has relevance to this setting. When in
4910 user or server level security a WfWg client will totally ignore the
4911 password you type in the "connect drive" dialog box. This makes it
4912 very difficult (if not impossible) to connect to a Samba service as
4913 anyone except the user that you are logged into WfWg as.
4915 If your PCs use usernames that are the same as their usernames on the
4916 UNIX machine then you will want to use bf("security = user"). If you
4917 mostly use usernames that don't exist on the UNIX box then use
4918 bf("security = share").
4920 You should also use link(bf(security=share))(securityequalshare) if
4921 you want to mainly setup shares without a password (guest
4922 shares). This is commonly used for a shared printer server. It is more
4923 difficult to setup guest shares with
4924 link(bf(security=user))(securityequaluser), see the link(bf("map to
4925 guest"))(maptoguest)parameter for details.
4927 It is possible to use url(bf(smbd))(smbd.8.html) in a em("hybrid
4928 mode") where it is offers both user and share level security under
4929 different link(bf(NetBIOS aliases))(netbiosaliases). See the
4930 link(bf(NetBIOS aliases))(netbiosaliases) and the
4931 link(bf(include))(include) parameters for more information.
4933 The different settings will now be explained.
4935 startdit()
4937 label(securityequalshare)
4938 dit(bf("security=share")) When clients connect to a share level
4939 security server then need not log onto the server with a valid
4940 username and password before attempting to connect to a shared
4941 resource (although modern clients such as Windows 95/98 and Windows NT
4942 will send a logon request with a username but no password when talking
4943 to a bf(security=share) server). Instead, the clients send
4944 authentication information (passwords) on a per-share basis, at the
4945 time they attempt to connect to that share.
4947 Note that url(bf(smbd))(smbd.8.html) em(*ALWAYS*) uses a valid UNIX
4948 user to act on behalf of the client, even in bf("security=share")
4949 level security.
4951 As clients are not required to send a username to the server
4952 in share level security, url(bf(smbd))(smbd.8.html) uses several
4953 techniques to determine the correct UNIX user to use on behalf
4954 of the client.
4956 A list of possible UNIX usernames to match with the given
4957 client password is constructed using the following methods :
4959 startit()
4961 it() If the link(bf("guest only"))(guestonly) parameter is set, then
4962 all the other stages are missed and only the link(bf("guest
4963 account"))(guestaccount) username is checked.
4965 it() Is a username is sent with the share connection request, then
4966 this username (after mapping - see link(bf("username
4967 map"))(usernamemap)), is added as a potential username.
4969 it() If the client did a previous em("logon") request (the
4970 SessionSetup SMB call) then the username sent in this SMB
4971 will be added as a potential username.
4973 it() The name of the service the client requested is added
4974 as a potential username.
4976 it() The NetBIOS name of the client is added to the list as a
4977 potential username.
4979 it() Any users on the link(bf("user"))(user) list are added
4980 as potential usernames.
4982 endit()
4984 If the link(bf("guest only"))(guestonly) parameter is not set, then
4985 this list is then tried with the supplied password. The first user for
4986 whom the password matches will be used as the UNIX user.
4988 If the link(bf("guest only"))(guestonly) parameter is set, or no
4989 username can be determined then if the share is marked as available to
4990 the link(bf("guest account"))(guestaccount), then this guest user will
4991 be used, otherwise access is denied.
4993 Note that it can be em(*very*) confusing in share-level security as to
4994 which UNIX username will eventually be used in granting access.
4996 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
4997 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
4999 label(securityequaluser)
5000 dit(bf("security=user"))
5002 This is the default security setting in Samba2.0. With user-level
5003 security a client must first tt("log-on") with a valid username and
5004 password (which can be mapped using the link(bf("username
5005 map"))(usernamemap) parameter). Encrypted passwords (see the
5006 link(bf("encrypted passwords"))(encryptpasswords) parameter) can also
5007 be used in this security mode. Parameters such as
5008 link(bf("user"))(user) and link(bf("guest only"))(guestonly), if set
5009 are then applied and may change the UNIX user to use on this
5010 connection, but only after the user has been successfully
5011 authenticated.
5013 em(Note) that the name of the resource being requested is
5014 em(*not*) sent to the server until after the server has successfully
5015 authenticated the client. This is why guest shares don't work in user
5016 level security without allowing the server to automatically map unknown
5017 users into the link(bf("guest account"))(guestaccount). See the
5018 link(bf("map to guest"))(maptoguest) parameter for details on
5019 doing this.
5021 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5022 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5024 label(securityequalserver)
5025 dit(bf("security=server"))
5027 In this mode Samba will try to validate the username/password by
5028 passing it to another SMB server, such as an NT box. If this fails it
5029 will revert to bf("security = user"), but note that if encrypted
5030 passwords have been negotiated then Samba cannot revert back to
5031 checking the UNIX password file, it must have a valid smbpasswd file
5032 to check users against. See the documentation file in the docs/
5033 directory ENCRYPTION.txt for details on how to set this up.
5035 em(Note) that from the clients point of view bf("security=server") is
5036 the same as link(bf("security=user"))(securityequaluser). It only
5037 affects how the server deals with the authentication, it does not in
5038 any way affect what the client sees.
5040 em(Note) that the name of the resource being requested is
5041 em(*not*) sent to the server until after the server has successfully
5042 authenticated the client. This is why guest shares don't work in server
5043 level security without allowing the server to automatically map unknown
5044 users into the link(bf("guest account"))(guestaccount). See the
5045 link(bf("map to guest"))(maptoguest) parameter for details on
5046 doing this.
5048 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5049 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5051 See also the link(bf("password server"))(passwordserver) parameter.
5052 and the link(bf("encrypted passwords"))(encryptpasswords) parameter.
5054 label(securityequaldomain)
5055 dit(bf("security=domain"))
5057 This mode will only work correctly if
5058 url(bf(smbpasswd))(smbpasswd.8.html) has been used to add this machine
5059 into a Windows NT Domain. It expects the link(bf("encrypted
5060 passwords"))(encryptpasswords) parameter to be set to tt("true"). In
5061 this mode Samba will try to validate the username/password by passing
5062 it to a Windows NT Primary or Backup Domain Controller, in exactly the
5063 same way that a Windows NT Server would do.
5065 em(Note) that a valid UNIX user must still exist as well as the
5066 account on the Domain Controller to allow Samba to have a valid
5067 UNIX account to map file access to.
5069 em(Note) that from the clients point of view bf("security=domain") is
5070 the same as link(bf("security=user"))(securityequaluser). It only
5071 affects how the server deals with the authentication, it does not in
5072 any way affect what the client sees.
5074 em(Note) that the name of the resource being requested is
5075 em(*not*) sent to the server until after the server has successfully
5076 authenticated the client. This is why guest shares don't work in domain
5077 level security without allowing the server to automatically map unknown
5078 users into the link(bf("guest account"))(guestaccount). See the
5079 link(bf("map to guest"))(maptoguest) parameter for details on
5080 doing this.
5082 e,(BUG:) There is currently a bug in the implementation of
5083 bf("security=domain) with respect to multi-byte character
5084 set usernames. The communication with a Domain Controller
5085 must be done in UNICODE and Samba currently does not widen
5086 multi-byte user names to UNICODE correctly, thus a multi-byte
5087 username will not be recognized correctly at the Domain Controller.
5088 This issue will be addressed in a future release.
5090 See also the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5091 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION).
5093 See also the link(bf("password server"))(passwordserver) parameter.
5094 and the link(bf("encrypted passwords"))(encryptpasswords) parameter.
5096 enddit()
5098   bf(Default:)
5099 tt(     security = USER)
5101   bf(Example:)
5102 tt(     security = DOMAIN)
5104 label(serverstring)
5105 dit(bf(server string (G)))
5107 This controls what string will show up in the printer comment box in
5108 print manager and next to the IPC connection in tt("net view"). It can be
5109 any string that you wish to show to your users.
5111 It also sets what will appear in browse lists next to the machine
5112 name.
5114 A tt("%v") will be replaced with the Samba version number.
5116 A tt("%h") will be replaced with the hostname.
5118   bf(Default:)
5119 tt(     server string = Samba %v)
5121   bf(Example:)
5122 tt(     server string = University of GNUs Samba Server)
5124 label(setdirectory)
5125 dit(bf(set directory (S)))
5127 If tt("set directory = no"), then users of the service may not use the
5128 setdir command to change directory.
5130 The setdir command is only implemented in the Digital Pathworks
5131 client. See the Pathworks documentation for details.
5133   bf(Default:)
5134 tt(     set directory = no)
5136   bf(Example:)
5137 tt(     set directory = yes)
5139 label(sharemodes)
5140 dit(bf(share modes (S)))
5142 This enables or disables the honoring of the tt("share modes") during a
5143 file open. These modes are used by clients to gain exclusive read or
5144 write access to a file.
5146 These open modes are not directly supported by UNIX, so they are
5147 simulated using shared memory, or lock files if your UNIX doesn't
5148 support shared memory (almost all do).
5150 The share modes that are enabled by this option are DENY_DOS,
5151 DENY_ALL, DENY_READ, DENY_WRITE, DENY_NONE and DENY_FCB.
5153 This option gives full share compatibility and enabled by default.
5155 You should em(*NEVER*) turn this parameter off as many Windows
5156 applications will break if you do so.
5158   bf(Default:)
5159 tt(     share modes = yes)
5161 label(sharedmemsize)
5162 dit(bf(shared mem size (G)))
5164 It specifies the size of the shared memory (in bytes) to use between
5165 url(bf(smbd))(smbd.8.html) processes. This parameter defaults to one
5166 megabyte of shared memory. It is possible that if you have a large
5167 server with many files open simultaneously that you may need to
5168 increase this parameter. Signs that this parameter is set too low are
5169 users reporting strange problems trying to save files (locking errors)
5170 and error messages in the smbd log looking like tt("ERROR
5171 smb_shm_alloc : alloc of XX bytes failed").
5173   bf(Default:)
5174 tt(     shared mem size = 1048576)
5176   bf(Example:)
5177 tt(     shared mem size = 5242880 ; Set to 5mb for a large number of files.)
5179 label(shortpreservecase)
5180 dit(bf(short preserve case (S)))
5182 This boolean parameter controls if new files which conform to 8.3
5183 syntax, that is all in upper case and of suitable length, are created
5184 upper case, or if they are forced to be the tt("default") case. This
5185 option can be use with link(bf("preserve case
5186 =yes"))(preservecaseoption) to permit long filenames to retain their
5187 case, while short names are lowered. Default em(Yes).
5189 See the section on link(bf(NAME MANGLING))(NAMEMANGLING).
5191   bf(Default:)
5192 tt(     short preserve case = yes)
5194 label(smbpasswdfile)
5195 dit(bf(smb passwd file (G)))
5197 This option sets the path to the encrypted smbpasswd file.  By default
5198 the path to the smbpasswd file is compiled into Samba.
5200   bf(Default:)
5201 tt(     smb passwd file= <compiled default>)
5203   bf(Example:)
5204 tt(     smb passwd file = /usr/samba/private/smbpasswd)
5206 label(smbrun)
5207 dit(bf(smbrun (G)))
5209 This sets the full path to the bf(smbrun) binary. This defaults to the
5210 value in the Makefile.
5212 You must get this path right for many services to work correctly.
5214 You should not need to change this parameter so long as Samba
5215 is installed correctly.
5217   bf(Default:)
5218 tt(     smbrun=<compiled default>)
5220   bf(Example:)
5221 tt(     smbrun = /usr/local/samba/bin/smbrun)
5223 label(socketaddress)
5224 dit(bf(socket address (G)))
5226 This option allows you to control what address Samba will listen for
5227 connections on. This is used to support multiple virtual interfaces on
5228 the one server, each with a different configuration.
5230 By default samba will accept connections on any address.
5232   bf(Example:)
5233 tt(     socket address = 192.168.2.20)
5235 label(socketoptions)
5236 dit(bf(socket options (G)))
5238 This option allows you to set socket options to be used when talking
5239 with the client.
5241 Socket options are controls on the networking layer of the operating
5242 systems which allow the connection to be tuned.
5244 This option will typically be used to tune your Samba server for
5245 optimal performance for your local network. There is no way that Samba
5246 can know what the optimal parameters are for your net, so you must
5247 experiment and choose them yourself. We strongly suggest you read the
5248 appropriate documentation for your operating system first (perhaps
5249 bf("man setsockopt") will help).
5251 You may find that on some systems Samba will say "Unknown socket
5252 option" when you supply an option. This means you either incorrectly 
5253 typed it or you need to add an include file to includes.h for your OS. 
5254 If the latter is the case please send the patch to
5255 email(samba-bugs@samba.org).
5257 Any of the supported socket options may be combined in any way you
5258 like, as long as your OS allows it.
5260 This is the list of socket options currently settable using this
5261 option:
5263 startit()
5265 it() SO_KEEPALIVE
5267 it() SO_REUSEADDR
5269 it() SO_BROADCAST
5271 it() TCP_NODELAY
5273 it() IPTOS_LOWDELAY
5275 it() IPTOS_THROUGHPUT
5277 it() SO_SNDBUF *
5279 it() SO_RCVBUF *
5281 it() SO_SNDLOWAT *
5283 it() SO_RCVLOWAT *
5285 endit()
5287 Those marked with a tt(*) take an integer argument. The others can
5288 optionally take a 1 or 0 argument to enable or disable the option, by
5289 default they will be enabled if you don't specify 1 or 0.
5291 To specify an argument use the syntax SOME_OPTION=VALUE for example
5292 tt(SO_SNDBUF=8192). Note that you must not have any spaces before or after
5293 the = sign.
5295 If you are on a local network then a sensible option might be
5297 tt(socket options = IPTOS_LOWDELAY)
5299 If you have a local network then you could try:
5301 tt(socket options = IPTOS_LOWDELAY TCP_NODELAY)
5303 If you are on a wide area network then perhaps try setting
5304 IPTOS_THROUGHPUT. 
5306 Note that several of the options may cause your Samba server to fail
5307 completely. Use these options with caution!
5309   bf(Default:)
5310 tt(     socket options = TCP_NODELAY)
5312   bf(Example:)
5313 tt(     socket options = IPTOS_LOWDELAY)
5315 label(ssl)
5316 dit(bf(ssl (G)))
5318 This variable is part of SSL-enabled Samba. This is only available if
5319 the SSL libraries have been compiled on your system and the configure
5320 option tt("--with-ssl") was given at configure time.
5322 em(Note) that for export control reasons this code is em(**NOT**)
5323 enabled by default in any current binary version of Samba.
5325 This variable enables or disables the entire SSL mode. If it is set to
5326 "no", the SSL enabled samba behaves exactly like the non-SSL samba. If
5327 set to "yes", it depends on the variables link(bf("ssl
5328 hosts"))(sslhosts) and link(bf("ssl hosts resign"))(sslhostsresign)
5329 whether an SSL connection will be required.
5331   bf(Default:)
5332 tt(     ssl=no)
5333   bf(Example:)
5334 tt(     ssl=yes)
5336 label(sslCAcertDir)
5337 dit(bf(ssl CA certDir (G)))
5339 This variable is part of SSL-enabled Samba. This is only available if
5340 the SSL libraries have been compiled on your system and the configure
5341 option tt("--with-ssl") was given at configure time.
5343 em(Note) that for export control reasons this code is em(**NOT**)
5344 enabled by default in any current binary version of Samba.
5346 This variable defines where to look up the Certification
5347 Authorities. The given directory should contain one file for each CA
5348 that samba will trust.  The file name must be the hash value over the
5349 "Distinguished Name" of the CA. How this directory is set up is
5350 explained later in this document. All files within the directory that
5351 don't fit into this naming scheme are ignored. You don't need this
5352 variable if you don't verify client certificates.
5354   bf(Default:)
5355 tt(     ssl CA certDir = /usr/local/ssl/certs)
5357 label(sslCAcertFile)
5358 dit(bf(ssl CA certFile (G)))
5360 This variable is part of SSL-enabled Samba. This is only available if
5361 the SSL libraries have been compiled on your system and the configure
5362 option tt("--with-ssl") was given at configure time.
5364 em(Note) that for export control reasons this code is em(**NOT**)
5365 enabled by default in any current binary version of Samba.
5367 This variable is a second way to define the trusted CAs. The
5368 certificates of the trusted CAs are collected in one big file and this
5369 variable points to the file. You will probably only use one of the two
5370 ways to define your CAs. The first choice is preferable if you have
5371 many CAs or want to be flexible, the second is preferable if you only
5372 have one CA and want to keep things simple (you won't need to create
5373 the hashed file names). You don't need this variable if you don't
5374 verify client certificates.
5376   bf(Default:)
5377 tt(     ssl CA certFile = /usr/local/ssl/certs/trustedCAs.pem)
5379 label(sslciphers)
5380 dit(bf(ssl ciphers (G)))
5382 This variable is part of SSL-enabled Samba. This is only available if
5383 the SSL libraries have been compiled on your system and the configure
5384 option tt("--with-ssl") was given at configure time.
5386 em(Note) that for export control reasons this code is em(**NOT**)
5387 enabled by default in any current binary version of Samba.
5389 This variable defines the ciphers that should be offered during SSL
5390 negotiation. You should not set this variable unless you know what you
5391 are doing.
5393 label(sslclientcert)
5394 dit(bf(ssl client cert (G)))
5396 This variable is part of SSL-enabled Samba. This is only available if
5397 the SSL libraries have been compiled on your system and the configure
5398 option tt("--with-ssl") was given at configure time.
5400 em(Note) that for export control reasons this code is em(**NOT**)
5401 enabled by default in any current binary version of Samba.
5403 The certificate in this file is used by
5404 url(bf(smbclient))(smbclient.1.html) if it exists. It's needed if the
5405 server requires a client certificate.
5407   bf(Default:)
5408 tt(     ssl client cert = /usr/local/ssl/certs/smbclient.pem)
5410 label(sslclientkey)
5411 dit(bf(ssl client key (G)))
5413 This variable is part of SSL-enabled Samba. This is only available if
5414 the SSL libraries have been compiled on your system and the configure
5415 option tt("--with-ssl") was given at configure time.
5417 em(Note) that for export control reasons this code is em(**NOT**)
5418 enabled by default in any current binary version of Samba.
5420 This is the private key for url(bf(smbclient))(smbclient.1.html). It's
5421 only needed if the client should have a certificate.
5423   bf(Default:)
5424 tt(     ssl client key = /usr/local/ssl/private/smbclient.pem)
5426 label(sslcompatibility)
5427 dit(bf(ssl compatibility (G)))
5429 This variable is part of SSL-enabled Samba. This is only available if
5430 the SSL libraries have been compiled on your system and the configure
5431 option tt("--with-ssl") was given at configure time.
5433 em(Note) that for export control reasons this code is em(**NOT**)
5434 enabled by default in any current binary version of Samba.
5436 This variable defines whether SSLeay should be configured for bug
5437 compatibility with other SSL implementations. This is probably not
5438 desirable because currently no clients with SSL implementations other
5439 than SSLeay exist.
5441   bf(Default:)
5442 tt(     ssl compatibility = no)
5444 label(sslhosts)
5445 dit(bf(ssl hosts (G)))
5447 See link(bf("ssl hosts resign"))(sslhostsresign).
5449 label(sslhostsresign)
5450 dit(bf(ssl hosts resign (G)))
5452 This variable is part of SSL-enabled Samba. This is only available if
5453 the SSL libraries have been compiled on your system and the configure
5454 option tt("--with-ssl") was given at configure time.
5456 em(Note) that for export control reasons this code is em(**NOT**)
5457 enabled by default in any current binary version of Samba.
5459 These two variables define whether samba will go into SSL mode or
5460 not. If none of them is defined, samba will allow only SSL
5461 connections. If the link(bf("ssl hosts"))(sslhosts) variable lists
5462 hosts (by IP-address, IP-address range, net group or name), only these
5463 hosts will be forced into SSL mode. If the bf("ssl hosts resign")
5464 variable lists hosts, only these hosts will NOT be forced into SSL
5465 mode. The syntax for these two variables is the same as for the
5466 link(bf("hosts allow"))(hostsallow) and link(bf("hosts
5467 deny"))(hostsdeny) pair of variables, only that the subject of the
5468 decision is different: It's not the access right but whether SSL is
5469 used or not. See the link(bf("allow hosts"))(allowhosts) parameter for
5470 details. The example below requires SSL connections from all hosts
5471 outside the local net (which is 192.168.*.*).
5473   bf(Default:)
5474 tt(     ssl hosts = <empty string>)
5475 tt(     ssl hosts resign = <empty string>)
5477   bf(Example:)
5478 tt(     ssl hosts resign = 192.168.)
5480 label(sslrequireclientcert)
5481 dit(bf(ssl require clientcert (G)))
5483 This variable is part of SSL-enabled Samba. This is only available if
5484 the SSL libraries have been compiled on your system and the configure
5485 option tt("--with-ssl") was given at configure time.
5487 em(Note) that for export control reasons this code is em(**NOT**)
5488 enabled by default in any current binary version of Samba.
5490 If this variable is set to tt("yes"), the server will not tolerate
5491 connections from clients that don't have a valid certificate. The
5492 directory/file given in link(bf("ssl CA certDir"))(sslCAcertDir) and
5493 link(bf("ssl CA certFile"))(sslCAcertFile) will be used to look up the
5494 CAs that issued the client's certificate. If the certificate can't be
5495 verified positively, the connection will be terminated.  If this
5496 variable is set to tt("no"), clients don't need certificates. Contrary
5497 to web applications you really em(*should*) require client
5498 certificates. In the web environment the client's data is sensitive
5499 (credit card numbers) and the server must prove to be trustworthy. In
5500 a file server environment the server's data will be sensitive and the
5501 clients must prove to be trustworthy.
5503   bf(Default:)
5504 tt(     ssl require clientcert = no)
5506 label(sslrequireservercert)
5507 dit(bf(ssl require servercert (G)))
5509 This variable is part of SSL-enabled Samba. This is only available if
5510 the SSL libraries have been compiled on your system and the configure
5511 option tt("--with-ssl") was given at configure time.
5513 em(Note) that for export control reasons this code is em(**NOT**)
5514 enabled by default in any current binary version of Samba.
5516 If this variable is set to tt("yes"), the
5517 url(bf(smbclient))(smbclient.1.html) will request a certificate from
5518 the server. Same as link(bf("ssl require
5519 clientcert"))(sslrequireclientcert) for the server.
5521   bf(Default:)
5522 tt(     ssl require servercert = no)
5524 label(sslservercert)
5525 dit(bf(ssl server cert (G)))
5527 This variable is part of SSL-enabled Samba. This is only available if
5528 the SSL libraries have been compiled on your system and the configure
5529 option tt("--with-ssl") was given at configure time.
5531 em(Note) that for export control reasons this code is em(**NOT**)
5532 enabled by default in any current binary version of Samba.
5534 This is the file containing the server's certificate. The server _must_
5535 have a certificate. The file may also contain the server's private key.
5536 See later for how certificates and private keys are created.
5538   bf(Default:)
5539 tt(     ssl server cert = <empty string>)
5541 label(sslserverkey)
5542 dit(bf(ssl server key (G)))
5544 This variable is part of SSL-enabled Samba. This is only available if
5545 the SSL libraries have been compiled on your system and the configure
5546 option tt("--with-ssl") was given at configure time.
5548 em(Note) that for export control reasons this code is em(**NOT**)
5549 enabled by default in any current binary version of Samba.
5551 This file contains the private key of the server. If this variable is
5552 not defined, the key is looked up in the certificate file (it may be
5553 appended to the certificate). The server em(*must*) have a private key
5554 and the certificate em(*must*) match this private key.
5556   bf(Default:)
5557 tt(     ssl server key = <empty string>)
5559 label(sslversion)
5560 dit(bf(ssl version (G)))
5562 This variable is part of SSL-enabled Samba. This is only available if
5563 the SSL libraries have been compiled on your system and the configure
5564 option tt("--with-ssl") was given at configure time.
5566 em(Note) that for export control reasons this code is em(**NOT**)
5567 enabled by default in any current binary version of Samba.
5569 This enumeration variable defines the versions of the SSL protocol
5570 that will be used. tt("ssl2or3") allows dynamic negotiation of SSL v2
5571 or v3, tt("ssl2") results in SSL v2, tt("ssl3") results in SSL v3 and
5572 "tls1" results in TLS v1. TLS (Transport Layer Security) is the
5573 (proposed?) new standard for SSL.
5575   bf(Default:)
5576 tt(     ssl version = "ssl2or3")
5578 label(statcache)
5579 dit(bf(stat cache (G)))
5581 This parameter determines if url(bf(smbd))(smbd.8.html) will use a
5582 cache in order to speed up case insensitive name mappings. You should
5583 never need to change this parameter.
5585   bf(Default:)
5586 tt(     stat cache = yes)
5588 label(statcachesize)
5589 dit(bf(stat cache size (G)))
5591 This parameter determines the number of entries in the link(bf(stat
5592 cache))(statcache).  You should never need to change this parameter.
5594   bf(Default:)
5595 tt(     stat cache size = 50)
5597 label(status)
5598 dit(bf(status (G)))
5600 This enables or disables logging of connections to a status file that
5601 url(bf(smbstatus))(smbstatus.1.html) can read.
5603 With this disabled url(bf(smbstatus))(smbstatus.1.html) won't be able
5604 to tell you what connections are active. You should never need to
5605 change this parameter.
5607   bf(Default:)
5608         status = yes
5610 label(strictlocking)
5611 dit(bf(strict locking (S)))
5613 This is a boolean that controls the handling of file locking in the
5614 server. When this is set to tt("yes") the server will check every read and
5615 write access for file locks, and deny access if locks exist. This can
5616 be slow on some systems.
5618 When strict locking is tt("no") the server does file lock checks only
5619 when the client explicitly asks for them.
5621 Well behaved clients always ask for lock checks when it is important,
5622 so in the vast majority of cases bf("strict locking = no") is
5623 preferable.
5625   bf(Default:)
5626 tt(     strict locking = no)
5628   bf(Example:)
5629 tt(     strict locking = yes)
5631 label(strictsync)
5632 dit(bf(strict sync (S)))
5634 Many Windows applications (including the Windows 98 explorer shell)
5635 seem to confuse flushing buffer contents to disk with doing a sync to
5636 disk. Under UNIX, a sync call forces the process to be suspended until
5637 the kernel has ensured that all outstanding data in kernel disk
5638 buffers has been safely stored onto stable storage. This is very slow
5639 and should only be done rarely. Setting this parameter to "no" (the
5640 default) means that smbd ignores the Windows applications requests for
5641 a sync call. There is only a possibility of losing data if the
5642 operating system itself that Samba is running on crashes, so there is
5643 little danger in this default setting. In addition, this fixes many
5644 performance problems that people have reported with the new Windows98
5645 explorer shell file copies.
5647 See also the link(bf("sync always"))(syncalways) parameter.
5649   bf(Default:)
5650 tt(     strict sync = no)
5652   bf(Example:)
5653 tt(     strict sync = yes)
5655 label(stripdot)
5656 dit(bf(strip dot (G)))
5658 This is a boolean that controls whether to strip trailing dots off
5659 UNIX filenames. This helps with some CDROMs that have filenames ending
5660 in a single dot.
5662   bf(Default:)
5663 tt(     strip dot = no)
5665   bf(Example:)
5666 tt(     strip dot = yes)
5668 label(syncalways)
5669 dit(bf(sync always (S)))
5671 This is a boolean parameter that controls whether writes will always
5672 be written to stable storage before the write call returns. If this is
5673 false then the server will be guided by the client's request in each
5674 write call (clients can set a bit indicating that a particular write
5675 should be synchronous). If this is true then every write will be
5676 followed by a fsync() call to ensure the data is written to disk.
5677 Note that the link(bf("strict sync"))(strictsync) parameter must be
5678 set to tt("yes") in order for this parameter to have any affect.
5680 See also the link(bf("strict sync"))(strictsync) parameter.
5682   bf(Default:)
5683 tt(     sync always = no)
5685   bf(Example:)
5686 tt(     sync always = yes)
5688 label(syslog)
5689 dit(bf(syslog (G)))
5691 This parameter maps how Samba debug messages are logged onto the
5692 system syslog logging levels. Samba debug level zero maps onto syslog
5693 LOG_ERR, debug level one maps onto LOG_WARNING, debug level two maps
5694 to LOG_NOTICE, debug level three maps onto LOG_INFO.  The parameter
5695 sets the threshold for doing the mapping, all Samba debug messages
5696 above this threshold are mapped to syslog LOG_DEBUG messages.
5698   bf(Default:)
5699 tt(     syslog = 1)
5701 label(syslogonly)
5702 dit(bf(syslog only (G)))
5704 If this parameter is set then Samba debug messages are logged into the
5705 system syslog only, and not to the debug log files.
5707   bf(Default:)
5708 tt(     syslog only = no)
5710 label(timeoffset)
5711 dit(bf(time offset (G)))
5713 This parameter is a setting in minutes to add to the normal GMT to
5714 local time conversion. This is useful if you are serving a lot of PCs
5715 that have incorrect daylight saving time handling.
5717   bf(Default:)
5718 tt(     time offset = 0)
5720   bf(Example:)
5721 tt(     time offset = 60)
5723 label(timeserver)
5725 dit(bf(time server (G)))
5727 This parameter determines if url(bf(nmbd))(nmbd.8.html) advertises
5728 itself as a time server to Windows clients. The default is False.
5730   bf(Default:)
5731 tt(     time server = False)
5733   bf(Example:)
5734 tt(     time server = True)
5736 label(timestamplogs)
5737 dit(bf(timestamp logs (G)))
5739 Samba2.0 will a timestamps to all log entries by default. This
5740 can be distracting if you are attempting to debug a problem. This
5741 parameter allows the timestamping to be turned off.
5743   bf(Default:)
5744 tt(     timestamp logs = True)
5746   bf(Example:)
5747 tt(     timestamp logs = False)
5749 label(unixpasswordsync)
5750 dit(bf(unix password sync (G)))
5752 This boolean parameter controls whether Samba attempts to synchronize
5753 the UNIX password with the SMB password when the encrypted SMB
5754 password in the smbpasswd file is changed. If this is set to true the
5755 program specified in the link(bf("passwd program"))(passwdprogram)
5756 parameter is called em(*AS ROOT*) - to allow the new UNIX password to be
5757 set without access to the old UNIX password (as the SMB password has
5758 change code has no access to the old password cleartext, only the
5759 new). By default this is set to tt("false").
5761 See also link(bf("passwd program"))(passwdprogram), link(bf("passwd
5762 chat"))(passwdchat).
5764   bf(Default:)
5765 tt(     unix password sync = False)
5767   bf(Example:)
5768 tt(     unix password sync = True)
5770 label(unixrealname)
5771 dit(bf(unix realname (G)))
5773 This boolean parameter when set causes samba to supply the real name
5774 field from the unix password file to the client. This is useful for
5775 setting up mail clients and WWW browsers on systems used by more than
5776 one person.
5778   bf(Default:)
5779 tt(     unix realname = no)
5781   bf(Example:)
5782 tt(     unix realname = yes)
5784 label(updateencrypted)
5785 dit(bf(update encrypted (G)))
5787 This boolean parameter allows a user logging on with a plaintext
5788 password to have their encrypted (hashed) password in the smbpasswd
5789 file to be updated automatically as they log on. This option allows a
5790 site to migrate from plaintext password authentication (users
5791 authenticate with plaintext password over the wire, and are checked
5792 against a UNIX account database) to encrypted password authentication
5793 (the SMB challenge/response authentication mechanism) without forcing
5794 all users to re-enter their passwords via smbpasswd at the time the
5795 change is made. This is a convenience option to allow the change over
5796 to encrypted passwords to be made over a longer period. Once all users
5797 have encrypted representations of their passwords in the smbpasswd
5798 file this parameter should be set to tt("off").
5800 In order for this parameter to work correctly the link(bf("encrypt
5801 passwords"))(encryptpasswords) parameter must be set to tt("no") when
5802 this parameter is set to tt("yes").
5804 Note that even when this parameter is set a user authenticating to
5805 smbd must still enter a valid password in order to connect correctly,
5806 and to update their hashed (smbpasswd) passwords.
5808   bf(Default:)
5809 tt(     update encrypted = no)
5811   bf(Example:)
5812 tt(     update encrypted = yes)
5814 label(userhosts)
5815 dit(bf(use rhosts (G)))
5817 If this global parameter is a true, it specifies that the UNIX users
5818 tt(".rhosts") file in their home directory will be read to find the
5819 names of hosts and users who will be allowed access without specifying
5820 a password.
5822 NOTE: The use of bf(use rhosts) can be a major security hole. This is
5823 because you are trusting the PC to supply the correct username. It is
5824 very easy to get a PC to supply a false username. I recommend that the
5825 bf(use rhosts) option be only used if you really know what you are
5826 doing.
5828   bf(Default:)
5829 tt(     use rhosts = no)
5831   bf(Example:)
5832 tt(     use rhosts = yes)
5834 label(user)
5835 dit(bf(user (S)))
5837 Synonym for link(bf("username"))(username).
5839 label(users)
5840 dit(bf(users (S)))
5842 Synonym for link(bf("username"))(username).
5844 label(username)
5845 dit(bf(username (S)))
5847 Multiple users may be specified in a comma-delimited list, in which
5848 case the supplied password will be tested against each username in
5849 turn (left to right).
5851 The bf(username=) line is needed only when the PC is unable to supply
5852 its own username. This is the case for the COREPLUS protocol or where
5853 your users have different WfWg usernames to UNIX usernames. In both
5854 these cases you may also be better using the tt(\\server\share%user)
5855 syntax instead.
5857 The bf(username=) line is not a great solution in many cases as it
5858 means Samba will try to validate the supplied password against each of
5859 the usernames in the username= line in turn. This is slow and a bad
5860 idea for lots of users in case of duplicate passwords. You may get
5861 timeouts or security breaches using this parameter unwisely.
5863 Samba relies on the underlying UNIX security. This parameter does not
5864 restrict who can login, it just offers hints to the Samba server as to
5865 what usernames might correspond to the supplied password. Users can
5866 login as whoever they please and they will be able to do no more
5867 damage than if they started a telnet session. The daemon runs as the
5868 user that they log in as, so they cannot do anything that user cannot
5871 To restrict a service to a particular set of users you can use the
5872 link(bf("valid users="))(validusers) parameter.
5874 If any of the usernames begin with a tt('@') then the name will be
5875 looked up first in the yp netgroups list (if Samba is compiled with
5876 netgroup support), followed by a lookup in the UNIX groups database
5877 and will expand to a list of all users in the group of that name.
5879 If any of the usernames begin with a tt('+') then the name will be
5880 looked up only in the UNIX groups database and will expand to a list
5881 of all users in the group of that name.
5883 If any of the usernames begin with a tt('&') then the name will be
5884 looked up only in the yp netgroups database (if Samba is compiled with
5885 netgroup support) and will expand to a list of all users in the
5886 netgroup group of that name.
5888 Note that searching though a groups database can take quite some time,
5889 and some clients may time out during the search.
5891 See the section link(bf("NOTE ABOUT USERNAME/PASSWORD
5892 VALIDATION"))(NOTEABOUTUSERNAMEPASSWORDVALIDATION) for more
5893 information on how this parameter determines access to the services.
5895   bf(Default:)
5896 tt(     The guest account if a guest service, else the name of the service.)
5898   bf(Examples:)
5899 verb(
5900         username = fred
5901         username = fred, mary, jack, jane, @users, @pcgroup
5904 label(usernamelevel)
5905 dit(bf(username level (G)))
5907 This option helps Samba to try and 'guess' at the real UNIX username,
5908 as many DOS clients send an all-uppercase username. By default Samba
5909 tries all lowercase, followed by the username with the first letter
5910 capitalized, and fails if the username is not found on the UNIX
5911 machine.
5913 If this parameter is set to non-zero the behavior changes. This
5914 parameter is a number that specifies the number of uppercase
5915 combinations to try whilst trying to determine the UNIX user name. The
5916 higher the number the more combinations will be tried, but the slower
5917 the discovery of usernames will be. Use this parameter when you have
5918 strange usernames on your UNIX machine, such as tt("AstrangeUser").
5920   bf(Default:)
5921 tt(     username level = 0)
5923   bf(Example:)
5924 tt(     username level = 5)
5926 label(usernamemap)
5927 dit(bf(username map (G)))
5929 This option allows you to specify a file containing a mapping of
5930 usernames from the clients to the server. This can be used for several
5931 purposes. The most common is to map usernames that users use on DOS or
5932 Windows machines to those that the UNIX box uses. The other is to map
5933 multiple users to a single username so that they can more easily share
5934 files.
5936 The use of this option, therefore, relates to UNIX usernames
5937 and not Windows (specifically NT Domain) usernames.  In other words,
5938 once a name has been mapped using this option, the Samba server uses
5939 the mapped name for internal em(AND) external purposes.
5941 This option is em(DIFFERENT) from the link(bf("domain user map"))(domainusermap) 
5942 parameter, which maintains a one-to-one mapping between UNIX usernames
5943 and NT Domain Usernames: more specifically, the Samba server maintains
5944 a link between em(BOTH) usernames, presenting the NT username to the
5945 external NT world, and using the UNIX username internally.
5947 The map file is parsed line by line. Each line should contain a single
5948 UNIX username on the left then a tt('=') followed by a list of
5949 usernames on the right. The list of usernames on the right may contain
5950 names of the form @group in which case they will match any UNIX
5951 username in that group. The special client name tt('*') is a wildcard
5952 and matches any name. Each line of the map file may be up to 1023
5953 characters long.
5955 The file is processed on each line by taking the supplied username and
5956 comparing it with each username on the right hand side of the tt('=')
5957 signs. If the supplied name matches any of the names on the right hand
5958 side then it is replaced with the name on the left. Processing then
5959 continues with the next line.
5961 If any line begins with a tt('#') or a tt(';') then it is ignored
5963 If any line begins with an tt('!') then the processing will stop after
5964 that line if a mapping was done by the line. Otherwise mapping
5965 continues with every line being processed. Using tt('!') is most
5966 useful when you have a wildcard mapping line later in the file.
5968 For example to map from the name tt("admin") or tt("administrator") to
5969 the UNIX name tt("root") you would use:
5972 tt(     root = admin administrator)
5974 Or to map anyone in the UNIX group tt("system") to the UNIX name
5975 tt("sys") you would use:
5977 tt(     sys = @system)
5979 You can have as many mappings as you like in a username map file.
5981 If your system supports the NIS NETGROUP option then the netgroup
5982 database is checked before the tt(/etc/group) database for matching
5983 groups.
5985 You can map Windows usernames that have spaces in them by using double
5986 quotes around the name. For example:
5988 tt(     tridge = "Andrew Tridgell")
5990 would map the windows username tt("Andrew Tridgell") to the unix
5991 username tridge.
5993 The following example would map mary and fred to the unix user sys,
5994 and map the rest to guest. Note the use of the tt('!') to tell Samba
5995 to stop processing if it gets a match on that line.
5997 verb(
5998         !sys = mary fred
5999         guest = *
6002 Note that the remapping is applied to all occurrences of
6003 usernames. Thus if you connect to tt("\\server\fred") and tt("fred")
6004 is remapped to tt("mary") then you will actually be connecting to
6005 tt("\\server\mary") and will need to supply a password suitable for
6006 tt("mary") not tt("fred"). The only exception to this is the username
6007 passed to the link(bf("password server"))(passwordserver) (if you have
6008 one). The password server will receive whatever username the client
6009 supplies without modification.
6011 Also note that no reverse mapping is done. The main effect this has is
6012 with printing. Users who have been mapped may have trouble deleting
6013 print jobs as PrintManager under WfWg will think they don't own the
6014 print job.
6016   bf(Default:)
6017 tt(     no username map)
6019   bf(Example:)
6020 tt(     username map = /usr/local/samba/lib/users.map)
6022 label(validchars)
6023 dit(bf(valid chars (S)))
6025 The option allows you to specify additional characters that should be
6026 considered valid by the server in filenames. This is particularly
6027 useful for national character sets, such as adding u-umlaut or a-ring.
6029 The option takes a list of characters in either integer or character
6030 form with spaces between them. If you give two characters with a colon
6031 between them then it will be taken as an lowercase:uppercase pair.
6033 If you have an editor capable of entering the characters into the
6034 config file then it is probably easiest to use this method. Otherwise
6035 you can specify the characters in octal, decimal or hexadecimal form
6036 using the usual C notation.
6038 For example to add the single character tt('Z') to the charset (which
6039 is a pointless thing to do as it's already there) you could do one of
6040 the following
6042 verb(
6043         valid chars = Z
6044         valid chars = z:Z
6045         valid chars = 0132:0172
6048 The last two examples above actually add two characters, and alter the
6049 uppercase and lowercase mappings appropriately.
6051 Note that you MUST specify this parameter after the link(bf("client
6052 code page"))(clientcodepage) parameter if you have both set. If
6053 link(bf("client code page"))(clientcodepage) is set after the
6054 bf("valid chars") parameter the bf("valid chars") settings will be
6055 overwritten.
6057 See also the link(bf("client code page"))(clientcodepage) parameter.
6059   bf(Default:)
6060 verb(
6061         Samba defaults to using a reasonable set of valid characters
6062         for English systems
6065   bf(Example)
6066 tt(     valid chars = 0345:0305 0366:0326 0344:0304)
6068 The above example allows filenames to have the Swedish characters in
6069 them.
6071 NOTE: It is actually quite difficult to correctly produce a bf("valid
6072 chars") line for a particular system. To automate the process
6073 email(tino@augsburg.net) has written a package called bf("validchars")
6074 which will automatically produce a complete bf("valid chars") line for
6075 a given client system. Look in the examples/validchars/ subdirectory
6076 of your Samba source code distribution for this package.
6078 label(validusers)
6079 dit(bf(valid users (S)))
6081 This is a list of users that should be allowed to login to this
6082 service. Names starting with tt('@'), tt('+') and tt('&') are
6083 interpreted using the same rules as described in the link(bf("invalid
6084 users"))(invalidusers) parameter.
6086 If this is empty (the default) then any user can login. If a username
6087 is in both this list and the link(bf("invalid users"))(invalidusers)
6088 list then access is denied for that user.
6090 The current servicename is substituted for
6091 link(bf("%S"))(percentS). This is useful in the
6092 link(bf([homes]))(homes) section.
6094 See also link(bf("invalid users"))(invalidusers).
6096   bf(Default:)
6097 tt(     No valid users list. (anyone can login))
6099   bf(Example:)
6100 tt(     valid users = greg, @pcusers)
6102 label(vetofiles)
6103 dit(bf(veto files(S)))
6105 This is a list of files and directories that are neither visible nor
6106 accessible.  Each entry in the list must be separated by a tt('/'),
6107 which allows spaces to be included in the entry. tt('*') and tt('?') 
6108 can be used to specify multiple files or directories as in DOS
6109 wildcards.
6111 Each entry must be a unix path, not a DOS path and must em(*not*) include the 
6112 unix directory separator tt('/').
6114 Note that the link(bf("case sensitive"))(casesensitive) option is
6115 applicable in vetoing files.
6117 One feature of the veto files parameter that it is important to be
6118 aware of, is that if a directory contains nothing but files that match
6119 the veto files parameter (which means that Windows/DOS clients cannot
6120 ever see them) is deleted, the veto files within that directory *are
6121 automatically deleted* along with it, if the user has UNIX permissions
6122 to do so.
6124 Setting this parameter will affect the performance of Samba, as it
6125 will be forced to check all files and directories for a match as they
6126 are scanned.
6128 See also link(bf("hide files"))(hidefiles) and link(bf("case
6129 sensitive"))(casesensitive).
6131   bf(Default:)
6132 tt(     No files or directories are vetoed.)
6134   bf(Examples:)
6136     Example 1.
6138 verb(
6140     Veto any files containing the word Security, 
6141     any ending in .tmp, and any directory containing the
6142     word root.
6144         veto files = /*Security*/*.tmp/*root*/
6147     Example 2.
6149 verb(
6150     Veto the Apple specific files that a NetAtalk server
6151     creates.
6153     veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
6156 label(vetooplockfiles)
6157 dit(bf(veto oplock files (S)))
6159 This parameter is only valid when the link(bf("oplocks"))(oplocks)
6160 parameter is turned on for a share. It allows the Samba administrator
6161 to selectively turn off the granting of oplocks on selected files that
6162 match a wildcarded list, similar to the wildcarded list used in the
6163 link(bf("veto files"))(vetofiles) parameter.
6165   bf(Default:)
6166 tt(     No files are vetoed for oplock grants.)
6168   bf(Examples:)
6170 You might want to do this on files that you know will be heavily
6171 contended for by clients. A good example of this is in the NetBench
6172 SMB benchmark program, which causes heavy client contention for files
6173 ending in tt(".SEM"). To cause Samba not to grant oplocks on these
6174 files you would use the line (either in the link(bf([global]))(global)
6175 section or in the section for the particular NetBench share :
6177 tt(     veto oplock files = /*.SEM/)
6179 label(volume)
6180 dit(bf(volume (S)))
6182 This allows you to override the volume label returned for a
6183 share. Useful for CDROMs with installation programs that insist on a
6184 particular volume label.
6186 The default is the name of the share.
6188 label(widelinks)
6189 dit(bf(wide links (S)))
6191 This parameter controls whether or not links in the UNIX file system
6192 may be followed by the server. Links that point to areas within the
6193 directory tree exported by the server are always allowed; this
6194 parameter controls access only to areas that are outside the directory
6195 tree being exported.
6197   bf(Default:)
6198 tt(     wide links = yes)
6200   bf(Example:)
6201 tt(     wide links = no)
6203 label(winsproxy)
6204 dit(bf(wins proxy (G)))
6206 This is a boolean that controls if url(bf(nmbd))(nmbd.8.html) will
6207 respond to broadcast name queries on behalf of other hosts. You may
6208 need to set this to tt("yes") for some older clients.
6210   bf(Default:)
6211 tt(     wins proxy = no)
6213 label(winsserver)
6214 dit(bf(wins server (G)))
6216 This specifies the IP address (or DNS name: IP address for preference)
6217 of the WINS server that url(bf(nmbd))(nmbd.8.html) should register with.
6218 If you have a WINS server on your network then you should set this to
6219 the WINS server's IP.
6221 You should point this at your WINS server if you have a
6222 multi-subnetted network.
6224 em(NOTE). You need to set up Samba to point to a WINS server if you
6225 have multiple subnets and wish cross-subnet browsing to work correctly.
6227 See the documentation file BROWSING.txt in the docs/ directory of your
6228 Samba source distribution.
6230   bf(Default:)
6231 tt(     wins server = )
6233   bf(Example:)
6234 tt(     wins server = 192.9.200.1)
6236 label(winssupport)
6237 dit(bf(wins support (G)))
6239 This boolean controls if the url(bf(nmbd))(nmbd.8.html) process in
6240 Samba will act as a WINS server. You should not set this to true
6241 unless you have a multi-subnetted network and you wish a particular
6242 url(bf(nmbd))(nmbd.8.html) to be your WINS server. Note that you
6243 should em(*NEVER*) set this to true on more than one machine in your
6244 network.
6246   bf(Default:)
6247 tt(     wins support = no)
6249 label(workgroup)
6250 dit(bf(workgroup (G)))
6252 This controls what workgroup your server will appear to be in when
6253 queried by clients. Note that this parameter also controls the Domain
6254 name used with the link(bf("security=domain"))(securityequaldomain)
6255 setting.
6257   bf(Default:)
6258 tt(     set at compile time to WORKGROUP)
6260   bf(Example:)
6261         workgroup = MYGROUP
6263 label(writable)
6264 dit(bf(writable (S)))
6266 Synonym for link(bf("writeable"))(writeable) for people who can't spell :-).
6267 Pronounced "ritter-bull".
6269 label(writelist)
6270 dit(bf(write list (S)))
6272 This is a list of users that are given read-write access to a
6273 service. If the connecting user is in this list then they will be
6274 given write access, no matter what the link(bf("read only"))(readonly)
6275 option is set to. The list can include group names using the @group
6276 syntax.
6278 Note that if a user is in both the read list and the write list then
6279 they will be given write access.
6281 See also the link(bf("read list"))(readlist) option.
6283   bf(Default:)
6284 tt(     write list = <empty string>)
6286   bf(Example:)
6287 tt(     write list = admin, root, @staff)
6289 label(writeok)
6290 dit(bf(write ok (S)))
6292 Synonym for link(bf(writeable))(writeable).
6294 label(writeraw)
6295 dit(bf(write raw (G)))
6297 This parameter controls whether or not the server will support raw
6298 writes SMB's when transferring data from clients. You should never
6299 need to change this parameter.
6301  bf(Default:)
6302 tt(     write raw = yes)
6304 label(writeable)
6305 dit(bf(writeable))
6307 An inverted synonym is link(bf("read only"))(readonly).
6309 If this parameter is tt("no"), then users of a service may not create
6310 or modify files in the service's directory.
6312 Note that a printable service link(bf(("printable = yes")))(printable)
6313 will em(*ALWAYS*) allow writing to the directory (user privileges
6314 permitting), but only via spooling operations.
6316   bf(Default:)
6317 tt(     writeable = no)
6319   bf(Examples:)
6320 verb(
6321         read only = no
6322         writeable = yes
6323         write ok = yes
6326 label(WARNINGS)
6327 manpagesection(WARNINGS)
6329 Although the configuration file permits service names to contain
6330 spaces, your client software may not. Spaces will be ignored in
6331 comparisons anyway, so it shouldn't be a problem - but be aware of the
6332 possibility.
6334 On a similar note, many clients - especially DOS clients - limit
6335 service names to eight characters. url(bf(Smbd))(smbd.8.html) has no
6336 such limitation, but attempts to connect from such clients will fail
6337 if they truncate the service names.  For this reason you should
6338 probably keep your service names down to eight characters in length.
6340 Use of the link(bf([homes]))(homes) and link(bf([printers]))(printers)
6341 special sections make life for an administrator easy, but the various
6342 combinations of default attributes can be tricky. Take extreme care
6343 when designing these sections. In particular, ensure that the
6344 permissions on spool directories are correct.
6346 label(VERSION)
6347 manpagesection(VERSION)
6349 This man page is correct for version 2.0 of the Samba suite.
6351 label(SEEALSO)
6352 manpagesection(SEE ALSO)
6354 url(bf(smbd (8)))(smbd.8.html), url(bf(smbclient (1)))(smbclient.1.html),
6355 url(bf(nmbd (8)))(nmbd.8.html), url(bf(testparm (1)))(testparm.1.html),
6356 url(bf(testprns (1)))(testprns.1.html), url(bf(Samba))(samba.7.html),
6357 url(bf(nmblookup (1)))(nmblookup.1.html), url(bf(smbpasswd (5)))(smbpasswd.5.html),
6358 url(bf(smbpasswd (8)))(smbpasswd.8.html).
6360 label(AUTHOR)
6361 manpageauthor()
6363 The original Samba software and related utilities were created by
6364 Andrew Tridgell email(samba-bugs@samba.org). Samba is now developed
6365 by the Samba Team as an Open Source project similar to the way the
6366 Linux kernel is developed.
6368 The original Samba man pages were written by Karl Auer. The man page
6369 sources were converted to YODL format (another excellent piece of Open
6370 Source software, available at
6371 url(bf(ftp://ftp.icce.rug.nl/pub/unix/))(ftp://ftp.icce.rug.nl/pub/unix/))
6372 and updated for the Samba2.0 release by Jeremy Allison.
6373 email(samba-bugs@samba.org).
6375 See url(bf(samba (7)))(samba.7.html) to find out how to get a full
6376 list of contributors and details on how to submit bug reports,
6377 comments etc.