Added fixes for become_user braindamage.
[kai/samba.git] / docs / manpages / smb.conf.5
index fc29f1b3ec528dd69c75b63cd48c94e0df5c8a9b..9b8dfd3f280d355725ebf17175993e187408cf05 100644 (file)
@@ -321,8 +321,18 @@ case, while short names are lowered. Default no.
 Here is a list of all global parameters. See the section of each
 parameter for details.  Note that some are synonyms.
 
+announce as
+
+announce version
+
 auto services
 
+browse list
+
+character set
+
+client code page
+
 config file
 
 deadtime
@@ -335,12 +345,22 @@ default service
 
 dfree command
 
+dns proxy
+
+domain controller
+
+domain logons
+
 domain master
 
 encrypt passwords
 
 getwd cache
 
+hide files
+
+hide dot files
+
 homedir map
 
 hosts equiv
@@ -353,28 +373,38 @@ lock dir
 
 load printers
 
+local master
+
 lock directory
 
 log file
 
 log level
 
-logon script
-
 logon path
 
+logon script
+
 lpq cache time
 
 mangled stack
 
 max log size
 
+max mux
+
 max packet
 
+max ttl
+
 max xmit
 
 message command
 
+netbios aliases
+
+netbios name
+
 nis homedir
 
 null passwords
@@ -421,6 +451,12 @@ security
 
 server string
 
+shared file entries
+
+shared mem size
+
+smb passwd file
+
 smbrun
 
 socket address
@@ -431,16 +467,26 @@ status
 
 strip dot
 
+syslog
+
+syslog only
+
 time offset
 
+time server
+
 unix realname
 
+username level
+
 username map
 
 use rhosts
 
 valid chars
 
+veto files
+
 workgroup
 
 write raw
@@ -476,6 +522,8 @@ default case
 
 delete readonly
 
+delete veto files
+
 deny hosts
 
 directory
@@ -490,6 +538,12 @@ exec
 
 fake oplocks
 
+follow symlinks
+
+force create mode
+
+force directory mode
+
 force group
 
 force user
@@ -542,6 +596,8 @@ only guest
 
 only user
 
+oplocks
+
 path
 
 postexec
@@ -607,7 +663,7 @@ write list
 .SS EXPLANATION OF EACH PARAMETER
 .RS 3
 
-.SS admin users (G)
+.SS admin users (S)
 
 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
@@ -623,6 +679,35 @@ file permissions.
 .B Example:
        admin users = jason
 
+.SS announce as (G)
+
+This specifies what type of server nmbd will announce itself as in
+browse lists. By default this is set to Windows NT. The valid options
+are "NT", "Win95" or "WfW" meaining Windows NT, Windows 95 and
+Windows for Workgroups respectively. Do not change this parameter
+unless you have a specific need to stop Samba appearing as an NT
+server as this may prevent Samba servers from participating as
+browser servers correctly.
+
+.B Default:
+    announce as = NT
+
+.B Example
+    announce as = Win95
+
+.SS announce version (G)
+
+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.
+
+.B Default:
+   announce version = 4.2
+
+.B Example:
+   announce version = 2.0
+
 .SS auto services (G)
 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
@@ -641,10 +726,11 @@ then the "load printers" option is easier.
 A synonym for this parameter is 'hosts allow'.
 
 This parameter is a comma delimited set of hosts which are permitted to access
-a services. If specified in the [global] section, matching hosts will be
-allowed access to any service that does not specifically exclude them from
-access. Specific services my have their own list, which override those
-specified in the [global] section.
+a service. 
+
+If specified in the [global] section then it will apply to all
+services, regardless of whether the individual service has a different
+setting. 
 
 You can specify the hosts by name or IP number. For example, you could
 restrict access to only the hosts on a Class C subnet with something like
@@ -725,16 +811,71 @@ shares in a net view and in the browse list.
 
 .B Example: 
        browseable = No
+.SS browse list(G)
+This controls whether the smbd will serve a browse list to a client
+doing a NetServerEnum call. Normally set to true. You should never
+need to change this.
+
+.B Default:
+       browse list = Yes
+
 .SS case sensitive (G)
 See the discussion on NAME MANGLING.
 
 .SS case sig names (G)
 See "case sensitive"
 
+.SS character set (G)
+This allows a smbd to map incoming characters from a DOS 850 Code page
+to either a Western European (ISO8859-1) or Easter European (ISO8859-2)
+code page. Normally not set, meaning no filename translation is done.
+
+.B Default
+
+       character set =
+
+.B Example
+
+       character set = iso8859-1
+
+.SS client code page (G)
+Currently (Samba 1.9.17 and above) this may be set to one of two
+values, 850 or 437. It specifies the base DOS code page that the
+clients accessing Samba are using. To determine this, open a DOS
+command prompt and type the command "chcp". This will output 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 co-operates with the "valid chars" parameter in
+determining what characters are valid in filenames and how
+capitalization is done. It has been added as a convenience for
+clients whose code page is either 437 or 850 so a convoluted
+"valid chars" string does not have to be determined. If you
+set both this parameter and the "valid chars" parameter the 
+"client code page" parameter MUST be set before the "valid chars"
+in the smb.conf file. The "valid chars" string will then augment
+the character settings in the "client code page" parameter.
+
+If "client code page" is set to a value other than 850 or 437
+it will default to 850.
+
+See also : "valid chars".
+
+.B Default
+
+       client code page = 850
+
+.B Example
+
+       client code page = 437
+
 .SS comment (S)
