Ubuntu: How to deal with forgotten password without loosing any data from ubuntu based laptop? [duplicate]


This question already has an answer here:

When I logged in today on my laptop and tried to do something it asked me for my password. So i typed in my password and it keeps on saying that It's invalid. I know for sure I didn't change it. Is there any way to change it or make it work without loosing any data from my laptop ? How do I reset a lost password? doesn't work for me. please any one suggest how to make it work without loosing any data because if any data are remove my research work are totally stop .


Boot your machine into Recovery mode and choose root like explained here, then remount your hardisk to read/write access then you can use passwd to set a new password for your user. Just be aware not to change the root password in this console. Also look here for more about this problem.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »