On Mon, 4 Sep 2006 12:49:58 +0200
Christian Spoo <[EMAIL PROTECTED]> wrote:

> I know it's OT but considering your post in which you describe a
> possible solution for GREP 27 I ask myself if we should think about
> deleting unused users after uninstalling packages? Think of removing
> the apache user after unmerging apache itself.
> 
> In recent Portage eclasses I never found functions like edeleteuser
> or edeletegroup (or something similar) which might do those tasks.
> But I'm sure it would be possible to implement them.

In general, doing this automatically is a bad idea. It can leave your
system with files owned by no user. Also, adding something like this in
pkg_postrm in an ebuild would screw things up, as currently there is no
way for a package to know if it is being removed totally at that stage,
or if it is simply being updated.

My GLEP 27 implementation takes care of that action by a users-update
script. The operator runs that to scan the file system for any files
owned by a user or group, optionally removing them or chown-ing them to
0:0, then they can remove any unowned users.

-- 
Mike Kelly

Attachment: signature.asc
Description: PGP signature

Reply via email to