mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
setting pwpolicy_file #273
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GregoryEAllen on GitHub.
Problem to solve
As far as I can tell, there's no programmatic way to set
pwpolicy_filein the generated compliance script.Perhaps it'd be useful to add an option:
This would be a fairly small patch.
Intended users
Anyone that wants to use a
pwpolicy_fileI apologize if I'm missing it somewhere in the docs.
@robertgendler commented on GitHub:
This is closed. The feature is not planned as the future with password policies is DDM and NIST 800-63 and the one executive order outlines not to have complex password policies.
@GregoryEAllen commented on GitHub:
@robertgendler said on #90
The PR's behavior is that the compliance script will look for the
pwpolicy_filerelative to its CWD when executing. Although this is expected behavior for relative paths, I agree it's undesirable -- it limits what can be the CWD when the compliance script is run.Instead, I can have it generate the compliance script to contain the contents of the
pwpolicy_file, and save those contents out to a temporary file before setting the policy. That way it doesn't depend on finding an external file.