Re: unable to use multiple exports for mountd

2003-10-21 Thread Charles Swiger
On Tuesday, October 21, 2003, at 11:21 AM, Jason Cribbins wrote:
I have been dealing with this problem for many years and never really
found a reasonable solution or explanation and now it has come to a
point where I can no longer find work arounds to make it work the way I
need it.
How do I export more than one folder for export with different options
for each?
Use symlinks to create seperate export points which refer to that same 
one folder.  I've written up a document which might give you some 
insight:

http://www.pkix.net/~chuck/NFS/article.html

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


unable to use multiple exports for mountd

2003-10-21 Thread Jason Cribbins
I have been dealing with this problem for many years and never really
found a reasonable solution or explanation and now it has come to a
point where I can no longer find work arounds to make it work the way I
need it.

How do I export more than one folder for export with different options
for each?

Here is  my current exports file

/share /usr/ports -mapall=root
/usr/src /usr/obj /syscommon -ro -mapall=root

but I get the following when I try to run mountd:
Oct 21 10:24:49 butters mountd[80376]: can't change attributes for
/syscommon
Oct 21 10:24:49 butters mountd[80376]: bad exports list line /syscommon
-ro -mapall

If I reverse the exports to the following:
/usr/src /usr/obj /syscommon -ro -mapall=root
/share /usr/ports -mapall=root

I get the following:
Oct 21 10:38:20 butters mountd[1465]: can't change attributes for
/usr/ports
Oct 21 10:38:20 butters mountd[1465]: bad exports list line /share
/usr/src /usr/obj /usr/ports -mapall

It seems no matter which way I put the exports its always the second one
that fails.

Looking at the example in man exports(5) I see the same thing between
the first entry and the 5th onethis seems to imply that what I am
trying to do with my exports file should work just fine.

from man page:
/usr /usr/local -maproot=0:10 friends
/usr -maproot=daemon grumpy.cis.uoguelph.ca 131.104.48.16
/usr -ro -mapall=nobody
/u -maproot=bin: -network 131.104.48 -mask 255.255.255.0
/u2 -maproot=root friends
/u2 -alldirs -network cis-net -mask cis-mask
/cdrom -alldirs,quiet,ro -network 192.168.33.0 -mask 255.255.255.0

So where am I going wrong here?

Jason Cribbins


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"