Added definition of oplocks parameter.
[kai/samba.git] / docs / manpages / smb.conf.5
index 933d71ff0c3e69fdbd675caa38d8aa81b857fd20..bb43941439a6d18933e078f9713dfe1983d7ab11 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMB.CONF 5 11/10/94 smb.conf smb.conf
+.TH SMB.CONF 5 smb.conf smb.conf
 .SH NAME
 smb.conf \- configuration file for smbd
 .SH SYNOPSIS
@@ -15,7 +15,6 @@ program. The
 .B smbd
 program provides LanManager-like services to clients
 using the SMB protocol.
-
 .SH FILE FORMAT
 The file consists of sections and parameters. A section begins with the 
 name of the section in square brackets and continues until the next
@@ -35,8 +34,8 @@ within a parameter value is retained verbatim.
 Any line beginning with a semicolon is ignored, as are lines containing 
 only whitespace.
 
-Any line ending in a \\ is "continued" on the next line in the
-customary unix fashion.
+Any line ending in a \e is "continued" on the next line in the
+customary UNIX fashion.
 
 The values following the equals sign in parameters are all either a string
 (no quotes needed) or a boolean, which may be given as yes/no, 0/1 or
@@ -91,7 +90,6 @@ means access will be permitted as the default guest user (specified elsewhere):
                read only = true
                printable = true
                public = true
-
 .SH SPECIAL SECTIONS
 
 .SS The [global] section
@@ -124,7 +122,7 @@ If no path was given, the path is set to the user's home directory.
 If you decide to use a path= line in your [homes] section then you may
 find it useful to use the %S macro. For example path=/data/pchome/%S
 would be useful if you have different home directories for your PCs
-than for unix access.
+than for UNIX access.
 
 This is a fast and simple way to give a large number of clients access to
 their home directories with a minimum of fuss.
@@ -212,6 +210,7 @@ could be used simply to limit access to a subset of your local printers.
 An alias, by the way, is defined as any component of the first entry of a 
 printcap record. Records are separated by newlines, components (if there are 
 more than one) are separated by vertical bar symbols ("|").
+.RE
 .SH PARAMETERS
 Parameters define the specific attributes of services.
 
@@ -221,7 +220,7 @@ permissible only in normal sections. For the purposes of the following
 descriptions the [homes] and [printers] sections will be considered normal.
 The letter 'G' in parentheses indicates that a parameter is specific to the
 [global] section. The letter 'S' indicates that a parameter can be
-specified in a secvice specific section. Note that all S parameters
+specified in a service specific section. Note that all S parameters
 can also be specified in the [global] section - in which case they
 will define the default behaviour for all services.
 
@@ -237,7 +236,7 @@ interpreted as "path = /tmp/john" if the user connected with the
 username john.
 
 These substitutions are mostly noted in the descriptions below, but
-there are some general substitions which apply whenever they might be
+there are some general substitutions which apply whenever they might be
 relevant. These are:
 
 %S = the name of the current service, if any
@@ -283,7 +282,7 @@ substitutions and other smb.conf options.
 
 .SS NAME MANGLING
 
-Samba supports "name mangling" so that Dos and Windows clients can use
+Samba supports "name mangling" so that DOS and Windows clients can use
 files that don't conform to the 8.3 format. It can also be set to adjust
 the case of 8.3 format filenames.
 
@@ -317,13 +316,23 @@ 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 no.
 
-.SS COMPLETE LIST OF GLOBAL PARAMETER
+.SS COMPLETE LIST OF GLOBAL PARAMETERS
 
 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
@@ -336,10 +345,24 @@ 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
 
 include
@@ -350,24 +373,40 @@ lock dir
 
 load printers
 
+local master
+
 lock directory
 
 log file
 
 log level
 
+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
 
 os level
@@ -400,6 +439,8 @@ read raw
 
 read size
 
+remote announce
+
 root
 
 root dir
@@ -410,27 +451,47 @@ security
 
 server string
 
+shared file entries
+
+shared mem size
+
+smb passwd file
+
 smbrun
 
+socket address
+
 socket options
 
 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
 
-.SS COMPLETE LIST OF SERVICE PARAMETER
+.SS COMPLETE LIST OF SERVICE PARAMETERS
 
 Here is a list of all service parameters. See the section of each
 parameter for details. Note that some are synonyms.
@@ -459,14 +520,30 @@ comment
 
 default case
 
+delete readonly
+
+delete veto files
+
 deny hosts
 
 directory
 
+directory mask
+
+directory mode
+
 dont descend
 
 exec
 
+fake oplocks
+
+follow symlinks
+
+force create mode
+
+force directory mode
+
 force group
 
 force user
@@ -519,6 +596,8 @@ only guest
 
 only user
 
+oplocks
+
 path
 
 postexec
@@ -529,6 +608,8 @@ preserve case
 
 print command
 
+printer driver
+
 print ok
 
 printable
@@ -582,9 +663,9 @@ 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 privilages
+This is a list of users who will be granted administrative privileges
 on the share. This means that they will do all file operations as the
 super-user (root).
 
@@ -598,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
@@ -612,21 +722,21 @@ then the "load printers" option is easier.
 .B Example:
        auto services = fred lp colorlp
 
-
 .SS allow hosts (S)
 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
 "allow hosts = 150.203.5.". The full syntax of the list is described in
 the man page
-.B hosts_access(5).
+.BR hosts_access (5).
 
 You can also specify hosts by network/netmask pairs and by netgroup
 names if your system supports netgroups. The EXCEPT keyword can also
@@ -653,11 +763,13 @@ deny access from one particular host
 
 Note that access still requires suitable user-level passwords.
 
-See testparm(1) for a way of testing your host access to see if it
+See
+.BR testparm (1)
+for a way of testing your host access to see if it
 does what you expect.
 
 .B Default:
-       none (ie., all hosts permitted access)
+       none (i.e., all hosts permitted access)
 
 .B Example:
        allow hosts = 150.203.5. myhost.mynet.edu.au
@@ -665,12 +777,12 @@ does what you expect.
 .SS alternate permissions (S)
 
 This option affects the way the "read only" DOS attribute is produced
-for unix files. If this is false then the read only bit is set for
+for UNIX files. If this is false then the read only bit is set for
 files on writeable shares which the user cannot write to.
 
 If this is true then it is set for files whos user write bit is not set.
 
-The latter behaviour of useful for when users copy files from each
+The latter behaviour is useful for when users copy files from each
 others directories, and use a file manager that preserves
 permissions. Without this option they may get annoyed as all copied
 files will have the "read only" bit set.
@@ -699,10 +811,65 @@ 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
@@ -726,11 +893,11 @@ file.
 
 This option takes the usual substitutions, which can be very useful.
 
-If thew config file doesn't exist then it won't be loaded (allowing
+If the config file doesn't exist then it won't be loaded (allowing
 you to special case the config files of just a few clients).
 
 .B Example:
-       config file = /usr/local/samba/smb.conf.%m
+       config file = /usr/local/samba/lib/smb.conf.%m
 
 .SS copy (S)
 This parameter allows you to 'clone' service entries. The specified
@@ -750,20 +917,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.
 
-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.
+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.
+
+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 = 0755
+       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
@@ -788,7 +972,9 @@ A deadtime of zero indicates that no auto-disconnection should be performed.
        dead time = 15
 .SS debug level (G)
 The value of the parameter (an integer) allows the debug level
-(logging level) to be specified in the smb.conf file. This is to give
+(logging level) to be specified in the
+.B smb.conf
+file. This is to give
 greater flexibility in the configuration of the system.
 
 The default will be the debug level specified on the command line.
@@ -815,7 +1001,7 @@ attempting to connect to a nonexistent service results in an error.
 
 Typically the default service would be a public, read-only service.
 
-Also not that s of 1.9.14 the apparent service name will be changed to
+Also note that as of 1.9.14 the apparent service name will be changed to
 equal that of the requested service, this is very useful as it allows
 you to use macros like %S to make a wildcard service.
 
@@ -831,6 +1017,19 @@ things.
              path = /%S
           
 
+.SS delete readonly (S)
+This parameter allows readonly files to be deleted.  This is not normal DOS
+semantics, but is allowed by UNIX.
+
+This option may be useful for running applications such as rcs, where UNIX
+file ownership prevents changing file permissions, and DOS semantics prevent
+deletion of a read only file.
+
+.B Default:
+       delete readonly = No
+
+.B Example:
+       delete readonly = Yes
 .SS deny hosts (S)
 A synonym for this parameter is 'hosts deny'.
 
@@ -839,10 +1038,38 @@ access to services unless the specific services have their own lists to
 override this one. Where the lists conflict, the 'allow' list takes precedence.
 
 .B Default:
-       none (ie., no hosts specifically excluded)
+       none (i.e., no hosts specifically excluded)
 
 .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
@@ -870,24 +1097,111 @@ Note: Your script should NOT be setuid or setgid and should be owned by
 and remaining space will be used.
 
 .B Example:
-       dfree command = /usr/local/smb/dfree
+       dfree command = /usr/local/samba/bin/dfree
 
        Where the script dfree (which must be made executable) could be
 
-       #!/bin/sh
-       df $1 | tail -1 | awk '{print $2" "$4}'
+.nf
+       #!/bin/sh
+       df $1 | tail -1 | awk '{print $2" "$4}'
+.fi
 
        or perhaps (on Sys V)
 
+.nf
        #!/bin/sh
        /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
-
+.fi
 
        Note that you may have to replace the command names with full
 path names on some systems.
 .SS directory (S)
 See
 .B path.
+
+.SS directory mask (S)
+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.
+
+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
+
+.B Example:
+       directory mask = 0775
+.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 
+broadcast-isolated subnets will give samba their local browse lists, and 
+ask 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.
+
+.B Default:
+       domain master = no
+
 .SS dont descend (S)
 There are certain directories on some systems (eg., the /proc tree under
 Linux) that are either not of interest to clients or are infinitely deep
@@ -895,11 +1209,11 @@ Linux) that are either not of interest to clients or are infinitely deep
 of directories that the server should always show as empty.
 
 Note that Samba can be very fussy about the exact format of the "dont
-descend" entries. For example you ma need "./proc" instead of just
+descend" entries. For example you may need "./proc" instead of just
 "/proc". Experimentation is the best policy :-)
 
 .B Default:
-       none (ie., all directories are OK to descend)
+       none (i.e., all directories are OK to descend)
 
 .B Example:
        dont descend = /proc,/dev
@@ -907,7 +1221,7 @@ descend" entries. For example you ma need "./proc" instead of just
 .SS encrypt passwords (G)
 
 This boolean controls whether encrypted passwords will be negotiated
-with the cient. Note that this option has no effect if you haven't
+with the client. Note that this option has no effect if you haven't
 compiled in the necessary des libraries and encryption code. It
 defaults to no.
 
@@ -915,6 +1229,87 @@ 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.
+
+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.
+
+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! 
+
+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
@@ -943,6 +1338,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
@@ -953,8 +1363,9 @@ the specified username overrides this one.
 
 One some systems the account "nobody" may not be able to print. Use
 another account in this case. You should test this by trying to log in
-as your guest user (perhaps by using the "su -" command) and trying to
-print using lpr.
+as your guest user (perhaps by using the "su \-" command) and trying to
+print using
+.BR lpr .
 
 Note that as of version 1.9 of Samba this option may be set
 differently for each service.
@@ -964,16 +1375,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.
@@ -999,6 +1400,62 @@ 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.
+At present, only the Sun auto.home map format is understood. The form of
+the map is:
+
+username       server:/some/file/system
+
+and the program will extract the servername from before the first ':'.
+There should probably be a better parsing system that copes with different
+map formats and also Amd (another automounter) maps.
+
+NB: The -DNETGROUP option is required in the Makefile for option to work
+and on some architectures the line -lrpcsvc needs to be added to the
+LIBSM variable. This is required for Solaris 2, FreeBSD and HPUX.
+
+See also "nis homedir"
+
+.B Default:
+       homedir map = auto.home
+
+.B Example:
+       homedir map = amd.homedir
 .SS hosts allow (S)
 See
 .B allow hosts.
@@ -1006,10 +1463,6 @@ See
 See
 .B deny hosts.
 
-.SS group (S)
-This is an alias for "force group" and is only kept for compatability
-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
@@ -1033,12 +1486,44 @@ 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
+Samba can properly handle browsing on all interfaces.
+
+The option takes a list of ip/netmask pairs. The netmask may either be
+a bitmask, or a bitlength. 
+
+For example, the following line:
+
+interfaces = 192.168.2.10/24 192.168.3.10/24
+
+would configure two network interfaces with IP addresses 192.168.2.10
+and 192.168.3.10. The netmasks of both interfaces would be set to
+255.255.255.0. 
+
+You could produce an equivalent result by using:
+
+interfaces = 192.168.2.10/255.255.255.0 192.168.3.10/255.255.255.0
+
+if you prefer that format.
+
+If this option is not set then Samba will attempt to find a primary
+interface, but won't attempt to configure more than one interface.
+
 .SS invalid users (S)
 This is a list of users that should not be allowed to login to this
 service. This is really a "paranoid" check to absolutely ensure an
 improper setting does not breach your security.
 
-A name starting with @ is interpreted as a unix group.
+A name starting with @ is interpreted as a UNIX group.
 
 The current servicename is substituted for %S. This is useful in the
 [homes] section.
@@ -1051,13 +1536,6 @@ See also "valid users"
 .B Example
        invalid users = root fred admin @wheel
 
-.SS include (G)
-
-This allows you to inlcude 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
@@ -1079,20 +1557,31 @@ 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:
        lock directory = /tmp/samba
 
 .B Example: 
-       lock directory = /usr/local/samba/locks
+       lock directory = /usr/local/samba/var/locks
 .SS locking (S)
 This controls whether or not locking will be performed by the server in 
 response to lock requests from the client.
@@ -1123,11 +1612,74 @@ This option takes the standard substitutions, allowing you to have
 separate log files for each user or machine.
 
 .B Example:
-       log file = /usr/local/samba/log.%m
+       log file = /usr/local/samba/var/log.%m
 
 .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)
+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 file is recommended.
+
+The script must be a relative path to the [netlogon] service.  If the
+[netlogon] service specifies a path of /usr/local/samba/netlogon, and
+logon script = STARTUP.BAT, then file that will be downloaded is:
+
+.B /usr/local/samba/netlogon/STARTUP.BAT
+
+The contents of the batch file is entirely your choice.  A suggested
+command would be to add NET TIME \\\\SERVER /SET /YES, to force every
+machine to synchronise clocks with the same time server.  Another use
+would be to add NET USE U: \\\\SERVER\\UTILS for commonly used utilities,
+or NET USE Q: \\\\SERVER\\ISO9001_QA.
+
+Note that it is particularly important not to allow write access to
+the [netlogon] share, or to grant users write permission on the
+batch files in a secure environment, as this would allow the batch
+files to be arbitrarily modified.
+
+.B
+This option takes the standard substitutions, allowing you to have
+separate logon scripts for each user or machine.
+
+.B Example:
+       logon script = scripts/%U.bat
+
 .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.
@@ -1137,9 +1689,11 @@ job number to pause the print job. Currently I don't know of any print
 spooler system that can do this with a simple option, except for the PPR
 system from Trinity College (ppr\-dist.trincoll.edu/pub/ppr). One way
 of implementing this is by using job priorities, where jobs having a too
-low priority wont be sent to the printer. See also the lppause command.
+low priority won't be sent to the printer. See also the
+.B lppause
+command.
 
-If a %p is given then the printername is put in it's place. A %j is
+If a %p is given then the printername is put in its place. A %j is
 replaced with the job number (an integer).
 On HPUX (see printing=hpux), if the -p%p option is added to the lpq
 command, the job will show up with the correct status, i.e. if the job
@@ -1187,9 +1741,9 @@ order to obtain "lpq"-style printer status information.
 This command should be a program or script which takes a printer name
 as its only parameter and outputs printer status information. 
 
-Currently four styles of printer status information are supported;
-BSD, SYSV, AIX and HPUX. This covers most unix systems. You control
-which type is expected using the "printing =" option.
+Currently six styles of printer status information are supported; BSD,
+SYSV, AIX, HPUX, QNX, LPRNG and PLP. This covers most UNIX systems. You
+control which type is expected using the "printing =" option.
 
 Some clients (notably Windows for Workgroups) may not correctly send the
 connection number for the printer they are requesting status information
@@ -1197,7 +1751,7 @@ 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 %p is given then the printername is put in it's place. Otherwise
+If a %p is given then the printername 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 path in the lpq
@@ -1216,7 +1770,7 @@ order to restart or continue printing or spooling a specific print job.
 This command should be a program or script which takes a printer name and
 job number to resume the print job. See also the lppause command.
 
-If a %p is given then the printername is put in it's place. A %j is
+If a %p is given then the printername is put in its place. A %j is
 replaced with the job number (an integer).
 
 Note that it is good practice to include the absolute path in the lpresume
@@ -1235,11 +1789,11 @@ 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.
 
-Currently four styles of printer control are supported; BSD, SYSV, AIX
-and HPUX. This covers most unix systems. You control which type is
-expected using the "printing =" option.
+Currently seven styles of printer control are supported; BSD, SYSV, AIX
+HPUX, QNX, LPRNG and PLP. This covers most UNIX systems. You control
+which type is expected using the "printing =" option.
 
-If a %p is given then the printername is put in it's place. A %j is
+If a %p is given then the printername is put in its place. A %j is
 replaced with the job number (an integer).
 
 Note that it is good practice to include the absolute path in the lprm
@@ -1269,7 +1823,7 @@ output file content is undefined.
        magic output = myfile.txt
 .SS magic script (S)
 This parameter specifies the name of a file which, if opened, will be
-executed by the server when the file is closed. This allows a Unix script
+executed by the server when the file is closed. 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, permissions
@@ -1286,17 +1840,23 @@ marker. Magic scripts must be executable "as is" on the host, which
 for some hosts and some shells will require filtering at the DOS end.
 
 Magic scripts are EXPERIMENTAL and should NOT be relied upon.
+
 .B Default:
        None. Magic scripts disabled.
 
 .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
-needed.  In particular you may have documents with file extensiosn
-that differ between dos and unix. For example, under unix it is common
-to use .html for HTML files, whereas under dos .htm is more commonly
+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 .html for HTML files, whereas under DOS .htm is more commonly
 used.
 
 So to map 'html' to 'htm' you put:
@@ -1304,7 +1864,7 @@ So to map 'html' to 'htm' you put:
   mangled map = (*.html *.htm)
 
 One very useful case is to remove the annoying ;1 off the ends of
-filenames on some CDROMS (only visible under some unixes). To do this
+filenames on some CDROMS (only visible under some UNIXes). To do this
 use a map of (*;1 *)
 
 .B default:
@@ -1313,12 +1873,8 @@ 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
+This controls whether non-DOS names under UNIX should be mapped to
 DOS-compatible names ("mangled") and made visible, or whether non-DOS names
 should simply be ignored.
 
@@ -1332,7 +1888,7 @@ the filename are preserved, forced to upper case, and appear as the first (up
 to) five characters of the mangled name.
 
 - a tilde ("~") is appended to the first part of the mangled name, followed
-by a two-character unique sequence, based on the origonal root name 
+by a two-character unique sequence, based on the original root name 
 (i.e., the original filename minus its final extension). The final
 extension is included in the hash calculation only if it contains any upper
 case characters or is longer than three characters.
@@ -1346,7 +1902,7 @@ final extension is defined as that part of the original filename after the
 rightmost dot. If there are no dots in the filename, the mangled name will
 have no extension (except in the case of hidden files - see below).
 
-- files whose Unix name begins with a dot will be presented as DOS hidden
+- files whose UNIX name begins with a dot will be presented as DOS hidden
 files. The mangled name will be created as for other filenames, but with the
 leading dot removed and "___" as its extension regardless of actual original
 extension (that's three underscores).
@@ -1358,8 +1914,8 @@ This algorithm can cause name collisions only if files in a directory share
 the same first five alphanumeric characters. The probability of such a clash 
 is 1/1300.
 
-The name mangling (if enabled) allows a file to be copied between Unix
-directories from DOS while retaining the long Unix filename. Unix files can
+The name mangling (if enabled) allows a file to be copied between UNIX
+directories from DOS while retaining the long UNIX filename. UNIX files can
 be renamed to a new extension from DOS and will retain the same basename. 
 Mangled names do not change between sessions.
 
@@ -1379,33 +1935,6 @@ software. Use this option to set it to whatever you prefer.
 .B Example:
        mangling char = ^
 
-.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.
@@ -1415,7 +1944,7 @@ maintained if they are longer than 3 characters 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
+successfully converted to correct long UNIX names. However, large stack
 sizes will slow most directory access. Smaller stacks save memory in the
 server (each stack element costs 256 bytes).
 
@@ -1429,12 +1958,16 @@ 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
 
@@ -1442,8 +1975,12 @@ This can be quite annoying for shared source code, documents,  etc...
       map archive = no
 
 .SS map hidden (S)
-This controls whether DOS style hidden files should be mapped to Unix
-execute bits.
+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
@@ -1451,8 +1988,12 @@ execute bits.
 .B Example:
        map hidden = yes
 .SS map system (S)
-This controls whether DOS style system files should be mapped to Unix
-execute bits.
+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
@@ -1470,27 +2011,80 @@ 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
+       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:
+       max log size = 5000
+
+.B Example:
+       max log size = 1000
+
+.SS max mux (G)
+
+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 mux = 50
 
-.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.
+.SS max packet (G)
 
-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.
+A synonym for this parameter is 'packet size'.
 
-.B Default: 
-       only user = False
+.SS max ttl (G)
 
-.B Example: 
-       only user = True
+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.
+
+.B Default:
+       max ttl = 14400
+.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 message command (G)
 
@@ -1540,7 +2134,7 @@ If you want to silently delete it then try "message command = rm %s".
 
 For the really adventurous, try something like this:
 
-message command = csh -c 'csh < %s |& /usr/local/samba/smbclient \\
+message command = csh -c 'csh < %s |& /usr/local/samba/bin/smbclient \e
                   -M %m; rm %s' &
 
 this would execute the command as a script on the server, then give
@@ -1566,6 +2160,54 @@ 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
+a workstation on demand from a remote server. When the Samba logon server
+is not the actual home directory server, two network hops are required
+to access the home directory and this can be very slow especially with 
+writing via Samba to an NFS mounted directory. This option allows samba
+to return the home share as being on a different server to the logon
+server and as long as a samba daemon is running on the home directory 
+server, it will be mounted on the Samba client directly from the directory
+server. When Samba is returning the home share to the client, it will
+consult the NIS (or YP) map specified in "homedir map" and return the
+server listed there.
+
+.B Default:
+       nis homedir = false
+
+.B Example:
+       nis homedir = true
+
 .SS null passwords (G)
 Allow or disallow access to accounts that have null passwords. 
 
@@ -1575,6 +2217,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.
@@ -1585,19 +2264,19 @@ longer implemented as of version 1.7.00, and is kept only so old
 configuration files do not become invalid.
 
 .SS passwd chat (G)
-This string coontrols the "chat" conversation that takes places
+This string controls the "chat" conversation that takes places
 between smbd and the local password changing program to change the
 users password. The string describes a sequence of response-receive
 pairs that smbd uses to determine what to send to the passwd program
 and what to expect back. If the expected output is not received then
 the password is not changed.
 
-This chat sequence is often quite site specific, deppending on what
+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 %o and %n which are substituted for
-the old and new passwords respectively. It can aso contain the
-standard macros \\n \\r \\t and \\s to give line-feed, carriage-return,
+the old and new passwords respectively. It can also contain the
+standard macros \en \er \et and \es to give line-feed, carriage-return,
 tab and space.
 
 The string can also contain a * which matches any sequence of
@@ -1611,17 +2290,18 @@ then no string is sent. Similarly, is the expect string is a fullstop
 then no string is expected.
 
 .B Example:
-       passwd chat = "*Enter OLD password*" %o\\n "*Enter NEW password*" %n\\n \\
-                      "*Reenter NEW password*" %n\\n "*Password changed*"
+        passwd chat = "*Enter OLD password*" %o\en "*Enter NEW password*" %n\en \e
+                       "*Reenter NEW password*" %n\en "*Password changed*"
+
 
 .B Default:
-       passwd chat = *old*password* %o\\n *new*password* %n\\n *new*password* %n\\n *changed*
+       passwd chat = *old*password* %o\en *new*password* %n\en *new*password* %n\en *changed*
 
 .SS passwd program (G)
 The name of a program that can be used to set user passwords.
 
 This is only necessary if you have enabled remote password changing at
-compile time. Any occurances of %u will be replaced with the user
+compile time. Any occurrences of %u will be replaced with the user
 name.
 
 Also note that many passwd programs insist in "reasonable" passwords,
@@ -1636,7 +2316,7 @@ Workgroups) uppercase the password before sending it.
        passwd program = /sbin/passwd %u
 
 .SS password level (G)
