On 03/01/2012 09:08 PM, Suraj Sapkota wrote: > Boot from live CD/USB: > Edit the "/etc/shadow" file (of your original system) and replace the > very first line with: > root:$6$lH0opWqz$enhvv5OP8piRLC6NxJmMAca2Fg7wNrvFuMG/THg1NvrZ1gsZNh08ObGxsfWDpQOs3fQgC/8O2EpQ.b4fhJsk0.:15362:0:99999:7::: > > Congrats your root password is "gyaneshwar" now. Reboot and enjoy! > > > PS: Copy-paste the above line via USB or open your email from inside > live mode. > > > On Thu, Mar 1, 2012 at 4:41 PM, Sagar Chalise <[email protected] > <mailto:[email protected]>> wrote: > > Have you tried some of the methods mentioned > here > http://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrativeroot-password > > > > On Thursday, March 1, 2012 1:20:50 PM UTC+5:45, BoharaG wrote: > > Hi, > > I forgot password for ubuntu ultimate in my machine. I tried > to reset the password by going to recovery mode and using > passwd as suggested in > http://www.psychocats.net/ubuntu/resetpassword > I got similar user interface as described in this link and was > prompted to reset password as well. I typed password and it > said password updated successfully. After that I went to > normal boot and tried to login. But I could not login as it > said either user name or password was incorrect. Then I > suspected that because of num lock key in keyboard my > password was not typed correctly. Then after restarting the > machine and going to Recovery mode I tried to reset my > password as before. But this time onwards it says *"Give root > password for maintenance or Type Control-D to continue"*. I > dont know my root password as well and if I remember correctly > I never set root password. > > Is my user account locked?How can I reset my password?Please help. > > -- > FOSS Nepal mailing list: [email protected] > <mailto:[email protected]> > http://groups.google.com/group/foss-nepal > To unsubscribe, e-mail: [email protected] > <mailto:foss-nepal%[email protected]> > > Mailing List Guidelines: > http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines > Community website: http://www.fossnepal.org/ > > -- > Suraj Sapkota > PicoVico.com <http://picovico.com/> > ssapkota@{twitter,flickr,gmail} > > > -- > FOSS Nepal mailing list: [email protected] > http://groups.google.com/group/foss-nepal > To unsubscribe, e-mail: [email protected] > > Mailing List Guidelines: > http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines > Community website: http://www.fossnepal.org/ There is another way as well: Edit the grub entry for a given kernel, and for the vmlinuz and initrd line, edit and place "init=/bin/bash rw" at the end of the line. Press [b] key to boot. You'll be dropped to a root shell from where you can change the password.
-- Abhishek Singh FOSS Nepal Community http://wiki.fossnepal.org
signature.asc
Description: OpenPGP digital signature
