Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create NFS exports from the command line UNIX
Exporting NFS shares under Mac OS X can be kind of a hassle even if you are used to a Unix environment: OS X requires painful fiddling with the Netinfo DB in order to create NFS exports.

In order to avoid that struggle, I've hacked together a shell script that will allow you to (amongst other things) automatically create NFS exports from a Unix-like /etc/exports file. The script allows you to add/remove export entries to/from the Netinfo database without ever directly having to fiddle with it - you can use export entries similar to what is being used on other UNIX platforms. Both the script and some documentation are available on my web site. The documentation should allow you to get going even with only a little Unix experience. I hope you'll find this script useful.

If you prefer a graphical utility to create NFS exports, iTools is a commercial package that can (amongst other things) do the trick. Please note that I am in no way affiliated with the company offering that product.

[Editor's note: I have not tested this script myself...]
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)

Create NFS exports from the command line | 4 comments | Create New Account
Click here to return to the 'Create NFS exports from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: salimma on Mar 05, '03 03:12:55PM

Great stuff. I need to install Slackware under Virtual PC for some project work and find that the easiest way to keep up-to-date is to mirror a repository and NFS mount it - your script really helps.

Thanks a lot :)

- Michel

[ Reply to This | # ]
Create NFS exports from the command line
Authored by: mskees on Jun 05, '03 02:50:54PM

Does any one have this script and documentation, i cannot get to the web site these links point to ??


[ Reply to This | # ]
Using NetInfo is much easier than most people think.
Authored by: mbj on Nov 29, '03 01:08:12PM

If you are used to configuring /etc files, you can just edit them as you
normally would and then upload them to NetInfo using the command "niload".
E.g. the command "niload exports . < /etc/exports" would upload an
exports file for NFS shares to the local NetInfo domain. This is true for
the following /etc files: aliases, bootparams, bootptab, exports, fstab,
group, hosts, networks, passwd, printcap, protocols, rpc, and services.

[ from ]

[ Reply to This | # ]
Create NFS exports from the command line
Authored by: rofl on Jan 18, '05 06:45:21AM

seems the page is down, it's a pity, i would need some help with this nfs stuff

[ Reply to This | # ]