Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vishwa

macrumors newbie
Original poster
Jun 7, 2007
5
0
Guys,
I tried to mount an NFS on to my Mac Tiger OS X (10.4.9) by using "sudo mount -t nfs /path_to_NFS ./directory_in_my_home" and the resultant terminal response is "mount_nfs: /Users/vishwa: Operation not permitted"
I have already tested this on a linux desktop and it works fine without any problems. Also tried changing target directories on my Mac, but ended up with the same result.
Any ideas on this?

Thanks,
vishwa
 
We must be insecure together!

So, I was having the same problem.

It turns out the the Darwin default is to assume the nfs'ing will take place on an "insecure" port, i.e. >1024.

The suggested solution is to add "insecure" to the export options.

For instance, I have

/usr3 192.168.4/24(rw,insecure)

In the /etc/exports file.

Good luck.
 
works

Looking at the exports man page on my Linux box, you will always need this option to export NFS shares for OSX.

Thanks.
 
NFS - operation not permitted, another solution

This thread is quite old, but I recently experienced the same problem with OS X 10.4.11 while trying to mount a NFS share on my DNS-323.

My solution was to mount with "-P" to force the use of a reserved port number, as described in mount_nfs(8) page. The command was

$> sudo mount_nfs -P <host>:<remote shared dir> <local mount point>

This solution probably addresses the secure/insecure port issue mentioned by hacksawSA, but I don't know enough to confirm that. It's also slightly less intrusive in that you don't have to modify /etc/exports.

-Ken
 
This thread is quite old, but I recently experienced the same problem with OS X 10.4.11 while trying to mount a NFS share on my DNS-323.

My solution was to mount with "-P" to force the use of a reserved port number, as described in mount_nfs(8) page. The command was

$> sudo mount_nfs -P <host>:<remote shared dir> <local mount point>

This solution probably addresses the secure/insecure port issue mentioned by hacksawSA, but I don't know enough to confirm that. It's also slightly less intrusive in that you don't have to modify /etc/exports.

-Ken

Direct from the man page:

This command is expected to be executed by the mount(8) command. Direct use of mount_nfs to mount NFS file systems is strongly discouraged because there is little practical benefit of using it
instead of mount(8).
 
Direct use of mount_nfs to mount NFS file systems is strongly discouraged because there is little practical benefit of using it
instead of mount(8).

Which is cool, except that the mount(8) command does not have the -P switch.
Since I need the -P switch, now what?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.