Install NFS.
Add to /etc/exports
:
<export_path> <network>/24(rw,nohide,insecure,no_subtree_check,sync,all_squash,anonuid=1000,anongid=1000)
Update exports table:
exportfs -rav
Important options:
insecure
: enables OSX to connect with ports >1024all_squash
: remaps all user idsanonuid
: destination user id to squash toanongid
: destination group id to squash to
Inspect exports:
showmount -e <server>
Add to /etc/auto_master
:
/- auto_nfs -nobrowse,nosuid
Create /etc/auto_nfs
with:
<mount_point> -fstype=nfs,sync,noresvport,soft,bg,intr,rw,tcp,nfc nfs://<server>:<export_path>
Update auto mounts:
automount -vc