chage -Iとpasswd -iの違い

chage -Iとpasswd -iの違い

仮パスワードの有効期限を読み書きする方法を研究中です。つまり、ユーザーに一時パスワードを付与したが、ユーザーが数日以内にログインせず、一時パスワードを変更しない場合、Nアカウントはロックされます。

文書passwd -i

-i, --inactive INACTIVE
    This option is used to disable an account after the password has been expired 
    for a number of days. After a user account has had an expired password for
    INACTIVE days, the user may no longer sign on to the account.

文書chage -I

-I, --inactive INACTIVE
    Set the number of days of inactivity after a password has expired before the
    account is locked. The INACTIVE option is the number of days of inactivity.
    A user whose account is locked must contact the system administrator before
    being able to use the system again.

    Passing the number -1 as the INACTIVE will remove an account's inactivity.

どちらも同じことをしているようですが、お互いを参照するわけではありません。chage後ろから呼び出されるのですか、それとも実際に別のものですか?passwd

ベストアンサー1

おすすめ記事