Bird
0
0

You run su - john but get the error "su: user john does not exist". What should you check first?

medium📝 Debug Q7 of 15
Linux CLI - Users and Groups
You run su - john but get the error "su: user john does not exist". What should you check first?
ACheck if the username is spelled correctly
BCheck if you have root privileges
CCheck if your password is correct
DCheck if the shell is installed
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error message

    The error says user does not exist, so the first step is to verify the username spelling.
  2. Step 2: Consider other causes

    Root privileges or password issues cause different errors; shell installation is unrelated.
  3. Final Answer:

    Check if the username is spelled correctly -> Option A
  4. Quick Check:

    User not found = check username spelling [OK]
Quick Trick: User not found? Verify spelling first [OK]
Common Mistakes:
MISTAKES
  • Assuming privilege or password issues
  • Checking shell installation unnecessarily
  • Ignoring typo possibilities

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes