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

Answer Posted / anil kumar

1. reboot
2. singal user mode (init=/bin/bash)
3. pwconv
4. check /etc/passwd and /etc/shadow files are there
5. sync
6. init 3

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you run a command for a limited time?

589


What could be the problem when a command that was issued gave a different result from the last time it was used?

697


What does free command do in linux?

583


How do you execute more than one command or program from a single command line entry?

558


What does cd do in linux?

655






Is makefile a shell script?

555


How do I run multiple commands in linux?

543


What is command example?

563


How does case sensitivity affect the way you use commands?

661


How many interfaces(ethernet cards) are working using single command?

531


List the three main parts of an operating system command?

504


What is devops linux?

532


What is ls command and what it does?

556


What is Syntax of any Linux command?

587


What are the ms dos commands?

527