This question already has an answer here:

I am a new Ubuntu user with 12.04 lts and stepped away from my computer for a month and forgot my password.

Using this forum I attempted to reset my password using a root line upon booting in grub, I followed instructions to find I was getting results that no one else had gotten. asking for reset options that I didn't understand how to use, it said the the argument was invalid, So I found a way to delete my encrypted password in a nano list. I was able to log in but Sudo still seems to recognize a Password and even thought my user account profile says "none" after password I can't seem to do anything.

I don't know what else to do, hopefully it can be fixed. the long explanation was to show my inexperience and give light to any mistakes made.

Thank you

marked as duplicate by karel, Eric Carvalho, Luis Alvarado Jul 24 '14 at 21:21

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.

  • 2
    Which question or answer did you refer to when resetting the password? – Wilf Feb 28 '14 at 23:07
  •… this was one of them the rest were the same with simple variations, but this has the post with the nano instructions "drastic measures" – user253440 Mar 2 '14 at 0:49
  1. Boot from live CD/USB
  2. Mount partition that has the issue at /tmp
  3. Chroot into /tmp
  4. Do sudo visudo -f /etc/sudoers.d/USERNAME
  6. Remove live usb, boot normally
  7. Do sudo passwd root, this will set root pass

Might work, haven't tried it in a while, but sounds right.

  • I was sure it was going to work but after rebooting sudo passwd root prompted for a password. – user253440 Mar 2 '14 at 0:55
  • Did you put your username in place of USERNAME? – Wilf Mar 2 '14 at 10:51
  • Yes, minding caps as well. – user253440 Mar 3 '14 at 11:06

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