lchage
Display or change user password policy. More information: https://manned.org/lchage.
- Disable password expiration for the user:
sudo lchage --date -1
- Display the password policy for the user:
sudo lchage --list
- Require password change for the user a certain number of days after the last password change:
sudo lchage --maxdays
- Start warning the user a certain number of days before the password expires:
sudo lchage --warndays
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
