Ubuntu Single User Mode without root password for maintenance


Hello Friends,

I came across problem , while resetting ubuntu password , Generally when we reset password for RHEL 5 OS , we enter into single user mode through grub by editing Kernel line with Single or 1  , and simply you will boot into single user mode.

But with Ubuntu it was a kinda different.


1.Reboot your machine; press 'Esc' to get to the GRUB menu; select your image; press 'e' to edit; select the Kernel line.

2.Press 'e' to edit the kernel line. Edit the line to get rid of quiet and splash; change 'ro' to 'rw'; and add 'init=/bin/bash'. The line should look something like this:

kernel /vmlinuz-2.6.15-27-386 root=/dev/mapper/Ubuntu-root rw init=/bin/bash3.Press 'enter' then 'b' to boot with these new settings.

Then you can fire up passwd command to reset root password.

Reffered from : http://www.noah.org/wiki/Single_User_Mode

It Works!

Best Regards,
Girish

0 comments:

Post a Comment