PostgreSQL
TMA-POSTGRES-2.1
Ensure the file permissions mask is correct
中等級 1人工審核postgres
說明
Files are always created using a default set of permissions. File permissions can be restricted by applying a permissions mask called the umask. The postgres user account should use a umask of 0077 to deny file access to all user accounts except the owner.
檢查方式
稽核方法: 人工審核
此項建議無法自動檢查。當您傳入 --include-manual 時,掃描結果會列出此項目並附帶這些說明。
As root run su - postgres -c umask. The umask must be 0077 or more restrictive for the postgres user (check .bash_profile, .profile and .bashrc of the postgres home); otherwise this is a fail.
修補方式
修補方法: 操作指南或基礎設施修補檔
As postgres add 'umask 077' to the profile file in use (e.g. ~postgres/.bash_profile) and re-login to confirm umask prints 0077.
屬性
- 作業系統
- 不限
- 標籤
- postgresdatabasefilesystempermissionsmanual
- 參考資料
- CIS PostgreSQL 18 Benchmark v1.0.0 - 2.1 Ensure the file permissions mask is correct