Yokohama - Linux Users Working Together


#bash
Type: Fix
Description: There are four Linux users working together in a project in this server: abe, betty, carlos, debora.

First, they have asked you as the sysadmin, to make it so each of these four users can read the project files of the other users in the /home/admin/shared directory, but none of them can modify a file that belongs to another user. Users should be able modify their own files.

Secondly, they have asked you to modify the file shared/ALL so that any of these four users can write more content to it, but previous (existing) content cannot be altered

Root (sudo) Access: True

Test: All users (abe, betty, carlos, debora) can write to their own files. None of them can write to another user's file.
All users can add more content (append)) to the shared/project_ALL file but none can change its current content.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute


Notes and solution:

  1. Change the permissions of ALL of the files in shared folder
  2. Create a new group
  3. Add users to newly created group
  4. Change group owner of ALL folder to newly created group
  5. Change permissions once again.