1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="smb.conf.5" xmlns:xi="http://www.w3.org/2003/XInclude"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
7 <refentrytitle>smb.conf</refentrytitle>
8 <manvolnum>5</manvolnum>
9 <refmiscinfo class="source">Samba</refmiscinfo>
10 <refmiscinfo class="manual">File Formats and Conventions</refmiscinfo>
11 <refmiscinfo class="version">&doc.version;</refmiscinfo>
16 <refname>smb.conf</refname>
17 <refpurpose>The configuration file for the Samba suite</refpurpose>
21 <title>SYNOPSIS</title>
24 The <filename moreinfo="none">smb.conf</filename> file is a configuration file for the Samba suite. <filename
25 moreinfo="none">smb.conf</filename> contains runtime configuration information for the Samba programs. The
26 complete description of the file format and possible parameters held within are here for reference purposes.
31 <title>HOW CONFIGURATION CHANGES ARE APPLIED</title>
34 The Samba suite includes a number of different programs. Some of them operate in a client mode, others are
35 server daemons that provide various services to its clients. The <filename moreinfo="none">smb.conf
36 </filename> file is processed in the following way:
41 The Samba suite's client applications read their configuration only once. Any changes made after start aren't
42 reflected in the context of already running client code.
46 The Samba suite's server daemons reload their configuration when requested. However, already active connections
47 do not change their configuration. More detailed information can be found in
48 <citerefentry><refentrytitle>smbd</refentrytitle><manvolnum>8</manvolnum></citerefentry> and <citerefentry>
49 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry> manual pages.
54 To request Samba server daemons to refresh their configuration, please use
55 <citerefentry><refentrytitle>smbcontrol</refentrytitle><manvolnum>1</manvolnum></citerefentry> utility.
60 <refsect1 id="FILEFORMATSECT">
61 <title>FILE FORMAT</title>
64 The file consists of sections and parameters. A section begins with the name of the section in square brackets
65 and continues until the next section begins. Sections contain parameters of the form:
67 <replaceable>name</replaceable> = <replaceable>value </replaceable>
72 The file is line-based - that is, each newline-terminated line represents either a comment, a section name or
76 <para>Section and parameter names are not case sensitive.</para>
79 Only the first equals sign in a parameter is significant. Whitespace before or after the first equals sign is
80 discarded. Leading, trailing and internal whitespace in section and parameter names is irrelevant. Leading
81 and trailing whitespace in a parameter value is discarded. Internal whitespace within a parameter value is
86 Any line beginning with a semicolon (<quote>;</quote>) or a hash (<quote>#</quote>)
87 character is ignored, as are lines containing only whitespace.
91 Any line ending in a <quote><literal>\</literal></quote> is continued on the next line in the customary UNIX fashion.
95 The values following the equals sign in parameters are all either a string (no quotes needed) or a boolean,
96 which may be given as yes/no, 1/0 or true/false. Case is not significant in boolean values, but is preserved
97 in string values. Some items such as create masks are numeric.
103 <title>SECTION DESCRIPTIONS</title>
106 Each section in the configuration file (except for the [global] section) describes a shared resource (known as
107 a <quote>share</quote>). The section name is the name of the shared resource and the parameters within the
108 section define the shares attributes.
112 There are three special sections, [global], [homes] and [printers], which are described under
113 <emphasis>special sections</emphasis>. The following notes apply to ordinary section descriptions.
117 A share consists of a directory to which access is being given plus a description of the access rights
118 which are granted to the user of the service. Some housekeeping options are also specifiable.
122 Sections are either file share services (used by the client as an extension of their native file systems)
123 or printable services (used by the client to access print services on the host running the server).
127 Sections may be designated <emphasis>guest</emphasis> services, in which case no password is required to
128 access them. A specified UNIX <emphasis>guest account</emphasis> is used to define access privileges in this
133 Sections other than guest services will require a password to access them. The client provides the
134 username. As older clients only provide passwords and not usernames, you may specify a list of usernames to
135 check against the password using the <literal>user =</literal> option in the share definition. For modern clients
136 such as Windows 95/98/ME/NT/2000, this should not be necessary.
140 The access rights granted by the server are masked by the access rights granted to the specified or guest
141 UNIX user by the host system. The server does not grant more access than the host system grants.
145 The following sample section defines a file space share. The user has write access to the path <filename
146 moreinfo="none">/home/bar</filename>. The share is accessed via the share name <literal>foo</literal>:
148 <smbconfsection name="[foo]"/>
149 <smbconfoption name="path">/home/bar</smbconfoption>
150 <smbconfoption name="read only">no</smbconfoption>
155 The following sample section defines a printable share. The share is read-only, but printable. That is,
156 the only write access permitted is via calls to open, write to and close a spool file. The <emphasis>guest
157 ok</emphasis> parameter means access will be permitted as the default guest user (specified elsewhere):
159 <smbconfsection name="[aprinter]"/>
160 <smbconfoption name="path">/var/tmp</smbconfoption>
161 <smbconfoption name="read only">yes</smbconfoption>
162 <smbconfoption name="printable">yes</smbconfoption>
163 <smbconfoption name="guest ok">yes</smbconfoption>
170 <title>SPECIAL SECTIONS</title>
173 <title>The [global] section</title>
176 Parameters in this section apply to the server as a whole, or are defaults for sections that do not
177 specifically define certain items. See the notes under PARAMETERS for more information.
181 <refsect2 id="HOMESECT">
182 <title>The [homes] section</title>
185 If a section called [homes] is included in the configuration file, services connecting clients
186 to their home directories can be created on the fly by the server.
190 When the connection request is made, the existing sections are scanned. If a match is found, it is
191 used. If no match is found, the requested section name is treated as a username and looked up in the local
192 password file. If the name exists and the correct password has been given, a share is created by cloning the
197 Some modifications are then made to the newly created share:
202 The share name is changed from homes to the located username.
206 If no path was given, the path is set to the user's home directory.
211 If you decide to use a <emphasis>path =</emphasis> line in your [homes] section, it may be useful
212 to use the %S macro. For example:
214 <userinput moreinfo="none">path = /data/pchome/%S</userinput>
216 is useful if you have different home directories for your PCs than for UNIX access.
220 This is a fast and simple way to give a large number of clients access to their home directories with a minimum
225 A similar process occurs if the requested section name is <quote>homes</quote>, except that the share
226 name is not changed to that of the requesting user. This method of using the [homes] section works well if
227 different users share a client PC.
231 The [homes] section can specify all the parameters a normal service section can specify, though some make more sense
232 than others. The following is a typical and suitable [homes] section:
234 <smbconfsection name="[homes]"/>
235 <smbconfoption name="read only">no</smbconfoption>
240 An important point is that if guest access is specified in the [homes] section, all home directories will be
241 visible to all clients <emphasis>without a password</emphasis>. In the very unlikely event that this is actually
242 desirable, it is wise to also specify <emphasis>read only access</emphasis>.
246 The <emphasis>browseable</emphasis> flag for auto home directories will be inherited from the global browseable
247 flag, not the [homes] browseable flag. This is useful as it means setting <emphasis>browseable = no</emphasis> in
248 the [homes] section will hide the [homes] share but make any auto home directories visible.
252 <refsect2 id="PRINTERSSECT">
253 <title>The [printers] section</title>
256 This section works like [homes], but for printers.
260 If a [printers] section occurs in the configuration file, users are able to connect to any printer
261 specified in the local host's printcap file.
265 When a connection request is made, the existing sections are scanned. If a match is found, it is used.
266 If no match is found, but a [homes] section exists, it is used as described above. Otherwise, the requested
267 section name is treated as a printer name and the appropriate printcap file is scanned to see if the requested
268 section name is a valid printer share name. If a match is found, a new printer share is created by cloning the
273 A few modifications are then made to the newly created share:
277 <listitem><para>The share name is set to the located printer name</para></listitem>
279 <listitem><para>If no printer name was given, the printer name is set to the located printer name</para></listitem>
281 <listitem><para>If the share does not permit guest access and no username was given, the username is set
282 to the located printer name.</para></listitem>
286 The [printers] service MUST be printable - if you specify otherwise, the server will refuse
287 to load the configuration file.
291 Typically the path specified is that of a world-writeable spool directory with the sticky bit set on
292 it. A typical [printers] entry looks like this:
294 <smbconfsection name="[printers]"/>
295 <smbconfoption name="path">/var/tmp</smbconfoption>
296 <smbconfoption name="guest ok">yes</smbconfoption>
297 <smbconfoption name="printable">yes</smbconfoption>
302 All aliases given for a printer in the printcap file are legitimate printer names as far as the server is concerned.
303 If your printing subsystem doesn't work like that, you will have to set up a pseudo-printcap. This is a file
304 consisting of one or more lines like this:
306 alias|alias|alias|alias...
311 Each alias should be an acceptable printer name for your printing subsystem. In the [global] section,
312 specify the new file as your printcap. The server will only recognize names found in your pseudo-printcap,
313 which of course can contain whatever aliases you like. The same technique could be used simply to limit access
314 to a subset of your local printers.
318 An alias, by the way, is defined as any component of the first entry of a printcap record. Records are separated by newlines,
319 components (if there are more than one) are separated by vertical bar symbols (<literal>|</literal>).
323 On SYSV systems which use lpstat to determine what printers are defined on the system you may be able to use
324 <literal>printcap name = lpstat</literal> to automatically obtain a list of printers. See the
325 <literal>printcap name</literal> option for more details.
331 <title>USERSHARES</title>
333 <para>Starting with Samba version 3.0.23 the capability for non-root users to add, modify, and delete
334 their own share definitions has been added. This capability is called <emphasis>usershares</emphasis> and
335 is controlled by a set of parameters in the [global] section of the smb.conf.
336 The relevant parameters are :
341 <term>usershare allow guests</term>
342 <listitem><para>Controls if usershares can permit guest access.</para></listitem>
346 <term>usershare max shares</term>
347 <listitem><para>Maximum number of user defined shares allowed.</para></listitem>
351 <term>usershare owner only</term>
352 <listitem><para>If set only directories owned by the sharing user can be shared.</para></listitem>
356 <term>usershare path</term>
357 <listitem><para>Points to the directory containing the user defined share definitions.
358 The filesystem permissions on this directory control who can create user defined shares.</para></listitem>
362 <term>usershare prefix allow list</term>
363 <listitem><para>Comma-separated list of absolute pathnames restricting what directories
364 can be shared. Only directories below the pathnames in this list are permitted.</para></listitem>
368 <term>usershare prefix deny list</term>
369 <listitem><para>Comma-separated list of absolute pathnames restricting what directories
370 can be shared. Directories below the pathnames in this list are prohibited.</para></listitem>
374 <term>usershare template share</term>
375 <listitem><para>Names a pre-existing share used as a template for creating new usershares.
376 All other share parameters not specified in the user defined share definition
377 are copied from this named share.</para></listitem>
381 <para>To allow members of the UNIX group <literal>foo</literal> to create user defined
382 shares, create the directory to contain the share definitions as follows:
384 <para>Become root:</para>
386 mkdir /usr/local/samba/lib/usershares
387 chgrp foo /usr/local/samba/lib/usershares
388 chmod 1770 /usr/local/samba/lib/usershares
390 <para>Then add the parameters
393 <smbconfoption name="usershare path">/usr/local/samba/lib/usershares</smbconfoption>
394 <smbconfoption name="usershare max shares">10</smbconfoption> # (or the desired number of shares)
398 section of your <filename>smb.conf</filename>. Members of the group foo may then manipulate the user defined shares
399 using the following commands.</para>
403 <term>net usershare add sharename path [comment] [acl] [guest_ok=[y|n]]</term>
404 <listitem><para>To create or modify (overwrite) a user defined share.</para></listitem>
408 <term>net usershare delete sharename</term>
409 <listitem><para>To delete a user defined share.</para></listitem>
413 <term>net usershare list wildcard-sharename</term>
414 <listitem><para>To list user defined shares.</para></listitem>
418 <term>net usershare info wildcard-sharename</term>
419 <listitem><para>To print information about user defined shares.</para></listitem>
425 <title>PARAMETERS</title>
427 <para>Parameters define the specific attributes of sections.</para>
430 Some parameters are specific to the [global] section (e.g., <emphasis>security</emphasis>). Some parameters
431 are usable in all sections (e.g., <emphasis>create mask</emphasis>). All others are permissible only in normal
432 sections. For the purposes of the following descriptions the [homes] and [printers] sections will be
433 considered normal. The letter <emphasis>G</emphasis> in parentheses indicates that a parameter is specific to
434 the [global] section. The letter <emphasis>S</emphasis> indicates that a parameter can be specified in a
435 service specific section. All <emphasis>S</emphasis> parameters can also be specified in the [global] section
436 - in which case they will define the default behavior for all services.
440 Parameters are arranged here in alphabetical order - this may not create best bedfellows, but at least you can
441 find them! Where there are synonyms, the preferred synonym is described, others refer to the preferred
447 <title>VARIABLE SUBSTITUTIONS</title>
450 Many of the strings that are settable in the config file can take substitutions. For example the option
451 <quote>path = /tmp/%u</quote> is interpreted as <quote>path = /tmp/john</quote> if the user connected with the
456 These substitutions are mostly noted in the descriptions below, but there are some general substitutions
457 which apply whenever they might be relevant. These are:
463 <listitem><para>session username (the username that the client wanted, not
464 necessarily the same as the one they got).</para></listitem>
469 <listitem><para>primary group name of %U.</para></listitem>
474 <listitem><para>the Internet hostname that Samba is running on.</para></listitem>
479 <listitem><para>the NetBIOS name of the client machine (very useful).</para>
481 <para>This parameter is not available when Samba listens on port 445, as clients no longer
482 send this information. If you use this macro in an include statement on a domain that has
483 a Samba domain controller be sure to set in the [global] section <parameter>smb ports =
484 139</parameter>. This will cause Samba to not listen on port 445 and will permit include
485 functionality to function as it did with Samba 2.x.
492 <listitem><para>the NetBIOS name of the server. This allows you to change your config based on what
493 the client calls you. Your server can have a <quote>dual personality</quote>.
499 <listitem><para>the Internet name of the client machine.
505 <listitem><para>the selected protocol level after protocol negotiation. It can be one of
506 CORE, COREPLUS, LANMAN1, LANMAN2, NT1,
507 SMB2_02, SMB2_10, SMB3_00, SMB3_02, SMB3_11
508 or SMB2_FF.</para></listitem>
513 <listitem><para>the process id of the current server
514 process.</para></listitem>
520 The architecture of the remote
521 machine. It currently recognizes Samba (<constant>Samba</constant>),
522 the Linux CIFS file system (<constant>CIFSFS</constant>), OS/2, (<constant>OS2</constant>),
523 Mac OS X (<constant>OSX</constant>), Windows for Workgroups (<constant>WfWg</constant>), Windows 9x/ME
524 (<constant>Win95</constant>), Windows NT (<constant>WinNT</constant>),
525 Windows 2000 (<constant>Win2K</constant>),
526 Windows XP (<constant>WinXP</constant>),
527 Windows XP 64-bit(<constant>WinXP64</constant>),
528 Windows 2003 including
529 2003R2 (<constant>Win2K3</constant>), and Windows
530 Vista (<constant>Vista</constant>). Anything else will be known as
531 <constant>UNKNOWN</constant>.</para>
537 <listitem><para>the IP address of the client machine.</para>
538 <para>Before 4.0.0 it could contain IPv4 mapped IPv6 addresses,
539 now it only contains IPv4 or IPv6 addresses.</para>
545 <listitem><para>the IP address of the client machine,
546 colons/dots replaced by underscores.</para>
552 <listitem><para>the local IP address to which a client connected.</para>
553 <para>Before 4.0.0 it could contain IPv4 mapped IPv6 addresses,
554 now it only contains IPv4 or IPv6 addresses.</para>
560 <listitem><para>the local IP address to which a client connected,
561 colons/dots replaced by underscores.</para>
567 <listitem><para>the current date and time.</para></listitem>
572 <listitem><para>the current date and time in a minimal format without colons (YYYYYmmdd_HHMMSS).</para></listitem>
577 <listitem><para>name of the domain or workgroup of the current user.</para></listitem>
582 <listitem><para>the winbind separator.</para></listitem>
586 <term>%$(<replaceable>envvar</replaceable>)</term>
587 <listitem><para>the value of the environment variable
588 <replaceable>envar</replaceable>.</para></listitem>
593 The following substitutes apply only to some configuration options (only those that are
594 used when a connection has been established):
600 <listitem><para>the name of the current service, if any.</para>
606 <listitem><para>the root directory of the current service, if any.</para></listitem>
611 <listitem><para>username of the current service, if any.</para>
617 <listitem><para>primary group name of %u.</para></listitem>
622 <listitem><para>the home directory of the user given by %u.</para></listitem>
627 <listitem><para>This value is the same as %L.</para></listitem>
632 There are some quite creative things that can be done with these substitutions and other
633 <filename moreinfo="none">smb.conf</filename> options.
637 <refsect1 id="NAMEMANGLINGSECT">
638 <title>NAME MANGLING</title>
641 Samba supports <literal>name mangling</literal> so that DOS and Windows clients can use files that don't
642 conform to the 8.3 format. It can also be set to adjust the case of 8.3 format filenames.
646 There are several options that control the way mangling is performed, and they are grouped here rather
647 than listed separately. For the defaults look at the output of the testparm program.
651 These options can be set separately for each service.
661 <term>case sensitive = yes/no/auto</term>
663 controls whether filenames are case sensitive. If they aren't, Samba must do a filename search and match on
664 passed names. The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS
665 and smbclient 3.0.5 and above currently) to tell the Samba server on a per-packet basis that they wish to
666 access the file system in a case-sensitive manner (to support UNIX case sensitive semantics). No Windows or
667 DOS system supports case-sensitive filename so setting this option to auto is the same as setting it to no
668 for them. Default <emphasis>auto</emphasis>.
673 <term>default case = upper/lower</term>
675 controls what the default case is for new filenames (ie. files that don't currently exist in the filesystem).
676 Default <emphasis>lower</emphasis>. IMPORTANT NOTE: As part of the optimizations for directories containing
677 large numbers of files, the following special case applies. If the options
678 <smbconfoption name="case sensitive">yes</smbconfoption>, <smbconfoption name="preserve case">No</smbconfoption>, and
679 <smbconfoption name="short preserve case">No</smbconfoption> are set, then the case of <emphasis>all</emphasis>
680 incoming client filenames, not just new filenames, will be modified. See additional notes below.
685 <term>preserve case = yes/no</term>
687 controls whether new files (ie. files that don't currently exist in the filesystem) are created with the case
688 that the client passes, or if they are forced to be the <literal>default</literal> case. Default
689 <emphasis>yes</emphasis>.
694 <term>short preserve case = yes/no</term>
696 controls if new files (ie. files that don't currently exist in the filesystem) which conform to 8.3 syntax,
697 that is all in upper case and of suitable length, are created upper case, or if they are forced to be the
698 <literal>default</literal> case. This option can be used with <literal>preserve case = yes</literal> to permit
699 long filenames to retain their case, while short names are lowercased. Default <emphasis>yes</emphasis>.
705 By default, Samba 3.0 has the same semantics as a Windows NT server, in that it is case insensitive
706 but case preserving. As a special case for directories with large numbers of files, if the case
707 options are set as follows, "case sensitive = yes", "case preserve = no", "short preserve case = no"
708 then the "default case" option will be applied and will modify all filenames sent from the client
709 when accessing this share.
715 <title>REGISTRY-BASED CONFIGURATION</title>
718 Starting with Samba version 3.2.0, the capability to
719 store Samba configuration in the registry is available.
720 The configuration is stored in the registry key
721 <emphasis><literal>HKLM\Software\Samba\smbconf</literal></emphasis>.
722 There are two levels of registry configuration:
725 <orderedlist continuation="restarts" inheritnum="ignore" numeration="arabic">
726 <listitem><para>Share definitions stored in registry are used.
727 This is triggered by setting the global
728 parameter <parameter>registry shares</parameter>
729 to <quote>yes</quote> in <emphasis>smb.conf</emphasis>.
732 <para>The registry shares are loaded not at startup but
733 on demand at runtime by <emphasis>smbd</emphasis>.
734 Shares defined in <emphasis>smb.conf</emphasis> take
735 priority over shares of the same name defined in
736 registry.</para></listitem>
739 <para>Global <emphasis>smb.conf</emphasis>
740 options stored in registry are used. This can be activated
741 in two different ways:</para>
743 <para>Firstly, a registry only configuration is triggered
745 <smbconfoption name="config backend">registry</smbconfoption>
746 in the [global] section of <emphasis>smb.conf</emphasis>.
747 This resets everything that has been read from config files
748 to this point and reads the content of the global configuration
749 section from the registry.
750 This is the recommended method of using registry based
751 configuration.</para>
753 <para>Secondly, a mixed configuration can be activated
754 by a special new meaning of the parameter
755 <smbconfoption name="include">registry</smbconfoption>
756 in the [global] section of <emphasis>smb.conf</emphasis>.
757 This reads the global options from registry with the same
758 priorities as for an include of a text file.
759 This may be especially useful in cases where an initial
760 configuration is needed to access the registry.</para>
762 <para>Activation of global registry options automatically
763 activates registry shares. So in the registry only case,
764 shares are loaded on demand only.</para>
769 Note: To make registry-based configurations foolproof
770 at least to a certain extent, the use
771 of <parameter>lock directory</parameter> and
772 <parameter>config backend</parameter>
773 inside the registry configuration has been disabled:
774 Especially by changing the
775 <parameter>lock directory</parameter> inside the registry
776 configuration, one would create a broken setup where the daemons
777 do not see the configuration they loaded once it is active.
781 The registry configuration can be accessed with
782 tools like <emphasis>regedit</emphasis> or <emphasis>net (rpc)
783 registry</emphasis> in the key
784 <emphasis><literal>HKLM\Software\Samba\smbconf</literal></emphasis>.
786 More conveniently, the <emphasis>conf</emphasis> subcommand of the
787 <citerefentry><refentrytitle>net</refentrytitle>
788 <manvolnum>8</manvolnum></citerefentry> utility
789 offers a dedicated interface to read and write the
790 registry based configuration locally, i.e. directly
791 accessing the database file, circumventing the
797 <refsect1 ID="IDMAPCONSIDERATIONS">
798 <title>IDENTITY MAPPING CONSIDERATIONS</title>
801 In the SMB protocol, users, groups, and machines are represented by their security identifiers (SIDs).
802 On POSIX system Samba processes need to run under corresponding POSIX user identities and
803 with supplemental POSIX groups to allow access to the files owned by those users and groups.
804 The process of mapping SIDs to POSIX users and groups is called <emphasis>IDENTITY MAPPING</emphasis>
805 or, in short, <emphasis>ID MAPPING</emphasis>.
809 Samba supports multiple ways to map SIDs to POSIX users and groups. The configuration is driven by
810 the <smbconfoption name="idmap config DOMAIN : OPTION"/> option which allows one to specify identity
811 mapping (idmap) options for each domain separately.
815 Identity mapping modules implement different strategies for mapping of SIDs to POSIX user and group
816 identities. They are applicable to different use cases and scenarios. It is advised to read the documentation
817 of the individual identity mapping modules before choosing a specific scenario to use. Each identity
818 management module is documented in a separate manual page. The standard idmap backends are
819 tdb (<citerefentry><refentrytitle>idmap_tdb</refentrytitle><manvolnum>8</manvolnum></citerefentry>),
820 tdb2 (<citerefentry><refentrytitle>idmap_tdb2</refentrytitle><manvolnum>8</manvolnum></citerefentry>),
821 ldap (<citerefentry><refentrytitle>idmap_ldap</refentrytitle><manvolnum>8</manvolnum></citerefentry>),
822 rid (<citerefentry><refentrytitle>idmap_rid</refentrytitle><manvolnum>8</manvolnum></citerefentry>),
823 hash (<citerefentry><refentrytitle>idmap_hash</refentrytitle><manvolnum>8</manvolnum></citerefentry>),
824 autorid (<citerefentry><refentrytitle>idmap_autorid</refentrytitle><manvolnum>8</manvolnum></citerefentry>),
825 ad (<citerefentry><refentrytitle>idmap_ad</refentrytitle> <manvolnum>8</manvolnum></citerefentry>),
826 nss (<citerefentry><refentrytitle>idmap_nss</refentrytitle> <manvolnum>8</manvolnum></citerefentry>), and
827 rfc2307 (<citerefentry><refentrytitle>idmap_rfc2307</refentrytitle> <manvolnum>8</manvolnum></citerefentry>).
831 Overall, ID mapping configuration should be decided carefully. Changes to the already deployed ID mapping
832 configuration may create the risk of losing access to the data or disclosing the data to the wrong parties.
836 This example shows how to configure two domains with <citerefentry><refentrytitle>idmap_rid</refentrytitle>
837 <manvolnum>8</manvolnum> </citerefentry>, the principal domain and a trusted domain,
838 leaving the default id mapping scheme at tdb.
846 idmap config * : backend = tdb
847 idmap config * : range = 1000000-1999999
849 idmap config MAIN : backend = rid
850 idmap config MAIN : range = 5000000-5999999
852 idmap config TRUSTED : backend = rid
853 idmap config TRUSTED : range = 6000000-6999999
858 <title>EXPLANATION OF EACH PARAMETER</title>
860 <samba:parameterlist>
861 <!-- The URI below is resolved to local generated version of parameters.all.xml //-->
862 <!-- WAF build places it in bin/default/docs-xml/smbdotconf/parameters.all.xml //-->
863 <!-- and we redirect there via use of XML_CATALOG_FILES, see docs-xml/build/catalog.xml.in //-->
864 <xi:include href="http://www.samba.org/samba/smbdotconf/parameters.all.xml" parse="xml"/>
865 </samba:parameterlist>
870 <title>WARNINGS</title>
873 Although the configuration file permits service names to contain spaces, your client software may not.
874 Spaces will be ignored in comparisons anyway, so it shouldn't be a problem - but be aware of the possibility.
878 On a similar note, many clients - especially DOS clients - limit service names to eight characters.
879 <citerefentry><refentrytitle>smbd</refentrytitle> <manvolnum>8</manvolnum></citerefentry> has no such
880 limitation, but attempts to connect from such clients will fail if they truncate the service names. For this
881 reason you should probably keep your service names down to eight characters in length.
885 Use of the <literal>[homes]</literal> and <literal>[printers]</literal> special sections make life
886 for an administrator easy, but the various combinations of default attributes can be tricky. Take extreme
887 care when designing these sections. In particular, ensure that the permissions on spool directories are
894 <title>VERSION</title>
896 <para>This man page is part of version &doc.version; of the Samba suite.</para>
900 <title>SEE ALSO</title>
902 <citerefentry><refentrytitle>samba</refentrytitle>
903 <manvolnum>7</manvolnum></citerefentry>, <citerefentry><refentrytitle>smbpasswd</refentrytitle>
904 <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>smbd</refentrytitle>
905 <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>nmbd</refentrytitle>
906 <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>winbindd</refentrytitle>
907 <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>samba</refentrytitle>
908 <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>samba-tool</refentrytitle>
909 <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>smbclient</refentrytitle>
910 <manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>nmblookup</refentrytitle>
911 <manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>testparm</refentrytitle>
912 <manvolnum>1</manvolnum></citerefentry>.</para>
916 <title>AUTHOR</title>
919 The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed
920 by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.