Courseiva
Manage users and groupsmediumMultiple SelectObjective-mapped

EX200 Primary group Practice Question

Which TWO commands can change the primary group of an existing user?

⚠ Common exam trap

The trap is assuming that `usermod -aG` or `gpasswd -a` can change the primary group when they actually manage supplementary group membership only.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

usermod -aG

None of the listed commands change the primary group of an existing user. The correct commands are `usermod -g` to change the primary group directly, or `groupmod -g` after ensuring the user is the only member of the group.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • usermod -aG

    Why this is correct

    `usermod -aG` adds the user to a supplementary group, not the primary group.

  • gpasswd -a

    Why this is correct

    `gpasswd -a` adds the user to a supplementary group, not the primary group.

  • vigr

    Why it's wrong here

    `vigr` edits /etc/group but does not change a user's primary group membership.

  • groupmems -a

    Why it's wrong here

    `groupmems -a` adds the user to a supplementary group, not the primary group.

  • useradd -G

    Why it's wrong here

    `useradd -G` sets supplementary groups for a new user and does not affect an existing user's primary group.

About these practice questions

Courseiva writes every EX200 question from scratch — 127 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This EX200 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX200 exam.