How do I change "forgotten root password" in RHEL6.5 Guest server?

Latest response

I have forgotten the root password in my guest server running RHEL 6.5. I could change from 'booting through single user mode'. But it comes up with "Maintenance Mode" which is asking for root password (or CTRL+D to get out and boot as is). I cannot update the system or start any stopped services anymore. Any one can help me? It will really help me. NazHusain.

Responses

Hi Naz

Entering "single user mode" on a VM is no different than on a physical server.
There's a lot of guides around for this.
look at this one,
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-rescuemode.html

Did you do it correctly by modifying the kernel boot argument (a=append) and then 1 (for single user mode). This of course after you interrupted the boot at grub stage,

If you've hardened your system, booting to Single-user mode will still require a root password to login. If you've got rescue media, you can use rescue-mode or, failing that, if you have GRUB access (I'm assuming either GRUB hasn't been password-protected or you didn't lose the GRUB password), you can append "init=/bin/bash" to your "kernel" line.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.