How to set the password age for a user in Linux?
chage -M number_of_days username
# chage -M 30 test
In the above example, we see that the password for the user "test'' will expire after 30 days.
Billing Shared CP Support Center |
Billing Reseller CP Support Center |
Billing Shared and Reseller CP Support Center |
Plesk Linux, Windows, Domains |
Virtuozzo VPS Support Center |
Hyper-V VPS Support Center |
Hyper-V VPS Support Center |
![]() |
Customers |
![]() |
Resellers |
chage -M number_of_days username
# chage -M 30 test
In the above example, we see that the password for the user "test'' will expire after 30 days.
As per my knowledge it must be chage instead of change.