ALL HOW TOs




Short Passwords

Reference: https://apple.stackexchange.com/questions/337468/how-to-set-a-short-user-password-in-macos-mojave-and-later-10-14

Basic steps:

  1. pwpolicy getaccountpolicies > ~/Desktop/file.plist
  2. vi ~/Desktop/file.plist
  3. Delete the first line, which says Getting global account policies to make the file valid XML.
  4. Change the quoted part to your Regex.  I change the 4 to 3 to allow 3 char passwords.

    policyAttributePassword matches '^$|.{4,}+'
  5. pwpolicy setaccountpolicies ~/Desktop/file.plist

  6. passwd




  • No labels