I am trying to modify default Sierra password policies through
pwpolicy, trying for example, to lower the depth of password history from 24 to 1 by hitting as sudoer:
sudo pwpolicy setaccountpolicies "policyAttributePasswordHistoryDepth=1"
But it is not working. The error message is:
Error: Policy file not found
The policyIdentifier I try to change that gets listed (with many more) when hitting
pwpolicy getaccountpolicies reads like this:
<key>policyIdentifier</key> <string>ProfilePayload:[HASHED_VALUE]:pinHistory</string> <key>policyParameters</key> <dict> <key>policyAttributePasswordHistoryDepth</key> <integer>24</integer> </dict>
How is the proper way of doing it?