Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2000 22:10:51 -0400
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Doug Barton <DougB@gorean.org>
Cc:        Jerry Lei <tylei@hotmail.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: about NFS server
Message-ID:  <20000418221051.E55844@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <38FBD6A0.55E0C7D7@gorean.org>; from DougB@gorean.org on Mon, Apr 17, 2000 at 08:29:36PM -0700
References:  <20000417171710.89928.qmail@hotmail.com> <38FBD6A0.55E0C7D7@gorean.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 17, 2000 at 08:29:36PM -0700, Doug Barton wrote:
> Jerry Lei wrote:
> > 
> > Hi,
> > 
> > I setup a NFS server on one of my FreeBSD.
> > But I will get an error message as below.
> > Apr 15 22:37:52 freebie mountd[152]: bad xports list line /share
> > 
> > My /etc/exports is as below
> > 
> > /share      -maproot=0 -network 192.168.201.0 freebie freefall
> > 
> > What's wrong with my exports? please give me some suggestions.
> 
> 	In all likelihood, /share is not a real mount point. You cannot export
> arbitrary directories.

Sure you can, Doug. There are subtleties about how directories must be
listed in /etc/exports, however.

> It's also possible that your host names aren't
> listed in /etc/hosts, or your -network specification is incorrect. I
> suspect that you want to leave the .0 off the end of that IP. 

The problem is that you cannot mix a '-network' options with a listing
of individual hosts. I am not sure if the '-mask' argument is optional
or not when '-network' is used; feel free to expermiment on that and
respond (I don't have energy to try myself or nose through
source). The following should be OK for what you seem to want, 

  /share      -maproot=0 -network 192.168.201.0 -mask 255.255.255.0
  /share      -maproot=0 freebie freefall

-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000418221051.E55844>