Linux 更改用户有效信息

发布时间:10, 7, 2016 分类:随手笔记,Linux

mail:~# chage -l username
Last password change : Oct 07, 2016
Password expires : never
Password inactive : never
Account expires : Dec 07, 2016
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1

使用下面指令
chage -I -1 -m -1 -M -1 -E -1 username

结果将会是
mail:~# chage -l username
Last password change : Jan 19, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1

标签: Linux

添加新评论 »