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
What the command used for search file or files for specific text?
Why is it called bash?
What is cd in cmd?
What does r mean linux?
What is the difference between diff and cmp command in unix?
How do you check which file consuming more space in linux?
What does rmdir do in linux?
What is netstat command in linux?
Which command is used to check the number of files and disk space used and the each user’s defined quota?
What is df command in linux?
Write about an internal command.
What does p mean linux?
Why we use pwd command in linux?
What is cmake in linux?
What is the command to calculate the size of a folder?