/etc/tomcat6 is created with the wrong permissions
Bug #624739 reported by
Yves Glodt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tomcat6
This is on Ubuntu 10.04/amd64.
The folder /etc/tomcat6 must be writable by tomcat, since it (at least on my setup) wants to create folders there for the configured services and engines, e.g. in my case /etc/tomcat6/
The problem is that the folder is owned by root.root, whereas it should be tomcat6.root.
Here an excerpt of my config:
<Service name="opencms">
...
<Engine name="opencms" defaultHost=
<Host name="localhost" debug="99" appBase=
</Engine>
...
</Service>
Let me know if you need more details.
To post a comment you must log in.
/etc/tomcat6 is only root-writeable by default for security reasons, so that an abuse of the tomcat6 user cannot compromise the whole Tomcat configuration (server.xml, and the users password file). Tomcat6 can write under /etc/tomcat/ Catalina/ localhost so that autodeployment works.
Your requirement that the tomcat6 user can write in /etc/tomcat6/ opencms doesn't come from Tomcat but from OpenCMS. You can change the default protection to suit your particular needs, or use a private instance for OpenCMS (see about tomcat6-user in http:// doc.ubuntu. com/ubuntu/ serverguide/ C/tomcat. html)