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.
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
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.
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.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
whitebeard pirate
2024-12-23 13:50:59Use usermod -aG to add an existing user to additional groups without removing them from any groups they are already part of.
ubiquituz
2024-11-26 12:09:32Create 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
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.
Report Comment
Commenting
You can sign-up / login (it's free).