nerdexam
CompTIA

XK0-004 · Question #115

A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the "dba" group and preserve existing group memberships?

The correct answer is A. usermod -a -G dba jsmith. usermod command options summary –gid GROUP Use this GROUP as the default group. –groups GRP1,GRP2 Add the user to GRP1,GRP2 secondary group.

Security

Question

A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the "dba" group and preserve existing group memberships?

Options

  • Ausermod -a -G dba jsmith
  • Busermod -g dba jsmith
  • Cuseradd -g dba jsmith
  • Dgroupmod dba -u jsmith

How the community answered

(55 responses)
  • A
    91% (50)
  • B
    2% (1)
  • C
    2% (1)
  • D
    5% (3)

Explanation

usermod command options summary –gid GROUP Use this GROUP as the default group. –groups GRP1,GRP2 Add the user to GRP1,GRP2 secondary group.

Topics

#usermod#group membership#user management#Linux permissions

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice