Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I thought it would be a good idea to finally take the password off my little netbook since it has never actually been of any use, and has mostly just slowed down . But when I went to change my password, there wasn't even an option to make it blank, and any attempt to make it a few easy characters was met with "Password too weak".

So I did what any good geek would do and popped open the terminal, read the manual entry for passwd and quickly used the -d option to remove the password from my account. It all went well for a couple days (I even managed to also make my keychain password blank) until I tried to update the thing.

My sudoers password is not blank, and it's not my old password. I have no idea what it is. How do I reset it (or even better, make it blank) without the use of the sudo command?

share|improve this question

marked as duplicate by Eliah Kagan, Eric Carvalho, Seth, vasa1, Thomas W. Mar 18 '13 at 6:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Since the fix is to reset the password (and the problem lies in the password entry itself), this is in effect the same as How do I reset a lost administrative password? We should probably close this as a duplicate of that. –  Eliah Kagan Mar 18 '13 at 3:07

4 Answers 4

up vote 3 down vote accepted

Go to terminal type who am i then type passwd and enter the password you want. You will be able to use that password to change your password on user accounts.

share|improve this answer
    
how can he do that from terminal with out sudo ? –  AgentCool Oct 14 '12 at 7:11
1  
A user can change his own password without sudo. –  Mark Paskal Oct 14 '12 at 7:38
    
Thanks! This was the easiest way of all the answers. –  Eric Dand Oct 15 '12 at 22:12

If you messed up your sudoers file, you'll need to:

  • Reboot into recovery mode (hit escape during boot, choose the recovery mode option on the grub screen)
  • Choose the 'Enable networking' option (if you don't your filesystem will be mounted as read-only. who knew)
  • Chosee the 'Drop to root shell' option
  • Run visudo, fix your file
  • Reboot with normal grub option

source :- http://mario.net.au/content/recover-etcsudoers-ubuntu-1204

share|improve this answer

After switch on your PC , you will see GRUB menu . In the GRUB menu choose recovery mode and then choose root option . there type this command

passwd

Then Give your new password .

then restart.

share|improve this answer

You can install linux on machine without losing data . only be carefull aboout that use same username . if you want really cracking password i will look for it

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.