source: vendor/3.5.8/docs/manpages/smb.conf.5

Last change on this file was 594, checked in by Herwig Bauernfeind, 14 years ago

Samba 3.5: Update vendor to version 3.5.8

File size: 27.4 KB
Line 
1'\" t
2.\" Title: smb.conf
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 03/06/2011
6.\" Manual: File Formats and Conventions
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "SMB\&.CONF" "5" "03/06/2011" "Samba 3\&.5" "File Formats and Conventions"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22smb.conf \- The configuration file for the Samba suite
23.SH "SYNOPSIS"
24.PP
25The
26smb\&.conf
27file is a configuration file for the Samba suite\&.
28smb\&.conf
29contains runtime configuration information for the Samba programs\&. The
30smb\&.conf
31file is designed to be configured and administered by the
32\fBswat\fR(8)
33program\&. The complete description of the file format and possible parameters held within are here for reference purposes\&.
34.SH "FILE FORMAT"
35.PP
36The file consists of sections and parameters\&. A section begins with the name of the section in square brackets and continues until the next section begins\&. Sections contain parameters of the form:
37.sp
38.if n \{\
39.RS 4
40.\}
41.nf
42\fIname\fR = \fIvalue \fR
43.fi
44.if n \{\
45.RE
46.\}
47.PP
48The file is line\-based \- that is, each newline\-terminated line represents either a comment, a section name or a parameter\&.
49.PP
50Section and parameter names are not case sensitive\&.
51.PP
52Only the first equals sign in a parameter is significant\&. Whitespace before or after the first equals sign is discarded\&. Leading, trailing and internal whitespace in section and parameter names is irrelevant\&. Leading and trailing whitespace in a parameter value is discarded\&. Internal whitespace within a parameter value is retained verbatim\&.
53.PP
54Any line beginning with a semicolon (\(lq;\(rq) or a hash (\(lq#\(rq) character is ignored, as are lines containing only whitespace\&.
55.PP
56Any line ending in a
57\(lq\e\(rq
58is continued on the next line in the customary UNIX fashion\&.
59.PP
60The values following the equals sign in parameters are all either a string (no quotes needed) or a boolean, which may be given as yes/no, 1/0 or true/false\&. Case is not significant in boolean values, but is preserved in string values\&. Some items such as create masks are numeric\&.
61.SH "SECTION DESCRIPTIONS"
62.PP
63Each section in the configuration file (except for the [global] section) describes a shared resource (known as a
64\(lqshare\(rq)\&. The section name is the name of the shared resource and the parameters within the section define the shares attributes\&.
65.PP
66There are three special sections, [global], [homes] and [printers], which are described under
67\fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
68.PP
69A share consists of a directory to which access is being given plus a description of the access rights which are granted to the user of the service\&. Some housekeeping options are also specifiable\&.
70.PP
71Sections are either file share services (used by the client as an extension of their native file systems) or printable services (used by the client to access print services on the host running the server)\&.
72.PP
73Sections may be designated
74\fIguest\fR
75services, in which case no password is required to access them\&. A specified UNIX
76\fIguest account\fR
77is used to define access privileges in this case\&.
78.PP
79Sections other than guest services will require a password to access them\&. The client provides the username\&. As older clients only provide passwords and not usernames, you may specify a list of usernames to check against the password using the
80user =
81option in the share definition\&. For modern clients such as Windows 95/98/ME/NT/2000, this should not be necessary\&.
82.PP
83The access rights granted by the server are masked by the access rights granted to the specified or guest UNIX user by the host system\&. The server does not grant more access than the host system grants\&.
84.PP
85The following sample section defines a file space share\&. The user has write access to the path
86/home/bar\&. The share is accessed via the share name
87foo:
88.sp
89.if n \{\
90.RS 4
91.\}
92.nf
93 \fI[foo]\fR
94 \m[blue]\fBpath = /home/bar\fR\m[]
95 \m[blue]\fBread only = no\fR\m[]
96.fi
97.if n \{\
98.RE
99.\}
100.PP
101The following sample section defines a printable share\&. The share is read\-only, but printable\&. That is, the only write access permitted is via calls to open, write to and close a spool file\&. The
102\fIguest ok\fR
103parameter means access will be permitted as the default guest user (specified elsewhere):
104.sp
105.if n \{\
106.RS 4
107.\}
108.nf
109 \fI[aprinter]\fR
110 \m[blue]\fBpath = /usr/spool/public\fR\m[]
111 \m[blue]\fBread only = yes\fR\m[]
112 \m[blue]\fBprintable = yes\fR\m[]
113 \m[blue]\fBguest ok = yes\fR\m[]
114.fi
115.if n \{\
116.RE
117.\}
118.sp
119.SH "SPECIAL SECTIONS"
120.SS "The [global] section"
121.PP
122Parameters in this section apply to the server as a whole, or are defaults for sections that do not specifically define certain items\&. See the notes under PARAMETERS for more information\&.
123.SS "The [homes] section"
124.PP
125If a section called [homes] is included in the configuration file, services connecting clients to their home directories can be created on the fly by the server\&.
126.PP
127When the connection request is made, the existing sections are scanned\&. If a match is found, it is used\&. If no match is found, the requested section name is treated as a username and looked up in the local password file\&. If the name exists and the correct password has been given, a share is created by cloning the [homes] section\&.
128.PP
129Some modifications are then made to the newly created share:
130.sp
131.RS 4
132.ie n \{\
133\h'-04'\(bu\h'+03'\c
134.\}
135.el \{\
136.sp -1
137.IP \(bu 2.3
138.\}
139The share name is changed from homes to the located username\&.
140.RE
141.sp
142.RS 4
143.ie n \{\
144\h'-04'\(bu\h'+03'\c
145.\}
146.el \{\
147.sp -1
148.IP \(bu 2.3
149.\}
150If no path was given, the path is set to the user\'s home directory\&.
151.sp
152.RE
153.PP
154If you decide to use a
155\fIpath =\fR
156line in your [homes] section, it may be useful to use the %S macro\&. For example:
157.sp
158.if n \{\
159.RS 4
160.\}
161.nf
162\fBpath = /data/pchome/%S\fR
163.fi
164.if n \{\
165.RE
166.\}
167.sp
168is useful if you have different home directories for your PCs than for UNIX access\&.
169.PP
170This is a fast and simple way to give a large number of clients access to their home directories with a minimum of fuss\&.
171.PP
172A similar process occurs if the requested section name is
173\(lqhomes\(rq, except that the share name is not changed to that of the requesting user\&. This method of using the [homes] section works well if different users share a client PC\&.
174.PP
175The [homes] section can specify all the parameters a normal service section can specify, though some make more sense than others\&. The following is a typical and suitable [homes] section:
176.sp
177.if n \{\
178.RS 4
179.\}
180.nf
181\fI[homes]\fR
182\m[blue]\fBread only = no\fR\m[]
183.fi
184.if n \{\
185.RE
186.\}
187.PP
188An important point is that if guest access is specified in the [homes] section, all home directories will be visible to all clients
189\fIwithout a password\fR\&. In the very unlikely event that this is actually desirable, it is wise to also specify
190\fIread only access\fR\&.
191.PP
192The
193\fIbrowseable\fR
194flag for auto home directories will be inherited from the global browseable flag, not the [homes] browseable flag\&. This is useful as it means setting
195\fIbrowseable = no\fR
196in the [homes] section will hide the [homes] share but make any auto home directories visible\&.
197.SS "The [printers] section"
198.PP
199This section works like [homes], but for printers\&.
200.PP
201If a [printers] section occurs in the configuration file, users are able to connect to any printer specified in the local host\'s printcap file\&.
202.PP
203When 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\&.
204.PP
205A few modifications are then made to the newly created share:
206.sp
207.RS 4
208.ie n \{\
209\h'-04'\(bu\h'+03'\c
210.\}
211.el \{\
212.sp -1
213.IP \(bu 2.3
214.\}
215The share name is set to the located printer name
216.RE
217.sp
218.RS 4
219.ie n \{\
220\h'-04'\(bu\h'+03'\c
221.\}
222.el \{\
223.sp -1
224.IP \(bu 2.3
225.\}
226If no printer name was given, the printer name is set to the located printer name
227.RE
228.sp
229.RS 4
230.ie n \{\
231\h'-04'\(bu\h'+03'\c
232.\}
233.el \{\
234.sp -1
235.IP \(bu 2.3
236.\}
237If the share does not permit guest access and no username was given, the username is set to the located printer name\&.
238.sp
239.RE
240.PP
241The [printers] service MUST be printable \- if you specify otherwise, the server will refuse to load the configuration file\&.
242.PP
243Typically the path specified is that of a world\-writeable spool directory with the sticky bit set on it\&. A typical [printers] entry looks like this:
244.sp
245.if n \{\
246.RS 4
247.\}
248.nf
249\fI[printers]\fR
250\m[blue]\fBpath = /usr/spool/public\fR\m[]
251\m[blue]\fBguest ok = yes\fR\m[]
252\m[blue]\fBprintable = yes\fR\m[]
253.fi
254.if n \{\
255.RE
256.\}
257.PP
258All 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:
259.sp
260.if n \{\
261.RS 4
262.\}
263.nf
264alias|alias|alias|alias\&.\&.\&.
265.fi
266.if n \{\
267.RE
268.\}
269.PP
270Each alias should be an acceptable printer name for your printing subsystem\&. In the [global] section, specify the new file as your printcap\&. The server will only recognize names found in your pseudo\-printcap, which of course can contain whatever aliases you like\&. The same technique could be used simply to limit access to a subset of your local printers\&.
271.PP
272An alias, by the way, is defined as any component of the first entry of a printcap record\&. Records are separated by newlines, components (if there are more than one) are separated by vertical bar symbols (|)\&.
273.if n \{\
274.sp
275.\}
276.RS 4
277.it 1 an-trap
278.nr an-no-space-flag 1
279.nr an-break-flag 1
280.br
281.ps +1
282\fBNote\fR
283.ps -1
284.br
285.PP
286On SYSV systems which use lpstat to determine what printers are defined on the system you may be able to use
287printcap name = lpstat
288to automatically obtain a list of printers\&. See the
289printcap name
290option for more details\&.
291.sp .5v
292.RE
293.SH "USERSHARES"
294.PP
295Starting with Samba version 3\&.0\&.23 the capability for non\-root users to add, modify, and delete their own share definitions has been added\&. This capability is called
296\fIusershares\fR
297and is controlled by a set of parameters in the [global] section of the smb\&.conf\&. The relevant parameters are :
298.PP
299usershare allow guests
300.RS 4
301Controls if usershares can permit guest access\&.
302.RE
303.PP
304usershare max shares
305.RS 4
306Maximum number of user defined shares allowed\&.
307.RE
308.PP
309usershare owner only
310.RS 4
311If set only directories owned by the sharing user can be shared\&.
312.RE
313.PP
314usershare path
315.RS 4
316Points to the directory containing the user defined share definitions\&. The filesystem permissions on this directory control who can create user defined shares\&.
317.RE
318.PP
319usershare prefix allow list
320.RS 4
321Comma\-separated list of absolute pathnames restricting what directories can be shared\&. Only directories below the pathnames in this list are permitted\&.
322.RE
323.PP
324usershare prefix deny list
325.RS 4
326Comma\-separated list of absolute pathnames restricting what directories can be shared\&. Directories below the pathnames in this list are prohibited\&.
327.RE
328.PP
329usershare template share
330.RS 4
331Names a pre\-existing share used as a template for creating new usershares\&. All other share parameters not specified in the user defined share definition are copied from this named share\&.
332.RE
333.PP
334To allow members of the UNIX group
335foo
336to create user defined shares, create the directory to contain the share definitions as follows:
337.PP
338Become root:
339.sp
340.if n \{\
341.RS 4
342.\}
343.nf
344mkdir /usr/local/samba/lib/usershares
345chgrp foo /usr/local/samba/lib/usershares
346chmod 1770 /usr/local/samba/lib/usershares
347.fi
348.if n \{\
349.RE
350.\}
351.PP
352Then add the parameters
353.sp
354.if n \{\
355.RS 4
356.\}
357.nf
358 \m[blue]\fBusershare path = /usr/local/samba/lib/usershares\fR\m[]
359 \m[blue]\fBusershare max shares = 10\fR\m[] # (or the desired number of shares)
360.fi
361.if n \{\
362.RE
363.\}
364.sp
365to the global section of your
366smb\&.conf\&. Members of the group foo may then manipulate the user defined shares using the following commands\&.
367.PP
368net usershare add sharename path [comment] [acl] [guest_ok=[y|n]]
369.RS 4
370To create or modify (overwrite) a user defined share\&.
371.RE
372.PP
373net usershare delete sharename
374.RS 4
375To delete a user defined share\&.
376.RE
377.PP
378net usershare list wildcard\-sharename
379.RS 4
380To list user defined shares\&.
381.RE
382.PP
383net usershare info wildcard\-sharename
384.RS 4
385To print information about user defined shares\&.
386.RE
387.SH "PARAMETERS"
388.PP
389Parameters define the specific attributes of sections\&.
390.PP
391Some parameters are specific to the [global] section (e\&.g\&.,
392\fIsecurity\fR)\&. Some parameters are usable in all sections (e\&.g\&.,
393\fIcreate mask\fR)\&. All others are permissible only in normal sections\&. For the purposes of the following descriptions the [homes] and [printers] sections will be considered normal\&. The letter
394\fIG\fR
395in parentheses indicates that a parameter is specific to the [global] section\&. The letter
396\fIS\fR
397indicates that a parameter can be specified in a service specific section\&. All
398\fIS\fR
399parameters can also be specified in the [global] section \- in which case they will define the default behavior for all services\&.
400.PP
401Parameters are arranged here in alphabetical order \- this may not create best bedfellows, but at least you can find them! Where there are synonyms, the preferred synonym is described, others refer to the preferred synonym\&.
402.SH "VARIABLE SUBSTITUTIONS"
403.PP
404Many of the strings that are settable in the config file can take substitutions\&. For example the option
405\(lqpath = /tmp/%u\(rq
406is interpreted as
407\(lqpath = /tmp/john\(rq
408if the user connected with the username john\&.
409.PP
410These substitutions are mostly noted in the descriptions below, but there are some general substitutions which apply whenever they might be relevant\&. These are:
411.PP
412%U
413.RS 4
414session username (the username that the client wanted, not necessarily the same as the one they got)\&.
415.RE
416.PP
417%G
418.RS 4
419primary group name of %U\&.
420.RE
421.PP
422%h
423.RS 4
424the Internet hostname that Samba is running on\&.
425.RE
426.PP
427%m
428.RS 4
429the NetBIOS name of the client machine (very useful)\&.
430.sp
431This parameter is not available when Samba listens on port 445, as clients no longer send this information\&. If you use this macro in an include statement on a domain that has a Samba domain controller be sure to set in the [global] section
432\fIsmb ports = 139\fR\&. This will cause Samba to not listen on port 445 and will permit include functionality to function as it did with Samba 2\&.x\&.
433.RE
434.PP
435%L
436.RS 4
437the NetBIOS name of the server\&. This allows you to change your config based on what the client calls you\&. Your server can have a
438\(lqdual personality\(rq\&.
439.RE
440.PP
441%M
442.RS 4
443the Internet name of the client machine\&.
444.RE
445.PP
446%R
447.RS 4
448the selected protocol level after protocol negotiation\&. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1\&.
449.RE
450.PP
451%d
452.RS 4
453the process id of the current server process\&.
454.RE
455.PP
456%a
457.RS 4
458The architecture of the remote machine\&. It currently recognizes Samba (\fBSamba\fR), the Linux CIFS file system (\fBCIFSFS\fR), OS/2, (\fBOS2\fR), Windows for Workgroups (\fBWfWg\fR), Windows 9x/ME (\fBWin95\fR), Windows NT (\fBWinNT\fR), Windows 2000 (\fBWin2K\fR), Windows XP (\fBWinXP\fR), Windows XP 64\-bit(\fBWinXP64\fR), Windows 2003 including 2003R2 (\fBWin2K3\fR), and Windows Vista (\fBVista\fR)\&. Anything else will be known as
459\fBUNKNOWN\fR\&.
460.RE
461.PP
462%I
463.RS 4
464the IP address of the client machine\&.
465.RE
466.PP
467%i
468.RS 4
469the local IP address to which a client connected\&.
470.RE
471.PP
472%T
473.RS 4
474the current date and time\&.
475.RE
476.PP
477%D
478.RS 4
479name of the domain or workgroup of the current user\&.
480.RE
481.PP
482%w
483.RS 4
484the winbind separator\&.
485.RE
486.PP
487%$(\fIenvvar\fR)
488.RS 4
489the value of the environment variable
490\fIenvar\fR\&.
491.RE
492.PP
493The following substitutes apply only to some configuration options (only those that are used when a connection has been established):
494.PP
495%S
496.RS 4
497the name of the current service, if any\&.
498.RE
499.PP
500%P
501.RS 4
502the root directory of the current service, if any\&.
503.RE
504.PP
505%u
506.RS 4
507username of the current service, if any\&.
508.RE
509.PP
510%g
511.RS 4
512primary group name of %u\&.
513.RE
514.PP
515%H
516.RS 4
517the home directory of the user given by %u\&.
518.RE
519.PP
520%N
521.RS 4
522the name of your NIS home directory server\&. This is obtained from your NIS auto\&.map entry\&. If you have not compiled Samba with the
523\fI\-\-with\-automount\fR
524option, this value will be the same as %L\&.
525.RE
526.PP
527%p
528.RS 4
529the path of the service\'s home directory, obtained from your NIS auto\&.map entry\&. The NIS auto\&.map entry is split up as
530%N:%p\&.
531.RE
532.PP
533There are some quite creative things that can be done with these substitutions and other
534smb\&.conf
535options\&.
536.SH "NAME MANGLING"
537.PP
538Samba supports
539name mangling
540so 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\&.
541.PP
542There 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\&.
543.PP
544These options can be set separately for each service\&.
545.PP
546The options are:
547.PP
548case sensitive = yes/no/auto
549.RS 4
550controls 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
551\fIauto\fR\&.
552.RE
553.PP
554default case = upper/lower
555.RS 4
556controls what the default case is for new filenames (ie\&. files that don\'t currently exist in the filesystem)\&. Default
557\fIlower\fR\&. IMPORTANT NOTE: This option will be used to modify the case of
558\fIall\fR
559incoming client filenames, not just new filenames if the options
560\m[blue]\fBcase sensitive = yes\fR\m[],
561\m[blue]\fBpreserve case = No\fR\m[],
562\m[blue]\fBshort preserve case = No\fR\m[]
563are set\&. This change is needed as part of the optimisations for directories containing large numbers of files\&.
564.RE
565.PP
566preserve case = yes/no
567.RS 4
568controls 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
569default
570case\&. Default
571\fIyes\fR\&.
572.RE
573.PP
574short preserve case = yes/no
575.RS 4
576controls 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
577default
578case\&. This option can be used with
579preserve case = yes
580to permit long filenames to retain their case, while short names are lowercased\&. Default
581\fIyes\fR\&.
582.RE
583.PP
584By default, Samba 3\&.0 has the same semantics as a Windows NT server, in that it is case insensitive but case preserving\&. As a special case for directories with large numbers of files, if the case options are set as follows, "case sensitive = yes", "case preserve = no", "short preserve case = no" then the "default case" option will be applied and will modify all filenames sent from the client when accessing this share\&.
585.SH "NOTE ABOUT USERNAME/PASSWORD VALIDATION"
586.PP
587There are a number of ways in which a user can connect to a service\&. The server uses the following steps in determining if it will allow a connection to a specified service\&. If all the steps fail, the connection request is rejected\&. However, if one of the steps succeeds, the following steps are not checked\&.
588.PP
589If the service is marked
590\(lqguest only = yes\(rq
591and the server is running with share\-level security (\(lqsecurity = share\(rq, steps 1 to 5 are skipped\&.
592.sp
593.RS 4
594.ie n \{\
595\h'-04' 1.\h'+01'\c
596.\}
597.el \{\
598.sp -1
599.IP " 1." 4.2
600.\}
601If 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
602\e\eserver\eservice%\fIusername\fR
603method of passing a username\&.
604.RE
605.sp
606.RS 4
607.ie n \{\
608\h'-04' 2.\h'+01'\c
609.\}
610.el \{\
611.sp -1
612.IP " 2." 4.2
613.\}
614If the client has previously registered a username with the system and now supplies a correct password for that username, the connection is allowed\&.
615.RE
616.sp
617.RS 4
618.ie n \{\
619\h'-04' 3.\h'+01'\c
620.\}
621.el \{\
622.sp -1
623.IP " 3." 4.2
624.\}
625The 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\&.
626.RE
627.sp
628.RS 4
629.ie n \{\
630\h'-04' 4.\h'+01'\c
631.\}
632.el \{\
633.sp -1
634.IP " 4." 4.2
635.\}
636If the client has previously validated a username/password pair with the server and the client has passed the validation token, that username is used\&.
637.RE
638.sp
639.RS 4
640.ie n \{\
641\h'-04' 5.\h'+01'\c
642.\}
643.el \{\
644.sp -1
645.IP " 5." 4.2
646.\}
647If a
648user =
649field is given in the
650smb\&.conf
651file 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
652user =
653field, the connection is made as the username in the
654user =
655line\&. If one of the usernames in the
656user =
657list begins with a
658@, that name expands to a list of names in the group of the same name\&.
659.RE
660.sp
661.RS 4
662.ie n \{\
663\h'-04' 6.\h'+01'\c
664.\}
665.el \{\
666.sp -1
667.IP " 6." 4.2
668.\}
669If the service is a guest service, a connection is made as the username given in the
670guest account =
671for the service, irrespective of the supplied password\&.
672.RE
673.SH "REGISTRY-BASED CONFIGURATION"
674.PP
675Starting with Samba version 3\&.2\&.0, the capability to store Samba configuration in the registry is available\&. The configuration is stored in the registry key
676\fIHKLM\eSoftware\eSamba\esmbconf\fR\&. There are two levels of registry configuration:
677.sp
678.RS 4
679.ie n \{\
680\h'-04' 1.\h'+01'\c
681.\}
682.el \{\
683.sp -1
684.IP " 1." 4.2
685.\}
686Share definitions stored in registry are used\&. This is triggered by setting the global parameter
687\fIregistry shares\fR
688to
689\(lqyes\(rq
690in
691\fIsmb\&.conf\fR\&.
692.sp
693The registry shares are loaded not at startup but on demand at runtime by
694\fIsmbd\fR\&. Shares defined in
695\fIsmb\&.conf\fR
696take priority over shares of the same name defined in registry\&.
697.RE
698.sp
699.RS 4
700.ie n \{\
701\h'-04' 2.\h'+01'\c
702.\}
703.el \{\
704.sp -1
705.IP " 2." 4.2
706.\}
707Global
708\fIsmb\&.conf\fR
709options stored in registry are used\&. This can be activated in two different ways:
710.sp
711Firstly, a registry only configuration is triggered by setting
712\m[blue]\fBconfig backend = registry\fR\m[]
713in the [global] section of
714\fIsmb\&.conf\fR\&. This resets everything that has been read from config files to this point and reads the content of the global configuration section from the registry\&. This is the recommended method of using registry based configuration\&.
715.sp
716Secondly, a mixed configuration can be activated by a special new meaning of the parameter
717\m[blue]\fBinclude = registry\fR\m[]
718in the [global] section of
719\fIsmb\&.conf\fR\&. This reads the global options from registry with the same priorities as for an include of a text file\&. This may be especially useful in cases where an initial configuration is needed to access the registry\&.
720.sp
721Activation of global registry options automatically activates registry shares\&. So in the registry only case, shares are loaded on demand only\&.
722.RE
723.sp
724.RE
725.PP
726Note: To make registry\-based configurations foolproof at least to a certain extent, the use of
727\fIlock directory\fR
728and
729\fIconfig backend\fR
730inside the registry configuration has been disabled: Especially by changing the
731\fIlock directory\fR
732inside the registry configuration, one would create a broken setup where the daemons do not see the configuration they loaded once it is active\&.
733.PP
734The registry configuration can be accessed with tools like
735\fIregedit\fR
736or
737\fInet (rpc) registry\fR
738in the key
739\fIHKLM\eSoftware\eSamba\esmbconf\fR\&. More conveniently, the
740\fIconf\fR
741subcommand of the
742\fBnet\fR(8)
743utility offers a dedicated interface to read and write the registry based configuration locally, i\&.e\&. directly accessing the database file, circumventing the server\&.
744.SH "EXPLANATION OF EACH PARAMETER"
745<xi:include></xi:include>.SH "WARNINGS"
746.PP
747Although 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\&.
748.PP
749On a similar note, many clients \- especially DOS clients \- limit service names to eight characters\&.
750\fBsmbd\fR(8)
751has no such limitation, but attempts to connect from such clients will fail if they truncate the service names\&. For this reason you should probably keep your service names down to eight characters in length\&.
752.PP
753Use of the
754[homes]
755and
756[printers]
757special sections make life for an administrator easy, but the various combinations of default attributes can be tricky\&. Take extreme care when designing these sections\&. In particular, ensure that the permissions on spool directories are correct\&.
758.SH "VERSION"
759.PP
760This man page is correct for version 3 of the Samba suite\&.
761.SH "SEE ALSO"
762.PP
763
764\fBsamba\fR(7),
765\fBsmbpasswd\fR(8),
766\fBswat\fR(8),
767\fBsmbd\fR(8),
768\fBnmbd\fR(8),
769\fBsmbclient\fR(1),
770\fBnmblookup\fR(1),
771\fBtestparm\fR(1),
772\fBtestprns\fR(1)\&.
773.SH "AUTHOR"
774.PP
775The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
776.PP
777The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
778ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
Note: See TracBrowser for help on using the repository browser.