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 [EMAIL PROTECTED] | [EMAIL PROTECTED] | http://www.ipnet6.org/ "This isn't right. This isn't even wrong." -- Wolfgang Pauli
pgpLS8yfrp9lz.pgp
Description: PGP signature