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/changesharecommand.xml | 70 +++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 docs-xml/smbdotconf/misc/changesharecommand.xml (limited to 'docs-xml/smbdotconf/misc/changesharecommand.xml') diff --git a/docs-xml/smbdotconf/misc/changesharecommand.xml b/docs-xml/smbdotconf/misc/changesharecommand.xml new file mode 100644 index 0000000000..5a42e22559 --- /dev/null +++ b/docs-xml/smbdotconf/misc/changesharecommand.xml @@ -0,0 +1,70 @@ + + + + Samba 2.2.0 introduced the ability to dynamically add and delete shares via the Windows NT 4.0 Server +Manager. The change share command is used to define an external +program or script which will modify an existing service definition in smb.conf. In order to successfully execute the change +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 + change 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 modify existing file shares definitions. To modify + printer shares, use the "Printers..." folder as seen when browsing the Samba host. + + + +add share command +delete share command + +/usr/local/bin/addshare + -- cgit