fkbreitl
Posts: 40
Joined: Wed Feb 22, 2017 3:07 pm

Bug in Samba "net usershare add"

Sat Nov 18, 2017 11:06 am

When using the net Tool for administration of Samba and remote CIFS servers, I get this error:

Code: Select all

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).

Code: Select all

raspberrypi:~$ net -V
Version 4.5.12-Debian

Who can confirm or fix this?
Last edited by fkbreitl on Sat Nov 18, 2017 4:16 pm, edited 1 time in total.

hortimech
Posts: 361
Joined: Wed Apr 08, 2015 5:52 pm

Re: Bug in Samba "net usershare add"

Sat Nov 18, 2017 2:47 pm

I can confirm this on Samba 4.6.8.

Can you please go here:

https://bugzilla.samba.org/

Create an account and report the bug.

fkbreitl
Posts: 40
Joined: Wed Feb 22, 2017 3:07 pm

Re: Bug in Samba "net usershare add"

Sat Nov 18, 2017 6:13 pm

Ok, I did it. See

https://bugzilla.samba.org/show_bug.cgi?id=13151

(Freed frame error from "net usershare add")

Return to “Troubleshooting”