From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <509071940906021622p3a7fa8acp846ae7a70504e974@mail.gmail.com> References: <7d3530220906021030w391ef36eg588f9feae05fa012@mail.gmail.com> <1243964132.13276.46.camel@goose.sun.com> <7d3530220906021103l2f82344dh43cd1eff8fa42a99@mail.gmail.com> <1243966760.13276.61.camel@goose.sun.com> <7d3530220906021134x5e63484fj31f9943556328b5a@mail.gmail.com> <7d3530220906021257q1786f9b8pd12c3b145411f26a@mail.gmail.com> <509071940906021622p3a7fa8acp846ae7a70504e974@mail.gmail.com> Date: Tue, 2 Jun 2009 16:30:37 -0700 Message-ID: <7d3530220906021630x59490e1ao8f4049f95295c676@mail.gmail.com> From: John Floren To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Configuring NFS Topicbox-Message-UUID: 03993082-ead5-11e9-9d60-3106f5b1d025 On Tue, Jun 2, 2009 at 4:22 PM, Anthony Sorace wrote: > "none" does not (normally) give you read-only access; if something is > world-writable, none will be able to write it. but getting read-only > is pretty easy; see exportfs(4) and the files which use it in > /rc/bin/service. from emory, i'd say "exec /bin/exportfs -Rr > /lib/music" would do what you want. > > i've used nfsserver to provide access to a bunch of different types of > unix hosts, but it has been a while. i just spent a few minutes right > now trying with OS X and a remote plan9 server with no joy, but i'm > not convinced i don't have a nat being disruptive. > > as far as the examples in nfsserver(8) go: > "ivy" is a machine which responds to 9fs and exports a namespace > containing /etc/passwd and /etc/group; it is most likely a unix system > running u9fs or similar. /lib/ndb/nfs contains a 9fs command to mount > ivy, so you can look at the live passwd and group files. if you'd > rather not, or are unable to, get u9fs working on some authoritative > unix system, you can copy or create a representative set locally (say, > /lib/ndb/unix.passwd) and change the last two file names in the > /lib/ndb/nfs example to point to those. > > "edith" and "yoshimi" are just 9p servers, most likely plan9 machines. > passing them in the -a argument to nfsserver means that nfs clients > attempting to mount the machines will have those two "shares" to pick > from. > > i believe the example becomes inconsistent here; i think edith/yoshimi > should match bootes/fornax. so if you had run the example as given > here, you'd want to run "/etc/mount -o soft,intr eduardo:ivy /n/ivy" > on your unix system. i forget whether the "share" ("ivy") needs to > match the exact string given to -a ("tcp!ivy") or if just the hostname > is okay. > > What exactly is the purpose of the passwd and group files? John -- "I've tried programming Ruby on Rails, following TechCrunch in my RSS reader, and drinking absinthe. It doesn't work. I'm going back to C, Hunter S. Thompson, and cheap whiskey." -- Ted Dziuba