File Locations - data directory

Information

PostgreSQL configuration and data files should be protected against view and modification from unauthorized users.

Solution

Change owner and permissions of the PostgreSQL data files. Example:

chown -R @PG_OWNER@:@PG_GROUP@ @PG_DATA_DIR@
chmod -R g-rwx,o-rwx @PG_DATA_DIR@

See Also

https://www.postgresql.org/docs/9.6/static/index.html

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv6|3.1

Plugin: Unix

Control ID: 82f8328b0e3ba0692cab7209688a2795459ddf835d64d231e64ad81bcdcfb74e