Ubuntu password policy

view story

http://unix.stackexchange.com – 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/8.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 (HowTos)