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
Explain grep command.
Explain difference between nfs soft and hard mouniting points?
Explain the working of command grouping?
How do I run a script in linux?
What is the command to see on which port which service is running? And what is the difference between /etc/services file and net stat command?
How do I find the linux version?
How can you check the amount of lines in a file?
What does history command do in linux?
How do I clear bash history in linux?
What are grep patterns called?
You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose
How find ip address linux?
What command would you use to check how much memory is being used by linux?
What is tty in linux process?
How do I check cores in linux?