Create a script who doesn't need answer to fix non compliant settings #190

Closed
opened 2026-01-19 18:29:35 +00:00 by michael · 3 comments
Owner

Originally created by @louisdchrf on GitHub.

Problem to solve

The compliance script need a human to launch the fix of non compliant settings

Intended users

Mac admins using MacDeployServer to deploy Macs. Script can be run during the deployment but automatically. If a script need a answer, deployment is crashing

Further details

In case where people doesn't use MDM or can sign a configuration profile

Proposal

Add a argument for launching the script, like
sudo ./build/800-53r5_low/800-53r5_low_compliance.sh -apply-compliant

Documentation

Testing

What does success look like, and how can we measure that?

Originally created by @louisdchrf on GitHub. ### Problem to solve The compliance script need a human to launch the fix of non compliant settings ### Intended users Mac admins using MacDeployServer to deploy Macs. Script can be run during the deployment but automatically. If a script need a answer, deployment is crashing ### Further details In case where people doesn't use MDM or can sign a configuration profile ### Proposal Add a argument for launching the script, like _sudo ./build/800-53r5_low/800-53r5_low_compliance.sh -apply-compliant_ ### Documentation ### Testing ### What does success look like, and how can we measure that? ### Links / references
Author
Owner

@robertgendler commented on GitHub:

sudo ./build/800-53r5_low/800-53r5_low_compliance.sh --fix is what you're looking for.

@robertgendler commented on GitHub: `sudo ./build/800-53r5_low/800-53r5_low_compliance.sh --fix` is what you're looking for.
Author
Owner

@louisdchrf commented on GitHub:

Nice argument, I didn't see this on the wiki

@louisdchrf commented on GitHub: Nice argument, I didn't see this on the wiki
Author
Owner

@golbiga commented on GitHub:

Actually you might want to use the --cfc flag. This will do a check, fix, check.

@golbiga commented on GitHub: Actually you might want to use the `--cfc` flag. This will do a check, fix, check.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#190