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

Set "Security & Privacy" (manual) preferences #10

Open
alebelcor opened this issue Aug 29, 2019 · 2 comments
Open

Set "Security & Privacy" (manual) preferences #10

alebelcor opened this issue Aug 29, 2019 · 2 comments
Assignees

Comments

@alebelcor
Copy link
Owner

I haven't found a way to automate this so instead I have to do this manually.

In Preferences > Security & Privacy > Privacy > Location services

* Deselect "Siri & Dictation"
* Click on "Details" next to "System Services"
* Deselect everything except "Find My Mac"

In Preferences > Security & Privacy > Privacy > Analytics

* Disable "Share Mac Analytics"
* Disable "Share with App Developers"
* Disable "Share iCloud Analytics"

In Preferences > Security & Privacy > General

* Select "Require password `immediately` after sleep or screen saver begins"

These settings don't seem to be modified even after I save the output of defaults read before and after changing it.

@alebelcor alebelcor self-assigned this Aug 29, 2019
@0xadada
Copy link

0xadada commented May 24, 2020

@alebelcor

In Preferences > Security & Privacy > General

  • Select "Require password immediately after sleep or screen saver begins"
# Require password immediately after sleep or screen saver begins
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0

@alebelcor
Copy link
Owner Author

Thanks for your comment.

I already have those settings but I've noticed that, if I change them to something else (via the Preferences UI) and then set them back like this:

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

And restart, the changes aren't reflected at Preferences > Security & Privacy > General

🤷‍♂️

I expect the defaults write commands to take precedence but maybe changing those settings via the UI is overriding that somewhere I'm not aware of.

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

No branches or pull requests

2 participants