After setting password expiration via:
sudo chage -d 0 username
Then changing the password and login as that user.
When I type "passwd" and try to set the original password I receive message;
"Password Policy - BAD PASSWORD: The password is just rotated old one"
I've had a look in the following file but can't see a policy line item that could cause this behaviour;
sudo nano /etc/pam.d/common-password
# here are the per-package modules (the "Primary" block) password requisite pam_pwquality.so retry=3 password [success=2 default=ignore] pam_unix.so obscure use_authtok try_first_pass yesc> password sufficient pam_sss.so use_authtok # here's the fallback if no module succeeds password requisite pam_deny.so # prime the stack with a positive return value if there isn't one already; # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around password required pam_permit.so # and here are more per-package modules (the "Additional" block) password optional pam_gnome_keyring.so password optional pam_ecryptfs.so # end of pam-auth-update config
What is causing the "BAD PASSWORD: The password is just rotated old one" error message?