Reset root password in CentOS 5.5
November 28, 2011 Leave a comment
If you don’t know the root password and want to login in to the server, follow these instructions:
Picture 1: Press “e” to edit.
Picture 2: Press “e” to edit.
Picture 3: Type “S” at the end of the line. Press Enter.
Picture 4: After pressing Enter, you will see the following picture. Press “b” to boot.
Picture 5: You will see the following picture…
Type “su –” and you will be a root user.
To make it permanent you should edit it in the following file:
vi /boot/grub/menu.lst
default=0
timeout=5
.
.
.
kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 S
.
.
.