Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83070 - Tomcat 5.0.28 sets wrong permissions
Summary: Tomcat 5.0.28 sets wrong permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Jan Brinkmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 07:32 UTC by MT
Modified: 2005-02-24 05:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2005-02-23 07:32:47 UTC
When installing Tomcat 5.0.28 i get this problem when starting Tomcat:

 * Starting Tomcat ...
Using CATALINA_BASE:   /var/lib/tomcat-5/default
Using CATALINA_HOME:   /usr/share/tomcat-5
Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default
Using JAVA_HOME:       /opt/sun-jdk-1.4.2.07
touch: cannot touch `/var/lib/tomcat-5/default/logs/catalina.out': Permission denied
/usr/share/tomcat-5/bin/catalina.sh: line 228: /var/lib/tomcat-5/default/logs/catalina.out: Permission denied 


The trivial fix to this problem is the following:

chown tomcat:tomcat -R /var/lib/tomcat-5/
chown tomcat:tomcat -R /etc/tomcat-5/ 
chown tomcat:tomcat -R /var/log/tomcat-5/

i think that the ebuild miss setting the right permissions,
need to be checked
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-02-23 10:14:29 UTC
take a look into the ebuild, this already happens atleast in    pkg_postinst():

    # These directories contain the runtime files and
    # are therefor owned by tomcat
    chown -R tomcat:tomcat /etc/${TOMCAT_NAME}
    chown -R tomcat:tomcat /var/log/${TOMCAT_NAME}
    chown -R tomcat:tomcat /var/tmp/${TOMCAT_NAME}
    chown -R tomcat:tomcat /var/run/${TOMCAT_NAME}
    chown -R tomcat:tomcat /var/lib/${TOMCAT_NAME}

please re-emerge tomcat and try it again. i've tried it on different system and it just works for me. 
Comment 2 MT 2005-02-24 05:04:22 UTC
you are right, i have tried another install after have removed all the tomcat5 files and the problem there isn't anymore. the init.d script start correctly. unfortunately i can't check the onscreen log of the original install, so i xan't investigate on what broke the install, but i have to install tomcat5 on another 8 production server, if the problem come back i submit bug report with more information.

Thank for help me and spen time over me.