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
10 months agoNikita
10 months agoNoah
11 months agoShakira
11 months agoKatie
11 months agoRefugia
11 months agoDeangelo
11 months agoLarae
11 months agoTayna
11 months agoWilburn
11 months agoFallon
11 months agoFidelia
11 months ago