-This is a text field that is seen when a client does a net view to
-list what shares are available. It will also be used when browsing is
-fully supported.
+This is a text field that is seen next to a share when a client does a
+net view to list what shares are available.
+
+If you want to set the string that is displayed next to the machine
+name then see the server string command.
 
 .B Default:
        No comment string
@@ -778,20 +919,37 @@ in the configuration file than the service doing the copying.
 .SS create mask (S)
 A synonym for this parameter is 'create mode'.
 
-This parameter is the octal modes which are used when converting DOS modes 
-to UNIX modes.
+When a file is created, the neccessary permissions are calculated
+according to the mapping from DOS modes to UNIX permissions, and
+the resulting UNIX mode is then bit-wise 'AND'ed with this parameter.
+This parameter may be thought of as a bit-wise MASK for the UNIX
+modes of a file. Any bit *not* set here will be removed from the
+modes set on a file when it is created.
+
+The default value of this parameter removes the 'group' and 'other' 
+write and execute bits from the UNIX modes.
+
+Following this Samba will bit-wise 'OR' the UNIX mode created from
+this parameter with the value of the "force create mode" parameter 
+which is set to 000 by default.
 
-Note that Samba will or this value with 0700 as you must have at least
-user read, write and execute for Samba to work properly.
+For Samba 1.9.17 and above this parameter no longer affects directory
+modes. See the parameter 'directory mode' for details.
+
+See also the "force create mode" parameter for forcing particular
+mode bits to be set on created files.
+See also the "directory mode" parameter for masking mode bits on created
+directories.
 
 .B Default:
-       create mask = 0644
+       create mask = 0744
 
 .B Example:
        create mask = 0775
 .SS create mode (S)
 See
 .B create mask.
+
 .SS dead time (G)
 The value of the parameter (a decimal integer) represents the number of
 minutes of inactivity before a connection is considered dead, and it
@@ -886,6 +1044,34 @@ override this one. Where the lists conflict, the 'allow' list takes precedence.
 
 .B Example:
        deny hosts = 150.203.4. badhost.mynet.edu.au
