Score:4

How to clear password history in Linux?

md flag
Asc

How do I clean the history of previous used passwords? The history which is used by passwd or whatever else?

I see:

t-account@dbg-host: ~ $ passwd
Changing password for t-account.
Current password: 
New password: 
Retype new password: 
Password has been already used. Choose another.

I want to clear the list concerning "Password has been already used". How do I do this?

Thank you!

P.S. There is already the same question marked as resolved. How to force password set when a password is not compliant with OS restrictions? My question is NOT how to set/reset/repair and so on.

in flag
Old passwords are generally stored (in a hashed format) in the `/etc/security/opasswd` file. If you would like to clear them, simply blank the file.
cn flag
See also pam_pwhistory on how this is setup,
Score:1
pm flag

Clean user from :

/etc/security/opasswd

or clean all file:

/etc/security/opasswd 

or

> /etc/security/opasswd
David avatar
cn flag
Details are needed. How and why would I do what you are saying here?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.