Search

Top Posts

Comments

  • jeffcard: Nice guide, thanks for sharing, here is a step by step guide regarding how to convert DVD, video and audio,...
  • James: Well, it hasn’t crashed on me yet, and I’ve been using it for at least 2 months now…
  • Dasher: Any experience creating a RAM disk, specifically for helping iTunes run faster? I am on a 2006 Imac 21″...
  • sam: I have os 10.5.8 but i dont have this. Wtf?
  • MMES: If you customize the equalizer setting in iTunes, those settings will carryover to the iPhone and you can enjoy...

Categories

Recent Posts


Require a password on waking from sleep, but not when screensaver is active

Have you ever wanted to have your mac require a password on waking from system sleep, but not ask for a password when the screensaver is on? Well, me neither, but someone out there might and it’s kind of a nifty customization tip. I came across this nice trick on TUAW that I thought it was worth reposting here to our readers.

Launch the Terminal and type the following command:

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

reversing this should just be a matter of changing the 0 to a 1

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

Posted by: Bill Ellis

Share

Save big on Mac Deals from Amazon.com

Comments:

Comments: 8

Comment from Martin
Time: May 1, 2009, 2:06 pm

The string with 0 (zero) unchecks the option for asking a password completely (in my OSX v10.5.6). So after after ending the screensaver as well as awakening from system sleep, no password is asked.
What can be wrong? I assume that the option should stay active?
Thanks

Comment from lukasz
Time: May 6, 2009, 5:27 am

I have oposit situation.
I used string with 0 (zero) and I have password protection in both action (scr saver and after awakening from sleep mode. It happened after first sleep mode cycle.

Strange, verry strange.

If somebody knows how and why, it will be nice to read it.

Comment from Ced Paine
Time: June 13, 2009, 8:16 pm

This command toggles the “Require password to wake this computer from sleep or screensaver” preference and does not seem to result in a separate setting for just the screensaver. You can, however, use this command along with Bernhard Baehr’s sleepwatcher script to toggle this preference on when the computer sleeps and off again when it wakes. Just install sleepwatcher and place the appropriate commands in files named .sleep and .wakeup at the root level of your home directory.

Comment from Porno
Time: July 15, 2009, 4:58 pm

Password is the base of safety…

Comment from poro gratuit
Time: September 24, 2009, 10:32 am

you right like always.

Comment from Eric
Time: October 10, 2009, 3:04 am

This doesn’t seem to work with Snow Leopard anymore. Can someone confirm this or help me, please? ;)

Comment from em
Time: October 22, 2009, 10:21 am

The same problem, it doesn’t work anymore under Snow Leopard, as I remember in Tiger that could be easily set without tweeking in console

Comment from osta cialis
Time: November 23, 2009, 2:36 am

en the screensaver is on? Well, me neither, but someone out there might and it’s kind of a nifty customization tip. I came across this nice trick on TUAW that I thought it was worth reposting here to our readers.

Launch the Terminal and type the following command:

Write a comment






April 26th, 2009