9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] removing users
Date: Thu, 19 Jun 2003 14:48:59 -0400	[thread overview]
Message-ID: <3643bbeabcff786c34b15f06876f75d2@plan9.bell-labs.com> (raw)
In-Reply-To: <20030619182445.GA6452@thefrayedknot.armory.com>

On Thu Jun 19 14:25:21 EDT 2003, afrayedknot@thefrayedknot.armory.com wrote:
> so i should rename them all to some null user which is unable to log in?
>
> On Thu, Jun 19, 2003 at 01:50:53PM -0400, Russ Cox wrote:
> > If you're running dumps, it's not a good idea to remove
> > users -- their ids will still be found looking in the dump.
> >
> > You can rename the uname with 'uname old %new' but
> > you shouldn't get rid of the uid.
> >
> > Russ

the format of users file is:

	id:name:[leader]:[members[,members]]

	id is what is used to store in the file system
	name is what the outside world (9p) sees and deals with
	leader is the group leader (may be nil)
	members is a comma-separated list of who is in the group

a check is made when the users file is read by the server that
there is only one id<->name mapping.

so, say we have
	bob:bob::
and create some files. these files are on permanent storage in the
back end (venti, the original standalone fs, whatever) and the id 'bob'
is tied to those files irrevocably.

if bob leaves, we just need to turn off his ability to authenticate
to the server, there's no real need to remove his files and, in fact, those
files of his in the dump cannot be changed or removed.

the idea is that if a new bob arrives we can still give him the name bob
by changing the old bob entry to
	bob:bobwholeft::
(this is accomplished by using the 'uname' command in fossilcons(8), e.g.
	uname bob %bobwholeft
)
and then making a new entry
	newbob:bob::
via
	uname bob newbob

but there no way the new bob can access the old bob's files as they
are stored under different ids.


  parent reply	other threads:[~2003-06-19 18:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-18 23:06 Andrew
2003-06-19  6:36 ` Fco.J.Ballesteros
2003-06-19 17:50   ` Russ Cox
2003-06-19 18:24     ` Andrew
2003-06-19 18:31       ` boyd, rounin
2003-06-19 18:39       ` Russ Cox
2003-06-19 18:43         ` Andrew
2003-06-19 18:51           ` Russ Cox
2003-06-19 19:08             ` Andrew
2003-06-19 19:11               ` Russ Cox
2003-06-19 18:48       ` jmk [this message]
2003-06-19 19:17       ` Scott Schwartz
2003-06-19 19:19         ` Russ Cox
2003-06-19 19:27         ` boyd, rounin
2003-06-19 19:30 boyd, rounin

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=3643bbeabcff786c34b15f06876f75d2@plan9.bell-labs.com \
    --to=jmk@plan9.bell-labs.com \
    --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).