macOS
TMA-MACOS15-5.9
Ensure the Guest Home Folder Does Not Exist
ÉlevéeNiveau 1Automatiséemacos
Description
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.
Méthode de vérification
Méthode d'audit: Commande shell
shell
out=$(/bin/ls /Users/ 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -cx Guest || true- Sortie attendue
0
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Terminal: sudo /bin/rm -R /Users/Guest.
Propriétés
- Systèmes d'exploitation
- macos-15
- Étiquettes
- macossystem-access
- Référence
- CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.9 Ensure the Guest Home Folder Does Not Exist
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target macos