TMAegis
postgres 관련 규칙 더 보기

PostgreSQL

TMA-POSTGRES-4.1

Ensure Interactive Login is Disabled

보통레벨 1수동 검토postgres

설명

When created, the PostgreSQL user may have interactive access to the operating system, which means that the PostgreSQL user could login to the host as any other user would.

점검 방법

감사 방식: 수동 검토

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

Run sudo grep postgres /etc/shadow | cut -d: -f1-2. Unless the output is postgres:!<something> (locked password), interactive login is possible and this is a fail.

조치 방법

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

Lock the account password: passwd -l postgres (and optionally set its shell to /sbin/nologin if no one uses sudo -iu postgres). Administrators then use sudo -iu postgres.

속성

운영 체제
모두
태그
postgresdatabaseauthenticationosmanual
참고 자료
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.1 Ensure Interactive Login is Disabled