Skip to main content

Posts

Showing posts from April, 2023

How do I reset my root password if I forget my root password? Redhat-9

  How do I reset my root password if I forgot my root password? Redhat-9 "); color: #202124; display: inline-block; font-family: arial, sans-serif; height: 24px; width: 24px;"> 1. Reboot your Linux system, and at the GRUB boot menu, press ‘e’ to edit the boot menu entries. 2. press the down arrow key and select rescue kernel line 3. go to the end of the line and write rd. break 4 press ctrl+x and start your system. #mount -o remount rw /sysroot #chroot /sysroot #passwd new password reinter password. #getenforce #touch /.autorelabel #exit Now restart your system and log in with a new password.