Hi Bill and Steve,

2006/9/26, Steve Langasek <[EMAIL PROTECTED]>:
On Tue, Sep 26, 2006 at 10:54:26AM +0200, Bill Allombert wrote:
> > 2006/9/25, Bill Allombert <[EMAIL PROTECTED]>:
> > >Package: nut
> > >Version: 2.0.4-2
> > >Severity: serious

> > >There is an error when attempting to purge nut:

> > >  Removing nut ...
> > >  Purging configuration files for nut ...
> > >  /var/lib/dpkg/info/nut.postrm: line 5: deluser: command not found
> > >  dpkg: error processing nut (--purge):
> > >   subprocess post-removal script returned error exit status 127

> > >The postrm script cannot rely on adduser to be available when purging.

> > >See Policy 7.2:
> > >  Note, however, that the `postrm' cannot rely on any non-essential
> > >  packages to
> > >  be present during the `purge' phase.

> > I'm not sure about the best action to be taken:
> > - check if deluser exist, and try to deluser if possible => that can
> > leave junks...
> > - other option?

> Would it be possible to remove the user at remove time instead of purge
> time ?

If the user owns files that aren't removed until purge time, that would
leave dangling files that may end up owned by an unrelated service user when
the uid is reused, which would be a bad thing.  (This is also why it's
generally a bad idea to delete system users at all in maintainer scripts,
because you can't always know that there are no files left owned by the
user.)

Since this package creates a /var/lib/nut directory which may be full of
files owned by this user, and does nothing on removal to clean up these

well, there shouldn't be anything left. This is just for socket
communication, and pid files. So I'll also there care of this one.

files, I think it's best to just not delete the user at all.

If there is no objection, we'll go that way.

thanks to you both.
Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to