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
You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem?
How do you sort cpu in top command?
How do I change directories in linux command line?
What does && mean in linux?
Enlist some linux to file content commands?
How does mkdir work in linux?
What is the role of case sensitivity in affecting the way commands are used?
What are linux commands?
What is DISM command?
What is devops linux?
How do I check my cpu cores?
What does wc command do in unix?
What does grep command do?
What is the use of ls command?
What is bc command in unix?