9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "david presotto" <presotto@closedmind.org>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] strange things in /sys/log/auth
Date: Thu,  3 Jul 2003 14:42:10 -0400	[thread overview]
Message-ID: <000901c34192$d0dc1220$1728ff87@bl.belllabs.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0307021022270.17068-100000@fbsd.cpsc.ucalgary.ca>

Lots of possible problems.  If you change the bootes password, and convkeys
the file while still running keyfs with the old keys, you can easily hose
yourself.
You have to kill off the keyfs running with the old keys before you convkeys
anything.

----- Original Message -----
From: "andrey mirtchovski" <mirtchov@cpsc.ucalgary.ca>
To: <9fans@cse.psu.edu>
Sent: Wednesday, July 02, 2003 12:35 PM
Subject: Re: [9fans] strange things in /sys/log/auth


> i fixed the problem -- the /adm/keys file was fscked somehow.
>
> i was able to see directory entries for all users i've added in /mnt/keys,
> but after the directory listing there was garbage, the same thing Geoff
sent
> a few messages back. when started keyfs was reporting 'bad status in key'.
>
> i ended up doing:
>
> % rm /adm/keys
> % con -l /srv/fscons
> main: create /active/adm/keys bootes bootes 660
> % auth/changeuser bootes
> ...
>
> and then added all other users again. i've saved the old keys file, in
case
> anyone is interested in playing with it to see what's wrong. i've changed
> all passwords :)
>
> i'm a little worried, though -- i was thinking that bootes can only change
> passwords on the console, but killing keyfs and restarting it again as
> bootes in a local namespace gives me write privileges to /mnt/keys (though
> i loose the ability to login to the machine, naturally :)
>
> is it advisable to lock the keyfs process the same way factotum's process
> is? put it in the kernel? disallow 'echo kill > /proc/xx/ctl'?
>
> inquiring minds want to know :)
>
>
> On Tue, 1 Jul 2003, David Presotto wrote:
>
> > It means you have to:
> >
> > 1) kill keyfs
> > 2) run auth/convkeys on the keyfile
> > 3) reboot the auth server (or just give the new key to factotum on the
auth server)
> > 4) if you use an nvram on the auth server to store the key, use
auth/wrkey
> >   to rewrite it
>
>



  reply	other threads:[~2003-07-03 18:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01  5:14 andrey mirtchovski
2003-07-01  5:26 ` Dan Cross
2003-07-01  5:31 ` Geoff Collyer, geoff
2003-07-01  5:40   ` andrey mirtchovski
2003-07-01  5:49     ` andrey mirtchovski
2003-07-01 11:45       ` David Presotto
2003-07-02 16:35         ` andrey mirtchovski
2003-07-03 18:42           ` david presotto [this message]
2003-07-01  5:52     ` Geoff Collyer, geoff
2003-07-01  6:09       ` andrey mirtchovski
2003-07-01  6:37       ` okamoto
2003-07-01  6:46         ` Geoff Collyer, geoff

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='000901c34192$d0dc1220$1728ff87@bl.belllabs.com' \
    --to=presotto@closedmind.org \
    --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).