9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] logout from cpu server
@ 2003-07-25  8:02 okamoto
  2003-07-25  8:19 ` C H Forsyth
  2003-07-25  8:26 ` Fco.J.Ballesteros
  0 siblings, 2 replies; 11+ messages in thread
From: okamoto @ 2003-07-25  8:02 UTC (permalink / raw)
  To: 9fans

I remember that Charles made us possible to logout from
cou server.   I have now multiple cpu servers, and want to
logout from those.

Does nayone have such thing for this release?

Kenji



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

* Re: [9fans] logout from cpu server
  2003-07-25  8:02 [9fans] logout from cpu server okamoto
@ 2003-07-25  8:19 ` C H Forsyth
  2003-07-25  8:20   ` okamoto
  2003-07-25  8:26 ` Fco.J.Ballesteros
  1 sibling, 1 reply; 11+ messages in thread
From: C H Forsyth @ 2003-07-25  8:19 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 48 bytes --]

i don't remember that at all.  what did it/i do?

[-- Attachment #2: Type: message/rfc822, Size: 2025 bytes --]

From: okamoto@granite.cias.osakafu-u.ac.jp
To: 9fans@cse.psu.edu
Subject: [9fans] logout from cpu server
Date: Fri, 25 Jul 2003 17:02:07 +0900
Message-ID: <9841db59954fbeb3b28cd2caa5dcdbb4@granite.cias.osakafu-u.ac.jp>

I remember that Charles made us possible to logout from
cou server.   I have now multiple cpu servers, and want to
logout from those.

Does nayone have such thing for this release?

Kenji

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

* Re: [9fans] logout from cpu server
  2003-07-25  8:19 ` C H Forsyth
@ 2003-07-25  8:20   ` okamoto
  2003-07-25  8:24     ` Charles Forsyth
  2003-07-25  8:31     ` Lucio De Re
  0 siblings, 2 replies; 11+ messages in thread
From: okamoto @ 2003-07-25  8:20 UTC (permalink / raw)
  To: 9fans

> i don't remember that at all.  what did it/i do?

make change to console of cpu server to logout from it.
It was for Release 3 Plan 9 I remember.

Kenji



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

* Re: [9fans] logout from cpu server
  2003-07-25  8:20   ` okamoto
@ 2003-07-25  8:24     ` Charles Forsyth
  2003-07-25  8:31     ` Lucio De Re
  1 sibling, 0 replies; 11+ messages in thread
From: Charles Forsyth @ 2003-07-25  8:24 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

i think there was some code that was simply commented out or somehow
conditional, probably in /sys/src/9/boot, that if enabled
would force a prompt for the password.
the code seems to have gone completely now because getpasswd
is still there but completely unused.

[-- Attachment #2: Type: message/rfc822, Size: 2115 bytes --]

From: okamoto@granite.cias.osakafu-u.ac.jp
To: 9fans@cse.psu.edu
Subject: Re: [9fans] logout from cpu server
Date: Fri, 25 Jul 2003 17:20:08 +0900
Message-ID: <737224cc03679161c17186da82a8e768@granite.cias.osakafu-u.ac.jp>

> i don't remember that at all.  what did it/i do?

make change to console of cpu server to logout from it.
It was for Release 3 Plan 9 I remember.

Kenji

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

* Re: [9fans] logout from cpu server
  2003-07-25  8:02 [9fans] logout from cpu server okamoto
  2003-07-25  8:19 ` C H Forsyth
@ 2003-07-25  8:26 ` Fco.J.Ballesteros
  2003-07-25  8:30   ` okamoto
  1 sibling, 1 reply; 11+ messages in thread
From: Fco.J.Ballesteros @ 2003-07-25  8:26 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

what do you mean by logout? To stop the processes you have on them?
Or to avoid the console session for your local bootes user?

If you mean last, you can run a cat /dev/kprint on the console, since
del is handled by rio it wont be interrupted.

I'm just confussed. ☺

[-- Attachment #2: Type: message/rfc822, Size: 1807 bytes --]

From: okamoto@granite.cias.osakafu-u.ac.jp
To: 9fans@cse.psu.edu
Subject: [9fans] logout from cpu server
Date: Fri, 25 Jul 2003 17:02:07 +0900
Message-ID: <9841db59954fbeb3b28cd2caa5dcdbb4@granite.cias.osakafu-u.ac.jp>

I remember that Charles made us possible to logout from
cou server.   I have now multiple cpu servers, and want to
logout from those.

Does nayone have such thing for this release?

Kenji

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

* Re: [9fans] logout from cpu server
  2003-07-25  8:26 ` Fco.J.Ballesteros
@ 2003-07-25  8:30   ` okamoto
  0 siblings, 0 replies; 11+ messages in thread
From: okamoto @ 2003-07-25  8:30 UTC (permalink / raw)
  To: 9fans

> what do you mean by logout? To stop the processes you have on them?
> Or to avoid the console session for your local bootes user?

Just disable someone who can be a host owner when I was not in
the room.   ☺   That is, let the machine to require password when
someone wants to dispatche some commands on the cpu server's
console.

Kenji



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

* Re: [9fans] logout from cpu server
  2003-07-25  8:20   ` okamoto
  2003-07-25  8:24     ` Charles Forsyth
@ 2003-07-25  8:31     ` Lucio De Re
  2003-07-25  9:12       ` okamoto
  1 sibling, 1 reply; 11+ messages in thread
From: Lucio De Re @ 2003-07-25  8:31 UTC (permalink / raw)
  To: 9fans

On Fri, Jul 25, 2003 at 05:20:08PM +0900, okamoto@granite.cias.osakafu-u.ac.jp wrote:
>
> > i don't remember that at all.  what did it/i do?
>
> make change to console of cpu server to logout from it.
> It was for Release 3 Plan 9 I remember.
>
The pass() function that does the prompting is still in
/sys/src/cmd/init.c, but the call seems to have vanished.  I guess I
best look in old sources for it...

Here is what it used to look like:

for(;;){
	if(iscpu){
		consctl = open("#c/consctl", OWRITE);
		key = open("#c/key", OREAD);
		if(consctl<0 || key<0 || write(consctl, "rawon", 5) != 5)
			print("init: can't check password; insecure\n");
		else{
			pass(key);
			write(consctl, "rawoff", 6);
		}
		close(consctl);
		close(key);
	}
	print("\ninit: starting /bin/rc\n");
	fexec(rcexec);
	manual = 1;
	cmd = 0;
	sleep(1000);
}

And here is the new one:

for(;;){
	print("\ninit: starting /bin/rc\n");
	fexec(rcexec);
	manual = 1;
	cmd = 0;
	sleep(1000);
}

I always regretted losing this bit.

++L



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

* Re: [9fans] logout from cpu server
  2003-07-25  8:31     ` Lucio De Re
@ 2003-07-25  9:12       ` okamoto
  2003-07-25  9:38         ` Lucio De Re
  0 siblings, 1 reply; 11+ messages in thread
From: okamoto @ 2003-07-25  9:12 UTC (permalink / raw)
  To: 9fans

> Here is what it used to look like:
> 
> for(;;){
> 	if(iscpu){
> 		consctl = open("#c/consctl", OWRITE);
> 		key = open("#c/key", OREAD);
> 		if(consctl<0 || key<0 || write(consctl, "rawon", 5) != 5)
> 			print("init: can't check password; insecure\n");
> 		else{
> 			pass(key);
> 			write(consctl, "rawoff", 6);
> 		}
> 		close(consctl);
> 		close(key);
> 	}
> 	print("\ninit: starting /bin/rc\n");
> 	fexec(rcexec);
> 	manual = 1;
> 	cmd = 0;
> 	sleep(1000);
> }
> 
> And here is the new one:
> 
> for(;;){
> 	print("\ninit: starting /bin/rc\n");
> 	fexec(rcexec);
> 	manual = 1;
> 	cmd = 0;
> 	sleep(1000);
> }

I tried this, and failed. ☺

The error messages are as follows:

peridotite# Ctl-d
init: rc exit status: rc 106: false
init: can't check password; insecure

init: starting /bin/rc
peridotite#

Hmm... Once again I'm seeing the cpu server's prompt!, even if
I did not enter the right password!

Kenji



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

* Re: [9fans] logout from cpu server
  2003-07-25  9:12       ` okamoto
@ 2003-07-25  9:38         ` Lucio De Re
  2003-07-26  0:37           ` David Presotto
  0 siblings, 1 reply; 11+ messages in thread
From: Lucio De Re @ 2003-07-25  9:38 UTC (permalink / raw)
  To: 9fans

On Fri, Jul 25, 2003 at 06:12:25PM +0900, okamoto@granite.cias.osakafu-u.ac.jp wrote:
>
> peridotite# Ctl-d
> init: rc exit status: rc 106: false
> init: can't check password; insecure
>
That must be because:

	if(consctl<0 || key<0 || write(consctl, "rawon", 5) != 5)
		print("init: can't check password; insecure\n");

which could be due to a number of causes.  Maybe we can check which of

	consctl = open("#c/consctl", OWRITE);
	key = open("#c/key", OREAD);
	write(consctl, "rawon", 5);

is most likely to have failed.  Hm, /dev/key (#c/key) doesn't seem to
exist anymore.  Any suggestions from Bell Labs?

++L


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

* Re: [9fans] logout from cpu server
  2003-07-25  9:38         ` Lucio De Re
@ 2003-07-26  0:37           ` David Presotto
  2003-07-26  3:29             ` boyd, rounin
  0 siblings, 1 reply; 11+ messages in thread
From: David Presotto @ 2003-07-26  0:37 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]

