Bookmark this page

Guided Exercise: Log in to a Local Linux System

Log in to a Linux system and review user settings.

Outcomes

  • Log in to a RHEL system by using the GNOME Desktop Manager (GDM).

  • Navigate the Cockpit console.

As the student user on the workstation machine, use the lab command to prepare your environment for this exercise, and to ensure that all required resources are available.

[student@workstation ~]$ lab start access-login

Instructions

  1. Log in as the operator1 user by using the GNOME Desktop Manager (GDM).

    1. From the system menu, click Power Off/Log Out > Log Out. Confirm the operation by clicking Log Out.

    2. On the login screen, select the operator1 user and use redhat as the password.

  2. Try to update the operator1 user password.

    1. From the System Menu, click Settings.

      Alternatively, click Activities in the upper left of the desktop, and then type and select Settings.

    2. In the left panel, click Users. This module is blocked to the operator1 user. You can try to unlock it by clicking Unlock.

      The system asks for the student user password because the operator1 user cannot unlock the Users control panel. Only administrative users have permission to alter the system.

    3. Click Cancel and close the Settings window.

  3. Log in as the root user by using the GDM.

    1. From the system menu, click Power Off/Log Out > Log Out. Confirm the operation by clicking Log Out.

    2. On the login screen, click Not listed. Use root as the username and redhat as the password.

      Immediately after logging in, GDM shows a banner with the following information.

      Logged in as a privileged user
      Running a session as a privileged user should be avoided for security reasons.
      If possible, you should log in as a regular user.
    3. Log out of the root desktop session.

  4. On the login screen, select the student user and use student as the password.

  5. Review the Cockpit console.

    1. Click Activities in the upper left of the desktop, and then type and select Firefox.

    2. Navigate to https://localhost:9090.

      The browser displays a certificate warning because Cockpit uses a self-signed certificate. Click Advanced, and then click Add Exception. Click Confirm Security Exception to accept the self-signed certificate. Click Advanced on the warning page, and then click Accept the Risk and Continue.

    3. Authenticate by using operator1 as the user and redhat as the password. Click Log in.

    4. Take some time to review the modules in the console.

  6. On the Cockpit console, update the operator1 user's password. Set rh104.course as the new password.

    1. In the left panel, click Accounts. The console shows the list of existing users. Click the operator1 user.

    2. Click Set password.

    3. Use redhat as the Old password. Use rh104.course as the New password. Confirm the new password. Click Set password.

  7. Test the new password for the operator1 user.

    1. Log out of the Cockpit console by clicking Session > Log out.

    2. Authenticate by using operator1 as the user and rh104.course as the password. Click Log in.

    3. Log out of the Cockpit console by clicking Session > Log out.

    4. Close the Firefox window.

Finish

On the workstation machine, use the lab command to complete this exercise. This step is important to ensure that resources from previous exercises do not impact upcoming exercises.

[student@workstation ~]$ lab finish access-login

Revision: rh104-9.1-3d1f2bc