TMA-DB2-3.2.2
Turn Off Remote Command Legacy Mode (DB2RCMD_LEGACY_MODE)
Trung bìnhCấp 1Tự độngdb2
Mô tả
The DB2RCMD_LEGACY_MODE registry variable determines whether the Db2 Remote Command Service runs with enhanced security or not. It is recommended that legacy mode not be enabled. This registry variable only applies to Db2 Servers running on Windows. Unset or OFF passes. Default: The default value of DB2RCMD_LEGACY_MODE is OFF. Run as the instance owner (or with sqllib/db2profile sourced) so the db2 CLP reads this instance's configuration.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
out=$(db2set -all 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '/^\[[a-zA-Z]\]/ { l = $0; sub(/^\[[a-zA-Z]\] */, "", l); k = l; sub(/=.*/, "", k); v = l; sub(/^[^=]*=/, "", v); gsub(/[ \t]/, "", v); if (!(k in r)) r[k] = v } END { if (!("DB2RCMD_LEGACY_MODE" in r) || toupper(r["DB2RCMD_LEGACY_MODE"]) == "OFF") print "compliant"; else print "noncompliant: " r["DB2RCMD_LEGACY_MODE"] }'- Đầu ra mong đợi
compliant
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
Run the following command to set the DB2RCMD_LEGACY_MODE registry variable to OFF: db2set DB2RCMD_LEGACY_MODE=OFF
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- db2databaseregistry
- Tham chiếu
- CIS IBM Db2 12.1 Benchmark v1.0.0 - 3.2.2 Turn Off Remote Command Legacy Mode (DB2RCMD_LEGACY_MODE)
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 db2