How to enable “Allow Guests to log in to this computer” option on Mac OS X 10.8 (Mountain Lion) via command line?
The option "Allow guests to log in to this computer" is stored as "GuestEnabled" key in
You can change it by using
defaults command with root permission, tested on MountainLion 10.8.4
sudo defaults read /Library/Preferences/com.apple.loginwindow GuestEnabled #1 -> Enabled, 0 -> Disabled
sudo defaults write /Library/Preferences/com.apple.loginwindow GuestEnabled -bool YES|NO