Bug 711913

Summary: tomcat6 appears to not have the correct permissions to start after install
Product: [Fedora] Fedora Reporter: Mike McCune <mmccune>
Component: tomcat6Assignee: David Knox <dknox>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dknox, dwalluck, jclere, sochotni, SpikeFedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-09 00:03:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike McCune 2011-06-09 00:00:44 UTC
Description of problem:

tomcat6 won't start properly on a fresh install of Fedora 15 x86_64.  The permissions appear to be incorrect on some of the directories used in tomcat

Version-Release number of selected component (if applicable):

tomcat6-6.0.30-6.fc15.noarch

How reproducible:

every time

Steps to Reproduce:
[root@f15-snap3 ~]# rpm -q tomcat6
package tomcat6 is not installed
[root@f15-snap3 ~]# rpm -q fedora-release
fedora-release-15-1.noarch
[root@f15-snap3 ~]# yum install tomcat6^C
[root@f15-snap3 ~]# yum install tomcat6
fedora/metalink
...
[root@f15-snap3 ~]# service tomcat6 start
Starting tomcat6:                                          [  OK  ]
[root@f15-snap3 ~]# ps -ef |grep java
root      1367  1026  0 12:07 pts/0    00:00:00 grep --color=auto java
[root@f15-snap3 ~]# cat /var/log/tomcat6/catalina.out 
/usr/sbin/tomcat6: line 30: /usr/share/tomcat6/logs/catalina.out: Permission denied
[root@f15-snap3 ~]# 
               

Expected results:

Start the server normally

Additional info:

I manually went around fixing permissions:

chmod g+x /var/log/tomcat6
chmod g+x /etc/tomcat6/
chown tomcat:tomcat -R /var/lib/tomcat6
chown tomcat:tomcat -R /var/lib/tomcat6
chown tomcat:tomcat -R /var/cache/tomcat6

and it starts normally after that and will load webapps.

Comment 1 Mike McCune 2011-06-09 00:03:46 UTC

*** This bug has been marked as a duplicate of bug 708694 ***