-Some client/server conbinations have difficulty with mixed-case passwords.
+Some client/server combinations have difficulty with mixed-case passwords.
 One offending client is Windows for Workgroups, which for some reason forces
 passwords to upper case when using the LANMAN1 protocol, but leaves them alone
 when using COREPLUS!
@@ -1665,7 +2345,7 @@ you probably have a slow crypt() routine. Samba now comes with a fast
 sure the PASSWORD_LENGTH option is correct for your system in local.h
 and includes.h. On most systems only the first 8 chars of a password
 are significant so PASSWORD_LENGTH should be 8, but on some longer
-passwords are significant. The inlcudes.h file tries to select the
+passwords are significant. The includes.h file tries to select the
 right length for your system.
 
 .B Default:
@@ -1678,18 +2358,18 @@ right length for your system.
 
 By specifying the name of another SMB server (such as a WinNT box)
 with this option, and using "security = server" you can get Samba to
-do all it's username/password validation via a remote server.
+do all its username/password validation via a remote server.
 
 This options sets the name of the password server to use. It must be a
-netbios name, so if the machines netbios name is different from it's
-internet name then you may have to add it's netbios name to
+netbios name, so if the machine's netbios name is different from its
+internet name then you may have to add its netbios name to
 /etc/hosts.
 
 The password server much be a machine capable of using the "LM1.2X002"
 or the "LM NT 0.12" protocol, and it must be in user level security
 mode. 
 
-NOTE: Using a password server means your unix box (running Samba) is
+NOTE: Using a password server means your UNIX box (running Samba) is
 only as secure as your password server. DO NOT CHOOSE A PASSWORD
 SERVER THAT YOU DON'T COMPLETELY TRUST.
 
@@ -1718,8 +2398,8 @@ and the path should be world-writable and have the sticky bit set. This is not
 mandatory of course, but you probably won't get the results you expect if you
 do otherwise.
 
-Any occurances of %u in the path will be replaced with the username
-that the client is connecting as. Any occurances of %m will be
+Any occurrences of %u in the path will be replaced with the username
+that the client is connecting as. Any occurrences of %m will be
 replaced by the name of the machine they are connecting from. These
 replacements are very useful for setting up pseudo home directories
 for users.
@@ -1747,7 +2427,7 @@ See also preexec
       none (no command executed)
 
 .B Example:
-      postexec = echo \"%u disconnected from %S from %m (%I)\" >> /tmp/log
+      postexec = echo \e"%u disconnected from %S from %m (%I)\e" >> /tmp/log
 
 .SS postscript (S)
 This parameter forces a printer to interpret the print files as
@@ -1771,8 +2451,8 @@ connected to. It takes the usual substitutions.
 An interesting example is to send the users a welcome message every
 time they log in. Maybe a message of the day? Here is an example:
 
-preexec = csh -c 'echo \"Welcome to %S!\" | \
-       /usr/local/samba/smbclient -M %m -I %I' &
+preexec = csh -c 'echo \e"Welcome to %S!\e" | \e
+       /usr/local/samba/bin/smbclient -M %m -I %I' &
 
 Of course, this could get annoying after a while :-)
 
@@ -1782,15 +2462,28 @@ See also postexec
        none (no command executed)
 
 .B Example:
-       preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log
+        preexec = echo \e"%u connected to %S from %m (%I)\e" >> /tmp/log
 
 .SS preferred master (G)
 This boolean parameter controls if Samba is a preferred master browser
-for its workgroup. Setting this gives it a slight edge in elections
-and also means it will automatically start an election when it starts
-up. 
+for its workgroup.
+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
+browsers on the same subnet, they will each periodically and continuously
+attempt to become the local master browser.  This will result in
+unnecessary broadcast traffic and reduced browsing capabilities.
+
+See
+.B os level = nn
 
-It is on by default.
+.B Default:
+       preferred master = no
 
 .SS preload
 This is an alias for "auto services"
@@ -1823,7 +2516,7 @@ below.
 
 The full path name will be used for the filename if %s is not preceded
 by a /. If you don't like this (it can stuff up some lpq output) then
-use %f instead. Any occurances of %f get replaced by the spool
+use %f instead. Any occurrences of %f get replaced by the spool
 filename without the full path at the front.
 
 The print command MUST contain at least one occurrence of "%s" or %f -
@@ -1838,7 +2531,7 @@ If there is neither a specified print command for a printable service nor a
 global print command, spool files will be created but not processed and (most
 importantly) not removed.
 
-Note that printing may fail on some unixes from the "nobody"
+Note that printing may fail on some UNIXes from the "nobody"
 account. If this happens then create an alternative guest account that
 can print and set the "guest account" in the [global] section.
 
@@ -1853,10 +2546,10 @@ You may have to vary this command considerably depending on how you
 normally print files on your system.
 
 .B Default:
-        print command = lpr -r -P %p %s
+       print command = lpr -r -P %p %s
 
 .B Example:
-       print command = /usr/local/samba/myprintscript %p %s
+       print command = /usr/local/samba/bin/myprintscript %p %s
 .SS print ok (S)
 See
 .B printable.
@@ -1876,18 +2569,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 three printing styles are supported. They are "printing =
-bsd", "printing = sysv", "printing = hpux" and "printing = aix".
-
-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
@@ -1900,9 +2581,13 @@ minimal file that looks like a printcap and set "printcap name =" in
 A minimal printcap file would look something like this:
 
 print1|My Printer 1
+.br
 print2|My Printer 2
+.br
 print3|My Printer 3
+.br
 print4|My Printer 4
+.br
 print5|My Printer 5
 
 where the | separates aliases of a printer. The fact that the second
@@ -1931,9 +2616,40 @@ for any printable service that does not have its own printer name specified.
 
 .B Example:
        printer name = laserwriter
+
+.SS printer driver (S)
+This option allows you to control the string that clients receive when
+they ask the server for the printer driver associated with a
+printer. If you are using Windows95 or WindowsNT then you can use this
+to automate the setup of printers on your system.
+
+You need to set this parameter to the exact string (case sensitive)
+that describes the appropriate printer driver for your system. 
+If you don't know the exact string to use then you should first try
+with no "printer driver" option set and the client will give you a
+list of printer drivers. The appropriate strings are shown in a
+scrollbox after you have chosen the printer manufacturer.
+
+.B Example:
+       printer driver = HP LaserJet 4L
+
 .SS printer name (S)
 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. 
@@ -1941,6 +2657,9 @@ be supported by the server.
 Possible values are CORE, COREPLUS, LANMAN1, LANMAN2 and NT1. The relative
 merits of each are discussed in the README file.
 
+Normally this option should not be set as the automatic negotiation
+phase in the SMB protocol takes care of choosing the appropriate protocol.
+
 .B Default:
        protocol = NT1
 
@@ -2037,11 +2756,36 @@ pointless and will cause you to allocate memory unnecessarily.
 .B Example:
        read size = 8192
 
+.SS remote announce (G)
+
+This option allows you to setup nmbd to periodically announce itself
+to arbitrary IP addresses with an arbitrary workgroup name. 
+
+This is useful if you want your Samba server to appear in a remote
+workgroup for which the normal browse propagation rules don't
+work. The remote workgroup can be anywhere that you can send IP
+packets to.
+
+For example:
+
+       remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF
+
+the above line would cause nmbd 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 "workgroup" option is used
+instead. 
+
+The IP addresses you choose would normally be the broadcast addresses
+of the remote networks, but can also be the IP addresses of known
+browse masters if your network config is that stable.
+
+This option replaces similar functionality from the nmbd lmhosts file.
+
 .SS revalidate (S)
 
 This options controls whether Samba will allow a previously validated
 username/password pair to be used to attach to a share. Thus if you
-connect to \\\\server\\share1 then to \\\\server\\share2 it won't
+connect to \e\eserver\eshare1 then to \e\eserver\eshare2 it won't
 automatically allow the client to request connection to the second
 share as the same username as the first without a password.
 
@@ -2084,8 +2828,20 @@ 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 does affects how clients respond to Samba.
+This option affects how clients respond to Samba.
 
 The option sets the "security mode bit" in replies to protocol negotiations
 to turn share level security on or off. Clients decide based on this bit 
@@ -2097,8 +2853,8 @@ option at one stage.
 The alternatives are "security = user" or "security = server". 
 
 If your PCs use usernames that are the same as their usernames on the
-unix machine then you will want to use "security = user". If you
-mostly use usernames that don't exist on the unix box then use
+UNIX machine then you will want to use "security = user". If you
+mostly use usernames that don't exist on the UNIX box then use
 "security = share".
 
 There is a bug in WfWg that may affect your decision. When in user
@@ -2123,8 +2879,7 @@ This controls what string will show up in the printer comment box in
 print manager and next to the IPC connection in "net view". It can be
 any string that you wish to show to your users.
 
-Note that it DOES NOT affect the string that appears in browse
-lists. That is controlled by a nmbd command line option instead.
+It also sets what will appear in browse lists next to the machine name.
 
 A %v will be replaced with the Samba version number.
 
@@ -2136,50 +2891,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
+.B Default:
+       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.
+       set directory = yes
 
-.B Default:
-       short preserve case = no
+.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.
 
-See the section on "NAME MANGLING" for a fuller discussion.
+.B Default
+       shared file entries = 113
 
-.SS root preexec (S)
+.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.
 
-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.
+.B Default
+       shared mem size = 102400
 
-.SS root postexec (S)
+.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.
 
-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 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 comand is only implemented in the Digital Pathworks client. See the
-Pathworks documentation for details.
 .B Default:
-       set directory = no
+taken from Makefile
 
 .B Example:
-       set directory = yes
+       smbrun = /usr/local/samba/bin/smbrun
 
 .SS share modes (S)
 
@@ -2187,15 +2945,15 @@ This enables or disables the honouring of the "share modes" 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
+These open modes are not directly supported by UNIX, so they are
 simulated using lock files in the "lock directory". The "lock
 directory" specified in smb.conf must be readable by all users.
 
 The share modes that are enabled by this option are DENY_DOS,
 DENY_ALL, DENY_READ, DENY_WRITE, DENY_NONE and DENY_FCB.
 
