オプション
- -l
- Lock the password of the named account
- -u
- Unlock the password of the named account
- -e
- Immediately expire an account's password. This in effect can force a user to change password
パスワード管理コマンド比較
コマンド | maxdate(パスワード有効期間) | inactive(アカウント無効期間) | expiredate(アカウント消失日) |
---|---|---|---|
passwd | passwd -x | passwd -i | --- |
chage | chage -M | chage -I | chage -E |
useradd | --- | useradd -f | useradd -e |
usermod | --- | usermod -f | usermod -e |