Finding User Account Information from the Command Line

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will practice working with users and groups in Linux. Knowing how to determine user attributes and group membership is fundamental to managing Linux systems.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Determine What Groups sysuser Belongs To
  1. Run one of the following commands:
    id sysuser
    groups sysuser
    cat /etc/group | grep sysuser
Determine sysuser’s Home Directory
  1. Run one of the following commands:
    getent passwd sysuser
    cat /etc/passwd | grep sysuser
Determine sysuser’s Login Shell
  1. Run one of the following commands:
    getent passwd sysuser
    cat /etc/passwd | grep sysuser

Additional Resources

Your supervisor has asked you to perform an audit of the user sysusr on the provided Linux host. You will need to answer the following questions:

  • What groups does sysuser belong to?
  • What is sysuser’s home directory?
  • What is sysuser’s login shell?

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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