Question: On the serverb machine, reset the password to redhat for the root user. Locate the icon for the serverb machine console as appropriate for your

On the serverb machine, reset the password to redhat for the root user.
Locate the icon for the serverb machine console as appropriate for your classroom environment, and then open the console.
Send Ctrl+Alt+Del to your system by using the relevant button or menu entry.
When the boot-loader menu appears, press any key to interrupt the countdown, except the Enter key.
Use the cursor keys to highlight the rescue kernel boot-loader entry (the one with the rescue word in its name).
Press e to edit the current entry.
Use the cursor keys to navigate the line that starts with the linux text.
Press Ctrl+e to move the cursor to the end of the line.
Append the rd.break text to the end of the line.
NOTE
If it is difficult for you to see the text in the console, consider changing the resolution when editing the kernel line in the boot loader entry.
To change the console resolution, add either video=640x480 or vga=ask on the line that starts with the linux word, after rd.break. For most consoles, a resolution of 640x480 is enough. By using vga=ask, you can choose a more suitable resolution for your environment.
Press Ctrl+x to boot by using the modified configuration.
Press Enter to enter the maintenance mode.
At the sh-5.1 prompt, remount the /sysroot file system as writable, and then use the chroot command for the /sysroot directory.
sh-5.1# mount -o remount,rw /sysroot
...output omitted...
sh-5.1# chroot /sysroot
Set redhat as the password for the root user.
sh-5.1# passwd root
Changing password for user root.
New password: redhat
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: redhat
passwd: all authentication tokens updated successfully.
Configure the system to perform a full SELinux relabeling after booting.
sh-5.1# touch /.autorelabel
Exit the chroot environment and the sh-5.1 prompt. After the file system is relabeled, the system prompts to enter maintenance mode. However, if you wait, then it completes the reboot and shows the boot-loader menu.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!