Problem with mounting NFS share
Submitted by Bram Schoenmakers on 20 August, 2007 - 17:42.
To me, NFS is like black magic. Getting it to work consists of trial and error and feel lucky afterwards.
The big plan was to use a /usr/ports directory from another machine on the same network. Shouldn't be too hard, right? Just adding a line in the server's /etc/export:
/usr/ports -maproot=root
But alas, when mounting on the client, the following error appears:
host# mount_nfs 10.0.0.100:/usr/ports /usr/ports
[udp] 10.0.0.100:/usr/ports: Permission denied
[udp] 10.0.0.100:/usr/ports: Permission denied
After some Googling it seems that the line in export requires an IP address. I don't know why, since other lines don't need one. But adding the IP of the client did the trick:
/usr/ports -maproot=root 10.0.0.5
Not really flexible, I experimented with the -network and -netmask options, but that made the error appear again.