beautypg.com

Resharing nfs mounts as afp share points – Apple Mac OS X Server (version 10.2.3 or later) User Manual

Page 226

background image

226

Chapter 4

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

From the NFS server, export the directories you want to reshare to the Mac OS X server.
Since AFP runs as root, the NFS export must map root-to-root so that AFP will be able to
access the files for the clients. Restrict the export to the single AFP server (seen as the client
to the NFS server). This can be made even more secure by having a private network for the
AFP-to-NFS connection.

2

On the AFP server, create a directory named nfs_reshares at the root level of the file system.
In Terminal, while logged in as admin use the command:

sudo mkdir /nfs_reshares

The nfs_reshares directory can be left at the default permissions, but at a minimum must be
read/write for root so that the exports can be mounted there and accessed by the Apple File
Server.

3

Create a subdirectory in the /nfs_reshares directory for each NFS volume you wish to
reshare. In Terminal, while logged in as admin, use the command:

sudo mkdir /nfs_reshares/

Replace with the name of the volume as you want it to appear to AFP
clients.

4

On the AFP server, create a mount record that mounts the reshared volume in the
/nfs_reshares directory. In NetInfo Manager, select mounts in the directory browser window,
click the lock at the lower left corner of the window and enter your administrator password.

Note: To authenticate in NetInfo Manager, you must use an administrator account with a
basic password. NetInfo Manager can’t authenticate an administrator account that uses
Password Server.

5

Select New Subdirectory from the Directory menu. The new mount record is named
new_directory. Edit the name property and add two new properties following this format:

name: :
vfstype: nfs
dir: /nfs_reshares/

An example mount record to reshare an NFS volume located on a server named “server” at
the path /test/lab1 would have the following properties:

LL0395.Book Page 226 Wednesday, November 20, 2002 11:44 AM