Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 having an issue with logging in after an upgrade to 12.04. I have been using (unsuccessfully) this guide to reset the password.

In /etc I found two shadow files: shadow and shadow- . The files seem identical. Are there supposed to be two?

share|improve this question
up vote 6 down vote accepted

/etc/shadow is the file that will be used by the login system. /etc/shadow- is a backup file that is not used (except for backup purpose). The same applies to /etc/group- and /etc/password-. Older backup files can be found at /var/backups/.

share|improve this answer
Likewise for /etc/gshadow(-) – andol Apr 29 '12 at 8:51

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.