I tried configuring a share via domain / shares, and just never got my Univention NextCloud appliance to be browsable from my Windows 7 PC & Windows Server 2016 VM, until I installed Active Directory compatible domain controller. Which seemed like overkill, but that’s what worked. Firstly, if that’s not the ‘right’ way to get Samba working, I would appreciate being pointed in a better direction.
With the NextCloud Windows client logged in as Administrator, I created a folder (called Pictures), and then I shared it with User1, a user in NextCloud. I tried to connect to the CIFS share as NextCloudVM\Administrator (using the VM IP for now), and it worked splendidly. Next, I tried to connect to the CIFS share as User1, and was unable to log on. Which makes sense: I created User1 as a NextCloud application user, but not as an account in Univention, so Samba wouldn’t recognize him. So I created User1 in Users (not LDAP), and I proceeded to try to share Pictures with "Domain Users’ (didn’t work), and “Authenticated Users” (still not working). While connected as User1 I am able to browse \NextCloudVM\ and see the shares “netlogon” and “sysvol” as well as “Pictures”, but when I double-click Pictures it says “You do not have permission to access” and to contact my administrator, which is a bit insulting when you’re that admin. Help?
My share is set up as follows:
Name = Pictures
Host = my FQDN (DDNS) which I have set in the hosts file on my Windows 7 PC for home use.
Directory = /var/lib/univention-appcenter/apps/nextcloud/data/nextcloud-data/Administrator/files/Pictures
Directory Owner = Administrator (tried root, User1, and several others, no dice)
Directory Group = Authenticated Users (tried several options there as well)
Permissions = Every box is checked at this moment.
I also tried going in through WinSCP (SSH/SFTP) and setting permissions on that folder. Nothing I did made much difference. I am wondering if I should’ve restart Samba daemons whenever I made changes?