Jack is using a user account named jackrusl. You want to set password age limits for this user account. The minimum password age should be 5 days and the maximum password age should be 60 days. You also need to warn the user 2 days prior to password expiration. Which of the following command should you use?
  1. usermod -m 1 -M 45 -W 5 jackrusl
  2. chage -m 1 -M 45 -W 5 jackrusl
  3. useradd -m 1 -M 45 -W 5 jackrusl
  4. change -M 1 -m 45 -W 5 jackrusl
Explanation
Answer - B - You should use the chage -m 1 -M 45 -W 5 jackrusl command to set password age limits for this user account.

Key Takeaway: The chage command changes the number of days between password changes and the date of the last password change. The system uses this information to determine when a user must change the password. The chage command is restricted to the root user, except for the -l option. The -m option with this command specifies the value of minimum number of days between password changes. The -M option specifies the maximum number of days during which a password is valid.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz