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,
The -l option was removed when the command options were streamlined, see this commit
Author: Andreas Schneider <email@example.com>
AuthorDate: Wed Jan 13 14:54:03 2021 +0100
Commit: Andrew Bartlett <firstname.lastname@example.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:
Created attachment 17480 [details]
patch from master
please include the attached patch in 4.17.
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:
This bug was referenced in samba v4-17-stable (Release samba-4.17.0rc3):