So this is what I did:
** Installed LMDE2 and updated it.
** Installed samba:
sudo apt install samba
** Made myself a member of the sambashare group:
sudo gpasswd -a tester sambashare
Why LMDE does not make you a member of this group by default is a mystery.
** Logged out and back again so the new group membership would take affect.
** Created a share of my Public folder using Nemo - I made it a fully public share allowing guest access.
** Accessed the share from Xubuntu:
thunar smb://vlmde2.local/public
So far I can't reproduce your error.
Special note to Mike Acker: I just did this without any "Microsoft Stuff" - No workgroups, no master browser, no netbios, no nothin' Microsoft related.
Then I went about trying to break it.
Did this:
sudo chmod 0777 /var/lib/samba
And got this warning in testparm:
WARNING: state directory /var/lib/samba should have permissions 0755 for browsing to work
. But that wasn't enough to break it.
But then I thought about this a bit ( it happens to me sometimes ) and on a hunch did the same thing to a subfolder:
sudo chmod 0777 /var/lib/samba/usershares
And as me mum used to say: Bingo! I can only see the print$ share. I could not access it with a
thunar smb://vlmde2.local/public
- although I can access my home folder:
thunar smb://vlmde2.local/tester
because that is defined in smb.conf and is not a usershare.
Setting /var/lib/samba/usershares to 0777 breaks usershares. Set it back where it belongs:
Code: Select all
sudo chmod 1770 /var/lib/samba/usershares
If you run the following command:
Code: Select all
stat -c "%a %n %U %G" /var/lib/samba/usershares
It should come back with this:
1770 /var/lib/samba/usershares root sambashare