I export a directory on a linux box and I can mount it from another linux box using
# mount -t nfs kurush:/media/lynk /mnt/kurush/
The same command fails on Mac OS X:
$ sudo mount -t nfs kurush:/media/lynk /Volumes/lynk
mount_nfs: can't mount /media/lynk from kurush onto /Volumes/lynk: Operation not permitted
At the same time, kurush:/var/logs/syslog
records this line:
rpc.mountd[7943]: authenticated mount request from sds-MacBook-Pro.home:1009 for /media/lynk (/media/lynk)
When I try to go though the GUI (finder->connect to server->nfs://kurush/media/lynk
->connect), I get an immediate failure (unable to connect &c) and the linux box syslog records the authenticated mount request
.
The problem is solved by using a privileged port:
Command line:
sudo mount -o resvport -t nfs kurush:/media/lynk /Volumes/lynk
To enable GUI:
sudo vifs
then add a line
kurush:/media/lynk /Volumes/lynk nfs resvport,ro,user,noauto
The questions are:
Why do I need to use a privileged port? Is it something I do on the linux side? I seem to recall that once upon a time I did mount that share without the aforementioned magic.
How do I tell MacOSX to use the privileged port without using the command line? I thought Apple was for the "non-techie" crowd, so it must be possible!