mirror of https://github.com/CrimsonTome/tldr.git
lchage: add page (#10754)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>pull/23/head
parent
21bbd4978b
commit
99047ec3b4
|
@ -0,0 +1,20 @@
|
||||||
|
# lchage
|
||||||
|
|
||||||
|
> Display or change user password policy.
|
||||||
|
> More information: <https://manned.org/lchage>.
|
||||||
|
|
||||||
|
- Disable password expiration for the user:
|
||||||
|
|
||||||
|
`sudo lchage --date -1 {{username}}`
|
||||||
|
|
||||||
|
- Display the password policy for the user:
|
||||||
|
|
||||||
|
`sudo lchage --list {{username}}`
|
||||||
|
|
||||||
|
- Require password change for the user a certain number of days after the last password change:
|
||||||
|
|
||||||
|
`sudo lchage --maxdays {{number_of_days}} {{username}}`
|
||||||
|
|
||||||
|
- Start warning the user a certain number of days before the password expires:
|
||||||
|
|
||||||
|
`sudo lchage --warndays {{number_of_days}} {{username}}`
|
Loading…
Reference in New Issue