9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p plumber
@ 2006-03-04 19:54 Serge Gagnon
  2006-03-04 20:06 ` Russ Cox
  0 siblings, 1 reply; 9+ messages in thread
From: Serge Gagnon @ 2006-03-04 19:54 UTC (permalink / raw)
  To: 9fans

Hi,
how should I do to run p9p plumber on a machine that do not run X11 ?

; plumber
plumber: post9pservice plumb: $NAMESPACE not set, $DISPLAY not set
[status 1]
;
--
GAGNON serge <serge.gagnon@b2b2c.ca>
PGP KEY-ID: 0xBBC1478F
PGP Fingerprint: B48B 4633 28F5 28F6 7A62 5650 69C8 E293 BBC1 478F
PPG Key: http://quenix2.dyndns.org:7777 | telnet quenix2.dyndns.org 7777
Cvsdadm: Tool for CVSd pserver user administration
http://quenix2.dyndns.org:8080/Unix-soft/cvsdadm.html



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

* Re: [9fans] p9p plumber
  2006-03-04 19:54 [9fans] p9p plumber Serge Gagnon
@ 2006-03-04 20:06 ` Russ Cox
  2006-03-04 21:04   ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: Russ Cox @ 2006-03-04 20:06 UTC (permalink / raw)
  To: serge.gagnon, 9fans

You need to create a name space directory and
set $NAMESPACE.  Since the machines I use are all
single-user, I typically just use the machine name:

	h=`{hostname}
	NAMESPACE=/tmp/ns.$h
	mkdir -p $NAMESPACE

See intro(4) for information about name space directories.

Russ



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

* Re: [9fans] p9p plumber
  2006-03-04 20:06 ` Russ Cox
@ 2006-03-04 21:04   ` erik quanstrom
  2006-03-04 21:20     ` Russ Cox
  2006-03-04 21:38     ` Serge Gagnon
  0 siblings, 2 replies; 9+ messages in thread
From: erik quanstrom @ 2006-03-04 21:04 UTC (permalink / raw)
  To: 9fans, Russ Cox, serge.gagnon

make sure the permissions on the directory are 700.
it won't work without that.

- erik

"Russ Cox" <rsc@swtch.com> writes

|
| You need to create a name space directory and
| set $NAMESPACE.  Since the machines I use are all
| single-user, I typically just use the machine name:
|
| 	h=`{hostname}
| 	NAMESPACE=/tmp/ns.$h
| 	mkdir -p $NAMESPACE
|
| See intro(4) for information about name space directories.
|
| Russ


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

* Re: [9fans] p9p plumber
  2006-03-04 21:04   ` erik quanstrom
@ 2006-03-04 21:20     ` Russ Cox
  2006-03-04 21:26       ` erik quanstrom
  2006-03-04 21:38     ` Serge Gagnon
  1 sibling, 1 reply; 9+ messages in thread
From: Russ Cox @ 2006-03-04 21:20 UTC (permalink / raw)
  To: 9fans

> make sure the permissions on the directory are 700.
> it won't work without that.

not true.  all mine are mode 755 (i've never even looked before)
and it works for me.

russ



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

* Re: [9fans] p9p plumber
  2006-03-04 21:20     ` Russ Cox
@ 2006-03-04 21:26       ` erik quanstrom
  2006-03-04 22:34         ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2006-03-04 21:26 UTC (permalink / raw)
  To: 9fans, Russ Cox

interesting, lib9/getns.c has this code:

; grep -C 5 0777 $home/cvs/plan9/src/lib9/getns.c
	if((d->mode&0777) != 0700 || strcmp(d->uid, getuser()) != 0){
		werrstr("bad name space dir %s", p);
		free(p);
		free(d);
		return nil;
	}
	free(d);
	return p;
}

"Russ Cox" <rsc@swtch.com> writes

|
| > make sure the permissions on the directory are 700.
| > it won't work without that.
|
| not true.  all mine are mode 755 (i've never even looked before)
| and it works for me.
|
| russ


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

* Re: [9fans] p9p plumber
  2006-03-04 21:04   ` erik quanstrom
  2006-03-04 21:20     ` Russ Cox
@ 2006-03-04 21:38     ` Serge Gagnon
  2006-03-04 22:21       ` erik quanstrom
  1 sibling, 1 reply; 9+ messages in thread
From: Serge Gagnon @ 2006-03-04 21:38 UTC (permalink / raw)
  To: 9fans



>>>>> On Sat, 4 Mar 2006, "erik" == erik quanstrom wrote:

  erik> make sure the permissions on the directory are 700. it won't work
  erik> without that.

Permission is 1777 for /tmp on both FreeBSD 6 and 5.
--
GAGNON serge <serge.gagnon@b2b2c.ca>
PGP KEY-ID: 0xBBC1478F
PGP Fingerprint: B48B 4633 28F5 28F6 7A62 5650 69C8 E293 BBC1 478F
PPG Key: http://quenix2.dyndns.org:7777 | telnet quenix2.dyndns.org 7777
Cvsdadm: Tool for CVSd pserver user administration
http://quenix2.dyndns.org:8080/Unix-soft/cvsdadm.html



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

* Re: [9fans] p9p plumber
  2006-03-04 21:38     ` Serge Gagnon
@ 2006-03-04 22:21       ` erik quanstrom
  2006-03-04 22:42         ` Serge Gagnon
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2006-03-04 22:21 UTC (permalink / raw)
  To: 9fans, Serge Gagnon

for any sane configuration, /tmp != $NAMESPACE.

serge.gagnon@b2b2c.ca (Serge Gagnon) writes

|
|
|
| >>>>> On Sat, 4 Mar 2006, "erik" == erik quanstrom wrote:
|
|   erik> make sure the permissions on the directory are 700. it won't work
|   erik> without that.
|
| Permission is 1777 for /tmp on both FreeBSD 6 and 5.


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

* Re: [9fans] p9p plumber
  2006-03-04 21:26       ` erik quanstrom
@ 2006-03-04 22:34         ` erik quanstrom
  0 siblings, 0 replies; 9+ messages in thread
From: erik quanstrom @ 2006-03-04 22:34 UTC (permalink / raw)
  To: 9fans, erik quanstrom, Russ Cox

i forgot about this. this check is only executed if $NAMESPACE
is not set. (that is, when deriving the namespace from $DISPLAY.)

- erik

erik quanstrom <quanstro@quanstro.net> writes

|
| interesting, lib9/getns.c has this code:
|
| ; grep -C 5 0777 $home/cvs/plan9/src/lib9/getns.c
| 	if((d->mode&0777) != 0700 || strcmp(d->uid, getuser()) != 0){
| 		werrstr("bad name space dir %s", p);
| 		free(p);
| 		free(d);
| 		return nil;
| 	}
| 	free(d);
| 	return p;
| }
|
| "Russ Cox" <rsc@swtch.com> writes
|
| |
| | > make sure the permissions on the directory are 700.
| | > it won't work without that.
| |
| | not true.  all mine are mode 755 (i've never even looked before)
| | and it works for me.
| |
| | russ


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

* Re: [9fans] p9p plumber
  2006-03-04 22:21       ` erik quanstrom
@ 2006-03-04 22:42         ` Serge Gagnon
  0 siblings, 0 replies; 9+ messages in thread
From: Serge Gagnon @ 2006-03-04 22:42 UTC (permalink / raw)
  To: 9fans



>>>>> On Sat, 4 Mar 2006, "erik" == erik quanstrom wrote:
  erik> for any sane configuration, /tmp != $NAMESPACE.

Oh, I misunderstood what you told me the first time. I was thinking "the
directory _where_ the namespace will be created". That is really not what
you said to me.

Finaly, my $NAMESPACE is really 700 and it works.
--
GAGNON serge <serge.gagnon@b2b2c.ca>
PGP KEY-ID: 0xBBC1478F
PGP Fingerprint: B48B 4633 28F5 28F6 7A62 5650 69C8 E293 BBC1 478F
PPG Key: http://quenix2.dyndns.org:7777 | telnet quenix2.dyndns.org 7777
Cvsdadm: Tool for CVSd pserver user administration
http://quenix2.dyndns.org:8080/Unix-soft/cvsdadm.html



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

end of thread, other threads:[~2006-03-04 22:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-04 19:54 [9fans] p9p plumber Serge Gagnon
2006-03-04 20:06 ` Russ Cox
2006-03-04 21:04   ` erik quanstrom
2006-03-04 21:20     ` Russ Cox
2006-03-04 21:26       ` erik quanstrom
2006-03-04 22:34         ` erik quanstrom
2006-03-04 21:38     ` Serge Gagnon
2006-03-04 22:21       ` erik quanstrom
2006-03-04 22:42         ` Serge Gagnon

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).