cancel
Showing results for 
Search instead for 
Did you mean: 
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 249 Views

RH124 v10 Chapter 11- error in guided lab instructions section 4

The RH124 v10 11.4 guided lab has this, which has an error:

Create the /home/consultants directory on the servera machine, and change the owning group to the consultants group.

  1. From the workstation machine, log in to the servera machine as the student user and switch to the root user. Use redhat as the password.

student@workstation:~$ ssh student@servera
...output omitted...
[student@servera ~]$ sudo -i
[sudo] password for student: student
[root@servera ~]#

----------

Specifically, the error is this sentence: Use redhat as the password.

The password is not redhat. The password is student, as shown in the example output.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Labels (3)
1 Reply
anup2
Cadet
Cadet
  • 149 Views

You are absolutely correct that the instructions contradict the command shown!!

The text instructs the user to enter redhat the root password, but the command used is sudo -i. Because sudo elevates the current user's privileges based on the /etc/sudoers file, it requires the current user's password (student), not the root password.

The instructions seem to be conflating two different methods of becoming root:

  • sudo -i (Log in as root via sudo)

    • Password required: The current user's password (student), and it verifies that the current user has permission to run commands with root privileges.

  • su - (Switch User)

    • Password required: The target user's password (redhat), and it launches a new login shell directly as the root user.

Since the lab uses sudo -i, the password prompt is expected from the student.

- Educator and Academy_Admin, Red Hat Academy, Samriddhi College, Nepal.

0 Kudos
Join the discussion
You must log in to join this conversation.