Menu

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

About Author:


I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top