TMAegis
Plus de règles pour postgres

TMA-POSTGRES-4.1

Ensure Interactive Login is Disabled

MoyenneNiveau 1Revue manuellepostgres

Description

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.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --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.

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
postgresdatabaseauthenticationosmanual
Référence
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.1 Ensure Interactive Login is Disabled