Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screensaver askForPassword and askForPasswordDelay not available since 10.13 #922

Open
Olivier61 opened this issue May 24, 2020 · 4 comments

Comments

@Olivier61
Copy link

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

@Olivier61
Copy link
Author

Sorry, I was looking at open issues, didn’t see previous posts.
Closing this one.

@blaues0cke
Copy link

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

@Olivier61
Copy link
Author

@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 !

@Olivier61 Olivier61 reopened this May 26, 2020
@tresni
Copy link

tresni commented Nov 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants