Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38358 - Tomcat permissions are out of whack, and some files need to be copied around.
Summary: Tomcat permissions are out of whack, and some files need to be copied around.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 37486
Blocks:
  Show dependency tree
 
Reported: 2004-01-15 17:11 UTC by trejkaz
Modified: 2004-02-15 17:19 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 trejkaz 2004-01-15 17:11:23 UTC
Hi.

Tomcat installs with no access to any of the directories required to do normal work (/usr/share/tomcat, /opt/tomcat, etc.)

I noticed this most predominantly when trying to add catalina-ant.jar to my classpath, which is a common requirement for Tomcat-enabled Ant build scripts.

On the same note, catalina-ant.jar should be copied to /usr/share/ant/lib for the same reason, or possibly /usr/share/ant/lib/ext, if such a thing is a good idea on Gentoo.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Lim Swee Tat (RETIRED) gentoo-dev 2004-01-23 07:34:27 UTC
What are the permissions tomcat installs with?? Because tomcat installs fine here. :)
Comment 2 trejkaz 2004-01-23 22:13:03 UTC
drwxr-x---   10 tomcat   tomcat       1024 Jan 16 23:53 .
drwxr-xr-x   16 root     root         1024 Jan 17 07:58 ..
drwxr-xr-x    2 tomcat   tomcat       1024 Jan 16 11:54 bin
drwxr-x---    3 tomcat   tomcat       1024 Jan 16 11:54 common
drwxr-xr-x    2 tomcat   tomcat       1024 Jan 17 02:10 conf
lrwxrwxrwx    1 root     root           15 Jan 16 11:54 logs -> /var/log/tomcat
drwxr-xr-x    5 tomcat   tomcat       1024 Jan 16 11:54 server
drwxr-xr-x    4 tomcat   tomcat       1024 Jan 16 11:54 shared
drwxr-x---    2 tomcat   tomcat       1024 Jan 17 02:25 temp
-rw-r--r--    1 tomcat   tomcat     159721 Jan 22 07:26 trace.log
drwxr-xr-x    6 tomcat   tomcat       1024 Jan 17 00:51 webapps
drwxr-xr-x    3 tomcat   tomcat       1024 Jan 16 23:42 work
Comment 3 Chetan Sarva 2004-02-10 19:36:23 UTC
What are you trying to do and what error are you getting regarding permissions? Tomcat 4.1.24-r1 starts and executes the examples correctly using the current ebuild.
Comment 4 trejkaz 2004-02-10 19:46:21 UTC
Of course it starts, because you're starting it as the 'tomcat' user.
The problem is some files in the directory are needed by ordinary users.

The particular one I mentioned above was catalina-ant.jar, which is required by Ant to perform tomcat functions such as automatically deploying web applications.  This file wasn't readable (actually the directory wasn't even traversable!) by the ordinary user who needed to deploy a web application and had all the necessary admin passwords to do it.

Either the permissions need to be fixed, or the tomcat ebuild should copy this file (and maybe more, if there are dependencies) out into /usr/share/ant/lib so Ant can pick it up in the classpath to gain access to these tasks.
Comment 5 Chris Aniszczyk (RETIRED) gentoo-dev 2004-02-15 17:19:53 UTC
Fixed in 5.0.18 and 4.1.29