Working with User and Group IDs

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Determine the UID Scheme
  1. Run the following command:
    cat /etc/passwd
  2. Determine the UID range for system users (root, chrony, etc.).
  3. Determine the UID range for standard users (cloud_user, jbillings, etc.).
  4. Determine the absolute highest UID value for the current users.
  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. Determine the highest GID value.
  3. Choose a higher value for where GIDs on a remote host should begin.

Additional Resources

Your organization is considering using a single authentication source for Linux logins and needs to determine the existing UID scheme to prevent login ID collisions.

You need to answer the following questions:

  • What is the UID scheme for system and standard users?
  • Where would you start UIDs on the remote host to prevent collisions with existing UIDs?
  • What is the GID scheme for groups?
  • Where would you start GIDs on the remote host to prevent collisions with existing UIDs?

As a lab supplement, see: https://learning.lpi.org/en/learning-materials/010-160/5/5.2/5.2_01/ https://linux.die.net/man/1/chown https://linux.die.net/man/1/chgrp

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?