Server Fault is a question and answer site for system and network administrators. 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 have RHEL 5 on virtual machine installed.

I was creating the new user by making entry in /etc/passwd.

I deleted the /etc/shadow file and used pwconv command to make new shadow file.

Now when i restarted the system , it is not accepting any password

whats should i do

share|improve this question
up vote 2 down vote accepted

Can you attempt to repair the damage in single user mode with a process similar to

share|improve this answer
THANKS BUDDY , IT WORKED – John Nov 17 '10 at 14:45

You deleted all of your users' passwords, because they aren't stored in /etc/passwd anymore like they were in the olden days. pwconv is only for converting entries from passwd to shadow and vice versa -- you should never have to use it in day-to-day tasks. Boot into single-user mode as DaveN suggested, restore the file from backup, chalk this one up to experience, and learn the right way to manage user accounts on modern Linux systems. The useradd and passwd commands exist for a reason.

share|improve this answer

Which means your system can't find the password in shadow file while authenticating, first you need to create the password for root user after restarting. follow this videos... this helpful for you...

share|improve this answer

Your Answer


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