1 <samba:parameter name="add share command"
4 advanced="1" developer="1"
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">add share command</parameter> is used to define an external program
10 or script which will add a new service definition to <filename moreinfo="none">smb.conf</filename>. In order
11 to successfully execute the <parameter moreinfo="none">add share command</parameter>, <command
12 moreinfo="none">smbd</command> requires that the administrator be connected using a root account (i.e. uid == 0).
16 If the connected account has <literal>SeDiskOperatorPrivilege</literal>, scripts defined in
17 <parameter moreinfo="none">change share</parameter> parameter are executed as root.
21 When executed, <command moreinfo="none">smbd</command> will automatically invoke the
22 <parameter moreinfo="none">add share command</parameter> with five parameters.
27 <para><parameter moreinfo="none">configFile</parameter> - the location of the global <filename
28 moreinfo="none">smb.conf</filename> file.
33 <para><parameter moreinfo="none">shareName</parameter> - the name of the new share.
38 <para><parameter moreinfo="none">pathName</parameter> - path to an **existing**
44 <para><parameter moreinfo="none">comment</parameter> - comment string to associate with the new
50 <para><parameter moreinfo="none">max
51 connections</parameter>
52 Number of maximum simultaneous connections to this
59 This parameter is only used for add file shares. To add printer shares, see the <smbconfoption
60 name="addprinter command"/>.
64 <related>change share command</related>
65 <related>delete share command</related>
66 <value type="default"></value>
67 <value type="example">/usr/local/bin/addshare</value>