+
+.SS delete veto files (S)
+
+This option is used when Samba is attempting to delete a directory
+that contains one or more vetoed directories (see the 'veto files' 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 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 directories
+you might normally veto DOS/Windows users from seeing (eg. .AppleDouble)
+
+Setting 'delete veto files = True' allows these directories to be 
+transparently deleted when the parent directory is deleted (so long
+as the user has permissions to do so).
+
+.B Default:
+    delete veto files = False
+
+.B Example:
+    delete veto files = True
+
+See
+.B veto files
+
 .SS dfree command (G)
 The dfree command setting should only be used on systems where a
 problem occurs with the internal disk space calculations. This has
@@ -941,8 +1127,26 @@ A synonym for this parameter is 'directory mode'.
 This parameter is the octal modes which are used when converting DOS modes 
 to UNIX modes when creating UNIX directories.
 
-Note that Samba will bit-wise 'OR' this value with 0700 as you must have at
-least user read, write and execute for Samba to work properly.
+When a directory is created, the neccessary permissions are calculated
+according to the mapping from DOS modes to UNIX permissions, and
+the resulting UNIX mode is then bit-wise 'AND'ed with this parameter.
+This parameter may be thought of as a bit-wise MASK for the UNIX
+modes of a directory. Any bit *not* set here will be removed from the
+modes set on a directory when it is created.
+
+The default value of this parameter removes the 'group' and 'other'
+write bits from the UNIX mode, allowing only the user who owns the
+directory to modify it.
+
+Following this Samba will bit-wise 'OR' the UNIX mode created from
+this parameter with the value of the "force directory mode" parameter. 
+This parameter is set to 000 by default (ie. no extra mode bits are added).
+
+See the "force directory mode" parameter to cause particular mode
+bits to always be set on created directories.
+
+See also the "create mode" parameter for masking mode bits on created
+files.
 
 .B Default:
        directory mask = 0755
@@ -952,6 +1156,42 @@ least user read, write and execute for Samba to work properly.
 .SS directory mode (S)
 See
 .B directory mask.
+
+.SS dns proxy (G)
+
+Specifies that nmbd should (as a WINS server), on finding that a NetBIOS
+name has not been registered, treat the NetBIOS name word-for-word as
+a DNS name.
+
+Note that the maximum length for a NetBIOS name is 15
+characters, so the DNS name (or DNS alias) can likewise only be 15
+characters, maximum.
+
+Note also that nmbd will block completely until the DNS name is resolved.
+This will result in temporary loss of browsing and WINS services.
+Enable this option only if you are certain that DNS resolution is fast,
+or you can live with the consequences of periodic pauses in nmbd service.
+
+.B Default:
+        dns proxy = yes
+
+.SS domain controller (G)
+
+Specifies the DNS name or IP address of the machine to refer domain 
+logons from Win95 machines to. You should never need to set this parameter.
+
+.B Default:
+        domain controller = no
+
+.SS domain logons (G)
+
+If set to true, the Samba server will serve Windows 95 domain logons
+for the workgroup it is in. For more details on setting up this feature
+see the file DOMAINS.txt in the Samba source documentation directory.
+
+.B Default:
+        domain logons = no
+
 .SS domain master (G)
 
 Enable WAN-wide browse list collation.  Local master browsers on 
@@ -991,6 +1231,86 @@ defaults to no.
 
 This is an alias for preexec
 
+.SS fake oplocks (S)
+
+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 that it is the
+only one accessing the file and it will aggressively cache file
+data. With some oplock types the client may even cache file open/close
+operations. This can give enormous performance benefits.
+
+When you set "fake oplocks = yes" Samba will always grant oplock
+requests no matter how many clients are using the file. 
+
+By enabling this option on all read-only shares or shares that you know
+will only be accessed from one client at a time you will see a big
+performance improvement on many operations. If you enable this option
+on shares where multiple clients may be accessing the files read-write
+at the same time you can get data corruption. Use this option
+carefully! 
+
+It is generally much better to use the real oplock support except for
+physically read-only media such as CDROMs.
+
+This option is disabled by default.
+
+.SS follow symlinks (S)
+
+This parameter allows the Samba administrator to stop smbd 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 symbolic
+link to /etc/pasword in their home directory for instance.
+However it will slow filename lookups down slightly.
+
+This option is enabled (ie. smbd will follow symbolic links)
+by default.
+
+.SS force create mode (S)
+This parameter specifies a set of UNIX mode bit permissions that
+will *always* be set on a file created by Samba. This is done
+by bitwise 'OR'ing these bits onto the mode bits of a file that
+is being created. The default for this parameter is (in octel)
+000. The modes in this parameter are bitwise 'OR'ed onto the
+file mode after the mask set in the "create mask" parameter
+is applied.
+
+See also the parameter "create mask" for details on masking mode
+bits on created files.
+
+.B Default:
+       force create mode = 000
+
+.B Example:
+       force create mode = 0755
+
+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'.
+
+.SS force directory mode (S)
+This parameter specifies a set of UNIX mode bit permissions that
+will *always* be set on a directory created by Samba. This is done
+by bitwise 'OR'ing these bits onto the mode bits of a directory that
+is being created. The default for this parameter is (in octel)
+0000 which will not add any extra permission bits to a created
+directory. This operation is done after the mode mask in the parameter 
+"directory mask" is applied.
+
+See also the parameter "directory mask" for details on masking mode
+bits on created directories.
+
+.B Default:
+       force directory mode = 000
+
+.B Example:
+       force directory mode = 0755
+
+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'.
 
 .SS force group (S)
 This specifies a group name that all connections to this service
@@ -1019,6 +1339,21 @@ password. Once connected, all file operations will be performed as the
 .B Example:
        force user = auser
 
+.SS getwd cache (G)
+This is a tuning option. When this is enabled a cacheing algorithm will
+be used to reduce the time taken for getwd() calls. This can have a
+significant impact on performance, especially when widelinks is False.
+
+.B Default:
+       getwd cache = No
+
+.B Example:
+       getwd cache = Yes
+
+.SS group (S)
+This is an alias for "force group" and is only kept for compatibility
+with old versions of Samba. It may be removed in future versions.
+
 .SS guest account (S)
 This is a username which will be used for access to services which are
 specified as 'guest ok' (see below). Whatever privileges this user has
@@ -1041,16 +1376,6 @@ differently for each service.
 
 .B Example:
        guest account = nobody
-.SS getwd cache (G)
-This is a tuning option. When this is enabled a cacheing algorithm will
-be used to reduce the time taken for getwd() calls. This can have a
-significant impact on performance, especially when widelinks is False.
-
-.B Default:
-       getwd cache = No
-
-.B Example:
-       getwd cache = Yes
 .SS guest ok (S)
 See
 .B public.
@@ -1076,6 +1401,39 @@ a dot appear as hidden files.
 
 .B Example:
        hide dot files = no
+
+
+.SS hide files(S)
+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.
+
+Each entry in the list must be separated by a "/", which allows spaces
+to be included in the entry.  '*' and '?' can be used to specify multiple 
+files or directories as in DOS wildcards.
+
+Each entry must be a unix path, not a DOS path and must not include the 
+unix directory separator "/".
+
+Note that the case sensitivity option is applicable in hiding files.
+
+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.
+
+See also "hide dot files", "veto files" and "case sensitive"
+
+.B Default
+       No files or directories are hidden by this option (dot files are
+    hidden by default because of the "hide dot files" option).
+
+.B Example
+       hide files = /.*/DesktopFolderDB/TrashFor%m/resource.frk/
+
+The above example is based on files that the Macintosh client (DAVE)
+creates for internal use, and also still hides all files beginning with
+a dot.
+
 .SS homedir map (G)
 If "nis homedir" is true, this parameter specifies the NIS (or YP) map
 from which the server for the user's home directory should be extracted.
@@ -1106,10 +1464,6 @@ See
 See
 .B deny hosts.
 
-.SS group (S)
-This is an alias for "force group" and is only kept for compatibility
-with old versions of Samba. It may be removed in future versions.
-
 .SS hosts equiv (G)
 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
@@ -1133,6 +1487,13 @@ or perhaps on a home network where you trust your wife and kids :-)
 .B Example
        hosts equiv = /etc/hosts.equiv
 
