SV-98909r1_rule
V-88259
SRG-APP-000141-DB-000090
VROM-PG-000160
CAT II
10
At the command prompt, execute the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "DROP DATABASE IF EXISTS <name>;"
At the command prompt, execute the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT datname FROM pg_database WHERE datistemplate = false;"
If the output is not the following lines, this is a finding:
datname
----------
postgres
VCDB
(2 rows)
V-88259
False
VROM-PG-000160
At the command prompt, execute the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT datname FROM pg_database WHERE datistemplate = false;"
If the output is not the following lines, this is a finding:
datname
----------
postgres
VCDB
(2 rows)
M
3445