To reset Cent OS root Password



Boot or Reboot your CentOS installation


From the console ATL+CTRL+DEL will get you headed in the right direction.



After the installation reboots, it will come up to a boot countdown.

GRUB Menu



From the GRUB menu, select the appropriate kernel version and press the 'e' key.
You will now be presented with the option menu for the kernel version.

Kernel Options Menu



From this menu, select the kernel /vmlinuz-... line and press the 'e' key.
You will now be presented with the kernel boot options.

Change Kernel Boot Options


Now we need to add to the end of this line one o the following:
1, s, or single
And now press Enter to save your changes.

Boot your temporary options



From this menu, you should already be on the kernel /vmlinuz... line.
Press the 'b' key to boot to these temporary options to allow you to recover your root account.

Set Root Password



Now you will boot up to the root shell and you can use passwd to set your new password.
You will be required to enter the password twice.
Once you have completed this, reboot and you have a new root password for your CentOS installation.

info site

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment