Bird
0
0

What happens when the passwd command is run by a user to change their own password?

medium📝 Command Output Q5 of 15
Linux CLI - Users and Groups
What happens when the passwd command is run by a user to change their own password?
AThe password changes immediately without prompt
BThe system logs out the user automatically
CThe user is prompted to enter the current password first
DThe user must provide the root password
Step-by-Step Solution
Solution:
  1. Step 1: Understand the password change process for normal users

    Users must enter their current password before setting a new one for security.
  2. Step 2: Eliminate incorrect options

    Password does not change immediately, no automatic logout, and root password is not required.
  3. Final Answer:

    The user is prompted to enter the current password first -> Option C
  4. Quick Check:

    Self password change = prompt current password [OK]
Quick Trick: Users must confirm current password before changing [OK]
Common Mistakes:
  • Thinking password changes instantly
  • Believing root password is needed
  • Assuming logout happens automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes