What happens when you dont remember root password in Ubuntu ?

Posted by Rajesh Setty on Wednesday, December 15, 2010
Hi,

This is my first Blog for Linux. I am starting this page with issue I have faced.

I am new to Linux. When I started working with Ubuntu, I lost root password. Luckily with help of friend I was able to reset password. I am more than happy to share the same on this site:

With following assumption below commands will work:
1) If you are able to login to Ubuntu with another user who has Administrator rights
2) Ubuntu is installed on standalone machine.

1) sudo usermod -p '!' root --Disables root user
2) sudo passwd root --Enables root user and prompts for password

If above is not a scenerio, then re-install from boot CD and recover. I have not tried this step.

Next, using shared folder using virtual box on Windows.

Keep reading......
Raj


Tags: forgot root password 
Make a Free Website with Yola.