オプション
- -l
- Show account aging information
- -E
- Set the date on which the user's account will no longer be accessible
パスワード管理コマンド比較
| コマンド | maxdate(パスワード有効期間) | inactive(アカウント無効期間) | expiredate(アカウント消失日) |
|---|---|---|---|
| chage | chage -M | chage -I | chage -E |
| passwd | passwd -x | passwd -i | --- |
| useradd | --- | useradd -f | useradd -e |
| usermod | --- | usermod -f | usermod -e |