primefullpac

Setting Up Ubuntu 10.04 As A Server For Mac

Mac

I'm trying to set up an NFS server on my Ubuntu server to be accessed from my Mac OS X 10.6.4 desktop. I started on the Ubuntu side by following (the quick start). When I finally try to access the NFS share on the Mac I get this: /Network cd fileserver cd:cd:1: permission denied: fileserver I finally got this working. I'll outline how below. Server Setup (Ubuntu 10.10) /etc/exports /export.(rw,sync,norootsquash,nosubtreecheck) /export/fileserver.(rw,sync,norootsquash,nosubtreecheck) /export/fileserver2.(rw,sync,norootsquash,nosubtreecheck) /etc/fstab /fileserver/a/root /export/fileserver none bind 0 0 /fileserver/b/root /export/fileserver2 none bind 0 0 Client Setup (Mac OS X 10.6.7) The key problem was that id -u tsigo on the server was 1000, and on Mac it was 501. In order to change this I followed which - be warned - was fraught with potential disaster; follow directions closely. If I were doing it again I would change my ID on the server instead.

Setting Up Ubuntu 10.04 As A Server For Mac

After changing my user ID and rebooting, it was mostly straight forward. Open Disk Utility, go to File NFS Mounts and add a new entry. NFS URL: nfs://gluttony/export/fileserver Mount location: /Network/fileserver Advanced mount params: -i,-s,-P. Correct you need the same uid's on client and server.

New

Though you can achieve this without 'changing' the owners of the files on client or server. If you use anonuid and allsquash in your export file you can map any uid you would like to the client that is accessing the share. Example exports file: /home/brian.(rw,async,nosubtreecheck,insecure,anonuid=1000,allsquash) Given that /home/brian permissions are drwxr-xr-x 24 1000 1000 you'll have full access.

Hope this helps. This should apply to anongid also but for some strange reason it doesn't.