Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

RedHat RH202 - RHCT (Redhat Certified Technician) RH202

Page: 5 / 5
Total 140 questions

Make user1, user2 and user3 belongs to training group.

Answer and Explanation:

    usermod -G training user1

    usermod -G training user2

    usermod -G training user3

    Verify from : cat /etc/group

There are two types of group, I) primary group II) Secondary or supplementary group.

    Primary Group: Primary group defines the files/directories and process owner group there can be only one primary group of one user.

    Secondary Group is used for permission. Where permission are defined for group members, user can access by belonging to that group.

Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.

Create the user named jackie, curtin, david

Answer and Explanation:

1.useradd jackie

2.useradd curtin

3. useradd david

useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.