Page 1 of 1

how to turn OFF password expiration / aging in linux server

Posted: Fri Oct 07, 2016 6:32 pm
by stark
How to turn OFF password expiration / aging in linux servers and also how to to list current aging of account?Plz help

Re: how to turn OFF password expiration / aging in linux server

Posted: Fri Oct 14, 2016 5:49 am
by Martin
1. Serverwide password expiration settings can be changed in /etc/login.defs file

2. Do the below to disable password expiration/aging of an account :

Command : chage -I -1 -m 0 -M 99999 -E -1 username

3. Use the below command to list the password expiration of a user.

chage -l <username> OR chage –-list <username>

Example : chage -l sam

Last password change : Apr 24, 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 : 99999
Number of days of warning before password expires : 7


Martin
Support Staff
Nixtree Solutions
Managed Backups || Server Management
https://www.nixtree.com