[root@Centos6 /]# chage -l euser
Last password change : Aug 28, 2015 【最近⼀次修改密码的时间】
Password expires : Nov 26, 2015 【密码过期时间】
Password inactive : never 【密码失效时间】
Account expires : Jan 31, 1970 【账户过期时间】
Maximum number of days between password change : 90 【两次密码改变密码相距最⼤天数】
Number of days of warning before password expires : 15 【密码过期前开始警告的天数】
2.查看所有⽤户的过期时间
cat /etc/passwd |awk -F ":"'{print $1}' |while read line;do chage -l $line ;done
Last password change : Dec 09, 2019
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
Last password change : May 21, 2019
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
Last password change : May 21, 2019
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
3.提醒如发短信
curl -X POST -d "{something}" smsGateway
curl: (7) Failed to connect to smsGateway port 80: Connection refused
发布评论