9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] removing users
@ 2003-06-19 19:30 boyd, rounin
  0 siblings, 0 replies; 15+ messages in thread
From: boyd, rounin @ 2003-06-19 19:30 UTC (permalink / raw)
  To: 9fans

> no, the auth server/protocol should be sufficiently flexible to
> invalidate their auth credentials and that should do it.

having said that, i have commited the crime of overloading 'in-band' data.

russ' later post is what i should have said.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 19:17       ` Scott Schwartz
  2003-06-19 19:19         ` Russ Cox
@ 2003-06-19 19:27         ` boyd, rounin
  1 sibling, 0 replies; 15+ messages in thread
From: boyd, rounin @ 2003-06-19 19:27 UTC (permalink / raw)
  To: 9fans

> If that's the issue, there should simply be a bit in some file that
> says "not allowed to log in".

no, the auth server/protocol should be sufficiently flexible to
invalidate their auth credentials and that should do it.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 19:17       ` Scott Schwartz
@ 2003-06-19 19:19         ` Russ Cox
  2003-06-19 19:27         ` boyd, rounin
  1 sibling, 0 replies; 15+ messages in thread
From: Russ Cox @ 2003-06-19 19:19 UTC (permalink / raw)
  To: 9fans

> If that's the issue, there should simply be a bit in some file that
> says "not allowed to log in".  That's much better than overloading
> other fields.

There is.  On the authentication server.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 18:24     ` Andrew
                         ` (2 preceding siblings ...)
  2003-06-19 18:48       ` jmk
@ 2003-06-19 19:17       ` Scott Schwartz
  2003-06-19 19:19         ` Russ Cox
  2003-06-19 19:27         ` boyd, rounin
  3 siblings, 2 replies; 15+ messages in thread
From: Scott Schwartz @ 2003-06-19 19:17 UTC (permalink / raw)
  To: 9fans

> so i should rename them all to some null user which is unable to log in?

If that's the issue, there should simply be a bit in some file that
says "not allowed to log in".  That's much better than overloading
other fields.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 19:08             ` Andrew
@ 2003-06-19 19:11               ` Russ Cox
  0 siblings, 0 replies; 15+ messages in thread
From: Russ Cox @ 2003-06-19 19:11 UTC (permalink / raw)
  To: 9fans

> i know it wont get removed from venti, but will it clear off any space
> from the fossil drive?

no -- it's not taking up any space on the fossil drive once it goes to venti.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 18:51           ` Russ Cox
@ 2003-06-19 19:08             ` Andrew
  2003-06-19 19:11               ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Andrew @ 2003-06-19 19:08 UTC (permalink / raw)
  To: 9fans

On Thu, Jun 19, 2003 at 02:51:12PM -0400, Russ Cox wrote:
> > is it okay to remove their files from the active filesystem (since venti
> > has them already) or is that unnecessary?
>
> sure, but it won't free up any disk space.
>
i know it wont get removed from venti, but will it clear off any space
from the fossil drive?


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 18:43         ` Andrew
@ 2003-06-19 18:51           ` Russ Cox
  2003-06-19 19:08             ` Andrew
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2003-06-19 18:51 UTC (permalink / raw)
  To: 9fans

> is it okay to remove their files from the active filesystem (since venti
> has them already) or is that unnecessary?

sure, but it won't free up any disk space.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 18:24     ` Andrew
  2003-06-19 18:31       ` boyd, rounin
  2003-06-19 18:39       ` Russ Cox
@ 2003-06-19 18:48       ` jmk
  2003-06-19 19:17       ` Scott Schwartz
  3 siblings, 0 replies; 15+ messages in thread
From: jmk @ 2003-06-19 18:48 UTC (permalink / raw)
  To: 9fans

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.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 18:39       ` Russ Cox
@ 2003-06-19 18:43         ` Andrew
  2003-06-19 18:51           ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Andrew @ 2003-06-19 18:43 UTC (permalink / raw)
  To: 9fans

On Thu, Jun 19, 2003 at 02:39:28PM -0400, Russ Cox wrote:
> > so i should rename them all to some null user which is unable to log in?
>
> Don't rename them all to the same thing.
> That will just confuse you later.  We don't
> ever remove people -- we just turn off their
> accounts on the auth server.
>
> We had a spell where we renamed foo to usedtobefoo,
> but we've basically given up on that too.
>
> Russ
>

is it okay to remove their files from the active filesystem (since venti
has them already) or is that unnecessary?

thanks for all the help.

Andrew


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  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:48       ` jmk
  2003-06-19 19:17       ` Scott Schwartz
  3 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2003-06-19 18:39 UTC (permalink / raw)
  To: 9fans

> so i should rename them all to some null user which is unable to log in?

Don't rename them all to the same thing.
That will just confuse you later.  We don't
ever remove people -- we just turn off their
accounts on the auth server.

We had a spell where we renamed foo to usedtobefoo,
but we've basically given up on that too.

Russ



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 18:24     ` Andrew
@ 2003-06-19 18:31       ` boyd, rounin
  2003-06-19 18:39       ` Russ Cox
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 15+ messages in thread
From: boyd, rounin @ 2003-06-19 18:31 UTC (permalink / raw)
  To: 9fans

> so i should rename them all to some null user which is unable to log in?

removing users is always a bad idea.  once you blow them away you have
lost the trace of who they were, what they did and what they might be doing.

they should always be retired;  turn off their access but leave their
'existance' alone.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19 17:50   ` Russ Cox
@ 2003-06-19 18:24     ` Andrew
  2003-06-19 18:31       ` boyd, rounin
                         ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Andrew @ 2003-06-19 18:24 UTC (permalink / raw)
  To: 9fans

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
>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-19  6:36 ` Fco.J.Ballesteros
@ 2003-06-19 17:50   ` Russ Cox
  2003-06-19 18:24     ` Andrew
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2003-06-19 17:50 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] removing users
  2003-06-18 23:06 Andrew
@ 2003-06-19  6:36 ` Fco.J.Ballesteros
  2003-06-19 17:50   ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Fco.J.Ballesteros @ 2003-06-19  6:36 UTC (permalink / raw)
  To: 9fans

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

I edit the file by hand. There may be a better way.

[-- Attachment #2: Type: message/rfc822, Size: 1438 bytes --]

From: Andrew <afrayedknot@thefrayedknot.armory.com>
To: 9fans@cse.psu.edu
Subject: [9fans] removing users
Date: Wed, 18 Jun 2003 16:06:26 -0700
Message-ID: <20030618230626.GA32362@thefrayedknot.armory.com>

how does one remove a user from a fossil file server? do you edit the
users file by hand have fossil re-read it and then delete their files? or
is there a different way?

thanks

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [9fans] removing users
@ 2003-06-18 23:06 Andrew
  2003-06-19  6:36 ` Fco.J.Ballesteros
  0 siblings, 1 reply; 15+ messages in thread
From: Andrew @ 2003-06-18 23:06 UTC (permalink / raw)
  To: 9fans

how does one remove a user from a fossil file server? do you edit the
users file by hand have fossil re-read it and then delete their files? or
is there a different way?

thanks


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-06-19 19:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-19 19:30 [9fans] removing users boyd, rounin
  -- strict thread matches above, loose matches on Subject: below --
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
2003-06-19 19:17       ` Scott Schwartz
2003-06-19 19:19         ` Russ Cox
2003-06-19 19:27         ` boyd, rounin

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).