Skip to main content

Working with User and Group IDs

Hands-On Lab

 

Photo of Michael Christian

Michael Christian

Course Development Director in Content

Length

00:45:00

Difficulty

Beginner

In this hands-on lab, we will practice working with user and group IDs. Understanding how user IDs function gives you the knowledge needed to prevent ID collisions with external authentication sources.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Working with User and Group IDs

Introduction

In this hands-on lab, we will practice working with user and group IDs. Understanding how user IDs function gives you the knowledge needed to prevent ID collisions with external authentication sources.

Connecting to the Lab

  1. Open your terminal application, and run the following command (remember to replace PUBLIC_IP with the public IP you were provided on the lab instructions page):
    ssh cloud_user@PUBLIC_IP
  2. Enter yes at the prompt.
  3. Enter your cloud_user password at the prompt.

Determine the UID Scheme

  1. Run the following command:
    cat /etc/passwd
  2. Locate the lines pertaining to system users (root, chrony, etc.), and note the lowest and highest UID values.
  3. Locate the lines pertaining to standard users (cloud_user, jbillings, etc.), and note the lowest and highest UID values.
  4. Determine the absolute highest UID value.
  5. Choose a higher value for where UIDs on a remote host should begin.

Determine the GID Scheme

  1. Run the following command:
    cat /etc/group
  2. Locate the highest GID value.
  3. Choose a higher value for where GIDs on a remote host should begin.

Conclusion

Congratulations, you've successfully completed this hands-on lab!