Skip to content

Instantly share code, notes, and snippets.

@futureimperfect
Last active December 20, 2015 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save futureimperfect/6203175 to your computer and use it in GitHub Desktop.
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.
/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