I have an Ubuntu Server 20.04 installed on a Raspberry Pi 4. I am trying to mount a hard drive that should be accessible by two different samba users (user1, uid=1001 and user2, uid=1002). I created a group that contains these two users (gid=1007) and added the following entry in fstab
LABEL=WINHDD /mnt/winhdd ntfs-3g defaults,nls=utf8,dmask=077,fmask=177,gid=1007 0 0
My smb.conf has the share listed as
[winhdd]
path = /mnt/winhdd
read only = no
browseable = no
However, I am unable to access the samba drive (get the error: Windows cannot access \piserver\winhdd, when I click on the mapped network drive icon) from a Windows PC. Providing uid works (with the same masks as shown above), but then the other user cannot access the drive. How do I successfully grant two samba users access to the share?
PS: I saw several questions and guides where the fstab entry contains both uid and gid, often identical, except in this question, but when I use both uid and gid, I am unable to connect with either user, as if I didn't provide a uid at all.
Thanks!