On my NFS server, I have the following export defined:
#NFS exports Database
/shared -alldirs -network=192.168.1 -mask=255.255.255.0
On my NFS client:
192.168.1.7:/shared /shared nfs rw 0 0
Obviously, as root on the server, I can do whatever I want. On the client however, my regular user 'gabe' can make changes to the nfs mount (assuming I have permissions to), but root cannot.
As my regular user:
gabe@client$ cd /shared
gabe@client$ ls -l
total 8
drwxrwxrwx 4 gabe wheel 512 Mar 20 19:20 tmp
gabe@client$ cd tmp
gabe@client$ touch test.txt
gabe@client$ rm test.txt
As root:
# cd /shared/tmp
# touch test.txt
touch: test.txt: Permission denied
Again, this is all on the NFS client side of things, and I suspect perhaps it has something to do with the -maproot option, but I'm too much of an NFS noob to understand exactly what. This is the first time I'm setting up NFS and I just noticed this peculiarity. I'm going to do some reading now, to see if I can figure this out, but if anyone has any insight, I would appreciate it.