[MacOSX] Exporting NFS resources for Mac clients
Intro
A Network File System (NFS) software allows a PC (an NFS client) connected to a network to access the filesystems present on the hard disk of another computer (an NFS server) along the same network.
It may happen that when you are trying to mount NFS resources under OSX, you have to be confronted with that recurring problem:
PBG4:~ john$ sudo mount -t nfs server:/export nfs
mount_nfs: /Users/john/nfs: Operation not permitted
After verification of the correct password, and some research, the conclusion is that Darwin being a BSD; has the same problems like other BSD to address to a NFS server from unreliable ports. (> 1024)
Solution
On clients from which the BSD are known, an option is provided to allow the export of resources.
You just have to modify the folder :
/etc/exports:
/export 55.2.10.*(rw,insecure)
Request that the system read its configuration to take these changes into account:
sudo exportfs –ra
Try again the procedure from Darwin.
PBG4:~ john$ sudo mount -t nfs server:/export nfs
PBG4:~ john$
Conclusion:
You should now be able to mount NFS resources under OSX.