macOS
TMA-MACOS14-5.9
Ensure the Guest Home Folder Does Not Exist
說明
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. If at some point in the future a Guest account is needed, it will be re-created. The presence of the Guest home folder can cause automated audits to fail when looking for compliant settings within all User folders, as well. Rather than ignoring the folder's continued existence, it is best removed. The Guest home folders are unneeded after the Guest account is disabled and could be used inappropriately.
檢查方式
稽核方法: Shell 指令
out=$(/bin/ls /Users/ 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -cx Guest || true- 預期輸出
0
修補方式
修補方法: 操作指南或基礎設施修補檔
Terminal Method: Run the following command to remove the Guest user home folder: % /usr/bin/sudo /bin/rm -R /Users/Guest Note: If the Guest folder exists it maybe a legacy folder. If so, the folder should be removed. If you are unsure if the Guest folder is a legacy folder, then your organization should research why that folder is there. Also research what is contained (or was contained) within it before removing the folder.
屬性
- 作業系統
- macos-14
- 標籤
- macossonoma
- 參考資料
- CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 5.9 Ensure the Guest Home Folder Does Not Exist
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
tmaegis scan --target macos