1. Home
  2. Security Hardening
  3. CIS Apache Tomcat 7 L1 V1.1.0 Middleware
  4. Ensure directory in context.xml is a secure location – configuration

Ensure directory in context.xml is a secure location – configuration

Details

The directory attribute tells Tomcat where to store logs. It is recommended that the location pointed to by the directory attribute is secured.

Solution

1. Add the following statement into the $CATALINA_BASEwebappsMETAINFcontext.xml file if it does not already exist.

2. Set the location pointed to by the directory attribute to be owned by tomcat_admin:tomcat with permissions of o-rwx.
# chown tomcat_admin:tomcat $CATALINA_HOME/logs
# chmod o-rwx $CATALINA_HOME/logs

Supportive Information

The following resource is also helpful.

This control applies to the following type of system Unix.

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles