63.7k views
0 votes
You are the IT security administrator for a small corporate network. Due to some recent restructuring, Corey Flynn (flynn) no longer needs to be a member of the hr group but needs to maintain his other group memberships. In this lab, your task is as follows:

• Remove cflynn from the hr group.
• Preserve cflynn's other group memberships.
• Verify the changes using the groups command or by viewing the /etc/group file.
You are logged in as root (password: 1worm4b8).

1 Answer

4 votes

Step-by-step explanation:

The said action sof removing cflynn from HR group and keeping in other can be done by following;

First open the command prompt, type user group name of cflynn. Upon pressing enter a list of all group in which cflynn belongs would be displayed.

We see that Cflynn belong sto mgmt1 group

Now to change its status in this group; Type usermod -G mgmt1,it cflynn and press Enter to take out cflynn from this group

To keep him in other groups, type the usermod -G command enlisting all groups to which cflynn must belong.

User Ferruh
by
4.9k points