-Enabling this option gives full share compatability but may cost a bit
-of processing time on the unix server. They are enabled by default.
+Enabling this option gives full share compatibility but may cost a bit
+of processing time on the UNIX server. They are enabled by default.
 
 .B Default:
        share modes = yes
@@ -2203,6 +2961,27 @@ 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
+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 address.
+
+.B Example:
+       socket address = 192.168.2.20
+
 .SS socket options (G)
 This option (which can also be invoked with the -O command line
 option) allows you to set socket options to be used when talking with
@@ -2222,7 +3001,7 @@ You may find that on some systems Samba will say "Unknown socket
 option" when you supply an option. This means you either mis-typed it
 or you need to add an include file to includes.h for your OS. If the
 latter is the case please send the patch to me
-(samba-bugs@anu.edu.au).
+(samba-bugs@samba.anu.edu.au).
 
 Any of the supported socket options may be combined in any way you
 like, as long as your OS allows it.
@@ -2284,9 +3063,12 @@ completely. Use these options with caution!
 
 .SS status (G)
 This enables or disables logging of connections to a status file that
-smbstatus can read.
+.B smbstatus
+can read.
 
-With this disabled smbstatus won't be able to tell you what
+With this disabled
+.B smbstatus
+won't be able to tell you what
 connections are active.
 
 .B Default:
@@ -2295,15 +3077,6 @@ connections are active.
 .B Example:
        status = no
 
-.SS strip dot (G)
-This is a boolean that controls whether to strup 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
@@ -2322,11 +3095,42 @@ 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
 be written to stable storage before the write call returns. If this is
-false then the server will be guided by the clients request in each
+false then the server will be guided by the client's request in each
 write call (clients can set a bit indicating that a particular write
 should be synchronous). If this is true then every write will be
 followed by a fsync() call to ensure the data is written to disk.
@@ -2348,6 +3152,27 @@ 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
+mail clients and WWW browsers on systems used by more than one person.
+
+.B Default:
+       unix realname = no
+
+.B Example:
+       unix realname = yes
+
 .SS user (S)
 See
 .B username.
@@ -2357,10 +3182,10 @@ A synonym for this parameter is 'user'.
 Multiple users may be specified in a comma-delimited list, in which case the
 supplied password will be tested against each username in turn (left to right).
 
-The username= line is needed only when the PC is unable to supply it's own
+The username= line is needed only when the PC is unable to supply its own
 username. This is the case for the coreplus protocol or where your
-users have different WfWg usernames to unix usernames. In both these
-cases you may also be better using the \\\\server\\share%user syntax
+users have different WfWg usernames to UNIX usernames. In both these
+cases you may also be better using the \e\eserver\eshare%user syntax
 instead. 
 
 The username= line is not a great solution in many cases as it means Samba
@@ -2369,7 +3194,7 @@ usernames in the username= line in turn. This is slow and a bad idea for
 lots of users in case of duplicate passwords. You may get timeouts or
 security breaches using this parameter unwisely.
 
-Samba relies on the underlying unix security. This parameter does not
+Samba relies on the underlying UNIX security. This parameter does not
 restrict who can login, it just offers hints to the Samba server as to
 what usernames might correspond to the supplied password. Users can
 login as whoever they please and they will be able to do no more
@@ -2395,47 +3220,67 @@ 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
 usernames from the clients to the server. This can be used for several
-purposes. The most common is to map usernames that users use on dos or
-windows machines to those that the unix box uses. The other is to map
+purposes. The most common is to map usernames that users use on DOS or
+Windows machines to those that the UNIX box uses. The other is to map
 multiple users to a single username so that they can more easily share
 files.
 
 The map file is parsed line by line. Each line should contain a single
-unix username on the left then a '=' followed by a list of usernames
+UNIX username on the left then a '=' followed by a list of usernames
 on the right. The list of usernames on the right may contain names of
-the form @group in which case they will match any unix username in
+the form @group in which case they will match any UNIX username in
 that group. The special client name '*' is a wildcard and matches any
 name.
 
 The file is processed on each line by taking the supplied username and
 comparing it with each username on the right hand side of the '='
-signs. If the supplied name matrches any of the names on the right
+signs. If the supplied name matches any of the names on the right
 hand side then it is replaced with the name on the left. Processing
 then continues with the next line.
 
 If any line begins with a '#' or a ';' then it is ignored
 
-For example to map from he name "admin" or "administrator" to the unix
+For example to map from the name "admin" or "administrator" to the UNIX
 name "root" you would use
 
        root = admin administrator
 
-Or to map anyone in the unix group "system" to the unix name "sys" you
+Or to map anyone in the UNIX group "system" to the UNIX name "sys" you
 would use
 
        sys = @system
 
 You can have as many mappings as you like in a username map file.
 
-Note that the remapping is applied to all occurances of
-usernames. Thus if you connect to "\\\\server\\fred" and "fred" is
+Note that the remapping is applied to all occurrences of
+usernames. Thus if you connect to "\e\eserver\efred" and "fred" is
 remapped to "mary" then you will actually be connecting to
-"\\\\server\\mary" and will need to supply a password suitable for
-"mary" not "fred". The only exception to this is the username passwed
+"\e\eserver\emary" and will need to supply a password suitable for
+"mary" not "fred". The only exception to this is the username passed
 to the "password server" (if you have one). The password server will
 receive whatever username the client supplies without modification.
 
@@ -2462,7 +3307,7 @@ between them then it will be taken as an lowercase:uppercase pair.
 
 If you have an editor capable of entering the characters into the
 config file then it is probably easiest to use this method. Otherwise
