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 this guide (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,no_root_squash,no_subtree_check)
/export/fileserver *(rw,sync,no_root_squash,no_subtree_check)
/export/fileserver2 *(rw,sync,no_root_squash,no_subtree_check)
/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 this guide 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.
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