Bug#599458: postrm purge hard-codes tomcat6 user and group names
Misha Koshelev
misha680 at gmail.com
Thu Oct 7 17:18:25 UTC 2010
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
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages tomcat6 depends on:
ii adduser 3.112 add and remove users and groups
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii tomcat6-common 6.0.28-6 Servlet and JSP engine -- common f
ii ucf 3.0025+nmu1 Update Configuration File: preserv
Versions of packages tomcat6 recommends:
ii authbind 1.2.0 Allows non-root programs to bind()
Versions of packages tomcat6 suggests:
pn tomcat6-admin <none> (no description available)
pn tomcat6-docs <none> (no description available)
pn tomcat6-examples <none> (no description available)
pn tomcat6-user <none> (no description available)
-- Configuration Files:
/etc/tomcat6/tomcat-users.xml [Errno 13] Permission denied: u'/etc/tomcat6/tomcat-users.xml'
-- debconf information excluded
More information about the pkg-java-maintainers
mailing list