+.SS include (G)
+
+This allows you to include one config file inside another.  The file is
+included literally, as though typed in place.
+
+It takes the standard substitutions, except %u, %P and %S
+
 .SS interfaces (G)
 
 This option allows you to setup multiple network interfaces, so that
@@ -1176,13 +1537,6 @@ See also "valid users"
 .B Example
        invalid users = root fred admin @wheel
 
-.SS include (G)
-
-This allows you to include one config file inside another.  The file is
-included literally, as though typed in place.
-
-It takes the standard substitutions, except %u, %P and %S
-
 .SS keep alive (G)
 The value of the parameter (an integer) represents the number of seconds 
 between 'keepalive' packets. If this parameter is zero, no keepalive packets
@@ -1204,13 +1558,24 @@ A boolean variable that controls whether all printers in the printcap
 will be loaded for browsing by default. 
 
 .B Default:
-       load printers = no
+       load printers = yes
 
 .B Example:
-       load printers = yes
+       load printers = no
+
+.SS local master (G)
+This option allows the nmbd to become a local master browser on a
+subnet. If set to False then nmbd 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 become the local master browser on a subnet, just 
+that the nmbd will participate in elections for local master browser.
+
+.B Default:
+       local master = yes
 
 .SS lock directory (G)
-This options specifies the directory where lock files will be placed.
+This option specifies the directory where lock files will be placed.
 The lock files are used to implement the "max connections" option.
 
 .B Default:
@@ -1253,6 +1618,38 @@ separate log files for each user or machine.
 .SS log level (G)
 see "debug level"
 
+.SS logon path (G)
+
+This parameter specifies the home directory where roaming profiles 
+(USER.DAT / USER.MAN files for Windows 95) are stored.
+
+This option takes the standard substitutions, allowing you to have
+separate logon scripts for each user or machine.  It also specifies
+the directory from which the "desktop", "start menu", "nethood" and
+"programs" folders, and their contents, are loaded and displayed
+on your Windows 95 client.
+
+The share and the path must be readable by the user for the preferences
+and directories to be loaded onto the Windows 95 client.  The share
+must be writeable when the logs in for the first time, in order that
+the Windows 95 client can create the user.dat and other directories.
+
+Thereafter, the directories and any of contents can, if required,
+be made read-only.  It is not adviseable that the USER.DAT file be made
+read-only - rename it to USER.MAN to achieve the desired effect
+(a MANdatory profile).
+
+Windows clients can sometimes maintain a connection to the [homes]
+share, even though there is no user logged in.  Therefore, it is
+vital that the logon path does not include a reference to the
+homes share (i.e \\\\%L\\HOMES\profile_path will cause problems).
+
+.B Default:
+       logon path = \\\\%L\\%U\\profile
+
+.B Example:
+       logon path = \\\\PROFILESERVER\\HOME_DIR\\%U\\PROFILE
+
 .SS logon script (G)
 
 This parameter specifies the batch file (.bat) or NT command file (.cmd)
@@ -1284,33 +1681,6 @@ separate logon scripts for each user or machine.
 .B Example:
        logon script = scripts/%U.bat
 
-.SS logon path (G)
-
-This parameter specifies the home directory where roaming profiles 
-(USER.DAT / USER.MAN files) are stored.
-
-This option takes the standard substitutions, allowing you to have
-separate logon scripts for each user or machine.  It also specifies
-the directory from which the "desktop", "start menu", "nethood" and
-"programs" folders, and their contents, are loaded and displayed
-on your Windows 95 client.
-
-The share and the path must be readable by the user for the preferences
-and directories to be loaded onto the Windows 95 client.  The share
-must be writeable when the logs in for the first time, in order that
-the Windows 95 client can create the user.dat and other directories.
-
-Thereafter, the directories and any of contents can, if required,
-be made read-only.  It is not adviseable that the USER.DAT file be made
-read-only - rename it to USER.MAN to achieve the desired effect
-(a MANdatory profile).
-
-.B Default:
-       logon path = \\\\%L\\%U 
-
-.B Example:
-       logon path = \\\\PROFILESERVER\\HOME_DIR\\%U
-
 .SS lppause command (S)
 This parameter specifies the command to be executed on the server host in
 order to stop printing or spooling a specific print job.
@@ -1477,6 +1847,11 @@ Magic scripts are EXPERIMENTAL and should NOT be relied upon.
 
 .B Example:
        magic script = user.csh
+
+.SS mangle case (S)
+
+See the section on "NAME MANGLING"
+
 .SS mangled map (S)
 This is for those who want to directly map UNIX file names which are
 not representable on DOS.  The mangling of names is not always what is
@@ -1499,10 +1874,6 @@ use a map of (*;1 *)
 .B Example:
        mangled map = (*;1 *)
 
-.SS mangle case (S)
-
-See the section on "NAME MANGLING"
-
 .SS mangled names (S)
 This controls whether non-DOS names under UNIX should be mapped to
 DOS-compatible names ("mangled") and made visible, or whether non-DOS names
@@ -1565,55 +1936,6 @@ software. Use this option to set it to whatever you prefer.
 .B Example:
        mangling char = ^
 
