Your organization requires the following for every standard user account:
The password must expire after 90 days.
The user must be warned 7 days before the password expires.
If the user still does not change the password, the account must be locked 30 days after the password has expired.
You have already created the account "bob" and need to apply these settings without changing any other aging parameters. Which command, run as root, meets the requirement?
The chage utility is designed to modify password-aging information stored in /etc/shadow.
-M sets the maximum number of days a password is valid before it expires.
-W sets the number of warning days before expiration.
-I sets the number of inactive days allowed after the password has expired before the account is locked.
Using -M 90, -W 7, and -I 30 therefore enforces a 90-day lifetime, issues warnings starting 7 days beforehand, and locks the account 30 days after the expiry date. None of the other options accomplish all three requirements: some use the wrong option letter (-m instead of -M, -w/-i which have different meanings), and one swaps the warning and inactivity values.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the chage command?
Open an interactive chat with Bash
What is the difference between `-M`, `-W`, and `-I` in the chage command?
Open an interactive chat with Bash
Where does the chage command store its changes, and why is it important?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .