Bug#599458: postrm purge hard-codes tomcat6 user and group names

tony mancill tmancill at debian.org
Wed Oct 27 03:58:21 UTC 2010


Hello Misha,

Thank you for reporting this issue.  I have tested locally and updated
the postrm as you suggested.

Thank you,
tony

On 10/07/2010 10:18 AM, Misha Koshelev wrote:
> Package: tomcat6
> Version: 6.0.28-6
> Severity: normal
> 
> Here is relevant part of postrm:
>         deluser tomcat6
>         delgroup tomcat6
> 
> I believe this could possibly be:
>         db_get tomcat6/username && TOMCAT6_USER="$RET" || TOMCAT6_USER="tomcat6"
>         db_get tomcat6/groupname && TOMCAT6_GROUP="$RET" || TOMCAT6_GROUP="tomcat6"
> 	deluser $TOMCAT6_USER
> 	delgroup $TOMCAT6_GROUP
> 
> I tested this and indeed tomcat6 results in errors upon purge when non-standard user and group are used:
> 
> On install:
> Adding system user `tomcat' (UID 106) ...
> Adding new user `tomcat' (UID 106) with group `tomcat' ...
> 
> On purge:
> Purging configuration files for tomcat6 ...
> /usr/sbin/deluser: The user `tomcat6' does not exist.
> The group `tomcat6' does not exist.
> 
> Thank you
> Misha Koshelev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20101026/06f45224/attachment.pgp>


More information about the pkg-java-maintainers mailing list