Hi there, When I try adding a new usershare using the tool `net' (package smbclient), if I want to print the share info after creating it, it works with the flag --long, but fails if I use -l and shows this error message: reopen_one_log: Unable to open new log file 'directory/log.net': No such file or directory net usershare add: share name /path/to/directory contains invalid characters (any of %<>*?|/\+=;:",) This bug has been present for a couple versions. I currently have version 4.16.4 but have downgraded down to 4.15. something and still had this same issue. It is currently breaking nautilus-share, a plug-in for nautilus that allows sharing files via samba. My distro is ArchLinux, linux 5.18.16-arch1-1 x86_64. Thanks in advance, Thaynan
The -l option was removed when the command options were streamlined, see this commit commit 94fc9ca4c506468ab1907d501c0964d67b9d963c Author: Andreas Schneider <asn@samba.org> AuthorDate: Wed Jan 13 14:54:03 2021 +0100 Commit: Andrew Bartlett <abartlet@samba.org> CommitDate: Fri May 28 02:55:31 2021 +0000 s3:utils: Remove '-l' for '--long' from net This conflicts with '--log-basename' from the commend cmdline parser. The first version to include this was 4.15, see also its release notes: https://www.samba.org/samba/history/samba-4.15.0.html You probably need to file a bug against nautilus.
Found this: https://bugs.archlinux.org/task/72642, so there should be a fix for ArchLinux. I'll reopen this bug to fix the usage statement of the net usershare command to not mention the removed -l option any more.
This bug was referenced in samba master: 123f1c07c41b40de6a9d53599d3d9a42f1a5e92b
Created attachment 17480 [details] patch from master
Hi Jule, please include the attached patch in 4.17. Thanks!
Good day! I'm afraid I can't file a bug because the project is archived, but I'll build a binary from source. Thanks for the response!
Pushed to autobuild-v4-17-test.
This bug was referenced in samba v4-17-test: 0725e1ea851b6e8c37fbdf754e95844bf40c1fcb
This bug was referenced in samba v4-17-stable (Release samba-4.17.0rc3): 0725e1ea851b6e8c37fbdf754e95844bf40c1fcb