Hack The Sec - Leading Resource Of Linux Tutorial
How to Check the User Validity

How to Check the User Validity

Check the User Validity


chage -l username

OutPut:

chage -l root

Last password change : Feb 12, 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

For change password aging to any user:

chage -M 60 username
chage -M 60 -m 7 -W 7 username

Parameters:

-M Set maximum number of days
-m Set minimum number of days
-W Set the number of days of warning


www.hackthesec.co.in
H

About the author

I am a Linux Administrator and Security Expert. Through this site I share Linux tutorials, hardening guides and security news.

Comments