Hi

On Fri, Sep 29, 2006 at 06:57:23PM +0200, Bill Allombert wrote:
> Package: debarchiver
> Version: 0.6.4
> Severity: serious
> 
> Hello Ola,
> 
> There is an error when attempting to purge debarchiver:
>   Removing debarchiver ...
>   Purging configuration files for debarchiver ...
>   /var/lib/dpkg/info/debarchiver.postrm: line 22: userdel: command not found
>   dpkg: error processing debarchiver (--purge):
> 
> The postrm script cannot rely on adduser to be available when purging.

Adduser? We are talking about userdel here. It is in the passwd package and you
are right that it should check for the existance of it.

Thanks for pointing me to that problem.

> See Policy 7.2:
>   Note, however, that the `postrm' cannot rely on any non-essential packages 
> to
>   be present during the `purge' phase.
> 
> Also the postrm do
>       if grep "^debarchiver:" /etc/passwd > /dev/null 2>&1 ; then
>           userdel debarchiver
>       fi
>       if grep "^debarchiver:" /etc/group > /dev/null 2>&1 ; then
>           groupdel debarchiver
>       fi
> 
> You should rather use getent and deluser/delgroup which obey
> configuration in adduser.conf.

Getent can not be used as that gives more than the local files. This
means that it can see users that for example reside in ldap. We do
not want to try to remove that.

Why do I want to abey the rules that are in deluser.conf? I can not
see anything useful in that configuration file that are useful when
purging debarchiver. I can only see dangerous settings that I do not
want the user to have set when purging.

Regards,

// Ola

> Cheers,
> -- 
> Bill. <[EMAIL PROTECTED]>
> 
> Imagine a large red swirl here. 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


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

Reply via email to