Specifications
Chapter 2 Setting Up Share Points 39
File and file range locking (standard POSIX advisory locks) are enabled by default for
NFS share points in Mac OS X Server.
From the Command Line
You can also set up an NFS share point by using the niutil command in Terminal to
add an entry to the NetInfo /exports directory. For more information, see the file
services chapter of the command-line administration guide.
Resharing NFS Mounts as AFP Share Points
Resharing NFS mounts (NFS volumes that have been exported to the Mac OS X Server)
as AFP share points allows clients to access NFS volumes using the secure
authentication of an AFP connection. Resharing NFS mounts also allows Mac OS 9
clients to access NFS file services on traditional UNIX networks.
To reshare an NFS mount as an AFP share point:
1 On the NFS server that’s exporting the original share point, make sure the NFS export
maps root-to-root so that AFP (which runs as root) can access the files for the clients.
Restrict the export to the single AFP server (seen as the client to the NFS server). For
even greater security, you can set up a private network for the AFP-to-NFS connection.
2 Click the add share button beneath the list of share points and enter the URL of the
NFS server you intend to reshare.
This is the URL users will enter in the Connect To Network window to connect to the
reshared NFS server. For example, to connect to the reshared NFS mount “widgets” on
the root level of the server corp1, use the following URL:
nfs://corp1/widgets
3 Click OK.
Workgroup Manager creates the NFS mount point.
4 Follow steps 1 through 3 for each NFS volume you want to reshare.
5 Use the Sharing pane of Workgroup Manager to share the NFS mounts as AFP share
points.
The NFS mounts appear as normal volumes in the All list. (You can also share the NFS
mounts using SMB/CIFS and FTP, but it’s recommended that you use only AFP.) You can
change privileges and ownership, but not enable quotas (quotas work only on local
volumes). However, if quotas are enabled on the NFS server, they should apply to the
reshared volume as well.
Note: Quotas set on the original NFS export are enforced on the AFP reshare.