9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Nathaniel W Filardo <nwf@cs.jhu.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] infauth factotum bug?
Date: Thu,  8 May 2008 21:31:14 -0400	[thread overview]
Message-ID: <20080509013114.GA4503@peregrine.cs.jhu.edu> (raw)
In-Reply-To: <20080508140604.1951A1E8C55@holo.morphisms.net>

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

On Thu, May 08, 2008 at 10:02:18AM -0400, Russ Cox wrote:
> > term% echo delkey > /mnt/factotum/ctl
> > term% cpu -h sea.cs.jhu.edu -k 'user=bootes'
> > [add key dance]
> > sea#
> > term% cpu -h sea.cs.jhu.edu -k 'user=nwf'
> > [no key dance is necessary]
> > cpu%
> > term% cpu -h sea.cs.jhu.edu -k 'user=me'
> > !Adding key: dom=acm.jhu.edu proto=p9sk1 user=me
> > [I don't know me@'s password, so I abort by pressing Del.]
> 
> > My username on my terminal is nwf.
> 
> > The question is: why don't I have to present a password 
> > to log in as nwf@ after I have logged in as bootes?  
> 
> Because bootes is the remote host owner.
> If factotum knows that key, it will use it to
> vouch for you.  This is why you can still mount
> things from a cpu server that you connected
> to using ssh or cron or rx or any other 
> non-factotum-supplying method.

OK, so how does my factotum know that bootes is the remote host owner, or
does it just try to authenticate with that key despite that it doesn't match
the keyspec user=nwf and see what happens?

> > Why doesn't this explanation hold for me@?
> 
> Your user name on the terminal is nwf.
> Factotum will vouch for you, not lie for you.

OK.  This is, to me, counterintuitive behavior; if I have sufficient
credentials it's not really "lying".  It seems bizarre that factotum would
volunteer my terminal's user id, which is totally disjoint from the
user id namespace of the cpu server.

> All that said, the first cpu should not be adding
> the bootes key for use in the speakfor role:
> it should be adding it with role=client only,
> and then factotum won't use it to authenticate
> as nwf.  I thought it already did that.  Please
> send the output of cat /mnt/factotum/ctl after
> the above sequence.  Thanks.

I may be out of date, let me replica/pull and get back to you.

> Russ

Thanks for your answers.
--nwf;

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

  reply	other threads:[~2008-05-09  1:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080505154136.GP4503@peregrine.cs.jhu.edu>
     [not found] ` <5932ecefbd9063a70069a114a0a37b26@vitanuova.com>
2008-05-06 20:38   ` Nathaniel W Filardo
2008-05-07 10:00     ` roger peppe
2008-05-08  1:16       ` Nathaniel W Filardo
2008-05-08 14:02     ` Russ Cox
2008-05-09  1:31       ` Nathaniel W Filardo [this message]
2008-05-09  1:48         ` erik quanstrom
2008-05-09 13:07         ` Russ Cox

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=20080509013114.GA4503@peregrine.cs.jhu.edu \
    --to=nwf@cs.jhu.edu \
    --cc=9fans@9fans.net \
    /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).