nerdexam
CompTIACompTIA

XK0-005 · Question #345

XK0-005 Question #345: Real Exam Question with Answer & Explanation

The correct answer is B: ssermod -g apche buddy. This question tests the command used to add an existing user to a supplementary group on a Linux system.

System Management

Question

An administrator is adding an existing user named "buddy'' to the Apache group. Which of the following should the administrator perform to accomplish this task?

Options

  • Asseradd -g apache buddy
  • Bssermod -g apche buddy
  • Csudo useradd -g apache buddy
  • Dsudo usermod -g apachebuddy

Explanation

This question tests the command used to add an existing user to a supplementary group on a Linux system.

Common mistakes.

  • A. useradd is used to create a new user account, not to modify an existing one.
  • C. useradd is used to create a new user account, not to modify an existing one.
  • D. The command sudo usermod -g apachebuddy is missing the username as an argument and would attempt to set 'apachebuddy' as a primary group for an unspecified user.

Concept tested. Linux user and group modification

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

Topics

#User Management#Group Management#Linux Commands#usermod

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions