Bird
0
0

You want to force a user to change their password at next login. Which command helps achieve this?

hard📝 Application Q9 of 15
Linux CLI - Users and Groups
You want to force a user to change their password at next login. Which command helps achieve this?
Apasswd -u username
Bpasswd -e username
Cpasswd -d username
Dpasswd -l username
Step-by-Step Solution
Solution:
  1. Step 1: Understand passwd flags for password expiration

    The -e flag expires the password immediately, forcing change at next login.
  2. Step 2: Differentiate other flags

    -l locks the account, -d deletes the password, and -u unlocks the account.
  3. Final Answer:

    passwd -e username -> Option B
  4. Quick Check:

    Force password change = passwd -e [OK]
Quick Trick: Use passwd -e to expire password and force change [OK]
Common Mistakes:
  • Using -l to force password change
  • Deleting password instead of expiring
  • Unlocking account instead of expiring password

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes