Bird
0
0

What is the expected result if a non-root user executes passwd root without elevated privileges?

medium📝 Command Output Q4 of 15
Linux CLI - Users and Groups
What is the expected result if a non-root user executes passwd root without elevated privileges?
APermission denied error preventing password change
BPassword for root is changed successfully
CThe system prompts for the root password
DThe command resets the user's own password instead
Step-by-Step Solution
Solution:
  1. Step 1: Understand permission requirements

    Only root or users with sudo privileges can change another user's password.
  2. Step 2: Analyze command behavior

    A normal user running passwd root without sudo will get a permission denied error.
  3. Final Answer:

    Permission denied error preventing password change -> Option A
  4. Quick Check:

    Non-root cannot change root password [OK]
Quick Trick: Only root can change other users' passwords [OK]
Common Mistakes:
  • Assuming normal users can change root password
  • Expecting a password prompt for root password
  • Thinking the command changes own password silently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes