Create the following users, groups, and group memberships:

Create the following users, groups, and group memberships:
A group named adminuser.
A user natasha who belongs to adminuser as a secondary group A user harry who also belongs to adminuser as a secondary group.
A user sarah who does not have access to an interactive shell on the system, and who is not a member of adminuser, natasha, harry, and sarah should all have the password of redhat.
A. See explanation below.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Create the following users, groups, and group memberships:

  1. groupadd adminuser
    useradd natasha
    usermod -Ga adminuser natasha
    useradd harry
    usermod -Ga adminuser harry
    useradd sarah
    usermod -s /sbin/nologin sarah
    passwd natasha
    passwd harry
    passwd sarah

  2. that will change natasha group and not add it as a secondary group
    rather use
    usermod -aG adminuser natasha

  3. groupadd adminuser
    useradd -G adminuser natasha
    passwd natasha
    rehat
    redhat
    useradd -G adminuser harry
    passwd harry
    redhat
    redhat
    useradd -s /sbin/nologin sarah

Leave a Reply

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


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