Toggle "ask for password after screensaver/sleep" or the delay in 10.7 using terminal
Posted
by
desbo
on Super User
See other posts from Super User
or by desbo
Published on 2011-07-21T19:56:46Z
Indexed on
2011/11/29
9:55 UTC
Read the original article
Hit count: 266
There's an option in the preference panel to change the time the mac is able to be in sleep/screensaver before requiring a password to be unlocked again.
I'm using OS X Lion 10.7.
Is there any way to change this setting using the terminal or an applescript? I tried to change the plist file using:
defaults write com.apple.screensaver askForPasswordDelay -int 60
also tried
defaults write com.apple.screensaver askForPasswordDelay -float 60
also completely disabling the password didnt work either
defaults write com.apple.screensaver askForPassword -int 0
The plist file was changed, but it had no effects at all. It's the same plist file that gets changed when manually switching the setting in the preferences.
Would be awesome if anyone got an idea how to fix my problem.
EDIT: also tried to: 1) add -currentHost flag 2) drop the -int / -float
© Super User or respective owner