SV-256595r887571_rule
V-256595
SRG-APP-000118-DB-000059
VCPG-70-000005
CAT II
10
At the command prompt, run the following commands:
# chmod 600 <file>
# chown vpostgres:vpgmongrp <file>
Note: Replace <file> with the file that has incorrect permissions.
At the command prompt, run the following commands:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "ALTER SYSTEM SET log_file_mode TO '0600';"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT pg_reload_conf();"
At the command prompt, run the following command:
# find /var/log/vmware/vpostgres/* -xdev -type f -a '(' -not -perm 600 -o -not -user vpostgres -o -not -group vpgmongrp ')' -exec ls -ld {} \;
If any files are returned, this is a finding.
V-256595
False
VCPG-70-000005
At the command prompt, run the following command:
# find /var/log/vmware/vpostgres/* -xdev -type f -a '(' -not -perm 600 -o -not -user vpostgres -o -not -group vpgmongrp ')' -exec ls -ld {} \;
If any files are returned, this is a finding.
M
5521