Thursday, May 27, 2010

Turn on Mac screen saver password from command line (not for Snow Leopard)

Turn on the screen saver password:

defaults -currentHost write com.apple.screensaver askForPassword -int 1

Turn off Screen saver password:

defaults -currentHost write com.apple.screensaver askForPassword -int 0

Again, this doesn't work for Snow Leopard.

No comments: