SV-239200r717052_rule
V-239200
SRG-APP-000118-DB-000059
VCPG-67-000005
CAT II
10
At the command prompt, enter the following command:
# chmod 600 <file>
# chown vpostgres:users <file>
Note: Replace <file> with the file with incorrect permissions.
At the command prompt, execute 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, enter the following command:
# find /var/log/vmware/vpostgres/* -xdev -type f -a '(' -not -perm 600 -o -not -user vpostgres -o -not -group users ')' -exec ls -ld {} \;
If any files are returned, this is a finding.
V-239200
False
VCPG-67-000005
At the command prompt, enter the following command:
# find /var/log/vmware/vpostgres/* -xdev -type f -a '(' -not -perm 600 -o -not -user vpostgres -o -not -group users ')' -exec ls -ld {} \;
If any files are returned, this is a finding.
M
5324