Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links


How to Recover deleted /etc/shadow password file

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-02-2009
Member
 
Join Date: Jan 2009
Posts: 58
How to Recover deleted /etc/shadow password file

Sponsored Links
Hi friends,

By mistake i have deleted the /etc/shadow password file.I have also try to boot into single user mode,but system ask root password for maintenance don't know what to do in this case .Can anyone help me out with this issue it would be great for me.

Thanks in Advance.

Following are my PC Configuration:-
Amd 9550
gigabyte 780 with Intel Chipset
2gb ram
300 gb HDD
9600 gt 512

Reply With Quote
  #2  
Old 19-02-2009
Member
 
Join Date: Dec 2008
Posts: 38
Re: How to Recover deleted /etc/shadow password file

Sure i will help you out with this I think that the passwd program is in /bin on Linux, so restore the /bin/passwd file from backups just as you would any other file. And be careful when you are acting as root.if you accidentally delete a very critical file you might not be able to run the restore program and at last you need to reinstall Linux
Reply With Quote
  #3  
Old 19-02-2009
Member
 
Join Date: Jan 2009
Posts: 58
Re: How to Recover deleted /etc/shadow password file

The worst part of mine is i don't have a backup of my /etc/shadow password file and i don't want to re-install is there any other solution.

Following are my PC Configuration:-
Amd 9550
gigabyte 780 with Intel Chipset
2gb ram
300 gb HDD
9600 gt 512
Reply With Quote
  #4  
Old 19-02-2009
Member
 
Join Date: Dec 2008
Posts: 144
Re: How to Recover deleted /etc/shadow password file

I was also facing such kind of issue i tried to follow the below steps and it worked for me hope it will work for you too:-
  1. Reboot server.
  2. Now you will see grub-boot loader screen. Select Recovery mode the version of the kernel that you wish to boot and type e for edit.
  3. Go to the end of the line and type init=/bin/bash as a separate one word and hit enterto exit edit mode.
  4. You would be back to grub-boot loader screen ype b to boot into single user mode and this would allow to gain root privileges (w/o password) and a root shell.
  5. Make sure can access system partition for that type the following code
    • mount -rw -o remount /
  6. Now type the following code for rebuilding /etc/shadow file from /etc/passwd
    • pwconv
  7. Use passwd command to change root user password
    • passwd

  8. If you have an admin account, then setup password for that account. On most case, servers direct root login is disabled.For enabling it type the following code.
    • passwd admin
  9. Now root and admin accounts are ready to go in multi-user mode. Reboot the system in full multiuser mode:
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Recover deleted /etc/shadow password file"
Thread Thread Starter Forum Replies Last Post
How to recover deleted pst file of outlook Mithun Seth Windows Software 7 19-04-2012 06:39 PM
Is it possible to recover a deleted excel file from autosave Jaques Strapp MS Office Support 4 01-02-2012 06:07 PM
Recover accindently deleted file in MAC Enriqueta Windows Software 6 09-01-2010 03:00 AM
how to recover deleted explorer.exe file ? Aloke Operating Systems 3 05-12-2009 01:01 AM
How to recover a deleted file ? SoftwareGuy Guides & Tutorials 2 22-01-2009 05:30 PM


All times are GMT +5.5. The time now is 05:22 AM.