How to Clear the Password History in Linux

Posted on Posted in General IT Info

In Red Hat Enterprise Linux 7 (RHEL 7) the password history is stored in the file /etc/security/opasswd. You can only edit this file while logged in as the root user. You can either selectively delete old passwords from the file or you can clear everything out of the file with the command:

echo “” > /etc/security/opasswd

Leave a Reply

Your email address will not be published. Required fields are marked *