Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2001 17:52:12 +0200
From:      Christoph Sold <so@i-clue.de>
To:        Graham Lillico <graham_lillico@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NFS
Message-ID:  <3BA0D62C.6070502@i-clue.de>
References:  <F180mgTSNoI5TiW93zu0000f488@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Graham Lillico wrote:

> Hi,
>
> I'm trying to share my /usr/src, /usr/obj and /usr/ports directories 
> via NFS.
>
> My /etc/exports file looks like this
>
> /usr/src -maproot=0 -network 192.168.1
> /usr/obj -maproot=0 -network 192.168.1
> /usr/ports -maproot=0 -network 192.168.1
>
> However when I restart NFS I get the following messages
>
> mountd[15755]: can't change attributes for /usr/obj
> mountd[15755]: bad exports list line /usr/obj -maproot
> mountd[15755]: can't change attributes for /usr/ports
> mountd[15755]: bad exports list line /usr/ports -maproot
>
> and I cannot then nfs mount any directory apart from /usr/src on a 
> remote host.
>
> Is this because they are all part of the same filesystem, (i.e. should 
> they be on there own filesystem)?  Or is it something else? 


You cannot export a filesystem more than once. If all of those 
directories reside on one filesystem, only the first one will be exported.

Assuming the filesystem is mounted at /usr, export

/usr -maproot=0 -alldirs -network 192.168.1

instead. You will be able to mount subdirs of this directory at the 
remote box.

HTH
-Christoph Sold



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?3BA0D62C.6070502>