2015년 8월 24일 월요일

How to reset the root password in CentOS 6.6

Introduction

Booting straight up to GRUB is not the default boot method for CentOS 5 & 6.
This How-To was written to show you step by step the process of resetting the root password on your CentOS 5/6 installation.

Steps (7 total)

1

Boot or Reboot your CentOS installation

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

Press Any Key

After the installation reboots, it will come up to a boot countdown. Here, you can press any key, I don't have one either, but any other key works also.
This will bring you to the GRUB menu.
3

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.
4

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.
5

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.
6

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.
7

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.

댓글 없음:

댓글 쓰기