Skip to content

Instantly share code, notes, and snippets.

@shreewatsa
Created July 13, 2023 08:08
Show Gist options
  • Save shreewatsa/f162c76a49945913dc4f46ee3d332a45 to your computer and use it in GitHub Desktop.
Save shreewatsa/f162c76a49945913dc4f46ee3d332a45 to your computer and use it in GitHub Desktop.
Change password policy in linux

Change this file : /etc/pam.d/common-password

password    [success=1 default=ignore]  pam_unix.so minlen=1 sha512
password    requisite           pam_deny.so
password    required            pam_permit.so
password    optional    pam_gnome_keyring.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment