TMAegisBeta
Thêm quy tắc cho macos

macOS

TMA-MACOS-5.9

Ensure the Guest Home Folder Does Not Exist

CaoCấp 1Tự độngmacos

Mô tả

In the previous two controls, the guest account login has been disabled and sharing to guests has been disabled, as well. There is no need for the legacy Guest home folder to remain in the file system. When normal user accounts are removed, you have the option to archive it, leave it in place, or delete. In the case of the guest folder, the folder remains in place without a GUI option to remove it.

Cách kiểm tra

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

shell
out=$(/bin/ls /Users/ 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -cx Guest || true
Đầ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

Terminal: sudo /bin/rm -R /Users/Guest.

Thuộc tính

Hệ điều hành
macos-26
Thẻ
macossystem-access
Tham chiếu
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.9 Ensure the Guest Home Folder Does Not Exist

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 macos