Boot the system and log in into grub.
Press ‘e’ on the selected entry.
Then select the ‘kernel /vmlinux’ entry and press ‘e’ on it.
Insert the ‘single’ keyword after rhgb quiet.
Press enter
Then press b after selecting the ‘kernel /vmlinux’ entry.
Then on the root prompt issue the following command.
this will set the password to blank.
Now boot the system as usual and reset the password by logging into the root account.
Press ‘e’ on the selected entry.
Then select the ‘kernel /vmlinux’ entry and press ‘e’ on it.
Insert the ‘single’ keyword after rhgb quiet.
Press enter
Then press b after selecting the ‘kernel /vmlinux’ entry.
Then on the root prompt issue the following command.
passwd –d redhat
this will set the password to blank.
Now boot the system as usual and reset the password by logging into the root account.
passwd –d redhat
ReplyDeleteor
passwd –d root
only passwd to change the existing one
ReplyDelete