A security policy requires two settings for a temporary account named audit23: the account must be set to expire on December 31, 2025, and separately, if the user's password expires, there must be a 10-day grace period before the account is locked. Which single usermod command applies both of these settings?
The usermod command can modify multiple account properties at once. The -e (or --expiredate) option sets the date on which an account will be disabled, using the YYYY-MM-DD format. The -f (or --inactive) option defines the number of days of inactivity allowed after a user's password has expired; after this grace period, the account is locked. Combining these options as -e 2025-12-31 -f 10 correctly configures both independent settings for the account. Reversing the numeric arguments ties the wrong value to each option and would likely fail. The uppercase -E/-F flags are not valid for usermod, and the long options --expire-date and --inactive-days are misspelled.
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 -e option do in the usermod command?
Open an interactive chat with Bash
What is the purpose of the -f option in the usermod command?
Open an interactive chat with Bash
Why are uppercase -E and -F options and long-form --expire-date and --inactive-days invalid in this context?
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...
IT & Cybersecurity Package Join Premium for Full Access