Monday, August 22, 2016

Disable password expiration policy in Linux

If you don't want your user's password expired after an amount of time, you can run this command:

# chage -I -1 -m 0 -M 99999 -E -1 username

It will set:

  • Minimum Password Age to 0
  • Maximum Password Age to 99999
  • Password Inactive to -1
  • Account Expiration Date to -1