Originally Posted by savona
Did you create the opaswd file and set the necessary permissions/ownership?
chown root:root /etc/security/opasswd
chmod 600 /etc/security/opasswd
Then I would consider trying changing the following line:
password sufficient /lib64/security/pam_unix.so nullok use_authtok md5 shadow use_first_pass
password sufficient /lib64/security/pam_unix.so nullok remember=5 use_authtok md5 shadow use_first_pass
After adding your changes, i corrected more thing, that is the way of testing this is entirely wrong. i was simply chaging the password, Instead i made the password expire and then re-login and give the same password and yippee... it worked .
I can see the error message
I can see opasswd file updated too
But a small clarification , once i change the password to new one which is not in the remember list(opasswd) and again issue "passwd admin" --> one of the remembered passwords, it doesnt throw any error, it accepts... why so ???