how to turn OFF password expiration / aging in linux server

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..

Moderator: Staff

Post Reply
stark
Posts: 0
Joined: Fri Sep 16, 2016 10:00 am

how to turn OFF password expiration / aging in linux server

Post by stark »

How to turn OFF password expiration / aging in linux servers and also how to to list current aging of account?Plz help


Martin
Posts: 36
Joined: Fri Sep 16, 2016 10:34 am

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

Post 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


If you are looking for assistance in server management, please get in touch with our support.
Post Reply