I setup an NFS share on my NFS server with
Then I do
exportfs -a to activate the share and restart the nfs server.
I mount the share with autofs on the client machine with
foo -fstype=nfs4,soft,rw,noatime,allow_other server.tld:/
/mnt/nfs /etc/auto.nfs --timeout=30 --ghost
I restart autofs (systemctl restart autofs.service)
Then I see all directories from the server. But when I try to navigate to mounted serverdisks under /mnt/mounteddiskonserver I can't see anything anymore. No files, no directories, no write permission through nemo file browser on the client machine. I can go to /home/user on the server and see and delete all my files on the server that have same permissions as /mnt/mounteddiskonserver/fileshere.
When I setup the NFS server to share /mnt/mounteddiskonserver specifically with with
/mnt/mounteddiskonserver *(rw,no_root_squash,no_subtree_check) I can see all files and directories under /mnt/mounteddiskonserver and I can read and write.