Pages

Monday, July 24, 2017

Disable password expiration policy in Linux

Disable password expiration policy in Linux


If you dont want your users 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

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.