Reflexion will be End-of-life on March 31,2023. See Sophos Reflexion EoL FAQs to learn more.
Regarding KB 131959:
In running the prescribed script, there is a major error that results in the failure of properly echoing the folder path that is non-compliant to the criteria. Specifically, the following line simply echoes the command "ls-ld $directory" instead of actually echoing the output of the command.echo 'BAD PERMISSIONS ' 'ls -ld "$directory"'
This can be fixed by changing it to the following 2 lines:echo 'BAD PERMISSIONS for: 'ls -ld "$directory"
I would recommend adding the following between fi and done:echo 'Persmissions OK for:'ls -ld "$directory"echo 'Script complete'
With respect to the instructions for fixing bad permissions, the instructions are incorrect. The instructions as written result in the commands being executed within the Recovery Partition, which is not correct as it is read-only and is not the source of the problem. They should be executed in the appropriate boot volume. Therefore, each command should be executed as relative command once cd is executed to navigating to the appropriate boot volume. For example:
cd /Volumes/MacOSX/chmod 755 Library
or if the problem is with the volume root:cd /Volumes/chmod 755 MacOSX
etc...
And, one more thing, you state that sudo should be used in the Recovery terminal. Sudo is not possible to be used in that environment. You are inherently a root user within that environment and sudo will fail as it does not exist.