Zorin 18 - Shared Folders

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.

1 Like

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

Thanks for letting us know.

Could you confirm whether you restarted your computer after running these last few commands and before trying to share a folder in Nautilus?

1 Like

Yes, I restarted and tried to share.

I finally was able to fix it - the hard way:

cd /etc/apparmor.d
sudo rm samba
sudo rm -rf samba*
sudo rm -rf usr.sbin.smbd
sudo reboot now 

With these files intact, I saw a lot of DENIED entries in

sudo journalctl -xe | grep DENIED

Now everything works fine:

  • Creating usershares from Nautilus
  • Connecting to a share from another machine (this also failed before)
2 Likes

Just for the whole picture ...

You need my workaround above and this, because UserShares require WinBind:

sudo apt install nautilus-share samba winbind
sudo nautilus -q

In /etc/samba/smb.conf add under [global]:

interfaces = 192.168.0.107 127.0.0.1
security = user
usershare path = /var/lib/samba/usershares
usershare allow guests = yes
usershare owner only = yes
usershare max shares = 100
guest account = nobody

Replace 192.168.0.107 with your own IP. Leave 127.0.0.1 as is.
Then restart Samba:

sudo systemctl restart smbd
1 Like

[SOLVED]

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.

This is good for user who want to do this but I will not reinstall my system for just nautilus-share, my smb work, and it's easy to make a share...