Created attachment 150167 [details] Patch to remove trailing comma of "net usershare info" output SUMMARY At least Samba version >=4.14.12 and <=4.16.2 generate a trailing comma with "net usershare info" like so: claus@anaxagoras /usr/local/storage/a/samba/public $ net usershare info [scanbox] usershare_acl=ANAXAGORAS\claus:R,Everyone:R,ANAXAGORAS\scanner-upload:F, OTOH, "net usershare add" does not accept a trailing comma as input and generates an error message: net usershare add: malformed acl (missing ':'). STEPS TO REPRODUCE 1. Use the sharing dialog for some local file with an existing share 2. Do something which triggers an error (e.g. use an unsupported user-name like "foo-bar", see #455956 ) 3. Try to apply the changes. The error messages of e.g. Dolphin will show something like "malformed acl (missing ':')." and the ACLs are also not updated. OBSERVED RESULT Saving ACLs fails. EXPECTED RESULT Saving ACLs works. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Gentoo / X11 KDE Plasma Version: 5.25.1 KDE Frameworks Version: 5.95.0 Qt Version: 5.18.6 ADDITIONAL INFORMATION The bug is still present in the master branch.
I'm not sure this isn't something only to be fixed in samba then... ...but, if you want your patch to get looked at, create an MR over at https://invent.kde.org/frameworks/kio instead.
See https://invent.kde.org/frameworks/kio/-/merge_requests/874