「CentOS7.9」chageコマンドでパスワードの有効期限を確認する

環境
CentOS Linux release 7.9.2009 (Core)

書式
chage -l ユーザー名
chageコマンドを使用して、ユーザーのパスワードの状態を確認します。

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# chage -l nginx
Last password change : Jul 04, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
# chage -l nginx Last password change : Jul 04, 2017 Password expires : never Password inactive : never Account expires : never Minimum number of days between password change : -1 Maximum number of days between password change : -1 Number of days of warning before password expires : -1
# chage -l nginx
Last password change                                    : Jul 04, 2017
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : -1
Maximum number of days between password change          : -1
Number of days of warning before password expires       : -1

 

CentOS 7

Posted by arkgame