Knowee
Questions
Features
Study Tools

A new employee has joined the Research department. In this task, you must add them to the system. The username assigned to them is researcher9.Write a command to add a user called researcher9 to the system.Next, you need to add the new user to the research_team group.Use the usermod command and -g option to add researcher9 to the research_team group as their primary group.

Question

A new employee has joined the Research department. In this task, you must add them to the system. The username assigned to them is researcher9.Write a command to add a user called researcher9 to the system.Next, you need to add the new user to the research_team group.Use the usermod command and -g option to add researcher9 to the research_team group as their primary group.

🧐 Not the exact question you are looking for?Go ask a question

Solution

To add a new user to the system, you can use the useradd command in Linux. Here's how you can do it:

Step 1: Open your terminal.

Step 2: Type the following command to add a new user called researcher9:

sudo useradd researcher9

Step 3: You will be asked for your password. Enter it to proceed.

Now, to add this user to the research_team group, you can use the usermod command with the -g option. Here's how:

Step 4: In your terminal, type the following command:

sudo usermod -g research_team researcher9

This command will add the user researcher9 to the research_team group as their primary group.

Remember, you need to have sudo privileges to run these commands. If you don't, you will need to ask your system administrator to do it.

This problem has been solved

Similar Questions

Task 3. Add the user to a secondary groupA couple of months later, this employee's role at the organization has changed, and they are working in both the Research and the Sales departments.In this task, you must add researcher9 to a secondary group (sales_team). Their primary group is still research_team.Use the usermod command with the -a and -G options to add researcher9 to the sales_team group as a secondary group.Note: Options for Linux commands are case-sensitive, so make sure you use a lowercase -a and an uppercase -G.Click Check my progress to verify that you have completed this task correctly.

The new employee, researcher9, will take responsibility for project_r. In this task, you must make them the owner of the project_r.txt file.The project_r.txt file is located in the /home/researcher2/projects directory, and owned by the researcher2 user.Use the chown command to make researcher9 the owner of /home/researcher2/projects/project_r.txt.Click Check my progress to verify that you have completed this task correctly.

Task 4. Delete a userA year later, researcher9, decided to leave the company. In this task, you must remove them from the system.Run a command to delete researcher9 from the system:This command will output the following message:This is expected.Note: When you create a new user in Linux, a group with the same name as the user is automatically created and the user is the only member of that group. After removing users, it is good practice to clean up any such empty groups that may remain behind.Run the following command to delete the researcher9 group that is no longer required:Click Check my progress to verify that you have completed this task correctly.Delete a user

Which of the following options can be used with the usermod command to add a user to a supplementary group?Select one:a.-Ub.-ac.-Nd.-L

Which of the following options can be used with the usermod command to add a user to a supplementary group?Select one:a.-Ub.-Lc.-ad.-N

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.