Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

up vote 2 down vote accepted

Can you attempt to repair the damage in single user mode with a process similar to http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4/html/Step_by_Step_Guide/s1-q-and-a-root-passwd.html

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... https://www.youtube.com/watch?v=jlI4HiRk5-M

share|improve this answer

Your Answer

 
discard

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