Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Managing Users, Groups, and Permissions

The ability to modify ownership and permissions is essential for both collaboration and security. In this lab, you will be tasked with creating new users and groups, modifying existing users and groups, updating ownership and permissions on files and directories, and removing unwanted users and groups.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 15m
Published
Clock icon Jun 17, 2022

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create and Modify Groups

    • Assume the root user (this account will be used to perform all subsequent tasks).
    • Create a group called qa with a group ID of 1301.
    • Update the name of the dev group to devops.
  2. Challenge

    Create and Modify Users

    • Create a user called sam — he should not have a home directory, and qa and devops should be added as supplementary groups.
    • Create a user called steve — the user ID of steve should be 1250, and his main group should be qa.
    • Modify the user john — change his main group to qa and make his home directory /home/associate.
    • Modify the user sally — her user ID should be 1255, and qashould be added as a supplementary group.
  3. Challenge

    Change the Ownership of Files and Directories

    • Change the owner and group of /usr/local/share/staging and all its contents to be sally and qa, respectively.
    • Change the group of /usr/local/share/production and all its contents to devops.
  4. Challenge

    Change the Permissions of Files and Directories

    • Using octal mode permissions, update /usr/local/share/staging to have read/write/execute for owner, read/write/execute for group, and read/execute for other.
    • Using symbolic mode permissions, update /usr/local/share/production to have read/write/execute for owner, read/write/execute for group, and 0 permissions for other.
    • Using octal permissions, update /usr/local/share/production/deploy.sh to have read/write/execute on user, read on group, and 0 permissions for other.
    • Using symbolic mode permissions, add write and execute permissions for the group on /usr/local/share/staging/report.sh.
  5. Challenge

    Remove Users and Groups

    • Remove the users benedict and arnold.
    • Remove the group test.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans