From 8daa83a594a2e98f39d764422bfbdbc62c9efd44 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 19:20:00 +0200 Subject: Adding upstream version 2:4.20.0+dfsg. Signed-off-by: Daniel Baumann --- docs-xml/smbdotconf/misc/changesharecommand.xml | 80 +++++++++++++++++++++++++ 1 file changed, 80 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 0000000..4cc7451 --- /dev/null +++ b/docs-xml/smbdotconf/misc/changesharecommand.xml @@ -0,0 +1,80 @@ + + + + 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 + connects using a root account (i.e. uid == 0) or has the + SeDiskOperatorPrivilege. + Scripts defined in the change share command + parameter are executed as root. + + + + When executed, smbd will automatically invoke the + change share command with six 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. + + + + + CSC policy - client side caching + policy in string form. Valid values are: manual, documents, programs, disable. + + + + + + This parameter is only used to modify existing file share 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/changeshare + -- cgit v1.2.3