Ok, the <comment> was passed as an empty space, I missed that in my copy paste. This works:
root@nsn7:~# net usershare add --long Public /home/andreas/Public "" Everyone:R,andreas:F guest_ok=y [Public] path=/home/andreas/Public comment= usershare_acl=Everyone:R,Unix User\andreas:F, guest_ok=y Now on to -l vs --long. In Ubuntu Impish, "-l" is used, and it works. In Jammy, -l seems to imply a logging option: root@nsn7:~# net usershare add -l Public /home/andreas/Public "" Everyone:R,andreas:F guest_ok=y [2022/04/04 10:09:05, 0] ../../lib/util/debug.c:1100(reopen_one_log) reopen_one_log: Unable to open new log file 'Public/log.net': No such file or directory net usershare add: share name /home/andreas/public contains invalid characters (any of %<>*?|/\+=;:",) Must be part of the command-line revamp announced in 4.15.0[1]. Indeed: """ net: -l is not available for --long anymore """ 1. https://www.samba.org/samba/history/samba-4.15.0.html -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1967245 Title: 'net usershare' returned error 255 on jammy-desktop-amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1967245/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
