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:

OK, so my husband and I have had Ubuntu 13.04 I believe for about a week now, or whenever they released it. Yesterday, turn on the computer and his "user" and everything with it, was gone. Mine, still very much in tact, however, the root password was changed.

I have tried changing the password via the terminal after I tried removing it through the advanced root re-write option I found on the net, it showed there wasn't an encrypted password to even remove.

Now, I have been trying to create a USB start up disk so I can re-install Ubuntu, but I still do not have a root password apparently. This is obviously not my "user" password, as I have tried that. I've tried every password I have ever used...nothing.

enter image description here

share|improve this question

marked as duplicate by Mitch, Eric Carvalho, Basharat Sialvi, AgentCool, Thomas W. May 12 '13 at 16:34

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.

    
Can you run "sudo passwd root" in the terminal? This should allow you to create/reset a root password using your own. Worst case, you can always use "passwd root" from recovery mode. (Your fs will have to be mounted in read/write mode.) –  djpetti May 12 '13 at 5:29
    
Can't see the image. Can you upload the image somewhere, add the link, and I'll add it for you. –  Mitch May 12 '13 at 5:35
    
imgur.com/nm3lb3w Sorry, my first time posting in the ask section. I'll add more screenshots in a few minutes. –  Alicia May 12 '13 at 5:50
    
Can you something like this - How do I reset a lost administrative password? –  jokerdino May 12 '13 at 6:44

1 Answer 1

up vote 1 down vote accepted

Can you run "sudo passwd root" in the terminal? This should allow you to create/reset a root password using your own. Worst case, you can always use "passwd root" from recovery mode. (Your fs will have to be mounted in read/write mode.)

share|improve this answer
    
I have used the recovery mode way, and it didn't help me at all. I mounted it properly and everything. Could you explain sudo passwd root in a bit more detail? –  Alicia May 12 '13 at 5:33
    
it said my username was not in the sudoers file? & that this incident will be reported. Oh geez. –  Alicia May 12 '13 at 5:36
    
Very curious. What exactly did it say when you tried to reset the password from recovery mode? Basically, the sudo command will allow you to run another command with super user privileges. Passwd sets the password for a specific user, in this case, root. You can find out more by typing "man sudo" or "man passwd". I assumed you must have done this before, because by default, Ubuntu does not have the root password enabled at all, and you must enable it with this command. –  djpetti May 12 '13 at 5:38
    
That's a problem. You can't edit the sudoers file without the root password. Who set up this computer? Whoever made the first account should be in the sudoers file. –  djpetti May 12 '13 at 5:41
    
I checked in the system user files, it has my username and my husband's username (which isn't showing up currently in the logon screen) I set up the computer, and I have tried every password we have ever used on this computer (we only have 3 options when it comes to passwords.) I can't do anything without the root password...would it be a time-saver just to use another computer to create a usb boot of ubuntu, and is there a way to destroy the partitions without the root password? –  Alicia May 12 '13 at 5:47

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