1 <samba:parameter name="add share command"
4 advanced="1" developer="1"
5 xmlns:samba="http://samba.org/common">
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">add share command</parameter> is used to define an
10 external program or script which will add a new service definition
11 to <filename moreinfo="none">smb.conf</filename>. In order to successfully
12 execute the <parameter moreinfo="none">add share command</parameter>, <command moreinfo="none">smbd</command>
13 requires that the administrator be connected using a root account (i.e.
18 When executed, <command moreinfo="none">smbd</command> will automatically invoke the
19 <parameter moreinfo="none">add share command</parameter> with four parameters.
24 <para><parameter moreinfo="none">configFile</parameter> - the location
25 of the global <filename moreinfo="none">smb.conf</filename> file.
30 <para><parameter moreinfo="none">shareName</parameter> - the name of the new
36 <para><parameter moreinfo="none">pathName</parameter> - path to an **existing**
42 <para><parameter moreinfo="none">comment</parameter> - comment string to associate
49 This parameter is only used for add file shares. To add printer shares,
50 see the <link linkend="ADDPRINTERCOMMAND"><parameter moreinfo="none">addprinter
51 command</parameter></link>.
55 <related>change share command</related>
56 <related>delete share command</related>
57 <value type="default"></value>
58 <value type="example">/usr/local/bin/addshare</value>