RedHat EX200 Exam - Topic 1 Question 49 Discussion
Part 1 (on Node1 Server)Task 3 [Managing Local Users and Groups]Create the following users, groups and group memberships:A group named sharegrpA user harry who belongs to sharegrp as a secondary groupA user natasha who also belongs to sharegrp as a secondary groupA user copper who does not have access to an interactive shell on the system and who is not a member of sharegrp.harry, natasha and copper should have the password redhat
A) Explanation:
* [root@node1 ~]# groupadd sharegrp
[root@node1 ~]# useradd harry
[root@node1 ~]# useradd natasha
[root@node1 ~]# usermod -aG sharegrp harry
[root@node1 ~]# usermod -aG sharegrp natasha
[root@node1 ~]# useradd -s /sbin/nologin copper
[root@node1 ~]# echo 'redhat' | passwd --stdin harry
[root@node1 ~]# echo 'redhat' | passwd --stdin natasha
[root@node1 ~]# echo 'redhat' | passwd --stdin copper
### For Checking ###
[root@node1 ~]# su - copper
This account is currently not available.
[root@node1 ~]# su - natasha
[root@node1 ~]# id
[root@node1 ~]# su - harry
[root@node1 ~]# id
Shawna
8 months agoNikita
8 months agoNoah
9 months agoShakira
9 months agoKatie
9 months agoRefugia
9 months agoDeangelo
9 months agoLarae
9 months agoTayna
9 months agoWilburn
9 months agoFallon
9 months agoFidelia
9 months ago