TMAegisБета
Другие правила для postgres

PostgreSQL

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.

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

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