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

Misha Koshelev misha680 at gmail.com
Wed Oct 27 16:53:07 UTC 2010


No worries, glad to help. Thank you for your fixes.

Misha

On Tue, Oct 26, 2010 at 10:58 PM, tony mancill <tmancill at debian.org> wrote:
> 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
>
>





More information about the pkg-java-maintainers mailing list