Free DISA STIG and SRG Library | Vaulted

V-68967

Access to database files must be limited to relevant processes and to authorized, administrative users.

Finding ID
PPS9-00-006100
Rule ID
SV-83571r1_rule
Severity
Cat II
CCE
(None)
Group Title
SRG-APP-000243-DB-000374
CCI
CCI-001090
Target Key
(None)
Documentable
No
Discussion

Applications, including DBMSs, must prevent unauthorized and unintended information transfer via shared system resources. Permitting only DBMS processes and authorized, administrative users to have access to the files where the database resides helps ensure that those files are not shared inappropriately and are not open to backdoor access and manipulation.

Fix Text

Run these commands: 1) "chown enterprisedb &lt;<postgresql data directory>" 2) "chgrp enterprisedb &lt;<postgresql data directory>" 3) "chmod 700 &lt;<postgresql data directory>" (The default path for the postgresql data directory is /var/lib/ppas/9.5/data, but this will vary according to local circumstances.)

Check Content

Verify User ownership, Group ownership, and permissions on the &lt;<postgressql data directory> directory: > ls –ald &lt;<postgresql data directory> If the User owner is not “enterprisedb”, this is a finding If the Group owner is not “enterprisedb”, this is a finding. If the directory is more permissive than 700, this is a finding. (The default path for the postgresql data directory is /var/lib/ppas/9.5/data, but this will vary according to local circumstances.)