Re: NFS sharing /usr/ports and /usr/src
On Sun, Feb 29, 2004 at 05:45:33PM +1300, Tom Munro Glass wrote: I want to NFS share /usr/ports and /usr/src from a master machine for use by other machines. If I specify -network and -mask options for each share, I get the error: mountd[101]: can't change attributes for /usr/src mountd[101]: bad exports list line /usr/src but if I don't have any options, the share works OK? What am I doing wrong? You've probably got /usr/ports and /usr/src on the same disk partition. You can't export two chunks of the same partition to the same set of client hosts with different flags. Not only that, but you can't do anything that even smacks of changing the flags between two exported subdirectories on a single partition. Or in other words, it's the partition that gets exported, rather than the particular directory trees you specify. I think, although I could be wrong, that if you export, say, /usr/src which happens to reside on the /usr partition, then an NFS client can be persuaded to access files from anywhere on the /usr partition. What you should do is put the two subdirectories on the same line in the exports file: /usr/ports /usr/src -network 192.168.0.0 -mask 255.255.255.0 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: NFS sharing /usr/ports and /usr/src
On Sun, 29 Feb 2004 23:47, Matthew Seaman wrote: On Sun, Feb 29, 2004 at 05:45:33PM +1300, Tom Munro Glass wrote: I want to NFS share /usr/ports and /usr/src from a master machine for use by other machines. snip What am I doing wrong? You've probably got /usr/ports and /usr/src on the same disk partition. You can't export two chunks of the same partition to the same set of client hosts with different flags. Not only that, but you can't do anything that even smacks of changing the flags between two exported subdirectories on a single partition. Or in other words, it's the partition that gets exported, rather than the particular directory trees you specify. I think, although I could be wrong, that if you export, say, /usr/src which happens to reside on the /usr partition, then an NFS client can be persuaded to access files from anywhere on the /usr partition. What you should do is put the two subdirectories on the same line in the exports file: /usr/ports /usr/src -network 192.168.0.0 -mask 255.255.255.0 Cheers, Matthew Thanks for a very clear explanation Matthew. I'd missed a couple of critical points, namely that you can only have one line in exports per filesystem, and also that you can specify multiple paths on one line. Problem solved! Cheers, Tom ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NFS sharing /usr/ports and /usr/src
I want to NFS share /usr/ports and /usr/src from a master machine for use by other machines. If I specify -network and -mask options for each share, I get the error: mountd[101]: can't change attributes for /usr/src mountd[101]: bad exports list line /usr/src but if I don't have any options, the share works OK? What am I doing wrong? Tom Munro Glass ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NFS sharing /usr/ports and /usr/src
Tom Munro Glass wrote: I want to NFS share /usr/ports and /usr/src from a master machine for use by other machines. If I specify -network and -mask options for each share, I get the error: mountd[101]: can't change attributes for /usr/src mountd[101]: bad exports list line /usr/src but if I don't have any options, the share works OK? What am I doing wrong? I'm doing this, but use in exports: /usr -ro -maproot=root -alldirs ip-addresses which allows to mount any subdir of /usr, which on the /usr partition. This way I can mount /usr/doc and /usr/src, readonly. Since I have /usr/ports on a separate partition, I also have to add a line like: /usr/ports -maproot=root ip-addresses Take care of what is exported and mounted readonly and not readonly. Hope that helps. Cheers, Rob. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]