-.SS max disk size (G)
-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 size.
-
-Note that this option does not limit the amount of data you can put on
-the disk. In the above case you could still store much more than 100
-MB on the disk, but if a client ever asks for the amount of free disk
-space or the total disk size then the result will be bounded by the
-amount specified in "max disk size".
-
-This option is primarily useful to work around bugs in some pieces of
-software that can't handle very large disks, particularly disks over
-1GB in size.
-
-A "max disk size" of 0 means no limit.
-
-.B Default:
-       max disk size = 0
-
-.B Example:
-       max disk size = 1000
-.SS max log size (G)
-
-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 a .old extension.
-
-A size of 0 means no limit.
-
-.B Default:
-       max log size = 5000
-
-.B Example:
-       max log size = 1000
-
-.SS max xmit (G)
-
-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 with a smaller value. A value
-below 2048 is likely to cause problems.
-
-.B Default:
-       max xmit = 65535
-
-.B Example:
-       max xmit = 8192
-
 .SS mangled stack (G)
 This parameter controls the number of mangled names that should be cached in
 the Samba server.
@@ -1637,93 +1959,133 @@ be prepared for some surprises!
        mangled stack = 100
 
 .SS map archive (S)
-This controls whether the DOS archive attribute should be mapped to UNIX
-execute bits.  The DOS archive bit is set when a file has been modified
+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 motivation for this option it to keep Samba/your
 PC from making any file it touches from becoming executable under UNIX.
 This can be quite annoying for shared source code, documents,  etc...
 
+Note that this requires the 'create mask' to be set such that owner
+execute bit is not masked out (ie. it must include 100). See the 
+parameter "create mask" for details.
+
 .B Default:
       map archive = yes
 
 .B Example:
       map archive = no
 
-.SS map hidden (S)
-This controls whether DOS style hidden files should be mapped to UNIX
-execute bits.
+.SS map hidden (S)
+This controls whether DOS style hidden files should be mapped to the
+UNIX world execute bit.
+
+Note that this requires the 'create mask' to be set such that the world
+execute bit is not masked out (ie. it must include 001). 
+See the parameter "create mask" for details.
+
+.B Default:
+       map hidden = no
+
+.B Example:
+       map hidden = yes
+.SS map system (S)
+This controls whether DOS style system files should be mapped to the
+UNIX group execute bit.
+
+Note that this requires the 'create mask' to be set such that the group
+execute bit is not masked out (ie. it must include 010). See the parameter 
+"create mask" for details.
+
+.B Default:
+       map system = no
+
+.B Example:
+       map system = yes
+.SS max connections (S)
+This option allows the number of simultaneous connections to a
+service to be limited. If "max connections" is greater than 0 then
+connections will be refused if this number of connections to the
+service are already open. A value of zero mean an unlimited number of
+connections may be made.
+
+Record lock files are used to implement this feature. The lock files
+will be stored in the directory specified by the "lock directory" option.
+
+.B Default:
+       max connections = 0
+
+.B Example:
+       max connections = 10
+
+.SS max disk size (G)
+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 size.
+
+Note that this option does not limit the amount of data you can put on
+the disk. In the above case you could still store much more than 100
+MB on the disk, but if a client ever asks for the amount of free disk
+space or the total disk size then the result will be bounded by the
+amount specified in "max disk size".
+
+This option is primarily useful to work around bugs in some pieces of
+software that can't handle very large disks, particularly disks over
+1GB in size.
+
+A "max disk size" of 0 means no limit.
+
+.B Default:
+       max disk size = 0
+
+.B Example:
+       max disk size = 1000
+
+.SS max log size (G)
+
+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 a .old extension.
+
+A size of 0 means no limit.
 
 .B Default:
-       map hidden = no
+       max log size = 5000
 
 .B Example:
-       map hidden = yes
-.SS map system (S)
-This controls whether DOS style system files should be mapped to UNIX
-execute bits.
-
-.B Default:
-       map system = no
+       max log size = 1000
 
-.B Example:
-       map system = yes
-.SS max connections (S)
-This option allows the number of simultaneous connections to a
-service to be limited. If "max connections" is greater than 0 then
-connections will be refused if this number of connections to the
-service are already open. A value of zero mean an unlimited number of
-connections may be made.
+.SS max mux (G)
 
-Record lock files are used to implement this feature. The lock files
-will be stored in the directory specified by the "lock directory" option.
+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.
 
 .B Default:
-       max connections = 0
-
-.B Example:
-       max connections = 10
-.SS only user (S)
-This is a boolean option that controls whether connections with
-usernames not in the user= list will be allowed. By default this
-option is disabled so a client can supply a username to be used by
-the server.
+       max mux = 50
 
-Note that this also means Samba won't try to deduce usernames from the
-service name. This can be annoying for the [homes] section. To get
-around this you could use "user = %S" which means your "user" list
-will be just the service name, which for home directories is the name
-of the user.
+.SS max packet (G)
 
-.B Default: 
-       only user = False
+A synonym for this parameter is 'packet size'.
 
-.B Example: 
-       only user = True
+.SS max ttl (G)
 
-.SS fake oplocks (S)
+This option tells nmbd what the default 'time to live' of NetBIOS
+names should be (in seconds). You should never need to change this parameter.
 
