OS X as an NFS server
Everything you need for this is built right in.
- Navigate the Finder to Applications -> Utilities -> and launch "Netinfo Manager"
- Make sure the lock is unlocked so you can make changes
- Navigate to "exports" (or create it if it doesn't exist) in Netinfo Manager and add the properties and values:
- "clients" | "" (that's blank, so any IP can mount it)
- "name" | "/usr/local/soekris" (that's my exported directory)
- "opts" | "ro" (read-only)
Here's the output of nidump -r /exports /
{
"name" = ( "exports" );
CHILDREN = (
{
"clients" = ( "" );
"name" = ( "/usr/local/soekris" );
"opts" = ( "ro" );
}
)
}
Now reboot and OS X will automatically start rpc and nfsd when it detects the exports netinfo setup.
It would appear that OS X Leopard has removed the "exports" section of netinfo and relies exclusively on the /etc/exports file and the 'nfsd' command.
So, simply create an /etc/exports following the instructions in exports(5) ("man exports"), type "nfsd enable", and verify with 'showmount -e'.