Connect from Mac OSX to Ubuntu NFS

Connect from Mac OSX to Ubuntu NFS

I noticed that I connect a lot to my server in order to retrieve files, so I thought it would be useful to connect through NFS instead of Samba. Installing NFS on my server was a piece of cake. Just follow this tutorial and you are done.

The only thing you need to do then is manage your shares in the /etc/exports file. So far so good. But when I want to connect I receive an error which tells me I use the wrong username and/or password. Funny enough the whole system did not even prompt for any of these credentials.

NFS connection error in OSX
NFS connection error in OSX

After some Googling it turned out that NFS uses UID for authentication, and this seems to be the problem. On my Mac, my UID is 501 but on my Ubuntu server it is 1001. These two need to be the same in order to make NFS work. There are solutions to make these the same, that is, change your UID on the server or on the Mac. I am still looking for a more elegant solution. As soon as I have one I will post in on this blog.

If you know a solution for the problem above, do not hesitate to post a comment about it 😉

Leave a Reply

Your email address will not be published. Required fields are marked *