An organization's security policy requires the following for all regular user accounts:
Password lifetime: 90 days
User warned 7 days before the password expires
Account disabled 30 days after the password has expired if the user still has not changed it
You need to apply these settings to the existing user alice on a RHEL-compatible system in a single command. Which command meets all of the requirements?
The command that satisfies every requirement is the one that sets:
-M 90 - a maximum password age of 90 days.
-W 7 - a seven-day warning period before the password reaches its maximum age.
-I 30 - a 30-day inactivity window after expiry before the account is locked.
Combining these switches as chage -M 90 -W 7 -I 30 alice configures the desired policy for the user.
The other choices either use the wrong options or specify values that do not match the policy:
Using -E 120 sets an absolute account expiration date instead of an inactivity period.
Setting -M 120 or swapping the warning and inactivity values leaves the password valid for too long or warns at the wrong time.
Reordering the switches but assigning incorrect day values still fails to meet at least one of the stated requirements.
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 does the `-M` option in the `chage` command do?
Open an interactive chat with Bash
What is the difference between `-I` and `-E` in the `chage` command?
Open an interactive chat with Bash
How can you verify the account settings configured with the `chage` command?
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...
IT & Cybersecurity Package Join Premium for Full Access