CompTIA Linux+ XK0-006 (V8) Practice Question

Your company is building an automated provisioning script for new Linux user accounts. The security team mandates that any future account carry a default password lifetime of 90 days and that users receive a warning 7 days before the password expires. Existing accounts will be handled separately. Which single configuration change will meet this requirement?

  • Append "PASS_MAX_DAYS=90; PASS_WARN_AGE=7" to each line in /etc/shadow.

  • Run chage -d 0 -M 90 -W 7 for each user account.

  • Edit /etc/login.defs and set PASS_MAX_DAYS to 90 and PASS_WARN_AGE to 7.

  • Add "password requisite pam_pwquality.so retry=3 minlen=12" to /etc/pam.d/system-auth.

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot