TMAegis
postgres 관련 규칙 더 보기

TMA-POSTGRES-2.1

Ensure the file permissions mask is correct

보통레벨 1수동 검토postgres

설명

Files are always created using a default set of permissions. File permissions can be restricted by applying a permissions mask called the umask. The postgres user account should use a umask of 0077 to deny file access to all user accounts except the owner.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

As root run su - postgres -c umask. The umask must be 0077 or more restrictive for the postgres user (check .bash_profile, .profile and .bashrc of the postgres home); otherwise this is a fail.

조치 방법

조치 방식: 가이드 또는 인프라 패치

As postgres add 'umask 077' to the profile file in use (e.g. ~postgres/.bash_profile) and re-login to confirm umask prints 0077.

속성

운영 체제
모두
태그
postgresdatabasefilesystempermissionsmanual
참고 자료
CIS PostgreSQL 18 Benchmark v1.0.0 - 2.1 Ensure the file permissions mask is correct