(1) add share command/delete share command There is a description that: ----- If the connected account has SeDiskOperatorPrivilege, scripts defined in **change** share parameter are executed as root. ----- The word "change" should be "add" or "delete". (2) add/change share command There is a description that: ----- When executed, smbd will automatically invoke the add/change share command with five parameters. ----- But when this parameter is called via RAP, such as "net rap share add" command, source/smbd/lanman.c:api_RNetShareAdd() is called with 4 parameters.
[Memo] Original add/change share command take 4 parameters. At Samba 3.0.21b, 'max connections' support was added. http://us6.samba.org/samba/history/samba-3.0.21b.html * Hook the max connections spin box in the share properties MMC plug-in dialog to the 'max connections' smb.conf parameter and the 'modify share command' option.
Fixed with commit 8b7f66c5 in master. Will be included in the next releases. Thanks for reporting!