Open Olivier61 opened 4 years ago
Sorry, I was looking at open issues, didn’t see previous posts. Closing this one.
Here is a small script to find differences in your defaults:
#!/usr/bin/env bash
defaults read > settings-before.txt
echo "Toggle your setting and press any key"
read
defaults read > settings-after.txt
code --diff settings-before.txt settings-after.txt
@blaues0cke Unfortunately, changing these settings doesn’t make any changes in defaults, at least under macOS 10.15.4. The script doesn’t return any difference. These were in defaults com.apple.screensaver up until 10.12, now they are gone.
Thanks anyway for helping !
Per kolide I took a look at sysadminctl
. Looks like on MacOS 12 at least you can do sysadminctl -screenLock immediate -password -
. You can use sysadminctl -screenLock [seconds] -password -
to set a delay. This does prompt for your password, using sudo
doesn't bypass that. In theory, you could prompt for the password at start and possibly pipe in or append via variable argument.
Same for #809
Hi,
Since 10.13, ‘defaults read com.apple.screensaver’ returns only 1 entry: ‘tokenRemovalAction’. ‘askForPassword' and ‘askForPasswordDelay’ vanished ...
I don’t know where these values are stored since 10.13, nor how to read them.
If you know, I’d be grateful !
Cheers