Skip to content

Instantly share code, notes, and snippets.

@Fastidious
Last active October 4, 2017 11:36
Show Gist options
  • Save Fastidious/4374cfc8e7a57baa84110165a7c9cf62 to your computer and use it in GitHub Desktop.
Save Fastidious/4374cfc8e7a57baa84110165a7c9cf62 to your computer and use it in GitHub Desktop.
Clearing Password History

Clearing Password History

Occasionally one has to violate best practices to clear password history.

AIX, and Linux:

chuser histsize=0 username

Sometimes on AIX you have to make sure these lines exist too. edit this file so that root has a minage and histexpire:

vi /etc/security/user
minage=0
histexpire=0

Solaris:

chmod 600 /etc/security/passhistory
vi /etc/security/passhistory (delete the line for your user here)
chmod 400 /etc/security/passhistory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment