Knowee
Questions
Features
Study Tools

Your organization uses a Linux-based network. The legal department has a user group called legal, and this group has access to all the directories that legal employees need. A new legal employee, John J. Smith, just started, and his username is jjsmith. Which command can you use to grant John access to the same directories as all other legal employees?

Question

Your organization uses a Linux-based network. The legal department has a user group called legal, and this group has access to all the directories that legal employees need. A new legal employee, John J. Smith, just started, and his username is jjsmith. Which command can you use to grant John access to the same directories as all other legal employees?

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

Solution

To grant John J. Smith the same access as all other legal employees, you would add him to the 'legal' group. In a Linux-based network, you can do this using the 'usermod' command followed by the '-aG' option (which stands for 'append' and 'Group'), the group name, and the username. Here is the command:

sudo usermod -aG legal jjsmith

This command does the following:

  • 'sudo' gives you superuser privileges, allowing you to modify user groups.
  • 'usermod' is the command to modify user information.
  • '-aG' is an option that tells 'usermod' to append the user to the supplemental group(s). 'a' stands for 'append' and 'G' stands for 'Group'.
  • 'legal' is the group that you want to add the user to.
  • 'jjsmith' is the username of the new employee.

After running this command, John J. Smith will have the same access to directories as all other members of the 'legal' group.

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.

How do you provide access to a new employee?

Which administration tool would you use to enable a user to access the system on behalf of another?

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.

In a project directory, different team members need varying levels of access to files. Which access control method allows for more granular control than the standard Unix permissions?a.UGOb.ACLc.SELinuxd.All of the above

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.