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.
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.
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.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.