...
FAQs
Table of Contents
...
Short Passwords
Basic steps:
pwpolicy getaccountpolicies > ~/Desktop/file.plist
vi ~/Desktop/file.plist
- Delete the first line, which says
Getting global account policies
to make the file valid XML. Change the quoted part to your Regex. I change the 4 to 3 to allow 3 char passwords.
Code Block language none policyAttributePassword matches '^$|.{4,}+'
pwpolicy setaccountpolicies ~/Desktop/file.plist
passwd