TMAegisBeta
Aturan lainnya untuk postgres

PostgreSQL

TMA-POSTGRES-1.3

Ensure systemd Service Files Are Enabled

RendahLevel 1Otomatispostgres

Deskripsi

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

Cara pemeriksaan

Metode audit: Perintah shell

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"}'
Output yang diharapkan
enabled

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

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.

Properti

Sistem operasi
Apa saja
Tag
postgresdatabaseservice
Referensi
CIS PostgreSQL 18 Benchmark v1.0.0 - 1.3 Ensure systemd Service Files Are Enabled

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target postgres