9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: forsyth@caldo.demon.co.uk
To: 9fans@cse.psu.edu
Subject: [9fans] /adm/users
Date: Fri, 31 May 2002 21:07:52 +0100	[thread overview]
Message-ID: <28570e6dcb9cc8b12ff580a83deebb91@caldo.demon.co.uk> (raw)

take care that /adm/users is always owned by adm, for both disk/kfs and The file server.
otherwise, it will deadlock trying to cmd_exec("user") [cmd_exec("users")],
which it does at start up,
because that command wlocks the uid/gid information before accessing /adm/users,
and sub.c:/^iaccess has changed the order of the checks from previous versions,
so that whereas before it checked other permission first, it
now checks ownership first, and if that's not right, calls ingroup, which rlocks
the uid/gid data (oh dear!).  at the moment, you'll need a distinct, functioning plan 9 machine to
build a special variant of disk/kfs and 9pcfs to bypass the check (in different ways)
long enough to chown it (in allow mode) back to adm.
in my case it was just an auxiliary file system for CD contents, so it was easier to mend.
of course, i was approaching a deadline so it made perfect sense that i was hit by it now.



             reply	other threads:[~2002-05-31 20:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-31 20:07 forsyth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-06-23 13:23 Russ Cox
2000-06-23  8:56 Dean Jansa Jr

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=28570e6dcb9cc8b12ff580a83deebb91@caldo.demon.co.uk \
    --to=forsyth@caldo.demon.co.uk \
    --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).