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
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
0 comments:
Post a Comment