You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: