TMA-MACOS-2.13.2
Ensure Guest Access to Shared Folders Is Disabled
HighLevel 1Automatedmacos
Description
Allowing guests to connect to shared folders enables users to access selected shared folders and their contents from different computers on a network.
How it is checked
Audit method: Shell command
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- Expected output
compliant
How it is fixed
Fix method: Guidance or infrastructure patch
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.
Properties
- Operating systems
- macos-26
- Tags
- macossystem-settings
- Reference
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.13.2 Ensure Guest Access to Shared Folders Is Disabled
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target macos