Search

Top Posts

Comments

  • TvvitterBug: Nice article! I think the Twitter client landscape has really changed in 2010. New approaches and design...
  • DistortedLoop: I’ve been putting electronics in ziplock bags for years as a quick and dirty water-RESISTANT...
  • inket: Underwater pictures ? ^^
  • echo_host: Im running 10.6 and noticed that nothing was working, in apps or in terminal. I found out you need to...
  • Felipe: Hi, i have the same problem that ronan. I have 21 cycles, 3 months ols and a 95% of capacity. I’ve done...

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