This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Talk:Securing tomcat"

From OWASP
Jump to: navigation, search
Line 13: Line 13:
 
[[User:Combatopera|Combatopera]] 15:53, 12 November 2006 (EST)
 
[[User:Combatopera|Combatopera]] 15:53, 12 November 2006 (EST)
  
You're right, those permission values were a hasty addition without being tested correctly. I'll test them properly and update the documentation accordinglyYou mention 750 or 700 for the logs dir, what problems did you find with 300? [[User:Dledmonds|Darren]] 06:45, 17 November 2006 (EST)
+
CATALINA_HOME/conf files updated to recommend chmod 400.  tomcat-user.xml the same as tomcat doesn't write to it.  Original file permissions for all these conf files were 600 when 5.5.20 was unpacked on a debian box.
 +
 
 +
CATALINA_HOME/logs directory updated to recommend chmod 300Prevents tomcat user reading the logs within, but writing works fine for me - again after 5.5.20 was unpacked on a debian box.
 +
 
 +
[[User:Dledmonds|Darren]] 04:35, 9 January 2007 (EST)

Revision as of 09:35, 9 January 2007

What's the best way to acknowledge the contributions of others as I'd like to add some thanks to Kris Easter, Michel Prunet and Stephen More. This discussion area? In brackets after the article link from Java Project Roadmap ? Darren 08:58, 27 October 2006 (EDT)

UNIX Permissions

> Change files in CATALINA_HOME/conf to be readonly (440)

Initially these are 600 (except for tomcat-users.xml which is 644 and Tomcat keeps it that way). Is there a need to make them group-readable?

> Make sure tomcat user has ... write (220 - yes, only write) access to CATALINA_HOME/logs

This doesn't work. I think the best that can be done here is 750 or 700.

Combatopera 15:53, 12 November 2006 (EST)

CATALINA_HOME/conf files updated to recommend chmod 400. tomcat-user.xml the same as tomcat doesn't write to it. Original file permissions for all these conf files were 600 when 5.5.20 was unpacked on a debian box.

CATALINA_HOME/logs directory updated to recommend chmod 300. Prevents tomcat user reading the logs within, but writing works fine for me - again after 5.5.20 was unpacked on a debian box.

Darren 04:35, 9 January 2007 (EST)