How to mount nfs drive on macOS with read+write access? I'm trying to mount a drive from Linux on my macOS El Capitan laptop. I try a command like this:

sudo mount -o rw -t nfs nfs.subdomain.employer.com:/ifs/home/username /private/workspace/
cd /private/workspace/
echo "hello" &gt; test.txt
-bash: test.txt: Permission denied


where username (the text, not the uid) is the same on my laptop as it is on the server (controlled by my employer). Unfortunately, while I can read files, I'm not getting write access. A colleague of mine said he tried that command from linux as my account and said it worked, but he doesn't know much about macs.
I have this setup, please do the machine/folder names translation according to your case.
In /etc/exports on server side (mine is a centos 7):
/workspace_guest/02.code 
172.20.0.1(rw,sync,insecure,all_squash,anonuid=1000,anongid=1000)

From client side (macOS Catalina Version 10.15.6)
$ sudo mount -t nfs -o resvport,rw,noowners 172.20.0.100:/workspace_guest/02.code /Volumes/C76/02.code

There is a good explanation in this post as &quot;all_squash will map all UIDs and GIDs to the anonymous user, and anonuid and anongid set the UID and GID of the anonymous user.&quot;. I make it on the client side as &quot;noowner&quot; is to apply the current user/group as the &quot;anonymous&quot;. You can also refer to the other post for the configuration.