TMAegisBeta
Thêm quy tắc cho solaris

Oracle Solaris

TMA-SOLARIS-6.4

Set Default Screen Lock for GNOME Users

Trung bìnhCấp 1Tự độngsolaris

Mô tả

The timeout parameter dictates the invocation of a password-protected screen saver after a specified time of keyboard and mouse inactivity, specific to the xscreensaver application used in the GNOME windowing environment. As a screensaver timeout provides protection for a desktop that has not been locked by the user upon his/her departure, to help prevent session hijacking, this value should be set as appropriate to the needs of the user. Audit: XScreenSaver defaults must set timeout 0:10:00, lockTimeout 0:00:00 and lock True (compliant when the desktop is not installed).

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
f=/usr/share/X11/app-defaults/XScreenSaver; [ -f "$f" ] || { echo compliant; exit 0; }; r=compliant; grep -q "^\*timeout:[[:blank:]]*0:10:00" "$f" || r="timeout"; grep -q "^\*lockTimeout:[[:blank:]]*0:00:00" "$f" || r="lockTimeout"; grep -q "^\*lock:[[:blank:]]*True" "$f" || r="lock"; echo "$r"
Đầ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

Perform the following to implement the recommended state: # cd /usr/share/X11/app-defaults # cp XScreenSaver XScreenSaver.orig # awk '/^\*timeout:/ { $2 = "0:10:00" } /^\*lockTimeout:/ { $2 = "0:00:00" } /^\*lock:/ { $2 = "True" } { print }' xScreenSaver > xScreenSaver.CIS # mv xScreenSaver.CIS xScreenSaver

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
solarisaccounts
Tham chiếu
CIS Oracle Solaris 11.4 Benchmark v1.1.0 - 6.4 Set Default Screen Lock for GNOME Users

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 solaris