Managing Users and Groups in SUSE Linux Enterprise with YaST

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will be using the YaST tool to create and remove user accounts in SUSE Linux Enterprise. We will be customizing user settings as well as removing accounts.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the `admin_user` with the Password Indicated and Then Verify the Account Was Created Correctly
  1. Create a user account named admin_user with the password P@ssw0rd. This user will need to have a home directory located at /home/admins:

    sudo -i yast
  2. Down arrow to Security and Users and hit Enter.

  3. Down arrow to User and Group Administration.

  4. Tab to Add then enter the user account name and password.

  5. Use Shift+Tab to go to User Data and then right arrow to Details.

  6. Tab down to set the home directory.

  7. Tab to OK, and then again to OK, and then to Quit.

  8. Confirm the home directory admins was created and is owned by admin_user:

    ls -l /home 
  9. Check to ensure the user account was created and has a login shell:

    grep admin /etc/passwd
Remove the `not_root` User and Their Home Directory
  1. Open YaST:

    sudo -i yast
  2. Down arrow to Security and Users, and hit Enter.

  3. Down arrow to User and Group Management.

  4. Down arrow to the user not_root, and then tab to Delete.

  5. Hit Enter and when prompted hit SPACE to put an X in the Delete Home Directory box.

  6. Tab to Yes, and hit Enter.

  7. Tab to OK, and then tab to Quit.

  8. Verify the user was removed and the user’s home directory was also removed:

    grep not /etc/passwd
    
    ls -l /home

Additional Resources

In your enterprise organization, there have been some changes to the security policy that you have been asked to implement. You will need to create a user account named admin_user with the password P@ssw0rd, and this user will need to have a home directory located at /home/admins. You will also need to remove the user account named not_root, and ensure this user's home directory is also removed. To do this, you have decided to use YaST.

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!