(同じ利用者による、間の2版が非表示) | |||
2行目: | 2行目: | ||
;-l | ;-l | ||
:Lock the password of the named account | :Lock the password of the named account | ||
;-u | |||
:Unlock the password of the named account | |||
;-e | ;-e | ||
:Immediately expire an account's password. This in effect can force a user to change password | :Immediately expire an account's password. This in effect can force a user to change password |
2019年3月1日 (金) 10:57時点における最新版
オプション
- -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 |