When using the net Tool for administration of Samba and remote CIFS servers, I get this error:
raspberrypi:~$ net usershare add
net usershare add [-l|--long] <sharename> <path> [<comment>] [<acl>] [<guest_ok=[y|n]>]
Adds the specified share name for this user.
<sharename> is the new share name.
<path> is the path on the filesystem to export.
<comment> is the optional comment for the new share.
<acl> is an optional share acl in the format "DOMAIN\name:X,DOMAIN\name:X,...."
<guest_ok=y> if present sets "guest ok = yes" on this usershare.
"X" represents a permission and can be any one of the characters f, r or d
where "f" means full control, "r" means read-only, "d" means deny access.
name may be a domain user or group. For local users use the local server name instead of "DOMAIN"
The default acl is "Everyone:r" which allows everyone read-only access.
Add -l or --long to print the info on the newly added share.
Freed frame ../source3/utils/net.c:787, expected ../source3/utils/net_usershare.c:625.
It seems like a package error. I have installed the package
Samba version (2:4.5.12+dfsg-2)
on Raspbian GNU/Linux 9.1 (stretch).
raspberrypi:~$ net -V
For further details see
Created attachment 13797 [details]
Proposed git-am fix for master.
757a120fc4c659047bd6a1175b24f0673630ce2d in master since long, closing.