A system administrator is tasked with updating the password policy for a user named jdoe to enhance security. The new policy requires that the user's password expires every 90 days. Additionally, if the user fails to change their password, the account should be locked 14 days after the password has expired. Which of the following commands will correctly apply these settings?
The correct command is chage -M 90 -I 14 jdoe. The chage command modifies user password expiry information. The -M (or --maxdays) option sets the maximum number of days a password is valid to 90. The -I (or --inactive) option sets the number of days of inactivity after a password has expired before the account is locked to 14.
chage -M 14 -I 90 jdoe is incorrect because it reverses the required values for the maximum password age and the inactive period.
chage -W 90 -E 14 jdoe is incorrect because -W sets the warning period and -E sets an absolute account expiration date (in days since epoch or YYYY-MM-DD format), not the password's maximum age and inactive period.
usermod -e 90 -f 14 jdoe is incorrect because the usermod command's -e flag sets the account expiration date and requires a YYYY-MM-DD format, not a number of days representing a duration. While -f does set the inactive period, usermod cannot set the maximum password age.
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 in Linux?
Open an interactive chat with Bash
How does the `-M` and `-I` option differ in the `chage` command?
Open an interactive chat with Bash
What is the difference between `chage` and `usermod` when it comes to user account settings?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
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 .