Document 13085 and 13086
[Samba.git] / docs / smbdotconf / misc / changesharecommand.xml
blob4b65eda7b560a8824a02d76099397cb8af207384
1 <samba:parameter name="change share command"
2                  context="G"
3                                  type="string"
4                  advanced="1" developer="1"
5                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
6 <description>
7         <para>Samba 2.2.0 introduced the ability to dynamically 
8         add and delete shares via the Windows NT 4.0 Server Manager.  The 
9         <parameter moreinfo="none">change share command</parameter> is used to define an 
10         external program or script which will modify an existing service definition 
11         in <filename moreinfo="none">smb.conf</filename>.  In order to successfully 
12         execute the <parameter moreinfo="none">change share command</parameter>, <command moreinfo="none">smbd</command>
13         requires that the administrator be connected using a root account (i.e. 
14         uid == 0).
15         </para>
16                 
17         <para>
18         When executed, <command moreinfo="none">smbd</command> will automatically invoke the 
19         <parameter moreinfo="none">change share command</parameter> with five parameters.
20         </para>
21                 
22         <itemizedlist>
23                 <listitem>
24                         <para><parameter moreinfo="none">configFile</parameter> - the location 
25                         of the global <filename moreinfo="none">smb.conf</filename> file. 
26                         </para>
27                 </listitem>
28                         
29                 <listitem>
30                         <para><parameter moreinfo="none">shareName</parameter> - the name of the new 
31                         share.
32                         </para>
33                 </listitem>
34                         
35                 <listitem>
36                         <para><parameter moreinfo="none">pathName</parameter> - path to an **existing**
37                         directory on disk.
38                         </para>
39                 </listitem>
40                         
41                 <listitem>
42                         <para><parameter moreinfo="none">comment</parameter> - comment string to associate 
43                         with the new share.
44                         </para>
45                 </listitem>
47                 <listitem>
48                         <para><parameter moreinfo="none">max
49                         connections</parameter>
50                         Number of maximum simultaneous connections to this
51                         share.
52                         </para>
53                 </listitem>
54         </itemizedlist>
55                 
56         <para>
57         This parameter is only used modify existing file shares definitions.  To modify 
58         printer shares, use the &quot;Printers...&quot; folder as seen when browsing the Samba host.
59         </para>
60 </description>
62 <related>add share command</related>
63 <related>delete share command</related>
64 <value type="default"></value>
65 <value type="example">/usr/local/bin/addshare</value>
66 </samba:parameter>