Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Configuring User Accounts and Permissions on a Development Server

In this hands-on lab, you will connect to a Red Hat 8 system using SSH. Once connected, you will use the `useradd` command to add several users, set passwords using the `passwd` command, use the `groupadd` command to add a couple of groups, and use either the `usermod` or `gpasswd` commands to add users to groups. Once the groups are in place, you will grant elevated privileges to a set of users using the new groups and test the permissions by using the `su -` command to switch to a user and attempt to run the commands. *This course is not approved or sponsored by Red Hat.*

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 25, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Add 5 Users to the System
    • Add the following user accounts to the system. Set the comment option to the user's full name.
      • Peter Gibbons (pgibbons)
      • Michael Bolton (mbolton)
      • Samir Nagheenanajar (snagheenanajar)
      • Milton Waddams (mwaddams)
      • Tom Smykowski (tsmykowski)
    • Use the passwd command to set to the default password of initech123 for all users.
  2. Challenge

    Add 2 Groups to the System
    • Use the groupadd command to add the following groups.
      • devadmins
      • helpdesk
  3. Challenge

    Add Users to the New Groups
    • Use either the usermod or gpasswd command to add the following user accounts to the devadmins group.
      • Peter Gibbons
      • Michael Bolton
      • Samir Nagheenanajar
    • Use either the usermod or gpasswd command to add the following user accounts to the helpdesk group.
      • Milton Waddams
      • Tom Smykowski
  4. Challenge

    Grant Superuser Privileges Using the New Groups
    • Use the visudo command to create a new file in the /etc/sudoers.d directory and call the file 20-groups.
    • Add the following group configurations into the file
      • The devadmins group should be able to connect from any host, act as the root user and be able to run any command.
      • The helpdesk group should be able to connect from any host, act as the root user and only run the ls and cat commands.
  5. Challenge

    Validate Superuser Access for Two of the Accounts, One from Each Group
    • Use the su - command to switch to one of the users from the devadmins group and attempt to run the following commands with elevated (sudo) privileges.
      • List the contents of the root user's home directory
      • Use the cat command to view the /etc/sudoers file
      • Use the less command to view the /etc/sudoers file.
      • Exit the previous user and return to your account
    • Use the su - command to switch to one of the users from the helpdesk group and attempt to run the following commands with elevated (sudo) privileges.
      • List the contents of the root user's home directory
      • Use the cat command to view the /etc/sudoers file
      • Use the less command to view the /etc/sudoers file.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight