When you work in a shared environment most of the time you mount NFS on your local machine from the local server.

Most of the time it’s annoying because when you mount your folder on Mac you don’t have the permission to edit/delet files even if the  « rw » option is enable…

The trick is to use the anonymous ID :

in your server use something like this to share your folder :

/home/Nicolas_Dagieu 192.168.1.0/255.255.255.0(rw,all_squash,no_subtree_check,async,anonuid=1007,anongid=1009)

which will forward ALL request to the anon user, which will have the same uid/gid as the owner of the shared folder.

on Mac do a simple :

sudo mount -t nfs -o resvport,rw server.local:/home/Nicolas_Dagieu Mounted_folder/

That’s it now you can easily edit/remove files from your nfs.