nerdexam
CompTIA

XK0-004 · Question #504

A junior Linux administrator receives a request to add a user, Ann, to the secondary group cashiers. Ann is also a member of the secondary group, managers. The administrator issues the following comma

The correct answer is A. usermod -G cashiers,managers Ann. usermod -G [full list of supplementary groups, unless you APPEND w/ -a] Ann

System Management

Question

A junior Linux administrator receives a request to add a user, Ann, to the secondary group cashiers. Ann is also a member of the secondary group, managers. The administrator issues the following command:

usermod -G cashiers Ann Later, Ann reports that she is unable to access any of the files or directories in managers. Which of the following commands should the administrator issue to resolve Ann's group memberships?

Options

  • Ausermod -G cashiers,managers Ann
  • Busermod -g cashiers,managers Ann
  • Cgroupmod -G Ann cashiers,managers
  • Dgroupmod -ga Ann cashiers,managers

How the community answered

(36 responses)
  • A
    72% (26)
  • B
    6% (2)
  • C
    17% (6)
  • D
    6% (2)

Explanation

usermod -G [full list of supplementary groups, unless you APPEND w/ -a] Ann

Topics

#usermod#secondary groups#group membership#user management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice