Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: 5.7 Do not enable the "root" account #19

Open
krispayne opened this issue Aug 2, 2016 · 0 comments
Open

TODO: 5.7 Do not enable the "root" account #19

krispayne opened this issue Aug 2, 2016 · 0 comments

Comments

@krispayne
Copy link
Owner

#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant