nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #114

LFCS Question #114: Real Exam Question with Answer & Explanation

The correct answer is E: usermod. The usermod command is used to modify a user's account attributes, including removing them from groups.

Submitted by hans_de· Apr 18, 2026User and Group Management

Question

Which of the following commands can remove a user from a group?

Options

  • Agrouprm
  • Bgroupmod
  • Cpasswd
  • Dusergroups
  • Eusermod

Explanation

The usermod command is used to modify a user's account attributes, including removing them from groups.

Common mistakes.

  • A. grouprm is not a standard Linux command; groupdel is used to delete a group, not remove a user from a group.
  • B. groupmod is used to modify a group's properties (like its name or GID), not to manage user memberships within it.
  • C. passwd is exclusively used for changing a user's password and has no functionality for managing group memberships.
  • D. usergroups is not a standard Linux command for user or group management.

Concept tested. User group management (usermod)

Reference. https://man7.org/linux/man-pages/man8/usermod.8.html

Topics

#user management#group management#usermod command#Linux commands

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions