0

This question already has an answer here:

Just got my laptop and Ubuntu was already installed when I switched it on. I don't know my username nor password, no disk / paper was included. So I can't install applications or run this program normally. What can I do to learn a password? I even can't restart or switch off my device to change it.

marked as duplicate by Mitch Dec 14 '14 at 18:30

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.

0

What would be the use of the password if anyone could read it? Of cause you can't. In your situation there are two ways:

  1. Reinstall Ubuntu. I recommend it because this way you will both get all the settings right and be sure nobody left a nasty trick in your machine, intentionally or not.
  2. Boot from live CD. Then chroot into your system and change passwd. Here are instructions. If you follow them , keep in mind that your disk name may be different from /dev/sda1, use lsblk utility (in LiveCD) to check.

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