TMAegis
postgres 관련 규칙 더 보기

TMA-POSTGRES-4.2

Ensure sudo is configured correctly

보통레벨 1수동 검토postgres

설명

It is common to have more than one authorized individual administering the PostgreSQL service at the Operating System level. It is also quite common to permit login privileges to individuals on a PostgreSQL host who otherwise are not authorized to access the server's data cluster and files.

점검 방법

감사 방식: 수동 검토

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

Check /etc/sudoers and /etc/sudoers.d: only an approved DBA group (e.g. %dba) may run commands as postgres. Test with an unauthorized user (sudo -iu postgres must be refused) and an authorized one.

조치 방법

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

Create a DBA group, add authorized users, and add '%dba ALL=(postgres) PASSWD: ALL' via visudo -f /etc/sudoers.d/postgres.

속성

운영 체제
모두
태그
postgresdatabaseauthenticationsudomanual
참고 자료
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.2 Ensure sudo is configured correctly