Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam EX200 Topic 1 Question 125 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 125
Topic #: 1
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.

Suggested Answer:

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

by ubiquituz at Nov 26, 2024, 12:09 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
whitebeard pirate
2024-12-23 13:50:59
Use useradd -G when creating a new user and specifying their group memberships.
Use usermod -aG to add an existing user to additional groups without removing them from any groups they are already part of.
upvoted 1 times
...
ubiquituz
2024-11-26 12:09:32
1
Create the adminuser group:
groupadd adminuser
2
Create the user natasha and add to adminuser:
useradd -G adminuser Natasha
echo "redhat" | passwd --stdin Natasha
3
Create the user harry and add to adminuser:
useradd -G adminuser harry
echo "redhat" | passwd --stdin harry
4
Create the user sarah without interactive shell access:
useradd -s /sbin/nologin sarah
echo "redhat" | passwd --stdin sarah
upvoted 1 times
...
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.