9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] noob question: p9 nfs client
@ 2015-02-27 23:02 Mark van Atten
  2015-02-28 20:23 ` Mark van Atten
  0 siblings, 1 reply; 2+ messages in thread
From: Mark van Atten @ 2015-02-27 23:02 UTC (permalink / raw)
  To: 9fans

On an OSX 10.9.5 host I run Bell Labs Plan 9 in Virtualbox.

Both have fixed IP addresses:
OSX 192.168.1.152
Plan 9 192.168.1.156

On OSX I have this in /etc/exports:
/Users/mva -mapall=501:20 -alldirs

I'm trying to access /Users/mva from Plan 9 through NFS:

cpu% nfs -v -R -p 666 -s macmini 192.168.1.152
out: xid=0x0 prog 0x186a0 vers 0x2 proc 0x3 [none] [none]
	PortTGetport [100005 3 17 0]
send e67c8ecf 3443508661 3443509661
in: xid=0xe67c8ecf status 0x0 [none] low 0x0 high 0x0
in: xid=0xe67c8ecf status 0x0 [none] low 0x0 high 0x0
in:	PortRGetport 799
out: xid=0x0 prog 0x186a0 vers 0x2 proc 0x3 [none] [none]
	PortTGetport [100003 3 17 0]
send e67c8ed0 3443508930 3443509930
in: xid=0xe67c8ed0 status 0x0 [none] low 0x0 high 0x0
in: xid=0xe67c8ed0 status 0x0 [none] low 0x0 high 0x0
in:	PortRGetport 2049
nfs udp!192.168.1.152!799!r udp!192.168.1.152!2049!r
out: xid=0x0 prog 0x186a5 vers 0x3 proc 0x0 [none] [none]
	NfsMount3TNull

send 76381d71 3443509217 3443510217
in: xid=0x76381d71 status 0x0 [none] low 0x0 high 0x0
in: xid=0x76381d71 status 0x0 [none] low 0x0 high 0x0
in:	NfsMount3RNull

out: xid=0x0 prog 0x186a3 vers 0x3 proc 0x0 [none] [none]
	Nfs3TNull

send ac0de7b5 3443509383 3443510383
in: xid=0xac0de7b5 status 0x0 [none] low 0x0 high 0x0
in: xid=0xac0de7b5 status 0x0 [none] low 0x0 high 0x0
in:	Nfs3RNull

cpu% aux/nfsmount 192.168.1.152
connecting to udp!192.168.1.152!portmap
connecting to udp!192.168.1.152!799!r
/Users/mva


But then this fails:

cpu% mkdir mac
cpu% mount /srv/macmini mac
creds for mva:
000000000000000D3139322E3136382E312E313536
000000FFFFFFFFFFFFFFFF0000
0000
out: xid=0x0 prog 0x186a5 vers 0x3 proc 0x1 [sys] [none]
	NfsMount3TMnt
	path="/"

send 76381d72 3443716564 3443717564
in: xid=0x76381d72 status 0x0 [none] low 0x0 high 0x0
in: xid=0x76381d72 status 0x0 [none] low 0x0 high 0x0
in:	NfsMount3RMnt
	status=13

mount: mount mac: access denied


I imagine it is a problem with permissions;
on the other hand I thought the mapall in
the hosts' /etc/exportfs would take care of that.

What am I missing?

Mark.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] noob question: p9 nfs client
  2015-02-27 23:02 [9fans] noob question: p9 nfs client Mark van Atten
@ 2015-02-28 20:23 ` Mark van Atten
  0 siblings, 0 replies; 2+ messages in thread
From: Mark van Atten @ 2015-02-28 20:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sat, Feb 28, 2015 at 12:02 AM, Mark van Atten <vanattenmark@gmail.com> wrote:

> What am I missing?

That mount(1) here needs a spec argument:

cpu% mount /srv/macmini mac Users/mva

That works.

What made me overlook this was perhaps an unconscious presupposition
that, if only one tree is specified in the server's /etc/exports,
there should be no need to specify it.

Mark.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-28 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 23:02 [9fans] noob question: p9 nfs client Mark van Atten
2015-02-28 20:23 ` Mark van Atten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).