APPL-15-002068 - The macOS system must secure users' home folders.

Information

The system must be configured to prevent access to other users' home folders.

The default behavior of macOS is to allow all valid users access to the top level of every other user's home folder while restricting access only to the Apple default folders within.

Satisfies: SRG-OS-000480-GPOS-00230, SRG-OS-000480-GPOS-00228

Solution

Configure the macOS system to set the appropriate permissions for each user on the system with the following command:

IFS=$'\n'
for userDirs in $( /usr/bin/find /System/Volumes/Data/Users -mindepth 1 -maxdepth 1 -type d ! \( -perm 700 -o -perm 711 \) | /usr/bin/grep -v "Shared" | /usr/bin/grep -v "Guest" ); do
/bin/chmod og-rwx "$userDirs"
done
unset IFS

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_15_V1R3_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-268513r1034479_rule, STIG-ID|APPL-15-002068, Vuln-ID|V-268513

Plugin: Unix

Control ID: 789e43eb91cef37da9014794010911c2f0515ea8db386af95aefa1db2c458bf2