TMA-POSTGRES-4.2
Ensure sudo is configured correctly
中レベル 1手動レビューpostgres
説明
It is common to have more than one authorized individual administering the PostgreSQL service at the Operating System level. It is also quite common to permit login privileges to individuals on a PostgreSQL host who otherwise are not authorized to access the server's data cluster and files.
チェック方法
監査方法: 手動レビュー
この推奨事項は自動ではチェックできません。--include-manual を指定すると、スキャン結果にこの手順付きで一覧表示されます。
Check /etc/sudoers and /etc/sudoers.d: only an approved DBA group (e.g. %dba) may run commands as postgres. Test with an unauthorized user (sudo -iu postgres must be refused) and an authorized one.
修正方法
修正方法: ガイダンスまたは IaC パッチ
Create a DBA group, add authorized users, and add '%dba ALL=(postgres) PASSWD: ALL' via visudo -f /etc/sudoers.d/postgres.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- postgresdatabaseauthenticationsudomanual
- 参照
- CIS PostgreSQL 18 Benchmark v1.0.0 - 4.2 Ensure sudo is configured correctly