In my linux machine, i lost /etc/passwd file
and /etc/shadow file, then how can i recover it?
Answer Posted / rallapalli
Enter into single user mode
$cp /etc/passwd~ /etc/passwd
$cp /etc/shadow~ /etc/shadow
passwd~ and shadow~ are backup files of passwd, shadow
Thanks,
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Hi everyone i want to learn Devops in Hyderabad can anyone please suggest me best institute.
What does cd do in linux?
What is the difference between clang and llvm?
What is command grouping and how does it work?
What is the command can be run to remove all the rules in an iptable table?
What are the examples of simple command?
Is llvm a virtual machine?
Where is command history stored in linux?
Who is unix command?
Why is linux cpu usage so high?
What is the difference between kill and kill in linux?
What is the copy command in linux?
What is command example?
Explain the ‘ls’ command in linux
How does case sensitivity affect the way you use commands?