TMAegis
postgres のその他のルール

TMA-POSTGRES-4.1

Ensure Interactive Login is Disabled

中レベル 1手動レビューpostgres

説明

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.

チェック方法

監査方法: 手動レビュー

この推奨事項は自動ではチェックできません。--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.

修正方法

修正方法: ガイダンスまたは IaC パッチ

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.

プロパティ

オペレーティングシステム
すべて
タグ
postgresdatabaseauthenticationosmanual
参照
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.1 Ensure Interactive Login is Disabled