#5.7 Do not enable the "root" account
# Level 1 Scored
#TODO: Test. New audit/remediation written.
# this is requiring expected statements. will look into expect
if [[ "$(/usr/bin/dscl . -read /Users/root AuthenticationAuthority)" = "No such key: AuthenticationAuthority" ]]; then
ScriptLogging " Root user is disabled."
else
ScriptLogging " Root user is enabled. Disabling..."
/usr/sbin/dsenableroot -d
ScriptLogging " Root user is disabled."
fi