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
How do you create a text file in linux?
What is tail command in linux?
How do I navigate in cmd?
What is the bash in linux?
How do you create a file?
What is mkdir?
What is difference between egrep and grep?
Is llvm a compiler?
What does df command do in linux?
Who unix commands?
What is the difference between diff and cmp command in unix?
What is s in permission linux?
What are the options of wc command?
why is the tar command used?
If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?