On Mon, Apr 1, 2013 at 7:33 AM, Stuart Henderson <s...@spacehopper.org> wrote:
> On 2013-03-31, David Higgs <hig...@gmail.com> wrote:
>> In trying to avoid multiple copies of OpenBSD source on my VMs, I am
>> trying to use NFS; however, permissions don't seem to be working
>> right.  I would very much appreciate help in figuring out what I'm
>> doing wrong, and am also interested in tips on how to compile from
>> read-only source trees.
>
>
> On the NFS server, is /usr/src in the same filesystem as some other
> path which you export with different options?
>
> (NFS server options (-maproot etc) are per-filesystem not per export.)
>

I originally provided the entirety of my /etc/exports file, but
experimenting with debugging flags produced output that varied
depending on whether /etc/exports had one or multiple lines.  Using
multiple lines fixes my permissions problem, interestingly enough.  Is
this sendbug(1) worthy?

Will experiment with read-only and lndir(1) in the coming week.

Thanks.

--david

[vm@vm ~]$ mount
/dev/wd0a on / type ffs (local, softdep)
/dev/wd0f on /home type ffs (local, noatime, nodev, nosuid, softdep)
/dev/wd0d on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/wd0g on /usr type ffs (NFS exported, local, noatime, nodev, softdep)
/dev/wd0e on /var type ffs (local, nodev, nosuid, softdep)

# /etc/exports has one line with multiple paths exported

[vm@vm ~]$ sudo /sbin/mountd -d
Getting export list.
Got line #      $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $
Got line #
Got line # NFS exports Database
Got line # See exports(5) for more information.  Be very careful:
misconfiguration
Got line # of this file can result in your filesystems being readable
by the world.
Got line /usr/src /usr/ports /usr/xenocara -maproot=root:wheel
-network=172.16.223.0 -mask=255.255.255.0
Making new ep fs=0x6,0x602f3b81
doing opt -maproot=root:wheel -network=172.16.223.0 -mask=255.255.255.0
doing opt -network=172.16.223.0 -mask=255.255.255.0
doing opt -mask=255.255.255.0
exporting /usr/xenocara
unexporting / /
unexporting /home /home
unexporting /tmp /tmp
unexporting /usr /usr
unexporting /var /var
Getting mount list.
Here we go.
^C

### updated /etc/exports with multiple lines

[vm@vm ~]$ sudo /sbin/mountd -d
Getting export list.
Got line #      $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $
Got line #
Got line # NFS exports Database
Got line # See exports(5) for more information.  Be very careful:
misconfiguration
Got line # of this file can result in your filesystems being readable
by the world.
Got line /usr/src -maproot=root:wheel -network=172.16.223.0 -mask=255.255.255.0
Making new ep fs=0x6,0x602f3b81
doing opt -maproot=root:wheel -network=172.16.223.0 -mask=255.255.255.0
doing opt -network=172.16.223.0 -mask=255.255.255.0
doing opt -mask=255.255.255.0
exporting /usr/src
Got line /usr/ports -maproot=root:wheel -network=172.16.223.0
-mask=255.255.255.0
Found ep fs=0x6,0x602f3b81
doing opt -maproot=root:wheel -network=172.16.223.0 -mask=255.255.255.0
doing opt -network=172.16.223.0 -mask=255.255.255.0
doing opt -mask=255.255.255.0
exporting /usr/ports
Got line /usr/xenocara -maproot=root:wheel -network=172.16.223.0
-mask=255.255.255.0
Found ep fs=0x6,0x602f3b81
doing opt -maproot=root:wheel -network=172.16.223.0 -mask=255.255.255.0
doing opt -network=172.16.223.0 -mask=255.255.255.0
doing opt -mask=255.255.255.0
exporting /usr/xenocara
unexporting / /
unexporting /home /home
unexporting /tmp /tmp
unexporting /usr /usr
unexporting /var /var
Getting mount list.
Here we go.

Reply via email to