EX200 · Question #4
EX200 Question #4: Real Exam Question with Answer & Explanation
This task requires creating a new group sysmgrs, then creating users natasha and harry as secondary members of sysmgrs, and user sarah with no interactive shell access, all with the password "flectrag".
Question
04. Create User Accounts Create the following user accounts, ensuring the checkboxes are enabled: - Group named sysmgrs - User natasha, belonging to the sysmgrs group as a secondary group - User harry, belonging to the sysmgrs group as a secondary group - User sarah, with no access to interactive shell on the system and not a member of sysmgrs - Passwords for natasha, harry, and sarah should all be "flectrag". Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: [root@node1 ~]# groupadd sysmgrs [root@node1 ~]# useradd -G sysmgrs natasha [root@node1 ~]# useradd -G sysmgrs harry [root@node1 ~]# useradd -s /bin/false sarah [root@node1 ~]# echo tianyun |passwd --stdin natasha [root@node1 ~]# echo tianyun |passwd --stdin harry [root@node1 ~]# echo tianyun |passwd --stdin sarah
Explanation
This task requires creating a new group sysmgrs, then creating users natasha and harry as secondary members of sysmgrs, and user sarah with no interactive shell access, all with the password "flectrag".
Concept tested. User and group account management
Topics
Community Discussion
No community discussion yet for this question.