Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/docs/manpages/smb.conf.5

    r746 r860  
    22.\"     Title: smb.conf
    33.\"    Author: [see the "AUTHOR" section]
    4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
    5 .\"      Date: 10/29/2012
     4.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
     5.\"      Date: 09/18/2013
    66.\"    Manual: File Formats and Conventions
    77.\"    Source: Samba 3.6
    88.\"  Language: English
    99.\"
    10 .TH "SMB\&.CONF" "5" "10/29/2012" "Samba 3\&.6" "File Formats and Conventions"
     10.TH "SMB\&.CONF" "5" "09/18/2013" "Samba 3\&.6" "File Formats and Conventions"
     11.\" -----------------------------------------------------------------
     12.\" * Define some portability stuff
     13.\" -----------------------------------------------------------------
     14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     15.\" http://bugs.debian.org/507673
     16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
     17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     18.ie \n(.g .ds Aq \(aq
     19.el       .ds Aq '
    1120.\" -----------------------------------------------------------------
    1221.\" * set default formatting
     
    148157.IP \(bu 2.3
    149158.\}
    150 If no path was given, the path is set to the user\'s home directory\&.
     159If no path was given, the path is set to the user\*(Aqs home directory\&.
    151160.RE
    152161.sp
     
    200209This section works like [homes], but for printers\&.
    201210.PP
    202 If a [printers] section occurs in the configuration file, users are able to connect to any printer specified in the local host\'s printcap file\&.
     211If a [printers] section occurs in the configuration file, users are able to connect to any printer specified in the local host\*(Aqs printcap file\&.
    203212.PP
    204213When a connection request is made, the existing sections are scanned\&. If a match is found, it is used\&. If no match is found, but a [homes] section exists, it is used as described above\&. Otherwise, the requested section name is treated as a printer name and the appropriate printcap file is scanned to see if the requested section name is a valid printer share name\&. If a match is found, a new printer share is created by cloning the [printers] section\&.
     
    258267.\}
    259268.PP
    260 All aliases given for a printer in the printcap file are legitimate printer names as far as the server is concerned\&. If your printing subsystem doesn\'t work like that, you will have to set up a pseudo\-printcap\&. This is a file consisting of one or more lines like this:
     269All aliases given for a printer in the printcap file are legitimate printer names as far as the server is concerned\&. If your printing subsystem doesn\*(Aqt work like that, you will have to set up a pseudo\-printcap\&. This is a file consisting of one or more lines like this:
    261270.sp
    262271.if n \{\
     
    533542%p
    534543.RS 4
    535 the path of the service\'s home directory, obtained from your NIS auto\&.map entry\&. The NIS auto\&.map entry is split up as
     544the path of the service\*(Aqs home directory, obtained from your NIS auto\&.map entry\&. The NIS auto\&.map entry is split up as
    536545%N:%p\&.
    537546.RE
     
    544553Samba supports
    545554name mangling
    546 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\&.
     555so that DOS and Windows clients can use files that don\*(Aqt conform to the 8\&.3 format\&. It can also be set to adjust the case of 8\&.3 format filenames\&.
    547556.PP
    548557There are several options that control the way mangling is performed, and they are grouped here rather than listed separately\&. For the defaults look at the output of the testparm program\&.
     
    554563case sensitive = yes/no/auto
    555564.RS 4
    556 controls whether filenames are case sensitive\&. If they aren\'t, Samba must do a filename search and match on passed names\&. The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS and smbclient 3\&.0\&.5 and above currently) to tell the Samba server on a per\-packet basis that they wish to access the file system in a case\-sensitive manner (to support UNIX case sensitive semantics)\&. No Windows or DOS system supports case\-sensitive filename so setting this option to auto is that same as setting it to no for them\&. Default
     565controls whether filenames are case sensitive\&. If they aren\*(Aqt, Samba must do a filename search and match on passed names\&. The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS and smbclient 3\&.0\&.5 and above currently) to tell the Samba server on a per\-packet basis that they wish to access the file system in a case\-sensitive manner (to support UNIX case sensitive semantics)\&. No Windows or DOS system supports case\-sensitive filename so setting this option to auto is that same as setting it to no for them\&. Default
    557566\fIauto\fR\&.
    558567.RE
     
    560569default case = upper/lower
    561570.RS 4
    562 controls what the default case is for new filenames (ie\&. files that don\'t currently exist in the filesystem)\&. Default
     571controls what the default case is for new filenames (ie\&. files that don\*(Aqt currently exist in the filesystem)\&. Default
    563572\fIlower\fR\&. IMPORTANT NOTE: As part of the optimizations for directories containing large numbers of files, the following special case applies\&. If the options
    564573\m[blue]\fBcase sensitive = yes\fR\m[],
     
    572581preserve case = yes/no
    573582.RS 4
    574 controls whether new files (ie\&. files that don\'t currently exist in the filesystem) are created with the case that the client passes, or if they are forced to be the
     583controls whether new files (ie\&. files that don\*(Aqt currently exist in the filesystem) are created with the case that the client passes, or if they are forced to be the
    575584default
    576585case\&. Default
     
    580589short preserve case = yes/no
    581590.RS 4
    582 controls if new files (ie\&. files that don\'t currently exist in the filesystem) which conform to 8\&.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be the
     591controls if new files (ie\&. files that don\*(Aqt currently exist in the filesystem) which conform to 8\&.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be the
    583592default
    584593case\&. This option can be used with
     
    605614.IP "  1." 4.2
    606615.\}
    607 If the client has passed a username/password pair and that username/password pair is validated by the UNIX system\'s password programs, the connection is made as that username\&. This includes the
     616If the client has passed a username/password pair and that username/password pair is validated by the UNIX system\*(Aqs password programs, the connection is made as that username\&. This includes the
    608617\e\eserver\eservice%\fIusername\fR
    609618method of passing a username\&.
     
    629638.IP "  3." 4.2
    630639.\}
    631 The client\'s NetBIOS name and any previously used usernames are checked against the supplied password\&. If they match, the connection is allowed as the corresponding user\&.
     640The client\*(Aqs NetBIOS name and any previously used usernames are checked against the supplied password\&. If they match, the connection is allowed as the corresponding user\&.
    632641.RE
    633642.sp
     
    655664field is given in the
    656665smb\&.conf
    657 file for the service and the client has supplied a password, and that password matches (according to the UNIX system\'s password checking) with one of the usernames from the
     666file for the service and the client has supplied a password, and that password matches (according to the UNIX system\*(Aqs password checking) with one of the usernames from the
    658667user =
    659668field, the connection is made as the username in the
     
    787796.RS 4
    788797This boolean parameter controls what
    789 \fBsmbd\fR(8)does on receiving a protocol request of "open for delete" from a Windows client\&. If a Windows client doesn\'t have permissions to delete a file then they expect this to be denied at open time\&. POSIX systems normally only detect restrictions on delete by actually attempting to delete the file or directory\&. As Windows clients can (and do) "back out" a delete request by unsetting the "delete on close" bit Samba cannot delete the file immediately on "open for delete" request as we cannot restore such a deleted file\&. With this parameter set to true (the default) then smbd checks the file system permissions directly on "open for delete" and denies the request without actually deleting the file if the file system permissions would seem to deny it\&. This is not perfect, as it\'s possible a user could have deleted a file without Samba being able to check the permissions correctly, but it is close enough to Windows semantics for mostly correct behaviour\&. Samba will correctly check POSIX ACL semantics in this case\&.
    790 .sp
    791 If this parameter is set to "false" Samba doesn\'t check permissions on "open for delete" and allows the open\&. If the user doesn\'t have permission to delete the file this will only be discovered at close time, which is too late for the Windows user tools to display an error message to the user\&. The symptom of this is files that appear to have been deleted "magically" re\-appearing on a Windows explorer refresh\&. This is an extremely advanced protocol option which should not need to be changed\&. This parameter was introduced in its final form in 3\&.0\&.21, an earlier version with slightly different semantics was introduced in 3\&.0\&.20\&. That older version is not documented here\&.
     798\fBsmbd\fR(8)does on receiving a protocol request of "open for delete" from a Windows client\&. If a Windows client doesn\*(Aqt have permissions to delete a file then they expect this to be denied at open time\&. POSIX systems normally only detect restrictions on delete by actually attempting to delete the file or directory\&. As Windows clients can (and do) "back out" a delete request by unsetting the "delete on close" bit Samba cannot delete the file immediately on "open for delete" request as we cannot restore such a deleted file\&. With this parameter set to true (the default) then smbd checks the file system permissions directly on "open for delete" and denies the request without actually deleting the file if the file system permissions would seem to deny it\&. This is not perfect, as it\*(Aqs possible a user could have deleted a file without Samba being able to check the permissions correctly, but it is close enough to Windows semantics for mostly correct behaviour\&. Samba will correctly check POSIX ACL semantics in this case\&.
     799.sp
     800If this parameter is set to "false" Samba doesn\*(Aqt check permissions on "open for delete" and allows the open\&. If the user doesn\*(Aqt have permission to delete the file this will only be discovered at close time, which is too late for the Windows user tools to display an error message to the user\&. The symptom of this is files that appear to have been deleted "magically" re\-appearing on a Windows explorer refresh\&. This is an extremely advanced protocol option which should not need to be changed\&. This parameter was introduced in its final form in 3\&.0\&.21, an earlier version with slightly different semantics was introduced in 3\&.0\&.20\&. That older version is not documented here\&.
    792801.sp
    793802Default:
     
    877886This is the full pathname to a script that will be run by
    878887\fBsmbd\fR(8)
    879 when a machine is added to Samba\'s domain and a Unix account matching the machine\'s name appended with a "$" does not already exist\&.
     888when a machine is added to Samba\*(Aqs domain and a Unix account matching the machine\*(Aqs name appended with a "$" does not already exist\&.
    880889.sp
    881890This option is very similar to the
     
    10251034The
    10261035\fIaddprinter command\fR
    1027 program can output a single line of text, which Samba will set as the port the new printer is connected to\&. If this line isn\'t output, Samba won\'t reload its printer shares\&.
     1036program can output a single line of text, which Samba will set as the port the new printer is connected to\&. If this line isn\*(Aqt output, Samba won\*(Aqt reload its printer shares\&.
    10281037.sp
    10291038Default:
     
    13381347Setting this option to a larger value could be useful to sites transitioning from WinNT and Win2k, as existing user and group rids would otherwise clash with sytem users etc\&.
    13391348.sp
    1340 All UIDs and GIDs must be able to be resolved into SIDs for the correct operation of ACLs on the server\&. As such the algorithmic mapping can\'t be \'turned off\', but pushing it \'out of the way\' should resolve the issues\&. Users and groups can then be assigned \'low\' RIDs in arbitrary\-rid supporting backends\&.
     1349All UIDs and GIDs must be able to be resolved into SIDs for the correct operation of ACLs on the server\&. As such the algorithmic mapping can\*(Aqt be \*(Aqturned off\*(Aq, but pushing it \*(Aqout of the way\*(Aq should resolve the issues\&. Users and groups can then be assigned \*(Aqlow\*(Aq RIDs in arbitrary\-rid supporting backends\&.
    13411350.sp
    13421351Default:
     
    15091518is set then
    15101519nmbd
    1511 will check the source address of any packets coming in on the broadcast sockets and discard any that don\'t match the broadcast addresses of the interfaces in the
     1520will check the source address of any packets coming in on the broadcast sockets and discard any that don\*(Aqt match the broadcast addresses of the interfaces in the
    15121521\m[blue]\fBinterfaces\fR\m[]
    15131522parameter list\&. As unicast packets are received on the other sockets it allows
     
    15501559parameter list then
    15511560smbpasswd
    1552 will fail to connect in it\'s default mode\&.
     1561will fail to connect in it\*(Aqs default mode\&.
    15531562smbpasswd
    15541563can be forced to use the primary IP interface of the local host by using its
     
    16961705.PP
    16971706.RS 4
    1698 This parameter specifies whether Samba should reply to a client\'s file change notify requests\&.
     1707This parameter specifies whether Samba should reply to a client\*(Aqs file change notify requests\&.
    16991708.sp
    17001709You should never need to change this parameter
     
    18031812.PP
    18041813.RS 4
    1805 The name of a program that can be used to check password complexity\&. The password is sent to the program\'s standard input\&.
     1814The name of a program that can be used to check password complexity\&. The password is sent to the program\*(Aqs standard input\&.
    18061815.sp
    18071816The program must return 0 on a good password, or any other value if the password is bad\&. In case the password is considered weak (the program does not return 0) the user will be notified and the password change will fail\&.
     
    18961905client lanman auth\&.
    18971906.sp
    1898 Note that Windows Vista and later versions already use NTLMv2 by default, and some sites (particularly those following \'best practice\' security polices) only allow NTLMv2 responses, and not the weaker LM or NTLM\&.
     1907Note that Windows Vista and later versions already use NTLMv2 by default, and some sites (particularly those following \*(Aqbest practice\*(Aq security polices) only allow NTLMv2 responses, and not the weaker LM or NTLM\&.
    18991908.sp
    19001909Default:
     
    19591968If disabled, Samba will use the name used to look up the server when asking the KDC for a ticket\&. This avoids situations where a server may impersonate another, soliciting authentication as one principal while being known on the network as another\&.
    19601969.sp
    1961 Note that Windows XP SP2 and later versions already follow this behaviour, and Windows Vista and later servers no longer supply this \'rfc4178 hint\' principal on the server side\&.
     1970Note that Windows XP SP2 and later versions already follow this behaviour, and Windows Vista and later servers no longer supply this \*(Aqrfc4178 hint\*(Aq principal on the server side\&.
    19621971.sp
    19631972Default:
     
    20182027.sp
    20192028Example:
    2020 \fI\fIcomment\fR\fR\fI = \fR\fIFred\'s Files\fR\fI \fR
     2029\fI\fIcomment\fR\fR\fI = \fR\fIFred\*(Aqs Files\fR\fI \fR
    20212030.RE
    20222031
     
    20562065This option takes the usual substitutions, which can be very useful\&.
    20572066.sp
    2058 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)\&.
     2067If the config file doesn\*(Aqt exist then it won\*(Aqt be loaded (allowing you to special case the config files of just a few clients)\&.
    20592068.sp
    20602069\fINo default\fR
     
    20682077.PP
    20692078.RS 4
    2070 This parameter allows you to "clone" service entries\&. The specified service is simply duplicated under the current service\'s name\&. Any parameters specified in the current section will override those in the section being copied\&.
    2071 .sp
    2072 This feature lets you set up a \'template\' service and create similar services easily\&. Note that the service being copied must occur earlier in the configuration file than the service doing the copying\&.
     2079This parameter allows you to "clone" service entries\&. The specified service is simply duplicated under the current service\*(Aqs name\&. Any parameters specified in the current section will override those in the section being copied\&.
     2080.sp
     2081This feature lets you set up a \*(Aqtemplate\*(Aq service and create similar services easily\&. Note that the service being copied must occur earlier in the configuration file than the service doing the copying\&.
    20732082.sp
    20742083Default:
     
    21052114.PP
    21062115.RS 4
    2107 When a file is created, the necessary 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
     2116When a file is created, the necessary permissions are calculated according to the mapping from DOS modes to UNIX permissions, and the resulting UNIX mode is then bit\-wise \*(AqAND\*(Aqed with this parameter\&. This parameter may be thought of as a bit\-wise MASK for the UNIX modes of a file\&. Any bit
    21082117\fInot\fR
    21092118set here will be removed from the modes set on a file when it is created\&.
     
    21152124write and execute bits from the UNIX modes\&.
    21162125.sp
    2117 Following this Samba will bit\-wise \'OR\' the UNIX mode created from this parameter with the value of the
     2126Following this Samba will bit\-wise \*(AqOR\*(Aq the UNIX mode created from this parameter with the value of the
    21182127\m[blue]\fBforce create mode\fR\m[]
    21192128parameter which is set to 000 by default\&.
     
    22462255\fBcups\fR\&. Its value is a free form string of options passed directly to the cups library\&.
    22472256.sp
    2248 You can pass any generic print option known to CUPS (as listed in the CUPS "Software Users\' Manual")\&. You can also pass any printer specific option (as listed in "lpoptions \-d printername \-l") valid for the target queue\&. Multiple parameters should be space\-delimited name/value pairs according to the PAPI text option ABNF specification\&. Collection values ("name={a=\&.\&.\&. b=\&.\&.\&. c=\&.\&.\&.}") are stored with the curley brackets intact\&.
     2257You can pass any generic print option known to CUPS (as listed in the CUPS "Software Users\*(Aq Manual")\&. You can also pass any printer specific option (as listed in "lpoptions \-d printername \-l") valid for the target queue\&. Multiple parameters should be space\-delimited name/value pairs according to the PAPI text option ABNF specification\&. Collection values ("name={a=\&.\&.\&. b=\&.\&.\&. c=\&.\&.\&.}") are stored with the curley brackets intact\&.
    22492258.sp
    22502259You should set this parameter to
     
    22522261if your CUPS server
    22532262error_log
    2254 file contains messages such as "Unsupported format \'application/octet\-stream\'" when printing from a Windows client through Samba\&. It is no longer necessary to enable system wide raw printing in
     2263file contains messages such as "Unsupported format \*(Aqapplication/octet\-stream\*(Aq" when printing from a Windows client through Samba\&. It is no longer necessary to enable system wide raw printing in
    22552264/etc/cups/mime\&.{convs,types}\&.
    22562265.sp
     
    22922301The value of the parameter (a decimal integer) represents the number of minutes of inactivity before a connection is considered dead, and it is disconnected\&. The deadtime only takes effect if the number of open files is zero\&.
    22932302.sp
    2294 This is useful to stop a server\'s resources being exhausted by a large number of inactive connections\&.
     2303This is useful to stop a server\*(Aqs resources being exhausted by a large number of inactive connections\&.
    22952304.sp
    22962305Most clients have an auto\-reconnect feature when a connection is broken so in most cases this parameter should be transparent to users\&.
     
    24352444services\&. When smbd is serving Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba server has a Device Mode which defines things such as paper size and orientation and duplex settings\&. The device mode can only correctly be generated by the printer driver itself (which can only be executed on a Win32 platform)\&. Because smbd is unable to execute the driver code to generate the device mode, the default behavior is to set this field to NULL\&.
    24362445.sp
    2437 Most problems with serving printer drivers to Windows NT/2k/XP clients can be traced to a problem with the generated device mode\&. Certain drivers will do things such as crashing the client\'s Explorer\&.exe with a NULL devmode\&. However, other printer drivers can cause the client\'s spooler service (spoolsv\&.exe) to die if the devmode was not created by the driver itself (i\&.e\&. smbd generates a default devmode)\&.
     2446Most problems with serving printer drivers to Windows NT/2k/XP clients can be traced to a problem with the generated device mode\&. Certain drivers will do things such as crashing the client\*(Aqs Explorer\&.exe with a NULL devmode\&. However, other printer drivers can cause the client\*(Aqs spooler service (spoolsv\&.exe) to die if the devmode was not created by the driver itself (i\&.e\&. smbd generates a default devmode)\&.
    24382447.sp
    24392448This parameter should be used with care and tested with the printer driver in question\&. It is better to leave the device mode to NULL and let the Windows client set the correct values\&. Because drivers do not do this all the time, setting
     
    26452654when managing users with remote RPC (NT) tools\&.
    26462655.sp
    2647 This script is called when a remote client removes a user from the server, normally using \'User Manager for Domains\' or
     2656This script is called when a remote client removes a user from the server, normally using \*(AqUser Manager for Domains\*(Aq or
    26482657rpcclient\&.
    26492658.sp
     
    27282737 
    27292738#!/bin/sh
    2730 df $1 | tail \-1 | awk \'{print $(NF\-4),$(NF\-2)}\'
     2739df $1 | tail \-1 | awk \*(Aq{print $(NF\-4),$(NF\-2)}\*(Aq
    27312740.fi
    27322741.if n \{\
     
    27422751 
    27432752#!/bin/sh
    2744 /usr/bin/df \-k $1 | tail \-1 | awk \'{print $3" "$5}\'
     2753/usr/bin/df \-k $1 | tail \-1 | awk \*(Aq{print $3" "$5}\*(Aq
    27452754.fi
    27462755.if n \{\
     
    27722781This parameter is the octal modes which are used when converting DOS modes to UNIX modes when creating UNIX directories\&.
    27732782.sp
    2774 When a directory is created, the necessary 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
     2783When a directory is created, the necessary permissions are calculated according to the mapping from DOS modes to UNIX permissions, and the resulting UNIX mode is then bit\-wise \*(AqAND\*(Aqed with this parameter\&. This parameter may be thought of as a bit\-wise MASK for the UNIX modes of a directory\&. Any bit
    27752784\fInot\fR
    27762785set here will be removed from the modes set on a directory when it is created\&.
    27772786.sp
    2778 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\&.
    2779 .sp
    2780 Following this Samba will bit\-wise \'OR\' the UNIX mode created from this parameter with the value of the
     2787The default value of this parameter removes the \*(Aqgroup\*(Aq and \*(Aqother\*(Aq write bits from the UNIX mode, allowing only the user who owns the directory to modify it\&.
     2788.sp
     2789Following this Samba will bit\-wise \*(AqOR\*(Aq the UNIX mode created from this parameter with the value of the
    27812790\m[blue]\fBforce directory mode\fR\m[]
    27822791parameter\&. This parameter is set to 000 by default (i\&.e\&. no extra mode bits are added)\&.
     
    28082817This parameter controls what UNIX permission bits will be set when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog box\&.
    28092818.sp
    2810 This parameter is applied as a mask (AND\'ed with) to the incoming permission bits, thus resetting any bits not in this mask\&. Make sure not to mix up this parameter with
     2819This parameter is applied as a mask (AND\*(Aqed with) to the incoming permission bits, thus resetting any bits not in this mask\&. Make sure not to mix up this parameter with
    28112820\m[blue]\fBforce directory security mode\fR\m[], which works similar like this one but uses logical OR instead of AND\&. Essentially, zero bits in this mask are a set of bits that will always be set to zero\&.
    28122821.sp
     
    28432852.ps -1
    28442853.br
    2845 Clients that only support netbios won\'t be able to see your samba server when netbios support is disabled\&.
     2854Clients that only support netbios won\*(Aqt be able to see your samba server when netbios support is disabled\&.
    28462855.sp .5v
    28472856.RE
     
    28542863.PP
    28552864.RS 4
    2856 Enabling this parameter will disable Samba\'s support for the SPOOLSS set of MS\-RPC\'s and will yield identical behavior as Samba 2\&.0\&.x\&. Windows NT/2000 clients will downgrade to using Lanman style printing commands\&. Windows 9x/ME will be unaffected by the parameter\&. However, this will also disable the ability to upload printer drivers to a Samba server via the Windows NT Add Printer Wizard or by using the NT printer properties dialog window\&. It will also disable the capability of Windows NT/2000 clients to download print drivers from the Samba host upon demand\&.
     2865Enabling this parameter will disable Samba\*(Aqs support for the SPOOLSS set of MS\-RPC\*(Aqs and will yield identical behavior as Samba 2\&.0\&.x\&. Windows NT/2000 clients will downgrade to using Lanman style printing commands\&. Windows 9x/ME will be unaffected by the parameter\&. However, this will also disable the ability to upload printer drivers to a Samba server via the Windows NT Add Printer Wizard or by using the NT printer properties dialog window\&. It will also disable the capability of Windows NT/2000 clients to download print drivers from the Samba host upon demand\&.
    28572866\fIBe very careful about enabling this parameter\&.\fR
    28582867.sp
     
    29582967\m[blue]\fBdomain logons = Yes\fR\m[]
    29592968the default setting for this parameter is Yes, with the result that Samba will be a PDC\&. If
    2960 \m[blue]\fBdomain master = No\fR\m[], Samba will function as a BDC\&. In general, this parameter should be set to \'No\' only on a BDC\&.
     2969\m[blue]\fBdomain master = No\fR\m[], Samba will function as a BDC\&. In general, this parameter should be set to \*(AqNo\*(Aq only on a BDC\&.
    29612970.sp
    29622971Default:
     
    31803189This option is mainly used as a compatibility option for Visual C++ when used against Samba shares\&. Visual C++ generated makefiles have the object directory as a dependency for each object file, and a make rule to create the directory\&. Also, when NMAKE compares timestamps it uses the creation time when examining a directory\&. Thus the object directory will be created if it does not exist, but once it does exist it will always have an earlier timestamp than the object files it contains\&.
    31813190.sp
    3182 However, Unix time semantics mean that the create time reported by Samba will be updated whenever a file is created or or deleted in the directory\&. NMAKE finds all object files in the object directory\&. The timestamp of the last one built is then compared to the timestamp of the object directory\&. If the directory\'s timestamp if newer, then all object files will be rebuilt\&. Enabling this option ensures directories always predate their contents and an NMAKE build will proceed as expected\&.
     3191However, Unix time semantics mean that the create time reported by Samba will be updated whenever a file is created or or deleted in the directory\&. NMAKE finds all object files in the object directory\&. The timestamp of the last one built is then compared to the timestamp of the object directory\&. If the directory\*(Aqs timestamp if newer, then all object files will be rebuilt\&. Enabling this option ensures directories always predate their contents and an NMAKE build will proceed as expected\&.
    31833192.sp
    31843193Default:
     
    32333242This parameter specifies a set of UNIX mode bit permissions that will
    32343243\fIalways\fR
    3235 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 octal) 000\&. The modes in this parameter are bitwise \'OR\'ed onto the file mode after the mask set in the
     3244be set on a file created by Samba\&. This is done by bitwise \*(AqOR\*(Aqing these bits onto the mode bits of a file that is being created\&. The default for this parameter is (in octal) 000\&. The modes in this parameter are bitwise \*(AqOR\*(Aqed onto the file mode after the mask set in the
    32363245\fIcreate mask\fR
    32373246parameter is applied\&.
    32383247.sp
    3239 The example below would force all newly 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\'\&.
     3248The example below would force all newly created files to have read and execute permissions set for \*(Aqgroup\*(Aq and \*(Aqother\*(Aq as well as the read/write/execute bits set for the \*(Aquser\*(Aq\&.
    32403249.sp
    32413250Default:
     
    32523261This parameter specifies a set of UNIX mode bit permissions that will
    32533262\fIalways\fR
    3254 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 octal) 0000 which will not add any extra permission bits to a created directory\&. This operation is done after the mode mask in the parameter
     3263be set on a directory created by Samba\&. This is done by bitwise \*(AqOR\*(Aqing these bits onto the mode bits of a directory that is being created\&. The default for this parameter is (in octal) 0000 which will not add any extra permission bits to a created directory\&. This operation is done after the mode mask in the parameter
    32553264\fIdirectory mask\fR
    32563265is applied\&.
    32573266.sp
    3258 The example below 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\'\&.
     3267The example below would force all created directories to have read and execute permissions set for \*(Aqgroup\*(Aq and \*(Aqother\*(Aq as well as the read/write/execute bits set for the \*(Aquser\*(Aq\&.
    32593268.sp
    32603269Default:
     
    32713280This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a directory using the native NT security dialog box\&.
    32723281.sp
    3273 This parameter is applied as a mask (OR\'ed with) to the changed permission bits, thus forcing any bits in this mask that the user may have modified to be on\&. Make sure not to mix up this parameter with
     3282This parameter is applied as a mask (OR\*(Aqed with) to the changed permission bits, thus forcing any bits in this mask that the user may have modified to be on\&. Make sure not to mix up this parameter with
    32743283\m[blue]\fBdirectory security mask\fR\m[], which works in a similar manner to this one, but uses a logical AND instead of an OR\&.
    32753284.sp
     
    33133322This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service\&. This is useful for sharing files by ensuring that all access to files on service will use the named group for their permissions checking\&. Thus, by assigning permissions for this group to the files and directories within this service the Samba administrator can restrict or allow sharing of these files\&.
    33143323.sp
    3315 In Samba 2\&.0\&.5 and above this parameter has extended functionality in the following way\&. If the group name listed here has a \'+\' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group\&. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group\&. This gives a finer granularity of ownership assignment\&. For example, the setting
     3324In Samba 2\&.0\&.5 and above this parameter has extended functionality in the following way\&. If the group name listed here has a \*(Aq+\*(Aq character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group\&. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group\&. This gives a finer granularity of ownership assignment\&. For example, the setting
    33163325force group = +sys
    33173326means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share\&. All other users will retain their ordinary primary group\&.
     
    33413350option)\&.
    33423351.sp
    3343 When assigning a new driver to a printer on a remote Windows compatible print server such as Samba, the Windows client will rename the printer to match the driver name just uploaded\&. This can result in confusion for users when multiple printers are bound to the same driver\&. To prevent Samba from allowing the printer\'s printername to differ from the sharename defined in smb\&.conf, set
     3352When assigning a new driver to a printer on a remote Windows compatible print server such as Samba, the Windows client will rename the printer to match the driver name just uploaded\&. This can result in confusion for users when multiple printers are bound to the same driver\&. To prevent Samba from allowing the printer\*(Aqs printername to differ from the sharename defined in smb\&.conf, set
    33443353\fIforce printername = yes\fR\&.
    33453354.sp
    33463355Be aware that enabling this parameter may affect migrating printers from a Windows server to Samba since Windows has no way to force the sharename and printername to match\&.
    33473356.sp
    3348 It is recommended that this parameter\'s value not be changed once the printer is in use by clients as this could cause a user not be able to delete printer connections from their local Printers folder\&.
     3357It is recommended that this parameter\*(Aqs value not be changed once the printer is in use by clients as this could cause a user not be able to delete printer connections from their local Printers folder\&.
    33493358.sp
    33503359Default:
     
    33583367This parameter controls what UNIX permission bits can be modified when a Windows NT client is manipulating the UNIX permission on a file using the native NT security dialog box\&.
    33593368.sp
    3360 This parameter is applied as a mask (OR\'ed with) to the changed permission bits, thus forcing any bits in this mask that the user may have modified to be on\&. Make sure not to mix up this parameter with
     3369This parameter is applied as a mask (OR\*(Aqed with) to the changed permission bits, thus forcing any bits in this mask that the user may have modified to be on\&. Make sure not to mix up this parameter with
    33613370\m[blue]\fBsecurity mask\fR\m[], which works similar like this one but uses logical AND instead of OR\&.
    33623371.sp
     
    37293738.PP
    37303739.RS 4
    3731 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\&.
    3732 .sp
    3733 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\&.
    3734 .sp
    3735 Each entry must be a Unix path, not a DOS path and must not include the Unix directory separator \'/\'\&.
     3740This is a list of files or directories that are not visible but are accessible\&. The DOS \*(Aqhidden\*(Aq attribute is applied to any files or directories that match\&.
     3741.sp
     3742Each entry in the list must be separated by a \*(Aq/\*(Aq, which allows spaces to be included in the entry\&. \*(Aq*\*(Aq and \*(Aq?\*(Aq can be used to specify multiple files or directories as in DOS wildcards\&.
     3743.sp
     3744Each entry must be a Unix path, not a DOS path and must not include the Unix directory separator \*(Aq/\*(Aq\&.
    37363745.sp
    37373746Note that the case sensitivity option is applicable in hiding files\&.
     
    37633772.PP
    37643773.RS 4
    3765 This parameter prevents clients from seeing special files such as sockets, devices and fifo\'s in directory listings\&.
     3774This parameter prevents clients from seeing special files such as sockets, devices and fifo\*(Aqs in directory listings\&.
    37663775.sp
    37673776Default:
     
    38003809is also acting as a Win95/98
    38013810\fIlogon server\fR
    3802 then this parameter specifies the NIS (or YP) map from which the server for the user\'s home directory should be extracted\&. At present, only the Sun auto\&.home map format is understood\&. The form of the map is:
     3811then this parameter specifies the NIS (or YP) map from which the server for the user\*(Aqs home directory should be extracted\&. At present, only the Sun auto\&.home map format is understood\&. The form of the map is:
    38033812.sp
    38043813.if n \{\
     
    38123821.\}
    38133822.sp
    3814 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\&.
     3823and the program will extract the servername from before the first \*(Aq:\*(Aq\&. There should probably be a better parsing system that copes with different map formats and also Amd (another automounter) maps\&.
    38153824.if n \{\
    38163825.sp
     
    39893998.PP
    39903999.RS 4
    3991 This parameter specifies the number of seconds that Winbind\'s idmap interface will cache positive SID/uid/gid query results\&.
     4000This parameter specifies the number of seconds that Winbind\*(Aqs idmap interface will cache positive SID/uid/gid query results\&.
    39924001.sp
    39934002Default:
     
    39994008.PP
    40004009.RS 4
    4001 ID mapping in Samba is the mapping between Windows SIDs and Unix user and group IDs\&. This is performed by Winbindd with a configurable plugin interface\&. Samba\'s ID mapping is configured by options starting with the
     4010ID mapping in Samba is the mapping between Windows SIDs and Unix user and group IDs\&. This is performed by Winbindd with a configurable plugin interface\&. Samba\*(Aqs ID mapping is configured by options starting with the
    40024011\m[blue]\fBidmap config\fR\m[]
    40034012prefix\&. An idmap option consists of the
     
    40824091.PP
    40834092.RS 4
    4084 This parameter specifies the number of seconds that Winbind\'s idmap interface will cache negative SID/uid/gid query results\&.
     4093This parameter specifies the number of seconds that Winbind\*(Aqs idmap interface will cache negative SID/uid/gid query results\&.
    40854094.sp
    40864095Default:
     
    41574166The ownership of new files and directories is normally governed by effective uid of the connected user\&. This option allows the Samba administrator to specify that the ownership for new files and directories should be controlled by the ownership of the parent directory\&.
    41584167.sp
    4159 Common scenarios where this behavior is useful is in implementing drop\-boxes where users can create and edit files but not delete them and to ensure that newly create files in a user\'s roaming profile directory are actually owner by the user\&.
     4168Common scenarios where this behavior is useful is in implementing drop\-boxes where users can create and edit files but not delete them and to ensure that newly create files in a user\*(Aqs roaming profile directory are actually owner by the user\&.
    41604169.sp
    41614170Default:
     
    42774286The "mask" parameters can either be a bit length (such as 24 for a C class network) or a full netmask in dotted decimal form\&.
    42784287.sp
    4279 The "IP" parameters above can either be a full dotted decimal IP address or a hostname which will be looked up via the OS\'s normal hostname resolution mechanisms\&.
     4288The "IP" parameters above can either be a full dotted decimal IP address or a hostname which will be looked up via the OS\*(Aqs normal hostname resolution mechanisms\&.
    42804289.sp
    42814290By default Samba enables all active interfaces that are broadcast capable except the loopback adaptor (IP address 127\&.0\&.0\&.1)\&.
     
    42984307check to absolutely ensure an improper setting does not breach your security\&.
    42994308.sp
    4300 A name starting with a \'@\' is interpreted as an NIS netgroup first (if your system supports NIS), and then as a UNIX group if the name was not found in the NIS netgroup database\&.
    4301 .sp
    4302 A name starting with \'+\' is interpreted only by looking in the UNIX group database via the NSS getgrnam() interface\&. A name starting with \'&\' is interpreted only by looking in the NIS netgroup database (this requires NIS to be working on your system)\&. The characters \'+\' and \'&\' may be used at the start of the name in either order so the value
     4309A name starting with a \*(Aq@\*(Aq is interpreted as an NIS netgroup first (if your system supports NIS), and then as a UNIX group if the name was not found in the NIS netgroup database\&.
     4310.sp
     4311A name starting with \*(Aq+\*(Aq is interpreted only by looking in the UNIX group database via the NSS getgrnam() interface\&. A name starting with \*(Aq&\*(Aq is interpreted only by looking in the NIS netgroup database (this requires NIS to be working on your system)\&. The characters \*(Aq+\*(Aq and \*(Aq&\*(Aq may be used at the start of the name in either order so the value
    43034312\fI+&group\fR
    43044313means check the UNIX group database, followed by the NIS netgroup database, and the value
    43054314\fI&+group\fR
    4306 means check the NIS netgroup database, followed by the UNIX group database (the same as the \'@\' prefix)\&.
     4315means check the NIS netgroup database, followed by the UNIX group database (the same as the \*(Aq@\*(Aq prefix)\&.
    43074316.sp
    43084317The current servicename is substituted for
     
    44634472When this parameter is set to
    44644473no
    4465 this will also result in sambaLMPassword in Samba\'s passdb being blanked after the next password change\&. As a result of that lanman clients won\'t be able to authenticate, even if lanman auth is reenabled later on\&.
     4474this will also result in sambaLMPassword in Samba\*(Aqs passdb being blanked after the next password change\&. As a result of that lanman clients won\*(Aqt be able to authenticate, even if lanman auth is reenabled later on\&.
    44664475.sp
    44674476Unlike the
     
    44694478option, this parameter cannot alter client behaviour, and the LANMAN response will still be sent over the network\&. See the
    44704479client lanman auth
    4471 to disable this for Samba\'s clients (such as smbclient)
     4480to disable this for Samba\*(Aqs clients (such as smbclient)
    44724481.sp
    44734482If this option, and
     
    45394548for tracing function calls\&.
    45404549.sp
    4541 The debug ouput from the LDAP libraries appears with the prefix [LDAP] in Samba\'s logging output\&. The level at which LDAP logging is printed is controlled by the parameter
     4550The debug ouput from the LDAP libraries appears with the prefix [LDAP] in Samba\*(Aqs logging output\&. The level at which LDAP logging is printed is controlled by the parameter
    45424551\fIldap debug threshold\fR\&.
    45434552.sp
     
    46024611\fIoff\fR
    46034612to disable this, and
    4604 \fIauto\fR, to use the libldap default settings\&. libldap\'s choice of following referrals or not is set in /etc/openldap/ldap\&.conf with the REFERRALS parameter as documented in ldap\&.conf(5)\&.
     4613\fIauto\fR, to use the libldap default settings\&. libldap\*(Aqs choice of following referrals or not is set in /etc/openldap/ldap\&.conf with the REFERRALS parameter as documented in ldap\&.conf(5)\&.
    46054614.sp
    46064615Default:
     
    47324741.PP
    47334742.RS 4
    4734 When Samba is asked to write to a read\-only LDAP replica, we are redirected to talk to the read\-write master server\&. This server then replicates our changes back to the \'local\' server, however the replication might take some seconds, especially over slow links\&. Certain client activities, particularly domain joins, can become confused by the \'success\' that does not immediately change the LDAP back\-end\'s data\&.
     4743When Samba is asked to write to a read\-only LDAP replica, we are redirected to talk to the read\-write master server\&. This server then replicates our changes back to the \*(Aqlocal\*(Aq server, however the replication might take some seconds, especially over slow links\&. Certain client activities, particularly domain joins, can become confused by the \*(Aqsuccess\*(Aq that does not immediately change the LDAP back\-end\*(Aqs data\&.
    47354744.sp
    47364745This option simply causes Samba to wait a short time, to allow the LDAP server to catch up\&. If you have a particularly high\-latency network, you may wish to time the LDAP replication with a network sniffer, and increase this value accordingly\&. Be aware that no checking is performed that the data has actually replicated\&.
     
    48564865This option is used to define whether or not Samba should use SSL when connecting to the ldap server using
    48574866\fIads\fR
    4858 methods\&. Rpc methods are not affected by this parameter\&. Please note, that this parameter won\'t have any effect if
     4867methods\&. Rpc methods are not affected by this parameter\&. Please note, that this parameter won\*(Aqt have any effect if
    48594868\m[blue]\fBldap ssl\fR\m[]
    48604869is set to
     
    48764885This option is used to define whether or not Samba should use SSL when connecting to the ldap server This is
    48774886\fINOT\fR
    4878 related to Samba\'s previous SSL support which was enabled by specifying the
     4887related to Samba\*(Aqs previous SSL support which was enabled by specifying the
    48794888\-\-with\-ssl
    48804889option to the
     
    50795088\fByes\fR\&. Setting this value to
    50805089\fByes\fR
    5081 doesn\'t mean that Samba will
     5090doesn\*(Aqt mean that Samba will
    50825091\fIbecome\fR
    50835092the local master browser on a subnet, just that
     
    54605469This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&.
    54615470.sp
    5462 This parameter can be used with Win9X workstations to ensure that roaming profiles are stored in a subdirectory of the user\'s home directory\&. This is done in the following way:
     5471This parameter can be used with Win9X workstations to ensure that roaming profiles are stored in a subdirectory of the user\*(Aqs home directory\&. This is done in the following way:
    54635472.sp
    54645473
     
    56185627This parameter specifies the command to be executed on the server host in order to stop printing or spooling a specific print job\&.
    56195628.sp
    5620 This command should be a program or script which takes a printer name and job number to pause the print job\&. One way of implementing this is by using job priorities, where jobs having a too low priority won\'t be sent to the printer\&.
     5629This command should be a program or script which takes a printer name and job number to pause the print job\&. One way of implementing this is by using job priorities, where jobs having a too low priority won\*(Aqt be sent to the printer\&.
    56215630.sp
    56225631If a
     
    56485657command used by the system, so if you use different
    56495658lpq
    5650 commands for different users then they won\'t share cache information\&.
     5659commands for different users then they won\*(Aqt share cache information\&.
    56515660.sp
    56525661The cache files are stored in
     
    59005909Note that the character to use may be specified using the
    59015910\m[blue]\fBmangling char\fR\m[]
    5902 option, if you don\'t like \'~\'\&.
    5903 .RE
    5904 .sp
    5905 .RS 4
    5906 .ie n \{\
    5907 \h'-04'\(bu\h'+03'\c
    5908 .\}
    5909 .el \{\
    5910 .sp -1
    5911 .IP \(bu 2.3
    5912 .\}
    5913 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)\&.
     5911option, if you don\*(Aqt like \*(Aq~\*(Aq\&.
     5912.RE
     5913.sp
     5914.RS 4
     5915.ie n \{\
     5916\h'-04'\(bu\h'+03'\c
     5917.\}
     5918.el \{\
     5919.sp -1
     5920.IP \(bu 2.3
     5921.\}
     5922Files 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\*(Aqs three underscores)\&.
    59145923.RE
    59155924.sp
     
    59475956\fImagic\fR
    59485957character in
    5949 \m[blue]\fBname mangling\fR\m[]\&. The default is a \'~\' but this may interfere with some software\&. Use this option to set it to whatever you prefer\&. This is effective only when mangling method is hash\&.
     5958\m[blue]\fBname mangling\fR\m[]\&. The default is a \*(Aq~\*(Aq but this may interfere with some software\&. Use this option to set it to whatever you prefer\&. This is effective only when mangling method is hash\&.
    59505959.sp
    59515960Default:
     
    59755984This boolean parameter controls whether
    59765985\fBsmbd\fR(8)
    5977 will attempt to map the \'inherit\' and \'protected\' access control entry flags stored in Windows ACLs into an extended attribute called user\&.SAMBA_PAI\&. This parameter only takes effect if Samba is being run on a platform that supports extended attributes (Linux and IRIX so far) and allows the Windows 2000 ACL editor to correctly use inheritance with the Samba POSIX ACL mapping code\&.
     5986will attempt to map the \*(Aqinherit\*(Aq and \*(Aqprotected\*(Aq access control entry flags stored in Windows ACLs into an extended attribute called user\&.SAMBA_PAI\&. This parameter only takes effect if Samba is being run on a platform that supports extended attributes (Linux and IRIX so far) and allows the Windows 2000 ACL editor to correctly use inheritance with the Samba POSIX ACL mapping code\&.
    59785987.sp
    59795988Default:
     
    61126121This parameter can take four different values, which tell
    61136122\fBsmbd\fR(8)
    6114 what to do with user login requests that don\'t match a valid UNIX user in some way\&.
     6123what to do with user login requests that don\*(Aqt match a valid UNIX user in some way\&.
    61156124.sp
    61166125The four settings are :
     
    61946203.PP
    61956204.RS 4
    6196 If a client connects to smbd using an untrusted domain name, such as BOGUS\euser, smbd replaces the BOGUS domain with it\'s SAM name before attempting to authenticate that user\&. In the case where smbd is acting as a PDC this will be DOMAIN\euser\&. In the case where smbd is acting as a domain member server or a standalone server this will be WORKSTATION\euser\&.
     6205If a client connects to smbd using an untrusted domain name, such as BOGUS\euser, smbd replaces the BOGUS domain with it\*(Aqs SAM name before attempting to authenticate that user\&. In the case where smbd is acting as a PDC this will be DOMAIN\euser\&. In the case where smbd is acting as a domain member server or a standalone server this will be WORKSTATION\euser\&.
    61976206.sp
    61986207In previous versions of Samba (pre 3\&.4), if smbd was acting as a domain member server, the BOGUS domain name would instead be replaced by the primary domain which smbd was a member of\&. In this case authentication would be deferred off to a DC using the credentials DOMAIN\euser\&.
     
    62346243\fImax disk size\fR\&.
    62356244.sp
    6236 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\&.
     6245This option is primarily useful to work around bugs in some pieces of software that can\*(Aqt handle very large disks, particularly disks over 1GB in size\&.
    62376246.sp
    62386247A
     
    63846393.IP \(bu 2.3
    63856394.\}
    6386 \fBSMB2\fR: Re\-implementation of the SMB protocol\&. Used by Windows Vista and newer\&. The Samba implementation of SMB2 is currently marked experimental!
     6395\fBSMB2\fR: Re\-implementation of the SMB protocol\&. Used by Windows Vista and newer\&.
    63876396.RE
    63886397.sp
     
    64486457This option tells
    64496458\fBnmbd\fR(8)
    6450 what the default \'time to live\' of NetBIOS names should be (in seconds) when
     6459what the default \*(Aqtime to live\*(Aq of NetBIOS names should be (in seconds) when
    64516460nmbd
    64526461is requesting a name using either a broadcast packet or from a WINS server\&. You should never need to change this parameter\&. The default is 3 days\&.
     
    64626471This option tells
    64636472\fBsmbd\fR(8)
    6464 when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the maximum \'time to live\' of NetBIOS names that
     6473when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the maximum \*(Aqtime to live\*(Aq of NetBIOS names that
    64656474nmbd
    64666475will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 days (518400 seconds)\&.
     
    64976506.\}
    64986507.nf
    6499 message command = csh \-c \'xedit %s;rm %s\' &
     6508message command = csh \-c \*(Aqxedit %s;rm %s\*(Aq &
    65006509.fi
    65016510.if n \{\
     
    65056514This delivers the message using
    65066515xedit, then removes it afterwards\&.
    6507 \fINOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN IMMEDIATELY\fR\&. That\'s why I have the \'&\' on the end\&. If it doesn\'t return immediately then your PCs may freeze when sending messages (they should recover after 30 seconds, hopefully)\&.
     6516\fINOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN IMMEDIATELY\fR\&. That\*(Aqs why I have the \*(Aq&\*(Aq on the end\&. If it doesn\*(Aqt return immediately then your PCs may freeze when sending messages (they should recover after 30 seconds, hopefully)\&.
    65086517.sp
    65096518All messages are delivered as the global guest user\&. The command takes the standard substitutions, although
    65106519\fI %u\fR
    6511 won\'t work (\fI%U\fR
     6520won\*(Aqt work (\fI%U\fR
    65126521may be better in this case)\&.
    65136522.sp
     
    65536562You could make this command send mail, or whatever else takes your fancy\&. Please let us know of any really interesting ideas you have\&.
    65546563.sp
    6555 Here\'s a way of sending the messages as mail to root:
     6564Here\*(Aqs a way of sending the messages as mail to root:
    65566565.sp
    65576566.if n \{\
     
    65596568.\}
    65606569.nf
    6561 message command = /bin/mail \-s \'message from %f on %m\' root < %s; rm %s
     6570message command = /bin/mail \-s \*(Aqmessage from %f on %m\*(Aq root < %s; rm %s
    65626571.fi
    65636572.if n \{\
     
    65656574.\}
    65666575.sp
    6567 If you don\'t have a message command then the message won\'t be delivered and Samba will tell the sender there was an error\&. Unfortunately WfWg totally ignores the error code and carries on regardless, saying that the message was delivered\&.
     6576If you don\*(Aqt have a message command then the message won\*(Aqt be delivered and Samba will tell the sender there was an error\&. Unfortunately WfWg totally ignores the error code and carries on regardless, saying that the message was delivered\&.
    65686577.sp
    65696578If you want to silently delete it then try:
     
    65836592.sp
    65846593Example:
    6585 \fI\fImessage command\fR\fR\fI = \fR\fIcsh \-c \'xedit %s; rm %s\' &\fR\fI \fR
     6594\fI\fImessage command\fR\fR\fI = \fR\fIcsh \-c \*(Aqxedit %s; rm %s\*(Aq &\fR\fI \fR
    65866595.RE
    65876596
     
    66426651This option tells
    66436652\fBnmbd\fR(8)
    6644 when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the minimum \'time to live\' of NetBIOS names that
     6653when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the minimum \*(Aqtime to live\*(Aq of NetBIOS names that
    66456654nmbd
    66466655will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 hours (21600 seconds)\&.
     
    66976706.PP
    66986707.RS 4
    6699 Specifies the number of seconds it takes before entries in samba\'s hostname resolve cache time out\&. If the timeout is set to 0\&. the caching is disabled\&.
     6708Specifies the number of seconds it takes before entries in samba\*(Aqs hostname resolve cache time out\&. If the timeout is set to 0\&. the caching is disabled\&.
    67006709.sp
    67016710Default:
     
    67956804.sp
    67966805\&.
    6797         This will allow Samba and other unix processes to interact over DCE/RPC without using TCP/IP\&. Additionally a sub\-directory \'np\' has restricted permissions, and allows a trusted communication channel between Samba processes
     6806        This will allow Samba and other unix processes to interact over DCE/RPC without using TCP/IP\&. Additionally a sub\-directory \*(Aqnp\*(Aq has restricted permissions, and allows a trusted communication channel between Samba processes
    67986807.sp
    67996808Default:
     
    68216830.PP
    68226831.RS 4
    6823 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\&.
     6832This sets the NetBIOS name by which a Samba server is known\&. By default it is the same as the first component of the host\*(Aqs 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\&.
    68246833.sp
    68256834There is a bug in Samba\-3 that breaks operation of browsing and access to shares if the netbios name is set to the literal name
     
    68486857.PP
    68496858.RS 4
    6850 Get the home share server from a NIS map\&. For UNIX systems that use an automounter, the user\'s home directory will often be mounted on a workstation on demand from a remote server\&.
     6859Get the home share server from a NIS map\&. For UNIX systems that use an automounter, the user\*(Aqs home directory will often be mounted on a workstation on demand from a remote server\&.
    68516860.sp
    68526861When the Samba logon server is not the actual home directory server, but is mounting the home directories via NFS then two network hops would be required to access the users home directory if the logon server told the client to use itself as the SMB server for home directories (one over SMB and one over NFS)\&. This can be very slow\&.
     
    69516960.PP
    69526961.RS 4
    6953 When Samba 3\&.0 is configured to enable PAM support (i\&.e\&. \-\-with\-pam), this parameter will control whether or not Samba should obey PAM\'s account and session management directives\&. The default behavior is to use PAM for clear text authentication only and to ignore any account or session management\&. Note that Samba always ignores PAM for authentication in the case of
     6962When Samba 3\&.0 is configured to enable PAM support (i\&.e\&. \-\-with\-pam), this parameter will control whether or not Samba should obey PAM\*(Aqs account and session management directives\&. The default behavior is to use PAM for clear text authentication only and to ignore any account or session management\&. Note that Samba always ignores PAM for authentication in the case of
    69546963\m[blue]\fBencrypt passwords = yes\fR\m[]\&. The reason is that PAM modules cannot support the challenge/response authentication mechanism needed in the presence of SMB password encryption\&.
    69556964.sp
     
    69706979level security\&.
    69716980.sp
    6972 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
     6981Note that this also means Samba won\*(Aqt try to deduce usernames from the service name\&. This can be annoying for the [homes] section\&. To get around this you could use
    69736982user = %S
    69746983which means your
     
    70987107.PP
    70997108.RS 4
    7100 With the addition of better PAM support in Samba 2\&.2, this parameter, it is possible to use PAM\'s password change control flag for Samba\&. If enabled, then PAM will be used for password changes when requested by an SMB client instead of the program listed in
     7109With the addition of better PAM support in Samba 2\&.2, this parameter, it is possible to use PAM\*(Aqs password change control flag for Samba\&. If enabled, then PAM will be used for password changes when requested by an SMB client instead of the program listed in
    71017110\m[blue]\fBpasswd program\fR\m[]\&. It should be possible to enable this without changing your
    71027111\m[blue]\fBpasswd chat\fR\m[]
     
    71427151This option allows the administrator to chose which backend will be used for storing user and possibly group information\&. This allows you to swap between different storage mechanisms without recompile\&.
    71437152.sp
    7144 The parameter value is divided into two parts, the backend\'s name, and a \'location\' string that has meaning only to that particular backed\&. These are separated by a : character\&.
     7153The parameter value is divided into two parts, the backend\*(Aqs name, and a \*(Aqlocation\*(Aq string that has meaning only to that particular backed\&. These are separated by a : character\&.
    71457154.sp
    71467155Available backends can include:
     
    72227231.PP
    72237232.RS 4
    7224 This parameter controls whether Samba substitutes %\-macros in the passdb fields if they are explicitly set\&. We used to expand macros here, but this turned out to be a bug because the Windows client can expand a variable %G_osver% in which %G would have been substituted by the user\'s primary group\&.
     7233This parameter controls whether Samba substitutes %\-macros in the passdb fields if they are explicitly set\&. We used to expand macros here, but this turned out to be a bug because the Windows client can expand a variable %G_osver% in which %G would have been substituted by the user\*(Aqs primary group\&.
    72257234.sp
    72267235Default:
     
    72707279conversation that takes places between
    72717280\fBsmbd\fR(8)
    7272 and the local password changing program to change the user\'s password\&. The string describes a sequence of response\-receive pairs that
     7281and the local password changing program to change the user\*(Aqs password\&. The string describes a sequence of response\-receive pairs that
    72737282\fBsmbd\fR(8)
    72747283uses to determine what to send to the
     
    72837292\fByes\fR\&. This sequence is then called
    72847293\fIAS ROOT\fR
    7285 when the SMB password in the smbpasswd file is being changed, without access to the old password cleartext\&. This means that root must be able to reset the user\'s password without knowing the text of the previous password\&. In the presence of NIS/YP, this means that the
     7294when the SMB password in the smbpasswd file is being changed, without access to the old password cleartext\&. This means that root must be able to reset the user\*(Aqs password without knowing the text of the previous password\&. In the presence of NIS/YP, this means that the
    72867295\m[blue]\fBpasswd program\fR\m[]
    72877296must be executed on the NIS master\&.
     
    72917300which is substituted for the new password\&. The old passsword (\fI%o\fR) is only available when
    72927301\m[blue]\fBencrypt passwords\fR\m[]
    7293 has been disabled\&. The chat sequence can also contain the standard macros \en, \er, \et and \es to give line\-feed, carriage\-return, tab and space\&. The chat sequence string can also contain a \'*\' which matches any sequence of characters\&. Double quotes can be used to collect strings with spaces in them into a single string\&.
     7302has been disabled\&. The chat sequence can also contain the standard macros \en, \er, \et and \es to give line\-feed, carriage\-return, tab and space\&. The chat sequence string can also contain a \*(Aq*\*(Aq which matches any sequence of characters\&. Double quotes can be used to collect strings with spaces in them into a single string\&.
    72947303.sp
    72957304If the send string in any part of the chat sequence is a full stop "\&.", then no string is sent\&. Similarly, if the expect string is a full stop then no string is expected\&.
     
    73997408\fBads\fR, then this option
    74007409\fIshould not\fR
    7401 be used, as the default \'*\' indicates to Samba to determine the best DC to contact dynamically, just as all other hosts in an AD domain do\&. This allows the domain to be maintained without modification to the smb\&.conf file\&. The cryptograpic protection on the authenticated RPC calls used to verify passwords ensures that this default is safe\&.
    7402 .sp
    7403 \fIIt is strongly recommended that you use the default of \'*\'\fR, however if in your particular environment you have reason to specify a particular DC list, then the list of machines in this option must be a list of names or IP addresses of Domain controllers for the Domain\&. If you use the default of \'*\', or list several hosts in the
     7410be used, as the default \*(Aq*\*(Aq indicates to Samba to determine the best DC to contact dynamically, just as all other hosts in an AD domain do\&. This allows the domain to be maintained without modification to the smb\&.conf file\&. The cryptograpic protection on the authenticated RPC calls used to verify passwords ensures that this default is safe\&.
     7411.sp
     7412\fIIt is strongly recommended that you use the default of \*(Aq*\*(Aq\fR, however if in your particular environment you have reason to specify a particular DC list, then the list of machines in this option must be a list of names or IP addresses of Domain controllers for the Domain\&. If you use the default of \*(Aq*\*(Aq, or list several hosts in the
    74047413\fIpassword server\fR
    74057414option then
     
    74077416will try each in turn till it finds one that responds\&. This is useful in case your primary server goes down\&.
    74087417.sp
    7409 If the list of servers contains both names/IP\'s and the \'*\' character, the list is treated as a list of preferred domain controllers, but an auto lookup of all remaining DC\'s will be added to the list as well\&. Samba will not attempt to optimize this list by locating the closest DC\&.
     7418If the list of servers contains both names/IP\*(Aqs and the \*(Aq*\*(Aq character, the list is treated as a list of preferred domain controllers, but an auto lookup of all remaining DC\*(Aqs will be added to the list as well\&. Samba will not attempt to optimize this list by locating the closest DC\&.
    74107419.sp
    74117420If parameter is a name, it is looked up using the parameter
     
    74807489.\}
    74817490Using a password server means your UNIX box (running Samba) is only as secure as (a host masqurading as) your password server\&.
    7482 \fIDO NOT CHOOSE A PASSWORD SERVER THAT YOU DON\'T COMPLETELY TRUST\fR\&.
     7491\fIDO NOT CHOOSE A PASSWORD SERVER THAT YOU DON\*(AqT COMPLETELY TRUST\fR\&.
    74837492.RE
    74847493.sp
     
    75317540This parameter specifies a directory to which the user of the service is to be given access\&. In the case of printable services, this is where print data will spool prior to being submitted to the host for printing\&.
    75327541.sp
    7533 For a printable service offering guest access, the service should be readonly and the path should be world\-writeable 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\&.
     7542For a printable service offering guest access, the service should be readonly and the path should be world\-writeable and have the sticky bit set\&. This is not mandatory of course, but you probably won\*(Aqt get the results you expect if you do otherwise\&.
    75347543.sp
    75357544Any occurrences of
     
    76307639.sp
    76317640
    7632 preexec = csh \-c \'echo \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient \-M %m \-I %I\' &
     7641preexec = csh \-c \*(Aqecho \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient \-M %m \-I %I\*(Aq &
    76337642.sp
    76347643Of course, this could get annoying after a while :\-)
     
    78197828.\}
    78207829.sp
    7821 where the \'|\' separates aliases of a printer\&. The fact that the second alias has a space in it gives a hint to Samba that it\'s a comment\&.
     7830where the \*(Aq|\*(Aq separates aliases of a printer\&. The fact that the second alias has a space in it gives a hint to Samba that it\*(Aqs a comment\&.
    78227831.if n \{\
    78237832.sp
     
    78537862After a print job has finished spooling to a service, this command will be used via a
    78547863system()
    7855 call to process the spool file\&. Typically the command specified will submit the spool file to the host\'s printing subsystem, but there is no requirement that this be the case\&. The server will not remove the spool file, so whatever command you specify should remove the spool file when it has been processed, otherwise you will need to manually remove old spool files\&.
     7864call to process the spool file\&. Typically the command specified will submit the spool file to the host\*(Aqs printing subsystem, but there is no requirement that this be the case\&. The server will not remove the spool file, so whatever command you specify should remove the spool file when it has been processed, otherwise you will need to manually remove old spool files\&.
    78567865.sp
    78577866The print command is simply a text string\&. It will be used verbatim after macro substitutions have been made:
     
    78897898in the [global] section\&.
    78907899.sp
    7891 You can form quite complex print commands by realizing that they are just passed to a shell\&. For example the following will log a print job, print the file, then remove it\&. Note that \';\' is the usual separator for command in shell scripts\&.
     7900You can form quite complex print commands by realizing that they are just passed to a shell\&. For example the following will log a print job, print the file, then remove it\&. Note that \*(Aq;\*(Aq is the usual separator for command in shell scripts\&.
    78927901.sp
    78937902print command = echo Printing %s >> /tmp/print\&.log; lpr \-P %p %s; rm %s
     
    81378146.sp
    81388147If this parameter is
    8139 \fByes\fR, then users of a service may not create or modify files in the service\'s directory\&.
     8148\fByes\fR, then users of a service may not create or modify files in the service\*(Aqs directory\&.
    81408149.sp
    81418150Note that a printable service (printable = yes) will
     
    82088217to periodically announce itself to arbitrary IP addresses with an arbitrary workgroup name\&.
    82098218.sp
    8210 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\&.
     8219This is useful if you want your Samba server to appear in a remote workgroup for which the normal browse propagation rules don\*(Aqt work\&. The remote workgroup can be anywhere that you can send IP packets to\&.
    82118220.sp
    82128221For example:
     
    82448253to periodically request synchronization of browse lists with the master browser of a Samba server that is on a remote segment\&. This option will allow you to gain browse lists for multiple workgroups across routed networks\&. This is done in a manner that does not work with any non\-Samba servers\&.
    82458254.sp
    8246 This is useful if you want your Samba server and all local clients 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\&.
     8255This is useful if you want your Samba server and all local clients to appear in a remote workgroup for which the normal browse propagation rules don\*(Aqt work\&. The remote workgroup can be anywhere that you can send IP packets to\&.
    82478256.sp
    82488257For example:
     
    84838492This parameter controls what UNIX permission bits will be set when a Windows NT client is manipulating the UNIX permission on a file using the native NT security dialog box\&.
    84848493.sp
    8485 This parameter is applied as a mask (AND\'ed with) to the incoming permission bits, thus resetting any bits not in this mask\&. Make sure not to mix up this parameter with
     8494This parameter is applied as a mask (AND\*(Aqed with) to the incoming permission bits, thus resetting any bits not in this mask\&. Make sure not to mix up this parameter with
    84868495\m[blue]\fBforce security mode\fR\m[], which works in a manner similar to this one but uses a logical OR instead of an AND\&.
    84878496.sp
     
    85588567that the name of the resource being requested is
    85598568\fInot\fR
    8560 sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don\'t work in user level security without allowing the server to automatically map unknown users into the
     8569sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don\*(Aqt work in user level security without allowing the server to automatically map unknown users into the
    85618570\m[blue]\fBguest account\fR\m[]\&. See the
    85628571\m[blue]\fBmap to guest\fR\m[]
     
    85798588.sp
    85808589\fINote\fR
    8581 that from the client\'s point of view
     8590that from the client\*(Aqs point of view
    85828591security = domain
    85838592is the same as
     
    85878596that the name of the resource being requested is
    85888597\fInot\fR
    8589 sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don\'t work in user level security without allowing the server to automatically map unknown users into the
     8598sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don\*(Aqt work in user level security without allowing the server to automatically map unknown users into the
    85908599\m[blue]\fBguest account\fR\m[]\&. See the
    85918600\m[blue]\fBmap to guest\fR\m[]
     
    87478756.ps -1
    87488757.br
    8749 This mode of operation has significant pitfalls since it is more vulnerable to man\-in\-the\-middle attacks and server impersonation\&. In particular, this mode of operation can cause significant resource consumption on the PDC, as it must maintain an active connection for the duration of the user\'s session\&. Furthermore, if this connection is lost, there is no way to reestablish it, and further authentications to the Samba server may fail (from a single client, till it disconnects)\&.
     8758This mode of operation has significant pitfalls since it is more vulnerable to man\-in\-the\-middle attacks and server impersonation\&. In particular, this mode of operation can cause significant resource consumption on the PDC, as it must maintain an active connection for the duration of the user\*(Aqs session\&. Furthermore, if this connection is lost, there is no way to reestablish it, and further authentications to the Samba server may fail (from a single client, till it disconnects)\&.
    87508759.sp .5v
    87518760.RE
     
    87788787.ps -1
    87798788.br
    8780 From the client\'s point of view,
     8789From the client\*(Aqs point of view,
    87818790security = server
    87828791is the same as
     
    88028811that the name of the resource being requested is
    88038812\fInot\fR
    8804 sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don\'t work in user level security without allowing the server to automatically map unknown users into the
     8813sent to the server until after the server has successfully authenticated the client\&. This is why guest shares don\*(Aqt work in user level security without allowing the server to automatically map unknown users into the
    88058814\m[blue]\fBguest account\fR\m[]\&. See the
    88068815\m[blue]\fBmap to guest\fR\m[]
     
    88418850If enabled, Samba can attempt to help clients to use Kerberos to contact it, even when known only by IP address or a name not registered with our KDC as a service principal name\&. Kerberos relies on names, so ordinarily cannot function in this situation\&.
    88428851.sp
    8843 If disabled, Samba will send the string not_defined_in_RFC4178@please_ignore as the \'rfc4178 hint\', following the updated RFC and Windows 2008 behaviour in this area\&.
     8852If disabled, Samba will send the string not_defined_in_RFC4178@please_ignore as the \*(Aqrfc4178 hint\*(Aq, following the updated RFC and Windows 2008 behaviour in this area\&.
    88448853.sp
    88458854Note that Windows XP SP2 and later versions already ignored this value in all circumstances\&.
     
    89498958.sp
    89508959Example:
    8951 \fI\fIset primary group script\fR\fR\fI = \fR\fI/usr/sbin/usermod \-g \'%g\' \'%u\'\fR\fI \fR
     8960\fI\fIset primary group script\fR\fR\fI = \fR\fI/usr/sbin/usermod \-g \*(Aq%g\*(Aq \*(Aq%u\*(Aq\fR\fI \fR
    89528961.RE
    89538962
     
    95509559.RE
    95519560Those marked with a
    9552 \fI\'*\'\fR
    9553 take an integer argument\&. The others can optionally take a 1 or 0 argument to enable or disable the option, by default they will be enabled if you don\'t specify 1 or 0\&.
     9561\fI\*(Aq*\*(Aq\fR
     9562take an integer argument\&. The others can optionally take a 1 or 0 argument to enable or disable the option, by default they will be enabled if you don\*(Aqt specify 1 or 0\&.
    95549563.sp
    95559564To specify an argument use the syntax SOME_OPTION = VALUE for example
     
    96349643the server will change from UNIX behaviour of not committing real disk storage blocks when a file is extended to the Windows behaviour of actually forcing the disk system to allocate real storage blocks when a file is created or extended to be a given size\&. In UNIX terminology this means that Samba will stop creating sparse files\&.
    96359644.sp
    9636 This option is really desgined for file systems that support fast allocation of large numbers of blocks such as extent\-based file systems\&. On file systems that don\'t support extents (most notably ext3) this can make Samba slower\&. When you work with large files over >100MB on file systems without extents you may even run into problems with clients running into timeouts\&.
    9637 .sp
    9638 When you have an extent based filesystem it\'s likely that we can make use of unwritten extents which allows Samba to allocate even large amounts of space very fast and you will not see any timeout problems caused by strict allocate\&. With strict allocate in use you will also get much better out of quota messages in case you use quotas\&. Another advantage of activating this setting is that it will help to reduce file fragmentation\&.
     9645This option is really desgined for file systems that support fast allocation of large numbers of blocks such as extent\-based file systems\&. On file systems that don\*(Aqt support extents (most notably ext3) this can make Samba slower\&. When you work with large files over >100MB on file systems without extents you may even run into problems with clients running into timeouts\&.
     9646.sp
     9647When you have an extent based filesystem it\*(Aqs likely that we can make use of unwritten extents which allows Samba to allocate even large amounts of space very fast and you will not see any timeout problems caused by strict allocate\&. With strict allocate in use you will also get much better out of quota messages in case you use quotas\&. Another advantage of activating this setting is that it will help to reduce file fragmentation\&.
    96399648.sp
    96409649To give you an idea on which filesystems this setting might currently be a good option for you: XFS, ext4, btrfs, ocfs2 on Linux and JFS2 on AIX support unwritten extents\&. On Filesystems that do not support it, preallocation is probably an expensive operation where you will see reduced performance and risk to let clients run into timeouts when creating large files\&. Examples are ext3, ZFS, HFS+ and most others, so be aware if you activate this setting on those filesystems\&.
     
    96879696The administrator must create a directory name
    96889697svcctl
    9689 in Samba\'s $(libdir) and create symbolic links to the init scripts in
     9698in Samba\*(Aqs $(libdir) and create symbolic links to the init scripts in
    96909699/etc/init\&.d/\&. The name of the links must match the names given as part of the
    96919700\fIsvcctl list\fR\&.
     
    97049713This is a boolean parameter that controls whether writes will always be written to stable storage before the write call returns\&. If this is
    97059714\fBno\fR
    9706 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
     9715then the server will be guided by the client\*(Aqs request in each write call (clients can set a bit indicating that a particular write should be synchronous)\&. If this is
    97079716\fByes\fR
    97089717then every write will be followed by a
     
    97569765daemon uses this parameter to fill in the home directory for that user\&. If the string
    97579766\fI%D\fR
    9758 is present it is substituted with the user\'s Windows NT domain name\&. If the string
     9767is present it is substituted with the user\*(Aqs Windows NT domain name\&. If the string
    97599768\fI%U\fR
    9760 is present it is substituted with the user\'s Windows NT user name\&.
     9769is present it is substituted with the user\*(Aqs Windows NT user name\&.
    97619770.sp
    97629771Default:
     
    98959904.PP
    98969905.RS 4
    9897 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\&.
     9906This option helps Samba to try and \*(Aqguess\*(Aq 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\&.
    98989907.sp
    98999908If this parameter is set to non\-zero the behavior changes\&. This parameter is a number that specifies the number of uppercase combinations to try while 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
     
    99569965DOMAIN\efoo)\&.
    99579966.sp
    9958 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 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 that group\&. The special client name \'*\' is a wildcard and matches any name\&. Each line of the map file may be up to 1023 characters long\&.
    9959 .sp
    9960 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 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\&.
    9961 .sp
    9962 If any line begins with a \'#\' or a \';\' then it is ignored\&.
    9963 .sp
    9964 If any line begins with an \'!\' then the processing will stop after that line if a mapping was done by the line\&. Otherwise mapping continues with every line being processed\&. Using \'!\' is most useful when you have a wildcard mapping line later in the file\&.
     9967The map file is parsed line by line\&. Each line should contain a single UNIX username on the left then a \*(Aq=\*(Aq 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 that group\&. The special client name \*(Aq*\*(Aq is a wildcard and matches any name\&. Each line of the map file may be up to 1023 characters long\&.
     9968.sp
     9969The file is processed on each line by taking the supplied username and comparing it with each username on the right hand side of the \*(Aq=\*(Aq 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\&.
     9970.sp
     9971If any line begins with a \*(Aq#\*(Aq or a \*(Aq;\*(Aq then it is ignored\&.
     9972.sp
     9973If any line begins with an \*(Aq!\*(Aq then the processing will stop after that line if a mapping was done by the line\&. Otherwise mapping continues with every line being processed\&. Using \*(Aq!\*(Aq is most useful when you have a wildcard mapping line later in the file\&.
    99659974.sp
    99669975For example to map from the name
     
    1001810027would map the windows username "Andrew Tridgell" to the unix username "tridge"\&.
    1001910028.sp
    10020 The following example would map mary and fred to the unix user sys, and map the rest to guest\&. Note the use of the \'!\' to tell Samba to stop processing if it gets a match on that line:
     10029The following example would map mary and fred to the unix user sys, and map the rest to guest\&. Note the use of the \*(Aq!\*(Aq to tell Samba to stop processing if it gets a match on that line:
    1002110030.sp
    1002210031.if n \{\
     
    1004210051(if you have one)\&. The password server will receive whatever username the client supplies without modification\&.
    1004310052.sp
    10044 Also note that no reverse mapping is done\&. The main effect this has is with printing\&. Users who have been mapped may have trouble deleting print jobs as PrintManager under WfWg will think they don\'t own the print job\&.
     10053Also note that no reverse mapping is done\&. The main effect this has is with printing\&. Users who have been mapped may have trouble deleting print jobs as PrintManager under WfWg will think they don\*(Aqt own the print job\&.
    1004510054.sp
    1004610055Samba versions prior to 3\&.0\&.8 would only support reading the fully qualified username (e\&.g\&.:
     
    1010810117parameter\&.
    1010910118.sp
    10110 If any of the usernames begin with a \'@\' then the name will be looked up first in the NIS netgroups list (if Samba is compiled with netgroup support), followed by a lookup in the UNIX groups database and will expand to a list of all users in the group of that name\&.
    10111 .sp
    10112 If any of the usernames begin with a \'+\' then the name will be looked up only in the UNIX groups database and will expand to a list of all users in the group of that name\&.
    10113 .sp
    10114 If any of the usernames begin with a \'&\' then the name will be looked up only in the NIS netgroups database (if Samba is compiled with netgroup support) and will expand to a list of all users in the netgroup group of that name\&.
     10119If any of the usernames begin with a \*(Aq@\*(Aq then the name will be looked up first in the NIS netgroups list (if Samba is compiled with netgroup support), followed by a lookup in the UNIX groups database and will expand to a list of all users in the group of that name\&.
     10120.sp
     10121If any of the usernames begin with a \*(Aq+\*(Aq then the name will be looked up only in the UNIX groups database and will expand to a list of all users in the group of that name\&.
     10122.sp
     10123If any of the usernames begin with a \*(Aq&\*(Aq then the name will be looked up only in the NIS netgroups database (if Samba is compiled with netgroup support) and will expand to a list of all users in the netgroup group of that name\&.
    1011510124.sp
    1011610125Note that searching though a groups database can take quite some time, and some clients may time out during the search\&.
     
    1019110200.PP
    1019210201.RS 4
    10193 This parameter specifies a list of absolute pathnames the root of which are allowed to be exported by user defined share definitions\&. If the pathname to be exported doesn\'t start with one of the strings in this list, the user defined share will not be allowed\&. This allows the Samba administrator to restrict the directories on the system that can be exported by user defined shares\&.
     10202This parameter specifies a list of absolute pathnames the root of which are allowed to be exported by user defined share definitions\&. If the pathname to be exported doesn\*(Aqt start with one of the strings in this list, the user defined share will not be allowed\&. This allows the Samba administrator to restrict the directories on the system that can be exported by user defined shares\&.
    1019410203.sp
    1019510204If there is a "usershare prefix deny list" and also a "usershare prefix allow list" the deny list is processed first, followed by the allow list, thus leading to the most restrictive interpretation\&.
     
    1023910248\fByes\fR, and the
    1024010249\fBsendfile()\fR
    10241 system call is supported by the underlying operating system, then some SMB read calls (mainly ReadAndX and ReadRaw) will use the more efficient sendfile system call for files that are exclusively oplocked\&. This may make more efficient use of the system CPU\'s and cause Samba to be faster\&. Samba automatically turns this off for clients that use protocol levels lower than NT LM 0\&.12 and when it detects a client is Windows 9x (using sendfile from Linux will cause these clients to fail)\&.
     10250system call is supported by the underlying operating system, then some SMB read calls (mainly ReadAndX and ReadRaw) will use the more efficient sendfile system call for files that are exclusively oplocked\&. This may make more efficient use of the system CPU\*(Aqs and cause Samba to be faster\&. Samba automatically turns this off for clients that use protocol levels lower than NT LM 0\&.12 and when it detects a client is Windows 9x (using sendfile from Linux will cause these clients to fail)\&.
    1024210251.sp
    1024310252Default:
     
    1029210301.PP
    1029310302.RS 4
    10294 This is a list of users that should be allowed to login to this service\&. Names starting with \'@\', \'+\' and \'&\' are interpreted using the same rules as described in the
     10303This is a list of users that should be allowed to login to this service\&. Names starting with \*(Aq@\*(Aq, \*(Aq+\*(Aq and \*(Aq&\*(Aq are interpreted using the same rules as described in the
    1029510304\fIinvalid users\fR
    1029610305parameter\&.
     
    1032610335.PP
    1032710336.RS 4
    10328 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\&.
     10337This is a list of files and directories that are neither visible nor accessible\&. Each entry in the list must be separated by a \*(Aq/\*(Aq, which allows spaces to be included in the entry\&. \*(Aq*\*(Aq and \*(Aq?\*(Aq can be used to specify multiple files or directories as in DOS wildcards\&.
    1032910338.sp
    1033010339Each entry must be a unix path, not a DOS path and must
    1033110340\fInot\fR
    10332 include the unix directory separator \'/\'\&.
     10341include the unix directory separator \*(Aq/\*(Aq\&.
    1033310342.sp
    1033410343Note that the
     
    1033610345option is applicable in vetoing files\&.
    1033710346.sp
    10338 One feature of the veto files parameter that it is important to be aware of is Samba\'s behaviour when trying to delete a directory\&. If a directory that is to be deleted contains nothing but veto files this deletion will
     10347One feature of the veto files parameter that it is important to be aware of is Samba\*(Aqs behaviour when trying to delete a directory\&. If a directory that is to be deleted contains nothing but veto files this deletion will
    1033910348\fIfail\fR
    1034010349unless you also set the
     
    1058410593.PP
    1058510594.RS 4
    10586 If set to yes, this parameter activates the support for nested groups\&. Nested groups are also called local groups or aliases\&. They work like their counterparts in Windows: Nested groups are defined locally on any machine (they are shared between DC\'s through their SAM) and can contain users and global groups from any trusted SAM\&. To be able to use nested groups, you need to run nss_winbind\&.
     10595If set to yes, this parameter activates the support for nested groups\&. Nested groups are also called local groups or aliases\&. They work like their counterparts in Windows: Nested groups are defined locally on any machine (they are shared between DC\*(Aqs through their SAM) and can contain users and global groups from any trusted SAM\&. To be able to use nested groups, you need to run nss_winbind\&.
    1058710596.sp
    1058810597Default:
     
    1060910618.PP
    1061010619.RS 4
    10611 This parameter is designed to control how Winbind retrieves Name Service Information to construct a user\'s home directory and login shell\&. Currently the following settings are available:
     10620This parameter is designed to control how Winbind retrieves Name Service Information to construct a user\*(Aqs home directory and login shell\&. Currently the following settings are available:
    1061210621.sp
    1061310622.RS 4
     
    1071710726.sp
    1071810727Default:
    10719 \fI\fIwinbind separator\fR\fR\fI = \fR\fI\'\e\'\fR\fI \fR
     10728\fI\fIwinbind separator\fR\fR\fI = \fR\fI\*(Aq\e\*(Aq\fR\fI \fR
    1072010729.sp
    1072110730Example:
     
    1072710736.PP
    1072810737.RS 4
    10729 This parameter is designed to allow Samba servers that are members of a Samba controlled domain to use UNIX accounts distributed via NIS, rsync, or LDAP as the uid\'s for winbindd users in the hosts primary domain\&. Therefore, the user
     10738This parameter is designed to allow Samba servers that are members of a Samba controlled domain to use UNIX accounts distributed via NIS, rsync, or LDAP as the uid\*(Aqs for winbindd users in the hosts primary domain\&. Therefore, the user
    1073010739DOMAIN\euser1
    1073110740would be mapped to the account user1 in /etc/passwd instead of allocating a new uid for him or her\&.
     
    1074510754This parameter specifies whether the
    1074610755\fBwinbindd\fR(8)
    10747 daemon should operate on users without domain component in their username\&. Users without a domain component are treated as is part of the winbindd server\'s own domain\&. While this does not benefit Windows users, it makes SSH, FTP and e\-mail function in a way much closer to the way they would in a native unix system\&.
     10756daemon should operate on users without domain component in their username\&. Users without a domain component are treated as is part of the winbindd server\*(Aqs own domain\&. While this does not benefit Windows users, it makes SSH, FTP and e\-mail function in a way much closer to the way they would in a native unix system\&.
    1074810757.sp
    1074910758This option should be avoided if possible\&. It can cause confusion about responsibilities for a user or group\&. In many situations it is not clear whether winbind or /etc/passwd should be seen as authoritative for a user, likewise for groups\&.
     
    1084910858This specifies the IP address (or DNS name: IP address for preference) of the WINS server that
    1085010859\fBnmbd\fR(8)
    10851 should register with\&. If you have a WINS server on your network then you should set this to the WINS server\'s IP\&.
     10860should register with\&. If you have a WINS server on your network then you should set this to the WINS server\*(Aqs IP\&.
    1085210861.sp
    1085310862You should point this at your WINS server if you have a multi\-subnetted network\&.
    1085410863.sp
    10855 If you want to work in multiple namespaces, you can give every wins server a \'tag\'\&. For each tag, only one (working) server will be queried for a name\&. The tag should be separated from the ip address by a colon\&.
     10864If you want to work in multiple namespaces, you can give every wins server a \*(Aqtag\*(Aq\&. For each tag, only one (working) server will be queried for a name\&. The tag should be separated from the ip address by a colon\&.
    1085610865.if n \{\
    1085710866.sp
     
    1087510884.sp
    1087610885Example:
    10877 \fI\fIwins server\fR\fR\fI = \fR\fImary:192\&.9\&.200\&.1 fred:192\&.168\&.3\&.199 mary:192\&.168\&.2\&.61 # For this example when querying a certain name, 192\&.19\&.200\&.1 will be asked first and if that doesn\'t respond 192\&.168\&.2\&.61\&. If either of those doesn\'t know the name 192\&.168\&.3\&.199 will be queried\&.\fR\fI \fR
     10886\fI\fIwins server\fR\fR\fI = \fR\fImary:192\&.9\&.200\&.1 fred:192\&.168\&.3\&.199 mary:192\&.168\&.2\&.61 # For this example when querying a certain name, 192\&.19\&.200\&.1 will be asked first and if that doesn\*(Aqt respond 192\&.168\&.2\&.61\&. If either of those doesn\*(Aqt know the name 192\&.168\&.3\&.199 will be queried\&.\fR\fI \fR
    1087810887.sp
    1087910888Example:
     
    1097910988.PP
    1098010989.RS 4
    10981 This parameter controls whether or not the server will support raw write SMB\'s when transferring data from clients\&. You should never need to change this parameter\&.
     10990This parameter controls whether or not the server will support raw write SMB\*(Aqs when transferring data from clients\&. You should never need to change this parameter\&.
    1098210991.sp
    1098310992Default:
     
    1100411013.SH "WARNINGS"
    1100511014.PP
    11006 Although the configuration file permits service names to contain spaces, your client software may not\&. Spaces will be ignored in comparisons anyway, so it shouldn\'t be a problem \- but be aware of the possibility\&.
     11015Although the configuration file permits service names to contain spaces, your client software may not\&. Spaces will be ignored in comparisons anyway, so it shouldn\*(Aqt be a problem \- but be aware of the possibility\&.
    1100711016.PP
    1100811017On a similar note, many clients \- especially DOS clients \- limit service names to eight characters\&.
Note: See TracChangeset for help on using the changeset viewer.