9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] auth/changeuser from drawterm
@ 2008-03-20  9:28 Christian Kellermann
  2008-03-20 11:03 ` Christian Kellermann
  2008-03-20 13:20 ` erik quanstrom
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Kellermann @ 2008-03-20  9:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Dear 9fans,

in order to be able to do administrative tasks through drawterm I
habe added the following to my cpurc:

srvfs nimda /

Then I expected to mount /mnt/keys and friends in a drawterm as
bootes like this:

mount -bc /srv/nimda /

A ls /mnt/keys now shows the existing loaded keys. A auth/changeuser
joe now sits there indefinitely and does nothing it seems (ps shows
Pread).

Mr. Diaz uses a mount -c / bind -b combination of the srvfs mntpoint
for serviente but this approach does have the same results for me.

Question time:

1. is mount -bc /srv/foo / the same as mount -c /srv/foo /n/root
bind -b /n/root /?
2. Why does auth/changeuser have this behaviour?
3. How can I find out what's going on?

Thanks for your attention!

Kind regards,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: [9fans] auth/changeuser from drawterm
  2008-03-20  9:28 [9fans] auth/changeuser from drawterm Christian Kellermann
@ 2008-03-20 11:03 ` Christian Kellermann
  2008-03-20 11:11   ` Christian Kellermann
  2008-03-20 13:20 ` erik quanstrom
  1 sibling, 1 reply; 4+ messages in thread
From: Christian Kellermann @ 2008-03-20 11:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

To give you some more information:

It seems that auth/changeuser hangs in reading from /dev/cons:
cpu% ps  | grep changeuser
bootes         2276    0:00   0:00       72K Pread    changeuser
cpu% acid 2276
/proc/2276/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
acid: stk()
pread()+0x7 /sys/src/libc/9syscall/pread.s:5
read(fd=0x4,buf=0xdfffef09,n=0x1)+0x2f /sys/src/libc/9sys/read.c:7
readln(prompt=0xe31c,raw=0x1,line=0xdfffef09,len=0x20)+0xcf /sys/src/cmd/auth/lib/readln.c:84
getpass(pass=0xdfffef09,confirm=0x1,key=0xdfffef49,check=0x1)+0x39 /sys/src/cmd/auth/lib/readln.c:18
main(argv=0xdfffefa8,argc=0x1)+0x1bf /sys/src/cmd/auth/changeuser.c:65
_main+0x31 /sys/src/libc/386/main9.s:16
acid: 

Fd 4 is /dev/cons in this case...

This happens when doing any of the following:

drawterm to the machine as some user, then cpu'ing to localhost, then mounting the served root and calling auth/changeuser.

drawterm to the machine as bootes, omitting the cpu call and proceed as above

This all happens with auth/debug as well, which has been known to work with drawterm to my knowledge.

Kind regards,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: [9fans] auth/changeuser from drawterm
  2008-03-20 11:03 ` Christian Kellermann
@ 2008-03-20 11:11   ` Christian Kellermann
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Kellermann @ 2008-03-20 11:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

gdiaz found my error: of course if I buínd -b /n/root / /dev/cons
of the server is used and not one of the stacked from the drawterms...
just binding the mnt dir resolves this issue.

I officially owe gdiaz some beer.

Sorry for the noise!

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: [9fans] auth/changeuser from drawterm
  2008-03-20  9:28 [9fans] auth/changeuser from drawterm Christian Kellermann
  2008-03-20 11:03 ` Christian Kellermann
@ 2008-03-20 13:20 ` erik quanstrom
  1 sibling, 0 replies; 4+ messages in thread
From: erik quanstrom @ 2008-03-20 13:20 UTC (permalink / raw)
  To: 9fans

> Dear 9fans,
>
> in order to be able to do administrative tasks through drawterm I
> habe added the following to my cpurc:
[...]

it's really worth setting up a serial console and console server to avoid
these issues.  at home i use cec.  there's a patch here
	/n/sources/patch/saved
it's a little quirky, but if you don't have a spare serial port & null modem
it beats nothing.

- erik


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

end of thread, other threads:[~2008-03-20 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-20  9:28 [9fans] auth/changeuser from drawterm Christian Kellermann
2008-03-20 11:03 ` Christian Kellermann
2008-03-20 11:11   ` Christian Kellermann
2008-03-20 13:20 ` erik quanstrom

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