![]() ![]() This will stop the boot process after the RAM Disk operating system has loaded, the initrd line in the main GRUB menu Append rd.break Move to the line start begins with linux and then use CTRL+e to move to the end of the line and append *rd.break*. ![]() Linux ($root)/vmlinux-4.18.86_64 root=/dev/mapper/rhel-root ro crash kernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv/swap rhgb quiet You are presented with the following entry: GRUB Menu This is what we need to do, so press e when the menu entry is selected. ![]() There are prompts at the very bottom of the GRUB screen and we can use the _e_ key to edit the entry. NOTE: In the gold release of RHEL 8 the menu entry we wait on is: Having physical access to the server you could also boot to a USB key running some form of live Linux distribution but it is just as easy with GRUB and does not need external physical media.īoot the system and pause at the GRUB menu, just use the down arrow key and then back up to select the default entry. In the demonstration we will be working with a VirtualBox virtual machine. You will need to gain physical access the the server to be able to reset the users password, this may be possible with remote access cards if they are present in the server, but if the root password is unknown then I am also assuming there is no access to the DRAC or iDRAC cards in the server. Not only is recovery of the root password important for these scenarios in real life but it makes up part of the RHCSA objectives and being a practical exam you are going to want to be sure that you can reset the password without external media and you can protect the integrity of SELinux in doing so. Of course, if someone has a login with full sudo rights then it is a trivial matter to set the root password using sudo, but you are guessing, the same as me that none of these users have sudo privileges on the system. It is that dreaded first day at work where you turn up as the brand new system administrator and nobody knows the root password to the server and they are staring at you hopefully.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |