According the following requirements to create user, user group and the group members:
- A group named admin.
- A user named mary, and belong to admin as the secondary group.
- A user named alice, and belong to admin as the secondary group.
- A user named bobby, bobby's login shell should be non-interactive. Bobby not belong to admin as the secondary group.
Mary, Alice, bobby users must be set "password" as the user's password.
Suggested Answer: A
Get Premium EX200 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
19 comments · newest first
EL
Elsa
13 days ago
Same here, just need to practice a bit more.
EL
Elfrieda
18 days ago
Overall, I feel prepared for this question.
BE
Becky
23 days ago
I might mix up the user groups if I'm not careful.
CH
Charlene
29 days ago
I just need to focus on the non-interactive shell detail.
MA
Man
1 month ago
The password setting part is easy.
LA
Lasandra
1 month ago
I feel confident about the useradd options.
BR
Broderick
1 month ago
The group creation is simple, but I hope I remember the syntax.
AH
Ahmed
2 months ago
I think the commands are clear.
BO
Bo
2 months ago
I agree, but the non-interactive shell for Bobby is tricky.
EL
Elsa
2 months ago
This question is straightforward.
CA
Carisa
2 months ago
This is exactly how I would do it!
DE
Dexter
2 months ago
Nice, but why a non-interactive shell for bobby?
DU
Dudley
3 months ago
Wait, is using "password" as a password really safe?
MA
Martha
3 months ago
Agree, everything seems correct here.
MI
Mirta
3 months ago
Looks good, but don't forget to set the password for bobby too!
AU
Audria
3 months ago
I just hope I remember the syntax for piping the password into the `passwd` command correctly; it can be tricky!
NO
Noel
3 months ago
I practiced a similar question where I had to set a non-interactive shell for a user, so I think using `/sbin/nologin` for Bobby is correct.
JU
Juan
3 months ago
I'm a bit unsure about the `-G` option for `useradd`. Does it really add users to a secondary group?
FR
Fredric
4 months ago
I think I remember that the `groupadd` command creates a new group, so that part seems straightforward.