-you can specify the characters in octal, decimal or hexidecimal form
+you can specify the characters in octal, decimal or hexadecimal form
 using the usual C notation.
 
 For example to add the single character 'Z' to the charset (which is a
@@ -2473,11 +3318,20 @@ valid chars = Z
 valid chars = z:Z
 valid chars = 0132:0172
 
-The last two examples above actually add two characters, and alters
+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
+.br
        for english systems
 
 .B Example
@@ -2486,9 +3340,15 @@ the uppercase and lowercase mappings appropriately.
 The above example allows filenames to have the swedish characters in
 them. 
 
+NOTE: It is actually quite difficult to correctly produce a "valid
+chars" line for a particular system. To automate the process
+tino@augsburg.net has written a package called "validchars" which will
+automatically produce a complete "valid chars" line for a given client
+system. Look in the examples subdirectory for this package.
+
 .SS valid users (S)
 This is a list of users that should be allowed to login to this
-service. A name starting with @ is interpreted as a unix group.
+service. A name starting with @ is interpreted as a UNIX group.
 
 If this is empty (the default) then any user can login. If a username
 is in both this list and the "invalid users" list then access is
@@ -2505,15 +3365,57 @@ 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 whos installation programs insist on a
+share. Useful for CDROMs with installation programs that insist on a
 particular volume label.
 
 The default is the name of the share
 
 .SS wide links (S)
-This parameter controls whether or not links in the Unix file system may be
+This parameter controls whether or not links in the UNIX file system may be
 followed by the server. Links that point to areas within the directory tree
 exported by the server are always allowed; this parameter controls access 
 only to areas that are outside the directory tree being exported.
@@ -2524,12 +3426,39 @@ only to areas that are outside the directory tree being exported.
 .B Example:
        wide links = no
 
+.SS wins proxy (G)
+
+This is a boolean that controls if nmbd will respond to broadcast name
+queries on behalf of other hosts. You may need to set this to no for
+some older clients.
+
+.B Default:
+       wins proxy = no
+.SS wins server (G)
+
+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 server = 
+
+.SS wins support (G)
+
+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 support = no
 .SS workgroup (G)
 
 This controls what workgroup your server will appear to be in when
-queried by clients. This can be different to the workgroup specified
-in the nmbd configuration, but it is probably best if you set them to
-the same value.
+queried by clients. 
 
 .B Default:
        set in the Makefile
@@ -2537,11 +3466,6 @@ the same value.
 .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'.
 
@@ -2576,6 +3500,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.
@@ -2595,15 +3524,15 @@ the following steps are not checked.
 If the service is marked "guest only = yes" then steps 1 to 5 are skipped
 
 Step 1: If the client has passed a username/password pair and that
-username/password pair is validated by the unix systems password
+username/password pair is validated by the UNIX system's password
 programs then the connection is made as that username. Note that this
-includes the \\\\server\\service%username method of passing a username.
+includes the \e\eserver\eservice%username method of passing a username.
 
 Step 2: 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.
 
-Step 3: The clients netbios name and any previously used user names
+Step 3: 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.
 
@@ -2614,7 +3543,7 @@ for this service.
 
 Step 5: If a "user = " field is given in the smb.conf file for the
 service and the client has supplied a password, and that password
-matches (according to the unix systems password checking) with one of
+matches (according to the UNIX system's password checking) with one of
 the usernames from the user= field then the connection is made as the
 username in the "user=" line. If one of the username in the user= list
 begins with a @ then that name expands to a list of names in the group
@@ -2623,8 +3552,6 @@ of the same name.
 Step 6: If the service is a guest service then a connection is made as
 the username given in the "guest account =" for the service,
 irrespective of the supplied password.
-
-
 .SH WARNINGS
 Although the configuration file permits service names to contain spaces, 
 your client software may not. Spaces will be ignored in comparisons anyway,
@@ -2641,7 +3568,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 
@@ -2653,27 +3580,25 @@ radically different (more primitive). If you are using a version earlier than
 1.8.05, it is STRONGLY recommended that you upgrade.
 .SH OPTIONS
 Not applicable.
-
 .SH FILES
 Not applicable.
-
 .SH ENVIRONMENT VARIABLES
 Not applicable.
-
 .SH SEE ALSO
-.B smbd(8),
-.B smbclient(1),
-.B nmbd(8),
-.B testparm(1), 
-.B testprns(1),
-.B lpq(1),
-.B hosts_access(5)
+.BR smbd (8),
+.BR smbclient (1),
+.BR nmbd (8),
+.BR testparm (1), 
+.BR testprns (1),
+.BR lpq (1),
+.BR hosts_access (5)
 .SH DIAGNOSTICS
 [This section under construction]
 
 Most diagnostics issued by the server are logged in a specified log file. The
 log file name is specified at compile time, but may be overridden on the
-smbd (see smbd(8)) command line.
+smbd command line (see
+.BR smbd (8)).
 
 The number and nature of diagnostics available depends on the debug level used
 by the server. If you have problems, set the debug level to 3 and peruse the
@@ -2684,26 +3609,25 @@ creation of this man page the source code is still too fluid to warrant
 describing each and every diagnostic. At this stage your best bet is still
 to grep the source code and inspect the conditions that gave rise to the 
 diagnostics you are seeing.
-
 .SH BUGS
 None known.
 
 Please send bug reports, comments and so on to:
 
 .RS 3
-.B samba-bugs@anu.edu.au (Andrew Tridgell)
+.B samba-bugs@samba.anu.edu.au (Andrew Tridgell)
 
 .RS 3
-or to the mailing list
+or to the mailing list:
 .RE
 
 .B samba@listproc.anu.edu.au
 
 .RE
-You may also like to subscribe to the announcement channel
+You may also like to subscribe to the announcement channel:
 
 .RS 3
-samba-announce@listproc.anu.edu.au
+.B samba-announce@listproc.anu.edu.au
 .RE
 
 To subscribe to these lists send a message to
@@ -2714,6 +3638,6 @@ Errors or suggestions for improvements to the Samba man pages should be
 mailed to:
 
 .RS 3
-.B samba-bugs@anu.edu.au (Andrew Tridgell)
+.B samba-bugs@samba.anu.edu.au (Andrew Tridgell)
 .RE