Results 1 to 4 of 4

Thread: How to Recover deleted /etc/shadow password file

  1. #1
    Join Date
    Jan 2009
    Posts
    58

    How to Recover deleted /etc/shadow password file

    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

  2. #2
    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

  3. #3
    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

  4. #4
    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:

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,759,824.65977 seconds with 16 queries