9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Alberto Cortés" <alcortes@it.uc3m.es>
To: 9fans <9fans@cse.psu.edu>
Subject: Re: [9fans] login problems
Date: Fri, 29 Dec 2006 12:55:07 +0100	[thread overview]
Message-ID: <20061229115507.GA13056@it.uc3m.es> (raw)
In-Reply-To: <14ec7b180612280906oc502934ha8c2736cf9dfd51a@mail.gmail.com>

On 2006-12-28 18:06, andrey mirtchovski wrote:
> >
> >After invoking "kill keyfs | rc ; auth/keyfs" I can see the users
> >directories under /mnt/keys. But I still can not cpu with the
> >login name of other users:
> >
> >    cpu: can't authenticate: grunt: auth_proxy rpc write: (black
> >    square)bootes: connection timed out
> >
> 
> the way an auth server works is by linking together several programs:
> keyfs, authsrv and listen. keyfs decrypts the users passwords (keys)
> and serves them as a plan9 file system, listen accepts connections on
> the auth port (tcp 567) and starts authsrv to verify passwords against
> keys in keyfs.
> 
> when you kill keyfs it disappears from the namespace in which listen
> 
> [...]
> 
> way to do it is the aforementioned killing/restarting of keyfs, which
> is what i use to add new users to machines where i have no physical
> access handy.

thank you for enlighten me, I was failing to see the big
picture.

After some more man page reading, I have been doing some tests:

  term% telnet tcp!grunt!17007
  connected to tcp!grunt!17007 on /net/tcp/1
  p9sk1@grunt.foo.bar(fs)
  >>>   (b)reak, (i)nterrupt, (q)uit, ...
  >>> q
  term%
  term%
  term% telnet tcp!grunt!567
  telnet: tcp!grunt!567: connection timed out  # this can be the problem!!
  term%
  term%
  term% cpu=grunt
  term% cpu -u bootes
  cpu%
  cpu%
  cpu% telnet tcp!grunt!567
  connected to tcp!grunt!567
  
  >>>   (b)reak, (i)nterrupt, (q)uit, ...
  >>> q
  cpu%
  cpu%
  cpu% tail -19 /rc/bin/cpurc
  auth/keyfs -wp -m /mnt/keys /adm/keys >/usr/bootes/tmp/keyfs_out >[2=1]
  auth/cron >>/sys/log/cron >[2=1] &
  #
  # also rename some files:
  #
  #if(! test -e /rc/bin/service.auth/il566){
  #    mv /rc/bin/service.auth/authsrv.il566 /rc/bin/service.auth/il566
  #    mv /rc/bin/service.auth/authsrv.tcp567 /rc/bin/service.auth/tcp567
  #    mv /rc/bin/service/il566 /rc/bin/service/_il566
  #    mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567
  #}

  # services available to networks
  aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service il
  aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp

  aux/mouse $mouseport
  aux/vga -l $vgasize
  exec rio
  cpu%
  cpu%
  cpu% cat /rc/bin/service.auth/tcp567
  #!/bin/rc
  /bin/auth/authsrv -d $3
  cpu% 

If ssh to a linux on the same LAN as grunt, I can connect to
grunt at port 567:

  alcortes@linux$ telnet grunt.foo.bar 567
  Trying 163.117.141.235...
  Connected to grunt.gast.it.uc3m.es.
  Escape character is '^]'.
  ^]
  telnet> q
  Connection closed.
  alcortes@linux$ 

It seems that the auth port of my server (grunt) can not been
reached from my home. Firewall problems?, isp problems?, Any more
thing I can be missing?



-- 
  http://bach.gast.it.uc3m.es/~alcortes/index.html


  reply	other threads:[~2006-12-29 11:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-12 20:32 John Floren
2006-08-19  0:37 ` Rodolfo (kix)
2006-08-20  1:50   ` John Floren
2006-08-20  2:02     ` John Floren
2006-08-20  2:15       ` andrey mirtchovski
2006-08-20  3:07         ` John Floren
2006-08-20  3:15           ` andrey mirtchovski
2006-12-28 14:40 ` Alberto Cortés
2006-12-28 14:56   ` Gabriel Diaz
2006-12-28 15:21     ` Alberto Cortés
2006-12-28 15:38       ` Gabriel Diaz
2006-12-28 15:51         ` Alberto Cortés
2006-12-28 16:01           ` andrey mirtchovski
2006-12-28 16:39             ` Alberto Cortés
2006-12-28 17:06               ` andrey mirtchovski
2006-12-29 11:55                 ` Alberto Cortés [this message]
2006-12-29 12:06                   ` andrey mirtchovski
2006-12-29 12:35                     ` Alberto Cortés

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061229115507.GA13056@it.uc3m.es \
    --to=alcortes@it.uc3m.es \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).