Last active
December 20, 2015 22:09
-
-
Save futureimperfect/6203175 to your computer and use it in GitHub Desktop.
Determine Guest Login Status from CLI on OS X. Will return 1 if enabled and 0 if not.
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
/usr/bin/defaults read /Library/Preferences/com.apple.loginwindow | awk '/GuestEnabled/ { print $3 }' | sed 's/;//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment