Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

Require password x minutes after sleep or screen saver

I know there is a managed preference to require password immediately after sleep or screen saver begins but I'd like to require password 2 minutes after sleep or screen saver begins. Any idea how to do this?

Jamie Bell
Apple Technology Administrator
The Westminster Schools
Ph: 404-609-6345

Like Comment
Order by:
SOLVED Posted: by catfeetstop

Thanks William! Unfortunately we're using Snow Leopard, any ideas?

Jamie Bell
Apple Technology Administrator
The Westminster Schools
Ph: 404-609-6345

Like
SOLVED Posted: by Account Deleted

This is quick and easy using fseventer \- in snow leopard as well. Launch fseventer, start recording, then see what preference changes when you change a setting.

I show this changing when I change the pref.
\~/Library/Preferences/com.apple.screensaver.plist

In there, I see
askForPassword number 1
and askForPasswordDelay number 5 <--- that's the time in seconds.

Just manage this user preference and you are done.

\- Aaron

Like
SOLVED Posted: by rockpapergoat

it's the same key for 10.6 or 10.7.

Like
SOLVED Posted: by catfeetstop

To require password immediately set the "Require Password" key on the com.apple.screensaver MCX to "1". The only options on that key are on (1) or off (0), now if we can only figure out how to require after a few minutes instead of just immediately.

Jamie Bell
Apple Technology Administrator
The Westminster Schools
Ph: 404-609-6345

Like
SOLVED Posted: by talkingmoose

Seeing this on Lion:
On 8/26/11 7:55 AM, "Jamie Bell" <JamieBell at westminster.net> wrote:

Domain: com.apple.screensaver
Key: askForPasswordDelay
Type: real
Value: 60 <-- one minute

This is a user setting, by the way. You'll probably need to use User Level
Enforced and not System Level Enforced.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

Like
SOLVED Posted: by catfeetstop

You guys are #1. That what I needed, thanks for the help!

Jamie Bell
Apple Technology Administrator
The Westminster Schools
Ph: 404-609-6345

Like
SOLVED Posted: by quedayone

This is working on my 10.7 test systems. It is grayed out but users can still un check it. Anyone elce seeing it grayed out and un check-able?

external image link

Like
SOLVED Posted: by mm2270

quedayone, that's just a visual glitch in the OS. If you do Show All in System Preferences and go back in to Security, it should be checked again. In other words, if everything is set correctly, it may look like you can uncheck it, but it doesn't stick. IIRC, this visual glitch has been with us since around 10.4 or 10.5. At least its consistent :)

Like
SOLVED Posted: by acdesigntech

Any reason why you'd set the screen saver to active after 10 minutes (600 seconds) but in the GUI it shows 20 minutes? These are the keys I'm using:

Require Password Apply to: User Level Enforced Key name: askForPassword Type: integer 1

Set password delay Apply to: User Level At Every Login Key name: askForPasswordDelay Type: real 0.0

Screen Saver Idle Time Apply to: System Level Enforced Key name: idleTime Type: integer 600

Login Window Screen Saver Idle Time Apply to: System Level Enforced Key name: loginWindowIdleTime Type: integer 600

Like