- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab Info
Table of Contents
-
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.
-
Edit the
sudoers
file:sudo -i visudo
-
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
-
Comment out the following lines (
Defaults targetpw
may not exist):#Defaults targetpw #ALL ALL=(ALL)ALL
-
Save the file and verify
testuser
is able to create a user:su testuser #password is P@ssw0rd sudo useradd someuser
-
See if
someuser
appears in/etc/passwd
:grep some /etc/passwd
-
-
Challenge
Grant `admin_user` the Same Permissions as the `root` User
-
As the
cloud_user
, editsudoers
:visudo
-
Copy the
root
entry to the next line and substituteadmin_user
forroot
in the user position:root ALL=(ALL)ALL admin_user ALL=(ALL)All
-
Save and exit, and then become the
admin_user
:su admin_user
-
Run
visudo
to see if you are allowed:sudo visudo
-
Exit the file.
-
About the author
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.