Security

Company policy requires user jsmith to change their password at least every 90 days and to be warned 7 days before it expires. Which command applies this policy to the account?

Show the answer

Correct answerC. chage -M 90 -W 7 jsmith

chage -M sets the maximum number of days a password is valid, and -W sets the warning period before expiry. The -m option is tempting but sets the minimum days between changes, which would stop jsmith from changing the password for 90 days.