-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 that it is the
-only one accessing the file and it will aggressively cache file
-data. With some oplock types the client may even cache file open/close
-operations. This can give enormous performance benefits.
+.B Default:
+       max ttl = 14400
+.SS max xmit (G)
 
-Samba does not support opportunistic locks because they are very
-difficult to do under Unix. Samba can fake them, however, by granting
-a oplock whenever a client asks for one. This is controlled using the
-smb.conf option "fake oplocks". If you set "fake oplocks = yes" then
-you are telling the client that it may aggressively cache the file
-data.
+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 with a smaller value. A value
+below 2048 is likely to cause problems.
 
-By enabling this option on all read-only shares or shares that you know
-will only be accessed from one client at a time you will see a big
-performance improvement on many operations. If you enable this option
-on shares where multiple clients may be accessing the files read-write
-at the same time you can get data corruption. Use this option
-carefully! 
+.B Default:
+       max xmit = 65535
 
-This option is disabled by default.
+.B Example:
+       max xmit = 8192
 
 .SS message command (G)
 
@@ -1799,6 +2161,34 @@ kilobytes. The default is 0, which means no limit.
 .B Example:
        min print space = 2000
 
+.SS netbios aliases (G)
+
+This is a list of names that nmbd 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
+acting as a browse server or logon server none of these names
+will be advertised as either browse server or logon servers, only
+the primary name of the machine will be advertised with these
+capabilities.
+
+See also 'netbios name'.
+
+.B Example:
+   netbios aliases = TEST TEST1 TEST2
+
+.SS netbios name (G)
+
+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 logon server this name (or the
+first component of the hosts DNS name) will be the name that these
+services are advertised under.
+
+See also 'netbios aliases'.
+
+.B Example:
+   netbios name = MYNAME
+
 .SS nis homedir (G)
 Get the home share server from a NIS (or YP) map. For unix systems that
 use an automounter, the user's home directory will often be mounted on
@@ -1828,6 +2218,43 @@ Allow or disallow access to accounts that have null passwords.
 .B Example:
        null passwords = yes
 
+.SS only guest (S)
+A synonym for this command is 'guest only'.
+
+.SS only user (S)
+This is a boolean option that controls whether connections with
+usernames not in the user= list will be allowed. By default this
+option is disabled so a client can supply a username to be used by
+the server.
+
+Note that this also means Samba won't try to deduce usernames from the
+service name. This can be annoying for the [homes] section. To get
+around this you could use "user = %S" which means your "user" list
+will be just the service name, which for home directories is the name
+of the user.
+
+.B Default: 
+       only user = False
+
+.B Example: 
+       only user = True
+
+.SS oplocks (S)
+This boolean option tells smbd whether to issue oplocks (opportunistic
+locks) to file open requests on this share. The oplock code was introduced in
+Samba 1.9.18 and can dramatically (approx 30% or more) improve the speed
+of access to files on Samba servers. It allows the clients to agressively
+cache files locally and you may want to disable this option for unreliable
+network environments (it is turned on by default in Windows NT Servers).
+For more information see the file Speed.txt in the Samba docs/ directory.
+
+.B Default:
+    oplocks = True
+
+.B Example:
+    oplocks = False
+
+
 .SS os level (G)
 This integer value controls what level Samba advertises itself as for
 browse elections. See BROWSING.txt for details.
@@ -2041,10 +2468,11 @@ See also postexec
 .SS preferred master (G)
 This boolean parameter controls if Samba is a preferred master browser
 for its workgroup.
-On startup, samba will force an election, and it will have a slight
-advantage in winning the election.  It is recommended that this 
-parameter is used in conjunction with domain master = yes, so that samba 
-can guarantee becoming a domain master.  
+If this is set to true, on startup, samba will force an election, 
+and it will have a slight advantage in winning the election.  
+It is recommended that this parameter is used in conjunction 
+with domain master = yes, so that samba can guarantee becoming 
+a domain master.  
 
 Use this option with caution, because if there are several hosts
 (whether samba servers, Windows 95 or NT) that are preferred master
@@ -2056,7 +2484,7 @@ See
 .B os level = nn
 
 .B Default:
-       preferred master = yes
+       preferred master = no
 
 .SS preload
 This is an alias for "auto services"
@@ -2142,19 +2570,6 @@ parameter controls only non-printing access to the resource.
 .B Example:
        printable = yes
 
-.SS printing (G)
-This parameters controls how printer status information is interpreted
-on your system, and also affects the default values for the "print
-command", "lpq command" and "lprm command".
-
-Currently six printing styles are supported. They are "printing =
-bsd", "printing = sysv", "printing = hpux", "printing = aix",
-"printing = qnx" and "printing = plp".
-
-To see what the defaults are for the other print commands when using
-these three options use the "testparm" program.
-
-
 .SS printcap name (G)
 This parameter may be used to override the compiled-in default printcap
 name used by the server (usually /etc/printcap). See the discussion of the
@@ -2223,6 +2638,19 @@ scrollbox after you have chosen the printer manufacturer.
 See
 .B printer.
 
+.SS printing (G)
+This parameters controls how printer status information is interpreted
+on your system, and also affects the default values for the "print
+command", "lpq command" and "lprm command".
+
+Currently six printing styles are supported. They are "printing =
+bsd", "printing = sysv", "printing = hpux", "printing = aix",
+"printing = qnx" and "printing = plp".
+
+To see what the defaults are for the other print commands when using
+these three options use the "testparm" program.
+
+
 .SS protocol (G)
 The value of the parameter (a string) is the highest protocol level that will
 be supported by the server. 
