Date: 21 Oct 2003 11:21:33 -0400 From: Jason Cribbins <freebsd@kibserv.org> To: freebsd-questions@freebsd.org Subject: unable to use multiple exports for mountd Message-ID: <1066749692.81790.54.camel@butters>
next in thread | raw e-mail | index | archive | help
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 one....this 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1066749692.81790.54.camel>