Featured resource
Forrester Wave Report 2025
Pluralsight named a Leader in the Forrester Wave™

Our tech skill development platform earned the highest scores possible across 11 criteria.

Learn more
  • Labs icon Lab
  • 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
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Jul 23, 2020

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.

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.

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.