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

Managing Privilege Elevation in SUSE Linux Enterprise

In this hands-on lab, we will be looking at how we can delegate privilege elevation and allow users to access sensitive areas of the system in a controlled manner.

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

Contact sales

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

    Configure `sudo` to Create an `ADMINUSER` `User_Alias` Containing `testuser` and an `ADMINTASKS` `Cmnd_Alias` for the Required Commands. Verify `testuser` Can Complete the Commands.
    1. Edit the sudoers file:

      sudo -i visudo
      
    2. Edit the contents of the file so it contains these lines in the appropriate sections (Hint: Use / to find the areas, and there are three lines of content to be added.):

      User_Alias ADMINUSER = testuser
      Cmd_Alias ADMINTASKS = /usr/sbin/useradd, /bin/passwd, sudoedit /etc/hosts
      ADMINUSER ALL=ADMINTASKS
      
    3. Comment out the following lines (Defaults targetpw may not exist):

      #Defaults targetpw
      #ALL ALL=(ALL)ALL
      
    4. Save the file and verify testuser is able to create a user:

      su testuser   #password is P@ssw0rd
      sudo useradd someuser
      
    5. See if someuser appears in /etc/passwd:

      grep some /etc/passwd
      
  2. Challenge

    Grant `admin_user` the Same Permissions as the `root` User
    1. As the cloud_user, edit sudoers:

      visudo
      
    2. Copy the root entry to the next line and substitute admin_user for root in the user position:

      root ALL=(ALL)ALL
      admin_user ALL=(ALL)All
      
    3. Save and exit, and then become the admin_user:

      su admin_user 
      
    4. Run visudo to see if you are allowed:

      sudo visudo
      
    5. Exit the 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