| Summary: | /var/log/tomcat6/catalina.out owned by pkiuser | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Dogtag Certificate System | Reporter: | John Dennis <jdennis> | ||||
| Component: | Installer (pkicreate/pkiremove) | Assignee: | RHCS Maintainers <rhcs-maint> | ||||
| Status: | CLOSED EOL | QA Contact: | Ben Levenson <benl> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 9.0 | CC: | alee, edewata | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 693835 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-03-27 20:12:38 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 693835, 696390 | ||||||
| Attachments: |
|
||||||
Created attachment 490027 [details]
set TOMCAT_LOG when tomcat6 initscript is executed
Sending base/ca/shared/conf/tomcat6.conf Sending base/kra/shared/conf/tomcat6.conf Sending base/ocsp/shared/conf/tomcat6.conf Sending base/setup/pkicreate Sending base/tks/shared/conf/tomcat6.conf Transmitting file data ..... Committed revision 1954. |
/var/log/tomcat6/catalina.out user & group ownership gets set to pkiuser. This is not correct, we should not be setting anything outside our tomcat instance. This occurs because of these lines in /etc/init.d/tomcat6 TOMCAT_LOG="${TOMCAT_LOG:-/var/log/tomcat6/catalina.out}" [ "$RETVAL" -eq "0" ] && touch $TOMCAT_LOG 2>&1 || RETVAL="4" if [ "$RETVAL" -eq "0" -a "$?" -eq "0" ]; then chown ${TOMCAT_USER}:${TOMCAT_USER} $TOMCAT_LOG fi The fundamental problem is we do not set TOMCAT_LOG in /etc/sysconfig/<instance> which is a template file installed in /user/share/pki/{ca,kra,ocsp,tks}/conf/tomcat6.conf