linux chage命令简介:
chage命令用于密码实效管理,该是用来修改帐号和密码的有效期限。它可以修改账号和密码的有效期。对于chage命令的描述如下所示:
The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password
命令语法:
chage [options] user
命令参数:
|
参数 |
描叙 |
|
-d |
指定密码最后修改日期 |
|
-E |
密码到期的日期,过了这天,此账号将不可用。0表示马上过期,-1表示永不过期。 |
|
-h |
显示帮助信息并退出 |
|
-I |
密码过期后,锁定账号的天数 |
|
-l |
列出用户以及密码的有效期 |
|
-m |
密码可以更改的最小天数。为零代表任何时候都可以更改密码。 |
|
-M |
密码保持有效的最大天数。 |
|
-W |
密码过期前,提前收到警告信息的天数。 |








