Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX200 Exam - Topic 10 Question 123 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 123
Topic #: 10
[All EX200 Questions]

Create User Account.

Create the following user, group and group membership:

Adminuser group

User natasha, using adminuser as a sub group

User Harry, also using adminuser as a sub group

User sarah, can not access the SHELL which is interactive in the system, and is not a member of adminuser, natashaharrysarah password is redhat.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Roxane
1 hour ago
Wait, why can't Sarah access the shell? Seems odd.
upvoted 0 times
...
Frederica
5 days ago
Agreed, it's "haryy" instead of "harry".
upvoted 0 times
...
Luann
10 days ago
Looks good, but typo in Harry's username.
upvoted 0 times
...
Herman
16 days ago
I thought you could use /sbin/nologin for any user, not just for restrictions.
upvoted 0 times
...
Chandra
21 days ago
Just a quick note, make sure to use the correct command syntax!
upvoted 0 times
...
Natalya
26 days ago
Wait, why can't Sarah access the shell? Seems odd.
upvoted 0 times
...
Pansy
1 month ago
Totally agree, that needs fixing!
upvoted 0 times
...
Barrett
1 month ago
Looks good, but typo in Harry's username.
upvoted 0 times
...
Virgina
1 month ago
I remember there was a command to set the password, but I can't recall if we should use `passwd` or `echo` for that.
upvoted 0 times
...
Helene
2 months ago
I might have mixed up the useradd commands; I hope I didn't write "haryy" instead of "harry" in my answer.
upvoted 0 times
...
Mayra
2 months ago
I practiced a similar question where we had to restrict shell access for a user, so I think using `-s /sbin/nologin` for Sarah is correct.
upvoted 0 times
...
Levi
2 months ago
I think I remember that we need to create the group first with `groupadd`, but I'm not entirely sure about the syntax for adding users to that group.
upvoted 0 times
...

Save Cancel