PostgreSQL
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.
Како се исправља
Метод исправке: Смерница или закрпа инфраструктуре
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