Bird
0
0

You run this command to check password expiry info:

medium📝 Debug Q14 of 15
Linux CLI - Users and Groups
You run this command to check password expiry info:
sudo chage -l username

But it shows an error: chage: user 'username' does not exist. What is the most likely cause?
AThe username is missing in /etc/passwd
BThe /etc/shadow file is empty
CThe chage command is not installed
DThe user has no password set
Step-by-Step Solution
Solution:
  1. Step 1: Understand chage user check

    The chage command checks user password expiry info by looking up the username in /etc/passwd.
  2. Step 2: Analyze error cause

    Error 'user does not exist' means the username is not found in /etc/passwd. If the user was missing there, chage cannot proceed.
  3. Final Answer:

    The username is missing in /etc/passwd -> Option A
  4. Quick Check:

    User must exist in /etc/passwd for chage to work [OK]
Quick Trick: Check /etc/passwd for username before using chage [OK]
Common Mistakes:
  • Assuming /etc/shadow emptiness causes this error
  • Thinking chage command missing causes user error
  • Believing no password set triggers 'user does not exist'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes