LPIC-3 Exam 303 (Security) — Question 14

Which of the following commands disables the automatic password expiry for the user usera?

Answer options

Correct answer: C

Explanation

The correct command is 'chage --maxdays -1 usera', which sets the maximum password age to -1, effectively disabling password expiration. Option A incorrectly sets maxdays to 'none', which is not a valid argument. Options B, D, and E do not disable password expiration as they set a maximum days limit or specify a last day, which still enforces expiration.