Bird
0
0

You try to switch to user john using su john but get the error: Authentication failure. What is the most likely cause?

medium📝 Debug Q14 of 15
Linux CLI - Users and Groups
You try to switch to user john using su john but get the error: Authentication failure. What is the most likely cause?
AYou entered the wrong password for john
BUser john does not exist
CYou forgot to use sudo before su
DYou need to be root to use su
Step-by-Step Solution
Solution:
  1. Step 1: Understand the error message

    Authentication failure means the password entered was incorrect for the target user.
  2. Step 2: Analyze other options

    User existence error would say 'unknown user'. Using sudo is not required for su. You do not need to be root to switch users if you know the password.
  3. Final Answer:

    You entered the wrong password for john -> Option A
  4. Quick Check:

    Authentication failure = wrong password [OK]
Quick Trick: Authentication failure means wrong password [OK]
Common Mistakes:
  • Assuming user does not exist
  • Thinking sudo is required for su
  • Believing only root can switch users

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes