NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
nfs: operation not permitted to change network attribute
Hi,
I experienced a strange behavior when manipulating nfs exports:
# cat /etc/exports
/usr/local/bin -ro -maproot=root -network 192.168.0.0/24
/usr/pkg/etc/letsencrypt -maproot=root dns
/usr/pkg/etc/letsencrypt -ro -maproot=root mail www
# showmount -e
Exports list on localhost:
/usr/pkg/etc/letsencrypt dns mail www
/usr/local/bin 192.168.0.0
I would export the /home directory to my network:
# cat /etc/exports
/home -maproot=root -network 192.168.0.0/24
/usr/local/bin -ro -maproot=root -network 192.168.0.0/24
/usr/pkg/etc/letsencrypt -maproot=root dns
/usr/pkg/etc/letsencrypt -ro -maproot=root mail www
# showmount -e
/usr/pkg/etc/letsencrypt dns mail www
/home 192.168.0.0
/usr/local/bin is no longer exported. If I swap the two first lines of
my /etc/exports file, /usr/local/bin returns but /home disappears:
# cat /etc/exports
/usr/local/bin -ro -maproot=root -network 192.168.0.0/24
/home -maproot=root -network 192.168.0.0/24
/usr/pkg/etc/letsencrypt -maproot=root dns
/usr/pkg/etc/letsencrypt -ro -maproot=root mail www
# showmount -e
/usr/pkg/etc/letsencrypt dns mail www
/usr/local/bin 192.168.0.0
I looks like a syntax error but I do not see where...
I started mountd in debugging mode to see what it could tell me. For
/usr/local/bin:
Got line /usr/local/bin -ro -maproot=root -network
192.168.0.0/24
Making new ep fs=0xa800,0x78b
doing opt -ro -maproot=root -network 192.168.0.0/24
doing opt -maproot=root -network 192.168.0.0/24
doing opt -network 192.168.0.0/24
setting OP_MASKLEN
get_net: '192.168.0.0' v4 addr a8c0
It seems ok, but for /home:
Got line /home -maproot=root -network
192.168.0.0/24
Found ep fs=0xa800,0x78b
doing opt -maproot=root -network 192.168.0.0/24
doing opt -network 192.168.0.0/24
setting OP_MASKLEN
get_net: '192.168.0.0' v4 addr a8c0
mountd[19718]: "/home -maproot", line 11: Can't
change attributes for /home to 192.168.0.0: Operation not permitted
Maybe the problem comes from my lack of experience. Buf if not, I could
try to reproduce this behavior on -current and send a pr if necessary.
Home |
Main Index |
Thread Index |
Old Index