Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22040 - Tomcat 4.1.24-r1 sets wrong permissions on /etc/conf.d/tomcat
Summary: Tomcat 4.1.24-r1 sets wrong permissions on /etc/conf.d/tomcat
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-01 03:32 UTC by Per Cederberg
Modified: 2004-02-15 17:20 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 Per Cederberg 2003-06-01 03:32:24 UTC
When installing Tomcat 4.1.24-r1 (new install) the file 
/etc/conf.d/tomcat is created. However, it is created with the 
following permissions:

-rwxr-x---    1 root     root         2734 2003-06-01 10:17 tomcat*

This causes problems when starting Tomcat:

#> /etc/init.d/tomcat start
 * Starting Tomcat...
/opt/tomcat/bin/catalina.sh: line 63: /etc/conf.d/tomcat: Permission den  [ !! ] 

The trivial fix to this problem is the following:

#> chmod a+rx /etc/conf.d/tomcat

Leaving the file with these permissions:

-rwxr-xr-x    1 root     root         2734 2003-06-01 10:17 tomcat*

I do not see this as a security concern, but maybe I'm missing
something. Please review.


Reproducible: Always
Steps to Reproduce:
Comment 1 squeeze 2003-07-07 02:51:13 UTC
Same here... 
 
If it's a security issue, why not use the tomcat user as owner of the file. 
 
Comment 2 Dave Brondsema 2003-07-22 16:17:15 UTC
The same comments apply to /opt/tomcat/logs.

Bug 24371 is related.
Comment 3 Dean Ostergaard 2003-10-11 19:00:25 UTC
I noticed the same permissions problem with the file /etc/conf.d/tomcat

Since it is often useful and sometimes necessary to have several Tomcat instances
running it might be a good idea to 'chgrp tomcat /etc/conf.d/tomcat' then
root can add users who will be running a tomcat instance to the tomcat group.

However, I'm not sure this file would even be referenced if a normal user
started tomcat via '/opt/tomcat/bin/cataline.sh start/stop/run' but I think
the ebuild should chgrp the file in any case.
Comment 4 Adrian Almenar 2003-12-19 21:55:23 UTC
Moving this again to java@gentoo.org, so everyone out there can help.
Comment 5 Chris Aniszczyk (RETIRED) gentoo-dev 2004-02-15 17:20:48 UTC
Fixed in 4.1.29 and 5.0.18