Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to setup an NFS Server on FreeBSD, I have gone through a couple guides to try and get it running but can't quite get it going. I have the server running, but I seem to be having trouble setting up the /etc/exports file correctly. I have tried the following lines and all have given me errors saying that their is a bad line in the exports file when I try and and reload it.

/home -alldirs -network
/home machinename1
/home/user -network -mask

What am I missing and what should I check?

share|improve this question

Your first line looks malformed (you're exporting to a network but it looks like you're naming a host)

If that's not it start with standard troubleshooting: Remove all except one line (start with /home machinename1) & get that working first. Add new lines and reload/test until you find one that breaks it.

When you know which line(s) are causing the problem it's easier to troubleshoot :)

share|improve this answer
I have not had any of those lines in the same file, they have all be tried independently – trobrock Feb 16 '10 at 16:44
hmm... now that's strange: The second line is definitely valid (as long as it can figure out what address machine1 maps to). What error is mountd giving you before the "bad line" message? – voretaq7 Feb 16 '10 at 17:09

What is the exact error message you're getting?

Is it possible there's already an entry for /home earlier in your /etc/exports file?

Despite the error, does /home show up as being shared through exportfs?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.