This has happened for as long as I can remember. Nautilus/Caja shows a shared icon on the folders, and they are accessible from Windows by typing in their folder name, but they don't show up in the list of folders.
Other folders do show up in the list, even though there's nothing different about the Sharing Options in Nautilus.
If I change the shared name, they show up. If I change it back, they disappear again.
I installed Ubuntu fresh on a new computer, shared two folders with
caja-share with the same settings, and I can access one but not the other. Both have the same owner, group, and permissions:
drwxrwxrwx 2 endolith endolith 4.0K Sep 28 19:35 notwork/ ... drwxrwxrwx 2 endolith endolith 4.0K Sep 28 19:35 works/
the one that works is in
/home, the other is on
/mnt, so that's probably the reason?
It looks like the actual configuration for these are a bunch of text files under
#VERSION 2 path=/mnt/drivepool/notwork comment= usershare_acl=S-1-1-0:F guest_ok=y sharename=notwork
#VERSION 2 path=/home/endolith/works comment= usershare_acl=S-1-1-0:F guest_ok=y sharename=works
So the only difference is the path, as alluded to but not really explained in Here's my smb.conf file. Whats wrong with it?.
drivepool under my home folder doesn't fix it, either. So it's not the path itself but something to do with being inside the mount, which is
I am sharing the files using
mate-file-manager-share) under MATE desktop environment, Ubuntu 16.04.1 LTS, but it also has the standard Ubuntu environment installed.
A clue! I found that Samba has log files for each machine that connects to it.
[2016/10/09 23:32:54.687515, 0] ../source3/param/loadparm.c:3259(process_usershare_file) process_usershare_file: stat of /var/lib/samba/usershares/win7backup failed. Permission denied [2016/10/09 23:32:54.697705, 0] ../source3/smbd/service.c:199(set_current_service) chdir (/mnt/drivepool/Backups/win7backup) failed, reason: No such file or directory
There is such a directory, of course:
~> la /mnt/drivepool/Backups/ drwxrwxrwx 2 endolith endolith 4.0K Sep 26 22:42 win7backup/