TMAegis
postgres 관련 규칙 더 보기

TMA-POSTGRES-1.3

Ensure systemd Service Files Are Enabled

낮음레벨 1자동postgres

설명

Confirm, and correct if necessary, the PostgreSQL systemd service is enabled. Passes when at least one postgresql* systemd service unit is enabled.

점검 방법

감사 방식: 셸 명령

shell
out=$(systemctl list-unit-files --type=service --no-legend 'postgresql*' 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '$2=="enabled"{e=1} END{print e?"enabled":"not-enabled"}'
예상 출력
enabled

조치 방법

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

Enable the PostgreSQL unit for the default target, e.g. systemctl enable postgresql-18 (PGDG) or systemctl enable postgresql (Debian/Ubuntu), then confirm with systemctl is-enabled.

속성

운영 체제
모두
태그
postgresdatabaseservice
참고 자료
CIS PostgreSQL 18 Benchmark v1.0.0 - 1.3 Ensure systemd Service Files Are Enabled

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target postgres