Bird
0
0

You run gpasswd -d user2 admins but get an error saying user2 is not in group admins. What is the likely cause?

medium📝 Debug Q6 of 15
Linux CLI - Users and Groups
You run gpasswd -d user2 admins but get an error saying user2 is not in group admins. What is the likely cause?
Aadmins group does not exist
Buser2 is not a member of admins group
CYou need root privileges to run gpasswd
DThe gpasswd command syntax is incorrect
Step-by-Step Solution
Solution:
  1. Step 1: Understand gpasswd -d error meaning

    The error means user2 is not found in the specified group.
  2. Step 2: Check group membership

    If user2 is not in admins group, removal fails with that error.
  3. Final Answer:

    user2 is not a member of admins group -> Option B
  4. Quick Check:

    gpasswd -d error = user not in group [OK]
Quick Trick: User must be in group before removal with gpasswd -d [OK]
Common Mistakes:
MISTAKES
  • Assuming group doesn't exist without checking
  • Ignoring need for root privileges (usually required but error differs)
  • Mistaking syntax error for membership error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes