tomcat6 package should fully support running as a different user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Debian) |
Fix Released
|
Unknown
|
|||
tomcat6 (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez | ||
Lucid |
Fix Released
|
Medium
|
Thierry Carrez |
Bug Description
Binary package hint: tomcat6
I run tomcat6 on Ubuntu 8.10, installed from the tomcat6 package. I need to run tomcat as a different user to 'tomcat6' so have configured this via the TOMCAT6_USER variable in /etc/default/
Looking at the tomcat6 package, this happens in the postinst script, during the configure stage. The same also happens in the current tomcat6 package in Ubuntu 10.04. I would suggest that these chowns/chgrps either be removed, or that they are made aware of the user that tomcat runs as. Could this be done by passing options through debconf?
== SRU Report ==
Impact:
If the user sets TOMCAT6_USER (in /etc/default/
Development branch fix:
We are trying to keep sync with Debian, fix was proposed to debian-java SVN and pending release.
Minimal patch:
See attached in comment
TEST CASE:
$ sudo apt-get install tomcat6
$ sudo service tomcat6 stop
Edit /etc/default/
$ sudo dpkg-reconfigure tomcat6
Affected version:
Tomcat fails to restart due to user 'fewbar' not found. If you manually create the user, restart still fails on permission denied over various directories.
Fixed version:
Tomcat restarts successfully and works ok.
Regression potential:
The only thing changing for normal users (those who had TOMCAT6_
Changed in tomcat6 (Ubuntu): | |
status: | Invalid → New |
summary: |
- tomcat6 package changes ownership of directories + tomcat6 package should respect dpkg-statoverride |
Changed in tomcat6 (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
summary: |
- tomcat6 package should respect dpkg-statoverride + tomcat6 package should respect dpkg-statoverride (support running as a + different user) |
summary: |
- tomcat6 package should fully support running as a different user + tomcat6 does not respect dpkg-statoverride settings |
summary: |
- tomcat6 does not respect dpkg-statoverride settings + tomcat6 package should fully support running as a different user |
Changed in tomcat6 (Debian): | |
status: | Unknown → New |
Changed in tomcat6 (Ubuntu Lucid): | |
assignee: | nobody → Thierry Carrez (ttx) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in tomcat6 (Ubuntu): | |
importance: | Wishlist → Medium |
Changed in tomcat6 (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in tomcat6 (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
Changed in tomcat6 (Debian): | |
status: | New → Fix Released |
tags: |
added: verification-done removed: verification-needed |
The proper way to do this kind of permissions change in a way that persists future package upgrades is to override permissions through "dpkg-statoverr ide". The tomcat6 package is thought to honor such overrides properly, please reopen the bug if you still have issues when using the debian way to do what you want.