Can't export /usr/ports
Dean Strik
dean at stack.nl
Tue May 17 11:32:05 PDT 2005
Jeremie Le Hen wrote:
> 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.
If /usr/ports and /usr/home/tataz are on the same filesystem, then you
need to put both on the samen lines when exporting to the same host. You
lose the possibililty to lose options specific to either export though.
--
Dean C. Strik Eindhoven University of Technology
dean at stack.nl | dean at ipnet6.org | http://www.ipnet6.org/
"This isn't right. This isn't even wrong." -- Wolfgang Pauli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050517/55764d4b/attachment.bin
More information about the freebsd-net
mailing list