Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

likvandrer

macrumors newbie
Original poster
Dec 8, 2017
7
0
Hi fellas,

Been trying to find a solution for deployment of our macs. Been searching the web to find out how to force password on log in and the delaytimer set to immediately.

Every search i did, i did find the same answer over and over again to write:

defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0

Dont know if late updates did do something with this command, but it doesnt work when im typing it in the terminal on High Sierra V.10.13.1 & 10.13.2

Would appreciate any help i can get to get this working. Thanks!
 
Did you log out and log back in for changes to take effect? Did you receive an error in Terminal? Please provide more info so others can help you. Stating it doesn't work isn't enough.
 
Oh my bad, should've written more about how it went ofcourse.
When i write it down in terminal its all fine, and when i type defaults read com.apple.screensaver it gives me back the values as i typed them in.

When try to check if there is any difference in the settings, nothing changed. Still stands Require password 5 minutes after sleep or screen saver begins.

Also tried to restart
 
Ok, thats atleast good to know, but unfortunate we only running High Sierra OS X.
 
Did check the property list on another mac, it didn't have the same keys. Did try to run the command on this device, still have the same issue where delay doesnt switch to immediately. Also did try a log out and log in.
 
Did check the property list on another mac, it didn't have the same keys. Did try to run the command on this device, still have the same issue where delay doesnt switch to immediately. Also did try a log out and log in.
You should be using configuration profiles, not forcing a script to run over and over again.
 
  • Like
Reactions: DJLC
Ok good to know. Altho i havent made any conf profiles yet, i cant seem to find a decent guide how to do this. Just tried out apple configurator 2 with no success. Sorry if this is a stupid question, but haven't played much around with OSx yet.
 
please change the askForPassword int 1
to askForPassword -bool true

And remove -int for the delay
just
askForPasswordDelay 0

:) should be fine like that
(I use this myself)
 
  • Like
Reactions: msephton
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.