fleet/ee/cis/macos-13/test/scripts/CIS_5.1.6.sh
2023-02-08 10:11:20 -05:00

7 lines
199 B
Bash
Executable File

#!/bin/bash
/usr/bin/sudo IFS=$'\n'
for sysPermissions in $( /usr/bin/find /System/Volumes/Data/System -type d -perm -2 | /usr/bin/grep -v "Drop Box" );
do
/bin/chmod -R o-w "$sysPermissions"
done