12 - Restrict access to logs directory - owner

Information

The $JETTY_BASE/logs/ directory contains logs. It is recommended that you create a user to specifically run Jetty. This user should have the minimum set of privileges needed to run Jetty. The ownership of this directory should then be assigned to the Jetty user. It is also recommended that the permissions on this directory prevent read, write, and execute for the world (o-rwx).

Restricting access to these directories will prevent local users from maliciously or inadvertently altering s logs.

Solution

Perform the following to restrict access to log files:
1. Set the ownership of the $JETTY_BASE/logs to the dedicated Jetty user (e.g., jetty).
2. Remove read, write, and execute permissions for the world
# chown _admin: $JETTY_BASE/logs # chmod o-rwx $JETTY_BASE/logs

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6

Plugin: Unix

Control ID: 7adf7032aa6568f597d09499c28ca6190ce54894076ac30d917933997fea2651