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.