Subject: Re: bin/26971: mountd doesn't work right with both -network and -mapall or -maproot
To: None <wojtek@tensor.3miasto.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 09/16/2004 22:05:37
On Thu, Sep 16, 2004 at 12:18:56PM +0000, wojtek@tensor.3miasto.net wrote:
> >Description:
> mountd doesn't work right with -network
> 
> with such /etc/exports:
> /home/t/tech tech.hel. -mapall=tech:users
> /root/GW254 10.255.238.254 -maproot=root
> /home/smieci -network 10/8 -mapall=guest:wheel
> /home/pub -ro -network 10/8
> 
> i've got:
> Sep 16 14:15:50 hel mountd[123]: "/home/pub -ro -network 10/8", line 4: Can't change attributes for /home/pub to 10.0.0.0: Operation not permitted
> 
> with 3-rd and 4-th line swapped i've got:
> Sep 16 14:16:52 hel mountd[123]: "/home/smieci -network 10/8 -mapall", line 4: Can't change attributes for /home/smieci to 10.0.0.0: Operation not permitted

/home/smieci and /home/pub and both on the same partition, right ?
It's a known problem, you can't export 2 directories of a partition with
different attributes (in this case, -mapall=guest:wheel vs the standard
mapping). It's been this way since NetBSD 0.8, and there are already probably
some PRs opened on this.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--