exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 98 discussion

Actual exam question from RedHat's EX200
Question #: 98
Topic #: 1
[All EX200 Questions]

SIMULATION -
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.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
groupadd sysmgrs
useradd -G sysmgrs Natasha
We can verify the newly created user by cat /etc/passwd)
# useradd -G sysmgrs harry
# useradd -s /sbin/nologin sarrh
# passwd Natasha
# passwd harry
# passwd sarrah

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
STFN2019
Highly Voted 1 year, 3 months ago
Full solution: # groupadd adminuser # useradd -aG adminuser natasha # useradd -aG adminuser harry # useradd -s /sbin/nologin sarah # echo 'redhat' | passwd --stdin natasha # echo 'redhat' | passwd --stdin harry # echo 'redhat' | passwd --stdin sarah
upvoted 7 times
kitkat
6 months, 1 week ago
what is the a in -aG for? Help page for useradd has no mention of -a option.
upvoted 3 times
...
[Removed]
8 months ago
This is correct. On the useradd -s, "-s" is for "shell."
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago