cal, chage: add Chinese translation (#6529)
This commit is contained in:
24
pages.zh/linux/chage.md
Normal file
24
pages.zh/linux/chage.md
Normal 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}}`
|
Reference in New Issue
Block a user