TMAegis
postgres için daha fazla kural

PostgreSQL

TMA-POSTGRES-4.1

Ensure Interactive Login is Disabled

OrtaDüzey 1Manuel incelemepostgres

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Manuel inceleme

Bu öneri otomatik olarak denetlenemez. --include-manual parametresini verdiğinizde tarama bunu bu talimatlarla birlikte listeler.

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.

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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.

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
postgresdatabaseauthenticationosmanual
Referans
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.1 Ensure Interactive Login is Disabled