15 - Restrict access to web application directory - owner


The $JETTY_BASE/webapps directory contains web applications that are deployed through . 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 permission on $JETTY_BASE/webapps prevent read, write, and execute for the world (o-rwx) and prevent write access to the group (g-w).

Restricting access to these directories will prevent local users from maliciously or inadvertently affecting the integrity of web applications.


Perform the following to restrict access to application log files:
1. Set the ownership of the $JETTY_BASE/webapps to _admin:.
2. Remove read, write, and execute permissions for the world.
# chown _admin: $JETTY_BASE/webapps
# chmod g-w,o-rwx $JETTY_BASE/webapps

Item Details


References: 800-53|AC-6

Plugin: Unix

Control ID: 66e24d1c832418e35ec95091187baad618de4f1cfb1f177941b232fcf7c0ec21