Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to view and configure password aging on Linux

Shulou Source: shulou.com Published: 2022-06-01 10:22:18 11月06日 Update

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

Tags: Password limitation command account configuration maximum number of days field date output representative information content more status user knowledge practical obvious minimum Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS Redmi Huawei Shulou Tech Info