how to turn OFF password expiration / aging in linux server
Moderator: Staff
how to turn OFF password expiration / aging in linux server
How to turn OFF password expiration / aging in linux servers and also how to to list current aging of account?Plz help
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: how to turn OFF password expiration / aging in linux server
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
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