查看linux⽤户密码过期时间并提醒1.查看linux⽤户密码过期时间命令
[root@Centos6 /]# chage -l euser
Last password change : Aug 28, 2015 【最近⼀次修改密码的时间】
Password expires : Nov 26, 2015 【密码过期时间】
Password inactive : never 【密码失效时间】
Account expires : Jan 31, 1970 【账户过期时间】
Minimum number of days between password change : 0 【两次改变密码之间相距最⼩天数】
Maximum number of days between password change : 90 【两次密码改变密码相距最⼤天数】
220v电机1个电容接线Number of days of warning before password expires : 15 【密码过期前开始警告的天数】
2.查看所有⽤户的过期时间
css outlinecat /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
linux修改口令的命令Last password change : May 21, 2019nurture
handle with care标志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
ps怎么切图选择半张图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
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论