SV-214056r508027_rule
V-214056
SRG-APP-000172-DB-000075
PGS9-00-000800
CAT II
10
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), edit pg_hba.conf authentication file and change all entries of "password" to "md5":
$ sudo su - postgres
$ vi ${PGDATA?}/pg_hba.conf
host all all .example.com md5
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), review the authentication entries in pg_hba.conf:
$ sudo su - postgres
$ cat ${PGDATA?}/pg_hba.conf
If any entries use the auth_method (last column in records) "password", this is a finding.
V-214056
False
PGS9-00-000800
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), review the authentication entries in pg_hba.conf:
$ sudo su - postgres
$ cat ${PGDATA?}/pg_hba.conf
If any entries use the auth_method (last column in records) "password", this is a finding.
M
3994