summaryrefslogtreecommitdiff
path: root/docs/docbook/smbdotconf/misc/defaultservice.xml
blob: 39e467b1d105009d0da925be9c247dec02ca2708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<samba:parameter name="default service"
                 context="G"
                 advanced="1" developer="1"
                 xmlns:samba="http://samba.org/common">
<listitem>
	<para>This parameter specifies the name of a service
	which will be connected to if the service actually requested cannot
	be found. Note that the square brackets are <emphasis>NOT</emphasis>
	given in the parameter value (see example below).</para>

	<para>There is no default value for this parameter. If this 
	parameter is not given, attempting to connect to a nonexistent 
	service results in an error.</para>

	<para>Typically the default service would be a <link linkend="GUESTOK">
	<parameter moreinfo="none">guest ok</parameter></link>, <link linkend="READONLY">
	<parameter moreinfo="none">read-only</parameter></link> service.</para>

	<para>Also note that the apparent service name will be changed 
	to equal that of the requested service, this is very useful as it 
	allows you to use macros like <parameter moreinfo="none">%S</parameter> to make 
	a wildcard service.</para>

	<para>Note also that any &quot;_&quot; characters in the name of the service 
	used in the default service will get mapped to a &quot;/&quot;. This allows for
	interesting things.</para>

	<para>Example:</para>
		
<para><programlisting format="linespecific">
[global]
	default service = pub
        
[pub]
	path = /%S
</programlisting></para>
</listitem>
</samba:parameter>