@@ -2401,6 +2829,18 @@ The set of files that must be mirrored is operating system dependent.
 
 .B Example:
        root directory = /homes/smb
+.SS root postexec (S)
+
+This is the same as postexec except that the command is run as
+root. This is useful for unmounting filesystems (such as cdroms) after
+a connection is closed.
+
+.SS root preexec (S)
+
+This is the same as preexec except that the command is run as
+root. This is useful for mounting filesystems (such as cdroms) before
+a connection is finalised.
+
 .SS security (G)
 This option affects how clients respond to Samba.
 
@@ -2452,52 +2892,53 @@ A %h will be replaced with the hostname.
 .B Example:
        server string = University of GNUs Samba Server
 
-.SS smbrun (G)
-This sets the full path to the smbrun binary. This defaults to the
-value in the Makefile.
+.SS set directory (S)
+If 'set directory = no', then users of the service may not use the setdir
+command to change directory.
 
-You must get this path right for many services to work correctly.
+The setdir command is only implemented in the Digital Pathworks client. See the
+Pathworks documentation for details.
 
 .B Default:
-taken from Makefile
+       set directory = no
 
 .B Example:
-       smbrun = /usr/local/samba/bin/smbrun
-
-.SS short preserve case (S)
-
-This controls if new short filenames are created with the case that
-the client passes, or if they are forced to be the "default" case.
-
-.B Default:
-       short preserve case = no
+       set directory = yes
 
-See the section on "NAME MANGLING" for a fuller discussion.
+.SS shared file entries (G)
+This parameter is only useful when Samba has been compiled with FAST_SHARE_MODES.
+It specifies the number of hash bucket entries used for share file locking.
+You should never change this parameter unless you have studied the source 
+and know what you are doing.
 
-.SS root preexec (S)
+.B Default
+       shared file entries = 113
 
-This is the same as preexec except that the command is run as
-root. This is useful for mounting filesystems (such as cdroms) before
-a connection is finalised.
+.SS shared mem size (G)
+This parameter is only useful when Samba has been compiled with FAST_SHARE_MODES.
+It specifies the size of the shared memory (in bytes) to use between smbd 
+processes. You should never change this parameter unless you have studied 
+the source and know what you are doing.
 
-.SS root postexec (S)
+.B Default
+       shared mem size = 102400
 
-This is the same as postexec except that the command is run as
-root. This is useful for unmounting filesystems (such as cdroms) after
-a connection is closed.
+.SS smb passwd file (G)
+This option sets the path to the encrypted smbpasswd file. This is a *VERY
+DANGEROUS OPTION* if the smb.conf is user writable. By default the path
+to the smbpasswd file is compiled into Samba.
 
-.SS set directory (S)
-If 'set directory = no', then users of the service may not use the setdir
-command to change directory.
+.SS smbrun (G)
+This sets the full path to the smbrun binary. This defaults to the
+value in the Makefile.
 
-The setdir command is only implemented in the Digital Pathworks client. See the
-Pathworks documentation for details.
+You must get this path right for many services to work correctly.
 
 .B Default:
-       set directory = no
+taken from Makefile
 
 .B Example:
-       set directory = yes
+       smbrun = /usr/local/samba/bin/smbrun
 
 .SS share modes (S)
 
@@ -2521,6 +2962,16 @@ of processing time on the UNIX server. They are enabled by default.
 .B Example:
        share modes = no
 
+.SS short preserve case (S)
+
+This controls if new short filenames are created with the case that
+the client passes, or if they are forced to be the "default" case.
+
+.B Default:
+       short preserve case = no
+
+See the section on "NAME MANGLING" for a fuller discussion.
+
 .SS socket address (G)
 
 This option allows you to control what address Samba will listen for
@@ -2627,15 +3078,6 @@ connections are active.
 .B Example:
        status = no
 
-.SS strip dot (G)
-This is a boolean that controls whether to strip trailing dots off
-filenames. This helps with some CDROMs that have filenames ending in a
-single dot.
-
-NOTE: This option is now obsolete, and may be removed in future. You
-should use the "mangled map" option instead as it is much more
-general. 
-
 .SS strict locking (S)
 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
@@ -2654,6 +3096,37 @@ so in the vast majority of cases "strict locking = no" is preferable.
 .B Example:
        strict locking = yes
 
+.SS strip dot (G)
+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.
+
+.B Default:
+       strip dot = no
+
+.B Example:
+    strip dot = yes
+
+.SS syslog (G)
+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 level one maps onto LOG_WARNING, debug
+level two maps to LOG_NOTICE, debug level three maps onto LOG_INFO.
+The paramter sets the threshold for doing the mapping, all Samba
+debug messages above this threashold are mapped to syslog LOG_DEBUG
+messages.
+
+.B Default:
+
+       syslog = 1
+
+.SS syslog only (G)
+If this parameter is set then Samba debug messages are logged into
+the system syslog only, and not to the debug log files.
+
+.B Default:
+       syslog only = no
+
 .SS sync always (S)
 
 This is a boolean parameter that controls whether writes will always
