Following up… after messing around for two days, I finally got it working.
In the end, using chmod
was not enough, nor was setting groups correctly.
In case anybody else ends up here, the solution was to change the NFS configuration on the Ubuntu machine providing the share.
By default, macOS Monterey was using NFSv3, but NFSv4 is needed for ACL, and this involved tweaking /etc/exports
on the Ubuntu server , e.g.:
/media/share *(fsid=0,rw,no_subtree_check,all_squash,insecure,crossmnt,anongid=1000,anonuid=1000)
I’m stuck using macOS Monterey, so the fsid=0 was necessary.
Next, on the mac, edit /etc/nfs.conf
to include vers=4, e.g.:
nfs.client.mount.options = vers=4,resvport,nfc,tcp,rwsize=65536,rdirplus,intr,readahead=128
…and mount the share on the mac, like this:
sudo mount -t nfs -o vers=4 <server-ip>:/ /Users/me/sharePoint
It doesn’t work unless you mount only the root directory, i.e., <server-ip>:/
, but NFS will map this to /media/share
per the /etc/exports
file, so it works.
Voilà