mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-04 14:14:10 +02:00
chage: add page
This commit is contained in:
parent
01c43a8888
commit
7e8fc327e5
1 changed files with 24 additions and 0 deletions
24
pages/linux/chage.md
Normal file
24
pages/linux/chage.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# chage
|
||||
|
||||
> Change user account and password expiry information.
|
||||
|
||||
- List password information for the user:
|
||||
|
||||
`chage -l {{user_name}}`
|
||||
|
||||
- Enable password expiration:
|
||||
|
||||
`sudo chage -M {{days_before_password_change}} {{user_name}}`
|
||||
|
||||
- Disable password expiration:
|
||||
|
||||
`sudo chage -M 99999 {{user_name}}`
|
||||
|
||||
- Set account expiration date:
|
||||
|
||||
`sudo chage -E {{YYYY-MM-DD}}`
|
||||
|
||||
- Force user to chage password on next log in:
|
||||
|
||||
`sudo chage -d 0`
|
||||
|
Loading…
Add table
Reference in a new issue