I would like to enforce the "require password immediately after sleep or screen saver begins" option via terminal on macOS Mojave.

However, I am having trouble with finding the time setting with defaults. I have done some research but a lot of the commands are from older versions of macOS / OS X.

Does anyone know the defaults command for this?

  • Firstly, welcome to Ask Different! :) I hope you come to find this site has a lot to offer! In case you haven't already, it's worth taking the time to read the tour. All the best! – Monomeeth Apr 3 at 9:27
  • What command are you using that doesn't work the way you want to? – IconDaemon Apr 3 at 17:25

You must log in to answer this question.

Browse other questions tagged .