Lpic 1 Linux Administrator · Free Practice Question Medium

Question 24

What effect does the command chage -M 10 tom have on the user account 'tom'?
  • A Sets the minimum number of days before the password can be changed to 10 days.
  • B Sets the maximum number of days the password is valid before it must be changed to 10 days.
  • C Sets the number of days after the password expires before the account is locked to 10 days.
  • D Sets the password last changed date to 10 days ago.
Reveal correct answer

Correct answer: B

A. The command chage -M 10 tom does not set the minimum number of days before the password can be changed. Instead, it sets the maximum number of days the password is valid before it must be changed to 10 days for the user account 'tom'.

B. This choice is correct because the -M option in the chage command is used to set the maximum number of days the password is valid before it must be changed. In this case, setting it to 10 days means that the password for the user account 'tom' must be changed every 10 days.

C. Setting the number of days after the password expires before the account is locked is not the effect of the chage -M 10 tom command. This command specifically deals with setting the maximum number of days the password is valid before it must be changed.

D. The chage -M 10 tom command does not set the password last changed date to 10 days ago. It specifically sets the maximum number of days the password is valid before it must be changed for the user account 'tom'.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need