How to enable “Allow Guests to log in to this computer” option on Mac OS X 10.8 (Mountain Lion) via command line?

2

1 Answer

The option "Allow guests to log in to this computer" is stored as "GuestEnabled" key in /Library/Preferences/com.apple.loginwindow.plist

You can change it by using defaults command with root permission, tested on MountainLion 10.8.4

Read

sudo defaults read /Library/Preferences/com.apple.loginwindow GuestEnabled #1 -> Enabled, 0 -> Disabled 

Write

sudo defaults write /Library/Preferences/com.apple.loginwindow GuestEnabled -bool YES|NO 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy