We have been researching this issue and suspect that there may be an interaction between AppArmor and Samba which is causing this issue on some systems with Zorin OS 18.
In order to resolve this issue, please try opening the Terminal (Ctrl+Alt+T) and entering this command:
sudo apt remove apparmor-profiles
Afterwards, please restart your computer to apply the workaround. You should now be able to use Samba normally.
Please let us know if this workaround resolves the issue for you. This would allow us to apply a more permanent solution for all Zorin OS 18 users.
I still get this error on ZorinOS 18, when trying to share a folder via Nautilus.
»net usershare« gab den Fehler 255 zurück: cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe lsarpc failed with error NT_STATUS_CONNECTION_DISCONNECTED
net usershare add: cannot convert name "Everyone" to a SID. The transport connection is now disconnected..
This is what I did before:
sudo apt remove apparmor-profiles
# Reboot after patch
sudo apt install nautilus-share samba
sudo nautilus -q
sudo smbpasswd -a USERNAME
The ZorinOS Team have fixed the Samba problem, I have test it and yes it is now working properly, but you need to get the new ISO. I don't know if the Standard version ISO had been updated already but the 18pro ISO is now 300MB bigger. So to solve it for good without a workaround you will need to install Zorin 18 again.