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