Setting Up NFS Exports on Mac OS X
The following procedure shows you how to export the /USADATA and /USA_DB directories on a Mac OS X workstation, as NFS shared points.
How to set up NFS exports on Mac OS X
- From the Finder, go to Applications > Utilities and double-click on Terminal.
- Create and edit the exports file in the
/etc
directory:
sudo vi /etc/exports
- Add the following:
/USA_DB -maproot=nobody
/USADATA -maproot=nobody
- Save and exit the file.
- Verify that the file is correct by running:
sudo nfsd checkexports
If there is no return response, then it is correct.
- Start
nfsd
:
sudo nfsd enable
- If nfsd was already started, notify the nfsd daemon that the /etc/exports file has changed:
sudo kill -1 `cat /var/run/mountd.pid`
NOTE: The back quote (`) character is located at the top-left of the Mac OS X keyboard on the same key as the tilde (~) character. Or simply reboot the computer.
- Verify that the folders exported correctly:
/usr/bin/showmount -e
The following should appear:
/USA_DB Everyone
/USADATA Everyone
Once the export file is created, client systems can mount /USA_DB and /USADATA located on the Mac OS X server system.