In my linux machine, i lost /etc/passwd file
and /etc/shadow file, then how can i recover it?

Answer Posted / inam

Recovery of passwd & shadow file

-write on kernel line "init=/bin/bash

-Press enter
-Press b
copy /etc/passwd- /etc/passwd

then use command
pwconf to regenerate shadow from passwd.


u can change password of ur user until u create shadow.

after all these changes just change ur user password with

-passwd username.

( i post one before but it has some mistake)
this opne will work try out

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I overclock my cpu?

503


Explain difference between swap partition and swap file?

497


You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?

563


What are grep patterns called?

533


What will happen when a system call is encountered in a user program?

1506






List the three main parts of an operating system command?

504


How much ram do I have linux?

538


What does wc command do in unix?

531


How do I find my user id in linux?

518


What is umask 000?

549


Explain shift command of linux?

575


tell me something about linux commands.

552


What does mkdir mean in linux?

609


What is command grouping and how does it work?

649


Is cmake a compiler?

603