#c/key is replaced by factotum.  If you want a getty-like program on the
console server, have it query factotum for logins.

[-- Attachment #2: Type: message/rfc822, Size: 3092 bytes --]

From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] logout from cpu server
Date: Fri, 25 Jul 2003 11:38:36 +0200
Message-ID: <20030725113833.R28024@cackle.proxima.alt.za>

On Fri, Jul 25, 2003 at 06:12:25PM +0900, okamoto@granite.cias.osakafu-u.ac.jp wrote:
>
> peridotite# Ctl-d
> init: rc exit status: rc 106: false
> init: can't check password; insecure
>
That must be because:

	if(consctl<0 || key<0 || write(consctl, "rawon", 5) != 5)
		print("init: can't check password; insecure\n");

which could be due to a number of causes.  Maybe we can check which of

	consctl = open("#c/consctl", OWRITE);
	key = open("#c/key", OREAD);
	write(consctl, "rawon", 5);

is most likely to have failed.  Hm, /dev/key (#c/key) doesn't seem to
exist anymore.  Any suggestions from Bell Labs?

++L

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

* Re: [9fans] logout from cpu server
  2003-07-26  0:37           ` David Presotto
@ 2003-07-26  3:29             ` boyd, rounin
  0 siblings, 0 replies; 11+ messages in thread
From: boyd, rounin @ 2003-07-26  3:29 UTC (permalink / raw)
  To: 9fans

factotum rocks!!



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

end of thread, other threads:[~2003-07-26  3:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-25  8:02 [9fans] logout from cpu server okamoto
2003-07-25  8:19 ` C H Forsyth
2003-07-25  8:20   ` okamoto
2003-07-25  8:24     ` Charles Forsyth
2003-07-25  8:31     ` Lucio De Re
2003-07-25  9:12       ` okamoto
2003-07-25  9:38         ` Lucio De Re
2003-07-26  0:37           ` David Presotto
2003-07-26  3:29             ` boyd, rounin
2003-07-25  8:26 ` Fco.J.Ballesteros
2003-07-25  8:30   ` okamoto

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