1 .\" This manpage has been automatically generated by docbook2man-spec
2 .\" from a DocBook document. docbook2man-spec can be found at:
3 .\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "SMB.CONF" "5" "24 April 2002" "" ""
8 smb.conf \- The configuration file for the Samba suite
11 The \fIsmb.conf\fR file is a configuration
12 file for the Samba suite. \fIsmb.conf\fR contains
13 runtime configuration information for the Samba programs. The
14 \fIsmb.conf\fR file is designed to be configured and
15 administered by the \fBswat(8)\fR
16 program. The complete description of the file format and
17 possible parameters held within are here for reference purposes.
20 The file consists of sections and parameters. A section
21 begins with the name of the section in square brackets and continues
22 until the next section begins. Sections contain parameters of the
27 The file is line-based - that is, each newline-terminated
28 line 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.
33 Whitespace before or after the first equals sign is discarded.
34 Leading, trailing and internal whitespace in section and parameter
35 names is irrelevant. Leading and trailing whitespace in a parameter
36 value is discarded. Internal whitespace within a parameter value
39 Any line beginning with a semicolon (';') or a hash ('#')
40 character is ignored, as are lines containing only whitespace.
42 Any line ending in a '\\' is continued
43 on the next line in the customary UNIX fashion.
45 The values following the equals sign in parameters are all
46 either a string (no quotes needed) or a boolean, which may be given
47 as yes/no, 0/1 or true/false. Case is not significant in boolean
48 values, but is preserved in string values. Some items such as
49 create modes are numeric.
50 .SH "SECTION DESCRIPTIONS"
52 Each section in the configuration file (except for the
53 [global] section) describes a shared resource (known
54 as a "share"). The section name is the name of the
55 shared resource and the parameters within the section define
56 the shares attributes.
58 There are three special sections, [global],
59 [homes] and [printers], which are
60 described under \fBspecial sections\fR. The
61 following notes apply to ordinary section descriptions.
63 A share consists of a directory to which access is being
64 given plus a description of the access rights which are granted
65 to the user of the service. Some housekeeping options are
68 Sections are either file share services (used by the
69 client as an extension of their native file systems) or
70 printable services (used by the client to access print services
71 on the host running the server).
73 Sections may be designated \fBguest\fR services,
74 in which case no password is required to access them. A specified
75 UNIX \fBguest account\fR is used to define access
76 privileges in this case.
78 Sections other than guest services will require a password
79 to access them. The client provides the username. As older clients
80 only provide passwords and not usernames, you may specify a list
81 of usernames to check against the password using the "user ="
82 option in the share definition. For modern clients such as
83 Windows 95/98/ME/NT/2000, this should not be necessary.
85 Note that the access rights granted by the server are
86 masked by the access rights granted to the specified or guest
87 UNIX user by the host system. The server does not grant more
88 access than the host system grants.
90 The following sample section defines a file space share.
91 The user has write access to the path \fI/home/bar\fR.
92 The share is accessed via the share name "foo":
103 The following sample section defines a printable share.
104 The share is readonly, but printable. That is, the only write
105 access permitted is via calls to open, write to and close a
106 spool file. The \fBguest ok\fR parameter means
107 access will be permitted as the default guest user (specified
112 path = /usr/spool/public
120 .SH "SPECIAL SECTIONS"
121 .SS "THE GLOBAL SECTION"
123 parameters in this section apply to the server
124 as a whole, or are defaults for sections which do not
125 specifically define certain items. See the notes
126 under PARAMETERS for more information.
127 .SS "THE HOMES SECTION"
129 If a section called homes is included in the
130 configuration file, services connecting clients to their
131 home directories can be created on the fly by the server.
133 When the connection request is made, the existing
134 sections are scanned. If a match is found, it is used. If no
135 match is found, the requested section name is treated as a
136 user name and looked up in the local password file. If the
137 name exists and the correct password has been given, a share is
138 created by cloning the [homes] section.
140 Some modifications are then made to the newly
144 The share name is changed from homes to
145 the located username.
148 If no path was given, the path is set to
149 the user's home directory.
151 If you decide to use a \fBpath =\fR line
152 in your [homes] section then you may find it useful
153 to use the %S macro. For example :
156 \fBpath = /data/pchome/%S\fR
159 would be useful if you have different home directories
160 for your PCs than for UNIX access.
163 This is a fast and simple way to give a large number
164 of clients access to their home directories with a minimum
168 A similar process occurs if the requested section
169 name is "homes", except that the share name is not
170 changed to that of the requesting user. This method of using
171 the [homes] section works well if different users share
175 The [homes] section can specify all the parameters
176 a normal service section can specify, though some make more sense
177 than others. The following is a typical and suitable [homes]
189 An important point is that if guest access is specified
190 in the [homes] section, all home directories will be
191 visible to all clients \fBwithout a password\fR.
192 In the very unlikely event that this is actually desirable, it
193 would be wise to also specify \fBread only
197 Note that the \fBbrowseable\fR flag for
198 auto home directories will be inherited from the global browseable
199 flag, not the [homes] browseable flag. This is useful as
200 it means setting \fBbrowseable = no\fR in
201 the [homes] section will hide the [homes] share but make
202 any auto home directories visible.
204 .SS "THE PRINTERS SECTION"
206 This section works like [homes],
209 If a [printers] section occurs in the
210 configuration file, users are able to connect to any printer
211 specified in the local host's printcap file.
213 When a connection request is made, the existing sections
214 are scanned. If a match is found, it is used. If no match is found,
215 but a [homes] section exists, it is used as described
216 above. Otherwise, the requested section name is treated as a
217 printer name and the appropriate printcap file is scanned to see
218 if the requested section name is a valid printer share name. If
219 a match is found, a new printer share is created by cloning
220 the [printers] section.
222 A few modifications are then made to the newly created
226 The share name is set to the located printer
230 If no printer name was given, the printer name
231 is set to the located printer name
234 If the share does not permit guest access and
235 no username was given, the username is set to the located
238 Note that the [printers] service MUST be
239 printable - if you specify otherwise, the server will refuse
240 to load the configuration file.
243 Typically the path specified would be that of a
244 world-writeable spool directory with the sticky bit set on
245 it. A typical [printers] entry would look like
251 path = /usr/spool/public
258 All aliases given for a printer in the printcap file
259 are legitimate printer names as far as the server is concerned.
260 If your printing subsystem doesn't work like that, you will have
261 to set up a pseudo-printcap. This is a file consisting of one or
262 more lines like this:
266 alias|alias|alias|alias...
272 Each alias should be an acceptable printer name for
273 your printing subsystem. In the [global] section, specify
274 the new file as your printcap. The server will then only recognize
275 names found in your pseudo-printcap, which of course can contain
276 whatever aliases you like. The same technique could be used
277 simply to limit access to a subset of your local printers.
280 An alias, by the way, is defined as any component of the
281 first entry of a printcap record. Records are separated by newlines,
282 components (if there are more than one) are separated by vertical
286 NOTE: On SYSV systems which use lpstat to determine what
287 printers are defined on the system you may be able to use
288 "printcap name = lpstat" to automatically obtain a list
289 of printers. See the "printcap name" option
294 parameters define the specific attributes of sections.
296 Some parameters are specific to the [global] section
297 (e.g., \fBsecurity\fR). Some parameters are usable
298 in all sections (e.g., \fBcreate mode\fR). All others
299 are permissible only in normal sections. For the purposes of the
300 following descriptions the [homes] and [printers]
301 sections will be considered normal. The letter \fBG\fR
302 in parentheses indicates that a parameter is specific to the
303 [global] section. The letter \fBS\fR
304 indicates that a parameter can be specified in a service specific
305 section. Note that all \fBS\fR parameters can also be specified in
306 the [global] section - in which case they will define
307 the default behavior for all services.
309 parameters are arranged here in alphabetical order - this may
310 not create best bedfellows, but at least you can find them! Where
311 there are synonyms, the preferred synonym is described, others refer
312 to the preferred synonym.
313 .SH "VARIABLE SUBSTITUTIONS"
315 Many of the strings that are settable in the config file
316 can take substitutions. For example the option "path =
317 /tmp/%u" would be interpreted as "path =
318 /tmp/john" if the user connected with the username john.
320 These substitutions are mostly noted in the descriptions below,
321 but there are some general substitutions which apply whenever they
322 might be relevant. These are:
325 the name of the current service, if any.
328 the root directory of the current service,
332 user name of the current service, if any.
335 primary group name of %u.
338 session user name (the user name that the client
339 wanted, not necessarily the same as the one they got).
342 primary group name of %U.
345 the home directory of the user given
352 the Internet hostname that Samba is running
356 the NetBIOS name of the client machine
360 the NetBIOS name of the server. This allows you
361 to change your config based on what the client calls you. Your
362 server can have a "dual personality".
365 the Internet name of the client machine.
368 the name of your NIS home directory server.
369 This is obtained from your NIS auto.map entry. If you have
370 not compiled Samba with the \fB--with-automount\fR
371 option then this value will be the same as %L.
374 the path of the service's home directory,
375 obtained from your NIS auto.map entry. The NIS auto.map entry
376 is split up as "%N:%p".
379 the selected protocol level after
380 protocol negotiation. It can be one of CORE, COREPLUS,
381 LANMAN1, LANMAN2 or NT1.
384 The process id of the current server
388 the architecture of the remote
389 machine. Only some are recognized, and those may not be
390 100% reliable. It currently recognizes Samba, WfWg, Win95,
391 WinNT and Win2k. Anything else will be known as
392 "UNKNOWN". If it gets it wrong then sending a level
393 3 log to samba@samba.org
394 <URL:mailto:samba@samba.org> should allow it to be fixed.
397 The IP address of the client machine.
400 the current date and time.
402 \fB%$(\fIenvvar\fB)\fR
403 The value of the environment variable
406 There are some quite creative things that can be done
407 with these substitutions and other smb.conf options.
411 Samba supports "name mangling" so that DOS and
412 Windows clients can use files that don't conform to the 8.3 format.
413 It can also be set to adjust the case of 8.3 format filenames.
415 There are several options that control the way mangling is
416 performed, and they are grouped here rather than listed separately.
417 For the defaults look at the output of the testparm program.
419 All of these options can be set separately for each service
420 (or globally, of course).
424 \fBmangle case = yes/no\fR
425 controls if names that have characters that
426 aren't of the "default" case are mangled. For example,
427 if this is yes then a name like "Mail" would be mangled.
430 \fBcase sensitive = yes/no\fR
431 controls whether filenames are case sensitive. If
432 they aren't then Samba must do a filename search and match on passed
433 names. Default \fBno\fR.
435 \fBdefault case = upper/lower\fR
436 controls what the default case is for new
437 filenames. Default \fBlower\fR.
439 \fBpreserve case = yes/no\fR
440 controls if new files are created with the
441 case that the client passes, or if they are forced to be the
442 "default" case. Default \fByes\fR.
444 \fBshort preserve case = yes/no\fR
445 controls if new files which conform to 8.3 syntax,
446 that is all in upper case and of suitable length, are created
447 upper case, or if they are forced to be the "default"
448 case. This option can be use with "preserve case = yes"
449 to permit long filenames to retain their case, while short names
450 are lowercased. Default \fByes\fR.
452 By default, Samba 2.2 has the same semantics as a Windows
453 NT server, in that it is case insensitive but case preserving.
455 .SH "NOTE ABOUT USERNAME/PASSWORD VALIDATION"
457 There are a number of ways in which a user can connect
458 to a service. The server uses the following steps in determining
459 if it will allow a connection to a specified service. If all the
460 steps fail, then the connection request is rejected. However, if one of the
461 steps succeeds, then the following steps are not checked.
463 If the service is marked "guest only = yes" then
464 steps 1 to 5 are skipped.
466 If the client has passed a username/password
467 pair and that username/password pair is validated by the UNIX
468 system's password programs then the connection is made as that
469 username. Note that this includes the
470 \\\\server\\service%\fIusername\fR method of passing
473 If the client has previously registered a username
474 with the system and now supplies a correct password for that
475 username then the connection is allowed.
477 The client's NetBIOS name and any previously
478 used user names are checked against the supplied password, if
479 they match then the connection is allowed as the corresponding
482 If the client has previously validated a
483 username/password pair with the server and the client has passed
484 the validation token then that username is used.
486 If a "user = " field is given in the
487 \fIsmb.conf\fR file for the service and the client
488 has supplied a password, and that password matches (according to
489 the UNIX system's password checking) with one of the usernames
490 from the "user =" field then the connection is made as
491 the username in the "user =" line. If one
492 of the username in the "user =" list begins with a
493 \&'@' then that name expands to a list of names in
494 the group of the same name.
496 If the service is a guest service then a
497 connection is made as the username given in the "guest
498 account =" for the service, irrespective of the
500 .SH "COMPLETE LIST OF GLOBAL PARAMETERS"
502 Here is a list of all global parameters. See the section of
503 each parameter for details. Note that some are synonyms.
506 \fIabort shutdown script\fR
509 \fIadd printer command\fR
512 \fIadd share command\fR
515 \fIadd user script\fR
518 \fIadd machine script\fR
521 \fIallow trusted domains\fR
527 \fIannounce version\fR
533 \fIbind interfaces only\fR
539 \fIchange notify timeout\fR
542 \fIchange share command\fR
548 \fIclient code page\fR
551 \fIcode page directory\fR
563 \fIdebug hires timestamp\fR
569 \fIdebug timestamp\fR
581 \fIdefault service\fR
584 \fIdelete printer command\fR
587 \fIdelete share command\fR
590 \fIdelete user script\fR
596 \fIdisable spoolss\fR
602 \fIdomain admin group\fR
605 \fIdomain guest group\fR
614 \fIencrypt passwords\fR
617 \fIenhanced browsing\fR
620 \fIenumports command\fR
626 \fIhide local users\fR
629 \fIhide unreadable\fR
653 \fIlarge readwrite\fR
713 \fImachine password timeout\fR
737 \fImax smbd processes\fR
749 \fImessage command\fR
752 \fImin passwd length\fR
755 \fImin password length\fR
764 \fIname resolve order\fR
767 \fInetbios aliases\fR
779 \fInt pipe support\fR
785 \fInt status support\fR
791 \fIobey pam restrictions\fR
794 \fIoplock break wait time\fR
803 \fIpam password change\fR
812 \fIpasswd chat debug\fR
821 \fIpassword server\fR
824 \fIprefered master\fR
827 \fIpreferred master\fR
839 \fIprinter driver file\fR
854 \fIremote announce\fR
857 \fIremote browse sync\fR
860 \fIrestrict anonymous\fR
878 \fIshow add printer wizard\fR
881 \fIshutdown script\fR
884 \fIsmb passwd file\fR
893 \fIsource environment\fR
902 \fIssl CA certFile\fR
908 \fIssl client cert\fR
914 \fIssl compatibility\fR
920 \fIssl entropy bytes\fR
923 \fIssl entropy file\fR
929 \fIssl hosts resign\fR
932 \fIssl require clientcert\fR
935 \fIssl require servercert\fR
938 \fIssl server cert\fR
950 \fIstat cache size\fR
962 \fItemplate homedir\fR
977 \fItotal print jobs\fR
980 \fIunix extensions\fR
983 \fIunix password sync\fR
986 \fIupdate encrypted\fR
1004 \fIutmp directory\fR
1010 \fIwinbind cache time\fR
1013 \fIwinbind enum users\fR
1016 \fIwinbind enum groups\fR
1022 \fIwinbind separator\fR
1044 .SH "COMPLETE LIST OF SERVICE PARAMETERS"
1046 Here is a list of all service parameters. See the section on
1047 each parameter for details. Note that some are synonyms.
1059 \fIblocking locks\fR
1068 \fIcase sensitive\fR
1092 \fIdefault devmode\fR
1095 \fIdelete readonly\fR
1098 \fIdelete veto files\fR
1107 \fIdirectory mask\fR
1110 \fIdirectory mode\fR
1113 \fIdirectory security mask\fR
1122 \fIdos filetime resolution\fR
1131 \fIfake directory create times\fR
1137 \fIfollow symlinks\fR
1140 \fIforce create mode\fR
1143 \fIforce directory mode\fR
1146 \fIforce directory security mode\fR
1152 \fIforce security mode\fR
1173 \fIhide dot files\fR
1188 \fIinherit permissions\fR
1194 \fIlevel2 oplocks\fR
1200 \fIlppause command\fR
1206 \fIlpresume command\fR
1239 \fImax connections\fR
1242 \fImax print jobs\fR
1245 \fImin print space\fR
1251 \fInt acl support\fR
1260 \fIoplock contention limit\fR
1302 \fIprinter driver\fR
1305 \fIprinter driver location\fR
1317 \fIqueuepause command\fR
1320 \fIqueueresume command\fR
1335 \fIroot preexec close\fR
1347 \fIshort preserve case\fR
1353 \fIstrict allocate\fR
1356 \fIstrict locking\fR
1365 \fIuse client driver\fR
1383 \fIveto oplock files\fR
1401 \fIwrite cache size\fR
1411 .SH "EXPLANATION OF EACH PARAMETER"
1413 \fBabort shutdown script (G)\fR
1414 \fBThis parameter only exists in the HEAD cvs branch\fR
1415 This a full path name to a script called by
1417 should stop a shutdown procedure issued by the \fIshutdown script\fR.
1419 This command will be run as user.
1421 Default: \fBNone\fR.
1423 Example: \fBabort shutdown script = /sbin/shutdown -c\fR
1425 \fBadd printer command (G)\fR
1426 With the introduction of MS-RPC based printing
1427 support for Windows NT/2000 clients in Samba 2.2, The MS Add
1428 Printer Wizard (APW) icon is now also available in the
1429 "Printers..." folder displayed a share listing. The APW
1430 allows for printers to be add remotely to a Samba or Windows
1431 NT/2000 print server.
1433 For a Samba host this means that the printer must be
1434 physically added to the underlying printing system. The \fIadd
1435 printer command\fR defines a script to be run which
1436 will perform the necessary operations for adding the printer
1437 to the print system and to add the appropriate service definition
1438 to the \fIsmb.conf\fR file in order that it can be
1439 shared by \fBsmbd(8)\fR
1442 The \fIadd printer command\fR is
1443 automatically invoked with the following parameter (in
1463 \fIWindows 9x driver location\fR
1466 All parameters are filled in from the PRINTER_INFO_2 structure sent
1467 by the Windows NT/2000 client with one exception. The "Windows 9x
1468 driver location" parameter is included for backwards compatibility
1469 only. The remaining fields in the structure are generated from answers
1470 to the APW questions.
1473 Once the \fIadd printer command\fR has
1474 been executed, \fBsmbd\fR will reparse the \fI smb.conf\fR to determine if the share defined by the APW
1475 exists. If the sharename is still invalid, then \fBsmbd
1476 \fRwill return an ACCESS_DENIED error to the client.
1479 See also \fI delete printer command\fR, \fIprinting\fR,
1487 Example: \fBaddprinter command = /usr/bin/addprinter
1490 \fBadd share command (G)\fR
1491 Samba 2.2.0 introduced the ability to dynamically
1492 add and delete shares via the Windows NT 4.0 Server Manager. The
1493 \fIadd share command\fR is used to define an
1494 external program or script which will add a new service definition
1495 to \fIsmb.conf\fR. In order to successfully
1496 execute the \fIadd share command\fR, \fBsmbd\fR
1497 requires that the administrator be connected using a root account (i.e.
1500 When executed, \fBsmbd\fR will automatically invoke the
1501 \fIadd share command\fR with four parameters.
1505 \fIconfigFile\fR - the location
1506 of the global \fIsmb.conf\fR file.
1509 \fIshareName\fR - the name of the new
1513 \fIpathName\fR - path to an **existing**
1517 \fIcomment\fR - comment string to associate
1521 This parameter is only used for add file shares. To add printer shares,
1522 see the \fIadd printer
1526 See also \fIchange share
1527 command\fR, \fIdelete share
1534 Example: \fBadd share command = /usr/local/bin/addshare\fR
1537 \fBadd machine script (G)\fR
1538 This is the full pathname to a script that will
1539 be run by smbd(8)when a machine is added
1540 to it's domain using the administrator username and password method.
1542 This option is only required when using sam back-ends tied to the
1543 Unix uid method of RID calculation such as smbpasswd. This option is only
1544 available in Samba 3.0.
1546 Default: \fBadd machine script = <empty string>
1548 Example: \fBadd machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
1550 \fBadd user script (G)\fR
1551 This is the full pathname to a script that will
1552 be run \fBAS ROOT\fR by smbd(8)
1553 under special circumstances described below.
1555 Normally, a Samba server requires that UNIX users are
1556 created for all users accessing files on this server. For sites
1557 that use Windows NT account databases as their primary user database
1558 creating these users and keeping the user list in sync with the
1559 Windows NT PDC is an onerous task. This option allows smbdto create the required UNIX users
1560 \fBON DEMAND\fR when a user accesses the Samba server.
1562 In order to use this option, smbd
1563 must \fBNOT\fR be set to \fIsecurity = share\fR
1564 and \fIadd user script\fR
1565 must be set to a full pathname for a script that will create a UNIX
1566 user given one argument of \fI%u\fR, which expands into
1567 the UNIX user name to create.
1569 When the Windows user attempts to access the Samba server,
1570 at login (session setup in the SMB protocol) time, smbdcontacts the \fIpassword server\fR and
1571 attempts to authenticate the given user with the given password. If the
1572 authentication succeeds then \fBsmbd\fR
1573 attempts to find a UNIX user in the UNIX password database to map the
1574 Windows user into. If this lookup fails, and \fIadd user script
1575 \fRis set then \fBsmbd\fR will
1576 call the specified script \fBAS ROOT\fR, expanding
1577 any \fI%u\fR argument to be the user name to create.
1579 If this script successfully creates the user then \fBsmbd
1580 \fRwill continue on as though the UNIX user
1581 already existed. In this way, UNIX users are dynamically created to
1582 match existing Windows NT accounts.
1584 See also \fI security\fR, \fIpassword server\fR,
1588 Default: \fBadd user script = <empty string>
1590 Example: \fBadd user script = /usr/local/samba/bin/add_user
1593 \fBadmin users (S)\fR
1594 This is a list of users who will be granted
1595 administrative privileges on the share. This means that they
1596 will do all file operations as the super-user (root).
1598 You should use this option very carefully, as any user in
1599 this list will be able to do anything they like on the share,
1600 irrespective of file permissions.
1602 Default: \fBno admin users\fR
1604 Example: \fBadmin users = jason\fR
1606 \fBallow hosts (S)\fR
1607 Synonym for \fIhosts allow\fR.
1609 \fBallow trusted domains (G)\fR
1610 This option only takes effect when the \fIsecurity\fR option is set to
1612 If it is set to no, then attempts to connect to a resource from
1613 a domain or workgroup other than the one which smbdis running
1614 in will fail, even if that domain is trusted by the remote server
1615 doing the authentication.
1617 This is useful if you only want your Samba server to
1618 serve resources to users in the domain it is a member of. As
1619 an example, suppose that there are two domains DOMA and DOMB. DOMB
1620 is trusted by DOMA, which contains the Samba server. Under normal
1621 circumstances, a user with an account in DOMB can then access the
1622 resources of a UNIX account with the same account name on the
1623 Samba server even if they do not have an account in DOMA. This
1624 can make implementing a security boundary difficult.
1626 Default: \fBallow trusted domains = yes\fR
1628 \fBannounce as (G)\fR
1629 This specifies what type of server
1631 will announce itself as, to a network neighborhood browse
1632 list. By default this is set to Windows NT. The valid options
1633 are : "NT Server" (which can also be written as "NT"),
1634 "NT Workstation", "Win95" or "WfW" meaning Windows NT Server,
1635 Windows NT Workstation, Windows 95 and Windows for Workgroups
1636 respectively. Do not change this parameter unless you have a
1637 specific need to stop Samba appearing as an NT server as this
1638 may prevent Samba servers from participating as browser servers
1641 Default: \fBannounce as = NT Server\fR
1643 Example: \fBannounce as = Win95\fR
1645 \fBannounce version (G)\fR
1646 This specifies the major and minor version numbers
1647 that nmbd will use when announcing itself as a server. The default
1648 is 4.2. Do not change this parameter unless you have a specific
1649 need to set a Samba server to be a downlevel server.
1651 Default: \fBannounce version = 4.5\fR
1653 Example: \fBannounce version = 2.0\fR
1655 \fBauto services (G)\fR
1656 This is a synonym for the \fIpreload\fR.
1659 This parameter lets you "turn off" a service. If
1660 \fIavailable = no\fR, then \fBALL\fR
1661 attempts to connect to the service will fail. Such failures are
1664 Default: \fBavailable = yes\fR
1666 \fBbind interfaces only (G)\fR
1667 This global parameter allows the Samba admin
1668 to limit what interfaces on a machine will serve SMB requests. If
1669 affects file service smbd(8)and
1670 name service nmbd(8)in slightly
1673 For name service it causes \fBnmbd\fR to bind
1674 to ports 137 and 138 on the interfaces listed in the interfaces parameter. \fBnmbd
1675 \fRalso binds to the "all addresses" interface (0.0.0.0)
1676 on ports 137 and 138 for the purposes of reading broadcast messages.
1677 If this option is not set then \fBnmbd\fR will service
1678 name requests on all of these sockets. If \fIbind interfaces
1679 only\fR is set then \fBnmbd\fR will check the
1680 source address of any packets coming in on the broadcast sockets
1681 and discard any that don't match the broadcast addresses of the
1682 interfaces in the \fIinterfaces\fR parameter list.
1683 As unicast packets are received on the other sockets it allows
1684 \fBnmbd\fR to refuse to serve names to machines that
1685 send packets that arrive through any interfaces not listed in the
1686 \fIinterfaces\fR list. IP Source address spoofing
1687 does defeat this simple check, however so it must not be used
1688 seriously as a security feature for \fBnmbd\fR.
1690 For file service it causes smbd(8)
1691 to bind only to the interface list given in the interfaces parameter. This restricts the networks that
1692 \fBsmbd\fR will serve to packets coming in those
1693 interfaces. Note that you should not use this parameter for machines
1694 that are serving PPP or other intermittent or non-broadcast network
1695 interfaces as it will not cope with non-permanent interfaces.
1697 If \fIbind interfaces only\fR is set then
1698 unless the network address \fB127.0.0.1\fR is added
1699 to the \fIinterfaces\fR parameter list \fBsmbpasswd(8)\fR
1700 and \fBswat(8)\fRmay
1701 not work as expected due to the reasons covered below.
1703 To change a users SMB password, the \fBsmbpasswd\fR
1704 by default connects to the \fBlocalhost - 127.0.0.1\fR
1705 address as an SMB client to issue the password change request. If
1706 \fIbind interfaces only\fR is set then unless the
1707 network address \fB127.0.0.1\fR is added to the
1708 \fIinterfaces\fR parameter list then \fB smbpasswd\fR will fail to connect in it's default mode.
1709 \fBsmbpasswd\fR can be forced to use the primary IP interface
1710 of the local host by using its \fI-r remote machine\fR
1711 parameter, with \fIremote machine\fR set
1712 to the IP name of the primary interface of the local host.
1714 The \fBswat\fR status page tries to connect with
1715 \fBsmbd\fR and \fBnmbd\fR at the address
1716 \fB127.0.0.1\fR to determine if they are running.
1717 Not adding \fB127.0.0.1\fR will cause \fB smbd\fR and \fBnmbd\fR to always show
1718 "not running" even if they really are. This can prevent \fB swat\fR from starting/stopping/restarting \fBsmbd\fR
1721 Default: \fBbind interfaces only = no\fR
1723 \fBblocking locks (S)\fR
1724 This parameter controls the behavior of smbd(8)when given a request by a client
1725 to obtain a byte range lock on a region of an open file, and the
1726 request has a time limit associated with it.
1728 If this parameter is set and the lock range requested
1729 cannot be immediately satisfied, Samba 2.2 will internally
1730 queue the lock request, and periodically attempt to obtain
1731 the lock until the timeout period expires.
1733 If this parameter is set to false, then
1734 Samba 2.2 will behave as previous versions of Samba would and
1735 will fail the lock request immediately if the lock range
1738 Default: \fBblocking locks = yes\fR
1741 See the \fI browseable\fR.
1743 \fBbrowse list (G)\fR
1744 This controls whether \fBsmbd(8)\fRwill serve a browse list to
1745 a client doing a \fBNetServerEnum\fR call. Normally
1746 set to true. You should never need to change
1749 Default: \fBbrowse list = yes\fR
1751 \fBbrowseable (S)\fR
1752 This controls whether this share is seen in
1753 the list of available shares in a net view and in the browse list.
1755 Default: \fBbrowseable = yes\fR
1757 \fBcase sensitive (S)\fR
1758 See the discussion in the section NAME MANGLING.
1760 Default: \fBcase sensitive = no\fR
1762 \fBcasesignames (S)\fR
1766 \fBchange notify timeout (G)\fR
1767 This SMB allows a client to tell a server to
1768 "watch" a particular directory for any changes and only reply to
1769 the SMB request when a change has occurred. Such constant scanning of
1770 a directory is expensive under UNIX, hence an \fBsmbd(8)\fRdaemon only performs such a scan
1771 on each requested directory once every \fIchange notify
1774 Default: \fBchange notify timeout = 60\fR
1776 Example: \fBchange notify timeout = 300\fR
1778 Would change the scan time to every 5 minutes.
1780 \fBchange share command (G)\fR
1781 Samba 2.2.0 introduced the ability to dynamically
1782 add and delete shares via the Windows NT 4.0 Server Manager. The
1783 \fIchange share command\fR is used to define an
1784 external program or script which will modify an existing service definition
1785 in \fIsmb.conf\fR. In order to successfully
1786 execute the \fIchange share command\fR, \fBsmbd\fR
1787 requires that the administrator be connected using a root account (i.e.
1790 When executed, \fBsmbd\fR will automatically invoke the
1791 \fIchange share command\fR with four parameters.
1795 \fIconfigFile\fR - the location
1796 of the global \fIsmb.conf\fR file.
1799 \fIshareName\fR - the name of the new
1803 \fIpathName\fR - path to an **existing**
1807 \fIcomment\fR - comment string to associate
1811 This parameter is only used modify existing file shares definitions. To modify
1812 printer shares, use the "Printers..." folder as seen when browsing the Samba host.
1815 See also \fIadd share
1816 command\fR, \fIdelete
1823 Example: \fBchange share command = /usr/local/bin/addshare\fR
1826 \fBcharacter set (G)\fR
1827 This allows smbdto map incoming filenames
1828 from a DOS Code page (see the client
1829 code page parameter) to several built in UNIX character sets.
1830 The built in code page translations are:
1834 ISO8859-1 : Western European
1835 UNIX character set. The parameter \fIclient code page\fR
1836 \fBMUST\fR be set to code page 850 if the
1837 \fIcharacter set\fR parameter is set to
1838 ISO8859-1 in order for the conversion to the
1839 UNIX character set to be done correctly.
1842 ISO8859-2 : Eastern European
1843 UNIX character set. The parameter \fIclient code page
1844 \fR\fBMUST\fR be set to code page 852 if
1845 the \fI character set\fR parameter is set
1846 to ISO8859-2 in order for the conversion
1847 to the UNIX character set to be done correctly.
1850 ISO8859-5 : Russian Cyrillic
1851 UNIX character set. The parameter \fIclient code page
1852 \fR\fBMUST\fR be set to code page
1853 866 if the \fIcharacter set \fR parameter is
1854 set to ISO8859-5 in order for the conversion
1855 to the UNIX character set to be done correctly.
1858 ISO8859-7 : Greek UNIX
1859 character set. The parameter \fIclient code page
1860 \fR\fBMUST\fR be set to code page
1861 737 if the \fIcharacter set\fR parameter is
1862 set to ISO8859-7 in order for the conversion
1863 to the UNIX character set to be done correctly.
1866 KOI8-R : Alternate mapping
1867 for Russian Cyrillic UNIX character set. The parameter
1868 \fIclient code page\fR \fBMUST\fR
1869 be set to code page 866 if the \fIcharacter set\fR
1870 parameter is set to KOI8-R in order for the
1871 conversion to the UNIX character set to be done correctly.
1874 \fBBUG\fR. These MSDOS code page to UNIX character
1875 set mappings should be dynamic, like the loading of MS DOS code pages,
1879 Normally this parameter is not set, meaning no filename
1880 translation is done.
1883 Default: \fBcharacter set = <empty string>\fR
1886 Example: \fBcharacter set = ISO8859-1\fR
1889 \fBclient code page (G)\fR
1890 This parameter specifies the DOS code page
1891 that the clients accessing Samba are using. To determine what code
1892 page a Windows or DOS client is using, open a DOS command prompt
1893 and type the command \fBchcp\fR. This will output
1894 the code page. The default for USA MS-DOS, Windows 95, and
1895 Windows NT releases is code page 437. The default for western
1896 European releases of the above operating systems is code page 850.
1898 This parameter tells smbd(8)
1899 which of the \fIcodepage.XXX
1900 \fRfiles to dynamically load on startup. These files,
1901 described more fully in the manual page \fBmake_smbcodepage(1)\fR, tell \fB smbd\fR how to map lower to upper case characters to provide
1902 the case insensitivity of filenames that Windows clients expect.
1904 Samba currently ships with the following code page files :
1908 Code Page 437 - MS-DOS Latin US
1911 Code Page 737 - Windows '95 Greek
1914 Code Page 850 - MS-DOS Latin 1
1917 Code Page 852 - MS-DOS Latin 2
1920 Code Page 861 - MS-DOS Icelandic
1923 Code Page 866 - MS-DOS Cyrillic
1926 Code Page 932 - MS-DOS Japanese SJIS
1929 Code Page 936 - MS-DOS Simplified Chinese
1932 Code Page 949 - MS-DOS Korean Hangul
1935 Code Page 950 - MS-DOS Traditional Chinese
1938 Thus this parameter may have any of the values 437, 737, 850, 852,
1939 861, 932, 936, 949, or 950. If you don't find the codepage you need,
1940 read the comments in one of the other codepage files and the
1941 \fBmake_smbcodepage(1)\fR man page and write one. Please
1942 remember to donate it back to the Samba user community.
1945 This parameter co-operates with the \fIvalid
1946 chars\fR parameter in determining what characters are
1947 valid in filenames and how capitalization is done. If you set both
1948 this parameter and the \fIvalid chars\fR parameter
1949 the \fIclient code page\fR parameter
1950 \fBMUST\fR be set before the \fIvalid
1951 chars\fR parameter in the \fIsmb.conf\fR
1952 file. The \fIvalid chars\fR string will then
1953 augment the character settings in the \fIclient code page\fR
1957 If not set, \fIclient code page\fR defaults
1962 chars\fR, \fIcode page directory\fR
1965 Default: \fBclient code page = 850\fR
1968 Example: \fBclient code page = 936\fR
1971 \fBcode page directory (G)\fR
1972 Define the location of the various client code page
1978 Default: \fBcode page directory = ${prefix}/lib/codepages
1980 Example: \fBcode page directory = /usr/share/samba/codepages
1982 \fBcoding system (G)\fR
1983 This parameter is used to determine how incoming
1984 Shift-JIS Japanese characters are mapped from the incoming \fIclient code page\fR
1985 used by the client, into file names in the UNIX filesystem.
1986 Only useful if \fIclient code page\fR is set to
1987 932 (Japanese Shift-JIS). The options are :
1991 SJIS - Shift-JIS. Does no
1992 conversion of the incoming filename.
1995 JIS8, J8BB, J8BH, J8@B,
1996 J8@J, J8@H - Convert from incoming Shift-JIS to eight
1997 bit JIS code with different shift-in, shift out codes.
2000 JIS7, J7BB, J7BH, J7@B, J7@J,
2001 J7@H - Convert from incoming Shift-JIS to seven bit
2002 JIS code with different shift-in, shift out codes.
2005 JUNET, JUBB, JUBH, JU@B, JU@J, JU@H
2006 - Convert from incoming Shift-JIS to JUNET code with different shift-in,
2010 EUC - Convert an incoming
2011 Shift-JIS character to EUC code.
2014 HEX - Convert an incoming
2015 Shift-JIS character to a 3 byte hex representation, i.e.
2019 CAP - Convert an incoming
2020 Shift-JIS character to the 3 byte hex representation used by
2021 the Columbia AppleTalk Program (CAP), i.e. :AB.
2022 This is used for compatibility between Samba and CAP.
2025 Default: \fBcoding system = <empty value>\fR
2029 This is a text field that is seen next to a share
2030 when a client does a queries the server, either via the network
2031 neighborhood or via \fBnet view\fR to list what shares
2034 If you want to set the string that is displayed next to the
2035 machine name then see the \fI server string\fR parameter.
2037 Default: \fBNo comment string\fR
2039 Example: \fBcomment = Fred's Files\fR
2041 \fBconfig file (G)\fR
2042 This allows you to override the config file
2043 to use, instead of the default (usually \fIsmb.conf\fR).
2044 There is a chicken and egg problem here as this option is set
2047 For this reason, if the name of the config file has changed
2048 when the parameters are loaded then it will reload them from
2049 the new config file.
2051 This option takes the usual substitutions, which can
2054 If the config file doesn't exist then it won't be loaded
2055 (allowing you to special case the config files of just a few
2058 Example: \fBconfig file = /usr/local/samba/lib/smb.conf.%m
2061 This parameter allows you to "clone" service
2062 entries. The specified service is simply duplicated under the
2063 current service's name. Any parameters specified in the current
2064 section will override those in the section being copied.
2066 This feature lets you set up a 'template' service and
2067 create similar services easily. Note that the service being
2068 copied must occur earlier in the configuration file than the
2069 service doing the copying.
2071 Default: \fBno value\fR
2073 Example: \fBcopy = otherservice\fR
2075 \fBcreate mask (S)\fR
2076 A synonym for this parameter is
2080 When a file is created, the necessary permissions are
2081 calculated according to the mapping from DOS modes to UNIX
2082 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed
2083 with this parameter. This parameter may be thought of as a bit-wise
2084 MASK for the UNIX modes of a file. Any bit \fBnot\fR
2085 set here will be removed from the modes set on a file when it is
2088 The default value of this parameter removes the
2089 \&'group' and 'other' write and execute bits from the UNIX modes.
2091 Following this Samba will bit-wise 'OR' the UNIX mode created
2092 from this parameter with the value of the \fIforce create mode\fR
2093 parameter which is set to 000 by default.
2095 This parameter does not affect directory modes. See the
2096 parameter \fIdirectory mode
2099 See also the \fIforce
2100 create mode\fR parameter for forcing particular mode
2101 bits to be set on created files. See also the \fIdirectory mode\fR parameter for masking
2102 mode bits on created directories. See also the \fIinherit permissions\fR parameter.
2104 Note that this parameter does not apply to permissions
2105 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
2106 a mask on access control lists also, they need to set the \fIsecurity mask\fR.
2108 Default: \fBcreate mask = 0744\fR
2110 Example: \fBcreate mask = 0775\fR
2112 \fBcreate mode (S)\fR
2113 This is a synonym for \fI create mask\fR.
2115 \fBcsc policy (S)\fR
2116 This stands for \fBclient-side caching
2117 policy\fR, and specifies how clients capable of offline
2118 caching will cache the files in the share. The valid values
2119 are: manual, documents, programs, disable.
2121 These values correspond to those used on Windows
2124 For example, shares containing roaming profiles can have
2125 offline caching disabled using \fBcsc policy = disable
2128 Default: \fBcsc policy = manual\fR
2130 Example: \fBcsc policy = programs\fR
2133 The value of the parameter (a decimal integer)
2134 represents the number of minutes of inactivity before a connection
2135 is considered dead, and it is disconnected. The deadtime only takes
2136 effect if the number of open files is zero.
2138 This is useful to stop a server's resources being
2139 exhausted by a large number of inactive connections.
2141 Most clients have an auto-reconnect feature when a
2142 connection is broken so in most cases this parameter should be
2143 transparent to users.
2145 Using this parameter with a timeout of a few minutes
2146 is recommended for most systems.
2148 A deadtime of zero indicates that no auto-disconnection
2149 should be performed.
2151 Default: \fBdeadtime = 0\fR
2153 Example: \fBdeadtime = 15\fR
2155 \fBdebug hires timestamp (G)\fR
2156 Sometimes the timestamps in the log messages
2157 are needed with a resolution of higher that seconds, this
2158 boolean parameter adds microsecond resolution to the timestamp
2159 message header when turned on.
2161 Note that the parameter \fI debug timestamp\fR must be on for this to have an
2164 Default: \fBdebug hires timestamp = no\fR
2167 When using only one log file for more then one
2168 forked smbd-process there may be hard to follow which process
2169 outputs which message. This boolean parameter is adds the process-id
2170 to the timestamp message headers in the logfile when turned on.
2172 Note that the parameter \fI debug timestamp\fR must be on for this to have an
2175 Default: \fBdebug pid = no\fR
2177 \fBdebug timestamp (G)\fR
2178 Samba 2.2 debug log messages are timestamped
2179 by default. If you are running at a high \fIdebug level\fR these timestamps
2180 can be distracting. This boolean parameter allows timestamping
2183 Default: \fBdebug timestamp = yes\fR
2186 Samba is sometimes run as root and sometime
2187 run as the connected user, this boolean parameter inserts the
2188 current euid, egid, uid and gid to the timestamp message headers
2189 in the log file if turned on.
2191 Note that the parameter \fI debug timestamp\fR must be on for this to have an
2194 Default: \fBdebug uid = no\fR
2196 \fBdebuglevel (G)\fR
2197 Synonym for \fI log level\fR.
2200 A synonym for \fI default service\fR.
2202 \fBdefault case (S)\fR
2203 See the section on NAME MANGLING. Also note the \fIshort preserve case\fR parameter.
2205 Default: \fBdefault case = lower\fR
2207 \fBdefault devmode (S)\fR
2208 This parameter is only applicable to printable services. When smbd is serving
2209 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
2210 server has a Device Mode which defines things such as paper size and
2211 orientation and duplex settings. The device mode can only correctly be
2212 generated by the printer driver itself (which can only be executed on a
2213 Win32 platform). Because smbd is unable to execute the driver code
2214 to generate the device mode, the default behavior is to set this field
2217 Most problems with serving printer drivers to Windows NT/2k/XP clients
2218 can be traced to a problem with the generated device mode. Certain drivers
2219 will do things such as crashing the client's Explorer.exe with a NULL devmode.
2220 However, other printer drivers can cause the client's spooler service
2221 (spoolsv.exe) to die if the devmode was not created by the driver itself
2222 (i.e. smbd generates a default devmode).
2224 This parameter should be used with care and tested with the printer
2225 driver in question. It is better to leave the device mode to NULL
2226 and let the Windows client set the correct values. Because drivers do not
2227 do this all the time, setting \fBdefault devmode = yes\fR
2228 will instruct smbd to generate a default one.
2230 For more information on Windows NT/2k printing and Device Modes,
2231 see the MSDN documentation <URL:http://msdn.microsoft.com/>.
2233 Default: \fBdefault devmode = no\fR
2235 \fBdefault service (G)\fR
2236 This parameter specifies the name of a service
2237 which will be connected to if the service actually requested cannot
2238 be found. Note that the square brackets are \fBNOT\fR
2239 given in the parameter value (see example below).
2241 There is no default value for this parameter. If this
2242 parameter is not given, attempting to connect to a nonexistent
2243 service results in an error.
2245 Typically the default service would be a \fIguest ok\fR, \fIread-only\fR service.
2247 Also note that the apparent service name will be changed
2248 to equal that of the requested service, this is very useful as it
2249 allows you to use macros like \fI%S\fR to make
2252 Note also that any "_" characters in the name of the service
2253 used in the default service will get mapped to a "/". This allows for
2261 default service = pub
2269 \fBdelete printer command (G)\fR
2270 With the introduction of MS-RPC based printer
2271 support for Windows NT/2000 clients in Samba 2.2, it is now
2272 possible to delete printer at run time by issuing the
2273 DeletePrinter() RPC call.
2275 For a Samba host this means that the printer must be
2276 physically deleted from underlying printing system. The \fI deleteprinter command\fR defines a script to be run which
2277 will perform the necessary operations for removing the printer
2278 from the print system and from \fIsmb.conf\fR.
2280 The \fIdelete printer command\fR is
2281 automatically called with only one parameter: \fI "printer name"\fR.
2283 Once the \fIdelete printer command\fR has
2284 been executed, \fBsmbd\fR will reparse the \fI smb.conf\fR to associated printer no longer exists.
2285 If the sharename is still valid, then \fBsmbd
2286 \fRwill return an ACCESS_DENIED error to the client.
2288 See also \fI add printer command\fR, \fIprinting\fR,
2294 Example: \fBdeleteprinter command = /usr/bin/removeprinter
2296 \fBdelete readonly (S)\fR
2297 This parameter allows readonly files to be deleted.
2298 This is not normal DOS semantics, but is allowed by UNIX.
2300 This option may be useful for running applications such
2301 as rcs, where UNIX file ownership prevents changing file
2302 permissions, and DOS semantics prevent deletion of a read only file.
2304 Default: \fBdelete readonly = no\fR
2306 \fBdelete share command (G)\fR
2307 Samba 2.2.0 introduced the ability to dynamically
2308 add and delete shares via the Windows NT 4.0 Server Manager. The
2309 \fIdelete share command\fR is used to define an
2310 external program or script which will remove an existing service
2311 definition from \fIsmb.conf\fR. In order to successfully
2312 execute the \fIdelete share command\fR, \fBsmbd\fR
2313 requires that the administrator be connected using a root account (i.e.
2316 When executed, \fBsmbd\fR will automatically invoke the
2317 \fIdelete share command\fR with two parameters.
2321 \fIconfigFile\fR - the location
2322 of the global \fIsmb.conf\fR file.
2325 \fIshareName\fR - the name of
2326 the existing service.
2329 This parameter is only used to remove file shares. To delete printer shares,
2330 see the \fIdelete printer
2334 See also \fIadd share
2335 command\fR, \fIchange
2342 Example: \fBdelete share command = /usr/local/bin/delshare\fR
2345 \fBdelete user script (G)\fR
2346 This is the full pathname to a script that will
2347 be run \fBAS ROOT\fR by \fBsmbd(8)\fRunder special circumstances
2350 Normally, a Samba server requires that UNIX users are
2351 created for all users accessing files on this server. For sites
2352 that use Windows NT account databases as their primary user database
2353 creating these users and keeping the user list in sync with the
2354 Windows NT PDC is an onerous task. This option allows \fB smbd\fR to delete the required UNIX users \fBON
2355 DEMAND\fR when a user accesses the Samba server and the
2356 Windows NT user no longer exists.
2358 In order to use this option, \fBsmbd\fR must be
2359 set to \fIsecurity = domain\fR or \fIsecurity =
2360 user\fR and \fIdelete user script\fR
2361 must be set to a full pathname for a script
2362 that will delete a UNIX user given one argument of \fI%u\fR,
2363 which expands into the UNIX user name to delete.
2365 When the Windows user attempts to access the Samba server,
2366 at \fBlogin\fR (session setup in the SMB protocol)
2367 time, \fBsmbd\fR contacts the \fIpassword server\fR and attempts to authenticate
2368 the given user with the given password. If the authentication fails
2369 with the specific Domain error code meaning that the user no longer
2370 exists then \fBsmbd\fR attempts to find a UNIX user in
2371 the UNIX password database that matches the Windows user account. If
2372 this lookup succeeds, and \fIdelete user script\fR is
2373 set then \fBsmbd\fR will all the specified script
2374 \fBAS ROOT\fR, expanding any \fI%u\fR
2375 argument to be the user name to delete.
2377 This script should delete the given UNIX username. In this way,
2378 UNIX users are dynamically deleted to match existing Windows NT
2381 See also security = domain,
2382 \fIpassword server\fR
2383 , \fIadd user script\fR
2386 Default: \fBdelete user script = <empty string>
2388 Example: \fBdelete user script = /usr/local/samba/bin/del_user
2391 \fBdelete veto files (S)\fR
2392 This option is used when Samba is attempting to
2393 delete a directory that contains one or more vetoed directories
2394 (see the \fIveto files\fR
2395 option). If this option is set to false (the default) then if a vetoed
2396 directory contains any non-vetoed files or directories then the
2397 directory delete will fail. This is usually what you want.
2399 If this option is set to true, then Samba
2400 will attempt to recursively delete any files and directories within
2401 the vetoed directory. This can be useful for integration with file
2402 serving systems such as NetAtalk which create meta-files within
2403 directories you might normally veto DOS/Windows users from seeing
2404 (e.g. \fI.AppleDouble\fR)
2406 Setting \fBdelete veto files = yes\fR allows these
2407 directories to be transparently deleted when the parent directory
2408 is deleted (so long as the user has permissions to do so).
2410 See also the \fIveto
2413 Default: \fBdelete veto files = no\fR
2415 \fBdeny hosts (S)\fR
2416 Synonym for \fIhosts
2419 \fBdfree command (G)\fR
2420 The \fIdfree command\fR setting should
2421 only be used on systems where a problem occurs with the internal
2422 disk space calculations. This has been known to happen with Ultrix,
2423 but may occur with other operating systems. The symptom that was
2424 seen was an error of "Abort Retry Ignore" at the end of each
2427 This setting allows the replacement of the internal routines to
2428 calculate the total disk space and amount available with an external
2429 routine. The example below gives a possible script that might fulfill
2432 The external program will be passed a single parameter indicating
2433 a directory in the filesystem being queried. This will typically consist
2434 of the string \fI./\fR. The script should return two
2435 integers in ASCII. The first should be the total disk space in blocks,
2436 and the second should be the number of available blocks. An optional
2437 third return value can give the block size in bytes. The default
2438 blocksize is 1024 bytes.
2440 Note: Your script should \fBNOT\fR be setuid or
2441 setgid and should be owned by (and writeable only by) root!
2443 Default: \fBBy default internal routines for
2444 determining the disk capacity and remaining space will be used.
2446 Example: \fBdfree command = /usr/local/samba/bin/dfree
2448 Where the script dfree (which must be made executable) could be:
2454 df $1 | tail -1 | awk '{print $2" "$4}'
2459 or perhaps (on Sys V based systems):
2465 /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
2470 Note that you may have to replace the command names
2471 with full path names on some systems.
2477 \fBdirectory mask (S)\fR
2478 This parameter is the octal modes which are
2479 used when converting DOS modes to UNIX modes when creating UNIX
2482 When a directory is created, the necessary permissions are
2483 calculated according to the mapping from DOS modes to UNIX permissions,
2484 and the resulting UNIX mode is then bit-wise 'AND'ed with this
2485 parameter. This parameter may be thought of as a bit-wise MASK for
2486 the UNIX modes of a directory. Any bit \fBnot\fR set
2487 here will be removed from the modes set on a directory when it is
2490 The default value of this parameter removes the 'group'
2491 and 'other' write bits from the UNIX mode, allowing only the
2492 user who owns the directory to modify it.
2494 Following this Samba will bit-wise 'OR' the UNIX mode
2495 created from this parameter with the value of the \fIforce directory mode
2496 \fRparameter. This parameter is set to 000 by
2497 default (i.e. no extra mode bits are added).
2499 Note that this parameter does not apply to permissions
2500 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
2501 a mask on access control lists also, they need to set the \fIdirectory security mask\fR.
2504 directory mode\fR parameter to cause particular mode
2505 bits to always be set on created directories.
2507 See also the \fIcreate mode
2508 \fRparameter for masking mode bits on created files,
2509 and the \fIdirectory
2510 security mask\fR parameter.
2512 Also refer to the \fI inherit permissions\fR parameter.
2514 Default: \fBdirectory mask = 0755\fR
2516 Example: \fBdirectory mask = 0775\fR
2518 \fBdirectory mode (S)\fR
2519 Synonym for \fI directory mask\fR
2521 \fBdirectory security mask (S)\fR
2522 This parameter controls what UNIX permission bits
2523 can be modified when a Windows NT client is manipulating the UNIX
2524 permission on a directory using the native NT security dialog
2527 This parameter is applied as a mask (AND'ed with) to
2528 the changed permission bits, thus preventing any bits not in
2529 this mask from being modified. Essentially, zero bits in this
2530 mask may be treated as a set of bits the user is not allowed
2533 If not set explicitly this parameter is set to 0777
2534 meaning a user is allowed to modify all the user/group/world
2535 permissions on a directory.
2537 \fBNote\fR that users who can access the
2538 Samba server through other means can easily bypass this restriction,
2539 so it is primarily useful for standalone "appliance" systems.
2540 Administrators of most normal systems will probably want to leave
2541 it as the default of 0777.
2543 See also the \fI force directory security mode\fR, \fIsecurity mask\fR,
2544 \fIforce security mode
2547 Default: \fBdirectory security mask = 0777\fR
2549 Example: \fBdirectory security mask = 0700\fR
2551 \fBdisable spoolss (G)\fR
2552 Enabling this parameter will disables Samba's support
2553 for the SPOOLSS set of MS-RPC's and will yield identical behavior
2554 as Samba 2.0.x. Windows NT/2000 clients will downgrade to using
2555 Lanman style printing commands. Windows 9x/ME will be uneffected by
2556 the parameter. However, this will also disable the ability to upload
2557 printer drivers to a Samba server via the Windows NT Add Printer
2558 Wizard or by using the NT printer properties dialog window. It will
2559 also disable the capability of Windows NT/2000 clients to download
2560 print drivers from the Samba host upon demand.
2561 \fBBe very careful about enabling this parameter.\fR
2563 See also use client driver
2565 Default : \fBdisable spoolss = no\fR
2568 Specifies that nmbd(8)
2569 when acting as a WINS server and finding that a NetBIOS name has not
2570 been registered, should treat the NetBIOS name word-for-word as a DNS
2571 name and do a lookup with the DNS server for that name on behalf of
2572 the name-querying client.
2574 Note that the maximum length for a NetBIOS name is 15
2575 characters, so the DNS name (or DNS alias) can likewise only be
2576 15 characters, maximum.
2578 \fBnmbd\fR spawns a second copy of itself to do the
2579 DNS name lookup requests, as doing a name lookup is a blocking
2582 See also the parameter \fI wins support\fR.
2584 Default: \fBdns proxy = yes\fR
2586 \fBdomain admin group (G)\fR
2587 This parameter is intended as a temporary solution
2588 to enable users to be a member of the "Domain Admins" group when
2589 a Samba host is acting as a PDC. A complete solution will be provided
2590 by a system for mapping Windows NT/2000 groups onto UNIX groups.
2591 Please note that this parameter has a somewhat confusing name. It
2592 accepts a list of usernames and of group names in standard
2593 \fIsmb.conf\fR notation.
2596 guest group\fR, \fIdomain
2599 Default: \fBno domain administrators\fR
2601 Example: \fBdomain admin group = root @wheel\fR
2603 \fBdomain guest group (G)\fR
2604 This parameter is intended as a temporary solution
2605 to enable users to be a member of the "Domain Guests" group when
2606 a Samba host is acting as a PDC. A complete solution will be provided
2607 by a system for mapping Windows NT/2000 groups onto UNIX groups.
2608 Please note that this parameter has a somewhat confusing name. It
2609 accepts a list of usernames and of group names in standard
2610 \fIsmb.conf\fR notation.
2613 admin group\fR, \fIdomain
2616 Default: \fBno domain guests\fR
2618 Example: \fBdomain guest group = nobody @guest\fR
2620 \fBdomain logons (G)\fR
2621 If set to true, the Samba server will serve
2622 Windows 95/98 Domain logons for the \fIworkgroup\fR it is in. Samba 2.2 also
2623 has limited capability to act as a domain controller for Windows
2624 NT 4 Domains. For more details on setting up this feature see
2625 the Samba-PDC-HOWTO included in the \fIhtmldocs/\fR
2626 directory shipped with the source code.
2628 Default: \fBdomain logons = no\fR
2630 \fBdomain master (G)\fR
2631 Tell \fB nmbd(8)\fRto enable WAN-wide browse list
2632 collation. Setting this option causes \fBnmbd\fR to
2633 claim a special domain specific NetBIOS name that identifies
2634 it as a domain master browser for its given \fIworkgroup\fR. Local master browsers
2635 in the same \fIworkgroup\fR on broadcast-isolated
2636 subnets will give this \fBnmbd\fR their local browse lists,
2637 and then ask \fBsmbd(8)\fR
2638 for a complete copy of the browse list for the whole wide area
2639 network. Browser clients will then contact their local master browser,
2640 and will receive the domain-wide browse list, instead of just the list
2641 for their broadcast-isolated subnet.
2643 Note that Windows NT Primary Domain Controllers expect to be
2644 able to claim this \fIworkgroup\fR specific special
2645 NetBIOS name that identifies them as domain master browsers for
2646 that \fIworkgroup\fR by default (i.e. there is no
2647 way to prevent a Windows NT PDC from attempting to do this). This
2648 means that if this parameter is set and \fBnmbd\fR claims
2649 the special name for a \fIworkgroup\fR before a Windows
2650 NT PDC is able to do so then cross subnet browsing will behave
2651 strangely and may fail.
2653 If \fBdomain logons = yes\fR
2654 , then the default behavior is to enable the \fIdomain
2655 master\fR parameter. If \fIdomain logons\fR is
2656 not enabled (the default setting), then neither will \fIdomain
2657 master\fR be enabled by default.
2659 Default: \fBdomain master = auto\fR
2661 \fBdont descend (S)\fR
2662 There are certain directories on some systems
2663 (e.g., the \fI/proc\fR tree under Linux) that are either not
2664 of interest to clients or are infinitely deep (recursive). This
2665 parameter allows you to specify a comma-delimited list of directories
2666 that the server should always show as empty.
2668 Note that Samba can be very fussy about the exact format
2669 of the "dont descend" entries. For example you may need \fI ./proc\fR instead of just \fI/proc\fR.
2670 Experimentation is the best policy :-)
2672 Default: \fBnone (i.e., all directories are OK
2675 Example: \fBdont descend = /proc,/dev\fR
2677 \fBdos filemode (S)\fR
2678 The default behavior in Samba is to provide
2679 UNIX-like behavior where only the owner of a file/directory is
2680 able to change the permissions on it. However, this behavior
2681 is often confusing to DOS/Windows users. Enabling this parameter
2682 allows a user who has write access to the file (by whatever
2683 means) to modify the permissions on it. Note that a user
2684 belonging to the group owning the file will not be allowed to
2685 change permissions if the group is only granted read access.
2686 Ownership of the file/directory is not changed, only the permissions
2689 Default: \fBdos filemode = no\fR
2691 \fBdos filetime resolution (S)\fR
2692 Under the DOS and Windows FAT filesystem, the finest
2693 granularity on time resolution is two seconds. Setting this parameter
2694 for a share causes Samba to round the reported time down to the
2695 nearest two second boundary when a query call that requires one second
2696 resolution is made to \fBsmbd(8)\fR
2699 This option is mainly used as a compatibility option for Visual
2700 C++ when used against Samba shares. If oplocks are enabled on a
2701 share, Visual C++ uses two different time reading calls to check if a
2702 file has changed since it was last read. One of these calls uses a
2703 one-second granularity, the other uses a two second granularity. As
2704 the two second call rounds any odd second down, then if the file has a
2705 timestamp of an odd number of seconds then the two timestamps will not
2706 match and Visual C++ will keep reporting the file has changed. Setting
2707 this option causes the two timestamps to match, and Visual C++ is
2710 Default: \fBdos filetime resolution = no\fR
2712 \fBdos filetimes (S)\fR
2713 Under DOS and Windows, if a user can write to a
2714 file they can change the timestamp on it. Under POSIX semantics,
2715 only the owner of the file or root may change the timestamp. By
2716 default, Samba runs with POSIX semantics and refuses to change the
2717 timestamp on a file if the user \fBsmbd\fR is acting
2718 on behalf of is not the file owner. Setting this option to true allows DOS semantics and smbdwill change the file
2719 timestamp as DOS requires.
2721 Default: \fBdos filetimes = no\fR
2723 \fBencrypt passwords (G)\fR
2724 This boolean controls whether encrypted passwords
2725 will be negotiated with the client. Note that Windows NT 4.0 SP3 and
2726 above and also Windows 98 will by default expect encrypted passwords
2727 unless a registry entry is changed. To use encrypted passwords in
2728 Samba see the file ENCRYPTION.txt in the Samba documentation
2729 directory \fIdocs/\fR shipped with the source code.
2731 In order for encrypted passwords to work correctly
2732 \fBsmbd(8)\fRmust either
2733 have access to a local \fIsmbpasswd(5)
2734 \fRprogram for information on how to set up
2735 and maintain this file), or set the security = [server|domain] parameter which
2736 causes \fBsmbd\fR to authenticate against another
2739 Default: \fBencrypt passwords = no\fR
2741 \fBenhanced browsing (G)\fR
2742 This option enables a couple of enhancements to
2743 cross-subnet browse propagation that have been added in Samba
2744 but which are not standard in Microsoft implementations.
2746 The first enhancement to browse propagation consists of a regular
2747 wildcard query to a Samba WINS server for all Domain Master Browsers,
2748 followed by a browse synchronization with each of the returned
2749 DMBs. The second enhancement consists of a regular randomised browse
2750 synchronization with all currently known DMBs.
2752 You may wish to disable this option if you have a problem with empty
2753 workgroups not disappearing from browse lists. Due to the restrictions
2754 of the browse protocols these enhancements can cause a empty workgroup
2755 to stay around forever which can be annoying.
2757 In general you should leave this option enabled as it makes
2758 cross-subnet browse propagation much more reliable.
2760 Default: \fBenhanced browsing = yes\fR
2762 \fBenumports command (G)\fR
2763 The concept of a "port" is fairly foreign
2764 to UNIX hosts. Under Windows NT/2000 print servers, a port
2765 is associated with a port monitor and generally takes the form of
2766 a local port (i.e. LPT1:, COM1:, FILE:) or a remote port
2767 (i.e. LPD Port Monitor, etc...). By default, Samba has only one
2768 port defined--"Samba Printer Port". Under
2769 Windows NT/2000, all printers must have a valid port name.
2770 If you wish to have a list of ports displayed (\fBsmbd
2771 \fRdoes not use a port name for anything) other than
2772 the default "Samba Printer Port", you
2773 can define \fIenumports command\fR to point to
2774 a program which should generate a list of ports, one per line,
2775 to standard output. This listing will then be used in response
2776 to the level 1 and 2 EnumPorts() RPC.
2778 Default: \fBno enumports command\fR
2780 Example: \fBenumports command = /usr/bin/listports
2783 This is a synonym for \fIpreexec\fR.
2785 \fBfake directory create times (S)\fR
2786 NTFS and Windows VFAT file systems keep a create
2787 time for all files and directories. This is not the same as the
2788 ctime - status change time - that Unix keeps, so Samba by default
2789 reports the earliest of the various times Unix does keep. Setting
2790 this parameter for a share causes Samba to always report midnight
2791 1-1-1980 as the create time for directories.
2793 This option is mainly used as a compatibility option for
2794 Visual C++ when used against Samba shares. Visual C++ generated
2795 makefiles have the object directory as a dependency for each object
2796 file, and a make rule to create the directory. Also, when NMAKE
2797 compares timestamps it uses the creation time when examining a
2798 directory. Thus the object directory will be created if it does not
2799 exist, but once it does exist it will always have an earlier
2800 timestamp than the object files it contains.
2802 However, Unix time semantics mean that the create time
2803 reported by Samba will be updated whenever a file is created or
2804 or deleted in the directory. NMAKE finds all object files in
2805 the object directory. The timestamp of the last one built is then
2806 compared to the timestamp of the object directory. If the
2807 directory's timestamp if newer, then all object files
2808 will be rebuilt. Enabling this option
2809 ensures directories always predate their contents and an NMAKE build
2810 will proceed as expected.
2812 Default: \fBfake directory create times = no\fR
2814 \fBfake oplocks (S)\fR
2815 Oplocks are the way that SMB clients get permission
2816 from a server to locally cache file operations. If a server grants
2817 an oplock (opportunistic lock) then the client is free to assume
2818 that it is the only one accessing the file and it will aggressively
2819 cache file data. With some oplock types the client may even cache
2820 file open/close operations. This can give enormous performance benefits.
2822 When you set \fBfake oplocks = yes\fR, \fBsmbd(8)\fRwill
2823 always grant oplock requests no matter how many clients are using
2826 It is generally much better to use the real \fIoplocks\fR support rather
2827 than this parameter.
2829 If you enable this option on all read-only shares or
2830 shares that you know will only be accessed from one client at a
2831 time such as physically read-only media like CDROMs, you will see
2832 a big performance improvement on many operations. If you enable
2833 this option on shares where multiple clients may be accessing the
2834 files read-write at the same time you can get data corruption. Use
2835 this option carefully!
2837 Default: \fBfake oplocks = no\fR
2839 \fBfollow symlinks (S)\fR
2840 This parameter allows the Samba administrator
2841 to stop \fBsmbd(8)\fR
2842 from following symbolic links in a particular share. Setting this
2843 parameter to no prevents any file or directory
2844 that is a symbolic link from being followed (the user will get an
2845 error). This option is very useful to stop users from adding a
2846 symbolic link to \fI/etc/passwd\fR in their home
2847 directory for instance. However it will slow filename lookups
2850 This option is enabled (i.e. \fBsmbd\fR will
2851 follow symbolic links) by default.
2853 Default: \fBfollow symlinks = yes\fR
2855 \fBforce create mode (S)\fR
2856 This parameter specifies a set of UNIX mode bit
2857 permissions that will \fBalways\fR be set on a
2858 file created by Samba. This is done by bitwise 'OR'ing these bits onto
2859 the mode bits of a file that is being created or having its
2860 permissions changed. The default for this parameter is (in octal)
2861 000. The modes in this parameter are bitwise 'OR'ed onto the file
2862 mode after the mask set in the \fIcreate mask\fR
2863 parameter is applied.
2865 See also the parameter \fIcreate
2866 mask\fR for details on masking mode bits on files.
2868 See also the \fIinherit
2869 permissions\fR parameter.
2871 Default: \fBforce create mode = 000\fR
2873 Example: \fBforce create mode = 0755\fR
2875 would force all created files to have read and execute
2876 permissions set for 'group' and 'other' as well as the
2877 read/write/execute bits set for the 'user'.
2879 \fBforce directory mode (S)\fR
2880 This parameter specifies a set of UNIX mode bit
2881 permissions that will \fBalways\fR be set on a directory
2882 created by Samba. This is done by bitwise 'OR'ing these bits onto the
2883 mode bits of a directory that is being created. The default for this
2884 parameter is (in octal) 0000 which will not add any extra permission
2885 bits to a created directory. This operation is done after the mode
2886 mask in the parameter \fIdirectory mask\fR is
2889 See also the parameter \fI directory mask\fR for details on masking mode bits
2890 on created directories.
2892 See also the \fI inherit permissions\fR parameter.
2894 Default: \fBforce directory mode = 000\fR
2896 Example: \fBforce directory mode = 0755\fR
2898 would force all created directories to have read and execute
2899 permissions set for 'group' and 'other' as well as the
2900 read/write/execute bits set for the 'user'.
2902 \fBforce directory security mode (S)\fR
2903 This parameter controls what UNIX permission bits
2904 can be modified when a Windows NT client is manipulating the UNIX
2905 permission on a directory using the native NT security dialog box.
2907 This parameter is applied as a mask (OR'ed with) to the
2908 changed permission bits, thus forcing any bits in this mask that
2909 the user may have modified to be on. Essentially, one bits in this
2910 mask may be treated as a set of bits that, when modifying security
2911 on a directory, the user has always set to be 'on'.
2913 If not set explicitly this parameter is 000, which
2914 allows a user to modify all the user/group/world permissions on a
2915 directory without restrictions.
2917 \fBNote\fR that users who can access the
2918 Samba server through other means can easily bypass this restriction,
2919 so it is primarily useful for standalone "appliance" systems.
2920 Administrators of most normal systems will probably want to leave
2923 See also the \fI directory security mask\fR, \fIsecurity mask\fR,
2924 \fIforce security mode
2927 Default: \fBforce directory security mode = 0\fR
2929 Example: \fBforce directory security mode = 700\fR
2931 \fBforce group (S)\fR
2932 This specifies a UNIX group name that will be
2933 assigned as the default primary group for all users connecting
2934 to this service. This is useful for sharing files by ensuring
2935 that all access to files on service will use the named group for
2936 their permissions checking. Thus, by assigning permissions for this
2937 group to the files and directories within this service the Samba
2938 administrator can restrict or allow sharing of these files.
2940 In Samba 2.0.5 and above this parameter has extended
2941 functionality in the following way. If the group name listed here
2942 has a '+' character prepended to it then the current user accessing
2943 the share only has the primary group default assigned to this group
2944 if they are already assigned as a member of that group. This allows
2945 an administrator to decide that only users who are already in a
2946 particular group will create files with group ownership set to that
2947 group. This gives a finer granularity of ownership assignment. For
2948 example, the setting \fIforce group = +sys\fR means
2949 that only users who are already in group sys will have their default
2950 primary group assigned to sys when accessing this Samba share. All
2951 other users will retain their ordinary primary group.
2953 If the \fIforce user
2954 \fRparameter is also set the group specified in
2955 \fIforce group\fR will override the primary group
2956 set in \fIforce user\fR.
2961 Default: \fBno forced group\fR
2963 Example: \fBforce group = agroup\fR
2965 \fBforce security mode (S)\fR
2966 This parameter controls what UNIX permission
2967 bits can be modified when a Windows NT client is manipulating
2968 the UNIX permission on a file using the native NT security dialog
2971 This parameter is applied as a mask (OR'ed with) to the
2972 changed permission bits, thus forcing any bits in this mask that
2973 the user may have modified to be on. Essentially, one bits in this
2974 mask may be treated as a set of bits that, when modifying security
2975 on a file, the user has always set to be 'on'.
2977 If not set explicitly this parameter is set to 0,
2978 and allows a user to modify all the user/group/world permissions on a file,
2979 with no restrictions.
2981 \fBNote\fR that users who can access
2982 the Samba server through other means can easily bypass this restriction,
2983 so it is primarily useful for standalone "appliance" systems.
2984 Administrators of most normal systems will probably want to leave
2987 See also the \fI force directory security mode\fR,
2988 \fIdirectory security
2989 mask\fR, \fI security mask\fR parameters.
2991 Default: \fBforce security mode = 0\fR
2993 Example: \fBforce security mode = 700\fR
2995 \fBforce user (S)\fR
2996 This specifies a UNIX user name that will be
2997 assigned as the default user for all users connecting to this service.
2998 This is useful for sharing files. You should also use it carefully
2999 as using it incorrectly can cause security problems.
3001 This user name only gets used once a connection is established.
3002 Thus clients still need to connect as a valid user and supply a
3003 valid password. Once connected, all file operations will be performed
3004 as the "forced user", no matter what username the client connected
3005 as. This can be very useful.
3007 In Samba 2.0.5 and above this parameter also causes the
3008 primary group of the forced user to be used as the primary group
3009 for all file activity. Prior to 2.0.5 the primary group was left
3010 as the primary group of the connecting user (this was a bug).
3012 See also \fIforce group
3014 Default: \fBno forced user\fR
3016 Example: \fBforce user = auser\fR
3019 This parameter allows the administrator to
3020 configure the string that specifies the type of filesystem a share
3021 is using that is reported by \fBsmbd(8)
3022 \fRwhen a client queries the filesystem type
3023 for a share. The default type is NTFS for
3024 compatibility with Windows NT but this can be changed to other
3025 strings such as Samba or FAT
3028 Default: \fBfstype = NTFS\fR
3030 Example: \fBfstype = Samba\fR
3032 \fBgetwd cache (G)\fR
3033 This is a tuning option. When this is enabled a
3034 caching algorithm will be used to reduce the time taken for getwd()
3035 calls. This can have a significant impact on performance, especially
3036 when the \fIwide links\fR
3037 parameter is set to false.
3039 Default: \fBgetwd cache = yes\fR
3042 Synonym for \fIforce
3045 \fBguest account (S)\fR
3046 This is a username which will be used for access
3047 to services which are specified as \fI guest ok\fR (see below). Whatever privileges this
3048 user has will be available to any client connecting to the guest service.
3049 Typically this user will exist in the password file, but will not
3050 have a valid login. The user account "ftp" is often a good choice
3051 for this parameter. If a username is specified in a given service,
3052 the specified username overrides this one.
3054 One some systems the default guest account "nobody" may not
3055 be able to print. Use another account in this case. You should test
3056 this by trying to log in as your guest user (perhaps by using the
3057 \fBsu -\fR command) and trying to print using the
3058 system print command such as \fBlpr(1)\fR or \fB lp(1)\fR.
3060 Default: \fBspecified at compile time, usually
3063 Example: \fBguest account = ftp\fR
3066 If this parameter is yes for
3067 a service, then no password is required to connect to the service.
3068 Privileges will be those of the \fI guest account\fR.
3070 See the section below on \fI security\fR for more information about this option.
3072 Default: \fBguest ok = no\fR
3074 \fBguest only (S)\fR
3075 If this parameter is yes for
3076 a service, then only guest connections to the service are permitted.
3077 This parameter will have no effect if \fIguest ok\fR is not set for the service.
3079 See the section below on \fI security\fR for more information about this option.
3081 Default: \fBguest only = no\fR
3083 \fBhide dot files (S)\fR
3084 This is a boolean parameter that controls whether
3085 files starting with a dot appear as hidden files.
3087 Default: \fBhide dot files = yes\fR
3090 This is a list of files or directories that are not
3091 visible but are accessible. The DOS 'hidden' attribute is applied
3092 to any files or directories that match.
3094 Each entry in the list must be separated by a '/',
3095 which allows spaces to be included in the entry. '*'
3096 and '?' can be used to specify multiple files or directories
3097 as in DOS wildcards.
3099 Each entry must be a Unix path, not a DOS path and must
3100 not include the Unix directory separator '/'.
3102 Note that the case sensitivity option is applicable
3105 Setting this parameter will affect the performance of Samba,
3106 as it will be forced to check all files and directories for a match
3107 as they are scanned.
3110 dot files\fR, \fI veto files\fR and \fIcase sensitive\fR.
3112 Default: \fBno file are hidden\fR
3114 Example: \fBhide files =
3115 /.*/DesktopFolderDB/TrashFor%m/resource.frk/\fR
3117 The above example is based on files that the Macintosh
3118 SMB client (DAVE) available from
3119 Thursby <URL:http://www.thursby.com> creates for internal use, and also still hides
3120 all files beginning with a dot.
3122 \fBhide local users(G)\fR
3123 This parameter toggles the hiding of local UNIX
3124 users (root, wheel, floppy, etc) from remote clients.
3126 Default: \fBhide local users = no\fR
3128 \fBhide unreadable (S)\fR
3129 This parameter prevents clients from seeing the
3130 existance of files that cannot be read. Defaults to off.
3132 Default: \fBhide unreadable = no\fR
3134 \fBhomedir map (G)\fR
3136 \fRis true, and \fBsmbd(8)\fRis also acting
3137 as a Win95/98 \fIlogon server\fR then this parameter
3138 specifies the NIS (or YP) map from which the server for the user's
3139 home directory should be extracted. At present, only the Sun
3140 auto.home map format is understood. The form of the map is:
3142 \fBusername server:/some/file/system\fR
3144 and the program will extract the servername from before
3145 the first ':'. There should probably be a better parsing system
3146 that copes with different map formats and also Amd (another
3149 \fBNOTE :\fRA working NIS client is required on
3150 the system for this option to work.
3152 See also \fInis homedir\fR
3153 , \fIdomain logons\fR
3156 Default: \fBhomedir map = <empty string>\fR
3158 Example: \fBhomedir map = amd.homedir\fR
3160 \fBhost msdfs (G)\fR
3161 This boolean parameter is only available
3162 if Samba has been configured and compiled with the \fB --with-msdfs\fR option. If set to yes,
3163 Samba will act as a Dfs server, and allow Dfs-aware clients
3164 to browse Dfs trees hosted on the server.
3166 See also the \fI msdfs root\fR share level parameter. For
3167 more information on setting up a Dfs tree on Samba,
3168 refer to msdfs_setup.html.
3170 Default: \fBhost msdfs = no\fR
3172 \fBhosts allow (S)\fR
3173 A synonym for this parameter is \fIallow
3176 This parameter is a comma, space, or tab delimited
3177 set of hosts which are permitted to access a service.
3179 If specified in the [global] section then it will
3180 apply to all services, regardless of whether the individual
3181 service has a different setting.
3183 You can specify the hosts by name or IP number. For
3184 example, you could restrict access to only the hosts on a
3185 Class C subnet with something like \fBallow hosts = 150.203.5.
3186 \fR\&. The full syntax of the list is described in the man
3187 page \fIhosts_access(5)\fR. Note that this man
3188 page may not be present on your system, so a brief description will
3191 Note that the localhost address 127.0.0.1 will always
3192 be allowed access unless specifically denied by a \fIhosts deny\fR option.
3194 You can also specify hosts by network/netmask pairs and
3195 by netgroup names if your system supports netgroups. The
3196 \fBEXCEPT\fR keyword can also be used to limit a
3197 wildcard list. The following examples may provide some help:
3199 Example 1: allow all IPs in 150.203.*.*; except one
3201 \fBhosts allow = 150.203. EXCEPT 150.203.6.66\fR
3203 Example 2: allow hosts that match the given network/netmask
3205 \fBhosts allow = 150.203.15.0/255.255.255.0\fR
3207 Example 3: allow a couple of hosts
3209 \fBhosts allow = lapland, arvidsjaur\fR
3211 Example 4: allow only hosts in NIS netgroup "foonet", but
3212 deny access from one particular host
3214 \fBhosts allow = @foonet\fR
3216 \fBhosts deny = pirate\fR
3218 Note that access still requires suitable user-level passwords.
3220 See \fBtestparm(1)\fR
3221 for a way of testing your host access to see if it does
3224 Default: \fBnone (i.e., all hosts permitted access)
3226 Example: \fBallow hosts = 150.203.5. myhost.mynet.edu.au
3228 \fBhosts deny (S)\fR
3229 The opposite of \fIhosts allow\fR
3230 - hosts listed here are \fBNOT\fR permitted access to
3231 services unless the specific services have their own lists to override
3232 this one. Where the lists conflict, the \fIallow\fR
3233 list takes precedence.
3235 Default: \fBnone (i.e., no hosts specifically excluded)
3237 Example: \fBhosts deny = 150.203.4. badhost.mynet.edu.au
3239 \fBhosts equiv (G)\fR
3240 If this global parameter is a non-null string,
3241 it specifies the name of a file to read for the names of hosts
3242 and users who will be allowed access without specifying a password.
3244 This is not be confused with \fIhosts allow\fR which is about hosts
3245 access to services and is more useful for guest services. \fI hosts equiv\fR may be useful for NT clients which will
3246 not supply passwords to Samba.
3248 \fBNOTE :\fR The use of \fIhosts equiv
3249 \fRcan be a major security hole. This is because you are
3250 trusting the PC to supply the correct username. It is very easy to
3251 get a PC to supply a false username. I recommend that the
3252 \fIhosts equiv\fR option be only used if you really
3253 know what you are doing, or perhaps on a home network where you trust
3254 your spouse and kids. And only if you \fBreally\fR trust
3257 Default: \fBno host equivalences\fR
3259 Example: \fBhosts equiv = /etc/hosts.equiv\fR
3262 This allows you to include one config file
3263 inside another. The file is included literally, as though typed
3266 It takes the standard substitutions, except \fI%u
3267 \fR, \fI%P\fR and \fI%S\fR.
3269 Default: \fBno file included\fR
3271 Example: \fBinclude = /usr/local/samba/lib/admin_smb.conf
3273 \fBinherit permissions (S)\fR
3274 The permissions on new files and directories
3275 are normally governed by \fI create mask\fR, \fIdirectory mask\fR, \fIforce create mode\fR
3277 directory mode\fR but the boolean inherit
3278 permissions parameter overrides this.
3280 New directories inherit the mode of the parent directory,
3281 including bits such as setgid.
3283 New files inherit their read/write bits from the parent
3284 directory. Their execute bits continue to be determined by
3287 and \fImap system\fR
3290 Note that the setuid bit is \fBnever\fR set via
3291 inheritance (the code explicitly prohibits this).
3293 This can be particularly useful on large systems with
3294 many users, perhaps several thousand, to allow a single [homes]
3295 share to be used flexibly by each user.
3297 See also \fIcreate mask
3298 \fR, \fI directory mask\fR, \fIforce create mode\fR and \fIforce directory mode\fR
3301 Default: \fBinherit permissions = no\fR
3303 \fBinterfaces (G)\fR
3304 This option allows you to override the default
3305 network interfaces list that Samba will use for browsing, name
3306 registration and other NBT traffic. By default Samba will query
3307 the kernel for the list of all active interfaces and use any
3308 interfaces except 127.0.0.1 that are broadcast capable.
3310 The option takes a list of interface strings. Each string
3311 can be in any of the following forms:
3315 a network interface name (such as eth0).
3316 This may include shell-like wildcards so eth* will match
3317 any interface starting with the substring "eth"
3320 an IP address. In this case the netmask is
3321 determined from the list of interfaces obtained from the
3328 a broadcast/mask pair.
3331 The "mask" parameters can either be a bit length (such
3332 as 24 for a C class network) or a full netmask in dotted
3336 The "IP" parameters above can either be a full dotted
3337 decimal IP address or a hostname which will be looked up via
3338 the OS's normal hostname resolution mechanisms.
3341 For example, the following line:
3344 \fBinterfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
3347 would configure three network interfaces corresponding
3348 to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10.
3349 The netmasks of the latter two interfaces would be set to 255.255.255.0.
3356 Default: \fBall active interfaces except 127.0.0.1
3357 that are broadcast capable\fR
3360 \fBinvalid users (S)\fR
3361 This is a list of users that should not be allowed
3362 to login to this service. This is really a \fBparanoid\fR
3363 check to absolutely ensure an improper setting does not breach
3366 A name starting with a '@' is interpreted as an NIS
3367 netgroup first (if your system supports NIS), and then as a UNIX
3368 group if the name was not found in the NIS netgroup database.
3370 A name starting with '+' is interpreted only
3371 by looking in the UNIX group database. A name starting with
3372 \&'&' is interpreted only by looking in the NIS netgroup database
3373 (this requires NIS to be working on your system). The characters
3374 \&'+' and '&' may be used at the start of the name in either order
3375 so the value \fI+&group\fR means check the
3376 UNIX group database, followed by the NIS netgroup database, and
3377 the value \fI&+group\fR means check the NIS
3378 netgroup database, followed by the UNIX group database (the
3379 same as the '@' prefix).
3381 The current servicename is substituted for \fI%S\fR.
3382 This is useful in the [homes] section.
3384 See also \fIvalid users
3387 Default: \fBno invalid users\fR
3389 Example: \fBinvalid users = root fred admin @wheel
3392 The value of the parameter (an integer) represents
3393 the number of seconds between \fIkeepalive\fR
3394 packets. If this parameter is zero, no keepalive packets will be
3395 sent. Keepalive packets, if sent, allow the server to tell whether
3396 a client is still present and responding.
3398 Keepalives should, in general, not be needed if the socket
3399 being used has the SO_KEEPALIVE attribute set on it (see \fIsocket options\fR).
3400 Basically you should only use this option if you strike difficulties.
3402 Default: \fBkeepalive = 300\fR
3404 Example: \fBkeepalive = 600\fR
3406 \fBkernel oplocks (G)\fR
3407 For UNIXes that support kernel based \fIoplocks\fR
3408 (currently only IRIX and the Linux 2.4 kernel), this parameter
3409 allows the use of them to be turned on or off.
3411 Kernel oplocks support allows Samba \fIoplocks
3412 \fRto be broken whenever a local UNIX process or NFS operation
3413 accesses a file that \fBsmbd(8)\fR
3414 has oplocked. This allows complete data consistency between
3415 SMB/CIFS, NFS and local file access (and is a \fBvery\fR
3418 This parameter defaults to on, but is translated
3419 to a no-op on systems that no not have the necessary kernel support.
3420 You should never need to touch this parameter.
3422 See also the \fIoplocks\fR
3423 and \fIlevel2 oplocks
3426 Default: \fBkernel oplocks = yes\fR
3428 \fBlanman auth (G)\fR
3429 This parameter determines whether or not smbdwill
3430 attempt to authenticate users using the LANMAN password hash.
3431 If disabled, only clients which support NT password hashes (e.g. Windows
3432 NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS
3433 network client) will be able to connect to the Samba host.
3435 Default : \fBlanman auth = yes\fR
3437 \fBlarge readwrite (G)\fR
3438 This parameter determines whether or not smbd
3439 supports the new 64k streaming read and write varient SMB requests introduced
3440 with Windows 2000. Note that due to Windows 2000 client redirector bugs
3441 this requires Samba to be running on a 64-bit capable operating system such
3442 as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with
3443 Windows 2000 clients. Defaults to off. Not as tested as some other Samba
3446 Default : \fBlarge readwrite = no\fR
3448 \fBldap admin dn (G)\fR
3449 This parameter is only available if Samba has been
3450 configure to include the \fB--with-ldapsam\fR option
3451 at compile time. This option should be considered experimental and
3452 under active development.
3454 The \fIldap admin dn\fR defines the Distinguished
3455 Name (DN) name used by Samba to contact the ldap
3456 server when retreiving user account information. The \fIldap
3457 admin dn\fR is used in conjunction with the admin dn password
3458 stored in the \fIprivate/secrets.tdb\fR file. See the
3459 \fBsmbpasswd(8)\fRman
3460 page for more information on how to accmplish this.
3462 Default : \fBnone\fR
3464 \fBldap filter (G)\fR
3465 This parameter is only available if Samba has been
3466 configure to include the \fB--with-ldapsam\fR option
3467 at compile time. This option should be considered experimental and
3468 under active development.
3470 This parameter specifies the RFC 2254 compliant LDAP search filter.
3471 The default is to match the login name with the uid
3472 attribute for all entries matching the sambaAccount
3473 objectclass. Note that this filter should only return one entry.
3475 Default : \fBldap filter = (&(uid=%u)(objectclass=sambaAccount))\fR
3478 This parameter is only available if Samba has been
3479 configure to include the \fB--with-ldapsam\fR option
3480 at compile time. This option should be considered experimental and
3481 under active development.
3483 This option is used to control the tcp port number used to contact
3484 the \fIldap server\fR.
3485 The default is to use the stand LDAPS port 636.
3489 Default : \fBldap port = 636\fR
3491 \fBldap server (G)\fR
3492 This parameter is only available if Samba has been
3493 configure to include the \fB--with-ldapsam\fR option
3494 at compile time. This option should be considered experimental and
3495 under active development.
3497 This parameter should contains the FQDN of the ldap directory
3498 server which should be queried to locate user account information.
3500 Default : \fBldap server = localhost\fR
3503 This parameter is only available if Samba has been
3504 configure to include the \fB--with-ldapsam\fR option
3505 at compile time. This option should be considered experimental and
3506 under active development.
3508 This option is used to define whether or not Samba should
3509 use SSL when connecting to the \fIldap
3510 server\fR. This is \fBNOT\fR related to
3511 Samba SSL support which is enabled by specifying the
3512 \fB--with-ssl\fR option to the \fIconfigure\fR
3513 script (see \fIssl\fR).
3515 The \fIldap ssl\fR can be set to one of three values:
3516 (a) on - Always use SSL when contacting the
3517 \fIldap server\fR, (b) off -
3518 Never use SSL when querying the directory, or (c) start_tls
3519 - Use the LDAPv3 StartTLS extended operation
3520 (RFC2830) for communicating with the directory server.
3522 Default : \fBldap ssl = on\fR
3524 \fBldap suffix (G)\fR
3525 This parameter is only available if Samba has been
3526 configure to include the \fB--with-ldapsam\fR option
3527 at compile time. This option should be considered experimental and
3528 under active development.
3530 Default : \fBnone\fR
3532 \fBlevel2 oplocks (S)\fR
3533 This parameter controls whether Samba supports
3534 level2 (read-only) oplocks on a share.
3536 Level2, or read-only oplocks allow Windows NT clients
3537 that have an oplock on a file to downgrade from a read-write oplock
3538 to a read-only oplock once a second client opens the file (instead
3539 of releasing all oplocks on a second open, as in traditional,
3540 exclusive oplocks). This allows all openers of the file that
3541 support level2 oplocks to cache the file for read-ahead only (ie.
3542 they may not cache writes or lock requests) and increases performance
3543 for many accesses of files that are not commonly written (such as
3544 application .EXE files).
3546 Once one of the clients which have a read-only oplock
3547 writes to the file all clients are notified (no reply is needed
3548 or waited for) and told to break their oplocks to "none" and
3549 delete any read-ahead caches.
3551 It is recommended that this parameter be turned on
3552 to speed access to shared executables.
3554 For more discussions on level2 oplocks see the CIFS spec.
3556 Currently, if \fIkernel
3557 oplocks\fR are supported then level2 oplocks are
3558 not granted (even if this parameter is set to yes).
3559 Note also, the \fIoplocks\fR
3560 parameter must be set to true on this share in order for
3561 this parameter to have any effect.
3563 See also the \fIoplocks\fR
3564 and \fIkernel oplocks\fR
3567 Default: \fBlevel2 oplocks = yes\fR
3569 \fBlm announce (G)\fR
3570 This parameter determines if \fBnmbd(8)\fRwill produce Lanman announce
3571 broadcasts that are needed by OS/2 clients in order for them to see
3572 the Samba server in their browse list. This parameter can have three
3573 values, true, false, or
3574 auto. The default is auto.
3575 If set to false Samba will never produce these
3576 broadcasts. If set to true Samba will produce
3577 Lanman announce broadcasts at a frequency set by the parameter
3578 \fIlm interval\fR. If set to auto
3579 Samba will not send Lanman announce broadcasts by default but will
3580 listen for them. If it hears such a broadcast on the wire it will
3581 then start sending them at a frequency set by the parameter
3584 See also \fIlm interval
3587 Default: \fBlm announce = auto\fR
3589 Example: \fBlm announce = yes\fR
3591 \fBlm interval (G)\fR
3592 If Samba is set to produce Lanman announce
3593 broadcasts needed by OS/2 clients (see the \fIlm announce\fR parameter) then this
3594 parameter defines the frequency in seconds with which they will be
3595 made. If this is set to zero then no Lanman announcements will be
3596 made despite the setting of the \fIlm announce\fR
3602 Default: \fBlm interval = 60\fR
3604 Example: \fBlm interval = 120\fR
3606 \fBload printers (G)\fR
3607 A boolean variable that controls whether all
3608 printers in the printcap will be loaded for browsing by default.
3609 See the printers section for
3612 Default: \fBload printers = yes\fR
3614 \fBlocal master (G)\fR
3615 This option allows \fB nmbd(8)\fRto try and become a local master browser
3616 on a subnet. If set to false then \fB nmbd\fR will not attempt to become a local master browser
3617 on a subnet and will also lose in all browsing elections. By
3618 default this value is set to true. Setting this value to true doesn't
3619 mean that Samba will \fBbecome\fR the local master
3620 browser on a subnet, just that \fBnmbd\fR will \fB participate\fR in elections for local master browser.
3622 Setting this value to false will cause \fBnmbd\fR
3623 \fBnever\fR to become a local master browser.
3625 Default: \fBlocal master = yes\fR
3628 Synonym for \fI lock directory\fR.
3630 \fBlock directory (G)\fR
3631 This option specifies the directory where lock
3632 files will be placed. The lock files are used to implement the
3633 \fImax connections\fR
3636 Default: \fBlock directory = ${prefix}/var/locks\fR
3638 Example: \fBlock directory = /var/run/samba/locks\fR
3641 This controls whether or not locking will be
3642 performed by the server in response to lock requests from the
3645 If \fBlocking = no\fR, all lock and unlock
3646 requests will appear to succeed and all lock queries will report
3647 that the file in question is available for locking.
3649 If \fBlocking = yes\fR, real locking will be performed
3652 This option \fBmay\fR be useful for read-only
3653 filesystems which \fBmay\fR not need locking (such as
3654 CDROM drives), although setting this parameter of no
3655 is not really recommended even in this case.
3657 Be careful about disabling locking either globally or in a
3658 specific service, as lack of locking may result in data corruption.
3659 You should never need to set this parameter.
3661 Default: \fBlocking = yes\fR
3664 This option allows you to override the name
3665 of the Samba log file (also known as the debug file).
3667 This option takes the standard substitutions, allowing
3668 you to have separate log files for each user or machine.
3670 Example: \fBlog file = /usr/local/samba/var/log.%m
3673 The value of the parameter (an integer) allows
3674 the debug level (logging level) to be specified in the
3675 \fIsmb.conf\fR file. This is to give greater
3676 flexibility in the configuration of the system.
3678 The default will be the log level specified on
3679 the command line or level zero if none was specified.
3681 Example: \fBlog level = 3\fR
3683 \fBlogon drive (G)\fR
3684 This parameter specifies the local path to
3685 which the home directory will be connected (see \fIlogon home\fR)
3686 and is only used by NT Workstations.
3688 Note that this option is only useful if Samba is set up as a
3691 Default: \fBlogon drive = z:\fR
3693 Example: \fBlogon drive = h:\fR
3695 \fBlogon home (G)\fR
3696 This parameter specifies the home directory
3697 location when a Win95/98 or NT Workstation logs into a Samba PDC.
3700 C:\\> \fBNET USE H: /HOME\fR
3702 from a command prompt, for example.
3704 This option takes the standard substitutions, allowing
3705 you to have separate logon scripts for each user or machine.
3707 This parameter can be used with Win9X workstations to ensure
3708 that roaming profiles are stored in a subdirectory of the user's
3709 home directory. This is done in the following way:
3711 \fBlogon home = \\\\%N\\%U\\profile\fR
3713 This tells Samba to return the above string, with
3714 substitutions made when a client requests the info, generally
3715 in a NetUserGetInfo request. Win9X clients truncate the info to
3716 \\\\server\\share when a user does \fBnet use /home\fR
3717 but use the whole string when dealing with profiles.
3719 Note that in prior versions of Samba, the \fIlogon path\fR was returned rather than
3720 \fIlogon home\fR. This broke \fBnet use
3721 /home\fR but allowed profiles outside the home directory.
3722 The current implementation is correct, and can be used for
3723 profiles if you use the above trick.
3725 This option is only useful if Samba is set up as a logon
3728 Default: \fBlogon home = "\\\\%N\\%U"\fR
3730 Example: \fBlogon home = "\\\\remote_smb_server\\%U"\fR
3732 \fBlogon path (G)\fR
3733 This parameter specifies the home directory
3734 where roaming profiles (NTuser.dat etc files for Windows NT) are
3735 stored. Contrary to previous versions of these manual pages, it has
3736 nothing to do with Win 9X roaming profiles. To find out how to
3737 handle roaming profiles for Win 9X system, see the \fIlogon home\fR parameter.
3739 This option takes the standard substitutions, allowing you
3740 to have separate logon scripts for each user or machine. It also
3741 specifies the directory from which the "Application Data",
3742 (\fIdesktop\fR, \fIstart menu\fR,
3743 \fInetwork neighborhood\fR, \fIprograms\fR
3744 and other folders, and their contents, are loaded and displayed on
3745 your Windows NT client.
3747 The share and the path must be readable by the user for
3748 the preferences and directories to be loaded onto the Windows NT
3749 client. The share must be writeable when the user logs in for the first
3750 time, in order that the Windows NT client can create the NTuser.dat
3751 and other directories.
3753 Thereafter, the directories and any of the contents can,
3754 if required, be made read-only. It is not advisable that the
3755 NTuser.dat file be made read-only - rename it to NTuser.man to
3756 achieve the desired effect (a \fBMAN\fRdatory
3759 Windows clients can sometimes maintain a connection to
3760 the [homes] share, even though there is no user logged in.
3761 Therefore, it is vital that the logon path does not include a
3762 reference to the homes share (i.e. setting this parameter to
3763 \\%N\\%U\\profile_path will cause problems).
3765 This option takes the standard substitutions, allowing
3766 you to have separate logon scripts for each user or machine.
3768 Note that this option is only useful if Samba is set up
3771 Default: \fBlogon path = \\\\%N\\%U\\profile\fR
3773 Example: \fBlogon path = \\\\PROFILESERVER\\PROFILE\\%U\fR
3775 \fBlogon script (G)\fR
3776 This parameter specifies the batch file (.bat) or
3777 NT command file (.cmd) to be downloaded and run on a machine when
3778 a user successfully logs in. The file must contain the DOS
3779 style CR/LF line endings. Using a DOS-style editor to create the
3780 file is recommended.
3782 The script must be a relative path to the [netlogon]
3783 service. If the [netlogon] service specifies a \fIpath\fR of \fI/usr/local/samba/netlogon
3784 \fR, and \fBlogon script = STARTUP.BAT\fR, then
3785 the file that will be downloaded is:
3787 \fI/usr/local/samba/netlogon/STARTUP.BAT\fR
3789 The contents of the batch file are entirely your choice. A
3790 suggested command would be to add \fBNET TIME \\\\SERVER /SET
3791 /YES\fR, to force every machine to synchronize clocks with
3792 the same time server. Another use would be to add \fBNET USE
3793 U: \\\\SERVER\\UTILS\fR for commonly used utilities, or \fB NET USE Q: \\\\SERVER\\ISO9001_QA\fR for example.
3795 Note that it is particularly important not to allow write
3796 access to the [netlogon] share, or to grant users write permission
3797 on the batch files in a secure environment, as this would allow
3798 the batch files to be arbitrarily modified and security to be
3801 This option takes the standard substitutions, allowing you
3802 to have separate logon scripts for each user or machine.
3804 This option is only useful if Samba is set up as a logon
3807 Default: \fBno logon script defined\fR
3809 Example: \fBlogon script = scripts\\%U.bat\fR
3811 \fBlppause command (S)\fR
3812 This parameter specifies the command to be
3813 executed on the server host in order to stop printing or spooling
3814 a specific print job.
3816 This command should be a program or script which takes
3817 a printer name and job number to pause the print job. One way
3818 of implementing this is by using job priorities, where jobs
3819 having a too low priority won't be sent to the printer.
3821 If a \fI%p\fR is given then the printer name
3822 is put in its place. A \fI%j\fR is replaced with
3823 the job number (an integer). On HPUX (see \fIprinting=hpux
3824 \fR), if the \fI-p%p\fR option is added
3825 to the lpq command, the job will show up with the correct status, i.e.
3826 if the job priority is lower than the set fence priority it will
3827 have the PAUSED status, whereas if the priority is equal or higher it
3828 will have the SPOOLED or PRINTING status.
3830 Note that it is good practice to include the absolute path
3831 in the lppause command as the PATH may not be available to the server.
3833 See also the \fIprinting
3836 Default: Currently no default value is given to
3837 this string, unless the value of the \fIprinting\fR
3838 parameter is SYSV, in which case the default is :
3840 \fBlp -i %p-%j -H hold\fR
3842 or if the value of the \fIprinting\fR parameter
3843 is SOFTQ, then the default is:
3845 \fBqstat -s -j%j -h\fR
3847 Example for HPUX: \fBlppause command = /usr/bin/lpalt
3850 \fBlpq cache time (G)\fR
3851 This controls how long lpq info will be cached
3852 for to prevent the \fBlpq\fR command being called too
3853 often. A separate cache is kept for each variation of the \fB lpq\fR command used by the system, so if you use different
3854 \fBlpq\fR commands for different users then they won't
3855 share cache information.
3857 The cache files are stored in \fI/tmp/lpq.xxxx\fR
3858 where xxxx is a hash of the \fBlpq\fR command in use.
3860 The default is 10 seconds, meaning that the cached results
3861 of a previous identical \fBlpq\fR command will be used
3862 if the cached data is less than 10 seconds old. A large value may
3863 be advisable if your \fBlpq\fR command is very slow.
3865 A value of 0 will disable caching completely.
3867 See also the \fIprinting
3870 Default: \fBlpq cache time = 10\fR
3872 Example: \fBlpq cache time = 30\fR
3874 \fBlpq command (S)\fR
3875 This parameter specifies the command to be
3876 executed on the server host in order to obtain \fBlpq
3877 \fR-style printer status information.
3879 This command should be a program or script which
3880 takes a printer name as its only parameter and outputs printer
3883 Currently eight styles of printer status information
3884 are supported; BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX and SOFTQ.
3885 This covers most UNIX systems. You control which type is expected
3886 using the \fIprinting =\fR option.
3888 Some clients (notably Windows for Workgroups) may not
3889 correctly send the connection number for the printer they are
3890 requesting status information about. To get around this, the
3891 server reports on the first printer service connected to by the
3892 client. This only happens if the connection number sent is invalid.
3894 If a \fI%p\fR is given then the printer name
3895 is put in its place. Otherwise it is placed at the end of the
3898 Note that it is good practice to include the absolute path
3899 in the \fIlpq command\fR as the \fB$PATH
3900 \fRmay not be available to the server.
3902 See also the \fIprinting
3905 Default: \fBdepends on the setting of \fI printing\fB\fR
3907 Example: \fBlpq command = /usr/bin/lpq -P%p\fR
3909 \fBlpresume command (S)\fR
3910 This parameter specifies the command to be
3911 executed on the server host in order to restart or continue
3912 printing or spooling a specific print job.
3914 This command should be a program or script which takes
3915 a printer name and job number to resume the print job. See
3916 also the \fIlppause command
3919 If a \fI%p\fR is given then the printer name
3920 is put in its place. A \fI%j\fR is replaced with
3921 the job number (an integer).
3923 Note that it is good practice to include the absolute path
3924 in the \fIlpresume command\fR as the PATH may not
3925 be available to the server.
3927 See also the \fIprinting
3930 Default: Currently no default value is given
3931 to this string, unless the value of the \fIprinting\fR
3932 parameter is SYSV, in which case the default is :
3934 \fBlp -i %p-%j -H resume\fR
3936 or if the value of the \fIprinting\fR parameter
3937 is SOFTQ, then the default is:
3939 \fBqstat -s -j%j -r\fR
3941 Example for HPUX: \fBlpresume command = /usr/bin/lpalt
3944 \fBlprm command (S)\fR
3945 This parameter specifies the command to be
3946 executed on the server host in order to delete a print job.
3948 This command should be a program or script which takes
3949 a printer name and job number, and deletes the print job.
3951 If a \fI%p\fR is given then the printer name
3952 is put in its place. A \fI%j\fR is replaced with
3953 the job number (an integer).
3955 Note that it is good practice to include the absolute
3956 path in the \fIlprm command\fR as the PATH may not be
3957 available to the server.
3959 See also the \fIprinting
3962 Default: \fBdepends on the setting of \fIprinting
3964 Example 1: \fBlprm command = /usr/bin/lprm -P%p %j
3966 Example 2: \fBlprm command = /usr/bin/cancel %p-%j
3968 \fBmachine password timeout (G)\fR
3969 If a Samba server is a member of a Windows
3970 NT Domain (see the security = domain)
3971 parameter) then periodically a running smbd(8)process will try and change the MACHINE ACCOUNT
3972 PASSWORD stored in the TDB called \fIprivate/secrets.tdb
3973 \fR\&. This parameter specifies how often this password
3974 will be changed, in seconds. The default is one week (expressed in
3975 seconds), the same as a Windows NT Domain member server.
3977 See also \fBsmbpasswd(8)
3978 \fR, and the security = domain) parameter.
3980 Default: \fBmachine password timeout = 604800\fR
3982 \fBmagic output (S)\fR
3983 This parameter specifies the name of a file
3984 which will contain output created by a magic script (see the
3988 Warning: If two clients use the same \fImagic script
3989 \fRin the same directory the output file content
3992 Default: \fBmagic output = <magic script name>.out
3994 Example: \fBmagic output = myfile.txt\fR
3996 \fBmagic script (S)\fR
3997 This parameter specifies the name of a file which,
3998 if opened, will be executed by the server when the file is closed.
3999 This allows a UNIX script to be sent to the Samba host and
4000 executed on behalf of the connected user.
4002 Scripts executed in this way will be deleted upon
4003 completion assuming that the user has the appropriate level
4004 of privilege and the file permissions allow the deletion.
4006 If the script generates output, output will be sent to
4007 the file specified by the \fI magic output\fR parameter (see above).
4009 Note that some shells are unable to interpret scripts
4010 containing CR/LF instead of CR as
4011 the end-of-line marker. Magic scripts must be executable
4012 \fBas is\fR on the host, which for some hosts and
4013 some shells will require filtering at the DOS end.
4015 Magic scripts are \fBEXPERIMENTAL\fR and
4016 should \fBNOT\fR be relied upon.
4018 Default: \fBNone. Magic scripts disabled.\fR
4020 Example: \fBmagic script = user.csh\fR
4022 \fBmangle case (S)\fR
4023 See the section on NAME MANGLING
4025 Default: \fBmangle case = no\fR
4027 \fBmangled map (S)\fR
4028 This is for those who want to directly map UNIX
4029 file names which cannot be represented on Windows/DOS. The mangling
4030 of names is not always what is needed. In particular you may have
4031 documents with file extensions that differ between DOS and UNIX.
4032 For example, under UNIX it is common to use \fI.html\fR
4033 for HTML files, whereas under Windows/DOS \fI.htm\fR
4034 is more commonly used.
4036 So to map \fIhtml\fR to \fIhtm\fR
4039 \fBmangled map = (*.html *.htm)\fR
4041 One very useful case is to remove the annoying \fI;1
4042 \fRoff the ends of filenames on some CDROMs (only visible
4043 under some UNIXes). To do this use a map of (*;1 *;).
4045 Default: \fBno mangled map\fR
4047 Example: \fBmangled map = (*;1 *;)\fR
4049 \fBmangled names (S)\fR
4050 This controls whether non-DOS names under UNIX
4051 should be mapped to DOS-compatible names ("mangled") and made visible,
4052 or whether non-DOS names should simply be ignored.
4054 See the section on NAME MANGLING for details on how to control the mangling process.
4056 If mangling is used then the mangling algorithm is as follows:
4060 The first (up to) five alphanumeric characters
4061 before the rightmost dot of the filename are preserved, forced
4062 to upper case, and appear as the first (up to) five characters
4063 of the mangled name.
4066 A tilde "~" is appended to the first part of the mangled
4067 name, followed by a two-character unique sequence, based on the
4068 original root name (i.e., the original filename minus its final
4069 extension). The final extension is included in the hash calculation
4070 only if it contains any upper case characters or is longer than three
4073 Note that the character to use may be specified using
4074 the \fImangling char\fR
4075 option, if you don't like '~'.
4078 The first three alphanumeric characters of the final
4079 extension are preserved, forced to upper case and appear as the
4080 extension of the mangled name. The final extension is defined as that
4081 part of the original filename after the rightmost dot. If there are no
4082 dots in the filename, the mangled name will have no extension (except
4083 in the case of "hidden files" - see below).
4086 Files whose UNIX name begins with a dot will be
4087 presented as DOS hidden files. The mangled name will be created as
4088 for other filenames, but with the leading dot removed and "___" as
4089 its extension regardless of actual original extension (that's three
4093 The two-digit hash value consists of upper case
4094 alphanumeric characters.
4097 This algorithm can cause name collisions only if files
4098 in a directory share the same first five alphanumeric characters.
4099 The probability of such a clash is 1/1300.
4102 The name mangling (if enabled) allows a file to be
4103 copied between UNIX directories from Windows/DOS while retaining
4104 the long UNIX filename. UNIX files can be renamed to a new extension
4105 from Windows/DOS and will retain the same basename. Mangled names
4106 do not change between sessions.
4109 Default: \fBmangled names = yes\fR
4112 \fBmangled stack (G)\fR
4113 This parameter controls the number of mangled names
4114 that should be cached in the Samba server smbd(8).
4116 This stack is a list of recently mangled base names
4117 (extensions are only maintained if they are longer than 3 characters
4118 or contains upper case characters).
4120 The larger this value, the more likely it is that mangled
4121 names can be successfully converted to correct long UNIX names.
4122 However, large stack sizes will slow most directory accesses. Smaller
4123 stacks save memory in the server (each stack element costs 256 bytes).
4125 It is not possible to absolutely guarantee correct long
4126 filenames, so be prepared for some surprises!
4128 Default: \fBmangled stack = 50\fR
4130 Example: \fBmangled stack = 100\fR
4132 \fBmangling char (S)\fR
4133 This controls what character is used as
4134 the \fBmagic\fR character in name mangling. The default is a '~'
4135 but this may interfere with some software. Use this option to set
4136 it to whatever you prefer.
4138 Default: \fBmangling char = ~\fR
4140 Example: \fBmangling char = ^\fR
4142 \fBmap archive (S)\fR
4143 This controls whether the DOS archive attribute
4144 should be mapped to the UNIX owner execute bit. The DOS archive bit
4145 is set when a file has been modified since its last backup. One
4146 motivation for this option it to keep Samba/your PC from making
4147 any file it touches from becoming executable under UNIX. This can
4148 be quite annoying for shared source code, documents, etc...
4150 Note that this requires the \fIcreate mask\fR
4151 parameter to be set such that owner execute bit is not masked out
4152 (i.e. it must include 100). See the parameter \fIcreate mask\fR for details.
4154 Default: \fBmap archive = yes\fR
4156 \fBmap hidden (S)\fR
4157 This controls whether DOS style hidden files
4158 should be mapped to the UNIX world execute bit.
4160 Note that this requires the \fIcreate mask\fR
4161 to be set such that the world execute bit is not masked out (i.e.
4162 it must include 001). See the parameter \fIcreate mask\fR for details.
4164 Default: \fBmap hidden = no\fR
4166 \fBmap system (S)\fR
4167 This controls whether DOS style system files
4168 should be mapped to the UNIX group execute bit.
4170 Note that this requires the \fIcreate mask\fR
4171 to be set such that the group execute bit is not masked out (i.e.
4172 it must include 010). See the parameter \fIcreate mask\fR for details.
4174 Default: \fBmap system = no\fR
4176 \fBmap to guest (G)\fR
4177 This parameter is only useful in security modes other than \fIsecurity = share\fR
4178 - i.e. user, server,
4181 This parameter can take three different values, which tell
4182 smbd(8)what to do with user
4183 login requests that don't match a valid UNIX user in some way.
4185 The three settings are :
4189 Never - Means user login
4190 requests with an invalid password are rejected. This is the
4194 Bad User - Means user
4195 logins with an invalid password are rejected, unless the username
4196 does not exist, in which case it is treated as a guest login and
4197 mapped into the \fI guest account\fR.
4200 Bad Password - Means user logins
4201 with an invalid password are treated as a guest login and mapped
4202 into the guest account. Note that
4203 this can cause problems as it means that any user incorrectly typing
4204 their password will be silently logged on as "guest" - and
4205 will not know the reason they cannot access files they think
4206 they should - there will have been no message given to them
4207 that they got their password wrong. Helpdesk services will
4208 \fBhate\fR you if you set the \fImap to
4209 guest\fR parameter this way :-).
4212 Note that this parameter is needed to set up "Guest"
4213 share services when using \fIsecurity\fR modes other than
4214 share. This is because in these modes the name of the resource being
4215 requested is \fBnot\fR sent to the server until after
4216 the server has successfully authenticated the client so the server
4217 cannot make authentication decisions at the correct time (connection
4218 to the share) for "Guest" shares.
4221 For people familiar with the older Samba releases, this
4222 parameter maps to the old compile-time setting of the GUEST_SESSSETUP value in local.h.
4225 Default: \fBmap to guest = Never\fR
4228 Example: \fBmap to guest = Bad User\fR
4231 \fBmax connections (S)\fR
4232 This option allows the number of simultaneous
4233 connections to a service to be limited. If \fImax connections
4234 \fRis greater than 0 then connections will be refused if
4235 this number of connections to the service are already open. A value
4236 of zero mean an unlimited number of connections may be made.
4238 Record lock files are used to implement this feature. The
4239 lock files will be stored in the directory specified by the \fIlock directory\fR
4242 Default: \fBmax connections = 0\fR
4244 Example: \fBmax connections = 10\fR
4246 \fBmax disk size (G)\fR
4247 This option allows you to put an upper limit
4248 on the apparent size of disks. If you set this option to 100
4249 then all shares will appear to be not larger than 100 MB in
4252 Note that this option does not limit the amount of
4253 data you can put on the disk. In the above case you could still
4254 store much more than 100 MB on the disk, but if a client ever asks
4255 for the amount of free disk space or the total disk size then the
4256 result will be bounded by the amount specified in \fImax
4259 This option is primarily useful to work around bugs
4260 in some pieces of software that can't handle very large disks,
4261 particularly disks over 1GB in size.
4263 A \fImax disk size\fR of 0 means no limit.
4265 Default: \fBmax disk size = 0\fR
4267 Example: \fBmax disk size = 1000\fR
4269 \fBmax log size (G)\fR
4270 This option (an integer in kilobytes) specifies
4271 the max size the log file should grow to. Samba periodically checks
4272 the size and if it is exceeded it will rename the file, adding
4273 a \fI.old\fR extension.
4275 A size of 0 means no limit.
4277 Default: \fBmax log size = 5000\fR
4279 Example: \fBmax log size = 1000\fR
4282 This option controls the maximum number of
4283 outstanding simultaneous SMB operations that Samba tells the client
4284 it will allow. You should never need to set this parameter.
4286 Default: \fBmax mux = 50\fR
4288 \fBmax open files (G)\fR
4289 This parameter limits the maximum number of
4290 open files that one smbd(8)file
4291 serving process may have open for a client at any one time. The
4292 default for this parameter is set very high (10,000) as Samba uses
4293 only one bit per unopened file.
4295 The limit of the number of open files is usually set
4296 by the UNIX per-process file descriptor limit rather than
4297 this parameter so you should never need to touch this parameter.
4299 Default: \fBmax open files = 10000\fR
4301 \fBmax print jobs (S)\fR
4302 This parameter limits the maximum number of
4303 jobs allowable in a Samba printer queue at any given moment.
4304 If this number is exceeded, \fB smbd(8)\fRwill remote "Out of Space" to the client.
4308 Default: \fBmax print jobs = 1000\fR
4310 Example: \fBmax print jobs = 5000\fR
4312 \fBmax protocol (G)\fR
4313 The value of the parameter (a string) is the highest
4314 protocol level that will be supported by the server.
4316 Possible values are :
4320 CORE: Earliest version. No
4321 concept of user names.
4324 COREPLUS: Slight improvements on
4325 CORE for efficiency.
4328 LANMAN1: First \fB modern\fR version of the protocol. Long filename
4332 LANMAN2: Updates to Lanman1 protocol.
4335 NT1: Current up to date version of
4336 the protocol. Used by Windows NT. Known as CIFS.
4339 Normally this option should not be set as the automatic
4340 negotiation phase in the SMB protocol takes care of choosing
4341 the appropriate protocol.
4348 Default: \fBmax protocol = NT1\fR
4351 Example: \fBmax protocol = LANMAN1\fR
4354 \fBmax smbd processes (G)\fR
4355 This parameter limits the maximum number of
4357 processes concurrently running on a system and is intended
4358 as a stopgap to prevent degrading service to clients in the event
4359 that the server has insufficient resources to handle more than this
4360 number of connections. Remember that under normal operating
4361 conditions, each user will have an smbdassociated with him or her
4362 to handle connections to all shares from a given host.
4364 Default: \fBmax smbd processes = 0\fR ## no limit
4366 Example: \fBmax smbd processes = 1000\fR
4369 This option tells nmbd(8)
4370 what the default 'time to live' of NetBIOS names should be (in seconds)
4371 when \fBnmbd\fR is requesting a name using either a
4372 broadcast packet or from a WINS server. You should never need to
4373 change this parameter. The default is 3 days.
4375 Default: \fBmax ttl = 259200\fR
4377 \fBmax wins ttl (G)\fR
4378 This option tells nmbd(8)
4379 when acting as a WINS server ( \fIwins support = yes\fR) what the maximum
4380 \&'time to live' of NetBIOS names that \fBnmbd\fR
4381 will grant will be (in seconds). You should never need to change this
4382 parameter. The default is 6 days (518400 seconds).
4385 wins ttl\fR parameter.
4387 Default: \fBmax wins ttl = 518400\fR
4390 This option controls the maximum packet size
4391 that will be negotiated by Samba. The default is 65535, which
4392 is the maximum. In some cases you may find you get better performance
4393 with a smaller value. A value below 2048 is likely to cause problems.
4395 Default: \fBmax xmit = 65535\fR
4397 Example: \fBmax xmit = 8192\fR
4399 \fBmessage command (G)\fR
4400 This specifies what command to run when the
4401 server receives a WinPopup style message.
4403 This would normally be a command that would
4404 deliver the message somehow. How this is to be done is
4405 up to your imagination.
4409 \fBmessage command = csh -c 'xedit %s;rm %s' &\fR
4411 This delivers the message using \fBxedit\fR, then
4412 removes it afterwards. \fBNOTE THAT IT IS VERY IMPORTANT
4413 THAT THIS COMMAND RETURN IMMEDIATELY\fR. That's why I
4414 have the '&' on the end. If it doesn't return immediately then
4415 your PCs may freeze when sending messages (they should recover
4416 after 30 seconds, hopefully).
4418 All messages are delivered as the global guest user.
4419 The command takes the standard substitutions, although \fI %u\fR won't work (\fI%U\fR may be better
4422 Apart from the standard substitutions, some additional
4423 ones apply. In particular:
4427 \fI%s\fR = the filename containing
4431 \fI%t\fR = the destination that
4432 the message was sent to (probably the server name).
4435 \fI%f\fR = who the message
4439 You could make this command send mail, or whatever else
4440 takes your fancy. Please let us know of any really interesting
4444 Here's a way of sending the messages as mail to root:
4447 \fBmessage command = /bin/mail -s 'message from %f on
4448 %m' root < %s; rm %s\fR
4451 If you don't have a message command then the message
4452 won't be delivered and Samba will tell the sender there was
4453 an error. Unfortunately WfWg totally ignores the error code
4454 and carries on regardless, saying that the message was delivered.
4457 If you want to silently delete it then try:
4460 \fBmessage command = rm %s\fR
4463 Default: \fBno message command\fR
4466 Example: \fBmessage command = csh -c 'xedit %s;
4470 \fBmin passwd length (G)\fR
4471 Synonym for \fImin password length\fR.
4473 \fBmin password length (G)\fR
4474 This option sets the minimum length in characters
4475 of a plaintext password that \fBsmbd\fR will accept when performing
4476 UNIX password changing.
4479 password sync\fR, \fIpasswd program\fR and \fIpasswd chat debug\fR
4482 Default: \fBmin password length = 5\fR
4484 \fBmin print space (S)\fR
4485 This sets the minimum amount of free disk
4486 space that must be available before a user will be able to spool
4487 a print job. It is specified in kilobytes. The default is 0, which
4488 means a user can always spool a print job.
4490 See also the \fIprinting
4493 Default: \fBmin print space = 0\fR
4495 Example: \fBmin print space = 2000\fR
4497 \fBmin protocol (G)\fR
4498 The value of the parameter (a string) is the
4499 lowest SMB protocol dialect than Samba will support. Please refer
4500 to the \fImax protocol\fR
4501 parameter for a list of valid protocol names and a brief description
4502 of each. You may also wish to refer to the C source code in
4503 \fIsource/smbd/negprot.c\fR for a listing of known protocol
4504 dialects supported by clients.
4506 If you are viewing this parameter as a security measure, you should
4507 also refer to the \fIlanman
4508 auth\fR parameter. Otherwise, you should never need
4509 to change this parameter.
4511 Default : \fBmin protocol = CORE\fR
4513 Example : \fBmin protocol = NT1\fR # disable DOS
4516 \fBmin wins ttl (G)\fR
4517 This option tells nmbd(8)
4518 when acting as a WINS server (\fI wins support = yes\fR) what the minimum 'time to live'
4519 of NetBIOS names that \fBnmbd\fR will grant will be (in
4520 seconds). You should never need to change this parameter. The default
4521 is 6 hours (21600 seconds).
4523 Default: \fBmin wins ttl = 21600\fR
4525 \fBmsdfs root (S)\fR
4526 This boolean parameter is only available if
4527 Samba is configured and compiled with the \fB --with-msdfs\fR option. If set to yes,
4528 Samba treats the share as a Dfs root and allows clients to browse
4529 the distributed file system tree rooted at the share directory.
4530 Dfs links are specified in the share directory by symbolic
4531 links of the form \fImsdfs:serverA\\shareA,serverB\\shareB
4532 \fRand so on. For more information on setting up a Dfs tree
4533 on Samba, refer to msdfs_setup.html
4536 See also \fIhost msdfs
4538 Default: \fBmsdfs root = no\fR
4540 \fBname resolve order (G)\fR
4541 This option is used by the programs in the Samba
4542 suite to determine what naming services to use and in what order
4543 to resolve host names to IP addresses. The option takes a space
4544 separated string of name resolution options.
4546 The options are :"lmhosts", "host", "wins" and "bcast". They
4547 cause names to be resolved as follows :
4551 lmhosts : Lookup an IP
4552 address in the Samba lmhosts file. If the line in lmhosts has
4553 no name type attached to the NetBIOS name (see the lmhosts(5)for details) then
4554 any name type matches for lookup.
4557 host : Do a standard host
4558 name to IP address resolution, using the system \fI/etc/hosts
4559 \fR, NIS, or DNS lookups. This method of name resolution
4560 is operating system depended for instance on IRIX or Solaris this
4561 may be controlled by the \fI/etc/nsswitch.conf\fR
4562 file. Note that this method is only used if the NetBIOS name
4563 type being queried is the 0x20 (server) name type, otherwise
4567 wins : Query a name with
4568 the IP address listed in the \fI wins server\fR parameter. If no WINS server has
4569 been specified this method will be ignored.
4572 bcast : Do a broadcast on
4573 each of the known local interfaces listed in the \fIinterfaces\fR
4574 parameter. This is the least reliable of the name resolution
4575 methods as it depends on the target host being on a locally
4579 Default: \fBname resolve order = lmhosts host wins bcast
4582 Example: \fBname resolve order = lmhosts bcast host
4585 This will cause the local lmhosts file to be examined
4586 first, followed by a broadcast attempt, followed by a normal
4587 system hostname lookup.
4590 \fBnetbios aliases (G)\fR
4591 This is a list of NetBIOS names that nmbd(8)will advertise as additional
4592 names by which the Samba server is known. This allows one machine
4593 to appear in browse lists under multiple names. If a machine is
4594 acting as a browse server or logon server none
4595 of these names will be advertised as either browse server or logon
4596 servers, only the primary name of the machine will be advertised
4597 with these capabilities.
4602 Default: \fBempty string (no additional names)\fR
4604 Example: \fBnetbios aliases = TEST TEST1 TEST2\fR
4606 \fBnetbios name (G)\fR
4607 This sets the NetBIOS name by which a Samba
4608 server is known. By default it is the same as the first component
4609 of the host's DNS name. If a machine is a browse server or
4610 logon server this name (or the first component
4611 of the hosts DNS name) will be the name that these services are
4617 Default: \fBmachine DNS name\fR
4619 Example: \fBnetbios name = MYNAME\fR
4621 \fBnetbios scope (G)\fR
4622 This sets the NetBIOS scope that Samba will
4623 operate under. This should not be set unless every machine
4624 on your LAN also sets this value.
4626 \fBnis homedir (G)\fR
4627 Get the home share server from a NIS map. For
4628 UNIX systems that use an automounter, the user's home directory
4629 will often be mounted on a workstation on demand from a remote
4632 When the Samba logon server is not the actual home directory
4633 server, but is mounting the home directories via NFS then two
4634 network hops would be required to access the users home directory
4635 if the logon server told the client to use itself as the SMB server
4636 for home directories (one over SMB and one over NFS). This can
4639 This option allows Samba to return the home share as
4640 being on a different server to the logon server and as
4641 long as a Samba daemon is running on the home directory server,
4642 it will be mounted on the Samba client directly from the directory
4643 server. When Samba is returning the home share to the client, it
4644 will consult the NIS map specified in \fIhomedir map\fR and return the server
4647 Note that for this option to work there must be a working
4648 NIS system and the Samba server with this option must also
4651 Default: \fBnis homedir = no\fR
4653 \fBnt acl support (S)\fR
4654 This boolean parameter controls whether
4655 smbd(8)will attempt to map
4656 UNIX permissions into Windows NT access control lists.
4657 This parameter was formally a global parameter in releases
4660 Default: \fBnt acl support = yes\fR
4662 \fBnt pipe support (G)\fR
4663 This boolean parameter controls whether
4664 smbd(8)will allow Windows NT
4665 clients to connect to the NT SMB specific IPC$
4666 pipes. This is a developer debugging option and can be left
4669 Default: \fBnt pipe support = yes\fR
4671 \fBnt smb support (G)\fR
4672 This boolean parameter controls whether smbd(8)will negotiate NT specific SMB
4673 support with Windows NT/2k/XP clients. Although this is a developer
4674 debugging option and should be left alone, benchmarking has discovered
4675 that Windows NT clients give faster performance with this option
4676 set to no. This is still being investigated.
4677 If this option is set to no then Samba offers
4678 exactly the same SMB calls that versions prior to Samba 2.0 offered.
4679 This information may be of use if any users are having problems
4680 with NT SMB support.
4682 You should not need to ever disable this parameter.
4684 Default: \fBnt smb support = yes\fR
4686 \fBnt status support (G)\fR
4687 This boolean parameter controls whether smbd(8)will negotiate NT specific status
4688 support with Windows NT/2k/XP clients. This is a developer
4689 debugging option and should be left alone.
4690 If this option is set to no then Samba offers
4691 exactly the same DOS error codes that versions prior to Samba 2.2.3
4694 You should not need to ever disable this parameter.
4696 Default: \fBnt status support = yes\fR
4698 \fBnull passwords (G)\fR
4699 Allow or disallow client access to accounts
4700 that have null passwords.
4702 See also smbpasswd (5).
4704 Default: \fBnull passwords = no\fR
4706 \fBobey pam restrictions (G)\fR
4707 When Samba 2.2 is configured to enable PAM support
4708 (i.e. --with-pam), this parameter will control whether or not Samba
4709 should obey PAM's account and session management directives. The
4710 default behavior is to use PAM for clear text authentication only
4711 and to ignore any account or session management. Note that Samba
4712 always ignores PAM for authentication in the case of \fIencrypt passwords = yes\fR
4713 \&. The reason is that PAM modules cannot support the challenge/response
4714 authentication mechanism needed in the presence of SMB password encryption.
4716 Default: \fBobey pam restrictions = no\fR
4719 This is a boolean option that controls whether
4720 connections with usernames not in the \fIuser\fR
4721 list will be allowed. By default this option is disabled so that a
4722 client can supply a username to be used by the server. Enabling
4723 this parameter will force the server to only user the login
4724 names from the \fIuser\fR list and is only really
4725 useful in shave level
4728 Note that this also means Samba won't try to deduce
4729 usernames from the service name. This can be annoying for
4730 the [homes] section. To get around this you could use \fBuser =
4731 %S\fR which means your \fIuser\fR list
4732 will be just the service name, which for home directories is the
4735 See also the \fIuser\fR
4738 Default: \fBonly user = no\fR
4740 \fBonly guest (S)\fR
4741 A synonym for \fI guest only\fR.
4743 \fBoplock break wait time (G)\fR
4744 This is a tuning parameter added due to bugs in
4745 both Windows 9x and WinNT. If Samba responds to a client too
4746 quickly when that client issues an SMB that can cause an oplock
4747 break request, then the network client can fail and not respond
4748 to the break request. This tuning parameter (which is set in milliseconds)
4749 is the amount of time Samba will wait before sending an oplock break
4750 request to such (broken) clients.
4752 \fBDO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ
4753 AND UNDERSTOOD THE SAMBA OPLOCK CODE\fR.
4755 Default: \fBoplock break wait time = 0\fR
4757 \fBoplock contention limit (S)\fR
4758 This is a \fBvery\fR advanced
4759 smbd(8)tuning option to
4760 improve the efficiency of the granting of oplocks under multiple
4761 client contention for the same file.
4763 In brief it specifies a number, which causes smbdnot to
4764 grant an oplock even when requested if the approximate number of
4765 clients contending for an oplock on the same file goes over this
4766 limit. This causes \fBsmbd\fR to behave in a similar
4769 \fBDO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ
4770 AND UNDERSTOOD THE SAMBA OPLOCK CODE\fR.
4772 Default: \fBoplock contention limit = 2\fR
4775 This boolean option tells \fBsmbd\fR whether to
4776 issue oplocks (opportunistic locks) to file open requests on this
4777 share. The oplock code can dramatically (approx. 30% or more) improve
4778 the speed of access to files on Samba servers. It allows the clients
4779 to aggressively cache files locally and you may want to disable this
4780 option for unreliable network environments (it is turned on by
4781 default in Windows NT Servers). For more information see the file
4782 \fISpeed.txt\fR in the Samba \fIdocs/\fR
4785 Oplocks may be selectively turned off on certain files with a
4786 share. See the \fI veto oplock files\fR parameter. On some systems
4787 oplocks are recognized by the underlying operating system. This
4788 allows data synchronization between all access to oplocked files,
4789 whether it be via Samba or NFS or a local UNIX process. See the
4790 \fIkernel oplocks\fR parameter for details.
4792 See also the \fIkernel
4793 oplocks\fR and \fI level2 oplocks\fR parameters.
4795 Default: \fBoplocks = yes\fR
4798 This integer value controls what level Samba
4799 advertises itself as for browse elections. The value of this
4800 parameter determines whether nmbd(8)
4801 has a chance of becoming a local master browser for the \fI WORKGROUP\fR in the local broadcast area.
4803 \fBNote :\fRBy default, Samba will win
4804 a local master browsing election over all Microsoft operating
4805 systems except a Windows NT 4.0/2000 Domain Controller. This
4806 means that a misconfigured Samba host can effectively isolate
4807 a subnet for browsing purposes. See \fIBROWSING.txt
4808 \fRin the Samba \fIdocs/\fR directory
4811 Default: \fBos level = 20\fR
4813 Example: \fBos level = 65 \fR
4815 \fBos2 driver map (G)\fR
4816 The parameter is used to define the absolute
4817 path to a file containing a mapping of Windows NT printer driver
4818 names to OS/2 printer driver names. The format is:
4820 <nt driver name> = <os2 driver
4823 For example, a valid entry using the HP LaserJet 5
4824 printer driver would appear as \fBHP LaserJet 5L = LASERJET.HP
4827 The need for the file is due to the printer driver namespace
4828 problem described in the Samba
4829 Printing HOWTO. For more details on OS/2 clients, please
4830 refer to the OS2-Client-HOWTO
4831 containing in the Samba documentation.
4833 Default: \fBos2 driver map = <empty string>
4835 \fBpam password change (G)\fR
4836 With the addition of better PAM support in Samba 2.2,
4837 this parameter, it is possible to use PAM's password change control
4838 flag for Samba. If enabled, then PAM will be used for password
4839 changes when requested by an SMB client instead of the program listed in
4840 \fIpasswd program\fR.
4841 It should be possible to enable this without changing your
4843 parameter for most setups.
4845 Default: \fBpam password change = no\fR
4847 \fBpanic action (G)\fR
4848 This is a Samba developer option that allows a
4849 system command to be called when either smbd(8)
4850 crashes. This is usually used to draw attention to the fact that
4853 Default: \fBpanic action = <empty string>\fR
4855 Example: \fBpanic action = "/bin/sleep 90000"\fR
4857 \fBpasswd chat (G)\fR
4858 This string controls the \fB"chat"\fR
4859 conversation that takes places between smbdand the local password changing
4860 program to change the user's password. The string describes a
4861 sequence of response-receive pairs that smbd(8)uses to determine what to send to the
4862 \fIpasswd program\fR
4863 and what to expect back. If the expected output is not
4864 received then the password is not changed.
4866 This chat sequence is often quite site specific, depending
4867 on what local methods are used for password control (such as NIS
4870 Note that this parameter only is only used if the \fIunix
4871 password sync\fR parameter is set to yes. This
4872 sequence is then called \fBAS ROOT\fR when the SMB password
4873 in the smbpasswd file is being changed, without access to the old
4874 password cleartext. This means that root must be able to reset the user's password
4875 without knowing the text of the previous password. In the presence of NIS/YP,
4876 this means that the passwd program must be
4877 executed on the NIS master.
4879 The string can contain the macro \fI%n\fR which is substituted
4880 for the new password. The chat sequence can also contain the standard
4881 macros \\n, \\r, \\t and \\s to give line-feed,
4882 carriage-return, tab and space. The chat sequence string can also contain
4883 a '*' which matches any sequence of characters.
4884 Double quotes can be used to collect strings with spaces
4885 in them into a single string.
4887 If the send string in any part of the chat sequence
4888 is a full stop ".", then no string is sent. Similarly,
4889 if the expect string is a full stop then no string is expected.
4892 password change\fR parameter is set to true, the chat pairs
4893 may be matched in any order, and success is determined by the PAM result,
4894 not any particular output. The \\n macro is ignored for PAM conversions.
4896 See also \fIunix password
4897 sync\fR, \fI passwd program\fR , \fIpasswd chat debug\fR and \fIpam password change\fR.
4899 Default: \fBpasswd chat = *new*password* %n\\n
4900 *new*password* %n\\n *changed*\fR
4902 Example: \fBpasswd chat = "*Enter OLD password*" %o\\n
4903 "*Enter NEW password*" %n\\n "*Reenter NEW password*" %n\\n "*Password
4906 \fBpasswd chat debug (G)\fR
4907 This boolean specifies if the passwd chat script
4908 parameter is run in \fBdebug\fR mode. In this mode the
4909 strings passed to and received from the passwd chat are printed
4910 in the smbd(8)log with a
4912 of 100. This is a dangerous option as it will allow plaintext passwords
4913 to be seen in the \fBsmbd\fR log. It is available to help
4914 Samba admins debug their \fIpasswd chat\fR scripts
4915 when calling the \fIpasswd program\fR and should
4916 be turned off after this has been done. This option has no effect if the
4917 \fIpam password change\fR
4918 paramter is set. This parameter is off by default.
4920 See also \fIpasswd chat\fR
4921 , \fIpam password change\fR
4922 , \fIpasswd program\fR
4925 Default: \fBpasswd chat debug = no\fR
4927 \fBpasswd program (G)\fR
4928 The name of a program that can be used to set
4929 UNIX user passwords. Any occurrences of \fI%u\fR
4930 will be replaced with the user name. The user name is checked for
4931 existence before calling the password changing program.
4933 Also note that many passwd programs insist in \fBreasonable
4934 \fRpasswords, such as a minimum length, or the inclusion
4935 of mixed case chars and digits. This can pose a problem as some clients
4936 (such as Windows for Workgroups) uppercase the password before sending
4939 \fBNote\fR that if the \fIunix
4940 password sync\fR parameter is set to true
4941 then this program is called \fBAS ROOT\fR
4942 before the SMB password in the smbpasswd(5)
4943 file is changed. If this UNIX password change fails, then
4944 \fBsmbd\fR will fail to change the SMB password also
4945 (this is by design).
4947 If the \fIunix password sync\fR parameter
4948 is set this parameter \fBMUST USE ABSOLUTE PATHS\fR
4949 for \fBALL\fR programs called, and must be examined
4950 for security implications. Note that by default \fIunix
4951 password sync\fR is set to false.
4956 Default: \fBpasswd program = /bin/passwd\fR
4958 Example: \fBpasswd program = /sbin/npasswd %u\fR
4960 \fBpassword level (G)\fR
4961 Some client/server combinations have difficulty
4962 with mixed-case passwords. One offending client is Windows for
4963 Workgroups, which for some reason forces passwords to upper
4964 case when using the LANMAN1 protocol, but leaves them alone when
4965 using COREPLUS! Another problem child is the Windows 95/98
4966 family of operating systems. These clients upper case clear
4967 text passwords even when NT LM 0.12 selected by the protocol
4968 negotiation request/response.
4970 This parameter defines the maximum number of characters
4971 that may be upper case in passwords.
4973 For example, say the password given was "FRED". If \fI password level\fR is set to 1, the following combinations
4974 would be tried if "FRED" failed:
4976 "Fred", "fred", "fRed", "frEd","freD"
4978 If \fIpassword level\fR was set to 2,
4979 the following combinations would also be tried:
4981 "FRed", "FrEd", "FreD", "fREd", "fReD", "frED", ..
4985 The higher value this parameter is set to the more likely
4986 it is that a mixed case password will be matched against a single
4987 case password. However, you should be aware that use of this
4988 parameter reduces security and increases the time taken to
4989 process a new connection.
4991 A value of zero will cause only two attempts to be
4992 made - the password as is and the password in all-lower case.
4994 Default: \fBpassword level = 0\fR
4996 Example: \fBpassword level = 4\fR
4998 \fBpassword server (G)\fR
4999 By specifying the name of another SMB server (such
5000 as a WinNT box) with this option, and using \fBsecurity = domain
5001 \fRor \fBsecurity = server\fR you can get Samba
5002 to do all its username/password validation via a remote server.
5004 This option sets the name of the password server to use.
5005 It must be a NetBIOS name, so if the machine's NetBIOS name is
5006 different from its Internet name then you may have to add its NetBIOS
5007 name to the lmhosts file which is stored in the same directory
5008 as the \fIsmb.conf\fR file.
5010 The name of the password server is looked up using the
5012 resolve order\fR and so may resolved
5013 by any method and order described in that parameter.
5015 The password server much be a machine capable of using
5016 the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in
5017 user level security mode.
5019 \fBNOTE:\fR Using a password server
5020 means your UNIX box (running Samba) is only as secure as your
5021 password server. \fBDO NOT CHOOSE A PASSWORD SERVER THAT
5022 YOU DON'T COMPLETELY TRUST\fR.
5024 Never point a Samba server at itself for password
5025 serving. This will cause a loop and could lock up your Samba
5028 The name of the password server takes the standard
5029 substitutions, but probably the only useful one is \fI%m
5030 \fR, which means the Samba server will use the incoming
5031 client as the password server. If you use this then you better
5032 trust your clients, and you had better restrict them with hosts allow!
5034 If the \fIsecurity\fR parameter is set to
5035 domain, then the list of machines in this
5036 option must be a list of Primary or Backup Domain controllers for the
5037 Domain or the character '*', as the Samba server is effectively
5038 in that domain, and will use cryptographically authenticated RPC calls
5039 to authenticate the user logging on. The advantage of using \fB security = domain\fR is that if you list several hosts in the
5040 \fIpassword server\fR option then \fBsmbd
5041 \fRwill try each in turn till it finds one that responds. This
5042 is useful in case your primary server goes down.
5044 If the \fIpassword server\fR option is set
5045 to the character '*', then Samba will attempt to auto-locate the
5046 Primary or Backup Domain controllers to authenticate against by
5047 doing a query for the name WORKGROUP<1C>
5048 and then contacting each server returned in the list of IP
5049 addresses from the name resolution source.
5051 If the \fIsecurity\fR parameter is
5052 set to server, then there are different
5053 restrictions that \fBsecurity = domain\fR doesn't
5058 You may list several password servers in
5059 the \fIpassword server\fR parameter, however if an
5060 \fBsmbd\fR makes a connection to a password server,
5061 and then the password server fails, no more users will be able
5062 to be authenticated from this \fBsmbd\fR. This is a
5063 restriction of the SMB/CIFS protocol when in \fBsecurity = server
5064 \fRmode and cannot be fixed in Samba.
5067 If you are using a Windows NT server as your
5068 password server then you will have to ensure that your users
5069 are able to login from the Samba server, as when in \fB security = server\fR mode the network logon will appear to
5070 come from there rather than from the users workstation.
5073 See also the \fIsecurity
5077 Default: \fBpassword server = <empty string>\fR
5080 Example: \fBpassword server = NT-PDC, NT-BDC1, NT-BDC2
5083 Example: \fBpassword server = *\fR
5087 This parameter specifies a directory to which
5088 the user of the service is to be given access. In the case of
5089 printable services, this is where print data will spool prior to
5090 being submitted to the host for printing.
5092 For a printable service offering guest access, the service
5093 should be readonly and the path should be world-writeable and
5094 have the sticky bit set. This is not mandatory of course, but
5095 you probably won't get the results you expect if you do
5098 Any occurrences of \fI%u\fR in the path
5099 will be replaced with the UNIX username that the client is using
5100 on this connection. Any occurrences of \fI%m\fR
5101 will be replaced by the NetBIOS name of the machine they are
5102 connecting from. These replacements are very useful for setting
5103 up pseudo home directories for users.
5105 Note that this path will be based on \fIroot dir\fR if one was specified.
5109 Example: \fBpath = /home/fred\fR
5111 \fBposix locking (S)\fR
5113 daemon maintains an database of file locks obtained by SMB clients.
5114 The default behavior is to map this internal database to POSIX
5115 locks. This means that file locks obtained by SMB clients are
5116 consistent with those seen by POSIX compliant applications accessing
5117 the files via a non-SMB method (e.g. NFS or local file access).
5118 You should never need to disable this parameter.
5120 Default: \fBposix locking = yes\fR
5123 This option specifies a command to be run
5124 whenever the service is disconnected. It takes the usual
5125 substitutions. The command may be run as the root on some
5128 An interesting example may be to unmount server
5131 \fBpostexec = /etc/umount /cdrom\fR
5133 See also \fIpreexec\fR
5136 Default: \fBnone (no command executed)\fR
5138 Example: \fBpostexec = echo \\"%u disconnected from %S
5139 from %m (%I)\\" >> /tmp/log\fR
5141 \fBpostscript (S)\fR
5142 This parameter forces a printer to interpret
5143 the print files as PostScript. This is done by adding a %!
5144 to the start of print output.
5146 This is most useful when you have lots of PCs that persist
5147 in putting a control-D at the start of print jobs, which then
5148 confuses your printer.
5150 Default: \fBpostscript = no\fR
5153 This option specifies a command to be run whenever
5154 the service is connected to. It takes the usual substitutions.
5156 An interesting example is to send the users a welcome
5157 message every time they log in. Maybe a message of the day? Here
5160 \fBpreexec = csh -c 'echo \\"Welcome to %S!\\" |
5161 /usr/local/samba/bin/smbclient -M %m -I %I' & \fR
5163 Of course, this could get annoying after a while :-)
5165 See also \fIpreexec close
5169 Default: \fBnone (no command executed)\fR
5171 Example: \fBpreexec = echo \\"%u connected to %S from %m
5172 (%I)\\" >> /tmp/log\fR
5174 \fBpreexec close (S)\fR
5175 This boolean option controls whether a non-zero
5176 return code from \fIpreexec
5177 \fRshould close the service being connected to.
5179 Default: \fBpreexec close = no\fR
5181 \fBpreferred master (G)\fR
5182 This boolean parameter controls if nmbd(8)is a preferred master browser
5185 If this is set to true, on startup, \fBnmbd\fR
5186 will force an election, and it will have a slight advantage in
5187 winning the election. It is recommended that this parameter is
5188 used in conjunction with \fB\fI domain master\fB = yes\fR, so that \fB nmbd\fR can guarantee becoming a domain master.
5190 Use this option with caution, because if there are several
5191 hosts (whether Samba servers, Windows 95 or NT) that are preferred
5192 master browsers on the same subnet, they will each periodically
5193 and continuously attempt to become the local master browser.
5194 This will result in unnecessary broadcast traffic and reduced browsing
5197 See also \fIos level\fR
5200 Default: \fBpreferred master = auto\fR
5202 \fBprefered master (G)\fR
5203 Synonym for \fI preferred master\fR for people who cannot spell :-).
5206 This is a list of services that you want to be
5207 automatically added to the browse lists. This is most useful
5208 for homes and printers services that would otherwise not be
5211 Note that if you just want all printers in your
5212 printcap file loaded then the \fIload printers\fR option is easier.
5214 Default: \fBno preloaded services\fR
5216 Example: \fBpreload = fred lp colorlp\fR
5218 \fBpreserve case (S)\fR
5219 This controls if new filenames are created
5220 with the case that the client passes, or if they are forced to
5221 be the \fIdefault case
5224 Default: \fBpreserve case = yes\fR
5226 See the section on NAME
5227 MANGLING for a fuller discussion.
5229 \fBprint command (S)\fR
5230 After a print job has finished spooling to
5231 a service, this command will be used via a \fBsystem()\fR
5232 call to process the spool file. Typically the command specified will
5233 submit the spool file to the host's printing subsystem, but there
5234 is no requirement that this be the case. The server will not remove
5235 the spool file, so whatever command you specify should remove the
5236 spool file when it has been processed, otherwise you will need to
5237 manually remove old spool files.
5239 The print command is simply a text string. It will be used
5240 verbatim, with two exceptions: All occurrences of \fI%s
5241 \fRand \fI%f\fR will be replaced by the
5242 appropriate spool file name, and all occurrences of \fI%p
5243 \fRwill be replaced by the appropriate printer name. The
5244 spool file name is generated automatically by the server. The
5245 \fI%J\fR macro can be used to access the job
5246 name as transmitted by the client.
5248 The print command \fBMUST\fR contain at least
5249 one occurrence of \fI%s\fR or \fI%f
5250 \fR- the \fI%p\fR is optional. At the time
5251 a job is submitted, if no printer name is supplied the \fI%p
5252 \fRwill be silently removed from the printer command.
5254 If specified in the [global] section, the print command given
5255 will be used for any printable service that does not have its own
5256 print command specified.
5258 If there is neither a specified print command for a
5259 printable service nor a global print command, spool files will
5260 be created but not processed and (most importantly) not removed.
5262 Note that printing may fail on some UNIXes from the
5263 nobody account. If this happens then create
5264 an alternative guest account that can print and set the \fIguest account\fR
5265 in the [global] section.
5267 You can form quite complex print commands by realizing
5268 that they are just passed to a shell. For example the following
5269 will log a print job, print the file, then remove it. Note that
5270 \&';' is the usual separator for command in shell scripts.
5272 \fBprint command = echo Printing %s >>
5273 /tmp/print.log; lpr -P %p %s; rm %s\fR
5275 You may have to vary this command considerably depending
5276 on how you normally print files on your system. The default for
5277 the parameter varies depending on the setting of the \fIprinting\fR parameter.
5279 Default: For \fBprinting = BSD, AIX, QNX, LPRNG
5282 \fBprint command = lpr -r -P%p %s\fR
5284 For \fBprinting = SYSV or HPUX :\fR
5286 \fBprint command = lp -c -d%p %s; rm %s\fR
5288 For \fBprinting = SOFTQ :\fR
5290 \fBprint command = lp -d%p -s %s; rm %s\fR
5292 Example: \fBprint command = /usr/local/samba/bin/myprintscript
5296 Synonym for \fIprintable\fR.
5299 If this parameter is yes, then
5300 clients may open, write to and submit spool files on the directory
5301 specified for the service.
5303 Note that a printable service will ALWAYS allow writing
5304 to the service path (user privileges permitting) via the spooling
5305 of print data. The \fIwriteable
5306 \fRparameter controls only non-printing access to
5309 Default: \fBprintable = no\fR
5312 Synonym for \fI printcap name\fR.
5314 \fBprintcap name (G)\fR
5315 This parameter may be used to override the
5316 compiled-in default printcap name used by the server (usually \fI /etc/printcap\fR). See the discussion of the [printers] section above for reasons
5317 why you might want to do this.
5319 To use the CUPS printing interface set \fBprintcap name = cups
5322 On System V systems that use \fBlpstat\fR to
5323 list available printers you can use \fBprintcap name = lpstat
5324 \fRto automatically obtain lists of available printers. This
5325 is the default for systems that define SYSV at configure time in
5326 Samba (this includes most System V based systems). If \fI printcap name\fR is set to \fBlpstat\fR on
5327 these systems then Samba will launch \fBlpstat -v\fR and
5328 attempt to parse the output to obtain a printer list.
5330 A minimal printcap file would look something like this:
5343 where the '|' separates aliases of a printer. The fact
5344 that the second alias has a space in it gives a hint to Samba
5345 that it's a comment.
5347 \fBNOTE\fR: Under AIX the default printcap
5348 name is \fI/etc/qconfig\fR. Samba will assume the
5349 file is in AIX \fIqconfig\fR format if the string
5350 \fIqconfig\fR appears in the printcap filename.
5352 Default: \fBprintcap name = /etc/printcap\fR
5354 Example: \fBprintcap name = /etc/myprintcap\fR
5356 \fBprinter admin (S)\fR
5357 This is a list of users that can do anything to
5358 printers via the remote administration interfaces offered by MS-RPC
5359 (usually using a NT workstation). Note that the root user always
5362 Default: \fBprinter admin = <empty string>\fR
5364 Example: \fBprinter admin = admin, @staff\fR
5366 \fBprinter driver (S)\fR
5367 \fBNote :\fRThis is a deprecated
5368 parameter and will be removed in the next major release
5369 following version 2.2. Please see the instructions in
5370 the Samba 2.2. Printing
5371 HOWTOfor more information
5372 on the new method of loading printer drivers onto a Samba server.
5374 This option allows you to control the string
5375 that clients receive when they ask the server for the printer driver
5376 associated with a printer. If you are using Windows95 or Windows NT
5377 then you can use this to automate the setup of printers on your
5380 You need to set this parameter to the exact string (case
5381 sensitive) that describes the appropriate printer driver for your
5382 system. If you don't know the exact string to use then you should
5383 first try with no \fI printer driver\fR option set and the client will
5384 give you a list of printer drivers. The appropriate strings are
5385 shown in a scroll box after you have chosen the printer manufacturer.
5390 Example: \fBprinter driver = HP LaserJet 4L\fR
5392 \fBprinter driver file (G)\fR
5393 \fBNote :\fRThis is a deprecated
5394 parameter and will be removed in the next major release
5395 following version 2.2. Please see the instructions in
5396 the Samba 2.2. Printing
5397 HOWTOfor more information
5398 on the new method of loading printer drivers onto a Samba server.
5400 This parameter tells Samba where the printer driver
5401 definition file, used when serving drivers to Windows 95 clients, is
5402 to be found. If this is not set, the default is :
5404 \fISAMBA_INSTALL_DIRECTORY
5405 /lib/printers.def\fR
5407 This file is created from Windows 95 \fImsprint.inf
5408 \fRfiles found on the Windows 95 client system. For more
5409 details on setting up serving of printer drivers to Windows 95
5410 clients, see the outdated documentation file in the \fIdocs/\fR
5411 directory, \fIPRINTER_DRIVER.txt\fR.
5413 See also \fI printer driver location\fR.
5415 Default: \fBNone (set in compile).\fR
5417 Example: \fBprinter driver file =
5418 /usr/local/samba/printers/drivers.def\fR
5420 \fBprinter driver location (S)\fR
5421 \fBNote :\fRThis is a deprecated
5422 parameter and will be removed in the next major release
5423 following version 2.2. Please see the instructions in
5424 the Samba 2.2. Printing
5425 HOWTOfor more information
5426 on the new method of loading printer drivers onto a Samba server.
5428 This parameter tells clients of a particular printer
5429 share where to find the printer driver files for the automatic
5430 installation of drivers for Windows 95 machines. If Samba is set up
5431 to serve printer drivers to Windows 95 machines, this should be set to
5433 \fB\\\\MACHINE\\PRINTER$\fR
5435 Where MACHINE is the NetBIOS name of your Samba server,
5436 and PRINTER$ is a share you set up for serving printer driver
5437 files. For more details on setting this up see the outdated documentation
5438 file in the \fIdocs/\fR directory, \fI PRINTER_DRIVER.txt\fR.
5440 See also \fI printer driver file\fR.
5444 Example: \fBprinter driver location = \\\\MACHINE\\PRINTER$
5446 \fBprinter name (S)\fR
5447 This parameter specifies the name of the printer
5448 to which print jobs spooled through a printable service will be sent.
5450 If specified in the [global] section, the printer
5451 name given will be used for any printable service that does
5452 not have its own printer name specified.
5454 Default: \fBnone (but may be lp
5457 Example: \fBprinter name = laserwriter\fR
5460 Synonym for \fI printer name\fR.
5463 This parameters controls how printer status
5464 information is interpreted on your system. It also affects the
5465 default values for the \fIprint command\fR,
5466 \fIlpq command\fR, \fIlppause command
5467 \fR, \fIlpresume command\fR, and
5468 \fIlprm command\fR if specified in the
5471 Currently nine printing styles are supported. They are
5478 To see what the defaults are for the other print
5479 commands when using the various options use the testparm(1)program.
5481 This option can be set on a per printer basis
5483 See also the discussion in the [printers] section.
5486 Synonym for \fImax protocol\fR.
5489 Synonym for \fIguest
5492 \fBqueuepause command (S)\fR
5493 This parameter specifies the command to be
5494 executed on the server host in order to pause the printer queue.
5496 This command should be a program or script which takes
5497 a printer name as its only parameter and stops the printer queue,
5498 such that no longer jobs are submitted to the printer.
5500 This command is not supported by Windows for Workgroups,
5501 but can be issued from the Printers window under Windows 95
5504 If a \fI%p\fR is given then the printer name
5505 is put in its place. Otherwise it is placed at the end of the command.
5507 Note that it is good practice to include the absolute
5508 path in the command as the PATH may not be available to the
5511 Default: \fBdepends on the setting of \fIprinting
5513 Example: \fBqueuepause command = disable %p\fR
5515 \fBqueueresume command (S)\fR
5516 This parameter specifies the command to be
5517 executed on the server host in order to resume the printer queue. It
5518 is the command to undo the behavior that is caused by the
5519 previous parameter (\fI queuepause command\fR).
5521 This command should be a program or script which takes
5522 a printer name as its only parameter and resumes the printer queue,
5523 such that queued jobs are resubmitted to the printer.
5525 This command is not supported by Windows for Workgroups,
5526 but can be issued from the Printers window under Windows 95
5529 If a \fI%p\fR is given then the printer name
5530 is put in its place. Otherwise it is placed at the end of the
5533 Note that it is good practice to include the absolute
5534 path in the command as the PATH may not be available to the
5537 Default: \fBdepends on the setting of \fIprinting\fB\fR
5539 Example: \fBqueuepause command = enable %p
5542 This boolean parameter controls whether smbd(8)will support the "Read
5543 Block Multiplex" SMB. This is now rarely used and defaults to
5544 no. You should never need to set this
5547 Default: \fBread bmpx = no\fR
5550 This is a list of users that are given read-only
5551 access to a service. If the connecting user is in this list then
5552 they will not be given write access, no matter what the \fIwriteable\fR
5553 option is set to. The list can include group names using the
5554 syntax described in the \fI invalid users\fR parameter.
5556 See also the \fI write list\fR parameter and the \fIinvalid users\fR
5559 Default: \fBread list = <empty string>\fR
5561 Example: \fBread list = mary, @students\fR
5564 Note that this is an inverted synonym for \fIwriteable\fR.
5567 This parameter controls whether or not the server
5568 will support the raw read SMB requests when transferring data
5571 If enabled, raw reads allow reads of 65535 bytes in
5572 one packet. This typically provides a major performance benefit.
5574 However, some clients either negotiate the allowable
5575 block size incorrectly or are incapable of supporting larger block
5576 sizes, and for these clients you may need to disable raw reads.
5578 In general this parameter should be viewed as a system tuning
5579 tool and left severely alone. See also \fIwrite raw\fR.
5581 Default: \fBread raw = yes\fR
5584 The option \fIread size\fR
5585 affects the overlap of disk reads/writes with network reads/writes.
5586 If the amount of data being transferred in several of the SMB
5587 commands (currently SMBwrite, SMBwriteX and SMBreadbraw) is larger
5588 than this value then the server begins writing the data before it
5589 has received the whole packet from the network, or in the case of
5590 SMBreadbraw, it begins writing to the network before all the data
5591 has been read from disk.
5593 This overlapping works best when the speeds of disk and
5594 network access are similar, having very little effect when the
5595 speed of one is much greater than the other.
5597 The default value is 16384, but very little experimentation
5598 has been done yet to determine the optimal value, and it is likely
5599 that the best value will vary greatly between systems anyway.
5600 A value over 65536 is pointless and will cause you to allocate
5601 memory unnecessarily.
5603 Default: \fBread size = 16384\fR
5605 Example: \fBread size = 8192\fR
5607 \fBremote announce (G)\fR
5608 This option allows you to setup nmbd(8)to periodically announce itself
5609 to arbitrary IP addresses with an arbitrary workgroup name.
5611 This is useful if you want your Samba server to appear
5612 in a remote workgroup for which the normal browse propagation
5613 rules don't work. The remote workgroup can be anywhere that you
5614 can send IP packets to.
5618 \fBremote announce = 192.168.2.255/SERVERS
5619 192.168.4.255/STAFF\fR
5621 the above line would cause \fBnmbd\fR to announce itself
5622 to the two given IP addresses using the given workgroup names.
5623 If you leave out the workgroup name then the one given in
5625 parameter is used instead.
5627 The IP addresses you choose would normally be the broadcast
5628 addresses of the remote networks, but can also be the IP addresses
5629 of known browse masters if your network config is that stable.
5631 See the documentation file \fIBROWSING.txt\fR
5632 in the \fIdocs/\fR directory.
5634 Default: \fBremote announce = <empty string>
5636 \fBremote browse sync (G)\fR
5637 This option allows you to setup nmbd(8)to periodically request
5638 synchronization of browse lists with the master browser of a Samba
5639 server that is on a remote segment. This option will allow you to
5640 gain browse lists for multiple workgroups across routed networks. This
5641 is done in a manner that does not work with any non-Samba servers.
5643 This is useful if you want your Samba server and all local
5644 clients to appear in a remote workgroup for which the normal browse
5645 propagation rules don't work. The remote workgroup can be anywhere
5646 that you can send IP packets to.
5650 \fBremote browse sync = 192.168.2.255 192.168.4.255
5652 the above line would cause \fBnmbd\fR to request
5653 the master browser on the specified subnets or addresses to
5654 synchronize their browse lists with the local server.
5656 The IP addresses you choose would normally be the broadcast
5657 addresses of the remote networks, but can also be the IP addresses
5658 of known browse masters if your network config is that stable. If
5659 a machine IP address is given Samba makes NO attempt to validate
5660 that the remote machine is available, is listening, nor that it
5661 is in fact the browse master on its segment.
5663 Default: \fBremote browse sync = <empty string>
5665 \fBrestrict anonymous (G)\fR
5666 This is a boolean parameter. If it is true, then
5667 anonymous access to the server will be restricted, namely in the
5668 case where the server is expecting the client to send a username,
5669 but it doesn't. Setting it to true will force these anonymous
5670 connections to be denied, and the client will be required to always
5671 supply a username and password when connecting. Use of this parameter
5672 is only recommended for homogeneous NT client environments.
5674 This parameter makes the use of macro expansions that rely
5675 on the username (%U, %G, etc) consistent. NT 4.0
5676 likes to use anonymous connections when refreshing the share list,
5677 and this is a way to work around that.
5679 When restrict anonymous is true, all anonymous connections
5680 are denied no matter what they are for. This can effect the ability
5681 of a machine to access the Samba Primary Domain Controller to revalidate
5682 its machine account after someone else has logged on the client
5683 interactively. The NT client will display a message saying that
5684 the machine's account in the domain doesn't exist or the password is
5685 bad. The best way to deal with this is to reboot NT client machines
5686 between interactive logons, using "Shutdown and Restart", rather
5687 than "Close all programs and logon as a different user".
5689 Default: \fBrestrict anonymous = no\fR
5692 Synonym for \fIroot directory"\fR.
5695 Synonym for \fIroot directory"\fR.
5697 \fBroot directory (G)\fR
5698 The server will \fBchroot()\fR (i.e.
5699 Change its root directory) to this directory on startup. This is
5700 not strictly necessary for secure operation. Even without it the
5701 server will deny access to files not in one of the service entries.
5702 It may also check for, and deny access to, soft links to other
5703 parts of the filesystem, or attempts to use ".." in file names
5704 to access other directories (depending on the setting of the \fIwide links\fR
5707 Adding a \fIroot directory\fR entry other
5708 than "/" adds an extra level of security, but at a price. It
5709 absolutely ensures that no access is given to files not in the
5710 sub-tree specified in the \fIroot directory\fR
5711 option, \fBincluding\fR some files needed for
5712 complete operation of the server. To maintain full operability
5713 of the server you will need to mirror some system files
5714 into the \fIroot directory\fR tree. In particular
5715 you will need to mirror \fI/etc/passwd\fR (or a
5716 subset of it), and any binaries or configuration files needed for
5717 printing (if required). The set of files that must be mirrored is
5718 operating system dependent.
5720 Default: \fBroot directory = /\fR
5722 Example: \fBroot directory = /homes/smb\fR
5724 \fBroot postexec (S)\fR
5725 This is the same as the \fIpostexec\fR
5726 parameter except that the command is run as root. This
5727 is useful for unmounting filesystems
5728 (such as CDROMs) after a connection is closed.
5730 See also \fI postexec\fR.
5732 Default: \fBroot postexec = <empty string>
5734 \fBroot preexec (S)\fR
5735 This is the same as the \fIpreexec\fR
5736 parameter except that the command is run as root. This
5737 is useful for mounting filesystems (such as CDROMs) when a
5738 connection is opened.
5740 See also \fI preexec\fR and \fIpreexec close\fR.
5742 Default: \fBroot preexec = <empty string>
5744 \fBroot preexec close (S)\fR
5745 This is the same as the \fIpreexec close
5746 \fRparameter except that the command is run as root.
5748 See also \fI preexec\fR and \fIpreexec close\fR.
5750 Default: \fBroot preexec close = no\fR
5753 This option affects how clients respond to
5754 Samba and is one of the most important settings in the \fI smb.conf\fR file.
5756 The option sets the "security mode bit" in replies to
5757 protocol negotiations with smbd(8)
5758 to turn share level security on or off. Clients decide
5759 based on this bit whether (and how) to transfer user and password
5760 information to the server.
5762 The default is \fBsecurity = user\fR, as this is
5763 the most common setting needed when talking to Windows 98 and
5766 The alternatives are \fBsecurity = share\fR,
5767 \fBsecurity = server\fR or \fBsecurity = domain
5770 In versions of Samba prior to 2.0.0, the default was
5771 \fBsecurity = share\fR mainly because that was
5772 the only option at one stage.
5774 There is a bug in WfWg that has relevance to this
5775 setting. When in user or server level security a WfWg client
5776 will totally ignore the password you type in the "connect
5777 drive" dialog box. This makes it very difficult (if not impossible)
5778 to connect to a Samba service as anyone except the user that
5779 you are logged into WfWg as.
5781 If your PCs use usernames that are the same as their
5782 usernames on the UNIX machine then you will want to use
5783 \fBsecurity = user\fR. If you mostly use usernames
5784 that don't exist on the UNIX box then use \fBsecurity =
5787 You should also use \fBsecurity = share\fR if you
5788 want to mainly setup shares without a password (guest shares). This
5789 is commonly used for a shared printer server. It is more difficult
5790 to setup guest shares with \fBsecurity = user\fR, see
5791 the \fImap to guest\fR
5792 parameter for details.
5794 It is possible to use \fBsmbd\fR in a \fB hybrid mode\fR where it is offers both user and share
5795 level security under different \fINetBIOS aliases\fR.
5797 The different settings will now be explained.
5801 When clients connect to a share level security server they
5802 need not log onto the server with a valid username and password before
5803 attempting to connect to a shared resource (although modern clients
5804 such as Windows 95/98 and Windows NT will send a logon request with
5805 a username but no password when talking to a \fBsecurity = share
5806 \fRserver). Instead, the clients send authentication information
5807 (passwords) on a per-share basis, at the time they attempt to connect
5810 Note that \fBsmbd\fR \fBALWAYS\fR
5811 uses a valid UNIX user to act on behalf of the client, even in
5812 \fBsecurity = share\fR level security.
5814 As clients are not required to send a username to the server
5815 in share level security, \fBsmbd\fR uses several
5816 techniques to determine the correct UNIX user to use on behalf
5819 A list of possible UNIX usernames to match with the given
5820 client password is constructed using the following methods :
5825 only\fR parameter is set, then all the other
5826 stages are missed and only the \fIguest account\fR username is checked.
5829 Is a username is sent with the share connection
5830 request, then this username (after mapping - see \fIusername map\fR),
5831 is added as a potential username.
5834 If the client did a previous \fBlogon
5835 \fRrequest (the SessionSetup SMB call) then the
5836 username sent in this SMB will be added as a potential username.
5839 The name of the service the client requested is
5840 added as a potential username.
5843 The NetBIOS name of the client is added to
5844 the list as a potential username.
5847 Any users on the \fI user\fR list are added as potential usernames.
5850 If the \fIguest only\fR parameter is
5851 not set, then this list is then tried with the supplied password.
5852 The first user for whom the password matches will be used as the
5856 If the \fIguest only\fR parameter is
5857 set, or no username can be determined then if the share is marked
5858 as available to the \fIguest account\fR, then this
5859 guest user will be used, otherwise access is denied.
5862 Note that it can be \fBvery\fR confusing
5863 in share-level security as to which UNIX username will eventually
5864 be used in granting access.
5867 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION.
5873 This is the default security setting in Samba 2.2.
5874 With user-level security a client must first "log-on" with a
5875 valid username and password (which can be mapped using the \fIusername map\fR
5876 parameter). Encrypted passwords (see the \fIencrypted passwords\fR parameter) can also
5877 be used in this security mode. Parameters such as \fIuser\fR and \fIguest only\fR if set are then applied and
5878 may change the UNIX user to use on this connection, but only after
5879 the user has been successfully authenticated.
5882 \fBNote\fR that the name of the resource being
5883 requested is \fBnot\fR sent to the server until after
5884 the server has successfully authenticated the client. This is why
5885 guest shares don't work in user level security without allowing
5886 the server to automatically map unknown users into the \fIguest account\fR.
5887 See the \fImap to guest\fR
5888 parameter for details on doing this.
5891 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION.
5894 \fBSECURITY = SERVER
5897 In this mode Samba will try to validate the username/password
5898 by passing it to another SMB server, such as an NT box. If this
5899 fails it will revert to \fBsecurity = user\fR, but note
5900 that if encrypted passwords have been negotiated then Samba cannot
5901 revert back to checking the UNIX password file, it must have a valid
5902 \fIsmbpasswd\fR file to check users against. See the
5903 documentation file in the \fIdocs/\fR directory
5904 \fIENCRYPTION.txt\fR for details on how to set this
5908 \fBNote\fR that from the client's point of
5909 view \fBsecurity = server\fR is the same as \fB security = user\fR. It only affects how the server deals
5910 with the authentication, it does not in any way affect what the
5914 \fBNote\fR that the name of the resource being
5915 requested is \fBnot\fR sent to the server until after
5916 the server has successfully authenticated the client. This is why
5917 guest shares don't work in user level security without allowing
5918 the server to automatically map unknown users into the \fIguest account\fR.
5919 See the \fImap to guest\fR
5920 parameter for details on doing this.
5923 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION.
5926 See also the \fIpassword
5927 server\fR parameter and the \fIencrypted passwords\fR
5931 \fBSECURITY = DOMAIN
5934 This mode will only work correctly if smbpasswd(8)has been used to add this
5935 machine into a Windows NT Domain. It expects the \fIencrypted passwords\fR
5936 parameter to be set to true. In this
5937 mode Samba will try to validate the username/password by passing
5938 it to a Windows NT Primary or Backup Domain Controller, in exactly
5939 the same way that a Windows NT Server would do.
5942 \fBNote\fR that a valid UNIX user must still
5943 exist as well as the account on the Domain Controller to allow
5944 Samba to have a valid UNIX account to map file access to.
5947 \fBNote\fR that from the client's point
5948 of view \fBsecurity = domain\fR is the same as \fBsecurity = user
5949 \fR\&. It only affects how the server deals with the authentication,
5950 it does not in any way affect what the client sees.
5953 \fBNote\fR that the name of the resource being
5954 requested is \fBnot\fR sent to the server until after
5955 the server has successfully authenticated the client. This is why
5956 guest shares don't work in user level security without allowing
5957 the server to automatically map unknown users into the \fIguest account\fR.
5958 See the \fImap to guest\fR
5959 parameter for details on doing this.
5962 \fBBUG:\fR There is currently a bug in the
5963 implementation of \fBsecurity = domain\fR with respect
5964 to multi-byte character set usernames. The communication with a
5965 Domain Controller must be done in UNICODE and Samba currently
5966 does not widen multi-byte user names to UNICODE correctly, thus
5967 a multi-byte username will not be recognized correctly at the
5968 Domain Controller. This issue will be addressed in a future release.
5971 See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION.
5974 See also the \fIpassword
5975 server\fR parameter and the \fIencrypted passwords\fR
5979 Default: \fBsecurity = USER\fR
5982 Example: \fBsecurity = DOMAIN\fR
5985 \fBsecurity mask (S)\fR
5986 This parameter controls what UNIX permission
5987 bits can be modified when a Windows NT client is manipulating
5988 the UNIX permission on a file using the native NT security
5991 This parameter is applied as a mask (AND'ed with) to
5992 the changed permission bits, thus preventing any bits not in
5993 this mask from being modified. Essentially, zero bits in this
5994 mask may be treated as a set of bits the user is not allowed
5997 If not set explicitly this parameter is 0777, allowing
5998 a user to modify all the user/group/world permissions on a file.
6000 \fBNote\fR that users who can access the
6001 Samba server through other means can easily bypass this
6002 restriction, so it is primarily useful for standalone
6003 "appliance" systems. Administrators of most normal systems will
6004 probably want to leave it set to 0777.
6006 See also the \fIforce directory security mode\fR,
6008 security mask\fR, \fIforce security mode\fR parameters.
6010 Default: \fBsecurity mask = 0777\fR
6012 Example: \fBsecurity mask = 0770\fR
6014 \fBserver string (G)\fR
6015 This controls what string will show up in the
6016 printer comment box in print manager and next to the IPC connection
6017 in \fBnet view\fR. It can be any string that you wish
6018 to show to your users.
6020 It also sets what will appear in browse lists next
6021 to the machine name.
6023 A \fI%v\fR will be replaced with the Samba
6026 A \fI%h\fR will be replaced with the
6029 Default: \fBserver string = Samba %v\fR
6031 Example: \fBserver string = University of GNUs Samba
6034 \fBset directory (S)\fR
6035 If \fBset directory = no\fR, then
6036 users of the service may not use the setdir command to change
6039 The \fBsetdir\fR command is only implemented
6040 in the Digital Pathworks client. See the Pathworks documentation
6043 Default: \fBset directory = no\fR
6045 \fBshare modes (S)\fR
6046 This enables or disables the honoring of
6047 the \fIshare modes\fR during a file open. These
6048 modes are used by clients to gain exclusive read or write access
6051 These open modes are not directly supported by UNIX, so
6052 they are simulated using shared memory, or lock files if your
6053 UNIX doesn't support shared memory (almost all do).
6055 The share modes that are enabled by this option are
6057 DENY_READ, DENY_WRITE,
6058 DENY_NONE and DENY_FCB.
6060 This option gives full share compatibility and enabled
6063 You should \fBNEVER\fR turn this parameter
6064 off as many Windows applications will break if you do so.
6066 Default: \fBshare modes = yes\fR
6068 \fBshort preserve case (S)\fR
6069 This boolean parameter controls if new files
6070 which conform to 8.3 syntax, that is all in upper case and of
6071 suitable length, are created upper case, or if they are forced
6072 to be the \fIdefault case
6073 \fR\&. This option can be use with \fBpreserve case = yes\fR
6074 to permit long filenames to retain their case, while short
6077 See the section on NAME MANGLING.
6079 Default: \fBshort preserve case = yes\fR
6081 \fBshow add printer wizard (G)\fR
6082 With the introduction of MS-RPC based printing support
6083 for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will
6084 appear on Samba hosts in the share listing. Normally this folder will
6085 contain an icon for the MS Add Printer Wizard (APW). However, it is
6086 possible to disable this feature regardless of the level of privilege
6087 of the connected user.
6089 Under normal circumstances, the Windows NT/2000 client will
6090 open a handle on the printer server with OpenPrinterEx() asking for
6091 Administrator privileges. If the user does not have administrative
6092 access on the print server (i.e is not root or a member of the
6093 \fIprinter admin\fR group), the OpenPrinterEx()
6094 call fails and the client makes another open call with a request for
6095 a lower privilege level. This should succeed, however the APW
6096 icon will not be displayed.
6098 Disabling the \fIshow add printer wizard\fR
6099 parameter will always cause the OpenPrinterEx() on the server
6100 to fail. Thus the APW icon will never be displayed. \fB Note :\fRThis does not prevent the same user from having
6101 administrative privilege on an individual printer.
6103 See also \fIaddprinter
6104 command\fR, \fIdeleteprinter command\fR, \fIprinter admin\fR
6106 Default :\fBshow add printer wizard = yes\fR
6108 \fBshutdown script (G)\fR
6109 \fBThis parameter only exists in the HEAD cvs branch\fR
6110 This a full path name to a script called by
6112 should start a shutdown procedure.
6114 This command will be run as the user connected to the
6117 %m %t %r %f parameters are expanded
6119 \fI%m\fR will be substituted with the
6120 shutdown message sent to the server.
6122 \fI%t\fR will be substituted with the
6123 number of seconds to wait before effectively starting the
6126 \fI%r\fR will be substituted with the
6127 switch \fB-r\fR. It means reboot after shutdown
6130 \fI%f\fR will be substituted with the
6131 switch \fB-f\fR. It means force the shutdown
6132 even if applications do not respond for NT.
6134 Default: \fBNone\fR.
6136 Example: \fBabort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f\fR
6138 Shutdown script example:
6147 /sbin/shutdown $3 $4 +$time $1 &
6151 Shutdown does not return so we need to launch it in background.
6153 See also \fIabort shutdown script\fR.
6155 \fBsmb passwd file (G)\fR
6156 This option sets the path to the encrypted
6157 smbpasswd file. By default the path to the smbpasswd file
6158 is compiled into Samba.
6160 Default: \fBsmb passwd file = ${prefix}/private/smbpasswd
6162 Example: \fBsmb passwd file = /etc/samba/smbpasswd
6164 \fBsocket address (G)\fR
6165 This option allows you to control what
6166 address Samba will listen for connections on. This is used to
6167 support multiple virtual interfaces on the one server, each
6168 with a different configuration.
6170 By default Samba will accept connections on any
6173 Example: \fBsocket address = 192.168.2.20\fR
6175 \fBsocket options (G)\fR
6176 This option allows you to set socket options
6177 to be used when talking with the client.
6179 Socket options are controls on the networking layer
6180 of the operating systems which allow the connection to be
6183 This option will typically be used to tune your Samba
6184 server for optimal performance for your local network. There is
6185 no way that Samba can know what the optimal parameters are for
6186 your net, so you must experiment and choose them yourself. We
6187 strongly suggest you read the appropriate documentation for your
6188 operating system first (perhaps \fBman setsockopt\fR
6191 You may find that on some systems Samba will say
6192 "Unknown socket option" when you supply an option. This means you
6193 either incorrectly typed it or you need to add an include file
6194 to includes.h for your OS. If the latter is the case please
6195 send the patch to samba@samba.org <URL:mailto:samba@samba.org>.
6197 Any of the supported socket options may be combined
6198 in any way you like, as long as your OS allows it.
6200 This is the list of socket options currently settable
6235 Those marked with a \fB'*'\fR take an integer
6236 argument. The others can optionally take a 1 or 0 argument to enable
6237 or disable the option, by default they will be enabled if you
6238 don't specify 1 or 0.
6241 To specify an argument use the syntax SOME_OPTION = VALUE
6242 for example \fBSO_SNDBUF = 8192\fR. Note that you must
6243 not have any spaces before or after the = sign.
6246 If you are on a local network then a sensible option
6250 \fBsocket options = IPTOS_LOWDELAY\fR
6253 If you have a local network then you could try:
6256 \fBsocket options = IPTOS_LOWDELAY TCP_NODELAY\fR
6259 If you are on a wide area network then perhaps try
6260 setting IPTOS_THROUGHPUT.
6263 Note that several of the options may cause your Samba
6264 server to fail completely. Use these options with caution!
6267 Default: \fBsocket options = TCP_NODELAY\fR
6270 Example: \fBsocket options = IPTOS_LOWDELAY\fR
6273 \fBsource environment (G)\fR
6274 This parameter causes Samba to set environment
6275 variables as per the content of the file named.
6277 If the value of this parameter starts with a "|" character
6278 then Samba will treat that value as a pipe command to open and
6279 will set the environment variables from the output of the pipe.
6281 The contents of the file or the output of the pipe should
6282 be formatted as the output of the standard Unix \fBenv(1)
6283 \fRcommand. This is of the form :
6285 Example environment entry:
6287 \fBSAMBA_NETBIOS_NAME = myhostname\fR
6289 Default: \fBNo default value\fR
6291 Examples: \fBsource environment = |/etc/smb.conf.sh
6293 Example: \fBsource environment =
6294 /usr/local/smb_env_vars\fR
6297 This variable is part of SSL-enabled Samba. This
6298 is only available if the SSL libraries have been compiled on your
6299 system and the configure option \fB--with-ssl\fR was
6300 given at configure time.
6302 This variable enables or disables the entire SSL mode. If
6303 it is set to no, the SSL-enabled Samba behaves
6304 exactly like the non-SSL Samba. If set to yes,
6305 it depends on the variables \fI ssl hosts\fR and \fIssl hosts resign\fR whether an SSL
6306 connection will be required.
6308 Default: \fBssl = no\fR
6310 \fBssl CA certDir (G)\fR
6311 This variable is part of SSL-enabled Samba. This
6312 is only available if the SSL libraries have been compiled on your
6313 system and the configure option \fB--with-ssl\fR was
6314 given at configure time.
6316 This variable defines where to look up the Certification
6317 Authorities. The given directory should contain one file for
6318 each CA that Samba will trust. The file name must be the hash
6319 value over the "Distinguished Name" of the CA. How this directory
6320 is set up is explained later in this document. All files within the
6321 directory that don't fit into this naming scheme are ignored. You
6322 don't need this variable if you don't verify client certificates.
6324 Default: \fBssl CA certDir = /usr/local/ssl/certs
6326 \fBssl CA certFile (G)\fR
6327 This variable is part of SSL-enabled Samba. This
6328 is only available if the SSL libraries have been compiled on your
6329 system and the configure option \fB--with-ssl\fR was
6330 given at configure time.
6332 This variable is a second way to define the trusted CAs.
6333 The certificates of the trusted CAs are collected in one big
6334 file and this variable points to the file. You will probably
6335 only use one of the two ways to define your CAs. The first choice is
6336 preferable if you have many CAs or want to be flexible, the second
6337 is preferable if you only have one CA and want to keep things
6338 simple (you won't need to create the hashed file names). You
6339 don't need this variable if you don't verify client certificates.
6341 Default: \fBssl CA certFile = /usr/local/ssl/certs/trustedCAs.pem
6343 \fBssl ciphers (G)\fR
6344 This variable is part of SSL-enabled Samba. This
6345 is only available if the SSL libraries have been compiled on your
6346 system and the configure option \fB--with-ssl\fR was
6347 given at configure time.
6349 This variable defines the ciphers that should be offered
6350 during SSL negotiation. You should not set this variable unless
6351 you know what you are doing.
6353 \fBssl client cert (G)\fR
6354 This variable is part of SSL-enabled Samba. This
6355 is only available if the SSL libraries have been compiled on your
6356 system and the configure option \fB--with-ssl\fR was
6357 given at configure time.
6359 The certificate in this file is used by \fBsmbclient(1)\fRif it exists. It's needed
6360 if the server requires a client certificate.
6362 Default: \fBssl client cert = /usr/local/ssl/certs/smbclient.pem
6364 \fBssl client key (G)\fR
6365 This variable is part of SSL-enabled Samba. This
6366 is only available if the SSL libraries have been compiled on your
6367 system and the configure option \fB--with-ssl\fR was
6368 given at configure time.
6370 This is the private key for \fBsmbclient(1)\fR. It's only needed if the
6371 client should have a certificate.
6373 Default: \fBssl client key = /usr/local/ssl/private/smbclient.pem
6375 \fBssl compatibility (G)\fR
6376 This variable is part of SSL-enabled Samba. This
6377 is only available if the SSL libraries have been compiled on your
6378 system and the configure option \fB--with-ssl\fR was
6379 given at configure time.
6381 This variable defines whether OpenSSL should be configured
6382 for bug compatibility with other SSL implementations. This is
6383 probably not desirable because currently no clients with SSL
6384 implementations other than OpenSSL exist.
6386 Default: \fBssl compatibility = no\fR
6388 \fBssl egd socket (G)\fR
6389 This variable is part of SSL-enabled Samba. This
6390 is only available if the SSL libraries have been compiled on your
6391 system and the configure option \fB--with-ssl\fR was
6392 given at configure time.
6394 This option is used to define the location of the communiation socket of
6395 an EGD or PRNGD daemon, from which entropy can be retrieved. This option
6396 can be used instead of or together with the \fIssl entropy file\fR
6397 directive. 255 bytes of entropy will be retrieved from the daemon.
6401 \fBssl entropy bytes (G)\fR
6402 This variable is part of SSL-enabled Samba. This
6403 is only available if the SSL libraries have been compiled on your
6404 system and the configure option \fB--with-ssl\fR was
6405 given at configure time.
6407 This parameter is used to define the number of bytes which should
6408 be read from the \fIssl entropy
6409 file\fR If a -1 is specified, the entire file will
6412 Default: \fBssl entropy bytes = 255\fR
6414 \fBssl entropy file (G)\fR
6415 This variable is part of SSL-enabled Samba. This
6416 is only available if the SSL libraries have been compiled on your
6417 system and the configure option \fB--with-ssl\fR was
6418 given at configure time.
6420 This parameter is used to specify a file from which processes will
6421 read "random bytes" on startup. In order to seed the internal pseudo
6422 random number generator, entropy must be provided. On system with a
6423 \fI/dev/urandom\fR device file, the processes
6424 will retrieve its entropy from the kernel. On systems without kernel
6425 entropy support, a file can be supplied that will be read on startup
6426 and that will be used to seed the PRNG.
6431 See \fI ssl hosts resign\fR.
6433 \fBssl hosts resign (G)\fR
6434 This variable is part of SSL-enabled Samba. This
6435 is only available if the SSL libraries have been compiled on your
6436 system and the configure option \fB--with-ssl\fR was
6437 given at configure time.
6439 These two variables define whether Samba will go
6440 into SSL mode or not. If none of them is defined, Samba will
6441 allow only SSL connections. If the \fIssl hosts\fR variable lists
6442 hosts (by IP-address, IP-address range, net group or name),
6443 only these hosts will be forced into SSL mode. If the \fI ssl hosts resign\fR variable lists hosts, only these
6444 hosts will \fBNOT\fR be forced into SSL mode. The syntax for these two
6445 variables is the same as for the \fI hosts allow\fR and \fIhosts deny\fR pair of variables, only
6446 that the subject of the decision is different: It's not the access
6447 right but whether SSL is used or not.
6449 The example below requires SSL connections from all hosts
6450 outside the local net (which is 192.168.*.*).
6452 Default: \fBssl hosts = <empty string>\fR
6454 \fBssl hosts resign = <empty string>\fR
6456 Example: \fBssl hosts resign = 192.168.\fR
6458 \fBssl require clientcert (G)\fR
6459 This variable is part of SSL-enabled Samba. This
6460 is only available if the SSL libraries have been compiled on your
6461 system and the configure option \fB--with-ssl\fR was
6462 given at configure time.
6464 If this variable is set to yes, the
6465 server will not tolerate connections from clients that don't
6466 have a valid certificate. The directory/file given in \fIssl CA certDir\fR
6467 and \fIssl CA certFile
6468 \fRwill be used to look up the CAs that issued
6469 the client's certificate. If the certificate can't be verified
6470 positively, the connection will be terminated. If this variable
6471 is set to no, clients don't need certificates.
6472 Contrary to web applications you really \fBshould\fR
6473 require client certificates. In the web environment the client's
6474 data is sensitive (credit card numbers) and the server must prove
6475 to be trustworthy. In a file server environment the server's data
6476 will be sensitive and the clients must prove to be trustworthy.
6478 Default: \fBssl require clientcert = no\fR
6480 \fBssl require servercert (G)\fR
6481 This variable is part of SSL-enabled Samba. This
6482 is only available if the SSL libraries have been compiled on your
6483 system and the configure option \fB--with-ssl\fR was
6484 given at configure time.
6486 If this variable is set to yes, the
6488 will request a certificate from the server. Same as
6490 clientcert\fR for the server.
6492 Default: \fBssl require servercert = no\fR
6494 \fBssl server cert (G)\fR
6495 This variable is part of SSL-enabled Samba. This
6496 is only available if the SSL libraries have been compiled on your
6497 system and the configure option \fB--with-ssl\fR was
6498 given at configure time.
6500 This is the file containing the server's certificate.
6501 The server \fBmust\fR have a certificate. The
6502 file may also contain the server's private key. See later for
6503 how certificates and private keys are created.
6505 Default: \fBssl server cert = <empty string>
6507 \fBssl server key (G)\fR
6508 This variable is part of SSL-enabled Samba. This
6509 is only available if the SSL libraries have been compiled on your
6510 system and the configure option \fB--with-ssl\fR was
6511 given at configure time.
6513 This file contains the private key of the server. If
6514 this variable is not defined, the key is looked up in the
6515 certificate file (it may be appended to the certificate).
6516 The server \fBmust\fR have a private key
6517 and the certificate \fBmust\fR
6518 match this private key.
6520 Default: \fBssl server key = <empty string>
6522 \fBssl version (G)\fR
6523 This variable is part of SSL-enabled Samba. This
6524 is only available if the SSL libraries have been compiled on your
6525 system and the configure option \fB--with-ssl\fR was
6526 given at configure time.
6528 This enumeration variable defines the versions of the
6529 SSL protocol that will be used. ssl2or3 allows
6530 dynamic negotiation of SSL v2 or v3, ssl2 results
6531 in SSL v2, ssl3 results in SSL v3 and
6532 tls1 results in TLS v1. TLS (Transport Layer
6533 Security) is the new standard for SSL.
6535 Default: \fBssl version = "ssl2or3"\fR
6537 \fBstat cache (G)\fR
6538 This parameter determines if smbd(8)will use a cache in order to
6539 speed up case insensitive name mappings. You should never need
6540 to change this parameter.
6542 Default: \fBstat cache = yes\fR
6544 \fBstat cache size (G)\fR
6545 This parameter determines the number of
6546 entries in the \fIstat cache\fR. You should
6547 never need to change this parameter.
6549 Default: \fBstat cache size = 50\fR
6552 This enables or disables logging of connections
6553 to a status file that smbstatus(1)
6556 With this disabled \fBsmbstatus\fR won't be able
6557 to tell you what connections are active. You should never need to
6558 change this parameter.
6560 Default: \fBstatus = yes\fR
6562 \fBstrict allocate (S)\fR
6563 This is a boolean that controls the handling of
6564 disk space allocation in the server. When this is set to yes
6565 the server will change from UNIX behaviour of not committing real
6566 disk storage blocks when a file is extended to the Windows behaviour
6567 of actually forcing the disk system to allocate real storage blocks
6568 when a file is created or extended to be a given size. In UNIX
6569 terminology this means that Samba will stop creating sparse files.
6570 This can be slow on some systems.
6572 When strict allocate is no the server does sparse
6573 disk block allocation when a file is extended.
6575 Setting this to yes can help Samba return
6576 out of quota messages on systems that are restricting the disk quota
6579 Default: \fBstrict allocate = no\fR
6581 \fBstrict locking (S)\fR
6582 This is a boolean that controls the handling of
6583 file locking in the server. When this is set to yes
6584 the server will check every read and write access for file locks, and
6585 deny access if locks exist. This can be slow on some systems.
6587 When strict locking is no the server does file
6588 lock checks only when the client explicitly asks for them.
6590 Well-behaved clients always ask for lock checks when it
6591 is important, so in the vast majority of cases \fBstrict
6592 locking = no\fR is preferable.
6594 Default: \fBstrict locking = no\fR
6596 \fBstrict sync (S)\fR
6597 Many Windows applications (including the Windows
6598 98 explorer shell) seem to confuse flushing buffer contents to
6599 disk with doing a sync to disk. Under UNIX, a sync call forces
6600 the process to be suspended until the kernel has ensured that
6601 all outstanding data in kernel disk buffers has been safely stored
6602 onto stable storage. This is very slow and should only be done
6603 rarely. Setting this parameter to no (the
6604 default) means that smbdignores the Windows applications requests for
6605 a sync call. There is only a possibility of losing data if the
6606 operating system itself that Samba is running on crashes, so there is
6607 little danger in this default setting. In addition, this fixes many
6608 performance problems that people have reported with the new Windows98
6609 explorer shell file copies.
6611 See also the \fIsync
6612 always>\fR parameter.
6614 Default: \fBstrict sync = no\fR
6617 This is a boolean that controls whether to
6618 strip trailing dots off UNIX filenames. This helps with some
6619 CDROMs that have filenames ending in a single dot.
6621 Default: \fBstrip dot = no\fR
6623 \fBsync always (S)\fR
6624 This is a boolean parameter that controls
6625 whether writes will always be written to stable storage before
6626 the write call returns. If this is false then the server will be
6627 guided by the client's request in each write call (clients can
6628 set a bit indicating that a particular write should be synchronous).
6629 If this is true then every write will be followed by a \fBfsync()
6630 \fRcall to ensure the data is written to disk. Note that
6631 the \fIstrict sync\fR parameter must be set to
6632 yes in order for this parameter to have
6635 See also the \fIstrict
6638 Default: \fBsync always = no\fR
6641 This parameter maps how Samba debug messages
6642 are logged onto the system syslog logging levels. Samba debug
6643 level zero maps onto syslog LOG_ERR, debug
6644 level one maps onto LOG_WARNING, debug level
6645 two maps onto LOG_NOTICE, debug level three
6646 maps onto LOG_INFO. All higher levels are mapped to LOG_DEBUG.
6648 This parameter sets the threshold for sending messages
6649 to syslog. Only messages with debug level less than this value
6650 will be sent to syslog.
6652 Default: \fBsyslog = 1\fR
6654 \fBsyslog only (G)\fR
6655 If this parameter is set then Samba debug
6656 messages are logged into the system syslog only, and not to
6657 the debug log files.
6659 Default: \fBsyslog only = no\fR
6661 \fBtemplate homedir (G)\fR
6662 When filling out the user information for a Windows NT
6663 user, the winbindd(8)daemon
6664 uses this parameter to fill in the home directory for that user.
6665 If the string \fI%D\fR is present it is substituted
6666 with the user's Windows NT domain name. If the string \fI%U
6667 \fRis present it is substituted with the user's Windows
6670 Default: \fBtemplate homedir = /home/%D/%U\fR
6672 \fBtemplate shell (G)\fR
6673 When filling out the user information for a Windows NT
6674 user, the winbindd(8)daemon
6675 uses this parameter to fill in the login shell for that user.
6677 Default: \fBtemplate shell = /bin/false\fR
6679 \fBtime offset (G)\fR
6680 This parameter is a setting in minutes to add
6681 to the normal GMT to local time conversion. This is useful if
6682 you are serving a lot of PCs that have incorrect daylight
6683 saving time handling.
6685 Default: \fBtime offset = 0\fR
6687 Example: \fBtime offset = 60\fR
6689 \fBtime server (G)\fR
6690 This parameter determines if
6691 nmbd(8)advertises itself as a time server to Windows
6694 Default: \fBtime server = no\fR
6696 \fBtimestamp logs (G)\fR
6697 Synonym for \fI debug timestamp\fR.
6699 \fBtotal print jobs (G)\fR
6700 This parameter accepts an integer value which defines
6701 a limit on the maximum number of print jobs that will be accepted
6702 system wide at any given time. If a print job is submitted
6703 by a client which will exceed this number, then smbdwill return an
6704 error indicating that no space is available on the server. The
6705 default value of 0 means that no such limit exists. This parameter
6706 can be used to prevent a server from exceeding its capacity and is
6707 designed as a printing throttle. See also
6708 \fImax print jobs\fR.
6710 Default: \fBtotal print jobs = 0\fR
6712 Example: \fBtotal print jobs = 5000\fR
6714 \fBunix extensions(G)\fR
6715 This boolean parameter controls whether Samba
6716 implments the CIFS UNIX extensions, as defined by HP. These
6717 extensions enable CIFS to server UNIX clients to UNIX servers
6718 better, and allow such things as symbolic links, hard links etc.
6719 These extensions require a similarly enabled client, and are of
6720 no current use to Windows clients.
6722 Default: \fBunix extensions = no\fR
6724 \fBunix password sync (G)\fR
6725 This boolean parameter controls whether Samba
6726 attempts to synchronize the UNIX password with the SMB password
6727 when the encrypted SMB password in the smbpasswd file is changed.
6728 If this is set to true the program specified in the \fIpasswd
6729 program\fRparameter is called \fBAS ROOT\fR -
6730 to allow the new UNIX password to be set without access to the
6731 old UNIX password (as the SMB password change code has no
6732 access to the old password cleartext, only the new).
6735 program\fR, \fI passwd chat\fR.
6737 Default: \fBunix password sync = no\fR
6739 \fBupdate encrypted (G)\fR
6740 This boolean parameter allows a user logging
6741 on with a plaintext password to have their encrypted (hashed)
6742 password in the smbpasswd file to be updated automatically as
6743 they log on. This option allows a site to migrate from plaintext
6744 password authentication (users authenticate with plaintext
6745 password over the wire, and are checked against a UNIX account
6746 database) to encrypted password authentication (the SMB
6747 challenge/response authentication mechanism) without forcing
6748 all users to re-enter their passwords via smbpasswd at the time the
6749 change is made. This is a convenience option to allow the change over
6750 to encrypted passwords to be made over a longer period. Once all users
6751 have encrypted representations of their passwords in the smbpasswd
6752 file this parameter should be set to no.
6754 In order for this parameter to work correctly the \fIencrypt passwords\fR
6755 parameter must be set to no when
6756 this parameter is set to yes.
6758 Note that even when this parameter is set a user
6759 authenticating to \fBsmbd\fR must still enter a valid
6760 password in order to connect correctly, and to update their hashed
6761 (smbpasswd) passwords.
6763 Default: \fBupdate encrypted = no\fR
6765 \fBuse client driver (S)\fR
6766 This parameter applies only to Windows NT/2000
6767 clients. It has no affect on Windows 95/98/ME clients. When
6768 serving a printer to Windows NT/2000 clients without first installing
6769 a valid printer driver on the Samba host, the client will be required
6770 to install a local printer driver. From this point on, the client
6771 will treat the print as a local printer and not a network printer
6772 connection. This is much the same behavior that will occur
6773 when \fBdisable spoolss = yes\fR.
6776 factor is that under normal circumstances, the NT/2000 client will
6777 attempt to open the network printer using MS-RPC. The problem is that
6778 because the client considers the printer to be local, it will attempt
6779 to issue the OpenPrinterEx() call requesting access rights associated
6780 with the logged on user. If the user possesses local administator rights
6781 but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
6782 call will fail. The result is that the client will now display an "Access
6783 Denied; Unable to connect" message in the printer queue window (even though
6784 jobs may successfully be printed).
6786 If this parameter is enabled for a printer, then any attempt
6787 to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
6788 to PRINTER_ACCESS_USE instead. Thus allowing the OpenPrinterEx()
6789 call to succeed. \fBThis parameter MUST not be able enabled
6790 on a print share which has valid print driver installed on the Samba
6793 See also disable spoolss
6795 Default: \fBuse client driver = no\fR
6798 This global parameter determines if the tdb internals of Samba can
6799 depend on mmap working correctly on the running system. Samba requires a coherent
6800 mmap/read-write system memory cache. Currently only HPUX does not have such a
6801 coherent cache, and so this parameter is set to false by
6802 default on HPUX. On all other systems this parameter should be left alone. This
6803 parameter is provided to help the Samba developers track down problems with
6804 the tdb internal code.
6806 Default: \fBuse mmap = yes\fR
6808 \fBuse rhosts (G)\fR
6809 If this global parameter is true, it specifies
6810 that the UNIX user's \fI.rhosts\fR file in their home directory
6811 will be read to find the names of hosts and users who will be allowed
6812 access without specifying a password.
6814 \fBNOTE:\fR The use of \fIuse rhosts
6815 \fRcan be a major security hole. This is because you are
6816 trusting the PC to supply the correct username. It is very easy to
6817 get a PC to supply a false username. I recommend that the \fI use rhosts\fR option be only used if you really know what
6820 Default: \fBuse rhosts = no\fR
6823 Synonym for \fI username\fR.
6826 Synonym for \fI username\fR.
6829 Multiple users may be specified in a comma-delimited
6830 list, in which case the supplied password will be tested against
6831 each username in turn (left to right).
6833 The \fIusername\fR line is needed only when
6834 the PC is unable to supply its own username. This is the case
6835 for the COREPLUS protocol or where your users have different WfWg
6836 usernames to UNIX usernames. In both these cases you may also be
6837 better using the \\\\server\\share%user syntax instead.
6839 The \fIusername\fR line is not a great
6840 solution in many cases as it means Samba will try to validate
6841 the supplied password against each of the usernames in the
6842 \fIusername\fR line in turn. This is slow and
6843 a bad idea for lots of users in case of duplicate passwords.
6844 You may get timeouts or security breaches using this parameter
6847 Samba relies on the underlying UNIX security. This
6848 parameter does not restrict who can login, it just offers hints
6849 to the Samba server as to what usernames might correspond to the
6850 supplied password. Users can login as whoever they please and
6851 they will be able to do no more damage than if they started a
6852 telnet session. The daemon runs as the user that they log in as,
6853 so they cannot do anything that user cannot do.
6855 To restrict a service to a particular set of users you
6856 can use the \fIvalid users
6859 If any of the usernames begin with a '@' then the name
6860 will be looked up first in the NIS netgroups list (if Samba
6861 is compiled with netgroup support), followed by a lookup in
6862 the UNIX groups database and will expand to a list of all users
6863 in the group of that name.
6865 If any of the usernames begin with a '+' then the name
6866 will be looked up only in the UNIX groups database and will
6867 expand to a list of all users in the group of that name.
6869 If any of the usernames begin with a '&'then the name
6870 will be looked up only in the NIS netgroups database (if Samba
6871 is compiled with netgroup support) and will expand to a list
6872 of all users in the netgroup group of that name.
6874 Note that searching though a groups database can take
6875 quite some time, and some clients may time out during the
6878 See the section NOTE ABOUT
6879 USERNAME/PASSWORD VALIDATION for more information on how
6880 this parameter determines access to the services.
6882 Default: \fBThe guest account if a guest service,
6883 else <empty string>.\fR
6885 Examples:\fBusername = fred, mary, jack, jane,
6888 \fBusername level (G)\fR
6889 This option helps Samba to try and 'guess' at
6890 the real UNIX username, as many DOS clients send an all-uppercase
6891 username. By default Samba tries all lowercase, followed by the
6892 username with the first letter capitalized, and fails if the
6893 username is not found on the UNIX machine.
6895 If this parameter is set to non-zero the behavior changes.
6896 This parameter is a number that specifies the number of uppercase
6897 combinations to try while trying to determine the UNIX user name. The
6898 higher the number the more combinations will be tried, but the slower
6899 the discovery of usernames will be. Use this parameter when you have
6900 strange usernames on your UNIX machine, such as AstrangeUser
6903 Default: \fBusername level = 0\fR
6905 Example: \fBusername level = 5\fR
6907 \fBusername map (G)\fR
6908 This option allows you to specify a file containing
6909 a mapping of usernames from the clients to the server. This can be
6910 used for several purposes. The most common is to map usernames
6911 that users use on DOS or Windows machines to those that the UNIX
6912 box uses. The other is to map multiple users to a single username
6913 so that they can more easily share files.
6915 The map file is parsed line by line. Each line should
6916 contain a single UNIX username on the left then a '=' followed
6917 by a list of usernames on the right. The list of usernames on the
6918 right may contain names of the form @group in which case they
6919 will match any UNIX username in that group. The special client
6920 name '*' is a wildcard and matches any name. Each line of the
6921 map file may be up to 1023 characters long.
6923 The file is processed on each line by taking the
6924 supplied username and comparing it with each username on the right
6925 hand side of the '=' signs. If the supplied name matches any of
6926 the names on the right hand side then it is replaced with the name
6927 on the left. Processing then continues with the next line.
6929 If any line begins with a '#' or a ';' then it is
6932 If any line begins with an '!' then the processing
6933 will stop after that line if a mapping was done by the line.
6934 Otherwise mapping continues with every line being processed.
6935 Using '!' is most useful when you have a wildcard mapping line
6938 For example to map from the name admin
6939 or administrator to the UNIX name root you would use:
6941 \fBroot = admin administrator\fR
6943 Or to map anyone in the UNIX group system
6944 to the UNIX name sys you would use:
6948 You can have as many mappings as you like in a username
6951 If your system supports the NIS NETGROUP option then
6952 the netgroup database is checked before the \fI/etc/group
6953 \fRdatabase for matching groups.
6955 You can map Windows usernames that have spaces in them
6956 by using double quotes around the name. For example:
6958 \fBtridge = "Andrew Tridgell"\fR
6960 would map the windows username "Andrew Tridgell" to the
6961 unix username "tridge".
6963 The following example would map mary and fred to the
6964 unix user sys, and map the rest to guest. Note the use of the
6965 \&'!' to tell Samba to stop processing if it gets a match on
6976 Note that the remapping is applied to all occurrences
6977 of usernames. Thus if you connect to \\\\server\\fred and fred is remapped to mary then you
6978 will actually be connecting to \\\\server\\mary and will need to
6979 supply a password suitable for mary not
6980 fred. The only exception to this is the
6981 username passed to the \fI password server\fR (if you have one). The password
6982 server will receive whatever username the client supplies without
6985 Also note that no reverse mapping is done. The main effect
6986 this has is with printing. Users who have been mapped may have
6987 trouble deleting print jobs as PrintManager under WfWg will think
6988 they don't own the print job.
6990 Default: \fBno username map\fR
6992 Example: \fBusername map = /usr/local/samba/lib/users.map
6995 This boolean parameter is only available if
6996 Samba has been configured and compiled with the option \fB --with-utmp\fR. If set to true then Samba will attempt
6997 to add utmp or utmpx records (depending on the UNIX system) whenever a
6998 connection is made to a Samba server. Sites may use this to record the
6999 user connecting to a Samba share.
7001 See also the \fI utmp directory\fR parameter.
7003 Default: \fButmp = no\fR
7005 \fButmp directory(G)\fR
7006 This parameter is only available if Samba has
7007 been configured and compiled with the option \fB --with-utmp\fR. It specifies a directory pathname that is
7008 used to store the utmp or utmpx files (depending on the UNIX system) that
7009 record user connections to a Samba server. See also the \fIutmp\fR parameter. By default this is
7010 not set, meaning the system will use whatever utmp file the
7011 native system is set to use (usually
7012 \fI/var/run/utmp\fR on Linux).
7014 Default: \fBno utmp directory\fR
7016 \fBvalid chars (G)\fR
7017 The option allows you to specify additional
7018 characters that should be considered valid by the server in
7019 filenames. This is particularly useful for national character
7020 sets, such as adding u-umlaut or a-ring.
7022 The option takes a list of characters in either integer
7023 or character form with spaces between them. If you give two
7024 characters with a colon between them then it will be taken as
7025 an lowercase:uppercase pair.
7027 If you have an editor capable of entering the characters
7028 into the config file then it is probably easiest to use this
7029 method. Otherwise you can specify the characters in octal,
7030 decimal or hexadecimal form using the usual C notation.
7032 For example to add the single character 'Z' to the charset
7033 (which is a pointless thing to do as it's already there) you could
7034 do one of the following
7040 valid chars = 0132:0172
7045 The last two examples above actually add two characters,
7046 and alter the uppercase and lowercase mappings appropriately.
7048 Note that you \fBMUST\fR specify this parameter
7049 after the \fIclient code page\fR parameter if you
7050 have both set. If \fIclient code page\fR is set after
7051 the \fIvalid chars\fR parameter the \fIvalid
7052 chars\fR settings will be overwritten.
7054 See also the \fIclient
7055 code page\fR parameter.
7057 Default: \fBSamba defaults to using a reasonable set
7058 of valid characters for English systems\fR
7060 Example: \fBvalid chars = 0345:0305 0366:0326 0344:0304
7062 The above example allows filenames to have the Swedish
7065 \fBNOTE:\fR It is actually quite difficult to
7066 correctly produce a \fIvalid chars\fR line for
7067 a particular system. To automate the process tino@augsburg.net <URL:mailto:tino@augsburg.net> has written
7068 a package called \fBvalidchars\fR which will automatically
7069 produce a complete \fIvalid chars\fR line for
7070 a given client system. Look in the \fIexamples/validchars/
7071 \fRsubdirectory of your Samba source code distribution
7074 \fBvalid users (S)\fR
7075 This is a list of users that should be allowed
7076 to login to this service. Names starting with '@', '+' and '&'
7077 are interpreted using the same rules as described in the
7078 \fIinvalid users\fR parameter.
7080 If this is empty (the default) then any user can login.
7081 If a username is in both this list and the \fIinvalid
7082 users\fR list then access is denied for that user.
7084 The current servicename is substituted for \fI%S
7085 \fR\&. This is useful in the [homes] section.
7087 See also \fIinvalid users
7089 Default: \fBNo valid users list (anyone can login)
7091 Example: \fBvalid users = greg, @pcusers\fR
7094 This is a list of files and directories that
7095 are neither visible nor accessible. Each entry in the list must
7096 be separated by a '/', which allows spaces to be included
7097 in the entry. '*' and '?' can be used to specify multiple files
7098 or directories as in DOS wildcards.
7100 Each entry must be a unix path, not a DOS path and
7101 must \fBnot\fR include the unix directory
7104 Note that the \fIcase sensitive\fR option
7105 is applicable in vetoing files.
7107 One feature of the veto files parameter that it
7108 is important to be aware of is Samba's behaviour when
7109 trying to delete a directory. If a directory that is
7110 to be deleted contains nothing but veto files this
7111 deletion will \fBfail\fR unless you also set
7112 the \fIdelete veto files\fR parameter to
7115 Setting this parameter will affect the performance
7116 of Samba, as it will be forced to check all files and directories
7117 for a match as they are scanned.
7119 See also \fIhide files
7120 \fRand \fI case sensitive\fR.
7122 Default: \fBNo files or directories are vetoed.
7127 ; Veto any files containing the word Security,
7128 ; any ending in .tmp, and any directory containing the
7130 veto files = /*Security*/*.tmp/*root*/
7132 ; Veto the Apple specific files that a NetAtalk server
7134 veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
7138 \fBveto oplock files (S)\fR
7139 This parameter is only valid when the \fIoplocks\fR
7140 parameter is turned on for a share. It allows the Samba administrator
7141 to selectively turn off the granting of oplocks on selected files that
7142 match a wildcarded list, similar to the wildcarded list used in the
7146 Default: \fBNo files are vetoed for oplock
7149 You might want to do this on files that you know will
7150 be heavily contended for by clients. A good example of this
7151 is in the NetBench SMB benchmark program, which causes heavy
7152 client contention for files ending in \fI.SEM\fR.
7153 To cause Samba not to grant oplocks on these files you would use
7154 the line (either in the [global] section or in the section for
7155 the particular NetBench share :
7157 Example: \fBveto oplock files = /*.SEM/
7159 \fBvfs object (S)\fR
7160 This parameter specifies a shared object file that
7161 is used for Samba VFS I/O operations. By default, normal
7162 disk I/O operations are used but these can be overloaded
7163 with a VFS object. The Samba VFS layer is new to Samba 2.2 and
7164 must be enabled at compile time with --with-vfs.
7166 Default : \fBno value\fR
7168 \fBvfs options (S)\fR
7169 This parameter allows parameters to be passed
7170 to the vfs layer at initialization time. The Samba VFS layer
7171 is new to Samba 2.2 and must be enabled at compile time
7172 with --with-vfs. See also \fI vfs object\fR.
7174 Default : \fBno value\fR
7177 This allows you to override the volume label
7178 returned for a share. Useful for CDROMs with installation programs
7179 that insist on a particular volume label.
7181 Default: \fBthe name of the share\fR
7183 \fBwide links (S)\fR
7184 This parameter controls whether or not links
7185 in the UNIX file system may be followed by the server. Links
7186 that point to areas within the directory tree exported by the
7187 server are always allowed; this parameter controls access only
7188 to areas that are outside the directory tree being exported.
7190 Note that setting this parameter can have a negative
7191 effect on your server performance due to the extra system calls
7192 that Samba has to do in order to perform the link checks.
7194 Default: \fBwide links = yes\fR
7196 \fBwinbind cache time\fR
7197 This parameter specifies the number of seconds the
7198 winbindd(8)daemon will cache
7199 user and group information before querying a Windows NT server
7202 Default: \fBwinbind cache type = 15\fR
7204 \fBwinbind enum users\fR
7205 On large installations using
7206 winbindd(8)it may be
7207 necessary to suppress the enumeration of users through the
7209 \fBgetpwent()\fR and
7210 \fBendpwent()\fR group of system calls. If
7211 the \fIwinbind enum users\fR parameter is
7212 false, calls to the \fBgetpwent\fR system call
7213 will not return any data.
7215 \fBWarning:\fR Turning off user
7216 enumeration may cause some programs to behave oddly. For
7217 example, the finger program relies on having access to the
7218 full user list when searching for matching
7221 Default: \fBwinbind enum users = yes \fR
7223 \fBwinbind enum groups\fR
7224 On large installations using
7225 winbindd(8)it may be
7226 necessary to suppress the enumeration of groups through the
7228 \fBgetgrent()\fR and
7229 \fBendgrent()\fR group of system calls. If
7230 the \fIwinbind enum groups\fR parameter is
7231 false, calls to the \fBgetgrent()\fR system
7232 call will not return any data.
7234 \fBWarning:\fR Turning off group
7235 enumeration may cause some programs to behave oddly.
7237 Default: \fBwinbind enum groups = yes \fR
7240 The winbind gid parameter specifies the range of group
7241 ids that are allocated by the winbindd(8)daemon. This range of group ids should have no
7242 existing local or NIS groups within it as strange conflicts can
7245 Default: \fBwinbind gid = <empty string>
7247 Example: \fBwinbind gid = 10000-20000\fR
7249 \fBwinbind separator\fR
7250 This parameter allows an admin to define the character
7251 used when listing a username of the form of \fIDOMAIN
7252 \fR\\\fIuser\fR. This parameter
7253 is only applicable when using the \fIpam_winbind.so\fR
7254 and \fInss_winbind.so\fR modules for UNIX services.
7256 Please note that setting this parameter to + causes problems
7257 with group membership at least on glibc systems, as the character +
7258 is used as a special character for NIS in /etc/group.
7260 Example: \fBwinbind separator = \\\\\fR
7262 Example: \fBwinbind separator = /\fR
7265 The winbind gid parameter specifies the range of group
7266 ids that are allocated by the winbindd(8)daemon. This range of ids should have no
7267 existing local or NIS users within it as strange conflicts can
7270 Default: \fBwinbind uid = <empty string>
7272 Example: \fBwinbind uid = 10000-20000\fR
7275 When Samba is running as a WINS server this
7276 allows you to call an external program for all changes to the
7277 WINS database. The primary use for this option is to allow the
7278 dynamic update of external name resolution databases such as
7281 The wins hook parameter specifies the name of a script
7282 or executable that will be called as follows:
7284 \fBwins_hook operation name nametype ttl IP_list
7288 The first argument is the operation and is one
7289 of "add", "delete", or "refresh". In most cases the operation can
7290 be ignored as the rest of the parameters provide sufficient
7291 information. Note that "refresh" may sometimes be called when the
7292 name has not previously been added, in that case it should be treated
7296 The second argument is the NetBIOS name. If the
7297 name is not a legal name then the wins hook is not called.
7298 Legal names contain only letters, digits, hyphens, underscores
7302 The third argument is the NetBIOS name
7303 type as a 2 digit hexadecimal number.
7306 The fourth argument is the TTL (time to live)
7307 for the name in seconds.
7310 The fifth and subsequent arguments are the IP
7311 addresses currently registered for that name. If this list is
7312 empty then the name should be deleted.
7315 An example script that calls the BIND dynamic DNS update
7316 program \fBnsupdate\fR is provided in the examples
7317 directory of the Samba source code.
7320 \fBwins proxy (G)\fR
7321 This is a boolean that controls if nmbd(8)will respond to broadcast name
7322 queries on behalf of other hosts. You may need to set this
7323 to yes for some older clients.
7325 Default: \fBwins proxy = no\fR
7327 \fBwins server (G)\fR
7328 This specifies the IP address (or DNS name: IP
7329 address for preference) of the WINS server that nmbd(8)should register with. If you have a WINS server on
7330 your network then you should set this to the WINS server's IP.
7332 You should point this at your WINS server if you have a
7333 multi-subnetted network.
7335 \fBNOTE\fR. You need to set up Samba to point
7336 to a WINS server if you have multiple subnets and wish cross-subnet
7337 browsing to work correctly.
7339 See the documentation file \fIBROWSING.txt\fR
7340 in the docs/ directory of your Samba source distribution.
7342 Default: \fBnot enabled\fR
7344 Example: \fBwins server = 192.9.200.1\fR
7346 \fBwins support (G)\fR
7347 This boolean controls if the
7348 nmbd(8)process in Samba will act as a WINS server. You should
7349 not set this to true unless you have a multi-subnetted network and
7350 you wish a particular \fBnmbd\fR to be your WINS server.
7351 Note that you should \fBNEVER\fR set this to true
7352 on more than one machine in your network.
7354 Default: \fBwins support = no\fR
7357 This controls what workgroup your server will
7358 appear to be in when queried by clients. Note that this parameter
7359 also controls the Domain name used with the \fBsecurity = domain\fR
7362 Default: \fBset at compile time to WORKGROUP\fR
7364 Example: \fBworkgroup = MYGROUP\fR
7367 Synonym for \fI writeable\fR for people who can't spell :-).
7369 \fBwrite cache size (S)\fR
7370 If this integer parameter is set to non-zero value,
7371 Samba will create an in-memory cache for each oplocked file
7372 (it does \fBnot\fR do this for
7373 non-oplocked files). All writes that the client does not request
7374 to be flushed directly to disk will be stored in this cache if possible.
7375 The cache is flushed onto disk when a write comes in whose offset
7376 would not fit into the cache or when the file is closed by the client.
7377 Reads for the file are also served from this cache if the data is stored
7380 This cache allows Samba to batch client writes into a more
7381 efficient write size for RAID disks (i.e. writes may be tuned to
7382 be the RAID stripe size) and can improve performance on systems
7383 where the disk subsystem is a bottleneck but there is free
7384 memory for userspace programs.
7386 The integer parameter specifies the size of this cache
7387 (per oplocked file) in bytes.
7389 Default: \fBwrite cache size = 0\fR
7391 Example: \fBwrite cache size = 262144\fR
7393 for a 256k cache size per file.
7395 \fBwrite list (S)\fR
7396 This is a list of users that are given read-write
7397 access to a service. If the connecting user is in this list then
7398 they will be given write access, no matter what the \fIwriteable\fR
7399 option is set to. The list can include group names using the
7402 Note that if a user is in both the read list and the
7403 write list then they will be given write access.
7405 See also the \fIread list
7408 Default: \fBwrite list = <empty string>
7410 Example: \fBwrite list = admin, root, @staff
7413 Synonym for \fI writeable\fR.
7416 This parameter controls whether or not the server
7417 will support raw write SMB's when transferring data from clients.
7418 You should never need to change this parameter.
7420 Default: \fBwrite raw = yes\fR
7423 An inverted synonym is \fIread only\fR.
7425 If this parameter is no, then users
7426 of a service may not create or modify files in the service's
7429 Note that a printable service (\fBprintable = yes\fR)
7430 will \fBALWAYS\fR allow writing to the directory
7431 (user privileges permitting), but only via spooling operations.
7433 Default: \fBwriteable = no\fR
7436 Although the configuration file permits service names
7437 to contain spaces, your client software may not. Spaces will
7438 be ignored in comparisons anyway, so it shouldn't be a
7439 problem - but be aware of the possibility.
7441 On a similar note, many clients - especially DOS clients -
7442 limit service names to eight characters. smbd(8)
7443 has no such limitation, but attempts to connect from such
7444 clients will fail if they truncate the service names. For this reason
7445 you should probably keep your service names down to eight characters
7448 Use of the [homes] and [printers] special sections make life
7449 for an administrator easy, but the various combinations of default
7450 attributes can be tricky. Take extreme care when designing these
7451 sections. In particular, ensure that the permissions on spool
7452 directories are correct.
7455 This man page is correct for version 2.2 of
7470 The original Samba software and related utilities
7471 were created by Andrew Tridgell. Samba is now developed
7472 by the Samba Team as an Open Source project similar
7473 to the way the Linux kernel is developed.
7475 The original Samba man pages were written by Karl Auer.
7476 The man page sources were converted to YODL format (another
7477 excellent piece of Open Source software, available at
7478 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
7479 release by Jeremy Allison. The conversion to DocBook for
7480 Samba 2.2 was done by Gerald Carter