1 <samba:parameter name="change share command"
5 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
8 Samba 2.2.0 introduced the ability to dynamically add and delete shares via the Windows NT 4.0 Server
9 Manager. The <parameter moreinfo="none">change share command</parameter> is used to define an external
10 program or script which will modify an existing service definition in <filename
11 moreinfo="none">smb.conf</filename>.
15 In order to successfully execute the
16 <parameter moreinfo="none">change share command</parameter>,
17 <command moreinfo="none">smbd</command> requires that the administrator
18 connects using a root account (i.e. uid == 0) or has the
19 <literal>SeDiskOperatorPrivilege</literal>.
20 Scripts defined in the <parameter moreinfo="none">change share command</parameter>
21 parameter are executed as root.
25 When executed, <command moreinfo="none">smbd</command> will automatically invoke the
26 <parameter moreinfo="none">change share command</parameter> with six parameters.
31 <para><parameter moreinfo="none">configFile</parameter> - the location
32 of the global <filename moreinfo="none">smb.conf</filename> file.
37 <para><parameter moreinfo="none">shareName</parameter> - the name of the new
43 <para><parameter moreinfo="none">pathName</parameter> - path to an **existing**
49 <para><parameter moreinfo="none">comment</parameter> - comment string to associate
55 <para><parameter moreinfo="none">max
56 connections</parameter>
57 Number of maximum simultaneous connections to this
63 <para><parameter moreinfo="none">CSC policy</parameter> - client side caching
64 policy in string form. Valid values are: manual, documents, programs, disable.
70 This parameter is only used to modify existing file share definitions.
71 To modify printer shares, use the "Printers..." folder as seen
72 when browsing the Samba host.
76 <related>add share command</related>
77 <related>delete share command</related>
78 <value type="default"></value>
79 <value type="example">/usr/local/bin/changeshare</value>