diff options
Diffstat (limited to 'docs/manpages/smb.conf.5')
-rw-r--r-- | docs/manpages/smb.conf.5 | 1384 |
1 files changed, 728 insertions, 656 deletions
diff --git a/docs/manpages/smb.conf.5 b/docs/manpages/smb.conf.5 index 7560ea57f8..02861d492d 100644 --- a/docs/manpages/smb.conf.5 +++ b/docs/manpages/smb.conf.5 @@ -3,18 +3,18 @@ .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng <steve@ggi-project.org>. -.TH "SMB.CONF" "5" "19 april 2003" "" "" - +.TH "SMB.CONF" "5" "30 March 2003" "" "" .SH NAME smb.conf \- The configuration file for the Samba suite .SH "SYNOPSIS" .PP -The \fIsmb.conf\fR file is a configuration -file for the Samba suite. \fIsmb.conf\fR contains -runtime configuration information for the Samba programs. The \fIsmb.conf\fR file -is designed to be configured and administered by the \fBswat\fR(8) program. The complete -description of the file format and possible parameters held within -are here for reference purposes. +The \fIsmb.conf\fR file is a configuration +file for the Samba suite. \fIsmb.conf\fR contains +runtime configuration information for the Samba programs. The +\fIsmb.conf\fR file is designed to be configured and +administered by the \fBswat(8)\fR + program. The complete description of the file format and +possible parameters held within are here for reference purposes. .SH "FILE FORMAT" .PP The file consists of sections and parameters. A section @@ -93,9 +93,11 @@ The user has write access to the path \fI/home/bar\fR. The share is accessed via the share name "foo": .nf -[foo] - path = /home/bar - read only = no + [foo] + path = /home/bar + read only = no + + .fi .PP The following sample section defines a printable share. @@ -106,11 +108,13 @@ access will be permitted as the default guest user (specified elsewhere): .nf -[aprinter] - path = /usr/spool/public - read only = yes - printable = yes - guest ok = yes + [aprinter] + path = /usr/spool/public + read only = yes + printable = yes + guest ok = yes + + .fi .SH "SPECIAL SECTIONS" .SS "THE [GLOBAL] SECTION" @@ -168,8 +172,10 @@ than others. The following is a typical and suitable [homes] section: .nf -[homes] - read only = no + [homes] + read only = no + + .fi .PP An important point is that if guest access is specified @@ -229,10 +235,11 @@ it. A typical [printers] entry would look like this: .nf -[printers] - path = /usr/spool/public - guest ok = yes - printable = yes + [printers] + path = /usr/spool/public + guest ok = yes + printable = yes + .fi .PP All aliases given for a printer in the printcap file @@ -242,7 +249,9 @@ to set up a pseudo-printcap. This is a file consisting of one or more lines like this: .nf -alias|alias|alias|alias... + alias|alias|alias|alias... + + .fi .PP Each alias should be an acceptable printer name for @@ -256,15 +265,12 @@ An alias, by the way, is defined as any component of the first entry of a printcap record. Records are separated by newlines, components (if there are more than one) are separated by vertical bar symbols ('|'). -.sp -.RS -.B "Note:" -On SYSV systems which use lpstat to determine what +.PP +NOTE: On SYSV systems which use lpstat to determine what printers are defined on the system you may be able to use "printcap name = lpstat" to automatically obtain a list of printers. See the "printcap name" option for more details. -.RE .SH "PARAMETERS" .PP parameters define the specific attributes of sections. @@ -667,6 +673,9 @@ each parameter for details. Note that some are synonyms. \fIldap delete dn\fR .TP 0.2i \(bu +\fIldap del only sam attr\fR +.TP 0.2i +\(bu \fIldap filter\fR .TP 0.2i \(bu @@ -745,9 +754,6 @@ each parameter for details. Note that some are synonyms. \fImachine password timeout\fR .TP 0.2i \(bu -\fImangle prefix\fR -.TP 0.2i -\(bu \fImangled stack\fR .TP 0.2i \(bu @@ -877,15 +883,15 @@ each parameter for details. Note that some are synonyms. \fIpreload\fR .TP 0.2i \(bu -\fIpreload modules\fR -.TP 0.2i -\(bu \fIprintcap\fR .TP 0.2i \(bu \fIprintcap name\fR .TP 0.2i \(bu +\fIprinter driver file\fR +.TP 0.2i +\(bu \fIprivate dir\fR .TP 0.2i \(bu @@ -925,15 +931,9 @@ each parameter for details. Note that some are synonyms. \fIsecurity\fR .TP 0.2i \(bu -\fIserver schannel\fR -.TP 0.2i -\(bu \fIserver string\fR .TP 0.2i \(bu -\fIset primary group script\fR -.TP 0.2i -\(bu \fIshow add printer wizard\fR .TP 0.2i \(bu @@ -1009,6 +1009,9 @@ each parameter for details. Note that some are synonyms. \fIuse mmap\fR .TP 0.2i \(bu +\fIuse rhosts\fR +.TP 0.2i +\(bu \fIuse sendfile\fR .TP 0.2i \(bu @@ -1310,6 +1313,9 @@ each parameter for details. Note that some are synonyms. \fIpostexec\fR .TP 0.2i \(bu +\fIpostscript\fR +.TP 0.2i +\(bu \fIpreexec\fR .TP 0.2i \(bu @@ -1334,6 +1340,12 @@ each parameter for details. Note that some are synonyms. \fIprinter admin\fR .TP 0.2i \(bu +\fIprinter driver\fR +.TP 0.2i +\(bu +\fIprinter driver location\fR +.TP 0.2i +\(bu \fIprinter name\fR .TP 0.2i \(bu @@ -1439,9 +1451,10 @@ each parameter for details. Note that some are synonyms. \fIwriteable\fR .SH "EXPLANATION OF EACH PARAMETER" .TP -\fB>abort shutdown script (G)\fR +\fBabort shutdown script (G)\fR \fBThis parameter only exists in the HEAD cvs branch\fR -This a full path name to a script called by \fBsmbd\fR(8) that +This a full path name to a script called by +\fBsmbd(8)\fR that should stop a shutdown procedure issued by the \fIshutdown script\fR. This command will be run as user. @@ -1450,7 +1463,7 @@ Default: \fBNone\fR. Example: \fBabort shutdown script = /sbin/shutdown -c\fR .TP -\fB>addprinter command (G)\fR +\fBaddprinter command (G)\fR With the introduction of MS-RPC based printing support for Windows NT/2000 clients in Samba 2.2, The MS Add Printer Wizard (APW) icon is now also available in the @@ -1464,11 +1477,12 @@ printer command\fR defines a script to be run which will perform the necessary operations for adding the printer to the print system and to add the appropriate service definition to the \fIsmb.conf\fR file in order that it can be -shared by \fBsmbd\fR(8). +shared by \fBsmbd(8)\fR + The \fIaddprinter command\fR is automatically invoked with the following parameter (in -order): +order: .RS .TP 0.2i \(bu @@ -1501,10 +1515,6 @@ been executed, \fBsmbd\fR will reparse the \fI smb.conf\fR to determine if the exists. If the sharename is still invalid, then \fBsmbd \fR will return an ACCESS_DENIED error to the client. -The "add printer command" program can output a single line of text, -which Samba will set as the port the new printer is connected to. -If this line isn't output, Samba won't reload its printer shares. - See also \fI deleteprinter command\fR, \fIprinting\fR, \fIshow add printer wizard\fR @@ -1514,7 +1524,7 @@ Default: \fBnone\fR Example: \fBaddprinter command = /usr/bin/addprinter \fR .TP -\fB>add share command (G)\fR +\fBadd share command (G)\fR Samba 2.2.0 introduced the ability to dynamically add and delete shares via the Windows NT 4.0 Server Manager. The \fIadd share command\fR is used to define an @@ -1557,9 +1567,9 @@ Default: \fBnone\fR Example: \fBadd share command = /usr/local/bin/addshare\fR .TP -\fB>add machine script (G)\fR +\fBadd machine script (G)\fR This is the full pathname to a script that will -be run by \fBsmbd\fR(8) when a machine is added +be run by smbd(8) when a machine is added to it's domain using the administrator username and password method. This option is only required when using sam back-ends tied to the @@ -1572,7 +1582,7 @@ Default: \fBadd machine script = <empty string> Example: \fBadd machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u \fR .TP -\fB>ads server (G)\fR +\fBads server (G)\fR If this option is specified, samba does not try to figure out what ads server to use itself, but uses the specified ads server. Either one DNS name or IP @@ -1582,9 +1592,10 @@ Default: \fBads server = \fR Example: \fBads server = 192.168.1.2\fR .TP -\fB>add user script (G)\fR +\fBadd user script (G)\fR This is the full pathname to a script that will -be run \fBAS ROOT\fR by \fBsmbd\fR(8) under special circumstances described below. +be run \fBAS ROOT\fR by smbd(8) + under special circumstances described below. Normally, a Samba server requires that UNIX users are created for all users accessing files on this server. For sites @@ -1593,14 +1604,15 @@ creating these users and keeping the user list in sync with the Windows NT PDC is an onerous task. This option allows smbd to create the required UNIX users \fBON DEMAND\fR when a user accesses the Samba server. -In order to use this option, \fBsmbd\fR(8) must \fBNOT\fR be set to \fIsecurity = share\fR +In order to use this option, smbd +must \fBNOT\fR be set to \fIsecurity = share\fR and \fIadd user script\fR must be set to a full pathname for a script that will create a UNIX user given one argument of \fI%u\fR, which expands into the UNIX user name to create. When the Windows user attempts to access the Samba server, -at login (session setup in the SMB protocol) time, \fBsmbd\fR(8) contacts the \fIpassword server\fR and +at login (session setup in the SMB protocol) time, smbd contacts the \fIpassword server\fR and attempts to authenticate the given user with the given password. If the authentication succeeds then \fBsmbd\fR attempts to find a UNIX user in the UNIX password database to map the @@ -1624,9 +1636,9 @@ Default: \fBadd user script = <empty string> Example: \fBadd user script = /usr/local/samba/bin/add_user %u\fR .TP -\fB>add group script (G)\fR +\fBadd group script (G)\fR This is the full pathname to a script that will -be run \fBAS ROOT\fR by \fBsmbd\fR(8) when a new group is +be run \fBAS ROOT\fR by smbd(8) when a new group is requested. It will expand any \fI%g\fR to the group name passed. This script is only useful for installations using the @@ -1636,7 +1648,7 @@ circumvent unix group name restrictions. In that case the script must print the numeric gid of the created group on stdout. .TP -\fB>admin users (S)\fR +\fBadmin users (S)\fR This is a list of users who will be granted administrative privileges on the share. This means that they will do all file operations as the super-user (root). @@ -1649,21 +1661,22 @@ Default: \fBno admin users\fR Example: \fBadmin users = jason\fR .TP -\fB>add user to group script (G)\fR +\fBadd user to group script (G)\fR Full path to the script that will be called when a user is added to a group using the Windows NT domain administration -tools. It will be run by \fBsmbd\fR(8) \fBAS ROOT\fR. -Any \fI%g\fR will be replaced with the group name and -any \fI%u\fR will be replaced with the user name. +tools. It will be run by smbd(8) +\fBAS ROOT\fR. Any \fI%g\fR will be +replaced with the group name and any \fI%u\fR will +be replaced with the user name. Default: \fBadd user to group script = \fR Example: \fBadd user to group script = /usr/sbin/adduser %u %g\fR .TP -\fB>allow hosts (S)\fR +\fBallow hosts (S)\fR Synonym for \fIhosts allow\fR. .TP -\fB>algorithmic rid base (G)\fR +\fBalgorithmic rid base (G)\fR This determines how Samba will use its algorithmic mapping from uids/gid to the RIDs needed to construct NT Security Identifiers. @@ -1682,7 +1695,7 @@ Default: \fBalgorithmic rid base = 1000\fR Example: \fBalgorithmic rid base = 100000\fR .TP -\fB>allow trusted domains (G)\fR +\fBallow trusted domains (G)\fR This option only takes effect when the \fIsecurity\fR option is set to server or domain. If it is set to no, then attempts to connect to a resource from @@ -1701,8 +1714,10 @@ can make implementing a security boundary difficult. Default: \fBallow trusted domains = yes\fR .TP -\fB>announce as (G)\fR -This specifies what type of server \fBnmbd\fR(8) will announce itself as, to a network neighborhood browse +\fBannounce as (G)\fR +This specifies what type of server +\fBnmbd\fR +will announce itself as, to a network neighborhood browse list. By default this is set to Windows NT. The valid options are : "NT Server" (which can also be written as "NT"), "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, @@ -1716,7 +1731,7 @@ Default: \fBannounce as = NT Server\fR Example: \fBannounce as = Win95\fR .TP -\fB>announce version (G)\fR +\fBannounce version (G)\fR This specifies the major and minor version numbers that nmbd will use when announcing itself as a server. The default is 4.9. Do not change this parameter unless you have a specific @@ -1726,10 +1741,10 @@ Default: \fBannounce version = 4.9\fR Example: \fBannounce version = 2.0\fR .TP -\fB>auto services (G)\fR +\fBauto services (G)\fR This is a synonym for the \fIpreload\fR. .TP -\fB>auth methods (G)\fR +\fBauth methods (G)\fR This option allows the administrator to chose what authentication methods \fBsmbd\fR will use when authenticating a user. This option defaults to sensible values based on \fI security\fR. @@ -1741,7 +1756,7 @@ Default: \fBauth methods = <empty string>\fR Example: \fBauth methods = guest sam ntdomain\fR .TP -\fB>available (S)\fR +\fBavailable (S)\fR This parameter lets you "turn off" a service. If \fIavailable = no\fR, then \fBALL\fR attempts to connect to the service will fail. Such failures are @@ -1749,10 +1764,12 @@ logged. Default: \fBavailable = yes\fR .TP -\fB>bind interfaces only (G)\fR +\fBbind interfaces only (G)\fR This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests. It -affects file service \fBsmbd\fR(8) and name service \fBnmbd\fR(8) in a slightly different ways. +affects file service smbd(8) and +name service nmbd(8) in slightly +different ways. For name service it causes \fBnmbd\fR to bind to ports 137 and 138 on the interfaces listed in the interfaces parameter. \fBnmbd @@ -1771,8 +1788,8 @@ send packets that arrive through any interfaces not listed in the does defeat this simple check, however, so it must not be used seriously as a security feature for \fBnmbd\fR. -For file service it causes \fBsmbd\fR(8) to bind only to the interface list -given in the interfaces parameter. This restricts the networks that +For file service it causes smbd(8) +to bind only to the interface list given in the interfaces parameter. This restricts the networks that \fBsmbd\fR will serve to packets coming in those interfaces. Note that you should not use this parameter for machines that are serving PPP or other intermittent or non-broadcast network @@ -1780,7 +1797,9 @@ interfaces as it will not cope with non-permanent interfaces. If \fIbind interfaces only\fR is set then unless the network address \fB127.0.0.1\fR is added -to the \fIinterfaces\fR parameter list \fBsmbpasswd\fR(8) and \fBswat\fR(8) may not work as expected due to the reasons covered below. +to the \fIinterfaces\fR parameter list \fBsmbpasswd(8)\fR +and \fBswat(8)\fR may +not work as expected due to the reasons covered below. To change a users SMB password, the \fBsmbpasswd\fR by default connects to the \fBlocalhost - 127.0.0.1\fR @@ -1789,8 +1808,8 @@ address as an SMB client to issue the password change request. If network address \fB127.0.0.1\fR is added to the \fIinterfaces\fR parameter list then \fB smbpasswd\fR will fail to connect in it's default mode. \fBsmbpasswd\fR can be forced to use the primary IP interface -of the local host by using its \fBsmbpasswd\fR(8) \fI-r remote machine\fR -parameter, with \fIremote machine\fR set +of the local host by using its \fI-r remote machine\fR + parameter, with \fIremote machine\fR set to the IP name of the primary interface of the local host. The \fBswat\fR status page tries to connect with @@ -1802,9 +1821,8 @@ and \fBnmbd\fR. Default: \fBbind interfaces only = no\fR .TP -\fB>blocking locks (S)\fR -This parameter controls the behavior -of \fBsmbd\fR(8) when given a request by a client +\fBblocking locks (S)\fR +This parameter controls the behavior of smbd(8) when given a request by a client to obtain a byte range lock on a region of an open file, and the request has a time limit associated with it. @@ -1820,8 +1838,9 @@ cannot be obtained. Default: \fBblocking locks = yes\fR .TP -\fB>block size (S)\fR -This parameter controls the behavior of \fBsmbd\fR(8) when reporting disk free +\fBblock size (S)\fR +This parameter controls the behavior of +smbd(8) when reporting disk free sizes. By default, this reports a disk block size of 1024 bytes. Changing this parameter may have some effect on the @@ -1833,38 +1852,42 @@ is an experimental option it may be removed in a future release. Changing this option does not change the disk free reporting size, just the block size unit reported to the client. + +Default: \fBblock size = 1024\fR + +Example: \fBblock size = 65536\fR .TP -\fB>browsable (S)\fR +\fBbrowsable (S)\fR See the \fI browseable\fR. .TP -\fB>browse list (G)\fR -This controls whether \fBsmbd\fR(8) will serve a browse list to +\fBbrowse list (G)\fR +This controls whether \fBsmbd(8)\fR will serve a browse list to a client doing a \fBNetServerEnum\fR call. Normally set to yes. You should never need to change this. Default: \fBbrowse list = yes\fR .TP -\fB>browseable (S)\fR +\fBbrowseable (S)\fR This controls whether this share is seen in the list of available shares in a net view and in the browse list. Default: \fBbrowseable = yes\fR .TP -\fB>case sensitive (S)\fR +\fBcase sensitive (S)\fR See the discussion in the section NAME MANGLING. Default: \fBcase sensitive = no\fR .TP -\fB>casesignames (S)\fR +\fBcasesignames (S)\fR Synonym for case sensitive. .TP -\fB>change notify timeout (G)\fR +\fBchange notify timeout (G)\fR This SMB allows a client to tell a server to "watch" a particular directory for any changes and only reply to the SMB request when a change has occurred. Such constant scanning of -a directory is expensive under UNIX, hence an \fBsmbd\fR(8) daemon only performs such a scan +a directory is expensive under UNIX, hence an \fBsmbd(8)\fR daemon only performs such a scan on each requested directory once every \fIchange notify timeout\fR seconds. @@ -1874,7 +1897,7 @@ Example: \fBchange notify timeout = 300\fR Would change the scan time to every 5 minutes. .TP -\fB>change share command (G)\fR +\fBchange share command (G)\fR Samba 2.2.0 introduced the ability to dynamically add and delete shares via the Windows NT 4.0 Server Manager. The \fIchange share command\fR is used to define an @@ -1916,7 +1939,7 @@ Default: \fBnone\fR Example: \fBchange share command = /usr/local/bin/addshare\fR .TP -\fB>comment (S)\fR +\fBcomment (S)\fR This is a text field that is seen next to a share when a client does a queries the server, either via the network neighborhood or via \fBnet view\fR to list what shares @@ -1929,7 +1952,7 @@ Default: \fBNo comment string\fR Example: \fBcomment = Fred's Files\fR .TP -\fB>config file (G)\fR +\fBconfig file (G)\fR This allows you to override the config file to use, instead of the default (usually \fIsmb.conf\fR). There is a chicken and egg problem here as this option is set @@ -1949,7 +1972,7 @@ clients). Example: \fBconfig file = /usr/local/samba/lib/smb.conf.%m \fR .TP -\fB>copy (S)\fR +\fBcopy (S)\fR This parameter allows you to "clone" service entries. The specified service is simply duplicated under the current service's name. Any parameters specified in the current @@ -1964,7 +1987,7 @@ Default: \fBno value\fR Example: \fBcopy = otherservice\fR .TP -\fB>create mask (S)\fR +\fBcreate mask (S)\fR A synonym for this parameter is \fIcreate mode\fR \&. @@ -2001,10 +2024,10 @@ Default: \fBcreate mask = 0744\fR Example: \fBcreate mask = 0775\fR .TP -\fB>create mode (S)\fR +\fBcreate mode (S)\fR This is a synonym for \fI create mask\fR. .TP -\fB>csc policy (S)\fR +\fBcsc policy (S)\fR This stands for \fBclient-side caching policy\fR, and specifies how clients capable of offline caching will cache the files in the share. The valid values @@ -2021,7 +2044,7 @@ Default: \fBcsc policy = manual\fR Example: \fBcsc policy = programs\fR .TP -\fB>deadtime (G)\fR +\fBdeadtime (G)\fR The value of the parameter (a decimal integer) represents the number of minutes of inactivity before a connection is considered dead, and it is disconnected. The deadtime only takes @@ -2044,7 +2067,7 @@ Default: \fBdeadtime = 0\fR Example: \fBdeadtime = 15\fR .TP -\fB>debug hires timestamp (G)\fR +\fBdebug hires timestamp (G)\fR Sometimes the timestamps in the log messages are needed with a resolution of higher that seconds, this boolean parameter adds microsecond resolution to the timestamp @@ -2055,7 +2078,7 @@ effect. Default: \fBdebug hires timestamp = no\fR .TP -\fB>debug pid (G)\fR +\fBdebug pid (G)\fR When using only one log file for more then one forked smbdprocess there may be hard to follow which process outputs which message. This boolean parameter is adds the process-id @@ -2066,7 +2089,7 @@ effect. Default: \fBdebug pid = no\fR .TP -\fB>debug timestamp (G)\fR +\fBdebug timestamp (G)\fR Samba debug log messages are timestamped by default. If you are running at a high \fIdebug level\fR these timestamps can be distracting. This boolean parameter allows timestamping @@ -2074,7 +2097,7 @@ to be turned off. Default: \fBdebug timestamp = yes\fR .TP -\fB>debug uid (G)\fR +\fBdebug uid (G)\fR Samba is sometimes run as root and sometime run as the connected user, this boolean parameter inserts the current euid, egid, uid and gid to the timestamp message headers @@ -2085,18 +2108,18 @@ effect. Default: \fBdebug uid = no\fR .TP -\fB>debuglevel (G)\fR +\fBdebuglevel (G)\fR Synonym for \fI log level\fR. .TP -\fB>default (G)\fR +\fBdefault (G)\fR A synonym for \fI default service\fR. .TP -\fB>default case (S)\fR +\fBdefault case (S)\fR See the section on NAME MANGLING. Also note the \fIshort preserve case\fR parameter. Default: \fBdefault case = lower\fR .TP -\fB>default devmode (S)\fR +\fBdefault devmode (S)\fR This parameter is only applicable to printable services. When smbd is serving Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba server has a Device Mode which defines things such as paper size and @@ -2124,7 +2147,7 @@ see the MSDN documentation <URL:http://msdn.microsoft.com/>. Default: \fBdefault devmode = no\fR .TP -\fB>default service (G)\fR +\fBdefault service (G)\fR This parameter specifies the name of a service which will be connected to if the service actually requested cannot be found. Note that the square brackets are \fBNOT\fR @@ -2154,15 +2177,14 @@ Example: [pub] path = /%S + .fi .TP -\fB>delete group script (G)\fR +\fBdelete group script (G)\fR This is the full pathname to a script that will -be run \fBAS ROOT\fR \fBsmbd\fR(8) when a group is requested to be deleted. -It will expand any \fI%g\fR to the group name passed. -This script is only useful for installations using the Windows NT domain administration tools. +be run \fBAS ROOT\fR by smbd(8) when a group is requested to be deleted. It will expand any \fI%g\fR to the group name passed. This script is only useful for installations using the Windows NT domain administration tools. .TP -\fB>deleteprinter command (G)\fR +\fBdeleteprinter command (G)\fR With the introduction of MS-RPC based printer support for Windows NT/2000 clients in Samba 2.2, it is now possible to delete printer at run time by issuing the @@ -2190,7 +2212,7 @@ Default: \fBnone\fR Example: \fBdeleteprinter command = /usr/bin/removeprinter \fR .TP -\fB>delete readonly (S)\fR +\fBdelete readonly (S)\fR This parameter allows readonly files to be deleted. This is not normal DOS semantics, but is allowed by UNIX. @@ -2200,7 +2222,7 @@ permissions, and DOS semantics prevent deletion of a read only file. Default: \fBdelete readonly = no\fR .TP -\fB>delete share command (G)\fR +\fBdelete share command (G)\fR Samba 2.2.0 introduced the ability to dynamically add and delete shares via the Windows NT 4.0 Server Manager. The \fIdelete share command\fR is used to define an @@ -2235,10 +2257,10 @@ Default: \fBnone\fR Example: \fBdelete share command = /usr/local/bin/delshare\fR .TP -\fB>delete user script (G)\fR +\fBdelete user script (G)\fR This is the full pathname to a script that will -be run by \fBsmbd\fR(8) when managing users -with remote RPC (NT) tools. +be run by \fBsmbd(8)\fR +when managing user's with remote RPC (NT) tools. This script is called when a remote client removes a user from the server, normally using 'User Manager for Domains' or @@ -2252,18 +2274,19 @@ Default: \fBdelete user script = <empty string> Example: \fBdelete user script = /usr/local/samba/bin/del_user %u\fR .TP -\fB>delete user from group script (G)\fR +\fBdelete user from group script (G)\fR Full path to the script that will be called when a user is removed from a group using the Windows NT domain administration -tools. It will be run by \fBsmbd\fR(8) \fBAS ROOT\fR. -Any \fI%g\fR will be replaced with the group name and -any \fI%u\fR will be replaced with the user name. +tools. It will be run by smbd(8) +\fBAS ROOT\fR. Any \fI%g\fR will be +replaced with the group name and any \fI%u\fR will +be replaced with the user name. Default: \fBdelete user from group script = \fR Example: \fBdelete user from group script = /usr/sbin/deluser %u %g\fR .TP -\fB>delete veto files (S)\fR +\fBdelete veto files (S)\fR This option is used when Samba is attempting to delete a directory that contains one or more vetoed directories (see the \fIveto files\fR @@ -2287,11 +2310,11 @@ files\fR parameter. Default: \fBdelete veto files = no\fR .TP -\fB>deny hosts (S)\fR +\fBdeny hosts (S)\fR Synonym for \fIhosts deny\fR. .TP -\fB>dfree command (G)\fR +\fBdfree command (G)\fR The \fIdfree command\fR setting should only be used on systems where a problem occurs with the internal disk space calculations. This has been known to happen with Ultrix, @@ -2327,8 +2350,9 @@ Where the script dfree (which must be made executable) could be: .nf -#!/bin/sh -df $1 | tail -1 | awk '{print $2" "$4}' + #!/bin/sh + df $1 | tail -1 | awk '{print $2" "$4}' + .fi or perhaps (on Sys V based systems): @@ -2336,18 +2360,19 @@ or perhaps (on Sys V based systems): .nf -#!/bin/sh -/usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}' + #!/bin/sh + /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}' + .fi Note that you may have to replace the command names with full path names on some systems. .TP -\fB>directory (S)\fR +\fBdirectory (S)\fR Synonym for \fIpath \fR. .TP -\fB>directory mask (S)\fR +\fBdirectory mask (S)\fR This parameter is the octal modes which are used when converting DOS modes to UNIX modes when creating UNIX directories. @@ -2388,10 +2413,10 @@ Default: \fBdirectory mask = 0755\fR Example: \fBdirectory mask = 0775\fR .TP -\fB>directory mode (S)\fR +\fBdirectory mode (S)\fR Synonym for \fI directory mask\fR .TP -\fB>directory security mask (S)\fR +\fBdirectory security mask (S)\fR This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog @@ -2421,7 +2446,7 @@ Default: \fBdirectory security mask = 0777\fR Example: \fBdirectory security mask = 0700\fR .TP -\fB>disable netbios (G)\fR +\fBdisable netbios (G)\fR Enabling this parameter will disable netbios support in Samba. Netbios is the only available form of browsing in all windows versions except for 2000 and XP. @@ -2433,7 +2458,7 @@ Default: \fBdisable netbios = no\fR Example: \fBdisable netbios = yes\fR .TP -\fB>disable spoolss (G)\fR +\fBdisable spoolss (G)\fR Enabling this parameter will disable Samba's support for the SPOOLSS set of MS-RPC's and will yield identical behavior as Samba 2.0.x. Windows NT/2000 clients will downgrade to using @@ -2449,7 +2474,7 @@ See also use client driver Default : \fBdisable spoolss = no\fR .TP -\fB>display charset (G)\fR +\fBdisplay charset (G)\fR Specifies the charset that samba will use to print messages to stdout and stderr and SWAT will use. Should generally be the same as the \fBunix charset\fR. @@ -2458,11 +2483,12 @@ Default: \fBdisplay charset = ASCII\fR Example: \fBdisplay charset = UTF8\fR .TP -\fB>dns proxy (G)\fR -Specifies that \fBnmbd\fR(8) when acting as a WINS server and -finding that a NetBIOS name has not been registered, should treat the -NetBIOS name word-for-word as a DNS name and do a lookup with the DNS server -for that name on behalf of the name-querying client. +\fBdns proxy (G)\fR +Specifies that nmbd(8) +when acting as a WINS server and finding that a NetBIOS name has not +been registered, should treat the NetBIOS name word-for-word as a DNS +name and do a lookup with the DNS server for that name on behalf of +the name-querying client. Note that the maximum length for a NetBIOS name is 15 characters, so the DNS name (or DNS alias) can likewise only be @@ -2476,7 +2502,7 @@ See also the parameter \fI wins support\fR. Default: \fBdns proxy = yes\fR .TP -\fB>domain logons (G)\fR +\fBdomain logons (G)\fR If set to yes, the Samba server will serve Windows 95/98 Domain logons for the \fIworkgroup\fR it is in. Samba 2.2 has limited capability to act as a domain controller for Windows @@ -2486,17 +2512,18 @@ directory shipped with the source code. Default: \fBdomain logons = no\fR .TP -\fB>domain master (G)\fR -Tell \fBsmbd\fR(8) to enable WAN-wide browse list +\fBdomain master (G)\fR +Tell \fB nmbd(8)\fR to enable WAN-wide browse list collation. Setting this option causes \fBnmbd\fR to claim a special domain specific NetBIOS name that identifies it as a domain master browser for its given \fIworkgroup\fR. Local master browsers in the same \fIworkgroup\fR on broadcast-isolated subnets will give this \fBnmbd\fR their local browse lists, -and then ask \fBsmbd\fR(8) for a complete copy of the browse -list for the whole wide area network. Browser clients will then contact -their local master browser, and will receive the domain-wide browse list, -instead of just the list for their broadcast-isolated subnet. +and then ask \fBsmbd(8)\fR +for a complete copy of the browse list for the whole wide area +network. Browser clients will then contact their local master browser, +and will receive the domain-wide browse list, instead of just the list +for their broadcast-isolated subnet. Note that Windows NT Primary Domain Controllers expect to be able to claim this \fIworkgroup\fR specific special @@ -2516,7 +2543,7 @@ master\fR be enabled by default. Default: \fBdomain master = auto\fR .TP -\fB>dont descend (S)\fR +\fBdont descend (S)\fR There are certain directories on some systems (e.g., the \fI/proc\fR tree under Linux) that are either not of interest to clients or are infinitely deep (recursive). This @@ -2532,16 +2559,17 @@ to descend)\fR Example: \fBdont descend = /proc,/dev\fR .TP -\fB>dos charset (G)\fR +\fBdos charset (G)\fR DOS SMB clients assume the server has the same charset as they do. This option specifies which charset Samba should talk to DOS clients. -The default depends on which charsets you have installed. +The default depends on which charsets you have instaled. Samba tries to use charset 850 but falls back to ASCII in -case it is not available. Run \fBtestparm\fR(1) to check the default on your system. +case it is not available. Run testparm(1) + to check the default on your system. .TP -\fB>dos filemode (S)\fR +\fBdos filemode (S)\fR The default behavior in Samba is to provide UNIX-like behavior where only the owner of a file/directory is able to change the permissions on it. However, this behavior @@ -2555,12 +2583,13 @@ are modified. Default: \fBdos filemode = no\fR .TP -\fB>dos filetime resolution (S)\fR +\fBdos filetime resolution (S)\fR Under the DOS and Windows FAT filesystem, the finest granularity on time resolution is two seconds. Setting this parameter for a share causes Samba to round the reported time down to the nearest two second boundary when a query call that requires one second -resolution is made to \fBsmbd\fR(8). +resolution is made to \fBsmbd(8)\fR + This option is mainly used as a compatibility option for Visual C++ when used against Samba shares. If oplocks are enabled on a @@ -2575,34 +2604,36 @@ happy. Default: \fBdos filetime resolution = no\fR .TP -\fB>dos filetimes (S)\fR +\fBdos filetimes (S)\fR Under DOS and Windows, if a user can write to a file they can change the timestamp on it. Under POSIX semantics, only the owner of the file or root may change the timestamp. By default, Samba runs with POSIX semantics and refuses to change the timestamp on a file if the user \fBsmbd\fR is acting -on behalf of is not the file owner. Setting this option to yes allows DOS semantics and \fBsmbd\fR(8) will change the file +on behalf of is not the file owner. Setting this option to yes allows DOS semantics and smbd will change the file timestamp as DOS requires. Default: \fBdos filetimes = no\fR .TP -\fB>encrypt passwords (G)\fR +\fBencrypt passwords (G)\fR This boolean controls whether encrypted passwords will be negotiated with the client. Note that Windows NT 4.0 SP3 and above and also Windows 98 will by default expect encrypted passwords unless a registry entry is changed. To use encrypted passwords in -Samba see the chapter User Database in the Samba HOWTO Collection. +Samba see the file ENCRYPTION.txt in the Samba documentation +directory \fIdocs/\fR shipped with the source code. In order for encrypted passwords to work correctly -\fBsmbd\fR(8) must either -have access to a local \fBsmbpasswd\fR(5) file (see the \fBsmbpasswd\fR(8) program for information on how to set up +\fBsmbd(8)\fR must either +have access to a local \fIsmbpasswd(5) +\fR program for information on how to set up and maintain this file), or set the security = [server|domain|ads] parameter which causes \fBsmbd\fR to authenticate against another server. Default: \fBencrypt passwords = yes\fR .TP -\fB>enhanced browsing (G)\fR +\fBenhanced browsing (G)\fR This option enables a couple of enhancements to cross-subnet browse propagation that have been added in Samba but which are not standard in Microsoft implementations. @@ -2623,7 +2654,7 @@ cross-subnet browse propagation much more reliable. Default: \fBenhanced browsing = yes\fR .TP -\fB>enumports command (G)\fR +\fBenumports command (G)\fR The concept of a "port" is fairly foreign to UNIX hosts. Under Windows NT/2000 print servers, a port is associated with a port monitor and generally takes the form of @@ -2644,10 +2675,10 @@ Default: \fBno enumports command\fR Example: \fBenumports command = /usr/bin/listports \fR .TP -\fB>exec (S)\fR +\fBexec (S)\fR This is a synonym for \fIpreexec\fR. .TP -\fB>fake directory create times (S)\fR +\fBfake directory create times (S)\fR NTFS and Windows VFAT file systems keep a create time for all files and directories. This is not the same as the ctime - status change time - that Unix keeps, so Samba by default @@ -2676,7 +2707,7 @@ will proceed as expected. Default: \fBfake directory create times = no\fR .TP -\fB>fake oplocks (S)\fR +\fBfake oplocks (S)\fR Oplocks are the way that SMB clients get permission from a server to locally cache file operations. If a server grants an oplock (opportunistic lock) then the client is free to assume @@ -2701,10 +2732,10 @@ this option carefully! Default: \fBfake oplocks = no\fR .TP -\fB>follow symlinks (S)\fR +\fBfollow symlinks (S)\fR This parameter allows the Samba administrator -to stop \fBsmbd\fR(8) from following symbolic -links in a particular share. Setting this +to stop \fBsmbd(8)\fR +from following symbolic links in a particular share. Setting this parameter to no prevents any file or directory that is a symbolic link from being followed (the user will get an error). This option is very useful to stop users from adding a @@ -2717,7 +2748,7 @@ follow symbolic links) by default. Default: \fBfollow symlinks = yes\fR .TP -\fB>force create mode (S)\fR +\fBforce create mode (S)\fR This parameter specifies a set of UNIX mode bit permissions that will \fBalways\fR be set on a file created by Samba. This is done by bitwise 'OR'ing these bits onto @@ -2741,7 +2772,7 @@ would force all created files to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'. .TP -\fB>force directory mode (S)\fR +\fBforce directory mode (S)\fR This parameter specifies a set of UNIX mode bit permissions that will \fBalways\fR be set on a directory created by Samba. This is done by bitwise 'OR'ing these bits onto the @@ -2764,7 +2795,7 @@ would force all created directories to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'. .TP -\fB>force directory security mode (S)\fR +\fBforce directory security mode (S)\fR This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog box. @@ -2793,7 +2824,7 @@ Default: \fBforce directory security mode = 0\fR Example: \fBforce directory security mode = 700\fR .TP -\fB>force group (S)\fR +\fBforce group (S)\fR This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service. This is useful for sharing files by ensuring @@ -2827,7 +2858,7 @@ Default: \fBno forced group\fR Example: \fBforce group = agroup\fR .TP -\fB>force security mode (S)\fR +\fBforce security mode (S)\fR This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a file using the native NT security dialog @@ -2857,7 +2888,7 @@ Default: \fBforce security mode = 0\fR Example: \fBforce security mode = 700\fR .TP -\fB>force user (S)\fR +\fBforce user (S)\fR This specifies a UNIX user name that will be assigned as the default user for all users connecting to this service. This is useful for sharing files. You should also use it carefully @@ -2881,10 +2912,11 @@ Default: \fBno forced user\fR Example: \fBforce user = auser\fR .TP -\fB>fstype (S)\fR +\fBfstype (S)\fR This parameter allows the administrator to configure the string that specifies the type of filesystem a share -is using that is reported by \fBsmbd\fR(8) when a client queries the filesystem type +is using that is reported by \fBsmbd(8) +\fR when a client queries the filesystem type for a share. The default type is NTFS for compatibility with Windows NT but this can be changed to other strings such as Samba or FAT @@ -2894,7 +2926,7 @@ Default: \fBfstype = NTFS\fR Example: \fBfstype = Samba\fR .TP -\fB>getwd cache (G)\fR +\fBgetwd cache (G)\fR This is a tuning option. When this is enabled a caching algorithm will be used to reduce the time taken for getwd() calls. This can have a significant impact on performance, especially @@ -2903,11 +2935,11 @@ parameter is set to no. Default: \fBgetwd cache = yes\fR .TP -\fB>group (S)\fR +\fBgroup (S)\fR Synonym for \fIforce group\fR. .TP -\fB>guest account (S)\fR +\fBguest account (S)\fR This is a username which will be used for access to services which are specified as \fI guest ok\fR (see below). Whatever privileges this user has will be available to any client connecting to the guest service. @@ -2931,20 +2963,16 @@ Default: \fBspecified at compile time, usually Example: \fBguest account = ftp\fR .TP -\fB>guest ok (S)\fR +\fBguest ok (S)\fR If this parameter is yes for a service, then no password is required to connect to the service. Privileges will be those of the \fI guest account\fR. -This paramater nullifies the benifits of setting -\fIrestrict -anonymous\fR = 2 - See the section below on \fI security\fR for more information about this option. Default: \fBguest ok = no\fR .TP -\fB>guest only (S)\fR +\fBguest only (S)\fR If this parameter is yes for a service, then only guest connections to the service are permitted. This parameter will have no effect if \fIguest ok\fR is not set for the service. @@ -2953,13 +2981,13 @@ See the section below on \fI security\fR for more information about this option Default: \fBguest only = no\fR .TP -\fB>hide dot files (S)\fR +\fBhide dot files (S)\fR This is a boolean parameter that controls whether files starting with a dot appear as hidden files. Default: \fBhide dot files = yes\fR .TP -\fB>hide files(S)\fR +\fBhide files(S)\fR This is a list of files or directories that are not visible but are accessible. The DOS 'hidden' attribute is applied to any files or directories that match. @@ -2992,35 +3020,35 @@ SMB client (DAVE) available from Thursby <URL:http://www.thursby.com> creates for internal use, and also still hides all files beginning with a dot. .TP -\fB>hide local users(G)\fR +\fBhide local users(G)\fR This parameter toggles the hiding of local UNIX users (root, wheel, floppy, etc) from remote clients. Default: \fBhide local users = no\fR .TP -\fB>hide unreadable (G)\fR +\fBhide unreadable (G)\fR This parameter prevents clients from seeing the existance of files that cannot be read. Defaults to off. Default: \fBhide unreadable = no\fR .TP -\fB>hide unwriteable files (G)\fR +\fBhide unwriteable files (G)\fR This parameter prevents clients from seeing the existance of files that cannot be written to. Defaults to off. Note that unwriteable directories are shown as usual. Default: \fBhide unwriteable = no\fR .TP -\fB>hide special files (G)\fR +\fBhide special files (G)\fR This parameter prevents clients from seeing special files such as sockets, devices and fifo's in directory listings. Default: \fBhide special files = no\fR .TP -\fB>homedir map (G)\fR +\fBhomedir map (G)\fR If\fInis homedir -\fR is yes, and \fBsmbd\fR(8) is also acting +\fR is yes, and \fBsmbd(8)\fR is also acting as a Win95/98 \fIlogon server\fR then this parameter specifies the NIS (or YP) map from which the server for the user's home directory should be extracted. At present, only the Sun @@ -3032,12 +3060,9 @@ and the program will extract the servername from before the first ':'. There should probably be a better parsing system that copes with different map formats and also Amd (another automounter) maps. -.sp -.RS -.B "Note:" -A working NIS client is required on + +\fBNOTE :\fRA working NIS client is required on the system for this option to work. -.RE See also \fInis homedir\fR , \fIdomain logons\fR @@ -3047,7 +3072,7 @@ Default: \fBhomedir map = <empty string>\fR Example: \fBhomedir map = amd.homedir\fR .TP -\fB>host msdfs (G)\fR +\fBhost msdfs (G)\fR This boolean parameter is only available if Samba has been configured and compiled with the \fB --with-msdfs\fR option. If set to yes, Samba will act as a Dfs server, and allow Dfs-aware clients @@ -3059,7 +3084,7 @@ refer to msdfs_setup.html Default: \fBhost msdfs = no\fR .TP -\fB>hostname lookups (G)\fR +\fBhostname lookups (G)\fR Specifies whether samba should use (expensive) hostname lookups or use the ip addresses instead. An example place where hostname lookups are currently used is when checking @@ -3069,7 +3094,7 @@ Default: \fBhostname lookups = yes\fR Example: \fBhostname lookups = no\fR .TP -\fB>hosts allow (S)\fR +\fBhosts allow (S)\fR A synonym for this parameter is \fIallow hosts\fR. @@ -3117,8 +3142,9 @@ deny access from one particular host Note that access still requires suitable user-level passwords. -See \fBtestparm\fR(1) for a way of testing your host access -to see if it does what you expect. +See \fBtestparm(1)\fR + for a way of testing your host access to see if it does +what you expect. Default: \fBnone (i.e., all hosts permitted access) \fR @@ -3126,7 +3152,7 @@ Default: \fBnone (i.e., all hosts permitted access) Example: \fBallow hosts = 150.203.5. myhost.mynet.edu.au \fR .TP -\fB>hosts deny (S)\fR +\fBhosts deny (S)\fR The opposite of \fIhosts allow\fR - hosts listed here are \fBNOT\fR permitted access to services unless the specific services have their own lists to override @@ -3139,7 +3165,7 @@ Default: \fBnone (i.e., no hosts specifically excluded) Example: \fBhosts deny = 150.203.4. badhost.mynet.edu.au \fR .TP -\fB>hosts equiv (G)\fR +\fBhosts equiv (G)\fR If this global parameter is a non-null string, it specifies the name of a file to read for the names of hosts and users who will be allowed access without specifying a password. @@ -3147,10 +3173,8 @@ and users who will be allowed access without specifying a password. This is not be confused with \fIhosts allow\fR which is about hosts access to services and is more useful for guest services. \fI hosts equiv\fR may be useful for NT clients which will not supply passwords to Samba. -.sp -.RS -.B "Note:" -The use of \fIhosts equiv + +\fBNOTE :\fR The use of \fIhosts equiv \fR can be a major security hole. This is because you are trusting the PC to supply the correct username. It is very easy to get a PC to supply a false username. I recommend that the @@ -3158,13 +3182,12 @@ get a PC to supply a false username. I recommend that the know what you are doing, or perhaps on a home network where you trust your spouse and kids. And only if you \fBreally\fR trust them :-). -.RE Default: \fBno host equivalences\fR Example: \fBhosts equiv = /etc/hosts.equiv\fR .TP -\fB>include (G)\fR +\fBinclude (G)\fR This allows you to include one config file inside another. The file is included literally, as though typed in place. @@ -3177,7 +3200,7 @@ Default: \fBno file included\fR Example: \fBinclude = /usr/local/samba/lib/admin_smb.conf \fR .TP -\fB>inherit acls (S)\fR +\fBinherit acls (S)\fR This parameter can be used to ensure that if default acls exist on parent directories, they are always honored when creating a subdirectory. @@ -3188,7 +3211,7 @@ default directory acls are propagated. Default: \fBinherit acls = no\fR .TP -\fB>inherit permissions (S)\fR +\fBinherit permissions (S)\fR The permissions on new files and directories are normally governed by \fI create mask\fR, \fIdirectory mask\fR, \fIforce create mode\fR and \fIforce @@ -3218,7 +3241,7 @@ See also \fIcreate mask Default: \fBinherit permissions = no\fR .TP -\fB>interfaces (G)\fR +\fBinterfaces (G)\fR This option allows you to override the default network interfaces list that Samba will use for browsing, name registration and other NBT traffic. By default Samba will query @@ -3269,7 +3292,7 @@ interfaces only\fR. Default: \fBall active interfaces except 127.0.0.1 that are broadcast capable\fR .TP -\fB>invalid users (S)\fR +\fBinvalid users (S)\fR This is a list of users that should not be allowed to login to this service. This is really a \fBparanoid\fR check to absolutely ensure an improper setting does not breach @@ -3301,7 +3324,7 @@ Default: \fBno invalid users\fR Example: \fBinvalid users = root fred admin @wheel \fR .TP -\fB>keepalive (G)\fR +\fBkeepalive (G)\fR The value of the parameter (an integer) represents the number of seconds between \fIkeepalive\fR packets. If this parameter is zero, no keepalive packets will be @@ -3316,16 +3339,17 @@ Default: \fBkeepalive = 300\fR Example: \fBkeepalive = 600\fR .TP -\fB>kernel oplocks (G)\fR +\fBkernel oplocks (G)\fR For UNIXes that support kernel based \fIoplocks\fR (currently only IRIX and the Linux 2.4 kernel), this parameter allows the use of them to be turned on or off. Kernel oplocks support allows Samba \fIoplocks \fR to be broken whenever a local UNIX process or NFS operation -accesses a file that \fBsmbd\fR(8) has oplocked. This allows complete -data consistency between SMB/CIFS, NFS and local file access (and is -a \fBvery\fR cool feature :-). +accesses a file that \fBsmbd(8)\fR + has oplocked. This allows complete data consistency between +SMB/CIFS, NFS and local file access (and is a \fBvery\fR +cool feature :-). This parameter defaults to on, but is translated to a no-op on systems that no not have the necessary kernel support. @@ -3337,17 +3361,18 @@ and \fIlevel2 oplocks Default: \fBkernel oplocks = yes\fR .TP -\fB>lanman auth (G)\fR -This parameter determines whether or not \fBsmbd\fR(8) will attempt to authenticate users -using the LANMAN password hash. If disabled, only clients which support NT -password hashes (e.g. Windows NT/2000 clients, smbclient, etc... but not -Windows 95/98 or the MS DOS network client) will be able to connect to the Samba host. +\fBlanman auth (G)\fR +This parameter determines whether or not smbd will +attempt to authenticate users using the LANMAN password hash. +If disabled, only clients which support NT password hashes (e.g. Windows +NT/2000 clients, smbclient, etc... but not Windows 95/98 or the MS DOS +network client) will be able to connect to the Samba host. Default : \fBlanman auth = yes\fR .TP -\fB>large readwrite (G)\fR -This parameter determines whether or not \fBsmbd\fR(8) supports the new 64k streaming -read and write varient SMB requests introduced +\fBlarge readwrite (G)\fR +This parameter determines whether or not smbd +supports the new 64k streaming read and write varient SMB requests introduced with Windows 2000. Note that due to Windows 2000 client redirector bugs this requires Samba to be running on a 64-bit capable operating system such as IRIX, Solaris or a Linux 2.4 kernel. Can improve performance by 10% with @@ -3356,23 +3381,26 @@ code paths. Default : \fBlarge readwrite = yes\fR .TP -\fB>ldap admin dn (G)\fR +\fBldap admin dn (G)\fR The \fIldap admin dn\fR defines the Distinguished Name (DN) name used by Samba to contact the ldap server when retreiving user account information. The \fIldap admin dn\fR is used in conjunction with the admin dn password stored in the \fIprivate/secrets.tdb\fR file. See the -\fBsmbpasswd\fR(8) man page for more information on how -to accmplish this. +\fBsmbpasswd(8)\fR man +page for more information on how to accomplish this. .TP -\fB>ldap delete dn (G)\fR +\fB>ldap del only sam attr (G)\fR This parameter specifies whether a delete operation in the ldapsam deletes the complete entry or only the attributes specific to Samba. Default : \fBldap delete dn = no\fR .TP -\fB>ldap filter (G)\fR +\fB>ldap del only sam attr (G)\fR +Inverted synonym for \fI ldap delete dn\fR. +.TP +\fBldap filter (G)\fR This parameter specifies the RFC 2254 compliant LDAP search filter. The default is to match the login name with the uid attribute for all entries matching the sambaAccount @@ -3380,7 +3408,7 @@ objectclass. Note that this filter should only return one entry. Default : \fBldap filter = (&(uid=%u)(objectclass=sambaAccount))\fR .TP -\fB>ldap port (G)\fR +\fBldap port (G)\fR This parameter is only available if Samba has been configure to include the \fB--with-ldapsam\fR option at compile time. @@ -3395,7 +3423,7 @@ Default : \fBldap port = 636 ; if ldap ssl = on\fR Default : \fBldap port = 389 ; if ldap ssl = off\fR .TP -\fB>ldap server (G)\fR +\fBldap server (G)\fR This parameter is only available if Samba has been configure to include the \fB--with-ldapsam\fR option at compile time. @@ -3405,7 +3433,7 @@ server which should be queried to locate user account information. Default : \fBldap server = localhost\fR .TP -\fB>ldap ssl (G)\fR +\fBldap ssl (G)\fR This option is used to define whether or not Samba should use SSL when connecting to the ldap server This is \fBNOT\fR related to @@ -3433,23 +3461,23 @@ to configure. See \fIpassdb backend\fR Default : \fBldap ssl = start_tls\fR .TP -\fB>ldap suffix (G)\fR +\fBldap suffix (G)\fR Specifies where user and machine accounts are added to the tree. Can be overriden by \fBldap user suffix\fR and \fBldap machine suffix\fR. It also used as the base dn for all ldap searches. Default : \fBnone\fR .TP -\fB>ldap user suffix (G)\fR +\fBldap user suffix (G)\fR It specifies where users are added to the tree. Default : \fBnone\fR .TP -\fB>ldap machine suffix (G)\fR +\fBldap machine suffix (G)\fR It specifies where machines should be added to the ldap tree. Default : \fBnone\fR .TP -\fB>ldap passwd sync (G)\fR +\fBldap passwd sync (G)\fR This option is used to define whether or not Samba should sync the LDAP password with the NT and LM hashes for normal accounts (NOT for @@ -3471,7 +3499,7 @@ The \fIldap passwd sync\fR can be set to one of three values: Default : \fBldap passwd sync = no\fR .TP -\fB>ldap trust ids (G)\fR +\fBldap trust ids (G)\fR Normally, Samba validates each entry in the LDAP server against getpwnam(). This allows LDAP to be used for Samba with the unix system using @@ -3488,7 +3516,7 @@ same LDAP server. Default: \fBldap trust ids = No\fR .TP -\fB>level2 oplocks (S)\fR +\fBlevel2 oplocks (S)\fR This parameter controls whether Samba supports level2 (read-only) oplocks on a share. @@ -3525,8 +3553,8 @@ parameters. Default: \fBlevel2 oplocks = yes\fR .TP -\fB>lm announce (G)\fR -This parameter determines if \fBnmbd\fR(8) will produce Lanman announce +\fBlm announce (G)\fR +This parameter determines if \fBnmbd(8)\fR will produce Lanman announce broadcasts that are needed by OS/2 clients in order for them to see the Samba server in their browse list. This parameter can have three values, yes, no, or @@ -3547,7 +3575,7 @@ Default: \fBlm announce = auto\fR Example: \fBlm announce = yes\fR .TP -\fB>lm interval (G)\fR +\fBlm interval (G)\fR If Samba is set to produce Lanman announce broadcasts needed by OS/2 clients (see the \fIlm announce\fR parameter) then this parameter defines the frequency in seconds with which they will be @@ -3562,7 +3590,7 @@ Default: \fBlm interval = 60\fR Example: \fBlm interval = 120\fR .TP -\fB>load printers (G)\fR +\fBload printers (G)\fR A boolean variable that controls whether all printers in the printcap will be loaded for browsing by default. See the printers section for @@ -3570,8 +3598,8 @@ more details. Default: \fBload printers = yes\fR .TP -\fB>local master (G)\fR -This option allows \fBnmbd\fR(8) to try and become a local master browser +\fBlocal master (G)\fR +This option allows \fB nmbd(8)\fR to try and become a local master browser on a subnet. If set to no then \fB nmbd\fR will not attempt to become a local master browser on a subnet and will also lose in all browsing elections. By default this value is set to yes. Setting this value to yes doesn't @@ -3583,10 +3611,10 @@ Setting this value to no will cause \fBnmbd\fR Default: \fBlocal master = yes\fR .TP -\fB>lock dir (G)\fR +\fBlock dir (G)\fR Synonym for \fI lock directory\fR. .TP -\fB>lock directory (G)\fR +\fBlock directory (G)\fR This option specifies the directory where lock files will be placed. The lock files are used to implement the \fImax connections\fR @@ -3596,7 +3624,7 @@ Default: \fBlock directory = ${prefix}/var/locks\fR Example: \fBlock directory = /var/run/samba/locks\fR .TP -\fB>lock spin count (G)\fR +\fBlock spin count (G)\fR This parameter controls the number of times that smbd should attempt to gain a byte range lock on the behalf of a client request. Experiments have shown that @@ -3608,7 +3636,7 @@ and FoxPro. Default: \fBlock spin count = 2\fR .TP -\fB>lock spin time (G)\fR +\fBlock spin time (G)\fR The time in microseconds that smbd should pause before attempting to gain a failed lock. See \fIlock spin @@ -3616,7 +3644,7 @@ count\fR for more details. Default: \fBlock spin time = 10\fR .TP -\fB>locking (S)\fR +\fBlocking (S)\fR This controls whether or not locking will be performed by the server in response to lock requests from the client. @@ -3639,7 +3667,7 @@ You should never need to set this parameter. Default: \fBlocking = yes\fR .TP -\fB>log file (G)\fR +\fBlog file (G)\fR This option allows you to override the name of the Samba log file (also known as the debug file). @@ -3649,7 +3677,7 @@ you to have separate log files for each user or machine. Example: \fBlog file = /usr/local/samba/var/log.%m \fR .TP -\fB>log level (G)\fR +\fBlog level (G)\fR The value of the parameter (a astring) allows the debug level (logging level) to be specified in the \fIsmb.conf\fR file. This parameter has been @@ -3663,7 +3691,7 @@ the command line or level zero if none was specified. Example: \fBlog level = 3 passdb:5 auth:10 winbind:2 \fR .TP -\fB>logon drive (G)\fR +\fBlogon drive (G)\fR This parameter specifies the local path to which the home directory will be connected (see \fIlogon home\fR) and is only used by NT Workstations. @@ -3675,7 +3703,7 @@ Default: \fBlogon drive = z:\fR Example: \fBlogon drive = h:\fR .TP -\fB>logon home (G)\fR +\fBlogon home (G)\fR This parameter specifies the home directory location when a Win95/98 or NT Workstation logs into a Samba PDC. It allows you to do @@ -3712,7 +3740,7 @@ Default: \fBlogon home = "\\\\%N\\%U"\fR Example: \fBlogon home = "\\\\remote_smb_server\\%U"\fR .TP -\fB>logon path (G)\fR +\fBlogon path (G)\fR This parameter specifies the home directory where roaming profiles (NTuser.dat etc files for Windows NT) are stored. Contrary to previous versions of these manual pages, it has @@ -3755,7 +3783,7 @@ Default: \fBlogon path = \\\\%N\\%U\\profile\fR Example: \fBlogon path = \\\\PROFILESERVER\\PROFILE\\%U\fR .TP -\fB>logon script (G)\fR +\fBlogon script (G)\fR This parameter specifies the batch file (.bat) or NT command file (.cmd) to be downloaded and run on a machine when a user successfully logs in. The file must contain the DOS @@ -3791,7 +3819,7 @@ Default: \fBno logon script defined\fR Example: \fBlogon script = scripts\\%U.bat\fR .TP -\fB>lppause command (S)\fR +\fBlppause command (S)\fR This parameter specifies the command to be executed on the server host in order to stop printing or spooling a specific print job. @@ -3830,7 +3858,7 @@ is SOFTQ, then the default is: Example for HPUX: \fBlppause command = /usr/bin/lpalt %p-%j -p0\fR .TP -\fB>lpq cache time (G)\fR +\fBlpq cache time (G)\fR This controls how long lpq info will be cached for to prevent the \fBlpq\fR command being called too 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,7 +3882,7 @@ Default: \fBlpq cache time = 10\fR Example: \fBlpq cache time = 30\fR .TP -\fB>lpq command (S)\fR +\fBlpq command (S)\fR This parameter specifies the command to be executed on the server host in order to obtain \fBlpq \fR-style printer status information. @@ -3892,7 +3920,7 @@ Default: \fBdepends on the setting of \fI printing\fB\fR Example: \fBlpq command = /usr/bin/lpq -P%p\fR .TP -\fB>lpresume command (S)\fR +\fBlpresume command (S)\fR This parameter specifies the command to be executed on the server host in order to restart or continue printing or spooling a specific print job. @@ -3927,7 +3955,7 @@ is SOFTQ, then the default is: Example for HPUX: \fBlpresume command = /usr/bin/lpalt %p-%j -p2\fR .TP -\fB>lprm command (S)\fR +\fBlprm command (S)\fR This parameter specifies the command to be executed on the server host in order to delete a print job. @@ -3954,7 +3982,7 @@ Example 1: \fBlprm command = /usr/bin/lprm -P%p %j Example 2: \fBlprm command = /usr/bin/cancel %p-%j \fR .TP -\fB>machine password timeout (G)\fR +\fBmachine password timeout (G)\fR If a Samba server is a member of a Windows NT Domain (see the security = domain) parameter) then periodically a running smbd(8) process will try and change the MACHINE ACCOUNT @@ -3963,11 +3991,12 @@ PASSWORD stored in the TDB called \fIprivate/secrets.tdb will be changed, in seconds. The default is one week (expressed in seconds), the same as a Windows NT Domain member server. -See also \fBsmbpasswd\fR(8), and the security = domain) parameter. +See also \fBsmbpasswd(8) +\fR and the security = domain) parameter. Default: \fBmachine password timeout = 604800\fR .TP -\fB>magic output (S)\fR +\fBmagic output (S)\fR This parameter specifies the name of a file which will contain output created by a magic script (see the \fImagic script\fR @@ -3982,7 +4011,7 @@ Default: \fBmagic output = <magic script name>.out Example: \fBmagic output = myfile.txt\fR .TP -\fB>magic script (S)\fR +\fBmagic script (S)\fR This parameter specifies the name of a file which, if opened, will be executed by the server when the file is closed. This allows a UNIX script to be sent to the Samba host and @@ -4008,12 +4037,12 @@ Default: \fBNone. Magic scripts disabled.\fR Example: \fBmagic script = user.csh\fR .TP -\fB>mangle case (S)\fR +\fBmangle case (S)\fR See the section on NAME MANGLING Default: \fBmangle case = no\fR .TP -\fB>mangled map (S)\fR +\fBmangled map (S)\fR This is for those who want to directly map UNIX file names which cannot be represented on Windows/DOS. The mangling of names is not always what is needed. In particular you may have @@ -4035,7 +4064,7 @@ Default: \fBno mangled map\fR Example: \fBmangled map = (*;1 *;)\fR .TP -\fB>mangled names (S)\fR +\fBmangled names (S)\fR This controls whether non-DOS names under UNIX should be mapped to DOS-compatible names ("mangled") and made visible, or whether non-DOS names should simply be ignored. @@ -4094,7 +4123,7 @@ do not change between sessions. Default: \fBmangled names = yes\fR .TP -\fB>mangling method (G)\fR +\fBmangling method (G)\fR controls the algorithm used for the generating the mangled names. Can take two different values, "hash" and "hash2". "hash" is the default and is the algorithm that has been @@ -4108,7 +4137,7 @@ Default: \fBmangling method = hash2\fR Example: \fBmangling method = hash\fR .TP -\fB>mangle prefix (G)\fR +\fBmangle prefix (G)\fR controls the number of prefix characters from the original name used when generating the mangled names. A larger value will give a weaker @@ -4119,9 +4148,9 @@ Default: \fBmangle prefix = 1\fR Example: \fBmangle prefix = 4\fR .TP -\fB>mangled stack (G)\fR +\fBmangled stack (G)\fR This parameter controls the number of mangled names -that should be cached in the Samba server \fBsmbd\fR(8). +that should be cached in the Samba server smbd(8) This stack is a list of recently mangled base names (extensions are only maintained if they are longer than 3 characters @@ -4139,7 +4168,7 @@ Default: \fBmangled stack = 50\fR Example: \fBmangled stack = 100\fR .TP -\fB>mangling char (S)\fR +\fBmangling char (S)\fR This controls what character is used as the \fBmagic\fR character in name mangling. The default is a '~' but this may interfere with some software. Use this option to set @@ -4149,7 +4178,7 @@ Default: \fBmangling char = ~\fR Example: \fBmangling char = ^\fR .TP -\fB>map archive (S)\fR +\fBmap archive (S)\fR This controls whether the DOS archive attribute should be mapped to the UNIX owner execute bit. The DOS archive bit is set when a file has been modified since its last backup. One @@ -4163,7 +4192,7 @@ parameter to be set such that owner execute bit is not masked out Default: \fBmap archive = yes\fR .TP -\fB>map hidden (S)\fR +\fBmap hidden (S)\fR This controls whether DOS style hidden files should be mapped to the UNIX world execute bit. @@ -4173,7 +4202,7 @@ it must include 001). See the parameter \fIcreate mask\fR for details. Default: \fBmap hidden = no\fR .TP -\fB>map system (S)\fR +\fBmap system (S)\fR This controls whether DOS style system files should be mapped to the UNIX group execute bit. @@ -4183,13 +4212,13 @@ it must include 010). See the parameter \fIcreate mask\fR for details. Default: \fBmap system = no\fR .TP -\fB>map to guest (G)\fR +\fBmap to guest (G)\fR This parameter is only useful in security modes other than \fIsecurity = share\fR - i.e. user, server, and domain. This parameter can take three different values, which tell -\fBsmbd\fR(8) what to do with user +smbd(8) what to do with user login requests that don't match a valid UNIX user in some way. The three settings are : @@ -4234,7 +4263,7 @@ Default: \fBmap to guest = Never\fR Example: \fBmap to guest = Bad User\fR .TP -\fB>max connections (S)\fR +\fBmax connections (S)\fR This option allows the number of simultaneous connections to a service to be limited. If \fImax connections \fR is greater than 0 then connections will be refused if @@ -4249,7 +4278,7 @@ Default: \fBmax connections = 0\fR Example: \fBmax connections = 10\fR .TP -\fB>max disk size (G)\fR +\fBmax disk size (G)\fR This option allows you to put an upper limit on the apparent size of disks. If you set this option to 100 then all shares will appear to be not larger than 100 MB in @@ -4272,7 +4301,7 @@ Default: \fBmax disk size = 0\fR Example: \fBmax disk size = 1000\fR .TP -\fB>max log size (G)\fR +\fBmax log size (G)\fR This option (an integer in kilobytes) specifies the max size the log file should grow to. Samba periodically checks the size and if it is exceeded it will rename the file, adding @@ -4284,16 +4313,16 @@ Default: \fBmax log size = 5000\fR Example: \fBmax log size = 1000\fR .TP -\fB>max mux (G)\fR +\fBmax mux (G)\fR This option controls the maximum number of outstanding simultaneous SMB operations that Samba tells the client it will allow. You should never need to set this parameter. Default: \fBmax mux = 50\fR .TP -\fB>max open files (G)\fR +\fBmax open files (G)\fR This parameter limits the maximum number of -open files that one \fBsmbd\fR(8) file +open files that one smbd(8) file serving process may have open for a client at any one time. The default for this parameter is set very high (10,000) as Samba uses only one bit per unopened file. @@ -4304,10 +4333,10 @@ this parameter so you should never need to touch this parameter. Default: \fBmax open files = 10000\fR .TP -\fB>max print jobs (S)\fR +\fBmax print jobs (S)\fR This parameter limits the maximum number of jobs allowable in a Samba printer queue at any given moment. -If this number is exceeded, \fBsmbd\fR(8) will remote "Out of Space" to the client. +If this number is exceeded, \fB smbd(8)\fR will remote "Out of Space" to the client. See all \fItotal print jobs\fR. @@ -4315,7 +4344,7 @@ Default: \fBmax print jobs = 1000\fR Example: \fBmax print jobs = 5000\fR .TP -\fB>max protocol (G)\fR +\fBmax protocol (G)\fR The value of the parameter (a string) is the highest protocol level that will be supported by the server. @@ -4353,22 +4382,22 @@ Default: \fBmax protocol = NT1\fR Example: \fBmax protocol = LANMAN1\fR .TP -\fB>max smbd processes (G)\fR +\fBmax smbd processes (G)\fR This parameter limits the maximum number of \fBsmbd(8)\fR processes concurrently running on a system and is intended as a stopgap to prevent degrading service to clients in the event that the server has insufficient resources to handle more than this number of connections. Remember that under normal operating -conditions, each user will have an \fBsmbd\fR(8) associated with him or her +conditions, each user will have an smbd associated with him or her to handle connections to all shares from a given host. Default: \fBmax smbd processes = 0\fR ## no limit Example: \fBmax smbd processes = 1000\fR .TP -\fB>max ttl (G)\fR -This option tells \fBnmbd\fR(8) +\fBmax ttl (G)\fR +This option tells nmbd(8) what the default 'time to live' of NetBIOS names should be (in seconds) when \fBnmbd\fR is requesting a name using either a broadcast packet or from a WINS server. You should never need to @@ -4376,8 +4405,9 @@ change this parameter. The default is 3 days. Default: \fBmax ttl = 259200\fR .TP -\fB>max wins ttl (G)\fR -This option tells \fBsmbd\fR(8) when acting as a WINS server ( \fIwins support = yes\fR) what the maximum +\fBmax wins ttl (G)\fR +This option tells nmbd(8) + when acting as a WINS server ( \fIwins support = yes\fR) what the maximum \&'time to live' of NetBIOS names that \fBnmbd\fR will grant will be (in seconds). You should never need to change this parameter. The default is 6 days (518400 seconds). @@ -4387,7 +4417,7 @@ wins ttl\fR parameter. Default: \fBmax wins ttl = 518400\fR .TP -\fB>max xmit (G)\fR +\fBmax xmit (G)\fR This option controls the maximum packet size that will be negotiated by Samba. The default is 65535, which is the maximum. In some cases you may find you get better performance @@ -4397,7 +4427,7 @@ Default: \fBmax xmit = 65535\fR Example: \fBmax xmit = 8192\fR .TP -\fB>message command (G)\fR +\fBmessage command (G)\fR This specifies what command to run when the server receives a WinPopup style message. @@ -4460,10 +4490,10 @@ Default: \fBno message command\fR Example: \fBmessage command = csh -c 'xedit %s; rm %s' &\fR .TP -\fB>min passwd length (G)\fR +\fBmin passwd length (G)\fR Synonym for \fImin password length\fR. .TP -\fB>min password length (G)\fR +\fBmin password length (G)\fR This option sets the minimum length in characters of a plaintext password that \fBsmbd\fR will accept when performing UNIX password changing. @@ -4474,7 +4504,7 @@ password sync\fR, \fIpasswd program\fR and \fIpasswd chat debug\fR Default: \fBmin password length = 5\fR .TP -\fB>min print space (S)\fR +\fBmin print space (S)\fR This sets the minimum amount of free disk space that must be available before a user will be able to spool a print job. It is specified in kilobytes. The default is 0, which @@ -4487,7 +4517,7 @@ Default: \fBmin print space = 0\fR Example: \fBmin print space = 2000\fR .TP -\fB>min protocol (G)\fR +\fBmin protocol (G)\fR The value of the parameter (a string) is the lowest SMB protocol dialect than Samba will support. Please refer to the \fImax protocol\fR @@ -4506,8 +4536,8 @@ Default : \fBmin protocol = CORE\fR Example : \fBmin protocol = NT1\fR # disable DOS clients .TP -\fB>min wins ttl (G)\fR -This option tells \fBnmbd\fR(8) +\fBmin wins ttl (G)\fR +This option tells nmbd(8) when acting as a WINS server (\fI wins support = yes\fR) what the minimum 'time to live' of NetBIOS names that \fBnmbd\fR will grant will be (in seconds). You should never need to change this parameter. The default @@ -4515,7 +4545,7 @@ is 6 hours (21600 seconds). Default: \fBmin wins ttl = 21600\fR .TP -\fB>msdfs proxy (S)\fR +\fBmsdfs proxy (S)\fR This parameter indicates that the share is a stand-in for another CIFS share whose location is specified by the value of the parameter. When clients attempt to connect to @@ -4528,25 +4558,25 @@ and \fIhost msdfs\fR options to find out how to set up a Dfs root share. -Example: \fBmsdfs proxy = \\\\\\\\otherserver\\\\someshare\fR +Example: \fBmsdfs proxy = \\otherserver\\someshare\fR .TP -\fB>msdfs root (S)\fR +\fBmsdfs root (S)\fR This boolean parameter is only available if Samba is configured and compiled with the \fB --with-msdfs\fR option. If set to yes, Samba treats the share as a Dfs root and allows clients to browse the distributed file system tree rooted at the share directory. Dfs links are specified in the share directory by symbolic -links of the form \fImsdfs:serverA\\\\shareA,serverB\\\\shareB\fR +links of the form \fImsdfs:serverA\\shareA,serverB\\shareB\fR and so on. For more information on setting up a Dfs tree -on Samba, refer to "Hosting a Microsoft -Distributed File System tree on Samba" document. +on Samba, refer to msdfs_setup.html + See also \fIhost msdfs \fR Default: \fBmsdfs root = no\fR .TP -\fB>name cache timeout (G)\fR +\fBname cache timeout (G)\fR Specifies the number of seconds it takes before entries in samba's hostname resolve cache time out. If the timeout is set to 0. the caching is disabled. @@ -4555,7 +4585,7 @@ Default: \fBname cache timeout = 660\fR Example: \fBname cache timeout = 0\fR .TP -\fB>name resolve order (G)\fR +\fBname resolve order (G)\fR This option is used by the programs in the Samba suite to determine what naming services to use and in what order to resolve host names to IP addresses. The option takes a space @@ -4604,7 +4634,7 @@ This will cause the local lmhosts file to be examined first, followed by a broadcast attempt, followed by a normal system hostname lookup. .TP -\fB>netbios aliases (G)\fR +\fBnetbios aliases (G)\fR This is a list of NetBIOS names that nmbd(8) will advertise as additional names by which the Samba server is known. This allows one machine to appear in browse lists under multiple names. If a machine is @@ -4620,7 +4650,7 @@ Default: \fBempty string (no additional names)\fR Example: \fBnetbios aliases = TEST TEST1 TEST2\fR .TP -\fB>netbios name (G)\fR +\fBnetbios name (G)\fR This sets the NetBIOS name by which a Samba server is known. By default it is the same as the first component of the host's DNS name. If a machine is a browse server or @@ -4635,12 +4665,12 @@ Default: \fBmachine DNS name\fR Example: \fBnetbios name = MYNAME\fR .TP -\fB>netbios scope (G)\fR +\fBnetbios scope (G)\fR This sets the NetBIOS scope that Samba will operate under. This should not be set unless every machine on your LAN also sets this value. .TP -\fB>nis homedir (G)\fR +\fBnis homedir (G)\fR Get the home share server from a NIS map. For UNIX systems that use an automounter, the user's home directory will often be mounted on a workstation on demand from a remote @@ -4667,7 +4697,7 @@ be a logon server. Default: \fBnis homedir = no\fR .TP -\fB>non unix account range (G)\fR +\fBnon unix account range (G)\fR The non unix account range parameter specifies the range of 'user ids' that are allocated by the various 'non unix account' passdb backends. These backends allow @@ -4675,20 +4705,17 @@ the storage of passwords for users who don't exist in /etc/passwd. This is most often used for machine account creation. This range of ids should have no existing local or NIS users within it as strange conflicts can occur otherwise. -.sp -.RS -.B "Note:" -These userids never appear on the system and Samba will never + +NOTE: These userids never appear on the system and Samba will never \&'become' these users. They are used only to ensure that the algorithmic RID mapping does not conflict with normal users. -.RE Default: \fBnon unix account range = <empty string> \fR Example: \fBnon unix account range = 10000-20000\fR .TP -\fB>nt acl support (S)\fR +\fBnt acl support (S)\fR This boolean parameter controls whether smbd(8) will attempt to map UNIX permissions into Windows NT access control lists. @@ -4697,16 +4724,16 @@ prior to 2.2.2. Default: \fBnt acl support = yes\fR .TP -\fB>nt pipe support (G)\fR +\fBnt pipe support (G)\fR This boolean parameter controls whether -\fBsmbd\fR(8) will allow Windows NT +smbd(8) will allow Windows NT clients to connect to the NT SMB specific IPC$ pipes. This is a developer debugging option and can be left alone. Default: \fBnt pipe support = yes\fR .TP -\fB>nt status support (G)\fR +\fBnt status support (G)\fR This boolean parameter controls whether smbd(8) will negotiate NT specific status support with Windows NT/2k/XP clients. This is a developer debugging option and should be left alone. @@ -4718,15 +4745,15 @@ You should not need to ever disable this parameter. Default: \fBnt status support = yes\fR .TP -\fB>null passwords (G)\fR +\fBnull passwords (G)\fR Allow or disallow client access to accounts that have null passwords. -See also \fBsmbpasswd\fR(5). +See also smbpasswd (5) Default: \fBnull passwords = no\fR .TP -\fB>obey pam restrictions (G)\fR +\fBobey pam restrictions (G)\fR When Samba 2.2 is configured to enable PAM support (i.e. --with-pam), this parameter will control whether or not Samba should obey PAM's account and session management directives. The @@ -4738,7 +4765,7 @@ authentication mechanism needed in the presence of SMB password encryption. Default: \fBobey pam restrictions = no\fR .TP -\fB>only user (S)\fR +\fBonly user (S)\fR This is a boolean option that controls whether connections with usernames not in the \fIuser\fR list will be allowed. By default this option is disabled so that a @@ -4760,10 +4787,10 @@ parameter. Default: \fBonly user = no\fR .TP -\fB>only guest (S)\fR +\fBonly guest (S)\fR A synonym for \fI guest only\fR. .TP -\fB>oplock break wait time (G)\fR +\fBoplock break wait time (G)\fR This is a tuning parameter added due to bugs in both Windows 9x and WinNT. If Samba responds to a client too quickly when that client issues an SMB that can cause an oplock @@ -4777,14 +4804,15 @@ AND UNDERSTOOD THE SAMBA OPLOCK CODE\fR. Default: \fBoplock break wait time = 0\fR .TP -\fB>oplock contention limit (S)\fR +\fBoplock contention limit (S)\fR This is a \fBvery\fR advanced smbd(8) tuning option to improve the efficiency of the granting of oplocks under multiple client contention for the same file. -In brief it specifies a number, which causes \fBsmbd\fR(8)not to grant an oplock even when requested -if the approximate number of clients contending for an oplock on the same file goes over this +In brief it specifies a number, which causes smbd not to +grant an oplock even when requested if the approximate number of +clients contending for an oplock on the same file goes over this limit. This causes \fBsmbd\fR to behave in a similar way to Windows NT. @@ -4793,7 +4821,7 @@ AND UNDERSTOOD THE SAMBA OPLOCK CODE\fR. Default: \fBoplock contention limit = 2\fR .TP -\fB>oplocks (S)\fR +\fBoplocks (S)\fR This boolean option tells \fBsmbd\fR whether to issue oplocks (opportunistic locks) to file open requests on this share. The oplock code can dramatically (approx. 30% or more) improve @@ -4816,21 +4844,19 @@ oplocks\fR and \fI level2 oplocks\fR parameters. Default: \fBoplocks = yes\fR .TP -\fB>ntlm auth (G)\fR -This parameter determines -whether or not \fBsmbd\fR(8) will +\fBntlm auth (G)\fR +This parameter determines whether or not smbd will attempt to authenticate users using the NTLM password hash. If disabled, only the lanman password hashes will be used. -Please note that at least this option or \fBlanman auth\fR should -be enabled in order to be able to log in. +Please note that at least this option or \fBlanman auth\fR should be enabled in order to be able to log in. Default : \fBntlm auth = yes\fR .TP -\fB>os level (G)\fR +\fBos level (G)\fR This integer value controls what level Samba advertises itself as for browse elections. The value of this -parameter determines whether \fBnmbd\fR(8) +parameter determines whether nmbd(8) has a chance of becoming a local master browser for the \fI WORKGROUP\fR in the local broadcast area. \fBNote :\fRBy default, Samba will win @@ -4845,7 +4871,7 @@ Default: \fBos level = 20\fR Example: \fBos level = 65 \fR .TP -\fB>os2 driver map (G)\fR +\fBos2 driver map (G)\fR The parameter is used to define the absolute path to a file containing a mapping of Windows NT printer driver names to OS/2 printer driver names. The format is: @@ -4860,12 +4886,13 @@ LaserJet 5L\fR. The need for the file is due to the printer driver namespace problem described in the Samba Printing HOWTO For more details on OS/2 clients, please -refer to the OS2-Client-HOWTO containing in the Samba documentation. +refer to the OS2-Client-HOWTO + containing in the Samba documentation. Default: \fBos2 driver map = <empty string> \fR .TP -\fB>pam password change (G)\fR +\fBpam password change (G)\fR With the addition of better PAM support in Samba 2.2, this parameter, it is possible to use PAM's password change control flag for Samba. If enabled, then PAM will be used for password @@ -4877,28 +4904,25 @@ parameter for most setups. Default: \fBpam password change = no\fR .TP -\fB>panic action (G)\fR +\fBpanic action (G)\fR This is a Samba developer option that allows a -system command to be called when either \fBsmbd\fR(8) or \fBsmbd\fR(8) crashes. This is usually used to -draw attention to the fact that a problem occurred. +system command to be called when either smbd(8) +crashes. This is usually used to draw attention to the fact that +a problem occurred. Default: \fBpanic action = <empty string>\fR Example: \fBpanic action = "/bin/sleep 90000"\fR .TP -\fB>paranoid server security (G)\fR +\fBparanoid server security (G)\fR Some version of NT 4.x allow non-guest users with a bad passowrd. When this option is enabled, samba will not use a broken NT 4.x server as password server, but instead complain -to the logs and exit. - -Disabling this option prevents Samba from making -this check, which involves deliberatly attempting a -bad logon to the remote server. +to the logs and exit. Default: \fBparanoid server security = yes\fR .TP -\fB>passdb backend (G)\fR +\fBpassdb backend (G)\fR This option allows the administrator to chose which backends to retrieve and store passwords with. This allows (for example) both smbpasswd and tdbsam to be used without a recompile. Multiple backends can be specified, separated by spaces. The backends will be searched in the order they are specified. New users are always added to the first backend specified. @@ -4968,7 +4992,7 @@ Any characters after the (optional) second : are passed to the plugin for its own processing .TP 0.2i \(bu -\fBunixsam\fR - Allows samba to map all (other) available unix users +\fBunixsam\fR - (EXPERIMENTAL) Allows samba to map all (other) available unix users This backend uses the standard unix database for retrieving users. Users included in this pdb are NOT listed in samba user listings and users included in this pdb won't be @@ -4981,19 +5005,19 @@ the unix passdb and might 'override' mappings if specified earlier. It's meant t accounts for users that aren't covered by the previous backends. .RE -Default: \fBpassdb backend = smbpasswd unixsam\fR +Default: \fBpassdb backend = smbpasswd guest\fR -Example: \fBpassdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd unixsam\fR +Example: \fBpassdb backend = tdbsam:/etc/samba/private/passdb.tdb smbpasswd:/etc/samba/smbpasswd \fR -Example: \fBpassdb backend = ldapsam_nua:ldaps://ldap.example.com unixsam\fR +Example: \fBpassdb backend = ldapsam_nua:ldaps://ldap.example.com \fR Example: \fBpassdb backend = plugin:/usr/local/samba/lib/my_passdb.so:my_plugin_args tdbsam:/etc/samba/private/passdb.tdb\fR .TP -\fB>passwd chat (G)\fR +\fBpasswd chat (G)\fR This string controls the \fB"chat"\fR -conversation that takes places between \fBsmbd\fR(8) and the local password changing +conversation that takes places between smbd and the local password changing program to change the user's password. The string describes a -sequence of response-receive pairs that \fBsmbd\fR(8) uses to determine what to send to the +sequence of response-receive pairs that smbd(8) uses to determine what to send to the \fIpasswd program\fR and what to expect back. If the expected output is not received then the password is not changed. @@ -5013,7 +5037,7 @@ executed on the NIS master. The string can contain the macro \fI%n\fR which is substituted for the new password. The chat sequence can also contain the standard -macros \\\\n, \\\\r, \\\\t and \\\\s to give line-feed, +macros \\n, \\r, \\t and \\s to give line-feed, carriage-return, tab and space. The chat sequence string can also contain a '*' which matches any sequence of characters. Double quotes can be used to collect strings with spaces @@ -5031,18 +5055,18 @@ not any particular output. The \\n macro is ignored for PAM conversions. See also \fIunix password sync\fR, \fI passwd program\fR , \fIpasswd chat debug\fR and \fIpam password change\fR. -Default: \fBpasswd chat = *new*password* %n\\\\n -*new*password* %n\\\\n *changed*\fR +Default: \fBpasswd chat = *new*password* %n\\n +*new*password* %n\\n *changed*\fR -Example: \fBpasswd chat = "*Enter OLD password*" %o\\\\n -"*Enter NEW password*" %n\\\\n "*Reenter NEW password*" %n\\\\n "*Password +Example: \fBpasswd chat = "*Enter OLD password*" %o\\n +"*Enter NEW password*" %n\\n "*Reenter NEW password*" %n\\n "*Password changed*"\fR .TP -\fB>passwd chat debug (G)\fR +\fBpasswd chat debug (G)\fR This boolean specifies if the passwd chat script parameter is run in \fBdebug\fR mode. In this mode the strings passed to and received from the passwd chat are printed -in the \fBsmbd\fR(8) log with a +in the smbd(8) log with a \fIdebug level\fR of 100. This is a dangerous option as it will allow plaintext passwords to be seen in the \fBsmbd\fR log. It is available to help @@ -5059,7 +5083,7 @@ See also \fIpasswd chat\fR Default: \fBpasswd chat debug = no\fR .TP -\fB>passwd program (G)\fR +\fBpasswd program (G)\fR The name of a program that can be used to set UNIX user passwords. Any occurrences of \fI%u\fR will be replaced with the user name. The user name is checked for @@ -5092,7 +5116,7 @@ Default: \fBpasswd program = /bin/passwd\fR Example: \fBpasswd program = /sbin/npasswd %u\fR .TP -\fB>password level (G)\fR +\fBpassword level (G)\fR Some client/server combinations have difficulty with mixed-case passwords. One offending client is Windows for Workgroups, which for some reason forces passwords to upper @@ -5130,7 +5154,7 @@ Default: \fBpassword level = 0\fR Example: \fBpassword level = 4\fR .TP -\fB>password server (G)\fR +\fBpassword server (G)\fR By specifying the name of another SMB server (such as a WinNT box) with this option, and using \fBsecurity = domain \fR or \fBsecurity = server\fR you can get Samba @@ -5150,14 +5174,11 @@ by any method and order described in that parameter. The password server must be a machine capable of using the "LM1.2X002" or the "NT LM 0.12" protocol, and it must be in user level security mode. -.sp -.RS -.B "Note:" -Using a password server + +\fBNOTE:\fR Using a password server means your UNIX box (running Samba) is only as secure as your password server. \fBDO NOT CHOOSE A PASSWORD SERVER THAT YOU DON'T COMPLETELY TRUST\fR. -.RE Never point a Samba server at itself for password serving. This will cause a loop and could lock up your Samba @@ -5224,7 +5245,7 @@ Example: \fBpassword server = NT-PDC, NT-BDC1, NT-BDC2, * Example: \fBpassword server = *\fR .TP -\fB>path (S)\fR +\fBpath (S)\fR This parameter specifies a directory to which the user of the service is to be given access. In the case of printable services, this is where print data will spool prior to @@ -5249,7 +5270,7 @@ Default: \fBnone\fR Example: \fBpath = /home/fred\fR .TP -\fB>pid directory (G)\fR +\fBpid directory (G)\fR This option specifies the directory where pid files will be placed. @@ -5257,8 +5278,8 @@ Default: \fBpid directory = ${prefix}/var/locks\fR Example: \fBpid directory = /var/run/\fR .TP -\fB>posix locking (S)\fR -The \fBsmbd\fR(8) +\fBposix locking (S)\fR +The \fBsmbd(8)\fR daemon maintains an database of file locks obtained by SMB clients. The default behavior is to map this internal database to POSIX locks. This means that file locks obtained by SMB clients are @@ -5268,7 +5289,7 @@ You should never need to disable this parameter. Default: \fBposix locking = yes\fR .TP -\fB>postexec (S)\fR +\fBpostexec (S)\fR This option specifies a command to be run whenever the service is disconnected. It takes the usual substitutions. The command may be run as the root on some @@ -5287,7 +5308,18 @@ Default: \fBnone (no command executed)\fR Example: \fBpostexec = echo \\"%u disconnected from %S from %m (%I)\\" >> /tmp/log\fR .TP -\fB>preexec (S)\fR +\fBpostscript (S)\fR +This parameter forces a printer to interpret +the print files as PostScript. This is done by adding a %! +to the start of print output. + +This is most useful when you have lots of PCs that persist +in putting a control-D at the start of print jobs, which then +confuses your printer. + +Default: \fBpostscript = no\fR +.TP +\fBpreexec (S)\fR This option specifies a command to be run whenever the service is connected to. It takes the usual substitutions. @@ -5309,14 +5341,14 @@ Default: \fBnone (no command executed)\fR Example: \fBpreexec = echo \\"%u connected to %S from %m (%I)\\" >> /tmp/log\fR .TP -\fB>preexec close (S)\fR +\fBpreexec close (S)\fR This boolean option controls whether a non-zero return code from \fIpreexec \fR should close the service being connected to. Default: \fBpreexec close = no\fR .TP -\fB>preferred master (G)\fR +\fBpreferred master (G)\fR This boolean parameter controls if nmbd(8) is a preferred master browser for its workgroup. @@ -5337,10 +5369,10 @@ See also \fIos level\fR Default: \fBpreferred master = auto\fR .TP -\fB>prefered master (G)\fR +\fBprefered master (G)\fR Synonym for \fI preferred master\fR for people who cannot spell :-). .TP -\fB>preload (G)\fR +\fBpreload (G)\fR This is a list of services that you want to be automatically added to the browse lists. This is most useful for homes and printers services that would otherwise not be @@ -5353,19 +5385,7 @@ Default: \fBno preloaded services\fR Example: \fBpreload = fred lp colorlp\fR .TP -\fB>preload modules (G)\fR -This is a list of paths to modules that should -be loaded into smbd before a client connects. This improves -the speed of smbd when reacting to new connections somewhat. - -It is recommended to only use this option on heavy-performance -servers. - -Default: \fBpreload modules = \fR - -Example: \fBpreload modules = /usr/lib/samba/passdb/mysql.so\fR -.TP -\fB>preserve case (S)\fR +\fBpreserve case (S)\fR This controls if new filenames are created with the case that the client passes, or if they are forced to be the \fIdefault case @@ -5376,7 +5396,7 @@ Default: \fBpreserve case = yes\fR See the section on NAME MANGLING for a fuller discussion. .TP -\fB>print command (S)\fR +\fBprint command (S)\fR After a print job has finished spooling to a service, this command will be used via a \fBsystem()\fR call to process the spool file. Typically the command specified will @@ -5461,10 +5481,10 @@ set print command will be ignored. Example: \fBprint command = /usr/local/samba/bin/myprintscript %p %s\fR .TP -\fB>print ok (S)\fR +\fBprint ok (S)\fR Synonym for \fIprintable\fR. .TP -\fB>printable (S)\fR +\fBprintable (S)\fR If this parameter is yes, then clients may open, write to and submit spool files on the directory specified for the service. @@ -5477,10 +5497,10 @@ the resource. Default: \fBprintable = no\fR .TP -\fB>printcap (G)\fR +\fBprintcap (G)\fR Synonym for \fI printcap name\fR. .TP -\fB>printcap name (G)\fR +\fBprintcap name (G)\fR This parameter may be used to override the compiled-in default printcap name used by the server (usually \fI /etc/printcap\fR). See the discussion of the [printers] section above for reasons why you might want to do this. @@ -5504,30 +5524,28 @@ A minimal printcap file would look something like this: .nf -print1|My Printer 1 -print2|My Printer 2 -print3|My Printer 3 -print4|My Printer 4 -print5|My Printer 5 + print1|My Printer 1 + print2|My Printer 2 + print3|My Printer 3 + print4|My Printer 4 + print5|My Printer 5 + .fi where the '|' separates aliases of a printer. The fact that the second alias has a space in it gives a hint to Samba that it's a comment. -.sp -.RS -.B "Note:" -Under AIX the default printcap + +\fBNOTE\fR: Under AIX the default printcap name is \fI/etc/qconfig\fR. Samba will assume the file is in AIX \fIqconfig\fR format if the string \fIqconfig\fR appears in the printcap filename. -.RE Default: \fBprintcap name = /etc/printcap\fR Example: \fBprintcap name = /etc/myprintcap\fR .TP -\fB>printer admin (S)\fR +\fBprinter admin (S)\fR This is a list of users that can do anything to printers via the remote administration interfaces offered by MS-RPC (usually using a NT workstation). Note that the root user always @@ -5537,7 +5555,88 @@ Default: \fBprinter admin = <empty string>\fR Example: \fBprinter admin = admin, @staff\fR .TP -\fB>printer name (S)\fR +\fBprinter driver (S)\fR +\fBNote :\fRThis is a deprecated +parameter and will be removed in the next major release +following version 2.2. Please see the instructions in +the Samba 2.2. Printing +HOWTO for more information +on the new method of loading printer drivers onto a Samba server. + +This option allows you to control the string +that clients receive when they ask the server for the printer driver +associated with a printer. If you are using Windows95 or Windows NT +then you can use this to automate the setup of printers on your +system. + +You need to set this parameter to the exact string (case +sensitive) that describes the appropriate printer driver for your +system. If you don't know the exact string to use then you should +first try with no \fI printer driver\fR option set and the client will +give you a list of printer drivers. The appropriate strings are +shown in a scroll box after you have chosen the printer manufacturer. + +See also \fIprinter +driver file\fR. + +Example: \fBprinter driver = HP LaserJet 4L\fR +.TP +\fBprinter driver file (G)\fR +\fBNote :\fRThis is a deprecated +parameter and will be removed in the next major release +following version 2.2. Please see the instructions in +the Samba 2.2. Printing +HOWTO for more information +on the new method of loading printer drivers onto a Samba server. + +This parameter tells Samba where the printer driver +definition file, used when serving drivers to Windows 95 clients, is +to be found. If this is not set, the default is : + +\fISAMBA_INSTALL_DIRECTORY +/lib/printers.def\fR + +This file is created from Windows 95 \fImsprint.inf +\fR files found on the Windows 95 client system. For more +details on setting up serving of printer drivers to Windows 95 +clients, see the outdated documentation file in the \fIdocs/\fR +directory, \fIPRINTER_DRIVER.txt\fR. + +See also \fI printer driver location\fR. + +Default: \fBNone (set in compile).\fR + +Example: \fBprinter driver file = +/usr/local/samba/printers/drivers.def\fR +.TP +\fBprinter driver location (S)\fR +\fBNote :\fRThis is a deprecated +parameter and will be removed in the next major release +following version 2.2. Please see the instructions in +the Samba 2.2. Printing +HOWTO for more information +on the new method of loading printer drivers onto a Samba server. + +This parameter tells clients of a particular printer +share where to find the printer driver files for the automatic +installation of drivers for Windows 95 machines. If Samba is set up +to serve printer drivers to Windows 95 machines, this should be set to + +\fB\\\\MACHINE\\PRINTER$\fR + +Where MACHINE is the NetBIOS name of your Samba server, +and PRINTER$ is a share you set up for serving printer driver +files. For more details on setting this up see the outdated documentation +file in the \fIdocs/\fR directory, \fI PRINTER_DRIVER.txt\fR. + +See also \fI printer driver file\fR. + +Default: \fBnone\fR + +Example: \fBprinter driver location = \\\\MACHINE\\PRINTER$ +\fR +.TP +\fBprinter name (S)\fR This parameter specifies the name of the printer to which print jobs spooled through a printable service will be sent. @@ -5550,10 +5649,10 @@ on many systems)\fR Example: \fBprinter name = laserwriter\fR .TP -\fB>printer (S)\fR +\fBprinter (S)\fR Synonym for \fI printer name\fR. .TP -\fB>printing (S)\fR +\fBprinting (S)\fR This parameters controls how printer status information is interpreted on your system. It also affects the default values for the \fIprint command\fR, @@ -5576,21 +5675,21 @@ This option can be set on a per printer basis See also the discussion in the [printers] section. .TP -\fB>private dir (G)\fR +\fBprivate dir (G)\fR This parameters defines the directory smbd will use for storing such files as \fIsmbpasswd\fR and \fIsecrets.tdb\fR. Default :\fBprivate dir = ${prefix}/private\fR .TP -\fB>protocol (G)\fR +\fBprotocol (G)\fR Synonym for \fImax protocol\fR. .TP -\fB>public (S)\fR +\fBpublic (S)\fR Synonym for \fIguest ok\fR. .TP -\fB>queuepause command (S)\fR +\fBqueuepause command (S)\fR This parameter specifies the command to be executed on the server host in order to pause the printer queue. @@ -5614,7 +5713,7 @@ Default: \fBdepends on the setting of \fIprinting Example: \fBqueuepause command = disable %p\fR .TP -\fB>queueresume command (S)\fR +\fBqueueresume command (S)\fR This parameter specifies the command to be executed on the server host in order to resume the printer queue. It is the command to undo the behavior that is caused by the @@ -5641,7 +5740,7 @@ Default: \fBdepends on the setting of \fIprinting\fB\fR Example: \fBqueuepause command = enable %p \fR .TP -\fB>read bmpx (G)\fR +\fBread bmpx (G)\fR This boolean parameter controls whether smbd(8) will support the "Read Block Multiplex" SMB. This is now rarely used and defaults to no. You should never need to set this @@ -5649,7 +5748,7 @@ parameter. Default: \fBread bmpx = no\fR .TP -\fB>read list (S)\fR +\fBread list (S)\fR This is a list of users that are given read-only access to a service. If the connecting user is in this list then they will not be given write access, no matter what the \fIread only\fR @@ -5663,7 +5762,7 @@ Default: \fBread list = <empty string>\fR Example: \fBread list = mary, @students\fR .TP -\fB>read only (S)\fR +\fBread only (S)\fR An inverted synonym is \fIwriteable\fR. If this parameter is yes, then users @@ -5676,7 +5775,7 @@ will \fBALWAYS\fR allow writing to the directory Default: \fBread only = yes\fR .TP -\fB>read raw (G)\fR +\fBread raw (G)\fR This parameter controls whether or not the server will support the raw read SMB requests when transferring data to clients. @@ -5693,7 +5792,7 @@ tool and left severely alone. See also \fIwrite raw\fR. Default: \fBread raw = yes\fR .TP -\fB>read size (G)\fR +\fBread size (G)\fR The option \fIread size\fR affects the overlap of disk reads/writes with network reads/writes. If the amount of data being transferred in several of the SMB @@ -5717,7 +5816,7 @@ Default: \fBread size = 16384\fR Example: \fBread size = 8192\fR .TP -\fB>realm (G)\fR +\fBrealm (G)\fR This option specifies the kerberos realm to use. The realm is used as the ADS equivalent of the NT4\fBdomain\fR. It is usually set to the DNS name of the kerberos server. @@ -5726,7 +5825,7 @@ Default: \fBrealm = \fR Example: \fBrealm = mysambabox.mycompany.com\fR .TP -\fB>remote announce (G)\fR +\fBremote announce (G)\fR This option allows you to setup nmbd(8) to periodically announce itself to arbitrary IP addresses with an arbitrary workgroup name. @@ -5750,13 +5849,13 @@ The IP addresses you choose would normally be the broadcast addresses of the remote networks, but can also be the IP addresses of known browse masters if your network config is that stable. -See the documentation file BROWSING +See the documentation file \fIBROWSING.txt\fR in the \fIdocs/\fR directory. Default: \fBremote announce = <empty string> \fR .TP -\fB>remote browse sync (G)\fR +\fBremote browse sync (G)\fR This option allows you to setup nmbd(8) to periodically request synchronization of browse lists with the master browser of a Samba server that is on a remote segment. This option will allow you to @@ -5787,7 +5886,7 @@ is in fact the browse master on its segment. Default: \fBremote browse sync = <empty string> \fR .TP -\fB>restrict anonymous (G)\fR +\fBrestrict anonymous (G)\fR This is a integer parameter, and mirrors as much as possible the functinality the RestrictAnonymous @@ -5795,13 +5894,13 @@ registry key does on NT/Win2k. Default: \fBrestrict anonymous = 0\fR .TP -\fB>root (G)\fR +\fBroot (G)\fR Synonym for \fIroot directory"\fR. .TP -\fB>root dir (G)\fR +\fBroot dir (G)\fR Synonym for \fIroot directory"\fR. .TP -\fB>root directory (G)\fR +\fBroot directory (G)\fR The server will \fBchroot()\fR (i.e. Change its root directory) to this directory on startup. This is not strictly necessary for secure operation. Even without it the @@ -5828,7 +5927,7 @@ Default: \fBroot directory = /\fR Example: \fBroot directory = /homes/smb\fR .TP -\fB>root postexec (S)\fR +\fBroot postexec (S)\fR This is the same as the \fIpostexec\fR parameter except that the command is run as root. This is useful for unmounting filesystems @@ -5839,7 +5938,7 @@ See also \fI postexec\fR. Default: \fBroot postexec = <empty string> \fR .TP -\fB>root preexec (S)\fR +\fBroot preexec (S)\fR This is the same as the \fIpreexec\fR parameter except that the command is run as root. This is useful for mounting filesystems (such as CDROMs) when a @@ -5850,7 +5949,7 @@ See also \fI preexec\fR and \fIpreexec close\fR. Default: \fBroot preexec = <empty string> \fR .TP -\fB>root preexec close (S)\fR +\fBroot preexec close (S)\fR This is the same as the \fIpreexec close \fR parameter except that the command is run as root. @@ -5858,12 +5957,13 @@ See also \fI preexec\fR and \fIpreexec close\fR. Default: \fBroot preexec close = no\fR .TP -\fB>security (G)\fR +\fBsecurity (G)\fR This option affects how clients respond to Samba and is one of the most important settings in the \fI smb.conf\fR file. The option sets the "security mode bit" in replies to -protocol negotiations with \fBsmbd\fR(8) to turn share level security on or off. Clients decide +protocol negotiations with smbd(8) + to turn share level security on or off. Clients decide based on this bit whether (and how) to transfer user and password information to the server. @@ -5904,7 +6004,7 @@ level security under different \fINetBIOS aliases\fR. The different settings will now be explained. ->\fBSECURITY = SHARE +\fBSECURITY = SHARE \fR When clients connect to a share level security server they @@ -5972,10 +6072,10 @@ be used in granting access. See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION. ->\fBSECURITY = USER +\fBSECURITY = USER \fR -This is the default security setting in Samba 3.0. +This is the default security setting in Samba 2.2. With user-level security a client must first "log-on" with a valid username and password (which can be mapped using the \fIusername map\fR parameter). Encrypted passwords (see the \fIencrypted passwords\fR parameter) can also @@ -5993,24 +6093,23 @@ parameter for details on doing this. See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION. ->\fBSECURITY = DOMAIN +\fBSECURITY = SERVER \fR -This mode will only work correctly if \fBnet\fR(8) has been used to add this -machine into a Windows NT Domain. It expects the \fIencrypted passwords\fR -parameter to be set to yes. In this -mode Samba will try to validate the username/password by passing -it to a Windows NT Primary or Backup Domain Controller, in exactly -the same way that a Windows NT Server would do. - -\fBNote\fR that a valid UNIX user must still -exist as well as the account on the Domain Controller to allow -Samba to have a valid UNIX account to map file access to. +In this mode Samba will try to validate the username/password +by passing it to another SMB server, such as an NT box. If this +fails it will revert to \fBsecurity = user\fR, but note +that if encrypted passwords have been negotiated then Samba cannot +revert back to checking the UNIX password file, it must have a valid +\fIsmbpasswd\fR file to check users against. See the +documentation file in the \fIdocs/\fR directory +\fIENCRYPTION.txt\fR for details on how to set this +up. -\fBNote\fR that from the client's point -of view \fBsecurity = domain\fR is the same as \fBsecurity = user -\fR. It only affects how the server deals with the authentication, -it does not in any way affect what the client sees. +\fBNote\fR that from the client's point of +view \fBsecurity = server\fR is the same as \fB security = user\fR. It only affects how the server deals +with the authentication, it does not in any way affect what the +client sees. \fBNote\fR that the name of the resource being requested is \fBnot\fR sent to the server until after @@ -6026,39 +6125,24 @@ See also the \fIpassword server\fR parameter and the \fIencrypted passwords\fR parameter. ->\fBSECURITY = SERVER +\fBSECURITY = DOMAIN \fR -In this mode Samba will try to validate the username/password -by passing it to another SMB server, such as an NT box. If this -fails it will revert to \fBsecurity = -user\fR. It expects the \fIencrypted passwords\fR -parameter to be set to -yes, unless the remote server -does not support them. However note -that if encrypted passwords have been negotiated then Samba cannot -revert back to checking the UNIX password file, it must have a valid -\fIsmbpasswd\fR file to check users against. See the -documentation file in the \fIdocs/\fR directory -\fIENCRYPTION.txt\fR for details on how to set this -up. +This mode will only work correctly if smbpasswd(8) has been used to add this +machine into a Windows NT Domain. It expects the \fIencrypted passwords\fR +parameter to be set to yes. In this +mode Samba will try to validate the username/password by passing +it to a Windows NT Primary or Backup Domain Controller, in exactly +the same way that a Windows NT Server would do. -\fBNote\fR this mode of operation -has significant pitfalls, due to the fact that is -activly initiates a man-in-the-middle attack on the -remote SMB server. In particular, this mode of -operation can cause significant resource consuption on -the PDC, as it must maintain an active connection for -the duration of the user's session. Furthermore, if -this connection is lost, there is no way to -reestablish it, and futher authenticaions to the Samba -server may fail. (From a single client, till it -disconnects). +\fBNote\fR that a valid UNIX user must still +exist as well as the account on the Domain Controller to allow +Samba to have a valid UNIX account to map file access to. -\fBNote\fR that from the client's point of -view \fBsecurity = server\fR is the same as \fB security = user\fR. It only affects how the server deals -with the authentication, it does not in any way affect what the -client sees. +\fBNote\fR that from the client's point +of view \fBsecurity = domain\fR is the same as \fBsecurity = user +\fR. It only affects how the server deals with the authentication, +it does not in any way affect what the client sees. \fBNote\fR that the name of the resource being requested is \fBnot\fR sent to the server until after @@ -6068,6 +6152,14 @@ the server to automatically map unknown users into the \fIguest account\fR. See the \fImap to guest\fR parameter for details on doing this. +\fBBUG:\fR There is currently a bug in the +implementation of \fBsecurity = domain\fR with respect +to multi-byte character set usernames. The communication with a +Domain Controller must be done in UNICODE and Samba currently +does not widen multi-byte user names to UNICODE correctly, thus +a multi-byte username will not be recognized correctly at the +Domain Controller. This issue will be addressed in a future release. + See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION. See also the \fIpassword @@ -6078,7 +6170,7 @@ Default: \fBsecurity = USER\fR Example: \fBsecurity = DOMAIN\fR .TP -\fB>security mask (S)\fR +\fBsecurity mask (S)\fR This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a file using the native NT security @@ -6107,27 +6199,7 @@ Default: \fBsecurity mask = 0777\fR Example: \fBsecurity mask = 0770\fR .TP -\fB>server schannel (G)\fR -This controls whether the server offers or even -demands the use of the netlogon schannel. -\fIserver schannel = no\fR does not -offer the schannel, \fIserver schannel = -auto\fR offers the schannel but does not -enforce it, and \fIserver schannel = -yes\fR denies access if the client is not -able to speak netlogon schannel. This is only the case -for Windows NT4 before SP4. - -Please note that with this set to -\fIno\fR you will have to apply the -WindowsXP requireSignOrSeal-Registry patch found in -the docs/Registry subdirectory. - -Default: \fBserver schannel = auto\fR - -Example: \fBserver schannel = yes\fR/para> -.TP -\fB>server string (G)\fR +\fBserver string (G)\fR This controls what string will show up in the printer comment box in print manager and next to the IPC connection in \fBnet view\fR. It can be any string that you wish @@ -6147,23 +6219,7 @@ Default: \fBserver string = Samba %v\fR Example: \fBserver string = University of GNUs Samba Server\fR .TP -\fB>set primary group script (G)\fR -Thanks to the Posix subsystem in NT a -Windows User has a primary group in addition to the -auxiliary groups. This script sets the primary group -in the unix userdatase when an administrator sets the -primary group from the windows user manager or when -fetching a SAM with \fBnet rpc -vampire\fR. \fI%u\fR will be -replaced with the user whose primary group is to be -set. \fI%g\fR will be replaced with -the group to set. - -Default: \fBNo default value\fR - -Example: \fBset primary group script = /usr/sbin/usermod -g '%g' '%u'\fR -.TP -\fB>set directory (S)\fR +\fBset directory (S)\fR If \fBset directory = no\fR, then users of the service may not use the setdir command to change directory. @@ -6174,7 +6230,7 @@ for details. Default: \fBset directory = no\fR .TP -\fB>share modes (S)\fR +\fBshare modes (S)\fR This enables or disables the honoring of the \fIshare modes\fR during a file open. These modes are used by clients to gain exclusive read or write access @@ -6197,7 +6253,7 @@ off as many Windows applications will break if you do so. Default: \fBshare modes = yes\fR .TP -\fB>short preserve case (S)\fR +\fBshort preserve case (S)\fR This boolean parameter controls if new files which conform to 8.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced @@ -6210,7 +6266,7 @@ See the section on NAME MANGLING. Default: \fBshort preserve case = yes\fR .TP -\fB>show add printer wizard (G)\fR +\fBshow add printer wizard (G)\fR With the introduction of MS-RPC based printing support for Windows NT/2000 client in Samba 2.2, a "Printers..." folder will appear on Samba hosts in the share listing. Normally this folder will @@ -6237,7 +6293,7 @@ command\fR, \fIdeleteprinter command\fR, \fIprinter admin\fR Default :\fBshow add printer wizard = yes\fR .TP -\fB>shutdown script (G)\fR +\fBshutdown script (G)\fR \fBThis parameter only exists in the HEAD cvs branch\fR This a full path name to a script called by \fBsmbd(8)\fR that @@ -6270,19 +6326,20 @@ Example: \fBabort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f\f Shutdown script example: .nf -#!/bin/bash + #!/bin/bash -$time=0 -let "time/60" -let "time++" + $time=0 + let "time/60" + let "time++" -/sbin/shutdown $3 $4 +$time $1 & + /sbin/shutdown $3 $4 +$time $1 & + .fi Shutdown does not return so we need to launch it in background. See also \fIabort shutdown script\fR. .TP -\fB>smb passwd file (G)\fR +\fBsmb passwd file (G)\fR This option sets the path to the encrypted smbpasswd file. By default the path to the smbpasswd file is compiled into Samba. @@ -6293,13 +6350,13 @@ Default: \fBsmb passwd file = ${prefix}/private/smbpasswd Example: \fBsmb passwd file = /etc/samba/smbpasswd \fR .TP -\fB>smb ports (G)\fR +\fBsmb ports (G)\fR Specifies which ports the server should listen on for SMB traffic. Default: \fBsmb ports = 445 139\fR .TP -\fB>socket address (G)\fR +\fBsocket address (G)\fR This option allows you to control what address Samba will listen for connections on. This is used to support multiple virtual interfaces on the one server, each @@ -6310,7 +6367,7 @@ address. Example: \fBsocket address = 192.168.2.20\fR .TP -\fB>socket options (G)\fR +\fBsocket options (G)\fR This option allows you to set socket options to be used when talking with the client. @@ -6398,7 +6455,7 @@ Default: \fBsocket options = TCP_NODELAY\fR Example: \fBsocket options = IPTOS_LOWDELAY\fR .TP -\fB>source environment (G)\fR +\fBsource environment (G)\fR This parameter causes Samba to set environment variables as per the content of the file named. @@ -6422,31 +6479,26 @@ Examples: \fBsource environment = |/etc/smb.conf.sh Example: \fBsource environment = /usr/local/smb_env_vars\fR .TP -\fB>use spnego (G)\fR -This variable controls controls whether samba will try -to use Simple and Protected NEGOciation (as specified by rfc2478) with -WindowsXP and Windows2000sp2 clients to agree upon an authentication mechanism. -Unless further issues are discovered with our SPNEGO -implementation, there is no reason this should ever be -disabled. +\fBuse spnego (G)\fR +This variable controls controls whether samba will try to use Simple and Protected NEGOciation (as specified by rfc2478) with WindowsXP and Windows2000sp2 clients to agree upon an authentication mechanism. As of samba 3.0alpha it must be set to "no" for these clients to join a samba domain controller. It can be set to "yes" to allow samba to participate in an AD domain controlled by a Windows2000 domain controller. Default: \fBuse spnego = yes\fR .TP -\fB>stat cache (G)\fR -This parameter determines if \fBsmbd\fR(8) will use a cache in order to +\fBstat cache (G)\fR +This parameter determines if smbd(8) will use a cache in order to speed up case insensitive name mappings. You should never need to change this parameter. Default: \fBstat cache = yes\fR .TP -\fB>stat cache size (G)\fR +\fBstat cache size (G)\fR This parameter determines the number of entries in the \fIstat cache\fR. You should never need to change this parameter. Default: \fBstat cache size = 50\fR .TP -\fB>strict allocate (S)\fR +\fBstrict allocate (S)\fR This is a boolean that controls the handling of disk space allocation in the server. When this is set to yes the server will change from UNIX behaviour of not committing real @@ -6465,7 +6517,7 @@ of users. Default: \fBstrict allocate = no\fR .TP -\fB>strict locking (S)\fR +\fBstrict locking (S)\fR This is a boolean that controls the handling of file locking in the server. When this is set to yes the server will check every read and write access for file locks, and @@ -6480,7 +6532,7 @@ locking = no\fR is preferable. Default: \fBstrict locking = no\fR .TP -\fB>strict sync (S)\fR +\fBstrict sync (S)\fR Many Windows applications (including the Windows 98 explorer shell) seem to confuse flushing buffer contents to disk with doing a sync to disk. Under UNIX, a sync call forces @@ -6488,7 +6540,7 @@ the process to be suspended until the kernel has ensured that all outstanding data in kernel disk buffers has been safely stored onto stable storage. This is very slow and should only be done rarely. Setting this parameter to no (the -default) means that \fBsmbd\fR(8) ignores the Windows applications requests for +default) means that smbd ignores the Windows applications requests for a sync call. There is only a possibility of losing data if the operating system itself that Samba is running on crashes, so there is little danger in this default setting. In addition, this fixes many @@ -6500,14 +6552,14 @@ always>\fR parameter. Default: \fBstrict sync = no\fR .TP -\fB>strip dot (G)\fR +\fBstrip dot (G)\fR This is a boolean that controls whether to strip trailing dots off UNIX filenames. This helps with some CDROMs that have filenames ending in a single dot. Default: \fBstrip dot = no\fR .TP -\fB>sync always (S)\fR +\fBsync always (S)\fR This is a boolean parameter that controls whether writes will always be written to stable storage before the write call returns. If this is no then the server will be @@ -6524,7 +6576,7 @@ sync\fR parameter. Default: \fBsync always = no\fR .TP -\fB>syslog (G)\fR +\fBsyslog (G)\fR This parameter maps how Samba debug messages are logged onto the system syslog logging levels. Samba debug level zero maps onto syslog LOG_ERR, debug @@ -6538,14 +6590,14 @@ will be sent to syslog. Default: \fBsyslog = 1\fR .TP -\fB>syslog only (G)\fR +\fBsyslog only (G)\fR If this parameter is set then Samba debug messages are logged into the system syslog only, and not to the debug log files. Default: \fBsyslog only = no\fR .TP -\fB>template homedir (G)\fR +\fBtemplate homedir (G)\fR When filling out the user information for a Windows NT user, the winbindd(8) daemon uses this parameter to fill in the home directory for that user. @@ -6556,14 +6608,14 @@ NT user name. Default: \fBtemplate homedir = /home/%D/%U\fR .TP -\fB>template shell (G)\fR +\fBtemplate shell (G)\fR When filling out the user information for a Windows NT -user, the \fBwinbindd\fR(8) daemon +user, the winbindd(8) daemon uses this parameter to fill in the login shell for that user. Default: \fBtemplate shell = /bin/false\fR .TP -\fB>time offset (G)\fR +\fBtime offset (G)\fR This parameter is a setting in minutes to add to the normal GMT to local time conversion. This is useful if you are serving a lot of PCs that have incorrect daylight @@ -6573,20 +6625,21 @@ Default: \fBtime offset = 0\fR Example: \fBtime offset = 60\fR .TP -\fB>time server (G)\fR -This parameter determines if \fBnmbd\fR(8) advertises itself as a time server to Windows +\fBtime server (G)\fR +This parameter determines if +nmbd(8) advertises itself as a time server to Windows clients. Default: \fBtime server = no\fR .TP -\fB>timestamp logs (G)\fR +\fBtimestamp logs (G)\fR Synonym for \fI debug timestamp\fR. .TP -\fB>total print jobs (G)\fR +\fBtotal print jobs (G)\fR This parameter accepts an integer value which defines a limit on the maximum number of print jobs that will be accepted system wide at any given time. If a print job is submitted -by a client which will exceed this number, then \fBsmbd\fR(8) will return an +by a client which will exceed this number, then smbd will return an error indicating that no space is available on the server. The default value of 0 means that no such limit exists. This parameter can be used to prevent a server from exceeding its capacity and is @@ -6597,23 +6650,23 @@ Default: \fBtotal print jobs = 0\fR Example: \fBtotal print jobs = 5000\fR .TP -\fB>unicode (G)\fR +\fBunicode (G)\fR Specifies whether Samba should try to use unicode on the wire by default. Note: This does NOT mean that samba will assume that the unix machine uses unicode! Default: \fBunicode = yes\fR .TP -\fB>unix charset (G)\fR +\fBunix charset (G)\fR Specifies the charset the unix machine Samba runs on uses. Samba needs to know this in order to be able to convert text to the charsets other SMB clients use. -Default: \fBunix charset = UTF8\fR +Default: \fBunix charset = ASCII\fR -Example: \fBunix charset = ASCII\fR +Example: \fBunix charset = UTF8\fR .TP -\fB>unix extensions(G)\fR +\fBunix extensions(G)\fR This boolean parameter controls whether Samba implments the CIFS UNIX extensions, as defined by HP. These extensions enable Samba to better serve UNIX CIFS clients @@ -6623,7 +6676,7 @@ no current use to Windows clients. Default: \fBunix extensions = no\fR .TP -\fB>unix password sync (G)\fR +\fBunix password sync (G)\fR This boolean parameter controls whether Samba attempts to synchronize the UNIX password with the SMB password when the encrypted SMB password in the smbpasswd file is changed. @@ -6638,7 +6691,7 @@ program\fR, \fI passwd chat\fR. Default: \fBunix password sync = no\fR .TP -\fB>update encrypted (G)\fR +\fBupdate encrypted (G)\fR This boolean parameter allows a user logging on with a plaintext password to have their encrypted (hashed) password in the smbpasswd file to be updated automatically as @@ -6664,7 +6717,7 @@ password in order to connect correctly, and to update their hashed Default: \fBupdate encrypted = no\fR .TP -\fB>use client driver (S)\fR +\fBuse client driver (S)\fR This parameter applies only to Windows NT/2000 clients. It has no affect on Windows 95/98/ME clients. When serving a printer to Windows NT/2000 clients without first installing @@ -6696,7 +6749,7 @@ See also disable spoolss Default: \fBuse client driver = no\fR .TP -\fB>use mmap (G)\fR +\fBuse mmap (G)\fR This global parameter determines if the tdb internals of Samba can depend on mmap working correctly on the running system. Samba requires a coherent mmap/read-write system memory cache. Currently only HPUX does not have such a @@ -6707,13 +6760,27 @@ the tdb internal code. Default: \fBuse mmap = yes\fR .TP -\fB>user (S)\fR +\fBuse rhosts (G)\fR +If this global parameter is yes, it specifies +that the UNIX user's \fI.rhosts\fR file in their home directory +will be read to find the names of hosts and users who will be allowed +access without specifying a password. + +\fBNOTE:\fR The use of \fIuse rhosts +\fR can be a major security hole. This is because you are +trusting the PC to supply the correct username. It is very easy to +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 +you are doing. + +Default: \fBuse rhosts = no\fR +.TP +\fBuser (S)\fR Synonym for \fI username\fR. .TP -\fB>users (S)\fR +\fBusers (S)\fR Synonym for \fI username\fR. .TP -\fB>username (S)\fR +\fBusername (S)\fR Multiple users may be specified in a comma-delimited list, in which case the supplied password will be tested against each username in turn (left to right). @@ -6754,7 +6821,7 @@ If any of the usernames begin with a '+' then the name will be looked up only in the UNIX groups database and will expand to a list of all users in the group of that name. -If any of the usernames begin with a '&' then the name +If any of the usernames begin with a '&'then the name will be looked up only in the NIS netgroups database (if Samba is compiled with netgroup support) and will expand to a list of all users in the netgroup group of that name. @@ -6773,7 +6840,7 @@ else <empty string>.\fR Examples:\fBusername = fred, mary, jack, jane, @users, @pcgroup\fR .TP -\fB>username level (G)\fR +\fBusername level (G)\fR This option helps Samba to try and 'guess' at the real UNIX username, as many DOS clients send an all-uppercase username. By default Samba tries all lowercase, followed by the @@ -6792,7 +6859,7 @@ Default: \fBusername level = 0\fR Example: \fBusername level = 5\fR .TP -\fB>username map (G)\fR +\fBusername map (G)\fR This option allows you to specify a file containing a mapping of usernames from the clients to the server. This can be used for several purposes. The most common is to map usernames @@ -6855,8 +6922,9 @@ that line. .nf -!sys = mary fred -guest = * + !sys = mary fred + guest = * + .fi Note that the remapping is applied to all occurrences @@ -6878,7 +6946,7 @@ Default: \fBno username map\fR Example: \fBusername map = /usr/local/samba/lib/users.map \fR .TP -\fB>use sendfile (S)\fR +\fBuse sendfile (S)\fR If this parameter is yes, and Samba was built with the --with-sendfile-support option, and the underlying operating system supports sendfile system call, then some SMB read calls (mainly ReadAndX @@ -6889,7 +6957,7 @@ as yet. Default: \fBuse sendfile = no\fR .TP -\fB>utmp (G)\fR +\fButmp (G)\fR This boolean parameter is only available if Samba has been configured and compiled with the option \fB --with-utmp\fR. If set to yes then Samba will attempt to add utmp or utmpx records (depending on the UNIX system) whenever a @@ -6906,7 +6974,7 @@ See also the \fI utmp directory\fR parameter. Default: \fButmp = no\fR .TP -\fB>utmp directory(G)\fR +\fButmp directory(G)\fR This parameter is only available if Samba has been configured and compiled with the option \fB --with-utmp\fR. It specifies a directory pathname that is used to store the utmp or utmpx files (depending on the UNIX system) that @@ -6919,7 +6987,7 @@ Default: \fBno utmp directory\fR Example: \fButmp directory = /var/run/utmp\fR .TP -\fB>wtmp directory(G)\fR +\fBwtmp directory(G)\fR This parameter is only available if Samba has been configured and compiled with the option \fB --with-utmp\fR. It specifies a directory pathname that is used to store the wtmp or wtmpx files (depending on the UNIX system) that @@ -6935,7 +7003,7 @@ Default: \fBno wtmp directory\fR Example: \fBwtmp directory = /var/log/wtmp\fR .TP -\fB>valid users (S)\fR +\fBvalid users (S)\fR This is a list of users that should be allowed to login to this service. Names starting with '@', '+' and '&' are interpreted using the same rules as described in the @@ -6956,7 +7024,7 @@ Default: \fBNo valid users list (anyone can login) Example: \fBvalid users = greg, @pcusers\fR .TP -\fB>veto files(S)\fR +\fBveto files(S)\fR This is a list of files and directories that are neither visible nor accessible. Each entry in the list must be separated by a '/', which allows spaces to be included @@ -7001,7 +7069,7 @@ veto files = /*Security*/*.tmp/*root*/ veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/ .fi .TP -\fB>veto oplock files (S)\fR +\fBveto oplock files (S)\fR This parameter is only valid when the \fIoplocks\fR parameter is turned on for a share. It allows the Samba administrator to selectively turn off the granting of oplocks on selected files that @@ -7023,7 +7091,7 @@ the particular NetBench share : Example: \fBveto oplock files = /*.SEM/ \fR .TP -\fB>vfs path (S)\fR +\fBvfs path (S)\fR This parameter specifies the directory to look in for vfs modules. The name of every \fBvfs object \fR will be prepended by this directory @@ -7032,7 +7100,7 @@ Default: \fBvfs path = \fR Example: \fBvfs path = /usr/lib/samba/vfs\fR .TP -\fB>vfs object (S)\fR +\fBvfs object (S)\fR This parameter specifies a shared object files that are used for Samba VFS I/O operations. By default, normal disk I/O operations are used but these can be overloaded @@ -7040,21 +7108,21 @@ with one or more VFS objects. Default : \fBno value\fR .TP -\fB>vfs options (S)\fR +\fBvfs options (S)\fR This parameter allows parameters to be passed to the vfs layer at initialization time. See also \fI vfs object\fR. Default : \fBno value\fR .TP -\fB>volume (S)\fR +\fBvolume (S)\fR This allows you to override the volume label returned for a share. Useful for CDROMs with installation programs that insist on a particular volume label. Default: \fBthe name of the share\fR .TP -\fB>wide links (S)\fR +\fBwide links (S)\fR This parameter controls whether or not links in the UNIX file system may be followed by the server. Links that point to areas within the directory tree exported by the @@ -7067,17 +7135,19 @@ that Samba has to do in order to perform the link checks. Default: \fBwide links = yes\fR .TP -\fB>winbind cache time (G)\fR -This parameter specifies the number of -seconds the \fBwinbindd\fR(8) daemon will cache +\fBwinbind cache time (G)\fR +This parameter specifies the number of seconds the +winbindd(8) daemon will cache user and group information before querying a Windows NT server again. Default: \fBwinbind cache type = 15\fR .TP -\fB>winbind enum users (G)\fR -On large installations using \fBwinbindd\fR(8) it may be -necessary to suppress the enumeration of users through the \fBsetpwent()\fR, +\fBwinbind enum users (G)\fR +On large installations using +winbindd(8) it may be +necessary to suppress the enumeration of users through the +\fB setpwent()\fR, \fBgetpwent()\fR and \fBendpwent()\fR group of system calls. If the \fIwinbind enum users\fR parameter is @@ -7092,9 +7162,11 @@ usernames. Default: \fBwinbind enum users = yes \fR .TP -\fB>winbind enum groups (G)\fR -On large installations using \fBwinbindd\fR(8) it may be necessary to suppress -the enumeration of groups through the \fBsetgrent()\fR, +\fBwinbind enum groups (G)\fR +On large installations using +winbindd(8) it may be +necessary to suppress the enumeration of groups through the +\fB setgrent()\fR, \fBgetgrent()\fR and \fBendgrent()\fR group of system calls. If the \fIwinbind enum groups\fR parameter is @@ -7106,9 +7178,9 @@ enumeration may cause some programs to behave oddly. Default: \fBwinbind enum groups = yes \fR .TP -\fB>winbind gid (G)\fR +\fBwinbind gid (G)\fR The winbind gid parameter specifies the range of group -ids that are allocated by the \fBwinbindd\fR(8) daemon. This range of group ids should have no +ids that are allocated by the winbindd(8) daemon. This range of group ids should have no existing local or NIS groups within it as strange conflicts can occur otherwise. @@ -7117,7 +7189,7 @@ Default: \fBwinbind gid = <empty string> Example: \fBwinbind gid = 10000-20000\fR .TP -\fB>winbind separator (G)\fR +\fBwinbind separator (G)\fR This parameter allows an admin to define the character used when listing a username of the form of \fIDOMAIN \fR\\\fIuser\fR. This parameter @@ -7132,9 +7204,9 @@ Default: \fBwinbind separator = '\\'\fR Example: \fBwinbind separator = +\fR .TP -\fB>winbind uid (G)\fR +\fBwinbind uid (G)\fR The winbind gid parameter specifies the range of group -ids that are allocated by the \fBwinbindd\fR(8) daemon. This range of ids should have no +ids that are allocated by the winbindd(8) daemon. This range of ids should have no existing local or NIS users within it as strange conflicts can occur otherwise. @@ -7143,9 +7215,11 @@ Default: \fBwinbind uid = <empty string> Example: \fBwinbind uid = 10000-20000\fR .TP -\fB>winbind use default domain (G)\fR -This parameter specifies whether the \fBwinbindd\fR(8) daemon should operate on users -without domain component in their username. +\fBwinbind use default domain\fR +.TP +\fBwinbind use default domain (G)\fR +This parameter specifies whether the winbindd(8) +daemon should operate on users without domain component in their username. Users without a domain component are treated as is part of the winbindd server's own domain. While this does not benifit Windows users, it makes SSH, FTP and e-mail function in a way much closer to the way they would in a native unix system. @@ -7155,7 +7229,7 @@ Default: \fBwinbind use default domain = <no> Example: \fBwinbind use default domain = yes\fR .TP -\fB>wins hook (G)\fR +\fBwins hook (G)\fR When Samba is running as a WINS server this allows you to call an external program for all changes to the WINS database. The primary use for this option is to allow the @@ -7201,47 +7275,35 @@ An example script that calls the BIND dynamic DNS update program \fBnsupdate\fR is provided in the examples directory of the Samba source code. .TP -\fB>wins proxy (G)\fR +\fBwins proxy (G)\fR This is a boolean that controls if nmbd(8) will respond to broadcast name queries on behalf of other hosts. You may need to set this to yes for some older clients. Default: \fBwins proxy = no\fR .TP -\fB>wins server (G)\fR +\fBwins server (G)\fR This specifies the IP address (or DNS name: IP -address for preference) of the WINS server that \fBnmbd\fR(8) should register with. If you have a WINS server on +address for preference) of the WINS server that nmbd(8) should register with. If you have a WINS server on your network then you should set this to the WINS server's IP. You should point this at your WINS server if you have a multi-subnetted network. -If you want to work in multiple namespaces, you can -give every wins server a 'tag'. For each tag, only one -(working) server will be queried for a name. The tag should be -seperated from the ip address by a colon. -.sp -.RS -.B "Note:" -You need to set up Samba to point +\fBNOTE\fR. You need to set up Samba to point to a WINS server if you have multiple subnets and wish cross-subnet browsing to work correctly. -.RE -See the documentation file Browsing in the samba howto collection. +See the documentation file \fIBROWSING.txt\fR +in the docs/ directory of your Samba source distribution. Default: \fBnot enabled\fR -Example: \fBwins server = mary:192.9.200.1 fred:192.168.3.199 mary:192.168.2.61\fR - -For this example when querying a certain name, 192.19.200.1 will -be asked first and if that doesn't respond 192.168.2.61. If either -of those doesn't know the name 192.168.3.199 will be queried. - -Example: \fBwins server = 192.9.200.1 192.168.2.61\fR +Example: \fBwins server = 192.9.200.1\fR .TP -\fB>wins support (G)\fR -This boolean controls if the \fBnmbd\fR(8) process in Samba will act as a WINS server. You should +\fBwins support (G)\fR +This boolean controls if the +nmbd(8) process in Samba will act as a WINS server. You should not set this to yes unless you have a multi-subnetted network and you wish a particular \fBnmbd\fR to be your WINS server. Note that you should \fBNEVER\fR set this to yes @@ -7249,7 +7311,7 @@ on more than one machine in your network. Default: \fBwins support = no\fR .TP -\fB>workgroup (G)\fR +\fBworkgroup (G)\fR This controls what workgroup your server will appear to be in when queried by clients. Note that this parameter also controls the Domain name used with the \fBsecurity = domain\fR @@ -7259,10 +7321,10 @@ Default: \fBset at compile time to WORKGROUP\fR Example: \fBworkgroup = MYGROUP\fR .TP -\fB>writable (S)\fR +\fBwritable (S)\fR Synonym for \fI writeable\fR for people who can't spell :-). .TP -\fB>write cache size (S)\fR +\fBwrite cache size (S)\fR If this integer parameter is set to non-zero value, Samba will create an in-memory cache for each oplocked file (it does \fBnot\fR do this for @@ -7288,7 +7350,7 @@ Example: \fBwrite cache size = 262144\fR for a 256k cache size per file. .TP -\fB>write list (S)\fR +\fBwrite list (S)\fR This is a list of users that are given read-write access to a service. If the connecting user is in this list then they will be given write access, no matter what the \fIread only\fR @@ -7307,7 +7369,7 @@ Default: \fBwrite list = <empty string> Example: \fBwrite list = admin, root, @staff \fR .TP -\fB>wins partners (G)\fR +\fBwins partners (G)\fR A space separated list of partners' IP addresses for WINS replication. WINS partners are always defined as push/pull partners as defining only one way WINS replication is unreliable. @@ -7318,17 +7380,17 @@ Default: \fBwins partners = \fR Example: \fBwins partners = 192.168.0.1 172.16.1.2\fR .TP -\fB>write ok (S)\fR +\fBwrite ok (S)\fR Inverted synonym for \fI read only\fR. .TP -\fB>write raw (G)\fR +\fBwrite raw (G)\fR This parameter controls whether or not the server will support raw write SMB's when transferring data from clients. You should never need to change this parameter. Default: \fBwrite raw = yes\fR .TP -\fB>writeable (S)\fR +\fBwriteable (S)\fR Inverted synonym for \fI read only\fR. .SH "WARNINGS" .PP @@ -7338,7 +7400,8 @@ be ignored in comparisons anyway, so it shouldn't be a problem - but be aware of the possibility. .PP On a similar note, many clients - especially DOS clients - -limit service names to eight characters. \fBsmbd\fR(8) has no such limitation, but attempts to connect from such +limit service names to eight characters. smbd(8) + has no such limitation, but attempts to connect from such clients will fail if they truncate the service names. For this reason you should probably keep your service names down to eight characters in length. @@ -7350,10 +7413,19 @@ sections. In particular, ensure that the permissions on spool directories are correct. .SH "VERSION" .PP -This man page is correct for version 3.0 of the Samba suite. +This man page is correct for version 3.0 of +the Samba suite. .SH "SEE ALSO" .PP -\fBsamba\fR(7), \fBsmbpasswd\fR(8), \fBswat\fR(8), \fBsmbd\fR(8), \fBnmbd\fR(8), \fBsmbclient\fR(1), \fBnmblookup\fR(1), \fBtestparm\fR(1), \fBtestprns\fR(1). +samba(7) +\fBsmbpasswd(8)\fR +\fBswat(8)\fR +\fBsmbd(8)\fR +\fBnmbd(8)\fR +\fBsmbclient(1)\fR +\fBnmblookup(1)\fR +\fBtestparm(1)\fR +\fBtestprns(1)\fR .SH "AUTHOR" .PP The original Samba software and related utilities @@ -7363,7 +7435,7 @@ to the way the Linux kernel is developed. .PP The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another -excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 +excellent piece of Open Source software, available at +ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for -Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 -for Samba 3.0 was done by Alexander Bokovoy. +Samba 2.2 was done by Gerald Carter |