I'm trying to mount a remote directory owned by www-data to a local directory owned by sam.
From sam's home directory, I've created ~/directory, and when I "mount directory", I see the contents of the remote /path/to/directory, and all file ownership correctly shows as www-data:www-data in the mounted directory.
The permissions of the files in the remote directory are 775 for directories and 664 for files; and user 'sam' is a member of the 'www-data' group on the client side. As user 'root' on the client side, I am able to write changes to the remote /path/to/directory because of "no_root_squash". However, as user 'sam' I am not able to make any changes inside ~/directory.
Here is the server-side info:
in /etc/default/nfs-kernel-server (everything else is default):
in /etc/default/nfs-common: (all defaults)
Here is the client-side info:
my.server.host:/path/to/directory/ /home/sam/directory nfs rw,noatime,auto 2 0
Since the root user can make changes when the no_root_squash flag is set, I know I'm close and that the problem is not related to DNS or network or firewalls or portmapper or any of the other underlying helper libraries.
Can anyone spot what I'm missing?