To set never expire attribute on account password. Some applications/users are required to have same password for longer duration. This requires them to exit from system wide password expiry policy. So that those accounts can run lifetime without need of changing their passwords.
Image source : freeimages |
How to do it :
Check account's current policy.
# chage -l testuser
Last password change : Sep 01, 2016
Password expires : Oct 04, 2016
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 33
Number of days of warning before password expires : 7
Here second line shows when password is expiring post which user will be prompted to set new password. Set password to never expire with below command
# chage -M -1 testuser
Verify changes
# chage -l testuser
Last password change : Sep 01, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 33
Number of days of warning before password expires : 7
No comments
Post a Comment
Any thoughts?