Rule ID
SV-241665r879631_rule
Version
V1R2
CCIs
CCI-001082
As a rule, accounts on a web server are to be kept to a minimum. Only administrators, web managers, developers, auditors, and web authors require accounts on the machine hosting the web server. The resources to which these accounts have access must also be closely monitored and controlled. Only the system administrator needs access to all the system's capabilities, while the web administrator and associated staff require access and control of the web content and web server configuration files. As with all secure web server installations, tc Server files and directories must be adequately protected with correct permissions.
Find any files that are not owned by admin or not group owned by admin, execute the following command:
cd /usr/lib/vmware-vcops/tomcat-enterprise
ls -alR bin conf | grep -E '^-' | awk '$3 !~ /admin/ {print}'
If the command produces any output, this is a finding.At the command prompt, execute the following command: Note: Replace <file_name> for the name of the file that was returned. chown admin:admin <file_name> Repeat the command for each file that was returned.