TMA-POSTGRES-2.1
Ensure the file permissions mask is correct
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Xem xét thủ công
Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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.
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
As postgres add 'umask 077' to the profile file in use (e.g. ~postgres/.bash_profile) and re-login to confirm umask prints 0077.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- postgresdatabasefilesystempermissionsmanual
- Tham chiếu
- CIS PostgreSQL 18 Benchmark v1.0.0 - 2.1 Ensure the file permissions mask is correct