Which of the following will add jsmith to the "dba" group and preserve existing group memberships?

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?
A. usermod -a -G dba jsmith
B. usermod -g dba jsmith
C. useradd -g dba jsmith
D. groupmod dba -u jsmith

comptia-exams

2 thoughts on “Which of the following will add jsmith to the "dba" group and preserve existing group memberships?

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

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.