TMAegis
Weitere Regeln für postgres

PostgreSQL

TMA-POSTGRES-4.1

Ensure Interactive Login is Disabled

MittelStufe 1Manuelle Prüfungpostgres

Beschreibung

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.

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

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.

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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.

Eigenschaften

Betriebssysteme
Beliebig
Tags
postgresdatabaseauthenticationosmanual
Referenz
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.1 Ensure Interactive Login is Disabled