Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain grep command.

974


Explain difference between nfs soft and hard mouniting points?

909


Explain the working of command grouping?

979


How do I run a script in linux?

1045


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?

951


How do I find the linux version?

1032


How can you check the amount of lines in a file?

955


What does history command do in linux?

1084


How do I clear bash history in linux?

987


What are grep patterns called?

994


You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose

1012


How find ip address linux?

1030


What command would you use to check how much memory is being used by linux?

992


What is tty in linux process?

980


How do I check cores in linux?

1032