How to view and configure password aging on Linux
This article introduces the knowledge of "how to view and configure password expiration on Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
To view and change password aging, you need to be familiar with several important commands: the chage command and its-l option, and the passwd command and its-S option. This article describes these commands, as well as other chage command options to configure password aging.
View password aging settings
The way to determine whether password aging has been set for a particular account is to use the following chage command. Please note that root permissions are required for any account except your own. Please note the password expiration date below.
$sudo chage-l doryLast password change: Mar 15, 2020Password expires: Jun 13, 2020