Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Connect to NFS on Linux UNIX
After trying several unsucessful attempts to connect to a Linux NFS, I've found the cause of not being able to connect. Here's how to connect successfully:
  1. Set up the Linux NFS per these instructions.

  2. In the /etc/exports file, be sure to add the parameter of insecure to the IP of the Mac client machine. This is the cause of not connecting properly. If you read the how-to, there's a section on BSD clients that explains this. Example: /usr/local/ 10.1.10.71(rw,insecure)

  3. Once all set up on the server side, connect from the Mac by selecting Connect to Server and type in nfs://(serverip)/(mountpoint)

  4. WARNING: Be sure to follow the security guidelines given in the how-to or else you might be giving access to more than you want.
If all is good, you will see the share on desktop.
    •    
  • Currently 2.88 / 5
  You rated: 3 / 5 (8 votes cast)
 
[48,678 views]  

Connect to NFS on Linux | 7 comments | Create New Account
Click here to return to the 'Connect to NFS on Linux' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Connect to NFS on Linux
Authored by: mfkilgore on Nov 29, '03 11:07:45AM

This worked well to a point. Following the instructions, the volume is mounted but I do not have permissions to access it from my mac. I can umount with no problem and my linux nfs server sees the connection.

Something is not matching up between the two servers...



[ Reply to This | # ]
Connect to NFS on Linux
Authored by: jason8 on Dec 05, '03 08:48:38PM

This happened to me too. It's because my UID on Linux doesn't match my UID on OS X. To get around this, I exported it like this on the Linux machine:

/home/jason powerbook(ro,insecure,all_squash,anonuid=500)

Where 500 is my UID on the Linux machine. After this I mounted it on the PowerBook via:

mount -r -t nfs linux:/home/jason ./linux-home

Then everything worked fine. There's probably a way to do this from the "Connect to Server" window too, but I haven't figured it out.



[ Reply to This | # ]
Connect to NFS on Linux
Authored by: mfkilgore on Dec 10, '03 08:37:41PM

Thank you very much, your suggestion worked perfectly for me too. Setting the UID is the trick.



[ Reply to This | # ]
Connect to NFS on Linux
Authored by: tron_thomas on Dec 02, '03 01:08:00PM

This doesn't work for me. The Finder just sits there and wait forever to make a connect to the NFS server.

I've tried for a long time to get NFS to work and I haven't been successful.

I know the NFS is working because I can mount the share point locally via NFS on the NFS server machine.



[ Reply to This | # ]
Connect to NFS on Linux
Authored by: zzzmarcus on Nov 15, '04 08:18:09PM

Yeah... I'm having the exact same problem. Just sits there.



[ Reply to This | # ]
Connect to NFS on Linux
Authored by: renehinojosa on Dec 03, '03 11:50:37AM

This is all I have in my /etc/exports file:

#exports begin

/ 10.1.10.71(rw,insecure)

#exports end

You do have to either reboot(not really) the server or run
exportfs -ra to force nfsd to re-read the /etc/exports   file.(from section 3.5 of the how-to) exportfs -ra forces NFS to reread the conf file.



[ Reply to This | # ]
Connect to NFS on Linux
Authored by: macsebi on May 11, '04 10:47:53AM
so, you must have the same uid on your mac and linux box... ?

I don't have write access to my files...
I'm user 500 on linux and 501 on Mac OS X.

My /etc/exports on linux looks like this:


/home  powerbook(rw,insecure,all_squash,anonuid=500)
/data   powerbook(rw,insecure,map_static=/etc/nfs/powerbook.map)
the "powerbook.map" looks like this:

uid     501     500     # map 501 (me on powerbook)  to 500 (me on linux)
gid     0       100     # map   0 (wheel on powerbook) to 100 (users on linux)
But I only have write access to folders with
chmod 777
or
owner 501
on the linux box.
So, both methods don't work for me and I can't see why...

Any help there?
Thanx.

---
Bye,
MacSebi

[ Reply to This | # ]