Date: Tue, 17 May 2005 16:01:25 +0200 From: Jeremie Le Hen <jeremie@le-hen.org> To: freebsd-net@FreeBSD.org Subject: Can't export /usr/ports Message-ID: <20050517140125.GD14297@obiwan.tataz.chchile.org>
next in thread | raw e-mail | index | archive | help
Hi, my current exports(5) file looks something like this : I copied the last line and replaced the path with /usr/ports, when I try to reload mountd(8), I get an error in /var/log/messages : Look at this small session. The initial exports(5) file works fine. The second one generate an error. %%% propane:tataz# cat /etc/exports /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 /usr/home/tataz -maproot=tataz -network 172.16.80.0 -mask 255.255.255.0 propane:tataz# sed -i '' '${ p; s%home/tataz%ports%; s/tataz/root/; }' /etc/exports propane:tataz# cat /etc/exports /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 /usr/home/tataz -maproot=tataz -network 172.16.80.0 -mask 255.255.255.0 /usr/ports -maproot=root -network 172.16.80.0 -mask 255.255.255.0 propane:tataz# /etc/rc.d/mountd reload Reloading mountd config files. propane:tataz# tail -n 2 /var/log/messages May 17 15:33:03 propane mountd[367]: can't change attributes for /usr/ports May 17 15:33:03 propane mountd[367]: bad exports list line /usr/ports -maproot %%% I checked mountd(8) sources, and this error messages appears when the mount(2) syscall fails (I assume this is the way mountd(8) informs the kernel about a directory to be exported). I'm sure this is a foolish error from me, but I can't figure one. Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517140125.GD14297>