The situation: I simply want to be able to access a Synology NAS from an Ubuntu Server with a non-root user.
On the NAS I have this in the exports-file:
On the Ubuntu-Server in fstab I got this:
<server-ip>:/Directory /Mountpoint nfs noauto,user,rw 0 0
Now I want to allow UserA, which is used for some automatic processes to mount the share and write to it.
Mounting as UserA works fine, but I have no permission to even read what's in the directory. As user root I do. Listing the mountpoint folder shows these permissions:
drwxrwx--- 4 UserA root 4096 Sep 17 13:58 Mountpoint
I tried to set the anon-ids in the exports to the ids of UserA, but that didn't help. Making UserA the owner of the folder didn't help either. Is there a simple thing I am missing?
Also: This needs to be an nfs share as it will transfer large amounts of data.
Edit: I would prefer to avoid giving read and write permissions to "others" for security reasons.