cal, chage: add Chinese translation (#6529)

This commit is contained in:
anderly011
2021-09-15 09:14:54 -03:00
committed by GitHub
parent 60e1eda7e2
commit 6e19670c2f
2 changed files with 48 additions and 0 deletions

24
pages.zh/linux/chage.md Normal file
View File

@@ -0,0 +1,24 @@
# chage
> 更改用户账户和密码到期信息。
> 更多信息:<https://manned.org/chage>.
- 列出用户的密码信息:
`chage -l {{用户名}}`
- 启用密码在 10 天内过期:
`sudo chage -M {{10}} {{用户名}}`
- 关闭密码过期:
`sudo chage -M -1 {{用户名}}`
- 设置账户到期日期:
`sudo chage -E {{YYYY-MM-DD}}`
- 强制用户在下次登录时更改密码:
`sudo chage -d {{0}}`