From 8f8a9f01909ba29e2b781310baeeaaddc3f15f0d Mon Sep 17 00:00:00 2001 From: "Gerald W. Carter" Date: Tue, 22 Apr 2008 10:09:40 -0500 Subject: Moving docs tree to docs-xml to make room for generated docs in the release tarball. (This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14) --- docs-xml/smbdotconf/misc/addsharecommand.xml | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 docs-xml/smbdotconf/misc/addsharecommand.xml (limited to 'docs-xml/smbdotconf/misc/addsharecommand.xml') diff --git a/docs-xml/smbdotconf/misc/addsharecommand.xml b/docs-xml/smbdotconf/misc/addsharecommand.xml new file mode 100644 index 0000000000..9eb50f3dc3 --- /dev/null +++ b/docs-xml/smbdotconf/misc/addsharecommand.xml @@ -0,0 +1,68 @@ + + + + Samba 2.2.0 introduced the ability to dynamically add and delete shares via the Windows NT 4.0 Server + Manager. The add share command is used to define an external program + or script which will add a new service definition to smb.conf. In order + to successfully execute the add share command, smbd requires that the administrator be connected using a root account (i.e. uid == 0). + + + + If the connected account has SeDiskOperatorPrivilege, scripts defined in + change share parameter are executed as root. + + + + When executed, smbd will automatically invoke the + add share command with five parameters. + + + + + configFile - the location of the global smb.conf file. + + + + + shareName - the name of the new share. + + + + + pathName - path to an **existing** + directory on disk. + + + + + comment - comment string to associate with the new + share. + + + + + max + connections + Number of maximum simultaneous connections to this + share. + + + + + + This parameter is only used for add file shares. To add printer shares, see the . + + + +change share command +delete share command + +/usr/local/bin/addshare + -- cgit