Created
November 28, 2017 21:31
-
-
Save patgmac/0a176f26f6d71d282258acb6de47d496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# check_root_shell.sh | |
shell="$(/usr/bin/dscl . -read /Users/root UserShell)" | |
if [[ "$shell" == *"false"* ]]; then | |
echo "<result>Yes</result>" | |
else | |
echo "<result>No</result>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment