In this hands-on lab, you are responsible for creating a directory to be used as a shared resource by the `devops` team. You will create a new local group, a local user account, and update the new group membership. Next, you will create a new directory and configure the permissions and ownership so it can only be accessed and used by the team. The last step will be to validate access to the directory using the account of a user on the `devops` team.
*This course is not approved or sponsored by Red Hat.*
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a Local Group and a User Account, Then Populate the Group
- Create a local group called
devopsadmin
. - Create a user account for
Peter Gibbons (pgibbons)
. - Set the password for
pgibbons
anddevops
(an existing account) todevops123
. - Add
pgibbons
anddevops
to thedevopsadmin
group.
- Create a local group called
- Create the Team Directory, Configure Ownership and Permissions and Restrict Access
- Create a directory called
devops
in the/data
directory. - Update the ownership to
nobody:devopsadmin
. - Update directory permissions to the following configuration:
- owner/group = read, write, execute
- other = none
- Enable SGID
- Enable the sticky bit
- Create a directory called
- Validate Access to the Directory
- As the
cloud_user
, attempt to change to the/data/devops
directory. - Switch to the
pgibbons
user account.- Attempt to change the devops directory.
- Attempt to create a file called
pgibbons-test
.
- Switch to the
devops
account.- Attempt to change to the devops directory.
- Attempt to edit the
pgibbons-test
file. - Attempt to rename the
pgibbons-test
file todevops-test
. - Attempt to delete the
pgibbons-test
file.
- As the