Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to boot into Ubuntu 12.10. I have Windows 7 installed as well. The GRUB seems fine. I can boot into Windows. But when I boot into Ubuntu , the following appears.

"no matching password file entry in /etc/shadow add user 'varun'"

share|improve this question

This means your /etc/shadow file is missing user varun. Information about the /etc/passwd and /etc/shadow can be found here.

Use a live CD or a GRUB rescue prompt. For the 2nd one follow the answer with images here How do I reset a lost administrative password?

Have a look at your /etc/passwd file with more /etc/passwd|grep varun and at your /etc/shadow file with sudo more /etc/shadow|grep varun. if the 1st does contain a line and the 2nd does not you can re-create your shadow file with the command

sudo pwcon

After that you can use passwd varun to create a new password.

share|improve this answer
thank you for the information. Though I reckon my installation was faulty and a reinstall fixed it. However your help would come handy in the future. Thank you – Varun Jan 20 '13 at 5:56
drastic but I agree. In my newbie days I also a few times decided reinstalling would be better due to me doing the wrong thing ;) – Rinzwind Jan 20 '13 at 8:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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