TMAegis
Thêm quy tắc cho macos

TMA-MACOS-2.13.2

Ensure Guest Access to Shared Folders Is Disabled

CaoCấp 1Tự độngmacos

Mô tả

Allowing guests to connect to shared folders enables users to access selected shared folders and their contents from different computers on a network.

Cách kiểm tra

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

shell
out=$(/usr/sbin/sysadminctl -smbGuestAccess status 2>&1) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -q "SMB guest access disabled" && echo compliant
Đầ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

Terminal: sudo /usr/sbin/sysadminctl -smbGuestAccess off. GUI: System Settings > Users & Groups > i next to the Guest User > Set Allow guests to connect to shared folders to disabled.

Thuộc tính

Hệ điều hành
macos-26
Thẻ
macossystem-settings
Tham chiếu
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.13.2 Ensure Guest Access to Shared Folders Is Disabled

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