201k views
3 votes
A change in company policy requires users in the hr group to make changes to the files in the /hr directory. Complete this lab from the terminal.

In this lab, your task is to:

- Give the Write group permission to the files in the /hr directory in addition to any existing permissions.
- Use the ls command to verify the changes.

User TheHube
by
7.5k points

1 Answer

6 votes

Final answer:

The question involves using the chmod command to give write group permission to files in the /hr. directory and the ls -l command to verify these changes on a Linux or Unix-like system.

Step-by-step explanation:

The task describes a scenario that involves modifying file permissions on a Linux or Unix-like system. To give the write group permission to the files in the /hr. directory, you would use the following command in the terminal:

chmod g+w /hr/*

The chmod command changes the permissions of each file to allow (+w) the group (g) write access. After changing permissions, you can verify the changes with the ls -l /hr. command, which will list the files and their permissions. You should see the letter 'w' in the group permissions portion of the file listing for each file in the /hr. directory.

User Hackyday
by
8.1k points