Bird
0
0

You attempt to switch to user guest using su guest but receive "Authentication failure". What is the most probable reason?

medium📝 Debug Q6 of 15
Linux CLI - Users and Groups
You attempt to switch to user guest using su guest but receive "Authentication failure". What is the most probable reason?
AThe <code>guest</code> user account is locked or has no password set
BYou forgot to use the <code>-</code> option for a login shell
CThe <code>guest</code> user does not exist in /etc/passwd
DYou need to run <code>su</code> as root to switch users
Step-by-Step Solution
Solution:
  1. Step 1: Understand authentication failure causes

    An authentication failure usually means the password entered is incorrect or the account is locked.
  2. Step 2: Analyze options

    guest user likely exists but may be locked or have no password set, causing failure.
    You forgot to use the - option for a login shell is unrelated to authentication failure.
    The guest user does not exist in /etc/passwd would cause "user does not exist" error, not authentication failure.
    You need to run su as root to switch users is incorrect; any user can run su but must know the target user's password.
  3. Final Answer:

    The guest user account is locked or has no password set -> Option A
  4. Quick Check:

    Authentication failure often means locked or no password [OK]
Quick Trick: Authentication failure usually means wrong or no password [OK]
Common Mistakes:
MISTAKES
  • Assuming missing '-' causes authentication failure
  • Confusing 'user does not exist' with authentication failure
  • Thinking root privileges are required to use su

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes