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