TMAegisBeta
更多 macos 規則

macOS

TMA-MACOS-5.9

Ensure the Guest Home Folder Does Not Exist

高等級 1自動化macos

說明

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.

檢查方式

稽核方法: Shell 指令

shell
out=$(/bin/ls /Users/ 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -cx Guest || true
預期輸出
0

修補方式

修補方法: 操作指南或基礎設施修補檔

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

屬性

作業系統
macos-26
標籤
macossystem-access
參考資料
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.9 Ensure the Guest Home Folder Does Not Exist

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target macos