NGINX
TMA-NGINX-2.3.1
Ensure NGINX directories and files are owned by root
CaoCấp 1Tự độngnginx
Mô tả
The NGINX configuration directory and all contained files must be owned by the root user and group to prevent unauthorized modification. Counts files and directories under /etc/nginx not owned by root:root; expects 0. Evaluated on the merged configuration printed by `nginx -T` (all included files; needs permission to read them). CIS marks this recommendation Manual; the automated check implements its audit procedure.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
[ -d /etc/nginx ] || exit 1; find /etc/nginx \( ! -user root -o ! -group root \) -print 2>/dev/null | wc -l- Đầu ra mong đợi
0
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
chown -R root:root /etc/nginx
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- nginxpermissions
- Tham chiếu
- CIS NGINX Benchmark v3.0.0 - 2.3.1 Ensure NGINX directories and files are owned by root
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target nginx