I want to set the system-wide password policy on an Ubuntu 12.04 LTS server. Googling around, a lot of people point to this (very old) document:
https://help.ubuntu.com/10.04/serverguide/user-management.html
It says to edit the /etc/pam.d/common-password file and look for the password required line:
password required pam_unix.so nullok obscure min=6 max=8 md5
To set the minimum password length, adjust the min= setting.
However, on 12.04, my file looks like this (comments removed):
password [success=1 default=ignore] pam_unix.so obscure sha512
password requisite pam_deny.so
password required pam_permit.so
Which line do I change? The one with pam_unix.so? Or the one with password required? Or is it now in some other file? There's nothing in that file's comments about setting the password policies.