summaryrefslogtreecommitdiff
path: root/docs/manpages/smb.conf.5
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manpages/smb.conf.5')
-rw-r--r--docs/manpages/smb.conf.5626
1 files changed, 397 insertions, 229 deletions
diff --git a/docs/manpages/smb.conf.5 b/docs/manpages/smb.conf.5
index 0bb1be0be4..b7cc9b98de 100644
--- a/docs/manpages/smb.conf.5
+++ b/docs/manpages/smb.conf.5
@@ -3,7 +3,7 @@
.\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/>
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "SMB.CONF" "5" "11 September 2001" "" ""
+.TH "SMB.CONF" "5" "10 October 2001" "" ""
.SH NAME
smb.conf \- The configuration file for the Samba suite
.SH "SYNOPSIS"
@@ -447,7 +447,7 @@ that is all in upper case and of suitable length, are created
upper case, or if they are forced to be the "default"
case. This option can be use with "preserve case = yes"
to permit long filenames to retain their case, while short names
-are lowered. Default \fByes\fR.
+are lowercased. Default \fByes\fR.
.PP
By default, Samba 2.2 has the same semantics as a Windows
NT server, in that it is case insensitive but case preserving.
@@ -474,7 +474,7 @@ If the client has previously registered a username
with the system and now supplies a correct password for that
username then the connection is allowed.
.IP 3.
-The client's netbios name and any previously
+The client's NetBIOS name and any previously
used user names are checked against the supplied password, if
they match then the connection is allowed as the corresponding
user.
@@ -503,6 +503,9 @@ Here is a list of all global parameters. See the section of
each parameter for details. Note that some are synonyms.
.TP 0.2i
\(bu
+\fIabort shutdown script\fR
+.TP 0.2i
+\(bu
\fIadd printer command\fR
.TP 0.2i
\(bu
@@ -512,6 +515,9 @@ each parameter for details. Note that some are synonyms.
\fIadd user script\fR
.TP 0.2i
\(bu
+\fIadd machine script\fR
+.TP 0.2i
+\(bu
\fIallow trusted domains\fR
.TP 0.2i
\(bu
@@ -587,6 +593,9 @@ each parameter for details. Note that some are synonyms.
\fIdfree command\fR
.TP 0.2i
\(bu
+\fIdisable spoolss\fR
+.TP 0.2i
+\(bu
\fIdns proxy\fR
.TP 0.2i
\(bu
@@ -617,6 +626,9 @@ each parameter for details. Note that some are synonyms.
\fIhide local users\fR
.TP 0.2i
\(bu
+\fIhide unreadable\fR
+.TP 0.2i
+\(bu
\fIhomedir map\fR
.TP 0.2i
\(bu
@@ -638,6 +650,9 @@ each parameter for details. Note that some are synonyms.
\fIlanman auth\fR
.TP 0.2i
\(bu
+\fIlarge readwrite\fR
+.TP 0.2i
+\(bu
\fIlm announce\fR
.TP 0.2i
\(bu
@@ -845,6 +860,9 @@ each parameter for details. Note that some are synonyms.
\fIshow add printer wizard\fR
.TP 0.2i
\(bu
+\fIshutdown script\fR
+.TP 0.2i
+\(bu
\fIsmb passwd file\fR
.TP 0.2i
\(bu
@@ -947,6 +965,9 @@ each parameter for details. Note that some are synonyms.
\fIusername map\fR
.TP 0.2i
\(bu
+\fIutmp\fR
+.TP 0.2i
+\(bu
\fIutmp directory\fR
.TP 0.2i
\(bu
@@ -956,6 +977,12 @@ each parameter for details. Note that some are synonyms.
\fIwinbind cache time\fR
.TP 0.2i
\(bu
+\fIwinbind enum users\fR
+.TP 0.2i
+\(bu
+\fIwinbind enum groups\fR
+.TP 0.2i
+\(bu
\fIwinbind gid\fR
.TP 0.2i
\(bu
@@ -1272,9 +1299,6 @@ each parameter for details. Note that some are synonyms.
\fIset directory\fR
.TP 0.2i
\(bu
-\fIshare modes\fR
-.TP 0.2i
-\(bu
\fIshort preserve case\fR
.TP 0.2i
\(bu
@@ -1290,6 +1314,9 @@ each parameter for details. Note that some are synonyms.
\fIsync always\fR
.TP 0.2i
\(bu
+\fIuse client driver\fR
+.TP 0.2i
+\(bu
\fIuser\fR
.TP 0.2i
\(bu
@@ -1299,9 +1326,6 @@ each parameter for details. Note that some are synonyms.
\fIusers\fR
.TP 0.2i
\(bu
-\fIutmp\fR
-.TP 0.2i
-\(bu
\fIvalid users\fR
.TP 0.2i
\(bu
@@ -1338,6 +1362,18 @@ each parameter for details. Note that some are synonyms.
\fIwriteable\fR
.SH "EXPLANATION OF EACH PARAMETER"
.TP
+\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(8)\fRthat
+should stop a shutdown procedure issued by the \fIshutdown script\fR.
+
+This command will be run as user.
+
+Default: \fBNone\fR.
+
+Example: \fBabort shutdown script = /sbin/shutdown -c\fR
+.TP
\fBadd printer command (G)\fR
With the introduction of MS-RPC based printing
support for Windows NT/2000 clients in Samba 2.2, The MS Add
@@ -1347,7 +1383,7 @@ allows for printers to be add remotely to a Samba or Windows
NT/2000 print server.
For a Samba host this means that the printer must be
-physically added to underlying printing system. The \fIadd
+physically added to the underlying printing system. The \fIadd
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
@@ -1450,6 +1486,19 @@ Default: \fBnone\fR
Example: \fBadd share command = /usr/local/bin/addshare\fR
.PP
.TP
+\fBadd machine script (G)\fR
+This is the full pathname to a script that will
+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
+Unix uid method of RID calculation such as smbpasswd. This option is only
+available in Samba 3.0.
+
+Default: \fBadd machine script = <empty string>
+\fR
+Example: \fBadd machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
+\fR.TP
\fBadd user script (G)\fR
This is the full pathname to a script that will
be run \fBAS ROOT\fR by smbd(8)
@@ -1462,7 +1511,8 @@ creating these users and keeping the user list in sync with the
Windows NT PDC is an onerous task. This option allows smbdto create the required UNIX users
\fBON DEMAND\fR when a user accesses the Samba server.
-In order to use this option, smbdmust be set to \fIsecurity = server\fR or \fI security = domain\fR and \fIadd user script\fR
+In order to use this option, smbd
+must be set to \fIsecurity = server\fR or \fI security = domain\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.
@@ -1511,7 +1561,7 @@ Synonym for \fIhosts allow\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
-a domain or workgroup other than the one which smbd is running
+a domain or workgroup other than the one which smbdis running
in will fail, even if that domain is trusted by the remote server
doing the authentication.
@@ -1528,7 +1578,8 @@ Default: \fBallow trusted domains = yes\fR
.TP
\fBannounce as (G)\fR
This specifies what type of server
-\fBnmbd\fRwill announce itself as, to a network neighborhood browse
+\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,
@@ -1542,13 +1593,13 @@ Default: \fBannounce as = NT Server\fR
Example: \fBannounce as = Win95\fR
.TP
-\fBannouce 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.2. Do not change this parameter unless you have a specific
need to set a Samba server to be a downlevel server.
-Default: \fBannounce version = 4.2\fR
+Default: \fBannounce version = 4.5\fR
Example: \fBannounce version = 2.0\fR
.TP
@@ -1565,7 +1616,7 @@ Default: \fBavailable = yes\fR
.TP
\fBbind interfaces only (G)\fR
This global parameter allows the Samba admin
-to limit what interfaces on a machine will serve smb requests. If
+to limit what interfaces on a machine will serve SMB requests. If
affects file service smbd(8)and
name service nmbd(8)in slightly
different ways.
@@ -1587,7 +1638,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 smbd(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
@@ -1595,7 +1647,8 @@ 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(8)\fRand \fBswat(8)\fRmay
+to the \fIinterfaces\fR parameter list \fBsmbpasswd(8)\fR
+and \fBswat(8)\fRmay
not work as expected due to the reasons covered below.
To change a users SMB password, the \fBsmbpasswd\fR
@@ -1628,7 +1681,7 @@ cannot be immediately satisfied, Samba 2.2 will internally
queue the lock request, and periodically attempt to obtain
the lock until the timeout period expires.
-If this parameter is set to False, then
+If this parameter is set to false, then
Samba 2.2 will behave as previous versions of Samba would and
will fail the lock request immediately if the lock range
cannot be obtained.
@@ -1722,7 +1775,7 @@ Example: \fBchange share command = /usr/local/bin/addshare\fR
.PP
.TP
\fBcharacter set (G)\fR
-This allows a smbd to map incoming filenames
+This allows smbdto map incoming filenames
from a DOS Code page (see the client
code page parameter) to several built in UNIX character sets.
The built in code page translations are:
@@ -1793,7 +1846,8 @@ the code page. The default for USA MS-DOS, Windows 95, and
Windows NT releases is code page 437. The default for western
European releases of the above operating systems is code page 850.
-This parameter tells smbd(8)which of the \fIcodepage.XXX
+This parameter tells smbd(8)
+which of the \fIcodepage.XXX
\fRfiles to dynamically load on startup. These files,
described more fully in the manual page \fBmake_smbcodepage(1)\fR, tell \fB smbd\fR how to map lower to upper case characters to provide
the case insensitivity of filenames that Windows clients expect.
@@ -1876,7 +1930,7 @@ Default: \fBcode page directory = ${prefix}/lib/codepages
\fR
Example: \fBcode page directory = /usr/share/samba/codepages
\fR.TP
-\fBcodingsystem (G)\fR
+\fBcoding system (G)\fR
This parameter is used to determine how incoming
Shift-JIS Japanese characters are mapped from the incoming \fIclient code page\fR
used by the client, into file names in the UNIX filesystem.
@@ -2183,9 +2237,9 @@ see the \fIdelete printer
command\fR.
.PP
.PP
-See also \fIdelete share
+See also \fIadd share
command\fR, \fIchange
-share\fR.
+share command\fR.
.PP
.PP
Default: \fBnone\fR
@@ -2251,11 +2305,11 @@ Example: \fBdelete user script = /usr/local/samba/bin/del_user
This option is used when Samba is attempting to
delete a directory that contains one or more vetoed directories
(see the \fIveto files\fR
-option). If this option is set to False (the default) then if a vetoed
+option). If this option is set to false (the default) then if a vetoed
directory contains any non-vetoed files or directories then the
directory delete will fail. This is usually what you want.
-If this option is set to True, then Samba
+If this option is set to true, then Samba
will attempt to recursively delete any files and directories within
the vetoed directory. This can be useful for integration with file
serving systems such as NetAtalk which create meta-files within
@@ -2407,8 +2461,25 @@ Default: \fBdirectory security mask = 0777\fR
Example: \fBdirectory security mask = 0700\fR
.TP
+\fBdisable spoolss (G)\fR
+Enabling this parameter will disables 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
+Lanman style printing commands. Windows 9x/ME will be uneffected by
+the parameter. However, this will also disable the ability to upload
+printer drivers to a Samba server via the Windows NT Add Printer
+Wizard or by using the NT printer properties dialog window. It will
+also disable the capability of Windows NT/2000 clients to download
+print drivers from the Samba host upon demand.
+\fBBe very careful about enabling this parameter.\fR
+
+See also use client driver
+
+Default : \fBdisable spoolss = no\fR
+.TP
\fBdns proxy (G)\fR
-Specifies that nmbd(8)when acting as a WINS server and finding that a NetBIOS name has not
+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.
@@ -2476,7 +2547,8 @@ 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(8)\fRfor a complete copy of the browse list for the whole wide area
+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.
@@ -2517,7 +2589,7 @@ Example: \fBdont descend = /proc,/dev\fR
.TP
\fBdos filemode (S)\fR
The default behavior in Samba is to provide
-UNIX-like behavor where only the owner of a file/directory is
+UNIX-like behavior where only the owner of a file/directory is
able to change the permissions on it. However, this behavior
is often confusing to DOS/Windows users. Enabling this parameter
allows a user who has write access to the file (by whatever
@@ -2556,7 +2628,7 @@ 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 True allows DOS semantics and smbd will change the file
+on behalf of is not the file owner. Setting this option to true allows DOS semantics and smbdwill change the file
timestamp as DOS requires.
Default: \fBdos filetimes = no\fR
@@ -2581,16 +2653,14 @@ Default: \fBencrypt passwords = no\fR
.TP
\fBenhanced browsing (G)\fR
This option enables a couple of enhancements to
-cross-subnet browse propogation that have been added in Samba
+cross-subnet browse propagation that have been added in Samba
but which are not standard in Microsoft implementations.
-\fBThese enhancements are currently only available in
-the HEAD Samba CVS tree (not Samba 2.2.x).\fR
-The first enhancement to browse propogation consists of a regular
+The first enhancement to browse propagation consists of a regular
wildcard query to a Samba WINS server for all Domain Master Browsers,
-followed by a browse synchronisation with each of the returned
+followed by a browse synchronization with each of the returned
DMBs. The second enhancement consists of a regular randomised browse
-synchronisation with all currently known DMBs.
+synchronization with all currently known DMBs.
You may wish to disable this option if you have a problem with empty
workgroups not disappearing from browse lists. Due to the restrictions
@@ -2598,7 +2668,7 @@ of the browse protocols these enhancements can cause a empty workgroup
to stay around forever which can be annoying.
In general you should leave this option enabled as it makes
-cross-subnet browse propogation much more reliable.
+cross-subnet browse propagation much more reliable.
Default: \fBenhanced browsing = yes\fR
.TP
@@ -2646,7 +2716,7 @@ However, Unix time semantics mean that the create time
reported by Samba will be updated whenever a file is created or
or deleted in the directory. NMAKE finds all object files in
the object directory. The timestamp of the last one built is then
-compared to the timestamp of the object dircetory. If the
+compared to the timestamp of the object directory. If the
directory's timestamp if newer, then all object files
will be rebuilt. Enabling this option
ensures directories always predate their contents and an NMAKE build
@@ -2681,7 +2751,8 @@ Default: \fBfake oplocks = no\fR
.TP
\fBfollow symlinks (S)\fR
This parameter allows the Samba administrator
-to stop \fBsmbd(8)\fRfrom 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
@@ -2751,7 +2822,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
-\fBforce directory\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.
@@ -2886,7 +2957,7 @@ 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
when the \fIwide links\fR
-parameter is set to False.
+parameter is set to false.
Default: \fBgetwd cache = yes\fR
.TP
@@ -2977,9 +3048,15 @@ users (root, wheel, floppy, etc) from remote clients.
Default: \fBhide local users = no\fR
.TP
+\fBhide unreadable (S)\fR
+This parameter prevents clients from seeing the
+existance of files that cannot be read. Defaults to off.
+
+Default: \fBhide unreadable = no\fR
+.TP
\fBhomedir map (G)\fR
If\fInis homedir
-\fRis True, and \fBsmbd(8)\fRis also acting
+\fRis true, and \fBsmbd(8)\fRis 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
@@ -3089,7 +3166,7 @@ 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.
+not supply passwords to Samba.
\fBNOTE :\fR The use of \fIhosts equiv
\fRcan be a major security hole. This is because you are
@@ -3137,7 +3214,7 @@ Note that the setuid bit is \fBnever\fR set via
inheritance (the code explicitly prohibits this).
This can be particularly useful on large systems with
-many users, perhaps several thousand,to allow a single [homes]
+many users, perhaps several thousand, to allow a single [homes]
share to be used flexibly by each user.
See also \fIcreate mask
@@ -3220,7 +3297,7 @@ by looking in the UNIX group database. A name starting with
\&'+' and '&' may be used at the start of the name in either order
so the value \fI+&group\fR means check the
UNIX group database, followed by the NIS netgroup database, and
-the value \fI&+group"\fR means check the NIS
+the value \fI&+group\fR means check the NIS
netgroup database, followed by the UNIX group database (the
same as the '@' prefix).
@@ -3261,9 +3338,9 @@ 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 on systems
-that have the support, and off on systems that
-don't. You should never need to touch this parameter.
+This parameter defaults to on, but is translated
+to a no-op on systems that no not have the necessary kernel support.
+You should never need to touch this parameter.
See also the \fIoplocks\fR
and \fIlevel2 oplocks
@@ -3272,14 +3349,25 @@ and \fIlevel2 oplocks
Default: \fBkernel oplocks = yes\fR
.TP
\fBlanman auth (G)\fR
-This parameter determines whether or not smbd will
-attempt to authentication users using the LANMAN password hash.
+This parameter determines whether or not smbdwill
+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
+\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
+Windows 2000 clients. Defaults to off. Not as tested as some other Samba
+code paths.
+
+Default : \fBlarge readwrite = no\fR
+.TP
\fBlevel2 oplocks (S)\fR
This parameter controls whether Samba supports
level2 (read-only) oplocks on a share.
@@ -3308,7 +3396,7 @@ Currently, if \fIkernel
oplocks\fR are supported then level2 oplocks are
not granted (even if this parameter is set to yes).
Note also, the \fIoplocks\fR
-parameter must be set to "true" on this share in order for
+parameter must be set to true on this share in order for
this parameter to have any effect.
See also the \fIoplocks\fR
@@ -3364,13 +3452,13 @@ Default: \fBload printers = yes\fR
.TP
\fBlocal master (G)\fR
This option allows \fB nmbd(8)\fRto try and become a local master browser
-on a subnet. If set to False then \fB nmbd\fR will not attempt to become a local master browser
+on a subnet. If set to false 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 true. Setting this value to true doesn't
mean that Samba will \fBbecome\fR the local master
browser on a subnet, just that \fBnmbd\fR will \fB participate\fR in elections for local master browser.
-Setting this value to False will cause \fBnmbd\fR
+Setting this value to false will cause \fBnmbd\fR
\fBnever\fR to become a local master browser.
Default: \fBlocal master = yes\fR
@@ -3402,7 +3490,7 @@ by the server.
This option \fBmay\fR be useful for read-only
filesystems which \fBmay\fR not need locking (such as
-cdrom drives), although setting this parameter of no
+CDROM drives), although setting this parameter of no
is not really recommended even in this case.
Be careful about disabling locking either globally or in a
@@ -3464,7 +3552,7 @@ home directory. This is done in the following way:
This tells Samba to return the above string, with
substitutions made when a client requests the info, generally
in a NetUserGetInfo request. Win9X clients truncate the info to
-\\\\server\\share when a user does \fBnet use /home"\fR
+\\\\server\\share when a user does \fBnet use /home\fR
but use the whole string when dealing with profiles.
Note that in prior versions of Samba, the \fIlogon path\fR was returned rather than
@@ -3497,7 +3585,7 @@ your Windows NT client.
The share and the path must be readable by the user for
the preferences and directories to be loaded onto the Windows NT
-client. The share must be writeable when the logs in for the first
+client. The share must be writeable when the user logs in for the first
time, in order that the Windows NT client can create the NTuser.dat
and other directories.
@@ -3527,7 +3615,7 @@ Example: \fBlogon path = \\\\PROFILESERVER\\PROFILE\\%U\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
-style cr/lf line endings. Using a DOS-style editor to create the
+style CR/LF line endings. Using a DOS-style editor to create the
file is recommended.
The script must be a relative path to the [netlogon]
@@ -3537,7 +3625,7 @@ the file that will be downloaded is:
\fI/usr/local/samba/netlogon/STARTUP.BAT\fR
-The contents of the batch file is entirely your choice. A
+The contents of the batch file are entirely your choice. A
suggested command would be to add \fBNET TIME \\\\SERVER /SET
/YES\fR, to force every machine to synchronize clocks with
the same time server. Another use would be to add \fBNET USE
@@ -3569,9 +3657,9 @@ a printer name and job number to pause the print job. One way
of implementing this is by using job priorities, where jobs
having a too low priority won't be sent to the printer.
-If a \fI%p\fR is given then the printername
+If a \fI%p\fR is given then the printer name
is put in its place. A \fI%j\fR is replaced with
-the job number (an integer). On HPUX (see \fIprinting = hpux
+the job number (an integer). On HPUX (see \fIprinting=hpux
\fR), if the \fI-p%p\fR option is added
to the lpq command, the job will show up with the correct status, i.e.
if the job priority is lower than the set fence priority it will
@@ -3642,7 +3730,7 @@ requesting status information about. To get around this, the
server reports on the first printer service connected to by the
client. This only happens if the connection number sent is invalid.
-If a \fI%p\fR is given then the printername
+If a \fI%p\fR is given then the printer name
is put in its place. Otherwise it is placed at the end of the
command.
@@ -3667,7 +3755,7 @@ a printer name and job number to resume the print job. See
also the \fIlppause command
\fRparameter.
-If a \fI%p\fR is given then the printername
+If a \fI%p\fR is given then the printer name
is put in its place. A \fI%j\fR is replaced with
the job number (an integer).
@@ -3699,7 +3787,7 @@ executed on the server host in order to delete a print job.
This command should be a program or script which takes
a printer name and job number, and deletes the print job.
-If a \fI%p\fR is given then the printername
+If a \fI%p\fR is given then the printer name
is put in its place. A \fI%j\fR is replaced with
the job number (an integer).
@@ -3717,7 +3805,7 @@ Example 1: \fBlprm command = /usr/bin/lprm -P%p %j
Example 2: \fBlprm command = /usr/bin/cancel %p-%j
\fR.TP
\fBmachine password timeout (G)\fR
-If a Samba server is a member of an Windows
+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
PASSWORD stored in the TDB called \fIprivate/secrets.tdb
@@ -3751,8 +3839,8 @@ This allows a UNIX script to be sent to the Samba host and
executed on behalf of the connected user.
Scripts executed in this way will be deleted upon
-completion assuming that the user has the appripriate level
-of priviledge and the ile permissions allow the deletion.
+completion assuming that the user has the appropriate level
+of privilege and the file permissions allow the deletion.
If the script generates output, output will be sent to
the file specified by the \fI magic output\fR parameter (see above).
@@ -3777,7 +3865,7 @@ Default: \fBmangle case = no\fR
.TP
\fBmangled map (S)\fR
This is for those who want to directly map UNIX
-file names which can not be represented on Windows/DOS. The mangling
+file names which cannot be represented on Windows/DOS. The mangling
of names is not always what is needed. In particular you may have
documents with file extensions that differ between DOS and UNIX.
For example, under UNIX it is common to use \fI.html\fR
@@ -3790,7 +3878,7 @@ you would use:
\fBmangled map = (*.html *.htm)\fR
One very useful case is to remove the annoying \fI;1
-\fRoff the ends of filenames on some CDROMS (only visible
+\fRoff the ends of filenames on some CDROMs (only visible
under some UNIXes). To do this use a map of (*;1 *;).
Default: \fBno mangled map\fR
@@ -3870,11 +3958,11 @@ or contains upper case characters).
The larger this value, the more likely it is that mangled
names can be successfully converted to correct long UNIX names.
-However, large stack sizes will slow most directory access. Smaller
+However, large stack sizes will slow most directory accesses. Smaller
stacks save memory in the server (each stack element costs 256 bytes).
It is not possible to absolutely guarantee correct long
-file names, so be prepared for some surprises!
+filenames, so be prepared for some surprises!
Default: \fBmangled stack = 50\fR
@@ -4031,7 +4119,7 @@ Example: \fBmax log size = 1000\fR
.TP
\fBmax mux (G)\fR
This option controls the maximum number of
-outstanding simultaneous SMB operations that samba tells the client
+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
@@ -4104,11 +4192,12 @@ Example: \fBmax protocol = LANMAN1\fR
.TP
\fBmax smbd processes (G)\fR
This parameter limits the maximum number of
-\fBsmbd(8)\fRprocesses concurrently running on a system and is intended
-as a stop gap to prevent degrading service to clients in the event
+\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 smbd associated with him or her
+conditions, each user will have an smbdassociated with him or her
to handle connections to all shares from a given host.
Default: \fBmax smbd processes = 0\fR ## no limit
@@ -4116,7 +4205,8 @@ Default: \fBmax smbd processes = 0\fR ## no limit
Example: \fBmax smbd processes = 1000\fR
.TP
\fBmax ttl (G)\fR
-This option tells nmbd(8)what the default 'time to live' of NetBIOS names should be (in seconds)
+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
change this parameter. The default is 3 days.
@@ -4162,7 +4252,7 @@ removes it afterwards. \fBNOTE THAT IT IS VERY IMPORTANT
THAT THIS COMMAND RETURN IMMEDIATELY\fR. That's why I
have the '&' on the end. If it doesn't return immediately then
your PCs may freeze when sending messages (they should recover
-after 30secs, hopefully).
+after 30 seconds, hopefully).
All messages are delivered as the global guest user.
The command takes the standard substitutions, although \fI %u\fR won't work (\fI%U\fR may be better
@@ -4263,7 +4353,8 @@ Example : \fBmin protocol = NT1\fR # disable DOS
clients
.TP
\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'
+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
is 6 hours (21600 seconds).
@@ -4324,7 +4415,7 @@ methods as it depends on the target host being on a locally
connected subnet.
.RE
.PP
-Default: \fBname resolve order = lmhosts wins host bcast
+Default: \fBname resolve order = lmhosts host wins bcast
\fR.PP
.PP
Example: \fBname resolve order = lmhosts bcast host
@@ -4438,7 +4529,7 @@ See also smbpasswd (5).
Default: \fBnull passwords = no\fR
.TP
\fBobey pam restrictions (G)\fR
-When Samba 2.2 is configure to enable PAM support
+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
default behavior is to use PAM for clear text authentication only
@@ -4494,7 +4585,7 @@ 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 smbd not to
+In brief it specifies a number, which causes smbdnot 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
@@ -4506,7 +4597,7 @@ AND UNDERSTOOD THE SAMBA OPLOCK CODE\fR.
Default: \fBoplock contention limit = 2\fR
.TP
\fBoplocks (S)\fR
-This boolean option tells smbd whether to
+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
the speed of access to files on Samba servers. It allows the clients
@@ -4531,7 +4622,8 @@ Default: \fBoplocks = yes\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 nmbd(8)has a chance of becoming a local master browser for the \fI WORKGROUP\fR in the local broadcast area.
+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
a local master browsing election over all Microsoft operating
@@ -4554,7 +4646,7 @@ names to OS/2 printer driver names. The format is:
name>.<device name>
For example, a valid entry using the HP LaserJet 5
-printer driver woudl appear as \fBHP LaserJet 5L = LASERJET.HP
+printer driver would appear as \fBHP LaserJet 5L = LASERJET.HP
LaserJet 5L\fR.
The need for the file is due to the printer driver namespace
@@ -4569,14 +4661,18 @@ Default: \fBos2 driver map = <empty string>
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
-changes when requested by an SMB client, and the \fIpasswd chat\fR must be
-be changed to work with the pam prompts.
+changes when requested by an SMB client instead of the program listed in
+\fIpasswd program\fR.
+It should be possible to enable this without changing your
+\fIpasswd chat\fR
+parameter for most setups.
Default: \fBpam password change = no\fR
.TP
\fBpanic action (G)\fR
This is a Samba developer option that allows a
-system command to be called when either smbd(8)crashes. This is usually used to draw attention to the fact that
+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
@@ -4586,7 +4682,7 @@ Example: \fBpanic action = "/bin/sleep 90000"\fR
\fBpasswd chat (G)\fR
This string controls the \fB"chat"\fR
conversation that takes places between smbdand the local password changing
-program to change the users password. The string describes a
+program to change the user's password. The string describes a
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
@@ -4596,37 +4692,31 @@ This chat sequence is often quite site specific, depending
on what local methods are used for password control (such as NIS
etc).
-The string can contain the macros \fI%o\fR
-and \fI%n\fR which are substituted for the old
-and new passwords respectively. It can also contain the standard
-macros \\n, \\r, \\t and %s to give line-feed,
-carriage-return, tab and space.
-
-The string can also contain a '*' which matches
-any sequence of characters.
-
+Note that this parameter only is only used if the \fIunix
+password sync\fR parameter is set to yes. This
+sequence is then called \fBAS ROOT\fR when the SMB password
+in the smbpasswd file is being changed, without access to the old
+password cleartext. This means that root must be able to reset the user's password
+without knowing the text of the previous password. In the presence of NIS/YP,
+this means that the passwd program must be
+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,
+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
in them into a single string.
If the send string in any part of the chat sequence
-is a fullstop ".", then no string is sent. Similarly,
-if the expect string is a fullstop then no string is expected.
+is a full stop ".", then no string is sent. Similarly,
+if the expect string is a full stop then no string is expected.
-Note that if the \fIunix
-password sync\fR parameter is set to true, then this
-sequence is called \fBAS ROOT\fR when the SMB password
-in the smbpasswd file is being changed, without access to the old
-password cleartext. In this case the old password cleartext is set
-to "" (the empty string).
-
-Also, if the \fIpam
-password change\fR parameter is set to true, then the
-chat sequence should consist of three elements. The first element should
-match the pam prompt for the old password, the second element should match
-the pam prompt for the first request for the new password, and the final
-element should match the pam prompt for the second request for the new password.
-These matches are done case insentively. Under most conditions this change
-is done as root so the prompt for the old password will never be matched.
+If the \fIpam
+password change\fR parameter is set to true, the chat pairs
+may be matched in any order, and sucess is determined by the PAM result,
+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.
@@ -4648,10 +4738,12 @@ 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
Samba admins debug their \fIpasswd chat\fR scripts
when calling the \fIpasswd program\fR and should
-be turned off after this has been done. This parameter is off by
-default.
+be turned off after this has been done. This option has no effect if the
+\fIpam password change\fR
+paramter is set. This parameter is off by default.
-See also <\fIpasswd chat\fR
+See also \fIpasswd chat\fR
+, \fIpam password change\fR
, \fIpasswd program\fR
\&.
@@ -4670,7 +4762,7 @@ of mixed case chars and digits. This can pose a problem as some clients
it.
\fBNote\fR that if the \fIunix
-password sync\fR parameter is set to True
+password sync\fR parameter is set to true
then this program is called \fBAS ROOT\fR
before the SMB password in the smbpasswd(5)
file is changed. If this UNIX password change fails, then
@@ -4681,7 +4773,7 @@ If the \fIunix password sync\fR parameter
is set this parameter \fBMUST USE ABSOLUTE PATHS\fR
for \fBALL\fR programs called, and must be examined
for security implications. Note that by default \fIunix
-password sync\fR is set to False.
+password sync\fR is set to false.
See also \fIunix
password sync\fR.
@@ -4842,7 +4934,8 @@ Default: \fBnone\fR
Example: \fBpath = /home/fred\fR
.TP
\fBposix locking (S)\fR
-The \fBsmbd(8)\fRdaemon maintains an database of file locks obtained by SMB clients.
+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
consistent with those seen by POSIX compliant applications accessing
@@ -4857,7 +4950,7 @@ whenever the service is disconnected. It takes the usual
substitutions. The command may be run as the root on some
systems.
-An interesting example may be do unmount server
+An interesting example may be to unmount server
resources:
\fBpostexec = /etc/umount /cdrom\fR
@@ -4872,7 +4965,7 @@ from %m (%I)\\" >> /tmp/log\fR
.TP
\fBpostscript (S)\fR
This parameter forces a printer to interpret
-the print files as postscript. This is done by adding a %!
+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
@@ -5092,11 +5185,11 @@ Default: \fBprinter admin = <empty string>\fR
Example: \fBprinter admin = admin, @staff\fR
.TP
\fBprinter driver (S)\fR
-\fBNote :\fRThis is a depreciated
+\fBNote :\fRThis is a deprecated
parameter and will be removed in the next major release
following version 2.2. Please see the instructions in
-\fIPRINTER_DRIVER2.txt\fR in the \fIdocs
-\fRof the Samba distribution for more information
+the Samba 2.2. Printing
+HOWTOfor more information
on the new method of loading printer drivers onto a Samba server.
This option allows you to control the string
@@ -5118,11 +5211,11 @@ driver file\fR.
Example: \fBprinter driver = HP LaserJet 4L\fR
.TP
\fBprinter driver file (G)\fR
-\fBNote :\fRThis is a depreciated
+\fBNote :\fRThis is a deprecated
parameter and will be removed in the next major release
following version 2.2. Please see the instructions in
-\fIPRINTER_DRIVER2.txt\fR in the \fIdocs
-\fRof the Samba distribution for more information
+the Samba 2.2. Printing
+HOWTOfor more information
on the new method of loading printer drivers onto a Samba server.
This parameter tells Samba where the printer driver
@@ -5135,7 +5228,7 @@ to be found. If this is not set, the default is :
This file is created from Windows 95 \fImsprint.inf
\fRfiles found on the Windows 95 client system. For more
details on setting up serving of printer drivers to Windows 95
-clients, see the documentation file in the \fIdocs/\fR
+clients, see the outdated documentation file in the \fIdocs/\fR
directory, \fIPRINTER_DRIVER.txt\fR.
See also \fI printer driver location\fR.
@@ -5146,11 +5239,11 @@ Example: \fBprinter driver file =
/usr/local/samba/printers/drivers.def\fR
.TP
\fBprinter driver location (S)\fR
-\fBNote :\fRThis is a depreciated
+\fBNote :\fRThis is a deprecated
parameter and will be removed in the next major release
following version 2.2. Please see the instructions in
-\fIPRINTER_DRIVER2.txt\fR in the \fIdocs
-\fRof the Samba distribution for more information
+the Samba 2.2. Printing
+HOWTOfor more information
on the new method of loading printer drivers onto a Samba server.
This parameter tells clients of a particular printer
@@ -5162,7 +5255,7 @@ to serve printer drivers to Windows 95 machines, this should be set to
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 documentation
+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.
@@ -5194,7 +5287,7 @@ default values for the \fIprint command\fR,
\fIlpq command\fR, \fIlppause command
\fR, \fIlpresume command\fR, and
\fIlprm command\fR if specified in the
-[global]f> section.
+[global] section.
Currently eight printing styles are supported. They are
BSD, AIX,
@@ -5219,17 +5312,17 @@ ok\fR.
.TP
\fBqueuepause command (S)\fR
This parameter specifies the command to be
-executed on the server host in order to pause the printerqueue.
+executed on the server host in order to pause the printer queue.
This command should be a program or script which takes
-a printer name as its only parameter and stops the printerqueue,
+a printer name as its only parameter and stops the printer queue,
such that no longer jobs are submitted to the printer.
This command is not supported by Windows for Workgroups,
-but can be issued from the Printer's window under Windows 95
+but can be issued from the Printers window under Windows 95
and NT.
-If a \fI%p\fR is given then the printername
+If a \fI%p\fR is given then the printer name
is put in its place. Otherwise it is placed at the end of the command.
Note that it is good practice to include the absolute
@@ -5242,19 +5335,19 @@ Example: \fBqueuepause command = disable %p\fR
.TP
\fBqueueresume command (S)\fR
This parameter specifies the command to be
-executed on the server host in order to resume the printerqueue. It
+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
previous parameter (\fI queuepause command\fR).
This command should be a program or script which takes
-a printer name as its only parameter and resumes the printerqueue,
+a printer name as its only parameter and resumes the printer queue,
such that queued jobs are resubmitted to the printer.
This command is not supported by Windows for Workgroups,
-but can be issued from the Printer's window under Windows 95
+but can be issued from the Printers window under Windows 95
and NT.
-If a \fI%p\fR is given then the printername
+If a \fI%p\fR is given then the printer name
is put in its place. Otherwise it is placed at the end of the
command.
@@ -5346,7 +5439,7 @@ For example:
\fBremote announce = 192.168.2.255/SERVERS
192.168.4.255/STAFF\fR
-the above line would cause nmbd to announce itself
+the above line would cause \fBnmbd\fR to announce itself
to the two given IP addresses using the given workgroup names.
If you leave out the workgroup name then the one given in
the \fIworkgroup\fR
@@ -5363,10 +5456,10 @@ Default: \fBremote announce = <empty string>
\fR.TP
\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
+synchronization of browse lists with the master browser of a Samba
server that is on a remote segment. This option will allow you to
gain browse lists for multiple workgroups across routed networks. This
-is done in a manner that does not work with any non-samba servers.
+is done in a manner that does not work with any non-Samba servers.
This is useful if you want your Samba server and all local
clients to appear in a remote workgroup for which the normal browse
@@ -5386,17 +5479,17 @@ addresses of the remote networks, but can also be the IP addresses
of known browse masters if your network config is that stable. If
a machine IP address is given Samba makes NO attempt to validate
that the remote machine is available, is listening, nor that it
-is in fact the browse master on it's segment.
+is in fact the browse master on its segment.
Default: \fBremote browse sync = <empty string>
\fR.TP
\fBrestrict acl with mask (S)\fR
This is a boolean parameter. If set to false (default), then
-Creation of files with access control lists (ACLS) and modification of ACLs
+creation of files with access control lists (ACLS) and modification of ACLs
using the Windows NT/2000 ACL editor will be applied directly to the file
or directory.
-If set to True, then all requests to set an ACL on a file will have the
+If set to true, then all requests to set an ACL on a file will have the
parameters \fIcreate mask\fR,
\fIforce create mode\fR
applied before setting the ACL, and all requests to set an ACL on a directory will
@@ -5427,8 +5520,8 @@ and this is a way to work around that.
When restrict anonymous is true, all anonymous connections
are denied no matter what they are for. This can effect the ability
-of a machine to access the samba Primary Domain Controller to revalidate
-it's machine account after someone else has logged on the client
+of a machine to access the Samba Primary Domain Controller to revalidate
+its machine account after someone else has logged on the client
interactively. The NT client will display a message saying that
the machine's account in the domain doesn't exist or the password is
bad. The best way to deal with this is to reboot NT client machines
@@ -5445,7 +5538,7 @@ Synonym for \fIroot directory"\fR.
.TP
\fBroot directory (G)\fR
The server will \fBchroot()\fR (i.e.
-Change it's root directory) to this directory on startup. This is
+Change its root directory) to this directory on startup. This is
not strictly necessary for secure operation. Even without it the
server will deny access to files not in one of the service entries.
It may also check for, and deny access to, soft links to other
@@ -5474,7 +5567,7 @@ Example: \fBroot directory = /homes/smb\fR
This is the same as the \fIpostexec\fR
parameter except that the command is run as root. This
is useful for unmounting filesystems
-(such as cdroms) after a connection is closed.
+(such as CDROMs) after a connection is closed.
See also \fI postexec\fR.
@@ -5483,8 +5576,8 @@ Default: \fBroot postexec = <empty string>
\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) after a
-connection is closed.
+is useful for mounting filesystems (such as CDROMs) when a
+connection is opened.
See also \fI preexec\fR and \fIpreexec close\fR.
@@ -5547,7 +5640,7 @@ The different settings will now be explained.
\fBSECURITY = SHARE
\fR
-When clients connect to a share level security server then
+When clients connect to a share level security server they
need not log onto the server with a valid username and password before
attempting to connect to a shared resource (although modern clients
such as Windows 95/98 and Windows NT will send a logon request with
@@ -5616,7 +5709,7 @@ be used in granting access.
See also the section NOTE ABOUT USERNAME/PASSWORD VALIDATION.
.PP
.PP
-\fBSECURIYT = USER
+\fBSECURITY = USER
\fR.PP
.PP
This is the default security setting in Samba 2.2.
@@ -5654,7 +5747,7 @@ documentation file in the \fIdocs/\fR directory
up.
.PP
.PP
-\fBNote\fR that from the clients point of
+\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.
@@ -5693,7 +5786,7 @@ exist as well as the account on the Domain Controller to allow
Samba to have a valid UNIX account to map file access to.
.PP
.PP
-\fBNote\fR that from the clients point
+\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.
@@ -5791,29 +5884,6 @@ for details.
Default: \fBset directory = no\fR
.TP
-\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
-to a file.
-
-These open modes are not directly supported by UNIX, so
-they are simulated using shared memory, or lock files if your
-UNIX doesn't support shared memory (almost all do).
-
-The share modes that are enabled by this option are
-DENY_DOS, DENY_ALL,
-DENY_READ, DENY_WRITE,
-DENY_NONE and DENY_FCB.
-
-This option gives full share compatibility and enabled
-by default.
-
-You should \fBNEVER\fR turn this parameter
-off as many Windows applications will break if you do so.
-
-Default: \fBshare modes = yes\fR
-.TP
\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
@@ -5840,7 +5910,7 @@ open a handle on the printer server with OpenPrinterEx() asking for
Administrator privileges. If the user does not have administrative
access on the print server (i.e is not root or a member of the
\fIprinter admin\fR group), the OpenPrinterEx()
-call fails and the clients another open call with a request for
+call fails and the client makes another open call with a request for
a lower privilege level. This should succeed, however the APW
icon will not be displayed.
@@ -5854,6 +5924,53 @@ command\fR, \fIdeleteprinter command\fR, \fIprinter admin\fR
Default :\fBshow add printer wizard = yes\fR
.TP
+\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)\fRthat
+should start a shutdown procedure.
+
+This command will be run as the user connected to the
+server.
+
+%m %t %r %f parameters are expanded
+
+\fI%m\fR will be substituted with the
+shutdown message sent to the server.
+
+\fI%t\fR will be substituted with the
+number of seconds to wait before effectively starting the
+shutdown procedure.
+
+\fI%r\fR will be substituted with the
+switch \fB-r\fR. It means reboot after shutdown
+for NT.
+
+\fI%f\fR will be substituted with the
+switch \fB-f\fR. It means force the shutdown
+even if applications do not respond for NT.
+
+Default: \fBNone\fR.
+
+Example: \fBabort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f\fR
+
+Shutdown script example:
+.sp
+.nf
+ #!/bin/bash
+
+ $time=0
+ let "time/60"
+ let "time++"
+
+ /sbin/shutdown $3 $4 +$time $1 &
+
+.sp
+.fi
+Shutdown does not return so we need to launch it in background.
+
+See also \fIabort shutdown script\fR.
+.TP
\fBsmb passwd file (G)\fR
This option sets the path to the encrypted
smbpasswd file. By default the path to the smbpasswd file
@@ -5869,7 +5986,7 @@ address Samba will listen for connections on. This is used to
support multiple virtual interfaces on the one server, each
with a different configuration.
-By default samba will accept connections on any
+By default Samba will accept connections on any
address.
Example: \fBsocket address = 192.168.2.20\fR
@@ -6006,8 +6123,8 @@ this code is \fBNOT\fR enabled by default in any
current binary version of Samba.
This variable enables or disables the entire SSL mode. If
-it is set to no, the SSL enabled samba behaves
-exactly like the non-SSL samba. If set to yes,
+it is set to no, the SSL-enabled Samba behaves
+exactly like the non-SSL Samba. If set to yes,
it depends on the variables \fI ssl hosts\fR and \fIssl hosts resign\fR whether an SSL
connection will be required.
@@ -6025,7 +6142,7 @@ current binary version of Samba.
This variable defines where to look up the Certification
Authorities. The given directory should contain one file for
-each CA that samba will trust. The file name must be the hash
+each CA that Samba will trust. The file name must be the hash
value over the "Distinguished Name" of the CA. How this directory
is set up is explained later in this document. All files within the
directory that don't fit into this naming scheme are ignored. You
@@ -6128,12 +6245,12 @@ given at configure time.
this code is \fBNOT\fR enabled by default in any
current binary version of Samba.
-These two variables define whether samba will go
-into SSL mode or not. If none of them is defined, samba will
+These two variables define whether Samba will go
+into SSL mode or not. If none of them is defined, Samba will
allow only SSL connections. If the \fIssl hosts\fR variable lists
hosts (by IP-address, IP-address range, net group or name),
only these hosts will be forced into SSL mode. If the \fI ssl hosts resign\fR variable lists hosts, only these
-hosts will NOT be forced into SSL mode. The syntax for these two
+hosts will \fBNOT\fR be forced into SSL mode. The syntax for these two
variables is the same as for the \fI hosts allow\fR and \fIhosts deny\fR pair of variables, only
that the subject of the decision is different: It's not the access
right but whether SSL is used or not.
@@ -6262,7 +6379,8 @@ Default: \fBstat cache size = 50\fR
.TP
\fBstatus (G)\fR
This enables or disables logging of connections
-to a status file that smbstatus(1)can read.
+to a status file that smbstatus(1)
+can read.
With this disabled \fBsmbstatus\fR won't be able
to tell you what connections are active. You should never need to
@@ -6279,7 +6397,7 @@ deny access if locks exist. This can be slow on some systems.
When strict locking is no the server does file
lock checks only when the client explicitly asks for them.
-Well behaved clients always ask for lock checks when it
+Well-behaved clients always ask for lock checks when it
is important, so in the vast majority of cases \fBstrict
locking = no\fR is preferable.
@@ -6293,7 +6411,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 smbd ignores the Windows applications requests for
+default) means that smbdignores 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
@@ -6351,9 +6469,6 @@ the debug log files.
Default: \fBsyslog only = no\fR
.TP
\fBtemplate homedir (G)\fR
-\fBNOTE:\fR this parameter is
-only available in Samba 3.0.
-
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.
@@ -6365,9 +6480,6 @@ NT user name.
Default: \fBtemplate homedir = /home/%D/%U\fR
.TP
\fBtemplate shell (G)\fR
-\fBNOTE:\fR this parameter is
-only available in Samba 3.0.
-
When filling out the user information for a Windows NT
user, the winbindd(8)daemon
uses this parameter to fill in the login shell for that user.
@@ -6398,7 +6510,7 @@ Synonym for \fI debug timestamp\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 smbd will return an
+by a client which will exceed this number, then smbdwill 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
@@ -6416,7 +6528,7 @@ when the encrypted SMB password in the smbpasswd file is changed.
If this is set to true the program specified in the \fIpasswd
program\fRparameter is called \fBAS ROOT\fR -
to allow the new UNIX password to be set without access to the
-old UNIX password (as the SMB password has change code has no
+old UNIX password (as the SMB password change code has no
access to the old password cleartext, only the new).
See also \fIpasswd
@@ -6450,9 +6562,41 @@ password in order to connect correctly, and to update their hashed
Default: \fBupdate encrypted = no\fR
.TP
+\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
+a valid printer driver on the Samba host, the client will be required
+to install a local printer driver. From this point on, the client
+will treat the print as a local printer and not a network printer
+connection. This is much the same behavior that will occur
+when \fBdisable spoolss = yes\fR.
+
+The differentiating
+factor is that under normal circumstances, the NT/2000 client will
+attempt to open the network printer using MS-RPC. The problem is that
+because the client considers the printer to be local, it will attempt
+to issue the OpenPrinterEx() call requesting access rights associated
+with the logged on user. If the user possesses local administator rights
+but not root privilegde on the Samba host (often the case), the OpenPrinterEx()
+call will fail. The result is that the client will now display an "Access
+Denied; Unable to connect" message in the printer queue window (even though
+jobs may successfully be printed).
+
+If this parameter is enabled for a printer, then any attempt
+to open the printer with the PRINTER_ACCESS_ADMINISTER right is mapped
+to PRINTER_ACCESS_USE instead. Thus allowing the OpenPrinterEx()
+call to succeed. \fBThis parameter MUST not be able enabled
+on a print share which has valid print driver installed on the Samba
+server.\fR
+
+See also disable spoolss
+
+Default: \fBuse client driver = no\fR
+.TP
\fBuse rhosts (G)\fR
-If this global parameter is a true, it specifies
-that the UNIX users \fI.rhosts\fR file in their home directory
+If this global parameter is true, 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.
@@ -6502,7 +6646,7 @@ can use the \fIvalid users
\fRparameter.
If any of the usernames begin with a '@' then the name
-will be looked up first in the yp netgroups list (if Samba
+will be looked up first in the NIS netgroups list (if Samba
is compiled with netgroup support), followed by a lookup in
the UNIX groups database and will expand to a list of all users
in the group of that name.
@@ -6512,7 +6656,7 @@ 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
-will be looked up only in the yp netgroups database (if Samba
+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.
@@ -6636,9 +6780,9 @@ Default: \fBno username map\fR
Example: \fBusername map = /usr/local/samba/lib/users.map
\fR.TP
-\fButmp (S)\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 True then Samba will attempt
+Samba has been configured and compiled with the option \fB --with-utmp\fR. If set to true then Samba will attempt
to add utmp or utmpx records (depending on the UNIX system) whenever a
connection is made to a Samba server. Sites may use this to record the
user connecting to a Samba share.
@@ -6760,12 +6904,12 @@ the \fIdelete veto files\fR parameter to
Setting this parameter will affect the performance
of Samba, as it will be forced to check all files and directories
for a match as they are scanned.
-.PP
+
See also \fIhide files
\fRand \fI case sensitive\fR.
-.PP
+
Default: \fBNo files or directories are vetoed.
-\fR.PP
+\fR
Examples:
.sp
.nf
@@ -6813,7 +6957,7 @@ Default : \fBno value\fR
.TP
\fBvfs options (S)\fR
This parameter allows parameters to be passed
-to the vfs layer at initialisation time. The Samba VFS layer
+to the vfs layer at initialization time. The Samba VFS layer
is new to Samba 2.2 and must be enabled at compile time
with --with-vfs. See also \fI vfs object\fR.
@@ -6840,9 +6984,6 @@ that Samba has to do in order to perform the link checks.
Default: \fBwide links = yes\fR
.TP
\fBwinbind cache time\fR
-\fBNOTE:\fR this parameter is only
-available in Samba 3.0.
-
This parameter specifies the number of seconds the
winbindd(8)daemon will cache
user and group information before querying a Windows NT server
@@ -6850,13 +6991,45 @@ again.
Default: \fBwinbind cache type = 15\fR
.TP
+\fBwinbind enum users\fR
+On large installations using
+winbindd(8)it may be
+necessary to suppress the enumeration of users through the
+\fBsetpwent()\fR,
+\fBgetpwent()\fR and
+\fBendpwent()\fR group of system calls. If
+the \fIwinbind enum users\fR parameter is
+false, calls to the \fBgetpwent\fR system call
+will not return any data.
+
+\fBWarning:\fR Turning off user
+enumeration may cause some programs to behave oddly. For
+example, the finger program relies on having access to the
+full user list when searching for matching
+usernames.
+
+Default: \fBwinbind enum users = yes \fR
+.TP
+\fBwinbind enum groups\fR
+On large installations using
+winbindd(8)it may be
+necessary to suppress the enumeration of groups through the
+\fBsetgrent()\fR,
+\fBgetgrent()\fR and
+\fBendgrent()\fR group of system calls. If
+the \fIwinbind enum groups\fR parameter is
+false, calls to the \fBgetgrent()\fR system
+call will not return any data.
+
+\fBWarning:\fR Turning off group
+enumeration may cause some programs to behave oddly.
+
+Default: \fBwinbind enum groups = no \fR
+.TP
\fBwinbind gid\fR
-\fBNOTE:\fR this parameter is only
-available in Samba 3.0.
-
The winbind gid parameter specifies the range of group
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
+existing local or NIS groups within it as strange conflicts can
occur otherwise.
Default: \fBwinbind gid = <empty string>
@@ -6864,9 +7037,6 @@ Default: \fBwinbind gid = <empty string>
Example: \fBwinbind gid = 10000-20000\fR
.TP
\fBwinbind separator\fR
-\fBNOTE:\fR this parameter is only
-available in Samba 3.0.
-
This parameter allows an admin to define the character
used when listing a username of the form of \fIDOMAIN
\fR\\\fIuser\fR. This parameter
@@ -6878,12 +7048,9 @@ Example: \fBwinbind separator = \\\fR
Example: \fBwinbind separator = +\fR
.TP
\fBwinbind uid\fR
-\fBNOTE:\fR this parameter is only
-available in Samba 3.0.
-
The winbind gid parameter specifies the range of group
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
+existing local or NIS users within it as strange conflicts can
occur otherwise.
Default: \fBwinbind uid = <empty string>
@@ -6912,13 +7079,13 @@ name has not previously been added, in that case it should be treated
as an add.
.TP 0.2i
\(bu
-The second argument is the netbios name. If the
+The second argument is the NetBIOS name. If the
name is not a legal name then the wins hook is not called.
Legal names contain only letters, digits, hyphens, underscores
and periods.
.TP 0.2i
\(bu
-The third argument is the netbios name
+The third argument is the NetBIOS name
type as a 2 digit hexadecimal number.
.TP 0.2i
\(bu
@@ -6967,7 +7134,7 @@ This boolean controls if the
nmbd(8)process in Samba will act as a WINS server. You should
not set this to true 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 true
+Note that you should \fBNEVER\fR set this to true
on more than one machine in your network.
Default: \fBwins support = no\fR
@@ -6997,7 +7164,7 @@ Reads for the file are also served from this cache if the data is stored
within it.
This cache allows Samba to batch client writes into a more
-efficient write size for RAID disks (ie. writes may be tuned to
+efficient write size for RAID disks (i.e. writes may be tuned to
be the RAID stripe size) and can improve performance on systems
where the disk subsystem is a bottleneck but there is free
memory for userspace programs.
@@ -7033,7 +7200,7 @@ Synonym for \fI writeable\fR.
.TP
\fBwrite raw (G)\fR
This parameter controls whether or not the server
-will support raw writes SMB's when transferring data from clients.
+will support raw write SMB's when transferring data from clients.
You should never need to change this parameter.
Default: \fBwrite raw = yes\fR
@@ -7083,7 +7250,8 @@ samba(7),
\fBsmbclient(1)\fR,
\fBnmblookup(1)\fR,
\fBtestparm(1)\fR,
-\fBtestprns(1)\fR.SH "AUTHOR"
+\fBtestprns(1)\fR
+.SH "AUTHOR"
.PP
The original Samba software and related utilities
were created by Andrew Tridgell. Samba is now developed