Mac OS X Server 1.x: Managing NFS Exports

The icon for adding an NFS export directory is dimmed in the NetworkManager's File Sharing application. How can I manage NFS exports?
Note: This article pertains to Mac OS X Server versions 1.x, which were released prior to May 2001.

Here are two ways to manually manage NFS exports without running NetworkManager. Both involve directly storing values into the /exports directory of your local NetInfo database.

Managing NFS Exports With NetInfoManager.app


Managing NFS Exports using nidump/niload

To manually add a new exported directory, you can use the 'nidump' and 'niload' command line utilities as follows:

1. Start the Terminal application; all this will be done as root.

2. Dump the existing exports, if any, to a file. Start the Terminal application. Type the following commands at the prompt:
Note that the '.' indicates the current domain.

This places a list of all the existing exports in a file, using a property-list notation.

3. Edit the file to add new exports or modify existing exports.
At this point, TextEdit should launch, and you can add or modify exports, and save. A typical file with two exports might look like this:
4. Load the modified exports back into Netinfo.

5. If something goes drastically wrong, restore the original exports:

6. Restart the server. (Alternatively, if you feel lucky, use Terminal.app to start 'mountd' if it's not running, or send it a SIGHUP if it is by typing the following command:
Published Date: Feb 18, 2012