@@ -2680,6 +3153,16 @@ that have incorrect daylight saving time handling.
 .B Example:
        time offset = 60
 
+.SS time server (G)
+This parameter determines if nmbd advertises itself as a time server
+to Windows clients. The default is False.
+
+.B Default:
+       time server = False
+
+.B Example:
+       time server = True
+
 .SS unix realname (G)
 This boolean parameter when set causes samba to supply the real name field
 from the unix password file to the client. This is useful for setting up
@@ -2738,6 +3221,26 @@ on how this parameter determines access to the services.
        username = fred
        username = fred, mary, jack, jane, @users, @pcgroup
 
+.SS username level (G)
+
+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 username with the first letter
+capitalized, and fails if the username is not found on the UNIX machine.
+
+If this parameter is set to non-zero the behaviour changes. This 
+parameter is a number that specifies the number of uppercase combinations 
+to try whilst trying to determine the UNIX user name. The higher the number
+the more combinations will be tried, but the slower the discovery
+of usernames will be. Use this parameter when you have strange
+usernames on your UNIX machine, such as 'AstrangeUser'.
+
+.B Default:
+    username level = 0
+
+.B Example:
+    username level = 5
+
 .SS username map (G)
 
 This option allows you to to specify a file containing a mapping of
@@ -2819,6 +3322,13 @@ valid chars = 0132:0172
 The last two examples above actually add two characters, and alter
 the uppercase and lowercase mappings appropriately.
 
+Note that you MUST specify this parameter after the "client code page"
+parameter if you have both set. If "client code page" is set after
+the "valid chars" parameter the "valid chars" settings will be
+overwritten.
+
+See also the "client code page" parameter.
+
 .B Default
 .br
        Samba defaults to using a reasonable set of valid characters
@@ -2856,6 +3366,48 @@ See also "invalid users"
 .B Example
        valid users = greg, @pcusers
 
+
+.SS veto files(S)
+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 in the entry.  '*' and '?' can be used to
+specify multiple files or directories as in DOS wildcards.
+
+Each entry must be a unix path, not a DOS path and must not include the 
+unix directory separator "/".
+
+Note that the case sensitivity option is applicable in vetoing files.
+
+One feature of the veto files parameter that it is important to be
+aware of, is that if a directory contains nothing but files that
+match the veto files parameter (which means that Windows/DOS clients
+cannot ever see them) is deleted, the veto files within that directory
+*are automatically deleted* along with it, if the user has UNIX permissions
+to do so.
+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.
+
+See also "hide files" and "case sensitive"
+
+.B Default
+       No files or directories are vetoed.
+
+.B Examples
+    Example 1.
+    Veto any files containing the word Security, 
+    any ending in .tmp, and any directory containing the
+    word root.
+
+       veto files = /*Security*/*.tmp/*root*/
+
+    Example 2.
+    Veto the Apple specific files that a NetAtalk server
+    creates.
+
+    veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
+
 .SS volume (S)
 This allows you to override the volume label returned for a
 share. Useful for CDROMs with installation programs that insist on a
@@ -2883,25 +3435,27 @@ some older clients.
 
 .B Default:
        wins proxy = no
-.SS wins support (G)
+.SS wins server (G)
 
-This boolean controls if Samba will act as a WINS server. You should
-normally set this to true unless you already have another WINS server
-on the network.
+This specifies the DNS name (or IP address) of the WINS server that Samba 
+should register with. If you have a WINS server on your network then you
+should set this to the WINS servers name.
 
+You should point this at your WINS server if you have a multi-subnetted
+network.
 .B Default:
-       wins support = yes
-.SS wins server (G)
+       wins server = 
 
-This specifies the DNS name of the WINS server that Samba should
-register with. If you have a WINS server on your network then you
-should set this to the WINS servers name.
+.SS wins support (G)
 
-This option only takes effect if Samba is not acting as a WINS server
-itself. 
+This boolean controls if 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 nmbd to be your WINS server. Note that you
+should *NEVER* set this to true on more than one machine in your
+network.
 
 .B Default:
-       wins server = 
+       wins support = no
 .SS workgroup (G)
 
 This controls what workgroup your server will appear to be in when
@@ -2913,11 +3467,6 @@ queried by clients.
 .B Example:
        workgroup = MYGROUP
 
-.SS write ok (S)
-See
-.B writable
-and
-.B read only.
 .SS writable (S)
 A synonym for this parameter is 'write ok'. An inverted synonym is 'read only'.
 
@@ -2952,6 +3501,11 @@ See also the "read list" option
 .B Example:
      write list = admin, root, @staff
 
+.SS write ok (S)
+See
+.B writable
+and
+.B read only.
 .SS write raw (G)
 This parameter controls whether or not the server will support raw writes when
 transferring data from clients.
@@ -3015,7 +3569,7 @@ administrator easy, but the various combinations of default attributes can be
 tricky. Take extreme care when designing these sections. In particular,
 ensure that the permissions on spool directories are correct.
 .SH VERSION
-This man page is (mostly) correct for version 1.9.00 of the Samba suite, plus some
+This man page is (mostly) correct for version 1.9.16 of the Samba suite, plus some
 of the recent patches to it. These notes will necessarily lag behind 
 development of the software, so it is possible that your version of 
 the server has extensions or parameter semantics that differ from or are not