Bird
0
0

A system admin runs passwd -l alice but finds 'alice' can still log in. What is the likely cause?

medium📝 Debug Q6 of 15
Linux CLI - Users and Groups
A system admin runs passwd -l alice but finds 'alice' can still log in. What is the likely cause?
AThe account is locked but 'alice' has SSH keys allowing login
BThe command syntax is incorrect
CThe user 'alice' does not exist
DThe system needs a reboot to apply changes
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'passwd -l' effect

    This locks password login but does not disable SSH key authentication.
  2. Step 2: Identify SSH key login possibility

    If 'alice' has SSH keys set up, she can still log in without a password.
  3. Final Answer:

    The account is locked but 'alice' has SSH keys allowing login -> Option A
  4. Quick Check:

    Password lock vs SSH keys = B [OK]
Quick Trick: Locking password doesn't block SSH key login [OK]
Common Mistakes:
  • Assuming command syntax error
  • Thinking user doesn't exist
  • Believing reboot is needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes